Function at 0x597cb0
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
mov eax, 0x338
call fcn.00628570
mov eax, dword [0x70d514]
xor eax, esp
mov dword [esp + 0x334], eax
cmp dword [ebp + 0x18], 0x100000
mov eax, dword [ebp + 0xc]
push esi
mov dword [esp + 0x44], eax
mov esi, 0x28
mov eax, dword [ebp + 0x10]
push edi
mov dword [esp + 0x78], edx
mov edi, 0x40
mov edx, ecx
mov dword [esp + 0x38], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x54], edx
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x3c], edi
mov dword [esp + 0x58], esi
mov dword [esp + 0xc], 8
mov byte [esp + 0xb], 1
jae 0x59859a
test edx, edx
jne 0x597d2a
xor eax, eax
jmp 0x597d2c
mov eax, dword [edx]
mov eax, dword [eax]
cmp eax, 0x2a0
jg 0x597de5
je 0x597db7
cmp eax, 4
je 0x597d77
cmp eax, 0x40
jne 0x597df6
lea ecx, [esp + 0x90]
call fcn.0048c140
test eax, eax
jle 0x59859a
mov dword [esp + 0x30], 0x597950
mov eax, 0x14
mov dword [esp + 0x14], 0x48bfc0
jmp 0x597e97
lea eax, [esp + 0x90]
push eax
call fcn.00487580
add esp, 4
test eax, eax
jle 0x59859a
mov esi, 0x30
mov dword [esp + 0x30], 0x5978d0
mov dword [esp + 0x14], 0x487440
mov eax, 0x10
mov dword [esp + 0x58], esi
mov byte [esp + 0xb], 0
jmp 0x597e97
lea ecx, [esp + 0x90]
call fcn.0048b0d0
test eax, eax
jle 0x59859a
mov dword [esp + 0x30], 0x5979f0
mov eax, 0x20
mov dword [esp + 0x14], 0x48b220
jmp 0x597e97
sub eax, 0x2a1
je 0x597e5d
sub eax, 1
je 0x597e45
sub eax, 1
je 0x597e1a
test ecx, ecx
je 0x59859a
mov dword [ecx], 0
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x334]
xor ecx, esp
call fcn.0062844a
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x90]
call fcn.0048b070
test eax, eax
jle 0x59859a
mov dword [esp + 0x30], 0x5979f0
mov eax, 0x1c
mov dword [esp + 0x14], 0x48b220
jmp 0x597e97
lea ecx, [esp + 0x90]
call fcn.0048b5c0
test eax, eax
jle 0x59859a
mov eax, edi
jmp 0x597e76
lea ecx, [esp + 0x90]
call fcn.0048b510
test eax, eax
jle 0x59859a
mov eax, 0x30
mov edi, 0x80
mov dword [esp + 0xc], 0x10
mov dword [esp + 0x3c], edi
mov dword [esp + 0x14], 0x48beb0
mov dword [esp + 0x30], 0x597ae0
cmp byte [ebp + 0x24], 0
mov ecx, 0xd
mov dword [esp + 0x1c], eax
mov dword [esp + 0x4c], ecx
je 0x597ec0
mov ecx, dword [ebp + 0x20]
add ecx, 0xb
mov dword [esp + 0x24], 2
add ecx, esi
mov dword [esp + 0x4c], ecx
jmp 0x597ed0
add eax, 0xff
xor edx, edx
add eax, edi
div edi
inc eax
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x18]
mov esi, ecx
sub esi, dword [esp + 0x1c]
dec eax
mov ecx, dword [esp + 0xc]
xor edx, edx
add ecx, esi
add ecx, edi
add eax, ecx
mov ecx, dword [ebp + 0x14]
div edi
add ecx, esi
xor edx, edx
mov esi, dword [esp + 0x3c]
xor edi, edi
mov dword [esp + 0x10], eax
mov eax, ecx
div esi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0xc]
add eax, ecx
mov dword [esp + 0x44], edx
xor edx, edx
mov dword [esp + 0x34], edi
div esi
mov edx, dword [esp + 0x10]
xor ecx, ecx
cmp byte [ebp + 0x24], cl
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x24]
setne cl
add ecx, eax
mov dword [esp + 0x2c], ecx
cmp edx, ecx
mov ecx, edx
jbe 0x597f44
sub ecx, eax
mov edi, ecx
imul edi, esi
mov dword [esp + 0x34], edi
jmp 0x597f46
sub ecx, eax
cmp dword [esp + 0x2c], edx
sbb eax, eax
and eax, ecx
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x28]
shl eax, 3
cmp byte [ebp + 0x24], 0
mov dword [esp + 0x18], eax
jne 0x59802b
lea eax, [eax + esi*8]
push esi
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1bc]
push 0
push eax
call fcn.0062b6a0
mov eax, dword [ebp + 0x20]
add esp, 0xc
cmp eax, 0x80
ja 0x59859a
push eax
push dword [esp + 0x60]
lea eax, [esp + 0x1c0]
push eax
call fcn.0062b120
movaps xmm2, xmmword [str.6666666666666666]
add esp, 0xc
xor eax, eax
nop dword [eax]
movups xmm0, xmmword [esp + eax + 0x1b8]
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [esp + eax + 0x1b8], xmm1
movups xmm0, xmmword [esp + eax + 0x1c8]
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [esp + eax + 0x1c8], xmm1
movups xmm0, xmmword [esp + eax + 0x1d8]
movaps xmm1, xmm2
pxor xmm0, xmm2
movups xmmword [esp + eax + 0x1d8], xmm0
movups xmm0, xmmword [esp + eax + 0x1e8]
pxor xmm1, xmm0
movups xmmword [esp + eax + 0x1e8], xmm1
add eax, 0x40
cmp eax, esi
jb 0x597fb0
lea eax, [esp + 0x1b8]
push eax
lea eax, [esp + 0x94]
push eax
call dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
add esp, 8
mov ecx, eax
shr ecx, 0x18
mov dword [esp + 0x28], ecx
mov ecx, eax
shr ecx, 0x10
shr eax, 8
cmp byte [esp + 0xb], 0
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x10], eax
je 0x598094
mov eax, dword [esp + 0xc]
add eax, 0xfffffffc
push eax
lea eax, [esp + 0x16c]
push 0
push eax
call fcn.0062b6a0
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x34]
mov byte [esp + ecx + 0x170], al
mov eax, dword [esp + 0x38]
mov byte [esp + ecx + 0x171], al
mov eax, dword [esp + 0x1c]
mov byte [esp + ecx + 0x172], al
mov eax, dword [esp + 0x24]
mov byte [esp + ecx + 0x173], al
jmp 0x5980d7
push dword [esp + 0xc]
lea eax, [esp + 0x16c]
push 0
push eax
call fcn.0062b6a0
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x34]
mov byte [esp + ecx + 0x16f], al
mov eax, dword [esp + 0x38]
mov byte [esp + ecx + 0x16e], al
mov eax, dword [esp + 0x1c]
mov byte [esp + ecx + 0x16d], al
mov eax, dword [esp + 0x24]
mov byte [esp + ecx + 0x16c], al
add esp, 0xc
test edi, edi
je 0x598223
cmp byte [ebp + 0x24], 0
je 0x59819e
mov eax, dword [esp + 0x4c]
cmp eax, esi
jbe 0x59859a
push dword [esp + 0x48]
sub eax, esi
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x94]
push eax
call dword [esp + 0x1c]
push dword [esp + 0x20]
mov eax, dword [esp + 0x54]
add eax, esi
push eax
lea eax, [esp + 0x248]
push eax
call fcn.0062b120
mov eax, esi
sub eax, dword [esp + 0x2c]
push eax
push dword [esp + 0x50]
lea eax, [esp + 0x254]
add eax, dword [esp + 0x34]
push eax
call fcn.0062b120
lea eax, [esp + 0x258]
push eax
lea eax, [esp + 0xb4]
push eax
call dword [esp + 0x3c]
xor edx, edx
mov eax, edi
div esi
add esp, 0x28
dec eax
cmp eax, 1
jbe 0x598223
mov edi, dword [esp + 0x38]
sub edi, dword [esp + 0x18]
add edi, esi
dec eax
mov dword [esp + 0x10], eax
nop dword [eax + eax]
lea eax, [esp + 0x90]
push edi
push eax
call dword [esp + 0x1c]
add esp, 8
add edi, esi
sub dword [esp + 0x10], 1
jne 0x598180
jmp 0x59821f
mov ecx, dword [esp + 0x48]
mov eax, dword [ecx + 8]
movq xmm0, qword [ecx]
mov dword [esp + 0x240], eax
mov al, byte [ecx + 0xc]
mov byte [esp + 0x244], al
lea eax, [esi - 0xd]
push eax
push dword [esp + 0x3c]
lea eax, [esp + 0x24d]
movq qword [esp + 0x240], xmm0
push eax
call fcn.0062b120
lea eax, [esp + 0x244]
push eax
lea eax, [esp + 0xa0]
push eax
call dword [esp + 0x28]
xor edx, edx
mov eax, edi
div esi
add esp, 0x14
cmp eax, 1
jbe 0x598223
lea edi, [esi - 0xd]
add edi, dword [esp + 0x38]
dec eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0x90]
push edi
push eax
call dword [esp + 0x1c]
add esp, 8
add edi, esi
sub dword [esp + 0x10], 1
jne 0x598206
mov edi, dword [esp + 0x34]
push 0x40
lea eax, [esp + 0x17c]
push 0
push eax
call fcn.0062b6a0
mov eax, dword [esp + 0x30]
add esp, 0xc
mov ecx, dword [esp + 0x50]
add eax, ecx
mov dword [esp + 0x70], eax
cmp ecx, eax
ja 0x5984da
mov eax, dword [esp + 0x44]
neg dword [esp + 0x44]
lea edx, [eax + 1]
shr eax, 0x1f
mov dword [esp + 0x60], eax
mov eax, edx
shr eax, 0x1f
mov dword [esp + 0x68], edx
mov edx, esi
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xc]
sub edx, eax
sub eax, esi
mov dword [esp + 0x6c], edx
lea eax, [esp + eax + 0x168]
mov dword [esp + 0x18], eax
mov eax, ecx
xor esi, esi
xor eax, dword [esp + 0x64]
lea edx, [eax - 1]
not eax
shr eax, 0x1f
shr edx, 0x1f
and dl, al
mov eax, ecx
xor eax, dword [esp + 0x74]
neg dl
mov dword [esp + 0x2c], edx
lea ecx, [eax - 1]
not eax
shr ecx, 0x1f
shr eax, 0x1f
and cl, al
neg cl
movsx eax, cl
mov dword [esp + 0x34], ecx
not cl
or cl, dl
mov byte [esp + 0x23], cl
mov ecx, dword [esp + 0x44]
movd xmm0, eax
mov eax, dword [esp + 0x18]
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
pshufd xmm0, xmm0, 0
movaps xmmword [esp + 0x80], xmm0
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], eax
nop dword [eax]
mov edx, dword [esp + 0x4c]
mov byte [esp + 0xb], 0
cmp edi, edx
jae 0x598303
mov eax, dword [esp + 0x48]
jmp 0x598312
mov eax, dword [ebp + 0x18]
add eax, edx
cmp edi, eax
jae 0x598319
mov eax, dword [esp + 0x38]
sub eax, edx
mov al, byte [eax + edi]
mov byte [esp + 0xb], al
mov eax, dword [esp + 0x60]
mov edx, esi
shr ecx, 0x1f
inc edi
xor cl, al
shr edx, 0x1f
xor al, dl
or cl, al
mov eax, dword [esp + 0x2c]
xor cl, dl
movzx eax, al
dec cl
movzx ecx, cl
and ecx, eax
mov dword [esp + 0x40], ecx
not ecx
mov dword [esp + 0xc], ecx
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x40]
and al, byte [esp + 0xb]
and cl, 0x80
or cl, al
mov al, dl
xor al, byte [esp + 0x10]
mov dword [esp + 0x40], ecx
mov ecx, esi
sub ecx, dword [esp + 0x68]
shr ecx, 0x1f
xor cl, byte [esp + 0x10]
or cl, al
xor cl, dl
mov edx, dword [esp + 0x40]
dec cl
and cl, byte [esp + 0x2c]
not cl
and cl, byte [esp + 0x23]
and dl, cl
cmp esi, dword [esp + 0x6c]
jb 0x5983ad
mov eax, dword [esp + 0x34]
movzx eax, al
mov dword [esp + 0x40], eax
not eax
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x40]
and cl, byte [eax]
mov eax, dword [esp + 0xc]
and dl, al
or dl, cl
mov ecx, dword [esp + 0x28]
inc dword [esp + 0x24]
inc ecx
mov byte [esp + esi + 0x2b8], dl
inc esi
mov dword [esp + 0x28], ecx
cmp esi, dword [esp + 0x3c]
jb 0x5982f0
lea eax, [esp + 0x2b8]
push eax
lea eax, [esp + 0x94]
push eax
call dword [esp + 0x1c]
lea eax, [esp + 0x2c0]
push eax
lea eax, [esp + 0x9c]
push eax
call dword [esp + 0x40]
mov edx, dword [esp + 0x2c]
add esp, 0x10
xor eax, eax
cmp edx, 0x40
jb 0x5984ab
movaps xmm2, xmmword [esp + 0x80]
mov ecx, edx
and ecx, 0xffffffc0
nop dword [eax]
nop word [eax + eax]
movups xmm0, xmmword [esp + eax + 0x178]
movups xmm1, xmmword [esp + eax + 0x2b8]
pand xmm1, xmm2
por xmm1, xmm0
movups xmmword [esp + eax + 0x178], xmm1
movups xmm0, xmmword [esp + eax + 0x188]
movups xmm1, xmmword [esp + eax + 0x2c8]
pand xmm1, xmm2
por xmm1, xmm0
movups xmmword [esp + eax + 0x188], xmm1
movups xmm0, xmmword [esp + eax + 0x198]
movups xmm1, xmmword [esp + eax + 0x2d8]
pand xmm1, xmm2
por xmm1, xmm0
movups xmmword [esp + eax + 0x198], xmm1
movups xmm1, xmmword [esp + eax + 0x2e8]
movups xmm0, xmmword [esp + eax + 0x1a8]
pand xmm1, xmm2
por xmm1, xmm0
movups xmmword [esp + eax + 0x1a8], xmm1
add eax, 0x40
cmp eax, ecx
jb 0x598420
cmp eax, edx
jae 0x5984c7
nop
mov cl, byte [esp + eax + 0x2b8]
and cl, byte [esp + 0x34]
or byte [esp + eax + 0x178], cl
inc eax
cmp eax, edx
jb 0x5984b0
mov ecx, dword [esp + 0x50]
inc ecx
mov dword [esp + 0x50], ecx
cmp ecx, dword [esp + 0x70]
jbe 0x598285
push 0x18
mov dword [0x70e32c], 0
call fcn.0063274d
mov esi, eax
add esp, 4
test esi, esi
je 0x59858a
mov eax, dword [esp + 0x54]
xorps xmm0, xmm0
movups xmmword [esi], xmm0
movq qword [esi + 0x10], xmm0
test eax, eax
je 0x59850d
mov eax, dword [eax]
push 0
push eax
push esi
call fcn.00478380
add esp, 0xc
test eax, eax
jle 0x59858a
cmp byte [ebp + 0x24], 0
je 0x5985b0
mov edi, dword [esp + 0x58]
lea eax, [esp + 0x1b8]
push edi
push 0x5c
push eax
call fcn.0062b6a0
mov eax, dword [ebp + 0x20]
add esp, 0xc
test eax, eax
je 0x598557
push eax
push dword [esp + 0x60]
mov eax, dword [esi + 0x14]
push esi
call eax
add esp, 0xc
test eax, eax
jle 0x59858a
push edi
lea eax, [esp + 0x1bc]
push eax
mov eax, dword [esi + 0x14]
push esi
call eax
add esp, 0xc
test eax, eax
jle 0x59858a
push dword [esp + 0x1c]
lea eax, [esp + 0x17c]
push eax
mov eax, dword [esi + 0x14]
push esi
call eax
add esp, 0xc
test eax, eax
jg 0x59865a
mov ecx, esi
call fcn.00478250
push esi
call fcn.0062f047
add esp, 4
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x334]
xor ecx, esp
call fcn.0062844a
mov esp, ebp
pop ebp
ret
movaps xmm2, xmmword [0x6fe2c0]
xor eax, eax
mov ecx, dword [esp + 0x3c]
nop dword [eax]
movups xmm0, xmmword [esp + eax + 0x1b8]
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [esp + eax + 0x1b8], xmm1
movups xmm0, xmmword [esp + eax + 0x1c8]
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [esp + eax + 0x1c8], xmm1
movups xmm0, xmmword [esp + eax + 0x1d8]
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [esp + eax + 0x1d8], xmm1
movups xmm0, xmmword [esp + eax + 0x1e8]
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [esp + eax + 0x1e8], xmm1
add eax, 0x40
cmp eax, ecx
jb 0x5985c0
push ecx
lea eax, [esp + 0x1bc]
push eax
mov eax, dword [esi + 0x14]
push esi
call eax
add esp, 0xc
test eax, eax
jle 0x59858a
push dword [esp + 0x1c]
lea eax, [esp + 0x17c]
push eax
mov eax, dword [esi + 0x14]
push esi
call eax
add esp, 0xc
test eax, eax
jle 0x59858a
mov edx, dword [esp + 0x78]
lea eax, [esp + 0x54]
push eax
mov ecx, esi
call fcn.00478610
add esp, 4
test eax, eax
je 0x59867f
mov ecx, dword [esp + 0x7c]
test ecx, ecx
je 0x59867f
mov eax, dword [esp + 0x54]
mov dword [ecx], eax
mov ecx, esi
call fcn.00478250
push esi
call fcn.0062f047
mov ecx, dword [esp + 0x340]
add esp, 4
mov eax, 1
pop edi
pop esi
xor ecx, esp
call fcn.0062844a
mov esp, ebp
pop ebp
ret