joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45c208
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x4aa12c], 0
je 0x45c349
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x4a40b8]
mov edx, dword [edx]
xor al, byte [edx + 0xb8]
je 0x45c349
mov eax, dword [0x4aa130]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x4aa12c]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x45c318
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x4aa12c]
call fcn.004200c0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x45c310
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1e2], 0
je 0x45c310
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x4c]
test al, al
je 0x45c310
mov eax, dword [ebp - 0x14]
call fcn.004673fc
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45c310
push ebp
call fcn.0045c1c4
pop ecx
test al, al
jne 0x45c310
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbb
call fcn.0040439c
test al, al
je 0x45c310
mov byte [ebp - 1], 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbc
call fcn.0040439c
cmp byte [ebp - 1], 0
je 0x45c310
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x28]
call fcn.00408a64
test al, al
je 0x45c310
mov edx, dword [ebp - 0x14]
mov eax, dword [0x4aa130]
call fcn.0045b93c
inc edi
dec ebx
jne 0x45c26d
mov eax, dword [0x4aa130]
cmp dword [eax + 8], 0
jle 0x45c330
mov eax, dword [0x4aa130]
call fcn.0045b9f4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x45c349
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0045c028
pop ecx
test al, al
jne 0x45c349
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4640e8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffed8
mov ebx, ecx
mov edi, edx
mov esi, eax
call sub.user32.dll_GetMessagePos
call fcn.00408a4c
mov dword [esp + 8], eax
movsx eax, word [esp + 8]
mov dword [esp + 0xc], eax
movsx eax, word [esp + 0xa]
mov dword [esp + 0x10], eax
mov ecx, esp
lea edx, [esp + 0xc]
mov eax, esi
call fcn.0045e684
test ebx, ebx
jne 0x46413b
push 0
push 0
lea edx, [esp + 8]
xor ecx, ecx
mov eax, esi
call fcn.00463f7c
mov ebx, eax
test ebx, ebx
je 0x464226
cmp esi, ebx
je 0x464164
mov eax, dword [esp]
sub eax, dword [ebx + 0x40]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
sub eax, dword [ebx + 0x44]
mov dword [esp + 0x118], eax
jmp 0x464179
mov eax, dword [esp]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x118], eax
movzx eax, word [edi + 8]
mov dword [esp + 0x11c], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x124], eax
movzx eax, word [edi + 0xa]
cmp eax, 0x201
jge 0x4641b1
add eax, 0xffffff5f
sub eax, 2
jb 0x4641c9
dec eax
sub eax, 2
jb 0x4641dd
dec eax
sub eax, 2
jb 0x4641d3
jmp 0x4641e7
add eax, 0xfffffdff
sub eax, 2
jb 0x4641c9
dec eax
sub eax, 2
jb 0x4641dd
dec eax
sub eax, 2
jb 0x4641d3
jmp 0x4641e7
mov byte [esp + 0x120], 0
jmp 0x4641ef
mov byte [esp + 0x120], 2
jmp 0x4641ef
mov byte [esp + 0x120], 1
jmp 0x4641ef
mov byte [esp + 0x120], 0
lea eax, [esp + 0x14]
push eax
call sub.user32.dll_GetKeyboardState
lea eax, [esp + 0x14]
call fcn.00442c84
mov byte [esp + 0x121], al
lea eax, [esp + 0x114]
push eax
xor ecx, ecx
mov edx, 0xb04b
mov eax, ebx
call fcn.0045fe58
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x464228
xor eax, eax
add esp, 0x128
pop edi
pop esi
pop ebx
ret
Function at 0x474844
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00406000
xor eax, eax
push ebp
push 0x4749d9
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x4749a7
xor edx, edx
push ebp
push 0x4749a0
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.0040606c
mov eax, dword [ebp - 8]
test eax, eax
je 0x4748b3
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x4748b3
lea eax, [ebp - 8]
mov edx, dword [ebp - 8]
call fcn.00405590
test eax, eax
je 0x4748bc
sub eax, 4
mov eax, dword [eax]
add eax, eax
add eax, 2
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x474975
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GlobalLock
mov ebx, eax
xor edx, edx
push ebp
push 0x474964
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.0040606c
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x47491e
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x47491e
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0xc]
call fcn.00405590
test eax, eax
je 0x474927
sub eax, 4
mov eax, dword [eax]
mov esi, eax
add esi, esi
mov eax, dword [ebp - 4]
call fcn.004060a4
lea ecx, [esi + 2]
mov edx, ebx
call fcn.00403224
call sub.user32.dll_EmptyClipboard
mov eax, dword [ebp - 0x10]
push eax
push 0xd
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47496b
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x4a3cbc]
mov dl, 1
mov eax, dword [0x40a258]
call fcn.00410b88
call fcn.00404b80
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4749e0
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00406010
ret

Function at 0x476658
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00406000
xor eax, eax
push ebp
push 0x4766d6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004060a4
mov dword [ebp - 8], eax
cmp dword [ebx + 8], 0
jne 0x4766a1
mov eax, dword [ebx + 4]
call fcn.004060a4
push eax
push 0
call sub.advapi32.dll_RegisterEventSourceW
mov dword [ebx + 8], eax
push 0
lea eax, [ebp - 8]
push eax
push 0
push 1
push 0
mov eax, dword [ebp + 8]
push eax
movzx eax, word [ebp + 0xc]
push eax
push esi
mov eax, dword [ebx + 8]
push eax
call sub.advapi32.dll_ReportEventW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4766dd
lea eax, [ebp - 4]
call fcn.00406008
ret
Function at 0x4777d8
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x47797d
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
xor eax, eax
call fcn.00403440
cmp word [ebx + 0xa2], 0
je 0x477821
mov edx, ebx
mov eax, dword [ebx + 0xa4]
call dword [ebx + 0xa0]
mov eax, dword [ebx + 0x90]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jle 0x477835
lea esi, [ebp - 0xc]
jmp 0x477837
xor esi, esi
cmp dword [ebx + 0x80], 0
jne 0x477844
xor edi, edi
jmp 0x477851
mov eax, dword [ebx + 0x80]
call fcn.004060a4
mov edi, eax
mov eax, dword [ebx + 0x7c]
call fcn.004060a4
push eax
push edi
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.00476e3c
mov eax, dword [ebp - 0x14]
call fcn.004060a4
push eax
push esi
mov eax, dword [ebx + 0x74]
call fcn.004060a4
push eax
mov eax, dword [ebp - 4]
call fcn.004060a4
push eax
mov eax, ebx
call fcn.00476f88
push eax
mov eax, ebx
call fcn.00476f5c
push eax
mov eax, ebx
call fcn.00476f14
push eax
push 0xf01ff
lea edx, [ebp - 0x18]
mov eax, ebx
call fcn.00476cf4
mov eax, dword [ebp - 0x18]
call fcn.004060a4
push eax
mov eax, dword [ebx + 8]
call fcn.004060a4
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CreateServiceW
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
mov dword [ebx + 0x90], eax
cmp dword [ebp - 0x10], 0
jne 0x4778da
call fcn.00412ff0
xor edx, edx
push ebp
push 0x477953
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x477918
push dword fs:[edx]
mov dword fs:[edx], esp
cmp word [ebx + 0xaa], 0
je 0x47790e
mov edx, ebx
mov eax, dword [ebx + 0xac]
call dword [ebx + 0xa8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x47793c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47795a
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret

Function at 0x47798c
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp word [eax + 0xb2], 0
je 0x4779b8
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0xb4]
call dword [esi + 0xb0]
push 0xf01ff
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.004060a4
push eax
push ebx
call sub.advapi32.dll_OpenServiceW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4779dd
call fcn.00412ff0
xor eax, eax
push ebp
push 0x477a14
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_DeleteService
test eax, eax
jne 0x4779fd
call fcn.00412ff0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x477a1b
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
Function at 0x4794c8
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 0x479551
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4aa1dc
push 0x101
call sub.wsock32.dll_WSAStartup
mov ebx, eax
test ebx, ebx
je 0x47953b
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.0041010c
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0x11
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], 0
mov eax, 0x47956c
mov dword [ebp - 8], eax
mov byte [ebp - 4], 0x11
lea eax, [ebp - 0x18]
push eax
push 2
mov ecx, dword [0x4a4180]
mov dl, 1
mov eax, dword [0x4787ac]
call fcn.00410bc4
call fcn.00404b80
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x479558
lea eax, [ebp - 0x1c]
call fcn.00406008
ret

Function at 0x479bfc
Capabilities:
Set socket configuration

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, eax
xor esi, esi
xor edi, edi
movzx eax, byte [0x479c58]
cmp al, byte [ebx + 0x28]
je 0x479c20
mov esi, 0x401
mov eax, ebx
call fcn.00479d68
mov edi, eax
movzx eax, byte [ebx + 0x28]
push eax
push esi
push edi
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_WSAAsyncSelect
movzx eax, byte [0x479c58]
cmp al, byte [ebx + 0x28]
jne 0x479c50
xor eax, eax
mov dword [esp], eax
push esp
push 0x8004667e
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_ioctlsocket
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x479cf0
Capabilities:
Connect socket

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, ebx
call fcn.00479bfc
mov cl, 1
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.0040439c
push 0x10
lea eax, [ebx + 0x18]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_connect
mov edx, 0x479d58
call fcn.00479410
mov byte [ebx + 0x29], 0
test byte [ebx + 0x28], 0x10
jne 0x479d46
cmp dword [ebx + 4], 0xffffffff
setne al
mov byte [ebx + 8], al
mov cl, 2
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.0040439c
pop esi
pop ebx
ret

Function at 0x479d84
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov ebx, edx
xor eax, eax
push ebp
push 0x479e10
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
mov edx, ebx
mov ecx, 0
call fcn.00406244
mov eax, dword [ebp - 0xc]
call fcn.00405a18
push eax
call sub.wsock32.dll_gethostbyname
mov ebx, eax
lea eax, [ebp - 8]
xor ecx, ecx
mov edx, 4
call fcn.00403a84
test ebx, ebx
je 0x479df4
mov eax, ebx
mov edx, dword [eax + 0xc]
mov edx, dword [edx]
movzx ecx, byte [edx]
mov byte [ebp - 8], cl
movzx ecx, byte [edx + 1]
mov byte [ebp - 7], cl
movzx ecx, byte [edx + 2]
mov byte [ebp - 6], cl
movzx eax, byte [edx + 3]
mov byte [ebp - 5], al
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x479e17
lea eax, [ebp - 0xc]
call fcn.004053a4
ret
Function at 0x479f74
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 0x479fa5
mov ecx, dword [0x4a4308]
mov dl, 1
mov eax, dword [0x4787ac]
call fcn.00410b88
call fcn.00404b80
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 0x479fd2
mov ecx, dword [0x4a3fb8]
mov dl, 1
mov eax, dword [0x4787ac]
call fcn.00410b88
call fcn.00404b80
xor eax, eax
push ebp
push 0x47a053
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.0040439c
cmp byte [ebp + 8], 0
je 0x47a02d
mov eax, dword [ebp + 0x14]
push eax
movzx eax, 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.00479e98
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.00479c5c
jmp 0x47a049
mov eax, dword [ebp + 0x14]
push eax
movzx eax, 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.00479720
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x47a070
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x47a2e8
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
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00479a84
xor eax, eax
push ebp
push 0x47a45b
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 0x47a445
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
je 0x47a334
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x47a33e
call fcn.00404c74
jmp 0x47a462
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00422f30
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 0x47a43a
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 edi, eax
cmp edi, 0xffffffff
jne 0x47a3ed
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2733
je 0x47a3da
lea eax, [ebp - 0x10]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.0040439c
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.0047a2a0
pop ecx
mov eax, dword [ebp - 4]
movzx edx, byte [0x47a470]
cmp dl, byte [eax + 0x28]
je 0x47a441
call fcn.00410ab8
jmp 0x47a441
mov eax, dword [ebp - 0xc]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00422f50
jmp 0x47a441
cmp edi, ebx
jge 0x47a409
mov eax, dword [ebp - 0xc]
add eax, edi
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00422f50
jmp 0x47a33e
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.00422f30
cmp edx, dword [esp + 4]
jne 0x47a429
cmp eax, dword [esp]
pop edx
pop eax
jne 0x47a33e
push ebp
call fcn.0047a2a0
pop ecx
jmp 0x47a441
push ebp
call fcn.0047a2a0
pop ecx
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47a462
mov eax, dword [ebp - 4]
call fcn.00479a8c
ret
movzx eax, byte [ebp - 5]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47a474
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 0x47a596
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00479a84
xor eax, eax
push ebp
push 0x47a579
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 0x47a4c4
call fcn.00404c74
jmp 0x47a580
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 0x47a563
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x47a563
lea eax, [ebp - 0xc]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.0040439c
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x47a563
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0041010c
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0x11
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x47a5b4
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0x11
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x4a4180]
mov dl, 1
mov eax, dword [0x4787ac]
call fcn.00410bc4
call fcn.00404b80
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47a580
mov eax, dword [ebp - 4]
call fcn.00479a8c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47a59d
lea eax, [ebp - 0x28]
call fcn.00406008
ret
Function at 0x47a604
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov ebx, ecx
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x47a775
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00479a84
xor eax, eax
push ebp
push 0x47a758
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
cmp ebx, 0xffffffff
jne 0x47a669
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x47a669
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 0x47a742
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x47a67c
call fcn.00404c74
jmp 0x47a75f
lea eax, [ebp - 0x10]
push eax
push 0x4004667f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_ioctlsocket
test eax, eax
jne 0x47a6a3
cmp dword [ebp - 0x10], 0
jle 0x47a6a3
cmp ebx, dword [ebp - 0x10]
jle 0x47a6a3
mov ebx, dword [ebp - 0x10]
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 0x47a742
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x47a742
lea eax, [ebp - 0xc]
push eax
mov cl, 2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.0040439c
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x47a742
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0xc]
call fcn.0041010c
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0x11
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0
mov eax, 0x47a794
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0x11
lea eax, [ebp - 0x28]
push eax
push 2
mov ecx, dword [0x4a4180]
mov dl, 1
mov eax, dword [0x4787ac]
call fcn.00410bc4
call fcn.00404b80
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47a75f
mov eax, dword [ebp - 4]
call fcn.00479a8c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47a77c
lea eax, [ebp - 0x2c]
call fcn.00406008
ret
Function at 0x47c204
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x18], ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x14]
mov edx, dword [0x409a38]
call fcn.00406cfc
xor eax, eax
push ebp
push 0x47c3c5
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4a2cf0], 0
jne 0x47c258
mov ecx, dword [0x4a3c5c]
mov dl, 1
mov eax, dword [0x40a258]
call fcn.00410b88
call fcn.00404b80
lea eax, [ebp - 0x2c]
xor ecx, ecx
mov edx, 0x10
call fcn.00403a84
mov eax, ebx
call fcn.00405e68
mov dword [ebp - 0x28], eax
push esi
mov esi, 0x47c3d4
lea edi, [ebp - 0x3c]
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
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x10]
call fcn.0040809c
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, ebx
test eax, eax
je 0x47c29f
sub eax, 4
mov eax, dword [eax]
shr eax, 1
test eax, eax
jle 0x47c36b
mov dword [ebp - 0x1c], 0x20
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x5c]
push eax
call sub.kernel32.dll_GetComputerNameW
test eax, eax
je 0x47c357
lea eax, [ebp - 4]
lea edx, [ebp - 0x5c]
mov ecx, 0x10
call fcn.00406200
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00406268
mov eax, dword [ebp - 4]
test eax, eax
je 0x47c2fa
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x47c2fa
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.00405590
mov ebx, eax
test ebx, ebx
je 0x47c305
sub ebx, 4
mov ebx, dword [ebx]
mov eax, dword [ebp - 8]
test eax, eax
je 0x47c322
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x47c322
lea eax, [ebp - 8]
mov edx, dword [ebp - 8]
call fcn.00405590
mov edi, eax
test edi, edi
je 0x47c32d
sub edi, 4
mov edi, dword [edi]
push edi
mov eax, dword [ebp - 8]
call fcn.004060a4
push eax
push ebx
mov eax, dword [ebp - 4]
call fcn.004060a4
push eax
push 1
push 0x400
call sub.kernel32.dll_CompareStringW_1
sub eax, 2
test eax, eax
sete al
jmp 0x47c359
xor eax, eax
test al, al
je 0x47c364
mov ebx, 0x15
jmp 0x47c370
mov ebx, 0x10
jmp 0x47c370
mov ebx, 0x15
lea eax, [ebp - 0x14]
push eax
push 1
lea eax, [ebp - 0x2c]
push eax
push ebx
push 0
push esi
call dword [0x4a2cf0]
call fcn.0047c070
mov eax, dword [ebp - 0xc]
call fcn.0047c070
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x10]
call fcn.004080b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47c3cc
lea eax, [ebp - 0x14]
mov edx, dword [0x409a38]
call fcn.00406dd4
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406010
ret