joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b8c4e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x639034]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x24]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0x1c]
push edi
push eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x58], 1
call fcn.00466091
mov dword [ebp - 0x5c], eax
pop ecx
test eax, eax
js 0x4b8e2d
call fcn.004ad80e
mov edi, eax
mov dword [ebp - 0x68], edi
test edi, edi
je 0x4b8e2d
xor ebx, ebx
test esi, esi
jne 0x4b8cb0
mov esi, 0x59e6b8
mov ecx, ebx
jmp 0x4b8cc6
mov ecx, dword [ebp + 0xc]
cmp ecx, 0xffffffff
jne 0x4b8cc6
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4b8cbd
sub ecx, edx
push ebx
push dword [ebp - 0x54]
push ecx
push esi
push edi
call fcn.004ad922
add esp, 0x14
test eax, eax
je 0x4b8e26
call fcn.004ad80e
mov esi, eax
test esi, esi
je 0x4b8e26
mov edx, dword [ebp + 0x20]
jmp 0x4b8e09
cmp edx, dword [ebp - 0x5c]
mov eax, edx
mov ecx, dword [ebp - 0x58]
cmovg eax, dword [ebp - 0x5c]
mov dword [ebp - 0x4c], eax
mov eax, ecx
shr eax, 0x18
mov byte [ebp - 0x48], al
mov eax, ecx
shr eax, 0x10
mov byte [ebp - 0x47], al
mov eax, ecx
shr eax, 8
push edi
push esi
mov byte [ebp - 0x46], al
mov byte [ebp - 0x45], cl
call fcn.004ad770
pop ecx
pop ecx
test eax, eax
je 0x4b8e14
push dword [ebp + 0x14]
push dword [ebp - 0x60]
push esi
call fcn.004adb6d
add esp, 0xc
test eax, eax
je 0x4b8e14
push 4
lea eax, [ebp - 0x48]
push eax
push esi
call fcn.004adb6d
add esp, 0xc
test eax, eax
je 0x4b8e14
push ebx
lea eax, [ebp - 0x44]
push eax
push esi
call fcn.004ad89c
add esp, 0xc
test eax, eax
je 0x4b8e14
push dword [ebp - 0x4c]
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x50]
call fcn.0055f020
xor eax, eax
add esp, 0xc
inc eax
mov dword [ebp - 0x54], eax
cmp dword [ebp + 0x18], eax
jle 0x4b8df8
push edi
push esi
call fcn.004ad770
pop ecx
pop ecx
test eax, eax
je 0x4b8e14
push dword [ebp - 0x5c]
lea eax, [ebp - 0x44]
push eax
push esi
call fcn.004adb6d
add esp, 0xc
test eax, eax
je 0x4b8e14
push ebx
lea eax, [ebp - 0x44]
push eax
push esi
call fcn.004ad89c
add esp, 0xc
test eax, eax
je 0x4b8e14
mov ecx, dword [ebp - 0x4c]
test ecx, ecx
jle 0x4b8dea
mov edx, dword [ebp - 0x50]
lea eax, [ebp - 0x44]
sub eax, edx
mov edi, ecx
mov dword [ebp - 0x64], eax
mov ecx, eax
mov al, byte [edx + ecx]
xor byte [edx], al
inc edx
sub edi, 1
jne 0x4b8dd9
mov edi, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x54]
inc eax
mov dword [ebp - 0x54], eax
cmp eax, dword [ebp + 0x18]
jl 0x4b8d90
jmp 0x4b8dfb
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp + 0x20]
sub edx, ecx
inc dword [ebp - 0x58]
add dword [ebp - 0x50], ecx
mov dword [ebp + 0x20], edx
test edx, edx
jne 0x4b8cf4
xor ebx, ebx
inc ebx
push esi
call fcn.004ad7cf
push edi
call fcn.004ad7cf
pop ecx
pop ecx
mov eax, ebx
jmp 0x4b8e2f
push edi
call fcn.004ad7cf
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00546623
leave
ret
Function at 0x4ba8d3
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 8]
push 1
push edi
call fcn.0049a5f9
mov ebx, eax
push ebx
push edi
call fcn.0049a4f8
add esp, 0x10
test eax, eax
je 0x4ba920
push esi
push 2
push ebx
push eax
xor esi, esi
push esi
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
cmove esi, ebx
mov eax, esi
shl eax, 3
push eax
push esi
push edi
call fcn.0049a554
push edi
call fcn.0049a679
add esp, 0x10
pop esi
test eax, eax
jne 0x4ba927
push edi
call fcn.0049a679
pop ecx
pop edi
pop ebx
pop ebp
ret
Function at 0x4bb3e5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 0xc]
mov ecx, edx
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
push 0x10
pop ebx
mov dword [ebp - 4], ebx
sub esi, edx
mov edi, ebx
mov al, byte [esi + ecx]
xor byte [ecx], al
inc ecx
sub edi, 1
jne 0x4bb3fe
push ebx
push edx
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push edx
push dword [eax + 4]
call fcn.00489427
add esp, 0x14
test eax, eax
je 0x4bb42c
cmp dword [ebp - 4], ebx
jne 0x4bb42c
xor eax, eax
inc eax
jmp 0x4bb42e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4bb589
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x4bb5f0
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4bb5f0
mov edx, dword [ebp + 8]
push esi
push edi
mov eax, dword [edx + 0xc]
cmp ecx, eax
mov esi, eax
cmovb esi, ecx
mov dword [ebp + 0xc], esi
xor esi, esi
mov edi, esi
cmp dword [ebp + 0xc], esi
jbe 0x4bb5cb
mov ecx, dword [ebp + 0xc]
mov al, byte [edi + ebx]
xor byte [edx + edi + 0x10], al
inc edi
cmp edi, ecx
jb 0x4bb5b9
mov eax, dword [edx + 0xc]
mov ecx, dword [ebp + 0x10]
cmp ecx, eax
jbe 0x4bb5ee
sub ecx, eax
push 0x10
pop eax
cmp ecx, eax
cmova ecx, eax
test ecx, ecx
je 0x4bb5ee
mov eax, dword [edx + 0xc]
add eax, esi
mov al, byte [eax + ebx]
xor byte [edx + esi + 0x30], al
inc esi
cmp esi, ecx
jb 0x4bb5dd
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4c0c09
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [eax + 0x60]
xor eax, eax
mov dword [ebp - 0x10], edi
mov dword [ebp + 8], esi
mov dword [ebp - 4], edx
mov ecx, dword [edi + 0x70]
test ecx, ecx
je 0x4c0c70
test ebx, ebx
je 0x4c0c54
cmp ecx, 0x40
jae 0x4c0c52
mov al, byte [ecx + edi + 0x30]
xor al, byte [esi]
mov byte [edx], al
inc edx
inc ecx
mov dword [ebp - 4], edx
inc esi
mov dword [ebp + 8], esi
sub ebx, 1
jne 0x4c0c37
xor eax, eax
mov dword [edi + 0x70], ecx
test ebx, ebx
je 0x4c0d20
cmp ecx, 0x40
jne 0x4c0c70
mov dword [edi + 0x70], eax
add dword [edi + 0x20], 1
jne 0x4c0c70
inc dword [edi + 0x24]
mov ecx, dword [edi + 0x20]
mov eax, ebx
and eax, 0x3f
sub ebx, eax
mov dword [ebp - 8], eax
cmp ebx, 0x40
jb 0x4c0cd4
mov eax, ebx
mov esi, ecx
shr eax, 6
xor edx, edx
add ecx, eax
cmp ecx, eax
cmovae edx, ecx
neg esi
cmp ecx, eax
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 4]
cmovae esi, eax
lea eax, [edi + 0x20]
push eax
push edi
shl esi, 6
push esi
push dword [ebp + 8]
push edx
call fcn.004de2ee
mov ecx, dword [ebp - 0xc]
add esp, 0x14
add dword [ebp + 8], esi
sub ebx, esi
add dword [ebp - 4], esi
mov dword [edi + 0x20], ecx
test ecx, ecx
jne 0x4c0cc9
inc dword [edi + 0x24]
cmp ebx, 0x40
jae 0x4c0c82
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 8]
test eax, eax
je 0x4c0d20
push 0x40
lea ebx, [edi + 0x30]
push 0
push ebx
mov dword [ebp + 8], ebx
call fcn.0055fb20
lea eax, [edi + 0x20]
push eax
push edi
push 0x40
push ebx
push ebx
call fcn.004de2ee
mov ebx, dword [ebp - 8]
add esp, 0x20
test ebx, ebx
je 0x4c0d1d
mov edx, dword [ebp - 4]
sub esi, edx
xor edi, edi
mov eax, dword [ebp + 8]
lea ecx, [edi + edx]
mov al, byte [eax + edi]
xor al, byte [esi + ecx]
inc edi
mov byte [ecx], al
cmp edi, ebx
jb 0x4c0d07
mov edi, dword [ebp - 0x10]
mov dword [edi + 0x70], ebx
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret
Function at 0x4c835d
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0x10]
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004c8548
add esp, 0xc
test eax, eax
js 0x4c8545
mov eax, dword [edi + 0xf0]
push ebx
mov ebx, eax
shl ebx, 2
push esi
test ebx, ebx
jle 0x4c83dc
lea edx, [edi + 8]
lea esi, [edi + 8]
xor edi, edi
lea edx, [edx + ebx*4]
mov ecx, dword [esi - 8]
add edi, 4
mov eax, dword [edx - 8]
sub ebx, 4
mov dword [esi - 8], eax
mov eax, dword [edx - 4]
mov dword [edx - 8], ecx
mov ecx, dword [esi - 4]
mov dword [esi - 4], eax
mov eax, dword [edx]
mov dword [edx - 4], ecx
mov ecx, dword [esi]
mov dword [esi], eax
lea esi, [esi + 0x10]
mov eax, dword [edx + 4]
mov dword [edx], ecx
lea edx, [edx - 0x10]
mov ecx, dword [esi - 0xc]
mov dword [esi - 0xc], eax
mov dword [edx + 0x14], ecx
cmp edi, ebx
jl 0x4c8397
mov edi, dword [ebp + 0x10]
mov eax, dword [edi + 0xf0]
xor ebx, ebx
inc ebx
cmp eax, ebx
jle 0x4c8541
lea esi, [edi + 2]
lea esi, [esi + 0x10]
mov edx, dword [esi - 2]
mov eax, edx
shr eax, 0x18
movzx ecx, byte [eax*4 + 0x5f1ee0]
movzx eax, byte [esi - 1]
mov ecx, dword [ecx*4 + 0x5f2ae0]
movzx eax, byte [eax*4 + 0x5f1ee0]
xor ecx, dword [eax*4 + 0x5f32e0]
movzx eax, byte [esi]
movzx eax, byte [eax*4 + 0x5f1ee0]
xor ecx, dword [eax*4 + 0x5f2ee0]
movzx eax, dl
mov edx, dword [esi + 2]
movzx eax, byte [eax*4 + 0x5f1ee0]
xor ecx, dword [eax*4 + 0x5f36e0]
mov eax, edx
shr eax, 0x18
mov dword [esi - 2], ecx
movzx ecx, byte [eax*4 + 0x5f1ee0]
movzx eax, byte [esi + 3]
mov ecx, dword [ecx*4 + 0x5f2ae0]
movzx eax, byte [eax*4 + 0x5f1ee0]
xor ecx, dword [eax*4 + 0x5f32e0]
movzx eax, byte [esi + 4]
movzx eax, byte [eax*4 + 0x5f1ee0]
xor ecx, dword [eax*4 + 0x5f2ee0]
movzx eax, dl
mov edx, dword [esi + 6]
movzx eax, byte [eax*4 + 0x5f1ee0]
xor ecx, dword [eax*4 + 0x5f36e0]
mov eax, edx
shr eax, 0x18
mov dword [esi + 2], ecx
movzx ecx, byte [eax*4 + 0x5f1ee0]
movzx eax, byte [esi + 7]
mov ecx, dword [ecx*4 + 0x5f2ae0]
movzx eax, byte [eax*4 + 0x5f1ee0]
xor ecx, dword [eax*4 + 0x5f32e0]
movzx eax, byte [esi + 8]
movzx eax, byte [eax*4 + 0x5f1ee0]
xor ecx, dword [eax*4 + 0x5f2ee0]
movzx eax, dl
mov edx, dword [esi + 0xa]
movzx eax, byte [eax*4 + 0x5f1ee0]
xor ecx, dword [eax*4 + 0x5f36e0]
mov eax, edx
shr eax, 0x18
mov dword [esi + 6], ecx
movzx ecx, byte [eax*4 + 0x5f1ee0]
movzx eax, byte [esi + 0xb]
mov ecx, dword [ecx*4 + 0x5f2ae0]
movzx eax, byte [eax*4 + 0x5f1ee0]
xor ecx, dword [eax*4 + 0x5f32e0]
movzx eax, byte [esi + 0xc]
movzx eax, byte [eax*4 + 0x5f1ee0]
xor ecx, dword [eax*4 + 0x5f2ee0]
movzx eax, dl
movzx eax, byte [eax*4 + 0x5f1ee0]
xor ecx, dword [eax*4 + 0x5f36e0]
inc ebx
mov dword [esi + 0xa], ecx
cmp ebx, dword [edi + 0xf0]
jl 0x4c83ea
pop esi
xor eax, eax
pop ebx
pop edi
pop ebp
ret
Function at 0x4ca1ce
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov edx, ecx
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [ecx + 4]
cmp eax, dword [edi + 4]
cmovge edx, edi
cmovge edi, ecx
mov dword [ebp + 0xc], edx
push dword [edi + 4]
push ebx
call fcn.0046032b
pop ecx
pop ecx
test eax, eax
je 0x4ca241
mov eax, dword [ebp + 0xc]
push esi
xor esi, esi
cmp dword [eax + 4], esi
jle 0x4ca22c
mov eax, dword [eax]
mov ecx, dword [edi]
mov edx, dword [eax + esi*4]
mov eax, dword [ebx]
xor edx, dword [ecx + esi*4]
mov dword [eax + esi*4], edx
inc esi
mov eax, dword [ebp + 0xc]
cmp esi, dword [eax + 4]
jl 0x4ca207
jmp 0x4ca22c
mov eax, dword [edi]
mov ecx, dword [ebx]
mov eax, dword [eax + esi*4]
mov dword [ecx + esi*4], eax
inc esi
mov eax, dword [edi + 4]
cmp esi, eax
jl 0x4ca221
push ebx
mov dword [ebx + 4], eax
call fcn.0046010f
pop ecx
xor eax, eax
inc eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4caf5b
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [ebp + 0x14]
xor edi, edi
call fcn.00460c34
push dword [ebp + 0x14]
call fcn.00460b77
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4cb13a
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx + 4]
add eax, eax
push eax
push esi
call fcn.0046032b
pop ecx
pop ecx
test eax, eax
je 0x4cb139
mov eax, dword [ebx + 4]
lea ecx, [eax - 1]
test ecx, ecx
js 0x4cb117
mov edi, ecx
mov eax, dword [ebx]
mov edx, dword [eax + edi*4]
mov ecx, edx
shr ecx, 1
mov eax, edx
and eax, 0x20000
and ecx, 0x8000
or ecx, eax
mov eax, edx
and eax, 0x40000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x80000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x100000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x200000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x400000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x800000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x1000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x2000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x4000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x8000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x10000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x20000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x40000000
shr ecx, 1
or ecx, eax
and edx, reloc.WS2_32.dll_accept
mov eax, dword [esi]
shr ecx, 1
or ecx, edx
shr ecx, 1
mov dword [eax + edi*8 + 4], ecx
mov eax, dword [ebx]
mov ecx, dword [eax + edi*4]
mov edx, ecx
and edx, 0x8000
mov eax, ecx
add edx, edx
and eax, 0x4000
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x2000
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x1000
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x800
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x400
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x200
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x100
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x80
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x40
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x20
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x10
or edx, eax
mov eax, ecx
add edx, edx
and eax, 8
or edx, eax
mov eax, ecx
add edx, edx
and eax, 4
or edx, eax
mov eax, ecx
add edx, edx
and eax, 2
or edx, eax
and ecx, 1
mov eax, dword [esi]
add edx, edx
or edx, ecx
mov dword [eax + edi*8], edx
sub edi, 1
jns 0x4cafa9
mov eax, dword [ebx + 4]
xor edi, edi
add eax, eax
push esi
mov dword [esi + 4], eax
call fcn.0046010f
push dword [ebp + 0x10]
push esi
push dword [ebp + 8]
call fcn.004ca2b3
add esp, 0x10
test eax, eax
push 1
pop eax
cmovne edi, eax
pop ebx
push dword [ebp + 0x14]
call fcn.00460ad7
pop ecx
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x4d2585
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x639034]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x18]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x2c], eax
push ebx
movzx ebx, byte [ecx]
push esi
lea esi, [ecx + 1]
mov dword [ebp - 0x28], ecx
mov edx, esi
mov dword [ebp - 0x24], esi
push edi
mov edi, dword [eax]
xor eax, eax
mov dword [ebp - 0x14], eax
movzx eax, byte [edx]
shl eax, 8
or ebx, eax
movzx ecx, byte [edx + 3]
movzx eax, byte [edx + 1]
shl eax, 0x10
or ebx, eax
movzx eax, byte [edx + 2]
shl eax, 0x18
or ebx, eax
movzx eax, byte [edx + 4]
shl eax, 8
or ecx, eax
mov dword [ebp - 0x1c], ebx
movzx eax, byte [edx + 5]
mov dword [ebp - 8], ecx
movzx ecx, byte [edx + 6]
mov edx, dword [ebp - 8]
shl ecx, 8
or ecx, eax
mov byte [ebp - 0xc], bl
mov eax, ebx
shl ecx, 0x10
shr eax, 8
or edx, ecx
mov byte [ebp - 0xb], al
mov eax, ebx
shr eax, 0x10
mov byte [ebp - 0xa], al
mov eax, ebx
shr eax, 0x18
mov byte [ebp - 9], al
mov eax, edx
shr eax, 8
mov byte [ebp - 7], al
mov eax, edx
shr eax, 0x10
mov byte [ebp - 6], al
mov eax, edx
shr eax, 0x18
cmp dword [ebp + 0x10], 0
mov dword [ebp - 0x18], edx
mov byte [ebp - 8], dl
mov byte [ebp - 5], al
je 0x4d2701
mov ecx, dword [ebp + 8]
sub dword [ebp - 0x10], ecx
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp - 0x10]
dec eax
mov dword [ebp + 0x10], eax
test edi, edi
jne 0x4d26ae
push 1
push dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
push eax
call fcn.004cf6a9
mov ebx, dword [ebp - 0x1c]
add esp, 0xc
mov edx, dword [ebp - 0x18]
mov eax, ebx
shr eax, 8
mov byte [ebp - 0xb], al
mov eax, ebx
mov ecx, dword [ebp + 8]
shr eax, 0x10
mov byte [ebp - 0xa], al
mov eax, ebx
shr eax, 0x18
mov byte [ebp - 9], al
mov eax, edx
shr eax, 8
mov byte [ebp - 7], al
mov eax, edx
shr eax, 0x10
mov byte [ebp - 6], al
mov eax, edx
shr eax, 0x18
inc dword [ebp - 0x14]
mov byte [ebp - 0xc], bl
mov byte [ebp - 8], dl
mov byte [ebp - 5], al
mov al, byte [ebp + edi - 0xc]
xor al, byte [ecx]
mov byte [esi + ecx], al
inc ecx
mov eax, dword [ebp + 0x10]
inc edi
and edi, 7
mov dword [ebp + 8], ecx
test eax, eax
jne 0x4d2653
mov esi, dword [ebp - 0x24]
cmp dword [ebp - 0x14], eax
je 0x4d2701
mov eax, dword [ebp - 0x28]
mov byte [eax], bl
mov eax, ebx
shr eax, 8
mov byte [esi], al
mov eax, ebx
shr eax, 0x10
mov byte [esi + 1], al
mov eax, edx
shr ebx, 0x18
mov byte [esi + 2], bl
shr eax, 8
mov byte [esi + 3], dl
mov byte [esi + 4], al
mov eax, edx
shr eax, 0x10
shr edx, 0x18
mov byte [esi + 5], al
mov byte [esi + 6], dl
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov dword [eax], edi
pop edi
pop esi
pop ebx
call fcn.00546623
leave
ret
Function at 0x4d2f65
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x639034]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x20]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x34], eax
push ebx
movzx ebx, byte [ecx]
push esi
lea esi, [ecx + 1]
mov dword [ebp - 0x30], ecx
mov edx, esi
mov dword [ebp - 0x2c], esi
push edi
mov edi, dword [eax]
xor eax, eax
mov dword [ebp - 0x14], eax
movzx eax, byte [edx]
shl eax, 8
or ebx, eax
movzx ecx, byte [edx + 3]
movzx eax, byte [edx + 1]
shl eax, 0x10
or ebx, eax
movzx eax, byte [edx + 2]
shl eax, 0x18
or ebx, eax
movzx eax, byte [edx + 4]
shl eax, 8
or ecx, eax
mov dword [ebp - 0x1c], ebx
movzx eax, byte [edx + 5]
mov dword [ebp - 8], ecx
movzx ecx, byte [edx + 6]
mov edx, dword [ebp - 8]
shl ecx, 8
or ecx, eax
mov byte [ebp - 0xc], bl
mov eax, ebx
shl ecx, 0x10
shr eax, 8
or edx, ecx
mov byte [ebp - 0xb], al
mov eax, ebx
shr eax, 0x10
mov byte [ebp - 0xa], al
mov eax, ebx
shr eax, 0x18
mov byte [ebp - 9], al
mov eax, edx
shr eax, 8
mov byte [ebp - 7], al
mov eax, edx
shr eax, 0x10
mov byte [ebp - 6], al
mov eax, edx
shr eax, 0x18
cmp dword [ebp + 0x10], 0
mov dword [ebp - 0x18], edx
mov byte [ebp - 8], dl
mov byte [ebp - 5], al
je 0x4d30f1
mov ecx, dword [ebp + 8]
sub dword [ebp - 0x10], ecx
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp - 0x10]
dec eax
mov dword [ebp + 0x10], eax
test edi, edi
jne 0x4d309e
push dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push eax
call fcn.004d16dc
mov ebx, dword [ebp - 0x1c]
add esp, 0x10
mov edx, dword [ebp - 0x18]
mov eax, ebx
shr eax, 8
mov byte [ebp - 0xb], al
mov eax, ebx
mov ecx, dword [ebp + 8]
shr eax, 0x10
mov byte [ebp - 0xa], al
mov eax, ebx
shr eax, 0x18
mov byte [ebp - 9], al
mov eax, edx
shr eax, 8
mov byte [ebp - 7], al
mov eax, edx
shr eax, 0x10
mov byte [ebp - 6], al
mov eax, edx
shr eax, 0x18
inc dword [ebp - 0x14]
mov byte [ebp - 0xc], bl
mov byte [ebp - 8], dl
mov byte [ebp - 5], al
mov al, byte [ebp + edi - 0xc]
xor al, byte [ecx]
mov byte [esi + ecx], al
inc ecx
mov eax, dword [ebp + 0x10]
inc edi
and edi, 7
mov dword [ebp + 8], ecx
test eax, eax
jne 0x4d303f
mov esi, dword [ebp - 0x2c]
cmp dword [ebp - 0x14], eax
je 0x4d30f1
mov eax, dword [ebp - 0x30]
mov byte [eax], bl
mov eax, ebx
shr eax, 8
mov byte [esi], al
mov eax, ebx
shr eax, 0x10
mov byte [esi + 1], al
mov eax, edx
shr ebx, 0x18
mov byte [esi + 2], bl
shr eax, 8
mov byte [esi + 3], dl
mov byte [esi + 4], al
mov eax, edx
shr eax, 0x10
shr edx, 0x18
mov byte [esi + 5], al
mov byte [esi + 6], dl
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov dword [eax], edi
pop edi
pop esi
pop ebx
call fcn.00546623
leave
ret
Function at 0x4d47eb
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x639034]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x18]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x2c], eax
push ebx
movzx ebx, byte [ecx]
push esi
lea esi, [ecx + 1]
shl ebx, 0x18
mov edx, esi
mov dword [ebp - 0x28], ecx
push edi
mov edi, dword [eax]
xor eax, eax
mov dword [ebp - 0x14], eax
movzx eax, byte [edx]
movzx ecx, byte [edx + 3]
shl eax, 0x10
or ebx, eax
shl ecx, 0x18
movzx eax, byte [edx + 1]
shl eax, 8
or ebx, eax
mov dword [ebp - 0x24], esi
movzx eax, byte [edx + 2]
or ebx, eax
movzx eax, byte [edx + 4]
shl eax, 0x10
or ecx, eax
mov dword [ebp - 0x1c], ebx
movzx eax, byte [edx + 6]
mov dword [ebp - 8], ecx
movzx ecx, byte [edx + 5]
mov edx, dword [ebp - 8]
shl ecx, 8
or ecx, eax
mov byte [ebp - 9], bl
mov eax, ebx
or edx, ecx
shr eax, 0x18
mov byte [ebp - 0xc], al
mov eax, ebx
shr eax, 0x10
mov byte [ebp - 0xb], al
mov eax, ebx
shr eax, 8
mov byte [ebp - 0xa], al
mov eax, edx
shr eax, 0x18
mov byte [ebp - 8], al
mov eax, edx
shr eax, 0x10
mov byte [ebp - 7], al
mov eax, edx
shr eax, 8
cmp dword [ebp + 0x10], 0
mov dword [ebp - 0x18], edx
mov byte [ebp - 6], al
mov byte [ebp - 5], dl
je 0x4d4968
mov ecx, dword [ebp + 8]
sub dword [ebp - 0x10], ecx
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp - 0x10]
dec eax
mov dword [ebp + 0x10], eax
test edi, edi
jne 0x4d4911
push dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
push eax
call fcn.004d3e68
mov ebx, dword [ebp - 0x1c]
mov eax, ebx
mov edx, dword [ebp - 0x18]
shr eax, 0x18
mov byte [ebp - 0xc], al
mov eax, ebx
shr eax, 0x10
mov byte [ebp - 0xb], al
mov eax, ebx
shr eax, 8
mov byte [ebp - 0xa], al
mov eax, edx
shr eax, 0x18
mov byte [ebp - 8], al
mov eax, edx
shr eax, 0x10
mov byte [ebp - 7], al
mov eax, edx
pop ecx
shr eax, 8
inc dword [ebp - 0x14]
pop ecx
mov ecx, dword [ebp + 8]
mov byte [ebp - 9], bl
mov byte [ebp - 6], al
mov byte [ebp - 5], dl
mov al, byte [ebp + edi - 0xc]
xor al, byte [ecx]
mov byte [esi + ecx], al
inc ecx
mov eax, dword [ebp + 0x10]
inc edi
and edi, 7
mov dword [ebp + 8], ecx
test eax, eax
jne 0x4d48b9
mov esi, dword [ebp - 0x24]
cmp dword [ebp - 0x14], eax
je 0x4d4968
mov ecx, dword [ebp - 0x28]
mov eax, ebx
shr eax, 0x18
mov byte [ecx], al
mov eax, ebx
shr eax, 0x10
mov byte [esi], al
mov eax, ebx
shr eax, 8
mov byte [esi + 1], al
mov eax, edx
shr eax, 0x18
mov byte [esi + 2], bl
mov byte [esi + 3], al
mov eax, edx
shr eax, 0x10
mov byte [esi + 4], al
mov eax, edx
shr eax, 8
mov byte [esi + 5], al
mov byte [esi + 6], dl
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov dword [eax], edi
pop edi
pop esi
pop ebx
call fcn.00546623
leave
ret
Function at 0x4d497c
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, 0x400
push edi
mov edi, 0x80
mov edx, eax
cmp dword [ebp + 0xc], edi
mov ecx, edi
mov byte [esi], 0
cmovle ecx, dword [ebp + 0xc]
cmp dword [ebp + 0x14], 0
cmovg edx, dword [ebp + 0x14]
cmp edx, eax
cmovg edx, eax
mov dword [ebp + 0xc], edx
test ecx, ecx
jle 0x4d49cb
mov ebx, dword [ebp + 0x10]
mov edx, esi
sub ebx, esi
mov esi, ecx
mov al, byte [ebx + edx]
mov byte [edx], al
inc edx
sub esi, 1
jne 0x4d49ba
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
movzx eax, byte [ecx + esi - 1]
mov dword [ebp + 0x14], eax
cmp ecx, edi
jge 0x4d49f8
mov ebx, esi
mov edx, eax
movzx eax, byte [ebx]
add eax, edx
movzx eax, al
mov al, byte [eax + 0x5f5318]
mov byte [ecx + esi], al
inc ecx
inc ebx
movzx edx, al
cmp ecx, edi
jl 0x4d49db
mov edx, dword [ebp + 0xc]
lea eax, [edx + 7]
neg edx
sar eax, 3
and edx, 7
sub edi, eax
mov dword [ebp + 0xc], edx
mov ecx, dword [ebp + 0xc]
mov edx, 0xff
mov dword [ebp + 0x14], eax
sar edx, cl
lea ebx, [edi + esi]
movzx eax, byte [ebx]
and edx, eax
mov al, byte [edx + 0x5f5318]
movzx edx, al
mov byte [ebx], al
test edi, edi
je 0x4d4a46
mov ecx, dword [ebp + 0x14]
dec ebx
movzx eax, byte [ebx + ecx]
xor eax, edx
mov al, byte [eax + 0x5f5318]
movzx edx, al
mov byte [ebx], al
sub edi, 1
jne 0x4d4a2f
push 0x40
lea edx, [esi + 0xfc]
add esi, 0x7e
pop edi
movzx ecx, byte [esi + 1]
movzx eax, byte [esi]
lea esi, [esi - 2]
shl ecx, 8
or ecx, eax
mov dword [edx], ecx
lea edx, [edx - 4]
sub edi, 1
jne 0x4d4a52
pop edi
pop esi
pop ebx
pop ebp
ret