joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44e9e4
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x463b48]
cmp byte [eax + 0xa5], 0
jne 0x44ea55
cmp dword [0x463b60], 0
jne 0x44ea16
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x44e9a0
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x463b60], eax
cmp dword [0x463b5c], 0
jne 0x44ea31
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x463b5c], eax
cmp dword [0x463b64], 0
jne 0x44ea55
push esp
push 0
push 0
push 0x44e944
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x463b64], eax
pop edx
ret

Function at 0x44f0e8
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x463b48]
cmp dword [eax + 0x30], 0
je 0x44f192
cmp dword [ebx + 0x94], 0
jne 0x44f18c
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44f078
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44f18c
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x44f152
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44f18c
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00414cc8
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44f161
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x44fcf0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x44fd25
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0040496c
jmp 0x44fd32
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004048d0
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x450e5c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x450e9d
mov eax, esi
call fcn.004374f0
test al, al
je 0x450e9d
mov eax, dword [ebx + 0x84]
call fcn.004371ec
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x450e9d
push 0
mov eax, dword [ebx + 0x84]
call fcn.004371ec
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x4524e4
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x45256d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x463b70
push 0x101
call sub.wsock32.dll_WSAStartup
mov ebx, eax
test ebx, ebx
je 0x452557
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.0040bdac
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0xb
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], 0
mov eax, 0x452584
mov dword [ebp - 8], eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x18]
push eax
push 2
mov ecx, dword [0x4620e4]
mov dl, 1
mov eax, dword [0x451848]
call fcn.0040c6e0
call fcn.0040420c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x452574
lea eax, [ebp - 0x1c]
call fcn.0040487c
ret

Function at 0x452c38
Capabilities:
Connect socket

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, ebx
call fcn.00452b5c
mov cl, 1
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.00403c8c
push 0x10
lea eax, [ebx + 0x18]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_connect
mov edx, 0x452c9c
call fcn.0045242c
mov byte [ebx + 0x29], 0
test byte [ebx + 0x28], 0x10
jne 0x452c8e
cmp dword [ebx + 4], 0xffffffff
setne al
mov byte [ebx + 8], al
mov cl, 2
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.00403c8c
pop esi
pop ebx
ret

Function at 0x452cc0
Capabilities:
Resolve dns

Disassembly:
push ebx
add esp, 0xfffffff4
mov ebx, edx
mov eax, ebx
call fcn.00404d3c
push eax
call sub.wsock32.dll_gethostbyname
mov dword [esp + 4], eax
lea eax, [esp + 8]
xor ecx, ecx
mov edx, 4
call fcn.00403230
cmp dword [esp + 4], 0
je 0x452d12
mov eax, dword [esp + 4]
mov edx, dword [eax + 0xc]
mov edx, dword [edx]
mov cl, byte [edx]
mov byte [esp + 8], cl
mov cl, byte [edx + 1]
mov byte [esp + 9], cl
mov cl, byte [edx + 2]
mov byte [esp + 0xa], cl
mov al, byte [edx + 3]
mov byte [esp + 0xb], al
mov eax, dword [esp + 8]
mov dword [esp], eax
mov eax, dword [esp]
add esp, 0xc
pop ebx
ret
Function at 0x452df8
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x452e29
mov ecx, dword [0x4621bc]
mov dl, 1
mov eax, dword [0x451848]
call fcn.0040c6a4
call fcn.0040420c
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], ebx
inc ebx
jne 0x452e56
mov ecx, dword [0x461fd8]
mov dl, 1
mov eax, dword [0x451848]
call fcn.0040c6a4
call fcn.0040420c
xor eax, eax
push ebp
push 0x452ed7
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xffff
call fcn.00403c8c
cmp byte [ebp + 8], 0
je 0x452eb1
mov eax, dword [ebp + 0x14]
push eax
mov ax, word [ebp + 0x10]
push eax
push 0
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.00452d60
mov eax, dword [ebp - 4]
lea esi, [ebp - 0x18]
lea edi, [eax + 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00452bb8
jmp 0x452ecd
mov eax, dword [ebp + 0x14]
push eax
mov ax, word [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
push 0
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.00452718
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x452ef4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4530d8
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004529e0
xor eax, eax
push ebp
push 0x45324a
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x453234
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
je 0x453124
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x45312e
call fcn.004042b8
jmp 0x453251
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00416988
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x1010]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov ecx, 0x1000
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ebx, eax
test ebx, ebx
jle 0x453229
push 0
push ebx
lea eax, [ebp - 0x1010]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov edi, eax
cmp edi, 0xffffffff
jne 0x4531dc
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2733
je 0x4531c9
lea eax, [ebp - 0x10]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00403c8c
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
push ebp
call fcn.00453090
pop ecx
mov eax, dword [ebp - 4]
mov dl, byte [0x45325c]
cmp dl, byte [eax + 0x28]
je 0x453230
call fcn.0040c5c8
jmp 0x453230
mov eax, dword [ebp - 0xc]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.004169a8
jmp 0x453230
cmp edi, ebx
jge 0x4531f8
mov eax, dword [ebp - 0xc]
add eax, edi
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.004169a8
jmp 0x45312e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00416988
cmp edx, dword [esp + 4]
jne 0x453218
cmp eax, dword [esp]
pop edx
pop eax
jne 0x45312e
push ebp
call fcn.00453090
pop ecx
jmp 0x453230
push ebp
call fcn.00453090
pop ecx
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x453251
mov eax, dword [ebp - 4]
call fcn.004529ec
ret
mov al, byte [ebp - 5]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x453260
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x453382
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004529e0
xor eax, eax
push ebp
push 0x453365
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x4532b0
call fcn.004042b8
jmp 0x45336c
push 0
push esi
push ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x45334f
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x45334f
lea eax, [ebp - 0xc]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00403c8c
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x45334f
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040bdac
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x45339c
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x4620e4]
mov dl, 1
mov eax, dword [0x451848]
call fcn.0040c6e0
call fcn.0040420c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45336c
mov eax, dword [ebp - 4]
call fcn.004529ec
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x453389
lea eax, [ebp - 0x28]
call fcn.0040487c
ret
Function at 0x4533e8
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov ebx, ecx
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x453553
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004529e0
xor eax, eax
push ebp
push 0x453536
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
cmp ebx, 0xffffffff
jne 0x45344d
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x45344d
lea eax, [ebp - 8]
push eax
push 0x4004667f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_ioctlsocket
jmp 0x453520
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x453460
call fcn.004042b8
jmp 0x45353d
lea eax, [ebp - 0x10]
push eax
push 0x4004667f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_ioctlsocket
test eax, eax
jne 0x453481
cmp ebx, dword [ebp - 0x10]
jle 0x453481
mov ebx, dword [ebp - 0x10]
push 0
push ebx
push esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_recv
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x453520
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x453520
lea eax, [ebp - 0xc]
push eax
mov cl, 2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00403c8c
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x453520
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0xc]
call fcn.0040bdac
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0
mov eax, 0x45356c
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0xb
lea eax, [ebp - 0x28]
push eax
push 2
mov ecx, dword [0x4620e4]
mov dl, 1
mov eax, dword [0x451848]
call fcn.0040c6e0
call fcn.0040420c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45353d
mov eax, dword [ebp - 4]
call fcn.004529ec
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45355a
lea eax, [ebp - 0x2c]
call fcn.0040487c
ret
Function at 0x40a000
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x118
add byte [ecx + 0x4c7480], ah
mov dword [esp + 4], ecx
push esi
push edi
test al, 1
je 0x40b536
mov edi, dword [ebp + 0x10]
xor eax, eax
push 8
mov word [esp + 0x5c], 1
xchg ecx, eax
adc eax, 0x448b0000
and al, 0x28
inc esp
and al, 0x10
push ss
add byte [eax], al
add byte [ebp - 0x2e7af00a], al
push es
add byte [eax], al
dec esp
or al, 4
add al, 0x88
add dh, al
inc esp
and al, 0x17
add dh, dh
rol dword [ecx], 0xf
test byte [ebp - 0x38fffc9b], bl
add eax, 0x4c7460
add byte [eax], al
add byte [eax], al
push esp
and al, 0x48
and al, 0x3c
invalid
inc ecx
or byte [edi], cl
test dword [ebp - 0x39fffff8], ebp
inc eax
sbb byte [eax], al
dec ebp
or al, 0x8b
je 0x40af61
adc byte [ecx - 0xdd416ff], cl
invalid
or al, 4
inc ecx
add dword [ebx + 0x1890c4d], ecx
inc ecx
add dword [esi + 0xe], edi
ret 0x8902
pop es
and al, 0x50
add byte [ebp + 0x5be0141], cl
add byte [eax], al
add byte [ebx + 0x1890c4d], cl
or eax, 1
mov dword [0x4c7488], 0
push 0x43b83c
mov dword [0x4c7480], eax
mov dword [0x4c7490], 0
mov dword [0x4c7494], 1
call fcn.00422f80
add esp, 4
jmp 0x40a01f

Function at 0x40b008
Capabilities:
Resolve function by parsing pe exports

Disassembly:
test dword [ebx - 0x74fbf382], 0x84e8b00
push ecx
call fcn.00457422
jmp 0xe6409f0e
Function at 0x4048fc
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00406b24
test esi, esi
jne 0x404932
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00406c8c
jmp 0x404950
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004047e0
mov edi, eax
test esi, esi
je 0x404950
cmp dword [ebx], 0
je 0x404950
dec esi
jmp 0x404939
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x404984
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x598008], 0x8088405
inc edx
mov dword [ebx + 0x598008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x405864
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00405c5c
mov byte [esp], al
cmp byte [esp], 0
jne 0x4059f0
test edi, edi
je 0x4059f0
mov byte [esp + 1], 0
test ebp, ebp
jle 0x405927
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x405902
cmp edi, 0xffffffff
je 0x4058c3
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4058c3
mov byte [esp], 0
jmp 0x4059f0
mov ebx, dword [esi]
cmp ebx, 1
jg 0x405902
test ebx, ebx
jne 0x4058f8
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.00402784
test eax, eax
jne 0x4058f8
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x4059f0
call 0x405d80
dec ebp
test ebp, ebp
jg 0x4058a8
cmp edi, 0xffffffff
je 0x405927
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405925
mov byte [esp], 0
jmp 0x4059f0
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x405872
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.00402784
cmp ebx, eax
jne 0x405927
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00405a60
mov edx, eax
mov ebx, dword [0x5a38f8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x40598e
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x40598c
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x40598e
xor edi, edi
cmp byte [esp], 0
je 0x4059b7
mov ebx, dword [esi]
test bl, 1
jne 0x4059d0
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.00402784
cmp ebx, eax
jne 0x405994
mov byte [esp + 1], 1
jmp 0x4059d0
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.00402784
cmp ebx, eax
jne 0x4059b7
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x405941
cmp byte [esp], 0
je 0x4059f0
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x406780
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x5a3058], 0
je 0x4067e7
cmp word [0x5a3344], 0xd7b2
jne 0x4067a9
cmp dword [0x5a334c], 0
jbe 0x4067a9
mov eax, 0x5a3340
call dword [0x5a335c]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
mov eax, 0x406814
call fcn.00407378
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x598032], 0
jne 0x406803
push 0
push 0x5989c2
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4069e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x598034], 0
je 0x406a0b
mov edx, edi
mov eax, esi
call dword [0x598034]
mov ebx, eax
jmp 0x406a1c
mov eax, 8
call fcn.0040451c
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x5a3059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x4069a8
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateThread
mov esi, eax
test esi, esi
jne 0x406a51
mov edx, 8
mov eax, ebx
call fcn.00404538
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x408e38
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x408f9d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00406b24
cmp si, word [0x598a00]
jb 0x408ed0
cmp si, word [0x598c00]
ja 0x408ed0
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x408ed0
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x598a00]
jae 0x408eaa
mov edi, ebx
dec edi
jmp 0x408ecb
cmp si, word [ebx*8 + 0x598a00]
jbe 0x408eba
inc ebx
mov dword [ebp - 8], ebx
jmp 0x408ecb
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x598a04]
call fcn.00408d48
jmp 0x408ed0
cmp edi, dword [ebp - 8]
jae 0x408e94
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x408f7f
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408f7f
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00407768
push dword [ebp - 0x160]
push 0x408fb8
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00407768
push dword [ebp - 0x164]
push 0x408fc8
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00407768
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.004079a0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408fa4
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00406b84
ret
Function at 0x409150
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x409253
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x5a5b88
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x5a5ba0]
jne 0x40919c
mov eax, esi
mov edx, 0x5a5ba2
mov ecx, 0x55
call fcn.00407768
push 0x5a5b88
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40923d
push 0x5a5b88
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00406b24
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40920b
cmp byte [0x5a5b84], 0
je 0x4091d0
mov edx, esi
mov eax, ebx
call fcn.00409034
jmp 0x40920b
mov edx, esi
mov eax, ebx
call fcn.00408e38
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40920b
cmp dword [esi], 0
je 0x4091f4
mov eax, esi
mov edx, 0x40926c
call fcn.004078c0
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00408e38
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.004078c0
push 0x5a5b88
call sub.kernel32.dll_EnterCriticalSection
mov word [0x5a5ba0], bx
push 0xaa
mov eax, dword [esi]
call fcn.004076c4
push eax
push 0x5a5ba2
call sub.kernel32.dll_lstrcpynW
push 0x5a5b88
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40925a
lea eax, [ebp - 4]
call fcn.00406b24
ret