joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b29a0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x18
mov eax, dword [0x5375a0]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
push ebp
mov ebp, dword [esi]
push edi
mov edi, dword [esi + 0xcc]
push 1
push 0
push esi
or ebx, 0xffffffff
mov dword [esp + 0x18], 0x10
call fcn.004a81c0
add esp, 0xc
test eax, eax
jle 0x4b2a09
mov ecx, 0x3e8
cmp eax, ecx
jge 0x4b29e0
mov ecx, eax
push ecx
push 0xffffffffffffffff
push edi
call fcn.004b9bb0
add esp, 0xc
cmp eax, 0xffffffff
je 0x4b2aa1
test eax, eax
jne 0x4b2a2e
push 1
push eax
push esi
call fcn.004a81c0
add esp, 0xc
test eax, eax
jg 0x4b29d5
push str.Timeout_while_waiting_for_server_connect
push ebp
call fcn.004a7e20
add esp, 8
pop edi
pop ebp
mov eax, 0x1c
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004c60f4
add esp, 0x18
ret
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x4b2a5e
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x14]
push eax
push edi
mov dword [esp + 0x18], 0x10
call dword [sym.imp.WS2_32.dll_accept]
mov ebx, eax
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
cmp ebx, 0xffffffff
jne 0x4b2a71
push str.Error_accept__ing_server_connect
jmp 0x4b2aa6
push str.Connection_accepted_from_server_n
push ebp
call fcn.004a7d90
push 1
push ebx
mov dword [esi + 0xcc], ebx
call fcn.004bdc70
add esp, 0x10
pop edi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004c60f4
add esp, 0x18
ret
push str.Error_while_waiting_for_server_connect
push ebp
call fcn.004a7e20
mov ecx, dword [esp + 0x28]
add esp, 8
pop edi
pop ebp
pop ebx
xor ecx, esp
mov eax, 0x1e
call fcn.004c60f4
add esp, 0x18
ret
Function at 0x4b9bb0
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
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], esi
cmp ebx, 0xffffffff
jne 0x4b9bf0
cmp ebp, ebx
jne 0x4b9bf0
mov eax, dword [esp + 0x334]
call fcn.004b9b90
pop esi
pop ebp
pop ebx
add esp, 0x31c
ret
push edi
mov edi, dword [esp + 0x338]
cmp edi, esi
jle 0x4b9c0b
mov esi, edi
call fcn.004bae00
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
xor eax, eax
xor ecx, ecx
or edx, 0xffffffff
mov dword [esp + 0x20], ecx
mov dword [esp + 0x124], eax
cmp ebx, 0xffffffff
je 0x4b9c3f
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
mov dword [esp + 0x228], eax
cmp ebp, 0xffffffff
je 0x4b9c83
mov dword [esp + 0x22c], ebp
mov dword [esp + 0x228], 1
test ecx, ecx
jbe 0x4b9c6c
cmp dword [esp + eax*4 + 0x24], ebp
je 0x4b9c6c
inc eax
cmp eax, ecx
jb 0x4b9c61
cmp eax, ecx
jne 0x4b9c7d
cmp ecx, 0x40
jae 0x4b9c7d
mov dword [esp + eax*4 + 0x24], ebp
inc dword [esp + 0x20]
cmp ebp, edx
jbe 0x4b9c83
mov edx, ebp
xor ebx, ebx
test edi, edi
setl bl
lea eax, [esp + 0x18]
lea ebp, [edx + 1]
dec ebx
and ebx, eax
xor eax, eax
cmp edi, eax
jle 0x4b9cc5
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 ecx, esi
sub ecx, eax
imul ecx, ecx, 0x3e8
mov dword [esp + 0x1c], ecx
jmp 0x4b9ccf
jne 0x4b9ccf
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
push ebx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x230]
push eax
lea ecx, [esp + 0x130]
push ecx
push ebp
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x4b9d39
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x4b9d02
cmp eax, 0x2714
jne 0x4b9d3d
test edi, edi
jle 0x4b9c94
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edx
push eax
call fcn.004bae00
push edx
push eax
call fcn.004bae30
mov esi, edi
sub esi, eax
add esp, 0x10
test esi, esi
jg 0x4b9c94
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x31c
ret
test eax, eax
jge 0x4b9d4b
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x31c
ret
jne 0x4b9d5a
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 0x4b9d91
lea ecx, [esp + 0x124]
push ecx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4b9d7f
mov esi, 1
lea edx, [esp + 0x20]
push edx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4b9d91
or esi, 4
mov edi, dword [esp + 0x334]
cmp edi, 0xffffffff
je 0x4b9dc4
lea eax, [esp + 0x228]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4b9db2
or esi, 2
lea ecx, [esp + 0x20]
push ecx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4b9dc4
or esi, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x31c
ret
Function at 0x4ba240
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], 0
mov dword [eax], 0
call fcn.004bae00
mov esi, dword [esp + 0x1c]
mov ecx, dword [esi + 0xc4]
push ecx
mov ecx, dword [esi + 0xc0]
push ecx
push edx
push eax
call fcn.004bae30
mov ebx, dword [esp + 0x40]
add esp, 0x10
cmp eax, ebx
jg 0x4ba2fa
mov edi, dword [esp + 0x28]
mov ebp, dword [esp + 0x24]
lea ebx, [ebx]
mov edx, ebx
sub edx, eax
mov eax, dword [esp + 0x20]
push edx
push 0xffffffffffffffff
push eax
call fcn.004b9bb0
add esp, 0xc
test eax, eax
jle 0x4ba31d
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x14]
push ecx
push edi
push ebp
push edx
call fcn.004a7ac0
add esp, 0x10
cmp eax, 0x51
je 0x4ba2d9
test eax, eax
jne 0x4ba320
mov eax, dword [esp + 0x14]
cmp edi, eax
je 0x4ba307
test eax, eax
je 0x4ba31d
sub edi, eax
add ebp, eax
add dword [esp + 0x10], eax
call fcn.004bae00
mov ecx, dword [esi + 0xc4]
push ecx
mov ecx, dword [esi + 0xc0]
push ecx
push edx
push eax
call fcn.004bae30
add esp, 0x10
cmp eax, ebx
jle 0x4ba290
pop edi
pop esi
pop ebp
mov eax, 0x1c
pop ebx
add esp, 8
ret
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
add eax, edx
pop ebp
mov dword [ecx], eax
xor eax, eax
pop ebx
add esp, 8
ret
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret

Function at 0x4bbb10
Capabilities:
Parse pe header

Disassembly:
mov al, byte [esp + 4]
movsx ecx, al
add ecx, 0xffffff9f
cmp ecx, 0x19
ja case.default.0x4bbb1f
jmp dword [ecx*4 + 0x4bbb74]
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 0x4bdd30
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push 0
push 0
push eax
push ecx
push 0
push 0
call fcn.004c9f62
add esp, 0x18
test eax, eax
je 0x4bdd53
cmp eax, 0xffffffff
jne 0x4bdd55
xor eax, eax
ret

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

Disassembly:
mov eax, dword [esp + 4]
push ebx
mov ebx, dword [eax + 0x2c]
push esi
push edi
mov edi, dword [ebx]
mov esi, dword [edi + 0x1a4]
test esi, esi
jne 0x4bddb9
mov esi, dword [eax + 0x28]
mov ecx, dword [eax + 0x24]
mov edx, dword [eax + 0x20]
push ecx
push edx
call fcn.004bae00
push edx
push eax
call fcn.004bae30
add esp, 0x10
sub esi, eax
cmp dword [edi + 0x19c], 0
je 0x4bde06
mov eax, dword [ebx + 0xbc]
mov ecx, dword [ebx + 0xb8]
push eax
push ecx
call fcn.004bae00
push edx
push eax
call fcn.004bae30
mov ecx, dword [edi + 0x19c]
sub ecx, eax
add esp, 0x10
cmp esi, ecx
mov eax, ecx
jge 0x4bde08
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x4be8d0
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 0x4c60f4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5375a0]
jne 0x4c60fe
repz ret
jmp fcn.004d1fc8

Function at 0x4e127e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004cb5aa
and dword [ebp - 4], 0
cmp dword [0x53d6d8], 0
mov ebx, eax
jne 0x4e132f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4e13e0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4e13e0
push eax
call fcn.004cb538
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x53d6d8], eax
call esi
push eax
call fcn.004cb538
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x53d6dc], eax
call esi
push eax
call fcn.004cb538
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x53d6e0], eax
call esi
push eax
call fcn.004cb538
pop ecx
mov dword [0x53d6e8], eax
test eax, eax
je 0x4e132f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004cb538
pop ecx
mov dword [0x53d6e4], eax
mov eax, dword [0x53d6e4]
cmp eax, ebx
je 0x4e1387
cmp dword [0x53d6e8], ebx
je 0x4e1387
push eax
call fcn.004cb5b3
push dword [0x53d6e8]
mov esi, eax
call fcn.004cb5b3
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4e1387
test edi, edi
je 0x4e1387
call esi
test eax, eax
je 0x4e137e
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4e137e
test byte [ebp - 0xc], 1
jne 0x4e1387
or dword [ebp + 0x10], 0x200000
jmp 0x4e13c0
mov eax, dword [0x53d6dc]
cmp eax, ebx
je 0x4e13c0
push eax
call fcn.004cb5b3
pop ecx
test eax, eax
je 0x4e13c0
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4e13c0
mov eax, dword [0x53d6e0]
cmp eax, ebx
je 0x4e13c0
push eax
call fcn.004cb5b3
pop ecx
test eax, eax
je 0x4e13c0
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x53d6d8]
call fcn.004cb5b3
pop ecx
test eax, eax
je 0x4e13e0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4e13e2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4e63b0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x4e63df
push esi
call fcn.004e72a0
add esp, 4
cmp byte [esi + 0x40], 0
je 0x4e63d8
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x4e6459
mov eax, dword [esi + 0x1a0]
cmp byte [eax + 0x10], 0
je 0x4e6449
mov eax, dword [esi + 8]
test eax, eax
je 0x4e6404
mov ecx, dword [eax]
push esi
call ecx
add esp, 4
mov edx, dword [esi + 0x1a0]
mov eax, dword [edx]
push esi
call eax
add esp, 4
test eax, eax
je 0x4e6445
cmp eax, 2
je 0x4e6449
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4e63f5
cmp eax, 3
je 0x4e642c
cmp eax, 1
jne 0x4e63f5
inc dword [ecx + 4]
mov eax, dword [esi + 8]
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 8]
jl 0x4e63f5
mov edx, dword [esi + 0x120]
add dword [eax + 8], edx
jmp 0x4e63f5
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x84], eax
call fcn.004e6240
pop esi
ret
cmp eax, 0xcc
je 0x4e647b
mov ecx, dword [esi]
mov dword [ecx + 0x14], 0x15
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call edx
add esp, 4
call fcn.004e6240
pop esi
ret
Function at 0x4f1e90
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x18
push esi
push edi
mov edi, dword [esp + 0x24]
cmp dword [edi + 0x4c], 1
mov esi, dword [edi + 0x1b8]
mov dword [esp + 0x18], esi
jne 0x4f1eb7
mov dword [esp + 8], 0x1fe
mov byte [esi + 0x1c], 1
jmp 0x4f1ec3
mov dword [esp + 8], 0
mov byte [esi + 0x1c], 0
mov ecx, dword [edi + 0x64]
mov edx, dword [esp + 8]
mov eax, dword [edi + 4]
mov eax, dword [eax + 8]
push ecx
add edx, 0x100
push edx
push 1
push edi
call eax
xor ecx, ecx
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x14]
add esp, 0x10
cmp dword [edi + 0x64], ecx
mov dword [esp + 0x14], ecx
jle 0x4f1fd6
push ebx
lea edx, [esi + 0x20]
push ebp
mov dword [esp + 0x14], edx
jmp 0x4f1f08
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
mov edi, dword [edx]
cdq
idiv edi
cmp dword [esp + 0x10], 0
mov dword [esp + 0x18], eax
je 0x4f1f29
mov eax, dword [esi + 0x18]
add dword [eax + ecx*4], 0xff
lea eax, [eax + ecx*4]
mov edx, dword [esi + 0x18]
mov ebp, dword [edx + ecx*4]
lea eax, [edi + 0xfe]
lea esi, [edi + edi - 2]
cdq
idiv esi
xor ebx, ebx
mov dword [esp + 0x24], ebp
xor esi, esi
mov edx, eax
cmp esi, edx
jle 0x4f1f7f
mov ecx, ebx
lea ebp, [edi + edi - 2]
imul ecx, ecx, 0x1fe
jmp 0x4f1f60
add ecx, 0x1fe
lea eax, [ecx + edi + 0xfe]
cdq
idiv ebp
inc ebx
mov edx, eax
cmp esi, edx
jg 0x4f1f60
mov ecx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x24]
mov al, byte [esp + 0x18]
imul bl
mov byte [esi + ebp], al
inc esi
cmp esi, 0xff
jle 0x4f1f46
cmp dword [esp + 0x10], 0
je 0x4f1fbd
mov eax, 1
lea edx, [ebp - 1]
movzx ebx, byte [ebp]
mov byte [edx], bl
movzx ebx, byte [ebp + 0xff]
mov byte [eax + ebp + 0xff], bl
inc eax
dec edx
cmp eax, 0xff
jle 0x4f1fa0
mov eax, dword [esp + 0x2c]
add dword [esp + 0x14], 4
inc ecx
cmp ecx, dword [eax + 0x64]
mov dword [esp + 0x1c], ecx
jl 0x4f1f00
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x18
ret
Function at 0x50323c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x503295
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetCommandLineA
lea edx, [ebp - 8]
call fcn.005030d8
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.005030d8
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x50327f
inc ebx
jmp 0x503268
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50329c
lea eax, [ebp - 8]
call fcn.00504b1c
ret

Function at 0x5032a4
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00504b1c
test esi, esi
jne 0x5032db
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00504c0c
jmp 0x5032fc
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.005030d8
mov dword [esp], eax
test esi, esi
je 0x5032fc
cmp dword [ebx], 0
je 0x5032fc
dec esi
jmp 0x5032e3
add esp, 0x10c
pop esi
pop ebx
ret

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

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

Function at 0x503a30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x646024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x503ac8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x503aa8
xor eax, eax
push ebp
push 0x503aa1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x503ae4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x503aa8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x646024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x646024], ax
mov esp, ebp
pop ebp
ret

Function at 0x5048f4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x64b04c], 0
je 0x504955
cmp word [0x64b220], 0xd7b2
jne 0x50491d
cmp dword [0x64b228], 0
jbe 0x50491d
mov eax, 0x64b21c
call dword [0x64b238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x646070
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x50497c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x646034], 0
jne 0x504971
push 0
push 0x646068
push 0x646070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x504ad0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00502e10
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x64b04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x504a98
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x506f74
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 0x506fda
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.00504d9c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.005035d0
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x506fc4
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x506fe1
lea eax, [ebp - 0x10]
call fcn.00504b1c
ret

Function at 0x50af1c
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00504fec
push eax
call sub.kernel32.dll_GetFileAttributesA
pop ebx
ret

Function at 0x50dec8
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 0x50df01
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00504c0c
jmp 0x50df0a
invalid

Function at 0x50df14
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 0x50df35
mov al, byte [esp]
jmp 0x50df37
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x50ef40
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x50f016
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00504bb4
lea eax, [ebp - 8]
call fcn.0050503c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00504fec
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x50f000
mov eax, ebx
call fcn.00502e10
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x50eff9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00504fec
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x50efe3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x50f028
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x50efe3
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50f000
mov eax, dword [ebp - 0x10]
call fcn.00502e40
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50f01d
lea eax, [ebp - 8]
call fcn.00504b1c
ret
Function at 0x50f5fc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x50f660
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00504d9c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0050ab04
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50f667
lea eax, [ebp - 0xc]
call fcn.00504b1c
ret

Function at 0x5284b4
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov al, byte [eax + 0xe]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x528501
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xe], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.005282e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x528519
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x528520
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.005282e0
dec esi
jne 0x528542
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x529684
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x64daac
cmp dword [edi], 0
jne 0x529700
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x64daa8]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x646cd4
mov ecx, 2
call fcn.00503098
mov edx, 0x52965c
lea eax, [esi + 5]
call fcn.0052967c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0052967c
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x5296d5
mov dword [0x64daa8], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x52ad84
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x52ad8a
ret
Function at 0x52d494
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x52d4e5
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x52d4cc
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x52d4bc
jmp 0x52d4e5
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x52d4cd
pop ebx
mov esp, ebp
pop ebp
ret