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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x334
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
xor ecx, ecx
push ebx
mov ebx, dword [ebp + 0xc]
xor eax, eax
inc eax
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x314], ebx
mov dword [ebp - 0x31c], ecx
mov dword [ebp - 0x318], ecx
mov dword [ebp - 0x324], eax
mov dword [ebp - 0x320], ecx
cmp ebx, ecx
jne 0x104d41a
mov eax, 0x80004003
jmp 0x104d88d
push esi
cmp edi, ecx
je 0x104d48d
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x104d424
sub eax, edx
sar eax, 1
lea esi, [eax + eax + 1]
push esi
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x104d44d
mov eax, 0x8007000e
jmp 0x104d88c
push 0xffffffffffffffff
push esi
push edi
push ebx
mov dword [ebp - 0x31c], 0x80004005
call fcn.01047cad
test eax, eax
je 0x104d47b
and dword [ebp - 0x31c], 0
push ebx
push dword [ebp + 0x10]
push dword [ebp - 0x314]
call fcn.01045c74
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
mov ebx, dword [ebp - 0x314]
pop ecx
jmp 0x104d553
mov esi, dword [ebp + 0x10]
cmp esi, 0xffffffff
jae 0x104d507
lea edx, [ebp - 0x318]
push edx
push eax
push ecx
push 0x1001c88
push 0x80000002
mov dword [ebp - 0x328], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x104d507
lea eax, [ebp - 0x328]
push eax
push ebx
lea eax, [ebp - 0x324]
push eax
push 0
push 0x1007cb4
push dword [ebp - 0x318]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x104d4f2
inc eax
cmp dword [ebp - 0x324], eax
jne 0x104d4f2
mov dword [ebp - 0x320], eax
mov byte [ebx + esi - 1], 0
push dword [ebp - 0x318]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x320], 0
jne 0x104d560
cmp esi, 0x7fffffff
ja 0x104d549
push esi
push ebx
push 0x277e
push dword [0x1073960]
call dword [sym.imp.USER32.dll_LoadStringA]
test eax, eax
jne 0x104d560
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x104d535
push 0x57
pop eax
test eax, eax
jle 0x104d541
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x31c], eax
jmp 0x104d553
mov dword [ebp - 0x31c], 0x80070057
cmp dword [ebp - 0x31c], 0
jl 0x104d871
mov esi, dword [sym.imp.msvcrt.dll_strstr]
mov edi, 0x1007cb0
push edi
push ebx
call esi
pop ecx
pop ecx
test eax, eax
jne 0x104d5aa
push 0x1007ca8
push ebx
call esi
pop ecx
pop ecx
test eax, eax
jne 0x104d5aa
push 0x1007ca0
push ebx
call esi
pop ecx
pop ecx
test eax, eax
jne 0x104d5aa
push dword [ebp + 0x10]
push 0x2f
push ebx
call fcn.01055dc0
push 0x10074a8
push dword [ebp + 0x10]
push ebx
call fcn.010486d3
push edi
push ebx
call esi
pop ecx
pop ecx
test eax, eax
jne 0x104d5be
push edi
push dword [ebp + 0x10]
push ebx
call fcn.010486d3
invalid
Function at 0x104e2b4
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
lea esi, [edi + 0x10]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], esi
cmp dword [esi], ebx
jne 0x104e3da
push 0x80
mov dword [ebp - 4], 0x80004005
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
pop ecx
mov dword [esi], eax
cmp eax, ebx
jne 0x104e2f3
xor eax, eax
jmp 0x104e3e2
mov eax, dword [edi + 4]
cmp eax, ebx
jl 0x104e30e
cmp eax, 1
jle 0x104e304
cmp eax, 3
jne 0x104e30e
push 0x1007da0
jmp 0x104e3d1
mov dword [ebp - 0x14], ebx
cmp dword [edi + 0xc], ebx
je 0x104e3cc
push 0x208
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
mov ebx, eax
pop ecx
test ebx, ebx
je 0x104e3cc
push ebx
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x104e3bc
push 0x5c
push dword [edi + 0xc]
call dword [sym.imp.msvcrt.dll_wcsrchr]
pop ecx
pop ecx
test eax, eax
je 0x104e355
inc eax
inc eax
jmp 0x104e358
mov eax, dword [edi + 0xc]
and dword [ebp - 0x10], 0
and dword [ebp - 0xc], 0
push ebx
mov dword [ebp - 8], eax
call fcn.01055e5e
push dword [ebp - 8]
push esi
push ebx
call fcn.010358a6
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
call fcn.010569c6
test eax, eax
jl 0x104e3bc
mov eax, dword [ebp - 0xc]
movzx ecx, ax
push ecx
shr eax, 0x10
push eax
mov eax, dword [ebp - 0x10]
movzx ecx, ax
push ecx
shr eax, 0x10
push eax
push 0x1007d80
push esi
push ebx
call fcn.0103592d
add esp, 0x1c
push ebx
mov ecx, edi
call fcn.0104c142
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], 1
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
cmp dword [ebp - 0x14], 0
pop ecx
jne 0x104e3da
mov esi, dword [ebp - 0x18]
push 0x1007d70
push esi
call fcn.0105849d
mov dword [ebp - 4], eax
xor eax, eax
cmp dword [ebp - 4], eax
setge al
pop edi
pop esi
pop ebx
leave
Function at 0x105411a
Capabilities:
Delete directory
Delete file
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
push edi
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x21c], esi
cmp ebx, esi
je 0x105421d
push ebx
call fcn.010587e2
test eax, eax
je 0x10541d4
invalid
Function at 0x10561be
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
je 0x10561e0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x10561e0
test al, 0x10
jne 0x10561e0
xor eax, eax
inc eax
jmp 0x10561e2
xor eax, eax
pop ebp
ret 4

Function at 0x10561eb
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
je 0x105620d
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x105620d
test al, 0x10
jne 0x105620d
xor eax, eax
inc eax
jmp 0x105620f
xor eax, eax
pop ebp
ret 4

Function at 0x1056218
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push esi
je 0x1056252
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x1056252
push dword [ebp + 8]
and dword [esi], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1056241
push 2
pop eax
jmp 0x1056257
test eax, 0x800
je 0x105624e
mov dword [esi], 1
xor eax, eax
jmp 0x1056257
mov eax, 0xa0
pop esi
pop ebp
ret 8

Function at 0x1056261
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1ac
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x198]
xor ebx, ebx
push eax
mov dword [ebp - 0x19c], ebx
mov dword [ebp - 0x1a4], 0x80
mov dword [ebp - 0x1a0], 1
mov dword [ebp - 0x198], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x10562b5
xor edx, edx
jmp 0x10563da
push esi
mov esi, dword [ebp - 0x194]
xor eax, eax
shld eax, esi, 0x10
mov eax, dword [ebp - 0x190]
shl esi, 0x10
or esi, eax
cmp dword [ebp - 0x188], 2
lea eax, [ebp - 0x19c]
push eax
push 1
mov dword [ebp - 0x1ac], ebx
push ebx
jne 0x105635f
push 0x1009678
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10563d1
lea eax, [ebp - 0x1a4]
push eax
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x1a0]
push eax
push ebx
push 0x100964c
push dword [ebp - 0x19c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10563c5
cmp dword [ebp - 0x1a0], 1
jne 0x10563c5
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.msvcrt.dll__wtol]
pop ecx
mov ecx, 0x10000
mov dword [ebp - 0x1a4], eax
mul ecx
add dword [ebp - 0x1ac], eax
adc esi, edx
jmp 0x10563c5
push 0x10095f8
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10563d1
lea eax, [ebp - 0x1a4]
push eax
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x1a0]
push eax
push ebx
push 0x10095d8
push dword [ebp - 0x19c]
mov dword [ebp - 0x1a4], 0x80
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10563c5
cmp dword [ebp - 0x1a0], 1
jne 0x10563c5
lea eax, [ebp - 0x84]
push eax
call fcn.01055efe
mov dword [ebp - 0x1ac], eax
mov esi, edx
push dword [ebp - 0x19c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x1ac]
mov edx, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.01047480
leave
Function at 0x1056d2e
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
push esi
lea eax, [ebp - 4]
push eax
push esi
push 2
push esi
push esi
push esi
push 0x10098b8
push 0x80000001
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1056d9b
push edi
mov edi, 0x1003cac
cmp dword [ebp + 0xc], esi
jne 0x1056d69
mov edi, 0x10098b0
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x1056d6e
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push edi
push 1
push esi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
leave
ret 8

Function at 0x1056f4a
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push esi
lea eax, [ebp - 4]
push eax
push 2
push 0
push 0x1009998
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x1056fa1
push 4
lea eax, [ebp - 8]
push eax
push 4
push esi
push 0x1009968
push dword [ebp - 4]
mov dword [ebp - 8], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x1056fb1
push esi
push 0x1009920
push 2
call fcn.01055c8a
add esp, 0xc
pop esi
leave

Function at 0x1056fb9
Capabilities:
Check if file exists
Delete directory
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push edi
push dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor ebx, ebx
call edi
test eax, eax
jne 0x1057024
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jne 0x1056fe1
push 0x57
pop eax
mov ebx, eax
cmp eax, 5
jne 0x1057023
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1057023
test al, 1
je 0x1057023
and eax, 0xfffffffe
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x1057023
push dword [ebp + 8]
call edi
test eax, eax
je 0x1057018
xor ebx, ebx
jmp 0x1057023
call esi
test eax, eax
jne 0x1057021
push 0x57
pop eax
mov ebx, eax
pop esi
pop edi
mov eax, ebx
pop ebx
pop ebp
ret 4
Function at 0x1058856
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x1058864
push ebx
sub eax, edx
sar eax, 1
push esi
lea ebx, [eax + 0x14]
xor ecx, ecx
push 2
pop edx
mov eax, ebx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
mov esi, eax
pop ecx
test esi, esi
je 0x1058960
push edi
push dword [ebp + 8]
push ebx
push esi
call fcn.01035831
mov edi, dword [sym.imp.msvcrt.dll_wcsstr]
push 0x1007db0
push esi
call edi
pop ecx
pop ecx
test eax, eax
je 0x1058958
add eax, 4
and dword [ebp - 4], 0
jmp 0x10588c7
mov eax, dword [ebp - 0xc]
push 0x1005778
push eax
call edi
pop ecx
pop ecx
test eax, eax
je 0x105894f
xor ecx, ecx
mov word [eax], cx
add eax, 2
push esi
mov dword [ebp - 0xc], eax
call fcn.010587e2
test eax, eax
jne 0x1058927
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1058901
push 0x57
pop eax
test eax, eax
jle 0x105890d
and eax, 0xffff
or eax, 0x80070000
push esi
mov dword [ebp - 8], eax
call fcn.010587e2
test eax, eax
je 0x105893c
push 0
push esi
push 5
push 8
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
push dword [ebp + 8]
push ebx
push esi
call fcn.01035831
inc dword [ebp - 4]
cmp dword [ebp - 4], 0xa
jl 0x10588c4
jmp 0x105894f
push dword [ebp - 8]
push esi
push 0x1009e0c
push 2
call fcn.01055c8a
add esp, 0x10
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push esi
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
pop edi
push dword [ebp + 8]
call fcn.010587e2
pop esi
pop ebx
leave
ret 4
Function at 0x105973a
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 0x105982b
cmp dword [ebp + 0xc], ebx
je 0x105982b
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
invalid
Function at 0x105b7b5
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 0x105b893
cmp dword [ebp + 0x10], edi
je 0x105b893
cmp dword [ebp + 0x14], edi
je 0x105b893
mov eax, dword [ebp + 8]
cmp eax, edi
je 0x105b7f0
cmp word [eax], di
jne 0x105b7f0
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 0x105b86e
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 0x105b846
push eax
call esi
push 0x100acb4
push dword [ebp + 0xc]
push 0x100ae6c
push 4
jmp 0x105b861
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jne 0x105b856
push 0x57
pop eax
push eax
push dword [ebp + 0xc]
push 0x100ae34
push 2
call fcn.01055c8a
add esp, 0x10
push ebx
call esi
jmp 0x105b896
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jne 0x105b87e
push 0x57
pop eax
push eax
push dword [ebp + 0xc]
push 0x100ade0
push 2
call fcn.01055c8a
add esp, 0x10
jmp 0x105b896
mov dword [ebp - 4], edi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x1c

Function at 0x105b8a5
Capabilities:
Delete service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
mov dword [ebp - 4], 1
cmp dword [ebp + 0xc], ebx
jne 0x105b8c3
mov dword [ebp - 4], ebx
jmp 0x105b9ac
push edi
mov edi, dword [ebp + 8]
cmp edi, ebx
je 0x105b8d2
cmp word [edi], bx
jne 0x105b8d2
xor edi, edi
push dword [ebp + 0xc]
push ebx
call fcn.0105b3bf
test eax, eax
je 0x105b988
mov esi, 0xf003f
push esi
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp + 8], eax
cmp eax, ebx
je 0x105b96d
push esi
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
cmp edi, ebx
je 0x105b954
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x105b93d
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x105b92a
push 0x57
pop eax
push eax
push dword [ebp + 0xc]
push 0x100af08
push 2
call fcn.01055c8a
add esp, 0x10
push dword [ebp + 0xc]
push 0x100aee0
push 4
call fcn.01055c8a
add esp, 0xc
push edi
call esi
jmp 0x105b966
push dword [ebp + 0xc]
push 0x100aebc
push 4
call fcn.01055c8a
add esp, 0xc
push dword [ebp + 8]
call esi
jmp 0x105b9ab
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x105b97d
push 0x57
pop eax
push eax
push dword [ebp + 0xc]
push 0x100ade0
jmp 0x105b9a1
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
invalid
Function at 0x105ce1c
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], ebx
call sub.ADVAPI32.dll_ConvertStringSidToSidW
mov esi, eax
cmp esi, ebx
je 0x105d003
lea eax, [ebp - 0x10]
push eax
push ebx
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push 4
push 4
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_GetSecurityInfo]
cmp eax, ebx
je 0x105ce6d
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp esi, ebx
je 0x105d003
mov edi, dword [sym.imp.ADVAPI32.dll_GetAclInformation]
push 2
push 0xc
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 4]
call edi
mov esi, eax
cmp esi, ebx
je 0x105d003
push 1
push 4
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
call edi
mov esi, eax
cmp esi, ebx
je 0x105d003
mov dword [ebp + 0xc], ebx
cmp dword [ebp - 0x20], ebx
jbe 0x105cf08
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0x14], ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_GetAce]
mov esi, eax
cmp esi, ebx
je 0x105d003
mov edi, dword [ebp - 0x14]
cmp byte [edi], bl
jne 0x105cefd
mov eax, dword [ebp + 0x10]
cmp dword [edi + 4], eax
jne 0x105cefd
mov al, byte [edi + 1]
and al, byte [ebp + 0x14]
cmp al, byte [ebp + 0x14]
jne 0x105cefd
push dword [ebp - 8]
add edi, 8
push edi
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x105cffb
inc dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 0x20]
jb 0x105ceb1
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
add eax, 8
mov dword [ebp + 0xc], eax
mov edi, 0x216
cmp eax, 8
jae 0x105cf2d
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp + 0xc]
xor esi, esi
lea ecx, [ebp + 0xc]
push ecx
push eax
push dword [ebp - 0x1c]
call fcn.0105e5a0
test eax, eax
jge 0x105cf47
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
xor edi, edi
cmp esi, ebx
je 0x105cf79
push dword [ebp + 0xc]
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
mov edi, eax
pop ecx
cmp edi, ebx
jne 0x105cf66
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
cmp esi, ebx
je 0x105cf79
push dword [ebp - 0xc]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
mov esi, eax
mov dword [ebp + 0xc], ebx
cmp dword [ebp - 0x20], ebx
jbe 0x105cfbe
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0x14], ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_GetAce]
invalid
Function at 0x105d034
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x210], ebx
xor edi, edi
mov dword [ebp - 0x214], ebx
lea eax, [ebp - 0x220]
push eax
push dword [ebp - 0x210]
lea eax, [ebp - 0x228]
push eax
push ebx
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x214]
mov dword [ebp - 0x22c], 0x104
push dword [ebp - 0x21c]
mov dword [ebp - 0x220], edi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov esi, eax
cmp esi, 0x103
je 0x105d181
cmp esi, 0xea
jne 0x105d0e3
cmp dword [ebp - 0x210], ebx
je 0x105d0eb
push dword [ebp - 0x210]
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
mov dword [ebp - 0x210], ebx
cmp dword [ebp - 0x210], ebx
jne 0x105d145
mov edi, dword [ebp - 0x220]
shr edi, 4
inc edi
shl edi, 4
push edi
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
pop ecx
mov dword [ebp - 0x210], eax
cmp eax, ebx
jne 0x105d06e
push 0xe
pop esi
cmp dword [ebp - 0x210], ebx
je 0x105d124
push dword [ebp - 0x210]
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
cmp esi, ebx
jne 0x105d250
mov edi, 0x104
push edi
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x214], ebx
push ebx
jmp 0x105d230
cmp esi, ebx
jne 0x105d171
push dword [ebp - 0x220]
lea eax, [ebp - 0x20c]
push dword [ebp - 0x210]
push dword [ebp - 0x228]
push ebx
push eax
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
inc dword [ebp - 0x214]
cmp esi, ebx
je 0x105d06e
jmp 0x105d110
xor esi, esi
jmp 0x105d110
lea eax, [ebp - 0x210]
push eax
push 0x109
push ebx
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x21c]
mov dword [ebp - 0x210], ebx
mov dword [ebp - 0x218], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x105d1ee
push ebx
lea eax, [ebp - 0x218]
push eax
push ebx
push 0x20106
push ebx
push ebx
push ebx
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
invalid
Function at 0x105e226
Capabilities:
Query environment variable
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x630
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor eax, eax
push edi
inc eax
mov dword [ebp - 0x624], eax
mov dword [ebp - 0x62c], eax
lea eax, [ebp - 0x620]
push eax
xor ecx, ecx
mov edi, 0x101
push edi
push ecx
push 0x100bcf8
mov ebx, 0x80000002
push ebx
mov dword [ebp - 0x620], ecx
mov dword [ebp - 0x630], ecx
mov dword [ebp - 0x628], ecx
call esi
test eax, eax
je 0x105e2ae
lea eax, [ebp - 0x620]
push eax
push edi
xor edi, edi
push edi
push 0x100bc78
push ebx
mov dword [ebp - 0x62c], 2
call esi
test eax, eax
je 0x105e2b0
xor eax, eax
jmp 0x105e456
xor edi, edi
push 0x100bc50
push 4
call fcn.01055c50
cmp dword [ebp - 0x620], edi
je 0x105e38b
lea eax, [ebp - 0x630]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x624]
push eax
push edi
push 0x100a668
push dword [ebp - 0x620]
mov esi, 0x208
mov dword [ebp - 0x630], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x105e375
cmp dword [ebp - 0x624], 2
je 0x105e310
cmp dword [ebp - 0x624], 1
jne 0x105e375
cmp dword [ebp - 0x624], 2
mov dword [ebp - 0x628], 1
jne 0x105e375
push 0x104
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x105e358
lea eax, [ebp - 0x61c]
push eax
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.0103586b
test eax, eax
jge 0x105e375
push 0x100bc18
push 4
call fcn.01055c50
push dword [ebp - 0x620]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x105e2a7
push dword [ebp - 0x620]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
cmp dword [ebp - 0x628], edi
jne 0x105e39c
push 0x100bc18
push 4
call fcn.01055c50
jmp 0x105e2a7
push edi
lea eax, [ebp - 0x620]
push eax
push edi
push 0x20106
push edi
push edi
push edi
push 0x1001c88
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x105e3e2
push 4
lea eax, [ebp - 0x62c]
push eax
push 4
push edi
push 0x100b2e4
push dword [ebp - 0x620]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x620]
call esi
cmp dword [ebp - 0x62c], 2
jne 0x105e3f0
call fcn.0105dfe6
mov esi, dword [sym.imp.msvcrt.dll_wcsstr]
lea eax, [ebp - 0x20c]
push 0x100bc00
push eax
call esi
pop ecx
pop ecx
test eax, eax
je 0x105e450
lea eax, [ebp - 0x20c]
push 0x100bbfc
push eax
call esi
pop ecx
pop ecx
cmp eax, edi
je 0x105e450
push eax
push 0x100bba8
lea eax, [ebp - 0x414]
push 0x208
push eax
call fcn.01035968
add esp, 0x10
test eax, eax
jl 0x105e450
push 0xffff
push 1
lea eax, [ebp - 0x414]
push eax
push edi
call fcn.0105983a
mov eax, dword [ebp - 0x628]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01047480
leave