joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417150
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a9a5c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
mov eax, dword [0x4d3804]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x58], ecx
lea ecx, [ebp - 0x10]
call fcn.00402080
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x30], 0
push 1
mov ecx, dword [ebp - 0x58]
call fcn.0048f5aa
mov ecx, dword [ebp - 0x58]
add ecx, 0x220
call fcn.00402160
cmp eax, 3
jl 0x41723d
push 0
mov ecx, dword [ebp - 0x58]
add ecx, 0x220
call fcn.0040bfb0
movsx eax, al
cmp eax, 0x5c
jne 0x417202
push 1
mov ecx, dword [ebp - 0x58]
add ecx, 0x220
call fcn.0040bfb0
movsx ecx, al
cmp ecx, 0x5c
jne 0x417202
mov edx, dword [ebp - 0x58]
add edx, 0x220
push edx
lea ecx, [ebp - 0x10]
call fcn.004020e0
jmp 0x41723d
push 3
push 0
lea eax, [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0x58]
add ecx, 0x220
call fcn.00417520
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x60], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x60]
push edx
lea ecx, [ebp - 0x10]
call fcn.004020e0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x54]
call fcn.004020c0
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x58]
add edx, 0x230
push edx
lea ecx, [ebp - 0x10]
call fcn.00429470
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x417329
mov dword [ebp - 0x18], 8
mov dword [ebp - 0x1c], 0x200
lea ecx, [ebp - 0x50]
call fcn.00401c40
mov byte [ebp - 4], 2
lea eax, [ebp - 0x50]
push eax
mov ecx, dword [ebp - 0x58]
mov edx, dword [ecx + 0x234]
push edx
mov eax, dword [ecx + 0x230]
push eax
call fcn.004349a0
add esp, 0xc
lea ecx, [ebp - 0x50]
call fcn.00401c90
push eax
mov ecx, dword [ebp - 0x58]
add ecx, 0x224
call fcn.00403700
mov ecx, dword [ebp - 0x58]
mov edx, dword [ecx + 0x240]
imul edx, dword [ebp - 0x1c]
imul edx, dword [ebp - 0x18]
xor eax, eax
mov ecx, dword [ebp - 0x58]
add edx, dword [ecx + 0x238]
mov ecx, dword [ecx + 0x23c]
adc ecx, eax
mov eax, dword [ebp - 0x58]
mov dword [eax + 0x248], edx
mov dword [eax + 0x24c], ecx
lea ecx, [ebp - 0x50]
push ecx
mov edx, dword [ebp - 0x58]
mov eax, dword [edx + 0x24c]
push eax
mov ecx, dword [edx + 0x248]
push ecx
call fcn.004349a0
add esp, 0xc
lea ecx, [ebp - 0x50]
call fcn.00401c90
push eax
mov ecx, dword [ebp - 0x58]
add ecx, 0x228
call fcn.00403700
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.00401c70
jmp 0x41737d
mov edx, dword [ebp - 0x58]
mov dword [edx + 0x230], 0
mov dword [edx + 0x234], 0
mov eax, dword [ebp - 0x58]
mov dword [eax + 0x248], 0
mov dword [eax + 0x24c], 0
push 0x4b1fcb
mov ecx, dword [ebp - 0x58]
add ecx, 0x224
call fcn.00403700
push 0x4b1fcc
mov ecx, dword [ebp - 0x58]
add ecx, 0x228
call fcn.00403700
push 0
mov ecx, dword [ebp - 0x58]
call fcn.0048f5aa
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004020c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x34]
call fcn.0047bda9
mov esp, ebp
pop ebp
ret
Function at 0x43bdf0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov esp, ebp
pop ebp
ret

Function at 0x43be50
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ac04b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x16c
mov eax, dword [0x4d3804]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x178], ecx
mov ecx, dword [ebp - 0x178]
call fcn.0048c471
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x178]
call fcn.00404d00
test eax, eax
jne 0x43becd
push 0x4001
push 0x160
lea eax, [ebp - 0x174]
push eax
push 0
push 0x4b71e8
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0x178]
call fcn.0048c562
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x178]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.0047bda9
mov esp, ebp
pop ebp
ret

Function at 0x43bfc0
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x170
mov eax, dword [0x4d3804]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0x80
mov dword [ebp - 4], 0x4010
cmp dword [ebp + 8], 0
jne 0x43bfe9
xor eax, eax
jmp 0x43c05d
push 0x160
push 0
lea eax, [ebp - 0x170]
push eax
call fcn.0047ca40
add esp, 0xc
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 1]
movzx eax, word [edx]
and eax, 4
je 0x43c01d
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 1]
movzx eax, word [edx + 0x1e]
or eax, dword [ebp - 8]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 1]
movzx eax, word [edx]
test eax, eax
je 0x43c057
mov ecx, 1
test ecx, ecx
je 0x43c057
mov edx, dword [ebp - 4]
push edx
push 0x160
lea eax, [ebp - 0x170]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 1]
mov ecx, dword [eax + 2]
push ecx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov eax, dword [ebp - 0x16c]
mov ecx, dword [ebp - 0xc]
call fcn.0047bda9
mov esp, ebp
pop ebp
ret
Function at 0x43c0f0
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ac072
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x178
mov eax, dword [0x4d3804]
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x180]
call fcn.00402080
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
push str.abc._s
lea ecx, [ebp - 0x180]
push ecx
call fcn.00406c90
add esp, 0xc
mov dword [ebp - 0x14], 0x80
mov dword [ebp - 0x10], 0x4010
push 0x160
push 0
lea edx, [ebp - 0x17c]
push edx
call fcn.0047ca40
add esp, 0xc
mov eax, dword [ebp - 0x10]
push eax
push 0x160
lea ecx, [ebp - 0x17c]
push ecx
mov edx, dword [ebp - 0x14]
push edx
lea ecx, [ebp - 0x180]
call fcn.00429470
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov eax, dword [ebp - 0x178]
mov dword [ebp - 0x184], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x180]
call fcn.004020c0
mov eax, dword [ebp - 0x184]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x18]
call fcn.0047bda9
mov esp, ebp
pop ebp
ret

Function at 0x43c1d0
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x170
mov eax, dword [0x4d3804]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0x90
mov dword [ebp - 4], 0x4010
cmp dword [ebp + 8], 0
je 0x43c1fe
mov eax, dword [ebp - 4]
or eax, 2
mov dword [ebp - 4], eax
push 0x160
push 0
lea ecx, [ebp - 0x170]
push ecx
call fcn.0047ca40
add esp, 0xc
mov edx, dword [ebp - 4]
push edx
push 0x160
lea eax, [ebp - 0x170]
push eax
mov ecx, dword [ebp - 8]
push ecx
push str.abcdefg
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov eax, dword [ebp - 0x16c]
mov ecx, dword [ebp - 0xc]
call fcn.0047bda9
mov esp, ebp
pop ebp
ret
Function at 0x462d40
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4d3804]
mov dword [ebp - 4], eax
mov dword [ebp - 0x24], ecx
cmp dword [ebp + 8], 0
jne 0x462d5e
xor eax, eax
jmp 0x462dfd
mov eax, dword [ebp + 8]
movsx ecx, byte [eax]
test ecx, ecx
jne 0x462d6f
xor eax, eax
jmp 0x462dfd
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0x3f
mov byte [ebp - 0xf], 0x2a
mov byte [ebp - 0xe], 0x7c
mov byte [ebp - 0xd], 0x5c
mov byte [ebp - 0xc], 0x2f
mov byte [ebp - 0xb], 0x3a
mov byte [ebp - 0xa], 0x22
mov byte [ebp - 9], 0x3c
mov byte [ebp - 8], 0x3e
mov dword [ebp - 0x18], 9
mov dword [ebp - 0x1c], 0
jmp 0x462db9
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [ebp - 0x14]
jge 0x462df8
mov dword [ebp - 0x20], 0
jmp 0x462dd3
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x18]
jge 0x462df6
mov ecx, dword [ebp - 0x20]
movsx edx, byte [ebp + ecx - 0x10]
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x1c]
movsx ecx, byte [eax]
cmp edx, ecx
jne 0x462df4
xor eax, eax
jmp 0x462dfd
jmp 0x462dca
jmp 0x462db0
mov eax, 1
mov ecx, dword [ebp - 4]
call fcn.0047bda9
mov esp, ebp
pop ebp
ret 4

Function at 0x466c50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x466c92
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x466c8d
mov eax, 0x65b
jmp 0x466c94
mov eax, dword [ebp - 8]
jmp 0x466c94
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x466ca0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x466ce2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x466cdd
mov eax, 0x65b
jmp 0x466ce4
mov eax, dword [ebp - 8]
jmp 0x466ce4
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x46fcb0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ad662
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0x80], 0
jne 0x46fdb7
lea ecx, [ebp - 0x14]
call fcn.00402080
mov dword [ebp - 4], 0
push 0x104
push 0x104
lea ecx, [ebp - 0x14]
call fcn.00402140
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.00470160
push str.winhlp32.exe
lea ecx, [ebp - 0x14]
call fcn.00418210
lea ecx, [ebp - 0x14]
call fcn.00429470
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], 1
cmp dword [ebp - 0x18], 0
je 0x46fd75
push 0x6a
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x46fd6b
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_CopyIcon]
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0x80], eax
mov dword [ebp - 0x10], 0
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x10], 0
je 0x46fda8
push 0x8f
call fcn.0040c340
mov ecx, eax
call fcn.0046ee60
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x46fda8
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0x80], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004020c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x46fdd0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x4d3804]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x11c], ecx
lea eax, [ebp - 4]
push eax
push 1
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x46fe3f
mov dword [ebp - 0xc], 0x104
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x118]
push ecx
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea eax, [ebp - 0x118]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
call fcn.0047bda9
mov esp, ebp
pop ebp
ret 0xc
Function at 0x46fe60
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x4d3804]
mov dword [ebp - 4], eax
mov dword [ebp - 0x22c], ecx
mov eax, dword [ebp + 0xc]
push eax
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0x20
ja 0x46ffc3
lea edx, [ebp - 0x210]
push edx
push str..htm
push 0x80000000
mov ecx, dword [ebp - 0x22c]
call fcn.0046fdd0
test eax, eax
jne 0x46ffc3
push str._shellopencommand
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [ebp - 0x210]
push ecx
lea edx, [ebp - 0x210]
push edx
push 0x80000000
mov ecx, dword [ebp - 0x22c]
call fcn.0046fdd0
test eax, eax
jne 0x46ffc3
push str.__1_
lea eax, [ebp - 0x210]
push eax
call fcn.00415ea0
add esp, 8
mov dword [ebp - 0x228], eax
cmp dword [ebp - 0x228], 0
jne 0x46ff6c
push 0x4b89ac
lea ecx, [ebp - 0x210]
push ecx
call fcn.00415ea0
add esp, 8
mov dword [ebp - 0x228], eax
cmp dword [ebp - 0x228], 0
jne 0x46ff61
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp + eax - 0x211]
mov dword [ebp - 0x228], eax
jmp 0x46ff6a
mov ecx, dword [ebp - 0x228]
mov byte [ecx], 0
jmp 0x46ff75
mov edx, dword [ebp - 0x228]
mov byte [edx], 0
push 0x4b89b0
mov eax, dword [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x228]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
call fcn.00402640
mov dword [ebp - 0x220], eax
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x210]
push ecx
call fcn.00470010
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
mov dword [ebp - 0x214], eax
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 4]
call fcn.0047bda9
mov esp, ebp
pop ebp
ret 8
Function at 0x472139
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 0x47218c
call fcn.0049f2ed
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x47218c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x472182
xor eax, eax
jmp 0x4722a5
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 0x4721bc
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 0x4721bc
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x4722a2
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x4721e9
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.00470d0e
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x4722a2
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x472232
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x472232
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x47222c
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.00470d0e
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x472292
and dword [ebp + 0xc], 0
jmp 0x472292
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x472292
push 0xc
call fcn.00492d27
mov esi, eax
test esi, esi
pop ecx
je 0x472274
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 0x472276
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x47228d
push dword [ebp - 8]
call fcn.0048ce0b
jmp 0x472292
call fcn.0048d10d
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x4721f7
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x47d83f
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.0047d260
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x47d8da
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 [0x573624]
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 0x47d8da
cmp eax, 1
je 0x47d8fb
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 0x47d8da
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x47d8a7
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x47d8d6
xor eax, eax
inc eax
jmp 0x47d91a
cmp edi, eax
jae 0x47d8de
xor eax, eax
jmp 0x47d91a
cmp eax, esi
jae 0x47d8e5
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 [0x573624]
jmp 0x47d8fe
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 0x47e63a
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4bec60
call fcn.0047ea8c
mov edi, 0x94
mov eax, edi
call fcn.0047d260
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 [0x573624], ecx
mov eax, dword [esi + 4]
mov dword [0x573630], eax
mov edx, dword [esi + 8]
mov dword [0x573634], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x573628], esi
cmp ecx, 2
je 0x47e69a
or esi, 0x8000
mov dword [0x573628], esi
shl eax, 8
add eax, edx
mov dword [0x57362c], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x47e6d5
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x47e6d5
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x47e6ed
cmp eax, 0x20b
je 0x47e6da
mov dword [ebp - 0x1c], esi
jmp 0x47e701
cmp dword [ecx + 0x84], 0xe
jbe 0x47e6d5
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x47e6fb
cmp dword [ecx + 0x74], 0xe
jbe 0x47e6d5
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0048364c
pop ecx
test eax, eax
jne 0x47e715
push 0x1c
call fcn.0047e616
pop ecx
call fcn.00481a60
test eax, eax
jne 0x47e726
push 0x10
call fcn.0047e616
pop ecx
call fcn.00485230
mov dword [ebp - 4], esi
call fcn.0048482f
test eax, eax
jge 0x47e73f
push 0x1b
call fcn.0047e5f1
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x573ed0], eax
call fcn.0048510e
mov dword [0x573614], eax
call fcn.0048506c
test eax, eax
jge 0x47e765
push 8
call fcn.0047e5f1
pop ecx
call fcn.00484e39
test eax, eax
jge 0x47e776
push 9
call fcn.0047e5f1
pop ecx
push 1
call fcn.0047fedf
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x47e78c
push eax
call fcn.0047e5f1
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00484ddc
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x47e7ad
movzx eax, word [ebp - 0x40]
jmp 0x47e7b0
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0048b67a
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x47e7ce
push edi
call fcn.0048000c
call fcn.0048002e
jmp 0x47e800
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0047eac7
ret
Function at 0x47fdfa
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x47fe17
call fcn.0047f4ae
mov dword [eax], 0x16
xor eax, eax
jmp 0x47fe81
push esi
push 0x8c
push 1
call fcn.00480d2d
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x47fe6c
push esi
call fcn.00481866
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x47fe4a
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x47fd65
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x47fe80
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.0047d669
test ebx, ebx
pop ecx
je 0x47fe7e
push ebx
call fcn.0047f4c0
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x47ff49
Capabilities:
Terminate process

Disassembly:
push 8
push 0x4bedb8
call fcn.0047ea8c
push 8
call fcn.00482efd
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x573664], esi
jne 0x47ff7d
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x573660], esi
mov al, byte [ebp + 0x10]
mov byte [0x57365c], al
cmp dword [ebp + 0xc], edi
jne 0x47ffc7
cmp dword [0x573ec8], edi
je 0x47ffb7
mov eax, dword [0x573ec4]
sub eax, 4
mov dword [0x573ec4], eax
cmp eax, dword [0x573ec8]
jb 0x47ffb7
mov eax, dword [eax]
cmp eax, edi
je 0x47ff98
call eax
jmp 0x47ff98
push 0x4d20cc
mov eax, 0x4d20c4
call fcn.0047fec7
pop ecx
push 0x4d20d8
mov eax, 0x4d20d0
call fcn.0047fec7
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x47fff8
cmp dword [ebp + 0x10], edi
jne 0x480006
mov dword [0x573664], esi
push dword [ebp + 8]
call fcn.0047fe85
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x480005
push 8
call fcn.00482e48
pop ecx
ret
call fcn.0047eac7
ret