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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
mov dword [ebp - 0x10], 0xdf2efd3
mov dword [ebp - 0x24], 0xdf2efd4
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 0x10]
push ebx
mov ebx, 0x75683548
xor ecx, ebx
mov eax, 0x789ada9b
sub ecx, eax
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebx
sub ecx, eax
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
xor ecx, ebx
push esi
sub ecx, eax
mov dword [ebp - 0x5c], ecx
push edi
push 0x20
pop ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 4], ecx
push 0x60
pop ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 4], 0x48
mov dword [ebp - 4], 0x3e
mov ecx, dword [ebp - 0x10]
xor ecx, ebx
sub ecx, eax
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebx
sub ecx, eax
mov dword [ebp - 4], ecx
lea edi, [ebp - 0x88]
lea esi, [ebp - 0xa8]
call fcn.00402303
mov dword [ebp - 0x20], 0x4009
mov eax, dword [ebp - 0x10]
xor eax, ebx
mov esi, 0x789ada9b
sub eax, esi
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x10]
and dword [ebp - 0x50], 0
xor eax, ebx
sub eax, esi
mov dword [ebp - 0x1c], eax
mov eax, dword fs:[0x18]
mov dword [ebp - 0x50], eax
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x54], eax
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x50]
mov dword [eax + 0x1a0], ecx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x54]
mov dword [eax + 0x1a4], ecx
mov eax, dword [ebp + 8]
push dword [ebp + 8]
lea ecx, [ebp - 0x64]
mov dword [eax + 0x1a8], ecx
call fcn.004040bb
test eax, eax
je 0x401f5d
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x194]
mov ecx, dword [eax]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x194]
mov eax, dword [eax]
add eax, dword [ecx + 0x3c]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x1d4]
lea edx, [ebp - 0x68]
push edx
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0x18c]
mov edx, dword [edx]
add edx, dword [eax + 0x88]
push 4
push dword [eax + 0x8c]
push edx
call dword [ecx + 0x1c]
push dword [ebp + 8]
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x1b8]
mov dword [ebp - 0x38], 0x7173727b
mov dword [ebp - 0x34], 0x787f7c82
mov word [ebp - 0x30], 0xefa0
mov dword [ebp - 0x4c], 0x87a27298
mov dword [ebp - 0x48], 0x7ba07180
mov dword [ebp - 0x44], 0x9d80877f
mov dword [ebp - 0x40], 0x71847c74
mov dword [ebp - 0x3c], 0xefa08278
call fcn.004040ea
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x1a8]
push dword [eax]
call fcn.00403dad
test eax, eax
jne 0x401df0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x1d4]
mov edi, dword [ebp + 8]
add eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x1b8]
call fcn.004040ea
push eax
mov eax, dword [ebp - 4]
call dword [eax]
test eax, eax
jne 0x401df0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x1d4]
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x1b8]
call fcn.004040ea
push eax
mov eax, dword [ebp - 4]
call dword [eax]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
xor eax, ebx
sub eax, esi
cmp eax, ecx
je 0x401f30
mov eax, dword [ebp - 0x24]
xor eax, ebx
mov ecx, esi
sub ecx, eax
add ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 8]
cmp eax, ecx
ja 0x401f30
mov dword [ebp - 4], 0
push dword [ebp + 8]
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x1b4]
call fcn.004040ea
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x1a8]
push dword [eax]
call fcn.00403dad
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x19c]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x1d4]
mov esi, dword [ebp + 8]
xor eax, eax
lea edx, [ebp - 0x4c]
call fcn.00404120
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x19c]
push dword [eax]
call dword [edi + 8]
and dword [ebp - 0x14], 0
test eax, eax
je 0x401ea5
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x1d4]
mov esi, dword [ebp + 8]
xor eax, eax
lea edx, [ebp - 0x38]
call fcn.00404120
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x198]
push dword [eax]
call dword [edi + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x24]
mov esi, dword [ebp + 8]
xor eax, ebx
mov edi, 0x789ada9b
sub eax, edi
lea edx, [ebp - 0x88]
call fcn.00404120
push eax
mov eax, dword [ebp - 0x10]
mov esi, dword [ebp + 8]
xor eax, ebx
sub eax, edi
lea edx, [ebp - 0xa8]
call fcn.00404120
push eax
call dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
xor ecx, ebx
sub ecx, edi
cmp ecx, eax
jne 0x401eeb
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 8]
xor eax, ebx
lea eax, [eax + ecx - 0x789ada9b]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x401f16
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x1c]
xor eax, ebx
lea eax, [eax + ecx - 0x789ada9b]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x24]
xor eax, ebx
sub edi, eax
add edi, dword [ebp - 0x20]
mov eax, dword [ebp - 8]
cmp eax, edi
jbe 0x401e19
mov esi, 0x789ada9b
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 8]
cmp ecx, eax
jne 0x401f4f
push 0xdf2efd3
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00404969
mov edi, eax
jmp 0x401f60
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x18]
xor ecx, ebx
sub ecx, esi
xor dword [eax], ecx
jmp 0x401f4b
mov edi, dword [ebp - 0x18]
xor eax, eax
cmp edi, eax
je 0x402234
cmp dword [ebp - 0xc], eax
je 0x40221b
mov dword [ebp - 4], eax
jbe 0x401f90
xor edx, edx
mov ecx, 0xbe
div ecx
mov eax, dword [ebp - 4]
sub byte [eax + edi], dl
inc eax
mov dword [ebp - 4], eax
cmp eax, dword [ebp - 0xc]
jb 0x401f78
mov eax, dword [ebp - 0xc]
mov ecx, edi
call fcn.00404b77
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x1d4]
push 4
push 0x3000
push eax
push 0
mov dword [ebp - 4], eax
call dword [ecx + 0x14]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x402064
mov esi, dword [ebp - 4]
push esi
push eax
push dword [ebp - 0xc]
mov ebx, edi
call fcn.00404a1f
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x1d4]
push 0x8000
push 0
push edi
call dword [eax + 0x18]
mov edi, dword [ebp - 0x14]
xor edx, edx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0xc], esi
test esi, esi
je 0x402057
and dword [ebp - 8], 0
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 8]
sub eax, edx
cmp eax, 0x10
jbe 0x402004
push 0x10
pop eax
cmp dword [ebp - 8], eax
jae 0x402031
mov eax, dword [ebp - 8]
lea ecx, [eax + edx]
lea esi, [edx + eax]
mov bl, cl
mov eax, edx
shr eax, 4
and al, 3
and bl, 0x1f
imul bl
and cl, 3
imul cl
mov cl, 0xfe
sub cl, al
add byte [esi + edi], cl
inc dword [ebp - 8]
jmp 0x401ff4
xor ecx, ecx
mov eax, dword [ebp - 0xc]
sub eax, ecx
sub eax, edx
cmp eax, 8
jbe 0x402042
push 8
pop eax
cmp ecx, eax
jae 0x40204f
lea eax, [ecx + edx]
sub byte [eax + edi], cl
inc ecx
jmp 0x402033
add edx, 0x40
cmp edx, dword [ebp - 0xc]
jb 0x401ff0
mov edi, dword [ebp - 0x18]
mov esi, 0x789ada9b
mov ebx, 0x75683548
xor eax, eax
cmp dword [ebp - 0xc], eax
jbe 0x40207d
mov cl, byte [eax + edi]
xor cl, 0x78
add cl, 0x69
mov byte [eax + edi], cl
inc eax
cmp eax, dword [ebp - 0xc]
jb 0x40206b
mov eax, dword [ebp - 0x10]
xor eax, ebx
mov dword [ebp - 0x2c], 0xa0979f97
mov dword [ebp - 0x28], 0x9a97a297
sub eax, esi
jmp 0x4020b9
mov cl, byte [ebp + eax - 0x2c]
movsx edx, byte [eax + edi]
xor cl, 0x78
add cl, 0x69
movzx ecx, cl
cmp edx, ecx
jne 0x4021e5
mov ecx, dword [ebp - 0x24]
xor ecx, ebx
lea eax, [eax + ecx - 0x789ada9b]
cmp eax, 8
jb 0x402094
mov eax, dword [edi + 8]
mov dword [ebp - 0x1c], 0xdf2efd3
mov dword [ebp - 8], 0xdf32c42
mov dword [ebp - 0x14], 0xdf2dfd3
mov dword [ebp - 4], 0xdf2efd7
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebx
sub ecx, esi
push ecx
mov ecx, dword [ebp - 0x14]
mov eax, dword [eax + 0x1d4]
xor ecx, ebx
sub ecx, esi
push ecx
mov ecx, dword [ebp - 8]
xor ecx, ebx
sub ecx, esi
push ecx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebx
sub ecx, esi
push ecx
call dword [eax + 0x14]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
mov eax, dword [eax + 0x1d4]
xor ecx, ebx
sub ecx, esi
push ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebx
sub ecx, esi
push ecx
mov ecx, dword [ebp - 0x1c]
push dword [ebp - 0x20]
xor ecx, ebx
sub ecx, esi
push ecx
call dword [eax + 0x14]
mov esi, dword [ebp - 8]
mov dword [ebp - 4], eax
test esi, esi
je 0x402234
test eax, eax
je 0x402234
mov dword [ebp - 0x14], 0xdf2efd6
mov dword [ebp - 8], 0xdf2efd5
mov ecx, dword [ebp - 0x14]
xor cl, 0x48
add cl, 0x65
mov byte [esi], cl
mov ecx, dword [ebp - 0x1c]
xor cl, 0x48
add cl, 0x65
mov byte [esi + 1], cl
mov ecx, dword [ebp - 8]
xor cl, 0x48
add cl, 0x65
mov byte [esi + 2], cl
and dword [ebp - 0x60], 0
and dword [ebp - 0x58], 0
lea ecx, [ebp - 0x58]
push ecx
push dword [ebp - 0x20]
push eax
lea eax, [ebp - 0x60]
push eax
push dword [edi + 0xc]
lea eax, [edi + 0x10]
push eax
push esi
call fcn.00402334
mov ebx, 0x8000
push ebx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x1d4]
push 0
push esi
call dword [eax + 0x18]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x1d4]
xor eax, eax
push ebx
push eax
cmp dword [ebp - 0x14], eax
jne 0x4021dd
push edi
call dword [ecx + 0x18]
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x20]
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
jmp 0x4021ea
push dword [ebp - 4]
call dword [ecx + 0x18]
jmp 0x4021ea
mov ebx, 0x8000
push dword [ebp + 8]
mov eax, dword [ebp + 8]
push dword [eax + 0x1cc]
lea eax, [ebp - 0x5c]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x1c4]
push dword [eax]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x1c0]
push dword [eax]
push dword [ebp - 0xc]
push edi
call fcn.004032ca
jmp 0x402220
mov ebx, 0x8000
test edi, edi
je 0x402234
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x1d4]
push ebx
push 0
push edi
call dword [eax + 0x18]
pop edi
pop esi
pop ebx
leave
ret 4