joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4abe10
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 0x4abeed
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
lea ecx, [eax + 0xc]
cmp edx, ecx
jne 0x4abeed
push eax
mov dword [edi + 4], eax
call sub.MFC71.DLL_operator_new
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 0x4abee2
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 0x4abec0
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 0x4ad080
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5488c9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov eax, dword [esp + 0x34]
push eax
lea ecx, [esp + 0xc]
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, 0x2fb3b3c
mov dword [esp + 0x30], 0
call fcn.0046ed00
cmp eax, dword [0x2fb3b40]
mov dword [esp], eax
je 0x4ad0e4
add eax, 0xc
push eax
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.MSVCP71.dll_bool___cdecl_std::operator__char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
add esp, 8
test al, al
jne 0x4ad0e4
lea eax, [esp]
jmp 0x4ad0f1
mov eax, dword [0x2fb3b40]
mov dword [esp + 4], eax
lea eax, [esp + 4]
push esi
mov esi, dword [eax]
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 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_]
cmp esi, dword [0x2fb3b40]
je 0x4ad121
mov eax, dword [esi + 0x28]
pop esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret
mov ecx, dword [esp + 0x28]
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x30
ret
Function at 0x4adfc0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5488c9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
push edi
push 0x2fb39e8
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, 0x2fb3b30
mov dword [esp + 0x30], 0
call fcn.004adc80
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 0x2fb39e8
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 0x4ae050
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5488c9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
push edi
push 0x2fb39e8
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 + 0x4c]
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, 0x2fb3b30
mov dword [esp + 0x30], 0
call fcn.004adc80
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 0x2fb39e8
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 0x4be5a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x548f3c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov dword [esi], 0x5e2318
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esi + 0x30], eax
call dword [0x5e2324]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x10]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x14]
lea ecx, [esi + 0xc]
mov dword [esp + 0x10], 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 + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x4be5b6
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x548f3c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov dword [esi], 0x5e2318
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esi + 0x30], eax
call dword [0x5e2324]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x10]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x14]
lea ecx, [esi + 0xc]
mov dword [esp + 0x10], 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 + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4d8630
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 0x4d87b2
mov edi, dword [esp + 0x5c]
test edi, edi
jne 0x4d866a
pop edi
pop esi
pop ebp
mov eax, 0x80070057
pop ebx
add esp, 0x48
ret 0xc
mov eax, dword [ebx]
test eax, eax
je 0x4d867f
push eax
call sub.MFC71.DLL_operator_delete
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 0x4d87cb
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 0x4d8772
mov ebp, dword [sym.imp.KERNEL32.dll_FindResourceA]
push str.WAVE
push edi
push eax
call ebp
mov esi, eax
test esi, esi
jne 0x4d86dd
push 0x5e2d34
push edi
push eax
call ebp
mov esi, eax
test esi, esi
je 0x4d87cb
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4d87cb
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
test ebp, ebp
je 0x4d87cb
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4d87cb
push ebp
call sub.MFC71.DLL_operator_new
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 0x4d8740
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.004d7e10
mov esi, eax
test esi, esi
jge 0x4d8797
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.004d7f90
test eax, eax
jl 0x4d880b
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 0x4d87da
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.004d82c0
mov esi, eax
test esi, esi
jge 0x4d8804
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.004d7f90
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 0xc
Function at 0x4df8c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x549768
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 0x4df926
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.004df0b0
mov eax, dword [esi]
push eax
call sub.MFC71.DLL_operator_delete_1
push edi
mov dword [esi], 0
mov dword [edi + 8], 0
call sub.MFC71.DLL_operator_delete_1
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 0x4dfe30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x549813
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x66c
push edi
mov edi, ecx
lea ecx, [esp + 4]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
push str..bin
lea eax, [esp + 8]
push eax
lea ecx, [edi + 4]
push 0x5d8a30
push ecx
mov dword [esp + 0x688], 0
call fcn.004766e0
add esp, 0x10
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_void_]
mov byte [esp + 0x678], 1
call fcn.00470ce0
push eax
lea ecx, [esp + 0xc]
call dword [0x5d0508]
lea ecx, [esp + 4]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetString]
push eax
lea ecx, [esp + 0xc]
call dword [0x5d0508]
lea ecx, [esp + 0x24]
call fcn.00465510
push 0x200
push str.AnimContainer
lea ecx, [esp + 0x2c]
mov byte [esp + 0x680], 2
call fcn.00465550
push 0
lea ecx, [esp + 0xc]
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]
push eax
push 1
lea ecx, [esp + 0x30]
call fcn.004655b0
test eax, eax
lea ecx, [esp + 0x24]
jne 0x4dff3d
mov byte [esp + 0x678], 1
call fcn.00465380
lea ecx, [esp + 8]
mov byte [esp + 0x678], 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_]
lea ecx, [esp + 4]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, 0x80004005
pop edi
mov ecx, dword [esp + 0x66c]
mov dword fs:[0], ecx
add esp, 0x678
ret
mov eax, dword [edi + 0x350]
mov edx, dword [esp + 0x24]
push ebp
push esi
push eax
mov dword [esp + 0x3c], 0x13
call dword [edx + 0x68]
mov ebp, dword [edi + 0x34c]
mov esi, dword [ebp]
cmp esi, ebp
je 0x4dff75
mov ecx, dword [esi + 8]
lea eax, [esp + 0x2c]
push eax
call fcn.004dfd40
mov esi, dword [esi]
cmp esi, ebp
jne 0x4dff62
mov eax, dword [edi + 0x344]
mov edx, dword [esp + 0x2c]
push eax
lea ecx, [esp + 0x30]
call dword [edx + 0x68]
mov edi, dword [edi + 0x340]
mov esi, dword [edi]
cmp esi, edi
je 0x4dffa6
mov ecx, dword [esi + 8]
lea eax, [esp + 0x2c]
push eax
call fcn.004dfd40
mov esi, dword [esi]
cmp esi, edi
jne 0x4dff93
lea ecx, [esp + 0x2c]
mov byte [esp + 0x680], 1
call fcn.00465380
lea ecx, [esp + 0x10]
mov byte [esp + 0x680], 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_]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [esp + 0x678]
pop esi
pop ebp
xor eax, eax
pop edi
mov dword fs:[0], ecx
add esp, 0x678
ret
Function at 0x4e1960
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 0x4e1a24
mov eax, dword [esp + 0x18]
lea ecx, [eax + 0xc]
cmp ebp, ecx
jne 0x4e1a24
push eax
mov dword [edi + 4], eax
call sub.MFC71.DLL_operator_new
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 0x4e1a1a
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 0x4e19f8
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 0x534d8d
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x74
push 0x5fda88
call fcn.005352c0
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 0x534dcd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x534dcd
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x534de5
cmp eax, 0x20b
je 0x534dd2
mov dword [ebp - 0x1c], ebx
jmp 0x534df9
cmp dword [ecx + 0x84], 0xe
jbe 0x534dcd
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x534df3
cmp dword [ecx + 0x74], 0xe
jbe 0x534dcd
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 [0x8ec4ec0], 0xffffffff
or dword [0x8ec4ec4], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x8e84ac8]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x8e84ac4]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x8ec4ebc], eax
call fcn.005353be
call fcn.0053545e
cmp dword [0x6578a0], ebx
jne 0x534e59
push fcn.0053545e
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.0053544c
push 0x6243b4
push 0x6243b0
call sub.MSVCR71.dll__initterm
push 0x535402
call fcn.00534b35
mov eax, dword [0x8e84ac0]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x8e84abc]
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 0x534ead
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x6243ac
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 0x534f2b
cmp al, bl
je 0x534ed7
cmp dword [ebp - 0x20], ebx
jne 0x534f2b
mov al, byte [esi]
cmp al, bl
je 0x534ee7
cmp al, 0x20
ja 0x534ee7
inc esi
mov dword [ebp - 0x24], esi
jmp 0x534ed7
mov dword [ebp - 0x58], ebx
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x58], 1
je 0x534f03
movzx eax, word [ebp - 0x54]
jmp 0x534f06
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call fcn.0053bf8d
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], ebx
jne 0x534f23
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x534f80
cmp al, 0x22
jne 0x534f3a
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 0x534f4d
inc esi
mov dword [ebp - 0x24], esi
inc esi
jmp 0x534ec5
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.005352fb
ret
Function at 0x535500
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, eax
xor eax, eax
mov dword [edx], 0x12345678
mov dword [edx + 4], 0x23456789
mov dword [edx + 8], 0x34567890
mov al, byte [esi]
test al, al
je 0x535567
push ebx
mov ecx, dword [edx]
xor eax, ecx
and eax, 0xff
mov eax, dword [edi + eax*4]
shr ecx, 8
xor eax, ecx
mov ecx, dword [edx + 4]
mov dword [edx], eax
and eax, 0xff
add eax, ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
mov ebx, dword [edi + eax*4]
shr ecx, 8
xor ecx, ebx
inc esi
mov dword [edx + 8], ecx
mov al, byte [esi]
test al, al
jne 0x535520
pop ebx
pop esi
ret
Function at 0x40ce48
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419408]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004078db
mov dword [ebp - 0x14], eax
cmp dword [0x43f498], esi
jne 0x40cf3b
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40cec8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d01b
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d01b
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d01b
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x43f498], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x43f49c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x43f4a0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43f4a8], eax
test eax, eax
je 0x40cf38
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43f4a4], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40cf60
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40cf53
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40cf75
push 4
pop eax
jmp 0x40d01d
cmp dword [ebp - 0x14], esi
je 0x40cf75
push dword [0x43f498]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40cf5a
mov eax, dword [0x43f4a4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40cfd3
cmp dword [0x43f4a8], edi
je 0x40cfd3
push eax
call ebx
push dword [0x43f4a8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40cfd3
test eax, eax
je 0x40cfd3
call ecx
test eax, eax
je 0x40cfc8
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40cfc8
test byte [ebp - 8], 1
jne 0x40cfd3
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d003
mov eax, dword [0x43f49c]
cmp eax, edi
je 0x40d000
push eax
call ebx
test eax, eax
je 0x40d000
call eax
mov esi, eax
test esi, esi
je 0x40d000
mov eax, dword [0x43f4a0]
cmp eax, edi
je 0x40d000
push eax
call ebx
test eax, eax
je 0x40d000
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x43f498]
call ebx
test eax, eax
je 0x40d01b
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d01d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004041ee
mov esp, ebp
pop ebp
ret
Function at 0x1581058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.015811a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x158107e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x158106a
add dl, dl
jne 0x1581089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x15810dc
xor eax, eax
add dl, dl
jne 0x1581096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x158117d
add dl, dl
jne 0x15810a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x15810b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x15810bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x15810c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x15810d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1581075
mov eax, 1
add dl, dl
jne 0x15810ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x15810f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x15810e1
sub eax, ebx
mov ebx, 1
jne 0x1581128
mov ecx, 1
add dl, dl
jne 0x158110e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1581119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1581105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1581075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x158113f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x158114a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1581136
cmp eax, 0x7d00
jae 0x158116d
cmp eax, 0x500
jb 0x1581168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1581075
cmp eax, 0x7f
ja 0x1581170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1581075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x158119e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x1581075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10