Function at 0x4098b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45b89d
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x4720bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x70], eax
mov dword [ebp - 4], 0
call fcn.00410750
mov edi, eax
test edi, edi
jne 0x409951
mov ecx, dword [ebp + 0x2c]
cmp ecx, 0x10
jb 0x409933
mov edx, dword [ebp + 0x18]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x409929
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409efb
push ecx
push edx
call fcn.00459a6a
add esp, 8
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00459a78
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
push dword [ebp - 0x24]
mov byte [ebp - 4], 2
push esi
push ebx
call fcn.004081f0
push dword [0x4723c8]
push 0x2712
push edi
call fcn.00413c00
push 1
push 0x51
push edi
call fcn.00413c00
add esp, 0x24
mov dword [ebp - 0x1c], 0xd1d0ced4
mov dword [ebp - 0x18], 0xb2cbce
xor ecx, ecx
mov byte [ebp - 0x14], 1
mov al, cl
sub al, 0x46
xor byte [ebp + ecx - 0x1c], al
inc ecx
cmp ecx, 7
jb 0x4099c3
lea eax, [ebp - 0x1c]
mov byte [ebp - 0x14], 0
push eax
push 0x2722
push edi
call fcn.00413c00
push esi
push 0x27c1
push edi
call fcn.00413c00
push 1
push 0x40
push edi
call fcn.00413c00
cmp dword [ebp + 0x2c], 0x10
lea eax, [ebp + 0x18]
cmovae eax, dword [ebp + 0x18]
push eax
push 0x271f
push edi
call fcn.00413c00
push 0x40a820
push 0x4e2b
push edi
call fcn.00413c00
lea eax, [ebp - 0x40]
push eax
push 0x2711
push edi
call fcn.00413c00
add esp, 0x48
push 0x4084f0
push 0x4e6f
push edi
call fcn.00413c00
lea eax, [ebp - 0x58]
push eax
push 0x272d
push edi
call fcn.00413c00
push edi
mov dword [ebp - 4], 2
call fcn.00410790
push edi
mov esi, eax
call fcn.00410730
push dword [0x4723c8]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ebx, dword [ebp - 0x2c]
add esp, 0x24
test esi, esi
jne 0x409c2d
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x40]
cmp ebx, 0x10
cmovae ecx, dword [ebp - 0x40]
mov dword [ebp - 0x74], ecx
cmp eax, 5
jb 0x409b33
add eax, 0xfffffffc
add eax, ecx
mov dword [ebp - 0x24], eax
sub eax, ecx
push eax
push 0x65
push ecx
call sub.VCRUNTIME140.dll_memchr
mov esi, eax
add esp, 0xc
test esi, esi
je 0x409b33
nop word [eax + eax]
mov ecx, esi
mov edx, str.error
mov edi, 1
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x409add
add ecx, 4
mov edi, 0xfffffffd
add edx, 4
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x409b04
cmp edi, 0xfffffffd
je 0x409b00
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x409b04
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x409b04
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x409b04
xor eax, eax
jmp 0x409b09
sbb eax, eax
or eax, 1
test eax, eax
je 0x409b27
mov eax, dword [ebp - 0x24]
inc esi
sub eax, esi
push eax
push 0x65
push esi
call sub.VCRUNTIME140.dll_memchr
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x409ac0
jmp 0x409b33
sub esi, dword [ebp - 0x74]
cmp esi, 0xffffffff
jne 0x409c2d
push 0x1024
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
push 0x1024
push 0
push eax
mov dword [0x47258c], eax
call sub.VCRUNTIME140.dll_memset
mov esi, dword [ebp - 0x2c]
lea ecx, [ebp - 0x40]
mov edx, dword [ebp - 0x40]
add esp, 0x10
mov ebx, dword [ebp - 0x70]
cmp esi, 0x10
cmovae ecx, edx
sub ebx, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [ecx + ebx - 1], al
test al, al
jne 0x409b67
mov ecx, dword [ebp - 0x44]
cmp ecx, 0x10
jb 0x409bae
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x409b9e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409efb
push ecx
push edx
call fcn.00459a6a
mov esi, dword [ebp - 0x2c]
add esp, 8
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
cmp esi, 0x10
jb 0x409bf0
lea ecx, [esi + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x409be6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409efb
push ecx
push edx
call fcn.00459a6a
add esp, 8
mov ecx, dword [ebp + 0x2c]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
cmp ecx, 0x10
jb 0x409e35
mov edx, dword [ebp + 0x18]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x409e2b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
jmp 0x409e1f
mov eax, dword [ebp + 0x30]
cmp eax, 1
je 0x409cd6
cmp eax, 2
je 0x409e3f
mov dword [ebp - 0x1c], 0x92d0d7de
xor ecx, ecx
mov word [ebp - 0x18], 0x100
mov al, cl
sub al, 0x46
xor byte [ebp + ecx - 0x1c], al
inc ecx
cmp ecx, 4
jb 0x409c51
movaps xmm0, xmmword [0x45d720]
xor ecx, ecx
mov byte [ebp - 0x17], 0
movups xmmword [ebp - 0x6c], xmm0
mov byte [ebp - 0x5c], 1
mov al, cl
sub al, 0x46
xor byte [ebp + ecx - 0x6c], al
inc ecx
cmp ecx, 0xf
jb 0x409c74
mov byte [ebp - 0x5c], 0
xor ecx, ecx
mov dword [ebp - 0x24], 0xd5cbdb
mov byte [ebp - 0x20], 1
mov al, cl
sub al, 0x46
xor byte [ebp + ecx - 0x24], al
inc ecx
cmp ecx, 3
jb 0x409c93
push 1
sub esp, 0x18
mov byte [ebp - 0x20], 0
lea eax, [ebp + 0x18]
mov ecx, esp
push eax
call fcn.00402320
mov esi, dword [ebp - 0x70]
lea eax, [ebp - 0x1c]
push esi
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.004098b0
add esp, 0x2c
test al, al
je 0x409cd9
jmp 0x409d75
mov esi, dword [ebp - 0x70]
mov dword [ebp - 0x1c], 0x92d0d7de
xor ecx, ecx
mov word [ebp - 0x18], 0x100
mov al, cl
sub al, 0x46
xor byte [ebp + ecx - 0x1c], al
inc ecx
cmp ecx, 4
jb 0x409ce8
movaps xmm0, xmmword [0x45d720]
xor ecx, ecx
mov byte [ebp - 0x17], 0
movups xmmword [ebp - 0x6c], xmm0
mov byte [ebp - 0x5c], 1
nop dword [eax + eax]
mov al, cl
sub al, 0x46
xor byte [ebp + ecx - 0x6c], al
inc ecx
cmp ecx, 0xf
jb 0x409d10
mov byte [ebp - 0x5c], 0
xor ecx, ecx
mov dword [ebp - 0x28], 0xd8ced4d4
mov dword [ebp - 0x24], 0xb9d3ce
mov byte [ebp - 0x20], 1
mov al, cl
sub al, 0x46
xor byte [ebp + ecx - 0x28], al
inc ecx
cmp ecx, 7
jb 0x409d36
push 2
sub esp, 0x18
mov byte [ebp - 0x20], 0
lea eax, [ebp + 0x18]
mov ecx, esp
push eax
call fcn.00402320
push esi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004098b0
add esp, 0x2c
test al, al
je 0x409e3c
mov ecx, dword [ebp - 0x44]
cmp ecx, 0x10
jb 0x409da9
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x409d9f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409efb
push ecx
push edx
call fcn.00459a6a
add esp, 8
mov ecx, dword [ebp - 0x2c]
mov byte [ebp - 0x58], 0
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
cmp ecx, 0x10
jb 0x409def
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x409de5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409efb
push ecx
push edx
call fcn.00459a6a
add esp, 8
mov ecx, dword [ebp + 0x2c]
mov byte [ebp - 0x40], 0
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
cmp ecx, 0x10
jb 0x409e35
mov edx, dword [ebp + 0x18]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x409e2b
mov edx, dword [eax - 4]
sub eax, edx
add ecx, 0x23
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409efb
push ecx
push edx
call fcn.00459a6a
add esp, 8
mov al, 1
jmp 0x409935
mov ebx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x44]
cmp ecx, 0x10
jb 0x409e76
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x409e69
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409efb
push ecx
push edx
call fcn.00459a6a
mov ebx, dword [ebp - 0x2c]
add esp, 8
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
cmp ebx, 0x10
jb 0x409eb7
mov edx, dword [ebp - 0x40]
lea ecx, [ebx + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x409ead
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409efb
push ecx
push edx
call fcn.00459a6a
add esp, 8
mov ecx, dword [ebp + 0x2c]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
cmp ecx, 0x10
jb 0x409933
mov edx, dword [ebp + 0x18]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x409929
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x409929
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3