joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1006fc60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xe0
mov eax, dword [0x10105230]
xor eax, esp
mov dword [esp + 0xdc], eax
push esi
push edi
mov edi, dword [ebp + 8]
call fcn.1006f560
push ecx
lea ecx, [esp + 0xc]
call fcn.100045c0
mov edx, str._TID:
lea ecx, [esp + 0x18]
call fcn.10006770
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
mov ecx, esi
call fcn.1001ec80
mov edx, 0x100ec450
mov ecx, eax
call fcn.10006770
movaps xmm0, xmmword [0x100efdd0]
mov esi, eax
movups xmmword [esp + 0xbc], xmm0
mov dword [esp + 0xcc], 0x7f2b2a
xor ecx, ecx
nop word [eax + eax]
mov al, byte [esp + ecx + 0xbd]
xor al, byte [esp + 0xbc]
mov byte [esp + ecx + 0xd0], al
inc ecx
cmp ecx, 0x12
jb 0x1006fce0
lea edx, [esp + 0xd0]
mov byte [esp + 0xe2], 0
mov ecx, esi
call fcn.10006770
mov edx, 0x100ef384
mov ecx, eax
call fcn.10006770
call fcn.100037a0
mov esi, eax
lea ecx, [esp + 8]
lea eax, [esp + 0xbc]
push eax
call fcn.100044d0
cmp dword [eax + 0x14], 0x10
jb 0x1006fd3d
mov eax, dword [eax]
sub esp, 8
mov ecx, esi
push eax
push 2
call fcn.10003ef0
mov ecx, dword [esp + 0xd0]
cmp ecx, 0x10
jb 0x1006fd86
mov edx, dword [esp + 0xbc]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1006fd7c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006fe01
push ecx
push edx
call fcn.1009517b
add esp, 8
lea ecx, [esp + 8]
call fcn.10004400
mov eax, dword fs:[0x2c]
mov ecx, dword [0x1010e0b4]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x1010f408]
cmp eax, dword [ecx + 4]
jle 0x1006fde0
push 0x1010f408
call fcn.10095305
add esp, 4
cmp dword [0x1010f408], 0xffffffff
jne 0x1006fde0
call fcn.10038300
push 0x100da620
call fcn.10095166
add esp, 4
push 0x1010f408
call fcn.100952bb
add esp, 4
push edi
mov ecx, 0x1010f410
call fcn.100387c0
mov ecx, dword [esp + 0xe4]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.10094e23
mov esp, ebp
pop ebp
ret
call fcn.100a129f
int3
Function at 0x1008d2b0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d86f1
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x10105230]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], vtable.nfapi::EventQueue_class_nfapi::NFEvent_.0
push 0x18
mov dword [edi + 4], 0
mov dword [edi + 8], 0
call fcn.10094e31
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [edi + 4], eax
lea esi, [edi + 0xc]
mov dword [ebp - 4], 0
push 0x20
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.10094e31
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
lea esi, [edi + 0x14]
mov byte [ebp - 4], 1
push 0x20
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.10094e31
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
lea esi, [edi + 0x1c]
mov byte [ebp - 4], 2
push 0x18
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.10094e31
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
lea esi, [edi + 0x24]
mov byte [ebp - 4], 3
push 0x18
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.10094e31
add esp, 0x14
mov dword [eax], eax
push 0
push 0
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
push 0
mov dword [esi], eax
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
mov dword [edi + 0x2c], 0xffffffff
call esi
push 0
push 0
mov dword [edi + 0x2c], eax
push 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
push 0
mov dword [edi + 0x44], 0xffffffff
call esi
mov dword [edi + 0x44], eax
mov dword [edi + 0x48], 0xffffffff
push 0
push 0
push 1
push 0
call esi
lea ecx, [edi + 0x50]
mov dword [edi + 0x48], eax
xorps xmm0, xmm0
mov dword [edi + 0x34], 0
movups xmmword [ecx], xmm0
movq qword [ecx + 0x10], xmm0
call fcn.1008dae0
mov dword [edi + 0x4c], 1
mov eax, edi
mov byte [edi + 0x30], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1008d450
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d86f1
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x10105230]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], vtable.nfapi::EventQueue_class_nfapi::NFEventOut_.0
push 0x18
mov dword [edi + 4], 0
mov dword [edi + 8], 0
call fcn.10094e31
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [edi + 4], eax
lea esi, [edi + 0xc]
mov dword [ebp - 4], 0
push 0x20
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.10094e31
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
lea esi, [edi + 0x14]
mov byte [ebp - 4], 1
push 0x20
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.10094e31
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
lea esi, [edi + 0x1c]
mov byte [ebp - 4], 2
push 0x18
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.10094e31
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
lea esi, [edi + 0x24]
mov byte [ebp - 4], 3
push 0x18
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.10094e31
add esp, 0x14
mov dword [eax], eax
push 0
push 0
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
push 0
mov dword [esi], eax
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
mov dword [edi + 0x2c], 0xffffffff
call esi
push 0
push 0
mov dword [edi + 0x2c], eax
push 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
push 0
mov dword [edi + 0x44], 0xffffffff
call esi
mov dword [edi + 0x44], eax
mov dword [edi + 0x48], 0xffffffff
push 0
push 0
push 1
push 0
call esi
lea ecx, [edi + 0x50]
mov dword [edi + 0x48], eax
xorps xmm0, xmm0
mov dword [edi + 0x34], 0
movups xmmword [ecx], xmm0
movq qword [ecx + 0x10], xmm0
call fcn.1008dae0
mov dword [edi + 0x4c], 1
mov eax, edi
mov byte [edi + 0x30], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1008f3b0
Capabilities:
Create thread
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
push edi
mov edi, ecx
push dword [edi + 0x14]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [edi], eax
test esi, esi
jg 0x1008f3f0
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov esi, dword [ebp - 0x14]
test esi, esi
jne 0x1008f3e7
mov esi, 1
jmp 0x1008f3f0
jle 0x1008f436
nop dword [eax]
lea eax, [ebp - 4]
push eax
push 0
push edi
push 0x1008e1a0
push 0
push 0
call fcn.100aca12
add esp, 0x18
mov dword [ebp + 0xc], eax
test eax, eax
je 0x1008f431
cmp eax, 0xffffffff
je 0x1008f431
mov edx, dword [edi + 8]
lea ecx, [edi + 4]
cmp edx, dword [ecx + 8]
je 0x1008f427
mov dword [edx], eax
add dword [ecx + 4], 4
jmp 0x1008f431
lea eax, [ebp + 0xc]
push eax
push edx
call fcn.1008cda0
sub esi, 1
jne 0x1008f3f0
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x1008f6a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1010508c]
push esi
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x14], eax
mov eax, dword [0x10105088]
mov dword [ebp - 4], 0
test byte [esi + 0x12], 1
mov dword [ebp - 0x10], eax
je 0x1008f6ce
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ecx, ecx
mov dword [ebp - 8], ecx
lea ebx, [edi + 0x16]
lea eax, [ebx + 0x10]
mov dword [ebp - 0xc], eax
cmp ecx, dword [0x1010db90]
jb 0x1008f6ff
ja 0x1008f6f3
cmp eax, dword [0x1010db8c]
jbe 0x1008f6ff
pop edi
pop ebx
mov eax, 0xfffffffc
pop esi
mov esp, ebp
pop ebp
ret
cmp byte [0x1010db28], cl
je 0x1008f84c
cmp dword [0x10105094], 0xffffffff
je 0x1008f84c
mov eax, dword [0x1010db84]
or eax, dword [0x1010db88]
je 0x1008f84c
push 0x1010da0c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x1010db84]
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov dword [ecx], eax
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], ebx
movups xmm0, xmmword [esi]
movups xmmword [ecx + 0x10], xmm0
mov eax, dword [esi + 0x10]
mov dword [ecx + 0x20], eax
mov ax, word [esi + 0x14]
mov word [ecx + 0x24], ax
lea eax, [ecx + 0x26]
push eax
call fcn.100971a0
mov eax, dword [0x1010508c]
add esp, 0xc
mov dword [ebp - 0x18], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x28]
movlpd qword [ebp - 0x28], xmm0
movlpd qword [ebp - 0x20], xmm0
push eax
push 0
push 8
lea eax, [ebp - 0xc]
push eax
push dword [0x10105094]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1008f7cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x1008f7cc
push 0x1010da0c
mov esi, 0xfffffffc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebx
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x14]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x1008f7f1
push eax
push dword [0x10105088]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1008f814
push dword [0x10105094]
call dword [sym.imp.KERNEL32.dll_CancelIo]
push 0x1010da0c
or esi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebx
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x28]
push eax
push dword [0x10105094]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x1008f7fd
mov esi, dword [ebp - 4]
neg esi
push 0x1010da0c
sbb esi, esi
neg esi
dec esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebx
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
pop ebx
mov eax, 0xfffffffd
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1008f860
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1010508c]
xor ecx, ecx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [0x10105088]
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0xc]
add eax, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ecx
cmp ecx, dword [0x1010db90]
jb 0x1008f8ab
ja 0x1008f8a1
cmp eax, dword [0x1010db8c]
jbe 0x1008f8ab
mov eax, 0xfffffffc
pop esi
mov esp, ebp
pop ebp
ret
cmp byte [0x1010db28], cl
je 0x1008f9c3
cmp dword [0x10105094], 0xffffffff
je 0x1008f9c3
mov eax, dword [0x1010db84]
or eax, dword [0x1010db88]
je 0x1008f9c3
push 0x1010da0c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [ebp - 0xc]
push esi
push dword [0x1010db84]
call fcn.100971a0
mov eax, dword [0x1010508c]
add esp, 0xc
mov dword [ebp - 0x18], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x28]
movlpd qword [ebp - 0x28], xmm0
movlpd qword [ebp - 0x20], xmm0
push eax
push 0
push 8
lea eax, [ebp - 0xc]
push eax
push dword [0x10105094]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1008f947
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x1008f947
push 0x1010da0c
mov esi, 0xfffffffc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x14]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x1008f96c
push eax
push dword [0x10105088]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1008f98d
push dword [0x10105094]
call dword [sym.imp.KERNEL32.dll_CancelIo]
push 0x1010da0c
or esi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x28]
push eax
push dword [0x10105094]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x1008f978
mov esi, dword [ebp - 4]
neg esi
push 0x1010da0c
sbb esi, esi
neg esi
dec esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 0xfffffffd
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10090db0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 4]
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 0x10090df6
push 4
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 4
push 0
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 al, 1
mov esp, ebp
pop ebp
ret

Function at 0x10090fa0
Capabilities:
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x10105230]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push eax
push str.SYSTEMCurrentControlSetServices_s
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.100918d0
add esp, 0x10
lea eax, [ebp - 0x10c]
push eax
push 3
push 0
lea eax, [ebp - 0x108]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x10091006
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10094e23
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 8], 0
je 0x1009103a
lea eax, [ebp - 0x110]
mov dword [ebp - 0x110], 4
push eax
push esi
lea eax, [ebp - 0x114]
push eax
push 0
push 0x100df320
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
jmp 0x10091052
push 4
push esi
push 4
push 0
push 0x100df324
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x10c]
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.10094e23
mov esp, ebp
pop ebp
ret
Function at 0x10091080
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 4]
push eax
push 3
push 0
push str.SYSTEMCurrentControlSetControlGroupOrderList
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x100910a8
xor al, al
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 8], 0
push esi
push edi
je 0x10091137
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 8]
push edi
push 0
push eax
push 0
push 0x100df358
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100910e9
mov eax, dword [edi]
add eax, 4
push eax
call fcn.100a7ef7
mov esi, dword [ebp + 0xc]
add esp, 4
mov dword [esi], eax
test eax, eax
jne 0x100910fa
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
push edi
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x100df360
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
test edi, edi
je 0x10091168
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [esi]
call fcn.100a21a6
add esp, 4
mov dword [esi], 0
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0x10]
mov edx, dword [esi]
cmp edx, 4
jbe 0x10091147
shr edx, 2
dec edx
jmp 0x10091149
xor edx, edx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
mov dword [eax], edx
push dword [esi]
push dword [ecx]
push 3
push 0
push str.PNP_TDI
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
sete al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10091180
Capabilities:
Create service
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x43c
mov eax, dword [0x10105230]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor bl, bl
push edi
push eax
push 0x100df208
mov dword [ebp - 0x434], eax
xor edi, edi
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x43c], 0
push 0x104
push eax
call fcn.10091910
test esi, esi
mov eax, esi
mov ecx, 0x100df210
cmove eax, dword [ebp - 0x434]
push eax
mov eax, str.system32drivers_S.sys
cmovne eax, ecx
push eax
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.10091910
add esp, 0x20
push 0xf003f
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0x438], eax
test eax, eax
jne 0x10091220
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10094e23
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
lea ecx, [ebp - 0x43c]
push ecx
push 0x100df248
lea ecx, [ebp - 0x414]
push ecx
push 1
push 3
push 1
push 0xf01ff
lea ecx, [ebp - 0x20c]
push ecx
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
test byte [0x1010d9ec], 8
mov esi, eax
je 0x10091291
test esi, esi
je 0x10091270
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov bl, 1
jmp 0x10091341
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
cmp edi, 0x431
jne 0x10091347
mov bl, 1
jmp 0x10091347
test esi, esi
je 0x100912c3
push 0
push 0
push esi
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 esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
call esi
jmp 0x10091347
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x431
jne 0x10091341
push 0x14
push dword [ebp - 0x434]
push dword [ebp - 0x438]
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x10091338
lea eax, [ebp - 0x430]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x1009130c
cmp dword [ebp - 0x42c], 4
jne 0x1009130c
mov bl, 1
jmp 0x10091324
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 esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
call esi
jmp 0x10091347
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov edi, eax
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 0x438]
call esi
push 0
push dword [ebp - 0x434]
call fcn.10091520
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
pop edi
movzx eax, bl
xor ecx, ebp
pop esi
dec eax
pop ebx
call fcn.10094e23
mov esp, ebp
pop ebp
ret
Function at 0x10091400
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x10105230]
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 [0x100df25c]
mov byte [ebp - 8], al
mov eax, dword [str.tcpip]
mov dword [ebp - 0x14], eax
mov ax, word [0x100df264]
push ecx
mov word [ebp - 0x10], ax
movzx eax, byte [0x100df266]
push 0x100df270
mov byte [ebp - 0xe], al
lea eax, [ebp - 0x120]
push 0x104
push eax
mov dword [ebp - 0x1c], 0x5f504e50
mov dword [ebp - 0x18], 0x494454
call fcn.100918d0
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 0x1009149d
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10094e23
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0xc], 0
push esi
je 0x100914da
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [ebp - 0xc]
push 5
push eax
push 1
push 0
push 0x100df298
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 0x100914f5
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.10094e23
mov esp, ebp
pop ebp
ret
Function at 0x10092db2
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.10092d8e
pop esi
leave
ret 8

Function at 0x100b405f
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100e44e4
push 0x100e44dc
push str.FlsAlloc
push 0x1e
call fcn.100b3e8c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100b4093
push dword [ebp + 8]
mov ecx, esi
call dword [0x100dc3e8]
call esi
jmp 0x100b4099
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100b40dd
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100e44f4
push 0x100e44ec
push str.FlsGetValue
push 0x20
call fcn.100b3e8c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100b4114
push dword [ebp + 8]
mov ecx, esi
call dword [0x100dc3e8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]