joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004b9cb
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
mov eax, dword [0x1010b070]
xor eax, esp
mov dword [esp + 0x60], eax
push esi
mov esi, dword [ebp + 8]
test ecx, ecx
je 0x1004ba35
test edx, edx
jle 0x1004ba35
test esi, esi
je 0x1004ba35
and dword [esp + 0x1c], 0
and dword [esp + 0x18], 0
push edx
mov edx, ecx
mov dword [esp + 0xc], 0x67452301
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], 0xefcdab89
mov dword [esp + 0x14], 0x98badcfe
mov dword [esp + 0x18], 0x10325476
call fcn.1004bca6
pop ecx
lea edx, [esp + 8]
mov ecx, esi
call fcn.1004bd60
mov al, 1
jmp 0x1004ba37
xor al, al
mov ecx, dword [esp + 0x64]
pop esi
xor ecx, esp
call fcn.1008a777
mov esp, ebp
pop ebp
ret

Function at 0x1004baf0
Capabilities:
Hash data with md5
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c1676
mov eax, dword fs:[0]
push eax
mov eax, 0x217c
call fcn.1008bb10
mov eax, dword [0x1010b070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2188], edx
xor ebx, ebx
mov dword [ebp - 0x2184], ebx
mov dword [ebp - 0x2180], ebx
sub esp, 0x14
mov dword [ebp - 4], ebx
push closesocket
push ecx
lea ecx, [ebp - 0x2184]
call fcn.10009015
mov esi, dword [ebp - 0x2184]
test eax, eax
js 0x1004bc7d
mov byte [ebp - 0x20], bl
lea edi, [ebp - 0x1f]
xor eax, eax
mov dword [ebp - 0x2164], ebx
stosd dword es:[edi], eax
mov dword [ebp - 0x2168], ebx
mov dword [ebp - 0x2178], 0x67452301
mov dword [ebp - 0x2174], 0xefcdab89
stosd dword es:[edi], eax
mov dword [ebp - 0x2170], 0x98badcfe
mov dword [ebp - 0x216c], 0x10325476
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push ebx
lea eax, [ebp - 0x217c]
mov dword [ebp - 0x217c], ebx
push eax
push 0x2000
lea eax, [ebp - 0x2120]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1004bbc7
call fcn.10011411
cmp dword [ebp - 0x217c], 0
je 0x1004bbea
push dword [ebp - 0x217c]
lea edx, [ebp - 0x2120]
lea ecx, [ebp - 0x2178]
call fcn.1004bca6
pop ecx
jmp 0x1004bb9d
test esi, esi
je 0x1004bbfd
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, ebx
mov dword [ebp - 0x2184], esi
lea edx, [ebp - 0x2178]
lea ecx, [ebp - 0x20]
call fcn.1004bd60
push 0x100
lea eax, [ebp - 0x120]
push ebx
push eax
call fcn.1008dc90
add esp, 0xc
lea esi, [ebp - 0x120]
mov edi, ebx
movzx eax, byte [ebp + edi - 0x20]
push eax
push str._.2x
push 0xffffffffffffffff
push 3
push esi
call fcn.10001eb4
add esp, 0x14
add esi, 4
inc edi
cmp edi, 0x10
jb 0x1004bc28
mov esi, dword [ebp - 0x2184]
lea edx, [ebp - 0x120]
lea edi, [edx + 2]
mov ax, word [edx]
add edx, 2
cmp ax, bx
jne 0x1004bc58
mov ecx, dword [ebp - 0x2188]
lea eax, [ebp - 0x120]
sub edx, edi
sar edx, 1
push edx
push eax
call fcn.10005c3c
xor ebx, ebx
inc ebx
test esi, esi
je 0x1004bc88
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1008a777
mov esp, ebp
pop ebp
ret
Function at 0x1004f980
Capabilities:
Check os version

Disassembly:
mov eax, dword [0x10110364]
sub esp, 0x114
test eax, eax
jne 0x1004fab0
push 0x114
push eax
lea eax, [esp + 8]
push eax
call fcn.1008dc90
add esp, 0xc
mov dword [esp], 0x114
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [esp + 0x10]
cmp eax, 2
jne 0x1004fa8c
call fcn.1004f900
test eax, eax
je 0x1004f9de
mov eax, 9
mov dword [0x10110364], eax
add esp, 0x114
ret
mov eax, dword [esp + 4]
cmp eax, 5
jne 0x1004fa2c
mov eax, dword [esp + 8]
test eax, eax
jne 0x1004fa00
mov eax, 2
mov dword [0x10110364], eax
add esp, 0x114
ret
cmp eax, 1
jne 0x1004fa16
mov eax, 3
mov dword [0x10110364], eax
add esp, 0x114
ret
cmp eax, 2
jne 0x1004fa7b
mov eax, 4
mov dword [0x10110364], eax
add esp, 0x114
ret
cmp eax, 6
jne 0x1004fa7b
mov eax, dword [esp + 8]
test eax, eax
jne 0x1004fa4a
mov eax, 5
mov dword [0x10110364], eax
add esp, 0x114
ret
cmp eax, 1
jne 0x1004fa60
mov eax, 6
mov dword [0x10110364], eax
add esp, 0x114
ret
cmp eax, 2
je 0x1004fa6a
cmp eax, 3
jne 0x1004fa7b
mov eax, 7
mov dword [0x10110364], eax
add esp, 0x114
ret
mov eax, 0x14
mov dword [0x10110364], eax
add esp, 0x114
ret
cmp eax, 1
jne 0x1004faab
cmp dword [esp + 4], 4
jne 0x1004fa7b
cmp dword [esp + 8], 0
jne 0x1004fa7b
mov dword [0x10110364], eax
add esp, 0x114
ret
mov eax, dword [0x10110364]
add esp, 0x114
ret

Function at 0x10052560
Capabilities:
Log keystrokes via polling

Disassembly:
mov edx, dword [esp + 4]
push edi
mov edi, ecx
cmp edx, 9
jne 0x100525da
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
push ecx
mov ecx, dword [edi + 4]
call fcn.100521f0
test eax, eax
jne 0x100525d6
push ebx
mov ebx, dword [edi + 4]
push esi
mov esi, dword [ebx + 0x5c]
test esi, esi
je 0x100525cb
mov ecx, dword [esi + 0x18]
mov eax, ecx
shr eax, 2
not eax
test al, 1
jne 0x100525c4
mov eax, dword [esi]
and ecx, 0xfffffffb
mov dword [esi + 0x18], ecx
mov ecx, esi
push 0
call dword [eax + 0x5c]
test byte [esi + 0x18], 0x80
je 0x100525c4
mov ecx, dword [esi + 0x3c]
test ecx, ecx
je 0x100525c4
mov ecx, dword [ecx]
lea eax, [esi + 4]
push 0
push eax
call fcn.100574b0
mov dword [ebx + 0x5c], 0
push ecx
mov ecx, dword [edi + 4]
call fcn.100521f0
pop esi
pop ebx
pop edi
ret 8
mov ecx, dword [edi + 4]
pop edi
mov dword [esp + 4], edx
mov eax, dword [ecx]
jmp dword [eax + 0x34]

Function at 0x100565f0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ecx
push dword [0x1010fc58]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x1005663a
push 8
call fcn.1008aaf7
mov dword [esp + 4], eax
add esp, 4
mov dword [esp], eax
mov dword [eax], 0
mov dword [eax + 4], 0
lea eax, [esp]
push eax
call fcn.10056b70
push dword [esp]
push dword [0x1010fc58]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [esp]
pop ecx
ret
Function at 0x10059940
Capabilities:
Set global application hook

Disassembly:
push esi
mov esi, ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x10059983
mov eax, dword [esp + 0x10]
test eax, eax
jle 0x100599fc
mov ecx, dword [esp + 0x14]
test ecx, ecx
jle 0x100599fc
push 0x50
push ecx
push eax
push dword [esp + 0x18]
push dword [esp + 0x18]
push 0xffffffffffffffff
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
pop esi
ret 0x10
cmp dword [0x1010fb2c], 0
jne 0x100599fc
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x2c]
mov ecx, dword [esp + 0x10]
test ecx, ecx
jle 0x100599b1
mov eax, dword [esp + 0x14]
test eax, eax
jle 0x100599b1
push 0x50
push eax
push ecx
push dword [esp + 0x18]
push dword [esp + 0x18]
jmp 0x100599bb
push 0x53
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 1
push 0
mov ecx, esi
call fcn.100574b0
cmp dword [esi + 0x88], 0
mov dword [0x1010fb2c], esi
jne 0x100599fc
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0
push 0x100598b0
push 3
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [esi + 0x88], eax
pop esi
ret 0x10

Function at 0x1005a180
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push edi
xor edi, edi
mov esi, ecx
cmp dword [esp + 0x14], 1
jb 0x1005a271
mov ecx, dword [esi]
test ecx, ecx
je 0x1005a19f
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi], edi
mov ecx, dword [0x1011038c]
test ecx, ecx
jne 0x1005a1b8
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ecx, eax
mov dword [0x1011038c], ecx
movzx eax, word [esp + 0xc]
push ebp
push str.IMAGE
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebp, eax
test ebp, ebp
jne 0x1005a1d7
pop ebp
pop edi
pop esi
ret 0xc
push ebx
push ebp
push dword [0x1011038c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x1005a1fb
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebx
pop ebp
pop edi
xor eax, eax
pop esi
ret 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x1005a21c
push ebx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebx
pop ebp
mov eax, edi
pop edi
pop esi
ret 0xc
push ebp
push dword [0x1011038c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x14]
mov edx, eax
call fcn.10059fd0
mov dword [esi], eax
test eax, eax
je 0x1005a261
mov ecx, eax
call fcn.1004f8a0
mov ecx, dword [esi]
mov dword [esi + 0x10], eax
call fcn.1004f8d0
mov dword [esi + 0x14], eax
mov edi, 1
mov eax, dword [esp + 0x1c]
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebx
pop ebp
mov eax, edi
pop edi
pop esi
ret 0xc
pop edi
xor eax, eax
pop esi
ret 0xc
Function at 0x1005bba0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100c1b48
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
push str.QQPCDownload.dll
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x100f7434
mov edi, eax
push 0x100f39fc
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
jne 0x1005bbf9
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1005bbe4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x1005bbe4
push ebx
push edi
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esi + 0xc], eax
test eax, eax
je 0x1005bbe4
xorps xmm0, xmm0
mov dword [ebp - 0x20], vtable.minilib::CMemFile.0
movups xmmword [ebp - 0x1c], xmm0
push eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x20]
push dword [esi + 8]
call fcn.1005cef0
mov ecx, dword [esi + 0x10]
lea eax, [ebp - 0x20]
push eax
call fcn.1005b980
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [esi + 0x14], 1
call fcn.1005ce20
mov ecx, dword [ebp - 0xc]
mov eax, 1
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x1005ca20
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x40
push ebx
mov ebx, edx
mov eax, ecx
mov dword [esp + 0xc], eax
test ebx, ebx
jne 0x1005ca37
xor eax, eax
pop ebx
add esp, 0x40
ret
push edi
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, eax
test edi, edi
jne 0x1005ca4b
pop edi
pop ebx
add esp, 0x40
ret
mov eax, dword [esp + 0x58]
xorps xmm0, xmm0
push ebp
mov ebp, dword [esp + 0x58]
push 0
movups xmmword [esp + 0x28], xmm0
push 0
mov dword [esp + 0x30], eax
lea eax, [esp + 0x18]
push eax
push 0
lea eax, [esp + 0x30]
movq qword [esp + 0x54], xmm0
push eax
push edi
movups xmmword [esp + 0x4c], xmm0
mov dword [esp + 0x38], 0x28
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x44], 0x200001
mov dword [esp + 0x48], 0
mov dword [esp + 0x28], 0
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x1005cabe
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
pop ebp
pop edi
xor eax, eax
pop ebx
add esp, 0x40
ret
push esi
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x60]
mov esi, ebp
imul esi, edx
mov dword [esp + 0x1c], eax
sub esi, 1
mov ecx, esi
js 0x1005caf0
nop dword [eax + eax]
mov eax, dword [esp + 0x14]
mov dword [eax + ecx*4], 0x1000001
sub ecx, 1
jns 0x1005cae0
push 3
push 0
push 0
push edx
push ebp
push ebx
push 0
push 0
push edi
call dword [sym.imp.USER32.dll_DrawIconEx]
test esi, esi
js 0x1005cb47
nop dword [eax + eax]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + esi*4]
cmp ecx, 0x1000001
jne 0x1005cb28
mov dword [eax + esi*4], 0
jmp 0x1005cb42
cmp ecx, 1
jne 0x1005cb36
mov dword [eax + esi*4], 0
jmp 0x1005cb42
cmp byte [eax + esi*4 + 3], 0
jne 0x1005cb42
mov byte [eax + esi*4 + 3], 0xff
sub esi, 1
jns 0x1005cb10
mov eax, dword [esp + 0x60]
mov dword [esp + 0x10], 0x1ff0000
push dword [esp + 0x10]
push eax
push ebp
push 0
push 0
push edi
push eax
push ebp
push dword [esp + 0x78]
push dword [esp + 0x78]
push dword [esp + 0x40]
call dword [sym.imp.MSIMG32.dll_AlphaBlend]
push dword [esp + 0x1c]
mov esi, eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [esp + 0x20]
call dword [sym.imp.GDI32.dll_DeleteObject]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, esi
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x40
ret
Function at 0x1006a068
Capabilities:
Check if file exists
Create directory
Query environment variable
Query or enumerate registry value

Disassembly:
push 0x21c
mov eax, 0x100c1fe4
call fcn.1008b481
mov dword [ebp - 0x228], 0x10110854
xor esi, esi
xor eax, eax
mov dword [ebp - 4], esi
mov dword [0x10110854], 0x100f793c
mov dword [0x10110874], 7
mov dword [0x10110870], esi
mov word [0x10110860], ax
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x218]
inc ebx
mov byte [ebp - 4], bl
push esi
push eax
mov dword [0x10110858], esi
mov dword [0x1011085c], esi
call fcn.1008dc90
add esp, 0xc
mov dword [ebp - 0x21c], esi
push 4
pop eax
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x224]
push eax
push str.EnableLogToView
push str.SOFTWARETencentQMDownload
push closesocket
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x1006a125
mov eax, dword [0x10110858]
cmp dword [ebp - 0x21c], ebx
cmove eax, ebx
mov dword [0x10110858], eax
push 0x103
lea eax, [ebp - 0x218]
push eax
push str._APPDATA_TencentQMDownload_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x1006a160
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1006a160
push esi
lea eax, [ebp - 0x218]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
lea eax, [ebp - 0x218]
push eax
call fcn.10001a48
pop ecx
push eax
lea eax, [ebp - 0x218]
mov edi, 0x10110860
push eax
mov ecx, edi
call fcn.10001ddf
mov esi, str.DownloadErrLogFile.log
push esi
call fcn.10001a48
pop ecx
push eax
push esi
mov ecx, edi
call fcn.10005760
mov eax, 0x10110854
call fcn.1008b42b
ret
Function at 0x1006a1d5
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x818
mov eax, dword [0x1010b070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x804]
push 0x800
xor ebx, ebx
mov esi, ecx
push ebx
push eax
call fcn.1008dc90
add esp, 0xc
cmp dword [esi + 8], ebx
jne 0x1006a23f
lea eax, [esi + 0xc]
cmp dword [eax + 0x14], 8
jb 0x1006a217
mov eax, dword [eax]
push ebx
push 0x20
push 2
push ebx
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 8], eax
test eax, eax
je 0x1006a328
cmp eax, 0xffffffff
je 0x1006a328
push ebx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x1006a328
cmp eax, 0x100000
ja 0x1006a328
cmp dword [esi + 4], ebx
jne 0x1006a2b8
lea eax, [ebp - 0x814]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x806]
push edi
push eax
movzx eax, word [ebp - 0x808]
push eax
movzx eax, word [ebp - 0x80a]
push eax
movzx eax, word [ebp - 0x80c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str.__5u___02u:_02u:_02u._03u_:__s
push 0x7fd
mov edi, 0x800
lea eax, [ebp - 0x804]
push edi
push eax
call fcn.1006a037
add esp, 0x28
jmp 0x1006a2df
push 0x7fd
push edi
mov edi, 0x800
lea eax, [ebp - 0x804]
push edi
push eax
call fcn.1009fe81
lea eax, [ebp - 0x804]
push eax
call fcn.1009fe90
add esp, 0x14
cmp eax, 3
jle 0x1006a328
mov word [ebp + eax - 0x804], 0xa0d
add eax, 2
mov dword [ebp - 0x818], ebx
cmp eax, edi
jae 0x1006a33b
mov byte [ebp + eax - 0x804], bl
lea eax, [ebp - 0x818]
push ebx
push eax
lea eax, [ebp - 0x804]
push eax
call fcn.1009fe90
pop ecx
push eax
lea eax, [ebp - 0x804]
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1008a777
mov esp, ebp
pop ebp
ret 4
call fcn.1008ac56
int3
Function at 0x1006bfde
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x1006bfe9
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x1006c0a5
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x100ea3a0]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x100ea3a0]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x100ea3a0]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x100ea3a0]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x100ea3a0]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x100ea3a0]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x100ea3a0]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x100ea3a0]
sub edi, 1
jne 0x1006bffe
pop edi
test esi, esi
je 0x1006c0c1
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x100ea3a0]
inc edx
sub esi, 1
jne 0x1006c0a9
not ecx
mov eax, ecx
pop esi
pop ebp
ret

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

Disassembly:
push esi
push edi
mov edi, ecx
movsx eax, dl
mov esi, dword [edi]
xor eax, esi
mov ecx, dword [edi + 8]
movzx eax, al
shr esi, 8
mov eax, dword [eax*4 + 0x100ea3a0]
xor eax, esi
mov dword [edi], eax
movzx eax, al
add eax, dword [edi + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [edi + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x100ea3a0]
mov dword [edi + 8], ecx
pop edi
pop esi
ret

Function at 0x1006c80b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, edx
push edi
mov edi, ebx
mov edx, ecx
imul edi, dword [ebp + 8]
cmp byte [esi], 0
je 0x1006c841
push 0
lea eax, [ebp + 8]
push eax
push edi
push edx
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1006c83c
mov byte [esi + 8], 1
mov eax, dword [ebp + 8]
jmp 0x1006c877
xor eax, eax
mov ecx, edi
add ecx, dword [esi + 0x28]
adc eax, dword [esi + 0x2c]
cmp eax, dword [esi + 0x24]
jl 0x1006c85d
jg 0x1006c857
cmp ecx, dword [esi + 0x20]
jbe 0x1006c85d
mov edi, dword [esi + 0x20]
sub edi, dword [esi + 0x28]
mov ecx, dword [esi + 0x1c]
add ecx, dword [esi + 0x28]
push edi
push ecx
push edx
call fcn.1008d710
add esp, 0xc
mov eax, edi
add dword [esi + 0x28], edi
adc dword [esi + 0x2c], 0
pop edi
xor edx, edx
pop esi
div ebx
pop ebx
pop ebp
ret
Function at 0x1006d478
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
push edi
cmp dword [esi], 0
jne 0x1006d505
cmp dword [esi + 4], 0xffffffff
jne 0x1006d505
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push edi
call fcn.100a0174
pop ecx
movzx eax, word [esi + eax*2 + 0x242]
cmp eax, 0x5c
je 0x1006d4d4
cmp eax, 0x2f
je 0x1006d4d4
push edi
call fcn.100a0174
pop ecx
mov ecx, 0x103
sub ecx, eax
push ecx
push 0x100d1d18
push edi
call fcn.100a024c
add esp, 0xc
lea eax, [ebp - 4]
push eax
push ecx
mov ecx, dword [ebp + 8]
call fcn.1006c6b9
pop ecx
pop ecx
test eax, eax
jne 0x1006d4ec
mov eax, dword [ebp - 4]
jmp 0x1006d50a
mov ecx, eax
call fcn.1006caae
xor ecx, ecx
mov dword [esi], eax
test eax, eax
mov edx, 0x200
cmove ecx, edx
mov eax, ecx
jmp 0x1006d50a
mov eax, 0x1000000
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x1010b070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, ecx
mov ebx, edx
test edi, edi
je 0x1006daf9
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1006daf9
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [ebx]
test ax, ax
je 0x1006dbc4
push esi
mov esi, ebx
mov ecx, ebx
cmp ax, 0x2f
je 0x1006db16
cmp ax, 0x5c
jne 0x1006db18
mov esi, ecx
add ecx, 2
movzx eax, word [ecx]
test ax, ax
jne 0x1006db0a
cmp esi, ebx
je 0x1006db60
sub esi, ebx
lea eax, [ebp - 0x414]
and esi, 0xfffffffe
push esi
push ebx
push eax
call fcn.1008d710
add esp, 0xc
cmp esi, 0x208
jae 0x1006dbd4
xor eax, eax
lea edx, [ebp - 0x414]
mov ecx, edi
mov word [ebp + esi - 0x414], ax
call fcn.1006dac7
xor eax, eax
mov esi, 0x103
mov word [ebp - 0x20c], ax
test edi, edi
je 0x1006db83
push esi
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.100957f5
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call fcn.100a0174
sub esi, eax
lea eax, [ebp - 0x20c]
push esi
push ebx
push eax
call fcn.100a024c
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop esi
cmp eax, 0xffffffff
jne 0x1006dbc4
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.1008a777
mov esp, ebp
pop ebp
ret
call fcn.1008ac56
int3
Function at 0x1006ea40
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [esi + 0x14], 0
je 0x1006ea6e
call edi
mov ecx, dword [esi + 0x14]
sub eax, ecx
cmp eax, 0x2932e00
ja 0x1006ea6e
call fcn.10074730
test eax, eax
je 0x1006ea6e
pop edi
xor eax, eax
pop esi
ret 4
call edi
lea ecx, [esi + 4]
mov dword [esi + 0x14], eax
mov eax, dword [ecx]
call dword [eax + 4]
pop edi
pop esi
ret 4

Function at 0x1006f450
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x1006f485
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x1006f475
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
push dword [esi + 8]
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [ebp - 4]
push eax
push 0
push esi
push 0x1006f4c0
push 0
push 0
call fcn.10096108
xor ecx, ecx
mov dword [esi + 4], eax
add esp, 0x18
test eax, eax
setne cl
mov eax, ecx
pop esi
mov esp, ebp
pop ebp
ret