joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1059163
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x220], ebx
cmp eax, ebx
je 0x1059280
lea eax, [ebp - 0x214]
push eax
push 0x20019
push ebx
push 0x10097f8
push 0x80000002
mov dword [ebp - 0x214], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1059280
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
push 4
pop edi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x210]
push eax
push ebx
push 0x10097e0
push dword [ebp - 0x214]
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0x210], edi
mov dword [ebp - 0x218], edi
call esi
test eax, eax
jne 0x1059272
cmp dword [ebp - 0x210], edi
jne 0x1059272
xor edi, edi
inc edi
cmp dword [ebp - 0x21c], edi
jne 0x1059272
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x210]
push eax
push ebx
push 0x1002250
push dword [ebp - 0x214]
mov dword [ebp - 0x210], edi
mov dword [ebp - 0x218], 0x104
call esi
test eax, eax
jne 0x1059272
cmp dword [ebp - 0x210], edi
jne 0x1059272
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x224]
call fcn.01035811
test eax, eax
jl 0x1059272
mov dword [ebp - 0x220], edi
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x220]
xor ecx, ebp
pop ebx
call fcn.01047464
leave
ret 8
Function at 0x105952d
Capabilities:
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor esi, esi
mov dword [ebp - 4], esi
cmp dword [ebp + 8], esi
jne 0x1059549
mov eax, 0x80004003
jmp 0x105970f
push 0x14
pop eax
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
pop ecx
mov dword [ebp - 8], eax
cmp eax, esi
jne 0x1059572
mov eax, 0x8007000e
jmp 0x105970f
push ebx
push edi
lea eax, [ebp - 4]
push eax
push 2
push esi
push 0x1002568
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10595f6
push 0x208
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
mov ebx, eax
pop ecx
cmp ebx, esi
je 0x10595ed
mov edi, 0x104
push edi
push ebx
call fcn.01058148
test eax, eax
je 0x10595e6
push 0x100a0a4
push edi
push ebx
call fcn.01035886
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x10595c1
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push ebx
push 1
push esi
push 0x100a084
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
lea eax, [ebp - 4]
push eax
push esi
push 3
push esi
push esi
push esi
push 0x100a010
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
cmp edi, esi
jne 0x10596b3
push dword [0x10746c0]
mov ebx, 0x1007cc0
push ebx
push 0x14
push dword [ebp - 8]
call fcn.0103590d
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
jmp 0x105965c
cmp dword [0x10746c0], 0x3e8
jge 0x105966f
inc dword [0x10746c0]
push dword [0x10746c0]
push ebx
push 0x14
push dword [ebp - 8]
call fcn.0103590d
add esp, 0x10
push esi
push esi
push esi
push esi
push dword [ebp - 8]
push dword [ebp - 4]
call edi
test eax, eax
je 0x1059639
mov eax, dword [ebp + 8]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x1059675
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 8]
push 2
push esi
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
cmp edi, esi
jne 0x10596a6
inc dword [0x10746c0]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
je 0x10596d6
jle 0x10596c1
and edi, 0xffff
or edi, 0x80070000
push edi
push dword [ebp + 8]
push 0x1009fcc
push 2
call fcn.01055c69
add esp, 0x10
jmp 0x1059702
push dword [ebp + 8]
push 0x1009f90
push 4
call fcn.01055c69
add esp, 0xc
cmp dword [ebp + 0x10], esi
je 0x10596fd
push esi
push dword [ebp + 8]
mov ecx, 0x10746c8
push 8
call fcn.01058b11
mov edi, 0xd2af9
push dword [ebp - 8]
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
mov eax, edi
pop edi
pop ebx
pop esi
leave
ret 0xc
Function at 0x1059719
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [ebp + 8], ebx
je 0x105980a
cmp dword [ebp + 0xc], ebx
je 0x105980a
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea eax, [ebp - 4]
push eax
push 3
push ebx
mov edi, 0x1002568
push edi
push 0x80000002
call esi
cmp eax, ebx
je 0x105976c
lea eax, [ebp - 4]
push eax
push 3
push ebx
push edi
push 0x80000001
call esi
mov esi, eax
cmp esi, ebx
jne 0x10597c9
push dword [ebp + 0xc]
push 0x100a124
push dword [ebp - 4]
call fcn.0105769d
mov edi, eax
cmp edi, ebx
je 0x10597b7
mov eax, dword [ebp + 0xc]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x1059788
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 0xc]
push 1
push ebx
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push edi
mov esi, eax
call dword [sym.imp.msvcrt.dll_free]
pop ecx
jmp 0x10597bc
mov esi, 0x80004005
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
je 0x10597ec
jle 0x10597d7
and esi, 0xffff
or esi, 0x80070000
push esi
push dword [ebp + 8]
push 0x100a0e0
push 2
call fcn.01055c69
add esp, 0x10
jmp 0x1059804
push 0x100a0b8
push 4
call fcn.01055c2f
or dword [0x10747d0], 1
mov esi, 0xd2af9
pop edi
mov eax, esi
pop esi
jmp 0x105980f
mov eax, 0x80004003
pop ebx
leave
ret 8
Function at 0x1059fbd
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push esi
xor esi, esi
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x1059ff6
xor eax, eax
jmp 0x105a146
mov eax, dword [ebp + 0xc]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x1059ffc
sub eax, edx
sar eax, 1
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 8], eax
jbe 0x105a018
mov eax, dword [ebp - 8]
inc dword [ebp - 0x14]
add eax, 5
xor ecx, ecx
push 2
pop edx
mov dword [ebp - 0xc], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
pop ecx
mov dword [ebp - 0x18], eax
cmp eax, esi
jne 0x105a047
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1059fef
push ebx
push edi
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
mov edi, 0x2001f
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push 0x1004eb4
push dword [ebp - 0xc]
push dword [ebp - 0x18]
call fcn.0103590d
add esp, 0x14
lea eax, [ebp - 4]
push eax
push edi
push esi
push dword [ebp - 0x18]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x105a11b
cmp dword [ebp + 0x10], esi
je 0x105a0f5
push 0x208
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
mov ebx, eax
pop ecx
cmp ebx, esi
je 0x105a0f5
lea eax, [ebp - 8]
push eax
push ebx
lea eax, [ebp - 0x1c]
push eax
push esi
push esi
push dword [ebp - 4]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 8], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x105a0ee
cmp dword [ebp - 0x1c], 1
jne 0x105a0ee
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x105a0ce
sub eax, edx
sar eax, 1
je 0x105a0ee
push dword [ebp + 0x10]
push ebx
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x105a112
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], esi
cmp eax, dword [ebp - 0x14]
jbe 0x105a054
jmp 0x105a138
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
jmp 0x105a138
push esi
lea eax, [ebp - 4]
push eax
push esi
push edi
push esi
push esi
push esi
push dword [ebp - 0x18]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x105a138
mov dword [ebp - 4], esi
push dword [ebp - 0x18]
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
mov eax, dword [ebp - 4]
pop ecx
pop edi
pop ebx
pop esi
leave
ret 0xc
Function at 0x105a150
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
xor esi, esi
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 0x14], esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x105a189
xor eax, eax
jmp 0x105a29e
mov eax, dword [ebp + 0xc]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x105a18f
sub eax, edx
sar eax, 1
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
cmp dword [ebp - 4], eax
jbe 0x105a1ab
mov eax, dword [ebp - 4]
push ebx
add eax, 5
xor ecx, ecx
push 2
pop edx
mov dword [ebp - 8], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
mov ebx, eax
pop ecx
cmp ebx, esi
jne 0x105a1d4
xor eax, eax
jmp 0x105a29d
push edi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
cmp dword [ebp - 0x14], esi
jbe 0x105a291
push dword [ebp - 0xc]
push dword [ebp + 0xc]
push 0x1004eb4
push dword [ebp - 8]
push ebx
call fcn.0103590d
add esp, 0x14
lea eax, [ebp - 0x10]
push eax
push 3
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x105a282
push 0x208
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
mov edi, eax
pop ecx
cmp edi, esi
je 0x105a279
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 0x18]
push eax
push esi
push esi
push dword [ebp - 0x10]
mov dword [ebp - 0x18], 1
mov dword [ebp - 4], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x105a272
cmp dword [ebp - 0x18], 1
jne 0x105a272
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x105a252
sub eax, edx
sar eax, 1
je 0x105a272
push dword [ebp + 0x10]
push edi
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x105a2a3
push edi
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
jb 0x105a1e4
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
xor ebx, ebx
pop ecx
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret 0xc
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
jmp 0x105a299
Function at 0x105a532
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
test esi, esi
je 0x105a5e1
push edi
mov edi, 0x104
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x105a5e0
push 0x100280c
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.01035886
test eax, eax
jl 0x105a5e0
and dword [ebp - 0x214], ebx
and dword [ebp - 0x210], ebx
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.010569a5
test eax, eax
jl 0x105a5e0
mov eax, dword [ebp - 0x214]
movzx ecx, ax
push ecx
shr eax, 0x10
push eax
mov eax, dword [ebp - 0x210]
movzx ecx, ax
push ecx
shr eax, 0x10
push eax
push 0x1007d80
push dword [ebp + 0xc]
push esi
call fcn.0103590d
add esp, 0x1c
test eax, eax
jl 0x105a5e0
inc ebx
pop edi
mov ecx, dword [ebp - 4]
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.01047464
leave
ret 8

Function at 0x105a5f8
Capabilities:
Delete file
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x420], 0
lea eax, [ebp - 0x420]
push eax
push 0x20019
push 0
push 0x100a610
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x105a6dc
push esi
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x424]
push eax
push 0
push 0x100a5d4
push dword [ebp - 0x420]
xor esi, esi
inc esi
mov dword [ebp - 0x424], esi
mov dword [ebp - 0x428], 0x105
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x105a6cf
cmp dword [ebp - 0x424], esi
jne 0x105a6cf
push esi
push 0x100a5c4
lea eax, [ebp - 0x41c]
push eax
push 0x100a5ac
lea eax, [ebp - 0x210]
push 0x105
push eax
call fcn.0103590d
add esp, 0x18
test eax, eax
jl 0x105a6c9
lea eax, [ebp - 0x210]
push eax
call fcn.010561ca
test eax, eax
je 0x105a6c9
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc esi
cmp esi, 0x10
jl 0x105a682
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01047464
leave
ret
Function at 0x105a6ed
Capabilities:
Delete registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
push esi
lea eax, [ebp - 0x418]
push eax
push esi
push 0x2001f
push esi
push esi
push esi
push 0x1009b98
push 0x80000002
mov dword [ebp - 0x418], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x105a852
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
push edi
push 4
pop edi
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x42c]
push eax
push esi
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x41c], esi
mov dword [ebp - 0x42c], edi
mov dword [ebp - 0x428], esi
mov dword [ebp - 0x430], edi
push esi
jmp 0x105a82a
lea eax, [ebp - 0x20c]
push eax
push 0x1009c00
push 0x100286c
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.0103590d
add esp, 0x14
test eax, eax
jl 0x105a7fa
lea eax, [ebp - 0x420]
push eax
push 0x2001f
push esi
lea eax, [ebp - 0x414]
push eax
push 0x80000002
mov dword [ebp - 0x420], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x105a7fa
push edi
lea eax, [ebp - 0x428]
push eax
push edi
push esi
push 0x100429c
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0x41c]
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x42c]
push eax
push esi
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x41c]
push dword [ebp - 0x418]
mov dword [ebp - 0x424], 0x104
call ebx
test eax, eax
je 0x105a781
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
push 0x1009b98
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.01047464
leave
ret
Function at 0x105a874
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x41c], 0
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
je 0x105a976
push ebx
push eax
push 0x100a688
mov ebx, 0x104
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.0103590d
add esp, 0x10
test eax, eax
jl 0x105a975
and dword [ebp - 0x418], 0
push esi
mov esi, 0x20019
call fcn.0105c72d
test eax, eax
je 0x105a8de
mov esi, 0x20119
lea eax, [ebp - 0x418]
push eax
push esi
push 0
lea eax, [ebp - 0x20c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x105a974
mov eax, dword [ebp + 0x10]
add eax, eax
mov dword [ebp - 0x424], eax
lea eax, [ebp - 0x424]
push eax
push edi
lea eax, [ebp - 0x420]
push eax
push 0
push 0x100a668
push dword [ebp - 0x418]
xor esi, esi
inc esi
mov dword [ebp - 0x420], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x105a968
cmp dword [ebp - 0x420], esi
jne 0x105a968
push ebx
lea eax, [ebp - 0x414]
push eax
push edi
mov dword [ebp - 0x41c], esi
call fcn.0105822c
test eax, eax
je 0x105a968
lea eax, [ebp - 0x414]
push eax
push dword [ebp + 0x10]
push edi
call fcn.01035811
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x41c]
xor ecx, ebp
pop edi
call fcn.01047464
leave
ret 0xc
Function at 0x105aef1
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x105afc5
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x105afb4
push edi
push esi
lea eax, [ebp - 0x414]
push eax
call fcn.01035811
push 0x100a8e0
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.01035886
lea eax, [ebp - 0x414]
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll_wcsrchr]
pop ecx
pop ecx
test eax, eax
je 0x105afb4
push eax
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.01035886
lea eax, [ebp - 0x20c]
push eax
call fcn.010561ca
test eax, eax
je 0x105afb4
xor esi, esi
inc esi
push esi
push esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.010571eb
test eax, eax
jne 0x105afb4
push eax
push eax
push esi
push esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.0105aad0
push edi
push 0x100a8bc
push 4
call fcn.01055c69
add esp, 0xc
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.01047464
leave
ret 4
Function at 0x105b5a5
Capabilities:
Query service status
Start service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push edi
push 0x100ae14
push 4
mov dword [ebp - 4], 1
call fcn.01055c69
mov eax, dword [ebp + 8]
xor esi, esi
add esp, 0xc
cmp eax, esi
je 0x105b5da
cmp word [eax], si
jne 0x105b5da
xor eax, eax
push 0xf003f
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
mov dword [ebp - 0xc], ebx
cmp ebx, esi
jne 0x105b615
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jne 0x105b5fd
push 0x57
pop eax
push eax
push edi
push 0x100ade0
push 2
call fcn.01055c69
add esp, 0x10
xor eax, eax
jmp 0x105b77e
push 0xf01ff
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp + 8], eax
cmp eax, esi
jne 0x105b650
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jne 0x105b636
push 0x57
pop eax
push eax
push edi
push 0x100ada8
push 2
call fcn.01055c69
add esp, 0x10
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x105b60e
push esi
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x105b69a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, esi
jne 0x105b66c
push 0x57
pop edi
push dword [ebp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push dword [ebp - 0xc]
call esi
cmp edi, 0x420
jne 0x105b68c
xor eax, eax
inc eax
jmp 0x105b77e
push edi
push dword [ebp + 0xc]
push 0x100ad70
jmp 0x105b604
cmp dword [ebp + 0x10], esi
je 0x105b748
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], esi
mov dword [ebp + 0x10], 0x927c0
call ebx
test eax, eax
jne 0x105b6d5
push edi
push 0x100ad4c
push 2
call fcn.01055c69
add esp, 0xc
mov dword [ebp - 4], esi
jmp 0x105b748
cmp dword [ebp - 0x28], 4
je 0x105b748
mov edi, 0x1f4
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
add esi, 0x7530
cmp esi, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
jle 0x105b718
mov dword [ebp + 0x10], esi
jmp 0x105b718
cmp dword [ebp - 0x28], 4
je 0x105b71c
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 8]
call ebx
test eax, eax
je 0x105b785
sub esi, edi
add dword [ebp - 8], edi
test esi, esi
jg 0x105b6f9
mov eax, dword [ebp + 0x10]
cmp dword [ebp - 8], eax
jg 0x105b732
cmp dword [ebp - 0x28], 4
je 0x105b748
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x10], eax
jne 0x105b6e0
push dword [ebp + 0xc]
push 0x100ad34
push 2
call fcn.01055c69
add esp, 0xc
and dword [ebp - 4], 0
push dword [ebp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push dword [ebp - 0xc]
call esi
cmp dword [ebp - 4], 0
mov eax, 0x100acb4
jne 0x105b768
mov eax, 0x100aca4
push eax
push dword [ebp + 0xc]
push 0x100ad18
push 4
call fcn.01055c69
mov eax, dword [ebp - 4]
add esp, 0x10
pop edi
pop esi
pop ebx
leave
ret 0xc
push dword [ebp + 0xc]
push 0x100acf4
jmp 0x105b73a
Function at 0x105b794
Capabilities:
Create service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], 1
cmp dword [ebp + 0xc], edi
je 0x105b872
cmp dword [ebp + 0x10], edi
je 0x105b872
cmp dword [ebp + 0x14], edi
je 0x105b872
mov eax, dword [ebp + 8]
cmp eax, edi
je 0x105b7cf
cmp word [eax], di
jne 0x105b7cf
xor eax, eax
mov esi, 0xf003f
push esi
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
cmp ebx, edi
je 0x105b84d
push edi
push 0x100ae88
push dword [ebp + 0x18]
push edi
push edi
push dword [ebp + 0x14]
push 1
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp eax, edi
je 0x105b825
push eax
call esi
push 0x100acb4
push dword [ebp + 0xc]
push 0x100ae6c
push 4
jmp 0x105b840
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jne 0x105b835
push 0x57
pop eax
push eax
push dword [ebp + 0xc]
push 0x100ae34
push 2
call fcn.01055c69
add esp, 0x10
push ebx
call esi
jmp 0x105b875
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jne 0x105b85d
push 0x57
pop eax
push eax
push dword [ebp + 0xc]
push 0x100ade0
push 2
call fcn.01055c69
add esp, 0x10
jmp 0x105b875
mov dword [ebp - 4], edi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x1c