joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403830
Capabilities:
Create thread

Disassembly:
sub esp, 0x14
push esi
push edi
mov esi, ecx
lea eax, [esp + 8]
push eax
lea edi, [esi + 0x1c]
push str.SPEEXSTEREO
mov ecx, edi
mov word [esp + 0x10], 1
mov word [esp + 0x20], 0
mov word [esp + 0x1e], 0x10
mov dword [esp + 0x14], 0x3e80
mov word [esp + 0x12], 2
mov dword [esp + 0x18], 0x7d00
mov word [esp + 0x1c], 4
call dword [sym.imp.MQAV.dll_public:_void___thiscall_CCodecMgr::SetAudioCodec_char_const___struct_tWAVEFORMATEX__]
push 0x3e80
mov ecx, edi
call dword [sym.imp.MQAV.dll_public:_void___thiscall_CCodecMgr::SetAudioBitrate_int_]
push 0
mov ecx, edi
call dword [sym.imp.MQAV.dll_public:_void___thiscall_CCodecMgr::SetVideoSize_int_]
mov ecx, dword [esp + 0x20]
push 0
push ecx
mov ecx, esi
call dword [sym.imp.MQAV.dll_protected:_void___thiscall_IAVIOCustomBase::InitCodec_unsigned_int__bool_]
movzx edx, byte [esp + 0x2c]
mov eax, dword [esp + 0x28]
push edx
push eax
mov ecx, esi
call dword [sym.imp.MQAV.dll_public:_void___thiscall_IAVIOCustomBase::InitScreenCodec_unsigned_char__int_]
lea ecx, [esi + 0x6db50]
push ecx
push 0
push esi
push 0x403820
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
pop edi
mov dword [esi + 0x6db4c], eax
pop esi
je 0x4038e6
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
add esp, 0x14
ret 0x10

Function at 0x404040
Capabilities:
Set registry value

Disassembly:
push ecx
lea eax, [esp]
push eax
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
mov ecx, dword [esp + 0xc]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x404089
push 4
lea edx, [esp + 0x18]
push edx
push 4
push eax
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x4040f0
mov ecx, dword [esp]
push ecx
jmp 0x4040d0
lea edx, [esp]
push edx
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push reloc.MQSkin.dll_Ordinal_1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x4040f0
push 4
lea eax, [esp + 0x18]
push eax
push 4
push 0
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x4040f0
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0xc]
call dword [0x40c338]
lea ecx, [esp + 0x10]
call dword [0x40c338]
mov al, 1
pop ecx
ret 0x10
lea ecx, [esp + 0xc]
call dword [0x40c338]
lea ecx, [esp + 0x10]
call dword [0x40c338]
xor al, al
pop ecx
ret 0x10
Function at 0x404110
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0xe8]
mov ecx, dword [esi + eax*4 + 0xd0]
test ecx, ecx
je 0x40413e
mov edx, dword [esi + 0xec]
mov eax, dword [esi + 0xfc]
push edx
mov edx, dword [esi + 0xf8]
push eax
push edx
call fcn.00403de0
mov eax, dword [esi + 0xf8]
push eax
call sub.MFC71.DLL_operator_delete_1
add esp, 4
mov dword [esi + 0xf8], 0
mov ecx, esi
pop esi
jmp fcn.00404f90

Function at 0x4041b0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
push edi
mov esi, ecx
mov ecx, dword [esi + 0xdc]
lea eax, [esp + 8]
push eax
push ecx
call dword [sym.imp.MSVCR71.dll_fgetpos]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov edi, dword [esi + 0xe0]
add esp, 8
add ecx, 1
adc eax, 0
xor edx, edx
cmp eax, edx
jl 0x4041ec
jg 0x404260
cmp ecx, edi
jae 0x404260
mov edx, dword [esi + 0xdc]
test byte [edx + 0xc], 0x10
jne 0x404260
mov eax, dword [esi + 0xfc]
push eax
call sub.MFC71.DLL_operator_new_1
mov ecx, dword [esi + 0xfc]
mov edx, ecx
mov edi, eax
shr ecx, 2
mov dword [esi + 0xf8], edi
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esi + 0xdc]
mov ecx, dword [esi + 0xfc]
mov edx, dword [esi + 0xf8]
push eax
push ecx
push 1
push edx
call dword [sym.imp.MSVCR71.dll_fread]
add esp, 0x14
test eax, eax
je 0x404251
pop edi
mov eax, 1
pop esi
add esp, 8
ret
mov eax, dword [esi + 0xf8]
push eax
call sub.MFC71.DLL_operator_delete_1
add esp, 4
pop edi
xor eax, eax
pop esi
add esp, 8
ret
Function at 0x404f90
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
push esi
mov esi, ecx
cmp dword [esi + 0xf0], 3
jne 0x40510e
call fcn.00404160
cmp eax, 1
jne 0x404ffa
push 0
lea ecx, [esi + 0xdb0]
call sub.MFC71.DLL_CWnd::EnableWindow
push 0
lea ecx, [esi + 0xe30]
call sub.MFC71.DLL_CWnd::EnableWindow
mov eax, dword [esi + 0x20]
push 0x3e9
push eax
mov dword [esi + 0xe4], 0
mov dword [esi + 0xf4], 0
call dword [sym.imp.USER32.dll_KillTimer]
push 1
push 1
mov ecx, esi
call fcn.00404940
pop esi
add esp, 0x10
ret
mov edx, dword [esi + 0xdc]
xor ecx, ecx
push edx
mov dword [esp + 8], ecx
push 0x10
mov dword [esp + 0x10], ecx
lea eax, [esp + 0xc]
mov dword [esp + 0x14], ecx
push 1
push eax
mov dword [esp + 0x20], ecx
call dword [sym.imp.MSVCR71.dll_fread]
add esp, 0x10
test eax, eax
je 0x4050ed
mov eax, dword [esp + 4]
cmp eax, 0x5541514d
ja 0x405080
je 0x40506a
cmp eax, 0x4353514d
je 0x405054
cmp eax, 0x4956514d
jne 0x405087
mov dword [esi + 0xec], 2
jmp 0x40509d
mov ecx, dword [esp + 0xc]
mov dword [esi + 0xec], 4
mov dword [esi + 0xe8], ecx
jmp 0x40509d
mov edx, dword [esp + 0xc]
mov dword [esi + 0xec], 1
mov dword [esi + 0xe8], edx
jmp 0x40509d
cmp eax, 0x5854514d
je 0x405093
mov dword [esi + 0xec], 5
jmp 0x40509d
mov dword [esi + 0xec], 3
mov eax, dword [esp + 8]
mov ecx, esi
mov dword [esi + 0xfc], eax
call fcn.004041b0
cmp eax, 1
jne 0x4050c4
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, esi
call fcn.00404860
pop esi
add esp, 0x10
ret
push 1
push 1
mov ecx, esi
mov dword [esi + 0xf4], 0
call fcn.00404940
mov edx, dword [esi + 0x20]
push 0x3e9
push edx
call dword [sym.imp.USER32.dll_KillTimer]
pop esi
add esp, 0x10
ret
mov ecx, esi
call fcn.00404900
push 1
push 1
mov ecx, esi
mov dword [esi + 0xf4], 0
call fcn.00404940
pop esi
add esp, 0x10
ret
mov dword [esi + 0xf4], 0
pop esi
add esp, 0x10
ret
Function at 0x405380
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x40acb8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb4
mov eax, dword [0x4111e0]
push esi
mov esi, ecx
mov dword [esp + 0xb0], eax
cmp dword [esi + 0xf0], 5
push edi
jg 0x40553c
mov eax, dword [esi + 0xdc]
test eax, eax
je 0x40553c
lea ecx, [esp + 0xc]
mov dword [esi + 0xf0], 3
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea eax, [esp + 0xc]
push 0x40d1f8
push eax
mov dword [esp + 0xcc], 0
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
add esp, 8
lea edi, [esi + 0xe30]
push 1
mov ecx, edi
call sub.MFC71.DLL_CWnd::EnableWindow
push 0x40d1f0
mov ecx, edi
call sub.MFC71.DLL_CWnd::SetWindowTextA
push 1
lea ecx, [esi + 0xdb0]
call sub.MFC71.DLL_CWnd::EnableWindow
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea ecx, [esi + 0xeb0]
call sub.MFC71.DLL_CWnd::SetWindowTextA
lea ecx, [esp + 0xc]
mov dword [esp + 0xc4], 0xffffffff
call dword [0x40c338]
xor eax, eax
mov ecx, 0x27
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 0xdc]
push ecx
push 0x9c
mov edi, 1
lea edx, [esp + 0x18]
push edi
push edx
call dword [sym.imp.MSVCR71.dll_fread]
add esp, 0x10
test eax, eax
je 0x40553c
cmp dword [esp + 0x10], 0x464d514d
je 0x4054d6
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
push 0x67
lea ecx, [esp + 0x10]
mov dword [esp + 0xc8], edi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::LoadStringA]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea ecx, [esi + 0xf14]
call sub.MFC71.DLL_CWnd::SetWindowTextA
mov ecx, esi
call fcn.00404900
lea ecx, [esp + 0xc]
call dword [0x40c338]
jmp 0x40553c
mov ecx, dword [esp + 0x6c]
mov eax, dword [esp + 0x98]
mov dword [esi + 0x100], ecx
push ecx
mov ecx, esi
mov dword [esi + 0xe0], eax
mov dword [esi + 0xe4], 0
mov dword [esi + 0x104], eax
call fcn.00404270
mov eax, dword [esi + 0x20]
push 0
push 0x3e8
push 0x3e9
push eax
call dword [sym.imp.USER32.dll_SetTimer]
mov ecx, esi
call fcn.00404560
lea ecx, [esi + 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, esi
mov dword [esi + 0xf4], edi
call fcn.00404f90
mov ecx, dword [esp + 0xbc]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0xb4]
call fcn.00409b06
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4086e0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x40aea9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push edi
mov edi, ecx
mov eax, dword [edi + 0x84]
test eax, eax
jne 0x40878d
push esi
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
push 0x104
push 0x104
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetBuffer]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::ReleaseBuffer]
push str.winhlp32.exe
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator]
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x40877b
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x40877b
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [edi + 0x84], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 8]
call dword [0x40c338]
pop esi
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x4087a0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
push esi
lea eax, [esp + 4]
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x408802
mov edx, dword [esp + 4]
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x10]
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc

Function at 0x408810
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40aec9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, dword [esp + 0x24]
mov ecx, esi
mov dword [esp + 8], 0
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetManager]
push eax
lea ecx, [esp + 0x28]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
mov edx, dword [esp + 0x20]
test edx, edx
mov esi, dword [esi]
mov ebp, dword [esi - 0xc]
mov dword [esp + 0x14], 0
jne 0x408860
xor eax, eax
jmp 0x408870
mov eax, edx
push edi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408866
sub eax, edi
pop edi
push ebp
push esi
push eax
push edx
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::Concatenate]
mov esi, dword [esp + 0x30]
add esp, 0x14
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
lea ecx, [esp + 0x24]
call dword [0x40c338]
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x40a160
Capabilities:
Suspend thread

Disassembly:
sub esp, 0x28
push edi
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40a22e
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.OpenThread
push edi
call esi
push str.Thread32First
push edi
mov ebp, eax
call esi
push str.Thread32Next
push edi
mov ebx, eax
call esi
push str.CreateToolhelp32Snapshot
push edi
mov dword [esp + 0x18], eax
call esi
test ebp, ebp
je 0x40a224
test ebx, ebx
je 0x40a224
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x40a224
test eax, eax
je 0x40a224
push 0
push 4
call eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x1c]
push eax
push esi
mov dword [esp + 0x24], 0x1c
call ebx
test eax, eax
je 0x40a224
mov ebx, dword [sym.imp.KERNEL32.dll_SuspendThread]
mov ecx, dword [esp + 0x14]
cmp dword [esp + 0x28], ecx
jne 0x40a216
mov eax, dword [esp + 0x24]
cmp eax, dword [esp + 0x18]
je 0x40a216
push eax
push 0
push 2
call ebp
test eax, eax
je 0x40a216
push eax
call ebx
lea edx, [esp + 0x1c]
push edx
push esi
call dword [esp + 0x18]
test eax, eax
jne 0x40a1f4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x28
ret

Function at 0x40a2d0
Capabilities:
Get file version info

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x14]
push edi
lea eax, [esp + 8]
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
jne 0x40a2f0
pop edi
pop ebx
add esp, 0xc
ret
push esi
push edi
call dword [sym.imp.MSVCR71.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
je 0x40a37b
mov ecx, dword [esp + 0xc]
push esi
push edi
push ecx
push ebx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x40a371
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
push 0x40e0dc
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40a371
mov eax, dword [esp + 0x10]
mov cx, word [eax + 0xa]
mov edx, dword [esp + 0x20]
mov word [edx], cx
mov cx, word [eax + 8]
mov edx, dword [esp + 0x24]
mov word [edx], cx
mov cx, word [eax + 0xe]
mov edx, dword [esp + 0x28]
mov word [edx], cx
mov ax, word [eax + 0xc]
mov ecx, dword [esp + 0x2c]
push esi
mov word [ecx], ax
call dword [sym.imp.MSVCR71.dll_free]
add esp, 4
pop esi
pop edi
mov eax, 1
pop ebx
add esp, 0xc
ret
push esi
call dword [sym.imp.MSVCR71.dll_free]
add esp, 4
pop esi
pop edi
xor eax, eax
pop ebx
add esp, 0xc
ret
Function at 0x402846
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64c
cmp dword [ebp + 0x14], 0
push ebx
push esi
push edi
lea esi, [ebp - 0x24c]
je 0x40288b
push dword [ebp + 0x14]
mov eax, esi
push eax
call fcn.0040a3c7
mov eax, esi
push eax
call fcn.0040a2d4
push dword [ebp + 0x14]
lea esi, [ebp + eax - 0x24b]
push esi
call fcn.0040a3c7
push esi
call fcn.0040a2d4
lea esi, [esi + eax + 1]
push 0x85
call fcn.00409847
push eax
push esi
call fcn.0040a3c7
push esi
call fcn.0040a2d4
lea esi, [esi + eax + 1]
push 0x4122b4
push esi
call fcn.0040a3c7
push esi
call fcn.0040a2d4
push 0x4c
mov byte [eax + esi + 1], 0
pop esi
push esi
push 0
lea eax, [ebp - 0x4c]
push eax
call fcn.0040a1d9
mov eax, dword [ebp + 8]
mov dword [ebp - 0x48], eax
mov eax, dword [0x414c78]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x24c]
mov dword [ebp - 0x4c], esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0xc]
mov edi, 0x400
push esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x1c], eax
call fcn.0040732b
cmp eax, esi
jne 0x40291a
lea eax, [ebp - 0x64c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x64c]
mov dword [ebp - 0x20], eax
cmp byte [ebp + 0x18], 0
mov ebx, dword [sym.imp.COMDLG32.dll_GetOpenFileNameA]
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x18], 0x1080c
push eax
je 0x402939
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameA]
jmp 0x40293b
call ebx
mov edi, eax
test edi, edi
jne 0x402969
call dword [sym.imp.COMDLG32.dll_CommDlgExtendedError]
cmp eax, 0x3002
jne 0x402967
cmp byte [ebp + 0x18], 0
lea eax, [ebp - 0x4c]
mov byte [esi], 0
push eax
je 0x402963
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameA]
jmp 0x402965
call ebx
mov edi, eax
test edi, edi
pop edi
pop esi
setne al
pop ebx
leave
ret 0x14

Function at 0x402cd3
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x4141c4], 0
jne 0x402ce1
call fcn.00402ca9
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
push edi
test esi, esi
jbe 0x402d0e
test cl, 7
je 0x402d0e
movzx edx, byte [ecx]
movzx edi, al
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
dec esi
inc ecx
jmp 0x402cef
cmp esi, 8
jb 0x402d92
mov edi, esi
shr edi, 3
xor eax, dword [ecx]
add ecx, 8
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
sub esi, 8
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
mov edx, eax
movzx eax, dl
mov eax, dword [eax*4 + 0x4141c0]
xor eax, dword [ecx - 4]
shr edx, 8
xor eax, edx
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
dec edi
jne 0x402d18
xor edx, edx
test esi, esi
jbe 0x402db2
push ebx
movzx edi, byte [edx + ecx]
movzx ebx, al
xor edi, ebx
shr eax, 8
xor eax, dword [edi*4 + 0x4141c0]
inc edx
cmp edx, esi
jb 0x402d99
pop ebx
pop edi
pop esi
ret 0xc
Function at 0x404b62
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x24c0
call fcn.00401200
push ebx
push esi
push edi
lea ecx, [ebp - 0x24c0]
call fcn.00403569
mov edi, dword [ebp + 8]
xor ebx, ebx
push ebx
lea eax, [ebp - 0x24c0]
push eax
push dword [ebp + 0xc]
push edi
call fcn.00406053
test al, al
je 0x404cfb
cmp byte [ebp - 0x24c0], bl
je 0x404cfb
cmp byte [ebp - 0x1840], bl
je 0x404cfb
lea eax, [ebp - 0x1840]
push eax
lea eax, [ebp - 0x24c0]
push eax
call fcn.0040732b
push eax
call fcn.0040d717
test eax, eax
je 0x404cfb
lea eax, [ebp - 0x1840]
push eax
push edi
call fcn.0040732b
push eax
call fcn.0040d717
test eax, eax
jne 0x404cfb
mov esi, 0x400
push esi
push edi
lea eax, [ebp - 0x400]
push eax
call fcn.0040d7c2
push ebx
push str.rtmp_d
lea eax, [ebp - 0x400]
push eax
call fcn.0040732b
push eax
call fcn.0040a560
add esp, 0xc
push 0
lea eax, [ebp - 0x400]
push eax
call fcn.0040577a
test al, al
je 0x404c3a
add ebx, 0x7b
cmp ebx, 0x2710
jl 0x404bf4
push 0
lea eax, [ebp - 0x400]
push eax
call fcn.0040577a
test al, al
jne 0x404cfb
push esi
push edi
lea eax, [ebp - 0x800]
push eax
call fcn.0040d7c2
lea eax, [ebp - 0x24c0]
push eax
call fcn.0040732b
push eax
lea eax, [ebp - 0x800]
push eax
call fcn.0040732b
push eax
call fcn.0040a3c7
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileA]
lea eax, [ebp - 0x400]
push eax
lea eax, [ebp - 0x800]
push eax
call esi
test eax, eax
je 0x404cfb
lea ecx, [ebp - 0x1420]
call fcn.00404ed6
push 0
push edi
xor bl, bl
call fcn.0040577a
test al, al
jne 0x404cc2
push 1
push 0
push edi
lea ecx, [ebp - 0x1420]
call fcn.004051eb
mov bl, al
lea eax, [ebp - 0x800]
push eax
lea eax, [ebp - 0x400]
push eax
call esi
test bl, bl
je 0x404cec
lea ecx, [ebp - 0x1420]
call fcn.00404f41
lea ecx, [ebp - 0x1420]
call fcn.00404fbf
lea ecx, [ebp - 0x1420]
call fcn.00405087
mov al, 1
jmp 0x404cfd
xor al, al
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4050aa
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esi + 0xc18], ebx
cmp byte [esi + 0x16], bl
je 0x4050c4
mov byte [ebp + 0x10], 1
mov dword [ebp - 4], 0x80000000
cmp byte [ebp + 0x14], bl
je 0x4050d7
mov dword [ebp - 4], 0xc0000000
mov dword [ebp + 0x14], 1
cmp byte [ebp + 0x10], bl
je 0x4050ea
mov dword [ebp + 0x14], 3
xor eax, eax
cmp byte [esi + 0x15], bl
setne al
dec eax
and eax, 0x8000000
mov edi, eax
call fcn.00406df5
test eax, eax
je 0x405123
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x405123
cmp word [eax], bx
je 0x405123
push ebx
push edi
push 3
push ebx
push dword [ebp + 0x14]
push dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x405137
push ebx
push edi
push 3
push ebx
push dword [ebp + 0x14]
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x405153
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x405153
mov dword [esi + 0xc18], 1
cmp edi, 0xffffffff
setne byte [ebp + 0x13]
mov byte [esi + 0x12], bl
mov dword [esi + 0xc], ebx
mov byte [esi + 0x10], bl
cmp byte [ebp + 0x13], bl
je 0x4051b5
mov dword [esi + 4], edi
cmp dword [ebp + 0xc], ebx
je 0x405181
push dword [ebp + 0xc]
lea eax, [esi + 0x418]
push eax
call fcn.0040dfae
jmp 0x40518a
xor eax, eax
mov word [esi + 0x418], ax
lea eax, [esi + 0x17]
cmp dword [ebp + 8], ebx
je 0x40519d
push dword [ebp + 8]
push eax
call fcn.0040a3c7
jmp 0x4051ab
push 0x1000000
push eax
push dword [ebp + 0xc]
call fcn.0040dd8b
push dword [esi + 4]
mov ecx, esi
call fcn.00404f1a
mov al, byte [ebp + 0x13]
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x4052e5
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0xc], 1
mov esi, 0x4e20
jne 0x40530b
cmp dword [ebp + 0xc], esi
jbe 0x405300
mov dword [ebp + 0xc], esi
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [edi + 4], eax
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40535b
mov ecx, edi
call fcn.00405064
test al, al
je 0x405341
cmp dword [ebp + 0xc], esi
jbe 0x405341
push esi
push dword [ebp + 8]
mov ecx, edi
call fcn.004052e5
jmp 0x40535e
cmp dword [edi + 0xc], 1
jne 0x405356
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x405356
xor eax, eax
jmp 0x40535e
or eax, 0xffffffff
jmp 0x40535e
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 8