joyce8/EMBER2024-capa huggingface dataset:
Function at 0x426ebc
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x43d074]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.0041ac20
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0041ac20
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x426f33
cmp word [ecx], dx
je 0x426f33
mov eax, dword [0x4330fc]
push edi
dec eax
push eax
push 0x432fe8
call fcn.00426e5b
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x426fa6
cmp word [eax], dx
je 0x426fa6
mov eax, dword [edi]
test eax, eax
je 0x426f57
cmp word [eax], dx
je 0x426f57
lea eax, [ebp - 0x10]
push eax
call fcn.0042683e
jmp 0x426f60
lea eax, [ebp - 0x10]
push eax
call fcn.004268d9
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x426fd0
mov eax, dword [0x432fe4]
push dword [ebp - 0x14]
dec eax
push eax
push 0x432cd8
call fcn.00426e5b
add esp, 0xc
test al, al
je 0x426fd0
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x426f9b
cmp word [eax], di
je 0x426f9b
lea eax, [ebp - 0x10]
push eax
call fcn.0042683e
pop ecx
jmp 0x426fd2
lea eax, [ebp - 0x10]
push eax
call fcn.004268d9
jmp 0x426f98
mov eax, dword [edi]
test eax, eax
je 0x426fbd
cmp word [eax], dx
je 0x426fbd
lea eax, [ebp - 0x10]
push eax
call fcn.004267f3
pop ecx
jmp 0x426fd0
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x42709b
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00426ce0
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x42709b
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x42709b
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x42709b
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x427028
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0041b5d9
test ebx, ebx
je 0x427096
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0041b5d9
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x42709b
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x42709b
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0042b2fd
add esp, 0x10
xor eax, eax
inc eax
jmp 0x42709d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040eace
leave
ret
Function at 0x42ba45
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.0042b9c1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x42bbb4
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x42bbb4
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x42bb69
jg 0x42baa1
test eax, eax
je 0x42bb5f
push 1
push 0x1000
call fcn.0041af0b
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x42bac4
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x42bb56
push 0x8000
push ebx
call fcn.004188f2
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x42baed
jg 0x42bae8
cmp ecx, 0x1000
jb 0x42baed
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0041c7a9
add esp, 0x10
cmp eax, 0xffffffff
je 0x42bb32
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x42bae8
jl 0x42bb19
test ecx, ecx
jne 0x42bada
push dword [ebp - 0xc]
push ebx
call fcn.004188f2
push esi
call fcn.0041af68
add esp, 0xc
xor ebx, ebx
jmp 0x42bbc2
cmp byte [edi + 0x24], 0
je 0x42bb49
cmp dword [edi + 0x20], 5
jne 0x42bb49
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x42bb54
mov ebx, dword [edi + 0x18]
jmp 0x42bb56
xor ebx, ebx
push esi
call fcn.0041af68
pop ecx
jmp 0x42bbc2
test ecx, ecx
jg 0x42bb2b
jl 0x42bb69
test eax, eax
jae 0x42bb2b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041df75
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x42bb89
cmp byte [edi + 0x1c], 0
je 0x42bb2b
jmp 0x42bbba
push ebx
call fcn.00424db7
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x42bb2b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x42bbc2
cmp byte [edi + 0x1c], 0
je 0x42bbbf
mov ebx, dword [edi + 0x18]
jmp 0x42bbc2
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0041df75
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4018e0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, edx
test ecx, ecx
jne 0x4018f2
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
push edi
push 0
push 0x80
push 3
push 0
push 5
push 0x80000000
push ecx
mov dword [ebp - 4], 0
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40195d
push ebx
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
je 0x401955
push ebx
mov ecx, esi
call fcn.00401b90
push 0
lea eax, [ebp - 4]
push eax
push ebx
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401950
cmp dword [ebp - 4], ebx
je 0x401955
mov eax, dword [esi]
mov dword [esi + 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov ecx, dword [esi]
xor eax, eax
cmp ecx, dword [esi + 4]
pop edi
setne al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x401970
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x432028
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x442750]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
cmp dword [ecx + 0x14], 8
jb 0x4019a8
mov ecx, dword [ecx]
lea eax, [ebp - 0x278]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4019c4
xor al, al
jmp 0x401a74
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea ebx, [ebx]
mov ax, word [ebp - 0x24c]
cmp ax, 0x2e
je 0x401a59
test byte [ebp - 0x278], 0x10
jne 0x401a59
xor ecx, ecx
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], cx
test ax, ax
jne 0x401a03
xor eax, eax
jmp 0x401a1f
lea eax, [ebp - 0x24c]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401a10
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x28]
call fcn.00401dc0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
mov ecx, ebx
call fcn.00401be0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14], 8
jb 0x401a59
push dword [ebp - 0x28]
call fcn.00419766
add esp, 4
lea eax, [ebp - 0x278]
push eax
push esi
call edi
test eax, eax
jne 0x4019d0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00418fa4
mov esp, ebp
pop ebp
ret
Function at 0x408ba0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x432773
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x442750]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
push 0x10
lea eax, [ebp - 0x30]
push eax
push 0x59
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jle 0x408d52
xor eax, eax
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], ax
cmp word [ebp - 0x30], ax
jne 0x408c0b
xor ecx, ecx
jmp 0x408c20
lea ecx, [ebp - 0x30]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408c11
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x48]
call fcn.00401dc0
lea edx, [ebp - 0x48]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x78]
call fcn.00409ff0
mov ebx, eax
cmp edi, ebx
je 0x408c6e
cmp dword [edi + 0x14], 0x10
jb 0x408c55
push dword [edi]
call fcn.00419766
add esp, 4
mov dword [edi + 0x14], 0xf
mov ecx, edi
mov dword [edi + 0x10], 0
push ebx
mov byte [edi], 0
call fcn.004055c0
cmp dword [ebp - 0x64], 0x10
jb 0x408c7f
push dword [ebp - 0x78]
call fcn.00419766
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x34], 8
mov dword [ebp - 0x64], 0xf
mov dword [ebp - 0x68], 0
mov byte [ebp - 0x78], 0
jb 0x408ca9
push dword [ebp - 0x48]
call fcn.00419766
add esp, 4
push 0x10
lea eax, [ebp - 0x30]
push eax
push 0x5a
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jle 0x408d52
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x90]
call fcn.00401a90
lea edx, [ebp - 0x90]
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x60]
call fcn.00409ff0
mov edi, eax
cmp esi, edi
je 0x408d17
cmp dword [esi + 0x14], 0x10
jb 0x408cfe
push dword [esi]
call fcn.00419766
add esp, 4
mov dword [esi + 0x14], 0xf
mov ecx, esi
mov dword [esi + 0x10], 0
push edi
mov byte [esi], 0
call fcn.004055c0
cmp dword [ebp - 0x4c], 0x10
jb 0x408d28
push dword [ebp - 0x60]
call fcn.00419766
add esp, 4
cmp dword [ebp - 0x7c], 8
mov dword [ebp - 0x4c], 0xf
mov dword [ebp - 0x50], 0
mov byte [ebp - 0x60], 0
jb 0x408d4e
push dword [ebp - 0x90]
call fcn.00419766
add esp, 4
mov al, 1
jmp 0x408d54
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00418fa4
mov esp, ebp
pop ebp
ret
Function at 0x40a360
Capabilities:
Get common file path
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x442750]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x444f30], 0
je 0x40a38c
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00418fa4
mov esp, ebp
pop ebp
ret
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor eax, eax
lea ecx, [ebp - 0x20c]
cmp word [ebp - 0x20c], ax
je 0x40a3ba
nop
lea ecx, [ecx + 2]
inc eax
cmp word [ecx], 0
jne 0x40a3b0
cmp eax, 0x103
ja 0x40a3ed
jae 0x40a3e3
mov ecx, 0x43c4c4
movzx edx, word [ecx]
test dx, dx
je 0x40a3e3
mov word [ebp + eax*2 - 0x20c], dx
add ecx, 2
inc eax
cmp eax, 0x103
jb 0x40a3c8
xor ecx, ecx
mov word [ebp + eax*2 - 0x20c], cx
push ebx
push esi
push edi
push 0x43c4c8
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push str._s_s
push eax
call fcn.00409f40
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea eax, [ebp - 0x414]
add esp, 0x10
push eax
call esi
mov ebx, eax
lea eax, [ebp - 0x20c]
push str.crypt32.dll
push eax
lea eax, [ebp - 0x414]
push str._s_s
push eax
call fcn.00409f40
add esp, 0x10
lea eax, [ebp - 0x414]
push eax
call esi
mov edi, eax
test ebx, ebx
je 0x40a545
test edi, edi
je 0x40a545
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WinVerifyTrust
push ebx
call esi
mov dword [0x444f18], eax
test eax, eax
je 0x40a545
push str.CryptDecodeObject
push edi
call esi
mov dword [0x444f28], eax
test eax, eax
je 0x40a545
push str.CryptQueryObject
push edi
call esi
mov dword [0x444f10], eax
test eax, eax
je 0x40a545
push str.CryptMsgGetParam
push edi
call esi
mov dword [0x444f14], eax
test eax, eax
je 0x40a545
push str.CertEnumCertificatesInStore
push edi
call esi
mov dword [0x444f34], eax
test eax, eax
je 0x40a545
push str.CertFindCertificateInStore
push edi
call esi
mov dword [0x444f24], eax
test eax, eax
je 0x40a545
push str.CertGetNameStringW
push edi
call esi
mov dword [0x444f20], eax
test eax, eax
je 0x40a545
push str.CertFreeCertificateContext
push edi
call esi
mov dword [0x444f2c], eax
test eax, eax
je 0x40a545
push str.CertOpenSystemStoreW
push edi
call esi
mov dword [0x444f1c], eax
test eax, eax
je 0x40a545
push str.CertCloseStore
push edi
call esi
mov dword [0x444f38], eax
test eax, eax
je 0x40a545
push str.CryptMsgClose
push edi
call esi
mov dword [0x444f3c], eax
test eax, eax
je 0x40a545
pop edi
mov al, 1
pop esi
mov byte [0x444f30], al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00418fa4
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, byte [0x444f30]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00418fa4
mov esp, ebp
pop ebp
ret
Function at 0x40a560
Capabilities:
Check os version
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x29c
mov eax, dword [0x442750]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
call fcn.0040a360
test al, al
jne 0x40a597
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00418fa4
mov esp, ebp
pop ebp
ret
mov eax, dword fs:[0x30]
cmp dword [eax + 0xa4], 6
jae 0x40a5b1
push 0x43a997
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test edi, edi
je 0x40a6d1
lea eax, [ebp - 0x258]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40a5d8
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp esi, 0xffffffff
setne al
test al, al
je 0x40a6d1
push 0x10
lea ecx, [ebp - 0x298]
call fcn.00409e90
add esp, 4
mov dword [ebp - 0x298], 0x10
lea ecx, [ebp - 0x288]
mov dword [ebp - 0x294], edi
push 0x30
call fcn.00409e90
lea eax, [ebp - 0x298]
mov dword [ebp - 0x288], 0x30
mov dword [ebp - 0x270], eax
add esp, 4
mov eax, dword fs:[0x30]
mov dword [ebp - 0x274], 1
mov dword [ebp - 0x27c], 2
mov dword [ebp - 0x278], 0
mov dword [ebp - 0x26c], 1
mov dword [ebp - 0x260], 0x110
cmp dword [eax + 0xa4], 6
jb 0x40a674
mov dword [ebp - 0x260], 0x1110
lea eax, [ebp - 0x288]
push eax
push 0x4435d0
push 0xffffffffffffffff
call dword [0x444f18]
cmp eax, 0x800b0109
je 0x40a69b
xor ebx, ebx
test eax, eax
setne bl
add ebx, 3
jmp 0x40a6a0
mov ebx, 4
lea eax, [ebp - 0x288]
mov dword [ebp - 0x26c], 2
push eax
push 0x4435d0
push 0xffffffffffffffff
call dword [0x444f18]
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00418fa4
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 2
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00418fa4
mov esp, ebp
pop ebp
ret
Function at 0x40a6f0
Capabilities:
Check os version
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
push ebx
push esi
push edi
mov dword [ebp - 0x1c], edx
mov esi, ecx
call fcn.0040a360
test al, al
jne 0x40a711
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword fs:[0x30]
cmp dword [eax + 0xa4], 6
jae 0x40a72b
push 0x43a997
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor bl, bl
mov dword [ebp - 0xc], 0
push 0x70
lea ecx, [ebp - 0x9c]
mov byte [ebp - 5], bl
mov dword [ebp - 0x10], 0
call fcn.00409e90
add esp, 4
lea eax, [ebp - 0xc]
push 0
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
push 0
push 2
push 0x400
push esi
push 1
call dword [0x444f10]
test eax, eax
je 0x40a87f
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 6
push dword [ebp - 0xc]
call dword [0x444f14]
test eax, eax
je 0x40a87f
push dword [ebp - 0x14]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x40a87f
lea eax, [ebp - 0x14]
push eax
push esi
push 0
push 6
push dword [ebp - 0xc]
call dword [0x444f14]
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
test eax, eax
je 0x40a87c
mov eax, dword [esi + 4]
mov dword [ebp - 0x84], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x80], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x98], eax
mov eax, dword [esi + 0x10]
push 0
mov dword [ebp - 0x94], eax
lea eax, [ebp - 0x9c]
push eax
push 0xb0000
push 0
push 0x10001
push dword [ebp - 0x10]
call dword [0x444f24]
mov ebx, eax
test ebx, ebx
je 0x40a879
push 0
push 0
push 0
push 0
push 4
push ebx
call dword [0x444f20]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x40a872
add eax, eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x40a86c
push dword [ebp - 0x18]
push edi
push 0
push 0
push 4
push ebx
call dword [0x444f20]
test eax, eax
je 0x40a861
mov ecx, dword [ebp - 0x1c]
push edi
call fcn.00409f00
add esp, 4
mov byte [ebp - 5], 1
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
call edi
jmp 0x40a872
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
push ebx
call dword [0x444f2c]
mov bl, byte [ebp - 5]
push esi
call edi
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x40a88f
push 0
push eax
call dword [0x444f38]
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x40a89d
push ecx
call dword [0x444f3c]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40aac0
Capabilities:
Enumerate process modules
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x442750]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x104
mov ebx, edx
mov dword [ebp - 0x42c], ecx
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x41c], ebx
push eax
push ebx
mov dword [ebp - 0x428], ebx
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
setne byte [ebp - 0x415]
lea esp, [esp]
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x42c]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
sub eax, 0
je 0x40ac44
dec eax
jne 0x40ac44
cmp byte [ebp - 0x415], al
je 0x40ac44
mov eax, dword fs:[0x30]
xor esi, esi
mov dword [ebp - 0x420], esi
push 0x2000
mov ebx, dword [eax + 0xa4]
sub ebx, 5
neg ebx
sbb ebx, ebx
and ebx, 0xc00
add ebx, 0x400
or ebx, 0x100000
call fcn.00418a23
add esp, 4
mov dword [ebp - 0x424], eax
test eax, eax
je 0x40ac3e
lea ecx, [ebp - 0x420]
push ecx
push 0x2000
push eax
call dword [sym.imp.PSAPI.DLL_EnumProcesses]
test eax, eax
je 0x40ac11
xor edi, edi
test dword [ebp - 0x420], 0xfffffffc
jbe 0x40ac0b
lea esp, [esp]
mov eax, dword [ebp - 0x424]
push dword [eax + edi*4]
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x40abfd
push 0x104
lea eax, [ebp - 0x414]
push eax
push esi
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
test eax, eax
je 0x40abf4
lea edx, [ebp - 0x20c]
lea ecx, [ebp - 0x414]
call fcn.00409fa0
test al, al
jne 0x40ac0b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov eax, dword [ebp - 0x420]
inc edi
shr eax, 2
cmp edi, eax
jb 0x40abb0
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x424]
call fcn.00419bbf
add esp, 4
test esi, esi
je 0x40ac3e
push dword [ebp - 0x41c]
call edi
mov dword [ebp - 0x428], esi
mov ebx, esi
mov dword [ebp - 0x41c], esi
jmp 0x40ab10
mov ebx, dword [ebp - 0x41c]
push ebx
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00418fa4
mov esp, ebp
pop ebp
ret
Function at 0x40ad40
Capabilities:
Delete file
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x624
mov eax, dword [0x442750]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ecx, str.EasyAntiCheatSys
xor bl, bl
or esi, 0xffffffff
call fcn.00411f20
mov ecx, dword [0x445034]
mov edi, dword [ecx]
test edi, edi
je 0x40aef0
cmp edi, 0x3ffffc
ja 0x40aef0
add ecx, 4
mov edx, edi
call fcn.0040a8b0
mov dl, 1
lea ecx, [ebp - 0x410]
call fcn.00412260
test al, al
je 0x40aed3
lea eax, [ebp - 0x618]
push eax
push 0
push 0
push 0x25
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x40aed3
push 0x43c4c4
lea eax, [ebp - 0x618]
push 0x104
push eax
call fcn.0041a40c
push str.driversEasyAntiCheat.sys
lea eax, [ebp - 0x410]
push 0x104
push eax
call fcn.0041a40c
push str.driversEasyAntiCheat.sys
lea eax, [ebp - 0x618]
push 0x104
push eax
call fcn.0041a40c
add esp, 0x24
lea eax, [ebp - 0x410]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40ae4f
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x208]
push str.CreateFile_failed___d_:__s
push eax
call fcn.0040b180
add esp, 0x10
jmp 0x40af04
push 0
lea eax, [ebp - 0x61c]
push eax
mov eax, dword [0x445034]
push edi
add eax, 4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
test eax, eax
jne 0x40ae91
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x208]
push str.WriteFile_failed___d_
push eax
call fcn.0040b180
add esp, 0xc
jmp 0x40af04
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x410]
push eax
call fcn.0040af70
test al, al
je 0x40af04
push ecx
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x618]
push eax
call fcn.0040b090
test eax, eax
mov dword [0x445048], eax
setne bl
test bl, bl
jne 0x40af2a
jmp 0x40af04
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x208]
push str.GetServicePath_failed___d_
push eax
call fcn.0040b180
add esp, 0xc
jmp 0x40af04
lea eax, [ebp - 0x208]
push str.Invalid_binary_size
push eax
call fcn.0040b180
add esp, 8
push 0xffffffffffffffff
lea eax, [ebp - 0x208]
push eax
mov eax, dword [0x445034]
add eax, 4
push pe_nt_image_headers32
push eax
lea eax, [ebp - 0x620]
push eax
call fcn.0041a3ee
add esp, 0x14
mov eax, dword [0x445034]
xor ecx, ecx
test bl, bl
setne cl
mov dword [eax], ecx
push dword [0x445040]
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp esi, 0xffffffff
je 0x40af56
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00418fa4
mov esp, ebp
pop ebp
ret