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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x46c
xor eax, eax
push ebx
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
push esi
mov esi, ecx
mov ecx, 0xa
mov dword [esp + 0x50], ecx
mov dword [esp + 0x60], ecx
mov ecx, dword [eax]
mov dword [esi + 0x1c8], ecx
mov edx, dword [eax + 4]
mov ecx, dword [ebp + 0xc]
push edi
mov edi, dword [esi + 0x1c8]
mov dword [esi + 0x1cc], edx
mov eax, 0x66666667
imul edi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ecx, eax
mov dword [esi + 0x1d4], ecx
mov dword [esi + 0x1d8], ebx
mov dword [esp + 0x10], edi
jle 0x100447c3
mov dword [esi + 0x1d4], eax
mov ecx, dword [esi + 0x1cc]
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
mov dword [esp + 0x24], ecx
jle 0x100447e8
mov dword [esi + 0x1d8], eax
mov eax, 2
cmp dword [esi + 0x1d4], eax
jge 0x100447fb
mov dword [esi + 0x1d4], eax
cmp dword [esi + 0x1d8], eax
jge 0x10044809
mov dword [esi + 0x1d8], eax
mov eax, dword [esi + 0x1d8]
lea edx, [eax - 1]
mov dword [esp + 0x14], edx
fild dword [esp + 0x14]
mov edx, dword [esi + 0x1d4]
fild dword [esp + 0x24]
lea ebx, [edx - 1]
mov dword [esp + 0x14], ebx
lea ebx, [ecx - 1]
fdiv st(1)
fstp qword [esi + 0x1e0]
fild dword [esp + 0x14]
fild dword [esp + 0x10]
mov dword [esp + 0x14], ebx
lea ebx, [edi - 1]
fdiv st(1)
fstp qword [esi + 0x1e8]
fild dword [esp + 0x14]
mov dword [esp + 0x14], ebx
lea ebx, [esp + 0x48]
push ebx
fdiv st(2)
lea ebx, [esp + 0x5c]
push ebx
push edx
push eax
push ecx
mov ecx, dword [ebp + 8]
push edi
push 0
push 0
fstp qword [esp + 0x50]
fild dword [esp + 0x34]
fdiv st(1)
fstp qword [esp + 0x90]
fstp st(0)
fstp st(0)
call fcn.10014dd0
mov eax, dword [esi + 0x1d4]
test eax, eax
lea ecx, [esi + 0x14]
jl 0x1004489c
cmp eax, dword [ecx + 4]
jg 0x1004489c
mov dword [ecx], eax
jmp 0x100448a2
push eax
call fcn.10044310
mov eax, dword [esi + 0x1d4]
test eax, eax
lea ecx, [esi + 0x24]
jl 0x100448b8
cmp eax, dword [ecx + 4]
jg 0x100448b8
mov dword [ecx], eax
jmp 0x100448be
push eax
call fcn.100444c0
mov eax, dword [esi + 0x1d4]
test eax, eax
lea ecx, [esi + 4]
jl 0x100448d4
cmp eax, dword [ecx + 4]
jg 0x100448d4
mov dword [ecx], eax
jmp 0x100448da
push eax
call fcn.100441a0
cmp dword [esi + 0x1d4], 0
mov dword [esp + 0x1c], 0
jle 0x100449d5
xor ebx, ebx
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x1d8]
add ecx, ebx
test eax, eax
jl 0x10044909
cmp eax, dword [ecx + 4]
jg 0x10044909
mov dword [ecx], eax
jmp 0x1004490f
push eax
call fcn.10002a90
mov ecx, dword [esi + 0x2c]
mov eax, dword [esi + 0x1d8]
add ecx, ebx
test eax, eax
jl 0x10044927
cmp eax, dword [ecx + 4]
jg 0x10044927
mov dword [ecx], eax
jmp 0x1004492d
push eax
call fcn.10043f50
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x1d8]
add ecx, ebx
test eax, eax
jl 0x10044945
cmp eax, dword [ecx + 4]
jg 0x10044945
mov dword [ecx], eax
jmp 0x1004494b
push eax
call fcn.10043e80
cmp dword [esi + 0x1d8], 0
mov dword [esp + 0x18], 0
jle 0x100449bb
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], eax
jmp 0x10044970
mov edx, dword [esi + 0xc]
mov edi, dword [ebx + edx + 8]
add edi, dword [esp + 0x20]
add dword [esp + 0x20], 0x400
xor eax, eax
mov ecx, 0x100
rep stosd dword es:[edi], eax
mov edx, dword [esi + 0x2c]
mov edi, dword [edx + ebx + 8]
mov edx, dword [esp + 0x10]
add edi, edx
mov ecx, 0x19
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov eax, dword [esp + 0x18]
add eax, 1
add edx, 0x65
cmp eax, dword [esi + 0x1d8]
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], edx
jl 0x10044970
mov eax, dword [esp + 0x1c]
add eax, 1
add ebx, 0x10
cmp eax, dword [esi + 0x1d4]
mov dword [esp + 0x1c], eax
jl 0x100448f1
xor edx, edx
xor eax, eax
mov ecx, 0xff
lea edi, [esp + 0x7c]
mov dword [esp + 0x78], edx
rep stosd dword es:[edi], eax
xor edi, edi
cmp dword [esi + 0x1d4], edx
mov dword [esp + 0x1c], edi
jle 0x10044cda
fld qword [esp + 0x30]
mov edi, edi
fild dword [esp + 0x1c]
fsub qword [0x2f3f090]
fmul qword [esp + 0x70]
fcom qword [0x2f3f088]
fnstsw ax
test ah, 5
jp 0x10044a23
fstp st(0)
fld qword [0x2f3f088]
fld st(0)
fadd qword [esi + 0x1e8]
fild dword [esi + 0x1c8]
fstp qword [esp + 0x30]
fcom qword [esp + 0x30]
fnstsw ax
test ah, 0x41
jne 0x10044a46
fstp st(0)
fld qword [esp + 0x30]
cmp dword [esi + 0x1d8], edx
mov dword [esp + 0x18], edx
jle 0x10044cc1
call fcn.10001036
mov ebx, eax
mov dword [esp + 0x6c], ebx
call fcn.10001036
mov ecx, eax
mov eax, ebx
sub eax, ecx
mov dword [esp + 0x44], eax
shl edi, 4
xor eax, eax
mov dword [esp + 0x68], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x3c], 8
jmp 0x10044a93
mov ecx, dword [esp + 0x68]
mov ebx, dword [esp + 0x6c]
fild dword [esp + 0x18]
fsub qword [0x2f3f090]
fmul st(1)
fcom qword [0x2f3f088]
fnstsw ax
test ah, 5
jp 0x10044ab4
fstp st(0)
fld qword [0x2f3f088]
fld st(0)
fadd qword [esi + 0x1e0]
fstp qword [esp + 0x30]
fild dword [esi + 0x1cc]
fld qword [esp + 0x30]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x10044ad9
fstp qword [esp + 0x30]
jmp 0x10044adb
fstp st(0)
mov eax, dword [esi + 0x1c]
mov edx, dword [edi + eax + 8]
mov eax, dword [esp + 0x18]
mov dword [edx + eax*4], 0
mov eax, ecx
cmp eax, ebx
jge 0x10044b35
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x3c]
mov ecx, dword [edx + ecx]
mov edi, edi
movzx ecx, byte [ecx + eax]
add ecx, dword [esp + 0x20]
mov edx, dword [esi + 0xc]
mov edx, dword [edi + edx + 8]
add dword [edx + ecx*4], 1
lea ecx, [edx + ecx*4]
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x60]
mov ecx, dword [edx + ecx]
movzx edx, byte [ecx + eax]
add dword [esp + edx*4 + 0x78], 1
lea edx, [esp + edx*4 + 0x78]
add eax, 1
cmp eax, ebx
jl 0x10044b00
mov eax, dword [esi + 0x1c]
mov ecx, dword [edi + eax + 8]
mov edx, dword [esp + 0x18]
lea eax, [ecx + edx*4]
mov ecx, dword [esp + 0x44]
add dword [eax], ecx
call fcn.10001036
fld qword [esp + 0x30]
mov dword [esp + 0x14], eax
mov ebx, eax
call fcn.10001036
cmp ebx, eax
jge 0x10044ba2
mov edx, dword [esp + 0x50]
mov ecx, dword [edx + edi + 8]
lea esp, [esp]
movzx ecx, byte [ecx + ebx]
add ecx, dword [esp + 0x20]
mov edx, dword [esi + 0xc]
mov edx, dword [edi + edx + 8]
add dword [edx + ecx*4], 1
lea ecx, [edx + ecx*4]
mov ecx, dword [esp + 0x50]
mov ecx, dword [ecx + edi + 8]
movzx edx, byte [ecx + ebx]
add dword [esp + edx*4 + 0x78], 1
lea edx, [esp + edx*4 + 0x78]
add ebx, 1
cmp ebx, eax
jl 0x10044b70
mov edx, dword [esi + 0x1c]
mov ecx, dword [edi + edx + 8]
sub eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
add dword [ecx + edx*4], eax
lea ecx, [ecx + edx*4]
xor eax, eax
xor ebx, ebx
xor ecx, ecx
shl edx, 0xa
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0x14], eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x24], edx
jmp 0x10044be0
mov ecx, dword [esp + 0x40]
lea ebx, [ebx]
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0xc]
mov eax, dword [edi + eax + 8]
mov edx, dword [edx + eax]
test edx, edx
jbe 0x10044c01
cmp dword [esp + 0x28], 0
jge 0x10044bfd
mov dword [esp + 0x28], ebx
mov dword [esp + 0x14], ebx
add ecx, edx
mov edx, dword [esi + 0x1c]
mov ebx, dword [edi + edx + 8]
lea eax, [ecx + ecx*2]
lea eax, [ecx + eax*8]
add eax, eax
add eax, eax
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x18]
cdq
idiv dword [ebx + ecx*4]
mov ecx, dword [esp + 0x30]
cmp ecx, eax
jge 0x10044c4b
jmp 0x10044c30
mov edx, dword [esi + 0x2c]
mov edx, dword [edi + edx + 8]
add edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x2c]
mov byte [edx + ecx], bl
add ecx, 1
cmp ecx, eax
jl 0x10044c30
jmp 0x10044c4f
mov ebx, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
add ebx, 1
add edx, 4
cmp ebx, 0x100
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x24], edx
jl 0x10044bd6
mov eax, dword [esi + 0x2c]
mov edx, dword [edi + eax + 8]
mov ecx, dword [esp + 0x10]
mov al, byte [esp + 0x28]
add dword [esp + 0x3c], 0x10
add dword [esp + 0x20], 0x100
mov byte [ecx + edx], al
mov edx, dword [esi + 0x2c]
mov eax, dword [edi + edx + 8]
mov dl, byte [esp + 0x14]
mov byte [eax + ecx + 0x64], dl
mov eax, dword [esp + 0x18]
add eax, 1
add ecx, 0x65
cmp eax, dword [esi + 0x1d8]
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], ecx
jl 0x10044a8b
mov edi, dword [esp + 0x1c]
xor edx, edx
jmp 0x10044cc5
fstp st(0)
fstp st(0)
add edi, 1
cmp edi, dword [esi + 0x1d4]
mov dword [esp + 0x1c], edi
jl 0x10044a00
fstp st(0)
xor ecx, ecx
xor eax, eax
mov edi, edi
add ecx, dword [esp + eax*4 + 0x78]
add eax, 1
cmp eax, 0x100
jl 0x10044ce0
mov dword [esp + 0x30], ecx
xor ecx, ecx
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x14], edx
xor ebx, ebx
mov eax, dword [esp + ebx*4 + 0x78]
test eax, eax
mov edi, edx
jle 0x10044d1b
cmp dword [esp + 0x10], 0
jge 0x10044d17
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
add ecx, eax
lea eax, [ecx + ecx*2]
lea eax, [ecx + eax*8]
add eax, eax
add eax, eax
cdq
idiv dword [esp + 0x30]
mov dword [esp + 0x44], ecx
mov edx, eax
cmp edi, edx
jge 0x10044d4f
lea ecx, [esi + edi*4 + 0x34]
mov dword [esp + 0x40], ecx
mov ecx, edx
sub ecx, edi
mov edi, dword [esp + 0x40]
movzx eax, bl
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x44]
add ebx, 1
cmp ebx, 0x100
jl 0x10044d02
movzx eax, byte [esp + 0x14]
movzx edx, byte [esp + 0x10]
xor ebx, ebx
mov dword [esi + 0x1c4], eax
xor eax, eax
cmp dword [esi + 0x1d4], ebx
mov dword [esi + 0x34], edx
mov dword [esp + 0x10], ebx
jle 0x10044ddb
mov ecx, dword [esi + 0x1d4]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x24], ecx
jmp 0x10044d90
cmp dword [esi + 0x1d8], 0
jle 0x10044dc7
mov edx, dword [esi + 0x2c]
mov ecx, dword [edx + ebx + 8]
mov edi, dword [esi + 0x1d8]
add ecx, 0x32
lea esp, [esp]
movzx edx, byte [ecx]
movzx ebx, byte [ecx + 0x31]
add dword [esp + 0x10], edx
sub ebx, edx
add eax, ebx
add ecx, 0x65
sub edi, 1
jne 0x10044db0
mov ebx, dword [esp + 0x14]
add ebx, 0x10
sub dword [esp + 0x24], 1
mov dword [esp + 0x14], ebx
jne 0x10044d90
xor ebx, ebx
mov edi, dword [esi + 0x1d4]
mov ecx, dword [esi + 0x1d8]
imul ecx, edi
cdq
idiv ecx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x1c], ebx
mov dword [esi + 0x1f0], eax
mov eax, dword [esp + 0x10]
cdq
idiv ecx
cmp edi, ebx
mov dword [esp + 0x10], ebx
mov dword [esi + 0x1f4], eax
jle 0x10044eb5
xor ebx, ebx
lea ebx, [ebx]
cmp dword [esi + 0x1d8], 0
mov dword [esp + 0x18], 0
jle 0x10044e9b
mov eax, dword [esi + 0x2c]
lea edx, [ebx + eax + 8]
xor edi, edi
lea ebx, [ebx]
mov ecx, dword [edx]
movzx edx, byte [edi + ecx + 0x32]
mov eax, dword [esi + 0x1f4]
sub eax, edx
push eax
call fcn.10018409
mov ecx, dword [esi + 0x2c]
add dword [esp + 0x14], eax
mov eax, dword [ebx + ecx + 8]
lea edx, [ebx + ecx + 8]
lea ecx, [edi + eax]
movzx eax, byte [ecx + 0x32]
movzx ecx, byte [ecx + 1]
sub eax, ecx
add esp, 4
cmp eax, dword [esi + 0x1f0]
jle 0x10044e85
add dword [esp + 0x2c], eax
add dword [esp + 0x28], 1
mov eax, dword [esp + 0x18]
add eax, 1
add edi, 0x65
cmp eax, dword [esi + 0x1d8]
mov dword [esp + 0x18], eax
jl 0x10044e40
mov eax, dword [esp + 0x1c]
add eax, 1
add ebx, 0x10
cmp eax, dword [esi + 0x1d4]
mov dword [esp + 0x1c], eax
jl 0x10044e20
mov ecx, dword [esi + 0x1d8]
imul ecx, dword [esi + 0x1d4]
mov eax, dword [esp + 0x10]
add eax, eax
cdq
idiv ecx
mov ecx, dword [esp + 0x28]
test ecx, ecx
mov dword [esi + 0x1f8], eax
jle 0x10044ee8
mov eax, dword [esp + 0x2c]
cdq
idiv ecx
mov dword [esi + 0x1fc], eax
jmp 0x10044ef4
mov edx, dword [esi + 0x1f0]
mov dword [esi + 0x1fc], edx
cmp dword [esp + 0x5c], 1
mov byte [esi], 1
jl 0x10044f46
mov edx, dword [esp + 0x60]
test edx, edx
je 0x10044f46
mov ecx, dword [edx - 4]
lea ebx, [edx - 4]
mov eax, ecx
shl eax, 4
add eax, edx
sub ecx, 1
js 0x10044f3d
lea esi, [eax + 8]
lea edi, [ecx + 1]
mov edi, edi
sub esi, 0x10
cmp dword [esi - 4], 1
jl 0x10044f38
mov eax, dword [esi]
test eax, eax
je 0x10044f38
push eax
call fcn.10018560
add esp, 4
sub edi, 1
jne 0x10044f20
push ebx
call fcn.10018560
add esp, 4
cmp dword [esp + 0x4c], 1
jl 0x10044f96
mov edx, dword [esp + 0x50]
test edx, edx
je 0x10044f96
mov ecx, dword [edx - 4]
lea ebx, [edx - 4]
mov eax, ecx
shl eax, 4
add eax, edx
sub ecx, 1
js 0x10044f8d
lea esi, [eax + 8]
lea edi, [ecx + 1]
lea ecx, [ecx]
sub esi, 0x10
cmp dword [esi - 4], 1
jl 0x10044f88
mov eax, dword [esi]
test eax, eax
je 0x10044f88
push eax
call fcn.10018560
add esp, 4
sub edi, 1
jne 0x10044f70
push ebx
call fcn.10018560
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc