Function at 0x10051a50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
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 + 0x14], 0x1a
mov bl, 0x45
xor bh, byte [esp + 0x14]
mov ah, 0x79
xor al, byte [esp + 0x14]
mov dh, 0x76
push esi
mov esi, ecx
mov byte [esp + 9], bh
mov byte [esp + 0x19], bh
mov cl, 0x75
mov bh, byte [esp + 0xa]
mov ch, 0x69
mov byte [esp + 0x1a], al
mov al, byte [esp + 0x18]
xor dl, al
mov byte [esp + 0x22], 0
xor bl, al
mov byte [esp + 0x1b], dl
xor ah, al
mov byte [esp + 0x1c], bl
xor dh, al
mov byte [esp + 0x1d], ah
xor cl, al
mov byte [esp + 0x1e], dh
xor ch, al
mov byte [esp + 0x1f], cl
xor bh, al
mov byte [esp + 0x20], ch
cmp byte [esp + 9], 0
push edi
mov byte [esp + 0x25], bh
mov byte [esp + 0x26], 0
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], 0
mov byte [esp + 0x30], 0
jne 0x10051af0
xor ecx, ecx
jmp 0x10051b00
lea ecx, [esp + 0x1d]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10051af7
sub ecx, edx
push ecx
lea eax, [esp + 0x21]
push eax
lea ecx, [esp + 0x38]
call fcn.10002880
mov ecx, dword [esi]
lea edx, [esp + 0x30]
call fcn.10016640
mov dword [esi + 4], eax
mov eax, dword [esp + 0x44]
cmp eax, 0x10
jb 0x10051b35
inc eax
lea ecx, [esp + 0x30]
push eax
push dword [esp + 0x34]
call fcn.10002760
mov cl, 0x45
mov dword [esp + 0x1c], 0x2c212045
mov dword [esp + 0x20], 0x20361a31
xor eax, eax
mov dword [esp + 0x24], 0x2d263724
mov byte [esp + 0x28], 0
xor byte [esp + eax + 0x1d], cl
inc eax
cmp eax, 0xb
jae 0x10051b66
mov cl, byte [esp + 0x1c]
jmp 0x10051b56
cmp byte [esp + 0x1d], 0
mov byte [esp + 0x28], 0
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], 0
mov byte [esp + 0x30], 0
jne 0x10051b8b
xor ecx, ecx
jmp 0x10051b9b
lea ecx, [esp + 0x1d]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10051b92
sub ecx, edx
push ecx
lea eax, [esp + 0x21]
push eax
lea ecx, [esp + 0x38]
call fcn.10002880
mov ecx, dword [esi]
lea edx, [esp + 0x30]
call fcn.10016640
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x44]
cmp eax, 0x10
jb 0x10051bd0
inc eax
lea ecx, [esp + 0x30]
push eax
push dword [esp + 0x34]
call fcn.10002760
mov bh, 0x1f
mov byte [esp + 0x1c], 0x7c
mov byte [esp + 0xe], bh
mov al, 8
xor al, byte [esp + 0x1c]
mov cl, 0x12
mov byte [esp + 0xd], 0x1e
mov dl, 0x23
mov bh, byte [esp + 0xd]
mov bl, 0xf
xor bh, byte [esp + 0x1c]
mov ah, 0x19
mov byte [esp + 0xd], bh
mov ch, 0x1d
mov byte [esp + 0x1e], al
mov dh, 0xe
mov al, byte [esp + 0x1c]
mov byte [esp + 0x1d], bh
xor cl, al
mov bh, byte [esp + 0xe]
xor dl, al
xor bl, al
mov byte [esp + 0xf], 0x14
xor ah, al
mov byte [esp + 0x27], 0
xor ch, al
mov byte [esp + 0x1f], cl
xor dh, al
mov byte [esp + 0x20], dl
xor bh, al
mov byte [esp + 0x21], bl
mov al, byte [esp + 0xf]
xor al, byte [esp + 0x1c]
cmp byte [esp + 0xd], 0
mov byte [esp + 0x22], ah
mov byte [esp + 0x23], ch
mov byte [esp + 0x24], dh
mov byte [esp + 0x25], bh
mov byte [esp + 0x26], al
mov byte [esp + 0x27], 0
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], 0
mov byte [esp + 0x30], 0
jne 0x10051c73
xor ecx, ecx
jmp 0x10051c89
lea ecx, [esp + 0x1d]
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10051c80
sub ecx, edx
push ecx
lea eax, [esp + 0x21]
push eax
lea ecx, [esp + 0x38]
call fcn.10002880
mov ecx, dword [esi]
lea edx, [esp + 0x30]
call fcn.10016640
mov dword [esi + 8], eax
mov eax, dword [esp + 0x44]
cmp eax, 0x10
jb 0x10051cbe
inc eax
lea ecx, [esp + 0x30]
push eax
push dword [esp + 0x34]
call fcn.10002760
movaps xmm0, xmmword [str.9JZKVUUfTVWJMK]
xor ecx, ecx
movups xmmword [esp + 0x1c], xmm0
nop dword [eax]
mov al, byte [esp + 0x1c]
xor byte [esp + ecx + 0x1d], al
inc ecx
cmp ecx, 0xe
jb 0x10051cd0
cmp byte [esp + 0x1d], 0
mov byte [esp + 0x2b], 0
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], 0
mov byte [esp + 0x30], 0
jne 0x10051d03
xor ecx, ecx
jmp 0x10051d19
lea ecx, [esp + 0x1d]
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10051d10
sub ecx, edx
push ecx
lea eax, [esp + 0x21]
push eax
lea ecx, [esp + 0x38]
call fcn.10002880
mov ecx, dword [esi]
lea edx, [esp + 0x30]
call fcn.10016640
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0x44]
cmp eax, 0x10
jb 0x10051d4e
inc eax
lea ecx, [esp + 0x30]
push eax
push dword [esp + 0x34]
call fcn.10002760
xor eax, eax
mov dword [esp + 0x14], 5
mov dword [esp + 0x10], eax
lea edi, [esi + 0x18]
nop
push eax
mov byte [esp + 0x20], 0x10
mov al, 0x5d
xor al, byte [esp + 0x20]
mov cl, 0x7f
xor cl, byte [esp + 0x20]
mov bl, 0x63
mov byte [esp + 0x21], al
mov bh, 0x4f
mov byte [esp + 0x22], cl
sub esp, 0x18
mov cl, byte [esp + 0x38]
mov dl, 0x7e
mov byte [esp + 0x2b], 0x35
xor bl, cl
mov al, byte [esp + 0x2b]
xor bh, cl
xor al, cl
mov byte [esp + 0x3c], bl
mov byte [esp + 0x41], al
mov ah, 0x64
mov byte [esp + 0x40], bh
mov ch, 0x75
mov ebx, esp
mov byte [esp + 0x2a], 0x74
mov al, byte [esp + 0x2a]
mov dh, 0x62
mov byte [esp + 0x43], 0
xor dl, cl
xor ah, cl
mov byte [esp + 0x3b], dl
xor ch, cl
mov byte [esp + 0x3d], ah
xor dh, cl
mov byte [esp + 0x3e], ch
xor al, cl
mov byte [esp + 0x3f], dh
mov byte [esp + 0x42], al
mov byte [esp + 0x43], 0
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], 0
mov byte [ebx], 0
cmp byte [esp + 0x39], 0
jne 0x10051df7
xor ecx, ecx
jmp 0x10051e09
lea ecx, [esp + 0x39]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10051e00
sub ecx, edx
push ecx
lea eax, [esp + 0x3d]
mov ecx, ebx
push eax
call fcn.10002880
lea eax, [esp + 0x4c]
push eax
call fcn.10009ac0
mov ecx, dword [esi]
add esp, 0x20
mov edx, eax
call fcn.10016640
mov dword [edi], eax
mov eax, dword [esp + 0x44]
cmp eax, 0x10
jb 0x10051e46
inc eax
lea ecx, [esp + 0x30]
push eax
push dword [esp + 0x34]
call fcn.10002760
mov eax, dword [esp + 0x10]
add edi, 4
inc eax
sub dword [esp + 0x14], 1
mov dword [esp + 0x10], eax
jne 0x10051d60
mov byte [esp + 0x1c], 0x78
mov al, 0xc
xor al, byte [esp + 0x1c]
mov bh, 0x1a
xor bh, byte [esp + 0x1c]
mov cl, 0x16
mov byte [esp + 0x1e], al
mov dl, 0x27
mov al, byte [esp + 0x1c]
mov bl, 0x1c
mov ah, 0xa
mov byte [esp + 0x25], 0
mov ch, 0x17
mov byte [esp + 0x1d], bh
mov dh, 8
mov byte [esp + 0x25], 0
xor cl, al
mov dword [esp + 0x44], 0xf
xor dl, al
mov byte [esp + 0x1f], cl
xor bl, al
mov byte [esp + 0x20], dl
xor ah, al
mov byte [esp + 0x21], bl
xor ch, al
mov byte [esp + 0x22], ah
xor dh, al
mov byte [esp + 0x23], ch
mov byte [esp + 0x24], dh
mov dword [esp + 0x40], 0
mov byte [esp + 0x30], 0
test bh, bh
jne 0x10051ed1
xor ecx, ecx
jmp 0x10051ee1
lea ecx, [esp + 0x1d]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10051ed8
sub ecx, edx
push ecx
lea eax, [esp + 0x21]
push eax
lea ecx, [esp + 0x38]
call fcn.10002880
mov ecx, dword [esi]
lea edx, [esp + 0x30]
call fcn.10016640
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x44]
cmp eax, 0x10
jb 0x10051f16
inc eax
lea ecx, [esp + 0x30]
push eax
push dword [esp + 0x34]
call fcn.10002760
movaps xmm0, xmmword [0x100b1870]
xor ecx, ecx
movups xmmword [esp + 0x1c], xmm0
mov word [esp + 0x2c], 0x11
nop dword [eax + eax]
mov al, byte [esp + 0x1c]
xor byte [esp + ecx + 0x1d], al
inc ecx
cmp ecx, 0x10
jb 0x10051f30
cmp byte [esp + 0x1d], 0
mov byte [esp + 0x2d], 0
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], 0
mov byte [esp + 0x30], 0
jne 0x10051f63
xor ecx, ecx
jmp 0x10051f79
lea ecx, [esp + 0x1d]
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10051f70
sub ecx, edx
push ecx
lea eax, [esp + 0x21]
push eax
lea ecx, [esp + 0x38]
call fcn.10002880
mov ecx, dword [esi]
lea edx, [esp + 0x30]
call fcn.10016640
mov dword [esi + 0x2c], eax
mov eax, dword [esp + 0x44]
cmp eax, 0x10
jb 0x10051fae
inc eax
lea ecx, [esp + 0x30]
push eax
push dword [esp + 0x34]
call fcn.10002760
mov bl, 0x22
mov byte [esp + 0xd], 0x3a
mov bh, bl
mov byte [esp + 0x1c], 0x4e
mov byte [esp + 0xf], bh
mov al, 0x36
mov bh, byte [esp + 0xd]
mov ah, 0x2b
xor bh, byte [esp + 0x1c]
mov dh, ah
xor al, byte [esp + 0x1c]
mov cl, 0x3a
mov byte [esp + 0xd], bh
mov dl, 0x11
mov byte [esp + 0x1d], bh
mov ch, 0x38
mov bh, byte [esp + 0xf]
mov byte [esp + 0x1e], al
mov al, byte [esp + 0x1c]
xor cl, al
mov byte [esp + 0x26], 0
xor dl, al
mov byte [esp + 0x1f], cl
xor bl, al
mov byte [esp + 0x20], dl
xor ah, al
mov byte [esp + 0x21], bl
xor ch, al
mov byte [esp + 0x22], ah
xor dh, al
mov byte [esp + 0x23], ch
xor bh, al
mov byte [esp + 0x24], dh
cmp byte [esp + 0xd], 0
mov byte [esp + 0x25], bh
mov byte [esp + 0x26], 0
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], 0
mov byte [esp + 0x30], 0
jne 0x10052040
xor ecx, ecx
jmp 0x10052050
lea ecx, [esp + 0x1d]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10052047
sub ecx, edx
push ecx
lea eax, [esp + 0x21]
push eax
lea ecx, [esp + 0x38]
call fcn.10002880
mov ecx, dword [esi]
lea edx, [esp + 0x30]
call fcn.10016640
mov dword [esi + 0x30], eax
mov eax, dword [esp + 0x44]
cmp eax, 0x10
jb 0x10052085
inc eax
lea ecx, [esp + 0x30]
push eax
push dword [esp + 0x34]
call fcn.10002760
mov bh, 0xd
mov byte [esp + 0x1c], 0x6a
mov byte [esp + 0xf], bh
mov al, 0x12
xor al, byte [esp + 0x1c]
mov ah, 0xb
mov byte [esp + 0xd], 0x1e
mov dh, ah
mov bh, byte [esp + 0xd]
mov cl, 0x1e
xor bh, byte [esp + 0x1c]
mov dl, 0x35
mov byte [esp + 0xd], bh
mov bl, 0xe
mov byte [esp + 0x1e], al
mov ch, 7
mov al, byte [esp + 0x1c]
mov byte [esp + 0x1d], bh
xor cl, al
mov bh, byte [esp + 0xf]
xor dl, al
xor bl, al
mov byte [esp + 0xe], 0xf
xor ah, al
mov byte [esp + 0x27], 0
xor ch, al
mov byte [esp + 0x1f], cl
xor dh, al
mov byte [esp + 0x20], dl
xor bh, al
mov byte [esp + 0x21], bl
mov al, byte [esp + 0xe]
xor al, byte [esp + 0x1c]
cmp byte [esp + 0xd], 0
mov byte [esp + 0x22], ah
mov byte [esp + 0x23], ch
mov byte [esp + 0x24], dh
mov byte [esp + 0x25], bh
mov byte [esp + 0x26], al
mov byte [esp + 0x27], 0
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], 0
mov byte [esp + 0x30], 0
jne 0x10052128
xor ecx, ecx
jmp 0x10052139
lea ecx, [esp + 0x1d]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10052130
sub ecx, edx
push ecx
lea eax, [esp + 0x21]
push eax
lea ecx, [esp + 0x38]
call fcn.10002880
mov ecx, dword [esi]
lea edx, [esp + 0x30]
call fcn.10016640
mov dword [esi + 0x34], eax
mov eax, dword [esp + 0x44]
cmp eax, 0x10
jb 0x1005216e
inc eax
lea ecx, [esp + 0x30]
push eax
push dword [esp + 0x34]
call fcn.10002760
mov cl, 0x75
mov dword [esp + 0x1c], 0x10d0175
mov dword [esp + 0x20], 0x1310112a
xor eax, eax
mov dword [esp + 0x24], case.default.0x1006197d
mov byte [esp + 0x28], 0
nop
xor byte [esp + eax + 0x1d], cl
inc eax
cmp eax, 0xb
jae 0x100521a0
mov cl, byte [esp + 0x1c]
jmp 0x10052190
cmp byte [esp + 0x1d], 0
mov byte [esp + 0x28], 0
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], 0
mov byte [esp + 0x30], 0
jne 0x100521c5
xor ecx, ecx
jmp 0x100521d9
lea ecx, [esp + 0x1d]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100521d0
sub ecx, edx
push ecx
lea eax, [esp + 0x21]
push eax
lea ecx, [esp + 0x38]
call fcn.10002880
mov ecx, dword [esi]
lea edx, [esp + 0x30]
call fcn.10016640
mov dword [esi + 0x38], eax
mov eax, dword [esp + 0x44]
cmp eax, 0x10
jb 0x1005220e
inc eax
lea ecx, [esp + 0x30]
push eax
push dword [esp + 0x34]
call fcn.10002760
mov cl, 0x2b
mov byte [esp + 0x1c], 0x5f
mov bh, cl
mov byte [esp + 0xd], 0x2b
mov byte [esp + 0xf], bh
mov al, 0x27
xor al, byte [esp + 0x1c]
xor dl, dl
mov bh, byte [esp + 0xd]
mov bl, 0x37
xor bh, byte [esp + 0x1c]
mov ah, 0x3a
mov byte [esp + 0xd], bh
mov ch, 0x3e
mov byte [esp + 0x1e], al
mov dh, 0x33
mov al, byte [esp + 0x1c]
mov byte [esp + 0x1d], bh
xor cl, al
mov bh, byte [esp + 0xf]
xor ah, al
xor ch, al
mov byte [esp + 0xe], bl
xor bl, al
mov byte [esp + 0x27], dl
xor dl, al
mov byte [esp + 0x1f], cl
xor dh, al
mov byte [esp + 0x20], dl
xor bh, al
mov byte [esp + 0x21], bl
mov al, byte [esp + 0xe]
xor al, byte [esp + 0x1c]
cmp byte [esp + 0xd], 0
mov byte [esp + 0x22], ah
mov byte [esp + 0x23], ch
mov byte [esp + 0x24], dh
mov byte [esp + 0x25], bh
mov byte [esp + 0x26], al
mov byte [esp + 0x27], 0
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], 0
mov byte [esp + 0x30], 0
jne 0x100522af
xor ecx, ecx
jmp 0x100522bf
lea ecx, [esp + 0x1d]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100522b6
sub ecx, edx
push ecx
lea eax, [esp + 0x21]
push eax
lea ecx, [esp + 0x38]
call fcn.10002880
mov ecx, dword [esi]
lea edx, [esp + 0x30]
call fcn.10016640
mov dword [esi + 0x3c], eax
mov eax, dword [esp + 0x44]
cmp eax, 0x10
jb 0x100522f4
inc eax
lea ecx, [esp + 0x30]
push eax
push dword [esp + 0x34]
call fcn.10002760
mov edi, dword [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test edi, edi
je 0x10052318
push 4
push edi
call ebx
test eax, eax
jne 0x10052318
lea ecx, [edi + 0xd4]
call fcn.100173f0
mov edi, eax
jmp 0x1005231a
xor edi, edi
mov esi, dword [esi]
test esi, esi
je 0x10052335
push 4
push esi
call ebx
test eax, eax
jne 0x10052335
or edi, 0x28
mov ecx, esi
push edi
call dword [0x100b0d9c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret