joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402430
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x148
mov eax, dword [0x468060]
xor eax, esp
mov dword [esp + 0x144], eax
mov eax, dword [esp + 0x150]
push ebx
push ebp
mov ebp, dword [esp + 0x154]
push esi
push edi
push 0x118
lea ecx, [esp + 0x40]
push 0
push ecx
mov dword [esp + 0x1c], eax
call fcn.0040c3b0
add esp, 0xc
lea edx, [esp + 0x38]
push edx
mov dword [esp + 0x3c], 0x11c
xor esi, esi
xor ebx, ebx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x402497
mov esi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x40]
mov edi, dword [esp + 0x44]
push edi
push ebx
push esi
push 0x45fcac
mov edi, ebp
call fcn.00402c00
add esp, 0x10
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
pop edi
pop esi
pop ebp
pop ebx
test eax, eax
je 0x40252b
xor ecx, ecx
push str.GetNativeSystemInfo
push eax
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4024ff
lea ecx, [esp + 4]
push ecx
call eax
jmp 0x40250a
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 4]
mov ecx, 9
cmp cx, ax
je 0x402522
mov edx, 6
cmp dx, ax
jne 0x40252b
mov eax, dword [esp]
mov dword [eax], 1
mov ecx, dword [esp + 0x144]
xor ecx, esp
call fcn.0040b009
add esp, 0x148
ret

Function at 0x402dc0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402dd7
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402e08
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x402e04
cmp esi, eax
jae 0x402e08
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x402df4
cmp esi, eax
jb 0x402e0e
pop esi
pop edi
xor eax, eax
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x402ee0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [edi]
lea ecx, [esp]
push ecx
mov ecx, dword [esp + 0xc]
push esi
add eax, eax
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x18]
push 0
mov dword [edi], 0
mov edx, dword [ecx]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x402f4e
mov eax, dword [esp + 0xc]
cmp eax, 1
je 0x402f1f
cmp eax, 2
jne 0x402f3a
mov eax, dword [esp]
test esi, esi
je 0x402f48
test eax, eax
je 0x402f43
test al, 1
jne 0x402f3a
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x402f48
mov eax, 0xd
pop ecx
ret 8
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop ecx
ret 8
Function at 0x402fa0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x80c
mov eax, dword [0x468060]
xor eax, esp
mov dword [esp + 0x808], eax
push 0x800
lea eax, [esp + 0xc]
push 0
push eax
mov dword [esp + 0xc], 0
call fcn.0040c3b0
add esp, 0xc
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 8]
push eax
push 0x45fd2c
push str.SOFTWARE_safepage
push reloc.WS2_32.dll_bind
mov dword [esp + 0x1c], 0x400
mov dword [esp + 0x18], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
push esi
lea ecx, [esp + 0xc]
test eax, eax
je 0x403012
mov ecx, 0x45fcf0
call fcn.00402540
mov ecx, dword [esp + 0x808]
xor ecx, esp
mov eax, esi
call fcn.0040b009
add esp, 0x80c
ret
Function at 0x404260
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x454f26
mov eax, dword fs:[0]
push eax
sub esp, 0x850
mov eax, dword [0x468060]
xor eax, esp
mov dword [esp + 0x848], eax
push ebx
push esi
push edi
mov eax, dword [0x468060]
xor eax, esp
push eax
lea eax, [esp + 0x860]
mov dword fs:[0], eax
lea eax, [esp + 0x14]
push eax
mov esi, ecx
call fcn.0040bcee
add esp, 4
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
push eax
push 0x45fd24
push str.SOFTWARE_safepage
mov edi, 4
xor ebx, ebx
push reloc.WS2_32.dll_bind
mov dword [esp + 0x30], ebx
mov dword [esp + 0x4c], edi
mov dword [esp + 0x28], edi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp eax, ebx
mov eax, dword [esp + 0x14]
jne 0x404306
mov ecx, dword [esp + 0x18]
cmp ecx, ebx
jle 0x404306
mov edx, eax
sub edx, ecx
cmp edx, 0x3840
jl 0x404436
push edi
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
push edi
push 0x45fd24
push str.SOFTWARE_safepage
push reloc.WS2_32.dll_bind
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
push 0x800
lea ecx, [esp + 0x58]
push ebx
push ecx
mov dword [esp + 0x874], ebx
call fcn.0040c3b0
mov edx, dword [esi]
mov eax, dword [0x470454]
add esp, 0xc
push edx
push eax
push str._ht_up_durl_s
mov ecx, 0x800
lea edi, [esp + 0x60]
call fcn.00402e40
lea ecx, [esp + 0x44]
add esp, 0xc
push ecx
mov ecx, edi
call fcn.00402160
add esp, 4
lea edx, [esp + 0x1c]
push edx
call fcn.00404660
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x86c], 1
call fcn.00403bd0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
add esp, 4
mov edi, eax
cmp ecx, eax
jbe 0x4043bc
call fcn.0040be99
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov esi, ecx
cmp ecx, eax
jbe 0x4043c7
call fcn.0040be99
cmp esi, edi
je 0x4043e0
jmp 0x4043d0
push esi
call fcn.00403f60
add esi, 0x38
add esp, 4
cmp esi, edi
jne 0x4043d0
call fcn.00405dd0
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x404409
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x2c]
push ecx
push edx
call fcn.00405030
mov eax, dword [esp + 0x30]
push eax
call fcn.0040affe
add esp, 0xc
mov ecx, dword [esp + 0x1c]
push ecx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call fcn.0040affe
add esp, 4
cmp dword [esp + 0x50], 0x10
jb 0x404436
mov edx, dword [esp + 0x3c]
push edx
call fcn.0040affe
add esp, 4
mov ecx, dword [esp + 0x860]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x848]
xor ecx, esp
call fcn.0040b009
mov esp, ebp
pop ebp
ret
Function at 0x4058b0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x454b8b
mov eax, dword fs:[0]
push eax
sub esp, 0x41c
mov eax, dword [0x468060]
xor eax, esp
mov dword [esp + 0x418], eax
push ebx
push ebp
push esi
mov eax, dword [0x468060]
xor eax, esp
push eax
lea eax, [esp + 0x42c]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], 0
test edi, edi
jne 0x40591c
mov eax, dword [0x46cbcc]
mov edx, dword [eax + 0xc]
mov ecx, 0x46cbcc
call edx
add eax, 0x10
mov dword [ebx], eax
mov esi, ebx
call fcn.00402a90
jmp 0x405a24
push str.urlmon.dll
mov dword [esp + 0x14], 6
xor esi, esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x405943
push str.URLDownloadToFileW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push 0x208
lea eax, [esp + 0x224]
push 0
push eax
call fcn.0040c3b0
add esp, 0xc
lea ecx, [esp + 0x220]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.laupdata
lea edx, [esp + 0x224]
push edx
mov eax, 0x208
call fcn.00403a70
test esi, esi
je 0x405a19
mov ebp, dword [sym.imp.WININET.dll_DeleteUrlCacheEntryW]
lea ebx, [esp + 0x220]
lea eax, [esp + 0x18]
sub ebx, eax
nop
push edi
call ebp
push 0x208
lea ecx, [esp + 0x1c]
push 0
push ecx
call fcn.0040c3b0
add esp, 0xc
mov edx, 0x104
lea eax, [esp + 0x18]
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x4059e0
movzx ecx, word [ebx + eax]
test cx, cx
je 0x4059e0
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x4059c0
jmp 0x4059e4
test edx, edx
jne 0x4059e7
sub eax, 2
xor edx, edx
push edx
push edx
mov word [eax], dx
lea eax, [esp + 0x20]
push eax
push edi
push edx
call esi
test eax, eax
jge 0x405a4d
push 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x10]
mov ecx, eax
dec eax
mov dword [esp + 0x10], eax
test ecx, ecx
jne 0x4059a0
mov ebx, dword [esp + 0x14]
push ebx
mov ecx, 0x45fcf0
call fcn.00402540
mov eax, ebx
mov ecx, dword [esp + 0x42c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x418]
xor ecx, esp
call fcn.0040b009
add esp, 0x428
ret
mov esi, dword [esp + 0x14]
push esi
lea ecx, [esp + 0x1c]
call fcn.00402540
mov eax, esi
jmp 0x405a26
Function at 0x405a60
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x454b58
mov eax, dword fs:[0]
push eax
push ecx
push edi
mov eax, dword [0x468060]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
lea eax, [esp + 8]
push eax
call fcn.004038b0
add esp, 4
mov dword [esp + 0x14], 0
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x405ad5
lea eax, [esp + 8]
mov edi, 0x470450
call fcn.00402610
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x405ad5
push str.upgrade
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x405ad5
call eax
mov dword [esp + 0x14], 0xffffffff
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405afd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x10
ret
Function at 0x406140
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x468060]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x232]
push ecx
mov word [ebp - 0x234], ax
call fcn.0040c3b0
mov edx, dword [str.kxetray.exe]
mov eax, dword [0x460034]
add esp, 0xc
mov dword [ebp - 0x10], edx
mov ecx, 7
mov esi, str.SOFTWAREkingsoftAntivirus
lea edi, [ebp - 0x2c]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x460038]
lea edx, [ebp - 0x238]
push edx
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x234]
push eax
mov dword [ebp - 8], ecx
lea ecx, [ebp - 0x23c]
push ecx
push str.ProgramPath
lea edx, [ebp - 0x2c]
push edx
push reloc.WS2_32.dll_bind
mov dword [ebp - 0x23c], 1
mov dword [ebp - 0x238], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x4062a0
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebp - 0x234]
push eax
call ebx
inc eax
cmp eax, 0x3fffffff
jg 0x40622f
lea esi, [eax + eax]
mov eax, esi
call fcn.004154f0
mov edi, esp
test edi, edi
je 0x40622f
push 0
push 0
push esi
push edi
push 0xffffffffffffffff
lea ecx, [ebp - 0x234]
push ecx
push 0
push 3
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, eax
neg esi
sbb esi, esi
and esi, edi
jmp 0x406231
xor esi, esi
lea edx, [ebp - 0x234]
push edx
call ebx
inc eax
cmp eax, 0x3fffffff
jg 0x406276
lea ebx, [eax + eax]
mov eax, ebx
call fcn.004154f0
mov edi, esp
test edi, edi
je 0x406276
push 0
push 0
push ebx
push edi
push 0xffffffffffffffff
lea eax, [ebp - 0x234]
push eax
push 0
push 3
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, edi
jmp 0x406278
xor eax, eax
lea ecx, [ebp - 0x10]
push ecx
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
test eax, eax
je 0x4062a0
lea edx, [ebp - 0x234]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4062a0
mov eax, 1
jmp 0x4062a2
xor eax, eax
lea esp, [ebp - 0x248]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b009
mov esp, ebp
pop ebp
ret
Function at 0x4062c0
Capabilities:
Check if file exists
Get common file path
Get program files directory

Disassembly:
sub esp, 0x35c
mov eax, dword [0x468060]
xor eax, esp
mov dword [esp + 0x358], eax
push 0x103
lea eax, [esp + 0x259]
push 0
push eax
mov byte [esp + 0x260], 0
call fcn.0040c3b0
push 0x103
lea ecx, [esp + 0x5d]
push 0
push ecx
mov byte [esp + 0x64], 0
call fcn.0040c3b0
push 0x103
lea edx, [esp + 0x16d]
push 0
push edx
mov byte [esp + 0x174], 0
call fcn.0040c3b0
add esp, 0x24
push 0
push 0x26
lea eax, [esp + 0x25c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x406352
mov ecx, dword [esp + 0x358]
xor ecx, esp
call fcn.0040b009
add esp, 0x35c
ret
mov edx, dword [0x460034]
mov eax, dword [0x460038]
push ebp
push esi
push edi
mov ecx, 7
mov esi, str.kingsoftkingsoft_antivirus
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
mov ecx, 9
mov esi, str.KingsoftKingsoft_Internet_Security
lea edi, [esp + 0x34]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [str.kxetray.exe]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], eax
lea eax, [esp + 0x260]
mov edx, 0x104
lea ecx, [esp + 0x58]
call fcn.00405fb0
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x5c]
push edx
call esi
mov edi, dword [sym.imp.SHLWAPI.dll_PathCombineA]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x5c]
push ecx
lea edx, [esp + 0x164]
push edx
call edi
mov ebp, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
lea eax, [esp + 0x15c]
push eax
call ebp
test eax, eax
je 0x406404
pop edi
pop esi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x358]
xor ecx, esp
call fcn.0040b009
add esp, 0x35c
ret
push 0x104
lea ecx, [esp + 0x160]
push 0
push ecx
call fcn.0040c3b0
push 0x104
lea edx, [esp + 0x68]
push 0
push edx
call fcn.0040c3b0
add esp, 0x18
lea eax, [esp + 0x260]
mov edx, 0x104
lea ecx, [esp + 0x58]
call fcn.00405fb0
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x5c]
push ecx
call esi
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x164]
push ecx
call edi
lea edx, [esp + 0x15c]
push edx
call ebp
mov ecx, dword [esp + 0x364]
pop edi
neg eax
pop esi
sbb eax, eax
pop ebp
xor ecx, esp
neg eax
call fcn.0040b009
add esp, 0x35c
ret
Function at 0x406490
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
sub esp, 0x168
mov eax, dword [0x468060]
xor eax, esp
mov dword [esp + 0x164], eax
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_SHGetValueA]
push esi
push edi
mov ecx, 6
mov esi, str.SoftwareTencentQQPCMgr
lea edi, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x70]
push ecx
lea edx, [esp + 0x18]
push edx
push str.ExeString
lea eax, [esp + 0x24]
push eax
push reloc.WS2_32.dll_bind
mov dword [esp + 0x28], 1
mov dword [esp + 0x24], 0x104
movsb byte es:[edi], byte [esi]
call ebx
test eax, eax
jne 0x40651e
lea ecx, [esp + 0x6c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40651e
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x164]
xor ecx, esp
call fcn.0040b009
add esp, 0x168
ret
lea edx, [esp + 0xc]
push edx
mov ecx, 0xf
mov esi, str.CLSID4DA01382_D7BB_450E_ACE4_FB3E21206402InprocServer32
lea edi, [esp + 0x34]
lea eax, [esp + 0x70]
push eax
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x18]
push ecx
push 0x45fbd1
lea edx, [esp + 0x40]
push edx
push closesocket
mov dword [esp + 0x28], 1
mov dword [esp + 0x24], 0x104
call ebx
test eax, eax
jne 0x406571
lea eax, [esp + 0x6c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x406501
mov ecx, dword [esp + 0x170]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0040b009
add esp, 0x168
ret
Function at 0x406590
Capabilities:
Check if file exists
Enumerate files on windows
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8b4
mov eax, dword [0x468060]
xor eax, esp
mov dword [esp + 0x8b0], eax
push ebx
push esi
push edi
push 0
push 0x26
lea eax, [esp + 0x2a8]
push eax
push 0
mov dword [esp + 0x1c], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x4065e2
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x8b0]
xor ecx, esp
call fcn.0040b009
mov esp, ebp
pop ebp
ret
mov ecx, 8
mov esi, str.TencentQQPCMgr
lea edi, [esp + 0x280]
rep movsd dword es:[edi], dword [esi]
mov ecx, 6
mov esi, str.QQPCTray.exe
lea edi, [esp + 0x264]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x280]
push ecx
lea edx, [esp + 0x2a4]
movsw word es:[edi], word [esi]
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push edx
call edi
mov ebx, dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0x460128
lea eax, [esp + 0x2a4]
push eax
lea ecx, [esp + 0x6b8]
push ecx
call ebx
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x6b4]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4066e3
lea ecx, [ecx]
test byte [esp + 0x10], 0x10
je 0x4066c2
cmp word [esp + 0x3c], 0x2e
jne 0x406687
mov ax, word [esp + 0x3e]
test ax, ax
je 0x4066c2
cmp ax, 0x2e
jne 0x406687
cmp word [esp + 0x40], 0
je 0x4066c2
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x2a4]
push edx
lea eax, [esp + 0x4b0]
push eax
call ebx
lea ecx, [esp + 0x264]
push ecx
lea edx, [esp + 0x4ac]
push edx
call edi
lea eax, [esp + 0x4a8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4066d4
lea ecx, [esp + 0x10]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x406660
jmp 0x4066dc
mov dword [esp + 0xc], 1
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x8bc]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040b009
mov esp, ebp
pop ebp
ret
Function at 0x408470
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x408477
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x408554
mov esi, edx
shr esi, 3
push edi
lea esp, [esp]
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x461b30]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x461b30]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x461b30]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x461b30]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x461b30]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x461b30]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x461b30]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x461b30]
inc ecx
sub edx, 8
sub esi, 1
jne 0x408490
pop edi
test edx, edx
je 0x40857b
jmp 0x408560
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x461b30]
inc ecx
sub edx, 1
jne 0x408560
not eax
pop esi
ret

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

Disassembly:
mov eax, dword [edx]
movsx ecx, cl
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x461b30]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x461b30]
mov dword [edx + 8], ecx
ret

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

Disassembly:
mov ecx, dword [esi + 8]
push ebx
mov edx, ecx
and edx, 0xfffd
or edx, 2
mov ebx, edx
xor ebx, 1
imul ebx, edx
mov edx, dword [esi]
shr ebx, 8
push edi
xor al, bl
movsx edi, al
xor edi, edx
shr edx, 8
and edi, 0xff
mov ebx, dword [edi*4 + 0x461b30]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov dword [esi], ebx
imul edx, edx, 0x8088405
inc edx
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [edx*4 + 0x461b30]
pop edi
mov dword [esi + 8], ecx
pop ebx
ret

Function at 0x408d80
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ebx
imul esi, dword [esp + 8]
cmp byte [edi], 0
je 0x408db2
mov ecx, dword [edi + 4]
push 0
lea eax, [esp + 0xc]
push eax
push esi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x408da8
mov byte [edi + 8], 1
mov eax, dword [esp + 8]
xor edx, edx
div ebx
pop esi
ret
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x18]
push ebp
lea ebp, [ecx + esi]
cmp ebp, eax
pop ebp
jbe 0x408dc5
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x14]
push esi
add eax, ecx
push eax
push edx
call fcn.0040df50
add dword [edi + 0x1c], esi
mov eax, esi
add esp, 0xc
xor edx, edx
div ebx
pop esi
ret
Function at 0x408de0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
cmp byte [esi], 0
push edi
mov edi, 1
je 0x408e13
mov edx, dword [esi + 4]
push 0
lea eax, [esp + 0xc]
push eax
push edi
lea ecx, [esp + 0x13]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x408e0d
mov byte [esi + 8], 1
mov edi, dword [esp + 8]
jmp 0x408e3f
mov eax, dword [esi + 0x18]
push ebx
mov ebx, dword [esi + 0x1c]
lea ecx, [ebx + 1]
cmp ecx, eax
jbe 0x408e25
sub eax, ebx
mov edi, eax
mov edx, dword [esi + 0x14]
push edi
add edx, ebx
push edx
lea eax, [esp + 0x13]
push eax
call fcn.0040df50
add esp, 0xc
add ebx, edi
mov dword [esi + 0x1c], ebx
pop ebx
cmp edi, 1
pop edi
jne 0x408e56
movzx ecx, byte [esp + 3]
mov edx, dword [esp + 0xc]
mov dword [edx], ecx
xor eax, eax
add esp, 8
ret
cmp byte [esi], 0
je 0x408e50
cmp byte [esi + 8], 0
je 0x408e50
or eax, 0xffffffff
add esp, 8
ret