joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47ab90
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x47ab9f
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.0047a8b1
cmpsd dword [esi], dword es:[edi]
and cl, ch
int3
Function at 0x47b120
Capabilities:
Contain obfuscated stackstrings

Disassembly:
test dword [ecx + 0x56fffffc], edi
mov byte [ebp - 0x346], 0x6d
mov byte [ebp - 0x345], 0x40
mov byte [ebp - 0x344], 0x44
mov byte [ebp - 0x343], 0x55
mov byte [ebp - 0x342], 0x25
lea eax, [ebp - 0x354]
push eax
call fcn.0047a8c1
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0047a876
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
mov byte [ebp - 0x3b5], 0xa
mov byte [ebp - 0x3b4], 3
mov byte [ebp - 0x3b3], 0x28
mov byte [ebp - 0x3b2], 7
mov byte [ebp - 0x3b1], 0xb
mov byte [ebp - 0x3b0], 3
mov byte [ebp - 0x3af], 0x27
mov byte [ebp - 0x3ae], 0x66
lea eax, [ebp - 0x3c4]
push eax
call fcn.0047a8c1
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0047a876
add esp, 0xc
mov dword [ebp - 0x538], eax
and byte [ebp - 0x3ec], 0
and byte [ebp - 0x3eb], 0
mov byte [ebp - 0x3ea], 0x11
and byte [ebp - 0x3e9], 0
mov byte [ebp - 0x3e8], 0xa9
mov byte [ebp - 0x3e7], 0x8b
mov byte [ebp - 0x3e6], 0x9a
mov byte [ebp - 0x3e5], 0xa3
mov byte [ebp - 0x3e4], 0x81
mov byte [ebp - 0x3e3], 0x8a
mov byte [ebp - 0x3e2], 0x9b
mov byte [ebp - 0x3e1], 0x82
mov byte [ebp - 0x3e0], 0x8b
Function at 0x49ad10
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x49aeab
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add edi, 0x3e8
push edi
call fcn.004a3cc6
push 0x4d1590
push ebx
mov dword [0x4fce58], eax
call fcn.0049f6bd
push eax
push edi
mov dword [0x4fce68], eax
mov eax, dword [0x4fce58]
push 1
push eax
call fcn.0049f5e2
mov ecx, dword [0x4fce68]
push ecx
call fcn.0049f307
mov edx, dword [0x4fce58]
mov eax, edx
mov ecx, 0xfffffffe
add esp, 0x20
mov dword [0x4fce68], 0
mov dword [0x4fce50], eax
sub ecx, edx
mov bl, 0x41
lea ecx, [ecx]
cmp byte [eax], 0x49
jne 0x49ae0e
cmp byte [eax + 1], 0x70
jne 0x49ae0e
cmp byte [eax + 2], 0x61
jne 0x49ae0e
cmp byte [eax + 3], 0x73
jne 0x49ae0e
cmp byte [eax + 4], 0x74
jne 0x49ae0e
cmp byte [eax + 5], 0x65
jne 0x49ae0e
cmp byte [eax + 6], 0x72
jne 0x49ae0e
cmp byte [eax + 7], 0xb6
jne 0x49ae0e
cmp byte [eax + 8], 0x7c
jne 0x49ae0e
cmp byte [eax + 9], 0x9e
jne 0x49ae0e
cmp byte [eax + 0xa], 0xb0
jne 0x49ae0e
cmp byte [eax + 0xb], 0x15
jne 0x49ae0e
cmp byte [eax + 0xc], 0x3a
jne 0x49ae0e
cmp byte [eax + 0xd], 0xc9
jne 0x49ae0e
cmp byte [eax + 0xe], 0x21
jne 0x49ae0e
cmp byte [eax + 0xf], bl
je 0x49ae19
lea esi, [ecx + eax + 2]
cmp esi, edi
jae 0x49ae19
inc eax
jmp 0x49adb0
mov ecx, eax
sub ecx, edx
mov dword [0x4fce50], eax
cmp ecx, edi
jae 0x49ae9f
add eax, 0x10
mov dword [0x4fce50], eax
mov dword [0x4fce60], 0x49a9c0
mov dword [0x4fce64], 0x49a9f0
mov dword [0x4fce10], 0x49d1c0
mov dword [0x4fce14], 0x49d1e0
mov dword [0x4fce08], 0x49d1f0
mov dword [0x4fce0c], 0x49d210
call fcn.0049cfc0
push 0x4fce18
call fcn.0049aec0
push 0x4fce08
push 0x4fce10
push 0x4fce18
push 0x4fce60
call fcn.0049cda0
add esp, 0x14
neg eax
pop edi
sbb eax, eax
pop esi
inc eax
pop ebx
pop ebp
ret
call fcn.0049ab60
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x49d130
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi]
test ecx, ecx
je 0x49d15d
push ebx
push edi
movzx edi, byte [edx]
movzx ebx, al
xor edi, ebx
shr eax, 8
xor eax, dword [edi*4 + 0x4fdf00]
inc edx
dec ecx
jne 0x49d145
pop edi
pop ebx
mov dword [esi], eax
pop esi
pop ebp
ret

Function at 0x49f71b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4f6cdc]
jne 0x49f725
repz ret
jmp fcn.004a7672
Function at 0x4c1056
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4f6cdc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004a87f3
and dword [ebp - 0x14], 0
cmp dword [0x4fdb68], 0
mov dword [ebp - 0x18], eax
jne 0x4c1109
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4c11b1
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4dffa4
push ebx
call edi
test eax, eax
je 0x4c11b1
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4fdb68], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4fdb6c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4fdb70], eax
call edi
push eax
call esi
mov dword [0x4fdb78], eax
test eax, eax
je 0x4c1109
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4fdb74], eax
mov eax, dword [0x4fdb74]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4c1162
cmp dword [0x4fdb78], ecx
je 0x4c1162
push eax
call esi
push dword [0x4fdb78]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4c1162
test ebx, ebx
je 0x4c1162
call edi
test eax, eax
je 0x4c1159
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4c1159
test byte [ebp - 8], 1
jne 0x4c1162
or dword [ebp + 0x10], 0x200000
jmp 0x4c1195
mov eax, dword [0x4fdb6c]
cmp eax, dword [ebp - 0x18]
je 0x4c1195
push eax
call esi
test eax, eax
je 0x4c1195
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4c1195
mov eax, dword [0x4fdb70]
cmp eax, dword [ebp - 0x18]
je 0x4c1195
push eax
call esi
test eax, eax
je 0x4c1195
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4fdb68]
call esi
test eax, eax
je 0x4c11b1
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4c11b3
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049f71b
leave
ret
Function at 0x401028
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4476b1
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.00405180
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 0x401f20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x447853
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 0x401fa0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x447853
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 0x4060e0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9c
mov eax, dword [0x4aab64]
push ebx
xor ebx, ebx
cmp eax, ebx
push esi
push edi
je 0x40610e
mov ecx, dword [0x4aab58]
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 [0x4aab68], ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
cmp esi, ebx
je 0x4061e3
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4513ac
push esi
call edi
cmp eax, ebx
mov dword [0x4aab48], eax
je 0x4061e3
push str.MonitorFromWindow
push esi
call edi
cmp eax, ebx
mov dword [0x4aab4c], eax
je 0x4061e3
push str.MonitorFromRect
push esi
call edi
cmp eax, ebx
mov dword [0x4aab50], eax
je 0x4061e3
push str.MonitorFromPoint
push esi
call edi
cmp eax, ebx
mov dword [0x4aab54], eax
je 0x4061e3
push str.EnumDisplayMonitors
push esi
call edi
cmp eax, ebx
mov dword [0x4aab5c], eax
je 0x4061e3
push str.GetMonitorInfoA
push esi
call edi
cmp eax, ebx
mov dword [0x4aab58], eax
je 0x4061e3
push str.EnumDisplayDevicesA
push esi
call edi
cmp eax, ebx
mov dword [0x4aab60], eax
je 0x4061e3
mov eax, 1
mov dword [0x4aab64], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov dword [0x4aab48], ebx
mov dword [0x4aab4c], ebx
mov dword [0x4aab50], ebx
mov dword [0x4aab54], ebx
mov dword [0x4aab58], ebx
mov dword [0x4aab5c], ebx
mov dword [0x4aab60], ebx
mov dword [0x4aab64], 1
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4064a0
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 0x40660a
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 0x406522
mov byte [eax], cl
inc eax
dec edi
jne 0x406513
jmp 0x406526
test edi, edi
jne 0x406527
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 0x4065e8
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 0x4065f6
cmp eax, 5
jg 0x4065f6
push 0
mov dword [esi + 0x1c], eax
mov ecx, dword [eax*4 + 0x455d9c]
imul eax, eax, 0x1c
push 0
push 0x10
push ecx
push 0x455d80
push ecx
lea ecx, [eax + 0x4ed91c]
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.00409d20
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 0x4068c0
Capabilities:
Encode data using xor

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

Function at 0x4068f0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
xor eax, eax
test esi, esi
jle 0x406911
mov ecx, dword [esp + 8]
nop
mov dl, byte [eax + ecx]
sub dl, 2
xor dl, 0x10
mov byte [eax + ecx], dl
inc eax
cmp eax, esi
jl 0x406900
pop esi
ret
Function at 0x406cf0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x447f52
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 0x406eb0
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 0x406f8d
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
lea ecx, [eax + 0xc]
cmp edx, ecx
jne 0x406f8d
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 0x406f82
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 0x406f60
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 0x406fa0
Capabilities:
Encode data using xor
Read file on windows
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x447f84
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 0x407095
mov dl, byte [ebx]
xor dl, 0x48
sub dl, 4
mov byte [ebx], dl
inc ebx
dec esi
jne 0x407087
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 0x407146
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