joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414080
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 8]
mov esi, ecx
push 0x100
lea ebx, [esi + 0xc]
push ebx
call fcn.0041afdd
add esp, 0xc
push 0
push 0x20
push 3
push 0
push 1
push closesocket
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4140d8
push ebx
lea eax, [esi + 0x218]
push str.__s__Could_not_open_file
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebx
pop ebp
ret 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 8], eax
mov eax, dword [esi + 4]
test eax, eax
je 0x4140fb
push eax
call fcn.00417b87
add esp, 4
mov dword [esi + 4], 0
push dword [esi + 8]
call fcn.00417b8c
add esp, 4
mov dword [esi + 4], eax
lea ecx, [ebp + 8]
mov dword [ebp + 8], 0
push 0
push ecx
push dword [esi + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41414b
push ebx
lea eax, [esi + 0x218]
push str.__s__Could_not_read_file
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x10c], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
pop edi
mov dword [esi + 0x214], eax
mov al, 1
pop esi
pop ebx
pop ebp
ret 4
Function at 0x415f80
Capabilities:
Terminate thread

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
mov edi, ecx
mov eax, dword [edi + 0x70]
test eax, eax
je 0x415fa6
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [edi + 0x70]
call ebx
mov dword [edi + 0x70], 0
mov eax, dword [edi + 0x6c]
test eax, eax
je 0x415fb7
push eax
call ebx
mov dword [edi + 0x6c], 0
push esi
lea ecx, [edi + 0x38]
call fcn.00415020
lea esi, [edi + 0x14]
mov ebx, 8
mov eax, dword [esi]
test eax, eax
je 0x415fe5
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
add esi, 4
sub ebx, 1
jne 0x415fc8
mov eax, dword [edi + 0x10]
pop esi
test eax, eax
je 0x416011
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [edi + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
mov dword [edi + 0x10], 0
jmp 0x416017
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi + 8]
test eax, eax
je 0x416028
push eax
call ebx
mov dword [edi + 8], 0
mov eax, dword [edi + 4]
cmp eax, 0xffffffff
je 0x41603e
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi + 4], 0xffffffff
pop edi
pop ebx
ret
Function at 0x416260
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x5d16f0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test edi, edi
js 0x4163c8
cmp edi, 0x14
jge 0x4163c8
imul ecx, edi, 0x68
mov dword [ebp - 4], ecx
mov eax, dword [ecx + 0x5d28ac]
test eax, eax
js 0x4163c8
cmp eax, 0x14
jge 0x4163c8
cmp dword [ecx + 0x5d28b0], 0
je 0x4163c8
cmp dword [ecx + 0x5d28c4], 0xffffffff
je 0x4163c8
mov eax, dword [ebp + 0x10]
cmp eax, 0x2000
jle 0x4162df
push eax
push edi
push str._SocketManager__Max_msg_size__Type:_1__Index:__d__Size:__d_
push 1
call fcn.00417120
add esp, 0x10
jmp 0x4163c8
mov ebx, dword [ecx + 0x5d28cc]
cmp dword [ebx + 0x20], 0
jle 0x416346
mov edx, dword [ebx + 0x42028]
lea ecx, [edx + eax]
cmp ecx, 0x40000
jle 0x416312
push ecx
push edi
push str._SocketManager__Max_msg_size__Type:_2__Index:__d__Size:__d_
push 1
call fcn.00417120
add esp, 0x10
jmp 0x4163bd
push eax
push dword [ebp + 0xc]
lea eax, [ebx + 0x2028]
add eax, edx
push eax
call fcn.0041a6b0
mov ecx, dword [ebp + 0x10]
add esp, 0xc
add dword [ebx + 0x42028], ecx
push 0x5d16f0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push eax
push dword [ebp + 0xc]
lea esi, [ebx + 0x24]
push esi
call fcn.0041a6b0
mov ecx, dword [ebp + 0x10]
lea eax, [ebx + 0x14]
add esp, 0xc
mov dword [eax], ecx
mov dword [ebx + 0x20], ecx
lea ecx, [ebp + 8]
mov dword [ebx + 0x18], esi
mov dword [ebx + 0x1c], 1
push 0
push ebx
push 0
push ecx
push 1
push eax
mov eax, dword [ebp - 4]
mov dword [ebx + 0x2024], 0
mov dword [ebp + 8], 0
push dword [eax + 0x5d28c4]
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x416330
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x3e5
je 0x416330
call esi
push eax
push str._SocketManager__WSASend___failed_with_error:__d
push 1
call fcn.00417120
add esp, 0xc
push edi
mov ecx, 0x5d1678
call fcn.004163e0
push 0x5d16f0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4165b0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], esi
lea ebx, [esi + 0x78]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test edi, edi
js 0x41674c
cmp edi, 0x14
jge 0x41674c
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x4165f7
push edi
push str._SocketManager__Server___d__disconnected_send_Size__0
push 1
call fcn.00417120
mov ecx, esi
jmp 0x416743
mov esi, dword [ebp + 0x10]
imul eax, edi, 0x68
mov edx, dword [esi + 0x2024]
add edx, ecx
mov ecx, dword [esi + 0x20]
mov dword [ebp + 0xc], eax
mov dword [esi + 0x2024], edx
cmp edx, ecx
jl 0x4166e5
mov eax, dword [esi + 0x42028]
test eax, eax
jg 0x41663a
push ebx
mov dword [esi + 0x20], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea edx, [esi + 0x2028]
lea ecx, [esi + 0x24]
cmp eax, 0x2000
jle 0x4166af
push 0x2000
push edx
push ecx
call fcn.0041a6b0
lea eax, [esi + 0x24]
mov dword [esi + 0x14], 0x2000
mov dword [esi + 0x18], eax
add esp, 0xc
mov eax, dword [esi + 0x42028]
sub eax, 0x2000
mov dword [esi + 0x1c], 1
mov dword [esi + 0x20], 0x2000
push eax
lea eax, [esi + 0x4028]
mov dword [esi + 0x2024], 0
push eax
lea eax, [esi + 0x2028]
push eax
call fcn.0041a6b0
add esp, 0xc
lea eax, [esi + 0x14]
sub dword [esi + 0x42028], 0x2000
jmp 0x4166fb
push eax
push edx
push ecx
call fcn.0041a6b0
lea eax, [esi + 0x24]
mov dword [esi + 0x2024], 0
mov dword [esi + 0x18], eax
add esp, 0xc
mov eax, dword [esi + 0x42028]
mov dword [esi + 0x14], eax
mov dword [esi + 0x20], eax
lea eax, [esi + 0x14]
mov dword [esi + 0x42028], 0
jmp 0x4166f4
lea eax, [esi + 0x24]
add eax, edx
sub ecx, edx
mov dword [esi + 0x18], eax
lea eax, [esi + 0x14]
mov dword [eax], ecx
mov dword [esi + 0x1c], 1
push 0
push esi
push 0
lea ecx, [ebp + 8]
mov dword [ebp + 8], 0
push ecx
push 1
push eax
mov eax, dword [ebp + 0xc]
push dword [eax + 0x5d28c4]
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x41674c
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x3e5
je 0x41674c
call esi
push eax
push str._SocketManager__WSASend___failed_with_error:__d
push 1
call fcn.00417120
mov ecx, dword [ebp - 4]
add esp, 0xc
push edi
call fcn.004163e0
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x416ee0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
lea esi, [ebx + 0x13]
push esi
lea edi, [ebx + 8]
push edi
push str.SELECT_account_FROM_TRADE_X_WHERE_account_s_and_name_s
push 0x43edd8
call fcn.00414960
add esp, 0x10
test al, al
je 0x416fcd
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x416fcd
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
cmp byte [ebx + 0x7aa], 0
jne 0x416f7b
push esi
push edi
push str.DELETE_FROM_TRADE_X_WHERE_account_s_and_name_s
push 0x43edd8
call fcn.00414960
add esp, 0x10
push dword [0x43ede4]
mov eax, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call eax
mov eax, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43ede4]
call eax
pop edi
pop esi
pop ebx
pop ebp
ret 4
push 0x5d08e0
push 0
lea eax, [ebx + 0x29]
mov dword [0x5d08e0], 0x780
push eax
push 0
push 0x780
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
movzx eax, byte [ebx + 0x7a9]
push esi
push edi
push eax
lea eax, [ebx + 0x1e]
push eax
push str.UPDATE_TRADE_X_SET_Items__targetname_s__state_d_WHERE_account_s_and_name_s
push 0x43edd8
call fcn.00414960
add esp, 0x18
jmp 0x416f58
push dword [0x43ede4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43ede4]
call esi
movzx eax, byte [ebx + 0x7a9]
push eax
lea eax, [ebx + 0x13]
push eax
lea eax, [ebx + 8]
push eax
push str.INSERT_INTO_TRADE_X__account_name__state__date__VALUES___s___s___d__getdate___
push 0x43edd8
call fcn.00414960
add esp, 0x14
push dword [0x43ede4]
call edi
push 2
push dword [0x43ede4]
call esi
lea eax, [ebx + 0x13]
push eax
lea eax, [ebx + 8]
push eax
push 0x780
push 0x780
push str.UPDATE_TRADE_X_SET_ItemsCONVERT_varbinary__d__REPLICATE_char_0xFF___d___WHERE_account_s_AND_name_s
push 0x43edd8
call fcn.00414960
add esp, 0x18
push dword [0x43ede4]
call edi
push 2
push dword [0x43ede4]
call esi
push 0x5d08e0
push 0
lea eax, [ebx + 0x29]
mov dword [0x5d08e0], 0x780
push eax
push 0
push 0x780
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
lea eax, [ebx + 0x13]
push eax
lea eax, [ebx + 8]
push eax
lea eax, [ebx + 0x1e]
push eax
push str.UPDATE_TRADE_X_SET_Items__targetname_s_WHERE_account_s_and_name_s
push 0x43edd8
call fcn.00414960
add esp, 0x14
push dword [0x43ede4]
call edi
push 2
push dword [0x43ede4]
call esi
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x4170c0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x43e040]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x100
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.004190e0
mov edx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x104]
call fcn.004172d0
add esp, 0x10
lea eax, [ebp - 0x104]
push 0x10
push str.Error
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4183bd
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4183fc
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4183fc
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4183fc
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4183fc
cmp dword [ecx + 0x74], 0xe
jbe 0x4183fc
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x423863
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x432828
push 0x432820
push str.FlsAlloc
push 0x1f
call fcn.00423722
mov esi, eax
add esp, 0x10
test esi, esi
je 0x423897
push dword [ebp + 8]
mov ecx, esi
call dword [0x430268]
call esi
jmp 0x42389d
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4238e1
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x432838
push 0x432830
push str.FlsGetValue
push 0x21
call fcn.00423722
mov esi, eax
add esp, 0x10
test esi, esi
je 0x423918
push dword [ebp + 8]
mov ecx, esi
call dword [0x430268]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x423920
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x432840
push 0x432838
push str.FlsSetValue
push 0x22
call fcn.00423722
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42395a
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x430268]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4272fe
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x42739b
push ebx
push esi
call fcn.004272c7
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0042725b
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x427348
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42739a
push edi
push eax
call fcn.00423abf
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x427368
call fcn.00423a85
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x427399
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0042725b
add esp, 0x20
test eax, eax
jne 0x427387
push edi
call fcn.00423a85
jmp 0x42738f
push ebx
call fcn.00423a85
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x42739e
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4273af
pop esi
ret
push ebx
push edi
push esi
call fcn.004272c7
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00423abf
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4273d7
push ebx
push esi
push edi
call fcn.0041a6b0
add esp, 0xc
push 0
call fcn.00423a85
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4277a7
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004273ec
Function at 0x42ea10
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42ea3d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42ea3d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x402960
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov esi, edx
mov ebx, eax
test ebx, ebx
jne 0x40298f
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403ce4
jmp 0x4029ad
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.00402888
mov edi, eax
test ebx, ebx
je 0x4029ad
cmp dword [esi], 0
je 0x4029ad
dec ebx
jmp 0x402996
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

Disassembly:
imul edx, dword [0x4b703c], 0x8088405
inc edx
mov dword [0x4b703c], edx
mul edx
mov eax, edx
ret

Function at 0x402d28
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [section.DATA]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402dc0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402da0
xor eax, eax
push ebp
push 0x402d99
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 0x402ddc
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 0x402da0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [section.DATA]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [section.DATA], ax
mov esp, ebp
pop ebp
ret

Function at 0x403bb0
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.00402724
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x4b7041], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x403b78
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x405588
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x405744
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4055e9
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x405760
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40565b
xor eax, eax
push ebp
push 0x405654
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
call fcn.004053e0
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40563d
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405780
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40565b
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpyA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x40573c
cmp byte [ebp - 0xd], 0
jne 0x40569d
cmp byte [ebp - 0x12], 0
je 0x40573c
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4056b6
dec ebx
cmp byte [ebx], 0x2e
je 0x4056c5
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4056b5
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40573c
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4056f2
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40573c
cmp byte [ebp - 0xd], 0
je 0x40573c
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40573c
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405cc4
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, edx
mov edx, dword [ebx + 4]
sub edx, 0xd7b1
cmp edx, 2
ja 0x405d20
push ecx
push 0
mov eax, esp
push 0
push eax
mov eax, dword [ebx + 8]
mul ecx
push eax
push esi
push dword [ebx]
call sub.kernel32.dll_ReadFile
dec eax
pop eax
pop ecx
jne 0x405d12
xor edx, edx
div dword [ebx + 8]
mov edx, dword [esp + 0xc]
test edx, edx
je 0x405d07
mov dword [edx], eax
pop esi
pop ebx
ret 4
cmp eax, ecx
je 0x405d02
mov eax, 0x64
jmp 0x405d17
call sub.kernel32.dll_GetLastError
call fcn.00402814
xor eax, eax
jmp 0x405d02
mov eax, 0x67
jmp 0x405d17

Function at 0x405d64
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, eax
mov edx, dword [ebx + 4]
sub edx, 0xd7b1
cmp edx, 2
ja 0x405d94
push 0
push dword [ebx]
call sub.kernel32.dll_GetFileSize
cmp eax, 0xffffffff
je 0x405d8a
xor edx, edx
div dword [ebx + 8]
pop ebx
ret
call fcn.00402824
or eax, 0xffffffff
jmp 0x405d88
mov eax, 0x67
call fcn.00402814
or eax, 0xffffffff
jmp 0x405d88

Function at 0x4093d8
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 0x409411
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403ce4
jmp 0x40941a
mov eax, ebx
mov edx, esi
call fcn.00403c50
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x415818
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
jne 0x41582d
mov byte [ebx + 0xd], 0
pop ebx
ret

Function at 0x41783c
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 0x417842
ret

Function at 0x419ce8
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 0x419d39
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x419d20
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x419d10
jmp 0x419d39
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 0x419d21
pop ebx
mov esp, ebp
pop ebp
ret