joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1005f1e0
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x100cca32
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100f83e0]
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 0x1005f220
push edi
call fcn.1005f3f0
mov esi, edi
call fcn.1005fa60
push edi
call fcn.1005f3f0
test al, al
je 0x1005f23f
add ebp, 1
cmp ebp, 0x64
jl 0x1005f220
cmp dword [edi + 0x70], 0
lea ebx, [edi + 0x70]
je 0x1005f26c
mov ecx, ebx
call fcn.10037237
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x1c]
call eax
mov eax, dword [ebx]
test eax, eax
je 0x1005f266
lea ecx, [eax + 4]
call fcn.10005bb5
mov dword [ebx], 0
mov eax, dword [0x10114784]
test eax, eax
mov ebp, dword [sym.imp.KERNEL32.dll_TlsAlloc]
jne 0x1005f2a8
push 8
call fcn.1007775b
mov esi, eax
add esp, 4
test esi, esi
je 0x1005f2a1
mov dword [esi], 0
mov dword [esi + 4], 0xffffffff
call ebp
mov dword [esi + 4], eax
mov eax, esi
jmp 0x1005f2a3
xor eax, eax
mov dword [0x10114784], eax
mov ecx, dword [eax + 4]
cmp ecx, 0xffffffff
je 0x1005f2be
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x10114784]
test eax, eax
jne 0x1005f2ef
push 8
call fcn.1007775b
mov esi, eax
add esp, 4
test esi, esi
je 0x1005f2e8
mov dword [esi], 0
mov dword [esi + 4], 0xffffffff
call ebp
mov dword [esi + 4], eax
mov eax, esi
jmp 0x1005f2ea
xor eax, eax
mov dword [0x10114784], eax
push eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
xor ebp, ebp
test eax, eax
jne 0x1005f327
cmp esi, ebp
je 0x1005f321
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x1005f318
push eax
call dword [sym.imp.KERNEL32.dll_TlsFree]
mov dword [esi + 4], 0xffffffff
push esi
call fcn.100770a5
add esp, 4
mov dword [0x10114784], ebp
lea esi, [edi + 0x74]
call fcn.10060c50
mov ecx, ebx
mov byte [esp + 0x20], 3
call fcn.10005924
mov eax, dword [edi + 0x48]
cmp eax, ebp
je 0x1005f34b
push eax
call fcn.100770a5
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.10060c50
lea esi, [edi + 4]
call fcn.10060c50
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 0x1005f390
Capabilities:
Allocate thread local storage
Get thread local storage value

Disassembly:
push esi
mov esi, dword [0x10114784]
test esi, esi
jne 0x1005f3db
push 8
call fcn.1007775b
mov esi, eax
add esp, 4
test esi, esi
je 0x1005f3d3
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 [0x10114784], esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
pop esi
ret
xor esi, esi
mov dword [0x10114784], esi
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
pop esi
ret
Function at 0x10061dae
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 0x10061dd7
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 0x1006208e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x100f83e0]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x214], 0
test byte [0x10114de8], 1
push esi
mov esi, 0x10114de4
jne 0x100620d0
or dword [0x10114de8], 1
mov ecx, esi
call fcn.10014aa8
push 0x100cea7c
call fcn.10077b65
pop ecx
mov ecx, esi
call fcn.100359ee
test al, al
je 0x1006211a
and word [ebp - 0x210], 0
push 0x20a
lea eax, [ebp - 0x20e]
push 0
push eax
call fcn.100770c0
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.10003cbb
push esi
mov ecx, ebx
call fcn.10003c1e
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, ebx
pop esi
call fcn.100770aa
leave
ret

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

Disassembly:
test ecx, ecx
push esi
mov esi, edx
jne 0x10065731
xor eax, eax
pop esi
ret
cmp eax, 8
push ebx
not esi
mov edx, 0xff
jb 0x100657e3
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 + 0x100d7458]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x100d7458]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x100d7458]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x100d7458]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x100d7458]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x100d7458]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x100d7458]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x100d7458]
inc ecx
sub eax, 8
dec edi
jne 0x10065748
pop edi
test eax, eax
je 0x100657fc
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x100d7458]
inc ecx
dec eax
jne 0x100657e7
mov eax, esi
pop ebx
not eax
pop esi
ret

Function at 0x10065803
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 + 0x100d7458]
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 + 0x100d7458]
pop esi
mov dword [ecx + 8], eax
ret
Function at 0x10065f42
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 0x10065f72
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 0x10065f6d
mov byte [esi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x10065faa
xor eax, eax
mov ecx, edi
add ecx, dword [esi + 0x28]
adc eax, dword [esi + 0x2c]
cmp eax, dword [esi + 0x24]
jl 0x10065f8e
jg 0x10065f88
cmp ecx, dword [esi + 0x20]
jbe 0x10065f8e
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.1007a530
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 0x10066092
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 0x10066120
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 0x100660ec
or eax, 0xffffffff
jmp 0x10066209
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xc]
push edx
push eax
xor ecx, ecx
mov eax, esi
call fcn.10065ea6
test eax, eax
pop ecx
pop ecx
jne 0x100660e4
cmp byte [esi], al
je 0x10066130
cmp byte [esi + 1], al
je 0x10066127
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 0x10066138
push eax
push eax
push 2
pop ecx
jmp 0x100660f7
and dword [ebp - 4], 0
mov ebx, dword [ebp - 4]
jmp 0x10066138
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 0x10066147
mov dword [ebp - 8], ebx
push 0x404
call fcn.10079ac1
test eax, eax
pop ecx
mov dword [ebp - 0x10], eax
je 0x100660e4
or dword [ebp - 0x14], 0xffffffff
push 4
pop eax
cmp dword [ebp - 8], eax
jbe 0x100661fd
jmp 0x10066171
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 0x10066183
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 0x10066197
mov ebx, eax
push 0
push edi
xor ecx, ecx
mov eax, esi
call fcn.10065ea6
test eax, eax
pop ecx
pop ecx
jne 0x100661fd
push 1
push ebx
push dword [ebp - 0x10]
call fcn.10065f42
add esp, 0xc
cmp eax, 1
jne 0x100661fd
lea eax, [ebx - 3]
jmp 0x100661e0
mov ecx, dword [ebp - 0x10]
dec eax
cmp byte [eax + ecx], 0x50
jne 0x100661e0
cmp byte [eax + ecx + 1], 0x4b
jne 0x100661e0
cmp byte [eax + ecx + 2], 5
jne 0x100661e0
cmp byte [eax + ecx + 3], 6
je 0x100661e6
test eax, eax
jg 0x100661c1
jmp 0x100661eb
add eax, edi
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x100661fd
mov eax, dword [ebp - 8]
cmp dword [ebp - 0xc], eax
jb 0x1006616b
push dword [ebp - 0x10]
call fcn.10079b84
mov eax, dword [ebp - 0x14]
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10066c59
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
cmp dword [esi], 0
jne 0x10066ce8
cmp dword [esi + 4], 0xffffffff
jne 0x10066ce8
push edi
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push edi
call fcn.100779fb
movzx eax, word [esi + eax*2 + 0x242]
cmp ax, 0x5c
pop ecx
je 0x10066cb5
cmp ax, 0x2f
je 0x10066cb5
push edi
call fcn.100779fb
mov ecx, 0x103
sub ecx, eax
push ecx
push 0x100e2d44
push edi
call fcn.1007e831
add esp, 0x10
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
call fcn.10065df5
test eax, eax
pop ecx
pop ecx
pop edi
jne 0x10066ccd
mov eax, dword [ebp + 8]
jmp 0x10066ced
push dword [ebp + 0xc]
call fcn.1006620e
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
pop ecx
add eax, 0x200
jmp 0x10066ced
mov eax, 0x1000000
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x100f83e0]
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 0x1006727e
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1006727e
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx ecx, word [esi]
test cx, cx
je 0x10067340
mov eax, esi
mov edx, esi
movzx ecx, cx
cmp cx, 0x2f
je 0x1006729d
cmp cx, 0x5c
jne 0x1006729f
mov eax, edx
inc edx
inc edx
movzx ecx, word [edx]
test cx, cx
jne 0x10067291
cmp eax, esi
push edi
je 0x100672dd
sub eax, esi
sar eax, 1
add eax, eax
mov edi, eax
push edi
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.1007a530
and word [ebp + edi - 0x414], 0
lea eax, [ebp - 0x414]
push eax
push ebx
call fcn.1006724a
add esp, 0x14
and word [ebp - 0x20c], 0
test ebx, ebx
mov edi, 0x103
je 0x100672ff
push edi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.1007a8c7
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call fcn.100779fb
sub edi, eax
push edi
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.1007e831
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
pop edi
jne 0x10067340
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.100770aa
leave
ret
Function at 0x100678f0
Capabilities:
Get storage device properties

Disassembly:
push 0xffffffffffffffff
push 0x100cbc12
mov eax, dword fs:[0]
push eax
sub esp, 0x41c
mov eax, dword [0x100f83e0]
xor eax, esp
mov dword [esp + 0x418], eax
push esi
push edi
mov eax, dword [0x100f83e0]
xor eax, esp
push eax
lea eax, [esp + 0x428]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0x430], edi
push 0x100e4f98
mov ecx, ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], edi
call fcn.10001438
push edi
push edi
push 3
push edi
push 3
push edi
mov dword [esp + 0x448], edi
push 0x100e4f9c
mov dword [esp + 0x28], 1
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x100679ec
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.100770c0
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 0x100679e5
mov edi, dword [esp + 0x34]
movsx ecx, byte [esp + edi + 0x24]
lea edi, [esp + edi + 0x24]
push ecx
call fcn.100799c8
add esp, 4
test eax, eax
je 0x100679e5
push edi
mov ecx, ebx
call fcn.100086ae
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.100770aa
add esp, 0x428
ret
Function at 0x100692e2
Capabilities:
Create directory
Get file attributes

Disassembly:
push 0x14
mov eax, 0x100cbb40
call fcn.1007f596
mov edi, ecx
and dword [ebp - 0x18], 0
lea esi, [ebp - 0x10]
call fcn.10068de5
and dword [ebp - 4], 0
mov eax, dword [0x10113790]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0x10
je 0x10069424
mov edi, dword [ebp - 0x10]
mov eax, dword [edi - 8]
movzx eax, word [edi + eax*2 - 2]
cmp ax, 0x5c
mov esi, 0x100e2d44
je 0x10069346
push esi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp - 0x10]
call fcn.10069136
mov edi, dword [ebp - 0x10]
mov eax, dword [edi - 8]
test eax, eax
jl 0x1006935a
push esi
push edi
call fcn.1007944a
test eax, eax
pop ecx
pop ecx
jne 0x1006935f
or eax, 0xffffffff
jmp 0x10069363
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
je 0x10069424
lea ecx, [eax + 1]
lea eax, [ebp - 0x1c]
push eax
lea ebx, [ebp - 0x10]
mov dword [ebp - 0x20], ecx
call fcn.10068e71
mov byte [ebp - 4], 2
mov eax, dword [eax]
push eax
mov eax, dword [eax - 8]
lea ecx, [ebp - 0x14]
call fcn.10069136
lea esi, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.1006903b
mov ebx, dword [ebp - 0x20]
test ebx, ebx
mov esi, dword [edi - 8]
jle 0x100693de
test esi, esi
jle 0x100693de
cmp ebx, esi
jle 0x100693b0
mov ebx, esi
lea eax, [ebp - 0x10]
call fcn.100691bd
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.1002a2c9
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 0x100693fd
push 0
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x1006942b
cmp dword [edi - 8], 0
jl 0x10069414
push 0x100e2d44
push edi
call fcn.1007944a
test eax, eax
pop ecx
pop ecx
jne 0x10069418
mov eax, esi
jmp 0x1006941c
sub eax, edi
sar eax, 1
cmp eax, esi
jne 0x1006936c
mov dword [ebp - 0x18], 1
lea esi, [ebp - 0x14]
call fcn.1006903b
lea esi, [ebp - 0x10]
call fcn.1006903b
mov eax, dword [ebp - 0x18]
call fcn.1007f635
ret
Function at 0x1006985a
Capabilities:
Check if file exists
Extract resource via kernel32 functions
Get file attributes

Disassembly:
push 0x60
mov eax, 0x100cd1fb
call fcn.1007f5ff
mov esi, ecx
lea ebx, [ebp - 0x48]
mov dword [ebp - 0x50], esi
mov byte [ebp - 0x49], 0
call fcn.10070461
and dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.100016c5
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.10009105
test al, al
je 0x100698b8
mov eax, ebx
push eax
lea ecx, [ebp - 0x6c]
call fcn.100701a7
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.10001771
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 1
call fcn.1000175c
jmp 0x100698c1
push esi
lea ecx, [ebp - 0x2c]
call fcn.10001771
lea esi, [ebp - 0x2c]
call fcn.1007025a
push 0x100e5300
lea ecx, [ebp - 0x6c]
call fcn.100016ee
lea ebx, [ebp - 0x6c]
mov edi, esi
mov byte [ebp - 4], 3
call fcn.1007036d
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.1000175c
mov ecx, esi
call fcn.10009385
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call ebx
cmp eax, 0xffffffff
mov eax, dword [ebp - 0x50]
je 0x10069910
and dword [eax + 0x1c], 0
jmp 0x100699d1
lea esi, [ebp - 0x48]
mov dword [eax + 0x1c], 1
call fcn.100700bd
push 0x100e5318
lea ecx, [ebp - 0x6c]
call fcn.100016ee
lea esi, [ebp - 0x6c]
lea edi, [ebp - 0x48]
mov byte [ebp - 4], 4
call fcn.100702f9
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.1000175c
mov ecx, edi
call fcn.10009385
push eax
call ebx
cmp eax, 0xffffffff
je 0x10069968
mov ecx, dword [ebp - 0x50]
mov eax, edi
push eax
add ecx, 0x80
call fcn.10001771
jmp 0x100699cd
push str.SKIN
push str.QMUIRES.dat
push dword [0x101137d4]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x100699d1
push esi
push dword [0x101137d4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x100699d1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x100699d1
push esi
push dword [0x101137d4]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, dword [ebp - 0x50]
mov edi, eax
add esi, 0xb0
mov eax, esi
call fcn.1006cf6b
push edi
push ebx
push dword [esi]
call fcn.1007a530
add esp, 0xc
mov byte [ebp - 0x49], 1
lea ecx, [ebp - 0x2c]
call fcn.1000175c
lea ecx, [ebp - 0x48]
call fcn.1000175c
mov al, byte [ebp - 0x49]
call fcn.1007f649
ret
Function at 0x10069e0c
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x50
mov eax, 0x100cd1ae
call fcn.1007f5ff
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0xc]
mov esi, ecx
mov edi, edx
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x2d], 0
call fcn.10009105
test al, al
jne 0x10069f2e
push esi
lea ecx, [ebp - 0x2c]
call fcn.10001724
and dword [ebp - 4], 0
lea esi, [ebp - 0x2c]
call fcn.1007025a
call fcn.100250fd
mov ecx, edi
mov ebx, eax
call fcn.100014bb
mov edi, eax
test edi, edi
je 0x10069e74
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
cmp esi, 0x3fffffff
jle 0x10069e78
xor eax, eax
jmp 0x10069e8b
lea eax, [esi + esi]
call fcn.10089860
mov eax, esp
push ebx
push esi
push edi
push eax
call fcn.1003a1d0
push eax
lea ecx, [ebp - 0x5c]
call fcn.100016ee
lea ebx, [ebp - 0x5c]
lea edi, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.1007036d
xor ebx, ebx
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], bl
call fcn.1000175c
mov ecx, edi
call fcn.10009385
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x38], eax
je 0x10069f26
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, ebx
je 0x10069f1d
lea eax, [esi + 1]
push eax
mov dword [ebp - 0x34], ebx
call fcn.10076595
mov edi, dword [ebp - 0x3c]
pop ecx
push ebx
lea ecx, [ebp - 0x34]
push ecx
push esi
push eax
push dword [ebp - 0x38]
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10069f1d
cmp dword [ebp - 0x34], esi
jne 0x10069f1d
mov eax, dword [ebp - 0x40]
mov dword [eax], esi
mov eax, dword [edi]
mov byte [esi + eax], bl
mov byte [ebp - 0x2d], 1
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x2c]
call fcn.1000175c
mov al, byte [ebp - 0x2d]
lea esp, [ebp - 0x6c]
call fcn.1007f649
ret 8
Function at 0x1006ae2c
Capabilities:
Delete file
Get common file path
Write file on windows

Disassembly:
push ebp
sub esp, 0x410
lea ebp, [esp - 4]
mov eax, dword [0x100f83e0]
xor eax, ebp
mov dword [ebp + 0x410], eax
push 8
mov eax, 0x100cc7e9
call fcn.1007f596
mov eax, dword [ebp + 0x41c]
mov esi, 0x206
xor edi, edi
push esi
mov dword [ebp - 0x14], eax
lea eax, [ebp + 0x20a]
push edi
push eax
mov word [ebp + 0x208], di
call fcn.100770c0
push esi
lea eax, [ebp + 2]
push edi
push eax
mov word [ebp], di
call fcn.100770c0
add esp, 0x18
push edi
push 0x1a
lea eax, [ebp + 0x208]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.kingsoftkclear_temp
lea eax, [ebp + 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov eax, dword [0x10113790]
mov dword [ebp - 0x10], eax
lea eax, [ebp + 0x208]
shr eax, 0x10
test ax, ax
lea eax, [ebp + 0x208]
jne 0x1006aed4
movzx eax, ax
push eax
lea ecx, [ebp - 0x10]
call fcn.10068ee3
jmp 0x1006af09
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
cmp esi, edi
je 0x1006af09
push esi
lea eax, [ebp - 0x10]
push eax
call fcn.10069063
test eax, eax
je 0x1006af09
lea eax, [esi + esi]
push eax
lea ecx, [ebp + 0x208]
push ecx
add eax, 2
push eax
push dword [ebp - 0x10]
call fcn.1002531b
add esp, 0x10
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], edi
call fcn.100692e2
lea esi, [ebp - 0x10]
mov ebx, eax
call fcn.1006903b
cmp ebx, edi
je 0x1006af7e
lea eax, [ebp]
push eax
push edi
push 0x100e5420
lea eax, [ebp + 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp]
push 0x100e5428
push eax
call fcn.1007c9eb
mov esi, eax
cmp esi, edi
pop ecx
pop ecx
je 0x1006af7e
push esi
push dword [ebp + 0x420]
push 1
push dword [ebp - 0x14]
call fcn.1007cbee
push esi
call fcn.1007cce2
add esp, 0x14
push 0x10
push 0x20
push 0x20
push 1
lea eax, [ebp]
push eax
push edi
call dword [sym.imp.USER32.dll_LoadImageW]
mov edi, eax
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
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 + 0x410]
xor ecx, ebp
call fcn.100770aa
add ebp, 0x414
leave
ret

Function at 0x1006efc5
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov eax, dword [ecx]
mov edx, eax
xor edx, dword [esp + 4]
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edi + edx*4]
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 [edi + edx*4]
pop esi
mov dword [ecx + 8], eax
mov eax, dword [esp + 4]
ret
Function at 0x100725d0
Capabilities:
Parse pe header

Disassembly:
cmp edi, 0x40
jae 0x100725d8
xor eax, eax
ret
cmp word [ecx], 0x5a4d
jne 0x100725d5
mov eax, dword [ecx + 0x3c]
lea edx, [eax + 0xf8]
cmp edi, edx
jb 0x100725d5
cmp dword [eax + ecx], 0x4550
jne 0x100725d5
test byte [eax + ecx + 0x16], 2
je 0x100725d5
cmp word [eax + ecx + 0x14], 0xe0
jne 0x100725d5
push esi
lea esi, [eax + ecx + 0xf8]
movzx eax, word [eax + ecx + 6]
xor edx, edx
test eax, eax
jle 0x10072633
lea ecx, [esi + 0x10]
jmp 0x10072620
mov esi, dword [ecx + 4]
add esi, dword [ecx]
cmp esi, edi
ja 0x1007263a
add edx, 1
add ecx, 0x28
cmp edx, eax
jl 0x10072620
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret