joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10050069
Capabilities:
Create thread

Disassembly:
push 0x10
mov eax, 0x100be76b
call fcn.10078d03
mov esi, ecx
push str.CDownload::Init__
push 3
call fcn.10052ea1
xor edi, edi
cmp dword [esi + 0xc], edi
pop ecx
pop ecx
je 0x10050094
xor eax, eax
inc eax
jmp 0x1005011e
cmp dword [esi + 0x64], edi
mov dword [esi + 0xb8], 0x5dc
jne 0x100500dc
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventW]
push edi
push edi
push edi
push edi
call ebx
push edi
push edi
push edi
push edi
mov dword [esi + 0x68], eax
call ebx
push edi
push edi
push edi
push edi
mov dword [esi + 0x6c], eax
call ebx
mov dword [esi + 0x70], eax
lea eax, [esi + 0x74]
push eax
push edi
push esi
push 0x1005179f
push edi
push edi
call fcn.10074506
add esp, 0x18
mov dword [esi + 0x64], eax
lea eax, [esi + 0x8c]
mov dword [ebp - 0x10], eax
add eax, 4
push eax
mov dword [ebp - 0x14], vtable.QQDectector::fund::lock::scoped_lock_class_QQDectector::fund::lock::critical_section_.0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], edi
lea eax, [ebp - 0x1c]
xor edi, edi
push eax
inc edi
lea eax, [esi + 0x78]
mov dword [ebp - 0x1c], edi
call fcn.10051dd6
push dword [esi + 0x70]
call dword [sym.imp.KERNEL32.dll_SetEvent]
lea esi, [ebp - 0x14]
call fcn.100522ec
mov eax, edi
call fcn.10078da2
ret

Function at 0x1005019f
Capabilities:
Print debug messages
Terminate thread

Disassembly:
push 0x10
mov eax, 0x100be76b
call fcn.10078d03
push str.CDownload::Uninit__
push 3
call fcn.10052ea1
pop ecx
lea eax, [edi + 0x8c]
mov dword [ebp - 0x10], eax
pop ecx
add eax, 4
push eax
mov dword [ebp - 0x14], vtable.QQDectector::fund::lock::scoped_lock_class_QQDectector::fund::lock::critical_section_.0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
and dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [edi + 0x78]
mov dword [ebp - 0x1c], 2
call fcn.10051dd6
push dword [edi + 0x70]
mov ebx, dword [sym.imp.KERNEL32.dll_SetEvent]
call ebx
lea esi, [ebp - 0x14]
call fcn.100522ec
push dword [edi + 0x68]
call ebx
push dword [edi + 0x70]
call ebx
cmp dword [edi + 0x64], 0
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x10050247
push 0x7530
push dword [edi + 0x6c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1005023e
push 0x3ff
push dword [edi + 0x64]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push str.Uninit::TerminateThread
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push dword [edi + 0x64]
call esi
and dword [edi + 0x64], 0
push dword [edi + 0x70]
call esi
push dword [edi + 0x68]
call esi
push dword [edi + 0x6c]
call esi
call fcn.10078da2
ret
Function at 0x10051ab7
Capabilities:
Check if file exists

Disassembly:
push ebp
sub esp, 0x238
lea ebp, [esp - 4]
mov eax, dword [0x100e93e0]
xor eax, ebp
mov dword [ebp + 0x238], eax
push 0x20
mov eax, 0x100c0101
call fcn.10078d03
and word [ebp + 0x2c], 0
push 0x208
lea eax, [ebp + 0x2e]
push 0
push eax
call fcn.100738a0
add esp, 0xc
lea eax, [ebp]
push eax
push str.DownloadProxy.Downloader.1
call dword [sym.imp.ole32.dll_CLSIDFromProgID]
sub esp, 0x10
lea esi, [ebp]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea ebx, [ebp + 0x2c]
movsd dword es:[edi], dword [esi]
call fcn.10057489
add esp, 0x10
test eax, eax
je 0x10051bb6
lea ecx, [ebp + 0x10]
call fcn.100016d3
and dword [ebp - 4], 0
lea eax, [ebp + 0x2c]
push eax
lea ecx, [ebp + 0x10]
call fcn.1000a026
lea edi, [ebp + 0x10]
call fcn.10051bd9
push eax
push 0
mov ecx, edi
call fcn.100017ab
push 0xffffffffffffffff
mov ebx, edi
call fcn.10051c3a
inc eax
push eax
mov ecx, edi
call fcn.100017ab
lea eax, [ebp - 0x2c]
push eax
mov ecx, edi
call fcn.10001844
mov esi, eax
lea eax, [ebp - 0x24]
push eax
mov ecx, edi
call fcn.10001866
mov edi, eax
lea eax, [ebp - 0x1c]
push eax
mov ecx, ebx
call fcn.10001844
push dword [esi + 4]
push dword [esi]
push dword [edi + 4]
push dword [edi]
push dword [eax + 4]
push dword [eax]
lea eax, [ebp - 0x14]
push eax
call fcn.10052c1e
add esp, 0x1c
mov ecx, ebx
call fcn.10004e3f
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, ebx
mov esi, eax
call fcn.1000176a
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x238]
xor ecx, ebp
call fcn.10070c21
add ebp, 0x23c
leave
ret

Function at 0x10052fe7
Capabilities:
Check if file exists
Get file attributes

Disassembly:
test eax, eax
je 0x10053005
cmp word [eax], 0
je 0x10053005
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10053005
and al, 0x10
cmp al, 0x10
setne al
ret
xor al, al
ret
Function at 0x10054ab3
Capabilities:
Print debug messages

Disassembly:
push 0x58
mov eax, 0x100c0799
call fcn.10078d03
xor esi, esi
cmp dword [ebx + 0x70], esi
je 0x10054acd
xor eax, eax
jmp 0x10054c19
mov eax, ebx
call fcn.10053850
cmp byte [ebp + 8], 0
jne 0x10054af3
lea eax, [ebx + 0x84]
mov ecx, dword [eax]
cmp ecx, 1
ja 0x10054af3
inc ecx
mov dword [eax], ecx
mov ecx, ebx
call fcn.10053656
jmp 0x10054b00
mov edi, ebx
call fcn.100551e1
mov dword [ebx + 0x70], eax
mov dword [ebx + 0x18], eax
push dword [ebx + 0x88]
mov eax, ebx
call fcn.1005477a
push dword [ebx + 0x8c]
mov eax, ebx
call fcn.10054837
cmp dword [ebx + 0x98], esi
je 0x10054b30
lea eax, [ebx + 0x9c]
push eax
mov eax, ebx
call fcn.100549c1
cmp dword [ebx + 0x90], esi
je 0x10054b45
push dword [ebx + 0x94]
mov eax, ebx
call fcn.100548f5
push 0x100d60d4
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [ebp - 0x2c]
lea ecx, [ebx + 0x11e8]
push eax
call fcn.10055871
lea edi, [ebx + 0x11f4]
mov dword [ebp - 4], esi
call fcn.10052b32
mov eax, dword [ebp - 0x28]
mov esi, dword [eax]
lea ecx, [ebp - 0x18]
call fcn.1002191f
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], eax
mov esi, dword [ebp - 0x28]
lea ecx, [ebp - 0x20]
call fcn.1002191f
cmp dword [ebp - 0x18], 0
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], eax
je 0x10054ba2
cmp dword [ebp - 0x18], eax
je 0x10054ba7
call fcn.10070b1d
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x14], eax
je 0x10054bff
lea esi, [ebp - 0x18]
call fcn.10056113
push dword [eax]
push 0
call fcn.10056113
add eax, 4
push eax
push ebx
call fcn.10053912
test eax, eax
jne 0x10054bf5
push 0x38
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.100738a0
or dword [ebp - 0x64], 0xffffffff
add esp, 0xc
call fcn.10056113
push dword [eax]
mov ecx, dword [ebx + 0x7c]
push 0x59
lea edx, [ebp - 0x64]
call fcn.10051084
lea esi, [ebp - 0x18]
call fcn.10056807
jmp 0x10054b83
push str.ReloadDownloadtask_end
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x2c]
call fcn.1005658b
xor eax, eax
inc eax
call fcn.10078da2
ret 4
Function at 0x10057950
Capabilities:
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x100bf273
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100e93e0]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov esi, 0x10105420
mov ebx, 0x10100e64
mov dword [esp + 0x14], 3
xor ebp, ebp
jmp 0x10057990
push 0x44
call fcn.10070967
add esp, 4
mov dword [esp + 0x1c], eax
cmp eax, ebp
mov dword [esp + 0x3c], ebp
je 0x100579bb
mov ecx, dword [ebx + 4]
mov edx, dword [ebx]
push ecx
mov ecx, dword [ebx - 4]
push edx
push ecx
push eax
call fcn.1005ad80
mov edi, eax
jmp 0x100579bd
xor edi, edi
mov dword [esp + 0x3c], 0xffffffff
mov ecx, dword [esi]
cmp edi, ecx
je 0x100579d9
cmp ecx, ebp
je 0x100579d7
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 0x10057a49
mov eax, dword [esi]
lea ecx, [esp + 0x18]
call fcn.100576f0
mov dword [esp + 0x3c], 1
mov edi, dword [eax]
cmp edi, ebp
je 0x10057a24
lea eax, [edi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esi + 0x10]
cmp eax, ebp
je 0x10057a33
lea ecx, [eax + 4]
call fcn.100350db
lea ecx, [esp + 0x18]
mov dword [esi + 0x10], edi
mov dword [esp + 0x3c], 0xffffffff
call fcn.10034fd1
jmp 0x10057a58
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 0x10057990
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 0x10058380
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x100be63d
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100e93e0]
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 [0x10105238]
cmp eax, edi
mov ebx, dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi + 0x88], edi
jne 0x1005844d
push 8
call fcn.10070967
mov ebp, eax
add esp, 4
cmp ebp, edi
je 0x10058446
mov dword [ebp], edi
mov dword [ebp + 4], 0xffffffff
call ebx
mov dword [ebp + 4], eax
mov eax, ebp
jmp 0x10058448
xor eax, eax
mov dword [0x10105238], eax
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [0x10105238]
cmp eax, edi
jne 0x10058487
push 8
call fcn.10070967
mov ebp, eax
add esp, 4
cmp ebp, edi
je 0x10058480
mov dword [ebp], edi
mov dword [ebp + 4], 0xffffffff
call ebx
mov dword [ebp + 4], eax
mov eax, ebp
jmp 0x10058482
xor eax, eax
mov dword [0x10105238], eax
mov eax, dword [eax + 4]
cmp eax, 0xffffffff
je 0x10058497
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 0x24
call fcn.10070967
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, edi
mov byte [esp + 0x20], 6
je 0x100584b8
push eax
call fcn.1005b610
mov ebp, eax
jmp 0x100584ba
xor ebp, ebp
cmp ebp, edi
mov byte [esp + 0x20], 5
je 0x100584cd
lea eax, [ebp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esi + 0x70]
cmp eax, edi
je 0x100584dc
lea ecx, [eax + 4]
call fcn.100350db
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 0x10058530
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x100bfef2
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100e93e0]
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 0x10058570
push edi
call fcn.10058740
mov esi, edi
call fcn.10058db0
push edi
call fcn.10058740
test al, al
je 0x1005858f
add ebp, 1
cmp ebp, 0x64
jl 0x10058570
cmp dword [edi + 0x70], 0
lea ebx, [edi + 0x70]
je 0x100585bc
mov ecx, ebx
call fcn.100350cd
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x1c]
call eax
mov eax, dword [ebx]
test eax, eax
je 0x100585b6
lea ecx, [eax + 4]
call fcn.100350db
mov dword [ebx], 0
mov eax, dword [0x10105238]
test eax, eax
mov ebp, dword [sym.imp.KERNEL32.dll_TlsAlloc]
jne 0x100585f8
push 8
call fcn.10070967
mov esi, eax
add esp, 4
test esi, esi
je 0x100585f1
mov dword [esi], 0
mov dword [esi + 4], 0xffffffff
call ebp
mov dword [esi + 4], eax
mov eax, esi
jmp 0x100585f3
xor eax, eax
mov dword [0x10105238], eax
mov ecx, dword [eax + 4]
cmp ecx, 0xffffffff
je 0x1005860e
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x10105238]
test eax, eax
jne 0x1005863f
push 8
call fcn.10070967
mov esi, eax
add esp, 4
test esi, esi
je 0x10058638
mov dword [esi], 0
mov dword [esi + 4], 0xffffffff
call ebp
mov dword [esi + 4], eax
mov eax, esi
jmp 0x1005863a
xor eax, eax
mov dword [0x10105238], eax
push eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
xor ebp, ebp
test eax, eax
jne 0x10058677
cmp esi, ebp
je 0x10058671
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x10058668
push eax
call dword [sym.imp.KERNEL32.dll_TlsFree]
mov dword [esi + 4], 0xffffffff
push esi
call fcn.10070c30
add esp, 4
mov dword [0x10105238], ebp
lea esi, [edi + 0x74]
call fcn.10059fa0
mov ecx, ebx
mov byte [esp + 0x20], 3
call fcn.10034fd1
mov eax, dword [edi + 0x48]
cmp eax, ebp
je 0x1005869b
push eax
call fcn.10070c30
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.10059fa0
lea esi, [edi + 4]
call fcn.10059fa0
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 0x100586e0
Capabilities:
Allocate thread local storage
Get thread local storage value

Disassembly:
push esi
mov esi, dword [0x10105238]
test esi, esi
jne 0x1005872b
push 8
call fcn.10070967
mov esi, eax
add esp, 4
test esi, esi
je 0x10058723
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 [0x10105238], esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
pop esi
ret
xor esi, esi
mov dword [0x10105238], esi
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
pop esi
ret
Function at 0x1005bb2e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x100e93e0]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x214], 0
test byte [0x10105860], 1
push esi
mov esi, 0x1010585c
jne 0x1005bb70
or dword [0x10105860], 1
mov ecx, esi
call fcn.10003c04
push 0x100c1e2c
call fcn.1007118b
pop ecx
mov ecx, esi
call fcn.10003bee
test al, al
je 0x1005bbba
and word [ebp - 0x210], 0
push 0x20a
lea eax, [ebp - 0x20e]
push 0
push eax
call fcn.100738a0
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.10070c21
leave
ret
Function at 0x10062f95
Capabilities:
Create directory
Get file attributes

Disassembly:
push 0x14
mov eax, 0x100bf100
call fcn.10078d03
mov edi, ecx
and dword [ebp - 0x18], 0
lea esi, [ebp - 0x10]
call fcn.10062a95
and dword [ebp - 4], 0
mov eax, dword [0x10104298]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0x10
je 0x100630d7
mov edi, dword [ebp - 0x10]
mov eax, dword [edi - 8]
movzx eax, word [edi + eax*2 - 2]
cmp ax, 0x5c
mov esi, 0x100d4854
je 0x10062ff9
push esi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp - 0x10]
call fcn.10062de6
mov edi, dword [ebp - 0x10]
mov eax, dword [edi - 8]
test eax, eax
jl 0x1006300d
push esi
push edi
call fcn.100713c1
test eax, eax
pop ecx
pop ecx
jne 0x10063012
or eax, 0xffffffff
jmp 0x10063016
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
je 0x100630d7
lea ecx, [eax + 1]
lea eax, [ebp - 0x1c]
push eax
lea ebx, [ebp - 0x10]
mov dword [ebp - 0x20], ecx
call fcn.10062b21
mov byte [ebp - 4], 2
mov eax, dword [eax]
push eax
mov eax, dword [eax - 8]
lea ecx, [ebp - 0x14]
call fcn.10062de6
lea esi, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.10062ceb
mov ebx, dword [ebp - 0x20]
test ebx, ebx
mov esi, dword [edi - 8]
jle 0x10063091
test esi, esi
jle 0x10063091
cmp ebx, esi
jle 0x10063063
mov ebx, esi
lea eax, [ebp - 0x10]
call fcn.10062e6d
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.100249fb
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 0x100630b0
push 0
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x100630de
cmp dword [edi - 8], 0
jl 0x100630c7
push 0x100d4854
push edi
call fcn.100713c1
test eax, eax
pop ecx
pop ecx
jne 0x100630cb
mov eax, esi
jmp 0x100630cf
sub eax, edi
sar eax, 1
cmp eax, esi
jne 0x1006301f
mov dword [ebp - 0x18], 1
lea esi, [ebp - 0x14]
call fcn.10062ceb
lea esi, [ebp - 0x10]
call fcn.10062ceb
mov eax, dword [ebp - 0x18]
call fcn.10078da2
ret
Function at 0x10063512
Capabilities:
Check if file exists
Extract resource via kernel32 functions
Get file attributes

Disassembly:
push 0x60
mov eax, 0x100c06e0
call fcn.10078d6c
mov esi, ecx
lea ebx, [ebp - 0x48]
mov dword [ebp - 0x50], esi
mov byte [ebp - 0x49], 0
call fcn.1006a57e
and dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.100016d3
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.100018a0
test al, al
je 0x10063570
mov eax, ebx
push eax
lea ecx, [ebp - 0x6c]
call fcn.1006a2c4
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.1000177f
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 1
call fcn.1000176a
jmp 0x10063579
push esi
lea ecx, [ebp - 0x2c]
call fcn.1000177f
lea esi, [ebp - 0x2c]
call fcn.1006a377
push 0x100d6d5c
lea ecx, [ebp - 0x6c]
call fcn.100016fc
lea ebx, [ebp - 0x6c]
mov edi, esi
mov byte [ebp - 4], 3
call fcn.1006a48a
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.1000176a
mov ecx, esi
call fcn.10004e3f
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call ebx
cmp eax, 0xffffffff
mov eax, dword [ebp - 0x50]
je 0x100635c8
and dword [eax + 0x1c], 0
jmp 0x10063689
lea esi, [ebp - 0x48]
mov dword [eax + 0x1c], 1
call fcn.1006a1da
push 0x100d6d74
lea ecx, [ebp - 0x6c]
call fcn.100016fc
lea esi, [ebp - 0x6c]
lea edi, [ebp - 0x48]
mov byte [ebp - 4], 4
call fcn.1006a416
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.1000176a
mov ecx, edi
call fcn.10004e3f
push eax
call ebx
cmp eax, 0xffffffff
je 0x10063620
mov ecx, dword [ebp - 0x50]
mov eax, edi
push eax
add ecx, 0x80
call fcn.1000177f
jmp 0x10063685
push str.SKIN
push str.QMUIRES.dat
push dword [0x10105020]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x10063689
push esi
push dword [0x10105020]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10063689
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x10063689
push esi
push dword [0x10105020]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, dword [ebp - 0x50]
mov edi, eax
add esi, 0xb0
mov eax, esi
call fcn.10067067
push edi
push ebx
push dword [esi]
call fcn.10073920
add esp, 0xc
mov byte [ebp - 0x49], 1
lea ecx, [ebp - 0x2c]
call fcn.1000176a
lea ecx, [ebp - 0x48]
call fcn.1000176a
mov al, byte [ebp - 0x49]
call fcn.10078db6
ret
Function at 0x10063ac4
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x50
mov eax, 0x100c0693
call fcn.10078d6c
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.100018a0
test al, al
jne 0x10063be6
push esi
lea ecx, [ebp - 0x2c]
call fcn.10001732
and dword [ebp - 4], 0
lea esi, [ebp - 0x2c]
call fcn.1006a377
call fcn.10020929
mov ecx, edi
mov ebx, eax
call fcn.100014a7
mov edi, eax
test edi, edi
je 0x10063b2c
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
cmp esi, 0x3fffffff
jle 0x10063b30
xor eax, eax
jmp 0x10063b43
lea eax, [esi + esi]
call fcn.10082da0
mov eax, esp
push ebx
push esi
push edi
push eax
call fcn.10034966
push eax
lea ecx, [ebp - 0x5c]
call fcn.100016fc
lea ebx, [ebp - 0x5c]
lea edi, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.1006a48a
xor ebx, ebx
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], bl
call fcn.1000176a
mov ecx, edi
call fcn.10004e3f
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 0x10063bde
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, ebx
je 0x10063bd5
lea eax, [esi + 1]
push eax
mov dword [ebp - 0x34], ebx
call fcn.1006ffa8
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 0x10063bd5
cmp dword [ebp - 0x34], esi
jne 0x10063bd5
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.1000176a
mov al, byte [ebp - 0x2d]
lea esp, [ebp - 0x6c]
call fcn.10078db6
ret 8
Function at 0x10064aef
Capabilities:
Delete file
Get common file path
Write file on windows

Disassembly:
push ebp
sub esp, 0x410
lea ebp, [esp - 4]
mov eax, dword [0x100e93e0]
xor eax, ebp
mov dword [ebp + 0x410], eax
push 8
mov eax, 0x100bfcab
call fcn.10078d03
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.100738a0
push esi
lea eax, [ebp + 2]
push edi
push eax
mov word [ebp], di
call fcn.100738a0
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 [0x10104298]
mov dword [ebp - 0x10], eax
lea eax, [ebp + 0x208]
shr eax, 0x10
test ax, ax
lea eax, [ebp + 0x208]
jne 0x10064b97
movzx eax, ax
push eax
lea ecx, [ebp - 0x10]
call fcn.10062b93
jmp 0x10064bcc
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
cmp esi, edi
je 0x10064bcc
push esi
lea eax, [ebp - 0x10]
push eax
call fcn.10062d13
test eax, eax
je 0x10064bcc
lea eax, [esi + esi]
push eax
lea ecx, [ebp + 0x208]
push ecx
add eax, 2
push eax
push dword [ebp - 0x10]
call fcn.10020b38
add esp, 0x10
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], edi
call fcn.10062f95
lea esi, [ebp - 0x10]
mov ebx, eax
call fcn.10062ceb
cmp ebx, edi
je 0x10064c41
lea eax, [ebp]
push eax
push edi
push 0x100d6e7c
lea eax, [ebp + 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp]
push 0x100d6e84
push eax
call fcn.10076478
mov esi, eax
cmp esi, edi
pop ecx
pop ecx
je 0x10064c41
push esi
push dword [ebp + 0x420]
push 1
push dword [ebp - 0x14]
call fcn.1007663a
push esi
call fcn.100769f3
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.10070c21
add ebp, 0x414
leave
ret

Function at 0x100690e2
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