Function at 0x4f2140
Capabilities:
Encrypt data using rc4 ksa
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54b77d
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x57a040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x80], vtable.CRandomManager.0
xor ecx, ecx
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 4], ecx
mov eax, 0x66666667
mov dword [ebp - 0x64], ecx
mov ecx, dword [0xbcd06c]
sub ecx, dword [0xbcd068]
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x4f2697
xor edx, edx
mov dword [ebp - 0x68], edx
mov esi, dword [0xbcd068]
add esi, edx
mov edx, dword [esi + 0x2c]
cmp edx, dword [ebp + 0xc]
jne 0x4f241c
mov eax, dword [esi]
cmp eax, dword [ebp + 0x10]
jne 0x4f241c
cmp edx, 0xffffffff
je 0x4f221f
dec eax
cmp eax, 0x13
ja 0x4f241c
lea ecx, [eax + eax*4]
mov eax, dword [edi + 0x74c]
lea ecx, [eax + ecx*4]
movzx eax, word [ecx]
cmp eax, edx
jne 0x4f241c
test ecx, ecx
je 0x4f241c
movzx eax, byte [ecx + 6]
cmp eax, dword [esi + 0x30]
jne 0x4f241c
movzx eax, word [edi + 0xcc]
mov ecx, dword [esi + eax*4 + 0x34]
test ecx, ecx
je 0x4f241c
movzx eax, byte [edi + 0xcf]
inc eax
cmp ecx, eax
jg 0x4f241c
mov eax, dword [esi + 0x28]
cmp eax, 0xffffffff
je 0x4f22a9
test eax, eax
je 0x4f241c
mov dword [ebp - 0x4c], esi
mov esi, dword [ebp - 0x50]
mov dword [ebp - 0x48], esi
add esi, eax
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x44], esi
cmp ebx, dword [ebp - 0x6c]
je 0x4f2285
movq xmm0, qword [ebp - 0x4c]
movq qword [ebx], xmm0
mov dword [ebx + 8], esi
add ebx, 0xc
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x74], ebx
jmp 0x4f241f
lea eax, [ebp - 0x4c]
push eax
push ebx
lea ecx, [ebp - 0x78]
call fcn.00416ef0
mov eax, dword [ebp - 0x70]
mov ebx, dword [ebp - 0x74]
mov esi, dword [ebp - 0x7c]
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x50], esi
jmp 0x4f241f
cmp dword [esi + 8], 1
jne 0x4f233c
mov eax, dword [edi + 0x624]
xor ecx, ecx
add eax, 4
nop
mov dl, byte [eax]
cmp dl, 0xff
je 0x4f22d0
cmp dl, 0x1f
je 0x4f241c
inc ecx
add eax, 0x1c
cmp ecx, 0x20
jl 0x4f22c0
mov eax, dword [edi + 0x624]
xor ecx, ecx
add eax, 4
mov dl, byte [eax]
cmp dl, 0xff
je 0x4f22f4
cmp dl, 0x2a
je 0x4f241c
inc ecx
add eax, 0x1c
cmp ecx, 0x20
jl 0x4f22e4
mov eax, dword [edi + 0x644]
push ecx
push dword [0xbdaa74]
mov eax, dword [eax*4 + 0xbda9ec]
imul eax, dword [esi + 0x10]
push eax
push edi
call fcn.004d6330
test al, al
jne 0x4f241c
mov eax, dword [edi + 0x644]
mov ecx, dword [edi]
mov edx, dword [eax*4 + 0xbda9ec]
imul edx, dword [esi + 0x10]
call fcn.004e9a50
cmp dword [esi + 8], 2
jne 0x4f238c
mov eax, dword [edi]
lea ecx, [edi + 0xe4]
mov dword [ebp - 0x5c], eax
test eax, eax
js 0x4f237d
cmp eax, 0x1194
jge 0x4f237d
mov eax, dword [eax*4 + 0x20a514c]
mov edx, dword [eax + 0xe4]
xor eax, eax
add edx, dword [esi + 0x10]
adc eax, eax
jne 0x4f237d
cmp edx, 0x77359400
ja 0x4f237d
mov edx, dword [ecx]
add edx, dword [esi + 0x10]
jmp 0x4f2382
mov edx, 0x77359400
mov dword [ecx], edx
mov ecx, dword [ebp - 0x5c]
call fcn.004e9640
cmp dword [esi + 8], 4
jne 0x4f23ea
cmp dword [esi + 0x10], 0
mov dword [ebp - 0x5c], 0
jle 0x4f23ea
mov ebx, dword [ebp - 0x5c]
movzx eax, byte [esi + 0x24]
mov dl, 0xeb
push 0
push 0xff
push 0
push 0
push 0
push 0
push eax
movzx eax, byte [esi + 0x20]
mov ecx, dword [edi]
push 0xffffffffffffffff
push eax
movzx eax, byte [esi + 0x1c]
push eax
movzx eax, byte [esi + 0x18]
push eax
movzx eax, byte [esi + 0x14]
push 0
push eax
push dword [esi + 0xc]
push 0
push 0
call fcn.00472500
inc ebx
add esp, 0x40
cmp ebx, dword [esi + 0x10]
jl 0x4f23a2
mov ebx, dword [ebp - 0x60]
cmp dword [esi + 8], 8
jne 0x4f2406
push 0
push 0
push 0
push 0
push dword [esi + 0x10]
push dword [esi + 0xc]
push 1
push edi
call fcn.00477200
cmp dword [esi + 8], 0x10
jne 0x4f241c
mov eax, dword [esi + 0x10]
push dword [edi]
add dword [edi + 0x764], eax
call fcn.00485d30
mov esi, dword [ebp - 0x50]
mov ecx, dword [0xbcd06c]
mov eax, 0x66666667
sub ecx, dword [0xbcd068]
inc dword [ebp - 0x64]
add dword [ebp - 0x68], 0x50
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [ebp - 0x68]
cmp dword [ebp - 0x64], eax
jb 0x4f21c5
test esi, esi
je 0x4f2697
mov esi, dword [ebp - 0x78]
cmp esi, ebx
je 0x4f2697
call fcn.00526930
cdq
idiv dword [ebp - 0x50]
mov eax, ebx
nop dword [eax]
cmp edx, dword [esi + 4]
jl 0x4f247c
mov ebx, eax
cmp edx, dword [esi + 8]
jl 0x4f248a
add esi, 0xc
mov eax, ebx
cmp esi, ebx
jne 0x4f2470
jmp 0x4f2697
mov esi, dword [esi]
cmp dword [esi + 8], 1
jne 0x4f251d
mov eax, dword [edi + 0x624]
xor ecx, ecx
add eax, 4
mov dl, byte [eax]
cmp dl, 0xff
je 0x4f24b1
cmp dl, 0x1f
je 0x4f2697
inc ecx
add eax, 0x1c
cmp ecx, 0x20
jl 0x4f24a1
mov eax, dword [edi + 0x624]
xor ecx, ecx
add eax, 4
mov dl, byte [eax]
cmp dl, 0xff
je 0x4f24d5
cmp dl, 0x2a
je 0x4f2697
inc ecx
add eax, 0x1c
cmp ecx, 0x20
jl 0x4f24c5
mov eax, dword [edi + 0x644]
push ecx
push dword [0xbdaa74]
mov eax, dword [eax*4 + 0xbda9ec]
imul eax, dword [esi + 0x10]
push eax
push edi
call fcn.004d6330
test al, al
jne 0x4f2697
mov eax, dword [edi + 0x644]
mov ecx, dword [edi]
mov edx, dword [eax*4 + 0xbda9ec]
imul edx, dword [esi + 0x10]
call fcn.004e9a50
cmp dword [esi + 8], 2
jne 0x4f256a
mov ebx, dword [edi]
lea ecx, [edi + 0xe4]
test ebx, ebx
js 0x4f255c
cmp ebx, 0x1194
jge 0x4f255c
mov eax, dword [ebx*4 + 0x20a514c]
mov edx, dword [eax + 0xe4]
xor eax, eax
add edx, dword [esi + 0x10]
adc eax, eax
jne 0x4f255c
cmp edx, 0x77359400
ja 0x4f255c
mov edx, dword [ecx]
add edx, dword [esi + 0x10]
jmp 0x4f2561
mov edx, 0x77359400
mov dword [ecx], edx
mov ecx, ebx
call fcn.004e9640
cmp dword [esi + 8], 4
jne 0x4f2665
xor ebx, ebx
cmp dword [esi + 0x10], ebx
jle 0x4f2665
nop
mov al, byte [esi + 0x24]
mov ecx, dword [edi]
mov byte [ebp - 0x51], al
mov al, byte [esi + 0x20]
mov byte [ebp - 0x55], al
mov al, byte [esi + 0x1c]
mov byte [ebp - 0x54], al
mov al, byte [esi + 0x18]
mov byte [ebp - 0x53], al
mov al, byte [esi + 0x14]
mov byte [ebp - 0x52], al
mov eax, dword [ecx*4 + 0x20a514c]
add eax, 0x7b
mov edx, eax
mov dword [ebp - 0x5c], eax
call fcn.0051f8f0
test al, al
je 0x4f265b
mov ecx, dword [ebp - 0x5c]
mov eax, dword [edi]
mov edx, dword [esi + 0xc]
mov word [ebp - 0x3c], ax
mov word [ebp - 0x40], 0x2cc1
mov byte [ebp - 0x3e], 7
movq xmm0, qword [ecx]
movq qword [ebp - 0x3a], xmm0
mov ax, word [ecx + 8]
mov word [ebp - 0x32], ax
mov al, byte [ecx + 0xa]
mov cl, byte [ebp - 0x52]
mov byte [ebp - 0x30], al
movzx eax, byte [ebp - 0x51]
push 0
push eax
movzx eax, cl
push eax
push edx
mov word [ebp - 0x2f], 0
mov byte [ebp - 0x2d], 0xeb
mov word [ebp - 0x2c], dx
mov byte [ebp - 0x2a], cl
call fcn.0049cad0
mov byte [ebp - 0x29], al
mov ecx, 0x7509e0
mov al, byte [ebp - 0x53]
mov byte [ebp - 0x28], al
mov al, byte [ebp - 0x54]
mov byte [ebp - 0x27], al
mov al, byte [ebp - 0x55]
mov byte [ebp - 0x26], al
mov al, byte [ebp - 0x51]
mov byte [ebp - 0x25], al
movzx eax, byte [ebp - 0x3f]
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x24], 0xffff
push eax
mov byte [ebp - 0x20], 0
mov word [ebp - 0x1b], 0xffff
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1f], 0xffffffff
call fcn.00440610
inc ebx
cmp ebx, dword [esi + 0x10]
jl 0x4f2580
cmp dword [esi + 8], 8
jne 0x4f2681
push 0
push 0
push 0
push 0
push dword [esi + 0x10]
push dword [esi + 0xc]
push 1
push edi
call fcn.00477200
cmp dword [esi + 8], 0x10
jne 0x4f2697
mov eax, dword [esi + 0x10]
push dword [edi]
add dword [edi + 0x764], eax
call fcn.00485d30
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x80], vtable.CRandomManager.0
call fcn.00416cb0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00529f01
mov esp, ebp
pop ebp
ret 0xc