Function at 0x596fc0
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.00626ba0
mov eax, dword [0x70a514]
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 0x5978aa
test edx, edx
jne 0x59703a
xor eax, eax
jmp 0x59703c
mov eax, dword [edx]
mov eax, dword [eax]
cmp eax, 0x2a0
jg 0x5970f5
je 0x5970c7
cmp eax, 4
je 0x597087
cmp eax, 0x40
jne 0x597106
lea ecx, [esp + 0x90]
call fcn.0048f9c0
test eax, eax
jle 0x5978aa
mov dword [esp + 0x30], 0x596c60
mov eax, 0x14
mov dword [esp + 0x14], 0x48f840
jmp 0x5971a7
lea eax, [esp + 0x90]
push eax
call fcn.00481290
add esp, 4
test eax, eax
jle 0x5978aa
mov esi, 0x30
mov dword [esp + 0x30], 0x596be0
mov dword [esp + 0x14], 0x481150
mov eax, 0x10
mov dword [esp + 0x58], esi
mov byte [esp + 0xb], 0
jmp 0x5971a7
lea ecx, [esp + 0x90]
call fcn.0048e950
test eax, eax
jle 0x5978aa
mov dword [esp + 0x30], 0x596d00
mov eax, 0x20
mov dword [esp + 0x14], 0x48eaa0
jmp 0x5971a7
sub eax, 0x2a1
je 0x59716d
sub eax, 1
je 0x597155
sub eax, 1
je 0x59712a
test ecx, ecx
je 0x5978aa
mov dword [ecx], 0
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x334]
xor ecx, esp
call fcn.00626a7a
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x90]
call fcn.0048e8f0
test eax, eax
jle 0x5978aa
mov dword [esp + 0x30], 0x596d00
mov eax, 0x1c
mov dword [esp + 0x14], 0x48eaa0
jmp 0x5971a7
lea ecx, [esp + 0x90]
call fcn.0048ee40
test eax, eax
jle 0x5978aa
mov eax, edi
jmp 0x597186
lea ecx, [esp + 0x90]
call fcn.0048ed90
test eax, eax
jle 0x5978aa
mov eax, 0x30
mov edi, 0x80
mov dword [esp + 0xc], 0x10
mov dword [esp + 0x3c], edi
mov dword [esp + 0x14], 0x48f730
mov dword [esp + 0x30], 0x596df0
cmp byte [ebp + 0x24], 0
mov ecx, 0xd
mov dword [esp + 0x1c], eax
mov dword [esp + 0x4c], ecx
je 0x5971d0
mov ecx, dword [ebp + 0x20]
add ecx, 0xb
mov dword [esp + 0x24], 2
add ecx, esi
mov dword [esp + 0x4c], ecx
jmp 0x5971e0
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 0x597254
sub ecx, eax
mov edi, ecx
imul edi, esi
mov dword [esp + 0x34], edi
jmp 0x597256
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 0x59733b
lea eax, [eax + esi*8]
push esi
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1bc]
push 0
push eax
call fcn.00629cd0
mov eax, dword [ebp + 0x20]
add esp, 0xc
cmp eax, 0x80
ja 0x5978aa
push eax
push dword [esp + 0x60]
lea eax, [esp + 0x1c0]
push eax
call fcn.00629750
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 0x5972c0
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 0x5973a4
mov eax, dword [esp + 0xc]
add eax, 0xfffffffc
push eax
lea eax, [esp + 0x16c]
push 0
push eax
call fcn.00629cd0
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 0x5973e7
push dword [esp + 0xc]
lea eax, [esp + 0x16c]
push 0
push eax
call fcn.00629cd0
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 0x597533
cmp byte [ebp + 0x24], 0
je 0x5974ae
mov eax, dword [esp + 0x4c]
cmp eax, esi
jbe 0x5978aa
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.00629750
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.00629750
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 0x597533
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 0x597490
jmp 0x59752f
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.00629750
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 0x597533
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 0x597516
mov edi, dword [esp + 0x34]
push 0x40
lea eax, [esp + 0x17c]
push 0
push eax
call fcn.00629cd0
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 0x5977ea
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 0x597613
mov eax, dword [esp + 0x48]
jmp 0x597622
mov eax, dword [ebp + 0x18]
add eax, edx
cmp edi, eax
jae 0x597629
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 0x5976bd
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 0x597600
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 0x5977bb
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 0x597730
cmp eax, edx
jae 0x5977d7
nop
mov cl, byte [esp + eax + 0x2b8]
and cl, byte [esp + 0x34]
or byte [esp + eax + 0x178], cl
inc eax
cmp eax, edx
jb 0x5977c0
mov ecx, dword [esp + 0x50]
inc ecx
mov dword [esp + 0x50], ecx
cmp ecx, dword [esp + 0x70]
jbe 0x597595
push 0x18
mov dword [0x70b32c], 0
call fcn.00630d7d
mov esi, eax
add esp, 4
test esi, esi
je 0x59789a
mov eax, dword [esp + 0x54]
xorps xmm0, xmm0
movups xmmword [esi], xmm0
movq qword [esi + 0x10], xmm0
test eax, eax
je 0x59781d
mov eax, dword [eax]
push 0
push eax
push esi
call fcn.00471ba0
add esp, 0xc
test eax, eax
jle 0x59789a
cmp byte [ebp + 0x24], 0
je 0x5978c0
mov edi, dword [esp + 0x58]
lea eax, [esp + 0x1b8]
push edi
push 0x5c
push eax
call fcn.00629cd0
mov eax, dword [ebp + 0x20]
add esp, 0xc
test eax, eax
je 0x597867
push eax
push dword [esp + 0x60]
mov eax, dword [esi + 0x14]
push esi
call eax
add esp, 0xc
test eax, eax
jle 0x59789a
push edi
lea eax, [esp + 0x1bc]
push eax
mov eax, dword [esi + 0x14]
push esi
call eax
add esp, 0xc
test eax, eax
jle 0x59789a
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 0x59796a
mov ecx, esi
call fcn.00471a70
push esi
call fcn.0062d677
add esp, 4
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x334]
xor ecx, esp
call fcn.00626a7a
mov esp, ebp
pop ebp
ret
movaps xmm2, xmmword [0x6fbd50]
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 0x5978d0
push ecx
lea eax, [esp + 0x1bc]
push eax
mov eax, dword [esi + 0x14]
push esi
call eax
add esp, 0xc
test eax, eax
jle 0x59789a
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 0x59789a
mov edx, dword [esp + 0x78]
lea eax, [esp + 0x54]
push eax
mov ecx, esi
call fcn.00471e30
add esp, 4
test eax, eax
je 0x59798f
mov ecx, dword [esp + 0x7c]
test ecx, ecx
je 0x59798f
mov eax, dword [esp + 0x54]
mov dword [ecx], eax
mov ecx, esi
call fcn.00471a70
push esi
call fcn.0062d677
mov ecx, dword [esp + 0x340]
add esp, 4
mov eax, 1
pop edi
pop esi
xor ecx, esp
call fcn.00626a7a
mov esp, ebp
pop ebp
ret