joyce8/EMBER2024-capa huggingface dataset:
Function at 0x416013
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x416033
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00416c6e
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x416056
test byte [esp + 8], 2
je 0x416056
call fcn.00416ce1
mov dword [eax], 0xd
call fcn.00416cea
mov dword [eax], 5
jmp 0x41602f
xor eax, eax
ret

Function at 0x41d23d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x43ddb0
cmp edx, dword [eax]
je 0x41d25f
add eax, 8
inc ecx
cmp eax, 0x43de40
jl 0x41d250
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x43ddb0]
jne 0x41d38d
mov eax, dword [0x440af8]
cmp eax, 1
je 0x41d367
test eax, eax
jne 0x41d290
cmp dword [0x43b6dc], 1
je 0x41d367
cmp edx, 0xfc
je 0x41d38d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41d2c7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0041d550
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00417fd0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x41d30a
lea eax, [ebp - 0x1a4]
push eax
call fcn.00417fd0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4332b0
push edi
call fcn.00416b70
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0041d550
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0041d560
lea eax, [ebp - 0xa0]
push 0x433290
push eax
call fcn.0041d560
push dword [esi + 0x43ddb4]
lea eax, [ebp - 0xa0]
push eax
call fcn.0041d560
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0041ebe5
add esp, 0x2c
pop edi
jmp 0x41d38d
lea eax, [ebp + 8]
lea esi, [esi + 0x43ddb4]
push 0
push eax
push dword [esi]
call fcn.00417fd0
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 0x423240
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00415950
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x42330b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x42330b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x4232be
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x4232c9
or bh, 8
and edi, 0x8000000
je 0x4232e4
mov eax, dword [0x44223c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x42330b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4236e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x42370b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x42372f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x42374a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x4291f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x429232
call fcn.0042c075
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x429232
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x429229
xor eax, eax
jmp 0x42923a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00429240
pop edi
pop esi
pop ebx
ret 4

Function at 0x42d068
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x42d096
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42d0b4
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0042cfce
jmp 0x42d0b4
mov eax, dword [esi + 0x14]
test eax, eax
je 0x42d0b4
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0042cfce
test edi, edi
mov eax, edi
jne 0x42d09e
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x10003310
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x10045b45
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
xor eax, eax
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esp + 0x10], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x62], vtable.P_TextureFormat.0
mov byte [esi + 0x82], al
lea ecx, [esi + 0x8d]
mov byte [esp + 0x10], 4
call sym.e2mfc.dll_public:_void___thiscall_P_ZBufferFormat::constructor_void_
mov eax, dword [esp + 0x18]
push eax
mov ecx, esi
mov byte [esp + 0x14], 5
mov dword [esi], vtable.P_DisplayMode.0
call sym.e2mfc.dll_public:_class_P_DisplayMode____thiscall_P_DisplayMode::operator_class_P_DisplayMode_const__
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x10022670
Capabilities:
Access peb ldr_data

Disassembly:
mov ecx, sym.e2mfc.dll_class_std::rm_class_std::rs__class_P_VertexShader___P_Material::m_vertexShaders
jmp 0x10025c50
push 0xffffffffffffffff
push 0x10047478
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x14], edi
mov al, byte [esp + 0x13]
xor ebx, ebx
mov byte [edi + 1], al
mov byte [edi + 8], bl
cmp dword [0x10065c98], ebx
mov dword [esp + 0x38], ebx
jne 0x10025ce2
push 0x24
call sub.MFC42.DLL_operatornew
mov esi, eax
mov eax, dword [sym.imp.rlmfc.dll_int_R_Memory::sm_iNewCount]
mov ecx, dword [eax]
add esp, 4
inc ecx
cmp esi, ebx
mov dword [eax], ecx
jne 0x10025cc7
lea ecx, [esp + 0x18]
call fcn.100028c0
mov ecx, eax
mov byte [esp + 0x38], 1
call fcn.10002820
lea ecx, [esp + 0x18]
mov byte [esp + 0x38], bl
call dword [sym.imp.rlmfc.dll_public_virtual:_void___thiscall_R_Exception::destructor_void_]
mov dword [esi + 4], ebx
mov dword [esi + 0x20], 1
mov dword [0x10065c98], esi
mov dword [esi], ebx
mov ecx, dword [0x10065c98]
mov dword [ecx + 8], ebx
inc dword [0x10065c94]
mov ebp, dword [0x10065c98]
push 0x24
call sub.MFC42.DLL_operatornew
mov esi, eax
mov eax, dword [sym.imp.rlmfc.dll_int_R_Memory::sm_iNewCount]
mov ecx, dword [eax]
add esp, 4
inc ecx
cmp esi, ebx
mov dword [eax], ecx
jne 0x10025d2b
lea ecx, [esp + 0x24]
call fcn.100028c0
mov ecx, eax
mov byte [esp + 0x38], 2
call fcn.10002820
lea ecx, [esp + 0x24]
mov byte [esp + 0x38], bl
call dword [sym.imp.rlmfc.dll_public_virtual:_void___thiscall_R_Exception::destructor_void_]
mov ecx, dword [esp + 0x30]
mov dword [esi + 4], ebp
mov dword [esi + 0x20], ebx
mov dword [edi + 4], esi
mov dword [edi + 0xc], ebx
mov dword [esi], esi
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x100227b0
Capabilities:
Access peb ldr_data

Disassembly:
mov ecx, sym.e2mfc.dll_class_std::rm_class_std::rs__class_P_PixelShader___P_Material::m_pixelShaders
jmp 0x10025d60
push 0xffffffffffffffff
push 0x100474a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x14], edi
mov al, byte [esp + 0x13]
xor ebx, ebx
mov byte [edi + 1], al
mov byte [edi + 8], bl
cmp dword [0x10065ca0], ebx
mov dword [esp + 0x38], ebx
jne 0x10025df2
push 0x24
call sub.MFC42.DLL_operatornew
mov esi, eax
mov eax, dword [sym.imp.rlmfc.dll_int_R_Memory::sm_iNewCount]
mov ecx, dword [eax]
add esp, 4
inc ecx
cmp esi, ebx
mov dword [eax], ecx
jne 0x10025dd7
lea ecx, [esp + 0x18]
call fcn.100028c0
mov ecx, eax
mov byte [esp + 0x38], 1
call fcn.10002820
lea ecx, [esp + 0x18]
mov byte [esp + 0x38], bl
call dword [sym.imp.rlmfc.dll_public_virtual:_void___thiscall_R_Exception::destructor_void_]
mov dword [esi + 4], ebx
mov dword [esi + 0x20], 1
mov dword [0x10065ca0], esi
mov dword [esi], ebx
mov ecx, dword [0x10065ca0]
mov dword [ecx + 8], ebx
inc dword [0x10065c9c]
mov ebp, dword [0x10065ca0]
push 0x24
call sub.MFC42.DLL_operatornew
mov esi, eax
mov eax, dword [sym.imp.rlmfc.dll_int_R_Memory::sm_iNewCount]
mov ecx, dword [eax]
add esp, 4
inc ecx
cmp esi, ebx
mov dword [eax], ecx
jne 0x10025e3b
lea ecx, [esp + 0x24]
call fcn.100028c0
mov ecx, eax
mov byte [esp + 0x38], 2
call fcn.10002820
lea ecx, [esp + 0x24]
mov byte [esp + 0x38], bl
call dword [sym.imp.rlmfc.dll_public_virtual:_void___thiscall_R_Exception::destructor_void_]
mov ecx, dword [esp + 0x30]
mov dword [esi + 4], ebp
mov dword [esi + 0x20], ebx
mov dword [edi + 4], esi
mov dword [edi + 0xc], ebx
mov dword [esi], esi
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x1002fc40
Capabilities:
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x10047bb1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
mov esi, ecx
push str.E2_Library
lea ecx, [esp + 8]
call dword [sym.imp.rlmfc.dll_public:_void___thiscall_R_MemoryScope::constructor_char_const__]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
push eax
push ecx
push edx
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 0
call sym.e2mfc.dll_public:_void___thiscall_P_ZBufferFormat::constructor_unsigned_int__unsigned_int__unsigned_long_int_
mov eax, dword [esi + 0x1c]
lea edx, [esp + 8]
push edx
lea ecx, [esi + 0x14]
push 1
push eax
mov byte [esp + 0x30], 1
call fcn.10030d20
lea ecx, [esp + 4]
mov dword [esp + 8], vtable.P_ZBufferFormat.0
mov dword [esp + 0x24], 0xffffffff
call dword [sym.imp.rlmfc.dll_public:_void___thiscall_R_MemoryScope::destructor_void_]
mov ecx, dword [esp + 0x1c]
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
Function at 0x10033a50
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x100480e9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esi + 0x7f]
mov dword [esp + 0x14], esi
call sym.e2mfc.dll_public:_void___thiscall_P_DisplayMode::constructor_void_
xor ebx, ebx
mov dword [esp + 0x20], ebx
mov dword [esi + 0x13c], ebx
mov dword [esi + 0x140], ebx
mov dword [esi + 0x144], ebx
mov dword [esi], vtable.P_DriverCaps.0
mov al, 1
mov byte [esi + 4], al
mov byte [esi + 5], bl
mov byte [esi + 6], bl
mov byte [esi + 7], al
mov byte [esi + 8], bl
mov byte [esi + 9], bl
mov byte [esi + 0xa], bl
mov byte [esi + 0xb], bl
mov byte [esi + 0xc], bl
mov byte [esi + 0xd], bl
mov byte [esi + 0xe], bl
mov byte [esi + 0xf], bl
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov byte [esi + 0x18], bl
mov byte [esi + 0x19], bl
mov byte [esi + 0x1a], bl
mov byte [esi + 0x1b], bl
mov byte [esi + 0x1c], bl
mov byte [esi + 0x1d], bl
mov byte [esi + 0x1e], bl
mov byte [esi + 0x1f], bl
mov byte [esi + 0x20], bl
mov byte [esi + 0x21], bl
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov byte [esi + 0x48], bl
mov byte [esi + 0x49], bl
mov edi, dword [esi + 0x140]
cmp edi, edi
mov ebp, dword [esi + 0x13c]
mov byte [esp + 0x20], al
mov dword [esp + 0x10], edi
je 0x10033b37
push edi
mov ecx, ebp
call sym.e2mfc.dll_public:_class_P_DisplayMode____thiscall_P_DisplayMode::operator_class_P_DisplayMode_const__
mov eax, dword [esp + 0x10]
add edi, 0xb7
add ebp, 0xb7
cmp edi, eax
jne 0x10033b1b
mov eax, dword [esi + 0x140]
cmp ebp, eax
mov dword [esp + 0x10], eax
mov edi, ebp
je 0x10033b5c
mov eax, dword [edi]
push ebx
mov ecx, edi
call dword [eax]
mov eax, dword [esp + 0x10]
add edi, 0xb7
cmp edi, eax
jne 0x10033b47
mov ecx, dword [esp + 0x18]
pop edi
mov dword [esi + 0x140], ebp
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x10036100
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100483e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push esi
mov esi, ecx
call sym.e2mfc.dll_public:_class_P_CPUDriver____thiscall_P_Buffer::getCPUDriver_void_const
push eax
lea ecx, [esp + 8]
call sym.e2mfc.dll_public:_void___thiscall_P_Buffer::constructor_class_P_CPUDriver__
mov dword [esp + 4], vtable.P_ReferenceTriangleBuffer.0
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x48]
push eax
push ecx
lea ecx, [esp + 0xc]
mov dword [esp + 0x48], 0
call fcn.100360c0
mov edx, dword [esp + 0x4c]
push edx
push esi
lea ecx, [esp + 0xc]
call fcn.100361e0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x10]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov dword [esi + 0x2c], ecx
lea ecx, [esp + 4]
mov dword [esi + 0x30], edx
mov dword [esp + 0x40], 0xffffffff
call sym.e2mfc.dll_public_virtual:_void___thiscall_P_Buffer::destructor_void_
mov ecx, dword [esp + 0x38]
pop esi
mov dword fs:[0], ecx
add esp, 0x40
ret 0xc
Function at 0x10043840
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10048a08
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
push esi
mov ebx, ecx
mov eax, dword [ebx + 0x14]
test eax, eax
lea esi, [ebx + 0x10]
push edi
mov edi, dword [esp + 0x5c]
je 0x1004387b
mov ecx, dword [esi + 8]
sub ecx, eax
sar ecx, 6
cmp edi, ecx
jb 0x1004396f
lea ecx, [esp + 0x3c]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
call fcn.10018560
push fcn.10018560
push 4
push 0x10
lea edx, [esp + 0x18]
push edx
call fcn.10001030
call fcn.10018680
push eax
lea ecx, [esp + 0x10]
call fcn.100181c0
mov ecx, dword [esi + 4]
test ecx, ecx
mov dword [esp + 0x54], 0
lea eax, [edi + 1]
jne 0x1004391c
xor edx, edx
jmp 0x10043924
mov edx, dword [esi + 8]
sub edx, ecx
sar edx, 6
cmp edx, eax
jae 0x1004394d
test ecx, ecx
jne 0x10043930
xor edx, edx
jmp 0x10043938
mov edx, dword [esi + 8]
sub edx, ecx
sar edx, 6
lea ecx, [esp + 0xc]
push ecx
sub eax, edx
mov edx, dword [esi + 8]
push eax
push edx
mov ecx, esi
call fcn.10044470
jmp 0x1004396f
test ecx, ecx
je 0x1004396f
mov edx, dword [esi + 8]
push ebp
mov ebp, edx
sub ebp, ecx
sar ebp, 6
cmp eax, ebp
pop ebp
jae 0x1004396f
shl eax, 6
add eax, ecx
push edx
push eax
mov ecx, esi
call fcn.100446d0
mov eax, dword [ebx + 0x14]
mov ecx, dword [esp + 0x60]
fld dword [ecx]
shl edi, 6
add edi, eax
mov eax, edi
fstp dword [eax]
fld dword [ecx + 4]
pop edi
fstp dword [eax + 4]
fld dword [ecx + 8]
pop esi
fstp dword [eax + 8]
fld dword [ecx + 0xc]
pop ebx
fstp dword [eax + 0xc]
fld dword [ecx + 0x10]
fstp dword [eax + 0x10]
fld dword [ecx + 0x14]
fstp dword [eax + 0x14]
fld dword [ecx + 0x18]
fstp dword [eax + 0x18]
fld dword [ecx + 0x1c]
fstp dword [eax + 0x1c]
fld dword [ecx + 0x20]
fstp dword [eax + 0x20]
fld dword [ecx + 0x24]
fstp dword [eax + 0x24]
fld dword [ecx + 0x28]
fstp dword [eax + 0x28]
fld dword [ecx + 0x2c]
fstp dword [eax + 0x2c]
fld dword [ecx + 0x30]
fstp dword [eax + 0x30]
fld dword [ecx + 0x34]
fstp dword [eax + 0x34]
fld dword [ecx + 0x38]
fstp dword [eax + 0x38]
fld dword [ecx + 0x3c]
mov ecx, dword [esp + 0x40]
fstp dword [eax + 0x3c]
mov dword fs:[0], ecx
add esp, 0x4c
ret 8
Function at 0x406f41
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
push ebp
push esi
xor esi, esi
push edi
mov edi, ecx
mov eax, esi
movd xmm0, eax
pshufd xmm0, xmm0, 0
paddd xmm0, xmmword [0x46b1d0]
movups xmmword [edi + eax*4], xmm0
add eax, 4
cmp eax, 0x100
jl 0x406f4b
mov ebp, dword [esp + 0x14]
mov ebx, esi
xor edx, edx
mov eax, ebx
div dword [esp + 0x18]
movzx eax, byte [edx + ebp]
add eax, dword [edi + ebx*4]
add esi, eax
and esi, 0x800000ff
jns 0x406f91
dec esi
or esi, 0xffffff00
inc esi
mov cl, byte [edi + ebx*4]
mov eax, dword [edi + esi*4]
mov dword [edi + ebx*4], eax
inc ebx
movzx eax, cl
mov dword [edi + esi*4], eax
cmp ebx, 0x100
jl 0x406f70
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x406fb0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x400
lea eax, [esp]
push ebx
push esi
push edi
push 0x400
push ecx
xor esi, esi
push eax
mov edi, esi
call fcn.00435de0
mov edx, dword [esp + 0x420]
add esp, 0xc
mov ebx, esi
add edx, 1
je 0x407040
push ebp
mov ebp, dword [esp + 0x414]
inc esi
and esi, 0x800000ff
jns 0x406ff6
dec esi
or esi, 0xffffff00
inc esi
mov eax, dword [esp + esi*4 + 0x10]
add edi, eax
and edi, 0x800000ff
jns 0x40700c
dec edi
or edi, 0xffffff00
inc edi
mov cl, al
mov eax, dword [esp + edi*4 + 0x10]
mov dword [esp + esi*4 + 0x10], eax
movzx eax, cl
mov dword [esp + edi*4 + 0x10], eax
mov ecx, dword [esp + esi*4 + 0x10]
add ecx, eax
and ecx, 0x800000ff
jns 0x407033
dec ecx
or ecx, 0xffffff00
inc ecx
mov al, byte [esp + ecx*4 + 0x10]
xor byte [ebx + ebp], al
inc ebx
cmp ebx, edx
jb 0x406fe5
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x400
ret 8
Function at 0x4109f8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x30
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x38], ebx
je 0x410b2f
cmp byte [edi + 0x3d], bl
je 0x410b2f
call fcn.00403a7d
mov esi, eax
mov ecx, edi
mov eax, dword [edi]
push esi
call dword [eax + 0xc]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], esi
push eax
call fcn.0040e001
pop ecx
pop ecx
test al, al
je 0x410a4e
xor al, al
jmp 0x410b31
push ebx
push 8
lea ecx, [esp + 0x30]
call fcn.00405dec
lea ebp, [edi + 0x40]
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x30]
call fcn.0040309c
mov ecx, eax
call fcn.00403f7b
lea ecx, [esp + 0x2c]
mov esi, eax
call fcn.0040305c
add esi, eax
lea ecx, [esp + 0x2c]
push esi
lea eax, [esp + 0x1c]
push eax
call fcn.0040309c
mov ecx, eax
call fcn.00403f7b
mov ecx, dword [edi + 0x38]
push eax
push ebp
call fcn.0040e385
sub eax, ebx
je 0x410ab6
sub eax, 1
je 0x410ab9
dec eax
sub eax, 1
jne 0x410b22
inc eax
jmp 0x410b20
mov byte [edi + 0x3d], bl
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x2c]
call fcn.0040309c
mov ecx, eax
call fcn.00403f7b
mov esi, dword [esp + 0x1c]
sub esi, eax
je 0x410afe
push dword [edi + 0x4c]
lea eax, [esp + 0x28]
push esi
push 1
push eax
lea ecx, [esp + 0x38]
call fcn.0040309c
mov ecx, eax
call fcn.00403f7b
push eax
call fcn.0043f9dc
add esp, 0x10
cmp esi, eax
jne 0x410b1e
cmp byte [edi + 0x3d], bl
je 0x410b1c
test esi, esi
jne 0x410a5d
push ebx
push 8
lea ecx, [esp + 0x30]
call fcn.00403631
jmp 0x410a5d
mov bl, 1
mov al, bl
mov bl, al
lea ecx, [esp + 0x28]
call fcn.00402bb8
mov al, bl
jmp 0x410b31
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret