Function at 0x407750
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x158
push esi
mov esi, ecx
mov eax, SysReAllocString
mov ecx, dword [ebp + 8]
push edi
mov edi, edx
mov dword [esp + 0x1c], edi
mov edx, dword [ecx + 0x10]
sub eax, edx
cmp eax, 1
jb 0x407c66
cmp dword [ecx + 0x14], 0x10
jb 0x407784
mov ecx, dword [ecx]
push edx
push ecx
push 1
push 0x442c4c
push ecx
push dword [esp + 0x28]
lea ecx, [esp + 0x60]
call fcn.00411fa0
push 0x442c4c
lea ecx, [esp + 0x4c]
call fcn.004037f0
push ecx
mov ecx, edi
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x24], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [esp + 0x24]
push eax
movq qword [esp + 0x38], xmm0
call fcn.0040f940
mov edx, dword [esp + 0x34]
mov dword [esp + 0xc], eax
cmp edx, 0x10
jb 0x407814
mov ecx, dword [esp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40780a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407c6b
push edx
push ecx
call fcn.00419018
add esp, 8
mov edx, dword [esp + 0x5c]
cmp edx, 0x10
jb 0x40784a
mov ecx, dword [esp + 0x48]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x407840
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407c6b
push edx
push ecx
call fcn.00419018
add esp, 8
mov edx, dword [esp + 0xc]
cmp edx, 0xffffffff
je 0x407c3c
cmp dword [edi + 0x14], 0x10
mov ecx, edi
mov dword [esp + 8], edi
jb 0x407869
mov ecx, dword [edi]
mov dword [esp + 8], ecx
mov eax, dword [edi + 0x10]
cmp edx, eax
jae 0x407c3c
sub eax, edx
push eax
lea eax, [ecx + edx]
push 0x3a
push eax
call fcn.0041bb30
add esp, 0xc
test eax, eax
je 0x407c3c
sub eax, dword [esp + 8]
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
je 0x407c3c
mov eax, dword [0x443320]
xor edx, edx
mov dword [esp + 0x14], eax
mov al, byte [0x443324]
mov byte [esp + 0x18], al
mov dword [esp + 8], edx
mov eax, 0x4ec4ec4f
mul edx
shr edx, 4
movsx eax, dl
mov edx, dword [esp + 8]
mov cl, dl
imul eax, eax, 0x34
sub cl, al
add cl, 0x37
xor byte [esp + edx + 0x14], cl
inc edx
mov dword [esp + 8], edx
cmp edx, 5
jl 0x4078b6
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], 0
mov dword [esp + 0x30], 0
lea edx, [ecx + 1]
mov dword [esp + 0x34], 0xf
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x407900
sub ecx, edx
lea eax, [esp + 0x14]
push ecx
push eax
lea ecx, [esp + 0x28]
call fcn.004040a0
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x20]
inc ecx
mov dword [esp + 8], edi
cmp dword [esp + 0x34], 0x10
mov dword [esp + 0x10], ecx
cmovae eax, dword [esp + 0x20]
cmp dword [edi + 0x14], 0x10
mov dword [esp + 0xc], eax
jb 0x407943
mov eax, dword [edi]
mov dword [esp + 8], eax
mov edi, dword [edi + 0x10]
cmp ecx, edi
jae 0x4079a3
push 0x100
lea eax, [esp + 0x64]
push 0
push eax
call fcn.0041b810
mov edx, dword [esp + 0x3c]
add esp, 0xc
mov ecx, dword [esp + 0xc]
add edx, ecx
cmp ecx, edx
je 0x40797d
nop dword [eax]
movzx eax, byte [ecx]
inc ecx
mov byte [esp + eax + 0x60], 1
cmp ecx, edx
jne 0x407970
mov edx, dword [esp + 8]
lea ecx, [edi + edx]
mov edi, dword [esp + 0x10]
add edi, edx
cmp edi, ecx
jae 0x4079a3
nop
movzx eax, byte [edi]
cmp byte [esp + eax + 0x60], 0
je 0x407a99
inc edi
cmp edi, ecx
jb 0x407990
or edi, 0xffffffff
mov eax, dword [esp + 0x34]
mov dword [esp + 0xc], edi
cmp eax, 0x10
jb 0x4079e2
mov edx, dword [esp + 0x20]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x4079d8
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407c70
push ecx
push edx
call fcn.00419018
add esp, 8
cmp edi, 0xffffffff
je 0x407c3c
mov eax, dword [esp + 0x1c]
mov ecx, eax
cmp dword [eax + 0x14], 0x10
jb 0x4079f9
mov ecx, dword [eax]
cmp byte [ecx + edi], 0x22
jne 0x407aa0
cmp dword [eax + 0x14], 0x10
lea ecx, [edi + 1]
mov edx, eax
mov dword [esp + 8], eax
jb 0x407a18
mov edx, dword [eax]
mov dword [esp + 8], edx
mov eax, dword [eax + 0x10]
cmp ecx, eax
jae 0x407c3c
sub eax, ecx
push eax
lea eax, [edx + ecx]
push 0x22
push eax
call fcn.0041bb30
mov ecx, eax
add esp, 0xc
test ecx, ecx
je 0x407c3c
sub ecx, dword [esp + 8]
cmp ecx, 0xffffffff
je 0x407c3c
mov eax, dword [esp + 0x1c]
lea edx, [edi + 1]
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
cmp dword [eax + 0x10], edx
jb 0x407c75
sub ecx, edi
lea edi, [ecx - 1]
mov ecx, dword [eax + 0x10]
sub ecx, edx
cmp ecx, edi
cmovb edi, ecx
cmp dword [eax + 0x14], 0x10
jb 0x407a86
mov eax, dword [eax]
push edi
add eax, edx
mov ecx, esi
push eax
call fcn.004040a0
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
sub edi, edx
jmp 0x4079a6
mov ax, word [0x442e4c]
xor edx, edx
mov word [esp + 8], ax
mov al, byte [0x442e4e]
mov byte [esp + 0xa], al
mov dword [esp + 0x10], edx
nop word [eax + eax]
mov eax, 0x4ec4ec4f
mul edx
shr edx, 4
movsx eax, dl
mov edx, dword [esp + 0x10]
mov cl, dl
imul eax, eax, 0x34
sub cl, al
add cl, 0x37
xor byte [esp + edx + 8], cl
inc edx
mov dword [esp + 0x10], edx
cmp edx, 3
jl 0x407ac0
lea ecx, [esp + 8]
mov dword [esp + 0x20], 0
mov dword [esp + 0x30], 0
lea edx, [ecx + 1]
mov dword [esp + 0x34], 0xf
mov al, byte [ecx]
inc ecx
test al, al
jne 0x407b08
sub ecx, edx
lea eax, [esp + 8]
push ecx
push eax
lea ecx, [esp + 0x28]
call fcn.004040a0
cmp dword [esp + 0x34], 0x10
lea eax, [esp + 0x20]
cmovae eax, dword [esp + 0x20]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x10], eax
cmp dword [eax + 0x14], 0x10
jb 0x407b46
mov ecx, dword [eax]
mov dword [esp + 0x10], ecx
cmp dword [esp + 0x30], 0
mov eax, dword [eax + 0x10]
mov dword [esp + 0x14], eax
je 0x407baf
cmp edi, eax
jae 0x407baf
push 0x100
lea eax, [esp + 0x64]
push 0
push eax
call fcn.0041b810
mov ecx, dword [esp + 0x14]
add esp, 0xc
mov edx, dword [esp + 0x30]
add edx, ecx
cmp ecx, edx
je 0x407b8d
nop word [eax + eax]
movzx eax, byte [ecx]
inc ecx
mov byte [esp + eax + 0x60], 1
cmp ecx, edx
jne 0x407b80
mov edx, dword [esp + 0x10]
add edi, edx
mov ecx, dword [esp + 0x14]
add ecx, edx
cmp edi, ecx
jae 0x407baf
nop dword [eax]
movzx eax, byte [edi]
cmp byte [esp + eax + 0x60], 0
jne 0x407be2
inc edi
cmp edi, ecx
jb 0x407ba0
or edi, 0xffffffff
mov eax, dword [esp + 0x34]
cmp eax, 0x10
jb 0x407bf0
mov edx, dword [esp + 0x20]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x407be6
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407c70
jmp 0x407be6
sub edi, edx
jmp 0x407bb2
push ecx
push edx
call fcn.00419018
add esp, 8
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
cmp edi, 0xffffffff
je 0x407c50
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0xc]
mov edx, dword [ecx + 0x10]
cmp edx, eax
jb 0x407c75
sub edi, eax
sub edx, eax
cmp edx, edi
cmovb edi, edx
cmp dword [ecx + 0x14], 0x10
jb 0x407c29
mov ecx, dword [ecx]
add eax, ecx
mov ecx, esi
push edi
push eax
call fcn.004040a0
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
push 0
push 0x44289b
mov ecx, esi
call fcn.004040a0
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
call fcn.00401af0
call fcn.0041eb32
call fcn.0041eb32
call fcn.004045b0
int3