Function at 0x10047150
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
push ebx
mov bh, 0x71
mov byte [esp + 5], 0x76
mov byte [esp + 6], bh
mov al, 0x60
mov bh, byte [esp + 5]
mov dl, 0x7a
mov byte [esp + 8], 0x14
mov bl, 0x4b
xor bh, byte [esp + 8]
mov ah, 0x77
xor al, byte [esp + 8]
mov dh, 0x78
push esi
mov esi, ecx
mov byte [esp + 9], bh
mov byte [esp + 0xd], bh
mov cl, 0x7b
mov bh, byte [esp + 0xa]
mov ch, 0x67
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 0x100471f0
xor ecx, ecx
jmp 0x10047200
lea ecx, [esp + 0x11]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100471f7
sub ecx, edx
push ecx
lea eax, [esp + 0x15]
push eax
lea ecx, [esp + 0x30]
call fcn.10002770
mov ecx, dword [esi]
lea edx, [esp + 0x28]
call fcn.100186d0
mov dword [esi + 4], eax
mov eax, dword [esp + 0x3c]
cmp eax, 0x10
jb 0x10047235
inc eax
lea ecx, [esp + 0x28]
push eax
push dword [esp + 0x2c]
call fcn.10002650
mov cl, 0x1d
mov dword [esp + 0x10], 0x73697f1d
mov dword [esp + 0x14], 0x6f7c6a42
xor eax, eax
mov dword [esp + 0x18], 0x6f72746f
mov byte [esp + 0x1c], 0
xor byte [esp + eax + 0x11], cl
inc eax
cmp eax, 0xb
jae 0x10047266
mov cl, byte [esp + 0x10]
jmp 0x10047256
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 0x1004728b
xor ecx, ecx
jmp 0x1004729b
lea ecx, [esp + 0x11]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10047292
sub ecx, edx
push ecx
lea eax, [esp + 0x15]
push eax
lea ecx, [esp + 0x30]
call fcn.10002770
mov ecx, dword [esi]
lea edx, [esp + 0x28]
call fcn.100186d0
mov dword [esi + 8], eax
mov eax, dword [esp + 0x3c]
cmp eax, 0x10
jb 0x100472d0
inc eax
lea ecx, [esp + 0x28]
push eax
push dword [esp + 0x2c]
call fcn.10002650
mov bh, 0x6b
mov byte [esp + 0xd], 0x6c
mov byte [esp + 0xe], bh
mov al, 0x7a
mov bh, byte [esp + 0xd]
mov cl, 0x60
mov byte [esp + 0x10], 0xe
mov dl, 0x51
xor bh, byte [esp + 0x10]
mov bl, 0x7c
xor al, byte [esp + 0x10]
mov ah, 0x61
mov byte [esp + 0xd], bh
mov ch, 0x69
mov byte [esp + 0x11], bh
mov dh, 0x7b
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 0x10047362
xor ecx, ecx
jmp 0x10047379
lea ecx, [esp + 0x11]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10047370
sub ecx, edx
push ecx
lea eax, [esp + 0x15]
push eax
lea ecx, [esp + 0x30]
call fcn.10002770
mov ecx, dword [esi]
lea edx, [esp + 0x28]
call fcn.100186d0
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x3c]
cmp eax, 0x10
jb 0x100473ae
inc eax
lea ecx, [esp + 0x28]
push eax
push dword [esp + 0x2c]
call fcn.10002650
mov byte [esp + 0x10], 0x11
mov al, 0x65
xor al, byte [esp + 0x10]
mov bh, 0x73
xor bh, byte [esp + 0x10]
mov cl, 0x7f
mov byte [esp + 0x12], al
mov dl, 0x4e
mov al, byte [esp + 0x10]
mov bl, 0x7c
mov ah, 0x70
mov byte [esp + 0x19], 0
mov ch, 0x76
mov byte [esp + 0x11], bh
mov dh, 0x74
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 0x10047422
xor ecx, ecx
jmp 0x10047439
lea ecx, [esp + 0x11]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10047430
sub ecx, edx
push ecx
lea eax, [esp + 0x15]
push eax
lea ecx, [esp + 0x30]
call fcn.10002770
mov ecx, dword [esi]
lea edx, [esp + 0x28]
call fcn.100186d0
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x3c]
cmp eax, 0x10
jb 0x1004746e
inc eax
lea ecx, [esp + 0x28]
push eax
push dword [esp + 0x2c]
call fcn.10002650
mov bh, 0x2b
mov byte [esp + 0x10], 0x58
mov byte [esp + 0xe], bh
mov al, 0x2c
mov byte [esp + 0xd], 0x3a
mov cl, 0x36
mov bh, byte [esp + 0xd]
mov dl, 7
xor bh, byte [esp + 0x10]
mov bl, 0x28
mov byte [esp + 0xf], al
mov ah, 0x2a
xor al, byte [esp + 0x10]
mov ch, 0x31
mov byte [esp + 0xd], bh
mov dh, 0x3d
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 0x10047510
xor ecx, ecx
jmp 0x10047520
lea ecx, [esp + 0x11]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10047517
sub ecx, edx
push ecx
lea eax, [esp + 0x15]
push eax
lea ecx, [esp + 0x30]
call fcn.10002770
mov ecx, dword [esi]
lea edx, [esp + 0x28]
call fcn.100186d0
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0x3c]
cmp eax, 0x10
jb 0x10047555
inc eax
lea ecx, [esp + 0x28]
push eax
push dword [esp + 0x2c]
call fcn.10002650
movaps xmm0, xmmword [0x1009e6b0]
xor ecx, ecx
movups xmmword [esp + 0x10], xmm0
mov dword [esp + 0x20], 0x4a4246
nop dword [eax + eax]
mov al, byte [esp + 0x10]
xor byte [esp + ecx + 0x11], al
inc ecx
cmp ecx, 0x12
jb 0x10047570
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 0x100475a3
xor ecx, ecx
jmp 0x100475b9
lea ecx, [esp + 0x11]
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100475b0
sub ecx, edx
push ecx
lea eax, [esp + 0x15]
push eax
lea ecx, [esp + 0x30]
call fcn.10002770
mov ecx, dword [esi]
lea edx, [esp + 0x28]
call fcn.100186d0
mov dword [esi + 0x18], eax
mov eax, dword [esp + 0x3c]
cmp eax, 0x10
jb 0x100475ee
inc eax
lea ecx, [esp + 0x28]
push eax
push dword [esp + 0x2c]
call fcn.10002650
movaps xmm0, xmmword [0x1009da00]
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 0x10047600
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 0x10047633
xor ecx, ecx
jmp 0x10047649
lea ecx, [esp + 0x11]
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10047640
sub ecx, edx
push ecx
lea eax, [esp + 0x15]
push eax
lea ecx, [esp + 0x30]
call fcn.10002770
mov ecx, dword [esi]
lea edx, [esp + 0x28]
call fcn.100186d0
mov dword [esi + 0x1c], eax
mov eax, dword [esp + 0x3c]
cmp eax, 0x10
jb 0x1004767e
inc eax
lea ecx, [esp + 0x28]
push eax
push dword [esp + 0x2c]
call fcn.10002650
movaps xmm0, xmmword [0x1009e2b0]
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 0x10047691
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 0x100476c4
xor ecx, ecx
jmp 0x100476d9
lea ecx, [esp + 0x11]
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100476d0
sub ecx, edx
push ecx
lea eax, [esp + 0x15]
push eax
lea ecx, [esp + 0x30]
call fcn.10002770
mov ecx, dword [esi]
lea edx, [esp + 0x28]
call fcn.100186d0
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x3c]
cmp eax, 0x10
jb 0x1004770e
inc eax
lea ecx, [esp + 0x28]
push eax
push dword [esp + 0x2c]
call fcn.10002650
movaps xmm0, xmmword [0x1009e150]
xor ecx, ecx
movups xmmword [esp + 0x10], xmm0
mov dword [esp + 0x20], 0x11a000c
mov word [esp + 0x24], 0x1b
nop dword [eax + eax]
mov al, byte [esp + 0x10]
xor byte [esp + ecx + 0x11], al
inc ecx
cmp ecx, 0x14
jb 0x10047730
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 0x10047763
xor ecx, ecx
jmp 0x10047779
lea ecx, [esp + 0x11]
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10047770
sub ecx, edx
push ecx
lea eax, [esp + 0x15]
push eax
lea ecx, [esp + 0x30]
call fcn.10002770
mov ecx, dword [esi]
lea edx, [esp + 0x28]
call fcn.100186d0
mov dword [esi + 0x24], eax
mov eax, dword [esp + 0x3c]
cmp eax, 0x10
jb 0x100477ae
inc eax
lea ecx, [esp + 0x28]
push eax
push dword [esp + 0x2c]
call fcn.10002650
movaps xmm0, xmmword [0x1009dd50]
xor ecx, ecx
movups xmmword [esp + 0x10], xmm0
mov dword [esp + 0x20], 0xf033f0c
mov dword [esp + 0x24], 0x140e15
nop dword [eax]
mov al, byte [esp + 0x10]
xor byte [esp + ecx + 0x11], al
inc ecx
cmp ecx, 0x16
jb 0x100477d0
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 0x10047803
xor ecx, ecx
jmp 0x10047819
lea ecx, [esp + 0x11]
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10047810
sub ecx, edx
push ecx
lea eax, [esp + 0x15]
push eax
lea ecx, [esp + 0x30]
call fcn.10002770
mov ecx, dword [esi]
lea edx, [esp + 0x28]
call fcn.100186d0
mov dword [esi + 0x28], eax
mov eax, dword [esp + 0x3c]
cmp eax, 0x10
jb 0x1004784e
inc eax
lea ecx, [esp + 0x28]
push eax
push dword [esp + 0x2c]
call fcn.10002650
mov ecx, esi
call fcn.100478a0
mov edi, dword [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test edi, edi
je 0x10047879
push 4
push edi
call ebx
test eax, eax
jne 0x10047879
lea ecx, [edi + 0xd4]
call fcn.10019420
mov edi, eax
jmp 0x1004787b
xor edi, edi
mov esi, dword [esi]
test esi, esi
je 0x10047896
push 4
push esi
call ebx
test eax, eax
jne 0x10047896
or edi, 0x38
mov ecx, esi
push edi
call dword [0x1009d364]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret