joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4055f6
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.004058b4
test bl, 8
mov dword [ebp - 0xc], eax
je 0x405635
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x423788], eax
jmp 0x4057bf
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x40564f
test eax, eax
je 0x40576d
test bl, 2
je 0x40576d
mov esi, 0x420d00
push edi
push esi
call fcn.00405d36
cmp dword [ebp + 8], 0
je 0x40566e
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x405674
push edi
call fcn.0040580d
cmp byte [edi], 0
jne 0x405682
cmp byte [0x420d00], 0x5c
jne 0x40568d
push 0x409014
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x14c]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x405763
lea eax, [ebp - 0x120]
push 0x3f
push eax
lea esi, [ebp - 0x120]
call fcn.004057f1
cmp byte [eax], 0
je 0x4056d3
cmp byte [ebp - 0x1c], 0
je 0x4056d3
lea esi, [ebp - 0x1c]
cmp byte [esi], 0x2e
jne 0x4056e9
mov al, byte [esi + 1]
test al, al
je 0x405742
cmp al, 0x2e
jne 0x4056e9
cmp byte [esi + 2], 0
je 0x405742
push esi
push ebx
call fcn.00405d36
test byte [ebp - 0x14c], 0x10
je 0x40570e
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405742
push dword [ebp + 0xc]
push edi
call fcn.004055f6
jmp 0x405742
push dword [ebp - 4]
push edi
call fcn.004055ae
test eax, eax
jne 0x40573a
cmp dword [ebp - 4], eax
je 0x405732
push edi
push 0xfffffffffffffff1
call fcn.0040501f
push 0
push edi
call fcn.00405bea
jmp 0x405742
inc dword [0x423788]
jmp 0x405742
push edi
push 0xfffffffffffffff2
call fcn.0040501f
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4056b1
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x40576d
and byte [ebx - 1], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x4057bf
cmp dword [ebp - 0xc], esi
jne 0x405781
inc dword [0x423788]
jmp 0x4057bf
push edi
call fcn.0040603a
test eax, eax
je 0x4057bf
push edi
call fcn.004057c6
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.004055ae
test eax, eax
jne 0x4057b7
cmp dword [ebp - 4], esi
je 0x405779
push edi
push 0xfffffffffffffff1
call fcn.0040501f
push esi
push edi
call fcn.00405bea
jmp 0x4057bf
push edi
push 0xffffffffffffffe5
call fcn.0040501f
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40d04e
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54dc3e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
mov dword [ebp - 0x5c], ecx
call dword [sym.imp.DataMgr.dll_class_CDataMgr____cdecl_gf_GetDataMgr_void_]
mov dword [ebp - 0x10], eax
call dword [sym.imp.DataMgr.dll_class_CFrameWnd____cdecl_gf_GetMainFrame_void_]
mov ecx, eax
call fcn.0040f180
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40d1ea
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x40d1e4
push 0x19000
lea ecx, [ebp - 0x44]
call sub.MFC42u.DLL_CMemFile::CMemFile
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
call dword [sym.imp.DataMgr.dll_public:_int___thiscall_CDataMgr::GetPickCount_void_const]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
shl eax, 2
push eax
call sub.MFC42u.DLL_operatornew
add esp, 4
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], 0
jmp 0x40d0e9
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x14]
jge 0x40d109
mov ecx, dword [ebp - 0x1c]
push ecx
mov ecx, dword [ebp - 0x10]
call dword [sym.imp.DataMgr.dll_public:_class_CEntity____thiscall_CDataMgr::GetPickEntity_int_const]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
mov dword [ecx + edx*4], eax
jmp 0x40d0e0
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x18]
push eax
lea ecx, [ebp - 0x44]
push ecx
call dword [sym.imp.DataMgr.dll_int___cdecl_ExportEzdFile_class_CFile___class_CEntity____int_]
add esp, 0xc
test eax, eax
jne 0x40d1c3
lea ecx, [ebp - 0x44]
call sub.MFC42u.DLL_CFile::GetLength
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
jbe 0x40d1c3
mov edx, dword [ebp - 0x48]
add edx, 1
push edx
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
je 0x40d1ac
mov eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
je 0x40d191
push 0
push 0
lea ecx, [ebp - 0x44]
call sub.MFC42u.DLL_CMemFile::Seek
mov ecx, dword [ebp - 0x48]
push ecx
mov edx, dword [ebp - 0x50]
push edx
lea ecx, [ebp - 0x44]
call fcn.0040f330
mov eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x40d1ac
mov ecx, dword [ebp - 0x4c]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edx, dword [ebp - 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [ebp - 0x4c], 0
cmp dword [ebp - 0x4c], 0
je 0x40d1c3
mov eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.DataMgr.dll_unsigned_int___cdecl_gf_GetClipboardFormat_void_]
push eax
call dword [sym.imp.USER32.dll_SetClipboardData]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x58], ecx
mov edx, dword [ebp - 0x58]
push edx
call sub.MFC42u.DLL_operatordelete
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.0054833a
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x46aaee
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x551f95
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
mov dword [ebp - 0x40], ecx
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x40]
call fcn.0046a520
mov ecx, dword [ebp - 0x40]
cmp dword [ecx], 0
je 0x46ab45
push 0x14
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push 0x10
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
lea ecx, [ebp - 0x20]
call fcn.00410090
push eax
mov ecx, dword [ebp + 8]
call sub.MFC42u.DLL_CDC::Draw3dRect
jmp 0x46ab71
mov edx, dword [ebp - 0x40]
cmp dword [edx + 4], 0
je 0x46ab71
push 0x10
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push 0x14
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
lea ecx, [ebp - 0x20]
call fcn.00410090
push eax
mov ecx, dword [ebp + 8]
call sub.MFC42u.DLL_CDC::Draw3dRect
mov ecx, dword [ebp + 8]
call fcn.0046ad90
mov dword [ebp - 0x34], eax
push 0x12
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov ecx, dword [ebp + 8]
call dword [edx + 0x38]
push 1
mov ecx, dword [ebp + 8]
call sub.MFC42u.DLL_CDC::SetBkMode
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x30]
call fcn.004506c0
mov dword [ebp - 4], 0
push 0x58
mov ecx, dword [ebp + 8]
call fcn.0046a470
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
push 0x60
push 0x3c
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov dword [ebp - 0x24], eax
push 0
push str.Marlett
mov ecx, dword [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x30]
call sub.MFC42u.DLL_CFont::CreatePointFont
lea edx, [ebp - 0x30]
push edx
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov ecx, dword [ebp + 8]
call dword [edx + 0x30]
mov dword [ebp - 0x38], eax
push 0x5a20b0
lea ecx, [ebp - 0x3c]
call sub.MFC42u.DLL_CString::CString_2
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x48], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x48]
push ecx
mov edx, dword [ebp - 0x40]
mov eax, dword [edx + 0xc]
add eax, 2
push eax
mov ecx, dword [ebp - 0x40]
mov edx, dword [ecx + 8]
add edx, 2
push edx
mov ecx, dword [ebp + 8]
call fcn.0046adb0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call sub.MFC42u.DLL_CString::CString
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov ecx, dword [ebp + 8]
call dword [edx + 0x30]
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
call sub.MFC42u.DLL_CDC::SetBkMode
mov ecx, dword [ebp - 0x34]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [ebp + 8]
call dword [eax + 0x38]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00450710
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x5099ad
Capabilities:
Log keystrokes via application hook

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55ccb9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x24]
mov dword [eax], 0x574f38
mov dword [ebp - 4], 2
mov dword [0x5be228], 0
mov ecx, dword [0x5be218]
push ecx
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov edx, dword [ebp - 0x24]
cmp dword [edx + 0x9c], 0
je 0x509ab6
mov ecx, dword [ebp - 0x24]
call fcn.005102fc
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0x98], 0
je 0x509a35
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0x98], 0
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x98]
push eax
mov ecx, dword [ebp - 0x24]
call fcn.0050d1c3
push 0
call dword [sym.imp.Lmc1.dll_class_CLmcDev____cdecl_gf_SetLmcDev_class_CLmcDev__]
add esp, 4
push ecx
mov ecx, esp
mov dword [ebp - 0x10], esp
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x9c]
push eax
push ecx
mov ecx, dword [ebp - 0x24]
call fcn.0050d115
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0x9c]
add edx, 0x10ba8
push edx
call dword [sym.imp.Lmc1.dll_int___cdecl_gf_SaveLmcCfg_struct_LmcCfg___class_CString_]
add esp, 8
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x9c]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x14], 0
je 0x509a9c
push 1
mov ecx, dword [ebp - 0x14]
call fcn.00508190
mov dword [ebp - 0x2c], eax
jmp 0x509aa3
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x9c], 0
call dword [sym.imp.Lmc1.dll_void___cdecl_lmc_CloseDriver_void_]
mov ecx, dword [ebp - 0x24]
cmp dword [ecx + 0xa0], 0
je 0x509ae7
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0xa0]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
push ecx
call sub.MFC42u.DLL_operatordelete
add esp, 4
mov edx, dword [ebp - 0x24]
mov dword [edx + 0xa0], 0
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0xa4], 0
je 0x509b18
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0xa4]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
push eax
call sub.MFC42u.DLL_operatordelete
add esp, 4
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0xa4], 0
call dword [sym.imp.Lmc1.dll_void___cdecl_gf_CloseUsbMonitor_void_]
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x24]
add ecx, 0x188
call fcn.00401e50
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x24]
add ecx, 0x180
call fcn.00401e50
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x24]
call fcn.00548802
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x528cf1
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 8]
call fcn.00528c8a
lea eax, [ebp - 4]
push eax
push 0
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x60]
push edx
push 0x528321
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x84], eax
mov edx, dword [ebp - 8]
cmp dword [edx + 0x84], 0
jne 0x528d41
push 0
push 0
push str.CreateMarkThread_Failed_
call sub.MFC42u.DLL_AfxMessageBox
mov esp, ebp
pop ebp
ret
Function at 0x54cb70
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf0
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x5bcc58]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x48], al
inc ecx
cmp ecx, 0x38
jl 0x54cb83
xor edx, edx
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x84]
lea ebp, [esp + eax*4 + 0x80]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x5bcd00]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x54cbe3
mov bl, byte [esp + ecx + 0x48]
jmp 0x54cbe7
mov bl, byte [esp + ecx + 0x2c]
mov byte [esp + eax + 0x10], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x54cbd8
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x54cc05
mov bl, byte [esp + ecx + 0x48]
jmp 0x54cc09
mov bl, byte [esp + ecx + 0x2c]
mov byte [esp + eax + 0x10], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x54cbfa
xor ecx, ecx
mov eax, 0x5bcc68
xor ebx, ebx
mov bl, byte [ecx + 0x5bcd10]
cmp byte [esp + ebx + 0x10], 0
je 0x54cc34
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x5bcd28]
cmp byte [esp + ebx + 0x10], 0
je 0x54cc4b
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x54cc1b
inc edx
cmp edx, 0x10
jl 0x54cbae
mov edx, dword [esp + 0x10c]
mov ecx, dword [esp + 0x104]
lea eax, [esp + 0x80]
push edx
push eax
push ecx
call fcn.0054ccc0
push 0x38
lea edx, [esp + 0x58]
push 0
push edx
call fcn.0054baa0
push 0x38
lea eax, [esp + 0x2c]
push 0
push eax
call fcn.0054baa0
push 0x80
lea ecx, [esp + 0xa8]
push 0
push ecx
call fcn.0054baa0
add esp, 0x30
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf0
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
pop eax
nop
nop
nop
nop
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x433072
nop
nop
nop
mov ebx, 0x40de38
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x681b3389
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x433060
nop
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x4330d2
mov ebx, 0x4304d8
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x57414b31
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x401890
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov esi, dword [esp + 0x50]
mov dword [esp + 4], 0x41a164
mov dword [esp], esi
call fcn.00403fa0
test eax, eax
je 0x401a30
mov ebx, eax
mov eax, dword [esp + 0x54]
mov dword [esp + 8], 0
mov eax, dword [eax + 4]
add eax, dword [esi + 0x1000]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.0040f880
test eax, eax
js 0x4019e8
mov eax, dword [esp + 0x54]
mov esi, dword [eax + 0xc]
mov dword [esp], esi
call sub.msvcrt.dll_malloc
mov ebp, eax
test eax, eax
je 0x401a4b
mov eax, dword [esp + 0x54]
cmp byte [eax + 0x10], 1
je 0x4019c0
xor edi, edi
mov eax, esi
or eax, edi
je 0x4019d2
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebp
jmp 0x401934
sub esi, dword [esp + 0x20]
sbb edi, dword [esp + 0x24]
add ebp, ebx
mov eax, esi
or eax, edi
je 0x401a20
xor eax, eax
mov ecx, 0x2000
mov dword [esp + 8], 1
mov ebx, eax
cmp ecx, esi
mov dword [esp], ebp
sbb ebx, edi
cmovae ecx, esi
cmovae eax, edi
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ecx
mov dword [esp + 4], eax
mov ebx, eax
call sub.msvcrt.dll_fread
test eax, eax
jne 0x401920
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x2c]
call dword [sym.imp.msvcrt.dll__errno]
mov dword [esp + 8], str.Failed_to_extract__s:_failed_to_read_data_chunk__n
mov edx, eax
mov eax, dword [esp + 0x54]
add eax, 0x12
mov dword [esp + 0xc], eax
mov eax, dword [edx]
mov dword [esp], str.fread
mov dword [esp + 4], eax
call fcn.004024f0
mov dword [esp], ebp
xor ebp, ebp
call sub.msvcrt.dll_free
jmp 0x4019d2
mov dword [esp], ebp
xor ecx, ecx
mov edx, eax
mov eax, ebx
call fcn.00401500
test eax, eax
jne 0x4019aa
mov dword [esp], ebx
call sub.msvcrt.dll_fclose
add esp, 0x3c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret
call dword [sym.imp.msvcrt.dll__errno]
mov edi, dword [esp + 0x54]
mov dword [esp + 8], str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
xor ebp, ebp
lea edx, [edi + 0x12]
mov dword [esp + 0xc], edx
mov eax, dword [eax]
mov dword [esp], str.fseek
mov dword [esp + 4], eax
call fcn.004024f0
jmp 0x4019d2
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x2c]
jmp 0x4019d2
mov eax, dword [esp + 0x54]
mov dword [esp], str.Failed_to_extract__s:_failed_to_open_archive_file__n
xor ebp, ebp
add eax, 0x12
mov dword [esp + 4], eax
call fcn.00402450
jmp 0x4019da
call dword [sym.imp.msvcrt.dll__errno]
mov edi, dword [esp + 0x54]
mov dword [esp + 0x10], esi
xor ebp, ebp
mov dword [esp + 8], str.Failed_to_extract__s:_failed_to_allocate_data_buffer___u_bytes___n
lea edx, [edi + 0x12]
mov dword [esp + 0xc], edx
mov eax, dword [eax]
mov dword [esp], str.malloc
mov dword [esp + 4], eax
call fcn.004024f0
jmp 0x4019d2
Function at 0x407af0
Capabilities:
Create directory

Disassembly:
push ebp
mov eax, 0x303c
push edi
push esi
push ebx
call fcn.0040f2e0
sub esp, eax
mov edi, dword [esp + 0x3054]
mov ebx, dword [esp + 0x3058]
mov dword [esp], edi
call sub.msvcrt.dll_strlen
mov dword [esp], ebx
mov esi, eax
call sub.msvcrt.dll_strlen
lea eax, [esi + eax + 1]
cmp eax, 0xfff
ja 0x407c18
lea esi, [esp + 0x30]
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], 0x5c
mov dword [esp + 8], str._s_c
mov dword [esp + 4], 0x1000
mov dword [esp], esi
call fcn.00407ac0
mov dword [esp + 4], 0x5c
mov dword [esp], ebx
mov edi, eax
call sub.msvcrt.dll_strchr
mov ebp, eax
mov eax, 0x1000
sub eax, edi
add edi, esi
mov dword [esp + 0x2c], eax
test ebp, ebp
jne 0x407ba1
jmp 0x407c20
lea edx, [ebp + 1]
mov dword [esp + 4], 0x5c
mov dword [esp], edx
call sub.msvcrt.dll_strchr
mov ebp, eax
test eax, eax
je 0x407c20
mov eax, ebp
mov dword [esp + 0x10], ebx
sub eax, ebx
mov dword [esp + 8], 0x41bd49
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x2c]
mov dword [esp], edi
mov dword [esp + 4], eax
call fcn.00407ac0
mov dword [esp], esi
call fcn.00403f50
test eax, eax
jne 0x407b88
lea eax, [esp + 0x1030]
mov dword [esp + 8], 0x1000
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.004094e0
mov eax, dword [esp + 0x3050]
mov eax, dword [eax + 0x301c]
mov dword [esp + 4], eax
lea eax, [esp + 0x1030]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
sub esp, 8
test eax, eax
jne 0x407b88
mov eax, 0xffffffff
jmp 0x407c22
xor eax, eax
add esp, 0x303c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x407c30
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push edi
mov eax, 0x1010
push esi
push ebx
call fcn.0040f2e0
sub esp, eax
mov eax, dword [esp + 0x1020]
mov dword [esp + 4], 0x41bd4e
mov dword [esp], eax
call fcn.00403fa0
test eax, eax
je 0x407d3e
mov ebx, eax
mov eax, dword [esp + 0x1024]
mov dword [esp + 4], 0x41bd51
mov dword [esp], eax
call fcn.00403fa0
mov esi, eax
test eax, eax
je 0x407d36
lea edi, [esp + 0x10]
jmp 0x407cd8
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x1000
mov dword [esp + 4], 1
mov dword [esp], edi
call sub.msvcrt.dll_fread
test eax, eax
je 0x407d20
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], edi
call sub.msvcrt.dll_fwrite
test eax, eax
je 0x407d08
mov dword [esp], esi
call sub.msvcrt.dll_ferror
test eax, eax
jne 0x407d08
mov dword [esp], ebx
call sub.msvcrt.dll_feof
test eax, eax
je 0x407c90
xor edi, edi
mov dword [esp], ebx
call sub.msvcrt.dll_fclose
mov dword [esp], esi
call sub.msvcrt.dll_fclose
add esp, 0x1010
mov eax, edi
pop ebx
pop esi
pop edi
ret
mov dword [esp], esi
call sub.msvcrt.dll_clearerr
mov edi, 0xffffffff
jmp 0x407ce6
mov dword [esp], ebx
call sub.msvcrt.dll_ferror
test eax, eax
je 0x407ce4
mov dword [esp], ebx
call sub.msvcrt.dll_clearerr
jmp 0x407d10
mov dword [esp], ebx
call sub.msvcrt.dll_fclose
mov edi, 0xffffffff
jmp 0x407cf6
Function at 0x407d50
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov dword [esp], 0x2000
mov esi, dword [esp + 0x58]
call sub.msvcrt.dll_malloc
mov ebx, eax
test eax, eax
je 0x407ea0
mov eax, dword [esp + 0x50]
mov dword [esp + 8], 2
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.0040f880
test eax, eax
js 0x407ea0
mov eax, dword [esp + 0x50]
xor ebp, ebp
mov dword [esp], eax
call fcn.0040f960
mov dword [esp + 0x28], esi
mov ecx, eax
mov edx, eax
mov dword [esp + 0x2c], ebp
sar ecx, 0x1f
cmp eax, esi
mov eax, ecx
sbb eax, ebp
jb 0x407ea0
mov ebp, 0x2000
xor eax, eax
mov edi, ecx
cmp edx, ebp
sbb edi, eax
cmovae ebp, edx
cmovae eax, ecx
mov ecx, edx
mov dword [esp + 0x18], ebp
mov edi, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
mov ebp, dword [esp + 0x1c]
add edi, 0xffffe000
adc ebp, 0xffffffff
sub ecx, edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], ebp
mov ebp, ecx
cmp ecx, esi
jb 0x407ea0
mov eax, dword [esp + 0x50]
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [esp], eax
call fcn.0040f880
test eax, eax
js 0x407ea0
mov eax, dword [esp + 0x50]
mov dword [esp + 8], ebp
mov dword [esp + 4], 1
mov dword [esp + 0xc], eax
mov dword [esp], ebx
call sub.msvcrt.dll_fread
cmp eax, ebp
jne 0x407ea0
sub eax, esi
lea ebp, [eax + 1]
jmp 0x407e70
mov eax, dword [esp + 0x54]
lea edi, [ebp - 1]
mov dword [esp + 8], esi
mov dword [esp + 4], eax
lea eax, [ebx + edi]
mov dword [esp], eax
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x407ec0
mov ebp, edi
test ebp, ebp
jne 0x407e50
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
add eax, 0xffffffff
adc edx, 0xffffffff
add eax, edi
adc edx, ebp
mov ecx, edx
mov edx, eax
mov eax, edi
or eax, ebp
jne 0x407dbe
lea esi, [esi]
xor esi, esi
xor edi, edi
mov dword [esp], ebx
call sub.msvcrt.dll_free
add esp, 0x3c
mov eax, esi
mov edx, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
add esi, 0xffffdfff
adc edi, 0xffffffff
add esi, ebp
adc edi, 0
jmp 0x407ea4