joyce8/EMBER2024-capa huggingface dataset:
Function at 0x459868
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45987f
add esp, 0xfffffff0
call fcn.00403658
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041edf0
mov eax, dword [0x475398]
cmp word [eax + 2], 0
jne 0x4598a7
mov eax, dword [0x475398]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045af58
mov eax, dword [0x475474]
cmp word [eax + 2], 0
jne 0x4598c1
mov eax, dword [0x475474]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045b150
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4161d8]
call fcn.00403304
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4161d8]
call fcn.00403304
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x42133c]
call fcn.004286ec
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x459a48
mov eax, dword [0x475284]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00428abc
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45b700
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x475284]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040cd88
test eax, eax
je 0x4599b6
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408f2c
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040cdb0
test eax, eax
je 0x4599ca
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404458
mov eax, dword [0x47511c]
cmp byte [eax], 0
jne 0x4599fe
mov eax, ebx
call fcn.00459b70
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.0045b8dc
mov eax, ebx
call fcn.0045c2a0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x459a3e
call fcn.004036b0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x459df0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x476bec]
cmp dword [eax + 0x30], 0
je 0x459e9a
cmp dword [ebx + 0x94], 0
jne 0x459e94
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x459d80
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x459e94
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x459e5a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x459e94
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00418820
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x459e69
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45a9fc
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x45aa31
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004042d8
jmp 0x45aa3e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040423c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45bab8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45baf9
mov eax, esi
call fcn.00442258
test al, al
je 0x45baf9
mov eax, dword [ebx + 0x84]
call fcn.00441f54
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45baf9
push 0
mov eax, dword [ebx + 0x84]
call fcn.00441f54
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x45c370
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404698
xor eax, eax
push ebp
push 0x45c427
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004044a8
mov dword [ebp - 8], eax
xor esi, esi
xor edi, edi
lea eax, [ebp - 0xc]
call fcn.004041e8
cmp esi, dword [ebp - 8]
jge 0x45c404
inc esi
mov eax, dword [ebp - 4]
mov bl, byte [eax + esi - 1]
cmp bl, 0x5c
je 0x45c3c8
cmp bl, 0x2f
jne 0x45c3ea
inc edi
cmp edi, 1
jle 0x45c3ea
mov eax, dword [ebp - 0xc]
call fcn.00408cc8
test al, al
jne 0x45c3ea
push 0
mov eax, dword [ebp - 0xc]
call fcn.004046a8
push eax
call sub.kernel32.dll_CreateDirectoryA
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.004043d0
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0xc]
call fcn.004044b0
cmp esi, dword [ebp - 8]
jl 0x45c3b6
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45c42e
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.0040420c
lea eax, [ebp - 4]
call fcn.004041e8
ret
Function at 0x45c4f8
Capabilities:
Get file size
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffebc
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, dword [ebp + 8]
xor edi, edi
xor edx, edx
mov dword [esi], edx
mov edx, dword [ebp - 8]
xor ecx, ecx
mov dword [edx], ecx
mov edx, dword [ebp - 4]
mov dword [edx], 1
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call sub.kernel32.dll_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x45c622
push 0
push ebx
call sub.kernel32.dll_GetFileSize
mov dword [esi], eax
mov eax, 0x40
cmp eax, dword [esi]
jae 0x45c61c
push 0
push 0
push 0
push ebx
call sub.kernel32.dll_SetFilePointer
push 0
lea eax, [ebp - 0xc]
push eax
push 0x40
lea eax, [ebp - 0x4c]
push eax
push ebx
call sub.kernel32.dll_ReadFile
mov eax, 0xf8
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0xc], edx
add eax, dword [ebp - 0xc]
push eax
pop eax
cmp eax, dword [esi]
jae 0x45c61c
push 0
push 0
push edx
push ebx
call sub.kernel32.dll_SetFilePointer
push 0
lea eax, [ebp - 0xc]
push eax
push 0xf8
lea eax, [ebp - 0x144]
push eax
push ebx
call sub.kernel32.dll_ReadFile
cmp word [ebp - 0x4c], 0x5a4d
jne 0x45c61c
cmp dword [ebp - 0x144], 0x4550
jne 0x45c61c
mov ax, word [ebp - 0x130]
cmp ax, 0xe0
jne 0x45c5e0
mov edx, dword [ebp - 8]
mov dword [edx], 0x20
cmp ax, 0xf0
jne 0x45c5ef
mov eax, dword [ebp - 8]
mov dword [eax], 0x40
mov eax, dword [ebp - 8]
cmp dword [eax], 0x20
je 0x45c5ff
mov eax, dword [ebp - 8]
cmp dword [eax], 0x40
jne 0x45c602
or edi, 0xffffffff
mov ax, word [ebp - 0x12e]
and ax, 0x2000
cmp ax, 0x2000
jne 0x45c61c
mov eax, dword [ebp - 4]
mov dword [eax], 2
push ebx
call sub.kernel32.dll_CloseHandle
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x46ef50
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff60
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xa0], ebx
mov dword [ebp - 0x18], ebx
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404698
mov eax, dword [ebp - 8]
call fcn.00404698
xor eax, eax
push ebp
push 0x46f18c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp - 4]
call fcn.00408cb8
test al, al
jne 0x46efcc
push 0
push 0x80
push 2
push 0
push 3
push 0x10000000
mov eax, dword [ebp - 4]
call fcn.004046a8
push eax
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
mov eax, dword [ebp - 4]
call fcn.004046a8
push eax
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 0xc], eax
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetFileSize
mov dword [ebp - 0x10], eax
push 2
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SetFilePointer
mov eax, dword [0x475418]
cmp dword [eax], 0
jne 0x46f14d
mov eax, dword [0x4751b0]
push dword [eax]
push 0x46f1a4
mov eax, dword [0x4753b8]
push dword [eax]
push 0x46f1c4
push dword [ebp - 8]
push 0x46f1d8
mov eax, dword [ebp - 0x10]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0xa0]
call fcn.0040889c
push dword [ebp - 0xa0]
lea eax, [ebp - 0x18]
mov edx, 7
call fcn.00404568
push 1
push 0x3c
mov eax, dword [ebp + 0xc]
push eax
push esi
push 0
push 0
mov eax, dword [ebp - 0x18]
call fcn.004044a8
push eax
mov eax, dword [ebp - 0x18]
call fcn.004046a8
push eax
mov eax, dword [0x475390]
mov eax, dword [eax]
call eax
mov edi, eax
cmp edi, 0x21
jae 0x46f09d
push 0x3e8
call sub.kernel32.dll_Sleep_1
jmp 0x46f00c
mov bl, byte [esi]
lea eax, [ebp - 0x59]
xor ecx, ecx
mov edx, 0x40
call fcn.00402d48
lea edx, [esi + 1]
lea eax, [ebp - 0x59]
mov ecx, 0x20
call fcn.00407074
cmp bl, 0x31
jne 0x46f12a
lea eax, [ebp - 0x9a]
xor ecx, ecx
mov edx, 0x40
call fcn.00402d48
sub edi, 0x21
lea eax, [ebp - 0x9a]
push eax
push edi
lea eax, [esi + 0x21]
push eax
mov eax, dword [0x475188]
mov eax, dword [eax]
call eax
lea edx, [ebp - 0x59]
lea eax, [ebp - 0x9a]
mov ecx, 0x20
call fcn.004084f0
test eax, eax
je 0x46f113
push 0x3e8
call sub.kernel32.dll_Sleep_1
jmp 0x46f00c
push 0
lea eax, [ebp - 0x14]
push eax
push edi
lea eax, [esi + 0x21]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_WriteFile_1
add dword [ebp - 0x10], edi
cmp bl, 0x32
jne 0x46f00c
lea edx, [ebp - 0x59]
mov eax, 0x46f1e8
mov ecx, 0x20
call fcn.004084f0
test eax, eax
jne 0x46f00c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
mov dword [eax], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46f193
lea eax, [ebp - 0xa0]
call fcn.004041e8
lea eax, [ebp - 0x18]
call fcn.004041e8
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040420c
ret
Function at 0x46f97c
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404698
xor eax, eax
push ebp
push 0x46fa52
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov ecx, 0x46fa68
mov edx, dword [ebp - 4]
call fcn.004044f4
lea eax, [ebp - 0x14c]
push eax
mov eax, dword [ebp - 8]
call fcn.004046a8
push eax
call sub.kernel32.dll_FindFirstFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x46fa31
test dword [ebp - 0x14c], 0x10
jbe 0x46fa20
cmp byte [ebp - 0x120], 0x2e
je 0x46fa20
lea eax, [ebp - 0xc]
lea edx, [ebp - 0x120]
mov ecx, 0x104
call fcn.00404458
push dword [ebp - 4]
push dword [ebp - 0xc]
push 0x46fa74
lea eax, [ebp - 8]
mov edx, 3
call fcn.00404568
mov eax, dword [esi]
mov edx, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x14c]
push eax
push ebx
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x46f9d6
push ebx
call sub.kernel32.dll_FindClose_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46fa59
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040420c
ret
Function at 0x40510b
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4d999e
call fcn.004d0500
sub esp, 0x44
mov eax, dword [0x52d320]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
mov dword [ebp - 0x20], ecx
xor esi, esi
lea ecx, [ebp + 8]
mov dword [ebp - 4], esi
call dword [0x4ea6a4]
push eax
call dword [0x4eaadc]
test eax, eax
je 0x40521e
mov dword [ebp - 0x14], esi
push esi
push esi
push 0x80
push 3
push 1
push 1
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call dword [0x4ea6a4]
push eax
lea ecx, [ebp - 0x14]
call fcn.004015ee
cmp eax, esi
je 0x405184
cmp dword [ebp - 0x14], esi
je 0x40521e
push dword [ebp - 0x14]
call dword [0x4ea2b4]
jmp 0x40521e
push ebx
xor ebx, ebx
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x48], esi
push 4
push 2
push esi
push esi
push esi
push dword [ebp - 0x14]
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 2
call fcn.00401624
cmp eax, esi
jne 0x405205
cmp dword [ebp - 0x50], esi
je 0x405205
mov ecx, dword [ebp - 0x20]
push edi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x50]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
call fcn.00404636
mov edi, dword [ebp - 0x18]
cmp edi, esi
mov ebx, eax
je 0x405204
cmp ebx, esi
je 0x4051fe
mov eax, dword [edi]
push edi
call dword [eax + 4]
mov eax, dword [ebp - 0x20]
push edi
push dword [ebp - 0x1c]
push 0x1401
push dword [eax + 4]
call dword [0x4eac70]
mov eax, dword [edi]
push edi
call dword [eax + 8]
pop edi
lea ecx, [ebp - 0x50]
call fcn.004016d1
cmp dword [ebp - 0x14], esi
je 0x40521b
push dword [ebp - 0x14]
call dword [0x4ea2b4]
mov esi, ebx
pop ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call dword [0x4ea4f8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004d0557
leave
ret 0x1c
Function at 0x405246
Capabilities:
Delete registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
lea eax, [ebp - 8]
push eax
push 0xf003f
xor ebx, ebx
push ebx
push str.SOFTWAREThunder_NetworkThunderOem_thunder_backwnd
push reloc.libexpat.dll_Ordinal_2
mov dword [ebp - 0x18], ecx
mov dword [ebp - 8], ebx
call dword [0x4ea024]
test eax, eax
jne 0x4053c7
cmp dword [ebp - 8], ebx
je 0x4053c7
push esi
mov esi, dword [0x4ea020]
push edi
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
push ebx
mov edi, str.ThunderAgent.TaskList2.Unicode
push edi
push dword [ebp - 8]
mov dword [ebp - 0xc], 3
mov dword [ebp - 4], ebx
call esi
test eax, eax
jne 0x40530c
cmp dword [ebp - 4], ebx
je 0x40530c
push dword [ebp - 4]
call fcn.004d00df
pop ecx
lea ecx, [ebp - 4]
push ecx
push eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push eax
push ebx
push edi
push dword [ebp - 8]
call esi
test eax, eax
je 0x4052da
push edi
push dword [ebp - 8]
call dword [0x4ea01c]
cmp dword [ebp - 0x10], ebx
je 0x40530c
mov edi, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x10]
mov ecx, edi
mov dword [ebp - 0x14], ebx
call fcn.00403b74
jmp 0x40538c
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
push ebx
mov edi, str.ThunderAgent.TaskList2
push edi
push dword [ebp - 8]
mov dword [ebp - 4], ebx
call esi
test eax, eax
jne 0x4053ba
cmp dword [ebp - 4], ebx
je 0x4053ba
push dword [ebp - 4]
call fcn.004d00df
pop ecx
lea ecx, [ebp - 4]
push ecx
push eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push eax
push ebx
push edi
push dword [ebp - 8]
call esi
test eax, eax
je 0x40535f
push edi
push dword [ebp - 8]
call dword [0x4ea01c]
cmp dword [ebp - 0x10], ebx
je 0x4053ba
mov edi, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x10]
mov ecx, edi
mov dword [ebp - 0x14], ebx
call fcn.00404636
push dword [ebp - 0x10]
call fcn.004d05e0
mov esi, dword [ebp - 0x14]
cmp esi, ebx
pop ecx
je 0x4053ba
mov eax, dword [esi]
push esi
call dword [eax + 4]
push esi
push dword [ebp - 0x18]
push 0x1401
push dword [edi + 4]
call dword [0x4eac70]
mov eax, dword [esi]
push esi
call dword [eax + 8]
push dword [ebp - 8]
call dword [0x4ea018]
pop edi
pop esi
jmp 0x4053cd
call dword [0x4ea2d8]
pop ebx
leave
ret
Function at 0x407d53
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4d9cc8
call fcn.004d0500
sub esp, 0x58
mov eax, dword [0x52d320]
push ebx
xor eax, ebp
push esi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x50], eax
call dword [0x4ea6a8]
mov eax, dword [0x4ea6dc]
push dword [eax]
xor ebx, ebx
push 0x5c
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], ebx
call dword [0x4ea744]
mov ecx, dword [0x4ea6dc]
cmp eax, dword [ecx]
je 0x407dab
push eax
lea ecx, [ebp - 0x48]
call dword [0x4ea740]
mov esi, dword [0x4eaadc]
push edi
call esi
cmp eax, 1
jne 0x407deb
lea ecx, [ebp - 0x48]
call dword [0x4ea6a4]
push eax
call esi
cmp eax, 1
jne 0x407deb
push dword [ebp + 0x10]
push dword [ebp - 0x50]
push edi
call dword [0x4ea36c]
cmp eax, 1
je 0x407f2e
call dword [0x4ea2d8]
jmp 0x407f2c
push ebx
lea eax, [ebp - 0x4c]
push eax
push 0x4eb6a4
push edi
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x54], ebx
call fcn.004086df
add esp, 0x10
cmp eax, ebx
jne 0x407f2c
push ebx
lea eax, [ebp - 0x54]
push eax
push 0x4eb69c
push dword [ebp - 0x50]
call fcn.004086df
add esp, 0x10
push dword [ebp - 0x4c]
mov esi, eax
cmp esi, ebx
je 0x407e37
call fcn.0040752f
pop ecx
mov ebx, esi
jmp 0x407f2e
call fcn.004074f9
cmp edx, ebx
pop ecx
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
jl 0x407f14
jg 0x407e5b
cmp eax, ebx
jb 0x407f14
push ebx
push 0x1000
lea ecx, [ebp - 0x2c]
call dword [0x4ea738]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call dword [0x4ea4e0]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x50], eax
call dword [0x4ea704]
push ebx
push eax
push dword [ebp - 0x50]
push dword [ebp - 0x4c]
call fcn.004074d1
mov edi, edx
add esp, 0x10
cmp edi, ebx
mov esi, eax
jl 0x407f08
jg 0x407ea1
cmp esi, ebx
jbe 0x407f08
push edi
push esi
push dword [ebp - 0x50]
push dword [ebp - 0x54]
call fcn.0040788b
add esp, 0x10
cmp eax, esi
jne 0x407ee3
cmp edx, edi
jne 0x407ee3
add dword [ebp - 0x5c], eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], bl
adc dword [ebp - 0x58], edx
call dword [0x4ea4dc]
mov eax, dword [ebp - 0x58]
cmp eax, dword [ebp - 0x60]
jl 0x407e5b
jg 0x407f14
mov eax, dword [ebp - 0x64]
cmp dword [ebp - 0x5c], eax
jbe 0x407e5b
jmp 0x407f14
push dword [ebp - 0x4c]
call fcn.0040752f
push dword [ebp - 0x54]
call fcn.0040752f
pop ecx
pop ecx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], bl
call dword [0x4ea4dc]
mov ebx, 0x40000003
jmp 0x407f2e
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], bl
call dword [0x4ea4dc]
push dword [ebp - 0x4c]
mov esi, dword [sym.imp.XLFSIO.dll_long_int___stdcall_XLFS_CloseFile_void__]
call esi
cmp eax, ebx
jne 0x407f2c
push dword [ebp - 0x54]
call esi
cmp eax, ebx
je 0x407f2e
mov ebx, eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call dword [0x4ea4f8]
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.004d0557
leave
ret
Function at 0x40826f
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
push edi
xor edi, edi
cmp dword [0x52edc0], edi
jne 0x40828a
mov eax, 0x40000006
jmp 0x4082ff
cmp dword [ebp + 8], edi
jne 0x408294
push 8
pop eax
jmp 0x4082ff
cmp dword [ebp + 0xc], edi
je 0x4082a0
mov eax, 0x40000001
jmp 0x4082ff
push dword [ebp + 8]
call dword [0x4eaadc]
test eax, eax
je 0x4082b4
mov eax, 0x40000002
jmp 0x4082ff
push esi
push dword [ebp + 8]
lea ecx, [ebp - 0x84]
call fcn.00401d89
mov eax, dword [eax]
push edi
push eax
call sub.minizip.dll_zipOpen
mov esi, eax
lea eax, [ebp - 0x80]
cmp dword [ebp - 0x84], eax
pop ecx
pop ecx
je 0x4082e8
push dword [ebp - 0x84]
call dword [0x4ea794]
pop ecx
cmp esi, edi
je 0x4082f9
push edi
push esi
call sub.minizip.dll_zipClose
pop ecx
pop ecx
xor eax, eax
jmp 0x4082fe
mov eax, 0x40000003
pop esi
pop edi
leave
ret

Function at 0x408639
Capabilities:
Create thread

Disassembly:
mov eax, 0x4d9ced
call fcn.004d0500
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push 1
lea eax, [esi + 0x50]
push eax
lea ecx, [ebp - 0x14]
call fcn.00407fb2
xor ebx, ebx
cmp dword [esi + 0x48], ebx
mov dword [ebp - 4], ebx
jne 0x40867e
lea eax, [esi + 0x4c]
push eax
push ebx
push esi
push 0x408504
push ebx
push ebx
call dword [0x4ea7f8]
add esp, 0x18
cmp eax, ebx
mov dword [esi + 0x48], eax
je 0x408698
push dword [ebp + 8]
lea ecx, [esi + 0x34]
mov eax, dword [ecx + 4]
push eax
call fcn.00408477
push dword [esi + 0x40]
call dword [0x4ea380]
mov bl, 1
lea ecx, [ebp - 0x14]
call fcn.004a9b58
mov ecx, dword [ebp - 0xc]
pop esi
mov al, bl
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x408a08
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4d9d01
call fcn.004d0500
sub esp, 0x14
cmp dword [0x52edc0], 0
jne 0x408a28
mov eax, 0x40000006
jmp 0x408ac2
push dword [ebp + 8]
call dword [0x4eaadc]
test eax, eax
jne 0x408a3d
push 2
pop eax
jmp 0x408ac2
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x408a53
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00408871
pop ecx
pop ecx
jmp 0x408ac2
mov ecx, dword [eax + 4]
mov eax, dword [eax]
and dword [ebp - 0x14], 0
push 0x38
mov dword [ebp - 0x20], 6
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], eax
call fcn.004d00ba
pop ecx
mov ecx, eax
mov dword [ebp - 0x10], ecx
and dword [ebp - 4], 0
test ecx, ecx
je 0x408a85
call fcn.00407627
jmp 0x408a87
xor eax, eax
or dword [ebp - 4], 0xffffffff
test eax, eax
je 0x408a96
mov eax, 0x40000005
jmp 0x408ac2
push dword [ebp + 8]
xor ecx, ecx
call dword [0x4ea730]
push dword [ebp + 0xc]
push 0x1c
pop ecx
call dword [0x4ea730]
mov ecx, dword [0x52edc0]
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x20]
push eax
call fcn.00408639
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret