joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45b680
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x45b6b1
mov ecx, dword [0x48e5c4]
mov dl, 1
mov eax, dword [0x459c70]
call fcn.0040cb84
call fcn.004042d8
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], ebx
inc ebx
jne 0x45b6de
mov ecx, dword [0x48e2cc]
mov dl, 1
mov eax, dword [0x459c70]
call fcn.0040cb84
call fcn.004042d8
xor eax, eax
push ebp
push 0x45b75f
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xffff
call fcn.00403d48
cmp byte [ebp + 8], 0
je 0x45b739
mov eax, dword [ebp + 0x14]
push eax
mov ax, word [ebp + 0x10]
push eax
push 0
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.0045b600
mov eax, dword [ebp - 4]
lea esi, [ebp - 0x18]
lea edi, [eax + 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0045b198
jmp 0x45b755
mov eax, dword [ebp + 0x14]
push eax
mov ax, word [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
push 0
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.0045ad48
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45b77c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x45b788
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x45b859
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], ebx
inc ebx
je 0x45b859
xor eax, eax
push ebp
push 0x45b83c
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xffff
call fcn.00403d48
cmp byte [ebp + 8], 0
je 0x45b818
mov eax, dword [ebp + 0x10]
push eax
mov ax, word [ebp + 0xc]
push eax
push 1
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.0045b600
mov eax, dword [ebp - 4]
lea esi, [ebp - 0x18]
lea edi, [eax + 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 4]
call fcn.0045b218
jmp 0x45b832
mov eax, dword [ebp + 0x10]
push eax
mov ax, word [ebp + 0xc]
push eax
push 0
push 1
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.0045ad48
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45b859
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x45ba3c
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffff0
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0045afec
xor eax, eax
push ebp
push 0x45bbad
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x45bb97
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
je 0x45ba87
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x45ba91
call fcn.00404384
jmp 0x45bbb4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00417024
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x1010]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov ecx, 0x1000
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ebx, eax
test ebx, ebx
jle 0x45bb8c
push 0
push ebx
lea eax, [ebp - 0x1010]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x45bb3f
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2733
je 0x45bb2c
lea eax, [ebp - 0x10]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00403d48
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
push ebp
call fcn.0045b9f4
pop ecx
mov eax, dword [ebp - 4]
mov dl, byte [0x45bbc0]
cmp dl, byte [eax + 0x28]
je 0x45bb93
call fcn.0040caa8
jmp 0x45bb93
mov eax, dword [ebp - 0xc]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00417044
jmp 0x45bb93
cmp ecx, ebx
jge 0x45bb5b
mov eax, dword [ebp - 0xc]
add eax, ecx
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00417044
jmp 0x45ba91
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00417024
cmp edx, dword [esp + 4]
jne 0x45bb7b
cmp eax, dword [esp]
pop edx
pop eax
jne 0x45ba91
push ebp
call fcn.0045b9f4
pop ecx
jmp 0x45bb93
push ebp
call fcn.0045b9f4
pop ecx
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45bbb4
mov eax, dword [ebp - 4]
call fcn.0045aff8
ret
mov al, byte [ebp - 5]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45bbdc
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0045afec
xor eax, eax
push ebp
push 0x45bc79
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x45bc16
call fcn.00404384
jmp 0x45bc80
push 0
push esi
push ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x45bc63
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x45bc63
lea eax, [ebp - 0xc]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00403d48
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45bc80
mov eax, dword [ebp - 4]
call fcn.0045aff8
ret
mov eax, dword [ebp - 8]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x45bcd0
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov ebx, ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0045afec
xor eax, eax
push ebp
push 0x45bd92
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
cmp ebx, 0xffffffff
jne 0x45bd1f
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x45bd1f
lea eax, [ebp - 8]
push eax
push 0x4004667f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_ioctlsocket
jmp 0x45bd7c
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x45bd2f
call fcn.00404384
jmp 0x45bd99
push 0
push ebx
push esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_recv
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x45bd7c
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x45bd7c
lea eax, [ebp - 0xc]
push eax
mov cl, 2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00403d48
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45bd99
mov eax, dword [ebp - 4]
call fcn.0045aff8
ret
mov eax, dword [ebp - 8]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x45d074
Capabilities:
Get socket status

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ecx, edx
mov ebx, eax
mov eax, ecx
mov esi, 0x3e8
cdq
idiv esi
mov dword [esp], eax
mov eax, ecx
mov ecx, 0x3e8
cdq
idiv ecx
imul eax, edx, 0x3e8
mov dword [esp + 4], eax
lea eax, [esp + 8]
call fcn.004578a4
lea edx, [esp + 8]
mov eax, dword [ebx + 4]
mov eax, dword [eax + 4]
call fcn.00457894
push esp
push 0
push 0
lea eax, [esp + 0x14]
push eax
push 0
call sub.wsock32.dll_select
test eax, eax
setg al
add esp, 0x10c
pop esi
pop ebx
ret
Function at 0x45dc48
Capabilities:
Create udp socket
Initialize winsock library
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
test dl, dl
je 0x45dc60
add esp, 0xfffffff0
call fcn.00403e70
mov byte [ebp - 1], dl
mov ebx, eax
xor eax, eax
push ebp
push 0x45dd8d
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, ebx
call fcn.0041b3a8
mov byte [ebx + 0x10210], 0
mov eax, 0x400
call fcn.00402764
mov dword [ebx + 0x10068], eax
push ebx
push 0x45e4cc
call fcn.0044cfd0
mov dword [ebx + 0x10060], eax
mov dword [ebx + 0x10208], 1
mov byte [ebx + 0x1006c], 0
push 0x45ddb4
push 0
push 0xffffffffffffffff
push 0
call sub.user32.dll_DestroyIcon
mov dword [ebx + 0x10248], eax
mov ecx, 0x45ddc0
mov dl, 8
mov eax, ebx
call fcn.0045e44c
lea eax, [ebx + 0x10070]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
test eax, eax
jne 0x45dd5d
xor eax, eax
push ebp
push 0x45dd47
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 2
push 2
call sub.wsock32.dll_socket
mov esi, eax
mov dword [ebx + 0x1024c], esi
inc esi
jne 0x45dd20
lea ecx, [ebp - 8]
mov dx, 0x2733
mov eax, ebx
call fcn.0045e298
push 4
push 0x45ddd4
push 0xff7f
push 0xffff
mov eax, dword [ebx + 0x1024c]
push eax
call sub.wsock32.dll_setsockopt
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45dd6b
lea ecx, [ebp - 0xc]
mov dx, 0x2733
mov eax, ebx
call fcn.0045e298
mov byte [ebx + 0x10210], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45dd94
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00404960
ret

Function at 0x45de28
Capabilities:
Create udp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x45defc
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x1024c]
test eax, eax
je 0x45de57
push eax
call sub.wsock32.dll_closesocket
call sub.wsock32.dll_WSACleanup
lea eax, [ebx + 0x10070]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
test eax, eax
jne 0x45dec3
xor eax, eax
push ebp
push 0x45dead
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 2
push 2
call sub.wsock32.dll_socket
mov esi, eax
mov dword [ebx + 0x1024c], esi
inc esi
jne 0x45dea3
lea ecx, [ebp - 8]
mov dx, 0x2733
mov eax, ebx
call fcn.0045e298
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45ded1
lea ecx, [ebp - 0xc]
mov dx, 0x2733
mov eax, ebx
call fcn.0045e298
mov eax, dword [ebp - 4]
mov dword [ebx + 0x1003c], eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0xc]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45df03
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00404960
ret
Function at 0x45e0fc
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov ebx, ecx
test ebx, ebx
js 0x45e114
shr ebx, 2
mov esi, dword [edx + ebx*4]
dec ebx
push esi
jns 0x45e10d
mov edx, esp
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor esi, esi
cmp dword [ebp + 8], 0
jne 0x45e1af
test esi, esi
jle 0x45e146
mov ecx, 0x45e258
mov dl, 1
mov eax, dword [0x407f28]
call fcn.0040cac8
call fcn.004042d8
jmp 0x45e1a5
cmp word [ebx + 0x10242], 0
jne 0x45e168
mov ecx, 0x45e258
mov dl, 1
mov eax, dword [0x407f28]
call fcn.0040cac8
call fcn.004042d8
jmp 0x45e1a5
mov byte [ebp - 9], 0
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
lea edx, [ebp - 9]
mov eax, dword [ebx + 0x10244]
call dword [ebx + 0x10240]
cmp byte [ebp - 9], 0
jne 0x45e1a4
mov ecx, 0x45e258
mov dl, 1
mov eax, dword [0x407f28]
call fcn.0040cac8
call fcn.004042d8
jmp 0x45e1a5
inc esi
cmp dword [ebp + 8], 0
je 0x45e12a
mov byte [ebx + 0x1006c], 0
mov eax, ebx
call fcn.0045df98
cmp dword [ebx + 0x10044], 0
jne 0x45e1dc
mov ecx, 0x45e270
mov dl, 1
mov eax, dword [0x45d818]
call fcn.0040cac8
call fcn.004042d8
mov ecx, 0x45e288
mov dl, 2
mov eax, ebx
call fcn.0045e44c
mov word [ebx + 0x10040], 2
mov ax, word [ebx + 0x10038]
push eax
call sub.wsock32.dll_htons
mov word [ebx + 0x10042], ax
mov eax, 0x10
push eax
lea eax, [ebx + 0x10040]
push eax
push 0
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebx + 0x1024c]
push eax
call sub.wsock32.dll_sendto
cmp word [ebx + 0x1022a], 0
je 0x45e242
mov edx, ebx
mov eax, dword [ebx + 0x1022c]
call dword [ebx + 0x10228]
mov esi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 4

Function at 0x45e540
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x45e614
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0xffff
lea eax, [ebx + 0x30]
push eax
mov eax, dword [ebx + 0x1024c]
push eax
call sub.wsock32.dll_recvfrom
mov dword [ebx + 0x10030], eax
cmp word [ebx + 0x10222], 0
je 0x45e5fe
lea eax, [ebp - 8]
push eax
xor eax, eax
mov al, byte [ebp - 0x14]
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x34], 0
xor eax, eax
mov al, byte [ebp - 0x13]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 0
xor eax, eax
mov al, byte [ebp - 0x12]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0
xor eax, eax
mov al, byte [ebp - 0x11]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0
lea edx, [ebp - 0x38]
mov ecx, 3
mov eax, 0x45e628
call fcn.0040a120
mov ax, word [ebp - 0x16]
push eax
call sub.wsock32.dll_ntohs
mov edx, dword [ebp - 8]
push edx
movzx eax, ax
push eax
mov ecx, dword [ebx + 0x10030]
mov edx, ebx
mov eax, dword [ebx + 0x10224]
call dword [ebx + 0x10220]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45e61b
lea eax, [ebp - 8]
call fcn.0040493c
ret
Function at 0x45f29c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x45f472
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x60]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [ebp - 4]
cmp word [eax], 0x5a4d
je 0x45f2f9
lea edx, [ebp - 0x14]
mov eax, 0x45f178
call fcn.00406830
mov ecx, dword [ebp - 0x14]
mov dl, 1
mov eax, dword [0x45f11c]
call fcn.0040cac8
call fcn.004042d8
mov eax, dword [ebp - 4]
mov esi, eax
lea edi, [ebx + 8]
mov ecx, 0x10
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 0x44]
mov esi, eax
mov ecx, eax
sub ecx, 0x40
mov edx, dword [ebp - 4]
add edx, 0x40
mov eax, dword [ebx + 0x64]
mov edi, dword [eax]
call dword [edi + 0x10]
mov eax, dword [ebp - 4]
add eax, esi
cmp dword [eax], 0x4550
je 0x45f34e
lea edx, [ebp - 0x18]
mov eax, 0x45f180
call fcn.00406830
mov ecx, dword [ebp - 0x18]
mov dl, 1
mov eax, dword [0x45f11c]
call fcn.0040cac8
call fcn.004042d8
add esi, 4
mov eax, dword [ebp - 4]
add eax, esi
push esi
mov esi, eax
lea edi, [ebx + 0x48]
movsd dword es:[edi], dword [esi]
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 esi
add esi, 0x14
mov edi, dword [ebp - 4]
add edi, esi
cmp word [edi], 0x10b
je 0x45f392
lea edx, [ebp - 0x1c]
mov eax, 0x45f188
call fcn.00406830
mov ecx, dword [ebp - 0x1c]
mov dl, 1
mov eax, dword [0x45f11c]
call fcn.0040cac8
call fcn.004042d8
movzx edx, word [ebx + 0x58]
lea eax, [ebx + 0x5c]
call fcn.004027a4
movzx ecx, word [ebx + 0x58]
mov edx, dword [ebx + 0x5c]
mov eax, edi
call fcn.00402a10
movzx eax, word [ebx + 0x58]
add esi, eax
mov edi, dword [ebp - 4]
add edi, esi
movzx eax, word [ebx + 0x4a]
shl eax, 3
lea eax, [eax + eax*4]
add eax, esi
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 0x14]
sub eax, dword [ebp - 0xc]
mov dword [ebx + 0x6c], eax
cmp dword [ebx + 0x6c], 0
jle 0x45f3f1
mov eax, dword [ebx + 0x6c]
call fcn.00402764
mov dword [ebx + 0x68], eax
mov edx, dword [ebx + 0x68]
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0xc]
mov ecx, dword [ebx + 0x6c]
call fcn.00402a10
movzx eax, word [ebx + 0x4a]
dec eax
test eax, eax
jl 0x45f42b
inc eax
mov dword [ebp - 0x10], eax
mov edi, dword [ebp - 4]
add edi, esi
push edi
mov eax, dword [edi + 0x14]
add eax, dword [ebp - 4]
push eax
mov ecx, ebx
mov dl, 1
mov eax, dword [0x45efa0]
call fcn.0045fb70
mov edx, eax
mov eax, dword [ebx + 0x60]
call fcn.00425c28
add esi, 0x28
dec dword [ebp - 0x10]
jne 0x45f3fe
mov esi, dword [edi + 0x14]
add esi, dword [edi + 0x10]
mov edi, dword [ebp - 8]
sub edi, esi
mov dword [ebx + 0x74], edi
test edi, edi
jle 0x45f457
mov eax, edi
call fcn.00402764
mov dword [ebx + 0x70], eax
mov edx, dword [ebx + 0x70]
mov eax, dword [ebp - 4]
add eax, esi
mov ecx, dword [ebx + 0x74]
call fcn.00402a10
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45f479
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00404960
ret
Function at 0x45fd54
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], edx
xor edx, edx
push ebp
push 0x45ff0c
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov edx, dword [edx + 0x30]
mov ecx, dword [edx + 4]
add ecx, eax
mov esi, ecx
mov edx, esi
movzx ebx, word [edx + 0xc]
movzx edx, word [edx + 0xe]
add ebx, edx
mov edx, ebx
mov ebx, dword [ebp + 8]
mov ebx, ecx
add ebx, 0x10
dec edx
test edx, edx
jl 0x45fef1
inc edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 8], 0
movzx eax, word [esi + 0xc]
cmp eax, dword [ebp - 8]
setle byte [ebp - 9]
mov eax, dword [ebp - 4]
sub eax, 1
jb 0x45fdcc
je 0x45fdf0
dec eax
je 0x45fe14
jmp 0x45fe43
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
mov ecx, dword [ebx]
mov al, byte [ebp - 9]
call fcn.0045fd14
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 8]
add eax, 0xfffffff8
call fcn.004049d4
jmp 0x45fe43
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
mov ecx, dword [ebx]
mov al, byte [ebp - 9]
call fcn.0045fd14
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp + 8]
add eax, 0xfffffff4
call fcn.004049d4
jmp 0x45fe43
cmp byte [ebp - 9], 0
jne 0x45fe3b
lea edx, [ebp - 0x20]
mov eax, 0x45f198
call fcn.00406830
mov ecx, dword [ebp - 0x20]
mov dl, 1
mov eax, dword [0x45f11c]
call fcn.0040cac8
call fcn.004042d8
mov eax, dword [ebp + 8]
mov edx, dword [ebx]
mov dword [eax - 0x10], edx
mov edx, dword [ebx + 4]
test edx, 0x80000000
jbe 0x45fe65
mov eax, dword [ebp + 8]
push eax
mov eax, edx
and eax, 0x7fffffff
mov edx, dword [ebp - 4]
inc edx
call fcn.0045fd54
pop ecx
jmp 0x45fee2
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 4]
mov ecx, eax
add ecx, edx
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0xc]
push edx
mov edx, dword [ebp + 8]
mov edx, dword [edx - 8]
push edx
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + 4]
push edx
mov edx, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
add eax, dword [edx]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
sub eax, dword [edx + 0x14]
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0x10]
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0x14]
mov eax, dword [0x45e734]
call fcn.0045eb24
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + 8]
mov dword [eax + 0xc], edx
mov edx, dword [esi]
mov dword [eax + 0x28], edx
movzx edx, word [esi + 8]
shl edx, 0x10
movzx ecx, word [esi + 0xa]
add edx, ecx
mov dword [eax + 0x20], edx
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x14]
mov edx, dword [edx + 0x78]
xchg edx, eax
call fcn.00425c28
add ebx, 8
inc dword [ebp - 8]
dec dword [ebp - 0x14]
jne 0x45fdb2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45ff13
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.00404960
ret
Function at 0x461f18
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x461f44
mov eax, dword [ebp - 4]
call fcn.00404dfc
push eax
call sub.user32.dll_GetKeyNameTextA
cmp eax, 0xffffffff
setne al
neg al
sbb eax, eax
mov dword [ebp - 8], eax
jmp 0x461f49
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
pop ecx
pop ecx
pop ebp
ret

Function at 0x462034
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x4620ab
cmp dword [ebp - 8], 0
je 0x4620a4
cmp dword [ebp - 0xc], 0
jbe 0x4620a4
mov eax, dword [ebp + 8]
push eax
push 0
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_OpenInputDesktop
push 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_SetClipboardData
test eax, eax
je 0x46209b
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
jne 0x462092
xor eax, eax
mov dword [ebp - 0x10], eax
jmp 0x4620b2
mov dword [ebp - 0x10], 0xfffffffc
jmp 0x4620b2
mov dword [ebp - 0x10], 0xfffffffd
jmp 0x4620b2
xor eax, eax
mov dword [ebp - 0x10], eax
jmp 0x4620b2
mov dword [ebp - 0x10], 0xfffffffe
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 8

Function at 0x463f9c
Capabilities:
Open clipboard

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x463fbc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.user32.dll_OpenClipboard
jmp 0x463fc8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.user32.dll_MessageBoxA
pop ecx
pop ecx
pop ebp
ret

Function at 0x46ef4c
Capabilities:
Get socket status

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov eax, ecx
mov esi, 0x3e8
cdq
idiv esi
mov dword [esp], eax
mov eax, ecx
mov ecx, 0x3e8
cdq
idiv ecx
imul eax, edx, 0x3e8
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 8], eax
cmp eax, 0x40
jge 0x46ef8a
mov dword [esp + eax*4 + 0xc], ebx
inc dword [esp + 8]
push esp
push 0
push 0
lea eax, [esp + 0x14]
push eax
push 0
call sub.wsock32.dll_select
add esp, 0x10c
pop esi
pop ebx
ret