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

Disassembly:
sub esp, 0x184
mov edx, dword [ebx + 0x28]
xor ecx, ecx
xor eax, eax
cmp edx, ecx
mov dword [esp + 0x14], eax
jle 0x29aeb6df
push ebp
push esi
push edi
lea esp, [esp]
cmp dword [ebx + 0x24], ecx
mov dword [esp + 0x1c], ecx
jle 0x29aeb6c8
lea ecx, [ecx]
cmp dword [ebx + 0xc0], ecx
mov dword [esp + 0x34], ecx
jle 0x29aeb45f
lea eax, [ebx + 0xf90]
lea edi, [ebx + 0x30]
mov dword [esp + 0x10], eax
mov dword [esp + 0x30], edi
mov ecx, dword [edi + 8]
shl ecx, 7
lea edx, [ecx + ebx + 0xd4]
mov ecx, dword [ebx + 0x1c]
mov dword [esp + 0x48], edx
mov eax, ecx
cdq
idiv dword [edi]
mov esi, dword [ebx + 0x20]
mov ebp, eax
mov eax, esi
cdq
idiv dword [edi + 4]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x40], eax
mov eax, ebp
cdq
and edx, 7
add eax, edx
sar eax, 3
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x40]
cdq
and edx, 7
add eax, edx
mov ebp, eax
sar ebp, 3
xor eax, eax
test esi, esi
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x18], eax
jle 0x29aeb434
lea ecx, [ecx]
test ecx, ecx
mov dword [esp + 0x14], 0
jle 0x29aeb41f
mov ecx, dword [esp + 0x20]
add eax, ecx
mov dword [esp + 0x3c], eax
lea ebx, [ebx]
mov ecx, dword [ebx + 0x24]
mov edx, dword [esp + 0x3c]
mov edi, dword [esp + 0x14]
imul edx, ecx
imul ecx, ebp
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
add edx, edi
add edx, esi
shl ecx, 2
lea eax, [eax + edx*4]
mov edx, ecx
lea ecx, [esp + 0x94]
mov esi, 2
mov edi, dword [eax]
mov dword [ecx - 4], edi
mov edi, dword [eax + 4]
mov dword [ecx], edi
mov edi, dword [eax + 8]
mov dword [ecx + 4], edi
mov edi, dword [eax + 0xc]
mov dword [ecx + 8], edi
mov edi, dword [eax + 0x10]
mov dword [ecx + 0xc], edi
mov edi, dword [eax + 0x14]
mov dword [ecx + 0x10], edi
mov edi, dword [eax + 0x18]
mov dword [ecx + 0x14], edi
mov edi, dword [eax + 0x1c]
mov dword [ecx + 0x18], edi
mov edi, dword [eax + edx]
mov dword [ecx + 0x1c], edi
mov edi, dword [eax + edx + 4]
mov dword [ecx + 0x20], edi
mov edi, dword [eax + edx + 8]
add eax, edx
mov dword [ecx + 0x24], edi
mov edi, dword [eax + 0xc]
mov dword [ecx + 0x28], edi
mov edi, dword [eax + 0x10]
mov dword [ecx + 0x2c], edi
mov edi, dword [eax + 0x14]
mov dword [ecx + 0x30], edi
mov edi, dword [eax + 0x18]
mov dword [ecx + 0x34], edi
mov edi, dword [eax + 0x1c]
mov dword [ecx + 0x38], edi
mov edi, dword [eax + edx]
mov dword [ecx + 0x3c], edi
mov edi, dword [eax + edx + 4]
add eax, edx
mov dword [ecx + 0x40], edi
mov edi, dword [eax + 8]
mov dword [ecx + 0x44], edi
mov edi, dword [eax + 0xc]
mov dword [ecx + 0x48], edi
mov edi, dword [eax + 0x10]
mov dword [ecx + 0x4c], edi
mov edi, dword [eax + 0x14]
mov dword [ecx + 0x50], edi
mov edi, dword [eax + 0x18]
mov dword [ecx + 0x54], edi
mov edi, dword [eax + 0x1c]
add eax, edx
mov dword [ecx + 0x58], edi
mov edi, dword [eax]
mov dword [ecx + 0x5c], edi
mov edi, dword [eax + 4]
mov dword [ecx + 0x60], edi
mov edi, dword [eax + 8]
mov dword [ecx + 0x64], edi
mov edi, dword [eax + 0xc]
mov dword [ecx + 0x68], edi
mov edi, dword [eax + 0x10]
mov dword [ecx + 0x6c], edi
mov edi, dword [eax + 0x14]
mov dword [ecx + 0x70], edi
mov edi, dword [eax + 0x18]
mov dword [ecx + 0x74], edi
mov edi, dword [eax + 0x1c]
mov dword [ecx + 0x78], edi
add eax, edx
add ecx, 0x80
dec esi
jne 0x29aeb093
lea ecx, [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x4c]
lea edx, [esp + 0x94]
push edx
call fcn.29aeb6f0
mov eax, dword [ebx + 0x24]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x14]
imul ecx, eax
mov edi, dword [esp + 0x1c]
add ecx, edx
mov edx, dword [esp + 0x10]
mov edx, dword [edx]
add ecx, edi
lea edx, [edx + ecx*4]
mov ecx, dword [esp + 0x28]
cmp ecx, 1
jne 0x29aeb2c2
cmp ebp, ecx
jne 0x29aeb376
lea eax, [esp + 0x51]
mov esi, 2
jmp 0x29aeb1c0
movzx ecx, byte [eax - 1]
mov dword [edx], ecx
movzx ecx, byte [eax]
mov dword [edx + 4], ecx
movzx ecx, byte [eax + 1]
mov dword [edx + 8], ecx
movzx ecx, byte [eax + 2]
mov dword [edx + 0xc], ecx
movzx ecx, byte [eax + 3]
mov dword [edx + 0x10], ecx
movzx ecx, byte [eax + 4]
mov dword [edx + 0x14], ecx
movzx ecx, byte [eax + 5]
mov dword [edx + 0x18], ecx
movzx ecx, byte [eax + 6]
mov dword [edx + 0x1c], ecx
mov ecx, dword [ebx + 0x24]
lea ecx, [edx + ecx*4]
movzx edx, byte [eax + 7]
mov dword [ecx], edx
movzx edx, byte [eax + 8]
mov dword [ecx + 4], edx
movzx edx, byte [eax + 9]
mov dword [ecx + 8], edx
movzx edx, byte [eax + 0xa]
mov dword [ecx + 0xc], edx
movzx edx, byte [eax + 0xb]
mov dword [ecx + 0x10], edx
movzx edx, byte [eax + 0xc]
mov dword [ecx + 0x14], edx
movzx edx, byte [eax + 0xd]
mov dword [ecx + 0x18], edx
movzx edx, byte [eax + 0xe]
mov dword [ecx + 0x1c], edx
mov edx, dword [ebx + 0x24]
lea ecx, [ecx + edx*4]
movzx edx, byte [eax + 0xf]
mov dword [ecx], edx
movzx edx, byte [eax + 0x10]
mov dword [ecx + 4], edx
movzx edx, byte [eax + 0x11]
mov dword [ecx + 8], edx
movzx edx, byte [eax + 0x12]
mov dword [ecx + 0xc], edx
movzx edx, byte [eax + 0x13]
mov dword [ecx + 0x10], edx
movzx edx, byte [eax + 0x14]
mov dword [ecx + 0x14], edx
movzx edx, byte [eax + 0x15]
mov dword [ecx + 0x18], edx
movzx edx, byte [eax + 0x16]
mov dword [ecx + 0x1c], edx
mov edx, dword [ebx + 0x24]
lea ecx, [ecx + edx*4]
movzx edx, byte [eax + 0x17]
mov dword [ecx], edx
movzx edx, byte [eax + 0x18]
mov dword [ecx + 4], edx
movzx edx, byte [eax + 0x19]
mov dword [ecx + 8], edx
movzx edx, byte [eax + 0x1a]
mov dword [ecx + 0xc], edx
movzx edx, byte [eax + 0x1b]
mov dword [ecx + 0x10], edx
movzx edx, byte [eax + 0x1c]
mov dword [ecx + 0x14], edx
movzx edx, byte [eax + 0x1d]
mov dword [ecx + 0x18], edx
movzx edx, byte [eax + 0x1e]
mov dword [ecx + 0x1c], edx
mov edx, dword [ebx + 0x24]
add eax, 0x20
dec esi
lea edx, [ecx + edx*4]
jne 0x29aeb1c0
jmp 0x29aeb3fe
cmp ecx, 2
jne 0x29aeb376
cmp ebp, ecx
jne 0x29aeb376
lea eax, [edx + eax*4]
lea ecx, [esp + 0x51]
mov edi, 8
nop
movzx esi, byte [ecx - 1]
mov dword [eax + 4], esi
mov dword [eax], esi
mov dword [edx + 4], esi
mov dword [edx], esi
movzx esi, byte [ecx]
mov dword [eax + 0xc], esi
mov dword [eax + 8], esi
mov dword [edx + 0xc], esi
mov dword [edx + 8], esi
movzx esi, byte [ecx + 1]
mov dword [eax + 0x14], esi
mov dword [eax + 0x10], esi
mov dword [edx + 0x14], esi
mov dword [edx + 0x10], esi
movzx esi, byte [ecx + 2]
mov dword [eax + 0x1c], esi
mov dword [eax + 0x18], esi
mov dword [edx + 0x1c], esi
mov dword [edx + 0x18], esi
movzx esi, byte [ecx + 3]
mov dword [eax + 0x24], esi
mov dword [eax + 0x20], esi
mov dword [edx + 0x24], esi
mov dword [edx + 0x20], esi
movzx esi, byte [ecx + 4]
mov dword [eax + 0x2c], esi
mov dword [eax + 0x28], esi
mov dword [edx + 0x2c], esi
mov dword [edx + 0x28], esi
movzx esi, byte [ecx + 5]
mov dword [eax + 0x34], esi
mov dword [eax + 0x30], esi
mov dword [edx + 0x34], esi
mov dword [edx + 0x30], esi
movzx esi, byte [ecx + 6]
mov dword [eax + 0x3c], esi
mov dword [eax + 0x38], esi
mov dword [edx + 0x3c], esi
mov dword [edx + 0x38], esi
mov esi, dword [ebx + 0x24]
shl esi, 3
add edx, esi
add eax, esi
add ecx, 8
dec edi
jne 0x29aeb2e0
jmp 0x29aeb3fe
mov dword [esp + 0xc], 0
mov dword [esp + 0x44], 8
jmp 0x29aeb390
mov esi, edx
mov dword [esp + 0x38], esi
mov dword [esp + 0x2c], 8
mov edi, edi
test ebp, ebp
jle 0x29aeb3ca
mov ecx, dword [esp + 0x28]
test ecx, ecx
jle 0x29aeb3b9
mov eax, dword [esp + 0xc]
movzx eax, byte [esp + eax + 0x50]
mov edi, esi
rep stosd dword es:[edi], eax
dec ebp
mov ecx, dword [ebx + 0x24]
lea esi, [esi + ecx*4]
jne 0x29aeb3a4
mov ebp, dword [esp + 0x4c]
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0xc]
mov esi, dword [esp + 0x38]
inc eax
mov dword [esp + 0xc], eax
lea eax, [ecx*4]
add esi, eax
mov eax, dword [esp + 0x2c]
dec eax
mov dword [esp + 0x38], esi
mov dword [esp + 0x2c], eax
jne 0x29aeb3a0
mov eax, dword [ebx + 0x24]
imul eax, ebp
lea edx, [edx + eax*4]
dec dword [esp + 0x44]
jne 0x29aeb390
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x24]
mov ecx, dword [ebx + 0x1c]
add eax, esi
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x29aeb060
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x40]
mov edx, dword [ebx + 0x20]
add eax, esi
cmp eax, edx
mov dword [esp + 0x18], eax
jl 0x29aeb040
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x10]
mov ecx, dword [ebx + 0xc0]
inc eax
add edi, 0x14
add edx, 4
cmp eax, ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x10], edx
jl 0x29aeafe1
xor ecx, ecx
cmp dword [ebx + 0xc4], ecx
je 0x29aeb6ac
mov eax, dword [ebx + 0xc0]
cmp eax, 3
jne 0x29aeb582
cmp dword [ebx + 0x20], ecx
mov dword [esp + 0x18], ecx
jle 0x29aeb6ac
mov ecx, dword [esp + 0x20]
mov edi, dword [ebx + 0x1c]
mov dword [esp + 0xc], ecx
mov ecx, dword [ebx + 0x24]
imul ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x1c]
mov edx, dword [ebx + 0xf90]
mov esi, dword [ebx + 0xf94]
add ecx, eax
mov eax, dword [ebx + 0xf98]
shl ecx, 2
add eax, ecx
add edx, ecx
add esi, ecx
test edi, edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0
jle 0x29aeb560
nop
mov eax, dword [eax]
mov edi, dword [edx]
mov ecx, dword [esi]
sub eax, 0x80
mov ebp, eax
imul eax, eax, 0xffff492e
imul ebp, ebp, 0x166e9
shl edi, 0x10
lea ebp, [edi + ebp + 0x8000]
sar ebp, 0x10
movzx ebp, byte [ebp + 0x29b87668]
sub ecx, 0x80
mov dword [edx], ebp
mov ebp, ecx
imul ecx, ecx, 0x1c5a2
imul ebp, ebp, 0x5819
sub eax, ebp
lea eax, [eax + edi + 0x8000]
sar eax, 0x10
movzx eax, byte [eax + 0x29b87668]
lea ecx, [ecx + edi + 0x8000]
mov dword [esi], eax
mov eax, dword [esp + 0x10]
sar ecx, 0x10
movzx ecx, byte [ecx + 0x29b87668]
mov dword [eax], ecx
mov ecx, dword [esp + 0x14]
mov edi, dword [ebx + 0x1c]
add eax, 4
add edx, 4
add esi, 4
inc ecx
cmp ecx, edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
jl 0x29aeb4d0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0xc]
mov ecx, dword [ebx + 0x20]
inc eax
inc edx
cmp eax, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0xc], edx
jl 0x29aeb492
jmp 0x29aeb6aa
cmp eax, 4
jne 0x29aeb6ac
cmp dword [ebx + 0x20], ecx
mov dword [esp + 0x18], ecx
jle 0x29aeb6ac
mov edx, dword [esp + 0x20]
mov edi, dword [ebx + 0x1c]
mov dword [esp + 0xc], edx
mov ecx, dword [ebx + 0x24]
imul ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x1c]
mov edx, dword [ebx + 0xf90]
mov esi, dword [ebx + 0xf94]
add ecx, eax
mov eax, dword [ebx + 0xf98]
shl ecx, 2
add eax, ecx
add edx, ecx
add esi, ecx
test edi, edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0
jle 0x29aeb68d
mov eax, dword [eax]
mov edi, dword [edx]
mov ecx, dword [esi]
sub eax, 0x80
mov ebp, eax
imul eax, eax, 0xffff492e
imul ebp, ebp, 0x166e9
shl edi, 0x10
mov dword [esp + 0x24], edi
lea edi, [edi + ebp + 0x8000]
sar edi, 0x10
movzx edi, byte [edi + 0x29b87668]
sub ecx, 0x80
mov ebp, 0xff
sub ebp, edi
mov edi, ecx
imul ecx, ecx, 0x1c5a2
imul edi, edi, 0x5819
sub eax, edi
mov edi, dword [esp + 0x24]
lea eax, [eax + edi + 0x8000]
mov dword [edx], ebp
sar eax, 0x10
movzx eax, byte [eax + 0x29b87668]
lea ecx, [ecx + edi + 0x8000]
sar ecx, 0x10
mov ebp, 0xff
sub ebp, eax
mov dword [esi], ebp
movzx eax, byte [ecx + 0x29b87668]
mov ecx, 0xff
sub ecx, eax
mov eax, dword [esp + 0x10]
mov dword [eax], ecx
mov ecx, dword [esp + 0x14]
mov edi, dword [ebx + 0x1c]
add eax, 4
add edx, 4
add esi, 4
inc ecx
cmp ecx, edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
jl 0x29aeb5e0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0xc]
mov ecx, dword [ebx + 0x20]
inc eax
inc edx
cmp eax, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0xc], edx
jl 0x29aeb5a3
xor ecx, ecx
mov eax, dword [esp + 0x1c]
mov esi, dword [ebx + 0x1c]
mov edx, dword [ebx + 0x24]
add eax, esi
cmp eax, edx
mov dword [esp + 0x1c], eax
jl 0x29aeafc0
mov eax, dword [esp + 0x20]
mov esi, dword [ebx + 0x20]
mov edx, dword [ebx + 0x28]
add eax, esi
cmp eax, edx
mov dword [esp + 0x20], eax
jl 0x29aeafb0
pop edi
pop esi
pop ebp
add esp, 0x184
ret