joyce8/EMBER2024-capa huggingface dataset:
Function at 0x479264
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0047903c
test al, al
je 0x479315
xor edx, edx
push ebp
push 0x47930e
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
call sub.user32.dll_EnumClipboardFormats
mov ebx, eax
test bx, bx
je 0x4792e1
mov edx, ebx
mov eax, dword [0x421f70]
call fcn.00426558
test al, al
je 0x4792d1
movzx eax, bx
push eax
call sub.user32.dll_GetClipboardData
mov esi, eax
push 9
call sub.user32.dll_GetClipboardData
push eax
mov ecx, esi
mov edx, ebx
mov eax, edi
call fcn.00426468
call fcn.00404024
jmp 0x479315
movzx eax, bx
push eax
call sub.user32.dll_EnumClipboardFormats
mov ebx, eax
test bx, bx
jne 0x47929c
mov ecx, dword [0x540634]
mov dl, 1
mov eax, dword [0x408150]
call fcn.0040c698
call fcn.00403f78
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x479315
mov eax, dword [ebp - 4]
call fcn.0047900c
ret
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x47931c
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0047903c
test al, al
je 0x47937f
xor eax, eax
push ebp
push 0x479378
push dword fs:[eax]
mov dword fs:[eax], esp
push 2
call sub.user32.dll_GetClipboardData
mov ebx, eax
push 9
call sub.user32.dll_GetClipboardData
mov esi, eax
push esi
mov ecx, ebx
mov dx, 2
mov eax, edi
mov ebx, dword [eax]
call dword [ebx + 0x5c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47937f
mov eax, dword [ebp - 4]
call fcn.0047900c
ret
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x479388
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0047903c
test al, al
je 0x4793e8
xor edx, edx
push ebp
push 0x4793e1
push dword fs:[edx]
mov dword fs:[edx], esp
push 3
call sub.user32.dll_GetClipboardData
mov ebx, eax
push 9
call sub.user32.dll_GetClipboardData
push eax
mov ecx, ebx
mov dx, 3
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0x5c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4793e8
mov eax, dword [ebp - 4]
call fcn.0047900c
ret
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x479458
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0047903c
test al, al
je 0x4794d8
xor eax, eax
push ebp
push 0x4794d1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00478ff0
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
lea edx, [ebp - 0xa]
mov eax, ebx
call fcn.0042652c
mov eax, dword [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
call sub.user32.dll_SetClipboardData
cmp dword [ebp - 0x10], 0
je 0x4794bb
mov eax, dword [ebp - 0x10]
push eax
push 9
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4794d8
mov eax, dword [ebp - 4]
call fcn.0047900c
ret
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4794e0
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0047903c
test al, al
je 0x479560
xor eax, eax
push ebp
push 0x479559
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00478ff0
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
lea edx, [ebp - 0xa]
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0x60]
mov eax, dword [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
call sub.user32.dll_SetClipboardData
cmp dword [ebp - 0x10], 0
je 0x479543
mov eax, dword [ebp - 0x10]
push eax
push 9
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x479560
mov eax, dword [ebp - 4]
call fcn.0047900c
ret
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4795b4
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
call fcn.0047903c
test al, al
je 0x479608
xor eax, eax
push ebp
push 0x479601
push dword fs:[eax]
mov dword fs:[eax], esp
movzx eax, bx
push eax
call sub.user32.dll_GetClipboardData
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x479608
mov eax, dword [ebp - 4]
call fcn.0047900c
ret
mov eax, dword [ebp - 8]
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x479610
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
call fcn.0047903c
test al, al
je 0x479670
xor eax, eax
push ebp
push 0x479669
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00478ff0
push esi
movzx eax, bx
push eax
call sub.user32.dll_SetClipboardData
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x479670
mov eax, dword [ebp - 4]
call fcn.0047900c
ret
mov eax, dword [ebp - 8]
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x47a7cc
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x47a855
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x541d38
push 0x101
call sub.wsock32.dll_WSAStartup
mov ebx, eax
test ebx, ebx
je 0x47a83f
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.0040bd7c
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0xb
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], 0
mov eax, 0x47a86c
mov dword [ebp - 8], eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x18]
push eax
push 2
mov ecx, dword [0x540cac]
mov dl, 1
mov eax, dword [0x47984c]
call fcn.0040c6d4
call fcn.00403f78
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47a85c
lea eax, [ebp - 0x1c]
call fcn.004045b8
ret

Function at 0x47af38
Capabilities:
Connect socket

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, ebx
call fcn.0047ae5c
mov cl, 1
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.004039a8
cmp byte [ebx + 4], 0
jne 0x47af60
mov word [ebx + 0x1c], 2
jmp 0x47af66
mov word [ebx + 0x1c], 0x17
push 0x1c
lea eax, [ebx + 0x1c]
push eax
mov eax, dword [ebx + 8]
push eax
call sub.wsock32.dll_connect
mov edx, 0x47afb0
call fcn.0047a714
mov byte [ebx + 0x39], 0
test byte [ebx + 0x38], 0x10
jne 0x47afa2
cmp dword [ebx + 8], 0xffffffff
setne al
mov byte [ebx + 0xc], al
mov cl, 2
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.004039a8
pop esi
pop ebx
ret

Function at 0x47afd4
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0047acdc
xor eax, eax
push ebp
push 0x47b076
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.004045b8
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0xffffffff
jne 0x47b00d
call fcn.00404024
jmp 0x47b07d
mov dword [ebp - 8], 0x1c
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.wsock32.dll_getsockname
test eax, eax
jne 0x47b060
mov eax, dword [ebp - 4]
cmp byte [eax + 4], 0
jne 0x47b044
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x20]
push eax
call sub.Ntdll.dll_RtlIpv4AddressToStringA
jmp 0x47b051
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x1c]
push eax
call sub.Ntdll.dll_RtlIpv6AddressToStringA
mov eax, ebx
lea edx, [ebp - 0x54]
mov ecx, 0x30
call fcn.00404820
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47b07d
mov eax, dword [ebp - 4]
call fcn.0047ace8
ret
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47b154
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0xc], 0
je 0x47b184
mov ecx, dword [0x540ec8]
mov dl, 1
mov eax, dword [0x47984c]
call fcn.0040c698
call fcn.00403f78
mov eax, dword [ebp - 4]
cmp byte [eax + 4], 0
jne 0x47b1a0
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov edx, dword [ebp - 4]
mov dword [edx + 8], eax
jmp 0x47b1b1
push 0
push 1
push 0x17
call sub.wsock32.dll_socket
mov edx, dword [ebp - 4]
mov dword [edx + 8], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0xffffffff
jne 0x47b1d1
mov ecx, dword [0x5409c8]
mov dl, 1
mov eax, dword [0x47984c]
call fcn.0040c698
call fcn.00403f78
xor eax, eax
push ebp
push 0x47b253
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.004039a8
cmp byte [ebp + 8], 0
je 0x47b22e
mov eax, dword [ebp + 0x14]
push eax
mov ax, word [ebp + 0x10]
push eax
push 0
lea eax, [ebp - 0x20]
push eax
mov ecx, edi
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0047b084
mov eax, dword [ebp - 4]
lea esi, [ebp - 0x20]
lea edi, [eax + 0x1c]
mov ecx, 7
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0047aeb8
jmp 0x47b249
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, edi
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0047aa0c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x47b270
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x47b27c
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0xc], 0
je 0x47b2ac
mov ecx, dword [0x540a9c]
mov dl, 1
mov eax, dword [0x47984c]
call fcn.0040c698
call fcn.00403f78
mov eax, dword [ebp - 4]
cmp byte [eax + 4], 0
jne 0x47b2c8
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov edx, dword [ebp - 4]
mov dword [edx + 8], eax
jmp 0x47b2d9
push 0
push 1
push 0x17
call sub.wsock32.dll_socket
mov edx, dword [ebp - 4]
mov dword [edx + 8], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0xffffffff
jne 0x47b2f9
mov ecx, dword [0x5409c8]
mov dl, 1
mov eax, dword [0x47984c]
call fcn.0040c698
call fcn.00403f78
xor eax, eax
push ebp
push 0x47b376
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.004039a8
cmp byte [ebp + 8], 0
je 0x47b353
mov eax, dword [ebp + 0x10]
push eax
mov ax, word [ebp + 0xc]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
mov ecx, edi
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0047b084
mov eax, dword [ebp - 4]
lea esi, [ebp - 0x20]
lea edi, [eax + 0x1c]
mov ecx, 7
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 4]
call fcn.0047af38
jmp 0x47b36c
mov eax, dword [ebp + 0x10]
push eax
mov ax, word [ebp + 0xc]
push eax
push 0
push 1
mov ecx, edi
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0047aa0c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x47b393
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x47b558
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.0047acdc
xor eax, eax
push ebp
push 0x47b6ca
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
je 0x47b6b4
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0xffffffff
je 0x47b5a3
mov eax, dword [ebp - 4]
cmp byte [eax + 0xc], 0
jne 0x47b5ad
call fcn.00404024
jmp 0x47b6d1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.004196bc
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x1010]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
mov ecx, 0x1000
mov ebx, dword [eax]
call dword [ebx + 8]
mov ebx, eax
test ebx, ebx
jle 0x47b6a9
push 0
push ebx
lea eax, [ebp - 0x1010]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.wsock32.dll_send
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x47b65b
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2733
je 0x47b648
lea eax, [ebp - 0x10]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.004039a8
mov eax, dword [ebp - 4]
mov edx, dword [eax + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
push ebp
call fcn.0047b510
pop ecx
mov eax, dword [ebp - 4]
mov dl, byte [0x47b6dc]
cmp dl, byte [eax + 0x38]
je 0x47b6b0
call fcn.0040c574
jmp 0x47b6b0
mov eax, dword [ebp - 0xc]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.004196dc
jmp 0x47b6b0
cmp ecx, ebx
jge 0x47b677
mov eax, dword [ebp - 0xc]
add eax, ecx
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.004196dc
jmp 0x47b5ad
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.004196bc
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.004196f0
cmp edx, dword [esp + 4]
jne 0x47b698
cmp eax, dword [esp]
pop edx
pop eax
jne 0x47b5ad
push ebp
call fcn.0047b510
pop ecx
jmp 0x47b6b0
push ebp
call fcn.0047b510
pop ecx
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47b6d1
mov eax, dword [ebp - 4]
call fcn.0047ace8
ret
mov al, byte [ebp - 5]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47b6e0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x47b802
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0047acdc
xor eax, eax
push ebp
push 0x47b7e5
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 + 0xc], 0
jne 0x47b730
call fcn.00404024
jmp 0x47b7ec
push 0
push esi
push ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.wsock32.dll_send
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x47b7cf
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x47b7cf
lea eax, [ebp - 0xc]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.004039a8
mov eax, dword [ebp - 4]
mov edx, dword [eax + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x47b7cf
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040bd7c
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x47b81c
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x540cac]
mov dl, 1
mov eax, dword [0x47984c]
call fcn.0040c6d4
call fcn.00403f78
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47b7ec
mov eax, dword [ebp - 4]
call fcn.0047ace8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47b809
lea eax, [ebp - 0x28]
call fcn.004045b8
ret
Function at 0x47b868
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov ebx, ecx
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x47b9b2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0047acdc
xor eax, eax
push ebp
push 0x47b995
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
cmp ebx, 0xffffffff
jne 0x47b8cd
mov eax, dword [ebp - 4]
cmp byte [eax + 0xc], 0
je 0x47b8cd
lea eax, [ebp - 8]
push eax
push 0x4004667f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.wsock32.dll_ioctlsocket
jmp 0x47b97f
mov eax, dword [ebp - 4]
cmp byte [eax + 0xc], 0
jne 0x47b8e0
call fcn.00404024
jmp 0x47b99c
push 0
push ebx
push esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.wsock32.dll_recv
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x47b97f
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x47b97f
lea eax, [ebp - 0xc]
push eax
mov cl, 2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.004039a8
mov eax, dword [ebp - 4]
mov edx, dword [eax + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x47b97f
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040bd7c
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x47b9cc
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x540cac]
mov dl, 1
mov eax, dword [0x47984c]
call fcn.0040c6d4
call fcn.00403f78
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47b99c
mov eax, dword [ebp - 4]
call fcn.0047ace8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47b9b9
lea eax, [ebp - 0x28]
call fcn.004045b8
ret
Function at 0x47ffe0
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x48000e
mov eax, ebx
call fcn.00480a98
cmp dword [ebx + 0x3c], 0
je 0x480007
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x48007f
mov edx, dword [ebx + 0x1ac]
cmp dword [edx + 0x10], 0
je 0x480071
cmp dword [ebx + 8], 0
je 0x480030
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1ac]
call dword [edx]
test eax, eax
jne 0x480042
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x480071
cmp dword [ebx + 8], 0
je 0x480023
cmp eax, 3
je 0x480055
dec eax
jne 0x480023
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x480023
mov edx, dword [ebx + 0x138]
add dword [eax + 8], edx
jmp 0x480023
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x48009d
cmp dword [ebx + 0x10], 0xcc
je 0x48009d
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004800a8
pop ebx
ret

Function at 0x490480
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 [0x413bb4]
call fcn.00405278
xor eax, eax
push ebp
push 0x4905c4
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x505d40], 0
jne 0x4904d3
mov ecx, dword [0x540470]
mov dl, 1
mov eax, dword [0x408150]
call fcn.0040c698
call fcn.00403f78
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00403098
mov eax, ebx
call fcn.00404ea0
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x4905d4
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.004066f4
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00404eb0
test eax, eax
jle 0x49056b
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 0x490564
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00404854
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.00404820
mov eax, dword [ebp - 0x48]
pop edx
call fcn.00408ffc
test eax, eax
jne 0x490564
mov ebx, 0x15
jmp 0x490570
mov ebx, 0x10
jmp 0x490570
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 [0x505d40]
call fcn.004903d8
mov eax, dword [ebp - 8]
call fcn.004903d8
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.0040670c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4905cb
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.004045dc
lea eax, [ebp - 0x10]
mov edx, dword [0x413bb4]
call fcn.00405348
ret
Function at 0x492e3c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x492e8d
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x492e74
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x492e64
jmp 0x492e8d
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x492e75
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4a034c
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x38]
call fcn.004172f0
mov esi, eax
xor eax, eax
push ebp
push 0x4a03c6
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, dword [esi + 8]
dec ebx
cmp ebx, 0
jl 0x4a03aa
mov edx, ebx
mov eax, esi
call fcn.00416e84
test byte [eax + 0x48], 1
je 0x4a03a4
push 0
mov edx, ebx
mov eax, esi
call fcn.00416e84
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_TerminateThread
mov edx, ebx
mov eax, esi
call fcn.00416d74
dec ebx
cmp ebx, 0xffffffff
jne 0x4a0378
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a03cd
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x38]
call fcn.00417354
ret

Function at 0x4a0aa4
Capabilities:
Inspect section memory permissions

Disassembly:
xor edx, edx
test eax, 0x4000000
je 0x4a0ab3
or edx, 0x200
test eax, 0x20000000
je 0x4a0ae7
test eax, 0x40000000
je 0x4a0ad2
test eax, 0x80000000
je 0x4a0acd
or edx, 0x40
jmp 0x4a0b0e
or edx, 0x20
jmp 0x4a0b0e
test eax, 0x80000000
je 0x4a0ae1
or edx, 0x80
jmp 0x4a0b0e
or edx, 0x10
mov eax, edx
ret
test eax, 0x40000000
je 0x4a0aff
test eax, 0x80000000
je 0x4a0afa
or edx, 4
jmp 0x4a0b0e
or edx, 2
jmp 0x4a0b0e
test eax, 0x80000000
je 0x4a0b0b
or edx, 8
jmp 0x4a0b0e
or edx, 1
mov eax, edx
ret