joyce8/EMBER2024-capa huggingface dataset:
Function at 0x447c54
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x447c8c]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x447c6d
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x447c7c
or bl, 4
test esi, 0x20000000
je 0x447c87
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x44e334
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x44e346
add esp, 0xfffffff0
call fcn.00403540
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004195e8
mov eax, dword [0x457e84]
mov dword [eax + 4], ebx
mov dword [eax], 0x44e6d8
mov eax, dword [0x457e90]
mov dword [eax + 4], ebx
mov dword [eax], 0x44e6e4
mov eax, ebx
call fcn.0044e6f0
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x4118e0]
call fcn.00403204
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x4118e0]
call fcn.00403204
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x4118e0]
call fcn.00403204
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x4118e0]
call fcn.00403204
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x4118e0]
call fcn.00403204
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x44ab0c
push eax
push 0
push 0
mov eax, dword [0x457fd4]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41b014]
call fcn.0041c458
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41b014]
call fcn.0041c458
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41b014]
call fcn.0041c458
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0044eb10
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44e9ec
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44e9ec
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44e9ec
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44e483
call fcn.00403598
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x44e7d0
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44e97b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x44e95c
mov dl, 1
mov eax, dword [0x411cfc]
call fcn.00403204
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00403f6c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44e94b
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0043c7dc
test al, al
je 0x44e93e
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x44e98c
lea eax, [ebp - 0x254]
call fcn.00408d0c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44e93e
xor eax, eax
push ebp
push 0x44e937
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x44e9c4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44e920
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004041dc
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x44e920
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004041dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44e93e
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44e841
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.004157d8
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44e982
lea eax, [ebp - 0x260]
call fcn.00403f6c
ret

Function at 0x44f2b0
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x459bb0]
cmp byte [eax + 0xa5], 0
jne 0x44f321
cmp dword [0x459bc8], 0
jne 0x44f2e2
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x44f26c
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x459bc8], eax
cmp dword [0x459bc4], 0
jne 0x44f2fd
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x459bc4], eax
cmp dword [0x459bcc], 0
jne 0x44f321
push esp
push 0
push 0
push 0x44f210
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x459bcc], eax
pop edx
ret
Function at 0x44f418
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x44f42f
add esp, 0xfffffff0
call fcn.00403540
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004195e8
mov eax, dword [0x457fc0]
cmp word [eax + 2], 0
jne 0x44f457
mov eax, dword [0x457fc0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00450b80
mov eax, dword [0x45806c]
cmp word [eax + 2], 0
jne 0x44f471
mov eax, dword [0x45806c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00450d78
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4118e0]
call fcn.00403204
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4118e0]
call fcn.00403204
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 [0x41b7c4]
call fcn.00421448
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x44f5f8
mov eax, dword [0x457ee4]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00421818
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x451328
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x457ee4]
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.0040c348
test eax, eax
je 0x44f566
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004086ec
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c370
test eax, eax
je 0x44f57a
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.004041dc
mov eax, dword [0x457de8]
cmp byte [eax], 0
jne 0x44f5ae
mov eax, ebx
call fcn.0044f720
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.00451504
mov eax, ebx
call fcn.00451ec8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44f5ee
call fcn.00403598
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44f9a0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x459bb0]
cmp dword [eax + 0x30], 0
je 0x44fa4a
cmp dword [ebx + 0x94], 0
jne 0x44fa44
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44f930
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44fa44
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 0x44fa0a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44fa44
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.00413c48
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44fa19
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4505ac
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 0x4505e1
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.0040405c
jmp 0x4505ee
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403fc0
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4516e0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x451721
mov eax, esi
call fcn.00437dc4
test al, al
je 0x451721
mov eax, dword [ebx + 0x84]
call fcn.00437ac0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x451721
push 0
mov eax, dword [ebx + 0x84]
call fcn.00437ac0
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x4524b0
Capabilities:
Parse pe header

Disassembly:
mov eax, dword [0x457dbc]
xor edx, edx
mov dword [0x457dbc], edx
test eax, eax
je 0x4524c7
push eax
call sub.kernel32.dll_CloseHandle
ret

Function at 0x4524c8
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, eax
xor ebx, ebx
xor eax, eax
push ebp
push 0x452510
push dword fs:[eax]
mov dword fs:[eax], esp
push 2
mov edi, esi
push edi
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x452506
cmp word [edi], 0x5a4d
jne 0x452506
lea eax, [esi + 0x3c]
mov ebx, dword [eax]
add ebx, esi
cmp dword [ebx], 0x4550
je 0x452506
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45251c
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x45260c
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 4
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.kernel32.dll_CreateFileMappingA
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0xc]
mov dword [edx], eax
push 0
push 0
push 0
push 0xf001f
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_MapViewOfFile
mov edx, dword [ebp + 8]
mov edx, dword [edx + 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
cmp dword [eax], 0
setne al
pop ebp
ret

Function at 0x4526e4
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.kernel32.dll_GetFileSize
mov edx, dword [ebp + 8]
add eax, dword [edx - 0xc]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.kernel32.dll_SetFilePointer
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.kernel32.dll_SetEndOfFile
pop ebp
ret

Function at 0x4529a8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffcd8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x320], ecx
mov dword [ebp - 0x324], ecx
mov dword [ebp - 0x328], ecx
mov dword [ebp - 0x318], ecx
mov dword [ebp - 0x31c], ecx
mov dword [ebp - 0x314], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x452b49
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x452a3f
lea eax, [ebp - 0x310]
push eax
push 0x104
call sub.kernel32.dll_GetTempPathW
test eax, eax
jbe 0x452a36
lea eax, [ebp - 0x314]
lea edx, [ebp - 0x310]
mov ecx, 0x105
call fcn.00404798
mov edx, dword [ebp - 0x314]
mov eax, ebx
mov ecx, 0x452b5c
call fcn.004047e0
jmp 0x452a96
mov eax, ebx
call fcn.0040464c
jmp 0x452a96
lea eax, [ebp - 0x105]
push eax
push 0x104
call sub.kernel32.dll_GetTempPathA
test eax, eax
jbe 0x452a8f
lea eax, [ebp - 0x31c]
lea edx, [ebp - 0x105]
mov ecx, 0x105
call fcn.004041dc
mov edx, dword [ebp - 0x31c]
lea eax, [ebp - 0x318]
call fcn.004047b4
mov edx, dword [ebp - 0x318]
mov eax, ebx
mov ecx, 0x452b5c
call fcn.004047e0
jmp 0x452a96
mov eax, ebx
call fcn.0040464c
push dword [ebx]
push 0x452b64
lea eax, [ebp - 0x324]
push eax
call sub.kernel32.dll_GetCurrentProcessId
mov cl, 0x30
mov edx, 8
call fcn.004522c4
lea eax, [ebp - 0x324]
push eax
lea eax, [ebp - 0x328]
push eax
mov cl, 0x30
mov edx, 1
mov eax, esi
call fcn.004522c4
mov edx, dword [ebp - 0x328]
pop eax
call fcn.00404234
mov edx, dword [ebp - 0x324]
lea eax, [ebp - 0x320]
call fcn.004047b4
push dword [ebp - 0x320]
push 0x452b7c
mov eax, ebx
mov edx, 4
call fcn.00404844
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x452b50
lea eax, [ebp - 0x328]
mov edx, 2
call fcn.00403f90
lea eax, [ebp - 0x320]
call fcn.0040464c
lea eax, [ebp - 0x31c]
call fcn.00403f6c
lea eax, [ebp - 0x318]
mov edx, 2
call fcn.00404664
ret
Function at 0x453908
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4539c5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
movzx eax, word [eax + 0x14]
mov dword [ebx], eax
xor eax, eax
mov dword [ebx + 0x18], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x1c]
mov dword [ebx + 0x1c], eax
xor eax, eax
mov dword [ebx + 0x24], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x1c], 0x8000
jbe 0x45399b
push 0
push 2
push 0
push 0
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004529a8
mov eax, dword [ebp - 8]
xor ecx, ecx
mov edx, 0xc0000000
call fcn.00452bec
mov esi, eax
mov dword [ebx + 0x20], esi
cmp esi, 0xffffffff
je 0x453994
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x1c]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x18]
push eax
push esi
call sub.kernel32.dll_WriteFile_1
jmp 0x4539af
xor eax, eax
mov dword [ebx + 0x20], eax
jmp 0x4539af
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1c]
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x18]
lea eax, [ebx + 0x10]
call fcn.0040405c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4539cc
lea eax, [ebp - 8]
call fcn.0040464c
ret
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
nop
nop
mov ecx, 0x11524e7c
nop
nop
nop
nop
test eax, eax
je 0x42e04e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x42e024
nop
nop
nop
mov eax, section..data_1
mov ebx, 0x42cd70
nop
nop
mov ecx, 0x7ce66531
nop
nop
nop
test eax, eax
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x401040
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x48
push ebx
push esi
xor ebx, ebx
lea eax, [esp + 0x18]
push 0x38
push str.1.2.13
push eax
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebx
call fcn.004083e0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x401094
mov eax, dword [esp + 0x58]
push esi
add eax, 0x12
push eax
push str.Failed_to_extract__s:_inflateInit___failed_with_return_code__d__n
call fcn.00401b50
add esp, 0xc
or eax, 0xffffffff
pop esi
pop ebx
add esp, 0x48
ret
push 0x2000
call fcn.00411a13
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4010c8
mov eax, dword [esp + 0x58]
add eax, 0x12
push eax
push str.Failed_to_extract__s:_failed_to_allocate_temporary_input_buffer__n
push str.malloc
call fcn.00401b30
add esp, 0xc
jmp 0x4011f0
push 0x2000
call fcn.00411a13
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4010fa
mov ecx, dword [esp + 0x58]
add ecx, 0x12
push ecx
push str.Failed_to_extract__s:_failed_to_allocate_temporary_output_buffer__n
push str.malloc
call fcn.00401b30
add esp, 0xc
jmp 0x4011f0
mov eax, dword [esp + 0x58]
xor ecx, ecx
push ebp
mov ebp, dword [esp + 0x60]
push edi
mov eax, dword [eax + 8]
mov edi, dword [esp + 0x68]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
test ecx, ecx
jb 0x401129
ja 0x401122
cmp eax, 0x2000
jbe 0x401129
mov esi, 0x2000
jmp 0x40112b
mov esi, eax
mov eax, dword [esp + 0x5c]
push dword [eax]
push esi
push 1
push dword [esp + 0x24]
call fcn.0040ce62
add esp, 0x10
cmp eax, esi
jne 0x4011eb
mov eax, dword [esp + 0x5c]
push dword [eax]
call fcn.0040cc5d
add esp, 4
test eax, eax
jne 0x4011eb
sub dword [esp + 0x10], esi
mov dword [esp + 0x24], esi
sbb dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
mov dword [esp + 0x30], 0x2000
push 0
push eax
mov dword [esp + 0x34], ebx
call fcn.00406a50
add esp, 8
mov dword [esp + 0x1c], eax
lea ecx, [eax + 4]
cmp ecx, 6
ja case.0x4011a0.1
movzx ecx, byte [ecx + 0x401274]
jmp dword [ecx*4 + 0x401268]
mov esi, 0x2000
sub esi, dword [esp + 0x30]
test ebp, ebp
je 0x401214
push ebp
push esi
push 1
push ebx
call fcn.0040d585
add esp, 0x10
cmp eax, esi
jne 0x4011d2
push ebp
call fcn.0040cc5d
add esp, 4
test eax, eax
je 0x401225
or eax, 0xffffffff
push eax
mov eax, dword [esp + 0x64]
add eax, 0x12
push eax
push str.Failed_to_extract__s:_decompression_resulted_in_return_code__d__n
call fcn.00401b50
add esp, 0xc
or esi, 0xffffffff
pop edi
pop ebp
lea eax, [esp + 0x18]
push eax
call fcn.004081d0
push dword [esp + 0x14]
call fcn.004119f8
push ebx
call fcn.004119f8
add esp, 0xc
mov eax, esi
pop esi
pop ebx
add esp, 0x48
ret
test edi, edi
je 0x401229
push esi
push ebx
push edi
call fcn.0040a340
add esp, 0xc
add edi, esi
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x30], 0
je 0x401172
cmp eax, 1
je 0x401263
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x401247
cmp dword [esp + 0x10], ecx
jbe 0x4011d5
mov eax, dword [esp + 0x10]
jmp 0x401115
mov eax, 0xfffffffd
jmp 0x4011d5
cmp eax, 1
jne 0x4011d5
xor esi, esi
jmp 0x4011ee
Function at 0x4012a0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebp
mov ebp, dword [esp + 0x10]
mov edx, dword [ebp]
test edx, edx
jne 0x4012e5
lea eax, [ebp + 0x70]
push 0x426350
push eax
call fcn.00402bd0
mov edx, eax
add esp, 8
mov dword [ebp], edx
test edx, edx
jne 0x4012e5
mov eax, dword [esp + 0x14]
add eax, 0x12
push eax
push str.Failed_to_extract__s:_failed_to_open_archive_file__n
call fcn.00401b50
add esp, 8
xor eax, eax
pop ebp
add esp, 8
ret
push ebx
mov ebx, dword [esp + 0x18]
xor eax, eax
push 0
mov ecx, dword [ebx + 4]
add ecx, dword [ebp + 8]
adc eax, dword [ebp + 0xc]
push eax
push ecx
push edx
call fcn.0040d286
add esp, 0x10
test eax, eax
jns 0x401324
lea eax, [ebx + 0x12]
push eax
push str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
push str.fseek
call fcn.00401b30
add esp, 0xc
xor eax, eax
pop ebx
pop ebp
add esp, 8
ret
push esi
push edi
push dword [ebx + 0xc]
call fcn.00411a13
mov esi, eax
add esp, 4
mov dword [esp + 0x10], esi
test esi, esi
jne 0x401359
push dword [ebx + 0xc]
lea ecx, [ebx + 0x12]
push ecx
push str.Failed_to_extract__s:_failed_to_allocate_data_buffer___u_bytes___n
push str.malloc
call fcn.00401b30
add esp, 0x10
jmp 0x4013d8
cmp byte [ebx + 0x10], 1
jne 0x40137d
push esi
push 0
push ebx
push ebp
call fcn.00401040
add esp, 0x10
test eax, eax
je 0x4013d8
push esi
call fcn.004119f8
add esp, 4
xor esi, esi
jmp 0x4013d8
mov eax, esi
mov esi, dword [ebx + 0xc]
xor ebx, ebx
mov dword [esp + 0x14], eax
test esi, esi
je 0x4013d4
nop dword [eax]
test ebx, ebx
jb 0x4013a5
ja 0x40139e
cmp esi, 0x2000
jbe 0x4013a5
mov edi, 0x2000
jmp 0x4013a7
mov edi, esi
push dword [ebp]
push 1
push edi
push eax
call fcn.0040ce62
add esp, 0x10
cmp eax, 1
jb 0x4013f9
mov eax, dword [esp + 0x14]
sub esi, edi
sbb ebx, 0
add eax, edi
mov dword [esp + 0x14], eax
test ebx, ebx
ja 0x40139e
jb 0x4013d4
test esi, esi
jne 0x401390
mov esi, dword [esp + 0x10]
mov eax, dword [ebp]
test eax, eax
je 0x4013ef
push eax
call fcn.0040cc01
add esp, 4
mov dword [ebp], 0
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
add esp, 8
ret
mov eax, dword [esp + 0x20]
add eax, 0x12
push eax
push str.Failed_to_extract__s:_failed_to_read_data_chunk__n
push str.fread
call fcn.00401b30
mov esi, dword [esp + 0x1c]
add esp, 0xc
push esi
call fcn.004119f8
add esp, 4
xor esi, esi
jmp 0x4013d8