joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4010b0
Capabilities:
Create udp socket
Send data
Send data on socket

Disassembly:
sub esp, 0x10
push ebx
push esi
mov esi, dword [esp + 0x24]
push edi
test esi, esi
je 0x401134
cmp byte [esi], 0
je 0x401134
mov edi, dword [esp + 0x24]
mov ebx, dword [esp + 0x20]
cmp edi, 0xffffffff
jne 0x4010de
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
cmp edi, 1
jl 0x401134
cmp edi, 0x400
jge 0x401134
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.WS2_32.dll_htons]
push esi
mov word [esp + 0x12], ax
mov word [esp + 0x10], 2
call dword [sym.imp.WS2_32.dll_inet_addr]
push 0
push 2
push 2
mov dword [esp + 0x1c], eax
call dword [sym.imp.WS2_32.dll_socket]
lea ecx, [esp + 0xc]
push 0x10
push ecx
push 0
mov esi, eax
push edi
push ebx
push esi
call dword [sym.imp.WS2_32.dll_sendto]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
pop ebx
add esp, 0x10
ret

Function at 0x401140
Capabilities:
Accept command line arguments
Create process on windows
Initialize winsock library

Disassembly:
sub esp, 0xd94
push esi
lea eax, [esp + 4]
push edi
push eax
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
mov eax, dword [esp + 8]
cmp eax, 3
jne 0x4011ea
mov edx, dword [esi + 8]
lea ecx, [esp + 0x19c]
push 0x400
push ecx
push edx
call fcn.00401000
mov eax, dword [esi + 4]
push str._show
push eax
call fcn.0040138c
add esp, 0x14
test eax, eax
jne 0x4011b5
lea ecx, [esp + 0x19c]
push 5
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
xor eax, eax
pop esi
add esp, 0xd94
ret 0x10
mov edx, dword [esi + 4]
push str._hide
push edx
call fcn.0040138c
add esp, 8
test eax, eax
jne 0x4012af
push eax
lea eax, [esp + 0x1a0]
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
xor eax, eax
pop esi
add esp, 0xd94
ret 0x10
cmp eax, 5
jne 0x4012af
mov ecx, dword [esi + 4]
push str._MSG
push ecx
call fcn.0040138c
add esp, 8
test eax, eax
jne 0x4012af
mov eax, dword [esi + 8]
lea edx, [esp + 0x19c]
push 0x400
push edx
push eax
call fcn.00401000
mov edx, dword [esi + 0xc]
lea ecx, [esp + 0x9a8]
push 0x400
push ecx
push edx
call fcn.00401000
mov ecx, dword [esi + 0x10]
lea eax, [esp + 0x5b5]
push 0x3ff
push eax
push ecx
call fcn.00401000
lea edx, [esp + 0x9c0]
mov esi, eax
push edx
call fcn.00401381
add esp, 0x28
mov edi, eax
lea eax, [esp + 0xc]
mov byte [esp + 0x59c], 0x52
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4012af
mov ax, word [esp + 0xc]
cmp al, 1
jne 0x4012a9
xor ecx, ecx
mov cl, ah
cmp cl, al
jne 0x4012a9
lea edx, [esp + 0x19c]
push edi
push edx
lea eax, [esp + 0x5a4]
push esi
push eax
call fcn.004010b0
add esp, 0x10
call dword [sym.imp.WS2_32.dll_WSACleanup]
pop edi
xor eax, eax
pop esi
add esp, 0xd94
ret 0x10
Function at 0x40215d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x405328
cmp edx, dword [eax]
je 0x40217f
add eax, 8
inc ecx
cmp eax, 0x4053b8
jl 0x402170
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x405328]
jne 0x4022ad
mov eax, dword [0x4054c8]
cmp eax, 1
je 0x402287
test eax, eax
jne 0x4021b0
cmp dword [0x405058], 1
je 0x402287
cmp edx, 0xfc
je 0x4022ad
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4021e7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00403080
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00403170
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40222a
lea eax, [ebp - 0x1a4]
push eax
call fcn.00403170
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4043a8
push edi
call fcn.004035b0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00403080
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00403090
lea eax, [ebp - 0xa0]
push 0x404388
push eax
call fcn.00403090
push dword [esi + 0x40532c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00403090
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00403525
add esp, 0x2c
pop edi
jmp 0x4022ad
lea eax, [ebp + 8]
lea esi, [esi + 0x40532c]
push 0
push eax
push dword [esi]
call fcn.00403170
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4538a7
Capabilities:
Encode data using xor

Disassembly:
and dh, byte [edi]
xor eax, ebp
daa
sub cl, cl
pop ss
ja 0x4538e9
xchg ebp, eax
or eax, 0x6486e4fe
and esp, dword [edi - 0x34]
in al, 0x88
mov ecx, 0x5c87999a
sar esp, 0xb4
loope 0x4538d0
mov edx, 0x278a370a
js 0x45386b
adc esp, dword [edx + 0x31baf9de]
retf
fdivp st(1)
mov edx, 0x79d5cb31
salc
or esi, ebx
in al, 0x5e
outsb dx, byte [esi]
lahf
ror byte [eax + 0x15], cl
ja 0x45391b
daa
movsd dword es:[edi], dword [esi]
cmpsd dword [esi], dword es:[edi]
mov bl, 0x6d
push cs
xchg edi, eax
je 0x453944
sbb al, 0x97
invalid
cli
out 0xf8, eax
push ss
ja 0x453941
pop esp
fst st(3)
cmp ebp, 0x78
mov word [ebp + 0x37], ds
loop 0x45391c
fcomp dword [esi + ecx*4]
xlatb
sbb eax, 0xaacad56f
daa
insd dword es:[edi], dx
jbe 0x45392c
push ebx
pop eax
push 7
invalid
mov dword [esi - 0x608b6030], esi
lahf
je 0x4538e6
jecxz 0x453950
enter 0xffffffffffffc59a, 0xffffffffffffffaa
loopne 0x453936
and edi, dword [eax]
mov esp, 0x5ff66873
js 0x453979
invalid
and al, bh
adc eax, 0x32b2a6e0
cwde
les edi, [eax + 0x35]
mov word es:[ecx + 0x6b], cs
mov ebp, dword [edx + 0x4b]
and dword [ebx + 8], ecx
push edi
cmpsd dword [esi], dword es:[edi]
insd dword es:[edi], dx
test eax, 0xe8b07d5f
pop edi
enter 0x3af5, 0x46
push edx
inc esi
sub dword [ebp - 0x29c73872], esp
stosb byte es:[edi], al
lodsd eax, dword [esi]
mov eax, 0x37b66915
idiv dword [ecx]
cmc
or ah, al
push ebx
xchg esp, eax
mov ebp, dword [edi + 0x7d65a438]
fxtract
in al, 0xa1
dec eax
push 0xd
inc ebp
insb byte es:[edi], dx
push ss
lodsd eax, dword [esi]
jbe 0x4539c5
invalid
cmpsb byte [esi], byte es:[edi]
Function at 0x45e593
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push esi
loope 0x45e476
jle 0x45e450
aam 4
push ds
invalid
mov eax, dword [0x79adb534]
pushal
cmp eax, 0x51004c9c
add eax, 0x9431a157
dec esp
movsb byte es:[edi], byte [esi]
xor dword [esi + 0x32], ebx
jne 0x45e413
invalid
inc eax
and eax, 0x75ba4bc0
dec edx
pmaddwd mm0, qword [ecx + 0x381097]
out 0xdc, al
clc
ret
inc esp
mov ebp, 0xe4b9e455
cli
in al, 0xfa
push ebp
xchg ecx, eax
jge 0x45e4b1
push es
cmp esi, esi
sub al, byte [esi]
les esp, [ecx - 0xa9eda7b]
sti
pop ecx
xchg edi, eax
cmp eax, 0xdcb92441
or esi, 0xfee90b7f
xchg esp, eax
ret 0xe886
inc edi
rcl dword [ebx - 0x41d8d4de]
mov ch, 0xa4
std
and al, 0x61
cmc
jb 0x45e471
mov eax, 0x8e05a15
xor eax, 0x15db27f5
pushfd
or dword [ecx + 0x350ff025], edx
pop es
jne 0x45e53a
rcl dword [0xe384c08], 0xee
sbb al, 0x7f
rcr byte [ebp - 0x7c], 1
pop ecx
push esp
xor byte [eax + edx - 0x29], dh
ret 0x16c0
mov al, 0x23
sub al, 0x6e
movsd dword es:[edi], dword [esi]
mov ah, 0x59
movsb byte es:[edi], byte [esi]
mov ebp, 0x942da43a
mov ebx, 0x973414c5
mov esp, 0xdcca24b6
inc edx
inc edx
sub byte [edx], bh
not dword [esi + 0x10]
and ebx, ecx
dec edx
dec edx
outsb dx, byte [esi]
xchg ecx, eax
insd dword es:[edi], dx
enter 0x649, 0xffffffffffffffd4
sub eax, 0xd3b595f5
fidiv dword [ebp + 0x64]
and eax, 0x2a0637c7
rol dword [ecx], cl
xor eax, 0xe2b7fa3c
inc ebx
cwde
sbb ah, byte [eax + 0x4e95bfde]
jns 0x45e5f4
cmp ah, byte [ebx + 0x3974aec9]
test dword [0x2abd6d14], esp
movsd dword es:[edi], dword [esi]
les esp, [edi + edx*8 + 0x75]
jne 0x45e5fb
and al, 0xff
add al, byte es:[0xa8b39693]
daa
and eax, 0x149cf718
cmc
int1
push ebp
mov dword [esi - 0x68], ebx
adc al, 0xa5
mov ah, 0xde
scasb al, byte es:[edi]
sub eax, 0x13109954
loope 0x45e5dc
or bl, al
dec esi
stosb byte es:[edi], al
sbb al, 0xbb
inc esi
pushal
jge 0x45e614
dec esp
rcl byte [edx], cl
neg edi
div eax
pop ds
adc eax, 0xa0f3118b
in al, dx
aad 0xb4
rol dword [edx + ebp + 0x3b], 0xe1
loope 0x45e5ba
jmp 0x45e672
js 0x45e6ef
leave
inc esp
and eax, 0x964401b3
in al, 0xae
scasb al, byte es:[edi]
mov bp, 0xc8bd
outsb dx, byte [esi]
lds edx, [eax + 0x56]
push 0xffffffffffffffed
jmp 0x785b82a2
invalid
popal
push ss
inc esi
xlatb
add bl, ah
jno 0x45e76f
pop es
outsb dx, byte [esi]
jo 0x45e67c
lahf
salc
adc al, 0x63
pop ss
inc eax
add ecx, dword [esp + esi*4]
bound edx, qword [edi - 0x7aab8f83]
out 0x9c, eax
into
loope 0x45e6ed
pop edi
lar edi, word [edi - 0x4f]
arpl bp, sp
jmp dword [ecx - 0x72]
lodsd eax, dword [esi]
inc eax
pop ebx
mov ch, 0xd1
pop ecx
jmp 0x31a378ee
Function at 0x10041322
Capabilities:
Access peb ldr_data
Get ntdll base address
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
xor eax, eax
mov esi, dword fs:[eax + 0x30]
mov esi, dword [esi + 0xc]
mov esi, dword [esi + 0xc]
lodsd eax, dword [esi]
mov eax, dword [eax]
mov ebx, dword [eax + 0x18]
mov edi, dword [ebx + 0x3c]
mov edi, dword [ebx + edi + 0x78]
mov esi, dword [ebx + edi + 0x20]
add esi, ebx
mov edx, dword [ebx + edi + 0x24]
add edx, ebx
xor ecx, ecx
dec ecx
inc ecx
mov eax, dword [esi]
add esi, 4
cmp word [ebx + eax + 0xb], 0x63
jne 0x10041353
nop
cmp byte [ebx + eax + 1], 0x69
jne 0x10041353
movzx eax, word [edx + ecx*2]
mov esi, dword [ebx + edi + 0x1c]
add esi, ebx
add ebx, dword [esi + eax*4]
mov dword [ebp - 4], ebx
push 0x40
push 0x3000
push 0x14bbec
push 0
call dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4054f0
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4325a8
push 0x42cee4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x64], 1
lea ecx, [ebp - 0x20]
push ecx
push 0
mov edx, dword [ebp - 0x24]
push edx
push 0x405d20
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0x60], eax
mov edx, dword [ebp - 0x24]
cmp dword [edx + 0x60], 0
jne 0x405573
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x64], 0
push 0
push 0
push 0
push 0xe0000104
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 4], 0xffffffff
call fcn.00405588
jmp 0x40559c
push 0
push 0
push 0x12d8
mov edx, dword [ebp - 0x24]
mov ecx, dword [edx + 0x14]
call dword [sym.imp.SEMSFC.dll_public:_struct_HWND______thiscall_SFCWin::GetHWND_void_]
push eax
call dword [sym.imp.SQLUNIRL.dll__PostMessage_16]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x421f40
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x421f5b
cmp dword [ebp + 0xc], 0
jne 0x421f5f
xor eax, eax
jmp 0x421fb8
mov eax, dword [ebp + 8]
mov word [eax], 0
lea ecx, [ebp - 4]
push ecx
push 0x20019
push 0
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x421fb6
lea ecx, [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0
push 0
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], 0
jne 0x421fb6
mov eax, dword [ebp + 8]
jmp 0x421fb8
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4014a8
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x405c60
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x74
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.USER32.dll_GetParent]
push eax
call sub.MFC42.DLL_CWnd::FromHandle
mov edx, dword [esi + 0x20]
lea ecx, [esp + 8]
push ecx
push edx
mov edi, eax
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [esp + 8]
mov ecx, edi
push eax
call sub.MFC42.DLL_CWnd::ScreenToClient
push edi
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CPaintDC::CPaintDC
mov eax, dword [esi + 0x40]
mov dword [esp + 0x84], 0
test eax, eax
je 0x401522
lea ecx, [esp + 0x28]
mov dword [esp + 0x84], 0xffffffff
call fcn.004058a6
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
add esp, 0x80
ret
push 8
call sub.MFC42.DLL_operatornew
add esp, 4
test eax, eax
je 0x401541
mov dword [eax + 4], 0
mov dword [eax], 0x406534
mov edi, eax
jmp 0x401543
xor edi, edi
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
sub eax, ecx
mov ecx, dword [esp + 0x10]
push eax
sub ecx, edx
mov dword [esi + 0x40], edi
push ecx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov ecx, edi
call sub.MFC42.DLL_CGdiObject::Attach
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CDC::CDC
mov edi, dword [esp + 0x2c]
lea eax, [esp + 0x28]
neg eax
sbb eax, eax
mov byte [esp + 0x84], 1
and eax, edi
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CDC::Attach
mov esi, dword [esi + 0x40]
test esi, esi
je 0x4015a9
mov esi, dword [esi + 4]
mov edx, dword [esp + 0x1c]
push ebx
push esi
push edx
call sub.MFC42.DLL_CDC::SelectGdiObject
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0xc]
mov ebx, dword [esp + 0x30]
lea eax, [esp + 0x2c]
sub ecx, esi
sub edx, edi
neg eax
push 0xcc0020
push ecx
sbb eax, eax
push edx
and eax, ebx
push esi
push edi
push eax
mov eax, dword [esp + 0x38]
push ecx
push edx
push 0
push 0
push eax
call dword [sym.imp.GDI32.dll_StretchBlt]
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CDC::DeleteDC
lea ecx, [esp + 0x1c]
mov byte [esp + 0x88], 0
call fcn.0040585e
lea ecx, [esp + 0x2c]
mov dword [esp + 0x88], 0xffffffff
call fcn.004058a6
mov ecx, dword [esp + 0x80]
pop ebx
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x80
ret
Function at 0x402b58
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.00404a60
test esi, esi
jne 0x402b8e
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.00404b50
jmp 0x402bac
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402a6c
mov edi, eax
test esi, esi
je 0x402bac
cmp dword [ebx], 0
je 0x402bac
dec esi
jmp 0x402b95
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4039dc
Capabilities:
Query or enumerate registry value

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

Function at 0x404860
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4d704c], 0
je 0x4048c1
cmp word [0x4d7220], 0xd7b2
jne 0x404889
cmp dword [0x4d7228], 0
jbe 0x404889
mov eax, 0x4d721c
call dword [0x4d7238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4d4074
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 0x4048e8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4d4034], 0
jne 0x4048dd
push 0
push 0x4d406c
push 0x4d4074
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404a14
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.00402830
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x4d704d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4049dc
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x406468
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 0xf0019
push 0
push 0x406698
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4064eb
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406698
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4064eb
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4066b4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406574
xor eax, eax
push ebp
push 0x40656d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004062b0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406552
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4066d4
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406552
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406574
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
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 0x40668e
cmp byte [ebp - 0xd], 0
jne 0x4065bb
cmp byte [ebp - 0x12], 0
je 0x40668e
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4065d4
dec ebx
cmp byte [ebx], 0x2e
je 0x4065e3
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4065d3
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40668e
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406620
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40668e
cmp byte [ebp - 0xd], 0
je 0x40668e
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40668e
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
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 0x406d7c
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 0x406de2
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.00404cd0
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403444
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406dcc
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406de9
lea eax, [ebp - 0x10]
call fcn.00404a60
ret

Function at 0x40cc10
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 0x40cc49
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404b50
jmp 0x40cc52
mov eax, ebx
mov edx, esi
call fcn.00404ab4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40d304
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40d17c
mov eax, dword [0x4d6004]
cmp byte [eax], 0
je 0x40d380
mov eax, dword [0x4d5c78]
call fcn.00402fd8
call fcn.00402998
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.00409d6c
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 0x40d3c8
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40d3b6
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4d5bfc]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4d7668]
call fcn.00406274
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