joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5330e0
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 0x53313a
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.005330d0
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.0048d03c
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.0048cc3c
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 0x533141
lea eax, [ebp - 4]
call fcn.0040481c
ret

Function at 0x5378f0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe70
push ebx
push esi
test dl, dl
je 0x537907
add esp, 0xfffffff0
call fcn.00403c6c
mov ebx, edx
mov esi, eax
mov byte [esi + 0x40], 0
xor eax, eax
mov dword [esi + 8], eax
lea eax, [esi + 0x28]
xor ecx, ecx
mov edx, 8
call fcn.00403198
mov dword [esi + 0x20], 0x2000
mov dword [esi + 0x24], 0x2000
mov dword [esi + 4], 0xffffffff
xor eax, eax
mov dword [esi + 0x6c], eax
mov dword [esi + 0x30], 0xffffffff
mov byte [esi + 0x41], 0
mov dword [esi + 0x58], 0xffffffff
lea eax, [ebp - 0x18e]
push eax
mov dl, 2
mov al, 2
call fcn.00407b50
push eax
call sub.ws2_32.dll_WSAStartup_1
test eax, eax
je 0x53797f
mov ecx, 0x5379a4
mov dl, 1
mov eax, dword [0x537798]
call fcn.0040d110
call fcn.00404198
mov eax, esi
test bl, bl
je 0x537994
call fcn.00403cc4
pop dword fs:[0]
add esp, 0xc
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x537c08
Capabilities:
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffe8
mov esi, eax
xor ebx, ebx
push 1
push 0
push 0
push 0
push 2
push 2
call sub.ws2_32.dll_WSASocketA
mov edi, eax
mov dword [esi + 4], edi
cmp edi, 0xffffffff
je 0x537ce5
mov byte [esp], 1
push 1
lea eax, [esp + 4]
push eax
push 4
push 0xffff
mov eax, dword [esi + 4]
push eax
call sub.ws2_32.dll_setsockopt
test eax, eax
jne 0x537ce5
push 4
lea eax, [esi + 0x41]
push eax
push 0x20
push 0xffff
mov eax, dword [esi + 4]
push eax
call sub.ws2_32.dll_setsockopt
test eax, eax
jne 0x537ce5
mov word [esp + 8], 2
mov ax, word [esi + 8]
push eax
call sub.ws2_32.dll_htons
mov word [esp + 0xa], ax
xor eax, eax
mov dword [esp + 0xc], eax
push 0x10
lea eax, [esp + 0xc]
push eax
mov eax, dword [esi + 4]
push eax
call sub.ws2_32.dll_bind
inc eax
jne 0x537ca6
mov eax, esi
call fcn.00537bd8
jmp 0x537ce5
mov dword [esp + 4], 0x10
lea eax, [esp + 4]
push eax
lea eax, [esp + 0xc]
push eax
mov eax, dword [esi + 4]
push eax
call sub.ws2_32.dll_getsockname
mov ax, word [esp + 0xa]
push eax
call sub.ws2_32.dll_ntohs
movzx eax, ax
mov dword [esi + 8], eax
cmp byte [esi + 0x44], 0
je 0x537ce3
mov eax, esi
call fcn.005380f0
test al, al
je 0x537ce5
mov bl, 1
mov eax, ebx
add esp, 0x18
pop edi
pop esi
pop ebx
ret
Function at 0x537d08
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
call fcn.00404cdc
xor eax, eax
push ebp
push 0x537e2b
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov word [ebp - 0x20], 2
mov eax, dword [ebp + 0xc]
call fcn.00404cec
push eax
call sub.ws2_32.dll_inet_addr_1
mov dword [ebp - 0x1c], eax
push esi
call sub.ws2_32.dll_htons
mov word [ebp - 0x1e], ax
mov dword [ebp - 0xc], 0x10
cmp byte [ebx + 0x44], 0
je 0x537d7c
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp + 0xc]
push eax
push esi
mov ecx, edi
mov edx, dword [ebx + 4]
mov eax, ebx
call fcn.00538758
mov edi, eax
jmp 0x537d96
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
push edi
mov eax, dword [ebx + 4]
push eax
call sub.ws2_32.dll_recvfrom
mov edi, eax
lea esi, [ebx + 0x28]
push dword [ebp - 0x1c]
call sub.ws2_32.dll_inet_ntoa_1
mov edx, eax
mov eax, esi
call fcn.00404a24
mov ax, word [ebp - 0x1e]
push eax
call sub.ws2_32.dll_ntohs
movzx eax, ax
mov dword [esi + 4], eax
inc edi
jne 0x537e11
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2733
je 0x537e15
cmp word [ebx + 0x12], 0
je 0x537de3
lea eax, [ebp - 0x10]
push eax
mov cl, 2
mov edx, ebx
mov eax, dword [ebx + 0x14]
call dword [ebx + 0x10]
cmp dword [ebp - 0x10], 0
je 0x537e15
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0
lea eax, [ebp - 0x28]
push eax
push 0
mov ecx, 0x537e48
mov dl, 1
mov eax, dword [0x537798]
call fcn.0040d14c
call fcn.00404198
jmp 0x537e15
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x537e32
lea eax, [ebp + 0xc]
call fcn.0040481c
ret
Function at 0x537e64
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
call fcn.00404cdc
xor eax, eax
push ebp
push 0x537f78
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov word [ebp - 0x20], 2
push edi
call sub.ws2_32.dll_htons
mov word [ebp - 0x1e], ax
mov eax, dword [ebp + 0xc]
call fcn.00404cec
push eax
call sub.ws2_32.dll_inet_addr_1
mov esi, eax
mov dword [ebp - 0x1c], esi
cmp esi, 0xffffffff
jne 0x537ed0
mov ecx, 0x537f94
mov dl, 1
mov eax, dword [0x537798]
call fcn.0040d110
call fcn.00404198
cmp byte [ebx + 0x44], 0
je 0x537eee
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push edi
mov ecx, dword [ebp - 4]
mov edx, dword [ebx + 4]
mov eax, ebx
call fcn.005385f8
jmp 0x537f07
push 0x10
lea eax, [ebp - 0x20]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.ws2_32.dll_sendto
inc eax
jne 0x537f5e
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2733
je 0x537f62
cmp word [ebx + 0x12], 0
je 0x537f30
lea eax, [ebp - 0x10]
push eax
mov cl, 1
mov edx, ebx
mov eax, dword [ebx + 0x14]
call dword [ebx + 0x10]
cmp dword [ebp - 0x10], 0
je 0x537f62
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0
lea eax, [ebp - 0x28]
push eax
push 0
mov ecx, 0x537fb0
mov dl, 1
mov eax, dword [0x537798]
call fcn.0040d14c
call fcn.00404198
jmp 0x537f62
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x537f7f
lea eax, [ebp + 0xc]
call fcn.0040481c
ret

Function at 0x537fd8
Capabilities:
Set socket configuration

Disassembly:
push ebx
add esp, 0xfffffff4
mov dword [esp], edx
mov ebx, eax
mov eax, dword [ebx + 0x24]
cmp eax, dword [esp]
je 0x538037
push 4
lea eax, [esp + 4]
push eax
push 0x1002
push 0xffff
mov eax, dword [ebx + 4]
push eax
call sub.ws2_32.dll_setsockopt
inc eax
jne 0x538031
call sub.kernel32.dll_GetLastError_1
mov dword [esp + 4], eax
mov byte [esp + 8], 0
lea eax, [esp + 4]
push eax
push 0
mov ecx, 0x538044
mov dl, 1
mov eax, dword [0x537798]
call fcn.0040d14c
call fcn.00404198
mov eax, dword [esp]
mov dword [ebx + 0x24], eax
add esp, 0xc
pop ebx
ret

Function at 0x538064
Capabilities:
Set socket configuration

Disassembly:
push ebx
add esp, 0xfffffff4
mov dword [esp], edx
mov ebx, eax
mov eax, dword [ebx + 0x20]
cmp eax, dword [esp]
je 0x5380c3
push 4
lea eax, [esp + 4]
push eax
push 0x1001
push 0xffff
mov eax, dword [ebx + 4]
push eax
call sub.ws2_32.dll_setsockopt
inc eax
jne 0x5380bd
call sub.kernel32.dll_GetLastError_1
mov dword [esp + 4], eax
mov byte [esp + 8], 0
lea eax, [esp + 4]
push eax
push 0
mov ecx, 0x5380d0
mov dl, 1
mov eax, dword [0x537798]
call fcn.0040d14c
call fcn.00404198
mov eax, dword [esp]
mov dword [ebx + 0x20], eax
add esp, 0xc
pop ebx
ret
Function at 0x5380f0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor edx, edx
mov dword [ebp - 0x1c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x538236
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebx + 0x58], 0xffffffff
jne 0x538120
push 0
push 1
push 2
call sub.ws2_32.dll_socket
mov dword [ebx + 0x58], eax
mov word [ebp - 0x10], 2
mov ax, word [ebx + 0x4c]
push eax
call sub.ws2_32.dll_htons
mov word [ebp - 0xe], ax
mov eax, dword [ebx + 0x48]
call fcn.00404cec
push eax
call sub.ws2_32.dll_inet_addr_1
mov dword [ebp - 0xc], eax
push 0x10
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebx + 0x58]
push eax
call sub.ws2_32.dll_connect
inc eax
jne 0x53817f
call sub.ws2_32.dll_WSAGetLastError
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0
lea eax, [ebp - 0x18]
push eax
push 0
mov ecx, 0x53824c
mov dl, 1
mov eax, dword [0x4081b8]
call fcn.0040d14c
call fcn.00404198
lea edx, [ebp - 0x1c]
mov eax, dword [ebx + 0x50]
call fcn.00409110
cmp dword [ebp - 0x1c], 0
je 0x53819e
mov cl, 1
mov edx, dword [ebx + 0x58]
mov eax, ebx
call fcn.005382c4
jmp 0x5381aa
xor ecx, ecx
mov edx, dword [ebx + 0x58]
mov eax, ebx
call fcn.005382c4
test al, al
jne 0x5381df
mov eax, dword [ebx + 0x58]
push eax
call sub.ws2_32.dll_closesocket
call sub.ws2_32.dll_WSAGetLastError
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0
lea eax, [ebp - 0x18]
push eax
push 0
mov ecx, 0x538278
mov dl, 1
mov eax, dword [0x4081b8]
call fcn.0040d14c
call fcn.00404198
mov edx, dword [ebx + 0x58]
mov eax, ebx
call fcn.00538520
test al, al
jne 0x53821e
mov eax, dword [ebx + 0x58]
push eax
call sub.ws2_32.dll_closesocket
call sub.ws2_32.dll_WSAGetLastError
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0
lea eax, [ebp - 0x18]
push eax
push 0
mov ecx, 0x5382a4
mov dl, 1
mov eax, dword [0x4081b8]
call fcn.0040d14c
call fcn.00404198
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53823d
lea eax, [ebp - 0x1c]
call fcn.0040481c
ret
Function at 0x5382c4
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x53850f
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
sub cl, 1
jb 0x5382fa
je 0x538372
jmp 0x5384f4
mov byte [ebp - 0x110], 5
mov byte [ebp - 0x10f], 1
mov byte [ebp - 0x10e], 0
push 0
push 3
lea eax, [ebp - 0x110]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.ws2_32.dll_send
inc eax
je 0x5384f4
lea eax, [ebp - 0x110]
xor ecx, ecx
mov edx, pe_nt_image_headers32
call fcn.00403198
push 0
push pe_nt_image_headers32
lea eax, [ebp - 0x110]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.ws2_32.dll_recv
cmp eax, 2
jl 0x5384f4
cmp byte [ebp - 0x10f], 0
jne 0x5384f4
mov byte [ebp - 5], 1
jmp 0x5384f4
mov byte [ebp - 0x110], 5
mov byte [ebp - 0x10f], 2
mov byte [ebp - 0x10e], 0
mov byte [ebp - 0x10d], 2
push 0
push 4
lea eax, [ebp - 0x110]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.ws2_32.dll_send
inc eax
je 0x5384f4
lea eax, [ebp - 0x110]
xor ecx, ecx
mov edx, pe_nt_image_headers32
call fcn.00403198
push 0
push pe_nt_image_headers32
lea eax, [ebp - 0x110]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.ws2_32.dll_recv
cmp eax, 2
jl 0x5384f4
cmp byte [ebp - 0x10f], 2
jne 0x5384f4
lea eax, [ebp - 0xc]
mov edx, dword [ebx + 0x50]
call fcn.004048b4
lea eax, [ebp - 0x10]
mov edx, dword [ebx + 0x54]
call fcn.004048b4
lea eax, [ebp - 0x110]
xor ecx, ecx
mov edx, pe_nt_image_headers32
call fcn.00403198
mov byte [ebp - 0x110], 1
mov eax, dword [ebp - 0xc]
call fcn.00404aec
mov ebx, eax
mov byte [ebp - 0x10f], bl
mov esi, ebx
and esi, 0xff
dec esi
test esi, esi
jl 0x53844b
inc esi
xor ebx, ebx
mov eax, dword [ebp - 0xc]
mov al, byte [eax + ebx]
lea edx, [ebx + 2]
mov byte [ebp + edx - 0x110], al
inc ebx
dec esi
jne 0x538437
mov eax, dword [ebp - 0x10]
call fcn.00404aec
mov ebx, eax
mov eax, dword [ebp - 0xc]
call fcn.00404aec
add eax, 2
mov byte [ebp + eax - 0x110], bl
mov eax, dword [ebp - 0xc]
call fcn.00404aec
add eax, 2
movzx esi, byte [ebp + eax - 0x110]
dec esi
test esi, esi
jl 0x5384a0
inc esi
xor ebx, ebx
mov eax, dword [ebp - 0xc]
call fcn.00404aec
add eax, 3
add eax, ebx
mov edx, dword [ebp - 0x10]
mov dl, byte [edx + ebx]
mov byte [ebp + eax - 0x110], dl
inc ebx
dec esi
jne 0x538482
push 0
mov eax, dword [ebp - 0xc]
call fcn.00404aec
mov ebx, eax
mov eax, dword [ebp - 0x10]
call fcn.00404aec
add ebx, eax
add ebx, 3
push ebx
lea eax, [ebp - 0x110]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.ws2_32.dll_send
inc eax
je 0x5384f4
push 0
push pe_nt_image_headers32
lea eax, [ebp - 0x110]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.ws2_32.dll_recv
inc eax
je 0x5384f4
cmp byte [ebp - 0x10f], 0
jne 0x5384f4
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x538516
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00404840
ret
Function at 0x538520
Capabilities:
Get local ipv4 addresses
Get socket information
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffee4
mov esi, edx
mov edi, eax
lea ebp, [esp + 0x1a]
xor ebx, ebx
mov dword [esp], 0x10
push esp
lea eax, [esp + 0xe]
push eax
mov eax, dword [edi + 4]
push eax
call sub.ws2_32.dll_getsockname
mov byte [ebp], 5
mov byte [ebp + 1], 3
mov byte [ebp + 2], 0
mov byte [ebp + 3], 1
lea edx, [esp + 0xe]
lea eax, [ebp + 4]
mov ecx, 4
call fcn.00407b84
lea edx, [esp + 0xc]
lea eax, [ebp + 8]
mov ecx, 2
call fcn.00407b84
push 0
push 0xa
push ebp
push esi
call sub.ws2_32.dll_send
mov eax, ebp
xor ecx, ecx
mov edx, pe_nt_image_headers32
call fcn.00403198
push 0
push pe_nt_image_headers32
push ebp
push esi
call sub.ws2_32.dll_recv
cmp byte [ebp], 5
je 0x5385af
cmp byte [ebp + 1], 0
jne 0x5385e9
lea edx, [ebp + 4]
lea eax, [esp + 4]
mov ecx, 4
call fcn.00407b84
lea edx, [ebp + 8]
lea eax, [esp + 8]
mov ecx, 2
call fcn.00407b84
mov word [edi + 0x5c], 2
mov ax, word [esp + 8]
mov word [edi + 0x5e], ax
mov eax, dword [esp + 4]
mov dword [edi + 0x60], eax
mov bl, 1
mov eax, ebx
add esp, 0x11c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x5385f8
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbe4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
call fcn.00404cdc
xor eax, eax
push ebp
push 0x538723
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [ebp - 0x414], 2
mov ax, word [ebp + 8]
push eax
call sub.ws2_32.dll_htons
mov word [ebp - 0x412], ax
mov eax, dword [ebp + 0xc]
call fcn.00404cec
push eax
call sub.ws2_32.dll_inet_addr_1
mov dword [ebp - 0x410], eax
lea eax, [ebp - 0x404]
xor ecx, ecx
mov edx, 0x3ff
call fcn.00403198
mov byte [ebp - 0x404], 0
mov byte [ebp - 0x403], 0
mov byte [ebp - 0x402], 0
mov byte [ebp - 0x401], 1
lea edx, [ebp - 0x410]
lea eax, [ebp - 0x400]
mov ecx, 4
call fcn.00407b84
lea edx, [ebp - 0x412]
lea eax, [ebp - 0x3fc]
mov ecx, 2
call fcn.00407b84
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x3fa]
mov ecx, esi
call fcn.00407b84
push 0x10
lea eax, [ebx + 0x5c]
push eax
push 0
add esi, 0xa
push esi
lea eax, [ebp - 0x404]
push eax
push edi
call sub.ws2_32.dll_sendto
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x53870d
call sub.ws2_32.dll_WSAGetLastError
mov dword [ebp - 0x41c], eax
mov byte [ebp - 0x418], 0
lea eax, [ebp - 0x41c]
push eax
push 0
mov ecx, 0x538740
mov dl, 1
mov eax, dword [0x4081b8]
call fcn.0040d14c
call fcn.00404198
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53872a
lea eax, [ebp + 0xc]
call fcn.0040481c
ret
Function at 0x538758
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbe4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
call fcn.00404cdc
xor eax, eax
push ebp
push 0x5388e0
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x404]
xor ecx, ecx
mov edx, 0x400
call fcn.00403198
mov word [ebp - 0x414], 2
mov ax, word [ebp + 8]
push eax
call sub.ws2_32.dll_htons
mov word [ebp - 0x412], ax
mov eax, dword [ebp + 0xc]
call fcn.00404cec
push eax
call sub.ws2_32.dll_inet_addr_1
mov dword [ebp - 0x410], eax
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x414]
push eax
push 0
push ebx
lea eax, [ebp - 0x404]
push eax
push esi
call sub.ws2_32.dll_recvfrom
mov esi, eax
cmp esi, 0xffffffff
jne 0x53881b
call sub.ws2_32.dll_WSAGetLastError
mov dword [ebp - 0x41c], eax
mov byte [ebp - 0x418], 0
lea eax, [ebp - 0x41c]
push eax
push 0
mov ecx, 0x5388fc
mov dl, 1
mov eax, dword [0x4081b8]
call fcn.0040d14c
call fcn.00404198
cmp byte [ebp - 0x404], 0
je 0x538838
mov ecx, 0x23c
mov edx, 0x53891c
mov eax, 0x538958
call fcn.00404778
cmp byte [ebp - 0x403], 0
je 0x538855
mov ecx, 0x23d
mov edx, 0x53891c
mov eax, 0x538958
call fcn.00404778
cmp byte [ebp - 0x402], 0
je 0x538872
mov ecx, 0x23e
mov edx, 0x53891c
mov eax, 0x538958
call fcn.00404778
cmp byte [ebp - 0x401], 1
je 0x53888f
mov ecx, 0x23f
mov edx, 0x53891c
mov eax, 0x538958
call fcn.00404778
lea edx, [ebp - 0x400]
lea eax, [ebp - 0x410]
mov ecx, 4
call fcn.00407b84
lea edx, [ebp - 0x3fc]
lea eax, [ebp - 0x412]
mov ecx, 2
call fcn.00407b84
lea edx, [ebp - 0x3fa]
mov eax, edi
mov ecx, ebx
call fcn.00407b84
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5388e7
lea eax, [ebp + 0xc]
call fcn.0040481c
ret
Function at 0x539020
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x53915a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0041c764
mov eax, dword [ebp - 4]
cmp byte [eax + 0x30], 2
jne 0x53909c
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x53909c
lea ecx, [ebp - 0x18]
xor edx, edx
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.00408ea8
mov edx, dword [ebp - 0x14]
mov ebx, dword [fcn.005697dc]
mov ebx, dword [ebx]
mov eax, 0x539170
call ebx
dec eax
jne 0x53909c
mov ebx, 1
jmp 0x53909e
xor ebx, ebx
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
sub eax, ebx
jl 0x53913f
inc eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], ebx
lea ecx, [ebp - 0x1c]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x1c]
call fcn.00494400
test al, al
jne 0x539133
mov eax, dword [ebp - 4]
call fcn.00539014
mov ebx, eax
lea ecx, [ebp - 0x20]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov esi, dword [eax]
call dword [esi + 0xc]
mov edx, dword [ebp - 0x20]
lea eax, [ebx + 0x1c]
call fcn.00404870
xor edx, edx
push ebp
push 0x539121
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x30]
test al, al
je 0x539117
mov edx, eax
mov ecx, ebx
mov eax, dword [ebp - 4]
call fcn.00539434
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x539133
inc dword [ebp - 0xc]
dec dword [ebp - 0x10]
jne 0x5390b6
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x539161
lea eax, [ebp - 0x20]
mov edx, 4
call fcn.00404840
ret

Function at 0x5529b4
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edx
xor eax, eax
push ebp
push 0x552a7b
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
mov dl, 1
mov eax, dword [0x43e764]
call fcn.0043e864
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x552a59
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x80000001
mov eax, dword [ebp - 8]
call fcn.0043e904
xor ecx, ecx
mov edx, 0x552a94
mov eax, dword [ebp - 8]
call fcn.0043e968
test al, al
je 0x552a43
lea ecx, [ebp - 0xc]
mov edx, 0x552acc
mov eax, dword [ebp - 8]
call fcn.0043ed48
mov eax, dword [ebp - 0xc]
push eax
lea edx, [ebp - 0x10]
mov eax, dword [0x56dfb0]
mov eax, dword [eax]
call fcn.00487ad8
mov edx, dword [ebp - 0x10]
pop eax
call fcn.00404c38
jne 0x552a43
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x552a60
mov eax, dword [ebp - 8]
call fcn.00403908
ret
Function at 0x552ad8
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ecx, ecx
mov dword [ebp - 8], ecx
mov ebx, edx
xor eax, eax
push ebp
push 0x552b96
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x43e764]
call fcn.0043e864
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x552b79
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x80000001
mov eax, dword [ebp - 4]
call fcn.0043e904
xor ecx, ecx
mov edx, 0x552bac
mov eax, dword [ebp - 4]
call fcn.0043e968
test al, al
je 0x552b63
test bl, bl
je 0x552b56
lea edx, [ebp - 8]
mov eax, dword [0x56dfb0]
mov eax, dword [eax]
call fcn.00487ad8
mov ecx, dword [ebp - 8]
mov edx, 0x552be4
mov eax, dword [ebp - 4]
call fcn.0043ed1c
jmp 0x552b63
mov edx, 0x552be4
mov eax, dword [ebp - 4]
call fcn.0043ea8c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x552b80
mov eax, dword [ebp - 4]
call fcn.00403908
ret
Function at 0x564a16
Capabilities:
Find taskbar

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffd0
mov ebx, edx
mov esi, eax
push 0
push 0x564a94
call sub.user32.dll_FindWindowA
push 0
push 0x564aa4
push 0
push eax
call sub.user32.dll_FindWindowExA
lea edx, [esp + 0x20]
push edx
push eax
call sub.user32.dll_GetWindowRect
test bl, bl
jne 0x564a59
mov edx, esp
mov eax, esi
call fcn.00466cb0
push esi
lea esi, [esp + 0x24]
lea edi, [esp + 0x14]
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
jmp 0x564a72
lea edx, [esp + 0x10]
mov eax, esi
call fcn.00466cb0
push esi
lea esi, [esp + 0x24]
lea edi, [esp + 4]
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, [esp + 0x10]
push eax
lea eax, [esp + 4]
push eax
push 3
mov eax, esi
call fcn.0046db78
push eax
call sub.user32.dll_DrawAnimatedRects
add esp, 0x30
pop edi
pop esi
pop ebx
ret

Function at 0x564b30
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe64
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x198], ecx
mov dword [ebp - 0x19c], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404cdc
xor eax, eax
push ebp
push 0x564c2c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
call fcn.0040481c
lea eax, [ebp - 0x194]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
test eax, eax
je 0x564b8d
mov eax, 0x564c44
call fcn.00435abc
jmp 0x564c06
mov eax, 0x3c
call fcn.00408e24
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404cec
mov edx, eax
mov eax, ebx
call fcn.00409f3c
lea eax, [ebp - 0x19c]
mov edx, ebx
call fcn.00404a24
mov eax, dword [ebp - 0x19c]
lea edx, [ebp - 0x198]
call fcn.00409110
cmp dword [ebp - 0x198], 0
jne 0x564bd9
push 0x3c
push ebx
call sub.wsock32.dll_gethostname
push ebx
call sub.wsock32.dll_gethostbyname
mov esi, eax
mov eax, ebx
call fcn.00402818
test esi, esi
je 0x564c06
mov eax, dword [esi + 0xc]
mov eax, dword [eax]
push dword [eax]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
mov eax, edi
call fcn.00404a24
call sub.wsock32.dll_WSACleanup
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x564c33
lea eax, [ebp - 0x19c]
mov edx, 2
call fcn.00404840
lea eax, [ebp - 4]
call fcn.0040481c
ret