Function at 0x401270
Capabilities:
Access peb ldr_data
Encode data using xor
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41bea5
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x426004]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0x20], edi
mov ebx, ecx
push 0x174
call fcn.0040585b
mov esi, eax
add esp, 4
lea ecx, [esi + 0x90]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], esi
mov dword [esi + 8], 0
lea eax, [esi + 0x4c]
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi], vtable.tinyxml2::XMLDocument.0
mov word [esi + 0x2c], 0x100
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x48], eax
lea eax, [ecx + 8]
mov dword [esi + 0x44], vtable.tinyxml2::MemPoolT_52_.0
mov dword [esi + 0x74], 0xa
mov dword [esi + 0x78], 0
mov dword [esi + 0x7c], 0
mov dword [esi + 0x80], 0
mov dword [esi + 0x84], 0
mov dword [esi + 0x88], 0
mov dword [esi + 0x8c], 0
mov dword [ecx + 4], eax
mov dword [ecx], vtable.tinyxml2::MemPoolT_36_.0
mov dword [ecx + 0x30], 0xa
mov dword [ecx + 0x34], 0
mov dword [ecx + 0x38], 0
mov dword [ecx + 0x3c], 0
mov dword [ecx + 0x40], 0
mov dword [ecx + 0x44], 0
mov dword [ecx + 0x48], 0
lea ecx, [esi + 0xdc]
mov dword [ecx], vtable.tinyxml2::MemPoolT_48_.0
lea eax, [ecx + 8]
mov dword [ecx + 4], eax
mov dword [ecx + 0x30], 0xa
mov dword [ecx + 0x34], 0
mov dword [ecx + 0x38], 0
mov dword [ecx + 0x3c], 0
mov dword [ecx + 0x40], 0
mov dword [ecx + 0x44], 0
mov dword [ecx + 0x48], 0
lea ecx, [esi + 0x128]
lea eax, [ecx + 8]
mov dword [ecx], vtable.tinyxml2::MemPoolT_44_.0
mov dword [ecx + 4], eax
mov dword [ecx + 0x30], 0xa
mov dword [ecx + 0x34], 0
mov dword [ecx + 0x38], 0
mov dword [ecx + 0x3c], 0
mov dword [ecx + 0x40], 0
mov dword [ecx + 0x44], 0
mov dword [ecx + 0x48], 0
mov dword [esi + 4], esi
lea eax, [edi + 0x10]
mov dword [ebp - 4], 0
cmp dword [eax], 0
mov dword [ebp - 0x1c], eax
jne 0x4015c4
cmp dword [ebx + 0x14], 0x10
jb 0x401456
mov ebx, dword [ebx]
mov ecx, esi
call fcn.00403070
push dword [esi + 0x40]
mov dword [esi + 0x30], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
call fcn.0041b761
add esp, 4
mov dword [esi + 0x40], 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push 0x42296c
push ebx
push eax
call fcn.004088de
add esp, 0xc
test eax, eax
jne 0x40159f
mov edi, dword [ebp - 0x10]
test edi, edi
je 0x40159f
mov ecx, esi
call fcn.00403070
push dword [esi + 0x40]
mov dword [esi + 0x30], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
call fcn.0041b761
add esp, 4
mov dword [esi + 0x40], 0
push 0
push 0
push edi
call fcn.0040e1f6
add esp, 0xc
push edi
call fcn.0040e410
add esp, 4
cmp eax, 0xffffffff
jne 0x401506
push edi
call fcn.0040dda3
add esp, 4
test eax, eax
jne 0x401572
push 2
push 0
push edi
call fcn.0040e1f6
add esp, 0xc
push edi
call fcn.0040dd73
add esp, 4
mov ebx, eax
push 0
push 0
push edi
call fcn.0040e1f6
add esp, 0xc
cmp ebx, 0xffffffff
je 0x401572
cmp ebx, 0xffffffff
jae 0x401572
test ebx, ebx
jne 0x401542
mov dword [esi + 0x30], 0xf
jmp 0x401579
lea eax, [ebx + 1]
push eax
call fcn.0040588b
add esp, 4
mov dword [esi + 0x40], eax
push edi
push ebx
push 1
push eax
call fcn.00408e90
add esp, 0x10
cmp eax, ebx
jne 0x401572
mov eax, dword [esi + 0x40]
mov ecx, esi
mov byte [ebx + eax], 0
call fcn.004043b0
jmp 0x401587
mov dword [esi + 0x30], 5
mov dword [esi + 0x3c], 0
mov dword [esi + 0x38], 0
push edi
call fcn.00408c7a
add esp, 4
cmp dword [esi + 0x30], 0
jne 0x401930
jmp 0x401925
mov dword [esi + 0x30], 3
mov eax, esi
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebx + 0x14], 0x10
jb 0x4015cc
mov ebx, dword [ebx]
push 0x42296c
push ebx
call fcn.004088c7
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x401925
push ebx
call fcn.00408a47
add esp, 4
push eax
call fcn.00408a3c
mov edi, eax
mov dword [ebp - 0x18], edi
lea ecx, [edi + 1]
push ecx
lea ecx, [ebp - 0x50]
call fcn.00402060
push ebx
push 1
push edi
mov edi, dword [ebp - 0x50]
push edi
call fcn.00408e90
push ebx
call fcn.00408c7a
add esp, 0x14
mov dword [ebp - 0x38], vtable.BlowFish2.0
mov dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x20]
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 0x10
jb 0x401637
mov eax, dword [eax]
mov ecx, dword [ebp - 0x1c]
push dword [ecx]
lea ecx, [ebp - 0x38]
push eax
call fcn.00401060
mov ecx, dword [ebp - 0x18]
push ecx
lea eax, [ecx + 7]
cdq
lea ecx, [ebp - 0x44]
and edx, 7
add eax, edx
sar eax, 3
lea ebx, [eax*8]
lea eax, [ebx + 1]
mov dword [ebp - 0x1c], ebx
push eax
call fcn.00402060
lea eax, [ebx + 7]
mov byte [ebp - 4], 3
mov ebx, dword [ebp - 0x44]
and eax, 0xfffffff8
mov dword [ebp - 0x20], eax
cdq
and edx, 7
lea ecx, [edx + eax]
sar ecx, 3
test edi, edi
mov edi, dword [ebp - 0x34]
mov dword [ebp - 0x24], ecx
je 0x4018b6
test ebx, ebx
je 0x4018e3
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x1c]
jne 0x4018b6
xor eax, eax
mov dword [ebp - 0x18], eax
test ecx, ecx
jle 0x401750
mov esi, dword [ebp - 0x50]
lea edx, [ebx + 4]
mov ecx, esi
mov dword [ebp - 0x1c], edx
sub ecx, ebx
mov dword [ebp - 0x28], ecx
mov ebx, dword [esi + eax*8]
lea esi, [edi + 0x44]
mov eax, dword [ecx + edx]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0x10
xor ebx, dword [esi]
lea esi, [esi - 4]
mov edx, ebx
shr edx, 8
mov eax, edx
shr eax, 8
mov ecx, eax
movzx eax, al
shr ecx, 8
mov ecx, dword [edi + ecx*4 + 0x48]
add ecx, dword [edi + eax*4 + 0x448]
movzx eax, dl
mov edx, ebx
xor ecx, dword [edi + eax*4 + 0x848]
movzx eax, bl
add ecx, dword [edi + eax*4 + 0xc48]
mov ebx, ecx
xor ebx, dword [ebp - 0x10]
sub dword [ebp - 0x14], 1
mov dword [ebp - 0x10], edx
jne 0x4016d7
mov eax, dword [edi]
mov ecx, dword [edi + 4]
xor eax, edx
mov edx, dword [ebp - 0x1c]
xor ecx, ebx
mov esi, dword [ebp - 0x50]
mov dword [edx - 4], eax
mov eax, dword [ebp - 0x18]
mov dword [edx], ecx
inc eax
mov ecx, dword [ebp - 0x28]
add edx, 8
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
cmp eax, dword [ebp - 0x24]
jl 0x4016c4
mov esi, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x4018b6
mov ecx, esi
mov byte [ebx + eax], 0
call fcn.00403070
push dword [esi + 0x40]
mov dword [esi + 0x30], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
call fcn.0041b761
add esp, 4
mov dword [esi + 0x40], 0
cmp byte [ebx], 0
je 0x40189c
lea ecx, [ebx + 1]
nop dword [eax]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x4017a0
sub ebx, ecx
lea eax, [ebx + 1]
push eax
call fcn.0040588b
add esp, 4
mov dword [esi + 0x40], eax
push ebx
push dword [ebp - 0x44]
push eax
call fcn.00408250
mov eax, dword [esi + 0x40]
add esp, 0xc
mov ecx, esi
mov byte [ebx + eax], 0
call fcn.004043b0
cmp dword [esi + 0x30], 0
je 0x401816
mov ecx, esi
call fcn.00403070
mov eax, dword [esi + 0x44]
lea ecx, [esi + 0x44]
call dword [eax + 0x14]
mov eax, dword [esi + 0x90]
lea ecx, [esi + 0x90]
call dword [eax + 0x14]
mov eax, dword [esi + 0xdc]
lea ecx, [esi + 0xdc]
call dword [eax + 0x14]
mov eax, dword [esi + 0x128]
lea ecx, [esi + 0x128]
call dword [eax + 0x14]
mov ebx, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x3c]
mov eax, ebx
sub ecx, ebx
cmp ecx, 0x1000
jb 0x40183c
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401944
push ecx
push ebx
call fcn.0040584d
add esp, 8
test edi, edi
je 0x401858
push 0x1048
push edi
call fcn.0040584d
add esp, 8
mov edx, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x50]
sub edx, ecx
mov eax, ecx
cmp edx, 0x1000
jb 0x40187e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401944
push edx
push ecx
call fcn.0040584d
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x30], 0xf
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
jmp 0x401819
test ebx, ebx
je 0x4018e3
mov ecx, dword [ebp - 0x3c]
mov eax, ebx
sub ecx, ebx
cmp ecx, 0x1000
jb 0x4018d9
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401944
push ecx
push ebx
call fcn.0040584d
add esp, 8
test edi, edi
je 0x4018f5
push 0x1048
push edi
call fcn.0040584d
add esp, 8
mov ecx, dword [ebp - 0x50]
test ecx, ecx
je 0x401925
mov edx, dword [ebp - 0x48]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x40191b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401944
push edx
push ecx
call fcn.0040584d
add esp, 8
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax + 0x3c]
xor esi, esi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0040c401
int3