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

Disassembly:
sub esp, 0x88
mov eax, dword [0x4e3260]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
push ebp
mov ebp, dword [esp + 0x94]
mov ebx, dword [ebp]
push esi
mov esi, dword [ebp + 0x3d0]
push edi
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0x80
mov edx, dword [esi + 0x154]
mov eax, dword [esi + 0x15c]
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esi + 0x14]
push 0
add edx, 4
lea edi, [esi + 0x15c]
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [esi + 0x148], 0
mov dword [esi + 0x14c], eax
jne 0x4a435f
mov edx, dword [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esi + 0xc8]
push ecx
call fcn.00474190
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov dword [esi + 0x148], edx
mov edx, dword [esi + 0x14c]
cmp edx, 4
jge 0x4a439a
push str.Received_too_short_packet
push ebx
call fcn.00499fe0
add esp, 8
mov dword [esi + 0xc], 7
xor eax, eax
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0046f480
add esp, 0x88
ret
mov eax, edi
call fcn.004a31b0
movzx eax, ax
mov dword [esi + 0xc], eax
add eax, 0xfffffffd
cmp eax, 3
ja case.default.0x4a43b3
jmp dword [eax*4 + 0x4a44a0]
cmp edx, 4
jle case.0x4a43b3.4
mov eax, edi
call fcn.004a31c0
movzx ecx, word [esi + 0x40]
add ecx, 1
cmp cx, ax
jne case.0x4a43b3.4
add edx, 0xfffffffc
push edx
mov edx, dword [edi]
add edx, 4
push edx
push 1
push ebp
call fcn.0049a2c0
mov edi, eax
add esp, 0x10
test edi, edi
je 0x4a4408
mov ecx, 5
mov eax, esi
call fcn.004a4250
mov eax, edi
jmp 0x4a4381
mov eax, dword [esi + 0x14c]
sub eax, 4
cdq
add dword [ebx + 0x38], eax
mov ecx, dword [ebx + 0x38]
adc dword [ebx + 0x3c], edx
mov eax, dword [ebx + 0x3c]
push eax
push ecx
push ebx
call fcn.004b0ea0
jmp 0x4a4474
mov eax, edi
call fcn.004a31c0
movzx edx, ax
mov eax, dword [edi]
add eax, 4
push eax
push 0x4cc630
push ebx
mov dword [esi + 8], edx
call fcn.00499f50
jmp 0x4a4474
mov ecx, dword [edi]
add edx, 0xfffffffe
push edx
add ecx, 2
push ecx
push esi
call fcn.004a3260
add esp, 0xc
test eax, eax
je case.0x4a43b3.4
jmp 0x4a4381
push str.Internal_error:_Unexpected_packet
push 0x4c48e4
push ebx
call fcn.00499fe0
add esp, 0xc
push ebp
call fcn.004b0f60
add esp, 4
test eax, eax
je 0x4a437f
mov ecx, 5
mov eax, esi
call fcn.004a4250
mov eax, 0x2a
jmp 0x4a4381

Function at 0x4a6210
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
mov edx, dword [edi + 0x130]
mov al, byte [esp + 8]
push esi
mov esi, dword [edi]
push 0
push 3
lea ecx, [esp + 0xc]
push ecx
push edx
mov byte [esp + 0x14], 0xff
mov byte [esp + 0x15], al
mov byte [esp + 0x16], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jge 0x4a6254
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.00499fe0
add esp, 0xc
mov esi, dword [esp + 0xc]
mov ecx, dword [edi]
push str.SENT
mov eax, ebx
call fcn.004a6100
add esp, 4
pop esi
pop ecx
ret
Function at 0x4a78a0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x18
mov eax, dword [0x4e3260]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
mov ebx, dword [esi + 0x134]
push ebp
push edi
mov edi, dword [esi]
push 1
push 0
push edi
or ebp, 0xffffffff
mov dword [esp + 0x18], 0x10
call fcn.0049a420
add esp, 0xc
test eax, eax
jl 0x4a7909
mov ecx, 0x3e8
cmp eax, ecx
jge 0x4a78e0
mov ecx, eax
push ecx
push 0xffffffffffffffff
push ebx
call fcn.004af920
add esp, 0xc
cmp eax, 0xffffffff
je 0x4a79a4
test eax, eax
jne 0x4a792e
push 1
push eax
push edi
call fcn.0049a420
add esp, 0xc
test eax, eax
jge 0x4a78d5
push str.Timeout_while_waiting_for_server_connect
push edi
call fcn.00499fe0
add esp, 8
pop edi
pop ebp
mov eax, 0x1c
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0046f480
add esp, 0x18
ret
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
push ebx
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x4a795e
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x14]
push eax
push ebx
mov dword [esp + 0x18], 0x10
call dword [sym.imp.WS2_32.dll_accept]
mov ebp, eax
push ebx
push esi
call fcn.0049ac30
add esp, 8
cmp ebp, 0xffffffff
jne 0x4a7974
push str.Error_accept__ing_server_connect
jmp 0x4a79a9
push str.Connection_accepted_from_server_n
push edi
call fcn.00499f50
push 1
push ebp
mov dword [esi + 0x134], ebp
call fcn.004b34f0
add esp, 0x10
pop edi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0046f480
add esp, 0x18
ret
push str.Error_while_waiting_for_server_connect
push edi
call fcn.00499fe0
mov ecx, dword [esp + 0x28]
add esp, 8
pop edi
pop ebp
pop ebx
xor ecx, esp
mov eax, 0x1e
call fcn.0046f480
add esp, 0x18
ret
Function at 0x4af920
Capabilities:
Check for time delay via gettickcount
Get socket status

Disassembly:
sub esp, 0x31c
push ebx
mov ebx, dword [esp + 0x324]
push ebp
mov ebp, dword [esp + 0x32c]
push esi
xor esi, esi
cmp ebx, 0xffffffff
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], esi
jne 0x4af964
cmp ebp, ebx
jne 0x4af964
mov eax, dword [esp + 0x334]
push eax
call fcn.004af8f0
add esp, 4
pop esi
pop ebp
pop ebx
add esp, 0x31c
ret
push edi
mov edi, dword [esp + 0x338]
cmp edi, esi
jle 0x4af97f
mov esi, edi
call fcn.0049ed30
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
xor eax, eax
xor ecx, ecx
or edx, 0xffffffff
cmp ebx, 0xffffffff
mov dword [esp + 0x20], ecx
mov dword [esp + 0x124], eax
je 0x4af9b3
mov ecx, 1
mov dword [esp + 0x128], ebx
mov dword [esp + 0x124], ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ecx
mov edx, ebx
cmp ebp, 0xffffffff
mov dword [esp + 0x228], eax
je 0x4af9fa
test ecx, ecx
mov dword [esp + 0x22c], ebp
mov dword [esp + 0x228], 1
jbe 0x4af9e2
cmp dword [esp + eax*4 + 0x24], ebp
je 0x4af9e2
add eax, 1
cmp eax, ecx
jb 0x4af9d5
cmp eax, ecx
jne 0x4af9f4
cmp ecx, 0x40
jae 0x4af9f4
mov dword [esp + eax*4 + 0x24], ebp
add dword [esp + 0x20], 1
cmp ebp, edx
jbe 0x4af9fa
mov edx, ebp
xor ebx, ebx
test edi, edi
setl bl
lea ecx, [esp + 0x18]
lea ebp, [edx + 1]
sub ebx, 1
and ebx, ecx
lea ecx, [ecx]
xor eax, eax
cmp edi, eax
jle 0x4afa41
mov eax, 0x10624dd3
imul esi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x18], eax
imul eax, eax, 0x3e8
mov edx, esi
sub edx, eax
imul edx, edx, 0x3e8
mov dword [esp + 0x1c], edx
jmp 0x4afa4b
jne 0x4afa4b
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
push ebx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x230]
push ecx
lea edx, [esp + 0x130]
push edx
push ebp
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x4afab5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x4afa7e
cmp eax, 0x2714
jne 0x4afab9
test edi, edi
jle 0x4afa10
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call fcn.0049ed30
push edx
push eax
call fcn.0049ed60
mov esi, edi
sub esi, eax
add esp, 0x10
test esi, esi
jg 0x4afa10
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x31c
ret
test eax, eax
jge 0x4afac7
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x31c
ret
jne 0x4afad6
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x31c
ret
mov edi, dword [esp + 0x330]
xor esi, esi
cmp edi, 0xffffffff
je 0x4afb0d
lea edx, [esp + 0x124]
push edx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4afafb
mov esi, 1
lea eax, [esp + 0x20]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4afb0d
or esi, 4
mov edi, dword [esp + 0x334]
cmp edi, 0xffffffff
je 0x4afb40
lea ecx, [esp + 0x228]
push ecx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4afb2e
or esi, 2
lea edx, [esp + 0x20]
push edx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4afb40
or esi, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x31c
ret
Function at 0x4b1690
Capabilities:
Parse pe header

Disassembly:
mov al, byte [esp + 4]
movsx ecx, al
add ecx, 0xffffff9f
cmp ecx, 0x19
ja case.default.0x4b169f
jmp dword [ecx*4 + 0x4b16f4]
mov al, 0x41
ret
mov al, 0x42
ret
mov al, 0x43
ret
mov al, 0x44
ret
mov al, 0x45
ret
mov al, 0x46
ret
mov al, 0x47
ret
mov al, 0x48
ret
mov al, 0x49
ret
mov al, 0x4a
ret
mov al, 0x4b
ret
mov al, 0x4c
ret
mov al, 0x4d
ret
mov al, 0x4e
ret
mov al, 0x4f
ret
mov al, 0x50
ret
mov al, 0x51
ret
mov al, 0x52
ret
mov al, 0x53
ret
mov al, 0x54
ret
mov al, 0x55
ret
mov al, 0x56
ret
mov al, 0x57
ret
mov al, 0x58
ret
mov al, 0x59
ret
mov al, 0x5a
ret

Function at 0x4b1880
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x4e3260]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.004884d1
add esp, 4
test eax, eax
mov byte [esp], 0
je 0x4b18e5
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp byte [esp], 0
je 0x4b18e5
lea edx, [esp]
push edx
call dword [0x4e46f8]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0046f480
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.0046f480
add esp, 0x108
ret
jmp 0x4b1880

Function at 0x4b1900
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x4e3260]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.004884d1
add esp, 4
test eax, eax
mov byte [esp], 0
je 0x4b18e5
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp byte [esp], 0
je 0x4b18e5
lea edx, [esp]
push edx
call dword [0x4e46f8]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0046f480
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.0046f480
add esp, 0x108
ret
jmp 0x4b1880

Function at 0x4b4380
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x4b702c
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4e3260]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004b6fc1
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.0046ee70
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 0x4b707b
cmp dword [ebp - 0x1c], 5
jb 0x4b7093
jmp 0x4b708f
cmp dword [ebp - 0x10], 1
jne 0x4b7093
cmp dword [ebp - 0x1c], 4
ja 0x4b708f
jne 0x4b7093
cmp dword [ebp - 0x18], 0
jbe 0x4b7093
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4d1c0c
call fcn.004b6eb2
test eax, eax
jge 0x4b70b4
mov byte [0x4ea045], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0046f480
add ebp, 0x78
leave
ret
Function at 0x4070d8
Capabilities:
Generate random numbers using the delphi lcg

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

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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00408b5c
mov byte [esp], al
cmp byte [esp], 0
jne 0x408859
test edi, edi
je 0x408859
mov byte [esp + 1], 0
test ebp, ebp
jle 0x408799
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x408774
cmp edi, 0xffffffff
je 0x408735
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408735
mov byte [esp], 0
jmp 0x408859
cmp dword [esi], 1
jg 0x408774
cmp dword [esi], 0
jne 0x408766
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x408766
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x408859
lea eax, [esp + 0xc]
call fcn.0040838c
dec ebp
test ebp, ebp
jg 0x40871a
cmp edi, 0xffffffff
je 0x408799
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408797
mov byte [esp], 0
jmp 0x408859
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4086de
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408799
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.004088c8
mov edx, eax
mov ebx, dword [0x4de8f8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x4087fd
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x4087fb
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x4087fd
xor edi, edi
cmp byte [esp], 0
je 0x408823
mov ebx, dword [esi]
test bl, 1
jne 0x408839
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408803
mov byte [esp + 1], 1
jmp 0x408839
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408823
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x4087b0
cmp byte [esp], 0
je 0x408859
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x40949c
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push esi
push edi
mov ebx, 0x4e0b98
cmp dword [ebp + 0xc], 2
jl 0x4094b0
mov ebx, 0x4e0bc8
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 0x4094e8
mov ecx, dword [eax]
mov dword [ebx + 0xc], ecx
mov eax, 0x4050cc
mov dword [0x4de01c], eax
mov eax, 0x4050d4
mov dword [0x4de020], eax
mov eax, ebx
call fcn.00409380
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 0x40951d
cmp al, 3
jge 0x40951d
call dword [ecx + eax*4]
push ecx
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x40952e
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
call ecx
pop ecx
mov eax, dword [ebp + 0xc]
cmp al, 3
jl 0x409539
call dword [ecx + eax*4]
cmp dword [0x4de040], 0
jne 0x40954f
mov byte [0x4de048], 1
fnstcw word [0x4da028]
mov eax, dword [ebp + 0xc]
dec eax
jne fcn.004097e8
call fcn.00409430
ret 4

Function at 0x409750
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4de058], 0
je 0x4097b7
cmp word [0x4de344], 0xd7b2
jne 0x409779
cmp dword [0x4de34c], 0
jbe 0x409779
mov eax, 0x4de340
call dword [0x4de35c]
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, 0x4097e4
call fcn.0040a23c
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4da032], 0
jne 0x4097d3
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x409978
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 [0x4da034], 0
je 0x4099a3
mov edx, edi
mov eax, esi
call dword [0x4da034]
mov ebx, eax
jmp 0x4099b4
mov eax, 8
call fcn.00406e0c
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x4de059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x409940
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 0x4099e4
mov eax, ebx
call fcn.00406e28
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40c440
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 0x40c5a5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00409ab8
cmp si, word [0x4daa00]
jb 0x40c4d8
cmp si, word [0x4dac00]
ja 0x40c4d8
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40c4d8
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x4daa00]
jae 0x40c4b2
mov edi, ebx
dec edi
jmp 0x40c4d3
cmp si, word [ebx*8 + 0x4daa00]
jbe 0x40c4c2
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40c4d3
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4daa04]
call fcn.0040c360
jmp 0x40c4d8
cmp edi, dword [ebp - 8]
jae 0x40c49c
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40c587
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40c587
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.0040a5dc
push dword [ebp - 0x160]
push 0x40c5c0
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040a5dc
push dword [ebp - 0x164]
push 0x40c5d0
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040a5dc
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040a814
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c5ac
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00409b18
ret
Function at 0x40c758
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 0x40c85c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4e0c10
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4e0c28]
jne 0x40c7a4
mov eax, esi
mov edx, 0x4e0c2a
mov ecx, 0x55
call fcn.0040a5dc
push 0x4e0c10
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40c846
push 0x4e0c10
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00409ab8
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40c813
cmp byte [0x4e0c0c], 0
je 0x40c7d8
mov edx, esi
mov eax, ebx
call fcn.0040c63c
jmp 0x40c813
mov edx, esi
mov eax, ebx
call fcn.0040c440
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40c813
cmp dword [esi], 0
je 0x40c7fc
mov eax, esi
mov edx, 0x40c874
call fcn.0040a734
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040c440
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040a734
push 0x4e0c10
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4e0c28], bx
mov eax, dword [esi]
call fcn.0040a538
mov ecx, eax
mov eax, 0x4e0c2a
mov edx, 0xaa
call fcn.0040c2c0
push 0x4e0c10
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c863
lea eax, [ebp - 4]
call fcn.00409ab8
ret
Function at 0x40ca8c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00409b9c
xor eax, eax
push ebp
push 0x40ccb1
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40cacc
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40cae6
mov eax, dword [ebp - 4]
call fcn.0040a538
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040c2c0
cmp word [ebp - 0x21a], 0
je 0x40cc9b
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40ccc0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40cbb5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40ccc0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40cbb5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40ccfc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40cbb5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40ccfc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40cbb5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40cd30
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40cbb5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40cd64
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40cc9b
xor eax, eax
push ebp
push 0x40cc94
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040c89c
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40cc24
mov eax, dword [ebp - 0x10]
call fcn.00406e0c
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040a5a0
jmp 0x40cc6f
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40cda4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40cc6f
mov eax, dword [ebp - 0x10]
call fcn.00406e0c
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40cda4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040a5a0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cc9b
cmp dword [ebp - 8], 0
je 0x40cc8a
mov eax, dword [ebp - 8]
call fcn.00406e28
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ccb8
lea eax, [ebp - 4]
call fcn.00409ab8
ret
Function at 0x40cfa0
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00409b9c
xor eax, eax
push ebp
push 0x40d060
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
lea eax, [ebp - 0xc]
push eax
push 3
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx eax, ax
push eax
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040a5dc
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a78c
mov eax, dword [ebx]
call fcn.0040ce68
test al, al
jne 0x40d03d
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040a5dc
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a78c
mov eax, dword [ebx]
call fcn.0040ce68
test al, al
jne 0x40d03d
mov eax, ebx
call fcn.00409ab8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d067
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00409b18
lea eax, [ebp - 4]
call fcn.00409ab8
ret

Function at 0x40ecb8
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret