Function at 0x4034c0
Capabilities:
Encrypt data using aes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
add eax, 4
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0
je 0x4034eb
cmp dword [ebp - 0x10], 1
je 0x4034f8
jmp 0x403505
mov edx, 0xa
mov eax, dword [ebp + 8]
mov word [eax], dx
jmp 0x40350a
mov ecx, 0xe
mov edx, dword [ebp + 8]
mov word [edx], cx
jmp 0x40350a
jmp 0x40395a
push 0x10
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x1e4
push ecx
call fcn.00406d80
add esp, 0xc
push 8
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
call fcn.004034a0
add esp, 8
mov esi, eax
and esi, 0xff00ff
push 8
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
call fcn.004034b0
add esp, 8
and eax, 0xff00ff00
or esi, eax
mov eax, dword [ebp - 0xc]
mov dword [eax], esi
push 8
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
push edx
call fcn.004034a0
add esp, 8
mov esi, eax
and esi, 0xff00ff
push 8
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
push ecx
call fcn.004034b0
add esp, 8
and eax, 0xff00ff00
or esi, eax
mov edx, dword [ebp - 0xc]
mov dword [edx + 4], esi
push 8
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 8]
push ecx
call fcn.004034a0
add esp, 8
mov esi, eax
and esi, 0xff00ff
push 8
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 8]
push eax
call fcn.004034b0
add esp, 8
and eax, 0xff00ff00
or esi, eax
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 8], esi
push 8
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0xc]
push eax
call fcn.004034a0
add esp, 8
mov esi, eax
and esi, 0xff00ff
push 8
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0xc]
push edx
call fcn.004034b0
add esp, 8
and eax, 0xff00ff00
or esi, eax
mov eax, dword [ebp - 0xc]
mov dword [eax + 0xc], esi
cmp dword [ebp + 0x14], 0
jne 0x4036e6
mov ecx, 1
test ecx, ecx
je 0x4036e6
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0xc]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
shr ecx, 0x10
and ecx, 0xff
mov edx, dword [ecx*4 + 0x40bbb8]
and edx, 0xff000000
mov eax, dword [ebp - 0xc]
xor edx, dword [eax]
mov ecx, dword [ebp - 8]
shr ecx, 8
and ecx, 0xff
mov eax, dword [ecx*4 + 0x40bfb8]
and eax, 0xff0000
xor edx, eax
mov ecx, dword [ebp - 8]
and ecx, 0xff
mov eax, dword [ecx*4 + 0x40b3b8]
and eax, 0xff00
xor edx, eax
mov ecx, dword [ebp - 8]
shr ecx, 0x18
mov eax, dword [ecx*4 + 0x40b7b8]
and eax, 0xff
xor edx, eax
mov ecx, dword [ebp - 4]
xor edx, dword [ecx*4 + 0x40d4b8]
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x10], edx
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
mov eax, dword [ecx + 4]
xor eax, dword [edx + 0x10]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x14], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
mov ecx, dword [edx + 8]
xor ecx, dword [eax + 0x14]
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x18], ecx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, dword [eax + 0xc]
xor edx, dword [ecx + 0x18]
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x1c], edx
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0xa
jne 0x4036d8
jmp 0x40395a
mov edx, dword [ebp - 0xc]
add edx, 0x10
mov dword [ebp - 0xc], edx
jmp 0x403605
push 8
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x10]
push ecx
call fcn.004034a0
add esp, 8
mov esi, eax
and esi, 0xff00ff
push 8
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x10]
push eax
call fcn.004034b0
add esp, 8
and eax, 0xff00ff00
or esi, eax
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x10], esi
push 8
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x14]
push eax
call fcn.004034a0
add esp, 8
mov esi, eax
and esi, 0xff00ff
push 8
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x14]
push edx
call fcn.004034b0
add esp, 8
and eax, 0xff00ff00
or esi, eax
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x14], esi
push 8
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x18]
push edx
call fcn.004034a0
add esp, 8
mov esi, eax
and esi, 0xff00ff
push 8
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x18]
push ecx
call fcn.004034b0
add esp, 8
and eax, 0xff00ff00
or esi, eax
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x18], esi
push 8
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x1c]
push ecx
call fcn.004034a0
add esp, 8
mov esi, eax
and esi, 0xff00ff
push 8
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x1c]
push eax
call fcn.004034b0
add esp, 8
and eax, 0xff00ff00
or esi, eax
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x1c], esi
cmp dword [ebp + 0x14], 1
jne 0x40395a
mov edx, 1
test edx, edx
je 0x40395a
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x1c]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
shr edx, 0x10
and edx, 0xff
mov eax, dword [edx*4 + 0x40bbb8]
and eax, 0xff000000
mov ecx, dword [ebp - 0xc]
xor eax, dword [ecx]
mov edx, dword [ebp - 8]
shr edx, 8
and edx, 0xff
mov ecx, dword [edx*4 + 0x40bfb8]
and ecx, 0xff0000
xor eax, ecx
mov edx, dword [ebp - 8]
and edx, 0xff
mov ecx, dword [edx*4 + 0x40b3b8]
and ecx, 0xff00
xor eax, ecx
mov edx, dword [ebp - 8]
shr edx, 0x18
mov ecx, dword [edx*4 + 0x40b7b8]
and ecx, 0xff
xor eax, ecx
mov edx, dword [ebp - 4]
xor eax, dword [edx*4 + 0x40d4b8]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x20], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
mov ecx, dword [edx + 4]
xor ecx, dword [eax + 0x20]
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x24], ecx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, dword [eax + 8]
xor edx, dword [ecx + 0x24]
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x28], edx
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
mov eax, dword [ecx + 0xc]
xor eax, dword [edx + 0x28]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x2c], eax
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 7
jne 0x4038a1
jmp 0x40395a
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x2c]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
shr edx, 0x18
mov eax, dword [edx*4 + 0x40bbb8]
and eax, 0xff000000
mov ecx, dword [ebp - 0xc]
xor eax, dword [ecx + 0x10]
mov edx, dword [ebp - 8]
shr edx, 0x10
and edx, 0xff
mov ecx, dword [edx*4 + 0x40bfb8]
and ecx, 0xff0000
xor eax, ecx
mov edx, dword [ebp - 8]
shr edx, 8
and edx, 0xff
mov ecx, dword [edx*4 + 0x40b3b8]
and ecx, 0xff00
xor eax, ecx
mov edx, dword [ebp - 8]
and edx, 0xff
mov ecx, dword [edx*4 + 0x40b7b8]
and ecx, 0xff
xor eax, ecx
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x30], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, dword [eax + 0x14]
xor edx, dword [ecx + 0x30]
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x34], edx
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
mov eax, dword [ecx + 0x18]
xor eax, dword [edx + 0x34]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x38], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
mov ecx, dword [edx + 0x1c]
xor ecx, dword [eax + 0x38]
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x3c], ecx
mov eax, dword [ebp - 0xc]
add eax, 0x20
mov dword [ebp - 0xc], eax
jmp 0x4037cc
pop esi
mov esp, ebp
pop ebp
ret