joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406050
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0xc
mov eax, dword [0x40b100]
xor eax, esp
mov dword [esp + 8], eax
push ebp
push esi
mov esi, dword [esp + 0x18]
cmp dword [esi + 8], 0
mov ebp, 1
jl 0x40616d
cmp dword [esi + 0x14], 0
jne 0x40608c
push ebp
push esi
call fcn.00405a50
add esp, 8
mov ebp, eax
mov dword [esi + 0x14], 1
mov eax, dword [esi + 0x2038]
test eax, eax
je 0x4060b7
push eax
call dword [sym.imp.php5ts.dll_zend_hash_destroy]
mov eax, dword [esi + 0x2038]
push eax
call dword [sym.imp.php5ts.dll__efree]
add esp, 8
mov dword [esi + 0x2038], 0
cmp dword [0x40b154], 0
je 0x4060cc
cmp dword [esi + 4], 0
jne 0x4060cc
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
push ebx
mov ebx, dword [esp + 0x20]
test ebx, ebx
jne 0x4060da
cmp dword [esi + 0x10], ebx
jne 0x406159
mov eax, dword [esi + 8]
test eax, eax
jl 0x406159
cmp dword [esi + 4], 0
push edi
jne 0x406108
push eax
call dword [sym.imp.MSVCR90.dll__get_osfhandle]
add esp, 4
mov edi, eax
test ebx, ebx
jne 0x4060ff
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push edi
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
jmp 0x40613d
test ebx, ebx
jne 0x406133
push 1
push eax
call dword [sym.imp.WS2_32.dll_shutdown]
mov edi, dword [sym.imp.WS2_32.dll_recv]
jmp 0x406120
mov edx, dword [esi + 8]
push 0
push 8
lea ecx, [esp + 0x18]
push ecx
push edx
call edi
test eax, eax
jg 0x406120
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop ebx
mov dword [esi + 8], 0xffffffff
pop esi
mov eax, ebp
pop ebp
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.00406814
add esp, 0xc
ret
pop ebx
pop esi
mov eax, ebp
pop ebp
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.00406814
add esp, 0xc
ret
mov ecx, dword [esp + 0x10]
pop esi
mov eax, ebp
pop ebp
xor ecx, esp
call fcn.00406814
add esp, 0xc
ret

Function at 0x406240
Capabilities:
Query environment variable

Disassembly:
push 0x4097c0
call dword [sym.imp.MSVCR90.dll_getenv]
add esp, 4
test eax, eax
je 0x40626f
push str.Windows_NT
push eax
call dword [sym.imp.MSVCR90.dll__stricmp]
add esp, 8
test eax, eax
jne 0x40626f
mov dword [0x40b154], 1
ret

Function at 0x406270
Capabilities:
Terminate process

Disassembly:
push ecx
push 0x10
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 4
test eax, eax
je 0x4062cd
push esi
mov esi, dword [esp + 0x18]
mov dword [esp + 4], eax
mov byte [eax + 0xc], 6
mov eax, dword [esp + 0x14]
push esi
push eax
call dword [sym.imp.php5ts.dll_zend_strndup]
mov ecx, dword [esp + 0xc]
push 2
mov dword [ecx], eax
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
push 0
push 4
lea eax, [esp + 0x18]
push eax
inc ecx
mov dword [edx + 4], esi
mov edx, dword [esp + 0x24]
push ecx
push edx
push 0x40b12c
call dword [sym.imp.php5ts.dll__zend_hash_add_or_update]
add esp, 0x24
pop esi
pop ecx
ret
push str.Out_of_memory_n
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
add esp, 8
push 1
call dword [sym.imp.MSVCR90.dll_exit]
int3
Function at 0x406310
Capabilities:
Query environment variable

Disassembly:
push ecx
cmp dword [0x40b158], 0
jne 0x406419
push esi
push 1
push 0x4062f0
push 0
push 0
push 0x40b12c
call dword [sym.imp.php5ts.dll__zend_hash_init]
push 1
push 0x40843c
push 0xf
push str.FCGI_MPXS_CONNS
call fcn.00406270
mov esi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
add esp, 0x24
push 0xfffffffffffffff5
mov dword [0x40b158], 1
call esi
cmp eax, 0xffffffff
jne 0x40640a
push 0xfffffffffffffff4
call esi
cmp eax, 0xffffffff
jne 0x40640a
push 0xfffffffffffffff6
call esi
cmp eax, 0xffffffff
je 0x40640a
push edi
push 0xfffffffffffffff6
mov dword [esp + 0xc], 0
call esi
push 0
push 0
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
mov esi, dword [sym.imp.MSVCR90.dll_getenv]
push str._FCGI_SHUTDOWN_EVENT_
call esi
mov edi, dword [sym.imp.MSVCR90.dll_atoi]
add esp, 4
test eax, eax
je 0x4063de
push eax
call edi
add esp, 4
push 0
push 0
push eax
push 0x404370
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x4063de
pop edi
or eax, 0xffffffff
pop esi
pop ecx
ret
push str._FCGI_MUTEX_
call esi
add esp, 4
test eax, eax
je 0x4063f7
push eax
call edi
add esp, 4
mov dword [0x40b0fc], eax
pop edi
mov dword [0x40b15c], 1
mov eax, 1
pop esi
pop ecx
ret
mov dword [0x40b15c], 0
xor eax, eax
pop esi
pop ecx
ret
mov eax, dword [0x40b15c]
pop ecx
ret

Function at 0x406420
Capabilities:
Create thread
Query environment variable

Disassembly:
cmp dword [0x40b158], 0
jne 0x40642e
jmp fcn.00406310
mov eax, dword [0x40b15c]
ret
Function at 0x406814
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40b100]
jne 0x40681e
repz ret
jmp fcn.00406b14
Function at 0x40e7e0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 0xc], 0
jmp 0x40e805
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp + 0xc]
jae 0x40e878
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0xc]
movzx ecx, byte [eax]
movzx edx, byte [ebp - 8]
xor ecx, edx
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 8]
shr eax, 8
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], 0
jmp 0x40e83a
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 8
jge 0x40e86d
mov edx, dword [ebp - 0x10]
and edx, 1
neg edx
sbb edx, edx
neg edx
mov byte [ebp - 0x15], dl
mov eax, dword [ebp - 0x10]
shr eax, 1
mov dword [ebp - 0x10], eax
movzx ecx, byte [ebp - 0x15]
test ecx, ecx
je 0x40e86b
mov edx, dword [ebp - 0x10]
xor edx, 0xedb88320
mov dword [ebp - 0x10], edx
jmp 0x40e831
mov eax, dword [ebp - 8]
xor eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
jmp 0x40e7fc
mov eax, dword [ebp - 8]
not eax
mov esp, ebp
pop ebp
ret

Function at 0x4034cc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x4034db
pop dword [ebp - 0x48]
mov eax, 0x93de6fb0
sub eax, 0x939e3ad5
sub dword [ebp - 0x48], eax
mov dword [ebp - 0x58], 0x75172860
add dword [ebp - 0x58], 0xd93b1ceb
mov dword [ebp - 0x54], 0x2bc1988f
sub dword [ebp - 0x54], 0xf98e4c4a
mov dword [ebp - 0x50], 0x8ca14fd5
sub dword [ebp - 0x50], 0x40550ba7
mov dword [ebp - 0x4c], 0xf5ad7db1
sub dword [ebp - 0x4c], 0xf5ad7db1
lea eax, [ebp - 0x58]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x48]
call dword [eax]
mov dword [ebp - 0x58], 0x3f520027
add dword [ebp - 0x58], 0x3520692f
mov dword [ebp - 0x54], 0x675e5299
sub dword [ebp - 0x54], 0x25f1f124
mov dword [ebp - 0x50], 0xb9bc73ca
add dword [ebp - 0x50], 0xa9b2f8a2
mov dword [ebp - 0x4c], 0xff1e11a3
sub dword [ebp - 0x4c], 0xff1e11a3
lea ebx, [ebp - 0x58]
push ebx
push eax
mov eax, 0xa132092f
add eax, 0x5f0e3721
add eax, dword [ebp - 0x48]
call dword [eax]
push 0x40
push 0x1000
push 0x3b384
push 0
call eax
mov ecx, 0x5956
mov ebx, eax
mov esi, 0x408400
add esi, dword [ebp - 0x48]
mov edx, 0x47e4a858
sub edx, 0x1e01d51e
mov dword [ebp - 0x28], 0x3cc1f684
mov edi, dword [esi]
mov dword [ebp - 8], 0xd619172a
sub edi, edx
xor dword [ebp - 0x1c], edi
mov dword [ebx], edi
xor dword [ebp - 0xc], 0x788b79e8
add ebx, 0x5fb1bc7d
sub ebx, 0x5fb1bc79
add esi, 4
loop 0x4035ec
add eax, 0x7e5b59d5
add eax, 0x81a5fe56
xor ebx, ebx
add ebx, eax
add eax, 0xe92fe538
add eax, 0x16d01acd
mov ecx, 0x5f34154d
sub ecx, 0x5ef4154d
add ecx, dword [ebp - 0x48]
call ebx
leave
ret
Function at 0x4a1c30
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x98000]
push edi
jmp 0x4a1c4a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4a1c51
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4a1c40
mov eax, 1
add ebx, ebx
jne 0x4a1c63
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4a1c74
jne 0x4a1c93
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4a1c93
dec eax
add ebx, ebx
jne 0x4a1c80
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4a1c58
add ebx, ebx
jne 0x4a1c8f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4a1ce5
xor ecx, ecx
sub eax, 3
jb 0x4a1cab
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4a1d1a
sar eax, 1
mov ebp, eax
jmp 0x4a1cb6
add ebx, ebx
jne 0x4a1cb6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4a1c84
inc ecx
add ebx, ebx
jne 0x4a1cc4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4a1c84
add ebx, ebx
jne 0x4a1cd1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4a1cc6
jne 0x4a1ce2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4a1cc6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4a1d04
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4a1cf6
jmp 0x4a1c46
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4a1d04
add edi, ecx
jmp 0x4a1c46
pop esi
mov edi, esi
mov ecx, 0x3bf
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4a1d22
cmp byte [edi], 7
jne 0x4a1d22
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4a1d27
lea edi, [esi + 0x9f000]
mov eax, dword [edi]
or eax, eax
je 0x4a1d96
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x12b264]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x12b2a0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4a1d54
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x12b2a8]
or eax, eax
je 0x4a1d90
mov dword [ebx], eax
add ebx, 4
jmp 0x4a1d71
call dword [esi + 0x12b2a4]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4a1dc7
cmp al, 0xef
ja 0x4a1dba
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x4a1d9c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4a1da9
mov ebp, dword [esi + 0x12b2ac]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x237]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4a1dfb
sub esp, 0xffffff80
jmp 0x40125d
Function at 0x416b2b
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x425458]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00407fa5
mov dword [ebp - 0x14], eax
cmp dword [0x823068], esi
jne 0x416c1e
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x416bab
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x416cfe
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x416cfe
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x416cfe
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x823068], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x82306c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x823070], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x823078], eax
test eax, eax
je 0x416c1b
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x823074], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x416c43
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x416c36
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x416c58
push 4
pop eax
jmp 0x416d00
cmp dword [ebp - 0x14], esi
je 0x416c58
push dword [0x823068]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x416c3d
mov eax, dword [0x823074]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x416cb6
cmp dword [0x823078], edi
je 0x416cb6
push eax
call ebx
push dword [0x823078]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x416cb6
test eax, eax
je 0x416cb6
call ecx
test eax, eax
je 0x416cab
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x416cab
test byte [ebp - 8], 1
jne 0x416cb6
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x416ce6
mov eax, dword [0x82306c]
cmp eax, edi
je 0x416ce3
push eax
call ebx
test eax, eax
je 0x416ce3
call eax
mov esi, eax
test esi, esi
je 0x416ce3
mov eax, dword [0x823070]
cmp eax, edi
je 0x416ce3
push eax
call ebx
test eax, eax
je 0x416ce3
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x823068]
call ebx
test eax, eax
je 0x416cfe
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x416d00
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406f4f
mov esp, ebp
pop ebp
ret
Function at 0x409904
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4099d7
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4099f0
push ebx
push 0x4099fc
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.0040336c
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00402750
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004033cc
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x409984
mov al, 0x69
call fcn.004095a8
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.004098d8
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
dec eax
je 0x40998d
call fcn.004098d8
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4099de
lea eax, [ebp - 4]
call fcn.00403150
ret

Function at 0x409a70
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409b24
jmp 0x409b19
cmp dword [esi + 0x10], 0x1000
jne 0x409b05
test byte [esi + 0x15], 1
jne 0x409b05
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x409ac4
cmp eax, 2
je 0x409ac4
cmp eax, 0x10
je 0x409ac4
cmp eax, 0x20
jne 0x409ad9
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409ad9
mov bl, 1
xor ebp, ebp
jmp 0x409aea
mov eax, dword [esi]
add eax, ebp
call fcn.00409a68
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x409add
test bl, bl
je 0x409b05
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409b24
mov eax, dword [esi + 4]
cmp eax, edi
je 0x409a9c
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x41208a
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x4b1064
push eax
push dword fs:[0]
mov dword fs:[0], esp
xor eax, eax
mov dword [eax], ecx
push eax
inc ebp
inc ebx
outsd dx, dword [esi]
insd dword es:[edi], dx
jo 0x41210a
arpl word [edx + esi], si
mov cl, 0xa5
cdq
invalid
invalid
Function at 0x403021
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x403048
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x40304b
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.00402ffd
pop esi
leave
ret 8

Function at 0x403c9f
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x403cde
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x403cde
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x403cde
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x403cde
cmp dword [ecx + 0x74], 0xe
jbe 0x403cde
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x404270
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [0x409040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x404297
mov ecx, 5
int 0x29
push 2
call fcn.00403d43
push 0x50
lea eax, [ebp - 0x320]
push 0
push eax
call sub.msvcrt.dll_memset
push 0x2cc
lea eax, [ebp - 0x2d0]
push 0
push eax
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x320]
add esp, 0x1c
mov dword [ebp - 0x328], eax
lea eax, [ebp - 0x2d0]
mov dword [ebp - 0x324], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x228], edx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x234], edi
mov word [ebp - 0x208], ss
mov word [ebp - 0x214], cs
mov word [ebp - 0x238], ds
mov word [ebp - 0x23c], es
mov word [ebp - 0x240], fs
mov word [ebp - 0x244], gs
pushfd
pop dword [ebp - 0x210]
mov eax, dword [ebp + 4]
mov dword [ebp - 0x218], eax
lea eax, [ebp + 4]
mov dword [ebp - 0x20c], eax
mov dword [ebp - 0x2d0], 0x10001
mov eax, dword [eax - 4]
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 4]
mov dword [ebp - 0x320], 0xc0000417
mov dword [ebp - 0x31c], 1
mov dword [ebp - 0x314], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x328]
push eax
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x4043a2
test esi, esi
jne 0x4043a2
push 2
call fcn.00403d43
add esp, 4
push 0xc0000417
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00403446
mov esp, ebp
pop ebp
ret

Function at 0x4046d0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
call fcn.00404700
mov esi, dword [ebp + 8]
test al, al
je 0x4046ee
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call fcn.00404710
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x404840
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 2
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40489c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40489c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40489c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40489c
cmp dword [ecx + 0x74], 0xe
jbe 0x40489c
cmp dword [ecx + 0xe8], 0
je 0x40489c
push dword [ebp + 8]
call fcn.00404710
add esp, 4
lea eax, [ebp - 0xc]
mov byte [ebp - 1], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 1]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
push 0x4095f0
call fcn.004044e0
add esp, 8
cmp dword [ebp - 8], 0
jne 0x4048d1
push dword [ebp + 8]
call fcn.004046d0
mov esp, ebp
pop ebp
ret

Function at 0x404910
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40496c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40496c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40496c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40496c
cmp dword [ecx + 0x74], 0xe
jbe 0x40496c
cmp dword [ecx + 0xe8], 0
je 0x40496c
push dword [ebp + 8]
call fcn.00404710
add esp, 4
lea eax, [ebp - 0xc]
mov byte [ebp - 1], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 1]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
push 0x4095f0
call fcn.004044e0
add esp, 8
cmp dword [ebp - 8], 0
jne 0x4049a1
push dword [ebp + 8]
call fcn.004046d0
mov esp, ebp
pop ebp
ret

Function at 0x4049c0
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ecx, dword [eax + 0xa4]
shl ecx, 0x10
or ecx, dword [eax + 0xa8]
cmp ecx, 0x60000
jae 0x4049ea
mov eax, 2
pop ebp
ret
push esi
call fcn.004040d0
mov esi, eax
mov eax, dword [ebp + 8]
mov edx, dword [esi + 0x70]
mov ecx, edx
and cl, 2
movzx ecx, cl
neg ecx
sbb ecx, ecx
inc eax
cmp eax, 3
ja case.default.0x404a0a
jmp dword [eax*4 + 0x404a40]
or edx, 2
lea eax, [ecx + 2]
mov dword [esi + 0x70], edx
pop esi
pop ebp
ret
and edx, 0xfffffffd
mov dword [esi + 0x70], edx
lea eax, [ecx + 2]
pop esi
pop ebp
ret
call sub.msvcrt.dll__errno
mov dword [eax], 0x16
call fcn.00404200
or eax, 0xffffffff
pop esi
pop ebp
ret