joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001e10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10001e69
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10001e69
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x10001e5a
cmp esi, edx
jae 0x10001e69
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x10001e48
cmp esi, edx
jae 0x10001e69
cmp word [esi], 0
je 0x10001e69
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret

Function at 0x100023e0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009ca80
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x100cd4bc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
push 0x54
call fcn.1006129e
mov ecx, dword [ebp + 8]
mov esi, eax
lea edx, [esi + 4]
mov dword [ebp - 0x14], esi
add esp, 4
mov dword [ebp - 4], 0
lea edi, [edx + 4]
mov dword [ebp - 0x18], edx
mov dword [esi], vtable.._AV___Func_impl_no_alloc_V___Binder_U_Unforced_std__P8CAsyncExecuteURLExe__AEXV__basic_string_DU__char_traits_D_std__V__allocator_D_2__2_00_ZPAV3_AAV42_AAV42_AAV42__std__X__V_std__.0
lea ebx, [ecx + 4]
mov eax, dword [ecx]
mov ecx, edi
push ebx
mov dword [edx], eax
mov dword [ebp + 8], edi
call fcn.100024c0
lea eax, [ebx + 0x18]
mov byte [ebp - 4], 1
lea ecx, [edi + 0x18]
push eax
mov dword [ebp - 0x18], ecx
call fcn.100024c0
lea eax, [ebx + 0x30]
mov byte [ebp - 4], 2
lea ecx, [edi + 0x30]
push eax
mov dword [ebp - 0x18], ecx
call fcn.100024c0
mov eax, dword [ebx + 0x48]
mov dword [edi + 0x48], eax
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 0x10002b50
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009cb90
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x100cd4bc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ecx + 4]
lea eax, [ecx + 8]
sub esp, 0x18
mov dword [ebp - 0x10], eax
mov ecx, esp
mov dword [ebp - 0x14], esp
lea esi, [eax + 0x18]
lea edi, [eax + 0x30]
push eax
call fcn.100024c0
sub esp, 0x18
mov dword [ebp - 4], 0
mov ecx, esp
mov dword [ebp - 0x18], esp
push esi
call fcn.100024c0
sub esp, 0x18
mov byte [ebp - 4], 1
mov ecx, esp
push edi
call fcn.100024c0
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ecx + 0x48]
call ebx
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 0x10003290
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009cc07
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x100cd4bc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x10], 0
mov dword [edi], 0x100a3bc0
mov dword [ebp - 0x14], edi
mov dword [edi + 0x50], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [edi]
lea esi, [edi + 4]
push 0
push esi
mov dword [ebp - 4], 0
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], 1
mov dword [edi + eax], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + edi - 4], eax
mov eax, dword [edi]
mov ecx, dword [eax + 4]
add ecx, edi
call fcn.100074b0
mov eax, dword [edi]
push 8
mov dword [ebp - 4], 2
mov dword [ebp - 0x18], esi
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ecx + edi - 4], eax
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.1006129e
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x10003357
push 1
mov byte [ebp - 4], 3
call fcn.1004fc44
add esp, 4
mov dword [ebx + 4], eax
jmp 0x10003359
xor ebx, ebx
lea eax, [esi + 4]
mov dword [esi + 0x34], ebx
mov dword [esi + 0xc], eax
lea ecx, [esi + 8]
lea eax, [esi + 0x14]
mov dword [esi + 0x10], ecx
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x18]
mov dword [esi + 0x20], eax
lea eax, [esi + 0x24]
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x28]
mov dword [esi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov eax, dword [esi + 0x30]
mov dword [eax], 0
mov eax, dword [esi + 0xc]
mov dword [eax], 0
mov eax, dword [esi + 0x1c]
mov dword [eax], 0
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov dword [esi], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 4
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 0x10005660
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009cd96
mov eax, dword fs:[0]
push eax
sub esp, 0x41c
mov eax, dword [0x100cd4bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x41c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x418], eax
mov dword [ebp - 0x428], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x420], ecx
mov dword [ebp - 0x424], 0
mov dword [ebp - 0x414], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push esi
mov byte [ebp - 4], 1
call ebx
mov edi, eax
test edi, edi
jne 0x100056fd
push 2
push eax
push esi
call ebx
mov edi, eax
test edi, edi
jne 0x100056fd
call fcn.10004a90
mov esi, eax
jmp 0x100057f6
push dword [ebp - 0x418]
push dword [ebp - 0x41c]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x10005720
call fcn.10004a90
jmp 0x100057e9
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x10005738
call fcn.10004a90
jmp 0x100057e9
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x10005753
mov esi, 0x8007000e
jmp 0x100057eb
mov ecx, 2
mov byte [ebp - 4], 2
mul ecx
test edx, edx
ja 0x10005830
jb 0x10005771
cmp eax, 0xffffffff
ja 0x10005830
cmp eax, 0x400
jbe 0x10005786
push eax
lea ecx, [ebp - 0x414]
call fcn.100049b0
jmp 0x10005792
lea eax, [ebp - 0x410]
mov dword [ebp - 0x414], eax
cmp dword [ebp - 0x414], 0
mov dword [ebp - 4], 1
jne 0x100057a9
mov esi, 0x8007000e
jmp 0x100057eb
push esi
push dword [ebp - 0x414]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x100057c9
call fcn.10004a90
jmp 0x100057e9
mov eax, dword [ebp - 0x414]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x424]
push dword [ebp - 0x414]
call fcn.100054c0
mov esi, eax
test edi, edi
je 0x100057f6
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x410]
cmp dword [ebp - 0x414], eax
je 0x10005810
lea ecx, [ebp - 0x414]
call fcn.10004d00
nop
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 - 0x10]
xor ecx, ebp
call fcn.100612dc
mov esp, ebp
pop ebp
ret 0x10
push 0x80070216
call fcn.100015b0
int3
Function at 0x10008580
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009cf3b
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x100cd4bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x208
push 0
push eax
mov dword [ebp - 0x220], esi
call fcn.1006c590
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x21c]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x100085ff
push dword [ebp - 0x21c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
call fcn.10001d50
mov ecx, eax
test ecx, ecx
je 0x10008670
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
mov ecx, esi
call fcn.100020c0
test al, al
jne 0x10008654
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10008636
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.10001950
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100612dc
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.100015b0
int3
Function at 0x10008780
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009cfd9
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x100cd4bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov dword [ebp - 0x21c], edi
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.1006c590
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x10008850
call fcn.10001d50
mov ecx, eax
test ecx, ecx
je 0x1000897a
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
push 0x100bf9f0
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.100020c0
test al, al
jne 0x10008825
push 0
push 0x100bf9f0
mov ecx, edi
call fcn.10001950
mov esi, dword [ebp + 0xc]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1000895c
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x1000895c
call fcn.10001d50
mov ecx, eax
test ecx, ecx
je 0x10008984
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x21c]
call fcn.100020c0
test al, al
jne 0x100088b2
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10008890
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x21c]
call fcn.10001950
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 3
push dword [eax - 0xc]
push eax
call fcn.100083c0
cmp dword [ebp + 0x10], 0
mov esi, dword [ebp - 0x21c]
je 0x10008911
push 0
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10008911
push 0x100bf9f0
mov ecx, edi
call fcn.10002180
lea edx, [esi - 0x10]
mov byte [ebp - 4], 0
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1000893d
mov ecx, dword [edx]
push edx
jmp 0x10008938
lea ebx, [esi - 0x10]
push ebx
call fcn.100016d0
add eax, 0x10
mov byte [ebp - 4], 0
or esi, 0xffffffff
mov dword [edi], eax
add esp, 4
mov eax, esi
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x1000893d
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x1000895c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100612dc
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.100015b0
push 0x80004005
call fcn.100015b0
int3
Function at 0x10008990
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009d018
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x100cd4bc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x10008ae2
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x10008ae2
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x10008ae2
call fcn.10001d50
mov ecx, eax
test ecx, ecx
je 0x10008b0d
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0xc], eax
push edi
push 0x800
push 0x800
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0
call fcn.10008530
push eax
push dword [ebp + 0x18]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
push dword [esi - 8]
push esi
call fcn.10073a2b
add esp, 8
test eax, eax
js 0x10008b17
cmp eax, dword [esi - 8]
jg 0x10008b17
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
mov eax, dword [ebp - 0x10]
cmp eax, 0x7ff
je 0x10008a54
cmp eax, 0x7fe
jne 0x10008a9e
push edi
push 0x1000
push 0x1000
lea ecx, [ebp + 0xc]
call fcn.10008530
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov esi, dword [ebp + 0xc]
push dword [esi - 8]
push esi
call fcn.10073a2b
add esp, 8
test eax, eax
js 0x10008b17
cmp eax, dword [esi - 8]
jg 0x10008b17
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
add esi, 0xfffffff0
push esi
call fcn.100016d0
mov edi, dword [ebp + 8]
add eax, 0x10
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov dword [edi], eax
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10008ace
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x18]
mov ecx, 0x100bf9f0
test eax, eax
cmovne ecx, eax
push ecx
mov ecx, dword [ebp + 8]
call fcn.10002180
mov eax, dword [ebp + 8]
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 0x80004005
call fcn.100015b0
push 0x80070057
call fcn.100015b0
int3
Function at 0x10008b30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x10008be7
cmp dword [ebp + 0xc], 0
je 0x10008be7
test edx, edx
je 0x10008be7
mov ecx, edx
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
mov dword [ebp - 8], 4
mov dword [ebp + 8], 0
lea ebx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10008b80
sub ecx, ebx
lea eax, [ebp + 8]
sar ecx, 1
mov ebx, 0
push eax
cmovne ebx, edx
mov ecx, 0x20019
cmp dword [ebp + 0x18], 0
mov eax, 0x20119
cmove eax, ecx
push eax
push 0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10008be7
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
test esi, esi
je 0x10008bea
mov eax, dword [ebp + 0x14]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10008bf0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x81c
mov eax, dword [0x100cd4bc]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x814], ecx
mov dword [ebp - 0x810], eax
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x80c], edi
test ecx, ecx
je 0x10008cfa
test eax, eax
je 0x10008cfa
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.1006c590
add esp, 0xc
mov dword [ebp - 0x80c], 1
mov dword [ebp - 0x818], 0x200000
mov dword [ebp - 0x808], 0
test esi, esi
je 0x10008c8b
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10008c74
sub ecx, edx
mov eax, 0
sar ecx, 1
cmove esi, eax
cmp dword [ebp + 0x1c], 0
lea eax, [ebp - 0x808]
push eax
mov ecx, 0x20019
mov eax, 0x20119
cmove eax, ecx
push eax
push 0
push dword [ebp - 0x810]
push dword [ebp - 0x814]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10008cfa
lea eax, [ebp - 0x818]
push eax
lea eax, [ebp - 0x804]
push eax
lea eax, [ebp - 0x80c]
push eax
push 0
push esi
push dword [ebp - 0x808]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x808]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x10008cfa
lea eax, [ebp - 0x804]
jmp 0x10008d04
test ebx, ebx
mov eax, 0x100bf9f0
cmovne eax, ebx
push eax
mov ecx, edi
call fcn.10002180
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100612dc
mov esp, ebp
pop ebp
ret
Function at 0x10009080
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x10009126
cmp dword [ebp + 0xc], 0
je 0x10009126
test edx, edx
je 0x10009126
mov ecx, edx
mov dword [ebp + 8], 0
push ebx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100090b2
sub ecx, ebx
lea eax, [ebp - 4]
push eax
sar ecx, 1
lea eax, [ebp + 8]
push eax
mov ebx, 0
mov ecx, 0x20006
push 0
cmovne ebx, edx
mov eax, 0x20106
cmp dword [ebp + 0x18], 0
cmove eax, ecx
push eax
push 0
push 0
push 0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x10009119
push 4
lea eax, [ebp + 0x14]
push eax
push 4
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp + 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
pop ebx
sete al
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10009130
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
sub esp, 8
mov edx, dword [ebp + 0x10]
test eax, eax
push esi
mov esi, 0x100bf9f0
cmovne esi, eax
cmp dword [ebp + 8], 0
push edi
je 0x10009202
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x10009202
test edx, edx
je 0x10009202
mov ecx, edx
mov dword [ebp + 0x14], 0
lea eax, [ecx + 2]
mov dword [ebp - 4], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10009174
sub ecx, dword [ebp - 4]
mov eax, 0
sar ecx, 1
mov ecx, 0x20006
cmovne eax, edx
cmp dword [ebp + 0x18], 0
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 0x14]
push eax
push 0
mov eax, 0x20106
cmove eax, ecx
push eax
push 0
push 0
push 0
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
test edi, edi
jne 0x100091f5
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100091c6
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push esi
push 1
push 0
push dword [ebp - 4]
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp + 0x14]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
pop edi
sete al
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1000a950
Capabilities:
Check if file exists
Delete file
Get common file path
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x100cd4bc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push edi
mov edi, dword [ebp + 8]
push edi
call ebx
test eax, eax
je 0x1000ab1d
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1000ab1d
push esi
push 0x208
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.1006c590
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.1006c590
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
call fcn.1007b978
add esi, eax
lea eax, [ebp - 0x20c]
push esi
push eax
push str._sxra__u.tmp
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.1000bf10
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea eax, [ebp - 0x414]
add esp, 0x14
push 1
push eax
push edi
call esi
test eax, eax
je 0x1000aa25
push 4
push 0
lea eax, [ebp - 0x414]
push eax
call esi
push edi
call ebx
test eax, eax
je 0x1000aad6
push edi
call ebx
test eax, eax
je 0x1000ab0a
movzx eax, word [edi]
push eax
push str._c:.temp
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.1000bf10
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call ebx
test eax, eax
jne 0x1000aa83
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push 2
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
call fcn.1007b978
add esi, eax
lea eax, [ebp - 0x20c]
push esi
push eax
push str._sxra__u.tmp
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.1000bf10
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea eax, [ebp - 0x414]
add esp, 0x14
push 1
push eax
push edi
call esi
test eax, eax
je 0x1000aaec
push 4
push 0
lea eax, [ebp - 0x414]
push eax
call esi
pop esi
pop edi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100612dc
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0xc], 0
je 0x1000ab0a
push 4
push 0
push edi
call esi
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100612dc
mov esp, ebp
pop ebp
ret
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100612dc
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop ebx
call fcn.100612dc
mov esp, ebp
pop ebp
ret