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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
mov eax, dword [0x1010f16c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 0x80]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push 0x7c
push 0
push eax
call fcn.100a8dc0
add esp, 0xc
mov dword [ebp - 0x80], 0x1010020
mov dword [ebp - 0xc], 0x20
xor eax, eax
nop
movups xmm0, xmmword [ebp + eax - 0x80]
movups xmm1, xmmword [eax + 0x100f31dc]
pxor xmm1, xmm0
movups xmmword [ebp + eax - 0x80], xmm1
add eax, 0x10
cmp eax, 0x20
jb 0x1006c630
push dword [ebp + 0xc]
mov edx, edi
lea ecx, [ebp - 0x80]
call fcn.10061d60
push dword [ebp + 0x14]
mov edx, ebx
lea ecx, [ebp - 0x80]
call fcn.10061d60
push 0x20
mov edx, esi
lea ecx, [ebp - 0x80]
call fcn.10061e10
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.100908e7
mov esp, ebp
pop ebp
ret

Function at 0x1006c7d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e0d70
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x1010f16c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x248
call fcn.10090929
mov edi, eax
add esp, 4
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 0
mov dword [edi + 0x23c], 0
mov dword [edi + 0x240], 0
mov dword [edi + 0x244], 0
mov byte [ebp - 4], 1
xor eax, eax
lea edx, [edi + 4]
mov word [edi + 0x68], ax
mov word [edi + 0x84], ax
lea ecx, [edi + 0x28]
mov word [edi + 0x3b], ax
mov dword [edx], eax
mov dword [edi + 0xf8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
mov dword [edi + 8], eax
mov dword [edi + 0x36], eax
mov dword [edi + 0x24], eax
mov dword [edi + 0x60], eax
mov dword [edi + 0x64], eax
mov dword [edi + 0x58], eax
mov dword [edi + 0x5c], eax
mov dword [edi + 0x238], eax
mov dword [edi + 0xe8], eax
mov dword [edi + 0xec], eax
mov dword [edi + 0xf0], eax
mov dword [edi + 0xf4], eax
mov dword [edi + 0x20], eax
lea eax, [edi + 0x48]
mov dword [eax], 0
mov dword [edi + 0x4c], eax
xor eax, eax
mov dword [edi], esi
mov word [edi + 0x34], 0x100
mov dword [edi + 0x50], 0xfff0bdc0
mov dword [edi + 0x54], 0xffffffff
mov dword [edi + 0xc8], 0x2710
mov byte [edi + 0x44], 0
mov byte [edi + 0x3a], 0
mov dword [edi + 0xbc], 0
mov word [edi + 0xc0], 0
xchg dword [ecx], eax
xorps xmm0, xmm0
xor eax, eax
movq qword [edi + 0x1c0], xmm0
mov dword [edi + 0x1c8], 0
mov dword [edi + 0x30], 0xffffffff
mov dword [edi + 0x3d], eax
mov word [edi + 0x41], ax
mov byte [edi + 0x43], al
movups xmmword [edi + 0x180], xmm0
movups xmmword [edi + 0x190], xmm0
movups xmmword [edi + 0x160], xmm0
movups xmmword [edi + 0x170], xmm0
mov eax, dword [edi]
mov eax, dword [eax + 0x14]
mov dword [eax], edi
mov eax, dword [edi]
mov dword [eax + 0x14], edx
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1006ca30
Capabilities:
Generate random numbers via rtlgenrandom
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x1010f16c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
mov dword [ebp - 0x8c], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
mov ebx, eax
mov ecx, edx
sub eax, dword [esi + 0x98]
sbb ecx, dword [esi + 0x9c]
mov dword [ebp - 0x94], ecx
jne 0x1006caa5
cmp eax, 0x1d4c0
jae 0x1006caa5
add esi, 0xa0
push 0x20
push esi
mov edx, 0x10
lea ecx, [ebp - 0x88]
call fcn.10060570
movzx eax, word [edi + 0x28]
add esp, 8
cmp eax, 2
jne 0x1006caf1
push 4
lea edx, [edi + 0x2c]
jmp 0x1006cafb
mov eax, dword [0x101160c8]
mov dword [esi + 0x98], ebx
mov dword [esi + 0x9c], edx
test eax, eax
jne 0x1006cada
push str.SystemFunction036
push str.ADVAPI32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x101160c8], eax
test eax, eax
je 0x1006cae9
push 0x20
add esi, 0xa0
push esi
call eax
test al, al
jne 0x1006ca7f
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp eax, 0x17
jne 0x1006cb09
push 0x10
lea edx, [edi + 0x30]
lea ecx, [ebp - 0x88]
call fcn.10061d60
add esp, 4
push 2
lea edx, [edi + 0x2a]
lea ecx, [ebp - 0x88]
call fcn.10061d60
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x68]
add eax, ecx
mov dword [ebp - 0x60], 0xffffffff
cmp eax, ecx
mov dword [ebp - 0x68], eax
sbb eax, eax
or edx, 0xffffffff
neg eax
add dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x5c]
cmp byte [ebp - 0x10], 0
cmovne eax, edx
mov dword [ebp - 0x5c], eax
mov eax, 0x40
sub eax, ecx
push eax
lea eax, [ebp - 0x58]
add eax, ecx
push 0
push eax
call fcn.100a8dc0
add esp, 0x10
lea edx, [ebp - 0x58]
lea ecx, [ebp - 0x88]
call fcn.10060630
mov eax, dword [ebp - 0x8c]
movups xmm0, xmmword [ebp - 0x88]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
movups xmmword [eax], xmm0
pop ebx
call fcn.100908e7
mov esp, ebp
pop ebp
ret 8
Function at 0x1006ec80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov ecx, eax
mov ebx, dword [esi + eax - 8]
mov esi, dword [esi + eax - 4]
push esi
lea edx, [edi + 0x18]
push ebx
call fcn.100528a0
push esi
mov esi, dword [ebp + 0xc]
mov ecx, esi
mov dword [esp + 0x28], edx
lea edx, [edi + 8]
push ebx
mov dword [esp + 0x20], eax
call fcn.100528a0
mov ecx, dword [ebp + 8]
add esp, 0x10
xor dword [ecx], eax
xor dword [ecx + 4], edx
mov eax, dword [esp + 0x10]
cmp esi, 0x18
jb 0x1006ece6
xor dword [ecx + 8], eax
mov eax, dword [esp + 0x1c]
xor dword [ecx + 0xc], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [esp + 0x10], eax
lea edx, [esi - 0x10]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
xor eax, eax
test edx, edx
je 0x1006ed7c
cmp edx, 0x40
jb 0x1006ed63
mov esi, edx
and esi, 0xffffffc0
nop dword [eax]
movups xmm0, xmmword [ecx + eax + 8]
movups xmm1, xmmword [esp + eax + 0x10]
pxor xmm1, xmm0
movups xmmword [ecx + eax + 8], xmm1
movups xmm0, xmmword [ecx + eax + 0x18]
movups xmm1, xmmword [esp + eax + 0x20]
pxor xmm1, xmm0
movups xmmword [ecx + eax + 0x18], xmm1
movups xmm0, xmmword [ecx + eax + 0x28]
movups xmm1, xmmword [esp + eax + 0x30]
pxor xmm1, xmm0
movups xmmword [ecx + eax + 0x28], xmm1
movups xmm0, xmmword [ecx + eax + 0x38]
movups xmm1, xmmword [esp + eax + 0x40]
pxor xmm1, xmm0
movups xmmword [ecx + eax + 0x38], xmm1
add eax, 0x40
cmp eax, esi
jb 0x1006ed10
cmp eax, edx
jae 0x1006ed7c
lea esi, [ecx + 8]
nop word [eax + eax]
mov cl, byte [esp + eax + 0x10]
xor byte [esi + eax], cl
inc eax
cmp eax, edx
jb 0x1006ed70
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x1006fc30
Capabilities:
Create thread
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
push esi
push edi
push dword [ebp + 8]
mov edi, ecx
lea ecx, [edi + 0x40]
call fcn.10033e00
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ebx, 2
cmp dword [esp + 0x28], ebx
cmovg ebx, dword [esp + 0x28]
xor esi, esi
test ebx, ebx
jle 0x1006fcc9
nop dword [eax + eax]
lea eax, [esp + 0x10]
mov dword [esp + 0xc], 0
push eax
push 0
push edi
push 0x1006fe30
push 0
push 0
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esp + 0xc], eax
test eax, eax
je 0x1006fcd4
mov edx, dword [edi + 0x34]
lea ecx, [edi + 0x30]
cmp dword [ecx + 8], edx
je 0x1006fcb9
mov dword [edx], eax
mov eax, dword [esp + 0x10]
mov dword [edx + 4], eax
add dword [ecx + 4], 8
jmp 0x1006fcc4
lea eax, [esp + 0xc]
push eax
push edx
call fcn.10070120
inc esi
cmp esi, ebx
jl 0x1006fc70
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10070380
Capabilities:
Create directory

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e0f38
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x1c
mov eax, dword [0x1010f16c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x10113a4c]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x101169c8]
cmp eax, dword [ecx + 4]
jle 0x100704d9
push 0x101169c8
call fcn.100911c8
add esp, 4
cmp dword [0x101169c8], 0xffffffff
jne 0x100704d9
mov ecx, 0x10116138
mov dword [ebp - 4], 0
call fcn.100055f0
mov byte [ebp - 4], 1
mov ecx, 0x10116178
mov dword [0x10116168], 0xf
mov dword [0x1011616c], 3
mov dword [0x10116170], 0x2f
mov dword [0x10116174], 0x1e
call fcn.10005c10
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.10070c80
mov esi, eax
mov byte [ebp - 4], 3
cmp esi, 0x10116178
je 0x1007048c
mov ecx, 0x10116178
call fcn.10005b50
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [0x10116178], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [0x10116188], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.10005bb0
cmp dword [0x1011618c], 8
mov eax, 0x10116178
cmovae eax, dword [0x10116178]
push eax
call fcn.100bf2af
add esp, 4
mov byte [ebp - 4], 0
push 0x100e3a10
call fcn.10090c8a
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0x101169c8
call fcn.1009117e
add esp, 4
mov eax, 0x10116138
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100908e7
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret

Function at 0x100723d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1010f16c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
mov esi, ecx
lea eax, [ebp - 0x20c]
push 0
mov dword [ebp - 0x210], esi
push eax
mov dword [ebp - 0x210], esi
call fcn.100a8dc0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
mov ecx, esi
cmp eax, 0x102
ja 0x1007242d
lea eax, [ebp - 0x20c]
push eax
jmp 0x10072432
push 0x100f3568
call fcn.10005360
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.100908e7
mov esp, ebp
pop ebp
ret
Function at 0x10076620
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 0x10076660
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov esi, dword [ebp - 0x14]
test esi, esi
jne 0x10076657
mov esi, 1
jmp 0x10076660
jle 0x100766a6
nop dword [eax]
lea eax, [ebp - 4]
push eax
push 0
push edi
push 0x100754d0
push 0
push 0
call fcn.100ba680
add esp, 0x18
mov dword [ebp + 0xc], eax
test eax, eax
je 0x100766a1
cmp eax, 0xffffffff
je 0x100766a1
mov edx, dword [edi + 8]
lea ecx, [edi + 4]
cmp dword [ecx + 8], edx
je 0x10076697
mov dword [edx], eax
add dword [ecx + 4], 4
jmp 0x100766a1
lea eax, [ebp + 0xc]
push eax
push edx
call fcn.1006ff20
sub esi, 1
jne 0x10076660
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x10076860
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x1010f16c]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x100768fa
push esi
lea eax, [ebp - 0x18]
push eax
push 0x20
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x100768f6
lea eax, [ebp - 0x20]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x100768eb
mov eax, dword [ebp - 0x20]
push 0
push 0
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
push 0x10
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp - 0x18]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x100768f1
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x18]
call esi
push edi
call esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.100908e7
mov esp, ebp
pop ebp
ret
Function at 0x100771d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1010f00c]
push esi
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x14], eax
mov eax, dword [0x1010f008]
mov dword [ebp - 4], 0
test byte [esi + 0x12], 1
mov dword [ebp - 0x10], eax
je 0x100771fe
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 [0x10112ae0]
jb 0x1007722f
ja 0x10077223
cmp eax, dword [0x10112adc]
jbe 0x1007722f
pop edi
pop ebx
mov eax, 0xfffffffc
pop esi
mov esp, ebp
pop ebp
ret
cmp byte [0x10112970], cl
je 0x1007737c
cmp dword [0x1010f014], 0xffffffff
je 0x1007737c
mov eax, dword [0x10112ad4]
or eax, dword [0x10112ad8]
je 0x1007737c
push 0x10112924
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x10112ad4]
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.100a82c0
mov eax, dword [0x1010f00c]
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 [0x1010f014]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x100772fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x100772fc
push 0x10112924
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 0x10077321
push eax
push dword [0x1010f008]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x10077344
push dword [0x1010f014]
call dword [sym.imp.KERNEL32.dll_CancelIo]
push 0x10112924
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 [0x1010f014]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x1007732d
mov esi, dword [ebp - 4]
neg esi
push 0x10112924
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 0x100773d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1010f00c]
xor ecx, ecx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [0x1010f008]
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 [0x10112ae0]
jb 0x1007741b
ja 0x10077411
cmp eax, dword [0x10112adc]
jbe 0x1007741b
mov eax, 0xfffffffc
pop esi
mov esp, ebp
pop ebp
ret
cmp byte [0x10112970], cl
je 0x10077533
cmp dword [0x1010f014], 0xffffffff
je 0x10077533
mov eax, dword [0x10112ad4]
or eax, dword [0x10112ad8]
je 0x10077533
push 0x10112924
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [ebp - 0xc]
push esi
push dword [0x10112ad4]
call fcn.100a82c0
mov eax, dword [0x1010f00c]
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 [0x1010f014]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x100774b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x100774b7
push 0x10112924
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 0x100774dc
push eax
push dword [0x1010f008]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x100774fd
push dword [0x1010f014]
call dword [sym.imp.KERNEL32.dll_CancelIo]
push 0x10112924
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 [0x1010f014]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x100774e8
mov esi, dword [ebp - 4]
neg esi
push 0x10112924
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 0x100783d0
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 [0x1010f16c]
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.100791b0
add esp, 0x10
lea eax, [ebp - 0x10c]
push eax
push 3
push 0
lea eax, [ebp - 0x108]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x10078436
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100908e7
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 8], 0
je 0x1007846a
lea eax, [ebp - 0x110]
mov dword [ebp - 0x110], 4
push eax
push esi
lea eax, [ebp - 0x114]
push eax
push 0
push 0x100e47d0
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
jmp 0x10078482
push 4
push esi
push 4
push 0
push 0x100e47d0
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.100908e7
mov esp, ebp
pop ebp
ret

Function at 0x100784b0
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.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x100784d8
xor al, al
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 8], 0
push esi
push edi
je 0x10078567
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 8]
push edi
push 0
push eax
push 0
push str.PNP_TDI
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10078519
mov eax, dword [edi]
add eax, 4
push eax
call fcn.100abd2b
mov esi, dword [ebp + 0xc]
add esp, 4
mov dword [esi], eax
test eax, eax
jne 0x1007852a
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 str.PNP_TDI
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
test edi, edi
je 0x10078598
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [esi]
call fcn.100abd36
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 0x10078577
shr edx, 2
dec edx
jmp 0x10078579
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 0x100785b0
Capabilities:
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [ebp + 8], 0
push ebx
je 0x100785ca
test byte [0x10112904], 1
jne 0x100785ca
mov bl, 1
jmp 0x100785cc
xor bl, bl
lea eax, [ebp - 4]
push eax
push 3
push 0
push str.SYSTEMCurrentControlSetServicesTcpip6Parameters
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10078650
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push str.DisabledComponents
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10078619
cmp dword [ebp - 8], eax
je 0x10078619
mov ecx, dword [ebp + 8]
jmp 0x1007861b
xor ecx, ecx
mov eax, ecx
and ecx, 0xfffffff7
or eax, 8
test bl, bl
push 4
cmovne ecx, eax
lea eax, [ebp + 8]
push eax
push 4
push 0
push str.DisabledComponents
push dword [ebp - 4]
mov dword [ebp + 8], ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call ebx
jmp 0x10078656
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp + 8]
push eax
push 2
push 0
push str.SYSTEMCurrentControlSetServicesTcpipParameters
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10078692
push 4
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
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 ebx
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret