joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41636a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp byte [esi + 0x3c], 0
je 0x41637a
xor al, al
jmp 0x4163dc
mov eax, dword [ebp + 8]
mov dword [esi + 0x80], eax
mov al, byte [ebp + 0xc]
mov byte [esi + 0x84], al
mov al, byte [ebp + 0x10]
mov byte [esi + 0x85], al
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x88], eax
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x8c], eax
mov eax, dword [ebp + 0x1c]
push 0x46e3c4
lea ecx, [esi + 0x64]
mov byte [esi + 0x3c], 1
mov dword [esi + 0x90], eax
call fcn.00404af7
lea eax, [ebp + 0xc]
push eax
push 0
push esi
push 0x41635e
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x40], eax
mov al, 1
pop esi
pop ebp
ret 0x18

Function at 0x4163e1
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
mov esi, ecx
xor ebx, ebx
push edi
push str.SENSAPI.DLL
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 8], ebx
call ebp
cmp eax, ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi], eax
je 0x41641b
push str.IsNetworkAlive
push eax
call edi
mov dword [esi + 8], eax
push str.WININET.DLL
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
call ebp
cmp eax, ebx
mov dword [esi + 4], eax
je 0x416467
push str.InternetGetConnectedStateEx
push eax
call edi
push 0x46e3f8
push dword [esi + 4]
mov dword [esi + 0xc], eax
call edi
push 0x46e3e4
push dword [esi + 4]
mov dword [esi + 0x10], eax
call edi
push str.InternetGetConnectedState
push dword [esi + 4]
mov dword [esi + 0x14], eax
call edi
mov dword [esi + 0x18], eax
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret

Function at 0x41646e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.SoftwareWildTangent
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4164cf
push esi
push 4
pop esi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0
push str.ConnectionStatusOverride
push dword [ebp - 4]
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [ebp - 8], esi
pop esi
jne 0x4164cf
test eax, eax
jne 0x4164cf
mov eax, dword [ebp - 0x10]
cmp eax, 3
jb 0x4164d2
push 2
pop eax
leave
ret
Function at 0x4165d9
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x290
push ebx
lea eax, [ebp - 0x290]
push eax
push 0x101
xor bl, bl
call sub.WS2_32.dll_WSAStartup
test eax, eax
je 0x4165fe
xor al, al
jmp 0x416665
push pe_nt_image_headers32
lea eax, [ebp - 0x100]
push eax
call sub.WS2_32.dll_gethostname
test eax, eax
jne 0x41665e
push esi
lea eax, [ebp - 0x100]
push eax
call sub.WS2_32.dll_gethostbyname
mov esi, eax
test esi, esi
je 0x41665d
cmp word [esi + 0xa], 4
jne 0x41665d
mov eax, dword [esi + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x41665d
push edi
xor edi, edi
push dword [eax]
call sub.WS2_32.dll_ntohl
test eax, eax
je 0x41664b
cmp eax, 0x7f000001
jne 0x41665a
mov eax, dword [esi + 0xc]
add edi, 4
mov eax, dword [edi + eax]
test eax, eax
jne 0x416639
jmp 0x41665c
mov bl, 1
pop edi
pop esi
call sub.WS2_32.dll_WSACleanup
mov al, bl
pop ebx
leave
ret

Function at 0x41973e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
push 1
xor ebx, ebx
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov esi, edx
mov edi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41979c
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 0x10]
push eax
push ebx
push str.ProgramFilesDir
push dword [ebp - 4]
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41979c
cmp esi, ebx
je 0x419795
mov byte [edi + esi - 1], bl
mov dword [ebp - 8], 1
cmp dword [ebp - 4], ebx
pop edi
pop esi
pop ebx
je 0x4197ad
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
leave
ret

Function at 0x4197b2
Capabilities:
Get common file path
Get program files directory

Disassembly:
mov eax, 0x458706
call fcn.00430898
sub esp, 0x124
push esi
push edi
xor esi, esi
mov edi, ecx
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x10], 0xf
call fcn.00401da9
push 1
push 0x26
lea eax, [ebp - 0x130]
push eax
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x41981e
mov edx, 0x104
lea ecx, [ebp - 0x130]
call fcn.0041973e
test eax, eax
lea eax, [ebp - 0x130]
jne 0x419824
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x419827
lea eax, [ebp - 0x130]
push eax
jmp 0x41982c
push 0x46d580
lea ecx, [ebp - 0x28]
call fcn.00404af7
lea eax, [ebp - 0x28]
push eax
mov ecx, edi
call fcn.00404852
push esi
push 1
lea ecx, [ebp - 0x28]
call fcn.00401df9
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x41995c
Capabilities:
Create directory

Disassembly:
mov eax, 0x458706
call fcn.00430898
sub esp, 0x1c
push esi
mov esi, ecx
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41997c
call fcn.004198f9
test al, al
je 0x419980
mov al, 1
jmp 0x4199d2
push ebx
mov edx, esi
lea ecx, [ebp - 0x28]
call fcn.0040564a
mov eax, dword [ebp - 0x14]
and dword [ebp - 4], 0
cmp eax, dword [esi + 0x14]
jne 0x4199a2
cmp dword [esi + 0x18], 0x10
jb 0x4199b2
mov esi, dword [esi + 4]
jmp 0x4199b5
lea ecx, [ebp - 0x28]
call fcn.0041995c
test al, al
jne 0x419997
xor bl, bl
jmp 0x4199c3
add esi, 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
setne bl
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00401df9
mov al, bl
pop ebx
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x41aed0
Capabilities:
Terminate thread

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [esi + 0x400]
push edi
call fcn.00420bed
mov ecx, dword [esi + 0x410]
call fcn.00420bed
mov ebp, dword [sym.imp.WININET.dll_InternetCloseHandle]
lea edi, [esi + 0x3fc]
mov eax, dword [edi]
xor ebx, ebx
cmp eax, ebx
je 0x41ae1b
push eax
call ebp
mov dword [edi], ebx
lea edi, [esi + 0x3f8]
mov eax, dword [edi]
cmp eax, ebx
je 0x41ae2c
push eax
call ebp
mov dword [edi], ebx
lea edi, [esi + 0x3f4]
mov eax, dword [edi]
cmp eax, ebx
je 0x41ae3d
push eax
call ebp
mov dword [edi], ebx
cmp byte [esi + 0x388], bl
jne 0x41ae7b
mov eax, dword [esi + 0x390]
mov dword [esi + 0x378], eax
mov eax, dword [esi + 0x394]
mov dword [esi + 0x37c], eax
lea eax, [esi + 0x380]
mov ecx, dword [eax]
or ecx, dword [eax + 4]
jne 0x41ae7b
mov ecx, dword [esi + 0x378]
mov dword [eax], ecx
mov ecx, dword [esi + 0x37c]
mov dword [eax + 4], ecx
cmp byte [esi + 0x40d], bl
mov byte [esi + 0x39c], 1
mov dword [esi + 0x2c], ebx
pop edi
jne 0x41ae98
mov ecx, esi
pop esi
pop ebp
pop ebx
jmp fcn.0041abb7
pop esi
pop ebp
pop ebx
ret
push esi
mov esi, ecx
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x41aebb
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
and dword [esi + 0x2c], 0
mov ecx, esi
pop esi
jmp 0x41ade6
pop esi
ret
push esi
mov esi, ecx
cmp dword [esi + 0x2c], 0
jne 0x41aee2
mov byte [esi + 0x404], 1
pop esi
ret
push edi
mov dword [esi + 0x420], 4
mov byte [esi + 0x3c], 1
mov edi, 0x7d0
jmp 0x41af07
test edi, edi
jle 0x41af10
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
sub edi, 0xa
cmp byte [esi + 0x404], 0
je 0x41aef8
cmp byte [esi + 0x404], 0
pop edi
jne 0x41aee0
mov byte [esi + 0x404], 1
mov ecx, esi
pop esi
jmp 0x41ae9c
Function at 0x41c855
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
xor eax, eax
cmp dword [esi + 0x2c], eax
jne 0x41c88a
lea ecx, [ebp - 4]
push ecx
push eax
push esi
push 0x41c847
push 0xfa0
push eax
mov dword [esi + 0x420], 1
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x2c], eax
pop esi
leave
ret

Function at 0x423671
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [ecx + 0x18], 0x10
jb 0x42367c
mov ecx, dword [ecx + 4]
jmp 0x42367f
add ecx, 4
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x423692
test al, 0x10
je 0x423692
mov al, 1
ret
xor al, al
ret
Function at 0x423c8e
Capabilities:
Create directory

Disassembly:
mov eax, 0x459696
call fcn.00430898
sub esp, 0x3a8
push ebx
push esi
push edi
mov esi, edx
xor ebx, ebx
mov edi, esi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ebx
call fcn.0042377a
cmp dword [esi + 0x18], 0x10
jb 0x423cc0
mov eax, dword [esi + 4]
jmp 0x423cc3
lea eax, [esi + 4]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x423ee6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 3
pop edi
sub eax, edi
je 0x423e80
dec eax
dec eax
mov esi, str.unknown
push esi
je 0x423e24
sub eax, 0x52
je 0x423dc2
sub eax, 0x60
je 0x423d61
lea ecx, [ebp - 0x130]
call fcn.00404d2a
push esi
lea ecx, [ebp - 0x168]
mov dword [ebp - 4], ebx
call fcn.00404d2a
push esi
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 1
call fcn.00404d2a
lea eax, [ebp - 0x130]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x168]
push eax
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x348]
mov byte [ebp - 4], 2
call fcn.0041fb84
push 0x47cbd0
lea eax, [ebp - 0x348]
push eax
jmp 0x423f05
lea ecx, [ebp - 0x114]
call fcn.00404d2a
push esi
lea ecx, [ebp - 0xc0]
mov dword [ebp - 4], edi
call fcn.00404d2a
push str.Directory_already_exists
lea ecx, [ebp - 0x14c]
mov byte [ebp - 4], 4
call fcn.00404d2a
lea eax, [ebp - 0x114]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0xc0]
push eax
lea eax, [ebp - 0x14c]
push eax
lea ecx, [ebp - 0x270]
mov byte [ebp - 4], 5
call fcn.0041fc56
push 0x47d68c
lea eax, [ebp - 0x270]
jmp 0x423d5b
lea ecx, [ebp - 0xf8]
call fcn.00404d2a
push esi
lea ecx, [ebp - 0x184]
mov dword [ebp - 4], 0xc
call fcn.00404d2a
push str.Invalid_argument
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0xd
call fcn.00404d2a
lea eax, [ebp - 0xf8]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x184]
push eax
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x2dc]
mov byte [ebp - 4], 0xe
call fcn.0041fc2b
push 0x47d388
lea eax, [ebp - 0x2dc]
jmp 0x423d5b
lea ecx, [ebp - 0x50]
call fcn.00404d2a
push esi
lea ecx, [ebp - 0x6c]
mov dword [ebp - 4], 9
call fcn.00404d2a
push str.Unauthorized_Access
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 0xa
call fcn.00404d2a
lea eax, [ebp - 0x50]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0xa4]
push eax
lea ecx, [ebp - 0x3b4]
mov byte [ebp - 4], 0xb
call fcn.0041fc00
push 0x47d5a8
lea eax, [ebp - 0x3b4]
jmp 0x423d5b
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x18], esp
push esi
mov dword [ebp - 4], 6
call fcn.00404852
lea edi, [ebp - 0xdc]
call fcn.00423bf4
mov edx, eax
lea ecx, [ebp - 0x1c4]
mov byte [ebp - 4], 7
call fcn.00423c8e
lea ecx, [ebp - 0x1c4]
call fcn.00423111
push ebx
push 1
mov ecx, edi
mov byte [ebp - 4], 6
call fcn.00401df9
mov edx, esi
lea ecx, [ebp - 0x204]
call fcn.00423c8e
lea ecx, [ebp - 0x204]
call fcn.00423111
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
push esi
call fcn.00423409
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
call fcn.00430a64
int3
Function at 0x4264ff
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x426552
call fcn.004502da
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x426552
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x426548
xor eax, eax
jmp 0x42666b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x426582
mov eax, dword [esi]
push edi
push dword [ebp - 4]
mov ecx, esi
push ebx
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x426582
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x426668
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x4265af
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.00427f60
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x426668
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x4265f8
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x4265f8
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x4265f2
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.00427f60
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x426658
and dword [ebp + 0xc], 0
jmp 0x426658
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x426658
push 0xc
call fcn.004477cd
mov esi, eax
test esi, esi
pop ecx
je 0x42663a
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x42663c
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x426653
push dword [ebp - 8]
call fcn.0044720e
jmp 0x426658
call fcn.004471e5
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x4265bd
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x42ffaa
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.004301f0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x430045
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x487db0]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x430045
cmp eax, 1
je 0x430066
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x430045
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x430012
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x430041
xor eax, eax
inc eax
jmp 0x430085
cmp edi, eax
jae 0x430049
xor eax, eax
jmp 0x430085
cmp eax, esi
jae 0x430050
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x487db0]
jmp 0x430069
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x431609
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x472688
call fcn.00430090
mov edi, 0x94
mov eax, edi
call fcn.004301f0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x487db0], ecx
mov eax, dword [esi + 4]
mov dword [0x487dbc], eax
mov edx, dword [esi + 8]
mov dword [0x487dc0], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x487db4], esi
cmp ecx, 2
je 0x431669
or esi, 0x8000
mov dword [0x487db4], esi
shl eax, 8
add eax, edx
mov dword [0x487db8], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4316a4
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4316a4
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4316bc
cmp eax, 0x20b
je 0x4316a9
mov dword [ebp - 0x1c], esi
jmp 0x4316d0
cmp dword [ecx + 0x84], 0xe
jbe 0x4316a4
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4316ca
cmp dword [ecx + 0x74], 0xe
jbe 0x4316a4
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00434ee8
pop ecx
test eax, eax
jne 0x4316e4
push 0x1c
call fcn.004315e5
pop ecx
call fcn.0043694b
test eax, eax
jne 0x4316f5
push 0x10
call fcn.004315e5
pop ecx
call fcn.00439918
mov dword [ebp - 4], esi
call fcn.00438319
test eax, eax
jge 0x43170e
push 0x1b
call fcn.004315c0
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x489850], eax
call fcn.004397f6
mov dword [0x487d9c], eax
call fcn.00439754
test eax, eax
jge 0x431734
push 8
call fcn.004315c0
pop ecx
call fcn.00439521
test eax, eax
jge 0x431745
push 9
call fcn.004315c0
pop ecx
push 1
call fcn.00433a90
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x43175b
push eax
call fcn.004315c0
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004394c4
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x43177c
movzx eax, word [ebp - 0x40]
jmp 0x43177f
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00446d6c
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x43179d
push edi
call fcn.00433bbd
call fcn.00433bdf
jmp 0x4317cf
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.004300cb
ret
Function at 0x433afa
Capabilities:
Terminate process

Disassembly:
push 8
push 0x472728
call fcn.00430090
push 8
call fcn.00434e9d
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x487df0], esi
jne 0x433b2e
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x487dec], esi
mov al, byte [ebp + 0x10]
mov byte [0x487de8], al
cmp dword [ebp + 0xc], edi
jne 0x433b78
cmp dword [0x489848], edi
je 0x433b68
mov eax, dword [0x489844]
sub eax, 4
mov dword [0x489844], eax
cmp eax, dword [0x489848]
jb 0x433b68
mov eax, dword [eax]
cmp eax, edi
je 0x433b49
call eax
jmp 0x433b49
push 0x482134
mov eax, 0x48212c
call fcn.00433a78
pop ecx
push 0x482140
mov eax, 0x482138
call fcn.00433a78
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x433ba9
cmp dword [ebp + 0x10], edi
jne 0x433bb7
mov dword [0x487df0], esi
push dword [ebp + 8]
call fcn.00433a36
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x433bb6
push 8
call fcn.00434de8
pop ecx
ret
call fcn.004300cb
ret
Function at 0x435a77
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x435aa5
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x435aac
cmp ebx, dword [eax + 4]
jae 0x435aac
xor eax, eax
jmp 0x435c9c
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x435abd
xor eax, eax
inc eax
jmp 0x435c9b
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x435ad3
cmp ecx, edx
jae 0x435c18
cmp dword [eax + 4], 0
je 0x435adc
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x435ac4
cmp dword [ebp + 8], 0
je 0x435afe
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x435c18
cmp eax, esi
jae 0x435c18
mov eax, dword [0x487f50]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x435b23
cmp dword [esi*4 + 0x487f58], edi
je 0x435c1c
inc esi
cmp esi, eax
jl 0x435b11
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x435c98
cmp dword [ebp - 8], 0x1000000
jne 0x435c98
test byte [ebp - 0xc], 0xcc
je 0x435ba1
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x435c98
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x435c98
cmp word [eax + 0x18], 0x10b
jne 0x435c98
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x435c98
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x435ba1
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x435ba1
test byte [ecx + 0x27], 0x80
jne 0x435c18
push 1
push 0x487f98
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x435ab5
mov ecx, dword [0x487f50]
test ecx, ecx
mov edx, ecx
jle 0x435bd5
lea eax, [ecx*4 + 0x487f54]
cmp dword [eax], edi
je 0x435bd5
dec edx
sub eax, 4
test edx, edx
jg 0x435bc9
test edx, edx
jne 0x435c06
push 0xf
pop ebx
cmp ecx, ebx
jg 0x435be2
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x435bfa
lea eax, [edx*4 + 0x487f58]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x435be8
cmp ecx, 0x10
jge 0x435c06
inc ecx
mov dword [0x487f50], ecx
push 0
push 0x487f98
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x435ab5
xor eax, eax
jmp 0x435c9b
test esi, esi
jle 0x435ab5
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x487f98
call ebx
test eax, eax
jne 0x435ab5
cmp dword [esi*4 + 0x487f58], edi
je 0x435c72
mov eax, dword [0x487f50]
lea esi, [eax - 1]
test esi, esi
jl 0x435c60
cmp dword [esi*4 + 0x487f58], edi
je 0x435c5c
dec esi
jns 0x435c50
test esi, esi
jge 0x435c70
cmp eax, 0x10
jge 0x435c6b
inc eax
mov dword [0x487f50], eax
lea esi, [eax - 1]
jmp 0x435c72
je 0x435c8a
xor ecx, ecx
test esi, esi
jl 0x435c8a
lea eax, [ecx*4 + 0x487f58]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x435c78
push 0
push 0x487f98
call ebx
jmp 0x435ab5
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret