joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43df35
Capabilities:
Parse pe header

Disassembly:
push 0x74
push 0x44d768
call fcn.0043e1a0
xor ebx, ebx
mov dword [ebp - 0x20], ebx
push ebx
mov edi, dword [0x4430f0]
call edi
cmp word [eax], 0x5a4d
jne 0x43df75
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43df75
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x43df8d
cmp eax, 0x20b
je 0x43df7a
mov dword [ebp - 0x1c], ebx
jmp 0x43dfa1
cmp dword [ecx + 0x84], 0xe
jbe 0x43df75
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x43df9b
cmp dword [ecx + 0x74], 0xe
jbe 0x43df75
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [0x443240]
pop ecx
or dword [0x457bb8], 0xffffffff
or dword [0x457bbc], 0xffffffff
call dword [0x44323c]
mov ecx, dword [0x457b4c]
mov dword [eax], ecx
call dword [0x443238]
mov ecx, dword [0x457b48]
mov dword [eax], ecx
mov eax, dword [0x443234]
mov eax, dword [eax]
mov dword [0x457bb4], eax
call fcn.0043e20a
call fcn.0043e2aa
cmp dword [0x4557b0], ebx
jne 0x43e001
push fcn.0043e2aa
call dword [0x443230]
pop ecx
call fcn.0043e298
push 0x455028
push 0x455024
call fcn.0043e292
push 0x43e24e
call fcn.0043dc26
mov eax, dword [0x457b44]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x457b40]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [0x443228]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, ebx
jge 0x43e055
push 8
call fcn.0043e204
pop ecx
push 0x455020
push section..data
call fcn.0043e292
pop ecx
pop ecx
mov eax, dword [0x443220]
mov esi, dword [eax]
mov dword [ebp - 0x24], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x43e0d3
cmp al, bl
je 0x43e07f
cmp dword [ebp - 0x20], ebx
jne 0x43e0d3
mov al, byte [esi]
cmp al, bl
je 0x43e08f
cmp al, 0x20
ja 0x43e08f
inc esi
mov dword [ebp - 0x24], esi
jmp 0x43e07f
mov dword [ebp - 0x58], ebx
lea eax, [ebp - 0x84]
push eax
call dword [0x443064]
test byte [ebp - 0x58], 1
je 0x43e0ab
movzx eax, word [ebp - 0x54]
jmp 0x43e0ae
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call fcn.00408380
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], ebx
jne 0x43e0cb
push esi
call dword [0x443280]
call dword [0x44321c]
jmp 0x43e128
cmp al, 0x22
jne 0x43e0e2
xor ecx, ecx
cmp dword [ebp - 0x20], ebx
sete cl
mov dword [ebp - 0x20], ecx
movzx eax, al
push eax
call dword [0x443218]
pop ecx
test eax, eax
je 0x43e0f5
inc esi
mov dword [ebp - 0x24], esi
inc esi
jmp 0x43e06d
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0043e1db
ret
Function at 0x40224c
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor ebx, ebx
xor edi, edi
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x402328
cmp dword [ebp + 0x14], ebx
je 0x40229d
push ebx
push ebx
push dword [ebp + 0x14]
push eax
call sub.WSOCK32.dll_WSAAsyncSelect
cmp eax, 0xffffffff
jne 0x40229d
cmp dword [0x40877c], ebx
jl 0x40229d
call sub.WSOCK32.dll_WSAGetLastError
push eax
call fcn.004028a2
pop ecx
mov dword [0x40877c], 0xffffffeb
push 1
push dword [esi]
call sub.WSOCK32.dll_shutdown
mov edi, eax
cmp edi, 0xffffffff
je 0x40231e
push 1
pop edi
cmp edi, 0xffffffff
je 0x4022f4
push ebx
lea eax, [ebp - 0x400]
push 0x400
push eax
push dword [esi]
call sub.WSOCK32.dll_recv
cmp dword [0x408750], ebx
mov edi, eax
je 0x4022f0
cmp edi, ebx
jle 0x4022f2
mov eax, dword [0x407048]
cmp eax, 0xffffffff
je 0x4022f0
lea ecx, [ebp - 0x400]
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll__lwrite]
cmp edi, ebx
jne 0x4022b0
mov eax, dword [0x417ce4]
cmp dword [eax], ebx
je 0x40231e
lea eax, [ebp + 0x14]
push 4
push eax
push 0x80
push 0xffff
mov word [ebp + 0x14], 1
push dword [esi]
mov word [ebp + 0x16], bx
call sub.WSOCK32.dll_setsockopt
push dword [esi]
call sub.WSOCK32.dll_closesocket
or dword [esi], 0xffffffff
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40232f
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
push edi
push 0
push 1
push 2
call sub.WSOCK32.dll_socket
mov edi, eax
cmp edi, 0xffffffff
jne 0x40235a
call sub.WSOCK32.dll_WSAGetLastError
push eax
call fcn.004028a2
pop ecx
mov dword [0x40877c], 0xffffffe9
jmp 0x4023d8
push 0x33
push dword [esp + 0x14]
push dword [esp + 0x14]
push edi
call sub.WSOCK32.dll_WSAAsyncSelect
cmp eax, 0xffffffff
jne 0x402387
call sub.WSOCK32.dll_WSAGetLastError
push eax
call fcn.004028a2
pop ecx
mov dword [0x40877c], 0xffffffe8
jmp 0x4023cf
push esi
mov esi, dword [esp + 0xc]
push dword [esp + 0x18]
mov word [esi], 2
call sub.WSOCK32.dll_htons
push 0x10
push esi
push edi
mov word [esi + 2], ax
call sub.WSOCK32.dll_connect
cmp eax, 0xffffffff
pop esi
jne 0x4023d8
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x4023d8
call sub.WSOCK32.dll_WSAGetLastError
push eax
call fcn.004028a2
pop ecx
mov dword [0x40877c], 0xffffffe7
push edi
call sub.WSOCK32.dll_closesocket
or edi, 0xffffffff
mov eax, edi
pop edi
ret
Function at 0x4023dc
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
xor ebx, ebx
cmp dword [0x408780], ebx
push esi
push edi
mov edi, 0x4103e0
je 0x402426
cmp byte [0x4103e0], bl
je 0x402433
push 9
pop esi
cmp dword [section..data], 0xffffffff
je 0x402454
test esi, esi
jle 0x402454
mov eax, esi
push 0
sub eax, ebx
push eax
push edi
push dword [section..data]
call sub.WSOCK32.dll_send
cmp eax, 0xffffffff
je 0x402437
add ebx, eax
cmp ebx, esi
jl 0x402406
jmp 0x402454
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
jne 0x4023f9
xor eax, eax
jmp 0x402461
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x402454
push eax
call fcn.004028a2
pop ecx
mov dword [0x40877c], 0xffffffe6
cmp ebx, esi
jne 0x40245f
and byte [0x4103e0], 0
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x402465
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [0x4103c4]
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
mov edi, dword [esp + 0x20]
xor esi, esi
cmp eax, edi
mov ebx, 0x2733
jge 0x4024df
mov ecx, edi
push 0
sub ecx, eax
add eax, ebp
push ecx
push eax
push dword [esp + 0x20]
call sub.WSOCK32.dll_recv
mov esi, eax
cmp esi, 0xffffffff
je 0x4024c0
test esi, esi
je 0x4024df
cmp dword [0x408780], 0
jne 0x4024b5
add dword [0x4103c4], esi
push esi
call fcn.00402660
pop ecx
mov eax, dword [0x4103c4]
cmp eax, edi
jl 0x402481
jmp 0x4024df
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, ebx
je 0x4024df
call sub.WSOCK32.dll_WSAGetLastError
push eax
call fcn.004028a2
pop ecx
mov dword [0x40877c], 0xffffffe0
cmp dword [0x408780], 0
jne 0x402659
add edi, 0xfffffa4c
cmp dword [0x4103c4], edi
jg 0x402510
cmp esi, 0xffffffff
jne 0x402508
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, ebx
jne 0x402510
test esi, esi
jne 0x402659
cmp dword [0x408750], 0
mov esi, ebp
jne 0x40262b
mov dword [0x408750], 1
mov al, byte [ebp]
cmp al, 0x20
je 0x40253a
cmp al, 9
je 0x40253a
mov al, byte [esi + 1]
inc esi
jmp 0x40252c
mov al, byte [esi]
cmp al, 0x20
je 0x402544
cmp al, 9
jne 0x402547
inc esi
jmp 0x40253a
cmp byte [esi], 0x32
je 0x4025f6
mov eax, dword [0x408ba0]
mov dword [0x40877c], 0xfffffffd
test eax, eax
je 0x402623
cmp dword [0x408778], 0
je 0x402586
push str.ServerError
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [0x408ba0]
add eax, 0xc
jmp 0x40259a
push str._r_n_r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [0x408ba0]
add eax, 4
mov cl, byte [esi]
mov edx, esi
test cl, cl
je 0x4025c5
cmp cl, 0xd
je 0x4025c5
cmp cl, 0xa
je 0x4025c5
mov edi, eax
sub edi, dword [0x408ba0]
cmp edi, 0xfa
jge 0x4025c5
mov byte [eax], cl
mov cl, byte [edx + 1]
inc eax
inc edx
jmp 0x40259e
and byte [eax], 0
cmp dword [0x408778], 0
je 0x402623
push 0x40743c
push dword [0x408ba0]
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push dword [0x408ba0]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add dword [0x408ba0], eax
jmp 0x402623
mov al, byte [esi]
cmp al, 0xd
je 0x402600
cmp al, 0xa
jne 0x402619
mov al, byte [esi]
lea ecx, [esi + 1]
cmp al, byte [ecx]
je 0x40261c
cmp al, byte [esi + 2]
je 0x402620
cmp al, 0xd
jne 0x402614
mov esi, ecx
cmp byte [esi], 0xa
jne 0x4025f6
inc esi
jmp 0x4025f6
inc esi
inc esi
jmp 0x402623
add esi, 4
sub ebp, esi
add dword [0x4103c4], ebp
cmp dword [esp + 0x18], 0xffffffff
je 0x402652
push dword [0x4103c4]
push esi
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll__lwrite]
cmp eax, 0xffffffff
jne 0x402652
mov dword [0x40877c], 0xfffffffc
and dword [0x4103c4], 0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x4027c9
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push esi
lea eax, [ebp - 0x100]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push str._s:_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
and byte [ebp + eax - 0xff], 0
and byte [ebp + eax - 0xfe], 0
and byte [ebp + eax - 0xfd], 0
mov dl, byte [ebp - 0x100]
mov ecx, dword [ebp + 8]
test dl, dl
je 0x402884
push ebx
push edi
lea edi, [ebp - 0xfe]
movzx esi, dl
mov edx, esi
and esi, 3
shr edx, 2
shl esi, 4
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], dl
inc ecx
movzx edx, byte [edi - 1]
mov ebx, edx
and edx, 0xf
shr ebx, 4
or ebx, esi
movzx esi, byte [edi]
mov bl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
add edi, 3
mov byte [ecx], bl
mov ebx, esi
shl edx, 2
shr ebx, 6
or edx, ebx
inc ecx
and esi, 0x3f
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], dl
mov dl, byte [esi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], dl
mov dl, byte [edi - 2]
inc ecx
test dl, dl
jne 0x402828
pop edi
pop ebx
push 3
cdq
pop esi
idiv esi
pop esi
cmp edx, 2
jne 0x402894
mov byte [ecx], 0x3d
inc ecx
cmp edx, 1
jne 0x40289d
mov byte [ecx], 0x3d
inc ecx
and byte [ecx], 0
leave
ret

Function at 0x4028b0
Capabilities:
Hash data with crc32

Disassembly:
push 0x400
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [0x408738], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [0x408734], eax
and dword [eax], 0
push 1
pop eax
push 8
mov ecx, eax
pop edx
test cl, 1
je 0x4028e8
shr ecx, 1
xor ecx, 0xedb88320
jmp 0x4028ea
shr ecx, 1
dec edx
jne 0x4028d9
mov edx, dword [0x408734]
mov dword [edx + eax*4], ecx
inc eax
cmp eax, 0x100
jl 0x4028d4
ret

Function at 0x402918
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
test ecx, ecx
jne 0x40292a
or eax, 0xffffffff
mov dword [0x4074c0], eax
jmp 0x402963
mov edx, dword [esp + 8]
mov eax, dword [0x4074c0]
push esi
mov esi, edx
dec edx
test esi, esi
je 0x40295d
push edi
inc edx
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
mov edi, dword [0x408734]
shr eax, 8
mov esi, dword [edi + esi*4]
xor eax, esi
inc ecx
dec edx
jne 0x40293d
pop edi
mov dword [0x4074c0], eax
pop esi
not eax
ret 8
Function at 0x404ce7
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0xc]
cmp dword [0x408728], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x3c], 0x40
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], esi
jne 0x404d79
lea eax, [ebp - 0x144]
push 0x100
push eax
push dword [0x408720]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp byte [ebp - 0x144], 0
je 0x404d70
lea eax, [ebp - 0x144]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp + eax - 0x144]
lea ecx, [ebp - 0x144]
cmp eax, ecx
jbe 0x404d68
cmp byte [eax], 0x5c
je 0x404d6d
dec eax
jmp 0x404d56
cmp byte [eax], 0x5c
jne 0x404d70
and byte [eax], 0
lea eax, [ebp - 0x144]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x24], 1
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x404dea
push ebx
push edi
call fcn.00404efa
cmp dword [ebp + 0x10], esi
je 0x404dd6
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, 0x1f4
push ebx
push dword [ebp - 8]
call esi
mov edi, 0x102
cmp eax, edi
jne 0x404dd6
call fcn.00404efa
cmp dword [0x40870c], 0
jne 0x404dca
push ebx
push dword [ebp - 8]
call esi
jmp 0x404db0
push 0
push dword [ebp + 0x14]
call fcn.004053ad
pop ecx
pop ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
call fcn.00404efa
pop edi
pop ebx
mov eax, dword [ebp - 4]
pop esi
leave
ret

Function at 0x404fdd
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
cmp edi, 3
jle 0x405007
push ebx
mov ebx, edi
shr ebx, 2
mov eax, ebx
neg eax
lea edi, [edi + eax*4]
call fcn.00405023
xor dword [esi], eax
add esi, 4
dec ebx
jne 0x404ff9
pop ebx
test edi, edi
jle 0x405020
call fcn.00405023
cdq
mov ecx, 0xff
idiv ecx
inc dl
xor byte [esi], dl
inc esi
dec edi
jne 0x40500b
pop edi
pop esi
ret

Function at 0x4050ee
Capabilities:
Create directory

Disassembly:
push esi
push 0x5c
push dword [esp + 0xc]
call fcn.00405137
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x405135
mov al, byte [esi]
test al, al
je 0x405135
cmp al, 0x5c
je 0x40511b
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
mov al, byte [esi]
test al, al
jne 0x405108
cmp byte [esi], 0x5c
jne 0x405102
and byte [esi], 0
push 0
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov byte [esi], 0x5c
inc esi
jmp 0x405102
pop esi
ret
Function at 0x405193
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
and byte [esi], 0
cmp dword [0x408728], 0
je 0x405214
push ebx
mov ebx, dword [ebp + 0xc]
push edi
push 4
pop eax
xor edi, edi
cmp ebx, eax
jle 0x4051c2
movzx ecx, byte [eax + 0x4086c0]
add edi, ecx
inc eax
cmp eax, ebx
jl 0x4051b4
mov esi, dword [sym.imp.KERNEL32.dll__llseek]
push 1
push 0
push dword [0x408478]
call esi
mov dword [ebp + 0xc], eax
mov eax, dword [0x40872c]
add eax, edi
push 0
push eax
push dword [0x408478]
call esi
movzx eax, byte [ebx + 0x4086c0]
push eax
push dword [ebp + 8]
push dword [0x408478]
call dword [sym.imp.KERNEL32.dll__lread]
push 0
push dword [ebp + 0xc]
push dword [0x408478]
call esi
mov esi, dword [ebp + 8]
pop edi
pop ebx
jmp 0x405230
push dword [ebp + 0x10]
push 0x100
push esi
push 0x408040
push dword [ebp + 0x14]
push str.WiseInstaller
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [esi], 0
jne 0x40524a
push 0x100
push esi
push dword [ebp + 0x18]
push dword [0x408720]
call dword [sym.imp.USER32.dll_LoadStringA]
pop esi
pop ebp
ret

Function at 0x4053ad
Capabilities:
Accept command line arguments
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
lea eax, [ebp - 4]
push edi
xor ebx, ebx
push eax
push 0x20019
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionInstallerRunOnceEntries
push closesocket
xor edi, edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x40541d
lea eax, [ebp - 0x44]
push eax
push dword [ebp + 8]
call fcn.0040524d
pop ecx
lea eax, [ebp + 8]
pop ecx
mov dword [ebp + 8], 0x400
push eax
push ebx
push ebx
lea eax, [ebp - 0x44]
push ebx
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405414
cmp dword [ebp + 8], 1
jbe 0x405414
push 1
pop edi
push dword [ebp - 4]
call esi
cmp edi, ebx
jne 0x40547c
mov edi, dword [ebp + 0xc]
mov eax, str.SOFTWAREMicrosoftWindowsCurrentVersionRun
cmp edi, ebx
je 0x40542e
mov eax, str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
lea ecx, [ebp - 4]
push ebx
push ecx
push ebx
push 0xf003f
push ebx
push 0x408040
push ebx
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40547c
cmp edi, ebx
jne 0x40545c
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push edi
push 1
push ebx
push str.WiseStubReboot
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405481
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
lea eax, [ebp - 0x194]
mov dword [ebp - 0x194], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x184], 1
jne 0x405506
push esi
lea eax, [ebp - 0x100]
push 0x100
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [ebp + eax - 0x101], 0x5c
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x4054e8
lea eax, [ebp - 0x100]
push 0x40784c
push eax
call esi
lea eax, [ebp - 0x100]
push str.WININIT.INI
push eax
call esi
lea eax, [ebp - 0x100]
push eax
call fcn.0040550a
pop ecx
pop esi
leave
ret
xor eax, eax
leave
ret
Function at 0x405bb0
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push ebx
xor eax, eax
mov ebx, dword [esp + 8]
push esi
push edi
cmp byte [ebx], al
je 0x405bef
push ebx
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
jne 0x405bef
mov edi, str.255.255.255.255
mov ecx, 0x10
mov esi, ebx
repe cmpsb byte [esi], byte es:[edi]
je 0x405bef
push ebx
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x405bed
mov eax, dword [eax + 0xc]
pop edi
mov ecx, dword [eax]
pop esi
pop ebx
mov eax, dword [ecx]
ret
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x402f74
Capabilities:
Query or enumerate registry value

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

Function at 0x403cd0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x468048], 0
je 0x403d31
cmp word [0x46821c], 0xd7b2
jne 0x403cf9
cmp dword [0x468224], 0
jbe 0x403cf9
mov eax, 0x468218
call dword [0x468234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x46606c
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 0x403d58
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x466030], 0
jne 0x403d4d
push 0
push 0x466064
push 0x46606c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4059d4
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 0x405a3a
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.004040bc
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402b38
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405a24
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405a41
lea eax, [ebp - 0x10]
call fcn.00403e4c
ret

Function at 0x40aa60
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 0x40aa99
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403f3c
jmp 0x40aaa2
mov eax, ebx
mov edx, esi
call fcn.00403ea0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40b154
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40afcc
mov eax, dword [0x467964]
cmp byte [eax], 0
je 0x40b1d0
mov eax, dword [0x467774]
call fcn.004029a4
call fcn.00402824
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.004082d4
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 0x40b218
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b206
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x467724]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x468664]
call fcn.00404ee8
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