Function at 0x4010b1
Capabilities:
Access peb ldr_data
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
movaps xmm0, xmmword [0x4074f0]
xor ebx, ebx
xorps xmm0, xmmword [0x4074e0]
push 0x2b
pop eax
push 0x31
mov word [ebp - 0x28], ax
pop eax
push 0x21
pop ecx
push 0x29
pop edx
push 0x6b
mov word [ebp - 0x26], ax
pop eax
push 0x45
mov word [ebp - 0x22], dx
mov word [ebp - 0x20], dx
mov word [ebp - 0x1a], dx
mov word [ebp - 0x18], dx
pop edx
mov word [ebp - 0x24], cx
mov word [ebp - 0x1c], cx
mov ecx, ebx
movups xmmword [0x409598], xmm0
mov word [ebp - 0x1e], ax
mov word [ebp - 0x16], dx
mov ax, word [ebp + ecx - 0x28]
xor ax, dx
mov word [ecx + 0x4095a8], ax
add ecx, 2
cmp ecx, 0x14
jb 0x40110d
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x18], ebx
je 0x4011b2
mov dword [ebp - 0x10], 0x19
mov ecx, dword [ecx + 0x30]
mov eax, 0x4095a8
sub ecx, eax
mov dword [ebp - 0x14], ecx
movzx ecx, word [ecx + eax]
movzx edx, word [eax]
mov dword [ebp - 8], eax
mov eax, edx
movzx esi, cx
mov dword [ebp - 0xc], ecx
push 0x19
lea ecx, [eax - 0x41]
add eax, 0x20
movzx edi, ax
mov eax, edx
pop edx
cmp cx, dx
lea ecx, [esi - 0x41]
cmova edi, eax
cmp cx, word [ebp - 0x10]
lea eax, [esi + 0x20]
mov esi, dword [ebp - 0xc]
movzx edx, ax
movzx eax, si
cmova edx, eax
cmp dx, di
jne 0x4011a3
test si, si
je 0x4011fb
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
add eax, 2
jmp 0x401152
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
mov ecx, eax
mov dword [ebp - 4], ecx
cmp dword [eax + 0x18], ebx
jne 0x401145
mov ecx, ebx
mov eax, dword [ecx + 0x3c]
mov esi, 0x409598
mov edx, dword [eax + ecx + 0x78]
add edx, ecx
mov eax, dword [edx + 0x20]
mov edi, dword [edx + 0x1c]
add eax, ecx
mov dword [ebp - 0x14], eax
add edi, ecx
mov eax, dword [edx + 0x24]
add eax, ecx
mov dword [ebp - 0xc], eax
mov eax, esi
shr eax, 0x10
test ax, ax
jne 0x401203
movzx esi, si
cmp esi, dword [edx + 0x10]
jb 0x40124f
mov eax, dword [edx + 0x14]
add eax, dword [edx + 0x10]
cmp esi, eax
jae 0x40124f
sub esi, dword [edx + 0x10]
mov ebx, dword [edi + esi*4]
jmp 0x40124d
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x18]
jmp 0x4011b4
mov eax, dword [edx + 0x18]
mov esi, ebx
mov dword [ebp - 0x10], eax
test eax, eax
je 0x40124f
mov eax, dword [ebp - 0x14]
mov edx, 0x409598
mov eax, dword [eax + esi*4]
add eax, ecx
mov dword [ebp - 8], eax
mov al, byte [eax]
cmp al, byte [0x409598]
jne 0x40123b
sub dword [ebp - 8], edx
test al, al
je 0x401243
mov eax, dword [ebp - 8]
inc edx
mov al, byte [eax + edx]
cmp al, byte [edx]
je 0x40122c
inc esi
cmp esi, dword [ebp - 0x10]
jb 0x40120f
jmp 0x40124f
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + esi*2]
mov ebx, dword [edi + eax*4]
add ebx, ecx
mov eax, dword [ebx]
mov dword [0x409580], eax
call dword [sym.imp.KERNEL32.dll_AllocConsole]
push 1
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
push eax
push 0x4074cc
push str.CONOUT_
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen]
add esp, 0x10
push str.WFWF_n
call fcn.0040103a
push ecx
call fcn.00401076
pop ecx
pop ecx
jmp 0x401278