Function at 0x736910
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0xb0]
push ebx
push esi
push edi
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0xa0], edx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x80], eax
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
call fcn.00409400
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
mov edx, str._r_fTXRefTrailer_
lea eax, [ebp - 0x38]
call fcn.0040f740
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x78], 0
mov eax, 1
lea edx, [ebp - 0x70]
lea ecx, [ebp - 0x58]
call fcn.0040e950
call fcn.00410630
push eax
test eax, eax
jne 0x737120
mov byte [ebp - 0xa8], 0
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.005d7890
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x7369a7
mov eax, dword [eax - 4]
test eax, eax
jne 0x7369b4
mov byte [ebp - 0xac], 0
jmp 0x7369d9
mov eax, dword [ebp - 0x10]
mov edx, 0
call fcn.0044ee70
mov ebx, eax
mov eax, dword [ebp - 0x10]
mov edx, 1
call fcn.0044ee70
cmp ebx, eax
sete byte [ebp - 0xac]
mov al, byte [ebp - 0xac]
test al, al
je 0x736a1c
mov eax, dword [ebp - 0x10]
call fcn.0044ecf0
mov ebx, eax
mov eax, dword [ebp - 0xa0]
mov edx, dword [ebp - 0xa0]
mov edx, dword [edx]
call dword [edx + 0x70]
push edx
push eax
push edi
push dword [ebp - 0x80]
mov eax, 0x8d2498
push eax
mov edx, ebx
mov eax, dword [ebp - 0xa4]
mov ecx, 0
call fcn.00734e70
mov edx, dword [ebp - 4]
mov eax, 0x8d24a8
call fcn.0040a480
mov ebx, eax
test ebx, ebx
je 0x737120
mov edx, dword [ebp - 4]
mov eax, str.stream
call fcn.0040a480
mov esi, eax
test esi, esi
je 0x737120
lea eax, [ebp - 8]
push eax
lea eax, [esi - 3]
sub eax, ebx
mov ecx, eax
lea eax, [ebx + 2]
mov edx, eax
mov eax, dword [ebp - 4]
call fcn.0040a3d0
lea ecx, [ebp - 0x78]
mov edx, 0x8d24c0
mov eax, dword [ebp - 8]
call fcn.005d6e30
mov edx, dword [ebp - 0x78]
lea eax, [ebp - 8]
call fcn.00409430
lea ecx, [ebp - 0x38]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xa4]
call fcn.007358e0
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0xa4]
call fcn.00735ff0
push edi
push dword [ebp - 0x80]
mov eax, esi
mov edx, eax
sar edx, 0x1f
push edx
push eax
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0xa0]
mov eax, dword [ebp - 0xa4]
call fcn.007366a0
test al, al
je 0x7370ed
lea edx, [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
call fcn.0065a6c0
push dword [ebp - 0x18]
call fcn.005d6db0
add eax, 1
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x736af2
mov eax, dword [eax - 4]
add eax, 1
cdq
idiv dword [ebp - 0x9c]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x736b0c
mov eax, dword [eax - 4]
add eax, 1
cdq
idiv dword [ebp - 0x9c]
test edx, edx
jne 0x7370ed
mov byte [ebp - 0xb0], 1
mov eax, dword [ebp - 0x1c]
cmp eax, 1
jl 0x736c19
sub eax, 1
je 0x736c20
sub eax, 9
je 0x736c20
sub eax, 2
je 0x736b54
jmp 0x736c19
cmp dword [ebp - 0x84], 1
jle 0x736c20
mov edx, dword [ebp - 0x84]
lea eax, [edx - 1]
mov ecx, eax
mov dword [ebp - 0x98], 1
cmp ecx, dword [ebp - 0x98]
jl 0x736c20
sub dword [ebp - 0x98], 1
lea esi, [esi]
add dword [ebp - 0x98], 1
mov edx, dword [ebp - 0x9c]
lea eax, [edx - 1]
mov edx, eax
mov dword [ebp - 0x94], 1
cmp edx, dword [ebp - 0x94]
jl 0x736c0b
sub dword [ebp - 0x94], 1
nop
add dword [ebp - 0x94], 1
mov esi, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x98]
lea ebx, [eax - 1]
mov eax, dword [ebp - 0x9c]
imul eax, ebx
add eax, dword [ebp - 0x94]
movzx edi, byte [esi + eax]
mov ebx, dword [ebp - 0x9c]
imul ebx, dword [ebp - 0x98]
add ebx, dword [ebp - 0x94]
movzx eax, byte [esi + ebx]
lea eax, [edi + eax]
and eax, 0xff
mov esi, dword [ebp - 0x3c]
mov byte [esi + ebx], al
cmp edx, dword [ebp - 0x94]
jg 0x736bb8
cmp ecx, dword [ebp - 0x98]
jg 0x736b8c
jmp 0x736c20
mov byte [ebp - 0xb0], 0
mov al, byte [ebp - 0xb0]
test al, al
je 0x7370ed
push 0
push 0
mov eax, dword [ebp - 0xa0]
mov edx, dword [ebp - 0xa0]
mov edx, dword [edx]
call dword [edx + 0x6c]
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x7c], 0
lea eax, [ebp - 0x7c]
push eax
mov edx, 0x7fa720
lea eax, [ebp - 0x4c]
mov ecx, 1
call fcn.0040d7a0
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x736c77
mov eax, dword [eax - 4]
add eax, 1
test eax, eax
jle 0x736dad
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x736c8c
mov eax, dword [eax - 4]
add eax, 1
cmp eax, 2
jne 0x736ca1
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
mov dword [ebp - 0x90], edx
jmp 0x736dad
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x736cae
mov eax, dword [eax - 4]
add eax, 1
mov edx, eax
sar eax, 0x1f
mov ecx, eax
mov eax, edx
xor eax, ecx
sub eax, ecx
and eax, 1
mov edx, ecx
xor edx, eax
mov eax, edx
sub eax, ecx
mov ecx, eax
test ecx, ecx
jne 0x736dad
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x736cdd
mov eax, dword [eax - 4]
add eax, 1
mov edx, eax
sar edx, 0x1f
and edx, 1
add eax, edx
sar eax, 1
sub eax, 1
mov edi, eax
mov dword [ebp - 0x98], 0
cmp edi, dword [ebp - 0x98]
jl 0x736dad
sub dword [ebp - 0x98], 1
nop
add dword [ebp - 0x98], 1
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x98]
shl edx, 1
mov ecx, dword [eax + edx*4]
mov dword [ebp - 0x8c], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x98]
shl eax, 1
mov eax, dword [edx + eax*4 + 4]
sub eax, 1
mov esi, eax
mov dword [ebp - 0x94], 0
cmp esi, dword [ebp - 0x94]
jl 0x736da1
sub dword [ebp - 0x94], 1
add dword [ebp - 0x94], 1
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x736d68
mov eax, dword [eax - 4]
add eax, 1
mov ebx, eax
lea eax, [ebx + 1]
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x7c]
push eax
mov edx, 0x7fa720
lea eax, [ebp - 0x4c]
mov ecx, 1
call fcn.0040d7a0
mov eax, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x8c]
mov dword [eax + ebx*4], edx
add dword [ebp - 0x8c], 1
cmp esi, dword [ebp - 0x94]
jg 0x736d54
cmp edi, dword [ebp - 0x98]
jg 0x736d0c
mov edx, dword [ebp - 0x84]
lea eax, [edx - 1]
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x98], 0
mov eax, dword [ebp - 0x88]
cmp eax, dword [ebp - 0x98]
jl 0x7370ed
sub dword [ebp - 0x98], 1
nop
add dword [ebp - 0x98], 1
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x9c]
imul edx, dword [ebp - 0x98]
cmp byte [eax + edx], 2
jne 0x7370db
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov ebx, 1
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x736e28
mov eax, dword [eax - 4]
add eax, 1
sub eax, 1
cmp eax, 2
jge 0x736e37
mov edx, 2
jmp 0x736e39
mov edx, eax
mov dword [ebp - 0x94], 0
cmp edx, dword [ebp - 0x94]
jl 0x737048
sub dword [ebp - 0x94], 1
mov esi, esi
add dword [ebp - 0x94], 1
mov dword [ebp - 0x8c], 0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x94]
mov eax, dword [eax + ecx*4]
cmp eax, 1
jl 0x73701b
sub eax, 1
je 0x736e9f
sub eax, 1
je 0x736ec1
sub eax, 1
je 0x736f0f
sub eax, 1
je 0x736f85
jmp 0x73701b
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x9c]
imul eax, dword [ebp - 0x98]
lea eax, [eax + ebx]
movzx eax, byte [ecx + eax]
mov dword [ebp - 0x8c], eax
jmp 0x73701b
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x9c]
imul eax, dword [ebp - 0x98]
lea eax, [eax + ebx]
lea eax, [ecx + eax]
mov ecx, eax
mov esi, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x9c]
imul eax, dword [ebp - 0x98]
lea eax, [eax + ebx]
lea eax, [esi + eax + 1]
mov esi, eax
movzx eax, byte [ecx]
mov ecx, eax
shl ecx, 8
movzx eax, byte [esi]
or eax, ecx
and eax, 0xffff
mov dword [ebp - 0x8c], eax
jmp 0x73701b
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x9c]
imul eax, dword [ebp - 0x98]
lea eax, [eax + ebx]
lea eax, [ecx + eax]
movzx eax, byte [eax]
mov cx, ax
mov esi, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x9c]
imul eax, dword [ebp - 0x98]
lea eax, [eax + ebx]
lea eax, [esi + eax + 1]
mov esi, eax
mov edi, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x9c]
imul eax, dword [ebp - 0x98]
lea eax, [eax + ebx]
lea eax, [edi + eax + 2]
mov edi, eax
movzx eax, byte [esi]
mov esi, eax
shl esi, 8
movzx eax, byte [edi]
or eax, esi
mov si, ax
movzx eax, cx
mov ecx, eax
shl ecx, 0x10
movzx eax, si
or eax, ecx
mov dword [ebp - 0x8c], eax
jmp 0x73701b
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x9c]
imul eax, dword [ebp - 0x98]
lea eax, [eax + ebx]
lea eax, [ecx + eax]
mov ecx, eax
mov esi, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x9c]
imul eax, dword [ebp - 0x98]
lea eax, [eax + ebx]
lea eax, [esi + eax + 1]
mov esi, eax
movzx eax, byte [ecx]
mov ecx, eax
shl ecx, 8
movzx eax, byte [esi]
or eax, ecx
mov cx, ax
mov esi, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x9c]
imul eax, dword [ebp - 0x98]
lea eax, [eax + ebx]
lea eax, [esi + eax + 2]
mov esi, eax
mov edi, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x9c]
imul eax, dword [ebp - 0x98]
lea eax, [eax + ebx]
lea eax, [edi + eax + 3]
mov edi, eax
movzx eax, byte [esi]
mov esi, eax
shl esi, 8
movzx eax, byte [edi]
or eax, esi
mov si, ax
movzx eax, cx
mov ecx, eax
shl ecx, 0x10
movzx eax, si
or eax, ecx
mov dword [ebp - 0x8c], eax
mov ecx, dword [ebp - 0x8c]
mov eax, dword [ebp - 0x94]
mov dword [ebp + eax*4 - 0x48], ecx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x94]
mov eax, dword [eax + ecx*4]
lea eax, [eax + ebx]
mov ebx, eax
cmp edx, dword [ebp - 0x94]
jg 0x736e58
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x737055
mov eax, dword [eax - 4]
add eax, 1
test eax, eax
jle 0x737084
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x737066
mov eax, dword [eax - 4]
add eax, 1
cmp eax, dword [ebp - 0x98]
jle 0x7370db
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x98]
mov eax, dword [edx + eax*4]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x48]
test eax, eax
jl 0x7370d4
test eax, eax
je 0x7370d4
sub eax, 1
je 0x73709d
sub eax, 1
je 0x7370d4
jmp 0x7370d4
mov eax, dword [ebp - 0xa0]
mov edx, dword [ebp - 0xa0]
mov edx, dword [edx]
call dword [edx + 0x70]
push edx
push eax
mov edx, dword [ebp - 0x44]
mov eax, edx
sar eax, 0x1f
push eax
push edx
mov eax, 0x8d24ec
push eax
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x90]
mov eax, dword [ebp - 0xa4]
call fcn.00734e70
add dword [ebp - 0x90], 1
mov eax, dword [ebp - 0x88]
cmp eax, dword [ebp - 0x98]
jg 0x736de0
cmp dword [ebp - 0xc], 0
je 0x7370fb
mov eax, dword [ebp - 0xc]
call fcn.0040de00
cmp dword [ebp - 0x34], 0
jg 0x737109
jl 0x737120
cmp dword [ebp - 0x38], 0
jbe 0x737120
push dword [ebp - 0x34]
push dword [ebp - 0x38]
mov edx, dword [ebp - 0xa0]
mov eax, dword [ebp - 0xa4]
call fcn.00735830
call fcn.0040ebd0
lea eax, [ebp - 0x78]
call fcn.00404190
lea eax, [ebp - 8]
call fcn.00404190
lea eax, [ebp - 0x10]
call fcn.00404190
mov edx, str._r_fTXRefTrailer_
lea eax, [ebp - 0x38]
call fcn.0040f7a0
mov edx, 0x88637c
lea eax, [ebp - 0x3c]
call fcn.0040f7a0
mov edx, 0x7fa720
lea eax, [ebp - 0x4c]
call fcn.0040f7a0
lea eax, [ebp - 4]
call fcn.00404190
pop eax
test eax, eax
je 0x737176
call fcn.0040ed00
mov al, byte [ebp - 0xa8]
pop edi
pop esi
pop ebx
leave
ret 8