joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47a78c
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 0x47a815
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 0x47a7ff
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, 0x47a82c
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 [0x47980c]
call fcn.0040c6d4
call fcn.00403f78
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47a81c
lea eax, [ebp - 0x1c]
call fcn.004045b8
ret

Function at 0x47aef8
Capabilities:
Connect socket

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, ebx
call fcn.0047ae1c
mov cl, 1
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.004039a8
cmp byte [ebx + 4], 0
jne 0x47af20
mov word [ebx + 0x1c], 2
jmp 0x47af26
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, 0x47af70
call fcn.0047a6d4
mov byte [ebx + 0x39], 0
test byte [ebx + 0x38], 0x10
jne 0x47af62
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 0x47af94
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.0047ac9c
xor eax, eax
push ebp
push 0x47b036
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 0x47afcd
call fcn.00404024
jmp 0x47b03d
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 0x47b020
mov eax, dword [ebp - 4]
cmp byte [eax + 4], 0
jne 0x47b004
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x20]
push eax
call sub.Ntdll.dll_RtlIpv4AddressToStringA
jmp 0x47b011
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 0x47b03d
mov eax, dword [ebp - 4]
call fcn.0047aca8
ret
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47b114
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 0x47b144
mov ecx, dword [0x540ec8]
mov dl, 1
mov eax, dword [0x47980c]
call fcn.0040c698
call fcn.00403f78
mov eax, dword [ebp - 4]
cmp byte [eax + 4], 0
jne 0x47b160
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov edx, dword [ebp - 4]
mov dword [edx + 8], eax
jmp 0x47b171
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 0x47b191
mov ecx, dword [0x5409c8]
mov dl, 1
mov eax, dword [0x47980c]
call fcn.0040c698
call fcn.00403f78
xor eax, eax
push ebp
push 0x47b213
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 0x47b1ee
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.0047b044
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.0047ae78
jmp 0x47b209
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.0047a9cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x47b230
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x47b23c
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 0x47b26c
mov ecx, dword [0x540a9c]
mov dl, 1
mov eax, dword [0x47980c]
call fcn.0040c698
call fcn.00403f78
mov eax, dword [ebp - 4]
cmp byte [eax + 4], 0
jne 0x47b288
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov edx, dword [ebp - 4]
mov dword [edx + 8], eax
jmp 0x47b299
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 0x47b2b9
mov ecx, dword [0x5409c8]
mov dl, 1
mov eax, dword [0x47980c]
call fcn.0040c698
call fcn.00403f78
xor eax, eax
push ebp
push 0x47b336
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 0x47b313
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.0047b044
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.0047aef8
jmp 0x47b32c
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.0047a9cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x47b353
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x47b518
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.0047ac9c
xor eax, eax
push ebp
push 0x47b68a
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 0x47b674
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0xffffffff
je 0x47b563
mov eax, dword [ebp - 4]
cmp byte [eax + 0xc], 0
jne 0x47b56d
call fcn.00404024
jmp 0x47b691
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 0x47b669
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 0x47b61b
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2733
je 0x47b608
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.0047b4d0
pop ecx
mov eax, dword [ebp - 4]
mov dl, byte [0x47b69c]
cmp dl, byte [eax + 0x38]
je 0x47b670
call fcn.0040c574
jmp 0x47b670
mov eax, dword [ebp - 0xc]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.004196dc
jmp 0x47b670
cmp ecx, ebx
jge 0x47b637
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 0x47b56d
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 0x47b658
cmp eax, dword [esp]
pop edx
pop eax
jne 0x47b56d
push ebp
call fcn.0047b4d0
pop ecx
jmp 0x47b670
push ebp
call fcn.0047b4d0
pop ecx
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47b691
mov eax, dword [ebp - 4]
call fcn.0047aca8
ret
mov al, byte [ebp - 5]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47b6a0
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 0x47b7c2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0047ac9c
xor eax, eax
push ebp
push 0x47b7a5
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 0x47b6f0
call fcn.00404024
jmp 0x47b7ac
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 0x47b78f
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x47b78f
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 0x47b78f
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, 0x47b7dc
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 [0x47980c]
call fcn.0040c6d4
call fcn.00403f78
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47b7ac
mov eax, dword [ebp - 4]
call fcn.0047aca8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47b7c9
lea eax, [ebp - 0x28]
call fcn.004045b8
ret
Function at 0x47b828
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 0x47b972
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0047ac9c
xor eax, eax
push ebp
push 0x47b955
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
cmp ebx, 0xffffffff
jne 0x47b88d
mov eax, dword [ebp - 4]
cmp byte [eax + 0xc], 0
je 0x47b88d
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 0x47b93f
mov eax, dword [ebp - 4]
cmp byte [eax + 0xc], 0
jne 0x47b8a0
call fcn.00404024
jmp 0x47b95c
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 0x47b93f
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x47b93f
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 0x47b93f
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, 0x47b98c
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 [0x47980c]
call fcn.0040c6d4
call fcn.00403f78
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47b95c
mov eax, dword [ebp - 4]
call fcn.0047aca8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47b979
lea eax, [ebp - 0x28]
call fcn.004045b8
ret
Function at 0x47ffa0
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x47ffce
mov eax, ebx
call fcn.00480a58
cmp dword [ebx + 0x3c], 0
je 0x47ffc7
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x48003f
mov edx, dword [ebx + 0x1ac]
cmp dword [edx + 0x10], 0
je 0x480031
cmp dword [ebx + 8], 0
je 0x47fff0
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 0x480002
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x480031
cmp dword [ebx + 8], 0
je 0x47ffe3
cmp eax, 3
je 0x480015
dec eax
jne 0x47ffe3
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 0x47ffe3
mov edx, dword [ebx + 0x138]
add dword [eax + 8], edx
jmp 0x47ffe3
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x48005d
cmp dword [ebx + 0x10], 0xcc
je 0x48005d
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.00480068
pop ebx
ret

Function at 0x490440
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 0x490584
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x505d40], 0
jne 0x490493
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, 0x490594
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 0x49052b
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 0x490524
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 0x490524
mov ebx, 0x15
jmp 0x490530
mov ebx, 0x10
jmp 0x490530
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.00490398
mov eax, dword [ebp - 8]
call fcn.00490398
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 0x49058b
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.004045dc
lea eax, [ebp - 0x10]
mov edx, dword [0x413bb4]
call fcn.00405348
ret
Function at 0x492dfc
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 0x492e4d
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x492e34
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x492e24
jmp 0x492e4d
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 0x492e35
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4a030c
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 0x4a0386
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, dword [esi + 8]
dec ebx
cmp ebx, 0
jl 0x4a036a
mov edx, ebx
mov eax, esi
call fcn.00416e84
test byte [eax + 0x48], 1
je 0x4a0364
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 0x4a0338
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a038d
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x38]
call fcn.00417354
ret

Function at 0x4a0a64
Capabilities:
Inspect section memory permissions

Disassembly:
xor edx, edx
test eax, 0x4000000
je 0x4a0a73
or edx, 0x200
test eax, 0x20000000
je 0x4a0aa7
test eax, 0x40000000
je 0x4a0a92
test eax, 0x80000000
je 0x4a0a8d
or edx, 0x40
jmp 0x4a0ace
or edx, 0x20
jmp 0x4a0ace
test eax, 0x80000000
je 0x4a0aa1
or edx, 0x80
jmp 0x4a0ace
or edx, 0x10
mov eax, edx
ret
test eax, 0x40000000
je 0x4a0abf
test eax, 0x80000000
je 0x4a0aba
or edx, 4
jmp 0x4a0ace
or edx, 2
jmp 0x4a0ace
test eax, 0x80000000
je 0x4a0acb
or edx, 8
jmp 0x4a0ace
or edx, 1
mov eax, edx
ret
Function at 0x4a1198
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, 0x541f30
xor eax, eax
push ebp
push 0x4a12cb
push dword fs:[eax]
mov dword fs:[eax], esp
push 8
mov eax, esi
mov ecx, 1
mov edx, dword [0x4a07b8]
call fcn.00405f1c
add esp, 4
mov eax, dword [esi]
mov edx, 0x4a12e4
call fcn.0040460c
mov eax, dword [esi]
mov dword [eax + 4], 0x541f08
mov eax, dword [esi]
add eax, 8
mov edx, 0x4a1300
call fcn.0040460c
mov eax, dword [esi]
mov dword [eax + 0xc], 0x541f0c
mov eax, dword [esi]
add eax, 0x10
mov edx, 0x4a131c
call fcn.0040460c
mov eax, dword [esi]
mov dword [eax + 0x14], 0x541f10
mov eax, dword [esi]
add eax, 0x18
mov edx, 0x4a1334
call fcn.0040460c
mov eax, dword [esi]
mov dword [eax + 0x1c], 0x541f14
mov eax, dword [esi]
add eax, 0x20
mov edx, 0x4a134c
call fcn.0040460c
mov eax, dword [esi]
mov dword [eax + 0x24], 0x541f18
mov eax, dword [esi]
add eax, 0x28
mov edx, 0x4a1360
call fcn.0040460c
mov eax, dword [esi]
mov dword [eax + 0x2c], 0x541f1c
mov eax, dword [esi]
add eax, 0x30
mov edx, 0x4a1374
call fcn.0040460c
mov eax, dword [esi]
mov dword [eax + 0x34], 0x541f20
mov eax, dword [esi]
add eax, 0x38
mov edx, 0x4a1384
call fcn.0040460c
mov eax, dword [esi]
mov dword [eax + 0x3c], 0x541f24
lea ecx, [ebp - 0xc]
mov eax, dword [0x541f2c]
mov eax, dword [eax + 4]
mov edx, dword [esi]
call fcn.004a0ed8
lea edx, [ebp - 0xc]
mov eax, 0x541f34
mov ecx, dword [0x4a0798]
call fcn.00405564
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a12d2
lea eax, [ebp - 0xc]
mov edx, dword [0x4a0798]
call fcn.00405348
ret

Function at 0x4a310c
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 0x4a3170
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 0x4a3177
lea eax, [ebp - 0xc]
call fcn.004045b8
ret
Function at 0x4abdf8
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 0x4abeab
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 0x4abe95
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, 0x4abec0
call fcn.00404bc8
test eax, eax
jle 0x4abe5e
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 0x4abe7d
mov eax, 1
mov ecx, dword [ebp - 0xc]
xor byte [ecx + eax - 1], 0x80
inc eax
dec edx
jne 0x4abe71
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 0x4abe2f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4abeb2
lea eax, [ebp - 0xc]
call fcn.004045b8
ret
Function at 0x4af764
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 0x4af793
push esp
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x4af793
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov ebx, dword [eax]
cmp ebx, 0x100007f
jne 0x4af793
xor ebx, ebx
mov eax, ebx
add esp, 0x40
pop ebx
ret

Function at 0x4af79c
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.004af764
mov dword [0x5433b0], eax
cmp byte [0x53d918], 0
jne 0x4af7eb
lea eax, [ebp - 0x19c]
push eax
push 0x202
call sub.wsock32.dll_WSAStartup
test eax, eax
jne 0x4af8c9
mov byte [0x53d918], 1
push 0
push 2
push 2
call sub.wsock32.dll_socket
mov dword [edi], eax
cmp dword [edi], 0xffffffff
je 0x4af8c9
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 0x4af856
mov eax, dword [edi]
push eax
call sub.wsock32.dll_closesocket
jmp 0x4af8c9
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 0x4af878
mov eax, dword [edi]
push eax
call sub.wsock32.dll_closesocket
jmp 0x4af8c9
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 0x4af8a4
mov eax, dword [edi]
push eax
call sub.wsock32.dll_closesocket
jmp 0x4af8c9
push 0x23
mov eax, dword [ebp + 8]
push eax
mov eax, esi
call fcn.0045de44
push eax
mov eax, dword [edi]
push eax
call sub.wsock32.dll_WSAAsyncSelect
inc eax
jne 0x4af8c7
mov eax, dword [edi]
push eax
call sub.wsock32.dll_closesocket
jmp 0x4af8c9
mov bl, 1
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4