Function at 0x1117ce40
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84c
mov eax, dword [0x11279148]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, edx
movzx ebx, word [edi + 4]
mov esi, ecx
test bl, 8
je 0x1117ce7a
push 0x25bf
push str...ctl32Remote.cpp
push str._bitcount__GSB_OPT_PLANAR___0
call fcn.11067750
add esp, 0xc
test bl, 2
je 0x1117ce8b
mov dword [ebp - 0x808], 0x10
jmp 0x1117cea3
mov eax, 0
test bl, 1
setne al
lea eax, [eax*4 + 4]
mov dword [ebp - 0x808], eax
movzx ecx, word [edi + 6]
movzx eax, word [edi + 0xa]
movzx edx, word [edi + 8]
mov dword [ebp - 0x840], eax
sub eax, ecx
mov ebx, eax
mov eax, dword [ebp - 0x808]
mov dword [ebp - 0x848], 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 - 0x824], eax
add eax, 3
and eax, 0xfffffffc
mov dword [ebp - 0x80c], eax
mov eax, 0x4000
cdq
idiv dword [ebp - 0x824]
mov dword [ebp - 0x81c], ebx
mov dword [ebp - 0x82c], ecx
mov ebx, eax
mov dword [ebp - 0x818], ebx
cmp ebx, ecx
jle 0x1117cf1b
mov dword [ebp - 0x818], ecx
mov ebx, ecx
mov eax, ebx
imul eax, dword [ebp - 0x80c]
push eax
mov dword [ebp - 0x810], eax
call dword [sym.imp.MSVCR100.dll_malloc]
mov ecx, dword [esi + 0x244]
add esp, 4
mov dword [ebp - 0x828], eax
mov eax, dword [ebp - 0x81c]
push ebx
push eax
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [ebp - 0x834], eax
test eax, eax
jne 0x1117cf9e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 0xc]
mov ecx, dword [esi + 0x244]
push eax
mov eax, dword [ebp - 0x81c]
push edx
push ebx
push eax
push ecx
lea edx, [ebp - 0x804]
push str.Cant_create_bmp__dc_x__w_d__h_d__nclen_d__e_d_n
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
push 0x25db
lea eax, [ebp - 0x804]
push str...ctl32Remote.cpp
push eax
call fcn.11067750
add esp, 0x28
mov ebx, dword [ebp - 0x808]
mov ecx, dword [ebp - 0x81c]
push ebx
push 0
push ecx
lea edx, [esi + 0x16c]
push edx
call fcn.111d7d90
mov dword [ebp - 0x830], eax
add esp, 0x10
add eax, 0x28
cmp ebx, 4
jne 0x1117cff1
test byte [ebp + 8], 2
mov ecx, 0x11276f08
jne 0x1117cfdb
mov ecx, 0x11276ef8
mov edx, 0x10
movzx ebx, byte [ecx]
mov word [eax], bx
add eax, 2
inc ecx
dec edx
jne 0x1117cfe0
xor ebx, ebx
jmp 0x1117d004
xor ebx, ebx
xor ecx, ecx
mov word [eax], cx
inc ecx
add eax, 2
cmp ecx, 0x100
jl 0x1117cff5
mov eax, dword [esi + 0x244]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [ebp - 0x820], eax
cmp eax, ebx
jne 0x1117d032
push 0x260f
push str...ctl32Remote.cpp
push str.workdc
call fcn.11067750
add esp, 0xc
mov eax, dword [esi + 0xe0]
mov dword [esi + 0x454], ebx
mov dword [esi + 0x450], ebx
mov dword [esi + 0x44c], ebx
movzx edx, word [edi + 0xc]
sub eax, edx
inc eax
mov dword [ebp - 0x844], eax
mov eax, dword [ebp - 0x828]
lea ecx, [edi + 0xe]
xor edi, edi
add eax, dword [ebp - 0x810]
mov dword [ebp - 0x838], ecx
mov dword [ebp - 0x84c], eax
mov dword [ebp - 0x810], eax
mov dword [ebp - 0x814], ebx
mov dword [ebp - 0x808], ebx
jmp 0x1117d090
mov eax, dword [ebp - 0x810]
sub eax, dword [ebp - 0x80c]
mov edx, dword [ebp - 0x824]
push edx
mov dword [ebp - 0x810], eax
push eax
mov eax, dword [ebp - 0x838]
mov ebx, esi
call fcn.111756b0
inc edi
add esp, 8
mov dword [ebp - 0x838], eax
cmp edi, dword [ebp - 0x818]
jl 0x1117d090
mov eax, dword [ebp - 0x830]
mov ebx, dword [ebp - 0x834]
push 1
push eax
mov dword [eax + 8], edi
mov eax, dword [ebp - 0x810]
mov ecx, dword [esi + 0x244]
push eax
push edi
push 0
push ebx
push ecx
call dword [sym.imp.GDI32.dll_SetDIBits]
mov edx, dword [ebp - 0x844]
mov ecx, dword [ebp - 0x820]
push ebx
lea eax, [edi + edx]
push ecx
mov dword [ebp - 0x83c], eax
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [esi + 0x1f4], 0
mov ebx, eax
je 0x1117d123
mov eax, dword [esi + 0x240]
jmp 0x1117d129
mov eax, dword [esi + 0x244]
mov edx, dword [ebp - 0x820]
mov ecx, dword [ebp - 0x81c]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [ebp - 0x844]
push edi
push ecx
mov ecx, dword [ebp - 0x848]
push edx
push ecx
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
push ebx
mov ebx, dword [ebp - 0x820]
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [esi + 0x1f4], 0
jne 0x1117d17f
push 0
lea edx, [ebp - 0x848]
mov ecx, esi
call fcn.11176060
add esp, 4
mov eax, dword [ebp - 0x82c]
mov edx, dword [ebp - 0x83c]
sub eax, edi
mov dword [ebp - 0x844], edx
mov dword [ebp - 0x82c], eax
je 0x1117d256
cmp dword [ebp - 0x818], eax
jle 0x1117d1ad
mov dword [ebp - 0x818], eax
mov ebx, dword [esi + 0x44c]
mov eax, dword [ebp - 0x84c]
xor edi, edi
mov dword [ebp - 0x810], eax
test ebx, ebx
je 0x1117d206
cmp dword [ebp - 0x814], edi
jne 0x1117d1e3
mov ecx, dword [ebp - 0x80c]
push ecx
call dword [sym.imp.MSVCR100.dll_malloc]
add esp, 4
mov dword [ebp - 0x814], eax
mov edx, dword [ebp - 0x80c]
mov eax, dword [ebp - 0x814]
push edx
push ebx
push eax
call sub.MSVCR100.dll_memcpy
mov ecx, dword [ebp - 0x814]
add esp, 0xc
mov dword [esi + 0x44c], ecx
cmp dword [esi + 0x450], edi
je 0x1117d090
mov ebx, dword [ebp - 0x808]
test ebx, ebx
jne 0x1117d234
mov edx, dword [ebp - 0x80c]
push edx
call dword [sym.imp.MSVCR100.dll_malloc]
add esp, 4
mov dword [ebp - 0x808], eax
mov ebx, eax
mov eax, dword [ebp - 0x80c]
push eax
mov eax, dword [esi + 0x450]
push eax
push ebx
call sub.MSVCR100.dll_memcpy
add esp, 0xc
mov dword [esi + 0x450], ebx
jmp 0x1117d090
mov eax, dword [ebp - 0x814]
mov esi, dword [sym.imp.MSVCR100.dll_free]
test eax, eax
je 0x1117d26c
push eax
call esi
add esp, 4
mov eax, dword [ebp - 0x808]
test eax, eax
je 0x1117d27c
push eax
call esi
add esp, 4
mov ecx, dword [ebp - 0x830]
push ecx
call esi
add esp, 4
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov edx, dword [ebp - 0x834]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
test eax, eax
jne 0x1117d2b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Err_deleting_workbm__e_d_n
call fcn.111bd7b0
add esp, 8
mov eax, dword [ebp - 0x828]
push eax
call esi
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.111d9022
mov esp, ebp
pop ebp
ret