joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7e60a4
Capabilities:
Encode data using xor

Disassembly:
jmp 0x7e60ae
pushal
call 0x7e60b4
pop ebp
sub ebp, 0x10
sub ebp, 0x3e60a4
jmp 0x7e60ca
mov eax, 0x3e60a4
add eax, ebp
add eax, 0x4c
mov ecx, 0x603
mov edx, 0xdfd8cd44
xor byte [eax], dl
inc eax
dec ecx
jne 0x7e60e1
jmp 0x7e60f4
iretd

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40c7d0
nop
nop
mov ecx, 0x30f95353
nop
test eax, eax
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x432024
mov eax, section..data
nop
mov ebx, 0x42f314
nop
nop
mov ecx, 0x581c2677
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x432084
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43206c
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x402634
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
push dword [ebp + 8]
mov esi, dword [sym.imp.WS2_32.dll_inet_addr]
call esi
cmp eax, 0xffffffff
je 0x402655
push dword [ebp + 8]
call esi
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
pop esi
jne 0x402682
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x402682
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
cmp dword [eax], 0
je 0x402682
push 4
push eax
lea eax, [ebp - 4]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 4]
leave
ret 8

Function at 0x402689
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 0x10]
and dword [ebp - 4], 0
imul edx, edx, 0x9e3779b9
push esi
mov esi, dword [ebp + 0xc]
test edx, edx
mov eax, dword [esi]
mov ecx, dword [esi + 4]
je 0x4026fe
mov esi, dword [ebp + 8]
push ebx
push edi
mov edi, ecx
mov ebx, ecx
sar edi, 5
shl ebx, 4
xor edi, ebx
mov ebx, dword [ebp - 4]
and ebx, 3
add edi, dword [esi + ebx*4]
mov ebx, dword [ebp - 4]
xor ebx, ecx
sub dword [ebp - 4], 0x61c88647
add ebx, eax
lea eax, [ebx + edi]
mov edi, eax
mov ebx, eax
sar edi, 5
shl ebx, 4
xor edi, ebx
mov ebx, dword [ebp - 4]
sar ebx, 0xb
and ebx, 3
add edi, dword [esi + ebx*4]
mov ebx, dword [ebp - 4]
xor ebx, eax
add ebx, ecx
cmp dword [ebp - 4], edx
lea ecx, [ebx + edi]
jne 0x4026ac
mov esi, dword [ebp + 0xc]
pop edi
pop ebx
mov dword [esi], eax
mov dword [esi + 4], ecx
pop esi
leave
ret

Function at 0x402706
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0xc]
push esi
imul eax, eax, 0x61c88647
mov esi, dword [esp + 0xc]
test eax, eax
mov edx, dword [esi]
mov ecx, dword [esi + 4]
je 0x40276e
mov esi, dword [esp + 8]
push ebx
push edi
mov edi, edx
mov ebx, edx
sar edi, 5
shl ebx, 4
xor edi, ebx
mov ebx, eax
sar ebx, 0xb
and ebx, 3
add edi, dword [esi + ebx*4]
mov ebx, eax
xor ebx, edx
add eax, 0x61c88647
add edi, ebx
sub ecx, edi
mov edi, ecx
mov ebx, ecx
sar edi, 5
shl ebx, 4
xor edi, ebx
mov ebx, eax
and ebx, 3
add edi, dword [esi + ebx*4]
mov ebx, eax
xor ebx, ecx
add edi, ebx
sub edx, edi
test eax, eax
jne 0x402724
mov esi, dword [esp + 0x14]
pop edi
pop ebx
mov dword [esi], edx
mov dword [esi + 4], ecx
pop esi
ret

Function at 0x430000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408f6c
nop
mov ecx, 0x585f7961
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x430024
nop
nop
nop
mov eax, section..text_1
nop
mov ebx, 0x42e3d0
nop
mov ecx, 0x7e1a79e1
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x438c9b
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x438a14
add esi, 0xb9745f40
call fcn.00438cd9
and ecx, ecx
sub esi, 0x27d4a7f0
sub esi, 0x3f3c441b
xor dword [edi], ebx
push ecx
pop esi
add ecx, esi
sub esi, 0x9fd047a2
inc edi
add ecx, 0x7a99bb43
cmp edi, eax
jne fcn.00438c9b
push 0x33bb4d43
pop esi
ret
Function at 0x10022da
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov cx, word [eax]
cmp cx, 0x22
push 2
pop edx
jne 0x100229a
add eax, edx
mov cx, word [eax]
test cx, cx
je 0x1002292
cmp cx, 0x22
jne 0x1002282
cmp word [eax], 0x22
jne 0x10022b2
jmp 0x10022b0
cmp cx, 0x20
jbe 0x10022b2
add eax, edx
cmp word [eax], 0x20
ja 0x10022a0
jmp 0x10022b2
cmp cx, 0x20
ja 0x10022ba
add eax, edx
mov cx, word [eax]
test cx, cx
jne 0x10022aa
push 0xa
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call fcn.01001f41
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.01002e8c
jmp 0x1002270

Function at 0x100294f
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0x2001f
push 0
push dword [0x1004024]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100298d
push dword [0x1004028]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret

Function at 0x432004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x1e9f1d60
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x432024
nop
mov eax, section..text_1
nop
nop
mov ebx, 0x42f314
mov ecx, 0x79b1664d
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x40209a
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push ecx
push edx
push esi
push edi
enter 4, 0
mov esi, eax
lea edx, [eax - 1]
mov ebx, eax
and edx, dword [0x403050]
mov eax, 0x403054
call fcn.00401fb9
lea edx, [ebp - 4]
push edx
mov edx, esi
or dl, 0x40
mov edi, 0x402c2f
push edx
sub edi, fcn.004023d9
push edi
xor eax, eax
push fcn.004023d9
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
cmp dword [ebp - 4], 0
je 0x402105
mov eax, fcn.004023d9
mov ebx, esi
mov edx, edi
call fcn.00401fb9
mov edx, 0x1c000
mov eax, 0x403054
mov ebx, esi
call fcn.00401828
leave
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret

Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403d6f
nop
nop
sub eax, 0x403d15
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0x405590
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
sub esp, 0x10
push esi
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4055ae
or eax, eax
pop esi
add esp, 0x10
ret
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push ecx
mov dword [esp + 0xc], eax
mov word [esp + 8], 2
call dword [sym.imp.WS2_32.dll_htons]
lea edx, [esp + 4]
push 0x10
push edx
push esi
mov word [esp + 0x12], ax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4055ef
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
pop esi
add esp, 0x10
ret
mov eax, esi
pop esi
add esp, 0x10
ret

Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408ecc
nop
mov ecx, 0x6abf5b69
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
mov ecx, 0x33da1dcf
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x43006c
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x4019a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0x400
lea eax, [ebp - 0x414]
push eax
push 1
push 0
push str.SoftwareSAP_
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 4], eax
je 0x4019e7
mov eax, 0x80000002
jmp 0x401a59
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x410]
push edx
push 0
push 0
push str.UserMode
mov eax, dword [ebp - 0x414]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x401a27
mov ecx, dword [ebp - 0x414]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80000002
jmp 0x401a59
mov edx, dword [ebp - 0x414]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.MSVCR100.dll_atoi]
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x401a54
mov eax, 0x80000001
jmp 0x401a59
mov eax, 0x80000002
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401c4b
mov esp, ebp
pop ebp
ret
Function at 0x401a70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
push 0x403430
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0xc]
push edx
call dword [sym.imp.MSVCR100.dll_fopen_s]
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x401acb
mov eax, dword [ebp + 8]
push eax
push str.Cannot_open_file__s__datastream_type_cannot_be_detected_n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 8
xor eax, eax
jmp 0x401c1b
mov ecx, dword [ebp - 0xc]
push ecx
push 0x3e7
push 1
lea edx, [ebp - 0x3f8]
push edx
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jae 0x401af6
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
mov byte [ebp + eax - 0x3f8], 0
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
push 0x403470
lea edx, [ebp - 0x3f8]
push edx
call fcn.00401000
add esp, 8
mov dword [ebp - 0x3fc], eax
cmp dword [ebp - 0x3fc], 0
jne 0x401b5d
push str.e_SAPWIN
lea eax, [ebp - 0x3f8]
push eax
call fcn.00401020
add esp, 8
mov dword [ebp - 0x3fc], eax
cmp dword [ebp - 0x3fc], 0
je 0x401b5d
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 1
push 0x403490
lea edx, [ebp - 0x3f8]
push edx
call fcn.00401000
add esp, 8
mov dword [ebp - 0x400], eax
cmp dword [ebp - 0x400], 0
jne 0x401bac
push str._PDF
lea eax, [ebp - 0x3f8]
push eax
call fcn.00401020
add esp, 8
mov dword [ebp - 0x400], eax
cmp dword [ebp - 0x400], 0
je 0x401bac
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 1
cmp dword [ebp - 0x400], 0
jne 0x401bf2
push 0x4034a4
lea edx, [ebp - 0x3f8]
push edx
call fcn.00401000
add esp, 8
mov dword [ebp - 0x400], eax
cmp dword [ebp - 0x400], 0
je 0x401bf2
mov eax, dword [ebp - 0x400]
lea ecx, [ebp - 0x3f8]
cmp eax, ecx
je 0x401bf2
mov dword [ebp - 0x400], 0
cmp dword [ebp - 0x3fc], 0
je 0x401c04
mov eax, 1
jmp 0x401c1b
cmp dword [ebp - 0x400], 0
je 0x401c16
mov eax, 3
jmp 0x401c1b
mov eax, 2
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401c4b
mov esp, ebp
pop ebp
ret

Function at 0x401c4b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x401c55
repz ret
jmp fcn.00401ef2
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403ac5
nop
nop
sub eax, 0x403a6b
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
popal
nop
jmp loc.00401219
Function at 0x401000
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
xor ebx, ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40105a
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push dword [ebp + 0x10]
mov dword [ebp - 8], 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401051
cmp dword [ebp - 0xc], 4
jne 0x401051
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 0x14]
mov bl, 1
mov dword [ecx], eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
leave
ret

Function at 0x40105f
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x9c
mov eax, dword [0x4093a8]
xor eax, ebp
mov dword [ebp + 0x74], eax
push ebx
lea eax, [ebp - 0x20]
push eax
xor bl, bl
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4010c7
cmp dword [ebp - 0x10], 2
jne 0x4010c7
cmp dword [ebp - 0x1c], 5
ja 0x4010a0
jne 0x4010c7
cmp dword [ebp - 0x18], 1
jb 0x4010c7
lea eax, [ebp - 0x24]
push eax
push dword [0x4090b0]
push dword [0x4090ac]
push 0x80000002
call fcn.00401000
add esp, 0x10
test al, al
je 0x4010c7
mov bl, byte [ebp - 0x24]
and bl, 1
mov ecx, dword [ebp + 0x74]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00402e61
add ebp, 0x78
leave
ret

Function at 0x4010d9
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
mov eax, dword [0x4093a8]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40111e
push esi
push 0x4068c0
lea eax, [ebp - 0xcc]
push 0xc7
push eax
call dword [sym.imp.MSVCR80.dll__snprintf]
add esp, 0x10
lea eax, [ebp - 0xcc]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402e61
leave
ret

Function at 0x401301
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x40131e
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x20]
mov dword [esi], eax
mov eax, dword [esi]
pop esi
leave
ret
Function at 0x401a40
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 8]
mov ecx, dword [ecx]
lea eax, [esp + 8]
push 0
push eax
mov eax, dword [esp + 0xc]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 8

Function at 0x805ff4
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x805ffa
pop ebp
sub ebp, 6
sub ebp, 0x405ff4
jmp 0x806058
jmp 0x806061
mov eax, 0x405ff4
add eax, ebp
add eax, 0x93
mov ecx, 0x630
mov edx, 0xea674987
xor byte [eax], dl
inc eax
dec ecx
jne 0x806078
jmp 0x80608b
in eax, dx
invalid
Function at 0x4048b0
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.00406b40
test esi, esi
jne 0x4048e6
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.00406cc8
jmp 0x404904
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00404794
mov edi, eax
test esi, esi
je 0x404904
cmp dword [ebx], 0
je 0x404904
dec esi
jmp 0x4048ed
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x405800
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.00405bf8
mov byte [esp], al
cmp byte [esp], 0
jne 0x40598c
test edi, edi
je 0x40598c
mov byte [esp + 1], 0
test ebp, ebp
jle 0x4058c3
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x40589e
cmp edi, 0xffffffff
je 0x40585f
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40585f
mov byte [esp], 0
jmp 0x40598c
mov ebx, dword [esi]
cmp ebx, 1
jg 0x40589e
test ebx, ebx
jne 0x405894
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.00402774
test eax, eax
jne 0x405894
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x40598c
call 0x405d1c
dec ebp
test ebp, ebp
jg 0x405844
cmp edi, 0xffffffff
je 0x4058c3
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4058c1
mov byte [esp], 0
jmp 0x40598c
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x40580e
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.00402774
cmp ebx, eax
jne 0x4058c3
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.004059fc
mov edx, eax
mov ebx, dword [0x4c38f8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x40592a
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x405928
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x40592a
xor edi, edi
cmp byte [esp], 0
je 0x405953
mov ebx, dword [esi]
test bl, 1
jne 0x40596c
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.00402774
cmp ebx, eax
jne 0x405930
mov byte [esp + 1], 1
jmp 0x40596c
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.00402774
cmp ebx, eax
jne 0x405953
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x4058dd
cmp byte [esp], 0
je 0x40598c
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 0x406520
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push esi
push edi
mov ebx, 0x4c5b18
cmp dword [ebp + 0xc], 2
jl 0x406534
mov ebx, 0x4c5b48
mov esi, ebx
lea edi, [ebp - 0x40]
mov ecx, 0xc
rep movsd dword es:[edi], dword [esi]
pop dword [ebx + 0x20]
pop dword [ebx + 0x1c]
pop dword [ebx + 0x18]
mov dword [ebx + 0x14], ebp
mov dword [ebx + 8], eax
mov dword [ebx + 0x10], edx
lea ecx, [ebp - 0x40]
mov dword [ebx], ecx
call sub.kernel32.dll_GetCurrentThreadId
mov dword [ebx + 0x2c], eax
mov eax, dword [ebx + 8]
xor ecx, ecx
cmp dword [ebp + 0xc], 0
jne 0x40656c
mov ecx, dword [eax]
mov dword [ebx + 0xc], ecx
mov eax, 0x402818
mov dword [0x4c3018], eax
mov eax, 0x402820
mov dword [0x4c301c], eax
mov eax, ebx
call fcn.00406404
mov eax, dword [ebp + 0xc]
inc eax
mov byte [ebx + 0x28], al
dec eax
pop ecx
mov edx, dword [ecx]
mov dword [ebx + 0x24], edx
je 0x4065a1
cmp al, 3
jge 0x4065a1
call dword [ecx + eax*4]
push ecx
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x4065b2
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
call ecx
pop ecx
mov eax, dword [ebp + 0xc]
cmp al, 3
jl 0x4065bd
call dword [ecx + eax*4]
cmp dword [0x4c303c], 0
jne 0x4065d3
mov byte [0x4c3044], 1
fnstcw word [0x4bf028]
mov eax, dword [ebp + 0xc]
dec eax
jne fcn.00406834
call fcn.004064b4
ret 4

Function at 0x40679c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4c3058], 0
je 0x406803
cmp word [0x4c3344], 0xd7b2
jne 0x4067c5
cmp dword [0x4c334c], 0
jbe 0x4067c5
mov eax, 0x4c3340
call dword [0x4c335c]
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, 0x406830
call fcn.00407540
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4bf032], 0
jne 0x40681f
push 0
push 0x4bf9c2
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4069fc
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 [0x4bf034], 0
je 0x406a27
mov edx, edi
mov eax, esi
call dword [0x4bf034]
mov ebx, eax
jmp 0x406a38
mov eax, 8
call fcn.004044f0
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x4c3059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x4069c4
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 0x406a6d
mov edx, 8
mov eax, ebx
call fcn.0040450c
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x409228
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 0x40938d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00406b40
cmp si, word [0x4bfa00]
jb 0x4092c0
cmp si, word [0x4bfc00]
ja 0x4092c0
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x4092c0
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x4bfa00]
jae 0x40929a
mov edi, ebx
dec edi
jmp 0x4092bb
cmp si, word [ebx*8 + 0x4bfa00]
jbe 0x4092aa
inc ebx
mov dword [ebp - 8], ebx
jmp 0x4092bb
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4bfa04]
call fcn.00409138
jmp 0x4092c0
cmp edi, dword [ebp - 8]
jae 0x409284
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40936f
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40936f
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.00407a30
push dword [ebp - 0x160]
push 0x4093a8
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00407a30
push dword [ebp - 0x164]
push 0x4093b8
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00407a30
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00407c68
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409394
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00406ba0
ret