joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40277a
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
xor ecx, ecx
or dword [esi], 0xffffffff
or dword [esi + 0x10], 0xffffffff
or dword [esi + 8], 0xffffffff
push edi
mov dword [esi + 4], ecx
mov dword [esi + 0x14], ecx
mov edi, dword [eax + 0x28]
mov dword [ebp + 0xc], ecx
mov dword [esi + 0xc], edi
movzx edx, word [eax + 0x14]
lea edx, [edx + eax + 0x18]
movzx eax, word [eax + 6]
cmp eax, ecx
mov dword [ebp + 8], eax
jbe 0x4027e1
mov eax, dword [edx + 0x10]
mov ecx, dword [edx + 8]
cmp ecx, eax
jae 0x4027c5
mov eax, ecx
mov ebx, dword [edx + 0xc]
cmp edi, ebx
jb 0x4027d3
lea ecx, [ebx + eax]
cmp edi, ecx
jb 0x4027f8
inc dword [ebp + 0xc]
add edx, 0x28
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 8]
jb 0x4027b9
push str.Error_calculating_file_offset__what_type_of_PE_file_is_this___
push 0
call fcn.00411f6f
pop ecx
xor al, al
pop ecx
pop edi
pop esi
pop ebx
leave
ret 8
mov ecx, dword [ebp + 0xc]
sub edi, ebx
mov dword [esi], ecx
mov dword [esi + 4], edx
mov dword [esi + 8], edi
mov ecx, dword [edx + 0x14]
add ecx, edi
sub eax, edi
mov dword [esi + 0x10], ecx
mov ecx, dword [ebp - 4]
mov ebx, eax
call fcn.0040270d
test al, al
je 0x40283a
mov edi, 0x80
push str.The_Code_Section_is_not_long_enough_to_encode.
cmp ebx, edi
sbb al, al
inc al
push eax
call fcn.00411f6f
pop ecx
mov dword [esi + 0x14], edi
pop ecx
jmp 0x40283d
mov dword [esi + 0x14], ebx
mov al, 1
jmp 0x4027f1

Function at 0x4028cf
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
push edi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push str.ReflexiveArcadeRAW_004.wdt
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x402929
push ebx
lea eax, [ebp - 4]
push esi
push eax
mov esi, 0x435394
push 8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
push edi
setne bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
pop ebx
je 0x402929
cmp dword [ebp - 4], 8
jne 0x402929
mov eax, esi
jmp 0x40292b
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x40292f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push str.ReflexiveArcadeRAW_004.wdt
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40298c
lea eax, [ebp - 4]
push 0
push eax
push 8
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
push esi
setne byte [ebp + 0xb]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp + 0xb], 0
je 0x402988
cmp dword [ebp - 4], 8
jne 0x402988
xor eax, eax
inc eax
jmp 0x40298e
xor eax, eax
jmp 0x40298e
xor al, al
pop esi
leave
ret 4
Function at 0x403492
Capabilities:
Create thread
Print debug messages

Disassembly:
push esi
mov esi, ecx
fld dword [esi + 0x18]
fcomp dword [0x4292d0]
fnstsw ax
test ah, 0x41
je 0x4034c4
call fcn.004077d0
test al, al
jne 0x4034c4
push 0
push str.Demo_Expired
push str.Thank_you_for_playing__your_demo_has_expired._nBuy_now_to_upgrade_instantly.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop esi
ret
mov ecx, esi
call fcn.00403c1c
call fcn.00401006
mov ecx, eax
call fcn.0040117b
test al, al
jne 0x4034c2
call fcn.00401006
mov ecx, eax
call fcn.0040103b
mov ecx, esi
call fcn.004034fa
test al, al
je 0x4034c2
mov ecx, esi
pop esi
jmp fcn.00403686
Function at 0x4034fa
Capabilities:
Create process on windows
Print debug messages
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x950
push ebx
push esi
push edi
push 0x44
pop esi
xor ebx, ebx
push esi
lea eax, [ebp - 0x50]
push ebx
push eax
mov dword [ebp - 0xc], ecx
call fcn.0041cd50
add esp, 0xc
lea eax, [ebp - 4]
mov dword [ebp - 0x50], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push 1
push 0x100000
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push eax
call edi
test eax, eax
jne 0x403578
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x950]
push str.GameWrapper:_Duplicate_Thread_Failed__last_error__x_n
push eax
call fcn.0041cda8
add esp, 0xc
lea eax, [ebp - 0x950]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x40367b
push 2
push 1
lea eax, [ebp - 8]
push 0x100001
push eax
call esi
push eax
call fcn.00401006
mov ecx, eax
call fcn.004011c3
push eax
call esi
push eax
call edi
test eax, eax
jne 0x4035d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x950]
push str.GameWrapper:_Duplicate_Game_Failed__last_error__x_n
push eax
call fcn.0041cda8
add esp, 0xc
lea eax, [ebp - 0x950]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40367b
push dword [ebp - 8]
mov edi, str.0x_08x
lea eax, [ebp - 0x150]
push edi
push eax
call fcn.0041cda8
mov esi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
add esp, 0xc
lea eax, [ebp - 0x150]
push eax
push str.GAME_HANDLE
call esi
push dword [ebp - 4]
lea eax, [ebp - 0x150]
push edi
push eax
call fcn.0041cda8
add esp, 0xc
lea eax, [ebp - 0x150]
push eax
push str.WRAPPER_HANDLE
call esi
mov eax, dword [ebp - 0xc]
add eax, 0x48
push eax
lea eax, [ebp - 0x50]
push eax
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
push ebx
push str.ReflexiveArcadeRAW_003.wdt
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x40367f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x950]
push str.GameWrapper:_Create_Process_Failed__last_error__x_n
push eax
call fcn.0041cda8
add esp, 0xc
lea eax, [ebp - 0x950]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 8]
call esi
xor al, al
jmp 0x403681
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403c1c
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
mov byte [esi + 0x15], 1
push dword [0x43553c]
call edi
call fcn.00401006
mov ecx, eax
call fcn.004019cc
mov ebx, eax
test ebx, ebx
je 0x403cc6
and byte [esi + 0x14], 0
push ebx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push ebx
call dword [sym.imp.USER32.dll_BringWindowToTop]
push 1
push ebx
call edi
lea edi, [esi + 4]
cmp dword [edi], 0
jne 0x403c72
cmp dword [esi + 0xc], 0
je 0x403cc6
lea eax, [ebp - 0x10]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
test eax, eax
je 0x403cc6
mov eax, dword [esi + 0xc]
cmp dword [ebp - 8], eax
jne 0x403ca0
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [edi]
jne 0x403ca0
mov ecx, dword [ebp - 4]
cmp ecx, dword [esi + 0x10]
jne 0x403ca0
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [esi + 8]
je 0x403cc6
mov ecx, dword [esi + 8]
mov esi, dword [esi + 0x10]
mov edx, dword [edi]
sub esi, ecx
push 1
sub eax, edx
push esi
push eax
push ecx
push edx
push ebx
call dword [sym.imp.USER32.dll_MoveWindow]
push 0x10
push 0
push edi
call fcn.0041cd50
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403edf
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
call fcn.00401006
mov ecx, eax
call fcn.00402888
fld dword [ebp + 8]
fcomp dword [0x4292d0]
mov edi, eax
fnstsw ax
test ah, 5
jp 0x403f09
fldz
fstp dword [ebp + 8]
xor esi, esi
push esi
call fcn.00402b7a
add byte [ebp + esi + 8], al
inc esi
cmp esi, 4
pop ecx
jb 0x403f0b
call fcn.00403f68
mov esi, eax
test esi, esi
je 0x403f47
lea eax, [ebp + 8]
push 4
push eax
push 4
push 0
push edi
call fcn.00402bcf
pop ecx
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
lea edi, [ebp - 8]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
call fcn.00401006
mov ecx, eax
call fcn.0040292f
pop edi
pop esi
leave
ret
Function at 0x404b6b
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push dword [0x43553c]
mov esi, ecx
call dword [sym.imp.USER32.dll_GetDC]
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push dword [esi + 0x30]
mov ebx, eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0xc], eax
xor eax, eax
cmp byte [esi], al
je 0x404bfd
mov dword [ebp - 4], eax
call fcn.00407b70
test eax, eax
jle 0x404c16
push edi
push dword [ebp - 4]
lea eax, [ebp - 0x2c]
push eax
call fcn.00407bf0
mov esi, eax
lea edi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop ecx
movsd dword es:[edi], dword [esi]
pop ecx
push 0xcc0020
movsd dword es:[edi], dword [esi]
push dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
push dword [ebp - 0x1c]
push ebx
push eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_BitBlt]
inc dword [ebp - 4]
call fcn.00407b70
cmp dword [ebp - 4], eax
jl 0x404bad
pop edi
jmp 0x404c16
push 0xcc0020
push eax
push eax
push ebx
push dword [esi + 0x28]
push dword [esi + 0x2c]
push eax
push eax
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [ebp - 8]
push dword [0x43553c]
call dword [sym.imp.USER32.dll_ReleaseDC]
pop esi
pop ebx
leave
ret

Function at 0x404fd4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push str.SOFTWAREReflexiveArcade
lea eax, [ebp - 0x210]
push 0x42deec
push eax
call fcn.0041cda8
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
push 0xf003f
lea eax, [ebp - 0x210]
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405049
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push str.DoTimeBeeping
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405049
cmp dword [ebp - 4], eax
setne al
mov byte [0x43552c], al
leave
ret
Function at 0x40528f
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x800
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp dword [esi + 0x5c], ebx
jne 0x4052dc
push ebx
push ebx
push 1
push ebx
call edi
cmp eax, ebx
mov dword [esi + 0x5c], eax
jne 0x4052dc
call ebp
push eax
lea eax, [esp + 0x14]
push str.GameWrapper:_Create_Pause_Event_Failed__last_error__x_n
push eax
call fcn.0041cda8
add esp, 0xc
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [esi + 0x60], ebx
jne 0x40530f
push ebx
push ebx
push 1
push ebx
call edi
cmp eax, ebx
mov dword [esi + 0x60], eax
jne 0x40530f
call ebp
push eax
lea eax, [esp + 0x14]
push str.GameWrapper:_Create_Timeout_Event_Failed__last_error__x_n
push eax
call fcn.0041cda8
add esp, 0xc
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x814]
mov eax, dword [esi + 0x5c]
pop edi
mov dword [ecx], eax
mov eax, dword [esi + 0x60]
mov ecx, dword [esp + 0x814]
pop esi
pop ebp
pop ebx
mov dword [ecx], eax
add esp, 0x800
ret 8

Function at 0x40597f
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor esi, esi
push edi
push esi
push esi
push 3
push esi
push esi
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4059ea
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4059bc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4059ea
push ebx
call fcn.0041d462
cmp eax, esi
pop ecx
mov dword [ebp + 8], eax
je 0x4059b3
lea ecx, [ebp - 4]
push esi
push ecx
push ebx
push eax
push edi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], esi
jne 0x4059ee
xor al, al
jmp 0x405a09
push ebx
push dword [ebp + 8]
call fcn.0040581e
mov ecx, dword [ebp + 0xc]
push dword [ebp + 8]
mov dword [ecx], eax
call fcn.0041d379
add esp, 0xc
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406860
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
lea edi, [ebp - 0x40]
mov ecx, 0x10
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov esi, esp
push 0x80
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp esi, esp
call fcn.0041de53
mov esi, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp esi, esp
call fcn.0041de53
test eax, eax
jne 0x4068ab
xor al, al
jmp 0x4068ad
mov al, 1
pop edi
pop esi
pop ebx
add esp, 0x40
cmp ebp, esp
call fcn.0041de53
mov esp, ebp
pop ebp
ret

Function at 0x4068c0
Capabilities:
Enumerate files on windows
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x494
push ebx
push esi
push edi
lea edi, [ebp - 0x494]
mov ecx, 0x125
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x104]
push ecx
call fcn.0041cc10
add esp, 8
push 0x429430
lea eax, [ebp - 0x104]
push eax
call fcn.0041cc20
add esp, 8
mov byte [ebp - 0x105], 1
mov esi, esp
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp esi, esp
call fcn.0041de53
mov dword [ebp - 0x24c], eax
cmp dword [ebp - 0x24c], 0xffffffff
je 0x4069fb
mov eax, dword [ebp - 0x248]
and eax, 0x10
test eax, eax
jne 0x4069d6
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x350]
push ecx
call fcn.0041cc10
add esp, 8
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x350]
push ecx
call fcn.0041cc20
add esp, 8
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x454]
push ecx
call fcn.0041cc10
add esp, 8
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x454]
push ecx
call fcn.0041cc20
add esp, 8
lea eax, [ebp - 0x454]
push eax
call fcn.00406860
add esp, 4
mov esi, esp
lea eax, [ebp - 0x454]
push eax
lea ecx, [ebp - 0x350]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
cmp esi, esp
call fcn.0041de53
test eax, eax
jne 0x4069d6
mov byte [ebp - 0x105], 0
mov esi, esp
lea eax, [ebp - 0x248]
push eax
mov ecx, dword [ebp - 0x24c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
cmp esi, esp
call fcn.0041de53
test eax, eax
jne 0x40693c
mov esi, esp
mov eax, dword [ebp - 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp esi, esp
call fcn.0041de53
mov al, byte [ebp - 0x105]
pop edi
pop esi
pop ebx
add esp, 0x494
cmp ebp, esp
call fcn.0041de53
mov esp, ebp
pop ebp
ret
Function at 0x406a30
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38c
push ebx
push esi
push edi
lea edi, [ebp - 0x38c]
mov ecx, 0xe3
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x244]
push ecx
call fcn.0041cc10
add esp, 8
push str..
lea eax, [ebp - 0x244]
push eax
call fcn.0041cc20
add esp, 8
mov esi, esp
lea eax, [ebp - 0x140]
push eax
lea ecx, [ebp - 0x244]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp esi, esp
call fcn.0041de53
mov dword [ebp - 0x248], eax
cmp dword [ebp - 0x248], 0xffffffff
je 0x406b64
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x34c]
push ecx
call fcn.0041cc10
add esp, 8
push 0x42d428
lea eax, [ebp - 0x34c]
push eax
call fcn.0041cc20
add esp, 8
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x34c]
push ecx
call fcn.0041cc20
add esp, 8
push 0x429438
lea eax, [ebp - 0x114]
push eax
call fcn.0041de70
add esp, 8
test eax, eax
je 0x406b3f
push 0x429434
lea eax, [ebp - 0x114]
push eax
call fcn.0041de70
add esp, 8
test eax, eax
je 0x406b3f
mov eax, dword [ebp - 0x140]
and eax, 0x10
test eax, eax
je 0x406b30
lea eax, [ebp - 0x34c]
push eax
call fcn.00406a30
add esp, 4
jmp 0x406b3f
lea eax, [ebp - 0x34c]
push eax
call fcn.00406860
add esp, 4
mov esi, esp
lea eax, [ebp - 0x140]
push eax
mov ecx, dword [ebp - 0x248]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
cmp esi, esp
call fcn.0041de53
test eax, eax
jne 0x406aa5
mov esi, esp
mov eax, dword [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp esi, esp
call fcn.0041de53
mov esi, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
cmp esi, esp
call fcn.0041de53
pop edi
pop esi
pop ebx
add esp, 0x38c
cmp ebp, esp
call fcn.0041de53
mov esp, ebp
pop ebp
ret
Function at 0x408330
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x40835e
push esi
call fcn.0040b218
cmp dword [esi + 0x40], 0
pop ecx
je 0x408357
xor eax, eax
mov dword [esi + 0x10], 0xcf
inc eax
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x4083d0
mov eax, dword [esi + 0x1b0]
cmp dword [eax + 0x10], 0
je 0x4083c2
mov eax, dword [esi + 8]
test eax, eax
je 0x40837f
push esi
call dword [eax]
pop ecx
mov eax, dword [esi + 0x1b0]
push esi
call dword [eax]
test eax, eax
pop ecx
je 0x4083be
cmp eax, 2
je 0x4083c2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x408374
cmp eax, 3
je 0x4083a3
cmp eax, 1
jne 0x408374
inc dword [ecx + 4]
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
cmp dword [eax + 4], ecx
jl 0x408374
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x408374
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
mov dword [esi + 0x98], eax
jmp 0x4083ee
cmp eax, 0xcc
je 0x4083ee
mov eax, dword [esi]
mov dword [eax + 0x14], 0x12
mov eax, dword [esi]
mov ecx, dword [esi + 0x10]
mov dword [eax + 0x18], ecx
mov eax, dword [esi]
push esi
call dword [eax]
pop ecx
push esi
call fcn.004083f7
pop ecx
pop esi
ret
Function at 0x412933
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
cmp byte [esi], 0
jne 0x41299c
push dword [esi + 8]
lea ecx, [ebp - 8]
call fcn.004142da
mov ecx, esi
call fcn.004122d7
test al, al
jne 0x412994
lea ecx, [ebp - 4]
call fcn.004142bb
lea ecx, [ebp - 8]
call fcn.004146ed
push eax
lea eax, [ebp - 4]
push str.There_is_something_wrong_with__s.__It_may_be_an_empty_or_damaged_archive.
push eax
call fcn.00414658
add esp, 0xc
lea ecx, [ebp - 4]
call fcn.004146ed
push eax
push str.FATAL_ERROR_IN_ZIP
call fcn.00414040
pop ecx
pop ecx
push 0xffffffffffffffff
call fcn.0041dff3
lea ecx, [ebp - 8]
call fcn.00414395
pop esi
leave
ret

Function at 0x412d74
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 0xc]
test edx, edx
mov eax, dword [esp + 4]
je 0x412da0
mov ecx, dword [esp + 8]
push esi
push edi
movzx esi, byte [ecx]
movzx edi, al
xor esi, edi
mov esi, dword [esi*4 + 0x42f750]
shr eax, 8
xor eax, esi
inc ecx
dec edx
jne 0x412d86
pop edi
pop esi
ret

Function at 0x414c01
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call fcn.0041cc10
lea eax, [ebp - 0x104]
push eax
call fcn.00414c83
add esp, 0xc
push 0
lea eax, [ebp - 0x104]
push eax
call esi
test eax, eax
jne 0x414c7e
lea eax, [ebp - 0x104]
push 0x5c
push eax
call fcn.0041cd00
test eax, eax
pop ecx
pop ecx
jne 0x414c66
lea eax, [ebp - 0x104]
push 0x2f
push eax
call fcn.0041cd00
test eax, eax
pop ecx
pop ecx
je 0x414c7a
and byte [eax], 0
push 0
lea eax, [ebp - 0x104]
push eax
call esi
test eax, eax
je 0x414c3e
jmp 0x414c11
xor al, al
jmp 0x414c80
mov al, 1
pop esi
leave
ret

Function at 0x414d49
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x414d5b
xor al, al
ret
and eax, 1
dec al
neg al
sbb eax, eax
inc eax
ret

Function at 0x414d66
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x414d8d
and eax, 0xfffffffe
cmp byte [esp + 8], 0
je 0x414d82
or eax, 1
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret
Function at 0x41d6cf
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42b6f0
push 0x4219e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x437530], eax
movzx ecx, ah
mov dword [0x43753c], ecx
and eax, 0xff
mov dword [0x437538], eax
shl eax, 8
add eax, ecx
mov dword [0x437534], eax
movzx eax, word [0x437532]
mov dword [0x437530], eax
push 1
call fcn.004206ea
pop ecx
test eax, eax
jne 0x41d73d
push 0x1c
call fcn.0041d7ff
pop ecx
call fcn.00420329
test eax, eax
jne 0x41d74e
push 0x10
call fcn.0041d7ff
pop ecx
xor esi, esi
mov dword [ebp - 4], esi
call fcn.00422621
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x438c38], eax
call fcn.004224ef
mov dword [0x437520], eax
call fcn.004222aa
call fcn.004221f1
call fcn.0041dfc6
mov dword [ebp - 0x30], esi
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00422193
mov dword [ebp - 0x60], eax
test byte [ebp - 0x30], 1
je 0x41d79d
movzx eax, word [ebp - 0x2c]
jmp 0x41d7a0
push 0xa
pop eax
push eax
push dword [ebp - 0x60]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x64], eax
push eax
call fcn.0041dff3
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x68], ecx
push eax
push ecx
call fcn.0042201f
pop ecx
pop ecx
ret

Function at 0x41e015
Capabilities:
Terminate process

Disassembly:
push edi
call fcn.0041e0b9
xor edi, edi
inc edi
cmp dword [0x43756c], edi
jne 0x41e037
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [esp + 0xc], 0
push ebx
mov ebx, dword [esp + 0x14]
mov dword [0x437568], edi
mov byte [0x437564], bl
jne 0x41e08b
mov eax, dword [0x438c34]
push esi
test eax, eax
je 0x41e079
mov ecx, dword [0x438c30]
lea esi, [ecx - 4]
cmp esi, eax
jb 0x41e079
mov eax, dword [esi]
test eax, eax
je 0x41e06e
call eax
sub esi, 4
cmp esi, dword [0x438c34]
jae 0x41e066
push 0x42d094
push 0x42d08c
call fcn.0041e0cb
pop ecx
pop ecx
pop esi
push 0x42d09c
push 0x42d098
call fcn.0041e0cb
pop ecx
pop ecx
test ebx, ebx
pop ebx
je 0x41e0a7
pop edi
jmp fcn.0041e0c2
push dword [esp + 8]
mov dword [0x43756c], edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]