Function at 0x100a415e
Capabilities:
Encrypt data using camellia
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x94
mov eax, dword [esp + 0xb0]
mov ebp, dword [esp + 0xa8]
mov ebx, dword [esp + 0xac]
and eax, 0xffffffbf
add eax, 0xffffff80
je 0x100a419b
cmp dword [esp + 0xb0], 0x100
mov eax, 0xffffffea
jne 0x100a46ee
lea edx, [esp + 0x60]
xor eax, eax
mov edi, edx
mov ecx, 4
rep stosd dword es:[edi], eax
lea edx, [esp + 0x40]
mov ecx, 4
mov edi, edx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0xb0]
mov dword [ebp + 0x110], eax
mov eax, dword [ebx]
mov edx, dword [ebx + 4]
call fcn.1000aa00
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x30], eax
mov eax, dword [ebx + 8]
mov dword [esp + 0x34], edx
mov edx, dword [ebx + 0xc]
call fcn.1000aa00
cmp dword [esp + 0xb0], 0xc0
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], edx
jne 0x100a422d
mov eax, dword [ebx + 0x10]
mov edx, dword [ebx + 0x14]
call fcn.1000aa00
mov esi, edx
mov edx, eax
mov dword [esp + 0x40], edx
mov eax, esi
not edx
mov dword [esp + 0x44], esi
not eax
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], eax
jmp 0x100a4260
cmp dword [esp + 0xb0], 0x100
jne 0x100a4260
mov eax, dword [ebx + 0x10]
mov edx, dword [ebx + 0x14]
call fcn.1000aa00
mov dword [esp + 0x40], eax
mov eax, dword [ebx + 0x18]
mov dword [esp + 0x44], edx
mov edx, dword [ebx + 0x1c]
call fcn.1000aa00
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], edx
xor ecx, ecx
mov edi, 0x1010100
movzx esi, byte [ecx + 0x100ac960]
mov eax, 0x1000001
imul ebx, esi, 0x1010100
mul esi
mov dword [ecx*8 + 0x100c9220], eax
add edx, ebx
mov eax, esi
mov dword [ecx*8 + 0x100c9224], edx
mul edi
movzx esi, byte [ecx + 0x100ac860]
mov dword [ecx*8 + 0x100cca20], eax
add edx, ebx
mov eax, 0x1010000
mov dword [ecx*8 + 0x100cca24], edx
imul ebx, esi, 0x10101
mul esi
mov dword [ecx*8 + 0x100c9a20], eax
add edx, ebx
mov eax, 0x10101
mov dword [ecx*8 + 0x100c9a24], edx
mul esi
movzx esi, byte [ecx + 0x100ac760]
mov dword [ecx*8 + 0x100cb220], eax
add edx, ebx
mov eax, 0x10100
mov dword [ecx*8 + 0x100cb224], edx
imul ebx, esi, 0x1000101
mul esi
mov dword [ecx*8 + 0x100ca220], eax
add edx, ebx
mov eax, 0x1000101
mov dword [ecx*8 + 0x100ca224], edx
mul esi
movzx esi, byte [ecx + 0x100ac660]
mov dword [ecx*8 + 0x100cba20], eax
add edx, ebx
mov eax, 0x101
mov dword [ecx*8 + 0x100cba24], edx
imul ebx, esi, 0x1010001
mul esi
mov dword [ecx*8 + 0x100caa20], eax
add edx, ebx
mov eax, 0x1010001
mov dword [ecx*8 + 0x100caa24], edx
mul esi
mov dword [ecx*8 + 0x100cc220], eax
add edx, ebx
mov dword [ecx*8 + 0x100cc224], edx
inc ecx
cmp ecx, 0x100
jne 0x100a4267
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov dword [esp], 0x3bcc908b
mov esi, dword [esp + 8]
mov dword [esp + 4], 0xa09e667f
mov edi, dword [esp + 0xc]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x28], eax
xor esi, eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x2c], edx
xor edi, edx
mov edx, dword [esp + 0x14]
xor eax, dword [esp + 0x18]
xor edx, dword [esp + 0x1c]
call fcn.1000aa10
mov dword [esp], 0x4caa73b2
mov dword [esp + 4], 0xb67ae858
xor esi, eax
xor edi, edx
mov dword [esp + 0x20], esi
mov eax, esi
mov edx, edi
mov dword [esp + 0x24], edi
call fcn.1000aa10
mov esi, dword [esp + 0x18]
mov dword [esp], 0xe94f82be
mov edi, dword [esp + 0x1c]
mov dword [esp + 4], 0xc6ef372f
xor esi, eax
xor edi, edx
mov eax, esi
mov edx, edi
call fcn.1000aa10
mov ecx, dword [esp + 8]
mov dword [esp], 0xf1d36f1c
mov ebx, dword [esp + 0xc]
mov dword [esp + 4], 0x54ff53a5
xor ecx, eax
xor ebx, edx
xor ecx, dword [esp + 0x20]
xor ebx, dword [esp + 0x24]
mov dword [esp + 0x20], ecx
mov eax, ecx
mov dword [esp + 0x24], ebx
mov edx, ebx
call fcn.1000aa10
xor esi, eax
xor edi, edx
mov eax, dword [esp + 0x20]
mov dword [esp + 0x50], esi
mov edx, dword [esp + 0x24]
cmp dword [esp + 0xb0], 0x80
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], edx
je 0x100a44c2
mov dword [esp], 0xde682d1d
mov eax, dword [esp + 0x18]
mov dword [esp + 4], 0x10e527fa
mov edx, dword [esp + 0x1c]
xor eax, esi
mov esi, dword [esp + 0x28]
mov dword [esp + 0x18], eax
xor edx, edi
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x1c], edx
call fcn.1000aa10
xor esi, dword [esp + 0x20]
xor edi, dword [esp + 0x24]
mov dword [esp], 0xb3e6c1fd
mov dword [esp + 4], 0xb05688c2
xor esi, eax
xor edi, edx
mov eax, esi
mov edx, edi
call fcn.1000aa10
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x68], esi
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x6c], edi
xor ecx, eax
xor ebx, edx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], ebx
lea eax, [esp + 0x40]
mov edx, dword [esp + 0x14]
xor esi, esi
mov dword [esp + 0x84], eax
lea eax, [esp + 0x50]
mov dword [esp + 0x88], eax
lea eax, [esp + 0x60]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x10]
lea edi, [esp + 0x30]
mov dword [ebp + 4], edx
mov edx, dword [esp + 0xc]
lea ebx, [ebp + 0x50]
cmp dword [esp + 0xb0], 0x80
mov dword [esp + 0x80], edi
mov dword [ebp], eax
mov eax, dword [esp + 8]
mov dword [ebp + 0xc], edx
mov dword [ebp + 8], eax
jne 0x100a45f3
movzx eax, byte [esi + 0x100ac620]
inc esi
add ebx, 0x10
movzx ecx, byte [esi + 0x100ac637]
mov edx, dword [esp + eax*4 + 0x80]
lea eax, [esp + 0x70]
call fcn.100a4054
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x74]
mov dword [ebx - 0x10], eax
mov eax, dword [esp + 0x78]
mov dword [ebx - 0xc], edx
mov edx, dword [esp + 0x7c]
mov dword [ebx - 8], eax
mov dword [ebx - 4], edx
cmp esi, 9
jne 0x100a4520
lea edx, [esp + 0x30]
mov ecx, 0x3c
lea eax, [esp + 0x70]
call fcn.100a4054
mov eax, dword [esp + 0x78]
mov ecx, 0x1e
mov edx, dword [esp + 0x7c]
mov dword [ebp + 0x98], eax
lea eax, [esp + 0x70]
mov dword [ebp + 0x9c], edx
lea edx, [esp + 0x50]
call fcn.100a4054
mov eax, dword [esp + 0x70]
mov ecx, 0x4d
mov edx, dword [esp + 0x74]
mov dword [ebp + 0x20], eax
mov eax, dword [esp + 0x78]
mov dword [ebp + 0x24], edx
mov edx, dword [esp + 0x7c]
mov dword [ebp + 0x28], eax
lea eax, [esp + 0x70]
mov dword [ebp + 0x2c], edx
lea edx, [esp + 0x30]
call fcn.100a4054
mov eax, dword [esp + 0x70]
mov ecx, 0x6f
mov edx, dword [esp + 0x74]
mov dword [ebp + 0x30], eax
mov eax, dword [esp + 0x78]
mov dword [ebp + 0x34], edx
mov edx, dword [esp + 0x7c]
mov dword [ebp + 0x38], eax
mov dword [ebp + 0x3c], edx
lea edx, [esp + 0x50]
jmp 0x100a46c7
movzx eax, byte [esi + 0x100ac62c]
inc esi
add ebx, 0x10
movzx ecx, byte [esi + 0x100ac643]
mov edx, dword [esp + eax*4 + 0x80]
lea eax, [esp + 0x70]
call fcn.100a4054
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x74]
mov dword [ebx - 0x10], eax
mov eax, dword [esp + 0x78]
mov dword [ebx - 0xc], edx
mov edx, dword [esp + 0x7c]
mov dword [ebx - 8], eax
mov dword [ebx - 4], edx
cmp esi, 0xc
jne 0x100a45f3
lea edx, [esp + 0x40]
mov ecx, 0x1e
lea eax, [esp + 0x70]
call fcn.100a4054
mov eax, dword [esp + 0x70]
mov ecx, 0x3c
mov edx, dword [esp + 0x74]
mov dword [ebp + 0x20], eax
mov eax, dword [esp + 0x78]
mov dword [ebp + 0x24], edx
mov edx, dword [esp + 0x7c]
mov dword [ebp + 0x28], eax
lea eax, [esp + 0x70]
mov dword [ebp + 0x2c], edx
mov edx, edi
call fcn.100a4054
mov eax, dword [esp + 0x70]
mov ecx, 0x4d
mov edx, dword [esp + 0x74]
mov dword [ebp + 0x30], eax
mov eax, dword [esp + 0x78]
mov dword [ebp + 0x34], edx
mov edx, dword [esp + 0x7c]
mov dword [ebp + 0x38], eax
lea eax, [esp + 0x70]
mov dword [ebp + 0x3c], edx
lea edx, [esp + 0x50]
call fcn.100a4054
mov eax, dword [esp + 0x70]
mov ecx, 0x6f
mov edx, dword [esp + 0x74]
mov dword [ebp + 0x40], eax
mov eax, dword [esp + 0x78]
mov dword [ebp + 0x44], edx
mov edx, dword [esp + 0x7c]
mov dword [ebp + 0x48], eax
mov dword [ebp + 0x4c], edx
lea edx, [esp + 0x60]
lea eax, [esp + 0x70]
call fcn.100a4054
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x74]
mov dword [ebp + 0x10], eax
mov eax, dword [esp + 0x78]
mov dword [ebp + 0x14], edx
mov edx, dword [esp + 0x7c]
mov dword [ebp + 0x18], eax
xor eax, eax
mov dword [ebp + 0x1c], edx
add esp, 0x94
pop ebx
pop esi
pop edi
pop ebp
ret