Function at 0x10056c40
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101b9258
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x48
mov eax, dword [0x1023ebb0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 4], 0
xor edx, edx
movq xmm0, qword [str.CD_KTZQX_]
mov al, byte [0x102304ec]
movq qword [ebp - 0x28], xmm0
mov byte [ebp - 0x20], al
mov dword [ebp - 0x1c], edx
mov eax, 0x2f684bdb
mul edx
mov eax, dword [ebp - 0x1c]
sub eax, edx
shr eax, 1
add eax, edx
mov edx, dword [ebp - 0x1c]
shr eax, 5
mov cl, dl
movsx eax, al
imul eax, eax, 0x36
sub cl, al
add cl, 0x36
xor byte [ebp + edx - 0x28], cl
inc edx
mov dword [ebp - 0x1c], edx
cmp edx, 9
jl 0x10056ca1
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x30], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10056cf0
sub ecx, edx
lea eax, [ebp - 0x28]
push ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.10049bd0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
push ecx
cmovae eax, dword [ebp - 0x40]
push ecx
push eax
lea ecx, [ebx + 8]
call fcn.1005b330
add esp, 4
mov ecx, eax
call fcn.1005b510
push eax
lea ecx, [edi + 0x48]
call fcn.10059850
mov edx, dword [ebp - 0x44]
cmp edx, 0x10
jb 0x10056d66
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10056d5c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10056da2
push edx
push ecx
call fcn.101b49b5
add esp, 8
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
cmp edx, 0x10
jb 0x10056db2
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10056da8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10056da8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.101b49b5
add esp, 8
mov eax, dword [str.SZYPV_]
mov dword [ebp - 0x28], eax
mov ax, word [0x10230790]
mov word [ebp - 0x24], ax
test ah, ah
je 0x10056e00
xor edx, edx
mov dword [ebp - 0x1c], edx
nop dword [eax]
mov eax, 0x2f684bdb
mul edx
mov eax, dword [ebp - 0x1c]
sub eax, edx
shr eax, 1
add eax, edx
mov edx, dword [ebp - 0x1c]
shr eax, 5
mov cl, dl
movsx eax, al
imul eax, eax, 0x36
sub cl, al
add cl, 0x36
xor byte [ebp + edx - 0x28], cl
inc edx
mov dword [ebp - 0x1c], edx
cmp edx, 6
jl 0x10056dd0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x30], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10056e20
sub ecx, edx
lea eax, [ebp - 0x28]
push ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.10049bd0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x58]
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
push ecx
cmovae eax, dword [ebp - 0x40]
push ecx
push eax
lea ecx, [ebx + 8]
call fcn.1005b330
add esp, 4
mov ecx, eax
call fcn.1005b510
push eax
lea ecx, [edi + 0x60]
call fcn.10059850
mov edx, dword [ebp - 0x44]
cmp edx, 0x10
jb 0x10056e96
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10056e8c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10056ed2
push edx
push ecx
call fcn.101b49b5
add esp, 8
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
cmp edx, 0x10
jb 0x10056ee2
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10056ed8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10056ed8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.101b49b5
add esp, 8
cmp byte [0x1022e74b], 0
mov eax, dword [str.SOHPHO]
mov ecx, dword [0x1022e748]
mov esi, dword [0x10245758]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ecx
je 0x10057040
xor edx, edx
mov dword [ebp - 0x1c], edx
cmp esi, 2
jl 0x10057010
movaps xmm2, xmmword [0x10230810]
mov edx, 4
movaps xmm3, xmmword [0x102308b0]
movaps xmm1, xmm2
punpckldq xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
movd xmm4, edx
mov edx, 0x1f
psrad xmm1, xmm4
movaps xmm0, xmm1
movd xmm5, edx
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x10230830]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movaps xmm2, xmmword [0x10230820]
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
pand xmm1, xmmword [0x10230890]
packuswb xmm1, xmm1
paddb xmm1, xmmword [str.6666666666666666]
movd xmm0, eax
pxor xmm1, xmm0
movaps xmm0, xmm2
movd dword [ebp - 0x28], xmm1
movaps xmm1, xmm2
punpckldq xmm1, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm4
movaps xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x10230830]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
pand xmm1, xmmword [0x10230890]
packuswb xmm1, xmm1
paddb xmm1, xmmword [str.6666666666666666]
movd xmm0, ecx
pxor xmm1, xmm0
movd dword [ebp - 0x24], xmm1
jmp 0x10057040
mov eax, 0x2f684bdb
mul edx
mov eax, dword [ebp - 0x1c]
sub eax, edx
shr eax, 1
add eax, edx
mov edx, dword [ebp - 0x1c]
shr eax, 5
mov cl, dl
movsx eax, al
imul eax, eax, 0x36
sub cl, al
add cl, 0x36
xor byte [ebp + edx - 0x28], cl
inc edx
mov dword [ebp - 0x1c], edx
cmp edx, 8
jl 0x10057010
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x30], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10057060
sub ecx, edx
lea eax, [ebp - 0x28]
push ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.10049bd0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x58]
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
push ecx
cmovae eax, dword [ebp - 0x40]
push ecx
push eax
lea ecx, [ebx + 8]
call fcn.1005b330
add esp, 4
mov ecx, eax
call fcn.1005b510
push eax
lea ecx, [edi + 0x78]
call fcn.10059850
mov edx, dword [ebp - 0x44]
cmp edx, 0x10
jb 0x100570d6
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100570cc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10057112
push edx
push ecx
call fcn.101b49b5
add esp, 8
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
cmp edx, 0x10
jb 0x10057122
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10057118
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10057118
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.101b49b5
add esp, 8
cmp byte [0x102304db], 0
mov eax, dword [str._VJ9_]
mov dword [ebp - 0x1c], eax
je 0x10057200
xor edx, edx
mov dword [ebp - 0x24], edx
cmp esi, 2
jl 0x100571d0
movaps xmm3, xmmword [0x10230810]
mov ecx, 4
movaps xmm2, xmm3
movaps xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmmword [0x102308b0]
punpckldq xmm2, xmm3
pmuldq xmm2, xmmword [0x102308b0]
shufps xmm2, xmm0, 0xdd
movd xmm0, ecx
mov ecx, 0x1f
psrad xmm2, xmm0
movaps xmm1, xmm2
movd xmm0, ecx
psrld xmm1, xmm0
paddd xmm1, xmm2
pmulld xmm1, xmmword [0x10230830]
psubd xmm3, xmm1
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
pand xmm1, xmmword [0x10230890]
packuswb xmm1, xmm1
paddb xmm1, xmmword [str.6666666666666666]
movd xmm0, eax
pxor xmm1, xmm0
movd dword [ebp - 0x1c], xmm1
jmp 0x10057200
mov eax, 0x2f684bdb
mul edx
mov eax, dword [ebp - 0x24]
sub eax, edx
shr eax, 1
add eax, edx
mov edx, dword [ebp - 0x24]
shr eax, 5
mov cl, dl
movsx eax, al
imul eax, eax, 0x36
sub cl, al
add cl, 0x36
xor byte [ebp + edx - 0x1c], cl
inc edx
mov dword [ebp - 0x24], edx
cmp edx, 4
jl 0x100571d0
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x30], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10057220
sub ecx, edx
lea eax, [ebp - 0x1c]
push ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.10049bd0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x58]
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
push ecx
cmovae eax, dword [ebp - 0x40]
push ecx
push eax
lea ecx, [ebx + 8]
call fcn.1005b330
add esp, 4
mov ecx, eax
call fcn.1005b510
push eax
lea ecx, [edi + 0x90]
call fcn.10059850
mov edx, dword [ebp - 0x44]
cmp edx, 0x10
jb 0x10057299
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1005728f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100572d5
push edx
push ecx
call fcn.101b49b5
add esp, 8
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
cmp edx, 0x10
jb 0x100572e5
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100572db
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100572db
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.101b49b5
add esp, 8
mov eax, dword [str.DVVR:]
xor edx, edx
mov dword [ebp - 0x1c], eax
mov al, byte [0x1022e7bc]
mov byte [ebp - 0x18], al
mov dword [ebp - 0x24], edx
nop word [eax + eax]
mov eax, 0x2f684bdb
mul edx
mov eax, dword [ebp - 0x24]
sub eax, edx
shr eax, 1
add eax, edx
mov edx, dword [ebp - 0x24]
shr eax, 5
mov cl, dl
movsx eax, al
imul eax, eax, 0x36
sub cl, al
add cl, 0x36
xor byte [ebp + edx - 0x1c], cl
inc edx
mov dword [ebp - 0x24], edx
cmp edx, 5
jl 0x10057300
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x30], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10057350
sub ecx, edx
lea eax, [ebp - 0x1c]
push ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.10049bd0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x58]
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
push ecx
cmovae eax, dword [ebp - 0x40]
push ecx
push eax
lea ecx, [ebx + 8]
call fcn.1005b330
add esp, 4
mov ecx, eax
call fcn.1005b510
push eax
lea ecx, [edi + 0xa8]
call fcn.10059850
mov edx, dword [ebp - 0x44]
cmp edx, 0x10
jb 0x100573c9
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100573bf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10057401
push edx
push ecx
call fcn.101b49b5
add esp, 8
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
cmp edx, 0x10
jb 0x10057411
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10057407
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10057407
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.101b49b5
add esp, 8
lea ecx, [ebx + 8]
call fcn.100589e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.101b493a
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x10