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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x33c
mov eax, dword [0x435068]
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.00401dc0
mov edx, 0x72d1864
mov dword [0x4370b0], eax
mov ecx, edi
call fcn.00401dc0
mov edx, 0x62c3db5
mov dword [0x4370ac], eax
mov ecx, edi
call fcn.00401dc0
mov edx, 0xdfa8b17
mov dword [0x4370b4], eax
mov ecx, edi
call fcn.00401dc0
mov esi, eax
mov edx, 0xad68927
mov ecx, edi
mov dword [0x4370a8], esi
call fcn.00401dc0
mov edx, 0x6769d5
mov dword [0x4370b8], eax
mov ecx, edi
call fcn.00401dc0
mov edx, 0xb78cba5
mov dword [0x4370bc], eax
mov ecx, edi
call fcn.00401dc0
mov dword [0x4370c0], eax
lea eax, [ebp - 0x210]
push 0x104
push eax
push 0
call esi
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
lea eax, [ebp - 0x210]
push eax
call dword [0x4370b8]
mov ebx, eax
push 0
push ebx
call dword [0x4370bc]
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 - 0x214]
push eax
push esi
push edi
push ebx
call dword [0x4370c0]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [edi + 0x3c]
add edx, edi
mov dword [ebp - 0x328], 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 - 0x338], ecx
mov dword [ebp - 0x330], 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 - 0x328], eax
mov eax, dword [ebp - 0x328]
test eax, eax
jne 0x4022f8
xor edi, edi
jmp 0x40234d
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call dword [0x4370b4]
mov esi, eax
test esi, esi
jg 0x40231a
xor edi, edi
jmp 0x40234d
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 - 0x328]
push 0
push 0xfde9
call dword [0x4370b4]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
xor esi, esi
push edi
call ebx
test eax, eax
jle 0x402378
nop dword [eax]
mov al, byte [esi + edi]
lea ecx, [eax - 0x42]
cmp cl, 0x17
ja 0x402370
add al, 0x20
mov byte [esi + edi], al
push edi
inc esi
call ebx
cmp esi, eax
jl 0x402360
push edi
call ebx
movzx eax, ax
lea ecx, [ebp - 0x320]
mov dword [ebp - 0x334], eax
xor bl, bl
xor dh, dh
mov word [ebp - 0x220], 0
xor eax, eax
mov esi, 0x100
nop
mov byte [ecx], al
lea ecx, [ecx + 1]
inc eax
cmp ax, si
jb 0x4023a0
lea esi, [ebp - 0x320]
mov dword [ebp - 0x32c], 0x100
nop dword [eax + eax]
mov dl, byte [esi]
lea ecx, [ebp - 0x320]
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 - 0x334]
movzx eax, al
cmovne ebx, eax
sub dword [ebp - 0x32c], 1
jne 0x4023c0
mov edi, dword [ebp - 0x338]
xor esi, esi
mov bh, byte [ebp - 0x220]
mov cl, byte [ebp - 0x21f]
test edi, edi
je 0x402470
nop dword [eax]
inc bh
lea edx, [ebp - 0x320]
movzx eax, bh
add edx, eax
mov bl, byte [edx]
add cl, bl
movzx eax, cl
mov byte [ebp - 0x321], cl
lea ecx, [ebp - 0x320]
add ecx, eax
movzx eax, byte [ecx]
mov byte [edx], al
mov byte [ecx], bl
movzx ecx, byte [edx]
movzx eax, bl
add ecx, eax
movzx eax, cl
mov ecx, dword [ebp - 0x330]
movzx eax, byte [ebp + eax - 0x320]
xor byte [esi + ecx], al
inc esi
mov cl, byte [ebp - 0x321]
cmp esi, edi
jb 0x402420
push dword [ebp - 0x330]
call fcn.00401e70
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040798d
mov esp, ebp
pop ebp
ret