joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1005a580
Capabilities:
Get thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x100b90f8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x100e13e0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
lea edi, [esi + 8]
push edi
mov dword [esp + 0x14], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ebx, ebx
mov dword [esp + 0x1c], ebx
cmp dword [esi + 0x20], ebx
je 0x1005a5d5
call fcn.10057a20
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, dword [esi + 0x20]
jne 0x1005a5d5
mov bl, 1
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, bl
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret

Function at 0x1005a620
Capabilities:
Get thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x100b9a80
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x100e13e0]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov esi, ecx
lea edi, [esi + 8]
push edi
xor bl, bl
mov dword [esp + 0x14], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x58], 0
cmp dword [esi + 0x20], 0
je 0x1005a6aa
call fcn.10057a20
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, dword [esi + 0x20]
je 0x1005a6aa
push 0x38
push str.D:jenkins_TrunkworkspaceCEN_Hive_QQPCDownload_ForDComqqpcmgr_projAsyncFrameMessageLoopProxyImpl.cpp
push str.qmbase::MessageLoopProxyImpl::OnDestruct
lea ecx, [esp + 0x20]
call fcn.10034cd2
push esi
mov byte [esp + 0x5c], 1
mov ecx, dword [esi + 0x20]
push eax
push ecx
call fcn.1005a800
lea ecx, [esp + 0x14]
call fcn.1003e756
mov bl, 1
push edi
mov dword [esp + 0x5c], 0xffffffff
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test bl, bl
jne 0x1005a6c8
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
push 1
mov ecx, esi
call eax
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x4c
ret

Function at 0x1005a6e0
Capabilities:
Get thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x100b90d3
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x100e13e0]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov esi, dword [esp + 0x18]
xor eax, eax
mov dword [esi + 4], eax
mov dword [esp + 0x10], eax
lea eax, [esi + 8]
push 0x7d0
push eax
mov dword [esi], vtable.qmbase::MessageLoopProxyImpl.0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
mov byte [esp + 0x10], 1
call fcn.10057a20
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [esi + 0x20], eax
mov eax, esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0xc
ret 4
Function at 0x1005ac97
Capabilities:
Read file via mapping

Disassembly:
push edi
push str.GlobalFA6FBBB1_8C8E_43b1_B8EC_35573A94C231
xor edi, edi
push edi
push 6
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
cmp eax, edi
mov dword [esi], eax
jne 0x1005acb2
xor eax, eax
pop edi
ret
push edi
push edi
push edi
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, edi
mov dword [esi + 4], eax
jne 0x1005acd1
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], edi
jmp 0x1005acae
mov dword [esi + 8], eax
xor eax, eax
inc eax
pop edi
ret

Function at 0x1005ad69
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
lea eax, [ebp - 4]
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.SOFTWARETencentQQPCMgr
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], ebx
mov byte [0x100fd66c], bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1005add5
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push str.EnableLogToView
push dword [ebp - 4]
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1005adcc
cmp dword [ebp - 8], 1
jne 0x1005adcc
mov byte [0x100fd66c], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
leave
ret

Function at 0x1005b07e
Capabilities:
Check if file exists
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x100e13e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
push 0x206
lea eax, [ebp - 0x20a]
push ebx
push eax
mov dword [edi], ebx
mov word [ebp - 0x20c], bx
call fcn.10071bb0
add esp, 0xc
mov esi, 0x103
push esi
lea eax, [ebp - 0x20c]
push eax
push str._APPDATA_TencentQQPCMgr_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x1005b108
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, ebx
je 0x1005b108
lea eax, [ebp - 0x20c]
push eax
lea ebx, [edi + 4]
push esi
push ebx
call fcn.1007298c
push 0xffffffffffffffff
push str.ErrLogFile.log
push 0x104
push ebx
call fcn.10075ed5
add esp, 0x1c
jmp 0x1005b11b
push esi
push str.C:ErrLogFile.log
lea eax, [edi + 4]
push esi
push eax
call fcn.100729f8
add esp, 0x10
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
mov eax, edi
pop ebx
call fcn.1006ef11
leave
ret
Function at 0x1005b12b
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
xor edi, edi
cmp dword [esi], edi
jne 0x1005b154
push edi
push 0x20
push 4
push edi
push 3
push 0xc0000000
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, edi
mov dword [esi], eax
je 0x1005b198
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x1005b198
cmp eax, 0x2800
ja 0x1005b198
push 2
lea eax, [ebp - 4]
push eax
push edi
push dword [esi]
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], edi
call fcn.1006ee70
pop ecx
push eax
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
leave
ret 4

Function at 0x1005b427
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 SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1005b450
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 0x1005d27b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
and dword [ebp - 0x2c], 0
push edi
push 7
xor eax, eax
test edx, edx
pop ecx
lea edi, [ebp - 0x28]
rep stosd dword es:[edi], eax
jne 0x1005d299
jmp 0x1005d40a
push ebx
push esi
lea eax, [edx + 0x20]
mov esi, eax
push 8
pop ebx
mov ecx, ebx
lea edi, [ebp - 0x4c]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [edx + 0x40]
mov ecx, 0x4d34d34d
add esi, ecx
add dword [eax], esi
mov eax, dword [eax]
cmp eax, dword [ebp - 0x4c]
mov eax, 0x2cb2cb2d
sbb esi, esi
neg esi
sub esi, eax
add dword [edx + 0x24], esi
mov esi, dword [edx + 0x24]
cmp esi, dword [ebp - 0x48]
mov esi, 0x34d34d34
sbb edi, edi
neg edi
add edi, esi
add dword [edx + 0x28], edi
mov edi, dword [edx + 0x28]
cmp edi, dword [ebp - 0x44]
mov dword [ebp - 0xc], ebx
sbb edi, edi
neg edi
add edi, ecx
add dword [edx + 0x2c], edi
mov edi, dword [edx + 0x2c]
cmp edi, dword [ebp - 0x40]
sbb edi, edi
neg edi
sub edi, eax
add dword [edx + 0x30], edi
mov edi, dword [edx + 0x30]
cmp edi, dword [ebp - 0x3c]
sbb edi, edi
neg edi
add edi, esi
add dword [edx + 0x34], edi
mov esi, dword [edx + 0x34]
cmp esi, dword [ebp - 0x38]
sbb esi, esi
neg esi
add esi, ecx
add dword [edx + 0x38], esi
mov ecx, dword [edx + 0x38]
cmp ecx, dword [ebp - 0x34]
mov esi, edx
sbb ecx, ecx
neg ecx
sub ecx, eax
add dword [edx + 0x3c], ecx
mov eax, dword [edx + 0x3c]
cmp eax, dword [ebp - 0x30]
mov dword [ebp - 8], esi
sbb eax, eax
neg eax
mov dword [edx + 0x40], eax
lea eax, [ebp - 0x2c]
sub eax, edx
mov ecx, dword [esi + 0x20]
add ecx, dword [esi]
movzx edi, cx
mov esi, ecx
shr esi, 0x10
mov dword [ebp - 4], esi
imul esi, edi
mov ebx, edi
imul ebx, edi
shr ebx, 0x11
add ebx, esi
mov esi, dword [ebp - 4]
imul esi, esi
shr ebx, 0xf
add ebx, esi
mov esi, ecx
imul esi, ecx
xor ebx, esi
mov esi, dword [ebp - 8]
mov dword [eax + esi], ebx
add esi, 4
dec dword [ebp - 0xc]
mov dword [ebp - 8], esi
jne 0x1005d342
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x10]
mov esi, eax
rol esi, 0x10
add esi, ecx
rol edi, 0x10
add edi, esi
mov esi, ecx
rol esi, 8
add esi, dword [ebp - 0x28]
mov dword [edx], edi
add esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0x28]
mov dword [edx + 4], esi
mov esi, dword [ebp - 0x24]
rol edi, 0x10
add edi, esi
rol ecx, 0x10
add ecx, edi
mov edi, dword [ebp - 0x20]
mov dword [edx + 8], ecx
mov ecx, esi
rol ecx, 8
add ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x28]
rol edi, 0x10
rol esi, 0x10
mov dword [edx + 0xc], ecx
mov ecx, dword [ebp - 0x1c]
add edi, ecx
add esi, edi
mov dword [edx + 0x10], esi
mov esi, ecx
rol esi, 8
add esi, dword [ebp - 0x18]
add esi, dword [ebp - 0x20]
mov dword [edx + 0x14], esi
mov esi, dword [ebp - 0x18]
rol esi, 0x10
add esi, eax
rol ecx, 0x10
add ecx, esi
rol eax, 8
add eax, dword [ebp - 0x18]
pop esi
add eax, dword [ebp - 0x10]
mov dword [edx + 0x18], ecx
mov dword [edx + 0x1c], eax
xor eax, eax
inc eax
pop ebx
pop edi
leave
ret
Function at 0x1005d452
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
test esi, esi
jne 0x1005d45f
xor eax, eax
leave
ret
push ebx
push edi
push 0xc
mov edi, str.QQPCMgrLibrary_s
pop ecx
mov eax, edi
call fcn.1005d40d
mov ebx, eax
push 8
pop ecx
mov eax, edi
call fcn.1005d40d
mov dword [ebp - 8], eax
push 4
pop ecx
mov eax, edi
call fcn.1005d40d
mov dword [ebp - 4], eax
xor ecx, ecx
mov eax, edi
call fcn.1005d40d
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [esi + 0x10], ecx
shr ecx, 0x10
mov edi, eax
shl edi, 0x10
or edi, ecx
mov dword [esi + 4], edi
mov ecx, eax
shr ecx, 0x10
mov edi, ebx
shl edi, 0x10
or ecx, edi
mov dword [esi + 0xc], ecx
mov ecx, edx
shl ecx, 0x10
mov edi, ebx
shr edi, 0x10
or ecx, edi
mov dword [esi + 0x14], ecx
mov ecx, dword [ebp - 4]
shl ecx, 0x10
mov edi, edx
shr edi, 0x10
or ecx, edi
mov dword [esi + 0x1c], ecx
mov ecx, dword [ebp - 4]
rol ecx, 0x10
mov dword [esi + 0x20], ecx
mov ecx, eax
rol ecx, 0x10
mov dword [esi + 0x28], ecx
mov ecx, ebx
rol ecx, 0x10
mov edi, edx
mov dword [esi + 0x30], ecx
mov ecx, edx
xor edi, ebx
rol ecx, 0x10
mov dword [esi + 0x38], ecx
mov ecx, 0xffff
and edi, ecx
xor edi, ebx
mov dword [esi + 0x24], edi
mov edi, dword [ebp - 4]
xor edi, edx
mov dword [esi + 8], edx
and edi, ecx
xor edi, edx
mov edx, eax
xor edx, dword [ebp - 4]
mov dword [esi], ebx
and edx, ecx
xor edx, dword [ebp - 4]
mov dword [esi + 0x18], eax
mov dword [esi + 0x34], edx
mov edx, eax
xor edx, ebx
mov dword [esi + 0x2c], edi
and edx, ecx
xor edx, eax
and dword [esi + 0x40], 0
push 4
mov dword [esi + 0x3c], edx
pop edi
mov edx, esi
call fcn.1005d27b
dec edi
jne 0x1005d53d
push 0xfffffffffffffffc
pop edx
push 8
mov ecx, esi
pop edi
mov ebx, dword [ecx]
mov eax, edx
and eax, 7
lea eax, [esi + eax*4 + 0x20]
xor dword [eax], ebx
add ecx, 4
inc edx
dec edi
jne 0x1005d54f
xor eax, eax
pop edi
inc eax
pop ebx
leave
ret
Function at 0x1005eeaf
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
push esi
mov esi, edx
jne 0x1005eeba
xor eax, eax
pop esi
ret
cmp eax, 8
push ebx
not esi
mov edx, 0xff
jb 0x1005ef6c
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 + 0x100c2200]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x100c2200]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x100c2200]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x100c2200]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x100c2200]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x100c2200]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x100c2200]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x100c2200]
inc ecx
sub eax, 8
dec edi
jne 0x1005eed1
pop edi
test eax, eax
je 0x1005ef85
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x100c2200]
inc ecx
dec eax
jne 0x1005ef70
mov eax, esi
pop ebx
not eax
pop esi
ret

Function at 0x1005ef8c
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 + 0x100c2200]
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 + 0x100c2200]
pop esi
mov dword [ecx + 8], eax
ret

Function at 0x1005f6cb
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 0x1005f6fb
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 0x1005f6f6
mov byte [esi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x1005f733
xor eax, eax
mov ecx, edi
add ecx, dword [esi + 0x28]
adc eax, dword [esi + 0x2c]
cmp eax, dword [esi + 0x24]
jl 0x1005f717
jg 0x1005f711
cmp ecx, dword [esi + 0x20]
jbe 0x1005f717
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.10071c30
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 0x1005f81b
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 0x1005f8a9
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 0x1005f875
or eax, 0xffffffff
jmp 0x1005f992
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xc]
push edx
push eax
xor ecx, ecx
mov eax, esi
call fcn.1005f62f
test eax, eax
pop ecx
pop ecx
jne 0x1005f86d
cmp byte [esi], al
je 0x1005f8b9
cmp byte [esi + 1], al
je 0x1005f8b0
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 0x1005f8c1
push eax
push eax
push 2
pop ecx
jmp 0x1005f880
and dword [ebp - 4], 0
mov ebx, dword [ebp - 4]
jmp 0x1005f8c1
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 0x1005f8d0
mov dword [ebp - 8], ebx
push 0x404
call fcn.100712c2
test eax, eax
pop ecx
mov dword [ebp - 0x10], eax
je 0x1005f86d
or dword [ebp - 0x14], 0xffffffff
push 4
pop eax
cmp dword [ebp - 8], eax
jbe 0x1005f986
jmp 0x1005f8fa
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 0x1005f90c
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 0x1005f920
mov ebx, eax
push 0
push edi
xor ecx, ecx
mov eax, esi
call fcn.1005f62f
test eax, eax
pop ecx
pop ecx
jne 0x1005f986
push 1
push ebx
push dword [ebp - 0x10]
call fcn.1005f6cb
add esp, 0xc
cmp eax, 1
jne 0x1005f986
lea eax, [ebx - 3]
jmp 0x1005f969
mov ecx, dword [ebp - 0x10]
dec eax
cmp byte [eax + ecx], 0x50
jne 0x1005f969
cmp byte [eax + ecx + 1], 0x4b
jne 0x1005f969
cmp byte [eax + ecx + 2], 5
jne 0x1005f969
cmp byte [eax + ecx + 3], 6
je 0x1005f96f
test eax, eax
jg 0x1005f94a
jmp 0x1005f974
add eax, edi
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x1005f986
mov eax, dword [ebp - 8]
cmp dword [ebp - 0xc], eax
jb 0x1005f8f4
push dword [ebp - 0x10]
call fcn.1007143d
mov eax, dword [ebp - 0x14]
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100603e2
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
cmp dword [esi], 0
jne 0x10060471
cmp dword [esi + 4], 0xffffffff
jne 0x10060471
push edi
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push edi
call fcn.1006eefb
movzx eax, word [esi + eax*2 + 0x242]
cmp ax, 0x5c
pop ecx
je 0x1006043e
cmp ax, 0x2f
je 0x1006043e
push edi
call fcn.1006eefb
mov ecx, 0x103
sub ecx, eax
push ecx
push 0x100cd09c
push edi
call fcn.10075bd1
add esp, 0x10
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
call fcn.1005f57e
test eax, eax
pop ecx
pop ecx
pop edi
jne 0x10060456
mov eax, dword [ebp + 8]
jmp 0x10060476
push dword [ebp + 0xc]
call fcn.1005f997
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
pop ecx
add eax, 0x200
jmp 0x10060476
mov eax, 0x1000000
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x100e13e0]
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 0x10060a07
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10060a07
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx ecx, word [esi]
test cx, cx
je 0x10060ac9
mov eax, esi
mov edx, esi
movzx ecx, cx
cmp cx, 0x2f
je 0x10060a26
cmp cx, 0x5c
jne 0x10060a28
mov eax, edx
inc edx
inc edx
movzx ecx, word [edx]
test cx, cx
jne 0x10060a1a
cmp eax, esi
push edi
je 0x10060a66
sub eax, esi
sar eax, 1
add eax, eax
mov edi, eax
push edi
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.10071c30
and word [ebp + edi - 0x414], 0
lea eax, [ebp - 0x414]
push eax
push ebx
call fcn.100609d3
add esp, 0x14
and word [ebp - 0x20c], 0
test ebx, ebx
mov edi, 0x103
je 0x10060a88
push edi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.10072223
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call fcn.1006eefb
sub edi, eax
push edi
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.10075bd1
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
pop edi
jne 0x10060ac9
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.1006ef11
leave
ret
Function at 0x100644ad
Capabilities:
Create directory
Get file attributes

Disassembly:
push 0x14
mov eax, 0x100b7ad4
call fcn.10076fa9
mov edi, ecx
and dword [ebp - 0x18], 0
lea esi, [ebp - 0x10]
call fcn.10063fb0
and dword [ebp - 4], 0
mov eax, dword [0x100fc398]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0x10
je 0x100645ef
mov edi, dword [ebp - 0x10]
mov eax, dword [edi - 8]
movzx eax, word [edi + eax*2 - 2]
cmp ax, 0x5c
mov esi, 0x100cd09c
je 0x10064511
push esi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp - 0x10]
call fcn.10064301
mov edi, dword [ebp - 0x10]
mov eax, dword [edi - 8]
test eax, eax
jl 0x10064525
push esi
push edi
call fcn.1006f6d0
test eax, eax
pop ecx
pop ecx
jne 0x1006452a
or eax, 0xffffffff
jmp 0x1006452e
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
je 0x100645ef
lea ecx, [eax + 1]
lea eax, [ebp - 0x1c]
push eax
lea ebx, [ebp - 0x10]
mov dword [ebp - 0x20], ecx
call fcn.1006403c
mov byte [ebp - 4], 2
mov eax, dword [eax]
push eax
mov eax, dword [eax - 8]
lea ecx, [ebp - 0x14]
call fcn.10064301
lea esi, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.10064206
mov ebx, dword [ebp - 0x20]
test ebx, ebx
mov esi, dword [edi - 8]
jle 0x100645a9
test esi, esi
jle 0x100645a9
cmp ebx, esi
jle 0x1006457b
mov ebx, esi
lea eax, [ebp - 0x10]
call fcn.10064388
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.100246d6
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 0x100645c8
push 0
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x100645f6
cmp dword [edi - 8], 0
jl 0x100645df
push 0x100cd09c
push edi
call fcn.1006f6d0
test eax, eax
pop ecx
pop ecx
jne 0x100645e3
mov eax, esi
jmp 0x100645e7
sub eax, edi
sar eax, 1
cmp eax, esi
jne 0x10064537
mov dword [ebp - 0x18], 1
lea esi, [ebp - 0x14]
call fcn.10064206
lea esi, [ebp - 0x10]
call fcn.10064206
mov eax, dword [ebp - 0x18]
call fcn.10077048
ret
Function at 0x10064a25
Capabilities:
Check if file exists
Extract resource via kernel32 functions
Get file attributes

Disassembly:
push 0x60
mov eax, 0x100b8ffa
call fcn.10077012
mov esi, ecx
lea ebx, [ebp - 0x48]
mov dword [ebp - 0x50], esi
mov byte [ebp - 0x49], 0
call fcn.10068c90
and dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.100016f2
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.100018b0
test al, al
je 0x10064a83
mov eax, ebx
push eax
lea ecx, [ebp - 0x6c]
call fcn.100689d6
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.1000179e
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 1
call fcn.10001789
jmp 0x10064a8c
push esi
lea ecx, [ebp - 0x2c]
call fcn.1000179e
lea esi, [ebp - 0x2c]
call fcn.10068a89
push 0x100cf968
lea ecx, [ebp - 0x6c]
call fcn.1000171b
lea ebx, [ebp - 0x6c]
mov edi, esi
mov byte [ebp - 4], 3
call fcn.10068b9c
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.10001789
mov ecx, esi
call fcn.10004ff5
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call ebx
cmp eax, 0xffffffff
mov eax, dword [ebp - 0x50]
je 0x10064adb
and dword [eax + 0x1c], 0
jmp 0x10064b9c
lea esi, [ebp - 0x48]
mov dword [eax + 0x1c], 1
call fcn.100688ec
push 0x100cf980
lea ecx, [ebp - 0x6c]
call fcn.1000171b
lea esi, [ebp - 0x6c]
lea edi, [ebp - 0x48]
mov byte [ebp - 4], 4
call fcn.10068b28
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.10001789
mov ecx, edi
call fcn.10004ff5
push eax
call ebx
cmp eax, 0xffffffff
je 0x10064b33
mov ecx, dword [ebp - 0x50]
mov eax, edi
push eax
add ecx, 0x80
call fcn.1000179e
jmp 0x10064b98
push str.SKIN
push str.QMUIRES.dat
push dword [0x100fd100]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x10064b9c
push esi
push dword [0x100fd100]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10064b9c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x10064b9c
push esi
push dword [0x100fd100]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, dword [ebp - 0x50]
mov edi, eax
add esi, 0xb0
mov eax, esi
call fcn.10068345
push edi
push ebx
push dword [esi]
call fcn.10071c30
add esp, 0xc
mov byte [ebp - 0x49], 1
lea ecx, [ebp - 0x2c]
call fcn.10001789
lea ecx, [ebp - 0x48]
call fcn.10001789
mov al, byte [ebp - 0x49]
call fcn.1007705c
ret