joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403404
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x513008], 0x8088405
inc edx
mov dword [ebx + 0x513008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x409da8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x409dfa
test eax, edx
je 0x409dfd
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x409dbd
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x409de3
add ecx, 4
js 0x409dd3
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x409de0
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x409e09
test edx, edx
jne 0x409db0
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x4296f4
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x4296fa
ret
Function at 0x488ca8
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
xor esi, esi
mov ecx, 0x522f28
mov eax, esi
mov edx, 8
mov ebx, eax
and ebx, 1
test bl, bl
je 0x488cca
shr eax, 1
xor eax, 0xedb88320
jmp 0x488ccc
shr eax, 1
dec edx
jne 0x488cb8
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x488cb1
mov byte [0x523328], 1
pop esi
pop ebx
ret

Function at 0x488ce8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
cmp byte [0x523328], 0
jne 0x488cff
call fcn.00488ca8
mov eax, edi
dec eax
test eax, eax
jl 0x488d27
inc eax
xor edx, edx
movzx ecx, byte [esi + edx]
xor ecx, ebx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x522f28]
shr ebx, 8
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x488d09
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x48b664
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, eax
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x14]
movzx edx, byte [eax + 0x461]
movzx ecx, dl
cmp ecx, 6
ja case.0x48b6fe.0
jmp dword [ecx*4 + 0x48b697]
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x48b6c9
sub dl, 8
je 0x48b6d8
jmp case.0x48b6fe.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x48b310
jmp case.0x48b6fe.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x48b368
jmp case.0x48b6fe.0
movzx ecx, byte [eax + 0x460]
cmp ecx, 0x10
ja case.0x48b6fe.0
movzx ecx, byte [ecx + 0x48b705]
jmp dword [ecx*4 + 0x48b716]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x48b414
jmp case.0x48b6fe.0
cmp dl, 3
jne 0x48b743
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x48b468
jmp case.0x48b6fe.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x48b424
jmp case.0x48b6fe.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x48b4ac
jmp case.0x48b6fe.0
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x48b76e
sub dl, 8
je 0x48b77a
jmp case.0x48b6fe.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x48b4d8
jmp case.0x48b6fe.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x48b544
jmp case.0x48b6fe.0
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x48b799
sub dl, 8
je 0x48b7a5
jmp case.0x48b6fe.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x48b600
jmp case.0x48b6fe.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x48b628
mov edx, dword [eax + 0x468]
mov ecx, dword [ebx + 0x1c]
dec ecx
imul edx, ecx
mov esi, edx
add esi, dword [eax + 0x450]
mov dword [ebp - 0xc], esi
mov esi, dword [eax + 0x454]
mov dword [ebp - 8], esi
mov esi, edx
add esi, dword [eax + 0x44c]
mov dword [ebp - 0x10], esi
mov esi, ecx
test esi, esi
jb 0x48b849
inc esi
mov eax, dword [ebx + 0x20]
inc eax
push eax
lea eax, [ebx + 0x4c]
push eax
mov eax, dword [ebp + 8]
push eax
movzx eax, byte [ebx + 0x48]
mov ecx, dword [ebx + eax*4 + 0x40]
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.0048a81c
test eax, eax
je 0x48b849
mov eax, ebx
call fcn.0048b854
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x10]
push eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
lea edx, [eax + 1]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
call dword [ebp - 0x18]
movzx eax, byte [ebx + 0x48]
xor al, 1
mov byte [ebx + 0x48], al
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + 0x468]
sub dword [ebp - 0xc], eax
sub dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x18]
add dword [ebp - 8], eax
dec esi
jne 0x48b7e2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x48b854
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebx, eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax]
dec al
je 0x48b885
dec al
je 0x48b8c0
dec al
je 0x48b905
dec al
je 0x48b96e
jmp 0x48b9f8
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x48b9f8
inc edi
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx edx, byte [ecx + edx]
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x48b895
jmp 0x48b9f8
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x48b9f8
mov esi, 1
movzx eax, byte [ebx + 0x48]
mov edx, eax
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x48b8d0
jmp 0x48b9f8
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x48b9f8
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov ecx, esi
dec ecx
mov edx, dword [ebx + 0x24]
cmp ecx, edx
jae 0x48b934
xor ebp, ebp
jmp 0x48b944
mov ecx, esi
sub ecx, edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx ebp, byte [edx + ecx]
add eax, ebp
sar eax, 1
jns 0x48b94d
adc eax, 0
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
add al, byte [edx + esi]
and al, 0xff
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x48b915
jmp 0x48b9f8
xor ebp, ebp
xor eax, eax
mov dword [esp + 4], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x48b9f8
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov edx, esi
dec edx
cmp edx, dword [ebx + 0x24]
jb 0x48b9c7
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx ebp, byte [ecx + edx]
movzx edx, byte [ebx + 0x48]
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov ecx, esi
sub ecx, dword [ebx + 0x24]
movzx edx, byte [edx + ecx]
mov dword [esp + 4], edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
mov dword [esp], edx
movzx ecx, byte [esp + 4]
push eax
mov eax, ebp
pop edx
call fcn.00488d30
add al, byte [esp]
and al, 0xff
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x48b982
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x493a20
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
test eax, 0x4000000
je 0x493a35
or edx, 0x200
test eax, 0x20000000
je 0x493a68
test eax, 0x40000000
je 0x493a54
test eax, 0x80000000
je 0x493a4f
or edx, 0x40
jmp 0x493a8f
or edx, 0x20
jmp 0x493a8f
test eax, 0x80000000
je 0x493a63
or edx, 0x80
jmp 0x493a8f
or edx, 0x10
jmp 0x493a8f
test eax, 0x40000000
je 0x493a80
test eax, 0x80000000
je 0x493a7b
or edx, 4
jmp 0x493a8f
or edx, 2
jmp 0x493a8f
test eax, 0x80000000
je 0x493a8c
or edx, 8
jmp 0x493a8f
or edx, 1
mov eax, edx
pop ebp
ret 4

Function at 0x4973a0
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4973ce
mov eax, ebx
call fcn.00497e54
cmp dword [ebx + 0x40], 0
je 0x4973c7
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x49743f
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x497431
cmp dword [ebx + 8], 0
je 0x4973f0
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x497402
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x497431
cmp dword [ebx + 8], 0
je 0x4973e3
cmp eax, 3
je 0x497415
dec eax
jne 0x4973e3
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4973e3
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4973e3
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x49745d
cmp dword [ebx + 0x14], 0xcc
je 0x49745d
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00497468
pop ebx
ret
Function at 0x4a8d28
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, ecx
mov esi, eax
xor eax, eax
mov dword [edx], esi
mov ecx, dword [edx]
cmp word [ecx], 0x5a4d
jne 0x4a8d76
mov edx, dword [edx]
mov edx, dword [edx + 0x3c]
add edx, esi
mov dword [ebx], edx
mov edx, dword [ebx]
cmp dword [edx], 0x4550
jne 0x4a8d76
mov edx, dword [ebx]
mov edi, dword [edx + 0xa0]
test edi, edi
je 0x4a8d76
mov edx, dword [ebx]
test byte [edx + 0x16], 1
jne 0x4a8d76
mov edx, edi
mov eax, esi
call fcn.004a8d20
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov al, 1
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x4ae904
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
test eax, 0x4000000
je 0x4ae919
or edx, 0x200
test eax, 0x20000000
je 0x4ae94c
test eax, 0x40000000
je 0x4ae938
test eax, 0x80000000
je 0x4ae933
or edx, 0x40
jmp 0x4ae973
or edx, 0x20
jmp 0x4ae973
test eax, 0x80000000
je 0x4ae947
or edx, 0x80
jmp 0x4ae973
or edx, 0x10
jmp 0x4ae973
test eax, 0x40000000
je 0x4ae964
test eax, 0x80000000
je 0x4ae95f
or edx, 4
jmp 0x4ae973
or edx, 2
jmp 0x4ae973
test eax, 0x80000000
je 0x4ae970
or edx, 8
jmp 0x4ae973
or edx, 1
mov eax, edx
pop ebp
ret 4
Function at 0x4aea14
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffec0
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x48]
mov ecx, 0x40
mov edx, esi
call fcn.004086f4
cmp word [ebp - 0x48], 0x5a4d
jne 0x4aebca
mov edx, esi
add edx, dword [ebp - 0xc]
lea eax, [ebp - 0x140]
mov ecx, 0xf8
call fcn.004086f4
cmp dword [ebp - 0x140], 0x4550
jne 0x4aebca
push 0x40
push 0x2000
mov eax, dword [ebp - 0xf0]
push eax
mov eax, dword [ebp - 0x10c]
push eax
call fcn.00407dfc
mov ebx, eax
test ebx, ebx
jne 0x4aeaa4
push 0x40
push 0x2000
mov eax, dword [ebp - 0xf0]
push eax
push 0
call fcn.00407dfc
mov ebx, eax
test ebx, ebx
je 0x4aebca
push 0x11
push 0
call fcn.00407c34
push eax
call fcn.00407ccc
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [eax + 4], ebx
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [eax + 8], edx
mov eax, dword [ebp - 8]
mov byte [eax + 0x10], 0
push 0x40
push 0x1000
mov eax, dword [ebp - 0xf0]
push eax
push ebx
call fcn.00407dfc
push 0x40
push 0x1000
mov eax, dword [ebp - 0xec]
push eax
push ebx
call fcn.00407dfc
mov edi, eax
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 0xec]
mov edx, esi
mov eax, edi
call fcn.004086f4
mov eax, edi
add eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov edi, ebx
mov dword [eax + 0x34], edi
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0x140]
push eax
push esi
call fcn.004ae630
mov eax, edi
sub eax, dword [ebp - 0x10c]
test eax, eax
je 0x4aeb4d
push eax
mov eax, dword [ebp - 8]
push eax
call fcn.004ae6d8
mov eax, dword [ebp - 8]
push eax
call fcn.004ae790
test al, al
jne 0x4aeb6b
cmp dword [ebp - 8], 0
je 0x4aebca
lea eax, [ebp - 8]
push eax
call fcn.004aed38
jmp 0x4aebca
mov eax, dword [ebp - 8]
push eax
call fcn.004ae97c
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov eax, dword [eax + 0x28]
test eax, eax
je 0x4aebc4
mov edx, eax
add edx, edi
mov esi, edx
test edx, edx
jne 0x4aeb9b
cmp dword [ebp - 8], 0
je 0x4aebca
lea eax, [ebp - 8]
push eax
call fcn.004aed38
jmp 0x4aebca
push 0
push 1
push edi
call esi
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x4aebbd
cmp dword [ebp - 8], 0
je 0x4aebca
lea eax, [ebp - 8]
push eax
call fcn.004aed38
jmp 0x4aebca
mov eax, dword [ebp - 8]
mov byte [eax + 0x10], 1
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4b26a4
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
test dl, dl
je 0x4b26b6
add esp, 0xfffffff0
call fcn.0040466c
mov esi, ecx
mov ebx, edx
mov edi, eax
lea eax, [ebp + 0x1c]
call fcn.00405e30
xor eax, eax
push ebp
push 0x4b2762
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, edi
call fcn.00404318
mov dword [edi + 0x38], esi
lea eax, [edi + 0xc]
mov edx, dword [ebp + 0x1c]
call fcn.00405a64
mov eax, dword [ebp + 0x14]
mov dword [edi + 0x10], eax
mov eax, dword [ebp + 0x18]
mov dword [edi + 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x18], eax
movzx eax, byte [ebp + 8]
mov byte [edi + 0x1c], al
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x20], eax
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
push 0
lea eax, [edi + 0x40]
mov ecx, 1
mov edx, dword [0x4af3d8]
call fcn.004069a0
add esp, 4
mov eax, edi
call fcn.004b24f8
test al, al
jne 0x4b274c
call fcn.0040ea98
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b2769
lea eax, [ebp + 0x1c]
call fcn.00405a28
ret

Function at 0x4b87d0
Capabilities:
Reference http user-agent string

Disassembly:
push ebx
push esi
test dl, dl
je 0x4b87de
add esp, 0xfffffff0
call fcn.0040466c
mov ebx, edx
mov esi, eax
xor edx, edx
mov eax, esi
call fcn.004222dc
lea eax, [esi + 0x30]
mov edx, 0x4b883c
call fcn.0040529c
lea eax, [esi + 0x34]
mov edx, 0x4b8848
call fcn.0040529c
mov dl, 1
mov eax, dword [0x418d54]
call fcn.00404318
mov dword [esi + 0xa0], eax
mov eax, esi
test bl, bl
je 0x4b882c
call fcn.004046c4
pop dword fs:[0]
add esp, 0xc
mov eax, esi
pop esi
pop ebx
ret

Function at 0x4d6388
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
test dl, dl
je 0x4d639b
add esp, 0xfffffff0
call fcn.0040466c
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4d6414
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, esi
call fcn.00404318
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov byte [esi + 0x14], 0
lea edx, [ebp - 4]
mov eax, esi
call fcn.004d65dc
mov edx, dword [ebp - 4]
lea eax, [esi + 8]
call fcn.0040529c
mov ecx, dword [esi + 8]
lea eax, [esi + 0xc]
mov edx, 0x4d6440
call fcn.00405560
mov ecx, esi
mov dl, 1
mov eax, dword [0x4d6210]
call fcn.004d6b74
mov dword [esi + 0x30], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d641b
lea eax, [ebp - 4]
call fcn.00405248
ret
Function at 0x4e2324
Capabilities:
Encrypt data using des

Disassembly:
push ebx
mov ecx, edx
and cl, 0x20
mov ebx, edx
and bl, 0x1e
movzx ebx, bl
shr ebx, 1
or cl, bl
and dl, 1
shl edx, 4
or cl, dl
mov edx, ecx
movzx edx, dl
movzx eax, al
add eax, eax
add eax, eax
add eax, eax
lea eax, [eax*8 + 0x51a32c]
movzx eax, byte [eax + edx]
and al, 0xf
pop ebx
ret

Function at 0x4e235c
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov ebx, edx
test ebx, ebx
js 0x4e2374
shr ebx, 2
mov esi, dword [eax + ebx*4]
dec ebx
push esi
jns 0x4e236d
mov eax, esp
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
xor ecx, ecx
mov edx, 7
call fcn.00403b14
xor edx, edx
mov eax, 0x51a52c
movzx ebx, byte [eax]
mov ecx, ebx
and cl, 7
movzx ecx, cl
push ecx
mov ecx, 7
pop esi
sub ecx, esi
mov esi, 1
shl esi, cl
movzx ecx, bl
shr ecx, 3
mov ebx, dword [ebp - 4]
movzx ecx, byte [ebx + ecx]
and esi, ecx
je 0x4e23db
mov ecx, edx
and ecx, 7
push ecx
mov ecx, 7
pop ebx
sub ecx, ebx
mov bl, 1
shl bl, cl
mov ecx, edx
shr ecx, 3
mov esi, dword [ebp - 8]
or byte [esi + ecx], bl
inc edx
inc eax
cmp edx, 0x38
jne 0x4e2392
mov esi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4
Function at 0x4e261c
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
mov ebx, dword [ebp + 0x10]
test ebx, ebx
js 0x4e2635
shr ebx, 2
mov esi, dword [ecx + ebx*4]
dec ebx
push esi
jns 0x4e262e
mov ecx, esp
mov ebx, edx
test ebx, ebx
js 0x4e2647
shr ebx, 2
mov esi, dword [eax + ebx*4]
dec ebx
push esi
jns 0x4e2640
mov eax, esp
mov dword [ebp - 4], ecx
push 5
lea ecx, [ebp - 0xa]
call fcn.004e2214
mov ebx, 6
mov eax, dword [ebp - 4]
lea edx, [ebp - 0xa]
movzx ecx, byte [eax]
xor byte [edx], cl
inc edx
inc eax
dec ebx
jne 0x4e2661
movzx eax, byte [ebp - 0xa]
movzx edx, al
shr edx, 2
mov byte [ebp - 0x12], dl
and al, 3
shl eax, 4
movzx edx, byte [ebp - 9]
movzx ecx, dl
shr ecx, 4
or al, cl
mov byte [ebp - 0x11], al
and dl, 0xf
add edx, edx
add edx, edx
movzx eax, byte [ebp - 8]
movzx ecx, al
shr ecx, 6
or dl, cl
mov byte [ebp - 0x10], dl
and al, 0x3f
mov byte [ebp - 0xf], al
movzx eax, byte [ebp - 7]
movzx edx, al
shr edx, 2
mov byte [ebp - 0xe], dl
and al, 3
shl eax, 4
movzx edx, byte [ebp - 6]
shr edx, 4
or al, dl
mov byte [ebp - 0xd], al
movzx eax, byte [ebp - 6]
and al, 0xf
add eax, eax
add eax, eax
movzx edx, byte [ebp - 5]
shr edx, 6
or al, dl
mov byte [ebp - 0xc], al
movzx eax, byte [ebp - 5]
and al, 0x3f
mov byte [ebp - 0xb], al
xor ebx, ebx
lea esi, [ebp - 0x12]
mov eax, ebx
movzx edx, byte [esi]
call fcn.004e2324
mov byte [esi], al
inc ebx
inc esi
cmp ebx, 8
jne 0x4e26e9
mov ebx, 4
lea eax, [ebp - 0x12]
lea edx, [ebp - 0xa]
movzx ecx, byte [eax]
shl ecx, 4
or cl, byte [eax + 1]
mov byte [edx], cl
inc edx
add eax, 2
dec ebx
jne 0x4e2707
lea eax, [ebp - 0xa]
mov edx, 5
call fcn.004e22a4
mov ebx, 4
lea eax, [ebp - 0xa]
mov edx, dword [ebp + 0xc]
movzx ecx, byte [eax]
mov byte [edx], cl
inc edx
inc eax
dec ebx
jne 0x4e2731
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4e2748
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov ebx, ecx
test ebx, ebx
js 0x4e2761
shr ebx, 2
mov esi, dword [edx + ebx*4]
dec ebx
push esi
jns 0x4e275a
mov edx, esp
mov dword [ebp - 4], edx
mov ebx, eax
mov dword [ebp - 8], 8
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
movzx edx, byte [eax]
mov byte [ecx], dl
inc ecx
inc eax
dec dword [ebp - 8]
jne 0x4e2775
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.004e2114
test bl, bl
jne 0x4e284f
mov dword [ebp - 8], 0x10
mov dword [ebp - 0x14], 0x525850
mov eax, 4
mov edx, dword [ebp + 0xc]
lea esi, [ebp - 0xc]
movzx ecx, byte [edx]
mov byte [esi], cl
inc esi
inc edx
dec eax
jne 0x4e27ad
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
movzx ecx, byte [edx]
mov byte [edx - 4], cl
inc edx
dec eax
jne 0x4e27c2
push 0x63
lea eax, [ebp - 0x10]
push eax
push 3
mov eax, dword [ebp - 0x14]
mov ecx, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.004e261c
mov eax, 4
lea edx, [ebp - 0xc]
lea esi, [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
add ecx, 4
movzx ebx, byte [edx]
xor bl, byte [esi]
mov byte [ecx], bl
inc ecx
inc esi
inc edx
dec eax
jne 0x4e27f5
add dword [ebp - 0x14], 0x64
dec dword [ebp - 8]
jne 0x4e27a2
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
lea ecx, [ebp - 0xc]
movzx ebx, byte [edx]
mov byte [ecx], bl
inc ecx
inc edx
dec eax
jne 0x4e2819
mov eax, 4
mov edx, dword [ebp + 0xc]
movzx ecx, byte [edx]
mov byte [edx + 4], cl
inc edx
dec eax
jne 0x4e282b
mov eax, 4
lea edx, [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
movzx ebx, byte [edx]
mov byte [ecx], bl
inc ecx
inc edx
dec eax
jne 0x4e2840
jmp 0x4e2910
cmp bl, 1
jne 0x4e2910
mov dword [ebp - 8], 0xfffffff0
mov ebx, 0x525e2c
mov eax, 4
mov edx, dword [ebp + 0xc]
lea esi, [ebp - 0xc]
movzx ecx, byte [edx]
mov byte [esi], cl
inc esi
inc edx
dec eax
jne 0x4e286f
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
movzx ecx, byte [edx]
mov byte [edx - 4], cl
inc edx
dec eax
jne 0x4e2884
push 0x63
lea eax, [ebp - 0x10]
push eax
push 3
mov ecx, ebx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.004e261c
mov eax, 4
lea edx, [ebp - 0xc]
lea esi, [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
add ecx, 4
mov dword [ebp - 0x18], ecx
movzx ecx, byte [edx]
xor cl, byte [esi]
mov edi, dword [ebp - 0x18]
mov byte [edi], cl
inc dword [ebp - 0x18]
inc esi
inc edx
dec eax
jne 0x4e28b7
sub ebx, 0x64
inc dword [ebp - 8]
jne 0x4e2864
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
lea ebx, [ebp - 0xc]
movzx ecx, byte [edx]
mov byte [ebx], cl
inc ebx
inc edx
dec eax
jne 0x4e28df
mov eax, 4
mov ebx, dword [ebp + 0xc]
movzx edx, byte [ebx]
mov byte [ebx + 4], dl
inc ebx
dec eax
jne 0x4e28f1
mov eax, 4
lea ebx, [ebp - 0xc]
mov edx, dword [ebp + 0xc]
movzx ecx, byte [ebx]
mov byte [edx], cl
inc edx
inc ebx
dec eax
jne 0x4e2906
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.004e2194
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret 8