joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43afe4
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x43b18f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x28], 0
jne 0x43b170
mov dl, 1
mov eax, dword [0x40bdfc]
call fcn.00402c2c
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
add eax, 0x2c
call fcn.004038cc
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x43b15f
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.004299e8
test al, al
je 0x43b152
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x43b1a0
lea eax, [ebp - 0x254]
call fcn.00408408
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x43b152
xor eax, eax
push ebp
push 0x43b14b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x43b1d8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x43b134
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00403afc
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov ebx, dword [eax]
call dword [ebx + 0x38]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x30]
jne 0x43b134
mov eax, dword [ebp - 4]
add eax, 0x2c
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00403afc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43b152
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x43b055
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov byte [eax + 0x19], 0
mov dl, 1
call fcn.0040ea80
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x28]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43b196
lea eax, [ebp - 0x260]
call fcn.004038cc
ret

Function at 0x43ba24
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x4427c8]
cmp byte [eax + 0x95], 0
jne 0x43ba95
cmp dword [0x4427e4], 0
jne 0x43ba56
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x43b9e0
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4427e4], eax
cmp dword [0x4427e0], 0
jne 0x43ba71
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4427e0], eax
cmp dword [0x4427e8], 0
jne 0x43ba95
push esp
push 0
push 0
push 0x43b984
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x4427e8], eax
pop edx
ret
Function at 0x43bb8c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x43bba3
add esp, 0xfffffff0
call fcn.00402f44
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004119ec
mov byte [ebx + 0x28], 0
mov dl, 1
mov eax, dword [0x40bafc]
call fcn.00402c2c
mov dword [ebx + 0x80], eax
mov dl, 1
mov eax, dword [0x40bafc]
call fcn.00402c2c
mov dword [ebx + 0x98], eax
xor eax, eax
mov dword [ebx + 0x50], eax
xor eax, eax
mov dword [ebx + 0x74], eax
mov dword [ebx + 0x4c], 0x80000018
mov dword [ebx + 0x68], 0x1f4
mov byte [ebx + 0x6c], 1
xor eax, eax
mov dword [ebx + 0x70], eax
mov dword [ebx + 0x64], 0x9c4
mov byte [ebx + 0x78], 0
mov byte [ebx + 0x8d], 1
mov dl, 1
mov eax, dword [0x4135e8]
call fcn.00419040
mov esi, eax
mov dword [ebx + 0x88], esi
push 0x43bd18
mov eax, dword [0x441b3c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00419410
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x43d720
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x441b3c]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_2
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.00409704
test eax, eax
je 0x43bc96
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00407dbc
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040972c
test eax, eax
je 0x43bcaa
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x7c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00403afc
mov eax, dword [0x441a50]
cmp byte [eax], 0
jne 0x43bcdb
mov eax, ebx
call fcn.0043be04
mov byte [ebx + 0x49], 1
mov byte [ebx + 0x4a], 1
mov byte [ebx + 0x4b], 1
mov byte [ebx + 0x8e], 1
xor eax, eax
mov dword [ebx + 0x90], eax
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x43bd0d
call fcn.00402f9c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x43c074
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4427c8]
cmp dword [eax + 0x24], 0
je 0x43c117
cmp dword [ebx + 0x84], 0
jne 0x43c111
mov eax, dword [ebx + 0x24]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x43c004
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x80]
cmp dword [eax + 8], 0
je 0x43c111
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x43c0da
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x80]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x43c111
push 0x13
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x80]
call fcn.0040d1c0
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x43c0e9
inc dword [ebx + 0x84]
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x43cb24
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x94], 0
je 0x43cb59
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x24]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004039b4
jmp 0x43cb63
mov eax, esi
mov edx, dword [ebx + 0x7c]
call fcn.00403920
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x43da94
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x74]
test esi, esi
je 0x43dacc
mov eax, esi
call fcn.004257a0
test al, al
je 0x43dacc
mov eax, dword [ebx + 0x74]
call fcn.004254a4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x43dacc
push 0
mov eax, dword [ebx + 0x74]
call fcn.004254a4
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x401000
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
sub esp, 0x2a0
lea eax, [esp + 0x110]
push esi
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4010f9
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40104c
push str.socket_error_n
call sub.MSVCRT.dll_printf
add esp, 4
xor eax, eax
pop esi
add esp, 0x2a0
ret
push 0x1194
mov word [esp + 8], 2
call dword [sym.imp.WS2_32.dll_htons]
push str.192.168.1.4
mov word [esp + 0xa], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
lea ecx, [esp + 4]
push 0x10
push ecx
push esi
mov dword [esp + 0x14], eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4010a3
push str.connect_error_n
call sub.MSVCRT.dll_printf
add esp, 4
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
pop esi
add esp, 0x2a0
ret
push edi
mov edi, 0x403010
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 0
push ecx
push 0x403010
push esi
call dword [sym.imp.WS2_32.dll_send]
push 0
lea edx, [esp + 0x1c]
push 0xff
push edx
push esi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
pop edi
jle 0x4010ec
mov byte [esp + eax + 0x14], 0
lea eax, [esp + 0x14]
push eax
call sub.MSVCRT.dll_printf
add esp, 4
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
pop esi
add esp, 0x2a0
ret
Function at 0x401116
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x402068
push 0x401250
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x403080], 0xffffffff
or dword [0x403084], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x40307c]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x403078]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x403088], eax
call fcn.00401247
cmp dword [0x403060], 0
jne 0x401199
push 0x401244
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.00401232
push 0x40300c
push 0x403008
call sub.MSVCRT.dll__initterm
mov eax, dword [0x403074]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x403070]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x403004
push section..data
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call fcn.00401000
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret
Function at 0x4249d0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
xor eax, eax
test ecx, ecx
push esi
mov esi, edx
jbe 0x424a0a
push ebx
lea ebx, [ebx]
movzx ebx, byte [esi]
mov edx, eax
shr edx, 8
xor edx, ebx
xor ebx, ebx
mov bh, al
and edx, 0xff
sub ecx, 1
add esi, 1
xor bx, word [edx*2 + 0x526d40]
test ecx, ecx
movzx eax, bx
ja 0x4249e0
pop ebx
pop esi
ret
Function at 0x42b0cc
Capabilities:
Enumerate devices by category

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
lea esi, [ebx + 8]
mov eax, dword [esi]
test eax, eax
je 0x42b0e5
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
jmp 0x42b133
and dword [ebp + 8], 0
push edi
lea eax, [ebp + 8]
push eax
push 0x527e50
push 1
push 0
push 0x527c70
call dword [0x522950]
mov edi, dword [ebp + 8]
test edi, edi
je 0x42b132
mov eax, dword [esi]
test eax, eax
je 0x42b118
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
and dword [esi], 0
mov eax, dword [edi]
push 0
push esi
add ebx, 0xc
push ebx
push edi
call dword [eax + 0xc]
mov eax, dword [ebp + 8]
test eax, eax
je 0x42b132
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x43c4d3
Capabilities:
Encode data using xor
Encrypt data using blowfish

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x110
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x43c4e2
sub eax, edx
sar eax, 1
push ebx
mov ebx, eax
je 0x43c5ff
push dword [ebp + 8]
lea eax, [ebp - 0x110]
call fcn.0041fcff
push 0x12
mov ecx, 0x551de0
pop edx
mov eax, edi
sub ecx, edi
push esi
mov esi, dword [ecx + eax]
mov dword [eax], esi
add eax, 4
dec edx
jne 0x43c514
mov eax, 0x551e28
lea ecx, [edi + 0x48]
mov edx, 0x100
mov esi, dword [eax]
mov dword [ecx], esi
add eax, 4
add ecx, 4
dec edx
jne 0x43c52c
cmp eax, 0x552e28
jl 0x43c527
xor esi, esi
mov dword [ebp + 8], esi
xor edx, edx
lea eax, [esi + 1]
div ebx
lea eax, [esi + 2]
movzx ecx, byte [ebp + edx - 0x110]
xor edx, edx
div ebx
mov ch, byte [ebp + esi - 0x110]
shl ecx, 8
movzx eax, byte [ebp + edx - 0x110]
or ecx, eax
xor edx, edx
lea eax, [esi + 3]
div ebx
shl ecx, 8
movzx eax, byte [ebp + edx - 0x110]
or ecx, eax
mov eax, dword [ebp + 8]
lea eax, [edi + eax*4]
xor dword [eax], ecx
xor edx, edx
lea eax, [esi + 4]
div ebx
inc dword [ebp + 8]
cmp dword [ebp + 8], 0x12
mov esi, edx
jl 0x43c545
xor ebx, ebx
mov dword [ebp + 8], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp + 8]
push eax
lea esi, [ebp - 4]
mov eax, edi
call fcn.0043c604
mov eax, dword [ebp + 8]
mov dword [edi + ebx*4], eax
mov eax, dword [ebp - 4]
mov dword [edi + ebx*4 + 4], eax
inc ebx
inc ebx
cmp ebx, 0x12
jl 0x43c5a5
lea ebx, [edi + 0x4c]
mov dword [ebp - 0xc], 4
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp + 8]
push eax
lea esi, [ebp - 4]
mov eax, edi
call fcn.0043c604
mov eax, dword [ebp + 8]
mov dword [ebx - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebx], eax
add ebx, 8
dec dword [ebp - 8]
jne 0x43c5d8
dec dword [ebp - 0xc]
jne 0x43c5d1
pop esi
pop ebx
leave
ret 4

Function at 0x4428f4
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
xor ebx, ebx
push edi
xor edi, edi
mov byte [ebp - 8], 0x4d
mov byte [ebp - 7], 0x61
mov byte [ebp - 6], 0x79
mov byte [ebp - 5], bl
mov byte [ebp - 4], 0x20
mov byte [ebp - 3], 0x36
mov byte [ebp - 2], bl
mov byte [ebp - 0x10], 0x32
mov byte [ebp - 0xf], 0x30
mov byte [ebp - 0xe], 0x32
mov byte [ebp - 0xd], 0x31
mov byte [ebp - 0xc], bl
xor esi, esi
mov ecx, dword [esi*4 + 0x58925c]
lea eax, [ebp - 8]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x442958
cmp dl, bl
je 0x442954
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x442958
inc eax
inc eax
inc ecx
inc ecx
cmp dl, bl
jne 0x44293a
xor eax, eax
jmp 0x44295d
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x442969
inc esi
cmp esi, 0xc
jl 0x442930
jmp 0x44296c
lea edi, [esi + 1]
lea eax, [ebp - 4]
push eax
call fcn.00509e15
mov esi, eax
lea eax, [ebp - 0x10]
push eax
call fcn.00509e15
pop ecx
pop ecx
push ebx
push ebx
push ebx
push edi
push dword [ebp + 8]
mov ecx, esi
call fcn.004427fb
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x48edfc
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, eax
push 0
add esi, 4
push 0
mov eax, esi
call fcn.004018ba
movzx eax, word [edi + 0x10]
lea ecx, [eax + 0x26]
add eax, 0x12
mov dword [ebp - 4], eax
push 0x14
lea eax, [ebp - 0x14]
push eax
push esi
mov dword [ebp - 0x14], 0x46464952
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], 0x45564157
mov dword [ebp - 8], 0x20746d66
call fcn.00401cf9
push dword [ebp - 4]
push edi
push esi
call fcn.00401cf9
mov eax, dword [ebp - 4]
add eax, 0x14
pop esi
leave
ret
Function at 0x49a683
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
push ecx
push ebx
push ebp
xor ebp, ebp
push edi
mov edi, 0x3e8
mov dword [esi], ebp
mov eax, edi
xor bl, bl
mov dword [esp + 0xc], ebp
mov ecx, dword [esp + 0x14]
movzx ecx, word [ecx]
add dword [esp + 0x14], 2
lea edx, [ecx - 0x30]
cmp dx, 9
ja 0x49a6ce
movzx edx, dx
imul edx, eax
cmp eax, edi
jl 0x49a6c4
mov ecx, ebp
imul ecx, ecx, 9
add ecx, edx
add dword [esi], ecx
add ebp, ecx
jmp 0x49a698
add dword [esi], edx
push 0xa
cdq
pop ecx
idiv ecx
jmp 0x49a698
cmp cx, 0x3a
jne 0x49a6ef
inc dword [esp + 0xc]
cmp dword [esp + 0xc], 3
jne 0x49a6e4
push 0x64
pop eax
jmp 0x49a6eb
mov ecx, dword [esi]
imul ecx, ecx, 0x3c
mov dword [esi], ecx
xor ebp, ebp
jmp 0x49a698
test cx, cx
je 0x49a70d
cmp cx, 0x2e
jne 0x49a703
cmp eax, edi
jl 0x49a698
push 0x64
pop eax
jmp 0x49a698
cmp cx, 0x2d
jne 0x49a698
mov bl, 1
jmp 0x49a698
pop edi
pop ebp
test bl, bl
pop ebx
je 0x49a716
neg dword [esi]
pop ecx
ret 4

Function at 0x49d042
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push 0
push 0
call fcn.004018ba
or dword [ebp - 0x1c], 0xffffffff
cmp esi, 0xffffffff
mov dword [ebp - 0x20], 0x46464952
mov dword [ebp - 0x18], 0x45564157
mov dword [ebp - 0x14], 0x20746d66
mov dword [ebp - 0x10], 0x12
je 0x49d08a
movzx eax, word [edi + 0x10]
lea ecx, [eax + esi + 0x26]
add eax, 0x12
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x10], eax
push 0x14
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 8]
call fcn.00401cf9
movzx eax, word [edi + 0x10]
add eax, 0x12
push eax
push edi
push dword [ebp + 8]
call fcn.00401cf9
push 8
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
mov dword [ebp - 0xc], 0x61746164
mov dword [ebp - 8], esi
call fcn.00401cf9
leave
ret 4

Function at 0x4a080d
Capabilities:
Encode data using xor

Disassembly:
cmp dword [esp + 4], 0
je 0x4a083c
push ebx
movzx ebx, byte [ecx]
dec dword [esp + 8]
mov edx, eax
shr edx, 0x18
xor edx, ebx
and edx, 0xff
shl eax, 8
xor eax, dword [edx*4 + 0x52c0f8]
inc ecx
cmp dword [esp + 8], 0
jne 0x4a0815
pop ebx
ret 4
Function at 0x4d59ee
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
lea eax, [esi + 0x26]
mov dword [ebp - 0x2c], eax
mov al, byte [ecx + 2]
movzx dx, al
push edi
movzx edi, word [ecx + 0xe]
movzx eax, al
imul eax, edi
mov word [ebp - 0x1a], dx
mov edx, dword [ecx + 4]
imul eax, edx
and word [ebp - 0xc], 0
shr eax, 3
mov dword [ebp - 0x14], eax
movzx eax, word [ecx + 0xe]
movzx cx, byte [ecx + 2]
mov dword [ebp - 0x18], edx
mov dx, ax
shr dx, 3
imul dx, cx
mov word [ebp - 0xe], ax
push 0x2e
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 8]
mov dword [ebp - 0x30], 0x46464952
mov dword [ebp - 0x28], 0x45564157
mov dword [ebp - 0x24], 0x20746d66
mov dword [ebp - 0x20], 0x12
mov word [ebp - 0x1c], 1
mov word [ebp - 0x10], dx
mov dword [ebp - 0xa], 0x61746164
mov dword [ebp - 6], esi
call fcn.00401cf9
pop edi
leave
ret 4
Function at 0x40a23c
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov ebx, eax
xor ebp, ebp
xor edi, edi
lea eax, [ebx + 0x10]
call fcn.00403dcc
cmp ebp, 1
sbb eax, eax
inc eax
cmp al, 1
jne 0x40a2a5
mov eax, dword [ebx + 0x10]
mov edx, 0x40a3d8
call fcn.00404190
jne 0x40a274
lea eax, [ebx + 0x10]
call fcn.00403dcc
jmp 0x40a2ad
mov eax, dword [ebx + 0x10]
mov edx, 0x40a3e4
call fcn.00404190
jne 0x40a290
lea eax, [ebx + 0x10]
mov edx, 0x40a3d8
call fcn.00403e20
cmp dword [ebx + 0x10], 0
jne 0x40a2ad
lea eax, [ebx + 0x10]
mov edx, 0x40a3e4
call fcn.00403e20
jmp 0x40a2ad
lea eax, [ebx + 0x10]
call fcn.00403dcc
mov eax, ebx
call fcn.0040a08c
mov eax, dword [0x40b158]
inc dword [eax]
push 6
push 1
push 2
call sub.wsock32.dll_socket
mov esi, eax
mov word [esp], 2
push 0x8b
call sub.wsock32.dll_htons
mov word [esp + 2], ax
mov eax, dword [ebx + 0x10]
call fcn.00404244
push eax
call sub.wsock32.dll_inet_addr
mov dword [esp + 4], eax
push 0x10
lea eax, [esp + 4]
push eax
push esi
call sub.wsock32.dll_connect
inc eax
je 0x40a307
or edi, 0xffffffff
jmp 0x40a394
mov eax, dword [0x40b170]
inc dword [eax]
mov word [esp], 2
push 0x1bd
call sub.wsock32.dll_htons
mov word [esp + 2], ax
mov eax, dword [ebx + 0x10]
call fcn.00404244
push eax
call sub.wsock32.dll_inet_addr
mov dword [esp + 4], eax
push 0x10
lea eax, [esp + 4]
push eax
push esi
call sub.wsock32.dll_connect
inc eax
je 0x40a34a
or edi, 0xffffffff
jmp 0x40a394
mov eax, dword [0x40b170]
inc dword [eax]
mov word [esp], 2
push 0x75d7
call sub.wsock32.dll_htons
mov word [esp + 2], ax
mov eax, dword [ebx + 0x10]
call fcn.00404244
push eax
call sub.wsock32.dll_inet_addr
mov dword [esp + 4], eax
push 0x10
lea eax, [esp + 4]
push eax
push esi
call sub.wsock32.dll_connect
inc eax
je 0x40a38d
or edi, 0xffffffff
jmp 0x40a394
mov eax, dword [0x40b170]
inc dword [eax]
test edi, edi
je 0x40a3b7
push esi
call sub.wsock32.dll_closesocket
lea eax, [ebx + 0x14]
mov ecx, dword [ebx + 0x10]
mov edx, 0x40a3f0
call fcn.00404090
mov eax, ebx
call fcn.00409f64
mov ebp, eax
push 0x200
call sub.KERNEL32.DLL_Sleep
jmp 0x40a251

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40d7d0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46cf2b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.00461916
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40d852
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045f78d
mov eax, dword [eax]
push 0x4be1c0
push eax
call fcn.004525f4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00461ba1
test bl, bl
je 0x40d852
push 0x4be1c0
lea ecx, [esp + 0xc]
call fcn.00461f31
push 0x4c1d34
lea ecx, [esp + 0xc]
call fcn.00461f31
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x40d88e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00461ba1
jmp 0x40d959
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x40d912
lea edx, [esp + 0x7c]
push 0x4c1d30
push edx
call fcn.004525f4
add esp, 8
test eax, eax
je 0x40d912
lea eax, [esp + 0x7c]
push 0x4c1d2c
push eax
call fcn.004525f4
add esp, 8
test eax, eax
je 0x40d912
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40d8a2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.00461ba1
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x40e150
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40e1b2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc