Function at 0x106f9e0
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 4]
sub esp, 0x3c
test eax, eax
push ebx
push esi
push edi
mov edi, dword [esp + 0x50]
je 0x106fa13
mov esi, dword [edx + 0x68]
cmp esi, 8
jae 0x106fa0f
mov cl, byte [edi]
mov byte [esi + edx + 0x60], cl
mov ebx, dword [edx + 0x68]
inc ebx
inc edi
dec eax
mov dword [edx + 0x68], ebx
jne 0x106f9f6
mov dword [esp + 0x54], eax
cmp dword [edx + 0x68], 8
jb 0x1070432
mov ebx, dword [edx + 0x60]
mov ecx, dword [edx + 0x78]
xor ecx, ebx
mov esi, dword [edx + 0x7c]
mov ebx, dword [edx + 0x64]
shr eax, 3
xor ebx, esi
mov dword [esp + 0xc], eax
mov eax, ecx
shr eax, 8
mov esi, ecx
shl ecx, 8
shl esi, 8
xor eax, esi
and eax, 0xff00ff
xor eax, ecx
mov esi, eax
shl eax, 0x10
mov ecx, ebx
shl ecx, 8
shr esi, 0x10
or esi, eax
mov eax, ebx
shr eax, 8
xor eax, ecx
mov ecx, dword [edx]
shl ebx, 8
and eax, 0xff00ff
xor eax, ebx
push ebp
mov ebp, eax
shl eax, 0x10
shr ebp, 0x10
or ebp, eax
mov eax, dword [edx + 4]
lea ebx, [ecx + ebp]
mov ecx, 0x20
sub ecx, eax
mov eax, ebx
shr eax, cl
mov ecx, dword [edx + 4]
shl ebx, cl
or eax, ebx
movzx ecx, ah
mov ecx, dword [ecx*4 + 0x10136e8]
mov ebx, eax
and ebx, 0xff
xor ecx, dword [ebx*4 + 0x1013ae8]
mov ebx, eax
shr ebx, 0x10
movzx ebx, bl
add ecx, dword [ebx*4 + 0x10142e8]
mov dword [esp + 0x54], eax
shr eax, 0x18
mov ebx, dword [eax*4 + 0x1013ee8]
mov eax, dword [edx + 0xc]
sub ecx, ebx
mov ebx, dword [edx + 8]
xor esi, ecx
xor ebx, esi
mov ecx, 0x20
sub ecx, eax
mov eax, ebx
shr eax, cl
mov ecx, dword [edx + 0xc]
shl ebx, cl
or eax, ebx
movzx ecx, ah
mov ecx, dword [ecx*4 + 0x10136e8]
mov ebx, eax
mov dword [esp + 0x54], eax
and ebx, 0xff
sub ecx, dword [ebx*4 + 0x1013ae8]
shr eax, 0x18
mov ebx, dword [eax*4 + 0x1013ee8]
mov eax, dword [esp + 0x54]
shr eax, 0x10
movzx eax, al
add ecx, ebx
xor ecx, dword [eax*4 + 0x10142e8]
mov eax, dword [edx + 0x14]
mov ebx, dword [edx + 0x10]
xor ebp, ecx
sub ebx, ebp
mov ecx, 0x20
sub ecx, eax
mov eax, ebx
shr eax, cl
mov ecx, dword [edx + 0x14]
shl ebx, cl
or eax, ebx
movzx ecx, ah
mov ecx, dword [ecx*4 + 0x10136e8]
mov ebx, eax
and ebx, 0xff
add ecx, dword [ebx*4 + 0x1013ae8]
mov dword [esp + 0x54], eax
shr eax, 0x18
mov ebx, dword [eax*4 + 0x1013ee8]
mov eax, dword [esp + 0x54]
xor ecx, ebx
shr eax, 0x10
movzx eax, al
sub ecx, dword [eax*4 + 0x10142e8]
mov eax, dword [edx + 0x1c]
xor esi, ecx
mov ecx, dword [edx + 0x18]
lea ebx, [ecx + esi]
mov ecx, 0x20
sub ecx, eax
mov eax, ebx
shr eax, cl
mov ecx, dword [edx + 0x1c]
shl ebx, cl
or eax, ebx
movzx ecx, ah
mov ecx, dword [ecx*4 + 0x10136e8]
mov ebx, eax
and ebx, 0xff
xor ecx, dword [ebx*4 + 0x1013ae8]
mov ebx, eax
shr ebx, 0x10
movzx ebx, bl
add ecx, dword [ebx*4 + 0x10142e8]
mov dword [esp + 0x54], eax
shr eax, 0x18
mov ebx, dword [eax*4 + 0x1013ee8]
mov eax, dword [edx + 0x24]
sub ecx, ebx
mov ebx, dword [edx + 0x20]
xor ebp, ecx
xor ebx, ebp
mov ecx, 0x20
sub ecx, eax
mov eax, ebx
shr eax, cl
mov ecx, dword [edx + 0x24]
shl ebx, cl
or eax, ebx
movzx ecx, ah
mov ecx, dword [ecx*4 + 0x10136e8]
mov ebx, eax
mov dword [esp + 0x54], eax
and ebx, 0xff
sub ecx, dword [ebx*4 + 0x1013ae8]
shr eax, 0x18
mov ebx, dword [eax*4 + 0x1013ee8]
mov eax, dword [esp + 0x54]
shr eax, 0x10
add ecx, ebx
movzx eax, al
mov ebx, dword [eax*4 + 0x10142e8]
mov eax, dword [edx + 0x2c]
xor ecx, ebx
mov ebx, dword [edx + 0x28]
xor esi, ecx
sub ebx, esi
mov ecx, 0x20
sub ecx, eax
mov eax, ebx
shr eax, cl
mov ecx, dword [edx + 0x2c]
shl ebx, cl
or eax, ebx
movzx ecx, ah
mov ecx, dword [ecx*4 + 0x10136e8]
mov ebx, eax
and ebx, 0xff
add ecx, dword [ebx*4 + 0x1013ae8]
mov dword [esp + 0x54], eax
shr eax, 0x18
xor ecx, dword [eax*4 + 0x1013ee8]
mov eax, dword [esp + 0x54]
shr eax, 0x10
movzx eax, al
sub ecx, dword [eax*4 + 0x10142e8]
mov eax, dword [edx + 0x34]
xor ebp, ecx
mov ecx, dword [edx + 0x30]
lea ebx, [ecx + ebp]
mov ecx, 0x20
sub ecx, eax
mov eax, ebx
shr eax, cl
mov ecx, dword [edx + 0x34]
shl ebx, cl
or eax, ebx
movzx ecx, ah
mov ecx, dword [ecx*4 + 0x10136e8]
mov ebx, eax
and ebx, 0xff
xor ecx, dword [ebx*4 + 0x1013ae8]
mov ebx, eax
shr ebx, 0x10
movzx ebx, bl
add ecx, dword [ebx*4 + 0x10142e8]
mov dword [esp + 0x54], eax
shr eax, 0x18
mov ebx, dword [eax*4 + 0x1013ee8]
mov eax, dword [edx + 0x3c]
sub ecx, ebx
mov ebx, dword [edx + 0x38]
xor esi, ecx
xor ebx, esi
mov ecx, 0x20
sub ecx, eax
mov eax, ebx
shr eax, cl
mov ecx, dword [edx + 0x3c]
shl ebx, cl
or eax, ebx
movzx ecx, ah
mov ecx, dword [ecx*4 + 0x10136e8]
mov ebx, eax
mov dword [esp + 0x54], eax
and ebx, 0xff
sub ecx, dword [ebx*4 + 0x1013ae8]
shr eax, 0x18
mov ebx, dword [eax*4 + 0x1013ee8]
mov eax, dword [esp + 0x54]
add ecx, ebx
shr eax, 0x10
movzx eax, al
mov ebx, dword [eax*4 + 0x10142e8]
mov eax, dword [edx + 0x44]
xor ecx, ebx
mov ebx, dword [edx + 0x40]
xor ebp, ecx
sub ebx, ebp
mov ecx, 0x20
sub ecx, eax
mov eax, ebx
shr eax, cl
mov ecx, dword [edx + 0x44]
shl ebx, cl
or eax, ebx
mov dword [esp + 0x54], eax
movzx ecx, ah
mov ebx, eax
mov ecx, dword [ecx*4 + 0x10136e8]
shr eax, 0x18
and ebx, 0xff
add ecx, dword [ebx*4 + 0x1013ae8]
xor ecx, dword [eax*4 + 0x1013ee8]
mov eax, dword [esp + 0x54]
shr eax, 0x10
movzx eax, al
sub ecx, dword [eax*4 + 0x10142e8]
mov eax, dword [edx + 0x4c]
xor esi, ecx
mov ecx, dword [edx + 0x48]
lea ebx, [esi + ecx]
mov ecx, 0x20
sub ecx, eax
mov eax, ebx
shr eax, cl
mov ecx, dword [edx + 0x4c]
shl ebx, cl
or eax, ebx
movzx ecx, ah
mov ecx, dword [ecx*4 + 0x10136e8]
mov ebx, eax
and ebx, 0xff
xor ecx, dword [ebx*4 + 0x1013ae8]
mov ebx, eax
shr ebx, 0x10
mov dword [esp + 0x54], eax
movzx ebx, bl
add ecx, dword [ebx*4 + 0x10142e8]
shr eax, 0x18
mov ebx, dword [eax*4 + 0x1013ee8]
mov eax, dword [edx + 0x54]
sub ecx, ebx
mov ebx, dword [edx + 0x50]
xor ebp, ecx
xor ebx, ebp
mov ecx, 0x20
sub ecx, eax
mov eax, ebx
shr eax, cl
mov ecx, dword [edx + 0x54]
shl ebx, cl
or eax, ebx
movzx ecx, ah
mov ecx, dword [ecx*4 + 0x10136e8]
mov ebx, eax
mov dword [esp + 0x54], eax
shr eax, 0x18
and ebx, 0xff
sub ecx, dword [ebx*4 + 0x1013ae8]
mov ebx, dword [eax*4 + 0x1013ee8]
mov eax, dword [esp + 0x54]
shr eax, 0x10
add ecx, ebx
movzx eax, al
mov ebx, dword [eax*4 + 0x10142e8]
mov eax, dword [edx + 0x58]
xor ecx, ebx
mov ebx, dword [edx + 0x5c]
xor esi, ecx
sub eax, esi
mov ecx, 0x20
sub ecx, ebx
mov ebx, eax
shr ebx, cl
mov ecx, dword [edx + 0x5c]
shl eax, cl
or ebx, eax
movzx ecx, bh
mov eax, ebx
and eax, 0xff
mov dword [esp + 0x50], eax
mov eax, dword [ecx*4 + 0x10136e8]
mov ecx, dword [esp + 0x50]
add eax, dword [ecx*4 + 0x1013ae8]
mov dword [esp + 0x54], ebx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x1013ee8]
mov ecx, dword [esp + 0x54]
shr ecx, 0x10
movzx ecx, cl
sub eax, dword [ecx*4 + 0x10142e8]
xor eax, ebp
mov ecx, eax
shr ecx, 8
mov ebx, eax
shl ebx, 8
xor ecx, ebx
and ecx, 0xff00ff
shl eax, 8
xor ecx, eax
mov ebx, ecx
shl ecx, 0x10
shr ebx, 0x10
or ebx, ecx
mov ecx, esi
shr ecx, 8
mov eax, esi
shl eax, 8
xor ecx, eax
and ecx, 0xff00ff
shl esi, 8
xor ecx, esi
mov eax, ecx
shl ecx, 0x10
shr eax, 0x10
or eax, ecx
mov ecx, dword [esp + 0x10]
test ecx, ecx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], eax
je 0x107040e
mov eax, dword [edx + 4]
mov esi, 0x20
sub esi, eax
mov eax, dword [edx + 0xc]
mov dword [esp + 0x10], esi
mov esi, 0x20
sub esi, eax
mov eax, dword [edx + 0x14]
mov dword [esp + 0x14], esi
mov esi, 0x20
sub esi, eax
mov eax, dword [edx + 0x1c]
mov dword [esp + 0x18], esi
mov esi, 0x20
sub esi, eax
mov eax, dword [edx + 0x24]
mov dword [esp + 0x1c], esi
mov esi, 0x20
sub esi, eax
mov eax, dword [edx + 0x2c]
mov dword [esp + 0x20], esi
mov esi, 0x20
sub esi, eax
mov eax, dword [edx + 0x34]
mov dword [esp + 0x24], esi
mov esi, 0x20
sub esi, eax
mov eax, dword [edx + 0x3c]
mov dword [esp + 0x28], esi
mov esi, 0x20
sub esi, eax
mov eax, dword [edx + 0x44]
mov dword [esp + 0x2c], esi
mov esi, 0x20
sub esi, eax
mov eax, dword [edx + 0x4c]
mov dword [esp + 0x30], esi
mov esi, 0x20
sub esi, eax
mov eax, dword [edx + 0x54]
mov dword [esp + 0x34], esi
mov esi, 0x20
sub esi, eax
mov eax, dword [edx + 0x5c]
mov dword [esp + 0x38], esi
mov esi, 0x20
sub esi, eax
mov dword [esp + 0x3c], esi
mov dword [esp + 0x50], ecx
mov cl, byte [edi]
mov bl, byte [esp + 0x44]
xor bl, cl
mov al, byte [edi + 1]
mov cl, byte [esp + 0x45]
xor cl, al
mov al, byte [edi + 3]
mov byte [esp + 0x45], cl
mov cl, byte [edi + 2]
mov byte [esp + 0x44], bl
mov bl, byte [esp + 0x46]
xor bl, cl
mov cl, byte [esp + 0x47]
xor cl, al
mov al, byte [edi + 5]
mov byte [esp + 0x47], cl
mov cl, byte [edi + 4]
mov byte [esp + 0x46], bl
mov bl, byte [esp + 0x48]
xor bl, cl
mov cl, byte [esp + 0x49]
xor cl, al
mov al, byte [edi + 7]
mov byte [esp + 0x49], cl
mov cl, byte [edi + 6]
mov byte [esp + 0x48], bl
mov bl, byte [esp + 0x4a]
xor bl, cl
mov cl, byte [esp + 0x4b]
xor cl, al
mov eax, dword [esp + 0x44]
mov byte [esp + 0x4b], cl
mov ecx, eax
shr ecx, 8
mov esi, eax
shl esi, 8
xor ecx, esi
and ecx, 0xff00ff
shl eax, 8
xor ecx, eax
mov eax, ecx
shl ecx, 0x10
mov byte [esp + 0x4a], bl
mov ebx, dword [esp + 0x48]
shr eax, 0x10
or eax, ecx
mov ecx, ebx
shr ecx, 8
mov esi, ebx
shl esi, 8
xor ecx, esi
and ecx, 0xff00ff
shl ebx, 8
xor ecx, ebx
mov ebp, ecx
shl ecx, 0x10
shr ebp, 0x10
or ebp, ecx
mov ecx, dword [edx]
lea esi, [ecx + ebp]
mov ecx, dword [esp + 0x10]
mov ebx, esi
shr ebx, cl
mov ecx, dword [edx + 4]
shl esi, cl
add edi, 8
or ebx, esi
movzx ecx, bh
mov ecx, dword [ecx*4 + 0x10136e8]
mov esi, ebx
and esi, 0xff
xor ecx, dword [esi*4 + 0x1013ae8]
mov dword [esp + 0x54], ebx
movzx esi, byte [esp + 0x56]
add ecx, dword [esi*4 + 0x10142e8]
shr ebx, 0x18
sub ecx, dword [ebx*4 + 0x1013ee8]
mov esi, dword [edx + 8]
xor eax, ecx
xor esi, eax
mov ecx, dword [esp + 0x14]
mov ebx, esi
shr ebx, cl
mov ecx, dword [edx + 0xc]
shl esi, cl
or ebx, esi
movzx ecx, bh
mov ecx, dword [ecx*4 + 0x10136e8]
mov esi, ebx
and esi, 0xff
sub ecx, dword [esi*4 + 0x1013ae8]
mov dword [esp + 0x54], ebx
shr ebx, 0x18
add ecx, dword [ebx*4 + 0x1013ee8]
movzx esi, byte [esp + 0x56]
xor ecx, dword [esi*4 + 0x10142e8]
mov esi, dword [edx + 0x10]
xor ebp, ecx
mov ecx, dword [esp + 0x18]
sub esi, ebp
mov ebx, esi
shr ebx, cl
mov ecx, dword [edx + 0x14]
shl esi, cl
or ebx, esi
movzx ecx, bh
mov ecx, dword [ecx*4 + 0x10136e8]
mov esi, ebx
and esi, 0xff
add ecx, dword [esi*4 + 0x1013ae8]
mov dword [esp + 0x54], ebx
shr ebx, 0x18
xor ecx, dword [ebx*4 + 0x1013ee8]
movzx esi, byte [esp + 0x56]
sub ecx, dword [esi*4 + 0x10142e8]
xor eax, ecx
mov ecx, dword [edx + 0x18]
lea esi, [ecx + eax]
mov ecx, dword [esp + 0x1c]
mov ebx, esi
shr ebx, cl
mov ecx, dword [edx + 0x1c]
shl esi, cl
or ebx, esi
movzx ecx, bh
mov ecx, dword [ecx*4 + 0x10136e8]
mov esi, ebx
and esi, 0xff
xor ecx, dword [esi*4 + 0x1013ae8]
mov dword [esp + 0x54], ebx
movzx esi, byte [esp + 0x56]
add ecx, dword [esi*4 + 0x10142e8]
shr ebx, 0x18
sub ecx, dword [ebx*4 + 0x1013ee8]
mov esi, dword [edx + 0x20]
xor ebp, ecx
mov ecx, dword [esp + 0x20]
xor esi, ebp
mov ebx, esi
shr ebx, cl
mov ecx, dword [edx + 0x24]
shl esi, cl
or ebx, esi
movzx ecx, bh
mov ecx, dword [ecx*4 + 0x10136e8]
mov esi, ebx
and esi, 0xff
sub ecx, dword [esi*4 + 0x1013ae8]
mov dword [esp + 0x54], ebx
shr ebx, 0x18
add ecx, dword [ebx*4 + 0x1013ee8]
movzx esi, byte [esp + 0x56]
xor ecx, dword [esi*4 + 0x10142e8]
xor eax, ecx
mov esi, dword [edx + 0x28]
mov ecx, dword [esp + 0x24]
sub esi, eax
mov ebx, esi
shr ebx, cl
mov ecx, dword [edx + 0x2c]
shl esi, cl
or ebx, esi
movzx ecx, bh
mov ecx, dword [ecx*4 + 0x10136e8]
mov esi, ebx
and esi, 0xff
add ecx, dword [esi*4 + 0x1013ae8]
mov dword [esp + 0x54], ebx
shr ebx, 0x18
xor ecx, dword [ebx*4 + 0x1013ee8]
movzx esi, byte [esp + 0x56]
sub ecx, dword [esi*4 + 0x10142e8]
xor ebp, ecx
mov ecx, dword [edx + 0x30]
lea esi, [ecx + ebp]
mov ecx, dword [esp + 0x28]
mov ebx, esi
shr ebx, cl
mov ecx, dword [edx + 0x34]
shl esi, cl
or ebx, esi
movzx ecx, bh
mov ecx, dword [ecx*4 + 0x10136e8]
mov esi, ebx
and esi, 0xff
xor ecx, dword [esi*4 + 0x1013ae8]
mov dword [esp + 0x54], ebx
movzx esi, byte [esp + 0x56]
add ecx, dword [esi*4 + 0x10142e8]
shr ebx, 0x18
sub ecx, dword [ebx*4 + 0x1013ee8]
mov esi, dword [edx + 0x38]
xor eax, ecx
mov ecx, dword [esp + 0x2c]
xor esi, eax
mov ebx, esi
shr ebx, cl
mov ecx, dword [edx + 0x3c]
shl esi, cl
or ebx, esi
movzx ecx, bh
mov ecx, dword [ecx*4 + 0x10136e8]
mov esi, ebx
and esi, 0xff
sub ecx, dword [esi*4 + 0x1013ae8]
mov dword [esp + 0x54], ebx
shr ebx, 0x18
add ecx, dword [ebx*4 + 0x1013ee8]
movzx esi, byte [esp + 0x56]
mov ebx, dword [esi*4 + 0x10142e8]
mov esi, dword [edx + 0x40]
xor ecx, ebx
xor ebp, ecx
mov ecx, dword [esp + 0x30]
sub esi, ebp
mov ebx, esi
shr ebx, cl
mov ecx, dword [edx + 0x44]
shl esi, cl
or ebx, esi
movzx ecx, bh
mov ecx, dword [ecx*4 + 0x10136e8]
mov esi, ebx
and esi, 0xff
add ecx, dword [esi*4 + 0x1013ae8]
mov dword [esp + 0x54], ebx
shr ebx, 0x18
xor ecx, dword [ebx*4 + 0x1013ee8]
movzx esi, byte [esp + 0x56]
sub ecx, dword [esi*4 + 0x10142e8]
xor eax, ecx
mov ecx, dword [edx + 0x48]
lea esi, [ecx + eax]
mov ecx, dword [esp + 0x34]
mov ebx, esi
shr ebx, cl
mov ecx, dword [edx + 0x4c]
shl esi, cl
or ebx, esi
movzx ecx, bh
mov ecx, dword [ecx*4 + 0x10136e8]
mov esi, ebx
and esi, 0xff
xor ecx, dword [esi*4 + 0x1013ae8]
mov dword [esp + 0x54], ebx
movzx esi, byte [esp + 0x56]
add ecx, dword [esi*4 + 0x10142e8]
shr ebx, 0x18
sub ecx, dword [ebx*4 + 0x1013ee8]
mov esi, dword [edx + 0x50]
xor ebp, ecx
mov ecx, dword [esp + 0x38]
xor esi, ebp
mov ebx, esi
shr ebx, cl
mov ecx, dword [edx + 0x54]
shl esi, cl
or ebx, esi
movzx ecx, bh
mov ecx, dword [ecx*4 + 0x10136e8]
mov esi, ebx
and esi, 0xff
sub ecx, dword [esi*4 + 0x1013ae8]
mov dword [esp + 0x54], ebx
shr ebx, 0x18
add ecx, dword [ebx*4 + 0x1013ee8]
movzx esi, byte [esp + 0x56]
mov ebx, dword [esi*4 + 0x10142e8]
mov esi, dword [edx + 0x58]
xor ecx, ebx
xor eax, ecx
mov ecx, dword [esp + 0x3c]
sub esi, eax
mov ebx, esi
shr ebx, cl
mov ecx, dword [edx + 0x5c]
shl esi, cl
or ebx, esi
movzx ecx, bh
mov esi, ebx
and esi, 0xff
mov dword [esp + 0x40], esi
mov esi, dword [ecx*4 + 0x10136e8]
mov ecx, dword [esp + 0x40]
add esi, dword [ecx*4 + 0x1013ae8]
mov dword [esp + 0x54], ebx
shr ebx, 0x18
xor esi, dword [ebx*4 + 0x1013ee8]
mov ecx, dword [esp + 0x54]
shr ecx, 0x10
movzx ecx, cl
sub esi, dword [ecx*4 + 0x10142e8]
xor esi, ebp
mov ecx, esi
shr ecx, 8
mov ebx, esi
shl ebx, 8
xor ecx, ebx
and ecx, 0xff00ff
shl esi, 8
xor ecx, esi
mov ebx, ecx
shr ebx, 0x10
shl ecx, 0x10
or ebx, ecx
mov dword [esp + 0x44], ebx
mov ecx, eax
mov esi, eax
shr ecx, 8
shl esi, 8
xor ecx, esi
shl eax, 8
and ecx, 0xff00ff
xor ecx, eax
mov eax, ecx
shl ecx, 0x10
shr eax, 0x10
or eax, ecx
mov ecx, dword [esp + 0x50]
dec ecx
mov dword [esp + 0x48], eax
mov dword [esp + 0x50], ecx
jne 0x106ff81
mov ecx, dword [esp + 0x58]
and ecx, 7
mov dword [edx + 0x68], ecx
mov ebp, ecx
mov esi, edi
shr ecx, 2
lea edi, [edx + 0x60]
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [edx + 0x78], ebx
mov dword [edx + 0x7c], eax
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x3c
ret 0xc