joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1050822
Capabilities:
Create directory
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x23c], 0
je 0x105084a
xor eax, eax
jmp 0x10508cc
push ebx
push 0x208
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
mov ebx, eax
pop ecx
test ebx, ebx
je 0x10508c2
push edi
lea eax, [ebp - 0x20c]
push eax
mov edi, 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x10508b1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x186a0
div ecx
lea eax, [ebp - 0x20c]
push edx
push eax
push 0x10085a4
push edi
push ebx
call fcn.01035968
add esp, 0x14
test eax, eax
jl 0x10508b1
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x10508b1
mov dword [esi + 0x23c], ebx
cmp dword [esi + 0x23c], 0
pop edi
jne 0x10508c9
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
mov eax, 0x80004005
jmp 0x10508cb
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.01047480
leave
ret
Function at 0x10508de
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2b4
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, dword [eax + 0x24]
push esi
xor esi, esi
mov dword [ebp - 0x2b4], eax
mov dword [ebp - 0x290], esi
mov dword [ebp - 0x294], esi
mov dword [ebp - 0x298], ecx
cmp ecx, esi
jne 0x1050921
mov eax, 0x80004005
jmp 0x1050ad2
mov eax, dword [eax + 0x1c]
push ebx
xor ebx, ebx
inc ebx
cmp eax, esi
je 0x1050940
cmp eax, ebx
je 0x1050940
cmp eax, 2
je 0x1050940
mov dword [ebp - 0x294], ebx
jmp 0x1050acb
push esi
push 0xc
push 0x10074d0
lea eax, [ebp - 0x28c]
push 0x208
push eax
call fcn.01035968
add esp, 0x14
test eax, eax
jl 0x1050ac1
push esi
lea eax, [ebp - 0x290]
push eax
push esi
push 3
push esi
push esi
push esi
lea eax, [ebp - 0x28c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1050ac1
push edi
lea eax, [ebp - 0x2b0]
push eax
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x2a4]
push eax
push esi
mov dword [ebp - 0x2ac], esi
mov dword [ebp - 0x2a8], esi
mov dword [ebp - 0x2a0], esi
mov dword [ebp - 0x29c], esi
mov esi, 0x10085d4
push esi
push dword [ebp - 0x290]
mov dword [ebp - 0x2b0], 0x80
mov dword [ebp - 0x2a4], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1050a30
cmp dword [ebp - 0x2a4], ebx
jne 0x1050a30
lea eax, [ebp - 0x84]
push eax
call fcn.01055efe
push dword [ebp - 0x298]
mov dword [ebp - 0x2a0], eax
mov dword [ebp - 0x29c], edx
call fcn.01055efe
mov dword [ebp - 0x2ac], eax
mov dword [ebp - 0x2a8], edx
cmp edx, dword [ebp - 0x29c]
jb 0x1050a5e
ja 0x1050a30
cmp eax, dword [ebp - 0x2a0]
jbe 0x1050a5e
mov eax, dword [ebp - 0x298]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x1050a39
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push dword [ebp - 0x298]
push ebx
push 0
push esi
push dword [ebp - 0x290]
call edi
mov eax, dword [ebp - 0x29c]
cmp dword [ebp - 0x2a8], eax
jb 0x1050ab2
ja 0x1050a7c
mov eax, dword [ebp - 0x2a0]
cmp dword [ebp - 0x2ac], eax
jb 0x1050ab2
mov eax, dword [ebp - 0x2b4]
mov ecx, dword [eax + 0x28]
test ecx, ecx
je 0x1050ab2
mov eax, ecx
lea esi, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x1050a8e
sub eax, esi
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push ecx
push ebx
push 0
push 0x10085c4
push dword [ebp - 0x290]
call edi
push dword [ebp - 0x290]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
jmp 0x1050acb
mov dword [ebp - 0x294], 0x80004005
mov eax, dword [ebp - 0x294]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.01047480
leave
ret
Function at 0x105149f
Capabilities:
Check for time delay via gettickcount
Create directory
Get common file path
Get file size

Disassembly:
mov ecx, dword [ecx + 0x60]
test ecx, ecx
jne 0x10514ac
mov eax, 0x80004005
ret
jmp fcn.0104f9f1
Function at 0x1051c43
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
push 0x88
mov dword [ebp - 0x420], ecx
mov dword [ebp - 0x41c], edi
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
xor edx, edx
pop ecx
cmp eax, edx
je 0x1051c88
mov ecx, eax
call fcn.0104efea
mov dword [ebp - 0x418], eax
jmp 0x1051c8e
mov dword [ebp - 0x418], edx
cmp dword [ebp - 0x418], edx
jne 0x1051ca0
mov eax, 0x8007000e
jmp 0x1051e95
push ebx
push esi
push edx
mov esi, 0x208
push esi
lea eax, [ebp - 0x20c]
push eax
mov ebx, 0x1007720
push ebx
push edi
call fcn.0104de87
mov edi, eax
test edi, edi
jge 0x1051cd7
push ebx
push 0x100883c
push 2
call fcn.01055c8a
add esp, 0xc
jmp 0x1051e6c
mov edi, dword [ebp - 0x418]
lea eax, [ebp - 0x20c]
push eax
mov ecx, edi
call fcn.0104c781
cmp dword [edi + 0x2c], 1
jne 0x1051d1d
push 0
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x1007784
push dword [ebp - 0x41c]
call fcn.0104de87
test eax, eax
jl 0x1051d1d
lea eax, [ebp - 0x20c]
push eax
mov ecx, edi
call fcn.0104c98c
push 0
push esi
lea eax, [ebp - 0x20c]
push eax
mov ebx, 0x1007738
push ebx
push dword [ebp - 0x41c]
call fcn.0104de87
mov edi, eax
test edi, edi
jl 0x1051cc2
mov ecx, dword [ebp - 0x418]
cmp dword [ecx + 0x2c], 1
je 0x1051dd3
mov edi, 0x104
push edi
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x1051d9d
lea eax, [ebp - 0x414]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x1051d6e
lea ecx, [ebp - 0x20c]
push ecx
sub eax, edx
lea ecx, [ebp - 0x414]
push ecx
sar eax, 1
sub edi, eax
push 0x1008828
mov eax, ecx
push edi
push eax
call fcn.0103592d
add esp, 0x14
lea eax, [ebp - 0x414]
push eax
call fcn.010561eb
test eax, eax
jne 0x1051dc5
push ebx
push 0x10087f8
xor edi, edi
push 2
inc edi
call fcn.01055c8a
add esp, 0xc
jmp 0x1051e70
mov ecx, dword [ebp - 0x418]
lea eax, [ebp - 0x414]
jmp 0x1051dd9
lea eax, [ebp - 0x20c]
push eax
call fcn.01051b6f
push 0
push esi
lea eax, [ebp - 0x20c]
push eax
mov ebx, 0x1007770
push ebx
push dword [ebp - 0x41c]
call fcn.0104de87
mov edi, eax
test edi, edi
jl 0x1051cc2
mov edi, dword [ebp - 0x418]
lea eax, [ebp - 0x20c]
push eax
mov ecx, edi
call fcn.0104c946
push 0
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x1007750
push dword [ebp - 0x41c]
call fcn.0104de87
test eax, eax
jl 0x1051e46
lea eax, [ebp - 0x20c]
push eax
lea eax, [edi + 0x14]
push eax
call fcn.0105849d
mov ecx, edi
call fcn.0104c73d
test eax, eax
je 0x1051e69
cmp dword [edi + 0x58], 2
je 0x1051e69
mov ecx, dword [ebp - 0x420]
push 0
push edi
call fcn.0104ca54
mov edi, eax
jmp 0x1051e6c
xor edi, edi
inc edi
test edi, edi
je 0x1051e91
mov ecx, dword [ebp - 0x418]
push 1
call fcn.01051c1d
test edi, edi
jge 0x1051e91
push edi
push 0x10087a0
push 2
call fcn.01055c8a
add esp, 0xc
pop esi
mov eax, edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.01047480
leave
ret 4
Function at 0x10546fa
Capabilities:
Delete registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
push edi
mov dword [ebp - 0x40], esi
mov ebx, 0x8007000e
mov dword [ebp - 0x30], edi
call fcn.0105443a
mov dword [ebp - 0x48], eax
cmp eax, edi
je 0x105473d
push esi
push 0x1009038
push eax
call fcn.0105a171
mov dword [ebp - 0x34], eax
jmp 0x1054740
mov dword [ebp - 0x34], edi
cmp dword [ebp - 0x34], edi
je 0x1054856
xor ebx, ebx
cmp dword [ebp + 0xc], edi
je 0x105482d
lea eax, [ebp - 0x38]
push eax
xor esi, esi
inc esi
push esi
push edi
push dword [ebp - 0x34]
mov dword [ebp - 0x38], edi
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x105482d
push 0x28
pop ebx
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x3c]
push eax
push edi
push 0x1009030
push dword [ebp - 0x38]
mov dword [ebp - 0x3c], esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x44], ebx
call esi
test eax, eax
jne 0x10547ca
cmp dword [ebp - 0x3c], 1
jne 0x10547ca
lea eax, [ebp - 0x2c]
push 0x10073b0
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x10547ca
push edi
push edi
push dword [ebp - 0x40]
call fcn.01059bcb
cmp eax, edi
jge 0x10547ca
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x3c]
push eax
push edi
push 0x1009020
push dword [ebp - 0x38]
mov dword [ebp - 0x44], ebx
call esi
test eax, eax
jne 0x1054813
cmp dword [ebp - 0x3c], 1
jne 0x1054813
lea eax, [ebp - 0x2c]
push 0x10073b0
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x1054813
push edi
push dword [ebp - 0x40]
call fcn.01059f1f
cmp eax, edi
jge 0x1054813
mov dword [ebp - 0x30], eax
push 1
push edi
push edi
push 1
push edi
push dword [ebp - 0x40]
call fcn.0105aaf1
push dword [ebp - 0x38]
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x34]
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [ebp - 0x34]
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
cmp ebx, edi
pop ecx
jge 0x1054859
cmp dword [ebp - 0x30], 0xd2af9
mov dword [ebp - 0x30], 0xc00d2afb
je 0x1054859
mov dword [ebp - 0x30], ebx
cmp ebx, 0xd2af9
jne 0x1054877
xor eax, eax
cmp dword [ebp - 0x30], edi
setl al
dec eax
and eax, 0x3ffffffe
add eax, 0xc00d2afb
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x30]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01047480
leave
ret 8
Function at 0x105531d
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x10746bc]
push esi
xor esi, esi
mov dword [ebp - 4], esi
cmp eax, esi
je 0x1055352
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1055352
push dword [ebp + 8]
push esi
push 0x5c6
push dword [0x10746bc]
call dword [sym.imp.USER32.dll_PostMessageW]
lea eax, [ebp - 4]
push eax
push 2
push esi
push 0x1001c88
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1055399
cmp dword [ebp + 8], esi
jne 0x1055379
mov dword [ebp + 8], 1
push 4
lea eax, [ebp + 8]
push eax
push 4
push esi
push 0x1001d70
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
leave
ret 4

Function at 0x10553a3
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x10746bc]
and dword [ebp - 4], 0
test eax, eax
je 0x10553d7
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x10553d7
push dword [ebp + 8]
push 0
push 0x5c7
push dword [0x10746bc]
call dword [sym.imp.USER32.dll_PostMessageW]
lea eax, [ebp - 4]
push eax
push 2
push 0
push 0x1001c88
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1055414
push 4
lea eax, [ebp + 8]
push eax
push 4
push 0
push 0x1001d98
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret 4
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
ret
Function at 0x10565e4
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push edi
lea eax, [ebp - 4]
push eax
push 0x20019
xor edi, edi
push edi
push 0x10096d4
push 0x80000002
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1056652
push esi
push 4
pop esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push edi
push 0x1008608
push dword [ebp - 4]
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1056648
cmp dword [ebp - 8], esi
jne 0x1056648
cmp dword [ebp - 0xc], 1
jne 0x1056648
inc edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov eax, edi
pop edi
leave
ret

Function at 0x1056665
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
or dword [ebp - 0x10], 0xffffffff
push ebx
lea eax, [ebp - 0x10]
push eax
xor ebx, ebx
push 0x20008
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1056760
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push 2
push dword [ebp - 0x10]
mov dword [ebp - 0x14], ebx
call edi
push dword [ebp - 0x14]
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
mov esi, eax
pop ecx
cmp esi, ebx
je 0x1056750
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
push esi
push 2
push dword [ebp - 0x10]
call edi
test eax, eax
je 0x1056749
lea eax, [ebp - 0x20]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x1056749
mov dword [ebp - 0x18], ebx
cmp dword [esi], ebx
jbe 0x1056740
lea edi, [esi + 4]
push dword [edi]
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x1056739
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
add edi, 8
cmp eax, dword [esi]
jb 0x105671b
jmp 0x1056740
mov dword [ebp - 0x1c], 1
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push esi
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
pop edi
pop esi
cmp dword [ebp - 0x10], ebx
je 0x1056760
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x1c]
xor ecx, ebp
pop ebx
call fcn.01047480
leave
ret
Function at 0x1056775
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 1
xor esi, esi
push esi
push 0x1009720
push 0x80000002
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10567be
lea eax, [ebp - 8]
push eax
push esi
push esi
push esi
push 0x1009704
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
pop esi
leave
ret

Function at 0x10568d3
Capabilities:
Shutdown system

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1056947
push esi
lea eax, [ebp - 0x10]
push eax
push 0x10097b8
xor esi, esi
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push esi
push esi
push esi
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x1056938
push 0x80040002
push 4
push esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_InitiateShutdownW]
cmp dword [ebp - 4], esi
pop esi
je 0x1056947
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
leave
ret

Function at 0x105694e
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push edi
lea eax, [ebp - 4]
push eax
push 0x20019
xor edi, edi
push edi
push 0x10097f8
push 0x80000002
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10569bc
push esi
push 4
pop esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push edi
push 0x10097e0
push dword [ebp - 4]
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10569b2
cmp dword [ebp - 8], esi
jne 0x10569b2
cmp dword [ebp - 0xc], 1
jne 0x10569b2
inc edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov eax, edi
pop edi
leave
ret
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
ret

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 0x105720c
Capabilities:
Copy file
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 0xc], 0
jne 0x1057220
xor eax, eax
jmp 0x10572d6
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push edi
push dword [ebp + 8]
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, 0x4000
test edi, eax
je 0x105727a
and dword [ebp - 8], 0
and dword [ebp - 4], 0
lea ecx, [ebp - 8]
call fcn.01055d6c
test eax, eax
je 0x1057272
push 0
push dword [ebp + 8]
call dword [ebp - 8]
test eax, eax
jne 0x1057272
call ebx
push eax
push dword [ebp + 0xc]
push 0x1009a90
push 2
call fcn.01055c8a
add esp, 0x10
lea ecx, [ebp - 8]
call fcn.01055d58
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push dword [ebp + 0xc]
mov dword [ebp + 8], eax
call esi
test edi, eax
je 0x10572d0
xor esi, esi
lea ecx, [ebp - 8]
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call fcn.01055d6c
test eax, eax
je 0x10572c8
push esi
push dword [ebp + 0xc]
call dword [ebp - 8]
test eax, eax
jne 0x10572c8
call ebx
push eax
push dword [ebp + 0xc]
push 0x1009a90
push 2
call fcn.01055c8a
add esp, 0x10
lea ecx, [ebp - 8]
call fcn.01055d58
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 0x10