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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffaf0
mov dword [esp], edx
mov esi, eax
lea eax, [esp + 0xc]
call fcn.00467dd0
lea edx, [esp + 0xc]
mov eax, esi
call fcn.00467dc0
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp + 8], 0x7a120
xor ebx, ebx
lea eax, [esp + 4]
push eax
push 0
push 0
lea eax, [esp + 0x18]
push eax
push 0
call sub.wsock32.dll_select
mov edi, eax
jmp 0x469105
lea eax, [esp + 0x110]
xor ecx, ecx
mov edx, 0x400
call fcn.004039c8
push 0
push 0x400
lea eax, [esp + 0x118]
push eax
push esi
call sub.wsock32.dll_recv
mov edi, eax
inc edi
jne 0x4690ba
mov eax, dword [esp]
call fcn.004050b8
jmp 0x469121
test bl, bl
jne 0x4690d4
mov eax, dword [esp]
lea edx, [esp + 0x110]
mov ecx, 0x400
call fcn.00405328
mov bl, 1
lea eax, [esp + 0xc]
call fcn.00467dd0
lea edx, [esp + 0xc]
mov eax, esi
call fcn.00467dc0
lea eax, [esp + 4]
push eax
push 0
push 0
lea eax, [esp + 0x18]
push eax
push 0
call sub.wsock32.dll_select
mov edi, eax
test edi, edi
jne 0x469105
xor ebp, ebp
test edi, edi
jle 0x469121
lea edx, [esp + 0xc]
mov eax, esi
call fcn.00467da8
test al, al
je 0x469121
cmp ebp, 1
je 0x469083
add esp, 0x510
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x469140
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Print debug messages
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405538
xor eax, eax
push ebp
push 0x469222
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [ebp - 0x18], 2
push ebx
call sub.wsock32.dll_htons
mov word [ebp - 0x16], ax
mov eax, dword [ebp - 4]
call fcn.00405548
push eax
call sub.wsock32.dll_inet_addr
mov dword [ebp - 0x14], eax
push 6
push 1
push 2
call sub.wsock32.dll_socket
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x46919f
xor ebx, ebx
jmp 0x469204
mov dword [ebp - 8], 0x1388
push 4
lea eax, [ebp - 8]
push eax
push 0x1005
push 0xffff
push ebx
call sub.wsock32.dll_setsockopt
push 4
lea eax, [ebp - 8]
push eax
push 0x1006
push 0xffff
push ebx
call sub.wsock32.dll_setsockopt
push 0x10
lea eax, [ebp - 0x18]
push eax
push ebx
call sub.wsock32.dll_connect
mov esi, eax
test esi, esi
je 0x469204
lea edx, [ebp - 0x1c]
mov eax, esi
call fcn.0040d2dc
mov eax, dword [ebp - 0x1c]
call fcn.00405548
push eax
call sub.kernel32.dll_OutputDebugStringA
push ebx
call sub.wsock32.dll_closesocket
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x469229
lea eax, [ebp - 0x1c]
call fcn.004050b8
lea eax, [ebp - 4]
call fcn.004050b8
ret
Function at 0x469340
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbf0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x410], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00405538
xor eax, eax
push ebp
push 0x4694a5
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x40c]
xor ecx, ecx
mov edx, 0x400
call fcn.004039c8
lea eax, [ebp - 0x40c]
mov edx, 0x4694bc
call fcn.0040a2c4
push 0
lea eax, [ebp - 0x40c]
call fcn.0040a1d8
push eax
lea eax, [ebp - 0x40c]
push eax
push ebx
call sub.wsock32.dll_send
lea edx, [ebp - 8]
mov eax, ebx
call fcn.0046912c
mov eax, dword [ebp - 8]
cmp byte [eax], 0x32
je 0x4693ca
xor esi, esi
jmp 0x46947f
mov dl, 1
mov eax, dword [0x417f30]
call fcn.004041a8
mov ebx, eax
mov dl, 0x2c
mov eax, ebx
call fcn.0041c0d8
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.0041bec0
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x14]
cmp eax, 2
jg 0x469402
xor esi, esi
mov eax, ebx
call fcn.004041d8
jmp 0x46947f
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x14]
mov edx, eax
dec edx
lea ecx, [ebp - 0xc]
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0xc]
lea eax, [ebp - 0xc]
push eax
mov edx, dword [ebp - 0xc]
mov eax, 0x4694cc
call fcn.00405694
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 0xc]
call fcn.004055b0
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x14]
mov edx, eax
sub edx, 2
lea ecx, [ebp - 0x410]
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 0x410]
call fcn.00409b00
mov esi, eax
shl esi, 8
mov eax, dword [ebp - 0xc]
call fcn.00409b00
add esi, eax
mov eax, esi
mov edx, eax
mov eax, dword [ebp - 4]
call fcn.00469140
mov esi, eax
mov eax, ebx
call fcn.004041d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4694ac
lea eax, [ebp - 0x410]
call fcn.004050b8
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004050dc
ret
Function at 0x469830
Capabilities:
Print debug messages
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7e8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x818], ebx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00405538
mov eax, dword [ebp + 8]
call fcn.00405538
xor eax, eax
push ebp
push 0x469a59
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov eax, dword [ebp + 8]
call fcn.00409e90
test al, al
je 0x46988f
push 2
mov ecx, dword [ebp + 8]
mov dl, 1
mov eax, dword [0x418130]
call fcn.0041cd60
mov dword [ebp - 0x14], eax
jmp 0x4698a6
push 0xffff
mov ecx, dword [ebp + 8]
mov dl, 1
mov eax, dword [0x418130]
call fcn.0041cd60
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x469a29
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x469a6c
call sub.kernel32.dll_OutputDebugStringA
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx]
mov esi, eax
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00469580
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x818]
mov eax, dword [ebp - 0x10]
call fcn.004099c4
mov eax, dword [ebp - 0x818]
call fcn.00405548
push eax
call sub.kernel32.dll_OutputDebugStringA
cmp dword [ebp - 0x10], 0
jle 0x469998
cmp esi, dword [ebp - 0x10]
jl 0x469910
mov byte [ebp - 9], 1
call fcn.00404af8
jmp 0x469a30
test esi, esi
jle 0x46992b
push 0
push 0
mov dl, 2
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov edx, esi
mov eax, ebx
call fcn.004696bc
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00469778
cmp esi, dword [ebp - 0x10]
jge 0x469989
lea eax, [ebp - 0x814]
xor ecx, ecx
mov edx, 0x800
call fcn.004039c8
push 0
push 0x800
lea eax, [ebp - 0x814]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.wsock32.dll_recv
mov ebx, eax
test ebx, ebx
jle 0x46997b
lea edx, [ebp - 0x814]
mov ecx, ebx
mov eax, dword [ebp - 0x14]
call fcn.0041cb10
add esi, ebx
cmp byte [0x47d968], 1
je 0x469989
cmp esi, dword [ebp - 0x10]
jl 0x46993a
cmp esi, dword [ebp - 0x10]
jne 0x469a13
mov byte [ebp - 9], 1
jmp 0x469a13
cmp dword [ebp - 0x10], 0xfffffffe
jne 0x469a13
test esi, esi
jle 0x4699b9
push 0
push 0
mov dl, 2
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov edx, esi
mov eax, ebx
call fcn.004696bc
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00469778
lea eax, [ebp - 0x814]
xor ecx, ecx
mov edx, 0x800
call fcn.004039c8
push 0
push 0x800
lea eax, [ebp - 0x814]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.wsock32.dll_recv
mov ebx, eax
test ebx, ebx
jle 0x469a02
lea edx, [ebp - 0x814]
mov ecx, ebx
mov eax, dword [ebp - 0x14]
call fcn.0041cb10
cmp byte [0x47d968], 1
je 0x469a0f
test ebx, ebx
jg 0x4699c3
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x469a30
mov eax, dword [ebp - 0x14]
call fcn.004041d8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x469a60
lea eax, [ebp - 0x818]
call fcn.004050b8
lea eax, [ebp - 4]
call fcn.004050b8
lea eax, [ebp + 8]
call fcn.004050b8
ret
Function at 0x46a518
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], edx
mov ebx, eax
lea eax, [ebp - 0xc]
mov edx, dword [0x407fd0]
call fcn.00405b58
xor eax, eax
push ebp
push 0x46a6b9
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x47d96c], 0
jne 0x46a573
mov ecx, dword [0x47e288]
mov dl, 1
mov eax, dword [0x4085dc]
call fcn.0040dd04
call fcn.00404a4c
lea eax, [ebp - 0x28]
xor ecx, ecx
mov edx, 0x10
call fcn.004039c8
mov eax, ebx
call fcn.00405a28
mov dword [ebp - 0x24], eax
mov esi, 0x46a6c8
lea edi, [ebp - 0x38]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x38]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
call fcn.00406afc
xor eax, eax
mov dword [ebp - 4], eax
mov eax, ebx
call fcn.00405a38
test eax, eax
jle 0x46a65c
mov dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x48]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x46a648
lea eax, [ebp - 0x4c]
lea edx, [ebp - 0x48]
mov ecx, 0x10
call fcn.00405328
mov edi, dword [ebp - 0x4c]
test edi, edi
je 0x46a5ee
sub edi, 4
mov edi, dword [edi]
lea eax, [ebp - 0x50]
mov edx, ebx
call fcn.00405340
mov esi, dword [ebp - 0x50]
test esi, esi
je 0x46a604
sub esi, 4
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x54]
mov edx, ebx
call fcn.00405340
mov eax, dword [ebp - 0x54]
call fcn.00405548
push eax
push edi
lea eax, [ebp - 0x58]
lea edx, [ebp - 0x48]
mov ecx, 0x10
call fcn.00405328
mov eax, dword [ebp - 0x58]
call fcn.00405548
push eax
push 1
push 0x400
call sub.kernel32.dll_CompareStringA_1
sub eax, 2
test eax, eax
sete al
jmp 0x46a64a
xor eax, eax
test al, al
je 0x46a655
mov ebx, 0x15
jmp 0x46a661
mov ebx, 0x10
jmp 0x46a661
mov ebx, 0x15
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x28]
push eax
push ebx
push 0
mov eax, dword [ebp - 0x10]
push eax
call dword [0x47d96c]
call fcn.0046a398
mov eax, dword [ebp - 4]
call fcn.0046a398
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
call fcn.00406b14
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46a6c0
lea eax, [ebp - 0x58]
mov edx, 4
call fcn.004050dc
lea eax, [ebp - 0xc]
mov edx, dword [0x407fd0]
call fcn.00405c28
ret
Function at 0x47089c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee8
push ebx
xor edx, edx
mov dword [ebp - 0x118], edx
mov dword [ebp - 0x114], edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x47097f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.004050b8
lea eax, [ebp - 8]
push eax
push 0x23
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
test eax, eax
jne 0x470926
lea eax, [ebp - 0x10d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
test eax, eax
je 0x470926
lea edx, [ebp - 0x114]
lea eax, [ebp - 0x10d]
call fcn.0040a444
push dword [ebp - 0x114]
push 0x470994
push 0x4709a0
push 0x470994
lea eax, [ebp - 4]
mov edx, 4
call fcn.0040544c
mov eax, dword [ebp - 4]
call fcn.00409eb4
test al, al
jne 0x47094f
lea edx, [ebp - 0x118]
mov eax, dword [ebp - 4]
call fcn.0040a058
mov eax, dword [ebp - 0x118]
call fcn.00409ed8
test al, al
je 0x470959
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040510c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x470986
lea eax, [ebp - 0x118]
mov edx, 2
call fcn.004050dc
lea eax, [ebp - 4]
call fcn.004050b8
ret

Function at 0x4773d8
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 0x10
add esp, 0xfffff004
push eax
dec eax
jne 0x4773e1
mov eax, dword [ebp - 4]
add esp, 0xfffffebc
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405538
xor eax, eax
push ebp
push 0x4774b4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x47e604]
mov byte [eax], 0
or ebx, 0xffffffff
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x154]
call fcn.004036c4
mov edx, 1
lea eax, [ebp - 0x154]
call fcn.00403b6c
call fcn.004030dc
test eax, eax
jne 0x477491
lea eax, [ebp - 8]
push eax
lea edx, [ebp - 0x10145]
mov ecx, 0xfff1
lea eax, [ebp - 0x154]
call fcn.00403820
movzx edx, word [ebp - 8]
test dx, dx
jbe 0x47748b
lea eax, [ebp - 0x10145]
movzx ecx, byte [eax]
mov esi, ebx
and esi, 0xff
xor ecx, esi
mov ecx, dword [ecx*4 + 0x47de50]
shr ebx, 8
xor ecx, ebx
mov ebx, ecx
inc eax
dec dx
jne 0x47746a
cmp dword [ebp - 8], 0
jne 0x477441
lea eax, [ebp - 0x154]
call fcn.00403860
not ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4774bb
lea eax, [ebp - 4]
call fcn.004050b8
ret

Function at 0x4775dc
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
xor edx, edx
mov dword [ebp - 0x24], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x47765f
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1e]
xor ecx, ecx
mov edx, 0x1e
call fcn.004039c8
xor eax, eax
mov dword [ebp - 0x1e], eax
mov dword [ebp - 0x1a], 3
lea eax, [ebp - 0x24]
mov ecx, 0x477678
mov edx, ebx
call fcn.004053d0
mov eax, dword [ebp - 0x24]
call fcn.00405548
mov dword [ebp - 0x16], eax
mov eax, 0x47767c
mov dword [ebp - 0x12], eax
mov word [ebp - 0xe], 0x14
lea eax, [ebp - 0x1e]
push eax
call sub.shell32.dll_SHFileOperationA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x477666
lea eax, [ebp - 0x24]
call fcn.004050b8
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
nop
mov ecx, 0x47c87f62
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x433024
nop
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x62cf2ae5
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x433084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219

Function at 0x430000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408ecc
nop
mov ecx, 0xb2c6120
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x7ec77f81
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43006c
popal
nop
nop
nop
nop
nop
jmp 0x401219

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40c7d0
mov ecx, 0x286639a1
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
jne 0x432024
nop
nop
nop
nop
mov eax, section..rsrc
nop
mov ebx, 0x42f314
nop
mov ecx, 0x572483e
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x432084
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x402f08
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x403360
Capabilities:
Query or enumerate registry value

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

Function at 0x404100
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4f204c], 0
je 0x404161
cmp word [0x4f2220], 0xd7b2
jne 0x404129
cmp dword [0x4f2228], 0
jbe 0x404129
mov eax, 0x4f221c
call dword [0x4f2238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x459070
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 0x404188
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x459034], 0
jne 0x40417d
push 0
push 0x459068
push 0x459070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406120
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 0x406186
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.004044f4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402f24
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406170
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40618d
lea eax, [ebp - 0x10]
call fcn.00404284
ret

Function at 0x40b200
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 0x40b239
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404374
jmp 0x40b242
mov eax, ebx
mov edx, esi
call fcn.004042d8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40b904
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b76c
mov eax, dword [0x4f1780]
cmp byte [eax], 0
je 0x40b980
mov eax, dword [0x4f1588]
call fcn.00402d74
call fcn.00402be4
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.004089bc
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
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 0x40b9c8
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b9b6
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4f1534]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4f2668]
call fcn.0040558c
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 0x40c26c
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 0x40c342
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.0040431c
lea eax, [ebp - 8]
call fcn.00404794
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404744
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c32c
mov eax, ebx
call fcn.00402a58
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c325
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.00404744
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c30f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c354
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c30f
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 0x40c32c
mov eax, dword [ebp - 0x10]
call fcn.00402a88
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c349
lea eax, [ebp - 8]
call fcn.00404284
ret

Function at 0x40c81c
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 0x40c880
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.004044f4
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408518
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c887
lea eax, [ebp - 0xc]
call fcn.00404284
ret
Function at 0x41dccc
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
lea ebx, [ebp - 0xc]
mov esi, 0x4f2888
cmp dword [esi], 0
jne 0x41dd72
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov edx, dword [0x4f2884]
mov dword [eax], edx
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, 0x459400
mov ecx, 2
call fcn.00402c78
mov edx, 0x41dca4
mov eax, dword [ebp - 8]
add eax, 5
call fcn.0041dcc4
mov edx, dword [ebp - 8]
mov dword [edx + 6], eax
mov eax, dword [ebp - 8]
add eax, 0xa
mov dword [ebx], eax
mov eax, dword [ebx]
mov byte [eax], 0xe8
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, dword [ebx]
call fcn.0041dcc4
mov edx, dword [ebx]
mov dword [edx + 1], eax
mov eax, dword [ebx]
mov edx, dword [esi]
mov dword [eax + 5], edx
mov eax, dword [ebx]
mov dword [esi], eax
add dword [ebx], 0xd
mov eax, dword [ebx]
sub eax, dword [ebp - 8]
cmp eax, 0xffc
jl 0x41dd39
mov eax, dword [ebp - 8]
mov dword [0x4f2884], eax
mov eax, dword [esi]
mov dword [ebp - 4], eax
mov eax, dword [esi]
mov dword [ebx], eax
mov eax, dword [ebx]
mov eax, dword [eax + 5]
mov dword [esi], eax
mov eax, dword [ebx]
mov edx, dword [ebp + 8]
mov dword [eax + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [eax + 9], edx
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x41ef98
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 0x41ef9e
ret

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