Function at 0x42ba30
Capabilities:
Encrypt data using rc4 ksa
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x3c4
push ebx
push ebp
mov ebx, ecx
mov eax, dword [ebx + 0x3c]
push esi
xor esi, esi
cmp eax, esi
mov dword [esp + 0x18], ebx
jne 0x42ba55
cmp dword [ebx + 0x44], esi
jne 0x42ba55
call fcn.004283b0
mov dword [ebx + 0x40], esi
mov ebp, dword [esp + 0x3dc]
cmp ebp, esi
jge 0x42ba6e
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x3c4
ret 0x1c
cmp ebp, 0x64
jle 0x42ba7f
mov ebp, 0x64
mov dword [esp + 0x3dc], ebp
push edi
mov ecx, ebx
call fcn.00428970
mov ecx, dword [esp + 0x3e8]
and ecx, 0xffffff
cmp ebp, esi
mov edi, 0x40
mov dword [esp + 0x20], edi
mov dword [esp + 0x3e8], ecx
jne 0x42bab7
mov dword [esp + 0xb8], 0x14
xor edi, edi
jmp 0x42bb30
mov dword [esp + 0x10], esi
jmp 0x42bac4
mov ebp, dword [esp + 0x3e0]
mov eax, esi
cdq
idiv ebp
mov edx, 1
mov ecx, 2
mov dword [esp + 0x3c], edx
test cl, 1
je 0x42badf
imul edx, eax
shr ecx, 1
test ecx, ecx
je 0x42baec
mov ebp, eax
imul eax, ebp
jmp 0x42bad7
fld qword [0x469b30]
mov dword [esp + 0x3c], edx
fild dword [esp + 0x3c]
fchs
call fcn.00446b00
fmul qword [0x469b28]
call fcn.0044541c
test eax, eax
mov ecx, dword [esp + 0x10]
mov dword [esp + ecx*4 + 0xb8], eax
je 0x42bb2d
inc ecx
add esi, 3
cmp esi, 0xc3
mov dword [esp + 0x10], ecx
jl 0x42babd
jmp 0x42bb34
lea edi, [ecx - 1]
mov dword [esp + 0x20], edi
mov eax, 1
cmp edi, eax
jl 0x42bb66
lea edx, [esp + edi*4 + 0x1c4]
lea esi, [esp + edi*4 + 0x1bc]
jmp 0x42bb50
mov ecx, dword [esp + eax*4 + 0xb8]
mov dword [edx], ecx
mov dword [esi], ecx
inc eax
add edx, 4
sub esi, 4
cmp eax, edi
jle 0x42bb50
mov eax, dword [esp + 0xb8]
mov dword [esp + edi*4 + 0x1c0], eax
lea edx, [edi + edi + 1]
xor ecx, ecx
xor eax, eax
test edx, edx
mov dword [esp + 0x38], ecx
jle 0x42bb94
add ecx, dword [esp + eax*4 + 0x1c0]
inc eax
cmp eax, edx
jl 0x42bb84
mov dword [esp + 0x38], ecx
mov eax, dword [ebx + 0x14]
test eax, eax
jne 0x42bba2
mov dword [ebx + 0x14], 1
mov esi, dword [ebx + 0xc]
mov ecx, dword [ebx + 0x14]
mov eax, esi
cdq
idiv ecx
mov edx, eax
imul edx, ecx
cmp edx, esi
mov edx, dword [ebx + 0x10]
push edx
push eax
push 0
push 0
lea eax, [esp + 0x5c]
setne cl
push eax
movzx ebp, cl
call dword [sym.imp.USER32.dll_SetRect]
mov esi, dword [sym.imp.USER32.dll_CopyRect]
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0xac]
push edx
call esi
mov eax, dword [esp + 0x3dc]
mov ecx, dword [esp + 0x3d8]
mov edi, dword [sym.imp.USER32.dll_OffsetRect]
push eax
push ecx
lea edx, [esp + 0xb0]
push edx
call edi
mov eax, dword [esp + 0x20]
push eax
push eax
lea eax, [esp + 0xb0]
push eax
call dword [sym.imp.USER32.dll_InflateRect]
lea ecx, [esp + 0xa8]
push ecx
lea edx, [esp + 0x98]
push edx
call esi
mov eax, dword [esp + 0x98]
mov ecx, dword [esp + 0x94]
neg eax
push eax
neg ecx
push ecx
lea edx, [esp + 0x9c]
push edx
call edi
lea eax, [esp + 0xa8]
push eax
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x8c]
push edx
call dword [sym.imp.USER32.dll_UnionRect]
lea eax, [esp + 0x84]
push eax
lea ecx, [esp + 0x78]
push ecx
call esi
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x74]
neg edx
push edx
neg eax
push eax
lea ecx, [esp + 0x7c]
push ecx
call edi
test ebp, ebp
mov eax, dword [esp + 0x54]
mov dword [esp + 0x44], eax
je 0x42bc97
mov ecx, dword [ebx + 0x14]
jmp 0x42bc99
xor ecx, ecx
mov esi, dword [ebx + 0x14]
mov edx, dword [esp + 0x7c]
imul esi, eax
mov eax, dword [esp + 0xa0]
add esi, ecx
imul eax, esi
push eax
mov dword [esp + 0x4c], esi
mov dword [esp + 0x40], edx
call fcn.00445884
mov ebx, dword [ebx + 0x2c]
add ebx, 3
add esp, 4
test esi, esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], 0
jle 0x42bdd8
mov eax, dword [esp + 0x20]
neg eax
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x58]
lea esp, [esp]
mov esi, dword [esp + 0xa0]
mov edi, dword [esp + 0x34]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
dec esi
imul esi, dword [esp + 0x48]
add esi, edi
mov edi, dword [esp + 0x40]
add esi, edx
lea edx, [eax + ecx]
cmp edi, edx
jge 0x42bdbc
mov eax, ecx
lea ecx, [edi + eax]
mov ebp, edi
mov dword [esp + 0x18], ecx
sub ebp, eax
lea esp, [esp]
cmp ebp, dword [esp + 0x18]
mov dword [esp + 0x14], 0
mov ecx, ebp
jg 0x42bd80
mov eax, dword [esp + 0x20]
mov edx, ebp
sub edx, edi
add edx, eax
lea edx, [esp + edx*4 + 0x1c0]
test ecx, ecx
jl 0x42bd74
cmp ecx, dword [esp + 0x58]
jge 0x42bd74
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x24]
imul eax, ecx
movzx eax, byte [eax + ebx]
imul eax, dword [edx]
add dword [esp + 0x14], eax
mov ebx, dword [esp + 0x2c]
mov eax, dword [esp + 0x18]
inc ecx
add edx, 4
cmp ecx, eax
jle 0x42bd51
mov eax, dword [esp + 0x14]
xor edx, edx
div dword [esp + 0x38]
cmp eax, 0xff
jbe 0x42bd96
mov byte [esi], 0xff
jmp 0x42bd98
mov byte [esi], al
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x20]
sub esi, edx
mov edx, dword [esp + 0x18]
inc edi
inc ebp
inc edx
mov dword [esp + 0x18], edx
lea edx, [eax + ecx]
cmp edi, edx
jl 0x42bd30
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x48]
add ebx, 4
inc ecx
cmp ecx, edx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], ecx
jl 0x42bcf0
mov esi, dword [esp + 0x1c]
mov eax, dword [esi + 0x14]
imul eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x80]
push 0x20
push ecx
push eax
call fcn.00428c50
add esp, 0xc
lea edx, [esp + 0x5c]
push edx
push 0x18
push eax
mov dword [esp + 0xb0], eax
call dword [sym.imp.GDI32.dll_GetObjectW]
mov ecx, dword [esp + 0x64]
imul ecx, dword [esp + 0x68]
mov edi, dword [esp + 0x70]
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esi + 0x14]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x18], edi
jle 0x42bfbf
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x24], edi
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x84]
mov esi, dword [esp + 0xa8]
mov ebp, dword [esp + 0x20]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x24]
sub edx, ebx
mov ebx, dword [esp + 0xac]
add edx, esi
mov esi, dword [esp + 0x90]
sub esi, ebx
mov ebx, dword [esp + 0x70]
add edx, ebp
dec esi
imul esi, ecx
add esi, ebx
cmp eax, edi
lea ebp, [esi + edx*4 + 3]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x28], edi
jle 0x42bf8d
mov edx, dword [esp + 0x20]
mov esi, edx
neg esi
mov dword [esp + 0x40], esi
mov esi, dword [esp + 0x44]
add esi, edx
mov dword [esp + 0x30], esi
lea esp, [esp]
mov esi, dword [esp + 0x40]
cmp esi, dword [esp + 0x30]
jge 0x42bf66
mov eax, dword [esp + 0x20]
mov edi, esi
lea ebx, [esi + eax]
sub edi, eax
lea esp, [esp]
xor eax, eax
cmp edi, ebx
mov ecx, edi
jg 0x42bf23
mov ebp, dword [esp + 0x20]
mov edx, edi
sub edx, esi
add edx, ebp
lea edx, [esp + edx*4 + 0x1c0]
lea esp, [esp]
test ecx, ecx
jl 0x42bf17
cmp ecx, dword [esp + 0x44]
jge 0x42bf17
mov ebp, dword [esp + 0x2c]
movzx ebp, byte [ecx + ebp]
imul ebp, dword [edx]
add eax, ebp
inc ecx
add edx, 4
cmp ecx, ebx
jle 0x42bf00
mov ebp, dword [esp + 0x14]
imul eax, dword [esp + 0x3e4]
xor edx, edx
div dword [esp + 0x38]
mov ecx, eax
mov eax, 0x80808081
mul ecx
shr edx, 7
cmp edx, 0xff
jbe 0x42bf4c
mov byte [ebp + esi*4], 0xff
jmp 0x42bf50
mov byte [ebp + esi*4], dl
mov eax, dword [esp + 0x30]
inc esi
inc edi
inc ebx
cmp esi, eax
jl 0x42bee0
mov eax, dword [esp + 0xa0]
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x48]
mov esi, dword [esp + 0x2c]
add esi, edx
mov edx, dword [esp + 0x28]
sub ebp, ecx
inc edx
cmp edx, eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x14], ebp
mov dword [esp + 0x28], edx
jl 0x42bec0
xor edi, edi
mov esi, dword [esp + 0x44]
mov ebx, dword [esp + 0x34]
mov ebp, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
add ebx, esi
mov esi, dword [esp + 0x3c]
add ebp, esi
mov esi, dword [esp + 0x1c]
inc edx
mov dword [esp + 0x34], ebx
cmp edx, dword [esi + 0x14]
mov dword [esp + 0x18], edx
mov dword [esp + 0x24], ebp
jl 0x42be51
mov eax, dword [esp + 0x10]
push eax
call fcn.00445979
mov eax, dword [esp + 0x3ec]
mov ecx, eax
add esp, 4
shr ecx, 0x10
cmp eax, edi
je 0x42c26a
mov ebp, dword [esp + 0x60]
imul ebp, dword [esp + 0x64]
cmp ebp, edi
jbe 0x42c061
mov esi, dword [esp + 0x70]
movzx ebx, cl
movzx ecx, ah
movzx edx, al
mov dword [esp + 0x28], ecx
mov dword [esp + 0x30], edx
add esi, 3
movzx ecx, byte [esi]
mov edi, ebx
imul edi, ecx
mov eax, 0x80808081
imul edi
add edx, edi
mov edi, dword [esp + 0x28]
sar edx, 7
imul edi, ecx
imul ecx, dword [esp + 0x30]
mov eax, edx
shr eax, 0x1f
add eax, edx
mov byte [esi - 3], al
mov eax, 0x80808081
imul edi
add edx, edi
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov byte [esi - 2], al
mov eax, 0x80808081
imul ecx
add edx, ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov byte [esi - 1], cl
add esi, 4
dec ebp
jne 0x42c005
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0x14]
test eax, eax
mov dword [esp + 0x18], 0
jle 0x42c246
mov edx, dword [esp + 0x58]
mov esi, dword [esp + 0x68]
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x44]
lea ecx, [eax*4]
mov eax, dword [esp + 0x54]
mov dword [esp + 0x30], ecx
lea ecx, [ecx]
mov edi, dword [esp + 0x1c]
mov ebx, dword [edi + 0x2c]
mov ebp, dword [esp + 0x10]
lea ecx, [edx - 1]
imul ecx, dword [edi + 0x24]
mov edi, dword [esp + 0x88]
add ecx, ebp
mov ebp, dword [esp + 0x84]
add ecx, ebx
mov ebx, dword [esp + 0x70]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x80]
lea ecx, [edi + ecx - 1]
mov edi, dword [esp + 0x24]
imul ecx, esi
sub edi, ebp
add ecx, ebx
test edx, edx
lea ecx, [ecx + edi*4]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x28], 0
jle 0x42c214
lea esp, [esp]
xor ebp, ebp
test eax, eax
jle 0x42c1e8
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x14]
lea esi, [eax + 3]
sub eax, edx
lea ecx, [edx + 1]
mov dword [esp + 0x38], eax
mov edi, edi
movzx edx, byte [esi]
movzx eax, byte [ecx - 1]
mov edi, 0xff
sub edi, edx
imul edi, eax
mov eax, 0x80808081
imul edi
add edx, edi
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
add al, byte [esi - 3]
mov byte [ecx - 1], al
movzx edx, byte [esi]
movzx eax, byte [ecx]
mov edi, 0xff
sub edi, edx
imul edi, eax
mov eax, 0x80808081
imul edi
add edx, edi
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [esp + 0x38]
mov bl, byte [edx + ecx]
movzx edx, byte [ecx + 1]
add al, bl
mov byte [ecx], al
movzx eax, byte [esi]
mov edi, 0xff
sub edi, eax
imul edi, edx
mov eax, 0x80808081
imul edi
add edx, edi
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
add al, byte [esi - 1]
mov byte [ecx + 1], al
mov bl, byte [esi]
movzx eax, byte [ecx + 2]
movzx edx, bl
mov edi, 0xff
sub edi, edx
imul edi, eax
mov eax, 0x80808081
imul edi
add edx, edi
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
add al, bl
mov byte [ecx + 2], al
mov eax, dword [esp + 0x54]
inc ebp
add esi, 4
add ecx, 4
cmp ebp, eax
jl 0x42c120
mov edx, dword [esp + 0x58]
mov esi, dword [esp + 0x68]
mov ecx, dword [esp + 0x1c]
mov ecx, dword [ecx + 0x24]
mov edi, dword [esp + 0x2c]
mov ebp, dword [esp + 0x14]
sub edi, ecx
mov ecx, dword [esp + 0x28]
sub ebp, esi
inc ecx
cmp ecx, edx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x14], ebp
mov dword [esp + 0x28], ecx
jl 0x42c100
mov edi, dword [esp + 0x30]
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
add ebx, edi
mov edi, dword [esp + 0x3c]
add ebp, edi
mov edi, dword [esp + 0x1c]
inc ecx
mov dword [esp + 0x10], ebx
cmp ecx, dword [edi + 0x14]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x24], ebp
jl 0x42c0a0
mov esi, dword [esp + 0x1c]
mov eax, dword [esi + 0x54]
test eax, eax
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
jne 0x42c3c4
mov edx, dword [esi + 0x34]
mov eax, dword [esi + 0x50]
push edx
push eax
call edi
jmp 0x42c3cb
mov edx, dword [esp + 0x1c]
cmp dword [edx + 0x14], edi
mov dword [esp + 0x18], edi
jle 0x42c246
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x54]
mov esi, dword [esp + 0x68]
xor edi, edi
lea ecx, [eax*4]
mov eax, dword [esp + 0x58]
mov dword [esp + 0x24], edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x40], ecx
jmp 0x42c2a0
xor edi, edi
mov ecx, dword [esp + 0x1c]
mov ebx, dword [ecx + 0x2c]
lea ebp, [eax - 1]
imul ebp, dword [ecx + 0x24]
mov ecx, dword [esp + 0x80]
add ebp, ebx
add ebp, dword [esp + 0x10]
mov ebx, dword [esp + 0x88]
lea ecx, [ebx + ecx - 1]
mov ebx, dword [esp + 0x24]
imul ecx, esi
sub ebx, dword [esp + 0x84]
add ecx, dword [esp + 0x70]
cmp eax, edi
lea ecx, [ecx + ebx*4]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x30], edi
jle 0x42c38d
jmp 0x42c2f0
test edx, edx
mov dword [esp + 0x28], 0
jle 0x42c36f
mov eax, dword [esp + 0x14]
mov edx, ebp
sub edx, eax
lea edi, [ebp + 3]
lea ecx, [eax + 1]
mov dword [esp + 0x38], edx
mov edi, edi
mov dl, byte [edi - 3]
mov eax, dword [esp + 0x38]
mov byte [ecx - 1], dl
mov dl, byte [eax + ecx]
mov byte [ecx], dl
mov al, byte [edi - 1]
mov byte [ecx + 1], al
mov bl, byte [edi]
movzx eax, byte [ecx + 2]
movzx edx, bl
mov esi, 0xff
sub esi, edx
imul esi, eax
mov eax, 0x80808081
imul esi
add edx, esi
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
add al, bl
mov byte [ecx + 2], al
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x54]
inc eax
add edi, 4
add ecx, 4
cmp eax, edx
mov dword [esp + 0x28], eax
jl 0x42c310
mov eax, dword [esp + 0x58]
mov esi, dword [esp + 0x68]
mov ecx, dword [esp + 0x1c]
mov edi, dword [ecx + 0x24]
sub dword [esp + 0x14], esi
mov ecx, dword [esp + 0x30]
sub ebp, edi
inc ecx
cmp ecx, eax
mov dword [esp + 0x30], ecx
jl 0x42c2f0
mov edi, dword [esp + 0x40]
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
add ebx, edi
mov edi, dword [esp + 0x3c]
add ebp, edi
mov edi, dword [esp + 0x1c]
inc ecx
mov dword [esp + 0x10], ebx
cmp ecx, dword [edi + 0x14]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x24], ebp
jl 0x42c29e
jmp 0x42c246
mov ecx, esi
call fcn.00427af0
mov ecx, dword [esi + 0x30]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [esi + 0x54]
test ecx, ecx
mov eax, dword [esp + 0xa4]
mov dword [esi + 0x30], eax
jne 0x42c3f0
mov edx, dword [esi + 0x50]
push eax
push edx
call edi
mov dword [esi + 0x34], eax
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x60]
lea eax, [esi + 0x18]
mov dword [eax], ecx
mov ecx, dword [esp + 0x64]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x68]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x6c]
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x70]
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0x80]
mov dword [eax + 0x14], edx
mov eax, dword [esi + 0x14]
imul eax, dword [esp + 0x7c]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x3ec]
test eax, eax
mov dword [esi + 0x10], ecx
pop edi
je 0x42c448
mov edx, dword [esp + 0x80]
neg edx
mov dword [eax], edx
mov eax, dword [esp + 0x3ec]
test eax, eax
je 0x42c45e
mov ecx, dword [esp + 0x84]
neg ecx
mov dword [eax], ecx
mov eax, 1
mov dword [esi + 0x44], eax
pop esi
pop ebp
pop ebx
add esp, 0x3c4
ret 0x1c