Function at 0x1111a360
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44c
mov eax, dword [0x111ec774]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, ecx
movzx ebx, word [edi + 4]
test bl, 8
je 0x1111a397
push 0x2167
push 0x111b736c
push 0x111b81fc
call fcn.11029a70
add esp, 0xc
test bl, 2
je 0x1111a3a8
mov dword [ebp - 0x408], 0x10
jmp 0x1111a3c0
mov eax, 0
test bl, 1
setne al
lea eax, [eax*4 + 4]
mov dword [ebp - 0x408], eax
movzx ecx, word [edi + 6]
movzx eax, word [edi + 0xa]
movzx edx, word [edi + 8]
mov dword [ebp - 0x440], eax
sub eax, ecx
mov ebx, eax
mov eax, dword [ebp - 0x408]
mov dword [ebp - 0x448], ecx
movzx ecx, word [edi + 0xc]
sub ecx, edx
cdq
and edx, 3
add eax, edx
sar eax, 2
imul eax, ebx
inc eax
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x424], eax
add eax, 3
and eax, 0xfffffffc
mov dword [ebp - 0x40c], eax
mov eax, 0x4000
cdq
idiv dword [ebp - 0x424]
mov dword [ebp - 0x41c], ebx
mov dword [ebp - 0x42c], ecx
mov ebx, eax
mov dword [ebp - 0x418], ebx
cmp ebx, ecx
jle 0x1111a438
mov dword [ebp - 0x418], ecx
mov ebx, ecx
mov eax, ebx
imul eax, dword [ebp - 0x40c]
push eax
mov dword [ebp - 0x410], eax
call fcn.11163a11
mov ecx, dword [esi + 0x22c]
add esp, 4
mov dword [ebp - 0x428], eax
mov eax, dword [ebp - 0x41c]
push ebx
push eax
push ecx
call dword [sym.imp.Gdi32.Dll_CreateCompatibleBitmap]
mov dword [ebp - 0x434], eax
test eax, eax
jne 0x1111a4ba
call dword [sym.imp.KeRneL32.DLl_GetLastError]
mov edx, dword [ebp + 0xc]
mov ecx, dword [esi + 0x22c]
push eax
mov eax, dword [ebp - 0x41c]
push edx
push ebx
push eax
push ecx
lea edx, [ebp - 0x404]
push 0x111b81c8
push edx
call dword [sym.imp.uSEr32.dll_wsprintfA]
push 0x2183
lea eax, [ebp - 0x404]
push 0x111b736c
push eax
call fcn.11029a70
add esp, 0x28
mov ebx, dword [ebp - 0x408]
mov ecx, dword [ebp - 0x41c]
push ebx
push 0
push ecx
lea edx, [esi + 0x160]
push edx
call fcn.11160580
mov dword [ebp - 0x430], eax
add esp, 0x10
add eax, 0x28
cmp ebx, 4
jne 0x1111a511
test byte [ebp + 8], 2
mov ecx, 0x111eab78
jne 0x1111a4f7
mov ecx, 0x111eab68
mov edx, 0x10
lea esp, [esp]
movzx ebx, byte [ecx]
mov word [eax], bx
add eax, 2
inc ecx
dec edx
jne 0x1111a500
xor ebx, ebx
jmp 0x1111a524
xor ebx, ebx
xor ecx, ecx
mov word [eax], cx
inc ecx
add eax, 2
cmp ecx, 0x100
jl 0x1111a515
mov eax, dword [esi + 0x22c]
push eax
call dword [sym.imp.Gdi32.Dll_CreateCompatibleDC]
mov dword [ebp - 0x420], eax
cmp eax, ebx
jne 0x1111a552
push 0x21b7
push 0x111b736c
push 0x111b81c0
call fcn.11029a70
add esp, 0xc
mov eax, dword [esi + 0xdc]
mov dword [esi + 0x3f0], ebx
mov dword [esi + 0x3ec], ebx
mov dword [esi + 0x3e8], ebx
movzx edx, word [edi + 0xc]
sub eax, edx
inc eax
mov dword [ebp - 0x444], eax
mov eax, dword [ebp - 0x428]
lea ecx, [edi + 0xe]
xor edi, edi
add eax, dword [ebp - 0x410]
mov dword [ebp - 0x438], ecx
mov dword [ebp - 0x44c], eax
mov dword [ebp - 0x410], eax
mov dword [ebp - 0x414], ebx
mov dword [ebp - 0x408], ebx
jmp 0x1111a5b0
mov eax, dword [ebp - 0x410]
sub eax, dword [ebp - 0x40c]
mov edx, dword [ebp - 0x424]
push edx
mov dword [ebp - 0x410], eax
push eax
mov eax, dword [ebp - 0x438]
mov ebx, esi
call fcn.11113660
inc edi
add esp, 8
mov dword [ebp - 0x438], eax
cmp edi, dword [ebp - 0x418]
jl 0x1111a5b0
mov eax, dword [ebp - 0x430]
mov ebx, dword [ebp - 0x434]
push 1
push eax
mov dword [eax + 8], edi
mov eax, dword [ebp - 0x410]
mov ecx, dword [esi + 0x22c]
push eax
push edi
push 0
push ebx
push ecx
call dword [sym.imp.Gdi32.Dll_SetDIBits]
mov edx, dword [ebp - 0x444]
mov ecx, dword [ebp - 0x420]
push ebx
lea eax, [edi + edx]
push ecx
mov dword [ebp - 0x43c], eax
call dword [sym.imp.Gdi32.Dll_SelectObject]
cmp dword [esi + 0x1dc], 0
mov ebx, eax
je 0x1111a643
mov eax, dword [esi + 0x228]
jmp 0x1111a649
mov eax, dword [esi + 0x22c]
mov edx, dword [ebp - 0x420]
mov ecx, dword [ebp - 0x41c]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [ebp - 0x444]
push edi
push ecx
mov ecx, dword [ebp - 0x448]
push edx
push ecx
push eax
call dword [sym.imp.Gdi32.Dll_BitBlt]
push ebx
mov ebx, dword [ebp - 0x420]
push ebx
call dword [sym.imp.Gdi32.Dll_SelectObject]
cmp dword [esi + 0x1dc], 0
jne 0x1111a69f
push 0
lea edx, [ebp - 0x448]
mov ecx, esi
call fcn.11113fa0
add esp, 4
mov eax, dword [ebp - 0x42c]
mov edx, dword [ebp - 0x43c]
sub eax, edi
mov dword [ebp - 0x444], edx
mov dword [ebp - 0x42c], eax
je 0x1111a774
cmp dword [ebp - 0x418], eax
jle 0x1111a6cd
mov dword [ebp - 0x418], eax
mov ebx, dword [esi + 0x3e8]
mov eax, dword [ebp - 0x44c]
xor edi, edi
mov dword [ebp - 0x410], eax
test ebx, ebx
je 0x1111a725
cmp dword [ebp - 0x414], edi
jne 0x1111a702
mov ecx, dword [ebp - 0x40c]
push ecx
call fcn.11163a11
add esp, 4
mov dword [ebp - 0x414], eax
mov edx, dword [ebp - 0x40c]
mov eax, dword [ebp - 0x414]
push edx
push ebx
push eax
call fcn.11162c60
mov ecx, dword [ebp - 0x414]
add esp, 0xc
mov dword [esi + 0x3e8], ecx
cmp dword [esi + 0x3ec], edi
je 0x1111a5b0
mov ebx, dword [ebp - 0x408]
test ebx, ebx
jne 0x1111a752
mov edx, dword [ebp - 0x40c]
push edx
call fcn.11163a11
add esp, 4
mov dword [ebp - 0x408], eax
mov ebx, eax
mov eax, dword [ebp - 0x40c]
push eax
mov eax, dword [esi + 0x3ec]
push eax
push ebx
call fcn.11162c60
add esp, 0xc
mov dword [esi + 0x3ec], ebx
jmp 0x1111a5b0
mov eax, dword [ebp - 0x414]
test eax, eax
je 0x1111a787
push eax
call fcn.11163aa5
add esp, 4
mov eax, dword [ebp - 0x408]
test eax, eax
je 0x1111a79a
push eax
call fcn.11163aa5
add esp, 4
mov ecx, dword [ebp - 0x430]
push ecx
call fcn.11163aa5
add esp, 4
push ebx
call dword [sym.imp.Gdi32.Dll_DeleteDC]
mov edx, dword [ebp - 0x434]
push edx
call dword [sym.imp.Gdi32.Dll_DeleteObject]
pop edi
pop ebx
test eax, eax
jne 0x1111a7d7
call dword [sym.imp.KeRneL32.DLl_GetLastError]
push eax
push 0x111b81a4
call fcn.11147060
add esp, 8
mov eax, dword [ebp - 0x428]
push eax
call fcn.11163aa5
mov ecx, dword [ebp - 4]
xor ecx, ebp
add esp, 4
call fcn.11162bb7
mov esp, ebp
pop ebp
ret