Function at 0x597530
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x74a1f7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x12c
push esi
xor eax, eax
mov dword [ebp - 0x88], ecx
push edi
mov dword [ebp - 0x30], eax
push dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0xc0]
push dword [ebp + 8]
push eax
call fcn.0051e870
add esp, 0xc
lea ecx, [ebp - 0xc0]
mov dword [ebp - 4], 0
call fcn.0051e650
test al, al
jne 0x597cfe
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0xc0]
call fcn.0051e740
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x4c]
call fcn.0051dee0
lea eax, [ebp - 0x90]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x4c]
call fcn.0051e220
lea eax, [ebp - 0x90]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x64]
call fcn.0051a770
test al, al
je 0x597ceb
lea ecx, [ebp - 0x64]
call fcn.004cb340
lea ecx, [ebp - 0xd8]
mov dword [ebp - 0x18], eax
push ecx
mov ecx, eax
call fcn.0051e820
mov dword [ebp - 0x1c], eax
mov esi, eax
cmp dword [eax + 0x14], 0x10
mov edi, dword [eax + 0x10]
jb 0x5975ff
mov esi, dword [eax]
xor ecx, ecx
mov edx, 0x811c9dc5
test edi, edi
je 0x597624
nop word [eax + eax]
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x597610
mov eax, dword [ebp - 0x1c]
push edx
push eax
lea eax, [ebp - 0xf8]
mov ecx, 0xaf8224
push eax
call fcn.004cd330
mov ecx, dword [0xaf8228]
mov esi, ecx
mov edx, dword [ebp - 0xc4]
mov eax, dword [eax + 4]
test eax, eax
cmovne esi, eax
mov dword [ebp - 0x84], esi
cmp edx, 0x10
jb 0x59768d
mov ecx, dword [ebp - 0xd8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x59767d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x597d20
push edx
push ecx
call fcn.00512900
mov ecx, dword [0xaf8228]
add esp, 8
mov dword [ebp - 0xc8], 0
mov dword [ebp - 0xc4], 0xf
mov byte [ebp - 0xd8], 0
cmp esi, ecx
je 0x597ccc
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0xb0]
push eax
call fcn.0051f950
xor eax, eax
xor esi, esi
xor edi, edi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 3
call fcn.0051eef0
test eax, eax
je 0x597704
cmp eax, 0x7ffffff
ja 0x597d1b
push eax
lea ecx, [ebp - 0x28]
call fcn.00597270
mov eax, dword [ebp - 0x20]
mov esi, dword [ebp - 0x28]
mov edi, dword [ebp - 0x24]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0xb0]
call fcn.0051e180
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x50]
call fcn.0051dec0
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x50]
call fcn.0051e200
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0051a750
test al, al
je 0x597c43
nop
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0051a7f0
push str.arch
lea eax, [ebp - 0x100]
push eax
lea ecx, [ebp - 0x5c]
call fcn.0051a790
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 0xf
mov byte [ebp - 0xa8], 0
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 4
push ecx
lea ecx, [ebp - 0xf0]
push ecx
mov ecx, eax
call fcn.0051e500
mov dword [ebp - 0x1c], eax
mov esi, eax
cmp dword [eax + 0x14], 0x10
mov edi, dword [eax + 0x10]
jb 0x5977ae
mov esi, dword [eax]
xor eax, eax
mov edx, 0x811c9dc5
test edi, edi
je 0x5977d1
nop dword [eax]
movzx ecx, byte [eax + esi]
inc eax
xor ecx, edx
imul edx, ecx, 0x1000193
cmp eax, edi
jb 0x5977c0
push edx
push dword [ebp - 0x1c]
lea eax, [ebp - 0x108]
mov ecx, 0xaf8244
push eax
call fcn.004cd330
mov ecx, dword [0xaf8248]
mov edx, dword [ebp - 0xdc]
mov eax, dword [eax + 4]
test eax, eax
cmovne ecx, eax
mov dword [ebp - 0x80], ecx
cmp edx, 0x10
jb 0x597831
mov ecx, dword [ebp - 0xf0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x597827
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x597d20
push edx
push ecx
call fcn.00512900
add esp, 8
mov edx, dword [ebp - 0x94]
mov dword [ebp - 0xe0], 0
mov dword [ebp - 0xdc], 0xf
mov byte [ebp - 0xf0], 0
mov byte [ebp - 4], 3
cmp edx, 0x10
jb 0x59788a
mov ecx, dword [ebp - 0xa8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x597880
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x597d20
push edx
push ecx
call fcn.00512900
add esp, 8
push str.fallbackArch
lea eax, [ebp - 0x110]
mov dword [ebp - 0x98], 0
xor esi, esi
mov dword [ebp - 0x94], 0xf
push eax
lea ecx, [ebp - 0x5c]
mov byte [ebp - 0xa8], 0
mov dword [ebp - 0x1c], esi
call fcn.0051a790
mov ecx, eax
call fcn.0051a010
test al, al
je 0x597921
push str.fallbackArch
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x5c]
call fcn.0051a790
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], 0xf
mov byte [ebp - 0x48], 0
mov ecx, dword [ebp - 0x14]
or ecx, 1
mov byte [ebp - 4], 5
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x30], ecx
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x7c]
push ecx
mov ecx, eax
call fcn.0051e500
mov ecx, dword [ebp - 0x14]
or ecx, 2
mov dword [ebp - 0x14], ecx
cmp dword [eax + 0x10], esi
je 0x597924
mov byte [ebp - 0xd], 1
jmp 0x597928
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 0xd], 0
test cl, 2
je 0x59797c
mov edx, dword [ebp - 0x68]
and ecx, 0xfffffffd
mov dword [ebp - 0x14], ecx
cmp edx, 0x10
jb 0x59796a
mov ecx, dword [ebp - 0x7c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x59795d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x597d20
push edx
push ecx
call fcn.00512900
mov ecx, dword [ebp - 0x14]
add esp, 8
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0xf
mov byte [ebp - 0x7c], 0
mov dword [ebp - 4], 3
test cl, 1
je 0x5979c2
mov edx, dword [ebp - 0x34]
and ecx, 0xfffffffe
mov dword [ebp - 0x14], ecx
cmp edx, 0x10
jb 0x5979c2
mov ecx, dword [ebp - 0x48]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5979b8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x597d20
push edx
push ecx
call fcn.00512900
add esp, 8
cmp byte [ebp - 0xd], 0
je 0x597af2
push str.fallbackArch
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x5c]
call fcn.0051a790
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0xf
mov byte [ebp - 0x48], 0
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 6
push ecx
lea ecx, [ebp - 0x7c]
push ecx
mov ecx, eax
call fcn.0051e500
mov dword [ebp - 0x30], eax
mov esi, eax
cmp dword [eax + 0x14], 0x10
mov edi, dword [eax + 0x10]
jb 0x597a1c
mov esi, dword [eax]
xor ecx, ecx
mov edx, 0x811c9dc5
test edi, edi
je 0x597a3b
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x597a27
mov eax, dword [ebp - 0x30]
push edx
push eax
lea eax, [ebp - 0x128]
mov ecx, 0xaf8244
push eax
call fcn.004cd330
mov esi, dword [0xaf8248]
mov edx, dword [ebp - 0x68]
mov eax, dword [eax + 4]
test eax, eax
cmovne esi, eax
cmp edx, 0x10
jb 0x597a90
mov ecx, dword [ebp - 0x7c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x597a86
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x597d20
push edx
push ecx
call fcn.00512900
add esp, 8
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0xf
mov byte [ebp - 0x7c], 0
mov byte [ebp - 4], 3
cmp edx, 0x10
jb 0x597ada
mov ecx, dword [ebp - 0x48]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x597ad0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x597d20
push edx
push ecx
call fcn.00512900
add esp, 8
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0xf
mov byte [ebp - 0x48], 0
mov esi, dword [esi + 0x20]
mov dword [ebp - 0x1c], esi
push str.pathExtension
lea eax, [ebp - 0x130]
push eax
lea ecx, [ebp - 0x5c]
call fcn.0051a790
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0xf
mov byte [ebp - 0x48], 0
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 7
push ecx
lea ecx, [ebp - 0x7c]
push ecx
mov ecx, eax
call fcn.0051e500
mov ecx, dword [ebp - 0x80]
mov edx, dword [ebp - 0x24]
add ecx, 0x20
mov byte [ebp - 4], 8
cmp edx, dword [ebp - 0x18]
je 0x597b8a
mov ecx, dword [ecx]
movups xmm0, xmmword [eax]
movq xmm1, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov dword [edx], ecx
mov dword [edx + 4], 0
mov dword [edx + 0x14], 0
mov dword [edx + 0x18], 0
movups xmmword [edx + 4], xmm0
movq qword [edx + 0x14], xmm1
mov dword [edx + 0x1c], esi
add edx, 0x20
mov dword [ebp - 0x24], edx
jmp 0x597b9f
lea esi, [ebp - 0x1c]
push esi
push eax
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00596b30
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x68]
mov byte [ebp - 4], 7
cmp edx, 0x10
jb 0x597bd7
mov ecx, dword [ebp - 0x7c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x597bcd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x597d20
push edx
push ecx
call fcn.00512900
add esp, 8
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0xf
mov byte [ebp - 0x7c], 0
mov byte [ebp - 4], 3
cmp edx, 0x10
jb 0x597c21
mov ecx, dword [ebp - 0x48]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x597c17
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x597d20
push edx
push ecx
call fcn.00512900
add esp, 8
lea ecx, [ebp - 0x2c]
call fcn.0051a8b0
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0051a750
test al, al
jne 0x597740
mov esi, dword [ebp - 0x28]
mov edi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x84]
mov ecx, dword [ebp - 0x88]
add eax, 0x20
push eax
lea eax, [ebp - 0x138]
push eax
call fcn.00596c30
mov ecx, dword [eax]
lea eax, [ebp - 0x28]
add ecx, 0xc
cmp ecx, eax
je 0x597c75
push dword [ebp + 0xc]
push edi
push esi
call fcn.00596950
mov byte [ebp - 4], 2
test esi, esi
je 0x597ccc
lea eax, [ebp - 0x28]
push eax
push edi
push esi
call fcn.00486dd0
mov ecx, dword [ebp - 0x18]
add esp, 0xc
sub ecx, esi
mov eax, esi
and ecx, 0xffffffe0
cmp ecx, 0x1000
jb 0x597cad
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x597d20
push ecx
push esi
call fcn.00512900
add esp, 8
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x64]
call fcn.0051a8c0
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0x64]
call fcn.0051a770
test al, al
jne 0x5975d6
lea ecx, [ebp - 0x90]
call fcn.00497df0
lea ecx, [ebp - 0x64]
call fcn.00497df0
lea ecx, [ebp - 0xc0]
call fcn.0051a680
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 8
call fcn.00492e80
call fcn.0070b6e4
int3