Function at 0x100d0684
Capabilities:
Encode data using xor
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 ebx, dword [esp + 0xac]
and eax, 0xffffffbf
add eax, 0xffffff80
je 0x100d06ba
cmp dword [esp + 0xb0], 0x100
mov eax, 0xffffffea
jne 0x100d0d35
lea edx, [esp + 0x60]
xor eax, eax
mov ecx, 4
mov edi, edx
lea edx, [esp + 0x40]
rep stosd dword es:[edi], eax
mov edi, edx
mov ecx, 4
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0xa8]
mov edi, dword [esp + 0xb0]
mov dword [eax + 0x110], edi
mov eax, dword [ebx]
mov edx, dword [ebx + 4]
call fcn.100095d0
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edx
mov eax, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
call fcn.100095d0
cmp dword [esp + 0xb0], 0xc0
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], edx
jne 0x100d074d
mov eax, dword [ebx + 0x10]
mov edx, dword [ebx + 0x14]
call fcn.100095d0
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], edx
not eax
not edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], edx
jmp 0x100d0780
cmp dword [esp + 0xb0], 0x100
jne 0x100d0780
mov eax, dword [ebx + 0x10]
mov edx, dword [ebx + 0x14]
call fcn.100095d0
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], edx
mov eax, dword [ebx + 0x18]
mov edx, dword [ebx + 0x1c]
call fcn.100095d0
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], edx
mov ebp, 0x100f6220
mov dword [esp + 0xc], 0
mov eax, dword [esp + 0xc]
xor ebx, ebx
mov edi, ebx
movzx eax, byte [eax + 0x100d7c40]
mov esi, eax
mov edx, eax
mov ecx, eax
shl edx, 0x10
shl esi, 0x18
xor esi, edx
mov edx, eax
shl edx, 8
xor edx, esi
mov esi, eax
shld edi, esi, 0x18
shl esi, 0x18
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
xor eax, edi
xor esi, edx
mov edx, ebx
mov dword [ebp], eax
mov eax, ecx
mov dword [ebp + 4], esi
shld edx, eax, 0x10
shl eax, 0x10
mov dword [esp + 0x10], eax
mov eax, ecx
mov dword [esp + 0x14], edx
shl eax, 8
xor eax, dword [esp + 0x10]
mov edx, ebx
shld edx, ecx, 8
xor edx, dword [esp + 0x14]
xor edi, eax
mov eax, dword [esp + 0xc]
mov dword [ebp + 0x3800], edi
xor edi, edi
xor esi, edx
mov ebx, edi
movzx edx, byte [eax + 0x100d7b40]
mov dword [ebp + 0x3804], esi
mov ecx, edx
mov eax, edx
mov esi, edx
shl ecx, 0x10
shl eax, 8
shl esi, 8
xor eax, ecx
mov ecx, edx
shld ebx, ecx, 0x10
shl ecx, 0x10
xor eax, edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ebx
mov ecx, edx
mov ebx, edi
shld ebx, ecx, 0x18
xor ebx, dword [esp + 0x14]
shl ecx, 0x18
xor ecx, dword [esp + 0x10]
shld edi, edx, 8
xor ebx, eax
mov dword [ebp + 0x800], ecx
mov ecx, esi
mov dword [ebp + 0x804], ebx
xor ecx, dword [esp + 0x10]
mov ebx, edi
xor ebx, dword [esp + 0x14]
xor edi, edi
xor edx, ecx
xor eax, ebx
mov dword [ebp + 0x2000], edx
mov ebx, edi
mov dword [ebp + 0x2004], eax
mov eax, dword [esp + 0xc]
movzx edx, byte [eax + 0x100d7a40]
mov ecx, edx
mov eax, edx
mov esi, edx
shl ecx, 0x18
shl eax, 8
shl esi, 0x18
xor eax, ecx
mov ecx, edx
shld ebx, ecx, 8
shl ecx, 8
xor eax, edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ebx
mov ecx, edx
mov ebx, edi
shld ebx, ecx, 0x10
xor ebx, dword [esp + 0x14]
shl ecx, 0x10
xor ecx, dword [esp + 0x10]
shld edi, edx, 0x18
xor ebx, eax
mov dword [ebp + 0x1000], ecx
mov ecx, esi
mov dword [ebp + 0x1004], ebx
mov ebx, edi
xor ebx, dword [esp + 0x14]
xor ecx, dword [esp + 0x10]
xor eax, ebx
xor ebx, ebx
mov dword [ebp + 0x2804], eax
mov eax, dword [esp + 0xc]
xor edx, ecx
mov dword [ebp + 0x2800], edx
mov edx, ebx
movzx esi, byte [eax + 0x100d7940]
mov edi, esi
mov eax, esi
shl eax, 0x10
shl edi, 0x18
xor edi, eax
mov eax, esi
shld edx, eax, 8
xor edi, esi
shl eax, 8
xor eax, esi
xor edx, edi
mov dword [ebp + 0x1800], eax
mov dword [ebp + 0x1804], edx
mov eax, esi
mov edx, ebx
shld edx, eax, 0x18
shl eax, 0x18
inc dword [esp + 0xc]
add ebp, 8
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
mov eax, esi
mov edx, ebx
shl eax, 0x10
xor eax, dword [esp + 0x10]
shld edx, esi, 0x10
xor edx, dword [esp + 0x14]
xor esi, eax
mov dword [ebp + 0x2ff8], esi
xor edi, edx
mov dword [ebp + 0x2ffc], edi
cmp dword [esp + 0xc], 0x100
jne 0x100d078d
mov eax, dword [esp + 0x40]
mov ebp, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
mov dword [esp], 0x3bcc908b
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x44]
xor edi, dword [esp + 0xc]
mov dword [esp + 4], 0xa09e667f
xor ebp, eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x48]
mov edx, ebp
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x4c]
xor esi, dword [esp + 0x28]
xor ebx, eax
mov dword [esp + 0x2c], eax
mov eax, edi
call fcn.100095e0
xor esi, eax
xor ebx, edx
mov dword [esp], 0x4caa73b2
mov eax, esi
mov edx, ebx
mov dword [esp + 4], 0xb67ae858
call fcn.100095e0
xor edi, dword [esp + 0x18]
mov dword [esp], 0xe94f82be
mov dword [esp + 4], 0xc6ef372f
mov ecx, edi
mov edi, dword [esp + 0x1c]
xor eax, ecx
xor edi, ebp
mov ebp, eax
xor edi, edx
mov edx, edi
call fcn.100095e0
xor eax, dword [esp + 0x20]
xor edx, dword [esp + 0x24]
mov dword [esp], 0xf1d36f1c
mov dword [esp + 4], 0x54ff53a5
xor esi, eax
xor ebx, edx
mov eax, esi
mov edx, ebx
call fcn.100095e0
xor ebp, eax
xor edi, edx
cmp dword [esp + 0xb0], 0x80
mov dword [esp + 0x50], ebp
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], ebx
je 0x100d0aa8
xor ebp, dword [esp + 0xc]
xor edi, dword [esp + 0x10]
xor esi, dword [esp + 0x28]
xor ebx, dword [esp + 0x2c]
mov dword [esp], 0xde682d1d
mov dword [esp + 4], 0x10e527fa
mov edx, edi
mov eax, ebp
call fcn.100095e0
xor esi, eax
xor ebx, edx
mov dword [esp], 0xb3e6c1fd
mov dword [esp + 4], 0xb05688c2
mov eax, esi
mov edx, ebx
call fcn.100095e0
xor eax, ebp
xor edi, edx
mov dword [esp + 0x68], esi
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], edi
mov dword [esp + 0x6c], ebx
lea eax, [esp + 0x50]
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x24]
lea edi, [esp + 0x30]
lea ebp, [esp + 0x40]
mov dword [esp + 0x88], eax
lea eax, [esp + 0x60]
mov dword [esp + 0x80], edi
mov dword [esp + 0x84], ebp
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0xa8]
mov dword [eax], ebx
mov ebx, dword [esp + 0x1c]
mov dword [eax + 0xc], esi
xor esi, esi
cmp dword [esp + 0xb0], 0x80
mov dword [eax + 4], ebx
mov ebx, dword [esp + 0x20]
mov dword [eax + 8], ebx
lea ebx, [eax + 0x50]
jne 0x100d0c20
movzx eax, byte [esi + 0x100d7900]
movzx ecx, byte [esi + 0x100d7918]
inc esi
add ebx, 0x10
mov edx, dword [esp + eax*4 + 0x80]
lea eax, [esp + 0x70]
call fcn.100d058c
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x74]
mov dword [ebx - 0x10], eax
mov dword [ebx - 0xc], edx
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x7c]
mov dword [ebx - 8], eax
mov dword [ebx - 4], edx
cmp esi, 9
jne 0x100d0b0c
lea edx, [esp + 0x30]
lea eax, [esp + 0x70]
mov ecx, 0x3c
call fcn.100d058c
mov edi, dword [esp + 0xa8]
mov eax, dword [esp + 0x78]
mov ecx, 0x1e
mov edx, dword [esp + 0x7c]
mov dword [edi + 0x98], eax
lea eax, [esp + 0x70]
mov dword [edi + 0x9c], edx
lea edx, [esp + 0x50]
call fcn.100d058c
mov edi, dword [esp + 0xa8]
mov eax, dword [esp + 0x70]
mov ecx, 0x4d
mov edx, dword [esp + 0x74]
mov dword [edi + 0x20], eax
mov eax, dword [esp + 0x78]
mov dword [edi + 0x24], edx
mov edx, dword [esp + 0x7c]
mov dword [edi + 0x28], eax
lea eax, [esp + 0x70]
mov dword [edi + 0x2c], edx
lea edx, [esp + 0x30]
call fcn.100d058c
mov edi, dword [esp + 0xa8]
mov eax, dword [esp + 0x70]
mov ecx, 0x6f
mov edx, dword [esp + 0x74]
mov dword [edi + 0x30], eax
mov eax, dword [esp + 0x78]
mov dword [edi + 0x34], edx
mov edx, dword [esp + 0x7c]
mov dword [edi + 0x38], eax
lea eax, [esp + 0x70]
mov dword [edi + 0x3c], edx
lea edx, [esp + 0x50]
call fcn.100d058c
mov ebx, dword [esp + 0xa8]
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x74]
mov dword [ebx + 0x10], eax
mov eax, dword [esp + 0x78]
mov dword [ebx + 0x14], edx
mov edx, dword [esp + 0x7c]
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], edx
jmp 0x100d0d33
movzx eax, byte [esi + 0x100d790c]
movzx ecx, byte [esi + 0x100d7924]
inc esi
add ebx, 0x10
mov edx, dword [esp + eax*4 + 0x80]
lea eax, [esp + 0x70]
call fcn.100d058c
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x74]
mov dword [ebx - 0x10], eax
mov dword [ebx - 0xc], edx
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x7c]
mov dword [ebx - 8], eax
mov dword [ebx - 4], edx
cmp esi, 0xc
jne 0x100d0c20
lea eax, [esp + 0x70]
mov ecx, 0x1e
mov edx, ebp
call fcn.100d058c
mov esi, dword [esp + 0xa8]
mov eax, dword [esp + 0x70]
mov ecx, 0x3c
mov edx, dword [esp + 0x74]
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x78]
mov dword [esi + 0x24], edx
mov edx, dword [esp + 0x7c]
mov dword [esi + 0x28], eax
lea eax, [esp + 0x70]
mov dword [esi + 0x2c], edx
mov edx, edi
call fcn.100d058c
mov edi, dword [esp + 0xa8]
mov eax, dword [esp + 0x70]
mov ecx, 0x4d
mov edx, dword [esp + 0x74]
mov dword [edi + 0x30], eax
mov eax, dword [esp + 0x78]
mov dword [edi + 0x34], edx
mov edx, dword [esp + 0x7c]
mov dword [edi + 0x38], eax
lea eax, [esp + 0x70]
mov dword [edi + 0x3c], edx
lea edx, [esp + 0x50]
call fcn.100d058c
mov ebx, dword [esp + 0xa8]
mov eax, dword [esp + 0x70]
mov ecx, 0x6f
mov edx, dword [esp + 0x74]
mov dword [ebx + 0x40], eax
mov eax, dword [esp + 0x78]
mov dword [ebx + 0x44], edx
mov edx, dword [esp + 0x7c]
mov dword [ebx + 0x48], eax
lea eax, [esp + 0x70]
mov dword [ebx + 0x4c], edx
lea edx, [esp + 0x60]
call fcn.100d058c
mov esi, dword [esp + 0xa8]
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x74]
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x78]
mov dword [esi + 0x14], edx
mov edx, dword [esp + 0x7c]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], edx
xor eax, eax
add esp, 0x94
pop ebx
pop esi
pop edi
pop ebp
ret