Function at 0x431540
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x473561
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x490240]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x7c], esi
mov edi, dword [ebp + 8]
lea ecx, [esi + 0xe4]
xor eax, eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x78], eax
lea eax, [edi + 0x48]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.0041c8f0
mov edx, dword [ebp - 0x2c]
lea ecx, [edi + 0x48]
cmp byte [edx + 0xd], 0
jne 0x4315c7
mov eax, dword [ecx + 4]
cmp eax, dword [edx + 0x14]
jl 0x4315c7
jg 0x4315ad
mov eax, dword [ecx]
cmp eax, dword [edx + 0x10]
jb 0x4315c7
mov edx, dword [esi + 0xe4]
lea eax, [esi + 0xe4]
mov dword [ebp - 0x78], edx
cmp dword [ebp - 0x2c], edx
jne 0x4319ad
jmp 0x4315d6
mov edx, dword [esi + 0xe4]
lea eax, [esi + 0xe4]
mov dword [ebp - 0x78], edx
push ecx
lea ecx, [ebp - 0x34]
push ecx
mov ecx, eax
call fcn.0041c8f0
mov ecx, dword [eax + 8]
movq xmm0, qword [eax]
movq qword [ebp - 0x1c], xmm0
cmp byte [ecx + 0xd], 0
jne 0x431606
mov eax, dword [edi + 0x4c]
cmp eax, dword [ecx + 0x14]
jg 0x43166d
jl 0x431606
mov eax, dword [edi + 0x48]
cmp eax, dword [ecx + 0x10]
jae 0x43166d
cmp dword [esi + 0xe8], 0xaaaaaaa
lea eax, [esi + 0xe4]
je 0x4319ca
mov dword [ebp - 0x30], eax
push 0x18
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c], 0
call fcn.004637bf
mov ecx, dword [edi + 0x48]
add esp, 4
mov edx, dword [edi + 0x4c]
mov dword [ebp - 4], 0xffffffff
mov dword [eax + 0x10], ecx
mov ecx, dword [ebp - 0x78]
mov dword [eax + 0x14], edx
push eax
push dword [ebp - 0x18]
mov dword [eax], ecx
push dword [ebp - 0x1c]
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
lea ecx, [esi + 0xe4]
mov word [eax + 0xc], 0
call fcn.0040e0a0
push 0
push dword [edi + 0x68]
lea eax, [ebp - 0x9c]
push eax
call fcn.00428e00
add esp, 0xc
cmp byte [ebp - 0x84], 0
mov dword [ebp - 4], 1
je 0x4319a2
push 0xfde9
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0043cd70
add esp, 0xc
cmp dword [ebp - 0x14], 0xf
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
mov edx, 0x811c9dc5
cmova eax, dword [ebp - 0x28]
xor ecx, ecx
cmp dword [ebp - 0x18], ecx
jbe 0x4316e5
mov esi, eax
nop word [eax + eax]
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, dword [ebp - 0x18]
jb 0x4316d0
mov esi, dword [ebp - 0x7c]
push edx
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x30]
push eax
lea ecx, [esi + 0xbc]
call fcn.0041c7b0
mov eax, dword [eax + 4]
test eax, eax
jne 0x431706
mov eax, dword [esi + 0xc0]
cmp eax, dword [esi + 0xc0]
jne 0x431761
mov eax, dword [ebp - 0x14]
cmp eax, 0xf
jbe 0x43174a
lea ecx, [eax + 1]
mov eax, dword [ebp - 0x28]
mov edx, eax
cmp ecx, 0x1000
jb 0x431740
mov eax, dword [edx - 4]
add ecx, 0x23
sub edx, eax
mov dword [ebp - 0x78], eax
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x4319cf
mov eax, dword [ebp - 0x78]
push ecx
push eax
call fcn.004637ef
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
jmp 0x4319a2
lea eax, [ebp - 0x28]
lea ecx, [esi + 0xbc]
push eax
call fcn.00425770
sub esp, 0x18
xorps xmm0, xmm0
mov ecx, esp
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 8
mov dword [ecx + 0x14], 0xf
movq xmm0, qword [str.hookcode]
movq qword [ecx], xmm0
mov byte [ecx + 8], 0
mov ecx, eax
call fcn.0040d340
lea ecx, [ebp - 0x58]
push ecx
mov ecx, eax
call fcn.0041b400
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
lea ecx, [esi + 0xbc]
push eax
call fcn.00425770
sub esp, 0x18
xorps xmm0, xmm0
mov edx, esp
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 4
mov dword [edx + 0x14], 0xf
mov ecx, dword [str.ctx1]
mov dword [edx], ecx
mov ecx, eax
mov byte [edx + 4], 0
call fcn.0040d340
mov ecx, eax
call fcn.0041b490
mov ecx, dword [ebp - 0x7c]
mov esi, eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x2c], edx
add ecx, 0xbc
push eax
call fcn.00425770
sub esp, 0x18
xorps xmm0, xmm0
mov edx, esp
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 4
mov dword [edx + 0x14], 0xf
mov ecx, dword [str.ctx2]
mov dword [edx], ecx
mov ecx, eax
mov byte [edx + 4], 0
call fcn.0040d340
mov ecx, eax
call fcn.0041b490
xor esi, dword [edi + 0x78]
movzx ecx, si
or ecx, 0
jne 0x4318bb
cmp eax, dword [edi + 0x80]
jne 0x4318bb
cmp edx, dword [edi + 0x84]
jne 0x4318bb
lea eax, [edi + 0x294]
push eax
lea ecx, [ebp - 0x40]
call fcn.004154d0
push 0xfde9
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x70]
mov dword [ebp - 0x78], 1
push eax
call fcn.0043cd70
mov ecx, eax
add esp, 0xc
mov eax, 3
mov dword [ebp - 0x80], eax
cmp dword [ecx + 0x14], 0xf
mov edx, dword [ecx + 0x10]
jbe 0x43189a
mov ecx, dword [ecx]
cmp dword [ebp - 0x44], 0xf
lea eax, [ebp - 0x58]
push edx
cmova eax, dword [ebp - 0x58]
push ecx
push dword [ebp - 0x48]
push eax
call fcn.0041dea0
add esp, 0x10
mov byte [ebp - 0x71], 1
test al, al
jne 0x4318bf
mov byte [ebp - 0x71], 0
mov eax, dword [ebp - 0x80]
test al, 2
je 0x4318d7
and eax, 0xfffffffd
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x80], eax
call fcn.0040c920
mov eax, dword [ebp - 0x80]
mov dword [ebp - 4], 3
test al, 1
je 0x4318ea
lea ecx, [ebp - 0x40]
call fcn.0040c970
cmp byte [ebp - 0x71], 0
je 0x431930
mov eax, dword [ebp - 0x7c]
xor esi, esi
mov ecx, dword [eax + 0x78]
call fcn.00416a40
test eax, eax
jle 0x431930
mov eax, dword [ebp - 0x7c]
push esi
mov ecx, dword [eax + 0x78]
call fcn.00416d50
mov ecx, dword [ebp - 0x7c]
cdq
mov ecx, dword [ecx + 0x78]
cmp eax, dword [edi + 0x48]
jne 0x43191e
cmp edx, dword [edi + 0x4c]
je 0x43192a
inc esi
call fcn.00416a40
cmp esi, eax
jl 0x431901
jmp 0x431930
push esi
call fcn.00416ef0
mov ecx, dword [ebp - 0x44]
cmp ecx, 0xf
jbe 0x431960
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x431956
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4319cf
push ecx
push edx
call fcn.004637ef
add esp, 8
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
cmp ecx, 0xf
jbe 0x4319a2
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x431998
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4319cf
push ecx
push edx
call fcn.004637ef
add esp, 8
lea ecx, [ebp - 0x9c]
call fcn.00424950
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004637fd
mov esp, ebp
pop ebp
ret 4
call fcn.0040e610
call fcn.00465020
int3