joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43ab17
Capabilities:
Create http request

Disassembly:
push ebp
mov eax, 0x105c
lea ebp, [esp - 0xfdc]
call fcn.0046cee9
mov eax, dword [0x492bc0]
push ebx
push esi
mov esi, dword [ebp + 0xfe4]
xor ebx, ebx
push edi
mov dword [ebp + 0xfd8], eax
xor eax, eax
cmp esi, ebx
mov word [ebp - 0x70], bx
mov ecx, 0x411
lea edi, [ebp - 0x6e]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x80], ebx
stosw word es:[edi], ax
mov dword [ebp - 0x7c], 0x824
jne 0x43ab6e
mov dword [ebp - 0x74], 0x80004003
jmp 0x43abf8
push ebx
push ebx
push ebx
push ebx
push 0x4047b0
call dword [sym.imp.WININET.dll_InternetOpenW]
cmp eax, ebx
mov dword [ebp - 0x78], eax
je 0x43abd7
push ebx
push 0x84200100
push ebx
push ebx
push dword [esi]
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov edi, eax
cmp edi, ebx
je 0x43abda
push ebx
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x70]
push eax
push 0x21
push edi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x43abe1
mov eax, dword [esi]
cmp eax, ebx
je 0x43abbe
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
cmp eax, ebx
mov dword [esi], eax
jne 0x43abe1
mov dword [ebp - 0x74], 0x8007000e
jmp 0x43abe1
mov edi, dword [ebp - 0x80]
mov dword [ebp - 0x74], 0x80004005
cmp edi, ebx
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
je 0x43abee
push edi
call esi
cmp dword [ebp - 0x78], ebx
je 0x43abf8
push dword [ebp - 0x78]
call esi
mov ecx, dword [ebp + 0xfd8]
mov eax, dword [ebp - 0x74]
pop edi
pop esi
pop ebx
call fcn.0046cd1e
add ebp, 0xfdc
leave
ret
Function at 0x43b86e
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0x20]
push ebx
mov ebx, dword [ebp + 0x1c]
push edi
xor edi, edi
cmp eax, edi
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edi
jne 0x43b895
cmp ebx, edi
jne 0x43b897
mov edi, 0x80004003
jmp 0x43b941
mov dword [eax], edi
push edi
lea eax, [ebp - 8]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
jne 0x43b8b0
mov edi, 0x80040e96
jmp 0x43b941
push esi
push 0x30
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, edi
pop ecx
je 0x43b8c9
push edi
mov ecx, eax
call fcn.0043b3d8
mov esi, eax
jmp 0x43b8cb
xor esi, esi
cmp esi, edi
jne 0x43b8d6
mov edi, 0x8007000e
jmp 0x43b940
mov eax, dword [esi]
push esi
call dword [eax + 4]
cmp ebx, edi
mov eax, dword [ebp - 4]
mov dword [esi + 8], eax
je 0x43b8ef
mov eax, dword [ebx]
push ebx
call dword [eax + 4]
mov dword [esi + 0xc], ebx
mov ebx, dword [ebp + 8]
push dword [ebp + 0xc]
mov edi, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esi + 0x14], ebx
call edi
push dword [ebp + 0x10]
mov dword [esi + 0x18], eax
call edi
mov dword [esi + 0x1c], eax
push dword [ebx]
call edi
push 0x404940
mov dword [esi + 0x20], eax
call edi
push dword [ebp + 0x18]
mov dword [esi + 0x24], eax
call edi
push dword [ebp + 0x14]
mov dword [esi + 0x28], eax
call edi
push dword [ebp + 0x20]
mov ecx, dword [ebp - 4]
push esi
mov dword [esi + 0x2c], eax
call fcn.0043ad06
mov edi, eax
mov eax, dword [esi]
push esi
call dword [eax + 8]
pop esi
mov eax, edi
pop edi
pop ebx
leave
ret 0x1c
Function at 0x44601b
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x1d4]
sub esp, 0x254
mov eax, dword [0x492bc0]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
xor edi, edi
push edi
push edi
push dword [0x491a9c]
mov dword [ebp + 0x1d0], eax
push dword [ebp + 0x1dc]
mov ebx, ecx
mov dword [ebp - 0x7c], edi
call esi
cmp eax, 0xffffffff
jne 0x446071
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042f6c9
cmp eax, edi
pop ecx
mov dword [ebp - 0x7c], eax
jl 0x44619e
push edi
push edi
push dword [0x491a9c]
push dword [ebp + 0x1dc]
call esi
push edi
lea eax, [ebp - 0x80]
push eax
mov esi, 0x248
push esi
lea eax, [ebp - 0x78]
push eax
push dword [ebp + 0x1dc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4460a5
cmp dword [ebp - 0x80], esi
je 0x4460b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042f6c9
pop ecx
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x7c], edi
jl 0x44619e
mov eax, dword [0x491a9c]
add eax, 0x248
xor ecx, ecx
test eax, eax
setge cl
push 4
mov edi, 0x40547c
lea esi, [ebp - 0x78]
dec ecx
mov dword [ebx + 0x1494], ecx
mov eax, dword [0x491a9c]
add eax, 0x248
mov dword [ebx + 0x1490], eax
pop ecx
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
jne 0x446103
mov dword [ebx + 0x2208], 1
jmp 0x44612d
push 4
pop ecx
mov edi, 0x40546c
lea esi, [ebp - 0x78]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
jne 0x446126
cmp dword [ebx + 0x2208], 2
je 0x44612d
mov dword [ebp - 0x7c], 0x80040231
jmp 0x44612d
mov dword [ebp - 0x7c], 0x80040210
cmp dword [ebp - 0x7c], 0
jl 0x44619e
mov eax, dword [ebp - 0x68]
mov dword [ebx + 0x1fd0], eax
mov eax, dword [ebp - 0x64]
mov dword [ebx + 0x1fd4], eax
mov eax, dword [ebp - 0x60]
mov dword [ebx + 0x1fd8], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebx + 0x1fdc], eax
mov eax, dword [ebp - 0x58]
mov dword [ebx + 0x1ff4], eax
lea eax, [ebp - 0x54]
push eax
push 0x104
lea eax, [ebx + 0x2000]
push eax
call fcn.0040ac17
mov eax, dword [ebp + 0x1c8]
push 5
mov dword [ebx + 0x1ff8], eax
mov eax, dword [ebp + 0x1cc]
lea edi, [ebx + 0x1fe0]
pop ecx
lea esi, [ebp + 0x1b4]
rep movsd dword es:[edi], dword [esi]
mov dword [ebx + 0x1ffc], eax
cmp dword [ebp - 0x7c], 0x800300fd
pop edi
pop esi
pop ebx
jne 0x4461b1
mov dword [ebp - 0x7c], 0x80040210
mov ecx, dword [ebp + 0x1d0]
mov eax, dword [ebp - 0x7c]
call fcn.0046cd1e
add ebp, 0x1d4
leave
ret 4
Function at 0x4461c9
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x492bc0]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x1484], ebx
mov dword [ebp - 4], eax
jne 0x4461eb
inc ebx
jmp 0x44625d
lea eax, [esi + 0x1e]
push eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.0040ac17
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call dword [sym.imp.MSVCRT.dll_wcsrchr]
test eax, eax
pop ecx
pop ecx
jne 0x44621c
mov ebx, 0x800700a1
jmp 0x446252
and word [eax + 2], 0
push 0
lea eax, [ebp - 0x214]
push eax
lea eax, [esi + 0x10]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x44625d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042f6c9
mov ebx, eax
test ebx, ebx
pop ecx
jge 0x44625d
and dword [esi + 0x14], 0
mov dword [esi + 0x10], 0xa00000
mov ecx, dword [ebp - 4]
pop esi
mov eax, ebx
pop ebx
call fcn.0046cd1e
leave
ret
Function at 0x45e3a5
Capabilities:
Create thread

Disassembly:
push esi
push edi
mov edi, ecx
push edi
xor esi, esi
push esi
push 0x45e1b3
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
cmp eax, 0xffffffff
jne 0x45e3e4
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x45e3d2
call esi
mov esi, eax
jmp 0x45e3ea
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x45e3ea
mov dword [edi + 0x80], eax
pop edi
mov eax, esi
pop esi
ret

Function at 0x4618f5
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x48783b
call fcn.0046cde8
sub esp, 0x14
fld qword [ebp + 0xc]
mov al, byte [ebp + 0x14]
push esi
mov esi, ecx
and dword [esi], 0
fstp qword [esi + 0x18]
fld qword [0x402cc8]
or dword [esi + 0xc], 0xffffffff
or dword [esi + 0x10], 0xffffffff
fstp qword [esi + 0x20]
push edi
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x20]
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov byte [esi + 0x28], al
call fcn.0045f2e5
and dword [ebp - 0x18], 0
or dword [ebp - 0x14], 0xffffffff
or dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x1c], eax
and dword [ebp - 4], 0
lea eax, [ebp - 0x20]
push eax
push edi
lea ecx, [esi + 0x30]
call fcn.0046142e
lea ecx, [ebp - 0x20]
call fcn.0046a5c8
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 0x18

Function at 0x462ed5
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8

Function at 0x462eef
Capabilities:
Set registry value

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0x10]
push dword [esp + 0x18]
push 0
push dword [esp + 0x18]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop esi
ret 0xc

Function at 0x462f1b
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov ebx, ecx
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x462f26
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
ret 8

Function at 0x463878
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push edi
xor edi, edi
push edi
push edi
push edi
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, edi
mov dword [esi + 0x34], eax
jne 0x463894
xor al, al
jmp 0x4638ae
lea eax, [esp + 8]
push eax
push edi
push esi
push 0x463844
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ecx
ret
Function at 0x46394b
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x492bc0]
push ebx
push esi
push 0x2001f
push dword [ebp + 0x19c]
mov ebx, ecx
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 0x74]
mov dword [ebp + 0x190], eax
mov dword [ebp - 0x74], esi
call fcn.00462ea0
cmp eax, esi
jne 0x4639d3
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x46399c
lea eax, [ebp - 0x70]
push eax
call fcn.0046394b
cmp eax, esi
jne 0x4639d2
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
push esi
push dword [ebp - 0x74]
mov dword [ebp - 0x78], 0x100
call edi
test eax, eax
lea ecx, [ebp - 0x74]
je 0x46398f
call fcn.00462e3b
push dword [ebp + 0x19c]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
lea ecx, [ebp - 0x74]
mov esi, eax
call fcn.00462e3b
mov ecx, dword [ebp + 0x190]
mov eax, esi
pop esi
pop ebx
call fcn.0046cd1e
add ebp, 0x194
leave
ret 4
Function at 0x465cce
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x487a47
call fcn.0046cde8
sub esp, 0x420
mov eax, dword [0x492bc0]
push ebx
push esi
push edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
call dword [0x491038]
xor edi, edi
mov dword [ebp - 0x41c], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x428], esi
mov dword [ebp - 0x42c], edi
mov dword [ebp - 0x418], edi
push 2
push edi
push dword [ebp + 8]
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
cmp ebx, edi
mov dword [ebp - 0x420], ebx
jne 0x465d39
call fcn.00462d71
mov esi, eax
jmp 0x465df5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, edi
je 0x465dc2
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
mov dword [ebp - 0x424], eax
je 0x465dc2
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + esi + 2]
push eax
lea ecx, [ebp - 0x418]
mov dword [ebp + 8], esi
mov byte [ebp - 4], 2
call fcn.004641e2
jmp 0x465d8c
cmp dword [ebp - 0x418], edi
mov dword [ebp - 4], 1
jne 0x465da2
mov esi, 0x8007000e
jmp 0x465de9
call dword [0x491038]
push esi
push dword [ebp - 0x418]
push esi
push dword [ebp - 0x424]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x465dc9
call fcn.00462d71
jmp 0x465de7
mov eax, dword [ebp - 0x418]
push dword [ebp + 0x14]
mov word [eax + esi*2], di
push dword [ebp - 0x418]
lea ecx, [ebp - 0x42c]
call fcn.00465b69
mov esi, eax
push dword [ebp - 0x420]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x465e0e
lea ecx, [ebp - 0x418]
call fcn.00413171
lea ecx, [ebp - 0x41c]
call fcn.0043d5b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
mov eax, esi
call fcn.0046cd1e
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x466bee
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x28
mov eax, dword [0x492bc0]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x34], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor ebp, ebp
push ebp
mov dword [esp + 0x48], eax
call dword [sym.imp.ole32.dll_CoInitialize]
push ebp
push dword [esp + 0x40]
mov ebx, 0x4956d4
push 0x492b30
mov ecx, ebx
call fcn.0046334a
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x495704], eax
mov esi, 0x407930
lea edi, [esp + 0x2c]
lea eax, [esp + 0x2c]
movsd dword es:[edi], dword [esi]
push eax
push dword [esp + 0x48]
movsw word es:[edi], word [esi]
mov dword [esp + 0x44], ebp
call fcn.00462d2c
mov esi, eax
cmp esi, ebp
pop ecx
pop ecx
je 0x466c9b
mov edi, dword [sym.imp.KERNEL32.dll_CompareStringW]
push 0xffffffffffffffff
push 0x407918
push 0xffffffffffffffff
push esi
push 1
push 0x7f
call edi
cmp eax, 2
je 0x466cc3
push 0xffffffffffffffff
push 0x407904
push 0xffffffffffffffff
push esi
push 1
push 0x7f
call edi
cmp eax, 2
je 0x466cdd
lea eax, [esp + 0x2c]
push eax
push esi
call fcn.00462d2c
mov esi, eax
cmp esi, ebp
pop ecx
pop ecx
jne 0x466c5e
mov ecx, ebx
call fcn.00463878
push 1
push 4
mov ecx, ebx
call fcn.00463c73
push ebp
push 0x3a98
push ebp
push ebp
call dword [sym.imp.USER32.dll_SetTimer]
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
jmp 0x466d17
push ebp
push ebp
push 0xd1
push ebx
call fcn.00465ec7
push ebp
push ebp
mov ecx, ebx
call fcn.004660bb
mov esi, eax
jmp 0x466d3b
push ebp
push 1
push 0xd1
push ebx
call fcn.00465ec7
push ebp
push ebp
mov ecx, ebx
call fcn.00466056
jmp 0x466cd9
cmp dword [esp + 0x14], 0x113
jne 0x466d0c
call fcn.004478c8
call fcn.00446701
jmp 0x466d17
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push ebp
push ebp
lea eax, [esp + 0x18]
push ebp
push eax
call esi
test eax, eax
jne 0x466cf6
mov ecx, ebx
call fcn.00463cb5
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [esp + 0x3c]
mov ecx, ebx
call fcn.00463c21
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [esp + 0x34]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
call fcn.0046cd1e
add esp, 0x28
ret 0x10
Function at 0x469ec4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 2
xor ebx, ebx
lea eax, [ebp - 0xc]
push eax
mov esi, ecx
push ebx
push dword [esi + 0x11c]
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
call edi
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
jne 0x469f1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
je 0x469f1f
push eax
call fcn.0042f6c9
cmp eax, ebx
pop ecx
mov dword [ebp - 4], eax
jl 0x469fb6
mov dword [ebp - 4], 0x80030019
jmp 0x469fb6
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp eax, ebx
push ebx
mov dword [ebp - 0x28], eax
setge cl
lea eax, [ebp - 8]
push eax
push 0x18
lea eax, [ebp - 0x28]
push eax
push dword [esi + 0x11c]
dec ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x469f5d
cmp dword [ebp - 8], 0x18
je 0x469f7a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042f6c9
cmp eax, ebx
pop ecx
mov dword [ebp - 4], eax
jl 0x469fb6
mov dword [ebp - 4], 0x8003001d
jmp 0x469fb6
push 2
push ebx
push dword [ebp + 8]
push dword [esi + 0x11c]
call edi
cmp eax, 0xffffffff
je 0x469f9d
push dword [esi + 0x11c]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x469fa8
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x469f01
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x46bb57
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
xor eax, eax
push esi
mov esi, ecx
push edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0x24]
mov ecx, dword [eax]
push eax
push ecx
lea edx, [esi + 0x20]
lea eax, [ebp - 0x10]
push eax
mov ecx, edx
call fcn.0046a572
mov eax, dword [esi + 0x3c]
mov ebx, dword [esi + 0x38]
mov dword [ebp - 8], eax
mov edi, eax
mov eax, edi
or eax, ebx
je 0x46bc7c
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [esi + 0x2c]
push ebx
mov dword [ebp - 8], edi
push dword [eax + 0x11c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x46bbc9
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x46bc61
push 0
lea eax, [ebp - 0xc]
push eax
push 0x18
lea eax, [ebp - 0x38]
push eax
mov eax, dword [esi + 0x2c]
push dword [eax + 0x11c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46bbee
cmp dword [ebp - 0xc], 0x18
je 0x46bc09
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042f6c9
test eax, eax
pop ecx
mov dword [ebp - 4], eax
jl 0x46bc7c
mov dword [ebp - 4], 0x8004022d
cmp dword [ebp - 4], 0
jl 0x46bc7c
lea ecx, [esi + 0x20]
mov eax, dword [ecx + 4]
lea edx, [ebp - 0x38]
push edx
push eax
call fcn.0046abba
mov eax, dword [ebp - 0x30]
add dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
adc dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x24]
mov edx, eax
or edx, ecx
je 0x46bc52
cmp ebx, ecx
jne 0x46bc3f
cmp edi, eax
je 0x46bc49
cmp dword [ebp - 0x20], ecx
jne 0x46bc52
cmp dword [ebp - 0x1c], eax
jne 0x46bc52
xor edi, edi
xor ebx, ebx
jmp 0x46bb93
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], edi
mov ebx, ecx
mov edi, eax
jmp 0x46bb93
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042f6c9
test eax, eax
pop ecx
mov dword [ebp - 4], eax
jl 0x46bc7c
mov dword [ebp - 4], 0x8004022d
mov eax, dword [esi + 0x2c]
cmp dword [eax + 8], 0
je 0x46bca5
mov ecx, dword [esi + 0x30]
inc ecx
imul ecx, ecx, 0x18
add eax, ecx
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [eax]
jne 0x46bc9d
mov edx, dword [ebp - 0x14]
cmp edx, dword [eax + 4]
je 0x46bca5
mov dword [eax], ecx
mov ecx, dword [ebp - 0x14]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x46cd1e
Capabilities:
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x2a8]
sub esp, 0x328
mov eax, dword [0x492bc0]
push edi
mov dword [ebp + 0x2a4], eax
xor eax, eax
and dword [ebp - 0x28], eax
push 0x13
pop ecx
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
mov ecx, 0xb2
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x80], 0xc0000409
lea eax, [ebp + 0x2ac]
mov eax, dword [eax]
mov dword [ebp - 0x74], eax
lea eax, [ebp + 0x2ac]
mov dword [ebp - 0x28], 0x10001
mov eax, dword [eax]
mov dword [ebp + 0x90], eax
lea eax, [ebp + 0x2ac]
mov dword [ebp + 0x9c], eax
push ss
pop dword [ebp + 0xa0]
lea eax, [ebp - 0x80]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x28]
push 0
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
push 0x502
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp + 0x2a4]
call fcn.0046cd1e
pop edi
add ebp, 0x2a8
leave
ret
cmp ecx, dword [0x492bc0]
jne 0x46cc09
ret

Function at 0x46cf26
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.0046cee9
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov dword [ebp - 4], esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call ebx
test eax, eax
je 0x46cfaa
mov edi, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x48]
lea esi, [eax - 1]
not esi
and esi, dword [ebp - 4]
mov dword [ebp - 8], eax
sub esi, eax
lea eax, [edi + 0x2000]
cmp esi, eax
jb 0x46cfaa
mov dword [ebp - 4], edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call ebx
test eax, eax
je 0x46cfaa
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], edi
je 0x46cf7e
test byte [ebp - 0x13], 1
mov ebx, dword [ebp - 0x28]
je 0x46cfa6
xor eax, eax
inc eax
jmp 0x46cfce
cmp esi, ebx
jae 0x46cfae
xor eax, eax
jmp 0x46cfce
push 4
push edi
push dword [ebp - 8]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
lea eax, [ebp - 0xc]
push eax
push 0x104
push dword [ebp - 8]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x46d00d
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x74
push 0x407bc8
call fcn.0046cb85
xor edi, edi
mov dword [ebp - 0x20], edi
push edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call ebx
cmp word [eax], 0x5a4d
jne 0x46d04d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x46d04d
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x46d065
cmp eax, 0x20b
je 0x46d052
mov dword [ebp - 0x1c], edi
jmp 0x46d079
cmp dword [ecx + 0x84], 0xe
jbe 0x46d04d
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x46d073
cmp dword [ecx + 0x74], 0xe
jbe 0x46d04d
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 2
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x49578c], 0xffffffff
or dword [0x495790], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x495780]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x49577c]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x495788], eax
call fcn.0046d217
call fcn.0046d3cd
cmp dword [0x492be0], edi
jne 0x46d0d9
push 0x462d99
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.0046d3bb
push 0x491034
push 0x491030
call sub.MSVCRT.dll__initterm
push 0x46d25b
call fcn.0046cbf7
mov eax, dword [0x495778]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x495774]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCRT.dll___wgetmainargs]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, edi
jge 0x46d12d
push 8
call sub.MSVCRT.dll__amsg_exit
pop ecx
push 0x49102c
push section..data
call sub.MSVCRT.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCRT.dll__wcmdln]
mov esi, dword [eax]
cmp esi, edi
jne 0x46d157
or dword [ebp - 4], 0xffffffff
mov eax, 0xff
jmp 0x46d211
mov dword [ebp - 0x24], esi
mov ax, word [esi]
cmp ax, 0x20
ja 0x46d1c6
cmp ax, di
je 0x46d16d
cmp dword [ebp - 0x20], edi
jne 0x46d1c6
mov ax, word [esi]
cmp ax, di
je 0x46d182
cmp ax, 0x20
ja 0x46d182
inc esi
inc esi
mov dword [ebp - 0x24], esi
jmp 0x46d16d
mov dword [ebp - 0x58], edi
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x58], 1
je 0x46d19e
movzx eax, word [ebp - 0x54]
jmp 0x46d1a1
push 0xa
pop eax
push eax
push esi
push edi
push edi
call ebx
push eax
call fcn.00466bee
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], edi
jne 0x46d1be
push esi
call dword [sym.imp.MSVCRT.dll_exit]
call dword [sym.imp.MSVCRT.dll__cexit]
jmp 0x46d20b
cmp ax, 0x22
jne 0x46d1d7
xor eax, eax
cmp dword [ebp - 0x20], edi
sete al
mov dword [ebp - 0x20], eax
inc esi
inc esi
jmp 0x46d157
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0046cbc0
ret