joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401080
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push esi
push edi
mov esi, ecx
push eax
push 0x202
mov dword [esi], 0x403290
call dword [sym.imp.WS2_32.dll_WSAStartup]
xor edi, edi
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x1c], eax
mov dword [esi + 0x4da9c], edi
mov dword [esi + 4], edi
mov ecx, 0x1369e
xor eax, eax
lea edi, [esi + 0x20]
mov dword [esi + 8], 0xffffffff
rep stosd dword es:[edi], eax
mov eax, esi
pop edi
pop esi
add esp, 0x190
ret

Function at 0x401160
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Create thread
Resolve dns

Disassembly:
sub esp, 0x10
push esi
push 6
push 1
mov esi, ecx
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 8], eax
jne 0x401183
xor eax, eax
pop esi
add esp, 0x10
ret 8
push ebx
mov ebx, dword [esp + 0x20]
push ebp
mov ebp, dword [esp + 0x20]
push edi
push ebp
call dword [sym.imp.WS2_32.dll_gethostbyname]
push ebx
mov edi, eax
mov word [esp + 0x14], 2
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x12], ax
mov eax, dword [edi + 0xc]
push 0x10
mov ecx, dword [eax]
lea eax, [esp + 0x14]
push eax
mov edx, dword [ecx]
mov ecx, dword [esi + 8]
push ecx
mov dword [esp + 0x20], edx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4011e6
mov edx, dword [esi + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esi + 0x1c]
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x40118e
push 0x4042b0
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 4
push 0
push 0
push esi
push 0x401220
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
pop ebp
pop ebx
mov eax, 1
pop esi
add esp, 0x10
ret 8
Function at 0x4016a0
Capabilities:
Enumerate threads

Disassembly:
push 0xffffffffffffffff
push 0x402678
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov al, byte [esp + 0x44]
push ebx
xor ebx, ebx
push esi
push edi
mov dword [esp + 0xc], ebx
mov byte [esp + 0x10], al
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
push ebx
push 4
mov dword [esp + 0x4c], ebx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea ecx, [esp + 0x20]
mov esi, eax
push ecx
push esi
mov dword [esp + 0x28], 0x1c
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x401728
mov edi, dword [esp + 0x50]
cmp dword [esp + 0x2c], edi
jne 0x401719
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x28]
push edx
push 1
push eax
lea ecx, [esp + 0x1c]
call fcn.00401f80
lea ecx, [esp + 0x20]
push ecx
push esi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x4016fe
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x4c]
mov ecx, dword [esp + 0x14]
mov dl, byte [esp + 0x10]
cmp ecx, ebx
mov byte [esi], dl
jne 0x401745
xor eax, eax
jmp 0x40174e
mov eax, dword [esp + 0x18]
sub eax, ecx
sar eax, 2
cmp eax, ebx
jge 0x401754
xor eax, eax
shl eax, 2
push eax
call sub.MFC42.DLL_operatornew
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
add esp, 4
cmp ecx, edx
mov dword [esi + 4], eax
je 0x401785
cmp eax, ebx
je 0x401777
mov edi, dword [ecx]
mov dword [eax], edi
add ecx, 4
add eax, 4
cmp ecx, edx
jne 0x40176f
mov ecx, dword [esp + 0x14]
push ecx
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x40]
add esp, 4
mov eax, esi
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x3c
ret

Function at 0x401850
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x128
push ebx
push ebp
push esi
xor ebp, ebp
push edi
push ebp
push 2
mov dword [esp + 0x18], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
lea eax, [esp + 0x10]
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x4018bb
mov edi, dword [esp + 0x13c]
mov ebx, dword [sym.imp.MSVCRT.dll__mbsicmp]
lea ecx, [esp + 0x34]
push edi
push ecx
call ebx
add esp, 8
test eax, eax
je 0x4018b7
lea edx, [esp + 0x10]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x4018bb
lea eax, [esp + 0x34]
push edi
push eax
call ebx
add esp, 8
test eax, eax
jne 0x401899
mov ebp, dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x128
ret
Function at 0x401b40
Capabilities:
Print debug messages
Send data
Send data on socket

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40269b
push eax
mov eax, 0x9b518
mov dword fs:[0], esp
call fcn.004023f0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x404514
call esi
lea ecx, [esp + 4]
call fcn.00401080
push 0
push 0
push 0x12
push str.360tray.exe
mov dword [esp + 0x9b534], 0
call fcn.004018d0
push 0
push 0
push 0x12
push str.kxetray.exe
call fcn.004018d0
push 0
push 0
push 0x12
push str.QQPCTray.exe
call fcn.004018d0
push 0
push 0
push 0x12
push str.HipsTray.exe
call fcn.004018d0
add esp, 0x40
push 0
push 0
push 0x12
push str.2345SafeTray.exe
call fcn.004018d0
add esp, 0x10
lea ecx, [esp + 4]
call fcn.00401130
test eax, eax
je 0x401c24
push 0x4044c0
call esi
push str.ws2_32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.send
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4044a4
call esi
mov eax, dword [esp + 0xc]
push 0
push 3
push 0x4044a0
push eax
call dword [sym.imp.WS2_32.dll_send]
push 0x404498
call esi
mov eax, dword [esp + 0x4daa0]
pop esi
test eax, eax
jne 0x401c32
jmp 0x401c30
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp]
mov dword [esp + 0x9b520], 0xffffffff
call fcn.00401100
mov ecx, dword [esp + 0x9b518]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x9b524
ret
Function at 0x6d300d90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x6d300d9f
pop dword [ebp - 0x48]
mov eax, 0xfde0373c
sub eax, 0x90b0299d
sub dword [ebp - 0x48], eax
mov dword [ebp - 0x58], 0xed653625
add dword [ebp - 0x58], 0x60ed0f26
mov dword [ebp - 0x54], 0x7a280a29
sub dword [ebp - 0x54], 0x47f4bde4
mov dword [ebp - 0x50], 0x8784d91c
add dword [ebp - 0x50], 0xc4c76b12
mov dword [ebp - 0x4c], 0x50962d8a
add dword [ebp - 0x4c], 0xaf69d276
lea eax, [ebp - 0x58]
push eax
mov eax, 0x3e4bf90d
sub eax, 0xd11b68c1
add eax, dword [ebp - 0x48]
call dword [eax]
mov dword [ebp - 0x58], 0x9419954f
add dword [ebp - 0x58], 0xe058d407
mov dword [ebp - 0x54], 0x10af24d1
sub dword [ebp - 0x54], 0xcf42c35c
mov dword [ebp - 0x50], 0xd663377b
sub dword [ebp - 0x50], 0x72f3cb0f
mov dword [ebp - 0x4c], 0x8a2d150b
sub dword [ebp - 0x4c], 0x8a2d150b
lea ebx, [ebp - 0x58]
push ebx
push eax
mov eax, 0xbdde9b5
sub eax, 0x9ead595d
add eax, dword [ebp - 0x48]
call dword [eax]
push 0x40
push 0x1000
push 0x39a61
push 0
call eax
mov ecx, 0x10f4529a
add ecx, 0xef0c01dc
mov edi, eax
mov ebx, 0x303801c1
add ebx, 0x3cf9183f
add ebx, dword [ebp - 0x48]
mov edx, 0xf168814a
add edx, 0xdd64581d
sub dword [ebp - 0x40], esi
mov esi, dword [ebx]
add dword [ebp - 4], esi
xor esi, edx
mov dword [edi], esi
add dword [ebp - 0x14], 0x12ab8891
add edi, 0x9acab786
add edi, 0x6535487e
add ebx, 0x1dbd5fb9
add ebx, 0xe242a04b
loop 0x6d300ec1
add eax, 0xe3aec435
sub eax, 0xe3ad7f8a
mov ebx, eax
add eax, 0xb0f5c96e
add eax, 0x4f0a3697
mov ecx, 0x6d2f0000
add ecx, dword [ebp - 0x48]
call ebx
leave
ret
Function at 0x405646
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x405655
pop dword [ebp - 0x40]
mov eax, 0xcad9aa61
sub eax, 0xca99540c
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0x87a011d5
add dword [ebp - 0x50], 0xc6b23376
mov dword [ebp - 0x4c], 0xd69c9822
sub dword [ebp - 0x4c], 0xa4694bdd
mov dword [ebp - 0x48], 0xa53d2461
add dword [ebp - 0x48], 0xa70f1fcd
mov dword [ebp - 0x44], 0x66465486
add dword [ebp - 0x44], 0x99b9ab7a
lea eax, [ebp - 0x50]
push eax
mov eax, 0x29242821
add eax, 0xd71c4923
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0x4b86f958
add dword [ebp - 0x50], 0x28eb6ffe
mov dword [ebp - 0x4c], 0xd04daa9e
add dword [ebp - 0x4c], 0x711eb6d7
mov dword [ebp - 0x48], 0x59cf1bbe
add dword [ebp - 0x48], 0x9a050ae
mov dword [ebp - 0x44], 0xcecc98e8
add dword [ebp - 0x44], 0x31336718
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, 0x3a6cb0fa
add eax, 0xc5d3c016
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x35497
push 0
call eax
mov ecx, 0xa20873f0
sub ecx, 0xa2083278
mov edi, eax
mov edx, 0xf9842729
sub edx, 0xf940c729
add edx, dword [ebp - 0x40]
mov esi, 0x1fd76b52
xor dword [ebp - 0x14], edi
mov ebx, dword [edx]
add dword [ebp - 0x34], 0x95b0a661
xor ebx, esi
xor dword [ebp - 8], 0x8651108b
mov dword [edi], ebx
add edi, 4
add edx, 4
loop 0x405771
add eax, 0x2140a1c6
sub eax, 0x213fa913
xor ebx, ebx
add ebx, eax
add eax, 0xca9094e
add eax, 0xf356f6b7
mov ecx, 0x1947c0a
sub ecx, 0x1547c0a
add ecx, dword [ebp - 0x40]
call ebx
leave
ret

Function at 0x4058f5
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x421968
push esi
call fcn.00405d21
push esi
call fcn.004058a8
mov edi, eax
test edi, edi
jne 0x405916
xor eax, eax
jmp 0x405968
push edi
call fcn.00405f83
test byte [0x423f78], 0x80
je 0x40592f
mov al, byte [edi]
test al, al
je 0x405912
cmp al, 0x5c
je 0x405912
sub edi, esi
jmp 0x405947
call fcn.0040601c
test eax, eax
je 0x405941
test byte [eax], 0x10
je 0x405912
push esi
call fcn.0040585b
push esi
call sub.kernel32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405933
call fcn.00405814
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x4059d9
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4059f5
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
ret 4

Function at 0x4059f8
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.kernel32.dll_CreateFileA]
ret 0xc
Function at 0x412281
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x412290
pop dword [ebp - 0xc]
mov eax, 0xd747f5fc
add eax, 0x28f92c94
sub dword [ebp - 0xc], eax
push 0x40
push 0x1000
push 0x3938e
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0xc]
call dword [eax]
mov ecx, 0xd5cb0d15
sub ecx, 0xd5cac461
mov edx, eax
mov ebx, 0xef0ccdb7
add ebx, 0x1136a049
add ebx, dword [ebp - 0xc]
mov esi, 0x88899b33
sub esi, 0xa32f852b
sub dword [ebp - 4], ebx
mov edi, dword [ebx]
sub dword [ebp - 4], esi
sub edi, esi
xor dword [ebp - 4], esi
mov dword [edx], edi
sub dword [ebp - 8], esi
add edx, 0xec789c41
add edx, 0x138763c3
add ebx, 0xa398d756
add ebx, 0x5c6728ae
loop 0x4122ea
add eax, 0x7936d02f
add eax, 0x86ca4574
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x4029c0
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x4029fd
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x402a1d
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404cbc
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402c20
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404a54
test esi, esi
jne 0x402c56
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404b44
jmp 0x402c74
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402b34
mov edi, eax
test esi, esi
je 0x402c74
cmp dword [ebx], 0
je 0x402c74
dec esi
jmp 0x402c5d
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x403564
Capabilities:
Clear file content

Disassembly:
movzx edx, word [eax + 4]
sub edx, 0xd7b1
cmp edx, 2
ja 0x403582
push dword [eax]
call sub.kernel32.dll_SetEndOfFile
dec eax
je 0x40358c
jmp fcn.00402944
mov eax, 0x67
jmp fcn.00402934
ret

Function at 0x403ad4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x490010]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403b6c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403b4c
xor eax, eax
push ebp
push 0x403b45
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 0x403b88
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 0x403b4c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x490010]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x490010], ax
mov esp, ebp
pop ebp
ret
Function at 0x404854
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x49504c], 0
je 0x4048b5
cmp word [0x495220], 0xd7b2
jne 0x40487d
cmp dword [0x495228], 0
jbe 0x40487d
mov eax, 0x49521c
call dword [0x495238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x490078
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 0x4048dc
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x490020], 0
jne 0x4048d1
push 0
push 0x490098
push 0x490078
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404a08
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.004027ac
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x49504d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4049d0
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4094d4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404f04
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4094ed
test al, 0x10
jne 0x4094f1
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x409684
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404f04
push eax
call sub.kernel32.dll_GetFileAttributesA
pop ebx
ret

Function at 0x409698
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.00404f04
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x4096ba
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40b4c4
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 0x40b4fd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404b44
jmp 0x40b506
mov eax, ebx
mov edx, esi
call fcn.00404aa8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40bbb8
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40ba30
mov eax, dword [0x494764]
cmp byte [eax], 0
je 0x40bc25
mov eax, dword [0x494568]
call fcn.00403074
call fcn.00402914
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00409bf8
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40bc6c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40bc5b
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x494510]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x495718]
call fcn.004062bc
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40c9ac
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 0x40ca10
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.00404cbc
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004091c4
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ca17
lea eax, [ebp - 0xc]
call fcn.00404a54
ret

Function at 0x422628
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.004224ac
dec esi
jne 0x42264a
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x423774
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x495a28
cmp dword [edi], 0
jne 0x4237f0
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x495a24]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x490600
mov ecx, 2
call fcn.00402af4
mov edx, 0x42374c
lea eax, [esi + 5]
call fcn.0042376c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0042376c
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 0x4237c5
mov dword [0x495a24], 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 0x424dc4
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 0x424dca
ret

Function at 0x42764c
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 0x42769d
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x427684
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x427674
jmp 0x42769d
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 0x427685
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x436638
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea ebx, [ebp - 4]
xor eax, eax
push ebp
push 0x4367f8
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 8]
mov eax, dword [ebx]
call fcn.00446868
mov eax, dword [ebx]
cmp byte [eax + 0x210], 0
je 0x4367dd
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebx]
sub eax, dword [edx + 0x220]
cmp eax, 0x1f4
jb 0x43669b
mov eax, dword [ebx]
add eax, 0x21c
call fcn.00404a54
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebx]
mov dword [edx + 0x220], eax
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 8
je 0x43676c
mov eax, dword [ebp - 8]
mov al, byte [eax]
mov edx, dword [0x494894]
and eax, 0xff
bt dword [edx], eax
jae 0x43672e
push 1
push 0x102
push 0x102
mov eax, dword [ebx]
call fcn.00447918
push eax
lea eax, [ebp - 0x24]
push eax
call sub.user32.dll_PeekMessageA
test eax, eax
je 0x4367ac
mov eax, dword [ebx]
push dword [eax + 0x21c]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 8]
mov dl, byte [edx]
call fcn.00404c34
push dword [ebp - 0x28]
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
call fcn.00404c34
push dword [ebp - 0x2c]
mov eax, dword [ebx]
add eax, 0x21c
mov edx, 3
call fcn.00404dcc
mov eax, dword [ebp - 8]
mov byte [eax], 0
jmp 0x4367ac
lea eax, [ebp - 0x30]
mov edx, dword [ebp - 8]
mov dl, byte [edx]
call fcn.00404c34
mov edx, dword [ebp - 0x30]
mov eax, dword [ebx]
add eax, 0x21c
call fcn.00404d14
jmp 0x4367ac
mov eax, dword [ebx]
mov eax, dword [eax + 0x21c]
call fcn.00404d0c
mov edx, eax
mov eax, dword [ebx]
add eax, 0x21c
mov ecx, 1
call fcn.00404fa4
mov eax, dword [ebx]
mov eax, dword [eax + 0x21c]
call fcn.00404d0c
mov edx, eax
mov eax, dword [ebx]
mov eax, dword [eax + 0x21c]
call fcn.0040c568
cmp al, 2
je 0x43674c
mov eax, dword [ebx]
mov eax, dword [eax + 0x21c]
call fcn.00404d0c
mov edx, eax
mov eax, dword [ebx]
add eax, 0x21c
mov ecx, 1
call fcn.00404fa4
mov eax, dword [ebx]
mov eax, dword [eax + 0x21c]
call fcn.00404d0c
test eax, eax
jle 0x4367c6
push ebp
call fcn.00436550
pop ecx
jmp 0x4367dd
xor edx, edx
mov eax, dword [ebx]
mov ecx, dword [eax]
call dword [ecx + 0xcc]
mov eax, dword [ebx]
mov si, 0xffeb
call fcn.00403e60
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4367ff
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.00404a78
ret