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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x4fa480], eax
je 0x46c70d
mov eax, 0x10dd
jmp 0x46c7f0
mov eax, dword [0x4fa490]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x46c78c
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 0x46c768
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x46c768
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.0046b590
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.00467803
add esp, 8
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x46c715
mov dword [0x4fa490], 0
call fcn.0046be70
mov ecx, dword [0x4fa48c]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x46c7da
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.00467803
add esp, 8
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
jmp 0x46c7a4
mov dword [0x4fa48c], 0
mov dword [0x4fa480], 0
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x46ccd0
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x4fa484], 0
je 0x46cce9
mov eax, dword [0x4fa484]
jmp 0x46cd88
call sub.KERNEL32.dll_GetCurrentThread
cmp dword [ebp + 8], eax
jne 0x46ccfa
xor eax, eax
jmp 0x46cd88
push 8
call fcn.004677d0
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x46cd52
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x46cd3b
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
push 8
mov edx, dword [ebp - 0x10]
push edx
call fcn.00467803
add esp, 8
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x4fa484], eax
mov dword [0x4fa488], 0
mov eax, dword [ebp - 8]
jmp 0x46cd88
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x46cd6a
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x46cd1a
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x4fa48c]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x4fa48c], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x46e2f0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push str.iphlpapi.dll
mov dword [0x4fa4ac], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x4fa4ac], eax
test eax, eax
jne 0x46e314
mov eax, 0x16
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetNetworkParams
push eax
call esi
mov dword [0x4fa494], eax
test eax, eax
jne 0x46e33f
push dword [0x4fa4ac]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 0x17
pop esi
ret
push str.GetAdaptersAddresses
push dword [0x4fa4ac]
call esi
push str.GetBestRoute2
push dword [0x4fa4ac]
mov dword [0x4fa49c], eax
call esi
push str.advapi32.dll
mov dword [0x4fa4a0], eax
mov dword [0x4fa4b0], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x4fa4b0], eax
test eax, eax
je 0x46e38e
push str.SystemFunction036
push eax
call esi
mov dword [0x4fa498], eax
xor eax, eax
pop esi
ret

Function at 0x46e3a0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x4f600c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x94
lea eax, [ebp - 0x98]
push 0
push eax
call fcn.004924b0
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 0x46e400
cmp dword [ebp - 0x94], 6
jb 0x46e400
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00467552
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.00467552
mov esp, ebp
pop ebp
ret

Function at 0x46f210
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 0x46f246
cmp eax, 0xea
jne 0x46f2a0
mov eax, dword [ebp - 4]
test eax, eax
je 0x46f2a0
inc eax
push eax
call dword [0x4f6094]
add esp, 4
mov dword [esi], eax
test eax, eax
je 0x46f2a0
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 0x46f28f
mov ecx, dword [ebp - 4]
cmp ecx, 1
je 0x46f28f
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 [0x4f609c]
add esp, 4
mov dword [esi], 0
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x46f2b0
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 0x46f2f1
cmp eax, 0xea
jne 0x46f34d
mov eax, dword [ebp - 4]
test eax, eax
je 0x46f34d
inc eax
push eax
call dword [0x4f6094]
add esp, 4
mov dword [esi], eax
test eax, eax
je 0x46f34d
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 0x46f33c
mov ecx, dword [ebp - 4]
cmp ecx, 1
je 0x46f33c
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 [0x4f609c]
add esp, 4
mov dword [esi], 0
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x46f700
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4f600c]
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 0x46f867
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 0x46f834
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 0x46f7bb
cmp eax, 0xea
jne 0x46f81c
mov eax, dword [ebp - 0x108]
test eax, eax
je 0x46f81c
inc eax
push eax
call dword [0x4f6094]
add esp, 4
mov dword [edi], eax
test eax, eax
je 0x46f81c
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 0x46f80b
mov ecx, dword [ebp - 0x108]
cmp ecx, 1
je 0x46f80b
mov eax, dword [edi]
mov esi, 1
mov byte [ecx + eax], 0
jmp 0x46f81e
push dword [edi]
call dword [0x4f609c]
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 0x46f867
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 0x46f767
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.00467552
mov esp, ebp
pop ebp
ret
Function at 0x470220
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x91b8]
test ecx, ecx
je 0x470249
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 0x470570
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4f600c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0x10]
cmp dword [esi + 0x91b8], 0
je 0x47059e
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00467552
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 0x4705e2
push 4
push eax
push 0x1001
push 0xffff
push edi
call ebx
cmp eax, 0xffffffff
je 0x47069b
cmp dword [esi + 0x20], 0
lea eax, [esi + 0x20]
jle 0x470604
push 4
push eax
push 0x1002
push 0xffff
push edi
call ebx
cmp eax, 0xffffffff
je 0x47069b
mov eax, dword [ebp + 0xc]
cmp eax, 2
jne 0x470631
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x470654
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 0x47068c
cmp eax, 0x17
jne 0x470654
lea ebx, [esi + 0x60]
mov edx, 0x4d61b4
mov ecx, ebx
lea esi, [eax - 0xb]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x470667
add ecx, 4
add edx, 4
sub esi, 4
jae 0x470643
pop edi
pop ebx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00467552
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 0x470654
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop ebx
xor ecx, ebp
pop esi
call fcn.00467552
mov esp, ebp
pop ebp
ret
Function at 0x470d30
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4f600c]
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 0x470daa
sub eax, 0x15
je 0x470d67
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00467552
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 0x470d94
push eax
jmp 0x470d97
push dword [esi + 0x14]
call fcn.00473a90
movups xmm0, xmmword [ebx + 4]
mov word [ebp - 0x1e], ax
movups xmmword [ebp - 0x18], xmm0
jmp 0x470ddd
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 0x470dcb
push eax
jmp 0x470dce
push dword [esi + 0x14]
call fcn.00473a90
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 0x470e01
push dword [esi + 0x91bc]
mov eax, dword [eax]
push 0
push 2
push ecx
call eax
add esp, 0x10
jmp 0x470e0c
push 0
push 2
push ecx
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x470ec2
push esi
push dword [ebx]
push edi
call fcn.00470570
add esp, 0xc
test eax, eax
jns 0x470e6f
mov eax, dword [esi + 0x91b8]
test eax, eax
je 0x470e54
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.00467552
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.00467552
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x91b0]
test eax, eax
je 0x470e8e
push dword [esi + 0x91b4]
push 2
push edi
call eax
add esp, 0xc
mov dword [ebp - 0x24], eax
test eax, eax
js 0x470ef5
push dword [ebp - 0x28]
lea eax, [ebp - 0x20]
push eax
push edi
push esi
call fcn.00470220
add esp, 0x10
cmp eax, 0xffffffff
jne 0x470ed6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2734
je 0x470ed6
cmp eax, 0x2733
je 0x470ed6
push edi
push esi
call fcn.004701f0
add esp, 8
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00467552
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x91a8]
test eax, eax
je 0x470f13
push dword [esi + 0x91ac]
push 2
push edi
call eax
add esp, 0xc
mov dword [ebp - 0x24], eax
test eax, eax
jns 0x470f13
push edi
push esi
call fcn.004701f0
mov eax, dword [ebp - 0x24]
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00467552
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x91a0]
test eax, eax
je 0x470f2d
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.00467552
mov esp, ebp
pop ebp
ret
Function at 0x471a10
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 0x471a2a
cmp edx, 0xffffffff
je 0x471be1
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
cmp dword [ebx + 0x78], 0
jle 0x471be0
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 0x471bcb
mov eax, dword [edi + 0x20]
cmp eax, 0xffffffff
je 0x471bc8
cmp dword [edi + 0x54], 0
jne 0x471bc8
test esi, esi
je 0x471ac5
push esi
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x471bc5
mov edx, dword [esi]
xor eax, eax
test edx, edx
je 0x471acd
mov ecx, dword [ebp + 0xc]
mov esi, dword [edi + 0x20]
add ecx, 4
cmp dword [ecx], esi
je 0x471a9e
inc eax
add ecx, 4
cmp eax, edx
jb 0x471a90
jmp 0x471acd
mov esi, dword [ebp + 0xc]
lea ecx, [edx - 1]
cmp eax, ecx
jae 0x471ac1
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 0x471ab0
dec dword [esi]
jmp 0x471acd
cmp eax, edx
jne 0x471bc8
mov eax, dword [edi + 0x38]
xor ecx, ecx
test eax, eax
je 0x471ade
mov eax, dword [eax + 0x10]
inc ecx
test eax, eax
jne 0x471ad6
lea eax, [ecx*8]
push eax
call dword [0x4f6094]
mov esi, eax
add esp, 4
test esi, esi
je 0x471b74
mov ecx, dword [edi + 0x38]
xor edx, edx
test ecx, ecx
je 0x471b16
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 0x471b02
mov ecx, dword [ebx + 0x91b8]
mov eax, dword [edi + 0x20]
test ecx, ecx
je 0x471b36
push dword [ebx + 0x91bc]
push edx
push esi
push eax
mov eax, dword [ecx + 0x10]
call eax
add esp, 0x10
jmp 0x471b41
push edx
push esi
push eax
call fcn.004744b0
add esp, 0xc
push esi
mov edi, eax
call dword [0x4f609c]
add esp, 4
test edi, edi
jns 0x471b71
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0xb
je 0x471bc2
cmp eax, 0x2733
je 0x471bc2
push dword [ebp + 0x14]
push dword [ebp - 4]
push ebx
call fcn.00470800
jmp 0x471bbf
push edi
jmp 0x471bb6
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 0x471ba6
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 0x471bb1
push 0
push ecx
push eax
push edx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
js 0x471b51
push eax
push dword [ebp - 4]
push ebx
call fcn.00470160
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 0x471a47
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x472300
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 [0x4f600c]
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 0x472339
push str.CARES_HOSTS
call fcn.004a0c5c
add esp, 4
test eax, eax
jne 0x47240b
mov byte [ebp - 0x108], 0
call fcn.004729a0
cmp eax, 3
jne 0x4723c0
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 0x4723db
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 0x4723db
cmp eax, 2
jne 0x4724e3
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 0x4723e2
mov eax, dword [str.hosts]
mov dword [ecx], eax
mov ax, word [0x4d5f3c]
mov word [ecx + 4], ax
mov al, byte [0x4d5f3e]
mov byte [ecx + 6], al
lea eax, [ebp - 0x108]
push edi
push 0x4d3784
push eax
call fcn.0049dfad
mov edi, eax
add esp, 8
test edi, edi
jne 0x472449
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.00467552
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.00474fa0
push edi
mov dword [ebp - 0x210], eax
call fcn.0049a05f
mov eax, dword [ebp - 0x210]
add esp, 0x18
cmp eax, 4
jne 0x472438
mov edi, dword [esi + 4]
mov edx, str.localhost
mov ecx, edi
nop
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x4724a0
test al, al
je 0x47249c
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x4724a0
add ecx, 2
add edx, 2
test al, al
jne 0x472480
xor eax, eax
jmp 0x4724a5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4724cc
push dword [esi + 0x30]
movzx eax, word [esi + 8]
push ebx
push eax
push edi
call fcn.004754b0
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00467552
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.00467552
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 4
pop esi
xor ecx, ebp
pop ebx
call fcn.00467552
mov esp, ebp
pop ebp
ret
Function at 0x473260
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp eax, 2
jne 0x473270
lea ecx, [eax + 2]
jmp 0x473278
cmp eax, 0x17
jne 0x4732d3
lea ecx, [eax - 7]
push esi
sub eax, 2
je 0x4732a1
sub eax, 0x15
je 0x473293
push 0x273f
call dword [sym.imp.KERNEL32.dll_SetLastError]
or esi, 0xffffffff
jmp 0x4732b7
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.004737d0
jmp 0x4732ad
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00473450
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
jne 0x4732c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x4732c7
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 0x473fe0
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 0x474054
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 0x474003
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 0x4744b0
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 0x4744d3
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 0x47457b
mov esi, dword [ebp + 0xc]
add esi, 4
mov edx, esi
mov eax, bind
sub eax, ebx
cmp dword [edx], eax
ja 0x474566
add ebx, dword [edx]
inc ecx
add edx, 8
mov dword [ebp + 0x10], ebx
cmp ecx, edi
jl 0x4744e6
test ebx, ebx
je 0x47457b
push ebx
call dword [0x4f6094]
add esp, 4
mov dword [ebp - 4], eax
test eax, eax
jne 0x474525
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.00492a90
add ebx, dword [esi]
lea esi, [esi + 8]
add esp, 0xc
sub edi, 1
jne 0x474527
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 [0x4f609c]
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 0x474ab0
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 0x474ad4
sub eax, 0x15
je 0x474acb
xor eax, eax
pop ebx
pop ebp
ret
mov dword [ebp + 0xc], 0x1c
jmp 0x474adb
mov dword [ebp + 0xc], 0x10
push esi
push edi
mov edi, dword [ebp + 8]
push 0x11
push 2
push ecx
push edi
call fcn.004702c0
mov esi, eax
add esp, 0x10
cmp esi, 0xffffffff
jne 0x474b10
call fcn.00499b4d
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.00470220
add esp, 0x10
cmp eax, 0xffffffff
jne 0x474b41
call fcn.00499b4d
cmp dword [eax], 0x2714
je 0x474b10
push esi
push edi
call fcn.004701f0
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 0x474b65
call fcn.004701f0
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
pop ebp
ret
call fcn.004701f0
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
pop ebp
ret