Function at 0x431860
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
mov eax, dword [0x49d1cc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xd0], eax
mov dword [ebp - 0xc8], edx
xor edx, edx
mov eax, dword [esi]
push edi
mov dword [ebp - 0xc4], esi
mov dword [eax + 8], 0
mov dword [esi + 0x46cc], 0
mov dword [esi + 0x46d0], 0
mov dword [esi + 0x4714], 0
mov dword [esi + 0x4718], 0
mov dword [esi + 0x475c], 0
mov dword [esi + 0x4760], 0
mov dword [esi + 0x47a4], 0
mov dword [esi + 0x47a8], 0
mov dword [esi + 0x4804], 0
call fcn.00430c50
test eax, eax
je 0x431a6d
mov ecx, esi
call fcn.0042ea20
movzx ecx, al
cmp ecx, 0xd9
je 0x4319d7
nop dword [eax]
cmp ecx, 0xda
jne 0x431973
mov ecx, esi
call fcn.0042ff70
test eax, eax
je 0x431a6d
mov ecx, esi
call fcn.0042eb50
test eax, eax
je 0x431a6d
cmp byte [esi + 0x47c4], 0xff
jne 0x43195c
mov ecx, esi
call fcn.00430d70
mov byte [esi + 0x47c4], al
mov ecx, esi
call fcn.0042ea20
movzx ecx, al
lea eax, [ecx - 0xd0]
cmp eax, 7
ja 0x4319cb
jmp 0x4319c1
cmp ecx, 0xdc
jne 0x4319b4
mov ecx, dword [esi]
call fcn.0042bca0
mov ecx, dword [esi]
mov edi, eax
call fcn.0042bca0
cmp edi, 4
jne 0x431a5b
mov ecx, dword [esi]
cmp eax, dword [ecx + 4]
je 0x4319c1
mov eax, dword fs:[0x2c]
mov edx, ecx
mov eax, dword [eax]
mov dword [eax + 0xc], str.bad_DNL_height
jmp 0x431a6f
mov edx, ecx
mov ecx, esi
call fcn.0042f510
test eax, eax
je 0x4319e7
mov ecx, esi
call fcn.0042ea20
movzx ecx, al
cmp ecx, 0xd9
jne 0x431920
cmp dword [esi + 0x47cc], 0
je 0x4319e7
mov ecx, esi
call fcn.0042f390
mov edi, dword [esi]
mov edi, dword [edi + 8]
mov dword [ebp - 0x88], edi
cmp edi, 3
jne 0x431a90
cmp dword [esi + 0x47ec], edi
je 0x431a19
cmp dword [esi + 0x47e8], 0
jne 0x431a90
cmp dword [esi + 0x47e4], 0
jne 0x431a90
mov dword [ebp - 0x9c], 1
mov dword [ebp - 0x88], edi
mov ecx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
lea edi, [esi + 0x46a0]
xorps xmm0, xmm0
mov dword [ebp - 0x98], 0
push ebx
movups xmmword [ebp - 0xb8], xmm0
lea ebx, [ebp - 0x78]
mov dword [ebp - 0x90], edi
mov dword [ebp - 0xa0], ecx
jmp 0x431ac6
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov dword [eax + 0xc], str.bad_DNL_len
mov edx, dword [esi]
mov edx, dword [edx + 8]
mov ecx, esi
push 0
call fcn.00430440
add esp, 4
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045b938
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x9c], 0
test edi, edi
jg 0x431a29
push 0
mov edx, edi
mov ecx, esi
call fcn.00430440
add esp, 4
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045b938
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x90]
mov eax, dword [esi]
mov eax, dword [eax]
add eax, 3
push eax
call ecx
add esp, 4
mov dword [edi + 0x34], eax
test eax, eax
je 0x43206d
mov eax, dword [esi + 0x4684]
cdq
idiv dword [edi]
mov dword [ebx + 0x10], 0
mov dword [ebp - 0x8c], eax
mov dword [ebx], eax
mov eax, dword [esi + 0x4688]
cdq
idiv dword [edi + 4]
xor edx, edx
mov edi, eax
mov eax, dword [ebp - 0x8c]
mov ecx, edi
mov dword [ebx + 4], edi
sar ecx, 1
dec eax
mov dword [ebx + 0xc], ecx
mov ecx, dword [esi]
add eax, dword [ecx]
div dword [ebp - 0x8c]
mov ecx, dword [ebp - 0x90]
mov dword [ebx + 8], eax
mov eax, dword [ecx + 0x28]
mov dword [ebx - 4], eax
mov dword [ebx - 8], eax
mov eax, dword [ebp - 0x8c]
cmp eax, 1
jne 0x431b53
cmp edi, eax
jne 0x431b47
mov eax, 0x430f10
jmp 0x431b76
cmp edi, 2
jne 0x431b71
mov eax, 0x430f20
jmp 0x431b76
cmp eax, 2
jne 0x431b71
cmp edi, 1
jne 0x431b64
mov eax, 0x431130
jmp 0x431b76
cmp edi, 2
jne 0x431b71
mov eax, dword [esi + 0x4814]
jmp 0x431b76
mov eax, 0x431450
mov edi, dword [ebp - 0x88]
add ecx, 0x48
mov dword [ebx - 0xc], eax
add ebx, 0x20
mov eax, dword [ebp - 0x98]
inc eax
mov dword [ebp - 0x90], ecx
mov ecx, dword [ebp - 0xa0]
mov dword [ebp - 0x98], eax
cmp eax, edi
jl 0x431ac0
mov eax, dword [esi]
mov ecx, dword [eax]
mov ebx, dword [eax + 4]
test ecx, ecx
js 0x43206d
je 0x431bd7
mov eax, 0x7fffffff
cdq
idiv ecx
cmp eax, 4
jl 0x43206d
lea eax, [ecx*4]
test eax, eax
js 0x43206d
test ebx, ebx
js 0x43206d
jne 0x431be8
mov eax, ebx
imul eax, ecx
jmp 0x431c04
mov eax, 0x7fffffff
cdq
idiv ebx
lea edx, [ecx*4]
cmp edx, eax
jg 0x43206d
mov eax, ecx
imul eax, ebx
lea eax, [eax*4 + 1]
push eax
call dword [ebp - 0xa0]
mov edx, dword [esi]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x43206f
cmp dword [edx + 4], 0
mov dword [ebp - 0x98], 0
jbe 0x432014
mov ecx, edx
mov dword [ebp - 0x8c], ebx
nop dword [eax]
mov eax, dword [ecx]
imul eax, dword [ebp - 0x98]
mov dword [ebp - 0xa4], 0
lea ebx, [ebx + eax*4]
mov dword [ebp - 0x90], ebx
test edi, edi
jle 0x431d80
lea ebx, [esi + 0x46bc]
mov esi, dword [ebp - 0x88]
lea edi, [ebp - 0x6c]
nop dword [eax]
nop word [eax + eax]
mov eax, dword [ebp - 0x8c]
lea edx, [edi - 0x14]
mov ecx, dword [ebp - 0x9c]
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0x8c], eax
mov eax, dword [edi - 8]
mov dword [ebp - 0xa8], ecx
mov dword [ebp - 0x9c], ecx
lea ecx, [edi - 0x10]
sar eax, 1
mov dword [ebp - 0x94], esi
mov dword [ebp - 0xc0], ecx
mov dword [ebp - 0x88], edx
cmp dword [edi], eax
jl 0x431ce9
mov eax, dword [edx]
mov edx, ecx
mov dword [ebp - 0xa0], ecx
mov ecx, dword [ebp - 0xbc]
mov dword [ebp - 0x8c], ecx
mov ecx, dword [ebp - 0xa8]
mov dword [ebp - 0x9c], ecx
jmp 0x431cff
mov eax, ecx
mov dword [ebp - 0x88], edx
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0xc0], eax
mov eax, dword [ecx]
push dword [edi - 0xc]
push dword [edi - 4]
push eax
push dword [edx]
push dword [ebx + 0x18]
call dword [edi - 0x18]
mov ecx, dword [ebp - 0xa4]
add esp, 0x14
mov dword [ebp + ecx*4 - 0xb8], eax
mov eax, dword [edi]
inc eax
mov dword [edi], eax
cmp eax, dword [edi - 8]
jl 0x431d55
mov edx, dword [ebp - 0xa0]
mov eax, dword [ebp - 0x88]
inc dword [edi + 4]
mov dword [edi], 0
mov edx, dword [edx]
mov dword [eax], edx
mov eax, dword [edi + 4]
cmp eax, dword [ebx]
jge 0x431d55
mov eax, dword [ebx + 4]
add eax, edx
mov edx, dword [ebp - 0xc0]
mov dword [edx], eax
inc ecx
add edi, 0x20
add ebx, 0x48
mov dword [ebp - 0xa4], ecx
cmp ecx, esi
jl 0x431c80
mov ebx, dword [ebp - 0x90]
mov dword [ebp - 0x88], esi
mov esi, dword [ebp - 0xc4]
mov edx, dword [esi]
mov ecx, edx
mov eax, dword [ecx + 8]
cmp eax, 3
jne 0x431e2e
cmp dword [ebp - 0x9c], 0
je 0x431e05
xor ebx, ebx
cmp dword [ecx], ebx
jbe 0x431ff0
mov ecx, dword [ebp - 0x90]
mov edi, dword [ebp - 0xb4]
add ecx, 2
mov eax, dword [ebp - 0xb8]
mov edx, dword [ebp - 0xb0]
sub eax, edi
sub edx, edi
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0x94], edx
jmp 0x431dd6
mov edx, dword [ebp - 0x94]
mov al, byte [eax + edi]
lea ecx, [ecx + 4]
mov byte [ecx - 6], al
lea edi, [edi + 1]
mov al, byte [edi - 1]
inc ebx
mov byte [ecx - 5], al
mov al, byte [edx + edi - 1]
mov byte [ecx - 4], al
mov eax, dword [ebp - 0xa8]
mov byte [ecx - 3], 0xff
mov edx, dword [esi]
cmp ebx, dword [edx]
jb 0x431dd0
jmp 0x431ff0
mov eax, dword [esi + 0x4810]
push 4
push dword [ecx]
push dword [ebp - 0xb0]
push dword [ebp - 0xb4]
push dword [ebp - 0xb8]
push ebx
call eax
mov edx, dword [esi]
add esp, 0x18
jmp 0x431ff0
cmp eax, 4
jne 0x431fc0
mov eax, dword [esi + 0x47e8]
test eax, eax
jne 0x431f04
mov dword [ebp - 0xa4], eax
cmp dword [ecx], eax
jbe 0x431ff0
mov edi, dword [ebp - 0xac]
add ebx, 2
mov ecx, dword [ebp - 0xb4]
mov eax, dword [ebp - 0xb8]
sub ecx, edi
mov dword [ebp - 0x94], ecx
sub eax, edi
mov ecx, dword [ebp - 0xb0]
sub ecx, edi
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0xa8], ecx
movzx ecx, byte [eax + edi]
lea ebx, [ebx + 4]
movzx edx, byte [edi]
lea edi, [edi + 1]
imul ecx, edx
sub ecx, 0xffffff80
mov eax, ecx
shr eax, 8
add eax, ecx
shr eax, 8
mov byte [ebx - 6], al
mov eax, dword [ebp - 0x94]
movzx ecx, byte [eax + edi - 1]
imul ecx, edx
sub ecx, 0xffffff80
mov eax, ecx
shr eax, 8
add eax, ecx
shr eax, 8
mov byte [ebx - 5], al
mov eax, dword [ebp - 0xa8]
movzx ecx, byte [eax + edi - 1]
imul ecx, edx
mov byte [ebx - 3], 0xff
sub ecx, 0xffffff80
mov eax, ecx
shr eax, 8
add eax, ecx
shr eax, 8
mov byte [ebx - 4], al
mov eax, dword [ebp - 0xa4]
mov edx, dword [esi]
inc eax
mov dword [ebp - 0xa4], eax
cmp eax, dword [edx]
mov eax, dword [ebp - 0xbc]
jb 0x431e86
jmp 0x431ff0
mov ecx, dword [ecx]
mov edx, dword [esi + 0x4810]
push 4
push ecx
push dword [ebp - 0xb0]
push dword [ebp - 0xb4]
push dword [ebp - 0xb8]
push ebx
cmp eax, 2
jne 0x431fb7
call edx
mov edx, dword [esi]
xor ebx, ebx
add esp, 0x18
cmp dword [edx], ebx
jbe 0x431ff0
mov edi, dword [ebp - 0x90]
add edi, 2
nop word [eax + eax]
mov eax, dword [ebp - 0xac]
lea edi, [edi + 4]
movzx edx, byte [ebx + eax]
inc ebx
mov al, byte [edi - 6]
not al
movzx ecx, al
imul ecx, edx
sub ecx, 0xffffff80
mov eax, ecx
shr eax, 8
add eax, ecx
shr eax, 8
mov byte [edi - 6], al
mov al, byte [edi - 5]
not al
movzx ecx, al
imul ecx, edx
sub ecx, 0xffffff80
mov eax, ecx
shr eax, 8
add eax, ecx
shr eax, 8
mov byte [edi - 5], al
mov al, byte [edi - 4]
not al
movzx ecx, al
imul ecx, edx
sub ecx, 0xffffff80
mov eax, ecx
shr eax, 8
add eax, ecx
shr eax, 8
mov byte [edi - 4], al
mov edx, dword [esi]
cmp ebx, dword [edx]
jb 0x431f50
jmp 0x431ff0
call edx
mov edx, dword [esi]
add esp, 0x18
jmp 0x431ff0
xor edi, edi
cmp dword [ecx], edi
jbe 0x431ff0
lea ecx, [ebx + 1]
nop dword [eax]
mov eax, dword [ebp - 0xb8]
lea ecx, [ecx + 4]
mov al, byte [edi + eax]
inc edi
mov byte [ecx - 3], al
mov byte [ecx - 4], al
mov byte [ecx - 5], al
mov byte [ecx - 2], 0xff
mov edx, dword [esi]
cmp edi, dword [edx]
jb 0x431fd0
mov eax, dword [ebp - 0x98]
mov ecx, edx
mov edi, dword [ebp - 0x88]
inc eax
mov ebx, dword [ebp - 0x8c]
mov dword [ebp - 0x98], eax
cmp eax, dword [edx + 4]
jb 0x431c40
mov edx, dword [edx + 8]
mov ecx, esi
push 0
call fcn.00430440
mov eax, dword [esi]
add esp, 4
mov ecx, dword [ebp - 0xc8]
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, dword [esi]
mov ecx, dword [ebp - 0xcc]
mov eax, dword [eax + 4]
mov dword [ecx], eax
mov eax, dword [ebp - 0xd0]
test eax, eax
je 0x43205a
mov ecx, dword [esi]
xor edx, edx
cmp dword [ecx + 8], 3
setge dl
lea edx, [edx*2 + 1]
mov dword [eax], edx
mov eax, ebx
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045b938
mov esp, ebp
pop ebp
ret
mov edx, dword [esi]
mov edx, dword [edx + 8]
mov ecx, esi
push 0
call fcn.00430440
mov eax, dword fs:[0x2c]
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, dword [eax]
pop ebx
pop edi
pop esi
mov dword [eax + 0xc], str.outofmem
xor eax, eax
call fcn.0045b938
mov esp, ebp
pop ebp
ret