Function at 0x10046350
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
push ebx
mov bh, 0x7f
mov byte [esp + 5], 0x78
mov byte [esp + 6], bh
mov al, 0x6e
mov bh, byte [esp + 5]
mov dl, 0x74
mov byte [esp + 8], 0x1a
mov bl, 0x45
xor bh, byte [esp + 8]
mov ah, 0x79
xor al, byte [esp + 8]
mov dh, 0x76
push esi
mov esi, ecx
mov byte [esp + 9], bh
mov byte [esp + 0xd], bh
mov cl, 0x75
mov bh, byte [esp + 0xa]
mov ch, 0x69
mov byte [esp + 0xe], al
mov al, byte [esp + 0xc]
xor dl, al
mov byte [esp + 0x16], 0
xor bl, al
mov byte [esp + 0xf], dl
xor ah, al
mov byte [esp + 0x10], bl
xor dh, al
mov byte [esp + 0x11], ah
xor cl, al
mov byte [esp + 0x12], dh
xor ch, al
mov byte [esp + 0x13], cl
xor bh, al
mov byte [esp + 0x14], ch
cmp byte [esp + 9], 0
push edi
mov byte [esp + 0x19], bh
mov byte [esp + 0x1a], 0
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], 0
mov byte [esp + 0x28], 0
jne 0x100463f0
xor ecx, ecx
jmp 0x10046400
lea ecx, [esp + 0x11]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100463f7
sub ecx, edx
push ecx
lea eax, [esp + 0x15]
push eax
lea ecx, [esp + 0x30]
call fcn.10002880
mov ecx, dword [esi]
lea edx, [esp + 0x28]
call fcn.10016640
mov dword [esi + 4], eax
mov eax, dword [esp + 0x3c]
cmp eax, 0x10
jb 0x10046435
inc eax
lea ecx, [esp + 0x28]
push eax
push dword [esp + 0x2c]
call fcn.10002760
mov cl, 0x45
mov dword [esp + 0x10], 0x2b312745
mov dword [esp + 0x14], 0x3724321a
xor eax, eax
mov dword [esp + 0x18], 0x372a2c37
mov byte [esp + 0x1c], 0
xor byte [esp + eax + 0x11], cl
inc eax
cmp eax, 0xb
jae 0x10046466
mov cl, byte [esp + 0x10]
jmp 0x10046456
cmp byte [esp + 0x11], 0
mov byte [esp + 0x1c], 0
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], 0
mov byte [esp + 0x28], 0
jne 0x1004648b
xor ecx, ecx
jmp 0x1004649b
lea ecx, [esp + 0x11]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10046492
sub ecx, edx
push ecx
lea eax, [esp + 0x15]
push eax
lea ecx, [esp + 0x30]
call fcn.10002880
mov ecx, dword [esi]
lea edx, [esp + 0x28]
call fcn.10016640
mov dword [esi + 8], eax
mov eax, dword [esp + 0x3c]
cmp eax, 0x10
jb 0x100464d0
inc eax
lea ecx, [esp + 0x28]
push eax
push dword [esp + 0x2c]
call fcn.10002760
mov bh, 0x19
mov byte [esp + 0xd], 0x1e
mov byte [esp + 0xe], bh
mov al, 8
mov bh, byte [esp + 0xd]
mov cl, 0x12
mov byte [esp + 0x10], 0x7c
mov dl, 0x23
xor bh, byte [esp + 0x10]
mov bl, 0xe
xor al, byte [esp + 0x10]
mov ah, 0x13
mov byte [esp + 0xd], bh
mov ch, 0x1b
mov byte [esp + 0x11], bh
mov dh, 9
mov bh, byte [esp + 0xe]
mov byte [esp + 0x12], al
mov al, byte [esp + 0x10]
xor cl, al
mov byte [esp + 0x1a], 0
xor dl, al
mov byte [esp + 0x13], cl
xor bl, al
mov byte [esp + 0x14], dl
xor ah, al
mov byte [esp + 0x15], bl
xor ch, al
mov byte [esp + 0x16], ah
xor dh, al
mov byte [esp + 0x17], ch
xor bh, al
mov byte [esp + 0x18], dh
cmp byte [esp + 0xd], 0
mov byte [esp + 0x19], bh
mov byte [esp + 0x1a], 0
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], 0
mov byte [esp + 0x28], 0
jne 0x10046562
xor ecx, ecx
jmp 0x10046579
lea ecx, [esp + 0x11]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10046570
sub ecx, edx
push ecx
lea eax, [esp + 0x15]
push eax
lea ecx, [esp + 0x30]
call fcn.10002880
mov ecx, dword [esi]
lea edx, [esp + 0x28]
call fcn.10016640
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x3c]
cmp eax, 0x10
jb 0x100465ae
inc eax
lea ecx, [esp + 0x28]
push eax
push dword [esp + 0x2c]
call fcn.10002760
mov byte [esp + 0x10], 0x39
mov al, 0x4d
xor al, byte [esp + 0x10]
mov bh, 0x5b
xor bh, byte [esp + 0x10]
mov cl, 0x57
mov byte [esp + 0x12], al
mov dl, 0x66
mov al, byte [esp + 0x10]
mov bl, 0x54
mov ah, 0x58
mov byte [esp + 0x19], 0
mov ch, 0x5e
mov byte [esp + 0x11], bh
mov dh, 0x5c
mov byte [esp + 0x19], 0
xor cl, al
mov dword [esp + 0x3c], 0xf
xor dl, al
mov byte [esp + 0x13], cl
xor bl, al
mov byte [esp + 0x14], dl
xor ah, al
mov byte [esp + 0x15], bl
xor ch, al
mov byte [esp + 0x16], ah
xor dh, al
mov byte [esp + 0x17], ch
mov byte [esp + 0x18], dh
mov dword [esp + 0x38], 0
mov byte [esp + 0x28], 0
test bh, bh
jne 0x10046622
xor ecx, ecx
jmp 0x10046639
lea ecx, [esp + 0x11]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10046630
sub ecx, edx
push ecx
lea eax, [esp + 0x15]
push eax
lea ecx, [esp + 0x30]
call fcn.10002880
mov ecx, dword [esi]
lea edx, [esp + 0x28]
call fcn.10016640
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x3c]
cmp eax, 0x10
jb 0x1004666e
inc eax
lea ecx, [esp + 0x28]
push eax
push dword [esp + 0x2c]
call fcn.10002760
mov bh, 0x63
mov byte [esp + 0x10], 0x10
mov byte [esp + 0xe], bh
mov al, 0x64
mov byte [esp + 0xd], 0x72
mov cl, 0x7e
mov bh, byte [esp + 0xd]
mov dl, 0x4f
xor bh, byte [esp + 0x10]
mov bl, 0x60
mov byte [esp + 0xf], al
mov ah, 0x62
xor al, byte [esp + 0x10]
mov ch, 0x79
mov byte [esp + 0xd], bh
mov dh, 0x75
mov byte [esp + 0x12], al
mov al, byte [esp + 0x10]
mov byte [esp + 0x11], bh
xor cl, al
mov bh, byte [esp + 0xe]
xor dl, al
xor bl, al
mov byte [esp + 0x1b], 0
xor ah, al
mov byte [esp + 0x13], cl
xor ch, al
mov byte [esp + 0x14], dl
xor dh, al
mov byte [esp + 0x15], bl
xor bh, al
mov byte [esp + 0x16], ah
mov al, byte [esp + 0xf]
xor al, byte [esp + 0x10]
cmp byte [esp + 0xd], 0
mov byte [esp + 0x17], ch
mov byte [esp + 0x18], dh
mov byte [esp + 0x19], bh
mov byte [esp + 0x1a], al
mov byte [esp + 0x1b], 0
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], 0
mov byte [esp + 0x28], 0
jne 0x10046710
xor ecx, ecx
jmp 0x10046720
lea ecx, [esp + 0x11]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10046717
sub ecx, edx
push ecx
lea eax, [esp + 0x15]
push eax
lea ecx, [esp + 0x30]
call fcn.10002880
mov ecx, dword [esi]
lea edx, [esp + 0x28]
call fcn.10016640
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0x3c]
cmp eax, 0x10
jb 0x10046755
inc eax
lea ecx, [esp + 0x28]
push eax
push dword [esp + 0x2c]
call fcn.10002760
movaps xmm0, xmmword [0x100b1610]
xor ecx, ecx
movups xmmword [esp + 0x10], xmm0
mov dword [esp + 0x20], 0x1d1511
nop dword [eax + eax]
mov al, byte [esp + 0x10]
xor byte [esp + ecx + 0x11], al
inc ecx
cmp ecx, 0x12
jb 0x10046770
cmp byte [esp + 0x11], 0
mov byte [esp + 0x23], 0
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], 0
mov byte [esp + 0x28], 0
jne 0x100467a3
xor ecx, ecx
jmp 0x100467b9
lea ecx, [esp + 0x11]
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100467b0
sub ecx, edx
push ecx
lea eax, [esp + 0x15]
push eax
lea ecx, [esp + 0x30]
call fcn.10002880
mov ecx, dword [esi]
lea edx, [esp + 0x28]
call fcn.10016640
mov dword [esi + 0x18], eax
mov eax, dword [esp + 0x3c]
cmp eax, 0x10
jb 0x100467ee
inc eax
lea ecx, [esp + 0x28]
push eax
push dword [esp + 0x2c]
call fcn.10002760
movaps xmm0, xmmword [0x100b1200]
xor ecx, ecx
movups xmmword [esp + 0x10], xmm0
nop dword [eax]
mov al, byte [esp + 0x10]
xor byte [esp + ecx + 0x11], al
inc ecx
cmp ecx, 0xe
jb 0x10046800
cmp byte [esp + 0x11], 0
mov byte [esp + 0x1f], 0
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], 0
mov byte [esp + 0x28], 0
jne 0x10046833
xor ecx, ecx
jmp 0x10046849
lea ecx, [esp + 0x11]
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10046840
sub ecx, edx
push ecx
lea eax, [esp + 0x15]
push eax
lea ecx, [esp + 0x30]
call fcn.10002880
mov ecx, dword [esi]
lea edx, [esp + 0x28]
call fcn.10016640
mov dword [esi + 0x1c], eax
mov eax, dword [esp + 0x3c]
cmp eax, 0x10
jb 0x1004687e
inc eax
lea ecx, [esp + 0x28]
push eax
push dword [esp + 0x2c]
call fcn.10002760
movaps xmm0, xmmword [0x100b1ca0]
xor ecx, ecx
movups xmmword [esp + 0x10], xmm0
mov byte [esp + 0x20], 0
mov al, byte [esp + 0x10]
xor byte [esp + ecx + 0x11], al
inc ecx
cmp ecx, 0xf
jb 0x10046891
cmp byte [esp + 0x11], 0
mov byte [esp + 0x20], 0
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], 0
mov byte [esp + 0x28], 0
jne 0x100468c4
xor ecx, ecx
jmp 0x100468d9
lea ecx, [esp + 0x11]
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100468d0
sub ecx, edx
push ecx
lea eax, [esp + 0x15]
push eax
lea ecx, [esp + 0x30]
call fcn.10002880
mov ecx, dword [esi]
lea edx, [esp + 0x28]
call fcn.10016640
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x3c]
cmp eax, 0x10
jb 0x1004690e
inc eax
lea ecx, [esp + 0x28]
push eax
push dword [esp + 0x2c]
call fcn.10002760
movaps xmm0, xmmword [0x100b1c70]
xor ecx, ecx
movups xmmword [esp + 0x10], xmm0
mov dword [esp + 0x20], 0x41f0509
mov word [esp + 0x24], 0x1e
nop dword [eax + eax]
mov al, byte [esp + 0x10]
xor byte [esp + ecx + 0x11], al
inc ecx
cmp ecx, 0x14
jb 0x10046930
cmp byte [esp + 0x11], 0
mov byte [esp + 0x25], 0
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], 0
mov byte [esp + 0x28], 0
jne 0x10046963
xor ecx, ecx
jmp 0x10046979
lea ecx, [esp + 0x11]
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10046970
sub ecx, edx
push ecx
lea eax, [esp + 0x15]
push eax
lea ecx, [esp + 0x30]
call fcn.10002880
mov ecx, dword [esi]
lea edx, [esp + 0x28]
call fcn.10016640
mov dword [esi + 0x24], eax
mov eax, dword [esp + 0x3c]
cmp eax, 0x10
jb 0x100469ae
inc eax
lea ecx, [esp + 0x28]
push eax
push dword [esp + 0x2c]
call fcn.10002760
movaps xmm0, xmmword [0x100b1880]
xor ecx, ecx
movups xmmword [esp + 0x10], xmm0
mov dword [esp + 0x20], 0x1a162a19
mov dword [esp + 0x24], 0x11b00
nop dword [eax]
mov al, byte [esp + 0x10]
xor byte [esp + ecx + 0x11], al
inc ecx
cmp ecx, 0x16
jb 0x100469d0
cmp byte [esp + 0x11], 0
mov byte [esp + 0x27], 0
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], 0
mov byte [esp + 0x28], 0
jne 0x10046a03
xor ecx, ecx
jmp 0x10046a19
lea ecx, [esp + 0x11]
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10046a10
sub ecx, edx
push ecx
lea eax, [esp + 0x15]
push eax
lea ecx, [esp + 0x30]
call fcn.10002880
mov ecx, dword [esi]
lea edx, [esp + 0x28]
call fcn.10016640
mov dword [esi + 0x28], eax
mov eax, dword [esp + 0x3c]
cmp eax, 0x10
jb 0x10046a4e
inc eax
lea ecx, [esp + 0x28]
push eax
push dword [esp + 0x2c]
call fcn.10002760
mov ecx, esi
call fcn.10046aa0
mov edi, dword [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test edi, edi
je 0x10046a79
push 4
push edi
call ebx
test eax, eax
jne 0x10046a79
lea ecx, [edi + 0xd4]
call fcn.100173f0
mov edi, eax
jmp 0x10046a7b
xor edi, edi
mov esi, dword [esi]
test esi, esi
je 0x10046a96
push 4
push esi
call ebx
test eax, eax
jne 0x10046a96
or edi, 0x38
mov ecx, esi
push edi
call dword [0x100b0d9c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret