joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44ff48
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 0x4500f3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4500d4
mov dl, 1
mov eax, dword [0x411a28]
call fcn.004030cc
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00403e4c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4500c3
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.0043df54
test al, al
je 0x4500b6
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, 0x450104
lea eax, [ebp - 0x254]
call fcn.004089ac
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4500b6
xor eax, eax
push ebp
push 0x4500af
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 0x45013c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x450098
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004040bc
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x450098
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004040bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4500b6
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44ffb9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00415504
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4500fa
lea eax, [ebp - 0x260]
call fcn.00403e4c
ret

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

Disassembly:
push ecx
mov eax, dword [0x457bdc]
cmp byte [eax + 0xa5], 0
jne 0x450a99
cmp dword [0x457bf4], 0
jne 0x450a5a
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4509e4
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x457bf4], eax
cmp dword [0x457bf0], 0
jne 0x450a75
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x457bf0], eax
cmp dword [0x457bf8], 0
jne 0x450a99
push esp
push 0
push 0
push 0x450988
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x457bf8], eax
pop edx
ret
Function at 0x450b90
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x450ba7
add esp, 0xfffffff0
call fcn.00403420
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419314
mov eax, dword [0x455fc8]
cmp word [eax + 2], 0
jne 0x450bcf
mov eax, dword [0x455fc8]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00452268
mov eax, dword [0x456074]
cmp word [eax + 2], 0
jne 0x450be9
mov eax, dword [0x456074]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00452460
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41160c]
call fcn.004030cc
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41160c]
call fcn.004030cc
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41b848]
call fcn.00422bc0
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x450d70
mov eax, dword [0x455ef0]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00422f90
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x452a00
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x455ef0]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
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.0040c07c
test eax, eax
je 0x450cde
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004083a0
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c0a4
test eax, eax
je 0x450cf2
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004040bc
mov eax, dword [0x455de4]
cmp byte [eax], 0
jne 0x450d26
mov eax, ebx
call fcn.00450e98
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.00452bdc
mov eax, ebx
call fcn.004535a0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x450d66
call fcn.00403478
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x451118
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x457bdc]
cmp dword [eax + 0x30], 0
je 0x4511c2
cmp dword [ebx + 0x94], 0
jne 0x4511bc
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4510a8
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4511bc
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 0x451182
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4511bc
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00413974
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x451191
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x451d24
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x451d59
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403f3c
jmp 0x451d66
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403ea0
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x452db8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x452df9
mov eax, esi
call fcn.00439580
test al, al
je 0x452df9
mov eax, dword [ebx + 0x84]
call fcn.0043927c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x452df9
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043927c
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x4015f0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x4c07e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
lea eax, [ebp - 0x194]
push eax
push 0x202
mov dword [esi + 0x10], 0
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov eax, dword [ebp + 8]
mov dword [esi + 4], eax
imul eax, eax, 0x10c
mov dword [esi + 8], 1
mov dword [esi + 0xc], 0
push eax
call fcn.0046b4f9
imul ecx, dword [esi + 4], 0x10c
mov dword [esi], eax
push ecx
push 0
push eax
call fcn.00466b60
mov ecx, dword [ebp - 4]
add esp, 0x10
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00464e2f
mov esp, ebp
pop ebp
ret 4

Function at 0x401a70
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi + 8], 0
je 0x401ac1
mov eax, dword [esi + 0xc]
test eax, eax
je 0x401a96
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 4]
mov dword [esi + 8], 0
push eax
push 0
push esi
push 0x401960
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0xc], eax
test eax, eax
jne 0x401ac1
mov dword [esi + 8], 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x402680
Capabilities:
Encode data using xor
Encrypt data using blowfish

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
cmp edi, 4
jae 0x40269d
mov edx, 0x490c80
mov edi, 4
jmp 0x4026aa
mov edx, dword [ebp + 0xc]
mov eax, 0x38
cmp edi, eax
cmova edi, eax
mov ebx, dword [ebp + 8]
mov eax, edx
or eax, edi
mov dword [ebp - 8], edx
mov esi, ebx
test al, 3
jne 0x4026ee
lea eax, [edx + edi]
mov ecx, edx
mov dword [ebp - 8], eax
mov edi, 0x12
mov eax, 0x48fc38
sub eax, ebx
mov ebx, eax
mov eax, dword [ecx]
lea esi, [esi + 4]
add ecx, 4
bswap eax
xor eax, dword [ebx + esi - 4]
cmp ecx, dword [ebp - 8]
mov dword [esi - 4], eax
cmovae ecx, edx
sub edi, 1
jne 0x4026d0
jmp 0x40275c
mov eax, 0x48fc38
mov dword [ebp - 4], 0
sub eax, ebx
mov dword [ebp - 0xc], 0x12
mov dword [ebp - 0x10], eax
xor ebx, ebx
movzx eax, byte [ebx + edx]
lea esi, [esi + 4]
inc ebx
mov byte [ebp - 1], al
cmp ebx, edi
sbb ecx, ecx
and ecx, ebx
movzx eax, byte [ecx + edx]
inc ecx
cmp ecx, edi
mov byte [ebp - 2], al
mov eax, dword [ebp - 8]
sbb edx, edx
and edx, ecx
movzx eax, byte [edx + eax]
inc edx
cmp edx, edi
mov byte [ebp - 3], al
sbb ecx, ecx
and ecx, edx
mov edx, dword [ebp - 8]
movzx eax, byte [ecx + edx]
inc ecx
mov byte [ebp - 4], al
cmp ecx, edi
mov eax, dword [ebp - 0x10]
sbb ebx, ebx
and ebx, ecx
mov eax, dword [eax + esi - 4]
xor eax, dword [ebp - 4]
sub dword [ebp - 0xc], 1
mov dword [esi - 4], eax
jne 0x402708
mov ebx, dword [ebp + 8]
push 0x1000
push 0x48fc80
lea esi, [ebx + 0x48]
push esi
mov dword [ebp - 0x10], esi
call fcn.00466cc0
add esp, 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov edi, ebx
mov esi, 9
nop dword [eax]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push ebx
call fcn.00402260
mov eax, dword [ebp - 4]
lea edi, [edi + 8]
mov dword [edi - 8], eax
add esp, 0xc
mov eax, dword [ebp - 8]
mov dword [edi - 4], eax
sub esi, 1
jne 0x402790
mov esi, dword [ebp - 0x10]
mov edi, 0x200
nop dword [eax]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push ebx
call fcn.00402260
mov eax, dword [ebp - 4]
lea esi, [esi + 8]
mov dword [esi - 8], eax
add esp, 0xc
mov eax, dword [ebp - 8]
mov dword [esi - 4], eax
sub edi, 1
jne 0x4027c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404140
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48c2ba
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x4c07e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov byte [esi + 0x2dc], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x2e0], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [esi + 0x4061c]
mov dword [esi + 0x2e4], eax
mov dword [esi + 0x40308], 0
mov dword [esi + 0x4030c], 0
call fcn.004071a0
lea ecx, [esi + 0x4069c]
call fcn.00401b00
lea ecx, [esi + 0x416f8]
mov dword [ebp - 4], 0
call fcn.00401b00
lea ecx, [esi + 0x42754]
mov byte [ebp - 4], 1
call fcn.00401b00
mov ecx, esi
mov byte [ebp - 4], 2
mov dword [esi + 0x43e80], 0
mov word [esi + 0x43e84], 0
mov dword [esi + 0x43e88], 0
mov dword [esi + 0x43e8c], 0
mov dword [esi + 0x43e90], 0
mov dword [esi + 0x43e94], 0
mov dword [esi + 0x43e98], 0
mov dword [esi + 0x43e9c], 0
mov dword [esi + 0x43ea0], 0
mov dword [esi + 0x43ea4], 0
mov dword [esi + 0x43ea8], 0
mov dword [esi + 0x43eac], 0
mov dword [esi + 0x43eb0], 0
mov dword [esi + 0x43eb4], 0
mov dword [esi + 0x43eb8], 0
mov dword [esi + 0x43ebc], 0
mov dword [esi + 0x40680], 0
mov dword [esi + 0x40684], 0
mov dword [esi + 0x40688], 0
mov dword [esi + 0x4068c], 0
mov dword [esi + 0x40690], 0
mov dword [esi + 0x40694], 0
mov dword [esi + 0x40698], 0
mov dword [esi + 0x2d8], 0
call fcn.00405f70
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [esi + 0x43bd8], 0
mov dword [esi + 0x43cdc], 0
mov dword [esi + 0x2e8], eax
mov dword [esi + 0x43bdc], eax
inc dword [esi + 0x43bd8]
mov edx, dword [esi + 0x43cdc]
test edx, edx
je 0x40431c
mov edi, eax
lea eax, [esi + 0x43ce0]
nop dword [eax]
cmp dword [eax], edi
je 0x40431c
inc ecx
add eax, 4
cmp ecx, edx
jb 0x404310
cmp ecx, edx
jne 0x404338
cmp edx, 0x40
jae 0x404338
mov eax, dword [esi + 0x2e8]
mov dword [esi + ecx*4 + 0x43ce0], eax
inc dword [esi + 0x43cdc]
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 1
push eax
xorps xmm0, xmm0
movq qword [esi + 0x43bd0], xmm0
push 0x8004667e
push dword [esi + 0x2e8]
mov dword [esi + 0x43bd0], 0
mov dword [esi + 0x43bd4], 0xa
call dword [sym.imp.WS2_32.dll_ioctlsocket]
push 0x490ce0
lea eax, [esi + 0xc]
mov dword [esi + 0x40330], 5
push str._s__incoming_
push eax
mov byte [esi + 0x43bcc], 0
mov byte [esi + 0x2d7], 0
mov byte [esi + 0x43e84], 0
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esi + 0x257]
push 0x490ce0
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
mov dword [esi + 0x43e60], 0x66
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x406a30
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
xor ecx, ecx
mov eax, dword [esi + 0x2e8]
mov dword [esi + 0x43bd8], 0
mov dword [esi + 0x43cdc], 0
mov dword [esi + 0x43bdc], eax
inc dword [esi + 0x43bd8]
mov edx, dword [esi + 0x43cdc]
test edx, edx
je 0x406a81
push edi
mov edi, eax
lea eax, [esi + 0x43ce0]
cmp dword [eax], edi
je 0x406a80
inc ecx
add eax, 4
cmp ecx, edx
jb 0x406a74
pop edi
cmp ecx, edx
jne 0x406a9d
cmp edx, 0x40
jae 0x406a9d
mov eax, dword [esi + 0x2e8]
mov dword [esi + ecx*4 + 0x43ce0], eax
inc dword [esi + 0x43cdc]
lea eax, [ebp - 8]
mov dword [ebp - 8], 1
push eax
xorps xmm0, xmm0
movq qword [esi + 0x43bd0], xmm0
push 0x8004667e
push dword [esi + 0x2e8]
mov dword [esi + 0x43bd0], 0
mov dword [esi + 0x43bd4], 0xa
call dword [sym.imp.WS2_32.dll_ioctlsocket]
push 0x10
lea eax, [esi + 0x40320]
push eax
push dword [esi + 0x2e8]
call dword [sym.imp.WS2_32.dll_connect]
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x406b2d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.connection:_connect___returned_error:__d
push 3
lea ecx, [ebp - 1]
call fcn.00407110
push eax
call fcn.0044f120
add esp, 0x10
mov dword [esi + 0x40330], 2
mov eax, 2
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 4
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x406b40
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push 0x14
lea eax, [esi + 0x43eb8]
push eax
call fcn.004510e0
add esp, 8
test eax, eax
je 0x406b67
mov eax, dword [esi + 0x40330]
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push edi
lea eax, [esi + 0x43bd0]
push eax
lea ebx, [esi + 0x43cdc]
push ebx
lea edi, [esi + 0x43bd8]
push edi
push 0
push dword [esi + 0x2e8]
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x406bc6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.connection::run:_select___returned_error:__d
push 3
lea ecx, [ebp - 1]
call fcn.00407110
push eax
call fcn.0044f120
add esp, 0x10
mov dword [esi + 0x40330], 2
mov eax, 2
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push dword [esi + 0x2e8]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x406c04
push str.connection::run:_select___notified_of_error
push 3
lea ecx, [ebp - 1]
call fcn.00407110
push eax
call fcn.0044f120
add esp, 0xc
mov dword [esi + 0x40330], 2
mov eax, 2
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
push edi
push dword [esi + 0x2e8]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x406c2a
pop edi
pop ebx
mov dword [esi + 0x40330], 4
mov eax, 4
pop esi
mov esp, ebp
pop ebp
ret
pop edi
pop ebx
mov dword [esi + 0x40330], 5
mov eax, 5
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x406c40
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
mov eax, dword [esi + 0x2d8]
test eax, eax
jne 0x406c71
push str.Error_Resolving_Socks_Proxy_Address___no_proxy_enabled__
push 0x39
lea eax, [esi + 0x158]
push eax
call fcn.0046b5c5
add esp, 0xc
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
cmp byte [eax + 0x10], 0
lea ecx, [eax + 0x10]
jne 0x406c83
push str.Error_Resolving_Socks_Proxy_Address___no_proxy_enabled__
push 0x3c
jmp 0x406c5a
add eax, 4
push eax
push ecx
mov ecx, dword [0x4c310c]
call fcn.004016c0
cmp eax, 0xffffffff
je 0x406c69
cmp eax, 1
jne 0x406ca2
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0x2e8], eax
cmp eax, 0xffffffff
jne 0x406cc9
push str.Error_Creating_Socks_Proxy_Socket
mov dword [esi + 8], 1
push 0x22
jmp 0x406c5a
mov dword [esi + 0x43bd8], 0
xor ecx, ecx
mov dword [esi + 0x43cdc], 0
mov dword [esi + 0x43bdc], eax
inc dword [esi + 0x43bd8]
mov edx, dword [esi + 0x43cdc]
test edx, edx
je 0x406d0d
push edi
mov edi, eax
lea eax, [esi + 0x43ce0]
nop
cmp dword [eax], edi
je 0x406d0c
inc ecx
add eax, 4
cmp ecx, edx
jb 0x406d00
pop edi
cmp ecx, edx
jne 0x406d29
cmp edx, 0x40
jae 0x406d29
mov eax, dword [esi + 0x2e8]
mov dword [esi + ecx*4 + 0x43ce0], eax
inc dword [esi + 0x43cdc]
lea eax, [ebp - 8]
mov dword [ebp - 8], 1
push eax
xorps xmm0, xmm0
movq qword [esi + 0x43bd0], xmm0
push 0x8004667e
push dword [esi + 0x2e8]
mov dword [esi + 0x43bd0], 0
mov dword [esi + 0x43bd4], 0xa
call dword [sym.imp.WS2_32.dll_ioctlsocket]
push 0x10
push dword [esi + 0x2d8]
push dword [esi + 0x2e8]
call dword [sym.imp.WS2_32.dll_connect]
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x406dac
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.connection:_connecting_via_proxy_connect___returned_error:__d
push 3
lea ecx, [ebp - 1]
call fcn.00407110
push eax
call fcn.0044f120
add esp, 0x10
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x406df0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x4c07e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0xff
lea eax, [ebp - 0x104]
mov ebx, ecx
push 0
push eax
call fcn.00466b60
add esp, 0xc
lea eax, [ebp - 0x104]
push 0
push 0xff
push eax
push dword [ebx + 0x2e8]
call dword [sym.imp.WS2_32.dll_recv]
mov eax, dword [ebp - 0x104]
cmp al, 5
jne 0x406f08
movsx eax, ah
cmp eax, 0xff
je 0x406f08
push esi
lea esi, [ebx + 0x257]
mov ecx, esi
push edi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406e60
sub ecx, edx
lea eax, [ecx + 7]
push eax
mov dword [ebp - 0x108], eax
call fcn.004650ae
mov edi, eax
mov ecx, esi
add esp, 4
mov dword [edi], 0x3000105
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406e88
sub ecx, edx
movzx eax, cl
shl cx, 8
or cx, ax
mov byte [edi + 4], cl
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406ea3
sub ecx, edx
lea eax, [edi + 5]
push ecx
push esi
push eax
call fcn.00466cc0
add esp, 0xc
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x406ec0
mov ax, word [ebx + 0x40322]
sub esi, ecx
push 0
push dword [ebp - 0x108]
push edi
mov word [esi + edi + 5], ax
push dword [ebx + 0x2e8]
call dword [sym.imp.WS2_32.dll_send]
push 1
push edi
call fcn.004650a0
add esp, 8
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00464e2f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop ebx
call fcn.00464e2f
mov esp, ebp
pop ebp
ret
Function at 0x406f20
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x4c07e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
lea eax, [esi + 0x43bd0]
push eax
lea ebx, [esi + 0x43cdc]
push ebx
lea edi, [esi + 0x43bd8]
push edi
push 0
push dword [esi + 0x2e8]
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x406f95
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.connection::run:_select___returned_error:__d
push 3
lea ecx, [ebp - 0x105]
call fcn.00407110
push eax
call fcn.0044f120
add esp, 0x10
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00464e2f
mov esp, ebp
pop ebp
ret
push ebx
push dword [esi + 0x2e8]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x406fd3
push str.connection::run:_select___notified_of_error
push 3
lea ecx, [ebp - 0x105]
call fcn.00407110
push eax
call fcn.0044f120
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00464e2f
mov esp, ebp
pop ebp
ret
push edi
push dword [esi + 0x2e8]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x406f82
push 0xff
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.00466b60
add esp, 0xc
lea eax, [ebp - 0x104]
push 0
push 0xff
push eax
push dword [esi + 0x2e8]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x406f82
cmp byte [ebp - 0x103], 0
jne 0x406f82
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00464e2f
mov esp, ebp
pop ebp
ret
Function at 0x40bfc0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48c706
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x4c07e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x5c]
push 0x40
push 0
push eax
mov dword [ebp - 0x1c], 0x6462616f
mov dword [ebp - 0x18], 0x61716e7a
mov byte [ebp - 0x14], 0x62
call fcn.00466b60
xor eax, eax
mov ecx, 0x26
cmp byte [ebp + 0xc], al
cmovne eax, ecx
push eax
movsx eax, byte [ebp + esi - 0x1c]
push eax
lea eax, [ebp - 0x5c]
push str._status__c_c
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
push 0x34
lea eax, [ebp - 0x12c]
mov dword [0x4c0258], esi
push 0
push eax
call fcn.00466b60
add esp, 0x28
lea ecx, [ebp - 0xf8]
call fcn.0045f430
lea eax, [ebp - 0x5c]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0xf8]
call fcn.0045f810
push 0x4914a8
lea ecx, [ebp - 0xf8]
call fcn.0045f7c0
push 0x4c4e88
lea ecx, [ebp - 0xf8]
call fcn.0045f7a0
lea ecx, [ebp - 0xf8]
call fcn.0045f580
mov dword [ebp - 0xfc], eax
mov dword [ebp - 0x118], 0x20
test eax, eax
je 0x40c0c9
mov ecx, eax
call fcn.004471d0
mov ecx, dword [0x4c3114]
mov dword [ebp - 0x114], eax
lea eax, [ebp - 0x12c]
push eax
call fcn.00425050
lea ecx, [ebp - 0xf8]
call fcn.0045f570
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00464e2f
mov esp, ebp
pop ebp
ret