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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
mov eax, dword [0x5f13cc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, ecx
mov edi, edx
mov dword [ebp - 0x814], ebx
mov dword [ebp - 0x820], edi
call dword [0x5f1114]
lea esi, [edi + 0x202]
test esi, esi
mov dword [ebp - 0x81c], eax
jne 0x572634
mov dword [ebp - 0x818], esi
jmp 0x572692
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jg 0x572684
lea ebx, [eax + eax]
mov eax, ebx
call fcn.005881d0
mov edi, esp
test edi, edi
je 0x57267e
mov eax, dword [ebp - 0x81c]
push 0
push 0
push ebx
push edi
push 0xffffffffffffffff
push esi
push 0
push eax
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, dword [ebp - 0x814]
neg eax
sbb eax, eax
and eax, edi
jmp 0x572686
mov ebx, dword [ebp - 0x814]
xor eax, eax
mov edi, dword [ebp - 0x820]
mov dword [ebp - 0x818], eax
add edi, 0x102
je 0x5726ea
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jg 0x5726ea
lea ebx, [eax + eax]
mov eax, ebx
call fcn.005881d0
mov esi, esp
test esi, esi
je 0x5726e4
mov ecx, dword [ebp - 0x81c]
push 0
push 0
push ebx
push esi
push 0xffffffffffffffff
push edi
push 0
push ecx
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, dword [ebp - 0x814]
neg eax
sbb eax, eax
and eax, esi
jmp 0x5726ec
mov ebx, dword [ebp - 0x814]
xor eax, eax
mov edx, dword [ebp - 0x818]
push edx
mov edi, eax
lea esi, [ebp - 0x810]
call fcn.005722e0
mov eax, dword [ebp - 0x410]
mov edx, dword [ebx]
push 0
push eax
mov ecx, esi
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x572797
push 0x3ff
lea eax, [ebp - 0x407]
push 0
push eax
mov byte [ebp - 0x408], 0
call fcn.00580260
mov edx, dword [ebx]
add esp, 0xc
push 0
push 0x400
lea ecx, [ebp - 0x408]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 2
jge 0x572771
mov esi, dword [ebx]
test esi, esi
mov edi, 0xffffffa2
je 0x57276d
push 1
push esi
call dword [sym.imp.WS2_32.dll_shutdown]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, edi
jmp 0x5727b2
xor eax, eax
cmp byte [ebp - 0x407], al
sete al
test eax, eax
je 0x572790
mov eax, dword [ebp - 0x820]
push eax
mov ecx, ebx
call fcn.005723a0
jmp 0x5727b8
mov eax, 0xffffffa5
jmp 0x5727b8
mov esi, dword [ebx]
test esi, esi
je 0x5727ad
push 1
push esi
call dword [sym.imp.WS2_32.dll_shutdown]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0xffffffa1
mov dword [ebx], 0xffffffff
lea esp, [ebp - 0x830]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005787fd
mov esp, ebp
pop ebp
ret
Function at 0x5727d0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
sub esp, 0x414
mov eax, dword [0x5f13cc]
xor eax, esp
mov dword [esp + 0x40c], eax
push ebp
push edi
push 0
push 4
lea eax, [esp + 0x14]
mov edi, ecx
mov ecx, dword [esi]
push eax
push ecx
mov byte [esp + 0x1c], 5
mov byte [esp + 0x1d], 2
mov byte [esp + 0x1e], 0
mov byte [esp + 0x1f], 2
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x5728e7
push 0x3ff
lea edx, [esp + 0x15]
push 0
push edx
mov byte [esp + 0x1c], 0
call fcn.00580260
mov ecx, dword [esi]
add esp, 0xc
push 0
push 0x400
lea eax, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 2
jge 0x57286b
mov edi, dword [esi]
test edi, edi
mov ebp, 0xffffffa2
je 0x572864
push 1
push edi
call dword [sym.imp.WS2_32.dll_shutdown]
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, ebp
jmp 0x572902
mov ecx, dword [edi + 0x384]
xor eax, eax
test ecx, ecx
je 0x57287d
cmp byte [esp + 0x11], al
jmp 0x572882
cmp byte [esp + 0x11], 2
sete al
test eax, eax
je 0x5728ca
test ecx, ecx
mov ecx, esi
je 0x5728ac
push edi
call fcn.005723a0
pop edi
pop ebp
mov ecx, dword [esp + 0x40c]
xor ecx, esp
call fcn.005787fd
add esp, 0x414
ret
mov edx, edi
call fcn.005725f0
pop edi
pop ebp
mov ecx, dword [esp + 0x40c]
xor ecx, esp
call fcn.005787fd
add esp, 0x414
ret
mov edi, dword [esi]
test edi, edi
je 0x5728e0
push 1
push edi
call dword [sym.imp.WS2_32.dll_shutdown]
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0xffffffa3
jmp 0x572902
mov edi, dword [esi]
test edi, edi
je 0x5728fd
push 1
push edi
call dword [sym.imp.WS2_32.dll_shutdown]
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0xffffffa1
mov ecx, dword [esp + 0x414]
pop edi
pop ebp
xor ecx, esp
mov dword [esi], 0xffffffff
call fcn.005787fd
add esp, 0x414
ret
Function at 0x572920
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
sub esp, 0x1c
mov eax, dword [0x5f13cc]
xor eax, esp
mov dword [esp + 0x18], eax
push ebp
mov ebp, dword [esp + 0x24]
push esi
push edi
call dword [0x5f1114]
cmp word [ebx], 0
je 0x572a3b
cmp word [ebx + 0x100], 0
je 0x572a3b
cmp word [ebx + 0x282], 0
je 0x572a3b
cmp word [ebx + 0x382], 0
je 0x572a3b
mov esi, dword [ebp]
cmp esi, 0xffffffff
je 0x572983
call fcn.005731c0
mov dword [ebp], 0xffffffff
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [ebp], eax
jne 0x5729b0
mov eax, 0xffffff9d
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.005787fd
add esp, 0x1c
ret 4
mov esi, eax
call fcn.005731e0
movzx eax, word [ebx + 0x100]
push eax
mov ecx, ebx
lea edi, [esp + 0x18]
call fcn.00572150
add esp, 4
test eax, eax
jne 0x572a22
mov edx, dword [ebp]
push 0x10
mov ecx, edi
push ecx
push edx
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x572a09
mov ecx, ebx
mov esi, ebp
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
call fcn.005727d0
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.005787fd
add esp, 0x1c
ret 4
mov eax, 0xffffffa0
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.005787fd
add esp, 0x1c
ret 4
mov eax, 0xffffff9f
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.005787fd
add esp, 0x1c
ret 4
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
xor ecx, esp
mov eax, 0xffffff9c
call fcn.005787fd
add esp, 0x1c
ret 4
Function at 0x573120
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x14
mov eax, dword [0x5f13cc]
xor eax, esp
mov dword [esp + 0x10], eax
xor eax, eax
push ebx
push ebp
mov dword [esp + 0xa], eax
mov dword [esp + 0xe], eax
mov dword [esp + 0x12], eax
mov word [esp + 0x16], ax
mov eax, dword [esp + 0x20]
push eax
xor ebp, ebp
mov word [esp + 0xc], 2
call dword [sym.imp.WS2_32.dll_htons]
test esi, esi
mov word [esp + 0xa], ax
jne 0x573164
xor ebx, ebx
jmp 0x573196
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
mov ebx, eax
test ebx, ebx
je 0x573176
cmp ebx, 0xffffffff
jne 0x573196
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x57318a
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov ebx, dword [edx]
jmp 0x573196
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
test ebp, ebp
jne 0x5731af
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [edi], eax
mov dword [edi + 4], ebx
mov dword [edi + 8], ecx
mov dword [edi + 0xc], edx
mov eax, ebp
mov ecx, dword [esp + 0x18]
pop ebp
pop ebx
xor ecx, esp
call fcn.005787fd
add esp, 0x14
ret

Function at 0x5731e0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 8
push edi
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, 0x1388
push 4
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
push 0x1005
push 0xffff
push esi
call edi
cmp dword [esp + 4], 0
je 0x573226
push 4
lea ecx, [esp + 8]
push ecx
push 0x1006
push 0xffff
push esi
call edi
xor eax, eax
pop edi
add esp, 8
ret

Function at 0x574010
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x59cd33
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x5f13cc]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
xor ebx, ebx
push ebx
call fcn.00573b70
lea ecx, [esi + 0x34]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [esp + 0x18], ebx
mov dword [ecx], 0x5fcca0
or eax, 0xffffffff
mov dword [esi + 0x40], eax
mov dword [esi + 0x3c], eax
push ebx
push 0x5bce10
mov byte [esp + 0x20], 1
mov dword [esi + 0x38], 4
mov byte [esi + 0x44], bl
mov byte [esi + 0x2c], bl
mov dword [esi + 0x30], ebx
call fcn.00574f50
mov dword [esi + 0x40], ebx
mov dword [esi + 0x3c], ebx
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x5740a0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x59cd58
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5f13cc]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [esp + 0x28]
test esi, esi
jne 0x5740e0
push esi
push esi
push esi
push 2
call fcn.00575620
xor al, al
jmp 0x57426a
call fcn.00573360
push 2
or eax, 0xffffffff
push 0
push esi
mov dword [ebx + 8], eax
mov dword [ebx + 4], eax
call fcn.0057e71e
push esi
call fcn.0057e629
push 0
push 0
push esi
mov edi, eax
call fcn.0057e71e
add esp, 0x1c
test edi, edi
jg 0x574127
push 0
push 0
push 0
push 0xd
mov ecx, ebx
call fcn.00575620
xor al, al
jmp 0x57426a
mov dword [esp + 0x14], 0x5fcca0
push edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], 0
call fcn.00574eb0
lea eax, [edi + 1]
push eax
call fcn.00578e5f
push esi
push 1
mov ebp, eax
push edi
push ebp
mov byte [ebp], 0
call fcn.0057e476
add esp, 0x14
cmp eax, 1
je 0x57419d
push ebp
call fcn.00578327
add esp, 4
push 0
push 0
push 0
push 2
mov ecx, ebx
call fcn.00575620
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], 0xffffffff
cmp eax, 0x5fcca0
je 0x574196
push eax
call fcn.00578327
add esp, 4
xor al, al
jmp 0x57426a
mov byte [edi + ebp], 0
cmp byte [ebp], 0
mov eax, ebp
mov esi, ebp
je 0x574212
jmp 0x5741b0
mov cl, byte [esi]
cmp cl, 0xa
jne 0x5741d0
mov ecx, esi
sub ecx, eax
add ecx, 1
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.00575040
add esi, 1
mov eax, esi
jmp 0x57420d
cmp cl, 0xd
jne 0x57420a
mov ecx, esi
sub ecx, eax
test ecx, ecx
jle 0x5741e8
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.00575040
push 1
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 0xa
call fcn.00575040
cmp byte [esi + 1], 0xa
jne 0x5741c9
add esi, 2
mov eax, esi
jmp 0x57420d
add esi, 1
cmp byte [esi], 0
jne 0x5741b0
sub esi, eax
je 0x574221
push esi
push eax
lea ecx, [esp + 0x1c]
call fcn.00575040
push ebp
call fcn.00578327
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x18]
mov eax, dword [ebx]
mov eax, dword [eax + 8]
add esp, 4
push ecx
push 0
add edx, 8
push edx
mov ecx, ebx
call eax
cmp byte [ebx + 0x2c], 0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], 0xffffffff
jne 0x574186
cmp eax, 0x5fcca0
je 0x574268
push eax
call fcn.00578327
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8
Function at 0x576ef3
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x5f13cc]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00576e32
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00580260
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x576f42
cmp dword [ebp - 0x1c], 5
jb 0x576f5a
jmp 0x576f56
cmp dword [ebp - 0x10], 1
jne 0x576f5a
cmp dword [ebp - 0x1c], 4
ja 0x576f56
jne 0x576f5a
cmp dword [ebp - 0x18], 0
jbe 0x576f5a
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x5b2a88
call fcn.00576d23
test eax, eax
jge 0x576f7b
mov byte [0x5fdb70], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.005787fd
add ebp, 0x78
leave
ret

Function at 0x577405
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x5fcd3c], 0
push esi
jne 0x577378
call fcn.005772a3
test eax, eax
je 0x5773bb
mov eax, dword [0x5fcd3c]
cmp eax, 1
jne 0x577399
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x5773bb
pop esi
ret
push eax
call dword [0x5fcd44]
test eax, eax
jne 0x577403
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x5773bf
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x5fcd3c]
call dword [0x5fcd44]
mov edi, eax
test edi, edi
je 0x5773e6
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x577402
lea edi, [esi + 0xff0]
push esi
push dword [0x5fcd3c]
call dword [0x5fcd40]
add esi, 0x10
cmp esi, edi
jb 0x5773ec
mov eax, esi
pop edi
pop esi
ret
jmp 0x577365

Function at 0x5787fd
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5f13cc]
jne 0x578807
repz ret
jmp fcn.00585b37
Function at 0x57e1da
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x57e217
cmp dword [ebp + 0x14], edi
je 0x57e217
cmp ecx, edi
jne 0x57e21e
call fcn.00582012
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.00578fcf
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x57e232
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x57e253
cmp ebx, 0xffffffff
je 0x57e242
push ebx
push edi
push ecx
call fcn.00580260
add esp, 0xc
cmp esi, edi
je 0x57e1ff
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x57e1ff
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x57e26f
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x57e276
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x57e367
test word [esi + 0xc], 0x10c
je 0x57e2ca
mov eax, dword [esi + 4]
test eax, eax
je 0x57e2ca
jl 0x57e3c8
cmp ebx, eax
mov edi, ebx
jb 0x57e29b
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x57e36f
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00578353
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x57e35f
cmp ebx, dword [ebp - 0xc]
jb 0x57e337
cmp dword [ebp - 0xc], 0
je 0x57e2f4
mov ecx, closesocket
xor edx, edx
cmp ebx, ecx
jbe 0x57e2e9
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x57e2f0
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x57e2ff
mov eax, closesocket
cmp ebx, eax
ja 0x57e2ff
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x57e39b
push eax
push dword [ebp - 8]
push esi
call fcn.0058a4b0
pop ecx
push eax
call fcn.0058f8cd
add esp, 0xc
test eax, eax
je 0x57e3da
cmp eax, 0xffffffff
je 0x57e3c8
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x57e35f
push esi
call fcn.0058f1ec
cmp eax, 0xffffffff
pop ecx
je 0x57e3cc
cmp dword [ebp - 4], 0
je 0x57e39b
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x57e27e
mov eax, dword [ebp + 0x14]
jmp 0x57e219
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x57e386
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.00580260
add esp, 0xc
call fcn.00582012
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x57e20f
cmp dword [ebp + 0xc], 0xffffffff
je 0x57e3b1
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00580260
add esp, 0xc
call fcn.00582012
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x57e20f
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x57e219
or dword [esi + 0xc], 0x10
jmp 0x57e3cc
Function at 0x585932
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x5f1958]
je 0x58594d
inc edi
cmp edi, 0x17
jb 0x58593e
cmp edi, 0x17
jae 0x585acd
push ebp
push 3
call fcn.00594b89
cmp eax, 1
pop ecx
je 0x585a99
push 3
call fcn.00594b89
test eax, eax
pop ecx
jne 0x585981
cmp dword [0x5f13c0], 1
je 0x585a99
cmp ebx, 0xfc
je 0x585acc
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x5fd170
push ebp
call fcn.0057d163
add esp, 0xc
test eax, eax
je 0x5859b7
push esi
push esi
push esi
push esi
push esi
call fcn.00578ed3
add esp, 0x14
push 0x104
mov esi, 0x5fd189
push esi
push 0
mov byte [0x5fd28d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x5859fb
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0057d163
add esp, 0xc
test eax, eax
je 0x5859fb
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00578ed3
add esp, 0x14
push esi
call fcn.005804e0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x585a40
push esi
call fcn.005804e0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x5fd484
push 0x5b3d3c
sub ecx, eax
push ecx
push eax
call fcn.0057d1c8
add esp, 0x14
test eax, eax
je 0x585a40
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00578ed3
add esp, 0x14
jmp 0x585a42
xor esi, esi
push 0x5b3d38
push ebx
push ebp
call fcn.0057d4f9
add esp, 0xc
test eax, eax
je 0x585a62
push esi
push esi
push esi
push esi
push esi
call fcn.00578ed3
add esp, 0x14
push dword [edi*8 + 0x5f195c]
push ebx
push ebp
call fcn.0057d4f9
add esp, 0xc
test eax, eax
je 0x585a84
push esi
push esi
push esi
push esi
push esi
call fcn.00578ed3
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.005949cc
add esp, 0xc
jmp 0x585acc
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x585acc
cmp ebp, 0xffffffff
je 0x585acc
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x5f195c]
push dword [esi]
call fcn.005804e0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x5949cc
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.005846f5
xor ebx, ebx
cmp dword [0x5fdb04], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x594aa2
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x594b82
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x594b82
push eax
call fcn.00584687
mov dword [esp], 0x5b4a40
push edi
mov dword [0x5fdb04], eax
call esi
push eax
call fcn.00584687
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x5fdb08], eax
call esi
push eax
call fcn.00584687
mov dword [0x5fdb0c], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0057f9a1
test eax, eax
pop ecx
pop ecx
je 0x594a70
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00578ed3
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x594aa2
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00584687
cmp eax, ebx
pop ecx
mov dword [0x5fdb14], eax
je 0x594aa2
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00584687
pop ecx
mov dword [0x5fdb10], eax
mov eax, dword [0x5fdb10]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x594b27
cmp dword [0x5fdb14], ecx
je 0x594b27
push eax
call fcn.005846fe
push dword [0x5fdb14]
mov esi, eax
call fcn.005846fe
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x594b27
cmp edi, ebx
je 0x594b27
call esi
cmp eax, ebx
je 0x594af4
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x594af4
test byte [ebp - 0x18], 1
jne 0x594b27
lea eax, [ebp - 0x10]
push eax
call fcn.0057f9d8
test eax, eax
pop ecx
je 0x594b0f
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00578ed3
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x594b1e
or dword [ebp + 0x10], 0x200000
jmp 0x594b62
or dword [ebp + 0x10], 0x40000
jmp 0x594b62
mov eax, dword [0x5fdb08]
cmp eax, dword [ebp - 8]
je 0x594b62
push eax
call fcn.005846fe
cmp eax, ebx
pop ecx
je 0x594b62
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x594b62
mov eax, dword [0x5fdb0c]
cmp eax, dword [ebp - 8]
je 0x594b62
push eax
call fcn.005846fe
cmp eax, ebx
pop ecx
je 0x594b62
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x5fdb04]
call fcn.005846fe
cmp eax, ebx
pop ecx
je 0x594b82
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x594b84
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405ab4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x405b1a
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.004041cc
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402c60
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405b04
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405b21
lea eax, [ebp - 0x10]
call fcn.00403f5c
ret

Function at 0x40aa18
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40aa51
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040404c
jmp 0x40aa5a
mov eax, ebx
mov edx, esi
call fcn.00403fb0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40aa64
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40aa85
mov al, byte [esp]
jmp 0x40aa87
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40b10c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40af84
mov eax, dword [0x44f020]
cmp byte [eax], 0
je 0x40b188
mov eax, dword [0x44ee40]
call fcn.00402acc
call fcn.00402824
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.0040828c
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40b1d0
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b1be
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x44edf0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x450664]
call fcn.00404fc8
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret