joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100b5580
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.100b55e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x100b55db
lea eax, [ebp - 4]
push eax
push 2
push esi
push str.SYSTEMCurrentControlSetServicesTcpipParameters
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100b55d9
push 4
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 4
push esi
push str.DisableTaskOffload
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100b55e0
Capabilities:
Create service
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x43c
mov eax, dword [0x10163164]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor bl, bl
push edi
push 0x1011da50
mov dword [ebp - 0x434], eax
xor esi, esi
lea eax, [ebp - 0x414]
mov dword [ebp - 0x43c], 0
push 0x104
push eax
call fcn.100b5e80
mov eax, dword [ebp - 0x434]
add esp, 0x10
push edi
test eax, eax
je 0x100b5651
push eax
push str._S_S.sys
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.100b5e80
add esp, 0x14
jmp 0x100b566a
push str.system32drivers_S.sys
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.100b5e80
add esp, 0x10
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0x434], eax
test eax, eax
jne 0x100b5697
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100b8868
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
lea ecx, [ebp - 0x43c]
push ecx
push 0x1011da9c
lea ecx, [ebp - 0x20c]
push ecx
push 1
push 1
push 1
push 0xf01ff
lea ecx, [ebp - 0x414]
push ecx
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
test byte [0x1017326c], 8
mov dword [ebp - 0x438], eax
je 0x100b5706
test eax, eax
je 0x100b56eb
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov bl, 1
jmp 0x100b57bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x431
jne 0x100b57bf
mov bl, 1
jmp 0x100b57bf
test eax, eax
je 0x100b573c
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
movzx ebx, bl
mov ecx, 1
cmovne ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x438]
mov esi, eax
mov eax, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call eax
jmp 0x100b57bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x431
jne 0x100b57bf
push 0x14
push edi
push dword [ebp - 0x434]
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
mov dword [ebp - 0x438], esi
test esi, esi
je 0x100b57b6
lea eax, [ebp - 0x430]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x100b5786
cmp dword [ebp - 0x42c], 4
jne 0x100b5786
mov bl, 1
jmp 0x100b579e
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
movzx ebx, bl
mov edx, 1
cmovne ebx, edx
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
push dword [ebp - 0x438]
mov esi, eax
mov eax, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call eax
jmp 0x100b57bf
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov esi, eax
push dword [ebp - 0x434]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0
push edi
call fcn.100b5a80
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
xor eax, eax
test bl, bl
pop edi
setne al
xor ecx, ebp
pop esi
dec eax
pop ebx
call fcn.100b8868
mov esp, ebp
pop ebp
ret
Function at 0x100b5800
Capabilities:
Delete service
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
xor bl, bl
push edi
push 1
push esi
mov byte [ebp - 1], bl
call fcn.100b5a80
add esp, 8
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x100b5879
push 0x10000
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
test ebx, ebx
je 0x100b5865
push ebx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
mov bl, 1
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x100b5881
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov bl, byte [ebp - 1]
mov esi, eax
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x100b5881
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [ebp - 8]
push eax
push 2
push 0
push str.SYSTEMCurrentControlSetServicesTcpipParameters
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100b58c8
push 4
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 4
push 0
push str.DisableTaskOffload
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test bl, bl
pop edi
setne al
pop esi
dec eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100b5960
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x10163164]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [str.NDIS]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0xc], eax
movzx eax, byte [0x1011dab0]
mov byte [ebp - 8], al
mov eax, dword [str.tcpip]
mov dword [ebp - 0x14], eax
mov ax, word [0x1011dab8]
mov word [ebp - 0x10], ax
movzx eax, byte [0x1011daba]
mov byte [ebp - 0xe], al
mov eax, dword [str.PNP_TDI]
push ecx
mov dword [ebp - 0x1c], eax
mov eax, dword [0x1011dac0]
push str.SYSTEMCurrentControlSetServices_s
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x120]
push 0x104
push eax
call fcn.100b5e40
add esp, 0x10
lea eax, [ebp - 0x124]
push eax
push 3
push 0
lea eax, [ebp - 0x120]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x100b59ff
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100b8868
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0xc], 0
push esi
je 0x100b5a3c
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [ebp - 0xc]
push 5
push eax
push 1
push 0
push str.Group
push dword [ebp - 0x124]
call esi
push 7
lea eax, [ebp - 0x14]
push eax
push 7
push 0
push str.DependOnService
push dword [ebp - 0x124]
call esi
jmp 0x100b5a57
push 8
lea eax, [ebp - 0x1c]
push eax
push 1
push 0
push str.Group
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x124]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
test esi, esi
pop esi
sete al
xor ecx, ebp
call fcn.100b8868
mov esp, ebp
pop ebp
ret
Function at 0x100b6b52
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov esi, dword [ebp + 0xc]
neg eax
sbb eax, eax
xor ecx, ecx
and eax, dword [ebp - 4]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.100b6b2e
pop esi
leave
ret 8

Function at 0x100ba1a0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push 0x1013c2d4
mov dword [0x10173c50], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x10173c50], eax
test eax, eax
jne 0x100ba1c4
mov eax, 0x16
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1013c2f0
push eax
call esi
mov dword [0x10173c38], eax
test eax, eax
jne 0x100ba1ef
push dword [0x10173c50]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 0x17
pop esi
ret
push str.GetAdaptersAddresses
push dword [0x10173c50]
call esi
push str.GetBestRoute2
push dword [0x10173c50]
mov dword [0x10173c40], eax
call esi
push str.advapi32.dll
mov dword [0x10173c44], eax
mov dword [0x10173c54], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x10173c54], eax
test eax, eax
je 0x100ba23e
push str.SystemFunction036
push eax
call esi
mov dword [0x10173c3c], eax
xor eax, eax
pop esi
ret

Function at 0x100ba250
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x10163164]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x94
lea eax, [ebp - 0x98]
push 0
push eax
call fcn.100c2fd0
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 0x100ba2b0
cmp dword [ebp - 0x94], 6
jb 0x100ba2b0
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100b8868
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.100b8868
mov esp, ebp
pop ebp
ret

Function at 0x100bb0d0
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 0x100bb106
cmp eax, 0xea
jne 0x100bb160
mov eax, dword [ebp - 4]
test eax, eax
je 0x100bb160
inc eax
push eax
call dword [0x10163180]
add esp, 4
mov dword [esi], eax
test eax, eax
je 0x100bb160
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 0x100bb14f
mov ecx, dword [ebp - 4]
cmp ecx, 1
je 0x100bb14f
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 [0x10163188]
add esp, 4
mov dword [esi], 0
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100bb170
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 0x100bb1b1
cmp eax, 0xea
jne 0x100bb20d
mov eax, dword [ebp - 4]
test eax, eax
je 0x100bb20d
inc eax
push eax
call dword [0x10163180]
add esp, 4
mov dword [esi], eax
test eax, eax
je 0x100bb20d
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 0x100bb1fc
mov ecx, dword [ebp - 4]
cmp ecx, 1
je 0x100bb1fc
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 [0x10163188]
add esp, 4
mov dword [esi], 0
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100bb5c0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x10163164]
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 0x100bb727
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 0x100bb6f4
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 0x100bb67b
cmp eax, 0xea
jne 0x100bb6dc
mov eax, dword [ebp - 0x108]
test eax, eax
je 0x100bb6dc
inc eax
push eax
call dword [0x10163180]
add esp, 4
mov dword [edi], eax
test eax, eax
je 0x100bb6dc
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 0x100bb6cb
mov ecx, dword [ebp - 0x108]
cmp ecx, 1
je 0x100bb6cb
mov eax, dword [edi]
mov esi, 1
mov byte [ecx + eax], 0
jmp 0x100bb6de
push dword [edi]
call dword [0x10163188]
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 0x100bb727
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 0x100bb627
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.100b8868
mov esp, ebp
pop ebp
ret
Function at 0x100bc0e0
Capabilities:
Connect socket

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10163164]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0x10]
cmp dword [esi + 0x91b8], 0
je 0x100bc45e
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100b8868
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 0x100bc4a2
push 4
push eax
push 0x1001
push 0xffff
push edi
call ebx
cmp eax, 0xffffffff
je 0x100bc55b
cmp dword [esi + 0x20], 0
lea eax, [esi + 0x20]
jle 0x100bc4c4
push 4
push eax
push 0x1002
push 0xffff
push edi
call ebx
cmp eax, 0xffffffff
je 0x100bc55b
mov eax, dword [ebp + 0xc]
cmp eax, 2
jne 0x100bc4f1
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x100bc514
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 0x100bc54c
cmp eax, 0x17
jne 0x100bc514
lea ebx, [esi + 0x60]
mov edx, 0x1013c558
mov ecx, ebx
lea esi, [eax - 0xb]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x100bc527
add ecx, 4
add edx, 4
sub esi, 4
jae 0x100bc503
pop edi
pop ebx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100b8868
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 0x100bc514
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop ebx
xor ecx, ebp
pop esi
call fcn.100b8868
mov esp, ebp
pop ebp
ret
Function at 0x100bd8d0
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 0x100bd8ea
cmp edx, 0xffffffff
je 0x100bdaa1
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
cmp dword [ebx + 0x78], 0
jle 0x100bdaa0
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 0x100bda8b
mov eax, dword [edi + 0x20]
cmp eax, 0xffffffff
je 0x100bda88
cmp dword [edi + 0x54], 0
jne 0x100bda88
test esi, esi
je 0x100bd985
push esi
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x100bda85
mov edx, dword [esi]
xor eax, eax
test edx, edx
je 0x100bd98d
mov ecx, dword [ebp + 0xc]
mov esi, dword [edi + 0x20]
add ecx, 4
cmp dword [ecx], esi
je 0x100bd95e
inc eax
add ecx, 4
cmp eax, edx
jb 0x100bd950
jmp 0x100bd98d
mov esi, dword [ebp + 0xc]
lea ecx, [edx - 1]
cmp eax, ecx
jae 0x100bd981
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 0x100bd970
dec dword [esi]
jmp 0x100bd98d
cmp eax, edx
jne 0x100bda88
mov eax, dword [edi + 0x38]
xor ecx, ecx
test eax, eax
je 0x100bd99e
mov eax, dword [eax + 0x10]
inc ecx
test eax, eax
jne 0x100bd996
lea eax, [ecx*8]
push eax
call dword [0x10163180]
mov esi, eax
add esp, 4
test esi, esi
je 0x100bda34
mov ecx, dword [edi + 0x38]
xor edx, edx
test ecx, ecx
je 0x100bd9d6
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 0x100bd9c2
mov ecx, dword [ebx + 0x91b8]
mov eax, dword [edi + 0x20]
test ecx, ecx
je 0x100bd9f6
push dword [ebx + 0x91bc]
push edx
push esi
push eax
mov eax, dword [ecx + 0x10]
call eax
add esp, 0x10
jmp 0x100bda01
push edx
push esi
push eax
call fcn.100c0470
add esp, 0xc
push esi
mov edi, eax
call dword [0x10163188]
add esp, 4
test edi, edi
jns 0x100bda31
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0xb
je 0x100bda82
cmp eax, 0x2733
je 0x100bda82
push dword [ebp + 0x14]
push dword [ebp - 4]
push ebx
call fcn.100bc6c0
jmp 0x100bda7f
push edi
jmp 0x100bda76
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 0x100bda66
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 0x100bda71
push 0
push ecx
push eax
push edx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
js 0x100bda11
push eax
push dword [ebp - 4]
push ebx
call fcn.100bc020
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 0x100bd907
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100be280
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 [0x10163164]
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 0x100be2b9
push str.CARES_HOSTS
call fcn.100cfe2e
add esp, 4
test eax, eax
jne 0x100be38b
mov byte [ebp - 0x108], 0
call fcn.100be920
cmp eax, 3
jne 0x100be340
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 0x100be35b
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 0x100be35b
cmp eax, 2
jne 0x100be463
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 0x100be362
mov eax, dword [str.hosts]
mov dword [ecx], eax
mov ax, word [0x1013c2cc]
mov word [ecx + 4], ax
mov al, byte [0x1013c2ce]
mov byte [ecx + 6], al
lea eax, [ebp - 0x108]
push edi
push 0x1013c2d0
push eax
call fcn.100cda3d
mov edi, eax
add esp, 8
test edi, edi
jne 0x100be3c9
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.100b8868
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.100c0f60
push edi
mov dword [ebp - 0x210], eax
call fcn.100c5f7d
mov eax, dword [ebp - 0x210]
add esp, 0x18
cmp eax, 4
jne 0x100be3b8
mov edi, dword [esi + 4]
mov edx, str.localhost
mov ecx, edi
nop
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x100be420
test al, al
je 0x100be41c
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x100be420
add ecx, 2
add edx, 2
test al, al
jne 0x100be400
xor eax, eax
jmp 0x100be425
sbb eax, eax
or eax, 1
test eax, eax
jne 0x100be44c
push dword [esi + 0x30]
movzx eax, word [esi + 8]
push ebx
push eax
push edi
call fcn.100c1470
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100b8868
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.100b8868
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 4
pop esi
xor ecx, ebp
pop ebx
call fcn.100b8868
mov esp, ebp
pop ebp
ret
Function at 0x100bf220
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp eax, 2
jne 0x100bf230
lea ecx, [eax + 2]
jmp 0x100bf238
cmp eax, 0x17
jne 0x100bf293
lea ecx, [eax - 7]
push esi
sub eax, 2
je 0x100bf261
sub eax, 0x15
je 0x100bf253
push 0x273f
call dword [sym.imp.KERNEL32.dll_SetLastError]
or esi, 0xffffffff
jmp 0x100bf277
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.100bf790
jmp 0x100bf26d
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.100bf410
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
jne 0x100bf287
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x100bf287
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 0x100bffa0
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 0x100c0014
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 0x100bffc3
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