joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10003210
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f45db
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x1014f644]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.1006e9e6
push 4
mov dword [ebp - 4], 0
call fcn.10071bdd
mov edi, eax
add esp, 4
test edi, edi
je 0x10003290
call fcn.1006ed94
mov dword [edi], eax
call fcn.1006eb53
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.1006ea88
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x10003286
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.1006eab0
jmp 0x10003292
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
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 0x100062a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, eax
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x100062bd
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x100062f2
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x100062ee
lea ecx, [ecx]
cmp esi, eax
jae 0x100062f2
dec edi
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x100062e0
cmp esi, eax
jb 0x100062f9
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10009eb0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100fa138
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x1014f644]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [edi]
xor ebx, ebx
push eax
mov dword [ebp - 0x30], ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10009f06
push ebx
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
push 0x1012f5e5
mov ecx, esi
mov byte [esi], bl
call fcn.100071e0
jmp 0x10009f67
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
lea eax, [ebp - 0x2c]
push eax
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.10009f90
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov byte [esi], bl
test eax, eax
je 0x10009f48
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, esi
call fcn.1000a250
cmp dword [ebp - 0x18], 0x10
jb 0x10009f67
mov edx, dword [ebp - 0x2c]
push edx
jmp 0x10009f5f
push ebx
push 0x1012f5e5
mov ecx, esi
call fcn.100071e0
cmp dword [ebp - 0x18], 0x10
jb 0x10009f67
mov eax, dword [ebp - 0x2c]
push eax
call fcn.100719b6
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100719c1
mov esp, ebp
pop ebp
ret
Function at 0x10009f90
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100feb98
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x1014f644]
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 dword [ebp - 0x10], esp
mov ebx, dword [ebp + 8]
push 0
mov esi, ecx
push 0x1012f5e5
mov ecx, ebx
mov dword [ebp - 4], 0
call fcn.100071e0
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1000a00d
push esi
lea esi, [ebp - 0x30]
call fcn.1000ce70
add esp, 4
mov byte [ebp - 4], 1
cmp dword [ebp - 0x20], 0
jne 0x1000a02d
cmp dword [ebp - 0x1c], 0x10
jb 0x1000a00d
mov eax, dword [ebp - 0x30]
push eax
call fcn.100719b6
add esp, 4
xor eax, eax
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.100719c1
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x5c]
push edx
call fcn.1000c980
lea eax, [ebp - 0x78]
push eax
lea edi, [ebp - 0x5c]
mov byte [ebp - 4], 2
call fcn.1000cad0
push eax
mov ecx, ebx
mov byte [ebp - 4], 3
call fcn.1000a250
mov edi, 0x10
mov byte [ebp - 4], 2
cmp dword [ebp - 0x64], edi
jb 0x1000a070
mov ecx, dword [ebp - 0x78]
push ecx
call fcn.100719b6
add esp, 4
lea edx, [ebp - 0x5c]
test edx, edx
je 0x1000a0ab
lea ecx, [ebp - 0x5a]
call fcn.1000a0f0
test eax, eax
je 0x1000a0ab
mov eax, dword [ebp - 0x20]
cmp dword [ebp - 0x56], eax
jne 0x1000a0ab
test eax, eax
je 0x1000a0ab
lea eax, [ebp - 0x4f]
test eax, eax
je 0x1000a0ab
mov ecx, eax
push ecx
mov ecx, ebx
call fcn.1000a170
test eax, eax
je 0x1000a0ab
mov esi, 1
jmp 0x1000a0ad
xor esi, esi
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x1000a0c5
push eax
call fcn.10072566
add esp, 4
xor eax, eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x1c], edi
jb 0x1000a0d6
mov edx, dword [ebp - 0x30]
push edx
call fcn.100719b6
add esp, 4
mov eax, esi
jmp 0x1000a00f

Function at 0x1000a560
Capabilities:
Set registry value

Disassembly:
mov edx, dword [eax + 0x2c]
push ebx
mov ebx, dword [eax + 0xc]
push esi
push edi
mov edi, dword [ecx]
mov ecx, dword [eax + 0x24]
push 0
lea esi, [eax + 0x20]
mov eax, dword [esi + 8]
push esi
push 0
push edx
push 0
push 0
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [eax + eax + 2]
mov eax, dword [esi]
push edx
push edi
push 1
push 0
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov dword [esi], 0
pop esi
pop ebx
ret
Function at 0x1000a990
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100fed9a
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x1014f644]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
mov esi, ecx
xor edi, edi
mov dword [esp + 0x18], edi
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1000aadb
mov eax, dword [esi + 0x20]
sub eax, 0x10
call fcn.10006190
add eax, 0x10
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x30]
mov dword [esp + 0x58], edi
push eax
mov dword [esp + 0x4c], edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea ecx, [esp + 0x2c]
push ecx
call fcn.10010be0
lea edx, [esp + 0x14]
push edx
mov ecx, str.sres
mov dword [esp + 0x5c], 1
call fcn.10006710
push ebx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x34]
mov byte [esp + 0x60], 2
call fcn.10010ea0
mov byte [esp + 0x58], 4
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or esi, 0xffffffff
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000aa5e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
cmp dword [eax - 0xc], edi
je 0x1000aaab
add eax, 0xfffffff0
call fcn.10006190
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
mov byte [esp + 0x58], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000aa9b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x2c]
push ecx
mov dword [esp + 0x5c], esi
call fcn.10010e10
jmp 0x1000ab22
add eax, 0xfffffff0
mov byte [esp + 0x58], 1
lea edx, [eax + 0xc]
mov ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1000aacb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x2c]
push ecx
mov dword [esp + 0x5c], esi
call fcn.10010e10
jmp 0x1000aade
or esi, 0xffffffff
lea edx, [esp + 0x1c]
push edx
call fcn.100109a0
mov edi, dword [ebp + 8]
mov dword [esp + 0x58], 5
mov eax, dword [ebx]
push eax
push edi
lea eax, [esp + 0x24]
push eax
call fcn.10010a80
mov dword [esp + 0x58], esi
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x1000ab22
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1000ae60
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1014f644]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x206
mov esi, ecx
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov dword [ebp - 0x210], 0
mov word [ebp - 0x20c], ax
call fcn.1007ada0
add esp, 0xc
push 0
push 0x28
lea edx, [ebp - 0x20c]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1000aed0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x20c]
call fcn.10006bc0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.100719c1
mov esp, ebp
pop ebp
ret

Function at 0x1000af00
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1014f644]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x206
mov esi, ecx
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov dword [ebp - 0x210], 0
mov word [ebp - 0x20c], ax
call fcn.1007ada0
add esp, 0xc
push 0
push 0x1a
lea edx, [ebp - 0x20c]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1000af70
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x20c]
call fcn.10006bc0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.100719c1
mov esp, ebp
pop ebp
ret
Function at 0x1000b0d0
Capabilities:
Get session user name
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x618
mov eax, dword [0x1014f644]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x1fe
push eax
lea ecx, [ebp - 0x202]
mov esi, 0x100
push ecx
mov dword [ebp - 0x60c], esi
mov word [ebp - 0x204], ax
call fcn.1007ada0
xor edx, edx
push 0x1fe
push edx
lea eax, [ebp - 0x402]
push eax
mov word [ebp - 0x404], dx
call fcn.1007ada0
xor ecx, ecx
push 0x1fe
push ecx
lea edx, [ebp - 0x602]
push edx
mov word [ebp - 0x604], cx
call fcn.1007ada0
add esp, 0x24
lea eax, [ebp - 0x608]
push eax
lea ecx, [ebp - 0x204]
push ecx
mov dword [ebp - 0x608], esi
mov dword [ebp - 0x614], esi
mov dword [ebp - 0x610], esi
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
pop esi
test eax, eax
jne 0x1000b18b
push str.Fail_To_Get_UserName_n
call fcn.10073cd8
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100719c1
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x204]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1000b194
sub eax, edx
sar eax, 1
inc eax
mov dword [ebp - 0x608], eax
lea edx, [ebp - 0x618]
push edx
lea eax, [ebp - 0x610]
push eax
lea ecx, [ebp - 0x604]
push ecx
lea edx, [ebp - 0x614]
push edx
lea eax, [ebp - 0x404]
push eax
lea ecx, [ebp - 0x204]
push ecx
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x1000b17b
lea edx, [ebp - 0x404]
push edx
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x1000b17b
lea eax, [ebp - 0x60c]
push eax
lea ecx, [ebp - 0x404]
push edi
push ecx
call fcn.1000afa0
add esp, 0xc
test eax, eax
je 0x1000b17b
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.100719c1
mov esp, ebp
pop ebp
ret
Function at 0x1000ce70
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100fba28
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x1014f644]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x38], edi
mov eax, dword [ebx]
push eax
mov dword [ebp - 0x3c], ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1000cecb
mov ebx, dword [ebx]
lea eax, [ebp - 0x34]
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x1000cecb
mov ebx, dword [ebp - 0x14]
cmp ebx, edi
jne 0x1000ced4
mov dword [esi + 0x10], edi
push edi
jmp 0x1000cf64
lea eax, [ebx + 1]
push eax
call fcn.1006e7e5
mov edi, eax
add esp, 4
test edi, edi
je 0x1000cf5b
lea eax, [ebx + 1]
push eax
push 0
push edi
call fcn.1007ada0
mov eax, dword [ebp - 0x3c]
push ebx
push edi
call fcn.1000cfa0
mov ecx, dword [ebp - 0x38]
add esp, 0x14
push ecx
add ebx, edi
push ebx
push edi
lea edx, [ebp - 0x2c]
push edx
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
call fcn.10010340
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
call fcn.10072566
add esp, 4
lea eax, [ebp - 0x2c]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
push eax
mov ecx, esi
mov byte [esi], bl
call fcn.1000a250
cmp dword [ebp - 0x18], 0x10
jb 0x1000cf7a
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.100719b6
add esp, 4
jmp 0x1000cf7a
mov dword [esi + 0x10], 0
push 0
mov dword [esi + 0x14], 0xf
push 0x1012f5e5
mov ecx, esi
mov byte [esi], 0
call fcn.100071e0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100719c1
mov esp, ebp
pop ebp
ret

Function at 0x1000cfa0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [eax]
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1000cfe8
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push edi
lea ecx, [ebp - 4]
push ecx
push edx
push eax
push esi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1000e8a0
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f94f0
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x1014f644]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0x58], 0x10
lea ecx, [eax + 0x10]
mov dword [ecx + 0x4c], ecx
mov dl, 1
mov byte [ecx + 0x41], dl
mov dword [eax + 0xa8], 0x10
mov byte [eax + 0xa1], dl
lea ecx, [eax + 0x60]
mov dword [ecx + 0x4c], ecx
mov ecx, dword [eax + 0xac]
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
mov dword [ecx + 0x10], 0xc3d2e1f0
mov dword [eax], vtable.CryptoPP::SHA1.0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100719c1
mov esp, ebp
pop ebp
ret 4

Function at 0x10010750
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100fd5b0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x1014f644]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea esi, [ebp - 0x14]
call fcn.100106a0
push 0
push 0x80
push 3
push 0
push 1
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, edi
mov ebx, eax
call fcn.10006480
cmp ebx, 0xffffffff
je 0x10010871
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x10], eax
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1006e7e5
mov ecx, dword [ebp - 0x10]
add esp, 4
push 0
mov esi, eax
lea eax, [ebp - 0x18]
push eax
push ecx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x10]
xor edx, edx
mov word [esi + ebx*2], dx
test esi, esi
jne 0x10010809
xor eax, eax
jmp 0x1001081f
mov eax, esi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10010810
sub eax, edx
sar eax, 1
push eax
push esi
push edi
call fcn.10006620
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
push edi
lea ecx, [ebp - 0x10]
call fcn.1000b460
mov byte [ebp - 4], 1
call fcn.1000a5c0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10010863
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.10001c40
push esi
call fcn.10072566
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10010897
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call 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
Function at 0x100108b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100fe150
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x1014f644]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov edi, ecx
lea esi, [ebp + 8]
mov dword [ebp + 8], 0
call fcn.100106a0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10010913
mov ecx, edi
call fcn.10010750
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
je 0x10010913
add eax, 0xfffffff0
jmp 0x1001094c
lea ecx, [ebp - 0x10]
call fcn.100105d0
mov byte [ebp - 4], 1
call fcn.1000a5c0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10010947
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [edi]
sub eax, 0x10
call fcn.10006190
add eax, 0x10
mov dword [ebx], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1001097c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 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 4
Function at 0x10010a80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100fbf78
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x1014f644]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [ebp + 0x10], edx
mov ecx, dword [eax + 8]
lea esi, [ebp + 0x10]
push esi
mov esi, dword [eax + 0xc]
mov eax, dword [eax + 4]
push esi
push edx
push ecx
push eax
mov dword [ebp + 0x10], edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, 0x2000
push esi
call fcn.10074a8c
push esi
mov edi, eax
push 0
push edi
mov dword [ebp + 8], esi
call fcn.1007ada0
mov edx, dword [ebp + 0x10]
add esp, 0x10
lea ecx, [ebp + 8]
push ecx
push edi
push 0
push 0
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 0xea
jne 0x10010b32
add esi, 0x1000
push esi
push edi
call fcn.10074b20
mov ecx, dword [ebp + 0x10]
add esp, 8
mov edi, eax
lea eax, [ebp + 8]
push eax
push edi
push 0
push 0
push ebx
push ecx
mov dword [ebp + 8], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 0xea
je 0x10010b02
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10010b37
sub eax, edx
jne 0x10010b70
mov edx, dword [ebp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp + 0xc]
push esi
mov ecx, 0x1012f5d8
call fcn.10006710
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 0xc
mov esi, dword [ebp + 8]
shr esi, 1
push edi
dec esi
mov ecx, 0x1014f25c
lea edi, [ebp - 0x10]
call fcn.1000ba40
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x10]
add esi, 0xfffffff0
mov eax, esi
call fcn.10006190
mov edi, dword [ebp + 0xc]
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10010bca
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
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 0xc
Function at 0x10010be0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100fed43
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x1014f644]
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 ebx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x2c], al
mov dword [ebp - 4], eax
mov eax, dword [ebx]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10010c81
test byte [0x1015a888], 1
jne 0x10010c54
or dword [0x1015a888], 1
push 0x101037c0
mov dword [0x1015a88c], 0x1012fc50
call fcn.10072866
add esp, 4
mov edi, ebx
lea esi, [ebp - 0x48]
call fcn.10009eb0
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.1000a250
mov byte [ebp - 4], 0
cmp dword [ebp - 0x34], 0x10
jb 0x10010c81
mov eax, dword [ebp - 0x48]
push eax
call fcn.100719b6
add esp, 4
lea esi, [ebx + 4]
push esi
mov dword [ebp - 0x4c], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [ebx + 0x1c]
test edi, edi
je 0x10010cab
push edi
call fcn.10010d60
push edi
call fcn.100719b6
add esp, 4
mov dword [ebx + 0x1c], 0
push 0x50
call fcn.10071bdd
mov edi, eax
add esp, 4
mov dword [ebp - 0x50], edi
mov byte [ebp - 4], 2
test edi, edi
je 0x10010d17
push 0xffffffffffffffff
lea esi, [edi + 4]
push 0
lea ecx, [ebp - 0x2c]
push ecx
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov ecx, esi
mov byte [esi], 0
call fcn.10006dc0
lea eax, [edi + 0x20]
push eax
mov byte [ebp - 4], 3
call fcn.10019a90
mov byte [ebp - 4], 4
cmp dword [esi + 0x14], 0x10
mov eax, dword [edi + 0x14]
jb 0x10010d01
mov esi, dword [esi]
push esi
lea ecx, [edi + 0x20]
push ecx
call fcn.10019b80
mov esi, dword [ebp - 0x4c]
test eax, eax
sete dl
mov byte [edi], dl
jmp 0x10010d19
xor edi, edi
push esi
mov dword [ebx + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 0x18], 0x10
jb 0x10010d35
mov eax, dword [ebp - 0x2c]
push eax
call fcn.100719b6
add esp, 4
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.100719c1
mov esp, ebp
pop ebp
ret 4