joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410e85
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x451220]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x208
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.00429ac0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 9
push 0x448ba8
lea eax, [ebp - 0x214]
push str.___Kyabk560IfxuUtuqcuw11gz32_tqd
push eax
call fcn.00407d40
add esp, 0x10
push dword [eax]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov eax, dword [ebp - 0x214]
add eax, 0xfffffff0
call fcn.00406e8b
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x410f20
lea eax, [ebp - 0x210]
push eax
call fcn.004114b4
pop ecx
test eax, eax
je 0x410f20
mov al, 1
jmp 0x410f22
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00427527
leave
ret
Function at 0x411d15
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
push esi
cmp dword [ebp + 0xc], ebx
je 0x411e4e
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x411e4e
mov eax, dword [ebp + 8]
lea esi, [ebp - 8]
mov dword [ebp - 8], ebx
call fcn.00411bef
cmp dword [ebp - 8], ebx
je 0x411d57
push edi
push dword [ebp + 0xc]
call dword [ebp - 8]
jmp 0x411e50
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push 0x447800
mov dword [ebp - 4], ebx
call fcn.00411bb9
cmp edi, ebx
je 0x411d72
or dword [edi], 0xffffffff
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x411e4e
mov ecx, dword [eax]
push ebx
push dword [ebp + 0xc]
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x411e41
mov eax, dword [ebp - 4]
lea edx, [ebp + 0xc]
push edx
push 4
mov dword [ebp + 0xc], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x54]
push 3
pop esi
test eax, eax
je 0x411dd4
mov eax, dword [ebp + 0xc]
shl eax, 0x10
sar eax, 0x1c
cmp eax, 2
je 0x411dba
cmp eax, esi
jne 0x411dd4
xor esi, esi
inc esi
cmp edi, ebx
je 0x411dc3
mov dword [edi], esi
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x411dd0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
jmp 0x411e50
mov eax, dword [ebp - 4]
lea edx, [ebp + 0xc]
push edx
push esi
mov dword [ebp + 0xc], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x54]
test eax, eax
je 0x411e10
mov eax, dword [ebp + 0xc]
and eax, 0xf00
cmp eax, 0x300
jne 0x411e10
cmp edi, ebx
je 0x411dfe
mov dword [edi], esi
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x411e0b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
inc eax
jmp 0x411e50
mov eax, dword [ebp - 4]
lea edx, [ebp + 0xc]
push edx
push 5
mov dword [ebp + 0xc], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x54]
test eax, eax
je 0x411e41
mov eax, dword [ebp + 0xc]
and eax, 0xf0000
cmp eax, 0x30000
jne 0x411e41
cmp edi, ebx
je 0x411dfe
mov dword [edi], 4
jmp 0x411dfe
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x411e4e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
pop esi
pop ebx
leave
ret 8
Function at 0x411f41
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x4e8]
sub esp, 0x568
mov eax, dword [0x451220]
xor eax, ebp
mov dword [ebp + 0x4e4], eax
push esi
push edi
mov esi, 0x11c
push esi
lea eax, [ebp - 0x48]
mov edi, ecx
push 0
push eax
mov dword [ebp - 0x4c], edi
call fcn.00429ac0
push esi
push 0
push ebx
mov dword [ebp - 0x48], esi
call fcn.00429ac0
add esp, 0x18
push ebx
mov dword [ebx], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebx + 4], 5
jne 0x411fa4
call fcn.00411e86
test eax, eax
je 0x411fa4
and dword [edi + 4], 0
jmp 0x412063
push str.RtlGetVersion
push str.ntdll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x411fc5
lea ecx, [ebp - 0x48]
push ecx
call eax
mov edi, dword [ebx + 4]
mov eax, dword [ebp - 0x44]
imul edi, edi, 0xa
add edi, dword [ebx + 8]
imul eax, eax, 0xa
add eax, dword [ebp - 0x40]
cmp eax, edi
jle 0x411fe7
push 0x47
pop ecx
lea esi, [ebp - 0x48]
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov edi, eax
xor eax, eax
push 0x40e
push eax
mov word [ebp + 0xd4], ax
lea eax, [ebp + 0xd6]
push eax
call fcn.00429ac0
add esp, 0xc
lea esi, [ebp + 0xd4]
call fcn.00411ec6
test eax, eax
jl 0x41205c
lea eax, [ebp - 0x80]
push eax
mov eax, esi
push eax
call fcn.0041207d
test eax, eax
je 0x41205c
mov ecx, dword [ebp - 0x70]
movzx edx, word [ebp - 0x70]
shr ecx, 0x10
mov esi, ecx
imul esi, esi, 0xa
xor eax, eax
add esi, edx
inc eax
cmp edi, esi
jge 0x412053
mov dword [ebx + 4], ecx
mov ecx, dword [ebp - 0x6c]
shr ecx, 0x10
mov dword [ebx + 0xc], ecx
mov ecx, dword [ebp - 0x4c]
mov dword [ebx + 8], edx
mov dword [ecx + 4], eax
jmp 0x412066
mov ecx, dword [ebp - 0x4c]
and dword [ecx + 4], 0
jmp 0x412066
mov eax, dword [ebp - 0x4c]
and dword [eax + 4], 0
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x4e4]
pop edi
xor ecx, ebp
pop esi
call fcn.00427527
add ebp, 0x4e8
leave
ret
Function at 0x41207d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push 2
xor ebx, ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
cmp edi, ebx
je 0x4120fe
push 0x10
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
je 0x4120f5
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x4120f5
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp + 8], eax
test eax, eax
je 0x4120ee
push ebx
call fcn.00427dc9
pop ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x4120ee
push ebx
push dword [ebp + 8]
push eax
call fcn.0042a480
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor ebx, ebx
xor esi, esi
cmp dword [ebp - 4], ebx
je 0x41213b
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
push 0x4478c4
push dword [ebp - 4]
mov dword [ebp + 8], ebx
mov dword [ebp - 8], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x412132
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push 0xd
pop ecx
rep movsd dword es:[edi], dword [esi]
xor esi, esi
inc esi
push dword [ebp - 4]
call fcn.00427938
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x41262a
Capabilities:
Parse pe header

Disassembly:
push 0x24
push 0x44ee80
call fcn.00429b3c
push 0x1c
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
and dword [ebp - 4], 0
mov eax, 0x5a4d
mov edx, dword [ebp - 0x30]
cmp word [edx], ax
jne 0x412692
mov eax, dword [edx + 0x3c]
add eax, edx
cmp dword [eax], 0x4550
jne 0x412692
mov ecx, dword [eax + 0xd8]
lea esi, [ecx + edx]
cmp dword [ebp + 0xc], esi
jb 0x412692
mov eax, dword [eax + 0xdc]
add eax, ecx
add eax, edx
cmp dword [ebp + 0xc], eax
jae 0x412692
mov dword [ebp - 4], 0xfffffffe
mov al, 1
jmp 0x41269b
mov dword [ebp - 4], 0xfffffffe
xor al, al
call fcn.00429b81
ret

Function at 0x41270e
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
push esi
mov esi, dword [0x45525c]
jmp 0x41272e
lea eax, [esp + 4]
push eax
push 0x40
push 0x10000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, dword [esi + 4]
test esi, esi
jne 0x412718
pop esi
pop ecx
ret
Function at 0x41275c
Capabilities:
Allocate or change rwx memory
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
mov esi, eax
push edi
mov ebx, 0x10000
cmp esi, 0x7ff80000
jbe 0x41277f
lea eax, [esi - 0x7ff80000]
mov dword [ebp - 4], eax
jmp 0x412782
mov dword [ebp - 4], ebx
cmp esi, 0x80000000
jae 0x412795
lea eax, [esi + 0x7ff80000]
mov dword [ebp - 8], eax
jmp 0x41279c
mov dword [ebp - 8], 0xfff80000
mov eax, dword [0x455260]
mov ecx, dword [0x45525c]
test eax, eax
jne 0x4127b6
test ecx, ecx
je 0x4127cb
mov eax, ecx
mov dword [0x455260], eax
mov edx, dword [eax + 8]
test edx, edx
je 0x4127cb
cmp edx, dword [ebp - 4]
jb 0x4127cb
cmp edx, dword [ebp - 8]
jbe 0x41289c
mov eax, ecx
test ecx, ecx
jmp 0x4127ef
test eax, eax
je 0x4127ea
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x4127ea
cmp ecx, dword [ebp - 4]
jb 0x4127ea
cmp ecx, dword [ebp - 8]
jbe 0x41289c
mov eax, dword [eax + 4]
test eax, eax
mov dword [0x455260], eax
jne 0x4127d1
mov eax, esi
and eax, 0xffff
sub esi, eax
mov edi, esi
cmp esi, dword [ebp - 4]
jbe 0x41292d
lea eax, [edi - 0x70000000]
cmp eax, 0x10000000
ja 0x41281c
mov edi, 0x6fff0000
push 0x1c
lea eax, [ebp - 0x40]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41292d
cmp dword [ebp - 0x30], ebx
jne 0x41283b
cmp dword [ebp - 0x34], ebx
jae 0x41284e
mov edi, dword [ebp - 0x3c]
add edi, 0xffff0000
cmp edi, dword [ebp - 4]
ja 0x41280a
jmp 0x41292d
push 0x40
push 0x3000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x455260], eax
test eax, eax
je 0x41292d
mov ecx, dword [0x45525c]
xor edx, edx
mov dword [eax + 4], ecx
mov dword [eax], 0x52727464
mov dword [eax + 8], edx
mov dword [0x45525c], eax
lea ecx, [eax + 0xffe0]
mov esi, 0x7fd
mov dword [ecx + 0x18], edx
mov edx, ecx
sub ecx, 0x20
dec esi
jne 0x41288e
mov dword [eax + 8], edx
mov edx, dword [eax + 8]
cmp edx, dword [ebp - 4]
jb 0x412932
cmp edx, dword [ebp - 8]
ja 0x412932
mov ecx, dword [edx + 0x18]
mov dword [eax + 8], ecx
push 8
mov eax, 0xcccccccc
pop ecx
mov edi, edx
rep stosd dword es:[edi], eax
mov eax, edx
jmp 0x412934
lea eax, [esi - 0x70000000]
cmp eax, 0x10000000
ja 0x4128d9
mov esi, 0x80010000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x412932
cmp dword [ebp - 0x14], ebx
jne 0x412924
cmp dword [ebp - 0x18], ebx
jb 0x412924
movzx ecx, si
test ecx, ecx
je 0x412908
mov eax, ebx
sub eax, ecx
sub dword [ebp - 0x18], eax
add dword [ebp - 0x24], eax
mov esi, dword [ebp - 0x24]
push 0x40
push 0x3000
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x455260], eax
test eax, eax
jne 0x41286a
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x18]
lea esi, [eax + ecx]
cmp esi, dword [ebp - 8]
jb 0x4128c7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x412956
Capabilities:
Parse pe header

Disassembly:
push 0x24
push 0x44ee60
call fcn.00429b3c
push 0x1c
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4129b1
and dword [ebp - 4], 0
mov ecx, 0x5a4d
mov eax, dword [ebp - 0x30]
cmp word [eax], cx
jne 0x4129aa
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4129aa
cmp word [ecx + 0x14], 0
je 0x4129aa
mov dword [ebp - 4], 0xfffffffe
jmp 0x4129b3
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
call fcn.00429b81
ret

Function at 0x412a4b
Capabilities:
Resume thread

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x455268], eax
je 0x412a61
mov eax, 0x10dd
pop ecx
ret
push ebx
push esi
push edi
mov edi, dword [0x455278]
xor ebx, ebx
cmp edi, ebx
je 0x412aac
lea eax, [esp + 0xc]
push eax
mov eax, dword [edi + 0x10]
push dword [edi + 0x14]
movzx eax, byte [eax + 0x17]
push eax
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp dword [edi + 4], ebx
jne 0x412a9d
mov esi, dword [edi + 0x10]
cmp esi, ebx
je 0x412a9d
call fcn.00412939
mov dword [edi + 0x10], ebx
mov esi, dword [edi]
push edi
call fcn.0042751c
pop ecx
mov edi, esi
cmp esi, ebx
jne 0x412a70
mov dword [0x455278], ebx
call fcn.00412735
mov esi, dword [0x455274]
cmp esi, ebx
je 0x412ad9
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edi, dword [esi]
push esi
call fcn.0042751c
pop ecx
mov esi, edi
cmp edi, ebx
jne 0x412ac1
pop edi
pop esi
mov dword [0x455274], ebx
mov dword [0x455268], ebx
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x412d14
Capabilities:
Suspend thread

Disassembly:
push edi
mov edi, eax
mov eax, dword [0x45526c]
test eax, eax
jne 0x412d81
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp edi, eax
jne 0x412d2e
xor eax, eax
pop edi
ret
push esi
push 8
call fcn.004278d3
mov esi, eax
pop ecx
test esi, esi
jne 0x412d42
push 8
pop edi
jmp 0x412d5d
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x412d6e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call fcn.0042751c
pop ecx
and dword [0x455270], 0
mov dword [0x45526c], edi
mov eax, edi
jmp 0x412d80
mov eax, dword [0x455274]
mov dword [esi], eax
mov dword [esi + 4], edi
mov dword [0x455274], esi
xor eax, eax
pop esi
pop edi
ret

Function at 0x413367
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x451220]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push 0x104
lea eax, [ebp - 0x210]
push eax
push dword [0x455244]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x41344b
push 0x44ce24
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x210]
call fcn.004114e9
mov edi, eax
mov eax, dword [esi + 0x18]
xor ebx, ebx
cmp eax, edi
je 0x4133d2
cmp eax, ebx
je 0x4133cf
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 0x18], edi
mov eax, dword [esi + 0x18]
cmp eax, ebx
je 0x41344b
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SmartUploadCreate
push eax
call edi
push str.SmartUploadWithExtInfo
push dword [esi + 0x18]
mov dword [esi], eax
call edi
push str.SmartUploadCancel
push dword [esi + 0x18]
mov dword [esi + 4], eax
call edi
push str.SmartUploadClose
push dword [esi + 0x18]
mov dword [esi + 8], eax
call edi
push str.SmartUploadSetOption
push dword [esi + 0x18]
mov dword [esi + 0xc], eax
call edi
push str.SmartUploadGetError
push dword [esi + 0x18]
mov dword [esi + 0x10], eax
call edi
mov dword [esi + 0x14], eax
cmp dword [esi], ebx
je 0x41344b
cmp dword [esi + 4], ebx
je 0x41344b
cmp dword [esi + 8], ebx
je 0x41344b
cmp dword [esi + 0xc], ebx
je 0x41344b
cmp dword [esi + 0x10], ebx
je 0x41344b
cmp eax, ebx
je 0x41344b
xor eax, eax
inc eax
jmp 0x41344d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00427527
leave
ret
Function at 0x414021
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x958
mov eax, dword [0x451220]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x958], eax
mov esi, ecx
call fcn.004147e7
test eax, eax
jne 0x414055
call fcn.00413ab4
jmp 0x41414a
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
sar eax, 2
cmp eax, 2
jb 0x41404b
xor edi, edi
inc edi
call fcn.0040cc70
mov eax, dword [eax]
sub eax, 0x10
call fcn.0040698f
mov edi, eax
lea esi, [ebp - 0x950]
add edi, 0x10
call fcn.00413afb
xor esi, esi
push esi
push esi
push 3
push esi
push esi
push SysReAllocString
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4140b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00413ab4
pop ecx
jmp 0x414142
push esi
lea eax, [ebp - 0x954]
push eax
push 0x944
lea eax, [ebp - 0x950]
push eax
push ebx
mov dword [ebp - 0x954], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41412e
mov eax, 0x944
cmp dword [ebp - 0x954], eax
jne 0x41412e
cmp dword [ebp - 0x950], eax
je 0x4140f3
call fcn.00413ab4
jmp 0x41413b
push dword [ebp - 0x53c]
lea eax, [ebp - 0x94c]
push eax
call fcn.00413ab4
pop ecx
pop ecx
push esi
push dword [ebp - 0x958]
lea eax, [ebp - 0x950]
call fcn.00413cce
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [edi - 0x10]
call fcn.00406e8b
mov eax, esi
jmp 0x41414c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00413ab4
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [edi - 0x10]
call fcn.00406e8b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00427527
leave
ret 4
Function at 0x4143f5
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x16e0
call fcn.004339e0
mov eax, dword [0x451220]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
push eax
mov dword [ebp - 0x16c4], ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x16c0], eax
push ecx
lea eax, [ebp - 0x145c]
push eax
mov dword [ebp - 0x16b4], ecx
mov dword [ebp - 0x16b8], edx
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea eax, [ebp - 0x16ac]
push eax
lea eax, [ebp - 0x145c]
push eax
call ebx
mov dword [ebp - 0x16b0], eax
cmp eax, 0xffffffff
je 0x4144d2
test byte [ebp - 0x16ac], 0x10
jne 0x4144af
lea eax, [ebp - 0x1680]
push eax
push dword [ebp - 0x16b4]
lea eax, [ebp - 0xa34]
push eax
call edi
lea eax, [ebp - 0xa34]
push eax
lea esi, [ebp - 0x16bc]
call fcn.00406e38
mov eax, esi
push eax
mov eax, dword [ebp - 0x16b8]
call fcn.00408c29
mov eax, dword [ebp - 0x16bc]
add eax, 0xfffffff0
call fcn.00406e8b
lea eax, [ebp - 0x16ac]
push eax
push dword [ebp - 0x16b0]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x414462
push dword [ebp - 0x16b0]
call dword [sym.imp.KERNEL32.dll_FindClose]
lea esi, [ebp - 0x16dc]
call fcn.00404d28
push dword [ebp - 0x16b4]
lea eax, [ebp - 0x145c]
push 0x514
push eax
call fcn.00428a91
add esp, 0xc
push 0x44cfc4
lea eax, [ebp - 0x145c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x16ac]
push eax
lea eax, [ebp - 0x145c]
push eax
call ebx
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4145bc
test byte [ebp - 0x16ac], 0x10
je 0x41459f
lea eax, [ebp - 0x1680]
push 0x4468b8
push eax
call fcn.004281ba
pop ecx
pop ecx
test eax, eax
je 0x41459f
lea eax, [ebp - 0x1680]
push 0x4468bc
push eax
call fcn.004281ba
pop ecx
pop ecx
test eax, eax
je 0x41459f
lea eax, [ebp - 0x1680]
push eax
push dword [ebp - 0x16b4]
lea eax, [ebp - 0xa34]
push eax
call edi
lea eax, [ebp - 0xa34]
push eax
lea esi, [ebp - 0x16b0]
call fcn.00406e38
mov eax, esi
push eax
lea eax, [ebp - 0x16dc]
call fcn.00408c29
mov eax, dword [ebp - 0x16b0]
add eax, 0xfffffff0
call fcn.00406e8b
lea eax, [ebp - 0x16ac]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x414524
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x16cc]
sub eax, dword [ebp - 0x16d0]
xor edi, edi
sar eax, 2
test eax, eax
jbe 0x414609
lea esi, [ebp - 0x16dc]
call fcn.0040cc70
push dword [ebp - 0x16b8]
mov ecx, dword [ebp - 0x16c4]
push dword [ebp - 0x16c0]
push dword [eax]
call fcn.004143f5
mov eax, dword [ebp - 0x16cc]
sub eax, dword [ebp - 0x16d0]
inc edi
sar eax, 2
cmp edi, eax
jb 0x4145d1
lea esi, [ebp - 0x16dc]
call fcn.00404eaa
push dword [ebp - 0x16dc]
call fcn.0042751c
pop ecx
mov ecx, dword [ebp - 8]
pop edi
xor eax, eax
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.00427527
leave
ret 0xc
Function at 0x41493f
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x10
push esi
push edi
test eax, eax
je 0x414a5b
call fcn.00413b38
test eax, eax
je 0x414a5b
mov esi, dword [ebp + 8]
mov eax, esi
call fcn.0040aa98
mov eax, dword [ebx + 0x10]
sub eax, dword [ebx + 0xc]
xor edi, edi
sar eax, 2
test eax, eax
jbe 0x414a56
jmp 0x414981
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
mov ecx, dword [ebp + 0xc]
sar eax, 2
cmp eax, dword [ecx + 0xd0]
jae 0x414a56
mov esi, ebx
call fcn.0040cc70
push dword [eax]
call fcn.0041717e
mov dword [ebp - 4], eax
call fcn.0040cc70
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 4]
push dword [esi]
call fcn.00413ab4
add esp, 0xc
cmp dword [ebp - 4], 0xffffffff
je 0x414a44
and dword [ebp - 0x10], 0
and dword [ebp - 0xc], 0
push 0x28
pop esi
call fcn.004056bf
test eax, eax
je 0x4149ea
lea ecx, [ebp - 0x10]
push ecx
push dword [ebp - 4]
call eax
jmp 0x4149f7
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x414a2b
cmp dword [ebp - 0xc], 0
jne 0x414a2b
mov eax, dword [ebp - 0x10]
test eax, eax
jbe 0x414a2b
mov ecx, dword [ebp + 0xc]
cmp eax, dword [ecx + 0xcc]
jb 0x414a2b
cmp eax, dword [ecx + 0xc8]
ja 0x414a2b
mov esi, ebx
call fcn.0040cc70
push eax
mov eax, dword [ebp + 8]
call fcn.00408c29
push 0x16
pop esi
call fcn.004056bf
push dword [ebp - 4]
test eax, eax
je 0x414a3e
call eax
jmp 0x414a44
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx + 0x10]
sub eax, dword [ebx + 0xc]
inc edi
sar eax, 2
cmp edi, eax
jb 0x41497e
xor eax, eax
inc eax
jmp 0x414a5d
xor eax, eax
pop edi
pop esi
leave
ret 8

Function at 0x414a84
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7a4
mov eax, dword [0x451220]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push esi
push edi
push 0x40
mov dword [ebp - 0x758], eax
xor edi, edi
lea eax, [ebp - 0x7a0]
push edi
push eax
mov dword [ebp - 0x7a4], 0x44
call fcn.00429ac0
add esp, 0xc
lea eax, [ebp - 0x7a4]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov eax, dword [ebp - 0x76c]
mov dword [ebp - 0x754], eax
test eax, eax
je 0x414b45
lea esi, [ebp - 0x74c]
call fcn.00413bc2
and dword [ebp - 0x750], edi
push edi
lea eax, [ebp - 0x750]
push eax
mov esi, 0x740
push esi
lea eax, [ebp - 0x74c]
push eax
push dword [ebp - 0x76c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, eax
test edi, edi
je 0x414b39
cmp dword [ebp - 0x750], esi
jne 0x414b39
cmp dword [ebp - 0x74c], esi
jb 0x414b39
lea eax, [ebp - 0x74c]
push eax
push dword [ebp - 0x758]
call fcn.00414b57
mov edi, eax
push dword [ebp - 0x754]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00427527
leave
ret 4
Function at 0x414fc6
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x380
mov eax, dword [0x451220]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
push 0x40
mov dword [ebp - 0x2fc], eax
lea eax, [ebp - 0x378]
push edi
push eax
mov dword [ebp - 0x2f0], edi
mov dword [ebp - 0x37c], 0x44
call fcn.00429ac0
add esp, 0xc
lea eax, [ebp - 0x37c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov ebx, dword [ebp - 0x344]
lea esi, [ebp - 0x314]
mov dword [ebp - 0x2f8], ebx
call fcn.00404d28
cmp ebx, edi
je 0x415138
push 0x208
lea eax, [ebp - 0x2e8]
push edi
push eax
mov dword [ebp - 0x2ec], edi
call fcn.00429ac0
add esp, 0xc
push 0xc8
lea eax, [ebp - 0xdc]
push edi
push eax
mov dword [ebp - 0xe0], edi
call fcn.00429ac0
add esp, 0xc
push edi
lea eax, [ebp - 0x2f4]
push eax
mov esi, 0x2dc
push esi
lea eax, [ebp - 0x2ec]
push eax
push dword [ebp - 0x2f8]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x2f4], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41511d
cmp dword [ebp - 0x2f4], esi
jb 0x41511d
cmp dword [ebp - 0x2ec], esi
jb 0x41511d
mov dword [ebp - 0x2f0], 1
call fcn.00413ab4
call fcn.00413ab4
lea eax, [ebp - 0x2e8]
push eax
call fcn.00413ab4
pop ecx
lea ebx, [ebp - 0x330]
call fcn.00413ad9
lea eax, [ebp - 0x2e8]
push eax
mov eax, ebx
push eax
call fcn.00406e04
lea eax, [ebp - 0xdc]
push eax
lea eax, [ebp - 0x32c]
push eax
call fcn.00406e04
mov eax, ebx
push eax
lea esi, [ebp - 0x314]
call fcn.00416168
test byte [ebp - 0x14], 1
mov edi, ebx
jne 0x415125
call fcn.00414002
xor edi, edi
jmp 0x415035
mov dword [ebp - 0x2f0], edi
jmp 0x41512a
call fcn.00414002
push dword [ebp - 0x2f8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41513d
call fcn.00413ab4
mov eax, dword [ebp - 0x304]
sub eax, dword [ebp - 0x308]
push 0x1c
cdq
pop ecx
idiv ecx
test eax, eax
jbe 0x41516c
mov ecx, dword [ebp - 0x2fc]
push 2
lea edx, [ebp - 0x314]
call fcn.0041345b
mov dword [ebp - 0x2f0], eax
lea esi, [ebp - 0x314]
call fcn.0041612e
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x2f0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00427527
leave
ret 4