joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100128e0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x100349a4], 0
je 0x100128f9
mov eax, dword [0x100349a4]
jmp 0x10012a96
mov dword [0x100349a4], 0x10034974
push 0x28
push 0
push 0x10034974
call fcn.10011285
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [0x10034974], eax
push str.imagehlp.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x10034978], eax
cmp dword [0x10034978], 0
jne 0x1001293f
xor eax, eax
jmp 0x10012a96
push str.ImagehlpApiVersionEx
mov eax, dword [0x10034978]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1003497c], eax
push str.SymInitialize
mov ecx, dword [0x10034978]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10034980], eax
push str.SymSetOptions
mov edx, dword [0x10034978]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10034984], eax
push str.SymGetOptions
mov eax, dword [0x10034978]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10034988], eax
push str.SymLoadModule
mov ecx, dword [0x10034978]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1003498c], eax
push str.SymGetModuleInfo
mov edx, dword [0x10034978]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10034990], eax
push str.SymGetSymFromName
mov eax, dword [0x10034978]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10034994], eax
push str.BindImage
mov ecx, dword [0x10034978]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10034998], eax
push 8
push 0
lea edx, [ebp - 8]
push edx
call fcn.10011285
add esp, 0xc
mov word [ebp - 8], 9
cmp dword [0x1003497c], 0
je 0x10012a1d
lea eax, [ebp - 8]
push eax
call dword [0x1003497c]
cmp dword [0x1003497c], 0
je 0x10012a2f
movzx ecx, word [ebp - 8]
cmp ecx, 9
jge 0x10012a4a
mov edx, dword [0x10034978]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x10034978], 0
xor eax, eax
jmp 0x10012a96
cmp dword [0x10034980], 0
je 0x10012a63
push 0
push 0
mov eax, dword [0x10034974]
push eax
call dword [0x10034980]
cmp dword [0x10034988], 0
je 0x10012a91
cmp dword [0x10034984], 0
je 0x10012a91
call dword [0x10034988]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
and ecx, 7
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [0x10034984]
mov eax, dword [0x100349a4]
mov esp, ebp
pop ebp
ret
Function at 0x10013430
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002b298
push 0x100113c5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffd0
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
cmp dword [ebp + 8], 0
jne 0x1001346d
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x1c]
movzx edx, word [ecx]
cmp edx, 0x5a4d
je 0x100134a3
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x34], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x34]
jmp 0x10013601
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
cmp dword [edx], 0x4550
je 0x100134db
push 0xbf
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x38], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x38]
jmp 0x10013601
mov eax, dword [ebp - 0x24]
movzx ecx, word [eax + 0x14]
test ecx, ecx
jne 0x10013507
push 0xc0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x3c]
jmp 0x10013601
mov edx, dword [ebp - 0x24]
movzx eax, word [edx + 0x14]
mov ecx, dword [ebp - 0x24]
lea edx, [ecx + eax + 0x18]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x28], 0
jmp 0x1001352a
mov eax, dword [ebp - 0x28]
add eax, 1
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x24]
movzx edx, word [ecx + 6]
cmp dword [ebp - 0x28], edx
jae 0x100135db
push str..detour
mov eax, dword [ebp - 0x28]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x20]
add ecx, eax
push ecx
call fcn.10011046
add esp, 8
test eax, eax
jne 0x100135d6
mov edx, dword [ebp - 0x28]
imul edx, edx, 0x28
mov eax, dword [ebp - 0x20]
cmp dword [eax + edx + 0xc], 0
je 0x10013577
mov ecx, dword [ebp - 0x28]
imul ecx, ecx, 0x28
mov edx, dword [ebp - 0x20]
cmp dword [edx + ecx + 0x10], 0
jne 0x10013579
jmp 0x100135db
mov eax, dword [ebp - 0x28]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
add edx, dword [ecx + eax + 0xc]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
cmp dword [ecx], 0x30
jb 0x100135a6
mov edx, dword [ebp - 0x2c]
cmp dword [edx + 4], 0x727444
je 0x100135a8
jmp 0x100135db
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 8], 0
jne 0x100135bc
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx]
mov dword [ecx + 8], eax
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x40], ecx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x40]
jmp 0x10013601
jmp 0x10013521
mov dword [ebp - 4], 0xffffffff
jmp 0x100135f4
push 0xc0
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x404600
Capabilities:
Create thread

Disassembly:
sub esp, 0x2c
mov eax, dword [0x477500]
xor eax, esp
mov dword [esp + 0x28], eax
push 4
call fcn.00407e7a
add esp, 4
test eax, eax
je 0x404624
mov dword [eax], 0x404360
jmp 0x404626
xor eax, eax
lea ecx, [esp + 4]
push ecx
push 0
push eax
push 0x401c30
push 0
push 0
call fcn.0040d545
add esp, 0x18
mov dword [esp], eax
test eax, eax
je 0x4047a8
call dword [sym.imp.KERNEL32.dll_FreeConsole]
cmp dword [esp + 4], 0
je 0x4047b7
call sub.KERNEL32.dll_GetCurrentThreadId
mov ecx, dword [esp + 4]
cmp ecx, eax
je 0x4047be
push 0
push ecx
push dword [esp + 8]
call fcn.00404997
add esp, 0xc
test eax, eax
jne 0x4047c5
xorps xmm0, xmm0
mov dword [esp + 0x20], eax
push str.Enter_filename:__n
movups xmmword [esp + 0x14], xmm0
push 0x478968
movlpd qword [esp + 8], xmm0
mov dword [esp + 0x2c], 0xf
mov byte [esp + 0x18], al
call fcn.00401420
lea eax, [esp + 0x18]
push eax
push 0x478840
call fcn.00401200
mov ecx, dword [esp + 0x30]
add esp, 0x10
test ecx, ecx
je 0x404749
cmp dword [esp + 0x24], 0xf
lea eax, [esp + 0x10]
push esi
cmova eax, dword [esp + 0x14]
push edi
push ecx
push eax
push 0x4788b8
call fcn.00401a40
mov edi, eax
add esp, 0xc
mov ecx, dword [edi]
mov ecx, dword [ecx + 4]
mov ecx, dword [ecx + edi + 0x30]
mov esi, dword [ecx + 4]
mov ecx, esi
mov dword [esp + 0x14], esi
mov edx, dword [esi]
call dword [edx + 4]
lea eax, [esp + 0x10]
push eax
call fcn.00401c50
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0xa
mov eax, dword [edx + 0x20]
call eax
mov byte [esp + 0x10], al
test esi, esi
je 0x404735
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
test eax, eax
je 0x404735
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
push dword [esp + 0x10]
mov ecx, edi
call fcn.004040b0
mov ecx, edi
call fcn.00403c10
pop edi
pop esi
mov ecx, dword [esp + 0x24]
cmp ecx, 0xf
jbe 0x40477b
mov edx, dword [esp + 0x10]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x404771
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4047cc
push ecx
push edx
call fcn.00407eaa
add esp, 8
cmp dword [esp + 4], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0xf
mov byte [esp + 0x10], 0
jne 0x4047d1
mov ecx, dword [esp + 0x28]
xor eax, eax
xor ecx, esp
call fcn.00407ebd
add esp, 0x2c
ret
push 6
mov dword [esp + 8], 0
call fcn.00404b4d
push 1
call fcn.00404b4d
push 5
call fcn.00404b4d
push 2
call fcn.00404b4d
call fcn.0040c8ef
call fcn.0040d3ad
int3
Function at 0x41625a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00415efc

Function at 0x416265
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041608b

Function at 0x41665f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00408c20
mov eax, dword [0x477500]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.004150f1
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4166a1
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4167fd
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041f830
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x479318]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041782f
mov ecx, dword [esi*4 + 0x479318]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4167f6
cmp eax, dword [edi + ecx + 0x24]
jne 0x4167f6
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4167f6
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041782f
add esp, 0x14
test edx, edx
jl 0x4167f6
jg 0x41676c
test eax, eax
jb 0x4167f6
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4167f6
jl 0x416786
cmp dword [ebp - 0x1008], eax
ja 0x4167f6
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4167a4
test ebx, ebx
je 0x4167dd
cmp ecx, edi
jae 0x4167dd
mov al, byte [ecx]
cmp al, 0xd
jne 0x4167be
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4167ca
cmp byte [ecx + 1], 0xa
jne 0x4167ca
inc ecx
jmp 0x4167ca
movzx eax, al
movsx eax, byte [eax + 0x4777d0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4167a4
cmp edx, ebx
jne 0x4167a4
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4167fb
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00407ebd
leave
ret
Function at 0x416ccd
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x479318]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x416d0d
cmp byte [ebx], 0xa
jne 0x416d0d
or byte [eax + edi + 0x28], 4
jmp 0x416d12
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x416e10
mov al, byte [edx]
cmp al, 0x1a
je 0x416df2
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x416d41
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x416d66
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x416d70
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x416d23
jmp 0x416e10
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x416ded
cmp dword [ebp - 0xc], 0
je 0x416ded
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x479318]
test byte [eax + edi + 0x28], 0x48
je 0x416dc7
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x416db2
mov byte [esi], dl
jmp 0x416dc3
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x479318]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x416e10
cmp byte [ebp - 1], 0xa
jne 0x416dd6
cmp esi, ebx
jne 0x416dd6
mov byte [esi], 0xa
jmp 0x416e0f
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041784d
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x416e10
mov byte [esi], 0xd
jmp 0x416e0f
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x479318]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x416e0c
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x416e10
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x416e19
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x479318]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x416e5c
cmp word [esi], dx
jne 0x416e5c
or byte [edi + eax + 0x28], 4
jmp 0x416e61
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x416fb4
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x416f94
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x416ea3
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x416ed9
cmp eax, edx
jae 0x416ee5
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x416e7b
jmp 0x416fb4
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x416f90
cmp dword [ebp - 0x14], 0
je 0x416f90
mov eax, dword [ebx*4 + 0x479318]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x416f68
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x416f31
mov word [esi], cx
jmp 0x416f64
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x479318]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x479318]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x479318]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x416fb4
pop ebx
cmp word [ebp - 4], bx
jne 0x416f79
cmp esi, dword [ebp + 0xc]
jne 0x416f79
mov word [esi], bx
jmp 0x416fb1
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041784d
add esp, 0x10
cmp word [ebp - 4], bx
je 0x416fb4
push 0xd
jmp 0x416fad
mov ecx, dword [ebx*4 + 0x479318]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x416fab
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x416fb4
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100011bd
Capabilities:
Persist via windows service
Set registry value

Disassembly:
jmp 0x10012290
push ecx
cmp byte [esp + 8], 0
je 0x100122a5
test byte [0x1004cdc4], 1
jne 0x100122a5
mov al, 1
jmp 0x100122a7
xor al, al
push eax
call fcn.10012860
add esp, 4
lea eax, [esp + 8]
push eax
push 2
push 0
push str.SYSTEMCurrentControlSetServicesTcpipParameters
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100122f5
push 4
mov dword [esp + 4], eax
lea eax, [esp + 4]
push eax
push 4
push 0
push str.DisableTaskOffload
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
pop ecx
ret
Function at 0x10001717
Capabilities:
Persist via windows service
Set registry value

Disassembly:
jmp 0x10012300
sub esp, 8
push esi
push 0
push dword [esp + 0x14]
call fcn.10012af0
mov esi, eax
add esp, 8
test esi, esi
jne 0x10012371
mov cl, byte [0x1004cdc4]
not cl
and cl, 1
push ecx
call fcn.10012860
add esp, 4
lea eax, [esp + 4]
push eax
push 2
push esi
push str.SYSTEMCurrentControlSetServicesTcpipParameters
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1001236f
push 4
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
push 4
push esi
push str.DisableTaskOffload
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [esp + 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 8
ret

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

Disassembly:
jmp 0x10010f50
sub esp, 0x2c
push ebx
push ebp
mov ebp, ecx
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ebx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
mov dword [ebp], eax
test ebx, ebx
jg 0x10010f90
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ebx, dword [esp + 0x24]
test ebx, ebx
mov eax, 1
cmove ebx, eax
test ebx, ebx
jle 0x1001101c
push esi
push edi
lea eax, [esp + 0x14]
push eax
push 0
push ebp
push 0x1000125d
push 0
push 0
call fcn.100154ea
mov edi, eax
add esp, 0x18
mov dword [esp + 0x10], edi
test edi, edi
je 0x10011013
cmp edi, 0xffffffff
je 0x10011013
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x10]
cmp ecx, eax
jae 0x10010ff7
mov ecx, dword [ebp + 4]
lea edx, [esp + 0x10]
cmp ecx, edx
ja 0x10010ff7
mov edi, edx
sub edi, ecx
sar edi, 2
cmp eax, dword [ebp + 0xc]
jne 0x10010fe6
push 1
lea ecx, [ebp + 4]
call fcn.10001d57
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x1001100f
mov eax, dword [ebp + 4]
mov eax, dword [eax + edi*4]
mov dword [ecx], eax
jmp 0x1001100f
cmp eax, dword [ebp + 0xc]
jne 0x10011006
push 1
lea ecx, [ebp + 4]
call fcn.10001d57
mov eax, dword [ebp + 8]
test eax, eax
je 0x1001100f
mov dword [eax], edi
add dword [ebp + 8], 4
dec ebx
jne 0x10010f92
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x2c
ret 8

Function at 0x100017c1
Capabilities:
Persist via windows service
Set registry value

Disassembly:
jmp 0x10012380
sub esp, 8
push esi
push dword [esp + 0x14]
push dword [esp + 0x14]
call fcn.10012af0
mov esi, eax
add esp, 8
test esi, esi
jne 0x100123f3
mov cl, byte [0x1004cdc4]
not cl
and cl, 1
push ecx
call fcn.10012860
add esp, 4
lea eax, [esp + 4]
push eax
push 2
push esi
push str.SYSTEMCurrentControlSetServicesTcpipParameters
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100123f1
push 4
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
push 4
push esi
push str.DisableTaskOffload
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [esp + 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 8
ret
Function at 0x10001e29
Capabilities:
Delete service
Persist via windows service
Set registry value

Disassembly:
jmp 0x10012400
sub esp, 0xc
push ebx
push esi
mov esi, dword [esp + 0x18]
push edi
push 1
xor bl, bl
push esi
mov byte [esp + 0x17], bl
call fcn.100124f0
add esp, 8
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x10012479
push 0x10000
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
test ebx, ebx
je 0x10012464
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 0x10012481
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov bl, byte [esp + 0xf]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x10012481
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
call fcn.10012860
add esp, 4
lea eax, [esp + 0x10]
push eax
push 2
push 0
push str.SYSTEMCurrentControlSetServicesTcpipParameters
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100124d7
push 4
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
push 4
push 0
push str.DisableTaskOffload
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test bl, bl
setne al
pop edi
pop esi
pop ebx
dec eax
add esp, 0xc
ret

Function at 0x100041b0
Capabilities:
Acquire debug privileges

Disassembly:
jmp 0x100041b0
sub esp, 0x20
mov eax, dword [0x1004b3c8]
xor eax, esp
mov dword [esp + 0x1c], 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 0x10004253
push esi
lea eax, [esp + 8]
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 0x1000424f
lea eax, [esp + 0xc]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x10004243
mov eax, dword [esp + 0xc]
push 0
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
push 0
push 0x10
mov dword [esp + 0x28], eax
lea eax, [esp + 0x20]
push eax
push 0
push dword [esp + 0x1c]
mov dword [esp + 0x2c], 1
mov dword [esp + 0x38], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x10004249
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 8]
call esi
push edi
call esi
pop esi
mov ecx, dword [esp + 0x20]
pop edi
xor ecx, esp
call fcn.10015717
add esp, 0x20
ret
Function at 0x10004e40
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push 0x1004cdcc
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x1004b01c], 0xffffffff
je 0x10004ebe
cmp dword [0x1004b020], 0xffffffff
jne 0x10004ebe
mov eax, dword [esp + 0xc]
test eax, eax
je 0x10004ebe
push dword [0x1004b010]
mov esi, dword [sym.imp.KERNEL32.dll_ResetEvent]
mov dword [0x1004ccbc], eax
call esi
push dword [0x1004b00c]
call esi
push dword [0x1004b008]
call esi
lea eax, [esp + 4]
push eax
push 0
push 0
push 0x10006200
push 0
push 0
call fcn.100154ea
add esp, 0x18
test eax, eax
jne 0x10004ed1
push dword [0x1004b00c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov dword [0x1004b020], 0xffffffff
push 0x1004cdcc
or esi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
pop esi
pop ecx
ret
push 0xffffffffffffffff
push dword [0x1004b008]
mov dword [0x1004b020], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x1004cdcc
xor esi, esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
pop esi
pop ecx
ret