joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45d694
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040483c
xor eax, eax
push ebp
push 0x45d7e2
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x6c]
call fcn.0045d4f8
push 0
push 0x8000080
push 3
push 0
push 3
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.0040484c
push eax
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x45d7c1
xor eax, eax
push ebp
push 0x45d7ba
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push 2
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CreateFileMappingA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x45d7a3
xor eax, eax
push ebp
push 0x45d79c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push 4
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x45d785
xor eax, eax
push ebp
push 0x45d77e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetFileSize
mov ecx, eax
lea eax, [ebp - 0x6c]
mov edx, dword [ebp - 0x14]
call fcn.0045d52c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45d785
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_UnmapViewOfFile
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45d7a3
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45d7c1
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle
ret
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x6c]
call fcn.0045d5ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45d7e9
lea eax, [ebp - 4]
call fcn.0040437c
ret

Function at 0x45e1c8
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 0x45e23e
lea eax, [esp + 0x10]
push eax
push 0x45e248
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
mov dword [esp + 0xc], 1
xor eax, eax
mov al, byte [esp]
mov eax, dword [eax*4 + 0x4b5eac]
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 0x45e570
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 0x45e5ac
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 0x45e5b8
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 0x45e5dd
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 0x45f7dc
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 0x45f806
cmp dword [ebx + 0x64], 0
jne 0x45f806
cmp dword [ebx + 0x6c], 0
jne 0x45f806
mov edi, esi
jmp 0x45f88d
cmp edi, 0xffffffff
jne 0x45f80e
dec edi
jmp 0x45f88d
mov eax, dword [ebx + 0x24]
sub eax, 0x106
add eax, esi
cmp eax, dword [ebx + 0x64]
ja 0x45f88d
push esi
mov eax, dword [ebx + 0x30]
mov edx, eax
mov ebp, esi
add edx, ebp
push edx
push eax
call fcn.0045ebd8
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 0x45f85b
mov cx, word [esp]
sub cx, si
jmp 0x45f85d
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x45f844
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 0x45f883
mov cx, word [esp]
sub cx, si
jmp 0x45f885
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x45f86c
add edi, esi
mov ebp, dword [ebx]
cmp dword [ebp + 4], 0
je 0x45f8ea
mov edx, dword [ebx + 0x30]
mov ecx, edi
add edx, dword [ebx + 0x64]
mov eax, ebp
add edx, dword [ebx + 0x6c]
call fcn.0045f578
add dword [ebx + 0x6c], eax
cmp dword [ebx + 0x6c], 3
jb 0x45f8d5
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 0x45f8ea
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x45f7e6
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x465b50
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
xor esi, esi
mov ecx, 0x4bacd0
mov eax, esi
mov edx, 8
mov ebx, eax
and ebx, 1
test bl, bl
je 0x465b72
shr eax, 1
xor eax, 0xedb88320
jmp 0x465b74
shr eax, 1
dec edx
jne 0x465b60
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x465b59
mov byte [0x4bb0d0], 1
pop esi
pop ebx
ret
Function at 0x465b90
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
cmp byte [0x4bb0d0], 0
jne 0x465ba7
call fcn.00465b50
mov eax, edi
dec eax
test eax, eax
jl 0x465bd0
inc eax
xor edx, edx
xor ecx, ecx
mov cl, byte [esi + edx]
xor ecx, ebx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4bacd0]
shr ebx, 8
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x465bb1
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x468428
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 0x468459
dec al
je 0x468495
dec al
je 0x4684d9
dec al
je 0x468544
jmp 0x4685ce
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x4685ce
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 0x468469
jmp 0x4685ce
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x4685ce
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 0x4684a5
jmp 0x4685ce
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x4685ce
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 0x468507
xor ebp, ebp
jmp 0x468518
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 0x468521
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 0x4684e9
jmp 0x4685ce
xor ebp, ebp
xor eax, eax
mov dword [esp + 4], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x4685ce
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 0x46859c
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.00465bd8
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 0x468558
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x46ca04
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 [0x416270]
call fcn.00404da8
xor eax, eax
push ebp
push 0x46cb48
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4b8154], 0
jne 0x46ca57
mov ecx, dword [0x4b8de4]
mov dl, 1
mov eax, dword [0x4079d8]
call fcn.0040cb40
call fcn.00403cf8
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00402e70
mov eax, ebx
call fcn.00404bf4
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x46cb58
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.00405ebc
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00404c04
test eax, eax
jle 0x46caef
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 0x46cae8
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.0040892c
test eax, eax
jne 0x46cae8
mov ebx, 0x15
jmp 0x46caf4
mov ebx, 0x10
jmp 0x46caf4
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 [0x4b8154]
call fcn.0046c95c
mov eax, dword [ebp - 8]
call fcn.0046c95c
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00405ed4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46cb4f
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.004043a0
lea eax, [ebp - 0x10]
mov edx, dword [0x416270]
call fcn.00404e78
ret
Function at 0x4819a4
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 0x4819ac
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x481b9e
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0xc]
mov edx, 0x481bb4
mov eax, esi
call fcn.0047f734
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.004043d0
lea ecx, [ebp - 0x10]
mov edx, 0x481bc8
mov eax, esi
call fcn.0047f734
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x28]
call fcn.004043d0
lea ecx, [ebp - 0x14]
mov edx, 0x481be0
mov eax, esi
call fcn.0047f734
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
call fcn.004043d0
lea ecx, [ebp - 0x18]
mov edx, 0x481bfc
mov eax, esi
call fcn.0047f734
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x14]
call fcn.004043d0
lea ecx, [ebp - 0x1c]
mov edx, 0x481c18
mov eax, esi
call fcn.0047f734
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x24]
call fcn.004043d0
lea ecx, [ebp - 0x24]
mov edx, 0x481c30
mov eax, esi
call fcn.0047f734
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.0040899c
mov eax, dword [ebp - 0x20]
or edx, 0xffffffff
call fcn.00408d7c
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x28]
mov edx, 0x481c48
mov eax, esi
call fcn.0047f734
mov eax, dword [ebp - 0x28]
call fcn.0047e84c
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x2c]
mov edx, 0x481c58
mov eax, esi
call fcn.0047f734
mov eax, dword [ebp - 0x2c]
call fcn.0047e84c
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x481c70
mov eax, esi
call fcn.0047f734
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
call fcn.00408d7c
inc eax
je 0x481b41
lea ecx, [ebp - 0x34]
mov edx, 0x481c70
mov eax, esi
call fcn.0047f734
mov eax, dword [ebp - 0x34]
call fcn.00408d40
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.0040a7a8
fstp qword [ebp - 0x3c]
wait
call fcn.0040ab0c
fadd qword [ebp - 0x3c]
fstp qword [ebx + 0x38]
wait
jmp 0x481b5c
lea ecx, [ebp - 0x40]
mov edx, 0x481c70
mov eax, esi
call fcn.0047f734
mov eax, dword [ebp - 0x40]
call fcn.0047e84c
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x44]
mov edx, 0x481c80
mov eax, esi
call fcn.0047f734
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 0x481ba5
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.004043a0
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.004043a0
ret
Function at 0x48de3c
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 0x48de96
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.0048de2c
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.0047d3bc
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.0047cfbc
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 0x48de9d
lea eax, [ebp - 4]
call fcn.0040437c
ret

Function at 0x49b354
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 0x49b3c5
push dword fs:[edx]
mov dword fs:[edx], esp
test esi, esi
jne 0x49b37f
mov eax, ebx
pop dword fs:[0]
add esp, 8
jmp 0x49b3d4
mov eax, esi
call fcn.0040484c
mov edi, eax
push edi
call sub.wsock32.dll_inet_addr
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x49b3bb
push edi
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x49b3a6
cmp word [eax + 0xa], 0
jg 0x49b3b4
mov eax, ebx
pop dword fs:[0]
add esp, 8
jmp 0x49b3d4
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 0x49b3d2
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x49b3dc
Capabilities:
Initialize winsock library

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

Function at 0x49b6b0
Capabilities:
Create raw socket

Disassembly:
push ebx
push esi
mov ebx, eax
cmp dword [ebx + 8], 0xffffffff
jne 0x49b6e1
cmp dword [ebx + 0x28], 0xffffffff
je 0x49b6e1
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 0x49b958
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 0x49ba78
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 [0x4b8cf4]
mov word [eax + 6], dx
inc word [0x4b8cf4]
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.0049b5b0
mov edx, dword [ebp - 8]
mov dword [edx + 8], eax
mov esi, dword [ebp - 8]
mov eax, esi
mov edx, ebx
call fcn.0049b560
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 0x49ba51
call sub.wsock32.dll_WSAGetLastError
neg eax
mov edx, dword [ebp - 4]
cmp word [edx + 0x72], 0
je 0x49ba51
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 0x49ba7f
cmp dword [ebp - 8], 0
je 0x49ba77
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 0x4a7b50
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov bl, byte [0x4a7b88]
push 0x10
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x4a7b66
or bl, 1
push 0x11
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x4a7b75
or bl, 4
push 0x12
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x4a7b84
or bl, 2
mov eax, ebx
pop ebx
ret

Function at 0x4a8218
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x4b92dc]
mov eax, dword [eax]
mov eax, dword [eax + 0x44]
test eax, eax
je 0x4a8245
mov edx, dword [0x4b92dc]
xor edx, edx
call fcn.00454c74
push 0
mov eax, dword [0x4b92dc]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_ShowWindow
ret
Function at 0x4a8d30
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 0x4a8dd1
mov al, byte [ebx]
add al, 0xd0
sub al, 0xa
jae 0x4a8d6c
mov eax, ebx
call fcn.0040484c
push eax
call sub.wsock32.dll_inet_addr
inc eax
je 0x4a8ddd
mov eax, esi
mov edx, ebx
call fcn.004043d0
jmp 0x4a8ddd
mov eax, ebx
call fcn.0040484c
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x4a8ddd
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, 0x4a8dec
call fcn.00409d04
jmp 0x4a8ddd
mov eax, esi
mov edx, 0x4a8e00
call fcn.004043d0
add esp, 0x20
pop edi
pop esi
pop ebx
ret

Function at 0x4a9ba8
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x4a9bb0
push ecx
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push ebp
push 0x4a9cf2
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x4174ec]
call fcn.00403478
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetCommandLineA_1
mov edx, dword [ebp - 4]
push edx
mov ecx, eax
mov edx, 0x4a9d00
mov eax, 0x4a9d20
call fcn.004193c4
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x4a9c5e
lea ecx, [ebp - 0x14]
xor edx, edx
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 8]
call fcn.004094f8
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00402b48
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0xc]
call fcn.004094f8
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 8]
call fcn.004088c0
mov eax, dword [ebp - 0x1c]
push eax
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0xc]
call fcn.004088c0
mov eax, dword [ebp - 0x20]
pop edx
call fcn.00404990
test eax, eax
jle 0x4a9c5e
xor edx, edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
push eax
lea eax, [esi + 4]
mov ecx, 1
mov edx, dword [0x4a9874]
call fcn.004057f8
add esp, 4
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x4a9cca
inc eax
mov dword [ebp - 0x10], eax
xor ebx, ebx
mov edx, dword [0x4a9844]
mov eax, 0xc
call fcn.004052ec
mov edx, dword [esi + 4]
mov dword [edx + ebx*4], eax
lea ecx, [ebp - 0x24]
mov edx, ebx
mov eax, dword [ebp - 4]
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x24]
mov eax, dword [esi + 4]
mov eax, dword [eax + ebx*4]
add eax, 8
call fcn.004043d0
inc ebx
dec dword [ebp - 0x10]
jne 0x4a9c90
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a9cf9
lea eax, [ebp - 0x24]
mov edx, 5
call fcn.004043a0
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004043a0
ret
Function at 0x4a9ddc
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4a9f41
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov ecx, 0x4a9f58
mov edx, ebx
call fcn.00404698
lea eax, [ebp - 8]
mov ecx, 0x4a9f68
mov edx, ebx
call fcn.00404698
mov eax, dword [ebp - 8]
call fcn.0040914c
test al, al
jne 0x4a9e33
xor ebx, ebx
jmp 0x4a9f1e
mov eax, dword [ebp - 8]
call fcn.004a9d78
mov eax, ebx
call fcn.0040914c
test al, al
je 0x4a9ef0
mov eax, ebx
call fcn.004a9d78
mov eax, ebx
call fcn.004a9f70
mov esi, eax
mov eax, dword [ebp - 8]
call fcn.004a9f70
cmp esi, eax
jne 0x4a9ea9
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 8]
call fcn.0045d694
lea eax, [ebp - 0x1c]
lea edx, [ebp - 0xc]
call fcn.0045d7f0
mov eax, dword [ebp - 0xc]
push eax
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.0045d694
lea eax, [ebp - 0x1c]
lea edx, [ebp - 0x20]
call fcn.0045d7f0
mov eax, dword [ebp - 0x20]
pop edx
call fcn.00408868
test al, al
je 0x4a9ea9
mov ebx, 0xa
jmp 0x4a9f1e
mov eax, dword [ebp - 4]
call fcn.0040914c
test al, al
je 0x4a9ed0
mov eax, dword [ebp - 4]
call fcn.004a9d78
mov eax, dword [ebp - 4]
call fcn.0040928c
test al, al
jne 0x4a9ed0
mov ebx, 0xfffffffe
jmp 0x4a9f1e
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.004092a4
test al, al
jne 0x4a9ef0
mov eax, ebx
call fcn.0040928c
test al, al
jne 0x4a9ef0
mov ebx, 0xfffffffd
jmp 0x4a9f1e
push 0
mov eax, ebx
call fcn.0040484c
push eax
mov eax, dword [ebp - 8]
call fcn.0040484c
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
je 0x4a9f13
mov ebx, 1
jmp 0x4a9f16
or ebx, 0xffffffff
mov eax, dword [ebp - 4]
call fcn.0040928c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a9f48
lea eax, [ebp - 0x20]
call fcn.0040437c
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004043a0
ret