Function at 0x423b98
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x474
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.USER32.dll_GetDC]
push 0x42c
mov dword [ebp - 4], eax
lea eax, [ebp - 0x474]
push ebx
push eax
call fcn.00444dd0
mov esi, dword [sym.imp.GDI32.dll_GetDIBits]
add esp, 0xc
push ebx
lea eax, [ebp - 0x474]
push eax
push ebx
push ebx
push ebx
push dword [edi]
mov dword [ebp - 0x474], 0x28
push dword [ebp - 4]
call esi
cmp word [ebp - 0x466], 0x20
je 0x423e92
cmp word [ebp - 0x466], 8
jne 0x423d23
mov eax, dword [ebp - 0x460]
cmp eax, 1
mov dword [ebp - 8], eax
jb 0x423fac
push eax
call fcn.0043ef0a
push dword [ebp - 8]
mov dword [ebp + 8], eax
push ebx
push eax
call fcn.00444dd0
add esp, 0x10
push ebx
lea eax, [ebp - 0x474]
push eax
push dword [ebp + 8]
push dword [ebp - 0x46c]
push ebx
push dword [edi]
push dword [ebp - 4]
call esi
push 0x2c
pop esi
push esi
lea eax, [ebp - 0x48]
push ebx
push eax
call fcn.00444dd0
mov eax, dword [ebp - 0x470]
add esp, 0xc
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x46c]
push ebx
push ebx
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0xc]
push eax
push ebx
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 4]
mov dword [ebp - 0x48], esi
mov word [ebp - 0x3c], 1
mov word [ebp - 0x3a], 0x20
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.GDI32.dll_CreateDIBSection]
push eax
push dword [ebp - 4]
mov dword [ebp - 0x14], eax
call dword [sym.imp.GDI32.dll_SelectObject]
movzx ecx, word [ebp - 0x466]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x460]
xor edx, edx
shr ecx, 3
div ecx
xor edx, edx
cmp eax, ebx
mov dword [ebp - 8], eax
jbe 0x423d12
mov eax, dword [ebp + 8]
movzx ecx, byte [edx + eax]
mov eax, dword [ebp - 0xc]
lea ecx, [ebp + ecx*4 - 0x44c]
cmp byte [ecx], 0xc0
lea esi, [eax + edx*4]
jne 0x423cf8
cmp byte [ecx + 1], 0xc0
jne 0x423cf8
cmp byte [ecx + 2], 0xc0
jne 0x423cf8
mov byte [esi], bl
mov byte [esi + 1], bl
mov byte [esi + 2], bl
mov byte [esi + 3], bl
jmp 0x423d0c
mov byte [esi + 3], 0xff
mov al, byte [ecx + 2]
mov byte [esi + 2], al
mov al, byte [ecx + 1]
mov byte [esi + 1], al
mov al, byte [ecx]
mov byte [esi], al
inc edx
cmp edx, dword [ebp - 8]
jb 0x423cc6
push dword [ebp - 0x10]
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_SelectObject]
jmp 0x423e65
cmp word [ebp - 0x466], 0x18
jne 0x423e6e
call fcn.0041800d
test al, al
je 0x423e6e
mov eax, dword [ebp - 0x460]
cmp eax, 1
mov dword [ebp - 8], eax
jb 0x423fac
xor ecx, ecx
push 3
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0043ef0a
mov dword [ebp + 8], eax
mov eax, dword [ebp - 8]
imul eax, eax, 3
push eax
push ebx
push dword [ebp + 8]
call fcn.00444dd0
add esp, 0x10
push ebx
lea eax, [ebp - 0x474]
push eax
push dword [ebp + 8]
push dword [ebp - 0x46c]
push ebx
push dword [edi]
push dword [ebp - 4]
call esi
push 0x2c
pop esi
push esi
lea eax, [ebp - 0x48]
push ebx
push eax
call fcn.00444dd0
mov eax, dword [ebp - 0x470]
add esp, 0xc
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x46c]
push ebx
push ebx
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0xc]
push eax
push ebx
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 4]
mov dword [ebp - 0x48], esi
mov word [ebp - 0x3c], 1
mov word [ebp - 0x3a], 0x20
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push dword [ebp - 4]
mov dword [ebp - 0x14], eax
call esi
movzx ecx, word [ebp - 0x466]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x460]
shl eax, 3
xor edx, edx
div ecx
mov dword [ebp - 8], eax
xor eax, eax
cmp dword [ebp - 8], ebx
mov dword [ebp - 0x10], eax
jbe 0x423e5d
mov edx, dword [ebp + 8]
inc edx
cmp byte [edx - 1], bl
mov ecx, dword [ebp - 0xc]
lea ecx, [ecx + eax*4]
jne 0x423e3a
cmp byte [edx], bl
jne 0x423e3a
cmp byte [edx + 1], bl
jne 0x423e3a
mov byte [ecx + 3], bl
mov byte [ecx + 2], bl
mov byte [ecx + 1], bl
mov byte [ecx], bl
jmp 0x423e51
mov byte [ecx + 3], 0xff
mov al, byte [edx + 1]
mov byte [ecx + 2], al
mov al, byte [edx]
mov byte [ecx + 1], al
mov al, byte [edx - 1]
mov byte [ecx], al
mov eax, dword [ebp - 0x10]
inc eax
add edx, 3
cmp eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
jb 0x423e19
push dword [ebp - 0x18]
push dword [ebp - 4]
call esi
push dword [ebp + 8]
call fcn.0043f1ec
pop ecx
push dword [ebp - 4]
push ebx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov esi, dword [ebp - 0x14]
cmp esi, ebx
je 0x423fac
push dword [edi]
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [edi], esi
jmp 0x423fac
mov eax, dword [ebp - 0x460]
cmp eax, 4
mov dword [ebp - 0x18], eax
jb 0x423fac
push eax
call fcn.0043ef0a
push dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
push ebx
push eax
call fcn.00444dd0
add esp, 0x10
push ebx
lea eax, [ebp - 0x474]
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x46c]
push ebx
push dword [edi]
push dword [ebp - 4]
call esi
push ebx
push ebx
lea eax, [ebp - 0x1c]
push eax
push ebx
lea eax, [ebp - 0x474]
push eax
push dword [ebp - 4]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x464], ebx
call dword [sym.imp.GDI32.dll_CreateDIBSection]
push eax
push dword [ebp - 4]
mov dword [ebp - 0x14], eax
call dword [sym.imp.GDI32.dll_SelectObject]
movzx ecx, word [ebp - 0x466]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x460]
shr ecx, 3
xor edx, edx
div ecx
cmp eax, ebx
jbe 0x423f7b
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x10], 0xfffffffd
sub dword [ebp - 0x10], edx
lea ecx, [edx + 3]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x10]
lea esi, [eax + ecx]
add esi, dword [ebp - 0x1c]
mov al, byte [ecx]
mov byte [esi + 3], al
movzx edx, byte [ecx]
movzx eax, byte [ecx - 1]
imul eax, edx
cdq
mov edi, 0xff
idiv edi
mov byte [esi + 2], al
movzx edx, byte [ecx]
movzx eax, byte [ecx - 2]
imul eax, edx
cdq
idiv edi
mov byte [esi + 1], al
movzx edx, byte [ecx]
movzx eax, byte [ecx - 3]
imul eax, edx
cdq
idiv edi
add ecx, 4
dec dword [ebp - 8]
mov byte [esi], al
jne 0x423f2e
mov edi, dword [ebp + 8]
push dword [ebp - 0x18]
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp - 0xc]
call fcn.0043f1ec
pop ecx
push dword [ebp - 4]
push ebx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [edi]
cmp eax, ebx
je 0x423fac
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp - 0x14]
mov dword [edi], eax
pop edi
pop esi
pop ebx
leave
ret 4