joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45643c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4b1bb8]
cmp dword [eax + 0x30], 0
je 0x4564e6
cmp dword [ebx + 0x94], 0
jne 0x4564e0
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4563cc
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4564e0
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 0x4564a6
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4564e0
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.00419640
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4564b5
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x457048
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 0x45707d
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.0040446c
jmp 0x45708a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004043d0
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x458194
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4581d5
mov eax, esi
call fcn.0043db48
test al, al
je 0x4581d5
mov eax, dword [ebx + 0x84]
call fcn.0043d844
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4581d5
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043d844
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x45930c
Capabilities:
Hash data with md5

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
add eax, 0x18
mov edx, 0x40
call fcn.004072d8
ret

Function at 0x459e80
Capabilities:
Acquire debug privileges

Disassembly:
push ebx
add esp, 0xffffffe4
mov byte [esp], dl
xor ebx, ebx
lea eax, [esp + 4]
push eax
push 0x20
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
je 0x459ef6
lea eax, [esp + 0x10]
push eax
push 0x459f00
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
mov dword [esp + 0xc], 1
xor eax, eax
mov al, byte [esp]
mov eax, dword [eax*4 + 0x4ace54]
mov dword [esp + 0x18], eax
lea eax, [esp + 8]
push eax
push 0
push 0x10
lea eax, [esp + 0x18]
push eax
push 0
mov eax, dword [esp + 0x18]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
call sub.kernel32.dll_GetLastError
test eax, eax
sete bl
mov eax, dword [esp + 4]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, ebx
add esp, 0x1c
pop ebx
ret
Function at 0x45a228
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffed8
mov esi, edx
lea edi, [esp]
mov ecx, 0x4a
rep movsd dword es:[edi], dword [esi]
xor ebx, ebx
mov eax, dword [esp + 8]
push eax
push 0
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
mov esi, eax
test esi, esi
jbe 0x45a264
push 0
push esi
call sub.kernel32.dll_TerminateProcess
cmp eax, 1
sbb ebx, ebx
inc ebx
mov eax, ebx
add esp, 0x128
pop edi
pop esi
pop ebx
ret

Function at 0x45a270
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
xor ebx, ebx
push edx
push 0
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
mov esi, eax
test esi, esi
jbe 0x45a295
push 0
push esi
call sub.kernel32.dll_TerminateProcess
cmp eax, 1
sbb ebx, ebx
inc ebx
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x45b494
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
push ebp
push ecx
mov esi, dword [ebx + 0x24]
mov edi, dword [ebx + 0x34]
sub edi, dword [ebx + 0x6c]
sub edi, dword [ebx + 0x64]
test edi, edi
jne 0x45b4be
cmp dword [ebx + 0x64], 0
jne 0x45b4be
cmp dword [ebx + 0x6c], 0
jne 0x45b4be
mov edi, esi
jmp 0x45b545
cmp edi, 0xffffffff
jne 0x45b4c6
dec edi
jmp 0x45b545
mov eax, dword [ebx + 0x24]
sub eax, 0x106
add eax, esi
cmp eax, dword [ebx + 0x64]
ja 0x45b545
push esi
mov eax, dword [ebx + 0x30]
mov edx, eax
mov ebp, esi
add edx, ebp
push edx
push eax
call fcn.0045a890
add esp, 0xc
sub dword [ebx + 0x68], esi
sub dword [ebx + 0x64], esi
sub dword [ebx + 0x54], ebp
mov eax, dword [ebx + 0x44]
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x3c]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x45b513
mov cx, word [esp]
sub cx, si
jmp 0x45b515
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x45b4fc
mov eax, esi
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x38]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x45b53b
mov cx, word [esp]
sub cx, si
jmp 0x45b53d
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x45b524
add edi, esi
mov ebp, dword [ebx]
cmp dword [ebp + 4], 0
je 0x45b5a2
mov edx, dword [ebx + 0x30]
mov ecx, edi
add edx, dword [ebx + 0x64]
mov eax, ebp
add edx, dword [ebx + 0x6c]
call fcn.0045b230
add dword [ebx + 0x6c], eax
cmp dword [ebx + 0x6c], 3
jb 0x45b58d
mov eax, dword [ebx + 0x30]
mov edx, dword [ebx + 0x64]
movzx eax, byte [eax + edx]
mov dword [ebx + 0x40], eax
mov ecx, dword [ebx + 0x50]
shl eax, cl
mov edx, dword [ebx + 0x30]
mov ecx, dword [ebx + 0x64]
movzx edx, byte [edx + ecx + 1]
xor eax, edx
and eax, dword [ebx + 0x4c]
mov dword [ebx + 0x40], eax
cmp dword [ebx + 0x6c], 0x106
jae 0x45b5a2
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x45b49e
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4617f8
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
xor esi, esi
mov ecx, 0x4b1ca4
mov eax, esi
mov edx, 8
mov ebx, eax
and ebx, 1
test bl, bl
je 0x46181a
shr eax, 1
xor eax, 0xedb88320
jmp 0x46181c
shr eax, 1
dec edx
jne 0x461808
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x461801
mov byte [0x4b20a4], 1
pop esi
pop ebx
ret
Function at 0x461838
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
cmp byte [0x4b20a4], 0
jne 0x46184f
call fcn.004617f8
mov eax, edi
dec eax
test eax, eax
jl 0x461878
inc eax
xor edx, edx
xor ecx, ecx
mov cl, byte [esi + edx]
xor ecx, ebx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4b1ca4]
shr ebx, 8
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x461859
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x463e14
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebx, eax
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov al, byte [eax]
dec al
je 0x463e45
dec al
je 0x463e81
dec al
je 0x463ec5
dec al
je 0x463f30
jmp 0x463fba
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x463fba
inc edi
mov edx, esi
sub edx, dword [ebx + 0x24]
xor ecx, ecx
mov cl, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
mov dl, byte [ecx + edx]
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x463e55
jmp 0x463fba
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x463fba
mov esi, 1
mov al, byte [ebx + 0x48]
mov edx, eax
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov dl, byte [edx + esi]
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x463e91
jmp 0x463fba
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x463fba
mov esi, 1
mov al, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov ecx, esi
dec ecx
mov edx, dword [ebx + 0x24]
cmp ecx, edx
jae 0x463ef3
xor ebp, ebp
jmp 0x463f04
mov ecx, esi
sub ecx, edx
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx ebp, byte [edx + ecx]
add eax, ebp
sar eax, 1
jns 0x463f0d
adc eax, 0
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
add al, byte [edx + esi]
and al, 0xff
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x463ed5
jmp 0x463fba
xor ebp, ebp
xor eax, eax
mov dword [esp + 4], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x463fba
mov esi, 1
mov al, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov edx, esi
dec edx
cmp edx, dword [ebx + 0x24]
jb 0x463f88
mov edx, esi
sub edx, dword [ebx + 0x24]
xor ecx, ecx
mov cl, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx ebp, byte [ecx + edx]
mov dl, byte [ebx + 0x48]
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov ecx, esi
sub ecx, dword [ebx + 0x24]
movzx edx, byte [edx + ecx]
mov dword [esp + 4], edx
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
mov dword [esp], edx
mov cl, byte [esp + 4]
push eax
mov eax, ebp
pop edx
call fcn.00461880
add al, byte [esp]
and al, 0xff
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x463f44
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x467878
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x416174]
call fcn.00404d7c
xor eax, eax
push ebp
push 0x4679bc
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4af0f4], 0
jne 0x4678cb
mov ecx, dword [0x4afd68]
mov dl, 1
mov eax, dword [0x40792c]
call fcn.0040ca4c
call fcn.00403cf8
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00402e70
mov eax, ebx
call fcn.00404bc8
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x4679cc
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.00405e90
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00404bd8
test eax, eax
jle 0x467963
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x46795c
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00404614
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.004045fc
mov eax, dword [ebp - 0x48]
pop edx
call fcn.0040885c
test eax, eax
jne 0x46795c
mov ebx, 0x15
jmp 0x467968
mov ebx, 0x10
jmp 0x467968
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x4af0f4]
call fcn.004677d0
mov eax, dword [ebp - 8]
call fcn.004677d0
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00405ea8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4679c3
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.004043a0
lea eax, [ebp - 0x10]
mov edx, dword [0x416174]
call fcn.00404e4c
ret
Function at 0x47c818
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x47c820
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x47ca12
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0xc]
mov edx, 0x47ca28
mov eax, esi
call fcn.0047a5a8
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.004043d0
lea ecx, [ebp - 0x10]
mov edx, 0x47ca3c
mov eax, esi
call fcn.0047a5a8
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x28]
call fcn.004043d0
lea ecx, [ebp - 0x14]
mov edx, 0x47ca54
mov eax, esi
call fcn.0047a5a8
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
call fcn.004043d0
lea ecx, [ebp - 0x18]
mov edx, 0x47ca70
mov eax, esi
call fcn.0047a5a8
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x14]
call fcn.004043d0
lea ecx, [ebp - 0x1c]
mov edx, 0x47ca8c
mov eax, esi
call fcn.0047a5a8
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x24]
call fcn.004043d0
lea ecx, [ebp - 0x24]
mov edx, 0x47caa4
mov eax, esi
call fcn.0047a5a8
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.004088cc
mov eax, dword [ebp - 0x20]
or edx, 0xffffffff
call fcn.00408cac
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x28]
mov edx, 0x47cabc
mov eax, esi
call fcn.0047a5a8
mov eax, dword [ebp - 0x28]
call fcn.004796c0
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x2c]
mov edx, 0x47cacc
mov eax, esi
call fcn.0047a5a8
mov eax, dword [ebp - 0x2c]
call fcn.004796c0
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x47cae4
mov eax, esi
call fcn.0047a5a8
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
call fcn.00408cac
inc eax
je 0x47c9b5
lea ecx, [ebp - 0x34]
mov edx, 0x47cae4
mov eax, esi
call fcn.0047a5a8
mov eax, dword [ebp - 0x34]
call fcn.00408c70
mov edi, eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov dword [ebp - 8], eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov ecx, edx
mov eax, ecx
push ecx
mov ecx, 0x3c
cdq
idiv ecx
pop ecx
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, 0x3c
cdq
idiv ecx
mov edi, edx
push 0
mov ecx, edi
mov dx, word [ebp - 4]
mov ax, word [ebp - 8]
call fcn.0040a6b4
fstp qword [ebp - 0x3c]
wait
call fcn.0040aa18
fadd qword [ebp - 0x3c]
fstp qword [ebx + 0x38]
wait
jmp 0x47c9d0
lea ecx, [ebp - 0x40]
mov edx, 0x47cae4
mov eax, esi
call fcn.0047a5a8
mov eax, dword [ebp - 0x40]
call fcn.004796c0
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x44]
mov edx, 0x47caf4
mov eax, esi
call fcn.0047a5a8
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x48]
call fcn.004043d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47ca19
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.004043a0
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.004043a0
ret
Function at 0x488cb0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x488d0a
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.00488ca0
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.00478230
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.00477e30
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x488d11
lea eax, [ebp - 4]
call fcn.0040437c
ret

Function at 0x495f00
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, eax
or ebx, 0xffffffff
xor edx, edx
push ebp
push 0x495f71
push dword fs:[edx]
mov dword fs:[edx], esp
test esi, esi
jne 0x495f2b
mov eax, ebx
pop dword fs:[0]
add esp, 8
jmp 0x495f80
mov eax, esi
call fcn.0040484c
mov edi, eax
push edi
call sub.wsock32.dll_inet_addr
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x495f67
push edi
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x495f52
cmp word [eax + 0xa], 0
jg 0x495f60
mov eax, ebx
pop dword fs:[0]
add esp, 8
jmp 0x495f80
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov ebx, dword [eax]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x495f7e
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x495f88
Capabilities:
Initialize winsock library

Disassembly:
add esp, 0xfffffe70
mov byte [0x4b24b8], 0
mov eax, sub.wsock32.dll_WSAStartup
test eax, eax
je 0x495fbf
push esp
push 0x101
call sub.wsock32.dll_WSAStartup
sub eax, 0x2726
je 0x495fbf
add eax, 0xffffffbb
sub eax, 2
jb 0x495fbf
mov byte [0x4b24b8], 1
add esp, 0x190
ret

Function at 0x49625c
Capabilities:
Create raw socket

Disassembly:
push ebx
push esi
mov ebx, eax
cmp dword [ebx + 8], 0xffffffff
jne 0x49628d
cmp dword [ebx + 0x28], 0xffffffff
je 0x49628d
push 1
push 3
push 2
call sub.wsock32.dll_socket
mov esi, eax
mov dword [ebx + 8], esi
push 1
push 0x502
mov eax, dword [ebx + 0x28]
push eax
push esi
call sub.wsock32.dll_WSAAsyncSelect
pop esi
pop ebx
ret
Function at 0x496504
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
xor ebx, ebx
mov bl, byte [eax + 0xc]
add ebx, 8
add ebx, 4
xor edx, edx
push ebp
push 0x496624
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, ebx
call fcn.004027c0
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov byte [eax], 8
mov eax, dword [ebp - 8]
mov byte [eax + 1], 0
mov eax, dword [ebp - 8]
mov word [eax + 2], 0
mov eax, dword [ebp - 8]
mov dx, word [0x4afc94]
mov word [eax + 6], dx
inc word [0x4afc94]
mov eax, dword [ebp - 8]
mov dx, word [ebp - 4]
mov word [eax + 4], dx
mov eax, dword [ebp - 4]
xor edx, edx
mov dl, byte [eax + 0xc]
mov eax, dword [ebp - 8]
add eax, 0xc
mov cl, 0xa7
call fcn.00402e70
call fcn.0049615c
mov edx, dword [ebp - 8]
mov dword [edx + 8], eax
mov esi, dword [ebp - 8]
mov eax, esi
mov edx, ebx
call fcn.0049610c
mov edx, dword [ebp - 8]
mov word [edx + 2], ax
mov edi, 0x10
mov word [ebp - 0x18], 2
mov word [ebp - 0x16], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x14], eax
push edi
lea eax, [ebp - 0x18]
push eax
push 0
push ebx
push esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.wsock32.dll_sendto
inc eax
jne 0x4965fd
call sub.wsock32.dll_WSAGetLastError
neg eax
mov edx, dword [ebp - 4]
cmp word [edx + 0x72], 0
je 0x4965fd
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x1c]
push edx
push eax
mov ebx, dword [ebp - 4]
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x74]
call dword [ebx + 0x70]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49662b
cmp dword [ebp - 8], 0
je 0x496623
mov eax, dword [ebp - 4]
xor edx, edx
mov dl, byte [eax + 0xc]
add edx, 8
mov eax, dword [ebp - 8]
call fcn.004027e0
ret

Function at 0x4a2154
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov bl, byte [0x4a218c]
push 0x10
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x4a216a
or bl, 1
push 0x11
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x4a2179
or bl, 4
push 0x12
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x4a2188
or bl, 2
mov eax, ebx
pop ebx
ret

Function at 0x4a281c
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x4b0254]
mov eax, dword [eax]
mov eax, dword [eax + 0x44]
test eax, eax
je 0x4a2849
mov edx, dword [0x4b0254]
xor edx, edx
call fcn.00450a88
push 0
mov eax, dword [0x4b0254]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_ShowWindow
ret
Function at 0x4a3334
Capabilities:
Resolve dns

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffe0
mov esi, ecx
mov ebx, edx
mov eax, esi
call fcn.0040437c
test ebx, ebx
je 0x4a33d5
mov al, byte [ebx]
add al, 0xd0
sub al, 0xa
jae 0x4a3370
mov eax, ebx
call fcn.0040484c
push eax
call sub.wsock32.dll_inet_addr
inc eax
je 0x4a33e1
mov eax, esi
mov edx, ebx
call fcn.004043d0
jmp 0x4a33e1
mov eax, ebx
call fcn.0040484c
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x4a33e1
mov ebx, eax
push esi
mov eax, dword [ebx + 0xc]
mov edi, dword [eax]
xor eax, eax
mov al, byte [edi]
mov dword [esp + 4], eax
mov byte [esp + 8], 0
xor eax, eax
mov al, byte [edi + 1]
mov dword [esp + 0xc], eax
mov byte [esp + 0x10], 0
xor eax, eax
mov al, byte [edi + 2]
mov dword [esp + 0x14], eax
mov byte [esp + 0x18], 0
xor eax, eax
mov al, byte [edi + 3]
mov dword [esp + 0x1c], eax
mov byte [esp + 0x20], 0
lea edx, [esp + 4]
mov ecx, 3
mov eax, 0x4a33f0
call fcn.00409c10
jmp 0x4a33e1
mov eax, esi
mov edx, 0x4a3404
call fcn.004043d0
add esp, 0x20
pop edi
pop esi
pop ebx
ret

Function at 0x4a4350
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffea4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.0040483c
mov eax, dword [ebp - 8]
call fcn.0040483c
xor eax, eax
push ebp
push 0x4a44c0
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x4a449e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x15c]
xor ecx, ecx
mov edx, 0x140
call fcn.00402e70
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.0040d6b4
lea eax, [ebp - 0x14]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x18]
call fcn.00404698
lea eax, [ebp - 0x15c]
push eax
mov eax, dword [ebp - 0x14]
call fcn.0040484c
push eax
call sub.kernel32.dll_FindFirstFileA_1
mov edi, eax
test edi, edi
je 0x4a4481
lea eax, [ebp - 0x10]
lea edx, [ebp - 0x130]
mov ecx, 0x104
call fcn.004045fc
mov eax, dword [ebp - 0x10]
mov edx, 0x4a44d8
call fcn.00404798
je 0x4a4466
mov eax, dword [ebp - 0x10]
mov edx, 0x4a44e4
call fcn.00404798
je 0x4a4466
cmp dword [ebp - 0x10], 0
je 0x4a4466
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
call fcn.00404698
mov eax, dword [ebp - 0x15c]
and eax, 0x10
cmp eax, 0x10
jne 0x4a445c
test bl, bl
je 0x4a4466
push ebx
mov ecx, esi
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
call fcn.004a4350
jmp 0x4a4466
mov eax, dword [esi]
mov edx, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x15c]
push eax
push edi
call sub.kernel32.dll_FindNextFileA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x4a43f5
push edi
call sub.kernel32.dll_FindClose_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a44a5
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_SetErrorMode
ret
Function at 0x4a60d8
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa0
push ebx
xor ebx, ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.0040483c
mov eax, dword [ebp - 8]
call fcn.0040483c
xor eax, eax
push ebp
push 0x4a61a6
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x18]
xor ecx, ecx
mov edx, 0x10
call fcn.00402e70
lea eax, [ebp - 0x5c]
xor ecx, ecx
mov edx, 0x44
call fcn.00402e70
mov dword [ebp - 0x5c], 0x44
mov word [ebp - 0x2c], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x5c]
push eax
mov eax, dword [0x4b26f0]
call fcn.0040484c
push eax
push 0
push 0
push 0xffffffffffffffff
push 0
push 0
push 0x4a61bc
push dword [ebp - 4]
push 0x4a61c8
push dword [ebp - 8]
lea eax, [ebp - 0x60]
mov edx, 4
call fcn.0040470c
mov eax, dword [ebp - 0x60]
call fcn.0040484c
push eax
push 0
call sub.kernel32.dll_CreateProcessA
cmp eax, 1
sbb ebx, ebx
inc ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a61ad
lea eax, [ebp - 0x60]
call fcn.0040437c
lea eax, [ebp - 8]
mov edx, 2
call fcn.004043a0
ret