joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47a864
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 0x47a8ed
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x542d38
push 0x101
call sub.wsock32.dll_WSAStartup
mov ebx, eax
test ebx, ebx
je 0x47a8d7
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.0040bdf0
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, 0x47a904
mov dword [ebp - 8], eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x18]
push eax
push 2
mov ecx, dword [0x541cac]
mov dl, 1
mov eax, dword [0x4798e4]
call fcn.0040c748
call fcn.00403f78
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47a8f4
lea eax, [ebp - 0x1c]
call fcn.004045b8
ret

Function at 0x47afd0
Capabilities:
Connect socket

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, ebx
call fcn.0047aef4
mov cl, 1
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.004039a8
cmp byte [ebx + 4], 0
jne 0x47aff8
mov word [ebx + 0x1c], 2
jmp 0x47affe
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, 0x47b048
call fcn.0047a7ac
mov byte [ebx + 0x39], 0
test byte [ebx + 0x38], 0x10
jne 0x47b03a
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 0x47b06c
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.0047ad74
xor eax, eax
push ebp
push 0x47b10e
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 0x47b0a5
call fcn.00404024
jmp 0x47b115
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 0x47b0f8
mov eax, dword [ebp - 4]
cmp byte [eax + 4], 0
jne 0x47b0dc
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x20]
push eax
call sub.Ntdll.dll_RtlIpv4AddressToStringA
jmp 0x47b0e9
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 0x47b115
mov eax, dword [ebp - 4]
call fcn.0047ad80
ret
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47b1ec
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 0x47b21c
mov ecx, dword [0x541ec8]
mov dl, 1
mov eax, dword [0x4798e4]
call fcn.0040c70c
call fcn.00403f78
mov eax, dword [ebp - 4]
cmp byte [eax + 4], 0
jne 0x47b238
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov edx, dword [ebp - 4]
mov dword [edx + 8], eax
jmp 0x47b249
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 0x47b269
mov ecx, dword [0x5419c8]
mov dl, 1
mov eax, dword [0x4798e4]
call fcn.0040c70c
call fcn.00403f78
xor eax, eax
push ebp
push 0x47b2eb
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 0x47b2c6
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.0047b11c
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.0047af50
jmp 0x47b2e1
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.0047aaa4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x47b308
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x47b314
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 0x47b344
mov ecx, dword [0x541a9c]
mov dl, 1
mov eax, dword [0x4798e4]
call fcn.0040c70c
call fcn.00403f78
mov eax, dword [ebp - 4]
cmp byte [eax + 4], 0
jne 0x47b360
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov edx, dword [ebp - 4]
mov dword [edx + 8], eax
jmp 0x47b371
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 0x47b391
mov ecx, dword [0x5419c8]
mov dl, 1
mov eax, dword [0x4798e4]
call fcn.0040c70c
call fcn.00403f78
xor eax, eax
push ebp
push 0x47b40e
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 0x47b3eb
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.0047b11c
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.0047afd0
jmp 0x47b404
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.0047aaa4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x47b42b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x47b5f0
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.0047ad74
xor eax, eax
push ebp
push 0x47b762
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 0x47b74c
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0xffffffff
je 0x47b63b
mov eax, dword [ebp - 4]
cmp byte [eax + 0xc], 0
jne 0x47b645
call fcn.00404024
jmp 0x47b769
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.00419730
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 0x47b741
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 0x47b6f3
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2733
je 0x47b6e0
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.0047b5a8
pop ecx
mov eax, dword [ebp - 4]
mov dl, byte [0x47b774]
cmp dl, byte [eax + 0x38]
je 0x47b748
call fcn.0040c5e8
jmp 0x47b748
mov eax, dword [ebp - 0xc]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.00419750
jmp 0x47b748
cmp ecx, ebx
jge 0x47b70f
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.00419750
jmp 0x47b645
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.00419730
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.00419764
cmp edx, dword [esp + 4]
jne 0x47b730
cmp eax, dword [esp]
pop edx
pop eax
jne 0x47b645
push ebp
call fcn.0047b5a8
pop ecx
jmp 0x47b748
push ebp
call fcn.0047b5a8
pop ecx
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47b769
mov eax, dword [ebp - 4]
call fcn.0047ad80
ret
mov al, byte [ebp - 5]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47b778
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 0x47b89a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0047ad74
xor eax, eax
push ebp
push 0x47b87d
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 0x47b7c8
call fcn.00404024
jmp 0x47b884
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 0x47b867
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x47b867
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 0x47b867
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040bdf0
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, 0x47b8b4
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x541cac]
mov dl, 1
mov eax, dword [0x4798e4]
call fcn.0040c748
call fcn.00403f78
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47b884
mov eax, dword [ebp - 4]
call fcn.0047ad80
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47b8a1
lea eax, [ebp - 0x28]
call fcn.004045b8
ret
Function at 0x47b900
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 0x47ba4a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0047ad74
xor eax, eax
push ebp
push 0x47ba2d
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
cmp ebx, 0xffffffff
jne 0x47b965
mov eax, dword [ebp - 4]
cmp byte [eax + 0xc], 0
je 0x47b965
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 0x47ba17
mov eax, dword [ebp - 4]
cmp byte [eax + 0xc], 0
jne 0x47b978
call fcn.00404024
jmp 0x47ba34
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 0x47ba17
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x47ba17
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 0x47ba17
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040bdf0
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, 0x47ba64
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x541cac]
mov dl, 1
mov eax, dword [0x4798e4]
call fcn.0040c748
call fcn.00403f78
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47ba34
mov eax, dword [ebp - 4]
call fcn.0047ad80
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47ba51
lea eax, [ebp - 0x28]
call fcn.004045b8
ret
Function at 0x480078
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x4800a6
mov eax, ebx
call fcn.00480b30
cmp dword [ebx + 0x3c], 0
je 0x48009f
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x480117
mov edx, dword [ebx + 0x1ac]
cmp dword [edx + 0x10], 0
je 0x480109
cmp dword [ebx + 8], 0
je 0x4800c8
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 0x4800da
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x480109
cmp dword [ebx + 8], 0
je 0x4800bb
cmp eax, 3
je 0x4800ed
dec eax
jne 0x4800bb
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 0x4800bb
mov edx, dword [ebx + 0x138]
add dword [eax + 8], edx
jmp 0x4800bb
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x480135
cmp dword [ebx + 0x10], 0xcc
je 0x480135
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.00480140
pop ebx
ret

Function at 0x490518
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 [0x413c28]
call fcn.00405278
xor eax, eax
push ebp
push 0x49065c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x506d40], 0
jne 0x49056b
mov ecx, dword [0x541470]
mov dl, 1
mov eax, dword [0x408150]
call fcn.0040c70c
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, 0x49066c
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 0x490603
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 0x4905fc
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 0x4905fc
mov ebx, 0x15
jmp 0x490608
mov ebx, 0x10
jmp 0x490608
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 [0x506d40]
call fcn.00490470
mov eax, dword [ebp - 8]
call fcn.00490470
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 0x490663
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.004045dc
lea eax, [ebp - 0x10]
mov edx, dword [0x413c28]
call fcn.00405348
ret
Function at 0x492ed4
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 0x492f25
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x492f0c
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x492efc
jmp 0x492f25
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 0x492f0d
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4a03e4
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.00417364
mov esi, eax
xor eax, eax
push ebp
push 0x4a045e
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, dword [esi + 8]
dec ebx
cmp ebx, 0
jl 0x4a0442
mov edx, ebx
mov eax, esi
call fcn.00416ef8
test byte [eax + 0x48], 1
je 0x4a043c
push 0
mov edx, ebx
mov eax, esi
call fcn.00416ef8
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_TerminateThread
mov edx, ebx
mov eax, esi
call fcn.00416de8
dec ebx
cmp ebx, 0xffffffff
jne 0x4a0410
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a0465
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x38]
call fcn.004173c8
ret

Function at 0x4a0b3c
Capabilities:
Inspect section memory permissions

Disassembly:
xor edx, edx
test eax, 0x4000000
je 0x4a0b4b
or edx, 0x200
test eax, 0x20000000
je 0x4a0b7f
test eax, 0x40000000
je 0x4a0b6a
test eax, 0x80000000
je 0x4a0b65
or edx, 0x40
jmp 0x4a0ba6
or edx, 0x20
jmp 0x4a0ba6
test eax, 0x80000000
je 0x4a0b79
or edx, 0x80
jmp 0x4a0ba6
or edx, 0x10
mov eax, edx
ret
test eax, 0x40000000
je 0x4a0b97
test eax, 0x80000000
je 0x4a0b92
or edx, 4
jmp 0x4a0ba6
or edx, 2
jmp 0x4a0ba6
test eax, 0x80000000
je 0x4a0ba3
or edx, 8
jmp 0x4a0ba6
or edx, 1
mov eax, edx
ret
Function at 0x4a1270
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
mov esi, 0x542f30
xor eax, eax
push ebp
push 0x4a13a3
push dword fs:[eax]
mov dword fs:[eax], esp
push 8
mov eax, esi
mov ecx, 1
mov edx, dword [0x4a0890]
call fcn.00405f1c
add esp, 4
mov eax, dword [esi]
mov edx, 0x4a13bc
call fcn.0040460c
mov eax, dword [esi]
mov dword [eax + 4], 0x542f08
mov eax, dword [esi]
add eax, 8
mov edx, 0x4a13d8
call fcn.0040460c
mov eax, dword [esi]
mov dword [eax + 0xc], 0x542f0c
mov eax, dword [esi]
add eax, 0x10
mov edx, 0x4a13f4
call fcn.0040460c
mov eax, dword [esi]
mov dword [eax + 0x14], 0x542f10
mov eax, dword [esi]
add eax, 0x18
mov edx, 0x4a140c
call fcn.0040460c
mov eax, dword [esi]
mov dword [eax + 0x1c], 0x542f14
mov eax, dword [esi]
add eax, 0x20
mov edx, 0x4a1424
call fcn.0040460c
mov eax, dword [esi]
mov dword [eax + 0x24], 0x542f18
mov eax, dword [esi]
add eax, 0x28
mov edx, 0x4a1438
call fcn.0040460c
mov eax, dword [esi]
mov dword [eax + 0x2c], 0x542f1c
mov eax, dword [esi]
add eax, 0x30
mov edx, 0x4a144c
call fcn.0040460c
mov eax, dword [esi]
mov dword [eax + 0x34], 0x542f20
mov eax, dword [esi]
add eax, 0x38
mov edx, 0x4a145c
call fcn.0040460c
mov eax, dword [esi]
mov dword [eax + 0x3c], 0x542f24
lea ecx, [ebp - 0xc]
mov eax, dword [0x542f2c]
mov eax, dword [eax + 4]
mov edx, dword [esi]
call fcn.004a0fb0
lea edx, [ebp - 0xc]
mov eax, 0x542f34
mov ecx, dword [0x4a0870]
call fcn.00405564
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a13aa
lea eax, [ebp - 0xc]
mov edx, dword [0x4a0870]
call fcn.00405348
ret

Function at 0x4a31e4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x4a3248
push dword fs:[edx]
mov dword fs:[edx], esp
push 6
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404820
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004094cc
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a324f
lea eax, [ebp - 0xc]
call fcn.004045b8
ret
Function at 0x4abed0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4abf83
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x4abf6d
inc eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0
lea ecx, [ebp - 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov edx, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov edx, dword [ebp - 0xc]
mov eax, 0x4abf98
call fcn.00404bc8
test eax, eax
jle 0x4abf36
lea edx, [ebp - 0xc]
mov ecx, 0x400
xchg edx, eax
call fcn.00404b24
mov eax, dword [ebp - 0xc]
call fcn.0040488c
mov edx, eax
test edx, edx
jle 0x4abf55
mov eax, 1
mov ecx, dword [ebp - 0xc]
xor byte [ecx + eax - 1], 0x80
inc eax
dec edx
jne 0x4abf49
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x20]
inc dword [ebp - 8]
dec dword [ebp - 0x10]
jne 0x4abf07
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4abf8a
lea eax, [ebp - 0xc]
call fcn.004045b8
ret
Function at 0x4af83c
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebx
add esp, 0xffffffc0
push 0x40
lea eax, [esp + 4]
push eax
call sub.wsock32.dll_gethostname
test eax, eax
jne 0x4af86b
push esp
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x4af86b
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov ebx, dword [eax]
cmp ebx, 0x100007f
jne 0x4af86b
xor ebx, ebx
mov eax, ebx
add esp, 0x40
pop ebx
ret

Function at 0x4af874
Capabilities:
Create udp socket
Initialize winsock library
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe54
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
xor ebx, ebx
mov dword [ebp - 8], 1
call fcn.004af83c
mov dword [0x5443b0], eax
cmp byte [0x53e918], 0
jne 0x4af8c3
lea eax, [ebp - 0x19c]
push eax
push 0x202
call sub.wsock32.dll_WSAStartup
test eax, eax
jne 0x4af9a1
mov byte [0x53e918], 1
push 0
push 2
push 2
call sub.wsock32.dll_socket
mov dword [edi], eax
cmp dword [edi], 0xffffffff
je 0x4af9a1
mov word [ebp - 0x1ac], 2
xor eax, eax
mov dword [ebp - 0x1a8], eax
mov ax, word [ebp - 4]
push eax
call sub.wsock32.dll_htons
mov word [ebp - 0x1aa], ax
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0xffff
mov eax, dword [edi]
push eax
call sub.wsock32.dll_setsockopt
push 0x10
lea eax, [ebp - 0x1ac]
push eax
mov eax, dword [edi]
push eax
call sub.wsock32.dll_bind
inc eax
jne 0x4af92e
mov eax, dword [edi]
push eax
call sub.wsock32.dll_closesocket
jmp 0x4af9a1
push 4
lea eax, [ebp - 8]
push eax
push 0x20
push 0xffff
mov eax, dword [edi]
push eax
call sub.wsock32.dll_setsockopt
inc eax
jne 0x4af950
mov eax, dword [edi]
push eax
call sub.wsock32.dll_closesocket
jmp 0x4af9a1
mov dword [ebp - 0xc], 0x20000
push 4
lea eax, [ebp - 0xc]
push eax
push 0x1002
push 0xffff
mov eax, dword [edi]
push eax
call sub.wsock32.dll_setsockopt
inc eax
jne 0x4af97c
mov eax, dword [edi]
push eax
call sub.wsock32.dll_closesocket
jmp 0x4af9a1
push 0x23
mov eax, dword [ebp + 8]
push eax
mov eax, esi
call fcn.0045deb8
push eax
mov eax, dword [edi]
push eax
call sub.wsock32.dll_WSAAsyncSelect
inc eax
jne 0x4af99f
mov eax, dword [edi]
push eax
call sub.wsock32.dll_closesocket
jmp 0x4af9a1
mov bl, 1
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4