Function at 0x437190
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x114
mov esi, dword [esp + 0x130]
mov eax, dword [esp + 0x12c]
mov ebx, dword [esp + 0x128]
mov dword [eax], 0
mov dword [esi], 0
push ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
test eax, eax
sete cl
test al, 3
setne dl
mov edi, 0x3d
or dl, cl
jne 0x437492
movzx ecx, byte [ebx + eax - 1]
mov dword [esp + 0xc], 0
mov ebp, 0
cmp cl, 0x3d
mov edx, eax
jne 0x437224
mov eax, ecx
cmp byte [ebx + edx - 2], 0x3d
jne 0x437217
cmp byte [ebx + edx - 3], 0x3d
je 0x437492
mov ebp, 2
mov dword [esp + 0xc], 0
jmp 0x437222
mov ebp, 1
mov cl, 1
mov dword [esp + 0xc], ecx
mov ecx, eax
mov edi, esi
mov byte [esp + 3], cl
cmp cl, 0x3d
sete byte [esp + 4]
shr edx, 2
lea eax, [edx + edx*2]
sub eax, ebp
mov dword [esp + 0x10], eax
inc eax
push str.base64.c
push 0x72
push eax
mov esi, edx
call fcn.004071e0
add esp, 0xc
test eax, eax
je 0x4373de
mov dword [esp + 8], ebp
xor ecx, ecx
movzx edx, byte [esp + 4]
mov cl, dl
pcmpeqd xmm0, xmm0
movdqu xmmword [esp + 0x44], xmm0
movdqu xmmword [esp + 0x34], xmm0
movdqu xmmword [esp + 0x54], xmm0
movdqu xmmword [esp + 0x64], xmm0
movdqu xmmword [esp + 0x74], xmm0
movdqu xmmword [esp + 0x84], xmm0
movdqu xmmword [esp + 0x104], xmm0
movdqu xmmword [esp + 0xf4], xmm0
movdqu xmmword [esp + 0xe4], xmm0
movdqu xmmword [esp + 0xd4], xmm0
movdqu xmmword [esp + 0xc4], xmm0
movdqu xmmword [esp + 0xb4], xmm0
movdqu xmmword [esp + 0xa4], xmm0
movdqu xmmword [esp + 0x94], xmm0
movdqu xmmword [esp + 0x24], xmm0
movdqu xmmword [esp + 0x14], xmm0
movups xmm0, xmmword [0x9997a6]
movups xmmword [esp + 0x3f], xmm0
movups xmm0, xmmword [0x9997b6]
movups xmmword [esp + 0x4f], xmm0
movups xmm0, xmmword [0x9997c6]
movups xmmword [esp + 0x5f], xmm0
movups xmm0, xmmword [0x9997d6]
movups xmmword [esp + 0x6f], xmm0
movups xmm0, xmmword [0x9997e6]
movups xmmword [esp + 0x7f], xmm0
sub esi, ecx
je 0x4373e8
mov dword [esp + 4], eax
mov ebp, eax
nop
movzx eax, byte [ebx]
movzx ecx, byte [esp + eax + 0x14]
cmp ecx, 0xff
je 0x437477
mov edi, ebx
movzx eax, byte [ebx + 1]
movzx eax, byte [esp + eax + 0x14]
cmp eax, 0xff
je 0x437477
movzx edx, byte [edi + 2]
movzx ebx, byte [esp + edx + 0x14]
cmp ebx, 0xff
je 0x437477
movzx edx, byte [edi + 3]
movzx edx, byte [esp + edx + 0x14]
cmp dl, 0xff
je 0x437477
shl ecx, 0xc
shl eax, 6
or ecx, eax
or eax, ebx
shl bl, 6
or dl, bl
mov byte [ebp + 2], dl
shr eax, 2
mov byte [ebp + 1], al
shr ecx, 0xa
mov byte [ebp], cl
add ebp, 3
lea ebx, [edi + 4]
dec esi
jne 0x437330
add edi, 4
mov ebx, edi
mov edi, dword [esp + 0x130]
mov eax, dword [esp + 4]
movzx ecx, byte [esp + 3]
cmp cl, 0x3d
je 0x4373f4
mov edx, eax
mov ecx, dword [esp + 0x10]
mov byte [ebp], 0
mov eax, dword [esp + 0x12c]
mov dword [eax], edx
mov dword [edi], ecx
xor edi, edi
jmp 0x437492
mov edi, 0x1b
jmp 0x437492
mov ebp, eax
movzx ecx, byte [esp + 3]
cmp cl, 0x3d
jne 0x4373c2
mov dword [esp + 4], eax
movzx eax, byte [ebx]
cmp eax, 0x3d
jne 0x437419
xor edx, edx
mov ecx, 1
movzx eax, byte [ebx + 1]
cmp eax, 0x3d
jne 0x437434
cmp ecx, dword [esp + 8]
jae 0x437477
inc ecx
jmp 0x437442
movzx edx, byte [esp + eax + 0x14]
cmp edx, 0xff
je 0x437477
shl edx, 6
xor ecx, ecx
movzx eax, byte [ebx + 1]
cmp eax, 0x3d
je 0x437410
movzx eax, byte [esp + eax + 0x14]
cmp eax, 0xff
je 0x437477
or edx, eax
movzx eax, byte [ebx + 2]
cmp eax, 0x3d
jne 0x437457
cmp ecx, dword [esp + 8]
jae 0x437477
shl edx, 6
inc ecx
jmp 0x437468
movzx eax, byte [esp + eax + 0x14]
cmp eax, 0xff
je 0x437477
shl edx, 6
or edx, eax
movzx eax, byte [ebx + 3]
cmp eax, 0x3d
jne 0x43749f
cmp ecx, dword [esp + 8]
jb 0x4374a6
push str.base64.c
push 0xb8
push dword [esp + 0xc]
call fcn.004075a0
add esp, 0xc
mov edi, 0x3d
mov eax, edi
add esp, 0x114
pop esi
pop edi
pop ebx
pop ebp
ret
cmp byte [esp + eax + 0x14], 0xff
je 0x437477
cmp byte [esp + 0xc], 0
je 0x4374b5
mov eax, edx
shr eax, 2
mov byte [ebp + 1], al
shr edx, 0xa
mov byte [ebp], dl
mov eax, dword [esp + 8]
xor eax, 3
add ebp, eax
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 4]
jmp 0x4373c8