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

Disassembly:
push ebx
push esi
push edi
mov esi, edx
mov edi, ecx
xor ebx, ebx
xor edx, edx
mov ecx, edx
lea eax, [ebx + edx]
and ecx, 7
xor al, byte [ecx + edi]
inc edx
mov byte [esi], al
inc esi
cmp edx, 0x10
jl 0x401244
inc ebx
cmp ebx, 8
jl 0x401242
pop edi
pop esi
pop ebx
ret

Function at 0x401262
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
mov eax, edx
push edi
mov dword [ebp - 0x14], esi
mov ecx, dword [esi]
mov edx, dword [esi + 8]
mov edi, dword [esi + 4]
mov ebx, dword [esi + 0xc]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
cmp eax, dword [ebp + 8]
je 0x4012ce
mov ecx, dword [ebp + 0xc]
mov edx, eax
shl ecx, 4
mov esi, eax
shl edx, 4
add edx, dword [ebp + 0x10]
mov dword [ebp - 0x10], ecx
mov ecx, dword [edx]
mov eax, edi
add esi, dword [ebp + 0xc]
add edi, ecx
add edx, dword [ebp - 0x10]
ror edi, 0x1d
xor edi, ecx
xor edi, dword [ebp - 4]
mov dword [ebp - 4], eax
mov eax, ebx
add ebx, ecx
ror ebx, 0x1d
xor ebx, ecx
xor ebx, dword [ebp - 8]
mov dword [ebp - 8], eax
cmp esi, dword [ebp + 8]
jne 0x40129b
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
jmp 0x4012d0
mov eax, edx
mov dword [esi], edi
pop edi
mov dword [esi + 8], ebx
mov dword [esi + 4], ecx
mov dword [esi + 0xc], eax
pop esi
pop ebx
leave
ret

Function at 0x4016fe
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
jmp 0x401733
mov ecx, dword [edx + 0xc]
cmp dword [ebp + 0xc], ecx
jb 0x401730
mov eax, dword [edx + 8]
add eax, ecx
cmp dword [ebp + 0xc], eax
jb 0x40173c
add edx, 0x28
cmp edx, esi
jne 0x40171e
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x401739

Function at 0x401b81
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401bc0
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401bc0
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401bc0
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401bc0
cmp dword [ecx + 0x74], 0xe
jbe 0x401bc0
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1016322
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
push edi
mov edi, 0x1001adc
jne 0x1016345
push 0x1001bac
push 0x1676
push edi
call fcn.0107b644
xor eax, eax
cmp dword [ebp + 0xc], eax
setne al
test eax, eax
jne 0x101636b
push 0x1001bfc
push 0x1677
push edi
call fcn.0107b644
push 0x80004005
call fcn.01015eac
cmp dword [ebp + 0x10], 1
je 0x1016387
cmp dword [ebp + 0x10], 2
je 0x1016387
push 0x1001bd4
push 0x1678
push edi
call fcn.0107b644
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x10163b3
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, ecx
cmp dword [ebx], 0
push edi
mov edi, 0x1001adc
jne 0x10163d7
push 0x1001bac
push 0x1683
push edi
call fcn.0107b644
mov esi, dword [ebp + 0xc]
xor eax, eax
test esi, esi
setne al
test eax, eax
jne 0x10163ff
push 0x1001bfc
push 0x1684
push edi
call fcn.0107b644
push 0x80004005
call fcn.01015eac
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x1016401
push edi
push dword [ebp + 0xc]
push 7
push 0
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x1016bc8
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x111027c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov eax, ecx
mov ecx, dword [ebp + 8]
push 0x2001f
push ecx
push dword [eax]
xor esi, esi
mov dword [ebp - 0x21c], ecx
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x20c], esi
call fcn.0101626e
mov edi, eax
cmp edi, esi
je 0x1016c3a
lea ecx, [ebp - 0x214]
call fcn.010161e0
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0106f798
leave
ret 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x1016c58
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x214]
call fcn.01016bc8
cmp eax, esi
jne 0x1016ca3
lea eax, [ebp - 0x224]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push dword [ebp - 0x214]
mov dword [ebp - 0x208], 0x100
call edi
test eax, eax
je 0x1016c42
lea ecx, [ebp - 0x214]
call fcn.010161e0
push dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x218]
call fcn.0101610c
lea ecx, [ebp - 0x214]
mov esi, eax
call fcn.010161e0
mov eax, esi
jmp 0x1016c2a
Function at 0x1018514
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x1105b1d
call fcn.0106f899
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
xor esi, esi
mov dword [ebp - 0x424], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x418], esi
push 2
push esi
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x41c], eax
cmp eax, esi
jne 0x101856d
call fcn.0101603d
mov esi, eax
jmp 0x1018676
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x1018586
call fcn.0101603d
jmp 0x1018668
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x428], eax
cmp eax, esi
je 0x101857c
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
mov dword [ebp - 0x420], edi
cmp eax, edi
jae 0x10185ec
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x10185d2
lea ecx, [ebp - 0x418]
call fcn.01016b39
mov esi, 0x8007000e
lea ecx, [ebp - 0x424]
call fcn.0101698c
mov eax, esi
call fcn.0106f904
ret 0x10
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.01017533
mov dword [ebp - 4], 1
jmp 0x101861a
cmp dword [ebp - 0x418], esi
jne 0x1018629
mov esi, 0x8007000e
jmp 0x101866a
push edi
push dword [ebp - 0x418]
push edi
push dword [ebp - 0x428]
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x101857c
mov edx, dword [ebp - 0x418]
push dword [ebp + 0x14]
xor ecx, ecx
mov word [edx + eax*2], cx
push dword [ebp - 0x418]
lea ecx, [ebp - 0x430]
call fcn.010183d7
mov esi, eax
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x10185d7
lea ecx, [ebp - 0x418]
call fcn.01016b39
jmp 0x10185d7
Function at 0x101bdcb
Capabilities:
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 8], 0
push ebx
push esi
mov esi, ecx
mov eax, dword [0x111024c]
mov ebx, 0x10023f8
cmp eax, 0x111024c
je 0x101be08
test byte [eax + 0x1c], 1
je 0x101be08
cmp byte [eax + 0x19], 4
jb 0x101be08
push ebx
push 0x135
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
test byte [esi + 0xec], 4
jne 0x101be25
push 0x1002518
push 0x1817
push 0x1002460
call fcn.0107b644
push edi
lea eax, [ebp - 8]
push eax
lea eax, [esi + 0x114]
push eax
push dword [esi + 0x170]
call fcn.010dffcd
mov dword [ebp - 4], eax
test eax, eax
jl 0x101bf99
mov ecx, dword [esi + 0x144]
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileW]
test ecx, ecx
je 0x101beec
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x101be88
test byte [eax + 0x1c], 1
je 0x101be88
cmp byte [eax + 0x19], 4
jb 0x101be88
push ecx
push dword [ebp - 8]
push ebx
push 0x136
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010197e6
push dword [esi + 0x144]
push dword [ebp - 8]
call edi
test eax, eax
jne 0x101beec
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x101bf8c
test byte [eax + 0x1c], 1
je 0x101bf8c
cmp byte [eax + 0x19], 2
jb 0x101bf8c
push edi
push dword [esi + 0x144]
push dword [ebp - 8]
push ebx
push 0x137
jmp 0x101bf7c
and edi, 0xffff
or edi, 0x80070000
mov dword [ebp - 4], edi
jmp 0x101bf9e
cmp dword [esi + 0xe8], 4
je 0x101bf99
mov ecx, dword [esi + 0x174]
test ecx, ecx
je 0x101bf99
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x101bf37
test byte [eax + 0x1c], 1
je 0x101bf37
cmp byte [eax + 0x19], 4
jb 0x101bf37
push ecx
push dword [esi + 0x170]
push ebx
push 0x138
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010197e6
push dword [esi + 0x174]
push dword [esi + 0x170]
call edi
test eax, eax
jne 0x101bf99
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x101bf8c
test byte [eax + 0x1c], 1
je 0x101bf8c
cmp byte [eax + 0x19], 2
jb 0x101bf8c
push edi
push dword [esi + 0x174]
push dword [esi + 0x170]
push ebx
push 0x139
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010198ad
mov eax, dword [0x111024c]
test edi, edi
jg 0x101bed8
jmp 0x101bee4
mov eax, dword [0x111024c]
cmp dword [ebp - 8], 0
pop edi
je 0x101bfb3
push dword [ebp - 8]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [0x111024c]
cmp dword [ebp - 4], 0
jge 0x101bfe5
cmp eax, 0x111024c
je 0x101c009
test byte [eax + 0x1c], 1
je 0x101bfe5
cmp byte [eax + 0x19], 2
jb 0x101bfe5
push dword [ebp - 4]
push ebx
push 0x13a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019fa8
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x101c009
test byte [eax + 0x1c], 1
je 0x101c009
cmp byte [eax + 0x19], 4
jb 0x101c009
push ebx
push 0x13b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret
Function at 0x1027a46
Capabilities:
Get session user name

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x111027c]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x20c], 0
push ebx
push esi
push edi
mov esi, ecx
mov eax, dword [0x111024c]
mov ebx, 0x111024c
cmp eax, ebx
je 0x1027a96
test byte [eax + 0x1c], 1
je 0x1027a96
cmp byte [eax + 0x19], 4
jb 0x1027a96
push 0x10023f8
push 0x269
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
lea eax, [ebp - 0x20c]
push eax
push dword [esi + 0xe8]
push dword [esi + 0xf0]
call fcn.010d6b00
mov edi, eax
test edi, edi
jge 0x1027af6
mov eax, dword [0x111024c]
cmp eax, ebx
je 0x1027bf5
test byte [eax + 0x1c], 1
je 0x1027bf5
cmp byte [eax + 0x19], 2
jb 0x1027bf5
push edi
push dword [esi + 0xf0]
push 0x10023f8
push 0x26a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01048c37
jmp 0x1027bf0
mov edi, 0x101
push edi
lea eax, [ebp - 0x208]
push 0
push eax
mov dword [ebp - 0x210], edi
call sub.msvcrt.dll_memset
mov eax, dword [esi + 0x188]
add esp, 0xc
test eax, eax
jne 0x1027b81
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x1027b8f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1027b49
and eax, 0xffff
or eax, 0x80070000
mov ecx, eax
mov eax, dword [0x111024c]
cmp eax, ebx
je 0x1027b76
test byte [eax + 0x1c], 1
je 0x1027b76
cmp byte [eax + 0x19], 2
jb 0x1027b76
push ecx
push 0x10023f8
push 0x26b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019fa8
xor eax, eax
mov word [ebp - 0x208], ax
jmp 0x1027b8f
push eax
push edi
lea eax, [ebp - 0x208]
push eax
call fcn.010257dc
lea eax, [ebp - 0x208]
push eax
push dword [esi + 0x118]
push dword [esi + 0x114]
push dword [esi + 0xf0]
push dword [ebp - 0x20c]
call fcn.010bdbdf
mov edi, eax
test edi, edi
jge 0x1027bf0
mov eax, dword [0x111024c]
cmp eax, ebx
je 0x1027bf5
test byte [eax + 0x1c], 1
je 0x1027bf5
cmp byte [eax + 0x19], 2
jb 0x1027bf5
push edi
push dword [esi + 0xf4]
push dword [esi + 0xf0]
push 0x10023f8
push 0x26c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010198ad
mov eax, dword [0x111024c]
cmp dword [ebp - 0x20c], 0
je 0x1027c16
push dword [ebp - 0x20c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
and dword [ebp - 0x20c], 0
mov eax, dword [0x111024c]
cmp eax, ebx
je 0x1027c3b
test byte [eax + 0x1c], 1
je 0x1027c3b
cmp byte [eax + 0x19], 4
jb 0x1027c3b
push 0x10023f8
push 0x26d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0106f798
leave
ret
Function at 0x1033347
Capabilities:
Move file

Disassembly:
push 0x1c
mov eax, 0x11077d6
call fcn.0106f7eb
mov esi, ecx
xor ebx, ebx
mov byte [ebp - 0xd], bl
mov byte [ebp - 0xe], bl
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x14]
push eax
lea eax, [esi + 0x114]
push eax
push dword [esi + 0x170]
mov dword [ebp - 4], ebx
call fcn.010dffcd
mov edi, eax
cmp edi, ebx
jl 0x10334be
lea eax, [ebp - 0xe]
push eax
mov ecx, esi
call fcn.010327ef
mov edi, eax
cmp edi, ebx
jl 0x10334be
test byte [esi + 0xec], 4
je 0x1033478
lea eax, [ebp - 0xd]
push eax
push dword [ebp - 0x14]
call fcn.010d3b8e
mov edi, eax
cmp edi, ebx
jl 0x10334be
cmp byte [ebp - 0xd], bl
jne 0x1033478
cmp byte [ebp - 0xe], bl
jne 0x1033478
lea eax, [ebp - 0x18]
push eax
push ebx
push dword [esi + 0x170]
call fcn.010dffcd
mov edi, eax
cmp edi, ebx
jl 0x10334be
lea eax, [esi + 0x144]
push eax
push dword [ebp - 0x18]
call fcn.010d5899
mov edi, eax
cmp edi, ebx
jl 0x10334be
mov eax, dword [esi + 0x144]
cmp eax, ebx
je 0x1033478
push dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x1033478
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x1033466
test byte [eax + 0x1c], 1
je 0x1033466
cmp byte [eax + 0x19], 2
jb 0x1033466
push edi
push dword [ebp - 0x14]
push dword [esi + 0x144]
push 0x10023f8
push 0x133
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010198ad
cmp edi, ebx
jle 0x10334be
and edi, 0xffff
or edi, 0x80070000
jmp 0x10334be
cmp dword [esi + 0xe8], 4
push ebx
setne al
movzx eax, al
push ebx
push eax
push dword [ebp - 0x14]
call fcn.010d3a47
mov edi, eax
cmp edi, ebx
jl 0x10334be
cmp dword [esi + 0x140], ebx
je 0x10334b2
push 0x1003754
push 0x17db
push 0x1002460
call fcn.0107b644
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x140], eax
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 0x18], ebx
je 0x10334cc
push dword [ebp - 0x18]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp - 0x14], ebx
je 0x10334da
push dword [ebp - 0x14]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x28]
call fcn.010da6e2
cmp edi, ebx
jge 0x103352a
push edi
push 0x8078014b
lea ecx, [esi + 0xc]
call fcn.0101fb6e
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x103352a
test byte [eax + 0x1c], 1
je 0x103352a
cmp byte [eax + 0x19], 2
jb 0x103352a
push dword [esi + 0x14]
push dword [esi + 0x10]
push 0x10023f8
push 0x134
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01083f04
lea ecx, [ebp - 0x28]
call fcn.01040e00
mov eax, edi
call fcn.0106f8d7
ret
Function at 0x103a9b7
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 0x10]
push edi
lea eax, [ebp - 8]
push eax
push esi
xor edi, edi
push edi
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
push dword [ebp + 8]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, edi
jne 0x103aa5b
cmp dword [esi], edi
je 0x103aa1d
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x103aad9
test byte [eax + 0x1c], 1
je 0x103aad9
cmp byte [eax + 0x19], 4
jb 0x103aad9
push dword [ebp + 0xc]
push 0x1003928
push 0x1f8
jmp 0x103aa4e
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x103aad9
test byte [eax + 0x1c], 1
je 0x103aad9
cmp byte [eax + 0x19], 4
jb 0x103aad9
push dword [ebp + 0xc]
push 0x1003928
push 0x1f9
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019633
jmp 0x103aad9
cmp eax, 2
jne 0x103aa95
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x103aa90
test byte [eax + 0x1c], 1
je 0x103aa90
cmp byte [eax + 0x19], 3
jb 0x103aa90
push dword [ebp + 0xc]
push 0x1003928
push 0x1fa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019633
mov dword [ebp - 4], edi
jmp 0x103aad9
cmp eax, edi
jle 0x103aaa3
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x103aad9
test byte [eax + 0x1c], 1
je 0x103aad9
cmp byte [eax + 0x19], 2
jb 0x103aad9
push dword [ebp - 4]
push dword [ebp + 0xc]
push 0x1003928
push 0x1fb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01048c37
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 0xc
Function at 0x105274b
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi], 0
mov ebx, 0x1001adc
jne 0x1052771
push 0x1001bac
push 0x15bb
push ebx
call fcn.0107b644
mov esi, dword [ebp + 0x10]
test esi, esi
jne 0x1052788
push 0x1004b08
push 0x15bc
push ebx
call fcn.0107b644
mov eax, dword [esi]
mov ebx, dword [ebp + 0xc]
and dword [esi], 0
add eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push ebx
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 8]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10527e8
cmp dword [ebp - 4], 1
je 0x10527c0
cmp dword [ebp - 4], 2
je 0x10527c0
push 0xd
pop eax
jmp 0x10527e8
mov eax, dword [ebp - 8]
test ebx, ebx
je 0x10527e2
test eax, eax
je 0x10527dd
test al, 1
jne 0x10527bb
mov ecx, eax
shr ecx, 1
cmp word [ebx + ecx*2 - 2], 0
je 0x10527e2
jmp 0x10527bb
xor ecx, ecx
mov word [ebx], cx
shr eax, 1
mov dword [esi], eax
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x1053227
Capabilities:
Create service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa10
mov eax, dword [0x111027c]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
call fcn.010523e0
test eax, eax
je 0x1053250
xor eax, eax
inc eax
jmp 0x10532ee
push ebx
push esi
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x20e]
push eax
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp eax, esi
je 0x10532ea
cmp eax, ebx
je 0x10532ea
push 0x22
pop ecx
mov word [ebp - 0x210], cx
add eax, eax
push 0xf003f
mov word [ebp + eax - 0x20e], cx
push esi
xor ecx, ecx
push esi
mov word [ebp + eax - 0x20c], cx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
cmp ebx, esi
jne 0x10532fb
mov ebx, 0x400
push ebx
lea eax, [ebp - 0xa10]
push eax
push 0xd80a
call fcn.01052500
test eax, eax
jne 0x10532d7
push 0x1004cbc
lea eax, [ebp - 0xa10]
push ebx
push eax
call sub.msvcrt.dll_wcscpy_s
add esp, 0xc
push eax
call fcn.01015ee5
add edi, 0x40
push esi
push edi
lea eax, [ebp - 0xa10]
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0106f798
leave
ret
push esi
push esi
push 0x1004cac
push esi
push esi
lea eax, [ebp - 0x210]
push eax
push 1
push 3
push 0x10
push 0xf01ff
add edi, 0x40
push edi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
cmp eax, esi
jne 0x1053368
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, 0x400
push ebx
lea eax, [ebp - 0xa10]
push eax
push 0xd80b
call fcn.01052500
test eax, eax
jne 0x10532da
push 0x1004c7c
lea eax, [ebp - 0xa10]
push ebx
push eax
call sub.msvcrt.dll_wcscpy_s
add esp, 0xc
push eax
call fcn.01015ee5
jmp 0x10532da
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call esi
push ebx
call esi
xor eax, eax
inc eax
jmp 0x10532ec
Function at 0x1053399
Capabilities:
Delete service
Stop service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x102c
call fcn.0106f7b0
mov eax, dword [0x111027c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call fcn.010523e0
test eax, eax
jne 0x10533c4
inc eax
jmp 0x1053589
push ebx
push edi
push 0xf003f
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [ebp - 0x1010], edi
cmp edi, ebx
jne 0x105342f
mov edi, 0x400
push edi
lea eax, [ebp - 0x804]
push eax
push 0xd80a
call fcn.01052500
test eax, eax
jne 0x1053417
push 0x1004cbc
lea eax, [ebp - 0x804]
push edi
push eax
call sub.msvcrt.dll_wcscpy_s
add esp, 0xc
push eax
call fcn.01015ee5
push ebx
add esi, 0x40
push esi
lea eax, [ebp - 0x804]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x1053585
push 0x10020
lea ebx, [esi + 0x40]
push ebx
push edi
mov dword [ebp - 0x1008], ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x1053496
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, 0x400
push edi
lea eax, [ebp - 0x804]
push eax
push 0xd80c
call fcn.01052500
test eax, eax
jne 0x1053488
push 0x1004d60
lea eax, [ebp - 0x804]
push edi
push eax
call sub.msvcrt.dll_wcscpy_s
add esp, 0xc
push eax
call fcn.01015ee5
push 0
push ebx
lea eax, [ebp - 0x804]
push eax
push 0
jmp 0x1053424
lea eax, [ebp - 0x102c]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov ebx, dword [sym.imp.USER32.dll_MessageBoxW]
mov edi, 0x400
test eax, eax
jne 0x1053516
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
je 0x1053516
cmp eax, 0x425
jne 0x10534d2
cmp dword [ebp - 0x1028], 3
je 0x1053516
push edi
lea eax, [ebp - 0x804]
push eax
push 0xd80e
call fcn.01052500
test eax, eax
jne 0x1053503
push 0x1004d30
lea eax, [ebp - 0x804]
push edi
push eax
call sub.msvcrt.dll_wcscpy_s
add esp, 0xc
push eax
call fcn.01015ee5
push 0
push dword [ebp - 0x1008]
lea eax, [ebp - 0x804]
push eax
push 0
call ebx
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 0x100c], eax
call esi
push dword [ebp - 0x1010]
call esi
xor esi, esi
cmp dword [ebp - 0x100c], esi
je 0x1053543
xor eax, eax
inc eax
jmp 0x1053587
push edi
lea eax, [ebp - 0x1004]
push eax
push 0xd80d
call fcn.01052500
test eax, eax
jne 0x1053574
push 0x1004cfc
lea eax, [ebp - 0x1004]
push edi
push eax
call sub.msvcrt.dll_wcscpy_s
add esp, 0xc
push eax
call fcn.01015ee5
push esi
push dword [ebp - 0x1008]
lea eax, [ebp - 0x1004]
push eax
push esi
call ebx
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0106f798
leave
ret