joyce8/EMBER2024-capa huggingface dataset:
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, 0x100c0151
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.100574ec
add esp, 0x10
test eax, eax
je 0x10051bb6
lea ecx, [ebp + 0x10]
call fcn.10001700
and dword [ebp - 4], 0
lea eax, [ebp + 0x2c]
push eax
lea ecx, [ebp + 0x10]
call fcn.1000a326
lea edi, [ebp + 0x10]
call fcn.10051bd9
push eax
push 0
mov ecx, edi
call fcn.100017d8
push 0xffffffffffffffff
mov ebx, edi
call fcn.10051c3a
inc eax
push eax
mov ecx, edi
call fcn.100017d8
lea eax, [ebp - 0x2c]
push eax
mov ecx, edi
call fcn.10001871
mov esi, eax
lea eax, [ebp - 0x24]
push eax
mov ecx, edi
call fcn.10001893
mov edi, eax
lea eax, [ebp - 0x1c]
push eax
mov ecx, ebx
call fcn.10001871
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.10052be5
add esp, 0x1c
mov ecx, ebx
call fcn.100051fa
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, ebx
mov esi, eax
call fcn.10001797
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 0x10052fae
Capabilities:
Check if file exists
Get file attributes

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

Disassembly:
push 0x58
mov eax, 0x100c07a9
call fcn.10078d03
xor esi, esi
cmp dword [ebx + 0x70], esi
je 0x10054a94
xor eax, eax
jmp 0x10054be0
mov eax, ebx
call fcn.10053817
cmp byte [ebp + 8], 0
jne 0x10054aba
lea eax, [ebx + 0x84]
mov ecx, dword [eax]
cmp ecx, 1
ja 0x10054aba
inc ecx
mov dword [eax], ecx
mov ecx, ebx
call fcn.1005361d
jmp 0x10054ac7
mov edi, ebx
call fcn.100551a8
mov dword [ebx + 0x70], eax
mov dword [ebx + 0x18], eax
push dword [ebx + 0x88]
mov eax, ebx
call fcn.10054741
push dword [ebx + 0x8c]
mov eax, ebx
call fcn.100547fe
cmp dword [ebx + 0x98], esi
je 0x10054af7
lea eax, [ebx + 0x9c]
push eax
mov eax, ebx
call fcn.10054988
cmp dword [ebx + 0x90], esi
je 0x10054b0c
push dword [ebx + 0x94]
mov eax, ebx
call fcn.100548bc
push 0x100d60f4
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [ebp - 0x2c]
lea ecx, [ebx + 0x11e8]
push eax
call fcn.10055838
lea edi, [ebx + 0x11f4]
mov dword [ebp - 4], esi
call fcn.10052af9
mov eax, dword [ebp - 0x28]
mov esi, dword [eax]
lea ecx, [ebp - 0x18]
call fcn.1002182e
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.1002182e
cmp dword [ebp - 0x18], 0
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], eax
je 0x10054b69
cmp dword [ebp - 0x18], eax
je 0x10054b6e
call fcn.10070b1d
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x14], eax
je 0x10054bc6
lea esi, [ebp - 0x18]
call fcn.10052306
push dword [eax]
push 0
call fcn.10052306
add eax, 4
push eax
push ebx
call fcn.100538d9
test eax, eax
jne 0x10054bbc
push 0x38
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.100738a0
or dword [ebp - 0x64], 0xffffffff
add esp, 0xc
call fcn.10052306
push dword [eax]
mov ecx, dword [ebx + 0x7c]
push 0x59
lea edx, [ebp - 0x64]
call fcn.10051084
lea esi, [ebp - 0x18]
call fcn.1005681a
jmp 0x10054b4a
push str.ReloadDownloadtask_end
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x2c]
call fcn.1005659e
xor eax, eax
inc eax
call fcn.10078da2
ret 4
Function at 0x100574ec
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0x2f0
mov eax, dword [0x100e93e0]
xor eax, ebp
mov dword [ebp + 0x64], eax
push esi
push edi
lea esi, [ebp + 0x70]
lea edi, [ebp - 0x27c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x64
xor edi, edi
lea eax, [ebp - 0x64]
push edi
push eax
call fcn.100738a0
movzx eax, byte [ebp - 0x270]
movzx ecx, byte [ebp - 0x26f]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 0x26e]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 0x26d]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 0x271]
push eax
movzx eax, byte [ebp - 0x272]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 0x273]
push eax
movzx eax, byte [ebp - 0x274]
shl eax, 8
or eax, ecx
push eax
movzx eax, word [ebp - 0x276]
push eax
movzx eax, word [ebp - 0x278]
push eax
push dword [ebp - 0x27c]
lea eax, [ebp - 0x64]
push str._X__X__X__X__X_X
push eax
call fcn.100751ad
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x26c]
push str.CLSID_sLocalServer32
push eax
call fcn.100751ad
add esp, 0x38
lea eax, [ebp - 0x280]
push eax
lea eax, [ebp - 0x26c]
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x100575cf
xor eax, eax
jmp 0x10057613
lea eax, [ebp - 0x288]
push eax
push ebx
lea eax, [ebp - 0x284]
push eax
push edi
push edi
push dword [ebp - 0x280]
xor esi, esi
inc esi
mov dword [ebp - 0x284], esi
mov dword [ebp - 0x288], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x10057605
xor esi, esi
push dword [ebp - 0x280]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp + 0x64]
pop edi
xor ecx, ebp
pop esi
call fcn.10070c21
add ebp, 0x68
leave
ret
Function at 0x100579b0
Capabilities:
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x100bf233
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 0x100579f0
push 0x44
call fcn.10070967
add esp, 4
mov dword [esp + 0x1c], eax
cmp eax, ebp
mov dword [esp + 0x3c], ebp
je 0x10057a1b
mov ecx, dword [ebx + 4]
mov edx, dword [ebx]
push ecx
mov ecx, dword [ebx - 4]
push edx
push ecx
push eax
call fcn.1005add0
mov edi, eax
jmp 0x10057a1d
xor edi, edi
mov dword [esp + 0x3c], 0xffffffff
mov ecx, dword [esi]
cmp edi, ecx
je 0x10057a39
cmp ecx, ebp
je 0x10057a37
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 0x10057aa9
mov eax, dword [esi]
lea ecx, [esp + 0x18]
call fcn.10057750
mov dword [esp + 0x3c], 1
mov edi, dword [eax]
cmp edi, ebp
je 0x10057a84
lea eax, [edi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esi + 0x10]
cmp eax, ebp
je 0x10057a93
lea ecx, [eax + 4]
call fcn.10035388
lea ecx, [esp + 0x18]
mov dword [esi + 0x10], edi
mov dword [esp + 0x3c], 0xffffffff
call fcn.1003527e
jmp 0x10057ab8
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 0x100579f0
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 0x100583d0
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x100be62d
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 0x1005849d
push 8
call fcn.10070967
mov ebp, eax
add esp, 4
cmp ebp, edi
je 0x10058496
mov dword [ebp], edi
mov dword [ebp + 4], 0xffffffff
call ebx
mov dword [ebp + 4], eax
mov eax, ebp
jmp 0x10058498
xor eax, eax
mov dword [0x10105238], eax
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [0x10105238]
cmp eax, edi
jne 0x100584d7
push 8
call fcn.10070967
mov ebp, eax
add esp, 4
cmp ebp, edi
je 0x100584d0
mov dword [ebp], edi
mov dword [ebp + 4], 0xffffffff
call ebx
mov dword [ebp + 4], eax
mov eax, ebp
jmp 0x100584d2
xor eax, eax
mov dword [0x10105238], eax
mov eax, dword [eax + 4]
cmp eax, 0xffffffff
je 0x100584e7
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 0x10058508
push eax
call fcn.1005b670
mov ebp, eax
jmp 0x1005850a
xor ebp, ebp
cmp ebp, edi
mov byte [esp + 0x20], 5
je 0x1005851d
lea eax, [ebp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esi + 0x70]
cmp eax, edi
je 0x1005852c
lea ecx, [eax + 4]
call fcn.10035388
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 0x10058580
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x100bff42
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 0x100585c0
push edi
call fcn.10058790
mov esi, edi
call fcn.10058e00
push edi
call fcn.10058790
test al, al
je 0x100585df
add ebp, 1
cmp ebp, 0x64
jl 0x100585c0
cmp dword [edi + 0x70], 0
lea ebx, [edi + 0x70]
je 0x1005860c
mov ecx, ebx
call fcn.1003537a
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x1c]
call eax
mov eax, dword [ebx]
test eax, eax
je 0x10058606
lea ecx, [eax + 4]
call fcn.10035388
mov dword [ebx], 0
mov eax, dword [0x10105238]
test eax, eax
mov ebp, dword [sym.imp.KERNEL32.dll_TlsAlloc]
jne 0x10058648
push 8
call fcn.10070967
mov esi, eax
add esp, 4
test esi, esi
je 0x10058641
mov dword [esi], 0
mov dword [esi + 4], 0xffffffff
call ebp
mov dword [esi + 4], eax
mov eax, esi
jmp 0x10058643
xor eax, eax
mov dword [0x10105238], eax
mov ecx, dword [eax + 4]
cmp ecx, 0xffffffff
je 0x1005865e
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x10105238]
test eax, eax
jne 0x1005868f
push 8
call fcn.10070967
mov esi, eax
add esp, 4
test esi, esi
je 0x10058688
mov dword [esi], 0
mov dword [esi + 4], 0xffffffff
call ebp
mov dword [esi + 4], eax
mov eax, esi
jmp 0x1005868a
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 0x100586c7
cmp esi, ebp
je 0x100586c1
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x100586b8
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.10059ff0
mov ecx, ebx
mov byte [esp + 0x20], 3
call fcn.1003527e
mov eax, dword [edi + 0x48]
cmp eax, ebp
je 0x100586eb
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.10059ff0
lea esi, [edi + 4]
call fcn.10059ff0
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 0x10058730
Capabilities:
Allocate thread local storage
Get thread local storage value

Disassembly:
push esi
mov esi, dword [0x10105238]
test esi, esi
jne 0x1005877b
push 8
call fcn.10070967
mov esi, eax
add esp, 4
test esi, esi
je 0x10058773
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 0x1005b380
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, 0x10105130
push 0x1010543c
call ebx
mov esi, dword [edi]
test esi, esi
je 0x1005b3b8
cmp dword [esi + 0x14], 0
je 0x1005b3b8
push 0x1010543c
call ebp
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
mov ecx, esi
call edx
sub edi, 4
cmp edi, 0x10105124
jne 0x1005b395
mov eax, dword [0x10105238]
test eax, eax
jne 0x1005b3fd
push 8
call fcn.10070967
mov esi, eax
add esp, 4
test esi, esi
je 0x1005b3f6
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 0x1005b3f8
xor eax, eax
mov dword [0x10105238], 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 0x1005b416
mov dword [eax + 0x68], 1
mov al, 1
ret

Function at 0x1005b8ae
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 0x1005b8d7
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 0x1005bb8e
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 0x1005bbd0
or dword [0x10105860], 1
mov ecx, esi
call fcn.10004000
push 0x100c1e6c
call fcn.1007118b
pop ecx
mov ecx, esi
call fcn.10003fea
test al, al
je 0x1005bc1a
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.100040b7
push esi
mov ecx, ebx
call fcn.1000401a
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, ebx
pop esi
call fcn.10070c21
leave
ret
Function at 0x1005f70f
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
push esi
mov esi, edx
jne 0x1005f71a
xor eax, eax
pop esi
ret
cmp eax, 8
push ebx
not esi
mov edx, 0xff
jb 0x1005f7cc
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 + 0x100ca340]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x100ca340]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x100ca340]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x100ca340]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x100ca340]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x100ca340]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x100ca340]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x100ca340]
inc ecx
sub eax, 8
dec edi
jne 0x1005f731
pop edi
test eax, eax
je 0x1005f7e5
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x100ca340]
inc ecx
dec eax
jne 0x1005f7d0
mov eax, esi
pop ebx
not eax
pop esi
ret

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

Function at 0x1005ff2b
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 0x1005ff5b
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 0x1005ff56
mov byte [esi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x1005ff93
xor eax, eax
mov ecx, edi
add ecx, dword [esi + 0x28]
adc eax, dword [esi + 0x2c]
cmp eax, dword [esi + 0x24]
jl 0x1005ff77
jg 0x1005ff71
cmp ecx, dword [esi + 0x20]
jbe 0x1005ff77
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.10073920
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 0x1006007b
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 0x10060109
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 0x100600d5
or eax, 0xffffffff
jmp 0x100601f2
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xc]
push edx
push eax
xor ecx, ecx
mov eax, esi
call fcn.1005fe8f
test eax, eax
pop ecx
pop ecx
jne 0x100600cd
cmp byte [esi], al
je 0x10060119
cmp byte [esi + 1], al
je 0x10060110
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 0x10060121
push eax
push eax
push 2
pop ecx
jmp 0x100600e0
and dword [ebp - 4], 0
mov ebx, dword [ebp - 4]
jmp 0x10060121
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 0x10060130
mov dword [ebp - 8], ebx
push 0x404
call fcn.10072fb3
test eax, eax
pop ecx
mov dword [ebp - 0x10], eax
je 0x100600cd
or dword [ebp - 0x14], 0xffffffff
push 4
pop eax
cmp dword [ebp - 8], eax
jbe 0x100601e6
jmp 0x1006015a
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 0x1006016c
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 0x10060180
mov ebx, eax
push 0
push edi
xor ecx, ecx
mov eax, esi
call fcn.1005fe8f
test eax, eax
pop ecx
pop ecx
jne 0x100601e6
push 1
push ebx
push dword [ebp - 0x10]
call fcn.1005ff2b
add esp, 0xc
cmp eax, 1
jne 0x100601e6
lea eax, [ebx - 3]
jmp 0x100601c9
mov ecx, dword [ebp - 0x10]
dec eax
cmp byte [eax + ecx], 0x50
jne 0x100601c9
cmp byte [eax + ecx + 1], 0x4b
jne 0x100601c9
cmp byte [eax + ecx + 2], 5
jne 0x100601c9
cmp byte [eax + ecx + 3], 6
je 0x100601cf
test eax, eax
jg 0x100601aa
jmp 0x100601d4
add eax, edi
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x100601e6
mov eax, dword [ebp - 8]
cmp dword [ebp - 0xc], eax
jb 0x10060154
push dword [ebp - 0x10]
call fcn.1007312d
mov eax, dword [ebp - 0x14]
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10060c42
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
cmp dword [esi], 0
jne 0x10060cd1
cmp dword [esi + 4], 0xffffffff
jne 0x10060cd1
push edi
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push edi
call fcn.10070c0b
movzx eax, word [esi + eax*2 + 0x242]
cmp ax, 0x5c
pop ecx
je 0x10060c9e
cmp ax, 0x2f
je 0x10060c9e
push edi
call fcn.10070c0b
mov ecx, 0x103
sub ecx, eax
push ecx
push 0x100d4874
push edi
call fcn.10077d41
add esp, 0x10
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
call fcn.1005fdde
test eax, eax
pop ecx
pop ecx
pop edi
jne 0x10060cb6
mov eax, dword [ebp + 8]
jmp 0x10060cd6
push dword [ebp + 0xc]
call fcn.100601f7
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
pop ecx
add eax, 0x200
jmp 0x10060cd6
mov eax, 0x1000000
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x100e93e0]
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 0x10061267
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10061267
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx ecx, word [esi]
test cx, cx
je 0x10061329
mov eax, esi
mov edx, esi
movzx ecx, cx
cmp cx, 0x2f
je 0x10061286
cmp cx, 0x5c
jne 0x10061288
mov eax, edx
inc edx
inc edx
movzx ecx, word [edx]
test cx, cx
jne 0x1006127a
cmp eax, esi
push edi
je 0x100612c6
sub eax, esi
sar eax, 1
add eax, eax
mov edi, eax
push edi
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.10073920
and word [ebp + edi - 0x414], 0
lea eax, [ebp - 0x414]
push eax
push ebx
call fcn.10061233
add esp, 0x14
and word [ebp - 0x20c], 0
test ebx, ebx
mov edi, 0x103
je 0x100612e8
push edi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.10073f13
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call fcn.10070c0b
sub edi, eax
push edi
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.10077d41
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
pop edi
jne 0x10061329
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.10070c21
leave
ret