joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406520
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 0x40668a
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]
lea eax, [esi + 0x20]
mov ecx, ebx
add esp, 0x1c
mov dword [esi + 0x18], edx
mov edi, 0x104
sub ecx, eax
mov dl, byte [ecx + eax]
test dl, dl
je 0x4065a2
mov byte [eax], dl
inc eax
dec edi
jne 0x406593
jmp 0x4065a6
test edi, edi
jne 0x4065a7
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 0x406668
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 0x406676
cmp eax, 2
jg 0x406676
push 0
mov dword [esi + 0x1c], eax
mov ecx, dword [eax*4 + 0x455e54]
imul eax, eax, 0x1c
push 0
push 0x10
push ecx
push 0x455e38
push ecx
lea ecx, [eax + 0x4eecb4]
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.00409dd0
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 0x406940
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
xor eax, eax
test esi, esi
jle 0x406961
mov ecx, dword [esp + 8]
nop
mov dl, byte [eax + ecx]
xor dl, 0x77
add dl, 0x11
mov byte [eax + ecx], dl
inc eax
cmp eax, esi
jl 0x406950
pop esi
ret

Function at 0x406970
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
xor eax, eax
test esi, esi
jle 0x406991
mov ecx, dword [esp + 8]
nop
mov dl, byte [eax + ecx]
sub dl, 0x11
xor dl, 0x77
mov byte [eax + ecx], dl
inc eax
cmp eax, esi
jl 0x406980
pop esi
ret
Function at 0x4069a0
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, 0x190
jne 0x406a64
mov eax, dword [esp + 0x18]
lea ecx, [eax + 0xc]
cmp ebp, ecx
jne 0x406a64
push eax
mov dword [edi + 4], eax
call fcn.004275f0
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 0x406a5a
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 0x406a38
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 0x406d40
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x447fe2
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 0x406d79
lea eax, [esp + 8]
push eax
push esi
mov dword [esp + 0x10], 0
call fcn.004069a0
test al, al
jne 0x406d8e
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_3]
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 [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, dword [esp + 0xc]
imul eax, eax, 0x104
add eax, str..dds
push eax
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_2]
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 0x406e46
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
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 [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
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 0x406f30
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, 0x190
jne 0x40700d
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
lea ecx, [eax + 0xc]
cmp edx, ecx
jne 0x40700d
push eax
mov dword [edi + 4], eax
call fcn.004275f0
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 0x407002
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 0x406fe0
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 0x407210
Capabilities:
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x448032
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 0x4072da
push esi
call fcn.00406f30
test al, al
je 0x4072da
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_3]
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 [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
push 0x450e14
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_2]
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 0x4072f0
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
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 [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
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 0x4077e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4480a9
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.00407740
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 0x407852
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
Function at 0x40e2e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4498d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov ecx, dword [esp + 0x30]
test ecx, ecx
mov dword [esp + 0xc], 0
je 0x40e346
mov eax, dword [ecx + 4]
mov edx, dword [eax]
push esi
push edi
lea esi, [ecx + 4]
push eax
push edx
lea eax, [esp + 0x10]
push eax
mov edi, ecx
call fcn.0040de10
mov eax, dword [esi]
push eax
call sub.MFC71.DLL_operator_delete
push edi
mov dword [esi], 0
mov dword [edi + 8], 0
call sub.MFC71.DLL_operator_delete
add esp, 8
pop edi
mov dword [esp + 0x34], 0
pop esi
lea ecx, [esp + 0x14]
mov dword [esp + 0xc], 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 [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 0x20

Function at 0x40f8d0
Capabilities:
Hash data using sha256

Disassembly:
mov eax, ecx
xor ecx, ecx
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
ret
Function at 0x4130c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x449ace
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
xor edi, edi
lea ebp, [esi + 0x1174]
mov ecx, ebp
mov dword [esp + 0xc], esi
mov dword [esi], 0x456788
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], 6
mov dword [esi + 0x24], 0x16
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], edi
call fcn.00412c10
mov dword [ebp + 4], eax
mov byte [eax + 0xe], 1
mov eax, dword [ebp + 4]
mov dword [eax + 4], eax
mov eax, dword [ebp + 4]
mov dword [eax], eax
mov eax, dword [ebp + 4]
mov dword [eax + 8], eax
mov dword [ebp + 8], edi
lea ebp, [esi + 0x1198]
mov ecx, ebp
mov dword [esp + 0x18], edi
call fcn.00412c10
mov dword [ebp + 4], eax
mov ecx, dword [esp + 0x10]
mov byte [eax + 0xe], 1
mov eax, dword [ebp + 4]
mov dword [eax + 4], eax
mov eax, dword [ebp + 4]
mov dword [eax], eax
mov eax, dword [ebp + 4]
mov dword [eax + 8], eax
mov dword [ebp + 8], edi
mov dword [esi + 0x11c8], edi
mov dword [esi + 0x11cc], edi
mov dword [esi + 0x11d0], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
pop edi
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x41fac0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x449e29
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
push edi
push 0x8b5188
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [esp + 0x34]
mov edx, dword [esi + 0x44]
mov eax, dword [esp + 0x38]
mov edi, dword [esi + 0x48]
inc edx
push eax
lea ecx, [esp + 0xc]
mov dword [esi + 0x44], edx
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__]
lea ecx, [esp + 8]
push ecx
mov ecx, 0x8b52d0
mov dword [esp + 0x30], 0
call fcn.0041f780
lea ecx, [esp + 8]
mov dword [eax], esi
mov dword [esp + 0x2c], 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_]
push 0x8b5188
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x24]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret
Function at 0x420d10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x449f09
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
push edi
xor edi, edi
mov ecx, esi
mov dword [esp + 8], edi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetManager]
push eax
lea ecx, [esp + 0xc]
call dword [0x45008c]
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x24]
push edi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::StringLength]
add esp, 4
push eax
push edi
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetLength]
push eax
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::Concatenate]
mov esi, dword [esp + 0x30]
add esp, 0x14
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x426b70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x48
cmp eax, 1
push ebx
push ebp
mov ebx, ecx
push esi
push edi
mov dword [ebx + 0x7c], eax
mov dword [ebx + 0x80], 0
jne 0x426cf2
mov edi, dword [esp + 0x5c]
test edi, edi
jne 0x426baa
pop edi
pop esi
pop ebp
mov eax, 0x80070057
pop ebx
add esp, 0x48
ret 0xc
mov eax, dword [ebx]
test eax, eax
je 0x426bbf
push eax
call sub.MFC71.DLL_operator_delete_1
add esp, 4
mov dword [ebx], 0
mov esi, dword [sym.imp.WINMM.dll_mmioOpenA]
push 0
push 0
push edi
call esi
test eax, eax
mov dword [ebx + 4], eax
je 0x426d0b
push 0
push eax
call dword [sym.imp.WINMM.dll_mmioClose]
push 0x10000
push 0
push edi
call esi
test eax, eax
mov dword [ebx + 4], eax
jne 0x426cb2
mov ebp, dword [sym.imp.KERNEL32.dll_FindResourceA]
push str.WAVE
push edi
push eax
call ebp
mov esi, eax
test esi, esi
jne 0x426c1d
push 0x45817c
push edi
push eax
call ebp
mov esi, eax
test esi, esi
je 0x426d0b
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x426d0b
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
test ebp, ebp
je 0x426d0b
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x426d0b
push ebp
call fcn.004275f0
mov dword [ebx + 0x90], eax
mov edi, eax
mov ecx, ebp
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
add esp, 4
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x10]
mov ecx, 0x48
mov edi, edi
mov byte [eax], 0
inc eax
dec ecx
jne 0x426c80
mov ecx, dword [ebx + 0x90]
push 0x10000
lea edx, [esp + 0x14]
push edx
push 0
mov dword [esp + 0x20], 0x204d454d
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ecx
call dword [sym.imp.WINMM.dll_mmioOpenA]
mov dword [ebx + 4], eax
mov ecx, ebx
call fcn.00426350
mov esi, eax
test esi, esi
jge 0x426cd7
mov eax, dword [ebx + 4]
push 0
push eax
call dword [sym.imp.WINMM.dll_mmioClose]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 0xc
mov ecx, ebx
call fcn.004264d0
test eax, eax
jl 0x426d4b
mov ecx, dword [ebx + 0xc]
pop edi
pop esi
pop ebp
mov dword [ebx + 0x30], ecx
pop ebx
add esp, 0x48
ret 0xc
mov edx, dword [esp + 0x5c]
push 0x11002
push 0
push edx
call dword [sym.imp.WINMM.dll_mmioOpenA]
test eax, eax
mov dword [ebx + 4], eax
jne 0x426d1a
pop edi
pop esi
pop ebp
mov eax, 0x80004005
pop ebx
add esp, 0x48
ret 0xc
mov eax, dword [esp + 0x60]
push eax
mov ecx, ebx
call fcn.00426800
mov esi, eax
test esi, esi
jge 0x426d44
mov ecx, dword [ebx + 4]
push 0
push ecx
call dword [sym.imp.WINMM.dll_mmioClose]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 0xc
mov ecx, ebx
call fcn.004264d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 0xc
Function at 0x427be0
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x74
push 0x4586b0
call fcn.0042818c
xor ebx, ebx
mov dword [ebp - 0x20], ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x427c20
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x427c20
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x427c38
cmp eax, 0x20b
je 0x427c25
mov dword [ebp - 0x1c], ebx
jmp 0x427c4c
cmp dword [ecx + 0x84], 0xe
jbe 0x427c20
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x427c46
cmp dword [ecx + 0x74], 0xe
jbe 0x427c20
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.MSVCR71.dll___set_app_type]
pop ecx
or dword [0x1f4dfec], 0xffffffff
or dword [0x1f4dff0], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x1f4db98]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x1f4db94]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1f4dfe8], eax
call fcn.00428290
call fcn.00428330
cmp dword [0x4985e0], ebx
jne 0x427cac
push fcn.00428330
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.0042831e
push 0x4774a0
push 0x47749c
call sub.MSVCR71.dll__initterm
push 0x4282d4
call fcn.00427b10
mov eax, dword [0x1f4db90]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x1f4db8c]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCR71.dll___getmainargs]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, ebx
jge 0x427d00
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x477498
push section..data
call sub.MSVCR71.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCR71.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x24], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x427d7e
cmp al, bl
je 0x427d2a
cmp dword [ebp - 0x20], ebx
jne 0x427d7e
mov al, byte [esi]
cmp al, bl
je 0x427d3a
cmp al, 0x20
ja 0x427d3a
inc esi
mov dword [ebp - 0x24], esi
jmp 0x427d2a
mov dword [ebp - 0x58], ebx
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x58], 1
je 0x427d56
movzx eax, word [ebp - 0x54]
jmp 0x427d59
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call fcn.00447630
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], ebx
jne 0x427d76
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x427dd3
cmp al, 0x22
jne 0x427d8d
xor ecx, ecx
cmp dword [ebp - 0x20], ebx
sete cl
mov dword [ebp - 0x20], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR71.dll__ismbblead]
pop ecx
test eax, eax
je 0x427da0
inc esi
mov dword [ebp - 0x24], esi
inc esi
jmp 0x427d18
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.004281c7
ret
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x42e01e
nop
nop
popal
nop
nop
nop
jmp loc.00401219