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

Disassembly:
sub esp, 0x208
lea eax, [esp]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push ebp
push esi
push edi
xor edi, edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
mov esi, dword [esp + 0x21c]
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x18bdffb
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0x18be035
lea edx, [esp + 0x10]
push esi
push edx
push SysStringLen
call fcn.018bde00
add esp, 0xc
lea eax, [esp + 0x10]
inc edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
test eax, eax
je 0x18bdfc5
mov edi, 0x18d88b0
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0x18be035
mov edx, dword [edi]
push esi
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.018bde00
add edi, 4
add esp, 0xc
cmp edi, 0x18d88c0
jb 0x18be000
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x208
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x208
ret

Function at 0x18be070
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x250
push esi
push edi
mov edi, dword [esp + 0x25c]
push 0x5c
push edi
call fcn.018c4082
mov esi, eax
add esp, 8
test esi, esi
je 0x18be107
lea eax, [esp + 8]
mov word [esi], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x18be102
push ebx
lea ebx, [esi + 2]
push ebp
lea ecx, [esp + 0x3c]
push ebx
push ecx
call fcn.018c3946
add esp, 8
test eax, eax
je 0x18be0e3
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea edx, [esp + 0x10]
push edx
push edi
call ebp
test eax, eax
je 0x18be0e8
lea eax, [esp + 0x3c]
push ebx
push eax
call fcn.018c3946
add esp, 8
test eax, eax
jne 0x18be0c5
mov word [esi], 0x5c
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp word [esi], 0
pop ebp
pop ebx
je 0x18be102
pop edi
mov al, 1
pop esi
add esp, 0x250
ret
mov word [esi], 0x5c
pop edi
xor al, al
pop esi
add esp, 0x250
ret
Function at 0x18bef10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x18d39fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0x18bf002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.018c2dff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x18bf002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.018ba6e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.018c320b
push 0x10
call fcn.018c31d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0x18befc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.018af1c0
jmp 0x18befc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.018beb80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0x18beff0
mov ecx, edi
call fcn.018af2c0
push edi
call fcn.018c31c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x18bf021
inc ebx
cmp ebx, 0x20
jb 0x18bef3e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x18c0250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x18d4808
push 0x18c4288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x18c0329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x18c0329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.018c31d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0x18c0329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0x18c0329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0x18c032c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.018c0351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x18c0d20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x18c0d58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0x18c0d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x18c0d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0x18c0d94
push eax
push esi
call fcn.018c320b
add esp, 8
pop esi
ret 0x10

Function at 0x18c0da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x18c0e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0x18c0e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0x18d9320
push ecx
mov dword [esp + 0x1c], 4
call fcn.018c2dff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0x18c0dda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0x18c0e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x18c0ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0x18c0eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0x18d9320
push ecx
mov dword [esp + 0x1c], 4
call fcn.018c2dff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0x18c0eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0x18c0e6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0x18c1000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x18c1131
push esi
call fcn.018c4145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.018b3080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x18c1131
push 0
push ebp
call fcn.018b33a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.018b3260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x18c108b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.018b32f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x18c1121
push 0x18d9918
push edi
call fcn.018c23f0
push eax
push ebx
push esi
call fcn.018c0f60
push 0x18d98f8
push edi
call fcn.018c23f0
push eax
push ebx
push esi
call fcn.018c0f60
push 0x18d98d8
push edi
call fcn.018c23f0
push eax
push ebx
push esi
call fcn.018c0f60
push 0x18d98c0
push edi
call fcn.018c23f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.018c0f60
push 0x18d98a0
push edi
call fcn.018c23f0
push eax
push ebx
push esi
call fcn.018c0f60
push 0x18d9888
push edi
call fcn.018c23f0
push eax
push ebx
push esi
call fcn.018c0f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x18c21b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.018c2140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.018c2140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.018c2140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.018c2140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x18c2bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x18c2c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x18d487c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x18c2c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x18c2c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x40d5c0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.TPX1
lea edi, [esi - 0x9000]
push edi
jmp 0x40d5da
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40d5e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40d5d0
mov eax, 1
add ebx, ebx
jne 0x40d5f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40d5e8
jne 0x40d604
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40d5e8
xor ecx, ecx
sub eax, 3
jb 0x40d618
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40d68a
mov ebp, eax
add ebx, ebx
jne 0x40d623
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40d630
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40d654
inc ecx
add ebx, ebx
jne 0x40d640
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40d635
jne 0x40d651
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40d635
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40d674
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40d665
jmp 0x40d5d6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40d674
add edi, ecx
jmp 0x40d5d6
pop esi
mov edi, esi
mov ecx, 0x142
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40d692
cmp byte [edi], 1
jne 0x40d692
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40d697
lea edi, [esi + 0xb000]
mov eax, dword [edi]
or eax, eax
je 0x40d706
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xd1dc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xd30c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40d6c4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xd314]
or eax, eax
je 0x40d700
mov dword [ebx], eax
add ebx, 4
jmp 0x40d6e1
call dword [esi + 0xd310]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x40d737
cmp al, 0xef
ja 0x40d72a
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x40d70c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x40d719
mov ebp, dword [esi + 0xd318]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40d76b
sub esp, 0xffffff80
jmp 0x40484b
Function at 0x10020fd
Capabilities:
Create directory
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
cmp dword [ebp + 8], edi
jl 0x1002187
push dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push 0x1a
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x1002187
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x414]
push eax
push 0x2da
push dword [0x101100c]
call dword [sym.imp.USER32.dll_LoadStringW]
push edi
lea eax, [ebp - 0x414]
push eax
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.010025c7
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push edi
push dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push dword [ebp + 8]
push eax
call fcn.0100219b
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0100305d
leave
ret 8

Function at 0x10024ac
Capabilities:
Get common file path
Get program files directory
Get system information on windows
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0x214]
xor ebx, ebx
push eax
mov byte [ebp - 0x20d], bl
mov dword [ebp - 0x214], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
cmp dword [ebp - 0x214], ebx
jne 0x1003861
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
push ebx
push 0x26
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x1002561
push ebx
push 0x100259c
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.010025c7
test eax, eax
js 0x1002561
push ebx
push 0x1002580
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.010025c7
test eax, eax
js 0x1002561
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 8]
push edi
call fcn.010027f4
test eax, eax
js 0x1002561
mov byte [ebp - 0x20d], 1
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x20d]
pop esi
xor ecx, ebp
pop ebx
call fcn.0100305d
leave
ret 4
test eax, eax
je 0x1002561
jmp 0x100252f
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x1003880
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
jmp 0x1002577
Function at 0x1007244
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
cmp dword [0x1011470], esi
jne 0x100729c
lea eax, [ebp - 4]
push eax
push 1
push esi
push 0x1006dc8
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100729c
push esi
push esi
push esi
push esi
push 0x10072ac
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
xor ecx, ecx
test eax, eax
setne cl
inc ecx
mov dword [0x1011470], ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [0x1011470], 1
pop esi
sete al
leave
ret

Function at 0x10072d3
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
cmp dword [0x1011474], esi
jne 0x1007354
call fcn.01007244
test eax, eax
je 0x100734a
lea eax, [ebp - 4]
push eax
push 1
push esi
push 0x1006dc8
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1007354
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
push esi
push 0x1007364
push dword [ebp - 4]
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100733f
cmp dword [ebp - 8], esi
sete al
inc eax
mov dword [0x1011474], eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1007354
mov dword [0x1011474], 2
xor eax, eax
cmp dword [0x1011474], 1
pop esi
sete al
leave
ret

Function at 0x1007611
Capabilities:
Get common file path
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
mov eax, 0x80070057
test edi, edi
je 0x10076c5
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [edi]
push 0
push 0
or eax, 0x8000
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x10076c5
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x1007670
push 0
push ecx
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.010025c7
test eax, eax
js 0x1007693
cmp dword [edi], 6
jne 0x1007682
call fcn.01007a1a
test eax, eax
jne 0x1007691
push esi
lea esi, [ebp - 0x20c]
call fcn.010079e7
pop esi
jmp 0x1007693
xor eax, eax
mov edi, dword [edi + 8]
cmp edi, 0xffffffff
je 0x10076c5
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x10076b1
xor eax, eax
jmp 0x10076c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10076c5
and eax, 0xffff
or eax, 0x80070000
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0100305d
leave
ret
Function at 0x10076d7
Capabilities:
Get common file path
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0x20c]
push eax
xor ebx, ebx
push ebx
push ebx
push 0x21
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
cmp esi, ebx
jne 0x10077df
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call sub.msvcrt.dll_wcsrchr
pop ecx
pop ecx
cmp eax, ebx
je 0x1007725
xor ecx, ecx
mov word [eax], cx
push edi
push dword [ebp + 8]
mov edi, 0x104
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.01007383
mov esi, eax
cmp esi, ebx
jne 0x10077de
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
cmp eax, ebx
je 0x1007767
cmp eax, 0x50
je 0x1007767
cmp eax, 0xb7
je 0x1007767
cmp eax, ebx
jmp 0x10077d0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, 0x2002
test ebx, eax
jne 0x100778b
push ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push 0x1006efc
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.010025c7
mov esi, eax
test esi, esi
js 0x10077de
lea esi, [ebp - 0x20c]
call fcn.010079e7
mov esi, eax
test esi, esi
js 0x10077de
push ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x10077de
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10077dc
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
pop edi
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100305d
leave
ret 4

Function at 0x10077f6
Capabilities:
Check if file exists
Get common file path
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, 0x1011400
xor ebx, ebx
mov ecx, edi
call fcn.01007611
mov esi, eax
test esi, esi
js 0x10078d1
add ebx, 0xc
add edi, 0xc
cmp ebx, 0x48
jb 0x1007815
xor edi, edi
push dword [edi + 0x1011448]
call fcn.010076d7
mov esi, eax
test esi, esi
js 0x10078d1
add edi, 4
cmp edi, 0xc
jb 0x1007833
lea eax, [ebp - 0x20c]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x10078bb
push 0
push 0x1006efc
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.010025c7
mov esi, eax
test esi, esi
js 0x10078d1
lea esi, [ebp - 0x20c]
call fcn.010079e7
mov esi, eax
test esi, esi
js 0x10078d1
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10078bb
or eax, 0x2000
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x10078d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10078cf
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100305d
leave
ret