joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003fcf0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x10053578
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x10080e78]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], vtable.CFont.0
push 0x11
mov dword [esp + 0x30], 0
call dword [sym.imp.GDI32.dll_GetStockObject]
mov edi, dword [esp + 0x34]
mov edx, dword [edi]
mov edx, dword [edx + 0x144]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x44]
push esi
lea ecx, [esp + 0x1c]
push ecx
push eax
mov ecx, edi
mov dword [esp + 0x24], 1
mov dword [esp + 0x28], 1
mov dword [esp + 0x30], 0x64
call edx
test eax, eax
jne 0x1003fdb4
lea ecx, [esp + 0xc]
mov dword [esi + 0x144], eax
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0xc], vtable.CFont.0
call fcn.10001760
xor eax, eax
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x24
ret 0x10
push 1
mov ecx, edi
mov dword [esi + 0x144], 1
mov dword [esi + 0x138], edi
call sym.GuiTk115d.dll_public:_void___thiscall_CGuiComboBoxExt::ActiveHistory_int_
mov eax, dword [esi + 0xbc]
push eax
push ecx
lea edx, [esi + 0xb8]
mov ecx, esp
mov dword [esp + 0x44], esp
push edx
call dword [sym.imp.mfc90.dll_Ordinal_300]
mov ecx, dword [esi + 0x138]
call sym.GuiTk115d.dll_public:_void___thiscall_CGuiComboBoxExt::LoadHistory_class_ATL::CStringT_char__class_StrTraitMFC_DLL_char__class_ATL::ChTraitsCRT_char_____int_
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0xc], vtable.CFont.0
call fcn.10001760
mov eax, 1
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x24
ret 0x10
Function at 0x100457f0
Capabilities:
Log keystrokes via application hook

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esi + 0xac], eax
mov dword [esi + 0xa8], 1
xor ebp, ebp
lea esp, [esp]
mov ecx, dword [esi + 0x20]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov edx, dword [esi + 0xac]
push edx
push 2
mov ecx, esi
call sym.GuiTk115d.dll_protected:_void___thiscall_CMenuBar::UpdateBar_enum_CMenuBar::TrackingState__int_
mov dword [0x10080f04], esi
mov dword [esi + 0xa8], ebp
call sub.mfc90.dll_Ordinal_1137
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x30]
push eax
push ebp
push sym.GuiTk115d.dll_protected:_static_long_int___stdcall_CMenuBar::MenuInputFilter_int__unsigned_int__long_int_
push 0xffffffffffffffff
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
mov dword [0x10080f08], eax
mov eax, dword [esi + 0xac]
cmp eax, ebp
mov dword [esi + 0xc0], 2
mov dword [0x10080b6c], eax
jl 0x100458c9
cmp eax, dword [esi + 0xcc]
jge 0x100458c9
mov ecx, dword [esi + 0xc8]
mov ebx, dword [ecx + eax*4]
mov edi, dword [ebx]
mov ecx, esi
add edi, 8
call sub.mfc90.dll_Ordinal_4042
mov edx, dword [edi]
push eax
push esi
mov ecx, ebx
call edx
mov eax, dword [0x10080f08]
push eax
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
cmp dword [esi + 0xa8], 1
mov dword [0x10080f08], ebp
mov dword [0x10080f04], ebp
je 0x10045810
push 0xffffffffffffffff
push ebp
mov ecx, esi
call sym.GuiTk115d.dll_protected:_void___thiscall_CMenuBar::UpdateBar_enum_CMenuBar::TrackingState__int_
pop edi
pop esi
pop ebp
pop ebx
ret 4
call sub.mfc90.dll_Ordinal_1252
int3
Function at 0x10045c40
Capabilities:
Check os version

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x10045cf2
push 0x94
mov edi, 1
call dword [sym.imp.MSVCR90.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
je 0x10045d68
push 0x94
push 0
push esi
call sub.MSVCR90.dll_memset
add esp, 0xc
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x10045c96
call fcn.10045b50
mov eax, dword [esi + 4]
cmp eax, 4
jne 0x10045cb0
push esi
lea edi, [eax + 1]
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov eax, edi
pop edi
pop esi
ret
cmp eax, 5
jne 0x10045d5e
cmp dword [esi + 8], 0
jne 0x10045cd1
push esi
lea edi, [eax + 1]
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov eax, edi
pop edi
pop esi
ret
cmp eax, 5
jne 0x10045d5e
cmp dword [esi + 8], 0
jbe 0x10045d5e
push esi
lea edi, [eax + 2]
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov eax, edi
pop edi
pop esi
ret
cmp al, 4
jae 0x10045cfb
pop edi
xor eax, eax
pop esi
ret
push 0x94
mov edi, 2
call dword [sym.imp.MSVCR90.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
je 0x10045d68
push 0x94
push 0
push esi
call sub.MSVCR90.dll_memset
add esp, 0xc
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esi + 4]
cmp eax, 4
jne 0x10045d5e
cmp dword [esi + 8], 0xa
jne 0x10045d51
push esi
lea edi, [eax - 1]
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov eax, edi
pop edi
pop esi
ret
cmp eax, 4
jne 0x10045d5e
cmp dword [esi + 8], 0x5a
jne 0x10045d5e
mov edi, eax
push esi
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov eax, edi
pop edi
pop esi
ret

Function at 0x10046a30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
movzx esi, word [esp + 8]
push edi
push 2
push esi
call sub.mfc90.dll_Ordinal_1108
push 2
mov edi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x10046a56
pop edi
xor eax, eax
pop esi
ret
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10046a51
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x10046a51
push eax
call sym.GuiTk115d.dll_protected:_static_unsigned_short_int___cdecl_CNewMenu::NumBitmapColors_struct_tagBITMAPINFOHEADER__
add esp, 4
cmp ax, 0x10
jne 0x10046a51
push 0
push esi
push edi
call sub.mfc90.dll_Ordinal_1178
pop edi
pop esi
ret
Function at 0x10048e70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10054138
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x10080e78]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esp + 0x30]
test edi, edi
je 0x10048f37
lea ecx, [esp + 0xc]
call sub.mfc90.dll_Ordinal_436
mov eax, dword [esi + 0x34]
mov ecx, dword [esi + 0x30]
push 1
push 1
push 0xff
push eax
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x30], 0
call sub.mfc90.dll_Ordinal_1691
mov ecx, esi
call sym.GuiTk115d.dll_public:_unsigned_long_int___thiscall_CNewMenu::GetBitmapBackground_void_
mov ecx, dword [edi + 4]
mov edx, dword [esp + 0x10]
push eax
push ecx
push edx
call sub.mfc90.dll_Ordinal_1137
mov eax, dword [eax + 0x94]
mov ecx, dword [eax]
call fcn.100013a0
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push 0
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x34]
push edx
push eax
push ecx
mov ecx, esi
call sym.GuiTk115d.dll_public:_int___thiscall_CNewMenu::AppendODMenu_char_const___unsigned_int__unsigned_int__class_CImageList___int_
lea ecx, [esp + 0xc]
mov esi, eax
mov dword [esp + 0x1c], 0xffffffff
call fcn.1004ccec
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret 0x10
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
push 0
push 0
push edx
push eax
push ecx
mov ecx, esi
call sym.GuiTk115d.dll_public:_int___thiscall_CNewMenu::AppendODMenu_char_const___unsigned_int__unsigned_int__class_CImageList___int_
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret 0x10
Function at 0x1004b0c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10054138
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x10080e78]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esp + 0x34]
test edi, edi
je 0x1004b18c
lea ecx, [esp + 0xc]
call sub.mfc90.dll_Ordinal_436
mov eax, dword [esi + 0x34]
mov ecx, dword [esi + 0x30]
push 1
push 1
push 0xff
push eax
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x30], 0
call sub.mfc90.dll_Ordinal_1691
mov ecx, esi
call sym.GuiTk115d.dll_public:_unsigned_long_int___thiscall_CNewMenu::GetBitmapBackground_void_
mov ecx, dword [edi + 4]
mov edx, dword [esp + 0x10]
push eax
push ecx
push edx
call sub.mfc90.dll_Ordinal_1137
mov eax, dword [eax + 0x94]
mov ecx, dword [eax]
call fcn.100013a0
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push 0
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x38]
push edx
mov edx, dword [esp + 0x30]
push eax
push ecx
push edx
mov ecx, esi
call sym.GuiTk115d.dll_public:_int___thiscall_CNewMenu::InsertODMenu_unsigned_int__char_const___unsigned_int__unsigned_int__class_CImageList___int_
lea ecx, [esp + 0xc]
mov esi, eax
mov dword [esp + 0x1c], 0xffffffff
call fcn.1004ccec
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret 0x14
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x30]
push 0
push 0
push eax
mov eax, dword [esp + 0x30]
push ecx
push edx
push eax
mov ecx, esi
call sym.GuiTk115d.dll_public:_int___thiscall_CNewMenu::InsertODMenu_unsigned_int__char_const___unsigned_int__unsigned_int__class_CImageList___int_
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret 0x14
Function at 0x1004c1d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10054138
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x10080e78]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esp + 0x2c]
test edi, edi
je 0x1004c292
lea ecx, [esp + 0xc]
call sub.mfc90.dll_Ordinal_436
mov eax, dword [esi + 0x34]
mov ecx, dword [esi + 0x30]
push 1
push 1
push 0xff
push eax
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x30], 0
call sub.mfc90.dll_Ordinal_1691
mov ecx, esi
call sym.GuiTk115d.dll_public:_unsigned_long_int___thiscall_CNewMenu::GetBitmapBackground_void_
mov ecx, dword [edi + 4]
mov edx, dword [esp + 0x10]
push eax
push ecx
push edx
call sub.mfc90.dll_Ordinal_1137
mov eax, dword [eax + 0x94]
mov ecx, dword [eax]
call fcn.100013a0
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push 0
lea ecx, [esp + 0x10]
push ecx
push edx
push eax
mov ecx, esi
call sym.GuiTk115d.dll_public:_int___thiscall_CNewMenu::ModifyODMenu_char_const___unsigned_int__class_CImageList___int_
lea ecx, [esp + 0xc]
mov esi, eax
mov dword [esp + 0x1c], 0xffffffff
call fcn.1004ccec
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret 0xc
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push 0
push 0
push ecx
push edx
mov ecx, esi
call sym.GuiTk115d.dll_public:_int___thiscall_CNewMenu::ModifyODMenu_char_const___unsigned_int__class_CImageList___int_
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret 0xc

Function at 0x1004c2c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10054170
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
mov eax, dword [0x10080e78]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov esi, ecx
push 0
lea ecx, [esp + 0x14]
call sub.mfc90.dll_Ordinal_337
mov eax, dword [esi + 0x34]
mov ecx, dword [esi + 0x30]
mov dword [esp + 0x2c], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], vtable.CBitmap.0
mov edx, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x44]
push edx
push eax
push ecx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x28]
push ecx
mov ecx, esi
mov byte [esp + 0x48], 1
call sym.GuiTk115d.dll_protected:_void___thiscall_CNewMenu::ColorBitmap_class_CDC___class_CBitmap___class_CSize__unsigned_long_int__unsigned_long_int__int_
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
lea edx, [esp + 8]
push edx
push eax
push ecx
mov ecx, esi
call sym.GuiTk115d.dll_public:_int___thiscall_CNewMenu::ModifyODMenu_char_const___unsigned_int__class_CBitmap__
lea ecx, [esp + 8]
mov esi, eax
mov byte [esp + 0x2c], 0
mov dword [esp + 8], vtable.CBitmap.0
call fcn.10001760
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
call sub.mfc90.dll_Ordinal_613
mov eax, esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x28
ret 0x14
Function at 0x1004c390
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x10054198
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10080e78]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [esp + 0x30]
push 0xf1
push ebx
call sub.mfc90.dll_Ordinal_1108
push 0xf1
mov esi, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
xor ebp, ebp
cmp eax, ebp
jne 0x1004c3e4
xor eax, eax
jmp 0x1004c4af
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebp
je 0x1004c3dd
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
cmp esi, ebp
je 0x1004c3dd
lea ecx, [esp + 0x18]
call sub.mfc90.dll_Ordinal_436
movzx eax, word [esi + 4]
movzx ecx, word [esi + 2]
push 0xa
push ebp
push 0xff
push eax
push ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x3c], ebp
call sub.mfc90.dll_Ordinal_1691
push ebx
lea edx, [esp + 0x1c]
push edx
mov ecx, edi
call sym.GuiTk115d.dll_public:_int___thiscall_CNewMenu::AddBitmapToImageList_class_CImageList___unsigned_int_
mov dword [esp + 0x14], eax
cmp eax, ebp
je 0x1004c49a
movzx eax, word [esi + 2]
mov ecx, dword [edi + 0x30]
cmp eax, ecx
jg 0x1004c447
mov eax, ecx
mov ecx, dword [edi + 0x34]
mov dword [edi + 0x30], eax
movzx eax, word [esi + 4]
cmp eax, ecx
jg 0x1004c457
mov eax, ecx
mov dword [edi + 0x34], eax
xor eax, eax
xor ebx, ebx
cmp ax, word [esi + 6]
jae 0x1004c49a
lea ecx, [esi + 8]
mov dword [esp + 0x30], ecx
jmp 0x1004c470
mov edx, dword [esp + 0x30]
movzx eax, word [edx]
test eax, eax
je 0x1004c48c
push ebp
lea ecx, [esp + 0x1c]
push ecx
push eax
push 0
mov ecx, edi
call sym.GuiTk115d.dll_public:_int___thiscall_CNewMenu::ModifyODMenu_char_const___unsigned_int__class_CImageList___int_
inc ebp
movzx edx, word [esi + 6]
add dword [esp + 0x30], 2
inc ebx
cmp ebx, edx
jl 0x1004c470
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], 0xffffffff
call fcn.1004ccec
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 4

Function at 0x1004c5d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx eax, word [esp + 4]
mov dword [esp + 4], eax
jmp sym.GuiTk115d.dll_public_virtual:_int___thiscall_CNewMenu::LoadMenuA_char_const__

Function at 0x1004da1e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10080e78]
jne 0x1004da28
repz ret
jmp fcn.1004e098
Function at 0x406c1e
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x40bbcd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor ebx, ebx
push edi
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
push dword [ebp + 8]
mov esi, ecx
call dword [0x4440c4]
mov edi, eax
cmp edi, 0xffffffff
je 0x40bc20
push ebx
push edi
call dword [0x4440cc]
mov ecx, 0x106c
cmp eax, ecx
je 0x40bc07
push edi
jmp 0x40bc1a
lea eax, [ebp + 8]
push ebx
push eax
push ecx
push esi
push edi
call dword [0x444150]
test eax, eax
push edi
jne 0x40bc24
call dword [0x4440a8]
xor al, al
jmp 0x40bc40
call dword [0x4440a8]
lea ecx, [esi + 0x106c]
mov eax, esi
cmp esi, ecx
jae 0x40bc3e
xor byte [eax], 0xaa
inc eax
cmp eax, ecx
jb 0x40bc36
mov al, 1
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x413ae2
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
push 0x40
pop edi
cmp ebx, edi
jle 0x413b2f
lea eax, [ebp - 0x148]
push eax
call fcn.00406c1e
push ebx
lea eax, [ebp - 0x148]
push dword [ebp + 0x10]
push eax
call fcn.00406c46
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00406ce4
add esp, 0x18
lea esi, [ebp - 0x10]
push 0x10
pop ebx
jmp 0x413b32
mov esi, dword [ebp + 0x10]
push edi
lea eax, [ebp - 0xf0]
push 0
push eax
call fcn.0043e47c
push edi
lea eax, [ebp - 0xac]
push 0
push eax
call fcn.0043e47c
push ebx
lea eax, [ebp - 0xf0]
push esi
push eax
call fcn.0043e482
push ebx
lea eax, [ebp - 0xac]
push esi
push eax
call fcn.0043e482
add esp, 0x30
xor eax, eax
xor byte [ebp + eax - 0xf0], 0x36
xor byte [ebp + eax - 0xac], 0x5c
inc eax
cmp eax, edi
jl 0x413b71
lea eax, [ebp - 0x68]
push eax
call fcn.00406c1e
lea eax, [ebp - 0xf0]
push edi
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.00406c46
push dword [ebp + 0xc]
lea eax, [ebp - 0x68]
push dword [ebp + 8]
push eax
call fcn.00406c46
lea eax, [ebp - 0x68]
push eax
push dword [ebp + 0x18]
call fcn.00406ce4
lea eax, [ebp - 0x68]
push eax
call fcn.00406c1e
lea eax, [ebp - 0xac]
push edi
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.00406c46
push 0x10
lea eax, [ebp - 0x68]
push dword [ebp + 0x18]
push eax
call fcn.00406c46
add esp, 0x40
lea eax, [ebp - 0x68]
push eax
push dword [ebp + 0x18]
call fcn.00406ce4
pop ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x4161d7
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
push 1
xor edi, edi
pop eax
cmp ebx, eax
jl 0x4161ec
cmp ebx, 8
jle 0x4161ee
xor eax, eax
mov esi, dword [esp + 0x10]
push 0x4544b0
push eax
push esi
call fcn.00414d61
lea ecx, [esi + 0x6af70]
lea eax, [esi + 0x6af78]
add esp, 0xc
cmp dword [ecx], edi
mov dword [eax], edi
jne 0x41621f
mov dword [eax], 1
mov dword [ecx], 0x10000
push 0x1fffc
lea eax, [esi + 0x4af70]
push edi
push eax
mov dword [esi + 0x6af6c], edi
call fcn.0043e47c
mov eax, ebx
add esp, 0xc
shl eax, 3
cmp ebx, 2
movzx ecx, word [eax + 0x4473c2]
mov dword [esi + 0x6af98], ecx
movzx ecx, word [eax + 0x4473c0]
mov dword [esi + 0x6af9c], ecx
movzx ecx, word [eax + 0x4473c4]
mov dword [esi + 0x6afa0], ecx
movzx eax, word [eax + 0x4473c6]
mov dword [esi + 0x6af94], eax
jg 0x416281
mov eax, dword [esp + 0x18]
or byte [eax], 4
jmp 0x41628d
cmp ebx, 8
jl 0x41628d
mov eax, dword [esp + 0x18]
or byte [eax], 2
lea ebx, [esi + 0x1af70]
push 0x10000
push ebx
push esi
mov dword [esi + 0x6af84], edi
mov dword [esi + 0x6af74], edi
call dword [esi + 0xc]
add esp, 0xc
cmp eax, edi
mov dword [esi + 0x6af90], eax
je 0x4162fd
cmp eax, 0xffffffff
je 0x4162fd
cmp eax, 0x106
mov dword [esi + 0x6af8c], edi
jae 0x4162cf
push esi
call fcn.004164d4
pop ecx
mov dword [esi + 0x6af7c], edi
movzx eax, byte [ebx + edi]
mov ecx, dword [esi + 0x6af7c]
and eax, 0x7fff
and ecx, 0x3ff
shl ecx, 5
xor eax, ecx
inc edi
cmp edi, 2
mov dword [esi + 0x6af7c], eax
jb 0x4162d5
jmp 0x41630d
mov dword [esi + 0x6af8c], 1
mov dword [esi + 0x6af90], edi
pop edi
pop esi
pop ebx
ret
Function at 0x4165ff
Capabilities:
Encode data using xor

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0xc]
push edi
xor ebp, ebp
xor edi, edi
mov eax, dword [esi + 0x6af90]
mov dword [esi + 0x6af80], 2
test eax, eax
je 0x416819
push ebx
mov ebx, 0x7fff
cmp eax, 3
jb 0x416677
mov ecx, dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af7c]
and edx, 0x3ff
movzx eax, byte [ecx + esi + 0x1af72]
and eax, ebx
shl edx, 5
xor eax, edx
and ecx, ebx
mov dword [esi + 0x6af7c], eax
mov ebp, dword [esi + eax*4 + 0x4af70]
mov dword [esi + ecx*4 + 0x2af70], ebp
mov eax, dword [esi + 0x6af7c]
mov ecx, dword [esi + 0x6af84]
mov dword [esi + eax*4 + 0x4af70], ecx
test ebp, ebp
je 0x4166b3
mov eax, dword [esi + 0x6af84]
sub eax, ebp
cmp eax, 0x7efa
ja 0x4166b3
mov ecx, dword [esi + 0x6af90]
lea eax, [esi + 0x6afa0]
cmp dword [eax], ecx
jbe 0x41669c
mov dword [eax], ecx
push ebp
push esi
call fcn.00416311
mov edi, eax
mov eax, dword [esi + 0x6af90]
pop ecx
cmp edi, eax
pop ecx
jbe 0x4166b3
mov edi, eax
cmp edi, 3
jb 0x416790
lea eax, [edi - 3]
push eax
mov eax, dword [esi + 0x6af84]
sub eax, dword [esi + 0x6af88]
push eax
push esi
call fcn.00415b49
sub dword [esi + 0x6af90], edi
add esp, 0xc
cmp edi, dword [esi + 0x6af98]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x6af90]
ja 0x416749
cmp eax, 3
jb 0x416749
dec edi
inc dword [esi + 0x6af84]
mov ecx, dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af7c]
movzx eax, byte [esi + ecx + 0x1af72]
and edx, 0x3ff
and eax, ebx
shl edx, 5
xor eax, edx
and ecx, ebx
mov dword [esi + 0x6af7c], eax
dec edi
mov ebp, dword [esi + eax*4 + 0x4af70]
mov dword [esi + ecx*4 + 0x2af70], ebp
mov eax, dword [esi + 0x6af7c]
mov ecx, dword [esi + 0x6af84]
mov dword [esi + eax*4 + 0x4af70], ecx
jne 0x4166f4
jmp 0x4167b4
add dword [esi + 0x6af84], edi
mov eax, dword [esi + 0x6af84]
lea edx, [esi + 0x6af7c]
push 0x45450c
lea ecx, [eax + esi]
push 1
push esi
xor edi, edi
movzx eax, byte [ecx + 0x1af70]
mov dword [edx], eax
and eax, 0x3ff
movzx ecx, byte [ecx + 0x1af71]
and ecx, ebx
shl eax, 5
xor ecx, eax
mov dword [edx], ecx
call fcn.00414d61
add esp, 0xc
jmp 0x4167ba
mov eax, dword [esi + 0x6af84]
movzx eax, byte [eax + esi + 0x1af70]
push eax
push 0
push esi
call fcn.00415b49
add esp, 0xc
dec dword [esi + 0x6af90]
mov dword [esp + 0x14], eax
inc dword [esi + 0x6af84]
cmp dword [esp + 0x14], 0
je 0x4167f7
mov eax, dword [esi + 0x6af74]
test eax, eax
jl 0x4167d4
lea ecx, [eax + esi + 0x1af70]
jmp 0x4167d6
xor ecx, ecx
mov edx, dword [esi + 0x6af84]
push 0
sub edx, eax
push edx
push ecx
push esi
call fcn.00415939
mov eax, dword [esi + 0x6af84]
add esp, 0x10
mov dword [esi + 0x6af74], eax
cmp dword [esi + 0x6af90], 0x106
jae 0x41680a
push esi
call fcn.004164d4
pop ecx
mov eax, dword [esi + 0x6af90]
test eax, eax
jne 0x416628
pop ebx
mov eax, dword [esi + 0x6af74]
test eax, eax
jl 0x41682c
lea ecx, [eax + esi + 0x1af70]
jmp 0x41682e
xor ecx, ecx
mov edx, dword [esi + 0x6af84]
push 1
sub edx, eax
push edx
push ecx
push esi
call fcn.00415939
add esp, 0x10
pop edi
pop esi
pop ebp
ret