joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1008cfea
Capabilities:
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x100ae134]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x10
push 9
lea ecx, [ebp - 0x10]
push ecx
push eax
call dword [sym.imp.msvcrt.dll__ultoa_s]
add esp, 0x10
lea ecx, [ebp - 0x38]
push 0x10004e8c
push 0x28
pop edx
call fcn.10069bea
test eax, eax
jns 0x1008d033
or eax, 0xffffffff
jmp 0x1008d06d
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x38]
call fcn.1008d457
lea eax, [ebp - 0x38]
push eax
push esi
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
test eax, eax
je 0x1008d06b
push esi
push esi
push esi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, edi
mov dword [edi + 0x3d8], eax
call fcn.1008ceab
mov esi, eax
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10036de8
mov esp, ebp
pop ebp
ret

Function at 0x1008d340
Capabilities:
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x100ae134]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
xor edi, edi
cmp dword [ebx], 0x48
jae 0x1008d365
xor eax, eax
jmp 0x1008d445
cmp dword [ebx + 0x30], 0xff
ja 0x1008d35e
push 0x10
push 9
lea eax, [ebp - 0x10]
push eax
push dword [ebx + 8]
call dword [sym.imp.msvcrt.dll__ultoa_s]
add esp, 0x10
lea ecx, [ebp - 0x38]
push 0x10004e8c
push 0x28
pop edx
call fcn.10069bea
test eax, eax
js 0x1008d35e
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x38]
call fcn.1008d457
test eax, eax
js 0x1008d35e
push esi
call fcn.1008d07d
mov esi, eax
test esi, esi
je 0x1008d3c2
and dword [ebp - 0x40], edi
lea edi, [ebp - 0x48]
mov dword [ebp - 0x48], 0xc
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x38]
push eax
push 0x13c
push 0
push 4
push edi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edi, eax
test esi, esi
je 0x1008d3e5
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
test edi, edi
je 0x1008d444
push eax
push eax
push eax
push 6
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edx, eax
mov dword [ebp - 0x3c], edx
test edx, edx
je 0x1008d444
mov eax, dword [ebx + 4]
lea edi, [edx + 8]
mov dword [edx], eax
lea esi, [ebx + 0xc]
mov eax, dword [ebx + 0x44]
mov dword [edx + 4], eax
push 8
pop ecx
rep movsd dword es:[edi], dword [esi]
lea edi, [edx + 0x28]
lea esi, [ebx + 0x34]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 0x30]
mov dword [edx + 0x38], eax
lea eax, [edx + 0x3c]
push dword [ebx + 0x30]
push dword [ebx + 0x2c]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
xor eax, eax
inc eax
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.100365c0
mov esp, ebp
pop ebp
ret 4
Function at 0x100a960a
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x100ae134]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0x110]
xor ebx, ebx
push eax
push 0x20019
push ebx
push 0x1002a2f0
push SysReAllocStringLen
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100a96cf
push edi
lea eax, [ebp - 0x114]
mov dword [ebp - 0x10c], 1
push eax
lea eax, [ebp - 0x108]
mov edi, 0x104
push eax
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x114], edi
push eax
push ebx
push ebx
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100a96be
cmp dword [ebp - 0x10c], 2
lea eax, [ebp - 0x108]
mov byte [ebp - 5], bl
jne 0x100a96ad
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
dec eax
lea ecx, [edi - 1]
cmp ecx, eax
sbb ebx, ebx
inc ebx
jmp 0x100a96be
push eax
mov edx, edi
mov ecx, esi
call fcn.10036de8
xor ebx, ebx
test eax, eax
setns bl
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop edi
jmp 0x100a96d1
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.100365c0
mov esp, ebp
pop ebp
ret
Function at 0x100011b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001a398
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x100272d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 0x100216dc
push 0x69
push dword [0x100297a8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x10001205
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push dword [0x100297a8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x100011f1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x100011f1
push esi
push dword [0x100297a8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x10], vtable.CFileHandler.0
mov dword [ebp - 4], 0
cmp dword [0x10029800], 0
jne 0x100011f1
mov ecx, dword [ebx + 0xc]
push eax
push edi
call fcn.100071d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10002080
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x100272d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
push 0x90
lea eax, [ebp - 0x94]
push 0
push eax
mov esi, 2
call fcn.10010460
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x94], 6
jb 0x100021aa
push ebx
push edi
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x100021a9
lea eax, [ebp - 0x9c]
push eax
push 0x18
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x100021a2
lea eax, [ebp - 0xa0]
push eax
push 0
push 0
push 0x19
push dword [ebp - 0x9c]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x10002196
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x10002196
push dword [ebp - 0xa0]
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x10002196
lea eax, [ebp - 0xa0]
push eax
push dword [ebp - 0xa0]
push edi
push 0x19
push dword [ebp - 0x9c]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x1000218f
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthorityCount]
mov al, byte [eax]
dec al
movzx eax, al
push eax
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthority]
mov eax, dword [eax]
cmp eax, 0x2000
jb 0x1000218f
cmp eax, 0x3000
sbb esi, esi
add esi, 4
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0x9c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.10009545
mov esp, ebp
pop ebp
ret 4
Function at 0x100021c0
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001a400
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x100272d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push dword [edi + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1000220c
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [edi + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
call ebx
test eax, eax
jne 0x100021f7
push 0x2e
mov ecx, edi
call fcn.10005400
mov esi, eax
cmp esi, 0xffffffff
je 0x100021f7
lea eax, [esi - 1]
push eax
push 0
lea eax, [ebp - 0x2c]
push eax
mov ecx, edi
call fcn.10005230
mov dword [ebp - 4], 0
mov eax, dword [edi + 4]
sub eax, esi
push eax
push esi
lea eax, [ebp - 0x1c]
push eax
mov ecx, edi
call fcn.10005230
mov byte [ebp - 4], 1
xor esi, esi
jmp 0x10002260
push dword [ebp - 0x20]
mov ecx, edi
call fcn.10004bc0
push esi
mov ecx, edi
call fcn.10004d10
push dword [ebp - 0x10]
mov ecx, edi
call fcn.10004ca0
push dword [edi + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1000229b
push dword [edi + 0xc]
call ebx
test eax, eax
jne 0x1000229b
inc esi
cmp esi, 0xa
jl 0x10002260
or esi, 0xffffffff
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], vtable.CStringBufferW.0
test eax, eax
je 0x100022b2
push eax
call fcn.10009ff3
add esp, 4
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], vtable.CSeed.0
mov dword [ebp - 0x2c], vtable.CStringBufferW.0
test eax, eax
je 0x100022e5
push eax
call fcn.10009ff3
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10003d40
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001a8d2
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x100272d0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push eax
mov dword [ebp - 0x248], esi
mov dword [ebp - 0x244], 0
call fcn.10010460
add esp, 0xc
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x21c]
push eax
mov dword [ebp - 0x240], 0x103
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x10003e31
mov dword [ebp - 4], 0
lea edi, [ebp - 0x21c]
mov dword [esi], vtable.CStringBufferW.0
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0
mov dword [esi + 4], 0
lea ecx, [edi + 2]
lea esp, [esp]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x10003df0
sub edi, ecx
sar edi, 1
je 0x10003f86
push edi
mov ecx, esi
call fcn.10004f50
push edi
lea eax, [ebp - 0x21c]
push eax
push dword [esi + 8]
push dword [esi + 0xc]
call fcn.1000a730
lea ecx, [edi + 1]
add esp, 0x10
mov dword [esi + 4], edi
mov dword [esi + 8], ecx
jmp 0x10003f86
lea eax, [ebp - 0x22c]
push eax
call fcn.10003fb0
mov dword [ebp - 4], 1
mov edi, dword [ebp - 0x220]
test edi, edi
je 0x10003f54
mov ebx, dword [ebp - 0x228]
test ebx, ebx
je 0x10003f54
push 0x5c
lea ecx, [ebp - 0x22c]
call fcn.10005400
cmp eax, 0xffffffff
jne 0x10003eae
push 0x2f
lea ecx, [ebp - 0x22c]
call fcn.10005400
cmp eax, 0xffffffff
jne 0x10003eae
mov dword [esi], vtable.CStringBufferW.0
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0
mov dword [esi + 4], 0
mov dword [ebp - method.CStringBufferW.virtual_0], vtable.CStringBufferW.0
jmp 0x10003f7d
sub ebx, eax
dec ebx
push ebx
inc eax
push eax
lea eax, [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x22c]
call fcn.10005230
mov byte [ebp - 4], 5
push dword [ebp - 0x238]
mov ecx, esi
push dword [ebp - 0x230]
mov dword [esi], vtable.CStringBufferW.0
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0
mov dword [esi + 4], 0
call fcn.10004b40
mov eax, dword [ebp - 0x230]
mov dword [ebp - method.CStringBufferW.virtual_0], vtable.CStringBufferW.0
test eax, eax
je 0x10003f15
push eax
call fcn.10009ff3
add esp, 4
mov eax, dword [ebp - 0x220]
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x238], 0
mov dword [ebp - method.CSeed.virtual_0], vtable.CSeed.0
mov dword [ebp - method.CStringBufferW.virtual_0], vtable.CStringBufferW.0
test eax, eax
je 0x10003f86
push eax
jmp 0x10003f7e
mov dword [esi], vtable.CStringBufferW.0
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0
mov dword [esi + 4], 0
mov dword [ebp - method.CStringBufferW.virtual_0], vtable.CStringBufferW.0
test edi, edi
je 0x10003f86
push edi
call fcn.10009ff3
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10009545
mov esp, ebp
pop ebp
ret 4
Function at 0x10003fb0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001a9d6
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x100272d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x8028
push 0
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x21c], 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x10004029
mov dword [esi], vtable.CStringBufferW.0
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0
mov dword [esi + 4], 0
jmp 0x1000408c
mov dword [ebp - 4], 1
lea edi, [ebp - 0x218]
mov dword [esi], vtable.CStringBufferW.0
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0
mov dword [esi + 4], 0
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x10004054
sub edi, ecx
sar edi, 1
je 0x1000408c
push edi
mov ecx, esi
call fcn.10004f50
push edi
lea eax, [ebp - 0x218]
push eax
push dword [esi + 8]
push dword [esi + 0xc]
call fcn.1000a730
lea eax, [edi + 1]
add esp, 0x10
mov dword [esi + 4], edi
mov dword [esi + 8], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10009545
mov esp, ebp
pop ebp
ret 4

Function at 0x100040b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001a9d6
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x100272d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x8026
push 0
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x21c], 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x10004129
mov dword [esi], vtable.CStringBufferW.0
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0
mov dword [esi + 4], 0
jmp 0x1000418c
mov dword [ebp - 4], 1
lea edi, [ebp - 0x218]
mov dword [esi], vtable.CStringBufferW.0
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0
mov dword [esi + 4], 0
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x10004154
sub edi, ecx
sar edi, 1
je 0x1000418c
push edi
mov ecx, esi
call fcn.10004f50
push edi
lea eax, [ebp - 0x218]
push eax
push dword [esi + 8]
push dword [esi + 0xc]
call fcn.1000a730
lea eax, [edi + 1]
add esp, 0x10
mov dword [esi + 4], edi
mov dword [esi + 8], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10009545
mov esp, ebp
pop ebp
ret 4
Function at 0x10006160
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov eax, dword [edi + 0xc]
push eax
push eax
push esi
push 0x80000002
push str.Start_:_hRoot0x_X__wCharKey_s__wStrValueName_s__wStrValue_s
push str.CSetupRegW::SetRegEntry
push 8
call fcn.10007390
add esp, 0x1c
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x100061d8
xor ecx, ecx
cmp eax, 5
setne cl
push eax
push str.End_:_return_FALSE__RegCreateKeyExW_returned_0x_X_
push str.CSetupRegW::SetRegEntry
add ecx, 2
push ecx
call fcn.10007390
add esp, 0x10
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x100061f1
mov eax, dword [edi + 4]
test eax, eax
je 0x100061f1
lea eax, [eax*2 + 1]
push eax
push ecx
jmp 0x100061f8
push 1
push 0x100216f8
push 1
push 0
push str.AutoUpdateHelperPath
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, eax
test ecx, ecx
je 0x10006239
xor eax, eax
cmp ecx, 5
setne al
push ecx
push str.End_:_return_FALSE__RegSetValueExW_returned_0x_X_
push str.CSetupRegW::SetRegEntry
add eax, 2
push eax
call fcn.10007390
add esp, 0x10
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.End_:_return_TRUE
push str.CSetupRegW::SetRegEntry
push 8
call fcn.10007390
add esp, 0xc
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x10006270
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001ad98
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x100272d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0x14]
mov edi, dword [ebp + 0xc]
push dword [ebx + 0xc]
mov esi, dword [ebp + 8]
push dword [ebp + 0x10]
push edi
push esi
push str.Start_:_root0x_X__key_s__valueName_s__wStrValue_s
push str.CSetupRegW::GetStringFromRegistryValue
push 8
call fcn.10007390
add esp, 0x1c
cmp dword [ebp + 0x18], 0
mov ecx, 0x101
mov eax, 0x201
cmovne eax, ecx
lea ecx, [ebp + 0x14]
push ecx
push eax
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, eax
test ecx, ecx
jne 0x10006419
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
push ecx
lea eax, [ebp + 8]
push eax
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp + 8], 3
mov esi, eax
jne 0x10006334
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
cmp esi, 5
setne cl
push str.End_:_return_FALSE__RegQueryValueExW_dwordTypeREG_BINARY_
push str.CSetupRegW::GetStringFromRegistryValue
add ecx, 2
push ecx
call fcn.10007390
add esp, 0xc
jmp 0x10006438
cmp esi, 0xea
je 0x10006359
test esi, esi
je 0x10006359
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
xor eax, eax
push str.End_:_return_FALSE__RegQueryValueExW_returned_0x_X_
cmp esi, 5
jmp 0x10006424
mov edi, dword [ebp + 0xc]
push 2
lea eax, [edi*2 + 2]
push eax
call fcn.1000afe0
mov esi, eax
add esp, 8
test esi, esi
je 0x100063e3
lea eax, [ebp + 0x18]
push eax
push esi
lea eax, [ebp + 8]
push eax
push 0
push dword [ebp + 0x10]
mov dword [ebp + 0x18], edi
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100063d6
mov eax, dword [ebp + 0x18]
cmp eax, dword [ebp + 0xc]
ja 0x100063d6
xor ecx, ecx
push ecx
mov word [esi + eax*2], cx
push esi
lea ecx, [ebp - 0x20]
call fcn.100048e0
lea eax, [ebp - 0x20]
push eax
mov ecx, ebx
mov dword [ebp - 4], 0
call fcn.10004c50
push esi
call fcn.1000a27e
add esp, 4
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
call fcn.10004950
jmp 0x100063e3
push esi
call fcn.1000a27e
mov ecx, ebx
call fcn.10004f20
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.End_:_return_TRUE
push str.CSetupRegW::GetStringFromRegistryValue
push 8
call fcn.10007390
add esp, 0xc
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
push ecx
xor eax, eax
push str.End_:_return_FALSE__RegOpenKeyExW_returned_0x_X_
cmp ecx, 5
setne al
push str.CSetupRegW::GetStringFromRegistryValue
add eax, 2
push eax
call fcn.10007390
add esp, 0x10
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x100071d0
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001af18
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
push edi
mov eax, dword [0x100272d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [ebp + 8], 0
je 0x100072bd
cmp dword [ebp + 0xc], 0
je 0x100072bd
test esi, esi
je 0x100072bd
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.100048e0
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0
call fcn.10005920
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x1000724a
cmp dword [ebp - 0x18], 0
je 0x1000724a
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10007253
lea eax, [ebp - 0x1c]
push eax
call fcn.100072e0
push 0x30
push 0x10022460
push esi
call fcn.1000b25d
mov edi, eax
add esp, 0xc
test edi, edi
je 0x10007296
push edi
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call fcn.1000b47e
push edi
mov esi, eax
call fcn.1000b5af
add esp, 0x14
push edi
call fcn.1000b754
add esp, 4
test esi, esi
jle 0x10007296
mov esi, 1
jmp 0x10007298
xor esi, esi
lea ecx, [ebp - 0x1c]
call fcn.10004950
lea ecx, [ebp - 0x2c]
call fcn.10004950
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x100072e0
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x10029800], 0
mov eax, dword [ebp + 8]
push edi
mov edi, dword [eax + 0xc]
jne 0x10007320
test edi, edi
je 0x10007320
push esi
push edi
mov esi, 1
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10007318
push eax
push edi
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
xor ecx, ecx
test eax, eax
cmovne esi, ecx
mov eax, esi
pop esi
pop edi
pop ebp
ret 4
xor eax, eax
pop edi
pop ebp
ret 4