Function at 0x10034820
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10043d16
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
mov eax, dword [0x10051018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0
lea eax, [ebp - 0x47]
mov word [ebp - 0x48], 0x7a
push eax
lea ecx, [ebp - 0x60]
mov byte [ebp - 0x47], 0
mov dword [ebp - 0x4c], 0xf
mov dword [ebp - 0x50], 0
mov byte [ebp - 0x60], 0
call fcn.10004e90
mov dword [ebp - 4], 0
mov ebx, dword [esi + 0x3c]
mov edi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test ebx, ebx
je 0x100348a3
push 4
push ebx
call edi
test eax, eax
jne 0x100348a3
lea eax, [ebp - 0x60]
mov ecx, ebx
push eax
call dword [0x1004a048]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x4c]
cmp eax, 0x10
jb 0x100348bc
inc eax
push eax
push dword [ebp - 0x60]
call fcn.10005600
push 0
lea eax, [ebp - 0x47]
mov word [ebp - 0x48], 0x5c
push eax
lea ecx, [ebp - 0x60]
mov byte [ebp - 0x47], 0
mov dword [ebp - 0x4c], 0xf
mov dword [ebp - 0x50], 0
mov byte [ebp - 0x60], 0
call fcn.10004e90
mov dword [ebp - 4], 1
mov ebx, dword [esi + 0x40]
test ebx, ebx
je 0x10034909
push 4
push ebx
call edi
test eax, eax
jne 0x10034909
lea eax, [ebp - 0x60]
mov ecx, ebx
push eax
call dword [0x1004a048]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x4c]
cmp eax, 0x10
jb 0x10034922
inc eax
push eax
push dword [ebp - 0x60]
call fcn.10005600
push 0
lea eax, [ebp - 0x47]
mov word [ebp - 0x48], 0x1a
push eax
lea ecx, [ebp - 0x60]
mov byte [ebp - 0x47], 0
mov dword [ebp - 0x4c], 0xf
mov dword [ebp - 0x50], 0
mov byte [ebp - 0x60], 0
call fcn.10004e90
mov dword [ebp - 4], 2
mov ebx, dword [esi + 0x44]
test ebx, ebx
je 0x1003496f
push 4
push ebx
call edi
test eax, eax
jne 0x1003496f
lea eax, [ebp - 0x60]
mov ecx, ebx
push eax
call dword [0x1004a018]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x4c]
cmp eax, 0x10
jb 0x10034988
inc eax
push eax
push dword [ebp - 0x60]
call fcn.10005600
mov ebx, dword [esi + 0x34]
mov dword [ebp - 0x4c], 0xf
mov dword [ebp - 0x50], 0
mov byte [ebp - 0x60], 0
test ebx, ebx
je 0x100349b7
push 4
push ebx
call edi
test eax, eax
jne 0x100349b7
lea ecx, [ebx + 0xb8]
mov dl, 2
call fcn.1000efc0
mov ecx, dword [0x100532e0]
test ecx, ecx
je 0x100349fb
mov edx, dword [esi + 0x30]
cmp edx, 1
jne 0x100349d1
mov eax, dword [ecx + 0x4c]
cmp eax, dword [esi + 0x2c]
jb 0x100349de
cmp edx, 2
jne 0x100349fb
mov eax, dword [ecx + 0x50]
cmp eax, dword [esi + 0x2c]
jae 0x100349fb
mov ebx, dword [esi + 0x34]
test ebx, ebx
je 0x100349fb
push 4
push ebx
call edi
test eax, eax
jne 0x100349fb
mov dl, 7
lea ecx, [ebx + 0xb8]
call fcn.1000efc0
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x10034d82
mov eax, 0x10624dd3
mul ecx
shr edx, 6
imul eax, edx, 0x3e8
push eax
call dword [0x10049f98]
mov ebx, eax
mov dword [ebp - 0x44], ebx
test ebx, ebx
je 0x10034d82
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
mov dword [ebp - 4], 3
mov ecx, ebx
mov edx, dword [esi + 0x24]
call fcn.10008f00
mov dword [ebp - 0x48], eax
test eax, eax
je 0x10034a76
cmp dword [eax + 0x3c], 0
je 0x10034a76
push dword [esi + 0x24]
xor edx, edx
lea ecx, [ebp - 0x78]
push eax
call fcn.10009050
add esp, 8
lea ecx, [ebp - 0x40]
push eax
call fcn.10009b60
jmp 0x10034ac2
push dword [esi + 0x24]
mov edx, ebx
lea ecx, [ebp - 0x78]
push 0
call fcn.10009050
add esp, 8
mov ebx, eax
lea eax, [ebp - 0x40]
cmp eax, ebx
je 0x10034abe
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x10034aa3
inc eax
push eax
push dword [ebp - 0x40]
call fcn.10005600
push ebx
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
call fcn.10005370
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x64]
cmp eax, 0x10
jb 0x10034ad4
inc eax
push eax
push dword [ebp - 0x78]
call fcn.10005600
mov ebx, dword [esi + 0x44]
test ebx, ebx
je 0x10034af0
push 4
push ebx
call edi
test eax, eax
jne 0x10034af0
lea eax, [ebp - 0x40]
mov ecx, ebx
push eax
call dword [0x1004a018]
push dword [ebp - 0x48]
mov edx, dword [ebp - 0x44]
lea ecx, [ebp - 0x78]
call fcn.100093a0
add esp, 4
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 5
mov ebx, dword [esi + 0x38]
test ebx, ebx
je 0x10034b23
push 4
push ebx
call edi
test eax, eax
jne 0x10034b23
push dword [ebp - 0x44]
mov ecx, ebx
call dword [0x1004a048]
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x64]
cmp eax, 0x10
jb 0x10034b39
inc eax
push eax
push dword [ebp - 0x78]
call fcn.10005600
mov eax, dword [esi + 0x30]
cmp eax, 1
jne 0x10034ba4
mov edx, dword [esi + 0x2c]
push ecx
lea ecx, [ebp - 0x78]
call fcn.1000cb70
add esp, 4
mov byte [ebp - 4], 6
cmp dword [eax + 0x14], 0x10
jb 0x10034b5c
mov eax, dword [eax]
movaps xmm0, xmmword [0x1004ad70]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x5c], xmm0
mov byte [ebp - 0x4c], 0
nop
mov al, byte [ebp - 0x5c]
xor byte [ebp + ecx - 0x5b], al
inc ecx
cmp ecx, 0xf
jb 0x10034b70
sub esp, 0x18
mov byte [ebp - 0x4c], 0
lea eax, [ebp - 0x5b]
mov ecx, esp
push eax
call fcn.10004560
lea eax, [ebp - 0x28]
push eax
call fcn.10009a80
add esp, 0x20
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 7
jmp 0x10034c12
cmp eax, 2
jne 0x10034c67
mov edx, dword [esi + 0x2c]
push ecx
lea ecx, [ebp - 0x78]
call fcn.1000cb70
add esp, 4
mov byte [ebp - 4], 8
cmp dword [eax + 0x14], 0x10
jb 0x10034bc8
mov eax, dword [eax]
movaps xmm0, xmmword [0x1004aeb0]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x5c], xmm0
mov byte [ebp - 0x4c], 0
nop word [eax + eax]
mov al, byte [ebp - 0x5c]
xor byte [ebp + ecx - 0x5b], al
inc ecx
cmp ecx, 0xf
jb 0x10034be0
sub esp, 0x18
mov byte [ebp - 0x4c], 0
lea eax, [ebp - 0x5b]
mov ecx, esp
push eax
call fcn.10004560
lea eax, [ebp - 0x28]
push eax
call fcn.10009a80
add esp, 0x20
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 9
mov ebx, dword [esi + 0x3c]
test ebx, ebx
je 0x10034c2d
push 4
push ebx
call edi
test eax, eax
jne 0x10034c2d
push dword [ebp - 0x44]
mov ecx, ebx
call dword [0x1004a048]
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x10034c3f
inc eax
push eax
push dword [ebp - 0x28]
call fcn.10005600
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x64]
mov byte [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
cmp eax, 0x10
jb 0x10034c67
inc eax
push eax
push dword [ebp - 0x78]
call fcn.10005600
mov edx, dword [esi + 0x28]
push ecx
lea ecx, [ebp - 0x78]
call fcn.1000cb70
add esp, 4
mov byte [ebp - 4], 0xa
cmp dword [eax + 0x14], 0x10
jb 0x10034c82
mov eax, dword [eax]
movaps xmm0, xmmword [0x1004aac0]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x5c], xmm0
mov word [ebp - 0x4c], 0x14
mov al, byte [ebp - 0x5c]
xor byte [ebp + ecx - 0x5b], al
inc ecx
cmp ecx, 0x10
jb 0x10034c96
sub esp, 0x18
mov byte [ebp - 0x4b], 0
mov edx, esp
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov dword [edx + 0x14], 0xf
cmp dword [edx + 0x14], 0x10
mov dword [edx + 0x10], 0
jb 0x10034cd2
mov eax, dword [edx]
jmp 0x10034cd4
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0x5b], 0
jne 0x10034ce1
xor ecx, ecx
jmp 0x10034cf0
lea ecx, [ebp - 0x5b]
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10034ce7
sub ecx, ebx
push ecx
lea eax, [ebp - 0x5b]
mov ecx, edx
push eax
call fcn.10004e90
lea eax, [ebp - 0x28]
push eax
call fcn.10009a80
add esp, 0x20
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 0xb
mov ebx, dword [esi + 0x40]
test ebx, ebx
je 0x10034d2a
push 4
push ebx
call edi
test eax, eax
jne 0x10034d2a
push dword [ebp - 0x44]
mov ecx, ebx
call dword [0x1004a048]
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x10034d3c
inc eax
push eax
push dword [ebp - 0x28]
call fcn.10005600
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
cmp eax, 0x10
jb 0x10034d60
inc eax
push eax
push dword [ebp - 0x78]
call fcn.10005600
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x10035055
inc eax
push eax
push dword [ebp - 0x40]
call fcn.10005600
jmp 0x10035055
mov eax, dword [esi + 0x24]
test eax, eax
je 0x10035055
cmp eax, 0x5f5e100
jae 0x10035055
mov edx, dword [esi + 0x54]
sub edx, dword [esi + 0x50]
sar edx, 2
call fcn.1000c650
mov ecx, dword [esi + 0x50]
mov ebx, dword [ecx + eax*4 - 4]
test ebx, ebx
je 0x10034e41
mov eax, 0x10624dd3
mul ebx
shr edx, 6
imul eax, edx, 0x3e8
push eax
call dword [0x10049f98]
mov dword [ebp - 0x44], eax
test eax, eax
je 0x10034e41
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov edx, ebx
mov dword [ebp - 4], 0xc
mov ecx, eax
call fcn.10008f00
test eax, eax
je 0x10034e05
cmp dword [eax + 0x3c], 0
je 0x10034e05
push ebx
push eax
xor edx, edx
jmp 0x10034e0b
mov edx, dword [ebp - 0x44]
push ebx
push 0
lea ecx, [ebp - 0x78]
call fcn.10009050
add esp, 8
lea ecx, [ebp - 0x28]
push eax
call fcn.10009b60
lea ecx, [ebp - 0x78]
call fcn.100044a0
mov ecx, dword [esi + 0x44]
lea edx, [ebp - 0x28]
call fcn.1000ecf0
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.100044a0
mov eax, dword [esi + 0x30]
cmp eax, 1
jne 0x10034ee6
mov edx, dword [esi + 0x2c]
push ecx
lea ecx, [ebp - 0xc0]
call fcn.1000cb70
add esp, 4
mov dword [ebp - 4], 0xd
cmp dword [eax + 0x14], 0x10
jb 0x10034e6e
mov eax, dword [eax]
movaps xmm0, xmmword [0x1004a760]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x5c], xmm0
mov byte [ebp - 0x4c], 0
mov al, byte [ebp - 0x5c]
xor byte [ebp + ecx - 0x5b], al
inc ecx
cmp ecx, 0xf
jb 0x10034e80
sub esp, 0x18
mov byte [ebp - 0x4c], 0
lea eax, [ebp - 0x5b]
mov ecx, esp
push eax
call fcn.10004560
lea eax, [ebp - 0xa8]
push eax
call fcn.10009a80
add esp, 0x20
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 0xe
mov ebx, dword [esi + 0x3c]
test ebx, ebx
je 0x10034ed0
push 4
push ebx
call edi
test eax, eax
jne 0x10034ed0
push dword [ebp - 0x44]
mov ecx, ebx
call dword [0x1004a048]
lea ecx, [ebp - 0xa8]
call fcn.100044a0
lea ecx, [ebp - 0xc0]
jmp 0x10034f6f
cmp eax, 2
jne 0x10034f7b
mov edx, dword [esi + 0x2c]
push ecx
lea ecx, [ebp - 0xa8]
call fcn.1000cb70
add esp, 4
mov dword [ebp - 4], 0xf
cmp dword [eax + 0x14], 0x10
jb 0x10034f10
mov eax, dword [eax]
movaps xmm0, xmmword [str.iIDI_:I9e]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x5c], xmm0
mov byte [ebp - 0x4c], 0
mov al, byte [ebp - 0x5c]
xor byte [ebp + ecx - 0x5b], al
inc ecx
cmp ecx, 0xf
jb 0x10034f22
sub esp, 0x18
mov byte [ebp - 0x4c], 0
lea eax, [ebp - 0x5b]
mov ecx, esp
push eax
call fcn.10004560
lea eax, [ebp - 0xc0]
push eax
call fcn.10009a80
add esp, 0x20
mov byte [ebp - 4], 0x10
mov edx, eax
mov ecx, dword [esi + 0x3c]
call fcn.1000ef30
lea ecx, [ebp - 0xc0]
call fcn.100044a0
lea ecx, [ebp - 0xa8]
mov dword [ebp - 4], 0xffffffff
call fcn.100044a0
mov edx, dword [esi + 0x28]
push ecx
lea ecx, [ebp - 0x78]
call fcn.1000cb70
add esp, 4
mov dword [ebp - 4], 0x11
cmp dword [eax + 0x14], 0x10
jb 0x10034f99
mov eax, dword [eax]
movaps xmm0, xmmword [0x1004ac90]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x24], xmm0
mov word [ebp - 0x14], 0
nop dword [eax]
mov al, byte [ebp - 0x24]
xor byte [ebp + ecx - 0x23], al
inc ecx
cmp ecx, 0x10
jb 0x10034fb0
sub esp, 0x18
mov byte [ebp - 0x13], 0
lea eax, [ebp - 0x23]
mov ecx, esp
push eax
call fcn.10004560
lea eax, [ebp - 0x90]
push eax
call fcn.10009a80
add esp, 0x20
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 0x12
mov ebx, dword [esi + 0x40]
test ebx, ebx
je 0x10035000
push 4
push ebx
call edi
test eax, eax
jne 0x10035000
push dword [ebp - 0x44]
mov ecx, ebx
call dword [0x1004a048]
mov eax, dword [ebp - 0x7c]
cmp eax, 0x10
jb 0x10035015
inc eax
push eax
push dword [ebp - 0x90]
call fcn.10005600
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x7c], 0xf
mov dword [ebp - 0x80], 0
mov byte [ebp - 0x90], 0
cmp eax, 0x10
jb 0x10035043
inc eax
push eax
push dword [ebp - 0x78]
call fcn.10005600
mov dword [ebp - 0x64], 0xf
mov dword [ebp - 0x68], 0
mov byte [ebp - 0x78], 0
mov ebx, dword [esi + 0xfc]
push 4
push ebx
call edi
test eax, eax
jne 0x10035095
push 4
add ebx, 0xe5
push ebx
call edi
test eax, eax
jne 0x10035095
mov al, byte [ebx]
test al, al
je 0x10035095
mov ebx, dword [esi + 0xfc]
test ebx, ebx
je 0x10035095
push 4
push ebx
call edi
test eax, eax
jne 0x10035095
push eax
mov ecx, ebx
call dword [0x10049fe4]
mov esi, dword [esi + 0x34]
test esi, esi
je 0x100350af
push 4
push esi
call edi
test eax, eax
jne 0x100350af
push 1
mov ecx, esi
call dword [0x10049fe4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100406c0
mov esp, ebp
pop ebp
ret