joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40da10
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xb000]
push edi
or ebp, 0xffffffff
jmp 0x40da32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40da39
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40da28
mov eax, 1
add ebx, ebx
jne 0x40da4b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40da40
jne 0x40da5c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40da40
xor ecx, ecx
sub eax, 3
jb 0x40da70
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40dae2
mov ebp, eax
add ebx, ebx
jne 0x40da7b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40da88
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40daac
inc ecx
add ebx, ebx
jne 0x40da98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40da8d
jne 0x40daa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40da8d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40dacc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40dabd
jmp 0x40da2e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40dacc
add edi, ecx
jmp 0x40da2e
pop esi
lea edi, [esi + 0xb000]
mov eax, dword [edi]
or eax, eax
je 0x40db2b
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xd000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xd064]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40dae9
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xd068]
or eax, eax
je 0x40db25
mov dword [ebx], eax
add ebx, 4
jmp 0x40db06
call dword [esi + 0xd078]
mov ebp, dword [esi + 0xd06c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40db5f
sub esp, 0xffffff80
jmp 0x40b1e6

Function at 0x91b4c4
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x91b4ca
pop ebp
sub ebp, 6
sub ebp, 0x51b4c4
jmp 0x91b528
jmp 0x91b531
mov eax, 0x51b4c4
add eax, ebp
add eax, 0x93
mov ecx, 0x637
mov edx, 0xe37bf90b
xor byte [eax], dl
inc eax
dec ecx
jne 0x91b548
jmp 0x91b55b
popal
dec ebx
arpl word [ebx], cx
sbb ecx, dword [ebx]
or esp, dword [ebx + 0xb]
invalid
Function at 0x4062e5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40b508
cmp edx, dword [eax]
je 0x406307
add eax, 8
inc ecx
cmp eax, 0x40b598
jl 0x4062f8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40b508]
jne 0x406435
mov eax, dword [0x40ba54]
cmp eax, 1
je 0x40640f
test eax, eax
jne 0x406338
cmp dword [0x40b1b4], 1
je 0x40640f
cmp edx, 0xfc
je 0x406435
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40636f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004037b0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004038a0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4063b2
lea eax, [ebp - 0x1a4]
push eax
call fcn.004038a0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40957c
push edi
call fcn.004077b0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004037b0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004037c0
lea eax, [ebp - 0xa0]
push 0x40955c
push eax
call fcn.004037c0
push dword [esi + 0x40b50c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004037c0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00407726
add esp, 0x2c
pop edi
jmp 0x406435
lea eax, [ebp + 8]
lea esi, [esi + 0x40b50c]
push 0
push eax
push dword [esi]
call fcn.004038a0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x407ef8
nop
mov ecx, 0x7f31350c
nop
test eax, eax
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x42e024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x2b33577
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x401028
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x447641
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push esi
mov esi, ecx
push 0
mov dword [esp + 8], esi
call sub.MFC71.DLL_CWinApp::CWinApp
push 0x4506c8
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0
mov dword [esi], 0x450608
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
push 1
push 1
push eax
mov byte [esp + 0x38], 1
call fcn.00405190
add esp, 0xc
lea ecx, [esp + 8]
mov byte [esp + 0x2c], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esp + 0x24]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret

Function at 0x401f30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4477e3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [esp + 0x34]
push esi
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 8], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov ecx, dword [esp + 0x3c]
push ecx
mov ecx, eax
mov dword [esp + 0x30], 1
call dword [0x450378]
mov esi, dword [esp + 0x34]
push eax
mov ecx, esi
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 8]
mov dword [esp + 4], 1
mov byte [esp + 0x2c], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esp + 0x24]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x401fb0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4477e3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [esp + 0x34]
push esi
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 8], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov ecx, dword [esp + 0x3c]
push ecx
mov ecx, eax
mov dword [esp + 0x30], 1
call dword [0x450374]
mov esi, dword [esp + 0x34]
push eax
mov ecx, esi
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 8]
mov dword [esp + 4], 1
mov byte [esp + 0x2c], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esp + 0x24]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x4060f0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9c
mov eax, dword [0x4aab74]
push ebx
xor ebx, ebx
cmp eax, ebx
push esi
push edi
je 0x40611e
mov ecx, dword [0x4aab68]
xor eax, eax
cmp ecx, ebx
setne al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, 0x24
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov edx, dword [esp + 0x20]
xor ecx, ecx
cmp edx, 2
sete cl
push str.USER32
mov dword [0x4aab78], ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
cmp esi, ebx
je 0x4061f3
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4513ac
push esi
call edi
cmp eax, ebx
mov dword [0x4aab58], eax
je 0x4061f3
push str.MonitorFromWindow
push esi
call edi
cmp eax, ebx
mov dword [0x4aab5c], eax
je 0x4061f3
push str.MonitorFromRect
push esi
call edi
cmp eax, ebx
mov dword [0x4aab60], eax
je 0x4061f3
push str.MonitorFromPoint
push esi
call edi
cmp eax, ebx
mov dword [0x4aab64], eax
je 0x4061f3
push str.EnumDisplayMonitors
push esi
call edi
cmp eax, ebx
mov dword [0x4aab6c], eax
je 0x4061f3
push str.GetMonitorInfoA
push esi
call edi
cmp eax, ebx
mov dword [0x4aab68], eax
je 0x4061f3
push str.EnumDisplayDevicesA
push esi
call edi
cmp eax, ebx
mov dword [0x4aab70], eax
je 0x4061f3
mov eax, 1
mov dword [0x4aab74], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov dword [0x4aab58], ebx
mov dword [0x4aab5c], ebx
mov dword [0x4aab60], ebx
mov dword [0x4aab64], ebx
mov dword [0x4aab68], ebx
mov dword [0x4aab6c], ebx
mov dword [0x4aab70], ebx
mov dword [0x4aab74], 1
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4064b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x204
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x450c60
push ebx
mov esi, ecx
call dword [sym.imp.MSVCR71.dll_fopen]
add esp, 8
test eax, eax
mov dword [esi + 0x5ac], eax
je 0x40661a
mov edi, dword [sym.imp.MSVCR71.dll_fseek]
push 2
push 0
push eax
call edi
mov eax, dword [esi + 0x5ac]
push eax
call dword [sym.imp.MSVCR71.dll_ftell]
mov ecx, dword [esi + 0x5ac]
push 0
push 0
push ecx
mov dword [esi + 0x5a0], eax
call edi
mov edx, dword [ebp + 0xc]
mov dword [esi + 0x18], edx
lea eax, [esi + 0x20]
mov edx, ebx
add esp, 0x1c
mov edi, 0x104
sub edx, eax
mov cl, byte [edx + eax]
test cl, cl
je 0x406532
mov byte [eax], cl
inc eax
dec edi
jne 0x406523
jmp 0x406536
test edi, edi
jne 0x406537
dec eax
mov byte [eax], 0
xor eax, eax
mov byte [esp + 0x10], 0
mov ecx, 0x3f
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0x110], 0
mov ecx, 0x3f
lea edi, [esp + 0x111]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x110]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
push ebx
call dword [sym.imp.MSVCR71.dll__splitpath]
lea edx, [esp + 0x24]
push str.param
push edx
call dword [sym.imp.MSVCR71.dll__stricmp]
mov eax, dword [esi + 0x18]
add esp, 0x1c
test eax, eax
je 0x4065f8
mov eax, dword [esi + 0x5ac]
push eax
push 1
lea ecx, [esp + 0x14]
push 4
push ecx
call dword [sym.imp.MSVCR71.dll_fread]
mov eax, dword [esp + 0x1c]
add esp, 0x10
test eax, eax
jle 0x406606
cmp eax, 5
jg 0x406606
push 0
mov dword [esi + 0x1c], eax
mov ecx, dword [eax*4 + 0x455da4]
imul eax, eax, 0x1c
push 0
push 0x10
push ecx
push 0x455d88
push ecx
lea ecx, [eax + 0x4ed92c]
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
mov edx, dword [esi + 0x1c]
push eax
push edx
lea ecx, [esi + 0x124]
call fcn.00409d50
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi + 0x5ac]
push 0
push 0
push eax
call dword [sym.imp.MSVCR71.dll_fseek]
add esp, 0xc
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4068d0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
xor eax, eax
test esi, esi
jle 0x4068f1
mov ecx, dword [esp + 8]
nop
mov dl, byte [eax + ecx]
xor dl, 0x10
add dl, 0x31
mov byte [eax + ecx], dl
inc eax
cmp eax, esi
jl 0x4068e0
pop esi
ret

Function at 0x406900
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
xor eax, eax
test esi, esi
jle 0x406921
mov ecx, dword [esp + 8]
nop
mov dl, byte [eax + ecx]
sub dl, 0x31
xor dl, 0x10
mov byte [eax + ecx], dl
inc eax
cmp eax, esi
jl 0x406910
pop esi
ret
Function at 0x406950
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [sym.imp.MSVCR71.dll_fseek]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
push 2
push 0
push esi
mov edi, ecx
call ebx
push esi
call dword [sym.imp.MSVCR71.dll_ftell]
push 0
push 0
push esi
mov ebp, eax
call ebx
mov ebx, dword [sym.imp.MSVCR71.dll_fread]
xor eax, eax
push esi
push 1
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x34]
push 4
push eax
call ebx
push esi
push 1
lea ecx, [esp + 0x4c]
push 4
push ecx
call ebx
mov edx, dword [esp + 0x58]
push esi
push 1
push 4
push edx
call ebx
mov eax, dword [esp + 0x5c]
add esp, 0x4c
cmp eax, 0x100
jne 0x406a14
mov eax, dword [esp + 0x18]
lea ecx, [eax + 0xc]
cmp ebp, ecx
jne 0x406a14
push eax
mov dword [edi + 4], eax
call sub.MFC71.DLL_operator_new_1
mov edx, dword [esp + 0x1c]
push esi
push edx
push 1
push eax
mov dword [edi], eax
call ebx
mov ecx, dword [esp + 0x2c]
add esp, 0x14
xor eax, eax
test ecx, ecx
jle 0x406a0a
mov ecx, dword [edi]
mov dl, byte [ecx + eax]
add ecx, eax
add dl, 8
mov byte [ecx], dl
mov edx, dword [edi]
mov bl, byte [edx + eax]
lea ecx, [edx + eax]
xor bl, 0x32
mov byte [ecx], bl
mov ecx, dword [esp + 0x18]
inc eax
cmp eax, ecx
jl 0x4069e8
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
pop ecx
ret 8
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret 8
Function at 0x406cf0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x447ee2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x18]
test esi, esi
push edi
mov edi, ecx
je 0x406d29
lea eax, [esp + 8]
push eax
push esi
mov dword [esp + 0x10], 0
call fcn.00406950
test al, al
jne 0x406d3e
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 8
push ebp
mov ebp, dword [sym.imp.MSVCR71.dll_fclose]
push esi
call ebp
mov ecx, dword [esp + 0x28]
add esp, 4
push ecx
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
push 0x2e
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0
call dword [sym.imp.MFC71.DLL_ATL::CStringT::ReverseFind]
push eax
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x28]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Left]
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c], 1
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator]
lea ecx, [esp + 0x24]
mov byte [esp + 0x18], 0
call dword [0x45017c]
mov eax, dword [esp + 0xc]
imul eax, eax, 0x104
add eax, str..dds
push eax
lea ecx, [esp + 0x24]
call dword [0x4501a0]
push 0x450c30
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.MSVCR71.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
jne 0x406df6
lea ecx, [esp + 0x20]
call dword [0x45017c]
pop ebp
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 8
mov ecx, dword [edi + 4]
mov edx, dword [edi]
push esi
push ecx
push 1
push edx
call dword [sym.imp.MSVCR71.dll_fwrite]
push esi
call ebp
add esp, 0x14
lea ecx, [esp + 0x20]
call dword [0x45017c]
mov ecx, dword [esp + 0x10]
pop ebp
pop edi
mov al, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x406ec0
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [sym.imp.MSVCR71.dll_fseek]
push esi
mov esi, dword [esp + 0x18]
push edi
push 2
push 0
push esi
mov edi, ecx
call ebx
push esi
call dword [sym.imp.MSVCR71.dll_ftell]
push 0
push 0
push esi
mov dword [esp + 0x30], eax
call ebx
mov ebx, dword [sym.imp.MSVCR71.dll_fread]
push esi
push 1
lea eax, [esp + 0x30]
push 4
push eax
mov dword [esp + 0x38], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x3c], 0
call ebx
push esi
push 1
lea ecx, [esp + 0x50]
push 4
push ecx
call ebx
push esi
push 1
lea edx, [esp + 0x54]
push 4
push edx
call ebx
mov eax, dword [esp + 0x58]
add esp, 0x4c
cmp eax, 0x100
jne 0x406f9d
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
lea ecx, [eax + 0xc]
cmp edx, ecx
jne 0x406f9d
push eax
mov dword [edi + 4], eax
call sub.MFC71.DLL_operator_new_1
mov edx, dword [esp + 0x20]
push esi
push edx
push 1
push eax
mov dword [edi], eax
call ebx
mov ecx, dword [esp + 0x30]
add esp, 0x14
xor eax, eax
test ecx, ecx
jle 0x406f92
lea ecx, [ecx]
mov ecx, dword [edi]
mov dl, byte [ecx + eax]
add ecx, eax
add dl, 4
mov byte [ecx], dl
mov edx, dword [edi]
mov bl, byte [edx + eax]
lea ecx, [edx + eax]
xor bl, 0x48
mov byte [ecx], bl
mov ecx, dword [esp + 0x1c]
inc eax
cmp eax, ecx
jl 0x406f70
pop edi
pop esi
mov al, 1
pop ebx
add esp, 0xc
ret 4
pop edi
pop esi
xor al, al
pop ebx
add esp, 0xc
ret 4
Function at 0x406fb0
Capabilities:
Encode data using xor
Read file on windows
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x447f14
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x24]
push esi
push edi
mov edi, dword [sym.imp.MSVCR71.dll_fseek]
push 2
push 0
push ebp
call edi
push ebp
call dword [sym.imp.MSVCR71.dll_ftell]
push 0
push 0
push ebp
mov esi, eax
call edi
lea eax, [esi + 0xc]
push eax
mov dword [esp + 0x38], eax
call sub.MFC71.DLL_operator_new_1
mov edi, eax
mov eax, dword [esp + 0x50]
add esp, 0x20
push eax
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
push 0x2e
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0
call dword [sym.imp.MFC71.DLL_ATL::CStringT::ReverseFind]
lea ecx, [esp + 0x10]
mov ebx, eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetLength]
sub eax, ebx
push eax
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Right]
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 1
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator]
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 0
call dword [0x45017c]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::MakeLower]
push ebp
push esi
lea ebx, [edi + 0xc]
push 1
push ebx
mov dword [edi], 0x100
mov dword [edi + 4], esi
mov dword [edi + 8], 0
call dword [sym.imp.MSVCR71.dll_fread]
push ebp
mov ebp, dword [sym.imp.MSVCR71.dll_fclose]
call ebp
add esp, 0x14
test esi, esi
jle 0x4070a5
mov dl, byte [ebx]
xor dl, 0x48
sub dl, 4
mov byte [ebx], dl
inc ebx
dec esi
jne 0x407097
mov eax, dword [esp + 0x30]
push eax
lea ecx, [esp + 0x30]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
mov bl, 2
push 0x2e
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], bl
call dword [sym.imp.MFC71.DLL_ATL::CStringT::ReverseFind]
push eax
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x34]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Left]
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 3
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator]
lea ecx, [esp + 0x30]
mov byte [esp + 0x24], bl
call dword [0x45017c]
push str..mxf
lea ecx, [esp + 0x30]
call dword [0x4501a0]
push 0x450c30
lea ecx, [esp + 0x30]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.MSVCR71.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
jne 0x407156
push edi
call sub.MFC71.DLL_operator_delete
add esp, 4
lea ecx, [esp + 0x2c]
call dword [0x45017c]
lea ecx, [esp + 0x10]
call dword [0x45017c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 8
mov edx, dword [esp + 0x18]
push esi
push edx
push 1
push edi
call dword [sym.imp.MSVCR71.dll_fwrite]
push esi
call ebp
push edi
call sub.MFC71.DLL_operator_delete
add esp, 0x18
lea ecx, [esp + 0x2c]
call dword [0x45017c]
lea ecx, [esp + 0x10]
call dword [0x45017c]
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 8
Function at 0x4071a0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x447f32
push eax
mov dword fs:[0], esp
push ebp
push esi
mov esi, dword [esp + 0x18]
test esi, esi
push edi
mov edi, ecx
je 0x40726a
push esi
call fcn.00406ec0
test al, al
je 0x40726a
mov ebp, dword [sym.imp.MSVCR71.dll_fclose]
push esi
call ebp
mov eax, dword [esp + 0x24]
add esp, 4
push eax
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
push 0x2e
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0
call dword [sym.imp.MFC71.DLL_ATL::CStringT::ReverseFind]
push eax
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Left]
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x18], 1
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator]
lea ecx, [esp + 0x20]
mov byte [esp + 0x14], 0
call dword [0x45017c]
push 0x450e14
lea ecx, [esp + 0x20]
call dword [0x4501a0]
push 0x450c30
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.MSVCR71.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
jne 0x407280
lea ecx, [esp + 0x1c]
call dword [0x45017c]
xor al, al
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
add esp, 0xc
ret 8
mov edx, dword [edi + 4]
mov eax, dword [edi]
push esi
push edx
push 1
push eax
call dword [sym.imp.MSVCR71.dll_fwrite]
push esi
call ebp
add esp, 0x14
lea ecx, [esp + 0x1c]
call dword [0x45017c]
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov al, 1
mov dword fs:[0], ecx
pop ebp
add esp, 0xc
ret 8

Function at 0x4077a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x447fa9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [esp + 0x2c]
push esi
mov esi, ecx
push eax
lea ecx, [esp + 8]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
push eax
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esi + 8]
mov dword [esp + 0x30], 0
call fcn.00407700
lea ecx, [esp + 4]
mov dword [esp + 0x28], 0xffffffff
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esi + 0xc]
mov eax, dword [esp + 0x30]
cmp ecx, eax
pop esi
je 0x407812
mov eax, dword [eax + 0x28]
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 4
mov ecx, dword [esp + 0x1c]
xor eax, eax
mov dword fs:[0], ecx
add esp, 0x28
ret 4