Function at 0x10003a5f
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008d0ee
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x28
push esi
push edi
mov eax, dword [0x100ad040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebx + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x34], esi
mov ecx, esi
mov dword [ebp - 0x30], 1
push 0
movups xmmword [esi], xmm0
push 0x1009a6d7
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.100051e0
mov dword [ebp - 4], 0
mov edi, dword [0x100b1ff8]
mov dword [ebp - 0x30], 1
test edi, edi
je case.0x100038e6.113
cmp byte [0x100b2074], 0
je 0x100038cf
mov ecx, 0x10b8134
call fcn.10016570
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x100038cf
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x100038cf
mov eax, dword [ebp - 0x2c]
add eax, 0x6e4
push 4
push eax
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x100038cf
mov eax, dword [ebp - 0x2c]
mov ax, word [eax]
mov word [edi + 0x3e], ax
movzx eax, word [edi + 0x3e]
add eax, 0xffffff9b
cmp eax, 0x6f
ja case.0x100038e6.113
movzx eax, byte [eax + 0x10003b98]
jmp dword [eax*4 + 0x10003b74]
mov dl, 9
mov dword [ebp - 0x24], 0x7b684209
mov dword [ebp - 0x20], 0x5e297a7c
xor ecx, ecx
mov dword [ebp - 0x1c], 0x607b7b68
mov word [ebp - 0x18], 0x7b66
mov byte [ebp - 0x16], 0
lea eax, [ebp - 0x23]
xor byte [eax + ecx], dl
inc ecx
cmp ecx, 0xd
jae 0x10003921
mov dl, byte [ebp - 0x24]
jmp 0x10003910
lea ecx, [ebp - 0x23]
mov byte [ebp - 0x16], 0
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10003930
jmp 0x10003b4e
mov dl, 0x3c
mov dword [ebp - 0x20], 0x4e5d773c
mov dword [ebp - 0x1c], 0x6e1c4f49
xor ecx, ecx
mov dword [ebp - 0x18], 0x59495b53
mov byte [ebp - 0x14], 0
nop dword [eax]
lea eax, [ebp - 0x1f]
xor byte [eax + ecx], dl
inc ecx
cmp ecx, 0xb
jae 0x10003971
mov dl, byte [ebp - 0x20]
jmp 0x10003960
lea ecx, [ebp - 0x1f]
mov byte [ebp - 0x14], 0
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10003980
lea eax, [ebp - 0x1f]
jmp 0x10003b51
mov cl, 0x3e
mov byte [ebp - 0x20], 0x5f
mov byte [ebp - 0x26], cl
mov al, 0x14
xor al, byte [ebp - 0x20]
mov ch, 0x2c
xor cl, byte [ebp - 0x20]
mov dl, 0x2d
mov byte [ebp - 0x1f], al
mov dh, 0x7f
mov byte [ebp - 0x1e], cl
mov ah, 0x2a
mov cl, byte [ebp - 0x20]
mov byte [ebp - 0x25], 0x12
xor dl, cl
mov al, byte [ebp - 0x25]
xor ch, cl
xor al, cl
mov byte [ebp - 0x27], 0x38
mov byte [ebp - 0x19], al
xor dh, cl
mov al, byte [ebp - 0x26]
xor ah, cl
xor al, cl
mov byte [ebp - 0x28], 0x3a
mov byte [ebp - 0x18], al
mov al, byte [ebp - 0x27]
xor al, cl
mov byte [ebp - 0x1b], ch
mov byte [ebp - 0x17], al
mov al, byte [ebp - 0x28]
xor al, cl
mov byte [ebp - 0x15], 0
lea ecx, [ebp - 0x1f]
mov byte [ebp - 0x1d], dl
mov byte [ebp - 0x1a], dh
lea edx, [ecx + 1]
mov byte [ebp - 0x1c], ah
mov byte [ebp - 0x16], al
mov byte [ebp - 0x15], 0
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10003a00
lea eax, [ebp - 0x1f]
jmp 0x10003b51
mov dl, 0xb
mov dword [ebp - 0x20], 0x796a400b
mov dword [ebp - 0x1c], 0x5b2b787e
xor ecx, ecx
mov dword [ebp - 0x18], 0x786e6279
mov word [ebp - 0x14], 0x7f
nop
lea eax, [ebp - 0x1f]
xor byte [eax + ecx], dl
inc ecx
cmp ecx, 0xc
jae 0x10003a41
mov dl, byte [ebp - 0x20]
jmp 0x10003a30
lea ecx, [ebp - 0x1f]
mov byte [ebp - 0x13], 0
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10003a50
lea eax, [ebp - 0x1f]
jmp 0x10003b51
movaps xmm0, xmmword [0x100a4d90]
xor ecx, ecx
movups xmmword [ebp - 0x24], xmm0
mov word [ebp - 0x14], 0x30
mov al, byte [ebp - 0x24]
xor byte [ebp + ecx - 0x23], al
inc ecx
cmp ecx, 0x10
jb 0x10003a72
lea ecx, [ebp - 0x23]
mov byte [ebp - 0x13], 0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10003a90
jmp 0x10003b4e
movaps xmm0, xmmword [str.g__vG_b]
xor ecx, ecx
movups xmmword [ebp - 0x24], xmm0
nop dword [eax]
mov al, byte [ebp - 0x24]
xor byte [ebp + ecx - 0x23], al
inc ecx
cmp ecx, 0xe
jb 0x10003ab0
lea ecx, [ebp - 0x23]
mov byte [ebp - 0x15], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10003ac7
jmp 0x10003b4e
mov dl, 1
mov dword [ebp - 0x24], 0x216d4401
mov dword [ebp - 0x20], 0x60736e4c
xor ecx, ecx
mov dword [ebp - 0x1c], 0x604c2165
mov word [ebp - 0x18], 0x6466
mov byte [ebp - 0x16], 0
lea eax, [ebp - 0x23]
xor byte [eax + ecx], dl
inc ecx
cmp ecx, 0xd
jae 0x10003b04
mov dl, byte [ebp - 0x24]
jmp 0x10003af3
lea ecx, [ebp - 0x23]
mov byte [ebp - 0x16], 0
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10003b10
jmp 0x10003b4e
movaps xmm0, xmmword [0x100a4d40]
xor ecx, ecx
movups xmmword [ebp - 0x24], xmm0
mov byte [ebp - 0x14], 0
nop word [eax + eax]
mov al, byte [ebp - 0x24]
xor byte [ebp + ecx - 0x23], al
inc ecx
cmp ecx, 0xf
jb 0x10003b30
lea ecx, [ebp - 0x23]
mov byte [ebp - 0x14], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10003b47
lea eax, [ebp - 0x23]
sub ecx, edx
push ecx
push eax
mov ecx, esi
call fcn.10004f00
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4