joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c998
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x114
push esi
push edi
mov esi, 0x20019
push esi
xor edi, edi
push str.SOFTWARE
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp + 0x68]
mov dword [ebp + 0x68], edi
mov dword [ebp + 0x6c], edi
mov dword [ebp + 0x70], edi
mov dword [ebp + 0x60], edi
mov dword [ebp + 0x64], edi
call fcn.00402dfd
test eax, eax
je 0x40c9d9
xor esi, esi
jmp 0x40cab5
push esi
push 0x420a38
push dword [ebp + 0x68]
lea ecx, [ebp + 0x6c]
call fcn.00402dfd
test eax, eax
jne 0x40c9d2
push esi
push str.Java_Runtime_Environment
push dword [ebp + 0x6c]
lea ecx, [ebp + 0x70]
call fcn.00402dfd
test eax, eax
jne 0x40c9d2
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
push 0x80
mov byte [ebp - 0xa0], al
lea eax, [ebp - 0x20]
push eax
push edi
push dword [ebp + 0x70]
call ebx
test eax, eax
jne 0x40cab1
inc dword [ebp + 0x60]
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jle 0x40ca7f
push 9
mov edi, 0x420a60
lea esi, [ebp - 0x20]
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x40ca7d
lea eax, [ebp - 0x20]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40ca56
sub eax, edx
cmp eax, 3
jbe 0x40ca7d
xor eax, eax
mov cl, byte [ebp + eax - 0x20]
mov byte [ebp + eax - 0xa0], cl
inc eax
test cl, cl
jne 0x40ca66
mov dword [ebp + 0x64], 1
xor edi, edi
push 0x80
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0x60]
push dword [ebp + 0x70]
call ebx
test eax, eax
je 0x40ca27
cmp dword [ebp + 0x64], edi
je 0x40cab1
lea eax, [ebp - 0xa0]
push eax
push 0x420a6c
push dword [ebp + 0x7c]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov esi, dword [ebp + 0x64]
pop ebx
lea ecx, [ebp + 0x70]
call fcn.00402de6
lea ecx, [ebp + 0x6c]
call fcn.00402de6
lea ecx, [ebp + 0x68]
call fcn.00402de6
pop edi
mov eax, esi
pop esi
add ebp, 0x74
leave
ret
Function at 0x40cb74
Capabilities:
Delete file
Delete registry value
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
push ebx
push esi
push edi
mov edi, 0x400
lea eax, [ebp - 0x40c]
push edi
push eax
call fcn.0040b65c
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop ecx
pop ecx
jl 0x40cba7
lea eax, [ebp - 0x40c]
push eax
call esi
lea eax, [ebp - 0x40c]
push eax
call fcn.0040c35c
test eax, eax
pop ecx
je 0x40cbd0
lea eax, [ebp - 0x40c]
push eax
push eax
call fcn.0040c0ee
pop ecx
pop ecx
lea eax, [ebp - 0x40c]
push eax
call esi
call fcn.0040b52a
xor esi, esi
push esi
push str.PreDownldStatus
push esi
call fcn.0040c3d9
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
add esp, 0xc
push edi
lea eax, [ebp - 0x40c]
push eax
mov dword [ebp - 0xc], esi
push esi
mov esi, SysStringLen
jmp 0x40cc65
inc dword [ebp - 0xc]
and dword [ebp - 4], 0
and dword [ebp - 8], 0
push 0x20019
lea eax, [ebp - 0x40c]
push eax
push esi
lea ecx, [ebp - 4]
call fcn.00402dfd
test eax, eax
lea ecx, [ebp - 8]
jne 0x40cc4d
push 0x2001f
push 0x420c0c
push dword [ebp - 4]
call fcn.00402dfd
test eax, eax
jne 0x40cc4a
push str.VersionXmlURL
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea ecx, [ebp - 8]
call fcn.00402de6
lea ecx, [ebp - 4]
call fcn.00402de6
push edi
lea eax, [ebp - 0x40c]
push eax
push dword [ebp - 0xc]
push esi
call ebx
test eax, eax
je 0x40cbff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40d856
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
lea eax, [ebp - 4]
push 1
push eax
xor edi, edi
call fcn.0040c2b6
test eax, eax
pop ecx
pop ecx
je 0x40d963
lea eax, [ebp - 0xc]
push eax
push 0x2001f
push edi
push 0x420718
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40d963
push esi
lea eax, [ebp - 8]
push eax
push 0x420740
push dword [ebp - 4]
call fcn.0040b31f
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
add esp, 0xc
test eax, eax
jne 0x40d8ef
lea eax, [ebp - 8]
push eax
push 0x42074c
push dword [ebp - 0xc]
call fcn.0040b31f
add esp, 0xc
test eax, eax
je 0x40d8ef
push dword [ebp - 8]
push 0x420758
push dword [ebp - 4]
call fcn.0040c47b
add esp, 0xc
test eax, eax
je 0x40d8ef
push 0x420764
push dword [ebp - 0xc]
call esi
inc edi
lea eax, [ebp - 8]
push eax
push 0x420770
push dword [ebp - 4]
call fcn.0040b31f
add esp, 0xc
test eax, eax
jne 0x40d943
lea eax, [ebp - 8]
push eax
push 0x420780
push dword [ebp - 0xc]
call fcn.0040b31f
add esp, 0xc
test eax, eax
je 0x40d943
push dword [ebp - 8]
push 0x420790
push dword [ebp - 4]
call fcn.0040c47b
add esp, 0xc
test eax, eax
je 0x40d943
push 0x4207a0
push dword [ebp - 0xc]
call esi
xor edi, edi
inc edi
test edi, edi
jne 0x40d952
push edi
push dword [ebp - 4]
call fcn.0040cad6
pop ecx
pop ecx
push dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0xc]
call esi
pop esi
pop edi
leave
ret
Function at 0x40e080
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
push esi
push edi
call dword [0x427060]
mov edi, eax
lea eax, [ebp - 8]
push eax
push 1
push 0
push 0x4217a8
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], 0x400
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40e14e
mov byte [ebp - 0x40c], al
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x4217d0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], 0
jbe 0x40e14e
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp - 0x40c]
push eax
call esi
test eax, eax
je 0x40e14e
lea eax, [ebp - 0x40c]
push eax
call esi
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and eax, 0xfffffffc
call fcn.00412ce0
mov eax, esp
push edi
push esi
lea ecx, [ebp - 0x40c]
push ecx
push eax
call fcn.0040412d
mov esi, dword [ebp + 8]
push esi
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
xor eax, eax
push 4
pop ecx
mov edi, 0x4226d8
repe cmpsd dword [esi], dword es:[edi]
setne al
dec eax
and eax, 0x80004005
jmp 0x40e153
mov eax, 0x80004005
lea esp, [ebp - 0x414]
pop edi
pop esi
leave
ret

Function at 0x40e15d
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
call dword [0x427060]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
push 0x2001f
push 0
push 0x4217e0
mov esi, 0x80004005
push reloc.OLEAUT32.dll_SysReAllocString
mov ebx, esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40e19c
mov eax, esi
jmp 0x40e23f
mov esi, dword [ebp + 8]
push 4
pop ecx
mov edi, 0x4226d8
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
jne 0x40e1c3
push 0x421808
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x40e234
xor ebx, ebx
jmp 0x40e234
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.ole32.dll_StringFromCLSID]
mov ebx, eax
test ebx, ebx
jl 0x40e225
mov edi, dword [ebp - 4]
test edi, edi
jne 0x40e1e5
xor eax, eax
jmp 0x40e20a
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
mov eax, esi
add eax, 3
and eax, 0xfffffffc
call fcn.00412ce0
mov eax, esp
push dword [ebp - 0xc]
push esi
push edi
push eax
call fcn.00404164
push 4
push eax
push 1
push 0
push str.TransferJobID
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x40e225
xor ebx, ebx
cmp dword [ebp - 4], 0
je 0x40e234
push dword [ebp - 4]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40e765
Capabilities:
Delete registry value
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x218
push edi
lea eax, [ebp + 0x6c]
push 1
push eax
call fcn.0040c2b6
test eax, eax
pop ecx
pop ecx
je 0x40e943
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebx
push esi
push 4
pop ebx
push 0x421b00
lea eax, [ebp + 0x64]
push eax
mov dword [ebp + 0x70], ebx
call edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp + 0x68]
push eax
push 0
push 0x421b04
push dword [ebp + 0x6c]
mov dword [ebp + 0x70], 3
call esi
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp - 0x1a4]
push eax
lea eax, [ebp + 0x68]
push eax
push 0
push 0x421b0c
push dword [ebp + 0x6c]
mov byte [ebp - 0x1a4], 0
mov dword [ebp + 0x70], pe_nt_image_headers32
call esi
push 0x421b1c
lea eax, [ebp - 0x24]
push eax
call edi
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp + 0x68]
push eax
push 0
push 0x421b20
push dword [ebp + 0x6c]
mov dword [ebp + 0x70], 0x80
call esi
push 0x421b34
lea eax, [ebp - 0xa4]
push eax
call edi
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp + 0x68]
push eax
xor edi, edi
push edi
push 0x421b38
push dword [ebp + 0x6c]
mov dword [ebp + 0x70], 0x80
call esi
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp + 0x60]
push eax
lea eax, [ebp + 0x68]
push eax
push edi
push 0x421b48
push dword [ebp + 0x6c]
mov dword [ebp + 0x70], ebx
call esi
test eax, eax
jne 0x40e8a2
push edi
push edi
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp + 0x64]
push eax
push 0x421b58
lea eax, [ebp - 0x1a4]
push 0x421b5c
push eax
call fcn.0040ce04
add esp, 0x20
test eax, eax
je 0x40e8a2
push 0x421b60
push dword [ebp + 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp + 0x60]
push eax
lea eax, [ebp + 0x68]
push eax
push edi
push 0x421b70
push dword [ebp + 0x6c]
mov dword [ebp + 0x70], ebx
mov dword [ebp + 0x60], edi
call esi
test eax, eax
jne 0x40e936
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp + 0x68]
push eax
push edi
push 0x421b80
push dword [ebp + 0x6c]
mov dword [ebp + 0x70], ebx
mov dword [ebp + 0x5c], edi
call esi
push dword [ebp + 0x5c]
lea eax, [ebp - 0x24]
push dword [ebp + 0x60]
push eax
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp + 0x64]
push eax
push 0x421b94
lea eax, [ebp - 0x1a4]
push 0x421b98
push eax
call fcn.0040ce04
add esp, 0x20
test eax, eax
je 0x40e936
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push 0x421b9c
push dword [ebp + 0x6c]
call esi
push 0x421bb0
push dword [ebp + 0x6c]
call esi
push 0x421bc4
push dword [ebp + 0x6c]
call esi
push dword [ebp + 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
jmp 0x40e945
xor edi, edi
mov dword [0x428854], edi
xor eax, eax
pop edi
add ebp, 0x74
leave
ret 4
Function at 0x40e955
Capabilities:
Create thread
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
call fcn.0040b691
test eax, eax
jne 0x40e966
leave
ret
push ebx
push 4
pop eax
xor ebx, ebx
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 4]
push ebx
push eax
mov dword [ebp - 8], ebx
call fcn.0040c2b6
test eax, eax
pop ecx
pop ecx
jne 0x40e98b
inc eax
jmp 0x40ea24
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push 0x421bd4
push dword [ebp - 4]
call edi
mov esi, eax
neg esi
sbb esi, esi
inc esi
jne 0x40e9d1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push 0x421be4
push dword [ebp - 4]
call edi
mov esi, eax
neg esi
sbb esi, esi
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
jne 0x40e9e3
xor eax, eax
inc eax
jmp 0x40ea22
cmp dword [0x428854], ebx
jne 0x40e9de
xor esi, esi
inc esi
cmp dword [ebp + 8], ebx
jne 0x40ea14
push 0x428854
push ebx
push ebx
push fcn.0040e765
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
je 0x40ea20
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40ea20
push ebx
mov dword [0x428854], esi
call fcn.0040e765
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40eaea
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x208
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x421d20
lea eax, [ebp + 0x6c]
push eax
mov dword [ebp + 0x70], 3
call esi
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp + 0x6c]
push eax
push str.Country
xor ebx, ebx
push ebx
call fcn.0040b2b5
add esp, 0x10
push 0x421d2c
lea eax, [ebp - 0x194]
push eax
mov dword [ebp + 0x70], pe_nt_image_headers32
call esi
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp - 0x194]
push eax
push str.PostStatusUrl
push ebx
call fcn.0040b2b5
add esp, 0x10
push 0x421d40
lea eax, [ebp - 0x14]
push eax
call esi
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp - 0x14]
push eax
push str.InstalledJREVersion
push ebx
mov dword [ebp + 0x70], 0x80
call fcn.0040b2b5
add esp, 0x10
push 0x421d58
lea eax, [ebp - 0x94]
push eax
call esi
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp - 0x94]
push eax
push str.NewJREVersion
push ebx
mov dword [ebp + 0x70], 0x80
call fcn.0040b2b5
push dword [ebp + 0x7c]
lea eax, [ebp - 0x14]
push ebx
push eax
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp + 0x6c]
push eax
push 0x421d6c
lea eax, [ebp - 0x194]
push 0x421d70
push eax
call fcn.0040ce04
add esp, 0x30
pop esi
pop ebx
add ebp, 0x74
leave
ret
Function at 0x41138a
Capabilities:
Create process on windows

Disassembly:
cmp word [esp + 8], 0xcc
jne 0x4113ac
push 1
xor eax, eax
push eax
push eax
add ecx, 0x620
push ecx
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
xor eax, eax
ret 0x10

Function at 0x4115a5
Capabilities:
Create thread

Disassembly:
push ecx
push ecx
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
push edi
mov esi, ecx
lea edi, [esi + 0x820]
push edi
call ebp
test eax, eax
mov ebx, dword [sym.imp.USER32.dll_SetWindowTextA]
jle 0x4115cc
push edi
push dword [esi + 4]
call ebx
lea edi, [esi + 0x20]
push edi
call ebp
test eax, eax
jne 0x4115ea
push 0x400
push edi
push 0x7e
push dword [0x4288b0]
call dword [sym.imp.USER32.dll_LoadStringA]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x98
push dword [esi + 4]
call edi
lea ecx, [esi + 0x20]
push ecx
push eax
call ebx
push 0xffffff
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push 0xcc
push dword [esi + 4]
mov dword [esi + 0x8c0], eax
xor eax, eax
mov dword [esi + 0x8a0], eax
mov dword [esi + 0x8c4], eax
mov dword [esi + 0x8c8], eax
call edi
push 0xfffffffffffffff0
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
or eax, 0x100
push eax
push 0xfffffffffffffff0
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_SetWindowLongA]
push 0xc9
push dword [esi + 4]
call edi
mov dword [esp + 0x10], eax
lea eax, [esi + 0x420]
push eax
call ebp
test eax, eax
jne 0x411684
push pe_nt_image_headers32
lea eax, [esi + 0x420]
push eax
push 0x7b
push dword [0x4288b0]
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [esi + 0x420]
push eax
push dword [esp + 0x14]
call ebx
push 0xd0
push dword [esi + 4]
call edi
mov dword [esp + 0x10], eax
lea eax, [esi + 0x520]
push eax
call ebp
test eax, eax
jne 0x4116c6
push pe_nt_image_headers32
lea eax, [esi + 0x520]
push eax
push 0x7c
push dword [0x4288b0]
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [esi + 0x520]
push eax
push dword [esp + 0x14]
call ebx
lea eax, [esi + 0x720]
push eax
call ebp
test eax, eax
jle 0x4116f4
push 0xcc
push dword [esi + 4]
call edi
lea ecx, [esi + 0x720]
push ecx
push eax
call ebx
xor ebp, ebp
push ebp
push ebp
push 1
push ebp
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push ebp
push ebp
push 1
push ebp
mov dword [esi + 0x8cc], eax
lea ebx, [esi + 0x8d0]
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push dword [esi + 0x8cc]
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [esp + 0x14]
push eax
push ebp
push esi
push 0x411543
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebp
je 0x41174d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
push dword [esi + 4]
call edi
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
pop edi
neg eax
pop esi
sbb eax, eax
pop ebp
inc eax
pop ebx
pop ecx
pop ecx
ret 0x10
Function at 0x412d1d
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.00412ce0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x412db8
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 [0x428aec]
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 0x412db8
cmp eax, 1
je 0x412dd9
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 0x412db8
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x412d85
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x412db4
xor eax, eax
inc eax
jmp 0x412df8
cmp edi, eax
jae 0x412dbc
xor eax, eax
jmp 0x412df8
cmp eax, esi
jae 0x412dc3
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 [0x428aec]
jmp 0x412ddc
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 0x413b05
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4227c0
call fcn.00412374
mov edi, 0x94
mov eax, edi
call fcn.00412ce0
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 [0x428aec], ecx
mov eax, dword [esi + 4]
mov dword [0x428af8], eax
mov edx, dword [esi + 8]
mov dword [0x428afc], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x428af0], esi
cmp ecx, 2
je 0x413b65
or esi, 0x8000
mov dword [0x428af0], esi
shl eax, 8
add eax, edx
mov dword [0x428af4], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x413ba0
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x413ba0
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x413bb8
cmp eax, 0x20b
je 0x413ba5
mov dword [ebp - 0x1c], esi
jmp 0x413bcc
cmp dword [ecx + 0x84], 0xe
jbe 0x413ba0
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x413bc6
cmp dword [ecx + 0x74], 0xe
jbe 0x413ba0
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00414303
pop ecx
test eax, eax
jne 0x413be0
push 0x1c
call fcn.00413ae1
pop ecx
call fcn.00415d22
test eax, eax
jne 0x413bf1
push 0x10
call fcn.00413ae1
pop ecx
call fcn.00419c0c
mov dword [ebp - 4], esi
call fcn.00419a0e
test eax, eax
jge 0x413c0a
push 0x1b
call fcn.00413abc
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x42a1d4], eax
call fcn.004198ec
mov dword [0x428938], eax
call fcn.0041984a
test eax, eax
jge 0x413c30
push 8
call fcn.00413abc
pop ecx
call fcn.00419617
test eax, eax
jge 0x413c41
push 9
call fcn.00413abc
pop ecx
push 1
call fcn.004150b7
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x413c57
push eax
call fcn.00413abc
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004195ba
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x413c78
movzx eax, word [ebp - 0x40]
jmp 0x413c7b
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00401560
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x413c99
push edi
call fcn.004151e4
call fcn.00415206
jmp 0x413ccb
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.004123af
ret
Function at 0x4140c0
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 0x4140ee
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 0x4140f5
cmp ebx, dword [eax + 4]
jae 0x4140f5
xor eax, eax
jmp 0x4142e5
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x414106
xor eax, eax
inc eax
jmp 0x4142e4
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x41411c
cmp ecx, edx
jae 0x414261
cmp dword [eax + 4], 0
je 0x414125
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x41410d
cmp dword [ebp + 8], 0
je 0x414147
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x414261
cmp eax, esi
jae 0x414261
mov eax, dword [0x428948]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x41416c
cmp dword [esi*4 + 0x428950], edi
je 0x414265
inc esi
cmp esi, eax
jl 0x41415a
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4142e1
cmp dword [ebp - 8], 0x1000000
jne 0x4142e1
test byte [ebp - 0xc], 0xcc
je 0x4141ea
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4142e1
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4142e1
cmp word [eax + 0x18], 0x10b
jne 0x4142e1
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4142e1
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4141ea
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4141ea
test byte [ecx + 0x27], 0x80
jne 0x414261
push 1
push 0x428990
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x4140fe
mov ecx, dword [0x428948]
test ecx, ecx
mov edx, ecx
jle 0x41421e
lea eax, [ecx*4 + 0x42894c]
cmp dword [eax], edi
je 0x41421e
dec edx
sub eax, 4
test edx, edx
jg 0x414212
test edx, edx
jne 0x41424f
push 0xf
pop ebx
cmp ecx, ebx
jg 0x41422b
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x414243
lea eax, [edx*4 + 0x428950]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x414231
cmp ecx, 0x10
jge 0x41424f
inc ecx
mov dword [0x428948], ecx
push 0
push 0x428990
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x4140fe
xor eax, eax
jmp 0x4142e4
test esi, esi
jle 0x4140fe
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x428990
call ebx
test eax, eax
jne 0x4140fe
cmp dword [esi*4 + 0x428950], edi
je 0x4142bb
mov eax, dword [0x428948]
lea esi, [eax - 1]
test esi, esi
jl 0x4142a9
cmp dword [esi*4 + 0x428950], edi
je 0x4142a5
dec esi
jns 0x414299
test esi, esi
jge 0x4142b9
cmp eax, 0x10
jge 0x4142b4
inc eax
mov dword [0x428948], eax
lea esi, [eax - 1]
jmp 0x4142bb
je 0x4142d3
xor ecx, ecx
test esi, esi
jl 0x4142d3
lea eax, [ecx*4 + 0x428950]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4142c1
push 0
push 0x428990
call ebx
jmp 0x4140fe
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret