Function at 0x409720
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffda0
push ebx
push esi
push edi
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
mov ebx, eax
je 0x409b1e
mov eax, 0xdfa
call fcn.0040f04c
push eax
call fcn.0042bc00
pop ecx
push 0x4442e9
call fcn.0042bc00
pop ecx
xor edx, edx
or word [ebx + 0x46e4], 0x40
mov eax, dword [ebx + 0x6e14]
push edx
add eax, 7
xor edx, edx
push eax
mov eax, ebx
call fcn.004039b0
xor ecx, ecx
mov edx, 0x73
mov eax, ebx
call fcn.00407a28
push 0
push 0
mov edx, 2
mov eax, ebx
call fcn.004039b0
mov eax, ebx
call fcn.00403a68
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 8]
mov dword [ebp - 0x10], edx
push dword [ebp - 8]
push dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00409b28
mov dword [ebp - 4], eax
lea esi, [ebx + 0x5420]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
lea eax, [esi + 0xc30]
mov edx, 0x14
call fcn.00407550
mov word [esi + 8], 0x8000
xor ecx, ecx
mov eax, ebx
mov dword [esi + 0x24], ecx
xor ecx, ecx
or word [ebx + 0x5428], 0x4000
push 0
push 0x4442ef
push 0
xor edx, edx
call fcn.0040936c
push 0
push 0
xor edx, edx
mov eax, ebx
call fcn.004039b0
xor ecx, ecx
xor esi, esi
mov dword [ebp - 0x20], ecx
lea eax, [ebp - 0x1030]
mov edx, dword [ebp - 4]
shl edx, 9
call fcn.00403e58
push dword [ebp - 0x102c]
push 0
push dword [ebp - 0x1030]
call fcn.0043bba4
mov dword [ebp - 0x24], 0xfffffff
add esp, 0xc
jmp 0x4099c9
call fcn.0040c348
cmp dword [ebp - 8], 0
jne 0x40986d
cmp dword [ebp - 0xc], 0x200
jae 0x40989f
jmp 0x40986f
jge 0x40989f
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 0x1230]
mov edi, eax
mov eax, pe_nt_image_headers32
sub eax, edi
add edx, edi
push eax
push 0
push edx
call fcn.0043bba4
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
add esp, 0xc
jmp 0x4098af
sub dword [ebp - 0xc], 0x200
sbb dword [ebp - 8], 0
mov edi, pe_nt_image_headers32
lea edx, [ebp - 0x1230]
mov ecx, edi
mov eax, ebx
call fcn.00403838
mov edx, dword [ebp - 0x20]
shl edx, 9
add edx, dword [ebp - 0x1030]
xor eax, eax
mov cl, byte [ebp + eax - 0x1230]
xor byte [edx + eax], cl
inc eax
cmp eax, 0x200
jl 0x4098cc
lea edx, [ebp - 0x1230]
mov ecx, pe_nt_image_headers32
or eax, 0xffffffff
call fcn.0040c898
mov byte [ebp + esi - 0x1024], al
inc esi
shr eax, 8
mov byte [ebp + esi - 0x1024], al
inc esi
cmp esi, 0x1000
jne 0x40995d
lea eax, [ebp - 0x1240]
mov edx, ebx
call fcn.00403104
push 0
push 0
mov edx, 2
mov eax, ebx
call fcn.004039b0
lea edx, [ebp - 0x1024]
mov ecx, esi
mov eax, ebx
call fcn.00403674
lea edx, [ebp - 0x1024]
mov ecx, esi
mov eax, dword [ebp - 0x24]
call fcn.0040c898
mov dword [ebp - 0x24], eax
xor esi, esi
lea eax, [ebp - 0x1240]
mov edx, 2
call fcn.00403128
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
and eax, 0xff
xor edx, edx
cmp edx, 0
jne 0x4099b1
cmp eax, 0
jne 0x4099b1
mov ecx, dword [ebx + 0x13b8]
cmp byte [ecx + 0x28b4], 0
jne 0x4099b1
push 0
push pe_nt_image_headers32
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
call fcn.0043e820
push edx
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call fcn.0043a3c8
push eax
push 0x4442f2
call fcn.0042bc00
add esp, 8
add dword [ebp - 0x1c], 1
adc dword [ebp - 0x18], 0
inc dword [ebp - 0x20]
mov edx, dword [ebp - 0x20]
cmp edx, dword [ebp - 4]
jb 0x4099c9
xor ecx, ecx
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 8], 0
jne 0x4099db
cmp dword [ebp - 0xc], 0
ja 0x409857
jmp 0x4099e1
jg 0x409857
push 0
push 0
mov edx, 2
mov eax, ebx
call fcn.004039b0
lea edx, [ebp - 0x1024]
mov ecx, esi
mov eax, ebx
call fcn.00403674
lea edx, [ebp - 0x1024]
mov ecx, esi
mov eax, dword [ebp - 0x24]
call fcn.0040c898
mov dword [ebp - 0x24], eax
mov eax, ebx
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x1030]
shl ecx, 9
call fcn.00403674
mov ecx, dword [ebp - 4]
shl ecx, 9
mov edx, dword [ebp - 0x1030]
mov eax, dword [ebp - 0x24]
call fcn.0040c898
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
not eax
mov dword [ebx + 0x5438], eax
mov eax, ebx
push dword [ebp - 0x10]
push dword [ebp - 0x14]
xor edx, edx
call fcn.004039b0
lea eax, [ebp - 0x1260]
xor edx, edx
call fcn.00417930
mov edx, 0x4442fc
lea eax, [ebp - 0x1260]
mov ecx, 8
call fcn.00417adc
lea eax, [ebp - 0x1260]
mov edx, dword [ebp - 4]
call fcn.00417a64
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
lea eax, [ebp - 0x1260]
call fcn.00417ab4
lea edx, [ebx + 0x6050]
lea eax, [ebp - 0x1260]
call fcn.00417bac
push 0
push 0x4442ef
push 0
push 0
push 2
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
call fcn.0043e820
mov ecx, eax
mov edx, dword [ebp - 4]
shl edx, 9
add ecx, edx
xor edx, edx
mov eax, ebx
call fcn.0040936c
push 0
push 0
mov edx, 2
mov eax, ebx
call fcn.004039b0
mov ecx, dword [ebx + 0x13b8]
cmp byte [ecx + 0x28b4], 0
jne 0x409afe
push 0x444305
call fcn.0042bc00
pop ecx
lea eax, [ebp - 0x1260]
mov edx, 2
call fcn.00417964
lea eax, [ebp - 0x1030]
mov edx, 2
call fcn.00401244
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret