Function at 0x59dbc0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x74ec57
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.00522760
add esp, 0xc
lea ecx, [ebp - 0xc0]
mov dword [ebp - 4], 0
call fcn.00522500
test al, al
jne 0x59e38e
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0xc0]
call fcn.005225f0
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x4c]
call fcn.00521d00
lea eax, [ebp - 0x90]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x4c]
call fcn.00522070
lea eax, [ebp - 0x90]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x64]
call fcn.0051e590
test al, al
je 0x59e37b
lea ecx, [ebp - 0x64]
call fcn.004ce250
lea ecx, [ebp - 0xd8]
mov dword [ebp - 0x18], eax
push ecx
mov ecx, eax
call fcn.005226d0
mov dword [ebp - 0x1c], eax
mov esi, eax
cmp dword [eax + 0x14], 0x10
mov edi, dword [eax + 0x10]
jb 0x59dc8f
mov esi, dword [eax]
xor ecx, ecx
mov edx, 0x811c9dc5
test edi, edi
je 0x59dcb4
nop word [eax + eax]
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x59dca0
mov eax, dword [ebp - 0x1c]
push edx
push eax
lea eax, [ebp - 0xf8]
mov ecx, 0xafe884
push eax
call fcn.00502680
mov ecx, dword [0xafe888]
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 0x59dd1d
mov ecx, dword [ebp - 0xd8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x59dd0d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x59e3b0
push edx
push ecx
call fcn.00516d60
mov ecx, dword [0xafe888]
add esp, 8
mov dword [ebp - 0xc8], 0
mov dword [ebp - 0xc4], 0xf
mov byte [ebp - 0xd8], 0
cmp esi, ecx
je 0x59e35c
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0xb0]
push eax
call fcn.00523840
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.00522db0
test eax, eax
je 0x59dd94
cmp eax, 0x7ffffff
ja 0x59e3ab
push eax
lea ecx, [ebp - 0x28]
call fcn.0059d960
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.00521fd0
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x50]
call fcn.00521ce0
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x50]
call fcn.00522050
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0051e570
test al, al
je 0x59e2d3
nop
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0051e610
push str.arch
lea eax, [ebp - 0x100]
push eax
lea ecx, [ebp - 0x5c]
call fcn.0051e5b0
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.00522350
mov dword [ebp - 0x1c], eax
mov esi, eax
cmp dword [eax + 0x14], 0x10
mov edi, dword [eax + 0x10]
jb 0x59de3e
mov esi, dword [eax]
xor eax, eax
mov edx, 0x811c9dc5
test edi, edi
je 0x59de61
nop dword [eax]
movzx ecx, byte [eax + esi]
inc eax
xor ecx, edx
imul edx, ecx, 0x1000193
cmp eax, edi
jb 0x59de50
push edx
push dword [ebp - 0x1c]
lea eax, [ebp - 0x108]
mov ecx, 0xafe8a4
push eax
call fcn.00502680
mov ecx, dword [0xafe8a8]
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 0x59dec1
mov ecx, dword [ebp - 0xf0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x59deb7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x59e3b0
push edx
push ecx
call fcn.00516d60
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 0x59df1a
mov ecx, dword [ebp - 0xa8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x59df10
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x59e3b0
push edx
push ecx
call fcn.00516d60
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.0051e5b0
mov ecx, eax
call fcn.0051de10
test al, al
je 0x59dfb1
push str.fallbackArch
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x5c]
call fcn.0051e5b0
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.00522350
mov ecx, dword [ebp - 0x14]
or ecx, 2
mov dword [ebp - 0x14], ecx
cmp dword [eax + 0x10], esi
je 0x59dfb4
mov byte [ebp - 0xd], 1
jmp 0x59dfb8
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 0xd], 0
test cl, 2
je 0x59e00c
mov edx, dword [ebp - 0x68]
and ecx, 0xfffffffd
mov dword [ebp - 0x14], ecx
cmp edx, 0x10
jb 0x59dffa
mov ecx, dword [ebp - 0x7c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x59dfed
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x59e3b0
push edx
push ecx
call fcn.00516d60
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 0x59e052
mov edx, dword [ebp - 0x34]
and ecx, 0xfffffffe
mov dword [ebp - 0x14], ecx
cmp edx, 0x10
jb 0x59e052
mov ecx, dword [ebp - 0x48]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x59e048
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x59e3b0
push edx
push ecx
call fcn.00516d60
add esp, 8
cmp byte [ebp - 0xd], 0
je 0x59e182
push str.fallbackArch
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x5c]
call fcn.0051e5b0
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.00522350
mov dword [ebp - 0x30], eax
mov esi, eax
cmp dword [eax + 0x14], 0x10
mov edi, dword [eax + 0x10]
jb 0x59e0ac
mov esi, dword [eax]
xor ecx, ecx
mov edx, 0x811c9dc5
test edi, edi
je 0x59e0cb
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x59e0b7
mov eax, dword [ebp - 0x30]
push edx
push eax
lea eax, [ebp - 0x128]
mov ecx, 0xafe8a4
push eax
call fcn.00502680
mov esi, dword [0xafe8a8]
mov edx, dword [ebp - 0x68]
mov eax, dword [eax + 4]
test eax, eax
cmovne esi, eax
cmp edx, 0x10
jb 0x59e120
mov ecx, dword [ebp - 0x7c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x59e116
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x59e3b0
push edx
push ecx
call fcn.00516d60
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 0x59e16a
mov ecx, dword [ebp - 0x48]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x59e160
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x59e3b0
push edx
push ecx
call fcn.00516d60
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.0051e5b0
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.00522350
mov ecx, dword [ebp - 0x80]
mov edx, dword [ebp - 0x24]
add ecx, 0x20
mov byte [ebp - 4], 8
cmp edx, dword [ebp - 0x18]
je 0x59e21a
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 0x59e22f
lea esi, [ebp - 0x1c]
push esi
push eax
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.0059d220
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x68]
mov byte [ebp - 4], 7
cmp edx, 0x10
jb 0x59e267
mov ecx, dword [ebp - 0x7c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x59e25d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x59e3b0
push edx
push ecx
call fcn.00516d60
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 0x59e2b1
mov ecx, dword [ebp - 0x48]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x59e2a7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x59e3b0
push edx
push ecx
call fcn.00516d60
add esp, 8
lea ecx, [ebp - 0x2c]
call fcn.0051e6d0
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0051e570
test al, al
jne 0x59ddd0
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.0059d320
mov ecx, dword [eax]
lea eax, [ebp - 0x28]
add ecx, 0xc
cmp ecx, eax
je 0x59e305
push dword [ebp + 0xc]
push edi
push esi
call fcn.0059d040
mov byte [ebp - 4], 2
test esi, esi
je 0x59e35c
lea eax, [ebp - 0x28]
push eax
push edi
push esi
call fcn.00489c30
mov ecx, dword [ebp - 0x18]
add esp, 0xc
sub ecx, esi
mov eax, esi
and ecx, 0xffffffe0
cmp ecx, 0x1000
jb 0x59e33d
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x59e3b0
push ecx
push esi
call fcn.00516d60
add esp, 8
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x64]
call fcn.0051e6e0
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0x64]
call fcn.0051e590
test al, al
jne 0x59dc66
lea ecx, [ebp - 0x90]
call fcn.0049a6e0
lea ecx, [ebp - 0x64]
call fcn.0049a6e0
lea ecx, [ebp - 0xc0]
call fcn.0051e4a0
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 8
call fcn.00495500
call fcn.0070f5b4
int3