joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1005dd90
Capabilities:
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x100cc573
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100f93e0]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov esi, 0x101159e8
mov ebx, 0x10110e88
mov dword [esp + 0x14], 3
xor ebp, ebp
jmp 0x1005ddd0
push 0x44
call fcn.1007786b
add esp, 4
mov dword [esp + 0x1c], eax
cmp eax, ebp
mov dword [esp + 0x3c], ebp
je 0x1005ddfb
mov ecx, dword [ebx + 4]
mov edx, dword [ebx]
push ecx
mov ecx, dword [ebx - 4]
push edx
push ecx
push eax
call fcn.1005e6d0
mov edi, eax
jmp 0x1005ddfd
xor edi, edi
mov dword [esp + 0x3c], 0xffffffff
mov ecx, dword [esi]
cmp edi, ecx
je 0x1005de19
cmp ecx, ebp
je 0x1005de17
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov dword [esi], edi
mov ecx, dword [esi]
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x20], ebp
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
lea eax, [esp + 0x20]
push eax
call edx
test al, al
je 0x1005de89
mov eax, dword [esi]
lea ecx, [esp + 0x18]
call fcn.1005db30
mov dword [esp + 0x3c], 1
mov edi, dword [eax]
cmp edi, ebp
je 0x1005de64
lea eax, [edi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esi + 0x10]
cmp eax, ebp
je 0x1005de73
lea ecx, [eax + 4]
call fcn.10005b77
lea ecx, [esp + 0x18]
mov dword [esi + 0x10], edi
mov dword [esp + 0x3c], 0xffffffff
call fcn.10005896
jmp 0x1005de98
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
add ebx, 0xc
add esi, 4
sub dword [esp + 0x14], 1
jne 0x1005ddd0
mov eax, 1
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret

Function at 0x1005ec80
Capabilities:
Allocate thread local storage
Get thread local storage value

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
push edi
mov edi, 0x10115670
push 0x10115a04
call ebx
mov esi, dword [edi]
test esi, esi
je 0x1005ecb8
cmp dword [esi + 0x14], 0
je 0x1005ecb8
push 0x10115a04
call ebp
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
mov ecx, esi
call edx
sub edi, 4
cmp edi, 0x10115664
jne 0x1005ec95
mov eax, dword [0x101157ec]
test eax, eax
jne 0x1005ecfd
push 8
call fcn.1007786b
mov esi, eax
add esp, 4
test esi, esi
je 0x1005ecf6
mov dword [esi], 0
mov dword [esi + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi + 4], eax
mov eax, esi
jmp 0x1005ecf8
xor eax, eax
mov dword [0x101157ec], eax
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
pop edi
pop esi
pop ebp
pop ebx
je 0x1005ed16
mov dword [eax + 0x68], 1
mov al, 1
ret
Function at 0x1005ee10
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x100cb7cd
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100f93e0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, dword [esp + 0x28]
xor edi, edi
mov dword [esi], vtable.qmbase::MessageLoop.0
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esp + 0x20], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
lea eax, [esi + 0x2c]
push 0x7d0
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x6c], edi
mov dword [esi + 0x70], edi
mov dword [esi + 0x78], edi
mov dword [esi + 0x7c], edi
mov dword [esi + 0x80], edi
mov dword [esi + 0x84], edi
mov byte [esp + 0x20], 5
mov eax, dword [0x101157ec]
cmp eax, edi
mov ebx, dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi + 0x88], edi
jne 0x1005eedd
push 8
call fcn.1007786b
mov ebp, eax
add esp, 4
cmp ebp, edi
je 0x1005eed6
mov dword [ebp], edi
mov dword [ebp + 4], 0xffffffff
call ebx
mov dword [ebp + 4], eax
mov eax, ebp
jmp 0x1005eed8
xor eax, eax
mov dword [0x101157ec], eax
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [0x101157ec]
cmp eax, edi
jne 0x1005ef17
push 8
call fcn.1007786b
mov ebp, eax
add esp, 4
cmp ebp, edi
je 0x1005ef10
mov dword [ebp], edi
mov dword [ebp + 4], 0xffffffff
call ebx
mov dword [ebp + 4], eax
mov eax, ebp
jmp 0x1005ef12
xor eax, eax
mov dword [0x101157ec], eax
mov eax, dword [eax + 4]
cmp eax, 0xffffffff
je 0x1005ef27
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 0x24
call fcn.1007786b
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, edi
mov byte [esp + 0x20], 6
je 0x1005ef48
push eax
call fcn.10061950
mov ebp, eax
jmp 0x1005ef4a
xor ebp, ebp
cmp ebp, edi
mov byte [esp + 0x20], 5
je 0x1005ef5d
lea eax, [ebp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esi + 0x70]
cmp eax, edi
je 0x1005ef6c
lea ecx, [eax + 4]
call fcn.10005b77
mov eax, esi
mov dword [esi + 0x70], ebp
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
Function at 0x1005efc0
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x100cd292
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100f93e0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x14], edi
mov dword [edi], vtable.qmbase::MessageLoop.0
mov dword [esp + 0x20], 5
xor ebp, ebp
jmp 0x1005f000
push edi
call fcn.1005f1d0
mov esi, edi
call fcn.1005f840
push edi
call fcn.1005f1d0
test al, al
je 0x1005f01f
add ebp, 1
cmp ebp, 0x64
jl 0x1005f000
cmp dword [edi + 0x70], 0
lea ebx, [edi + 0x70]
je 0x1005f04c
mov ecx, ebx
call fcn.10005b69
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x1c]
call eax
mov eax, dword [ebx]
test eax, eax
je 0x1005f046
lea ecx, [eax + 4]
call fcn.10005b77
mov dword [ebx], 0
mov eax, dword [0x101157ec]
test eax, eax
mov ebp, dword [sym.imp.KERNEL32.dll_TlsAlloc]
jne 0x1005f088
push 8
call fcn.1007786b
mov esi, eax
add esp, 4
test esi, esi
je 0x1005f081
mov dword [esi], 0
mov dword [esi + 4], 0xffffffff
call ebp
mov dword [esi + 4], eax
mov eax, esi
jmp 0x1005f083
xor eax, eax
mov dword [0x101157ec], eax
mov ecx, dword [eax + 4]
cmp ecx, 0xffffffff
je 0x1005f09e
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x101157ec]
test eax, eax
jne 0x1005f0cf
push 8
call fcn.1007786b
mov esi, eax
add esp, 4
test esi, esi
je 0x1005f0c8
mov dword [esi], 0
mov dword [esi + 4], 0xffffffff
call ebp
mov dword [esi + 4], eax
mov eax, esi
jmp 0x1005f0ca
xor eax, eax
mov dword [0x101157ec], eax
push eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
xor ebp, ebp
test eax, eax
jne 0x1005f107
cmp esi, ebp
je 0x1005f101
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x1005f0f8
push eax
call dword [sym.imp.KERNEL32.dll_TlsFree]
mov dword [esi + 4], 0xffffffff
push esi
call fcn.100771b5
add esp, 4
mov dword [0x101157ec], ebp
lea esi, [edi + 0x74]
call fcn.10060a30
mov ecx, ebx
mov byte [esp + 0x20], 3
call fcn.10005896
mov eax, dword [edi + 0x48]
cmp eax, ebp
je 0x1005f12b
push eax
call fcn.100771b5
add esp, 4
lea ecx, [edi + 0x2c]
push ecx
mov dword [edi + 0x48], ebp
mov dword [edi + 0x4c], ebp
mov dword [edi + 0x50], ebp
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea esi, [edi + 0x18]
call fcn.10060a30
lea esi, [edi + 4]
call fcn.10060a30
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x1005f170
Capabilities:
Allocate thread local storage
Get thread local storage value

Disassembly:
push esi
mov esi, dword [0x101157ec]
test esi, esi
jne 0x1005f1bb
push 8
call fcn.1007786b
mov esi, eax
add esp, 4
test esi, esi
je 0x1005f1b3
mov dword [esi], 0
mov dword [esi + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi + 4], eax
mov eax, dword [esi + 4]
push eax
mov dword [0x101157ec], esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
pop esi
ret
xor esi, esi
mov dword [0x101157ec], esi
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
pop esi
ret
Function at 0x10061b8e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.SOFTWARETencentQQPC2Mgr
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x10061bb7
xor eax, eax
leave
ret
push esi
push 4
pop eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
leave
ret
Function at 0x10061e6e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x100f93e0]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x214], 0
test byte [0x10115e60], 1
push esi
mov esi, 0x10115e5c
jne 0x10061eb0
or dword [0x10115e60], 1
mov ecx, esi
call fcn.10014b4b
push 0x100cf24c
call fcn.10077c75
pop ecx
mov ecx, esi
call fcn.10003bcb
test al, al
je 0x10061efa
and word [ebp - 0x210], 0
push 0x20a
lea eax, [ebp - 0x20e]
push 0
push eax
call fcn.100771d0
add esp, 0xc
push 1
push 0x25
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x210]
push eax
mov ecx, esi
call fcn.10003c7e
push esi
mov ecx, ebx
call fcn.10003be1
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, ebx
pop esi
call fcn.100771ba
leave
ret

Function at 0x1006551e
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
push esi
mov esi, edx
jne 0x10065529
xor eax, eax
pop esi
ret
cmp eax, 8
push ebx
not esi
mov edx, 0xff
jb 0x100655db
push edi
mov edi, eax
shr edi, 3
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x100d8450]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x100d8450]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x100d8450]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x100d8450]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x100d8450]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x100d8450]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x100d8450]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x100d8450]
inc ecx
sub eax, 8
dec edi
jne 0x10065540
pop edi
test eax, eax
je 0x100655f4
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x100d8450]
inc ecx
dec eax
jne 0x100655df
mov eax, esi
pop ebx
not eax
pop esi
ret

Function at 0x100655fb
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [ecx]
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x100d8450]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x100d8450]
pop esi
mov dword [ecx + 8], eax
ret
Function at 0x10065d3a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x10]
cmp byte [esi], 0
je 0x10065d6a
push 0
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10065d65
mov byte [esi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x10065da2
xor eax, eax
mov ecx, edi
add ecx, dword [esi + 0x28]
adc eax, dword [esi + 0x2c]
cmp eax, dword [esi + 0x24]
jl 0x10065d86
jg 0x10065d80
cmp ecx, dword [esi + 0x20]
jbe 0x10065d86
mov edi, dword [esi + 0x20]
sub edi, dword [esi + 0x28]
mov eax, dword [esi + 0x1c]
add eax, dword [esi + 0x28]
push edi
push eax
push dword [ebp + 8]
call fcn.10078880
add esp, 0xc
add dword [esi + 0x28], edi
mov eax, edi
adc dword [esi + 0x2c], 0
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop ebp
ret
Function at 0x10065e8a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
push edi
mov edi, eax
xor eax, eax
cmp edi, eax
mov esi, ecx
je 0x10065f18
push 2
push eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
neg eax
push eax
push dword [esi + 4]
call ebx
and dword [ebp - 0x14], 0
push 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
push eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10065ee4
or eax, 0xffffffff
jmp 0x10066001
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xc]
push edx
push eax
xor ecx, ecx
mov eax, esi
call fcn.10065c9e
test eax, eax
pop ecx
pop ecx
jne 0x10065edc
cmp byte [esi], al
je 0x10065f28
cmp byte [esi + 1], al
je 0x10065f1f
push 1
push eax
push eax
push dword [esi + 4]
call ebx
mov ebx, eax
sub ebx, dword [esi + 0x10]
mov dword [ebp - 4], ebx
jmp 0x10065f30
push eax
push eax
push 2
pop ecx
jmp 0x10065eef
and dword [ebp - 4], 0
mov ebx, dword [ebp - 4]
jmp 0x10065f30
mov eax, dword [esi + 0x28]
mov dword [ebp - 4], eax
mov ebx, eax
mov eax, 0xffff
cmp ebx, eax
mov dword [ebp - 8], eax
jae 0x10065f3f
mov dword [ebp - 8], ebx
push 0x404
call fcn.1007a9d1
test eax, eax
pop ecx
mov dword [ebp - 0x10], eax
je 0x10065edc
or dword [ebp - 0x14], 0xffffffff
push 4
pop eax
cmp dword [ebp - 8], eax
jbe 0x10065ff5
jmp 0x10065f69
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
add eax, 0x400
cmp eax, ecx
mov dword [ebp - 0xc], ecx
ja 0x10065f7b
mov dword [ebp - 0xc], eax
mov edi, ebx
sub edi, dword [ebp - 0xc]
mov eax, ebx
sub eax, edi
mov ebx, 0x404
cmp eax, ebx
ja 0x10065f8f
mov ebx, eax
push 0
push edi
xor ecx, ecx
mov eax, esi
call fcn.10065c9e
test eax, eax
pop ecx
pop ecx
jne 0x10065ff5
push 1
push ebx
push dword [ebp - 0x10]
call fcn.10065d3a
add esp, 0xc
cmp eax, 1
jne 0x10065ff5
lea eax, [ebx - 3]
jmp 0x10065fd8
mov ecx, dword [ebp - 0x10]
dec eax
cmp byte [eax + ecx], 0x50
jne 0x10065fd8
cmp byte [eax + ecx + 1], 0x4b
jne 0x10065fd8
cmp byte [eax + ecx + 2], 5
jne 0x10065fd8
cmp byte [eax + ecx + 3], 6
je 0x10065fde
test eax, eax
jg 0x10065fb9
jmp 0x10065fe3
add eax, edi
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x10065ff5
mov eax, dword [ebp - 8]
cmp dword [ebp - 0xc], eax
jb 0x10065f63
push dword [ebp - 0x10]
call fcn.1007aa94
mov eax, dword [ebp - 0x14]
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10066a51
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
cmp dword [esi], 0
jne 0x10066ae0
cmp dword [esi + 4], 0xffffffff
jne 0x10066ae0
push edi
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push edi
call fcn.10077b0b
movzx eax, word [esi + eax*2 + 0x242]
cmp ax, 0x5c
pop ecx
je 0x10066aad
cmp ax, 0x2f
je 0x10066aad
push edi
call fcn.10077b0b
mov ecx, 0x103
sub ecx, eax
push ecx
push 0x100e3e9c
push edi
call fcn.1007e941
add esp, 0x10
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
call fcn.10065bed
test eax, eax
pop ecx
pop ecx
pop edi
jne 0x10066ac5
mov eax, dword [ebp + 8]
jmp 0x10066ae5
push dword [ebp + 0xc]
call fcn.10066006
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
pop ecx
add eax, 0x200
jmp 0x10066ae5
mov eax, 0x1000000
pop ebp
ret 8

Function at 0x10067042
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x100f93e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
push esi
mov esi, dword [ebp + 0xc]
je 0x10067076
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10067076
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx ecx, word [esi]
test cx, cx
je 0x10067138
mov eax, esi
mov edx, esi
movzx ecx, cx
cmp cx, 0x2f
je 0x10067095
cmp cx, 0x5c
jne 0x10067097
mov eax, edx
inc edx
inc edx
movzx ecx, word [edx]
test cx, cx
jne 0x10067089
cmp eax, esi
push edi
je 0x100670d5
sub eax, esi
sar eax, 1
add eax, eax
mov edi, eax
push edi
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.10078880
and word [ebp + edi - 0x414], 0
lea eax, [ebp - 0x414]
push eax
push ebx
call fcn.10067042
add esp, 0x14
and word [ebp - 0x20c], 0
test ebx, ebx
mov edi, 0x103
je 0x100670f7
push edi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.1007b1b2
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call fcn.10077b0b
sub edi, eax
push edi
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.1007e941
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
pop edi
jne 0x10067138
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.100771ba
leave
ret
Function at 0x10067700
Capabilities:
Get storage device properties

Disassembly:
push 0xffffffffffffffff
push 0x100cc452
mov eax, dword fs:[0]
push eax
sub esp, 0x41c
mov eax, dword [0x100f93e0]
xor eax, esp
mov dword [esp + 0x418], eax
push esi
push edi
mov eax, dword [0x100f93e0]
xor eax, esp
push eax
lea eax, [esp + 0x428]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0x430], edi
push 0x100e612c
mov ecx, ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], edi
call fcn.10001465
push edi
push edi
push 3
push edi
push 3
push edi
mov dword [esp + 0x448], edi
push 0x100e6130
mov dword [esp + 0x28], 1
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x100677fc
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
push 0x400
mov dword [esp + 0x24], eax
lea eax, [esp + 0x28]
push edi
push eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
call fcn.100771d0
add esp, 0xc
push edi
lea ecx, [esp + 0x14]
push ecx
push 0x400
lea edx, [esp + 0x30]
push edx
push 0xc
lea eax, [esp + 0x2c]
push eax
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x100677f5
mov edi, dword [esp + 0x34]
movsx ecx, byte [esp + edi + 0x24]
lea edi, [esp + edi + 0x24]
push ecx
call fcn.1007a8d8
add esp, 4
test eax, eax
je 0x100677f5
push edi
mov ecx, ebx
call fcn.1000866e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov ecx, dword [esp + 0x428]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x418]
xor ecx, esp
call fcn.100771ba
add esp, 0x428
ret
Function at 0x10067e2b
Capabilities:
Create directory
Get file attributes

Disassembly:
push 0x14
mov eax, 0x100cc414
call fcn.1007f6a6
mov edi, ecx
and dword [ebp - 0x18], 0
lea esi, [ebp - 0x10]
call fcn.1006792e
and dword [ebp - 4], 0
mov eax, dword [0x10114734]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0x10
je 0x10067f6d
mov edi, dword [ebp - 0x10]
mov eax, dword [edi - 8]
movzx eax, word [edi + eax*2 - 2]
cmp ax, 0x5c
mov esi, 0x100e3e9c
je 0x10067e8f
push esi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp - 0x10]
call fcn.10067c7f
mov edi, dword [ebp - 0x10]
mov eax, dword [edi - 8]
test eax, eax
jl 0x10067ea3
push esi
push edi
call fcn.10077dbe
test eax, eax
pop ecx
pop ecx
jne 0x10067ea8
or eax, 0xffffffff
jmp 0x10067eac
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
je 0x10067f6d
lea ecx, [eax + 1]
lea eax, [ebp - 0x1c]
push eax
lea ebx, [ebp - 0x10]
mov dword [ebp - 0x20], ecx
call fcn.100679ba
mov byte [ebp - 4], 2
mov eax, dword [eax]
push eax
mov eax, dword [eax - 8]
lea ecx, [ebp - 0x14]
call fcn.10067c7f
lea esi, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.10067b84
mov ebx, dword [ebp - 0x20]
test ebx, ebx
mov esi, dword [edi - 8]
jle 0x10067f27
test esi, esi
jle 0x10067f27
cmp ebx, esi
jle 0x10067ef9
mov ebx, esi
lea eax, [ebp - 0x10]
call fcn.10067d06
mov edi, dword [ebp - 0x10]
mov eax, esi
sub eax, ebx
lea eax, [eax + eax + 2]
push eax
lea eax, [edi + ebx*2]
push eax
mov eax, dword [edi - 4]
lea eax, [eax + eax + 2]
push eax
push edi
call fcn.10029cab
add esp, 0x10
sub esi, ebx
mov dword [edi - 8], esi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or esi, 0xffffffff
cmp eax, esi
jne 0x10067f46
push 0
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x10067f74
cmp dword [edi - 8], 0
jl 0x10067f5d
push 0x100e3e9c
push edi
call fcn.10077dbe
test eax, eax
pop ecx
pop ecx
jne 0x10067f61
mov eax, esi
jmp 0x10067f65
sub eax, edi
sar eax, 1
cmp eax, esi
jne 0x10067eb5
mov dword [ebp - 0x18], 1
lea esi, [ebp - 0x14]
call fcn.10067b84
lea esi, [ebp - 0x10]
call fcn.10067b84
mov eax, dword [ebp - 0x18]
call fcn.1007f745
ret
Function at 0x100683a3
Capabilities:
Check if file exists
Extract resource via kernel32 functions
Get file attributes

Disassembly:
push 0x60
mov eax, 0x100cda64
call fcn.1007f70f
mov esi, ecx
lea ebx, [ebp - 0x48]
mov dword [ebp - 0x50], esi
mov byte [ebp - 0x49], 0
call fcn.1007039b
and dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.10001714
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.10009256
test al, al
je 0x10068401
mov eax, ebx
push eax
lea ecx, [ebp - 0x6c]
call fcn.100700e1
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.100017c0
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 1
call fcn.100017ab
jmp 0x1006840a
push esi
lea ecx, [ebp - 0x2c]
call fcn.100017c0
lea esi, [ebp - 0x2c]
call fcn.10070194
push 0x100e618c
lea ecx, [ebp - 0x6c]
call fcn.1000173d
lea ebx, [ebp - 0x6c]
mov edi, esi
mov byte [ebp - 4], 3
call fcn.100702a7
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.100017ab
mov ecx, esi
call fcn.100094ad
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call ebx
cmp eax, 0xffffffff
mov eax, dword [ebp - 0x50]
je 0x10068459
and dword [eax + 0x1c], 0
jmp 0x1006851a
lea esi, [ebp - 0x48]
mov dword [eax + 0x1c], 1
call fcn.1006fff7
push 0x100e61a4
lea ecx, [ebp - 0x6c]
call fcn.1000173d
lea esi, [ebp - 0x6c]
lea edi, [ebp - 0x48]
mov byte [ebp - 4], 4
call fcn.10070233
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.100017ab
mov ecx, edi
call fcn.100094ad
push eax
call ebx
cmp eax, 0xffffffff
je 0x100684b1
mov ecx, dword [ebp - 0x50]
mov eax, edi
push eax
add ecx, 0x80
call fcn.100017c0
jmp 0x10068516
push str.SKIN
push str.QMUIRES.dat
push dword [0x10114834]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x1006851a
push esi
push dword [0x10114834]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1006851a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x1006851a
push esi
push dword [0x10114834]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, dword [ebp - 0x50]
mov edi, eax
add esi, 0xb0
mov eax, esi
call fcn.1006bdd3
push edi
push ebx
push dword [esi]
call fcn.10078880
add esp, 0xc
mov byte [ebp - 0x49], 1
lea ecx, [ebp - 0x2c]
call fcn.100017ab
lea ecx, [ebp - 0x48]
call fcn.100017ab
mov al, byte [ebp - 0x49]
call fcn.1007f759
ret