joyce8/EMBER2024-capa huggingface dataset:
Function at 0x434a90
Capabilities:
Check mutex on windows

Disassembly:
push 0xffffffffffffffff
push 0x441158
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push str.Q360RepairLeakMutex
push 1
push 0
mov dword [esi + 0xc4], 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
mov dword [esi + 0xc4], eax
je 0x434b6d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x434b6d
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::CString_3
push 0
push 0x66
mov dword [esp + 0x18], 0
call fcn.004232b0
mov ecx, eax
call fcn.00423b90
push eax
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::operator_1
push 0
push str.360RepairLeakClass
call dword [sym.imp.USER32.dll_FindWindowA]
mov esi, eax
test esi, esi
je 0x434b47
push 9
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, dword [0x450744]
test eax, eax
jl 0x434b47
push 0
push eax
push 0x4ef
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
lea ecx, [esp + 4]
mov dword [esp + 0x10], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
mov ecx, dword [esp + 8]
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x43a420
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.00403f30
test eax, eax
jne 0x43a432
pop esi
pop ecx
ret 8
mov eax, dword [esp + 0xc]
lea ecx, [esi + 4]
push eax
call sub.MFC42.DLL_CString::operator_1
mov ecx, dword [esp + 0x10]
push ecx
lea ecx, [esi + 8]
call sub.MFC42.DLL_CString::operator_1
lea edx, [esp + 4]
push edx
push 0
push esi
push 0x43a370
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
pop ecx
ret 8
Function at 0x40d41c
Capabilities:
Enumerate pe sections

Disassembly:
push 0x2c
push 0x6d3998
call fcn.004cbe10
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 4], eax
cmp esi, eax
je 0x40d4e9
cmp ebx, eax
je 0x40d4e9
cmp edx, eax
je 0x40d4e9
cmp ecx, eax
je 0x40d4e9
mov byte [ebx], al
mov dword [edx], eax
mov dword [ecx], eax
push 0x1c
lea eax, [ebp - 0x3c]
push eax
push esi
call dword [0x4f4390]
test eax, eax
je 0x40d4e9
mov edi, dword [ebp - 0x38]
test edi, edi
je 0x40d4e9
push dword [ebp + 0x10]
push ebx
push edi
call dword [0x4f43e8]
mov eax, dword [edi + 0x3c]
add eax, edi
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
sub esi, edi
and dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], ecx
movzx edx, word [eax + 6]
cmp dword [ebp - 0x1c], edx
jae 0x40d4e9
test ecx, ecx
je 0x40d4e9
mov edx, dword [ecx + 0xc]
mov edi, dword [ecx + 0x10]
mov ebx, dword [ecx + 8]
cmp edi, ebx
ja 0x40d4b4
mov edi, ebx
add edi, edx
cmp esi, edx
jb 0x40d4da
cmp esi, edi
ja 0x40d4da
mov eax, dword [ebp - 0x1c]
inc eax
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
sub esi, edx
mov eax, dword [ebp + 0x18]
mov dword [eax], esi
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
inc eax
jmp 0x40d4f2
inc dword [ebp - 0x1c]
add ecx, 0x28
jmp 0x40d495
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
call fcn.004cbe55
ret
Function at 0x443c05
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
lea eax, [esi + 0xc]
push eax
push 4
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call fcn.004cd165
add esp, 0x18
mov dword [esi + 4], eax
test eax, eax
je 0x443c46
cmp dword [ebp + 0x10], 0
je 0x443c3a
push dword [ebp + 0x10]
push eax
call dword [0x4f4364]
push dword [esi + 4]
call dword [0x4f4368]
xor eax, eax
inc eax
pop esi
pop ebp
ret 0xc

Function at 0x46a346
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x841728], 0
jne 0x46a388
lea eax, [ebp - 0x10]
push 4
push eax
mov dword [0x841728], 1
mov dword [ebp - 0x10], 0x4fa444
mov dword [ebp - 0xc], 0x4fa430
mov dword [ebp - 8], 0x4fa418
mov dword [ebp - 4], 0x4fa404
call fcn.0046990e
pop ecx
pop ecx
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
call fcn.0046a1df
push esi
call fcn.00465087
push esi
call fcn.0046a068
pop ecx
pop ecx
xor eax, eax
pop esi
leave
ret
Function at 0x49d596
Capabilities:
Persist via run registry key

Disassembly:
push 8
mov eax, 0x4eab1f
call fcn.004cb7ce
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0x10], esp
push dword [ebp + 8]
call fcn.004049bf
and dword [ebp - 4], 0
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
mov esi, 0x4ffb7c
push esi
call fcn.004049bf
or dword [ebp - 4], 0xffffffff
push 0x80000001
call fcn.00408248
add esp, 0x10
call fcn.00411348
test eax, eax
jne 0x49d645
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push dword [ebp + 8]
call fcn.004049bf
push ecx
mov ecx, esp
mov dword [ebp - 0x10], esp
push esi
mov dword [ebp - 4], 1
call fcn.004049bf
or dword [ebp - 4], 0xffffffff
mov edi, 0x80000002
push edi
call fcn.00408248
add esp, 0x10
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push dword [ebp + 8]
call fcn.004049bf
push ecx
mov ecx, esp
mov dword [ebp - 0x10], esp
push esi
mov dword [ebp - 4], 2
call fcn.004049bf
or dword [ebp - 4], 0xffffffff
push edi
call fcn.00408248
add esp, 0x10
call fcn.004cb8a6
ret

Function at 0x49d67a
Capabilities:
Persist via run registry key

Disassembly:
push 0xc
mov eax, 0x4eab4a
call fcn.004cb7ce
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0x10], esp
push dword [ebp + 0x10]
call fcn.004049bf
and dword [ebp - 4], 0
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push dword [ebp + 0xc]
call fcn.004049bf
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push 0x4ffb7c
mov byte [ebp - 4], 1
call fcn.004049bf
mov eax, dword [ebp + 8]
neg eax
sbb eax, eax
or dword [ebp - 4], 0xffffffff
add eax, 0x80000002
push eax
call fcn.00408533
add esp, 0x14
call fcn.004cb8a6
ret
Function at 0x49d717
Capabilities:
Persist via run registry key

Disassembly:
push 0x18
mov eax, 0x4eabaf
call fcn.004cb7ce
xor ebx, ebx
inc ebx
push ebx
push ecx
xor edi, edi
mov dword [ebp - 0x10], edi
mov ecx, esp
mov dword [ebp - 0x10], esp
push dword [ebp + 8]
call fcn.004049bf
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
mov esi, 0x4ffb7c
push esi
mov dword [ebp - 4], edi
call fcn.004049bf
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x1c]
push 0x80000001
push eax
call fcn.004081b0
add esp, 0x14
mov eax, dword [eax]
mov eax, dword [eax - 8]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
cmp eax, edi
jne 0x49d801
push edi
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push dword [ebp + 8]
call fcn.004049bf
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push esi
mov dword [ebp - 4], 2
call fcn.004049bf
mov edi, 0x80000002
lea eax, [ebp - 0x18]
push edi
push eax
mov byte [ebp - 4], bl
call fcn.004081b0
add esp, 0x14
mov eax, dword [eax]
cmp dword [eax - 8], 0
push 3
pop ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x10], ecx
jne 0x49d801
push ebx
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push dword [ebp + 8]
call fcn.004049bf
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push esi
mov dword [ebp - 4], 4
call fcn.004049bf
lea eax, [ebp - 0x14]
push edi
push eax
mov byte [ebp - 4], 3
call fcn.004081b0
mov eax, dword [eax]
xor esi, esi
add esp, 0x14
mov dword [ebp - 0x10], 7
cmp dword [eax - 8], esi
je 0x49d803
mov esi, ebx
test byte [ebp - 0x10], 4
je 0x49d815
and dword [ebp - 0x10], 0xfffffffb
lea ecx, [ebp - 0x14]
call fcn.00401637
test byte [ebp - 0x10], 2
je 0x49d827
and dword [ebp - 0x10], 0xfffffffd
lea ecx, [ebp - 0x18]
call fcn.00401637
test byte [ebp - 0x10], bl
je 0x49d834
lea ecx, [ebp - 0x1c]
call fcn.00401637
mov eax, esi
call fcn.004cb8a6
ret
Function at 0x49e248
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
test eax, eax
je 0x49e42f
test al, 7
jne 0x49e42f
and dword [ebp - 8], 0
and dword [ebp - 4], 0
cmp dword [ebp + 0x14], 1
jne 0x49e313
mov ecx, dword [edi + 0xc]
mov ebx, dword [edi + 8]
mov dword [ebp - 0xc], ecx
cmp eax, 8
jb 0x49e30c
mov esi, dword [ebp + 8]
add esi, 6
shr eax, 3
mov dword [ebp + 8], eax
movzx eax, byte [esi - 6]
movzx ecx, byte [esi - 5]
movzx edx, byte [esi - 1]
shl ecx, 0x10
shl eax, 0x18
or eax, ecx
movzx ecx, byte [esi - 4]
shl ecx, 8
or eax, ecx
movzx ecx, byte [esi - 3]
or eax, ecx
movzx ecx, byte [esi - 2]
shl ecx, 0x18
shl edx, 0x10
or ecx, edx
movzx edx, byte [esi]
shl edx, 8
or ecx, edx
movzx edx, byte [esi + 1]
or ecx, edx
xor ecx, dword [ebp - 0xc]
xor eax, ebx
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
mov dword [ebp - 4], ecx
push eax
mov ecx, edi
call fcn.0049e111
mov eax, dword [ebp - 4]
add dword [ebp + 0xc], 8
push dword [ebp + 0xc]
mov ebx, dword [ebp - 8]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
call fcn.0049e209
pop ecx
add esi, 8
dec dword [ebp + 8]
pop ecx
jne 0x49e296
pop edi
pop esi
pop ebx
leave
ret 0x10
cmp dword [ebp + 0x14], 2
jne 0x49e3b0
mov ecx, dword [edi + 8]
mov dword [ebp - 0x10], ecx
mov ecx, dword [edi + 0xc]
mov dword [ebp - 0xc], ecx
cmp eax, 8
jb 0x49e30c
mov esi, dword [ebp + 8]
add esi, 6
shr eax, 3
mov ebx, eax
lea eax, [ebp - 0x10]
push eax
mov ecx, edi
call fcn.0049e111
movzx eax, byte [esi - 6]
movzx ecx, byte [esi - 5]
movzx edx, byte [esi - 1]
shl ecx, 0x10
shl eax, 0x18
or eax, ecx
movzx ecx, byte [esi - 4]
shl ecx, 8
or eax, ecx
movzx ecx, byte [esi - 3]
add dword [ebp + 0xc], 8
push dword [ebp + 0xc]
or eax, ecx
movzx ecx, byte [esi - 2]
xor eax, dword [ebp - 0x10]
shl ecx, 0x18
shl edx, 0x10
or ecx, edx
movzx edx, byte [esi]
shl edx, 8
or ecx, edx
movzx edx, byte [esi + 1]
or ecx, edx
xor ecx, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 8]
push eax
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], ecx
call fcn.0049e209
pop ecx
add esi, 8
dec ebx
pop ecx
jne 0x49e339
jmp 0x49e30c
cmp eax, 8
jb 0x49e30c
mov esi, dword [ebp + 8]
add esi, 6
shr eax, 3
mov ebx, eax
movzx eax, byte [esi - 6]
movzx ecx, byte [esi - 5]
shl ecx, 0x10
shl eax, 0x18
or eax, ecx
movzx ecx, byte [esi - 4]
shl ecx, 8
or eax, ecx
movzx ecx, byte [esi - 3]
or eax, ecx
movzx ecx, byte [esi - 1]
mov dword [ebp - 8], eax
movzx eax, byte [esi - 2]
shl ecx, 0x10
shl eax, 0x18
or eax, ecx
movzx ecx, byte [esi]
shl ecx, 8
or eax, ecx
movzx ecx, byte [esi + 1]
or eax, ecx
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
mov ecx, edi
call fcn.0049e111
add dword [ebp + 0xc], 8
push dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
call fcn.0049e209
pop ecx
add esi, 8
dec ebx
pop ecx
jne 0x49e3c4
jmp 0x49e30c
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp + 0xc], 0x500e48
call fcn.004cc141
push 0x6df700
lea eax, [ebp - 0x14]
push eax
call fcn.004caf63
int3
Function at 0x49e451
Capabilities:
Encrypt data using blowfish

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x83da70]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 1
mov eax, dword [ebp + 0x10]
mov edx, dword [eax]
push ebx
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
mov dword [esi], edx
mov edx, dword [eax + 4]
mov dword [esi + 4], edx
mov edx, dword [eax]
mov dword [esi + 8], edx
mov eax, dword [eax + 4]
push edi
mov dword [esi + 0xc], eax
jae 0x49e4a8
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x44], 0x500e60
call fcn.004cc141
push 0x6df700
lea eax, [ebp - 0x54]
push eax
call fcn.004caf63
push 0x38
pop eax
cmp dword [ebp + 0xc], eax
jbe 0x49e4b3
mov dword [ebp + 0xc], eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x3c]
push ecx
push eax
call fcn.004ccc80
push 0x48
lea edi, [esi + 0x10]
push 0x4ffe00
push edi
call fcn.004ccc80
push 0x1000
lea eax, [esi + 0x58]
push 0x4ffe48
push eax
call fcn.004ccc80
add esp, 0x24
and dword [ebp - 0x48], 0
lea eax, [ebp - 0x3c]
mov ecx, edi
mov dword [ebp - 0x44], 0x12
and dword [ebp - 0x40], 0
mov dword [ebp - 0x4c], 4
mov edx, dword [ebp - 0x40]
movzx ebx, byte [eax]
dec dword [ebp - 0x4c]
shl edx, 8
or edx, ebx
inc eax
inc dword [ebp - 0x48]
mov dword [ebp - 0x40], edx
mov edx, dword [ebp - 0x48]
cmp edx, dword [ebp + 0xc]
jne 0x49e525
and dword [ebp - 0x48], 0
lea eax, [ebp - 0x3c]
cmp dword [ebp - 0x4c], 0
jne 0x49e501
mov edx, dword [ebp - 0x40]
xor dword [ecx], edx
add ecx, 4
dec dword [ebp - 0x44]
jne 0x49e4f6
xor ebx, ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
lea eax, [ebp - 0x50]
push eax
mov ecx, esi
call fcn.0049e111
mov eax, dword [ebp - 0x50]
mov dword [edi], eax
mov eax, dword [ebp - 0x4c]
mov dword [edi + 4], eax
add ebx, 2
add edi, 8
cmp ebx, 0x12
jb 0x49e540
lea eax, [esi + 0x58]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x44], 4
mov edi, dword [ebp - 0x40]
xor ebx, ebx
lea eax, [ebp - 0x50]
push eax
mov ecx, esi
call fcn.0049e111
mov eax, dword [ebp - 0x50]
mov dword [edi], eax
mov eax, dword [ebp - 0x4c]
mov dword [edi + 4], eax
add ebx, 2
add edi, 8
cmp ebx, 0x100
jl 0x49e573
add dword [ebp - 0x40], 0x400
dec dword [ebp - 0x44]
jne 0x49e56e
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004cb7bf
leave
ret 0xc
Function at 0x4a00af
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x4a00bd
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x10]
not eax
mov ecx, 0xff
cmp edi, 8
jb 0x4a0178
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x501728]
movzx ebx, byte [edx + 1]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x501728]
movzx ebx, byte [edx + 2]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x501728]
movzx ebx, byte [edx + 3]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x501728]
movzx ebx, byte [edx + 4]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x501728]
movzx ebx, byte [edx + 5]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x501728]
movzx ebx, byte [edx + 6]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x501728]
movzx ebx, byte [edx + 7]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x501728]
add edx, 8
sub edi, 8
dec esi
jne 0x4a00db
pop ebx
test edi, edi
je 0x4a0191
movzx esi, byte [edx]
xor esi, eax
and esi, ecx
shr eax, 8
xor eax, dword [esi*4 + 0x501728]
inc edx
dec edi
jne 0x4a017c
pop edi
not eax
pop esi
pop ebp
ret
Function at 0x4a02f7
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x83da70]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x10]
push esi
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x18]
push edi
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x5c], eax
call dword [0x4f4234]
xor esi, esi
inc esi
cmp eax, esi
je 0x4a033f
mov eax, 0x1000000
jmp 0x4a04d3
lea eax, [ebp - 0x38]
push eax
push edi
call dword [0x4f4250]
test eax, eax
jne 0x4a0358
mov eax, 0x200
jmp 0x4a04d3
mov eax, dword [ebp - 0x38]
push ebx
xor ebx, ebx
mov edx, eax
and edx, esi
mov dword [ebp - 0x3c], ebx
je 0x4a036a
mov dword [ebp - 0x3c], esi
test al, 2
je 0x4a0372
or dword [ebp - 0x3c], 2
test al, 4
je 0x4a037a
or dword [ebp - 0x3c], 4
mov ecx, eax
and ecx, 0x10
je 0x4a0385
or dword [ebp - 0x3c], 0x10
test al, 0x20
je 0x4a038d
or dword [ebp - 0x3c], 0x20
cmp ecx, ebx
je 0x4a039a
or dword [ebp - 0x3c], 0x40000000
jmp 0x4a03a1
or dword [ebp - 0x3c], 0x80000000
or dword [ebp - 0x3c], 0x1000000
cmp edx, ebx
jne 0x4a03b3
or dword [ebp - 0x3c], 0x800000
push ebx
push edi
call dword [0x4f4330]
mov dword [ebp - 0x48], eax
cmp eax, 0x28
jbe 0x4a0454
mov esi, dword [0x4f41c8]
push ebx
push ebx
push ebx
push edi
call esi
push ebx
lea eax, [ebp - 0x4c]
push eax
push 2
lea eax, [ebp - 0x40]
push eax
push edi
mov edi, dword [0x4f43a0]
call edi
push ebx
push ebx
push 0x24
push dword [ebp - 0x44]
call esi
push ebx
lea eax, [ebp - 0x4c]
push eax
push 4
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0x44]
call edi
mov eax, 0x54ad
cmp word [ebp - 0x40], ax
jne 0x4a0454
mov eax, dword [ebp - 0x50]
lea ecx, [eax + 0x34]
cmp dword [ebp - 0x48], ecx
jbe 0x4a0454
push ebx
push ebx
push eax
push dword [ebp - 0x44]
call esi
push ebx
lea eax, [ebp - 0x4c]
push eax
push 4
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x44]
call edi
mov eax, dword [ebp - 0x64]
cmp eax, 0x5a4d
je 0x4a044d
cmp eax, 0x454e
je 0x4a044d
cmp eax, 0x454c
je 0x4a044d
cmp eax, 0x4550
jne 0x4a0454
or dword [ebp - 0x3c], 0x400000
mov eax, dword [ebp - 0x58]
cmp eax, ebx
je 0x4a0460
mov ecx, dword [ebp - 0x3c]
mov dword [eax], ecx
mov eax, dword [ebp - 0x60]
cmp eax, ebx
je 0x4a046c
mov ecx, dword [ebp - 0x48]
mov dword [eax], ecx
mov esi, dword [ebp - 0x54]
cmp esi, ebx
je 0x4a04a8
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.004a0257
push dword [ebp - 0x20]
mov dword [esi], eax
push dword [ebp - 0x24]
mov dword [esi + 4], edx
call fcn.004a0257
push dword [ebp - 0x30]
mov dword [esi + 8], eax
push dword [ebp - 0x34]
mov dword [esi + 0xc], edx
call fcn.004a0257
add esp, 0x18
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
mov esi, dword [ebp - 0x5c]
cmp esi, ebx
pop ebx
je 0x4a04d1
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [0x4f446c]
movzx eax, word [ebp - 0x40]
movzx ecx, word [ebp - 0x3c]
shl eax, 0x10
or eax, ecx
mov dword [esi], eax
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004cb7bf
leave
ret
Function at 0x4a10b6
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
lea eax, [ebx - 1]
push edi
cmp eax, 7
jbe 0x4a10d4
mov dword [esi + 0x6afa4], 0x501c44
xor edi, edi
mov dword [esi + 0x6af78], edi
cmp dword [esi + 0x6af70], edi
jne 0x4a10f8
mov dword [esi + 0x6af78], 1
mov dword [esi + 0x6af70], 0x10000
push 0x1fffc
lea eax, [esi + 0x4af70]
push edi
push eax
mov dword [esi + 0x6af6c], edi
call fcn.004cb0d0
mov eax, ebx
movzx ecx, word [eax*8 + 0x5016da]
mov dword [esi + 0x6af98], ecx
movzx ecx, word [eax*8 + 0x5016d8]
mov dword [esi + 0x6af9c], ecx
movzx ecx, word [eax*8 + 0x5016dc]
mov dword [esi + 0x6afa0], ecx
movzx eax, word [eax*8 + 0x5016de]
add esp, 0xc
mov dword [esi + 0x6af94], eax
cmp ebx, 2
jg 0x4a115b
mov eax, dword [ebp + 0x10]
or word [eax], 4
jmp 0x4a1167
cmp ebx, 8
jl 0x4a1167
mov eax, dword [ebp + 0x10]
or word [eax], 2
push 0x10000
lea ebx, [esi + 0x1af70]
push ebx
push esi
mov dword [esi + 0x6af84], edi
mov dword [esi + 0x6af74], edi
call dword [esi + 0xc]
add esp, 0xc
mov dword [esi + 0x6af90], eax
cmp eax, edi
je 0x4a11ce
cmp eax, 0xffffffff
je 0x4a11ce
mov dword [esi + 0x6af8c], edi
cmp eax, 0x106
jae 0x4a11a9
push esi
call fcn.0049f7c4
pop ecx
mov dword [esi + 0x6af7c], edi
xor eax, eax
movzx ecx, byte [ebx + eax]
shl edi, 5
xor edi, ecx
and edi, 0x7fff
inc eax
mov dword [esi + 0x6af7c], edi
cmp eax, 2
jb 0x4a11b1
jmp 0x4a11de
mov dword [esi + 0x6af8c], 1
mov dword [esi + 0x6af90], edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4a17b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x6af80], 2
cmp dword [esi + 0x6af90], ebx
je 0x4a19b8
push edi
mov edi, 0x7fff
cmp dword [esi + 0x6af90], 3
jb 0x4a182a
mov ecx, dword [esi + 0x6af84]
movzx eax, byte [ecx + esi + 0x1af72]
mov edx, dword [esi + 0x6af7c]
shl edx, 5
xor eax, edx
and eax, edi
mov dword [esi + 0x6af7c], eax
mov eax, dword [esi + eax*4 + 0x4af70]
and ecx, edi
mov dword [esi + ecx*4 + 0x2af70], eax
mov ecx, dword [esi + 0x6af84]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x6af7c]
mov dword [esi + eax*4 + 0x4af70], ecx
cmp dword [ebp - 4], 0
je 0x4a186d
mov eax, dword [esi + 0x6af84]
sub eax, dword [ebp - 4]
cmp eax, 0x7efa
ja 0x4a186d
mov ecx, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], ecx
jbe 0x4a1854
mov dword [esi + 0x6afa0], ecx
push dword [ebp - 4]
push esi
call fcn.0049f639
mov ebx, eax
mov eax, dword [esi + 0x6af90]
pop ecx
pop ecx
cmp ebx, eax
jbe 0x4a186d
mov ebx, eax
cmp ebx, 3
jb 0x4a1932
lea eax, [ebx - 3]
push eax
mov eax, dword [esi + 0x6af84]
sub eax, dword [esi + 0x6af88]
push eax
push esi
call fcn.0049f162
sub dword [esi + 0x6af90], ebx
add esp, 0xc
mov dword [ebp + 8], eax
mov eax, dword [esi + 0x6af90]
cmp ebx, dword [esi + 0x6af98]
ja 0x4a18ff
cmp eax, 3
jb 0x4a18ff
dec ebx
inc dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af84]
movzx ecx, byte [esi + edx + 0x1af72]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
xor ecx, eax
and ecx, edi
mov dword [esi + 0x6af7c], ecx
mov ecx, dword [esi + ecx*4 + 0x4af70]
and edx, edi
dec ebx
mov dword [esi + edx*4 + 0x2af70], ecx
mov eax, dword [esi + 0x6af7c]
mov dword [ebp - 4], ecx
mov ecx, dword [esi + 0x6af84]
mov dword [esi + eax*4 + 0x4af70], ecx
jne 0x4a18ad
jmp 0x4a1955
add dword [esi + 0x6af84], ebx
mov edx, dword [esi + 0x6af84]
movzx ecx, byte [edx + esi + 0x1af70]
mov dword [esi + 0x6af7c], ecx
movzx edx, byte [edx + esi + 0x1af71]
shl ecx, 5
xor edx, ecx
xor ebx, ebx
and edx, edi
mov dword [esi + 0x6af7c], edx
jmp 0x4a195b
mov eax, dword [esi + 0x6af84]
movzx eax, byte [eax + esi + 0x1af70]
push eax
push 0
push esi
call fcn.0049f162
add esp, 0xc
dec dword [esi + 0x6af90]
mov dword [ebp + 8], eax
inc dword [esi + 0x6af84]
cmp dword [ebp + 8], 0
je 0x4a1997
mov eax, dword [esi + 0x6af74]
test eax, eax
js 0x4a1974
lea ecx, [eax + esi + 0x1af70]
jmp 0x4a1976
xor ecx, ecx
mov edx, dword [esi + 0x6af84]
push 0
sub edx, eax
push edx
push ecx
push esi
call fcn.004a160c
mov eax, dword [esi + 0x6af84]
add esp, 0x10
mov dword [esi + 0x6af74], eax
cmp dword [esi + 0x6af90], 0x106
jae 0x4a19aa
push esi
call fcn.0049f7c4
pop ecx
cmp dword [esi + 0x6af90], 0
jne 0x4a17da
pop edi
mov eax, dword [esi + 0x6af74]
test eax, eax
js 0x4a19cb
lea ecx, [eax + esi + 0x1af70]
jmp 0x4a19cd
xor ecx, ecx
mov edx, dword [esi + 0x6af84]
push 1
sub edx, eax
push edx
push ecx
push esi
call fcn.004a160c
add esp, 0x10
pop esi
pop ebx
leave
ret