joyce8/EMBER2024-capa huggingface dataset:
Function at 0x476ea0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x503f8c], eax
je 0x476ebd
mov eax, 0x10dd
jmp 0x476fa0
mov eax, dword [0x503f9c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x476f3c
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call sub.KERNEL32.dll_VirtualProtect
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x476f18
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x476f18
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.00475d40
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
push 0x18
mov edx, dword [ebp - 0xc]
push edx
call fcn.00472bfe
add esp, 8
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x476ec5
mov dword [0x503f9c], 0
call fcn.00476620
mov ecx, dword [0x503f98]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x476f8a
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call sub.KERNEL32.dll_ResumeThread
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
push 8
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00472bfe
add esp, 8
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
jmp 0x476f54
mov dword [0x503f98], 0
mov dword [0x503f8c], 0
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x477480
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x503f90], 0
je 0x477499
mov eax, dword [0x503f90]
jmp 0x477538
call sub.KERNEL32.dll_GetCurrentThread
cmp dword [ebp + 8], eax
jne 0x4774aa
xor eax, eax
jmp 0x477538
push 8
call fcn.00472c0c
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x477502
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x4774eb
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
push 8
mov edx, dword [ebp - 0x10]
push edx
call fcn.00472bfe
add esp, 8
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x503f90], eax
mov dword [0x503f94], 0
mov eax, dword [ebp - 8]
jmp 0x477538
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x47751a
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x4774ca
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x503f98]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x503f98], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x478aa0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push 0x4e6c38
mov dword [0x503fb8], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x503fb8], eax
test eax, eax
jne 0x478ac4
mov eax, 0x16
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetNetworkParams
push eax
call esi
mov dword [0x503fa0], eax
test eax, eax
jne 0x478aef
push dword [0x503fb8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 0x17
pop esi
ret
push str.GetAdaptersAddresses
push dword [0x503fb8]
call esi
push str.GetBestRoute2
push dword [0x503fb8]
mov dword [0x503fa8], eax
call esi
push str.advapi32.dll
mov dword [0x503fac], eax
mov dword [0x503fbc], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x503fbc], eax
test eax, eax
je 0x478b3e
push str.SystemFunction036
push eax
call esi
mov dword [0x503fa4], eax
xor eax, eax
pop esi
ret

Function at 0x478b50
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x501040]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x94
lea eax, [ebp - 0x98]
push 0
push eax
call fcn.0049cdf0
add esp, 0xc
mov dword [ebp - 0x98], 0x94
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x478bb0
cmp dword [ebp - 0x94], 6
jb 0x478bb0
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047299a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.0047299a
mov esp, ebp
pop ebp
ret

Function at 0x4799c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0
push dword [ebp + 0xc]
mov dword [ebp - 4], 0
push dword [ebp + 8]
mov dword [esi], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4799f6
cmp eax, 0xea
jne 0x479a50
mov eax, dword [ebp - 4]
test eax, eax
je 0x479a50
inc eax
push eax
call dword [0x501144]
add esp, 4
mov dword [esi], eax
test eax, eax
je 0x479a50
lea ecx, [ebp - 4]
push ecx
push eax
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x479a3f
mov ecx, dword [ebp - 4]
cmp ecx, 1
je 0x479a3f
mov eax, dword [esi]
pop esi
mov byte [ecx + eax], 0
mov eax, 1
mov esp, ebp
pop ebp
ret
push dword [esi]
call dword [0x50114c]
add esp, 4
mov dword [esi], 0
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x479a60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 4]
push eax
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0
push dword [ebp + 0xc]
mov dword [ebp - 4], 0
push dword [ebp + 8]
mov dword [esi], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x479aa1
cmp eax, 0xea
jne 0x479afd
mov eax, dword [ebp - 4]
test eax, eax
je 0x479afd
inc eax
push eax
call dword [0x501144]
add esp, 4
mov dword [esi], eax
test eax, eax
je 0x479afd
lea ecx, [ebp - 4]
push ecx
push eax
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x479aec
mov ecx, dword [ebp - 4]
cmp ecx, 1
je 0x479aec
mov eax, dword [esi]
pop esi
mov byte [ecx + eax], 0
mov eax, 1
mov esp, ebp
pop ebp
ret
push dword [esi]
call dword [0x50114c]
add esp, 4
mov dword [esi], 0
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x479eb0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x501040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 1
push edi
mov edi, dword [ebp + 0x10]
push 0
push 0
push 0
push 0
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x104]
mov dword [ebp - 0x118], esi
push eax
push 0
push esi
mov dword [edi], 0
mov dword [ebp - 0x10c], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x47a017
lea eax, [ebp - 0x114]
push eax
push 1
push 0
lea eax, [ebp - 0x104]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x479fe4
mov esi, dword [ebp - 0x114]
mov dword [ebp - 0x108], eax
mov dword [edi], eax
lea eax, [ebp - 0x108]
push eax
push 0
push 0
push 0
push dword [ebp - 0x110]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x479f6b
cmp eax, 0xea
jne 0x479fcc
mov eax, dword [ebp - 0x108]
test eax, eax
je 0x479fcc
inc eax
push eax
call dword [0x501144]
add esp, 4
mov dword [edi], eax
test eax, eax
je 0x479fcc
lea ecx, [ebp - 0x108]
push ecx
push eax
push 0
push 0
push dword [ebp - 0x110]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x479fbb
mov ecx, dword [ebp - 0x108]
cmp ecx, 1
je 0x479fbb
mov eax, dword [edi]
mov esi, 1
mov byte [ecx + eax], 0
jmp 0x479fce
push dword [edi]
call dword [0x50114c]
add esp, 4
mov dword [edi], 0
xor esi, esi
push dword [ebp - 0x114]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x47a017
mov esi, dword [ebp - 0x118]
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x10c]
mov dword [ebp - 0x10c], 0x100
push ecx
lea ecx, [ebp - 0x104]
mov eax, ebx
push ecx
push eax
push esi
inc ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x479f17
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [edi], eax
pop edi
setne al
xor ecx, ebp
pop esi
pop ebx
call fcn.0047299a
mov esp, ebp
pop ebp
ret
Function at 0x47a9d0
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x91b8]
test ecx, ecx
je 0x47a9f9
push dword [eax + 0x91bc]
mov eax, dword [ecx + 8]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call eax
add esp, 0x10
pop ebp
ret
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_connect]
pop ebp
ret
Function at 0x47ad20
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x501040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0x10]
cmp dword [esi + 0x91b8], 0
je 0x47ad4e
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047299a
mov esp, ebp
pop ebp
ret
push ebx
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x24]
push eax
push 0x8004667e
push edi
mov dword [ebp - 0x24], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp dword [esi + 0x1c], 0
lea eax, [esi + 0x1c]
mov ebx, dword [sym.imp.WS2_32.dll_setsockopt]
jle 0x47ad92
push 4
push eax
push 0x1001
push 0xffff
push edi
call ebx
cmp eax, 0xffffffff
je 0x47ae4b
cmp dword [esi + 0x20], 0
lea eax, [esi + 0x20]
jle 0x47adb4
push 4
push eax
push 0x1002
push 0xffff
push edi
call ebx
cmp eax, 0xffffffff
je 0x47ae4b
mov eax, dword [ebp + 0xc]
cmp eax, 2
jne 0x47ade1
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x47ae04
xorps xmm0, xmm0
mov ecx, 2
movups xmmword [ebp - 0x20], xmm0
push eax
mov word [ebp - 0x20], cx
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0x1c], eax
push 0x10
jmp 0x47ae3c
cmp eax, 0x17
jne 0x47ae04
lea ebx, [esi + 0x60]
mov edx, 0x4e6ebc
mov ecx, ebx
lea esi, [eax - 0xb]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x47ae17
add ecx, 4
add edx, 4
sub esi, 4
jae 0x47adf3
pop edi
pop ebx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047299a
mov esp, ebp
pop ebp
ret
xorps xmm0, xmm0
mov dword [ebp - 8], 0
movups xmmword [ebp - 0x20], xmm0
mov eax, 0x17
movq qword [ebp - 0x10], xmm0
movups xmm0, xmmword [ebx]
mov word [ebp - 0x20], ax
push 0x1c
movups xmmword [ebp - 0x18], xmm0
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jns 0x47ae04
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop ebx
xor ecx, ebp
pop esi
call fcn.0047299a
mov esp, ebp
pop ebp
ret
Function at 0x47b4e0
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x501040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov eax, dword [ebx]
sub eax, 2
je 0x47b55a
sub eax, 0x15
je 0x47b517
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047299a
mov esp, ebp
pop ebp
ret
xorps xmm0, xmm0
mov dword [ebp - 0x28], 0x1c
mov eax, 0x17
movq qword [ebp - 0x10], xmm0
movups xmmword [ebp - 0x20], xmm0
mov word [ebp - 0x20], ax
mov eax, dword [ebx + 0x14]
mov dword [ebp - 8], 0
test eax, eax
je 0x47b544
push eax
jmp 0x47b547
push dword [esi + 0x14]
call fcn.0047e290
movups xmm0, xmmword [ebx + 4]
mov word [ebp - 0x1e], ax
movups xmmword [ebp - 0x18], xmm0
jmp 0x47b58d
xorps xmm0, xmm0
mov dword [ebp - 0x28], 0x10
mov eax, 2
movups xmmword [ebp - 0x20], xmm0
mov word [ebp - 0x20], ax
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x47b57b
push eax
jmp 0x47b57e
push dword [esi + 0x14]
call fcn.0047e290
mov word [ebp - 0x1e], ax
mov eax, dword [ebx + 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x91b8]
add esp, 4
mov ecx, dword [ebx]
push edi
test eax, eax
je 0x47b5b1
push dword [esi + 0x91bc]
mov eax, dword [eax]
push 0
push 2
push ecx
call eax
add esp, 0x10
jmp 0x47b5bc
push 0
push 2
push ecx
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x47b672
push esi
push dword [ebx]
push edi
call fcn.0047ad20
add esp, 0xc
test eax, eax
jns 0x47b61f
mov eax, dword [esi + 0x91b8]
test eax, eax
je 0x47b604
push dword [esi + 0x91bc]
mov eax, dword [eax + 4]
push edi
call eax
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047299a
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047299a
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x91b0]
test eax, eax
je 0x47b63e
push dword [esi + 0x91b4]
push 2
push edi
call eax
add esp, 0xc
mov dword [ebp - 0x24], eax
test eax, eax
js 0x47b6a5
push dword [ebp - 0x28]
lea eax, [ebp - 0x20]
push eax
push edi
push esi
call fcn.0047a9d0
add esp, 0x10
cmp eax, 0xffffffff
jne 0x47b686
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2734
je 0x47b686
cmp eax, 0x2733
je 0x47b686
push edi
push esi
call fcn.0047a9a0
add esp, 8
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047299a
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x91a8]
test eax, eax
je 0x47b6c3
push dword [esi + 0x91ac]
push 2
push edi
call eax
add esp, 0xc
mov dword [ebp - 0x24], eax
test eax, eax
jns 0x47b6c3
push edi
push esi
call fcn.0047a9a0
mov eax, dword [ebp - 0x24]
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047299a
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x91a0]
test eax, eax
je 0x47b6dd
push 0
push 1
push edi
push dword [esi + 0x91a4]
call eax
add esp, 0x10
mov ecx, dword [ebp - 4]
xor eax, eax
mov dword [ebx + 0x1c], edi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0047299a
mov esp, ebp
pop ebp
ret
Function at 0x47c1c0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
sub esp, 0x10
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x47c1da
cmp edx, 0xffffffff
je 0x47c391
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
cmp dword [ebx + 0x78], 0
jle 0x47c390
xor ecx, ecx
xor eax, eax
mov dword [ebp - 8], ecx
push edi
mov edi, dword [ebx + 0x74]
add edi, ecx
cmp dword [edi + 0x38], 0
je 0x47c37b
mov eax, dword [edi + 0x20]
cmp eax, 0xffffffff
je 0x47c378
cmp dword [edi + 0x54], 0
jne 0x47c378
test esi, esi
je 0x47c275
push esi
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x47c375
mov edx, dword [esi]
xor eax, eax
test edx, edx
je 0x47c27d
mov ecx, dword [ebp + 0xc]
mov esi, dword [edi + 0x20]
add ecx, 4
cmp dword [ecx], esi
je 0x47c24e
inc eax
add ecx, 4
cmp eax, edx
jb 0x47c240
jmp 0x47c27d
mov esi, dword [ebp + 0xc]
lea ecx, [edx - 1]
cmp eax, ecx
jae 0x47c271
lea edx, [esi + 4]
lea edx, [edx + eax*4]
nop
mov ecx, dword [edx + 4]
lea edx, [edx + 4]
mov dword [edx - 4], ecx
inc eax
mov ecx, dword [esi]
dec ecx
cmp eax, ecx
jb 0x47c260
dec dword [esi]
jmp 0x47c27d
cmp eax, edx
jne 0x47c378
mov eax, dword [edi + 0x38]
xor ecx, ecx
test eax, eax
je 0x47c28e
mov eax, dword [eax + 0x10]
inc ecx
test eax, eax
jne 0x47c286
lea eax, [ecx*8]
push eax
call dword [0x501144]
mov esi, eax
add esp, 4
test esi, esi
je 0x47c324
mov ecx, dword [edi + 0x38]
xor edx, edx
test ecx, ecx
je 0x47c2c6
mov eax, dword [ecx]
mov dword [esi + edx*8], eax
mov eax, dword [ecx + 4]
mov dword [esi + edx*8 + 4], eax
inc edx
mov ecx, dword [ecx + 0x10]
test ecx, ecx
jne 0x47c2b2
mov ecx, dword [ebx + 0x91b8]
mov eax, dword [edi + 0x20]
test ecx, ecx
je 0x47c2e6
push dword [ebx + 0x91bc]
push edx
push esi
push eax
mov eax, dword [ecx + 0x10]
call eax
add esp, 0x10
jmp 0x47c2f1
push edx
push esi
push eax
call fcn.0047ecb0
add esp, 0xc
push esi
mov edi, eax
call dword [0x50114c]
add esp, 4
test edi, edi
jns 0x47c321
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0xb
je 0x47c372
cmp eax, 0x2733
je 0x47c372
push dword [ebp + 0x14]
push dword [ebp - 4]
push ebx
call fcn.0047afb0
jmp 0x47c36f
push edi
jmp 0x47c366
mov eax, dword [edi + 0x38]
mov esi, dword [ebx + 0x91b8]
mov edx, dword [edi + 0x20]
mov ecx, dword [eax + 4]
mov eax, dword [eax]
test esi, esi
je 0x47c356
push dword [ebx + 0x91bc]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push 1
push eax
mov dword [ebp - 0xc], ecx
mov eax, dword [esi + 0x10]
push edx
call eax
add esp, 0x10
jmp 0x47c361
push 0
push ecx
push eax
push edx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
js 0x47c301
push eax
push dword [ebp - 4]
push ebx
call fcn.0047a910
add esp, 0xc
mov esi, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 4]
add dword [ebp - 8], 0x58
inc eax
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], eax
cmp eax, dword [ebx + 0x78]
jl 0x47c1f7
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x47cab0
Capabilities:
Get common file path
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x501040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
test dword [esi + 0x14], 0x100
lea ebx, [esi + 0x14]
je 0x47cae9
push str.CARES_HOSTS
call fcn.004ae3e7
add esp, 4
test eax, eax
jne 0x47cbbb
mov byte [ebp - 0x108], 0
call fcn.0047d160
cmp eax, 3
jne 0x47cb70
lea eax, [ebp - 0x210]
push eax
push 0x20019
push 0
push str.SystemCurrentControlSetServicesTcpipParameters
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x47cb8b
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 0x104
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push str.DatabasePath
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 0x104
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x47cb8b
cmp eax, 2
jne 0x47cc93
push 0x104
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [ebp - 0x108]
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x47cb92
mov eax, dword [str.hosts]
mov dword [ecx], eax
mov ax, word [0x4e6c30]
mov word [ecx + 4], ax
mov al, byte [0x4e6c32]
mov byte [ecx + 6], al
lea eax, [ebp - 0x108]
push edi
push 0x4e6c34
push eax
call fcn.004ab845
mov edi, eax
add esp, 8
test edi, edi
jne 0x47cbf9
call dword [sym.imp.KERNEL32.dll_GetLastError]
add eax, 0xfffffffe
mov ecx, 1
cmp ecx, eax
sbb eax, eax
and eax, 0xa
add eax, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047299a
mov esp, ebp
pop ebp
ret
push dword [esi + 0x30]
movzx eax, word [esi + 8]
push ebx
push eax
push dword [esi + 4]
push edi
call fcn.0047f7a0
push edi
mov dword [ebp - 0x210], eax
call fcn.004a7002
mov eax, dword [ebp - 0x210]
add esp, 0x18
cmp eax, 4
jne 0x47cbe8
mov edi, dword [esi + 4]
mov edx, str.localhost
mov ecx, edi
nop
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x47cc50
test al, al
je 0x47cc4c
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x47cc50
add ecx, 2
add edx, 2
test al, al
jne 0x47cc30
xor eax, eax
jmp 0x47cc55
sbb eax, eax
or eax, 1
test eax, eax
jne 0x47cc7c
push dword [esi + 0x30]
movzx eax, word [esi + 8]
push ebx
push eax
push edi
call fcn.0047fcb0
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047299a
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x210]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047299a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 4
pop esi
xor ecx, ebp
pop ebx
call fcn.0047299a
mov esp, ebp
pop ebp
ret
Function at 0x47da60
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp eax, 2
jne 0x47da70
lea ecx, [eax + 2]
jmp 0x47da78
cmp eax, 0x17
jne 0x47dad3
lea ecx, [eax - 7]
push esi
sub eax, 2
je 0x47daa1
sub eax, 0x15
je 0x47da93
push 0x273f
call dword [sym.imp.KERNEL32.dll_SetLastError]
or esi, 0xffffffff
jmp 0x47dab7
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0047dfd0
jmp 0x47daad
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0047dc50
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
jne 0x47dac7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x47dac7
xor eax, eax
pop esi
pop ebp
ret
sar esi, 0x1f
and esi, 0xfffffffe
lea eax, [esi + 1]
pop esi
pop ebp
ret
push 0x273f
call dword [sym.imp.KERNEL32.dll_SetLastError]
or eax, 0xffffffff
pop ebp
ret

Function at 0x47e7e0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push edi
xor edi, edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
cmp dword [ebp + 0x10], edi
jle 0x47e854
push ebx
movzx ebx, cl
push esi
movzx ecx, dl
inc bl
mov dh, bl
movzx ebx, dh
mov dl, byte [ebx + eax]
add cl, dl
movzx esi, cl
mov byte [ebp + 0xb], cl
mov dword [ebp - 4], esi
movzx ecx, byte [esi + eax]
mov byte [ebx + eax], cl
mov byte [esi + eax], dl
movzx ecx, byte [ebx + eax]
mov esi, dword [ebp + 0xc]
add cl, dl
movzx ecx, cl
movzx ecx, byte [ecx + eax]
xor byte [edi + esi], cl
inc edi
mov ecx, dword [ebp - 4]
cmp edi, dword [ebp + 0x10]
jl 0x47e803
mov cl, byte [ebp + 0xb]
pop esi
pop ebx
mov byte [eax + 0x100], dh
mov byte [eax + 0x101], cl
pop edi
mov esp, ebp
pop ebp
ret
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x47ecb0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jg 0x47ecd3
push 0x2726
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
xor ecx, ecx
push esi
test edi, edi
jle 0x47ed7b
mov esi, dword [ebp + 0xc]
add esi, 4
mov edx, esi
mov eax, bind
sub eax, ebx
cmp dword [edx], eax
ja 0x47ed66
add ebx, dword [edx]
inc ecx
add edx, 8
mov dword [ebp + 0x10], ebx
cmp ecx, edi
jl 0x47ece6
test ebx, ebx
je 0x47ed7b
push ebx
call dword [0x501144]
add esp, 4
mov dword [ebp - 4], eax
test eax, eax
jne 0x47ed25
push 0xc
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
pop edi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, eax
push dword [esi]
push dword [esi - 4]
push ebx
call fcn.0049d000
add ebx, dword [esi]
lea esi, [esi + 8]
add esp, 0xc
sub edi, 1
jne 0x47ed27
mov ebx, dword [ebp + 0x10]
push edi
mov edi, dword [ebp - 4]
push ebx
push edi
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_send]
push edi
mov esi, eax
call dword [0x50114c]
add esp, 4
mov eax, esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x2726
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
pop edi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47f2b0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
movzx ecx, word [ebx]
mov eax, ecx
sub eax, 2
je 0x47f2d4
sub eax, 0x15
je 0x47f2cb
xor eax, eax
pop ebx
pop ebp
ret
mov dword [ebp + 0xc], 0x1c
jmp 0x47f2db
mov dword [ebp + 0xc], 0x10
push esi
push edi
mov edi, dword [ebp + 8]
push 0x11
push 2
push ecx
push edi
call fcn.0047aa70
mov esi, eax
add esp, 0x10
cmp esi, 0xffffffff
jne 0x47f310
call fcn.004a76c0
pop edi
pop esi
pop ebx
mov eax, dword [eax]
sub eax, 0x273f
neg eax
sbb eax, eax
pop ebp
ret
push dword [ebp + 0xc]
push ebx
push esi
push edi
call fcn.0047a9d0
add esp, 0x10
cmp eax, 0xffffffff
jne 0x47f341
call fcn.004a76c0
cmp dword [eax], 0x2714
je 0x47f310
push esi
push edi
call fcn.0047a9a0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0x10]
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
push esi
push edi
test eax, eax
je 0x47f365
call fcn.0047a9a0
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
pop ebp
ret
call fcn.0047a9a0
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
pop ebp
ret