Function at 0x58a540
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x73d837
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.0050f9e0
add esp, 0xc
lea ecx, [ebp - 0xc0]
mov dword [ebp - 4], 0
call fcn.0050f7a0
test al, al
jne 0x58ad0e
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0xc0]
call fcn.0050f8b0
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x4c]
call fcn.0050f030
lea eax, [ebp - 0x90]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x4c]
call fcn.0050f370
lea eax, [ebp - 0x90]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x64]
call fcn.0050b8c0
test al, al
je 0x58acfb
lea ecx, [ebp - 0x64]
call fcn.004c4540
lea ecx, [ebp - 0xd8]
mov dword [ebp - 0x18], eax
push ecx
mov ecx, eax
call fcn.0050f990
mov dword [ebp - 0x1c], eax
mov esi, eax
cmp dword [eax + 0x14], 0x10
mov edi, dword [eax + 0x10]
jb 0x58a60f
mov esi, dword [eax]
xor ecx, ecx
mov edx, 0x811c9dc5
test edi, edi
je 0x58a634
nop word [eax + eax]
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x58a620
mov eax, dword [ebp - 0x1c]
push edx
push eax
lea eax, [ebp - 0xf8]
mov ecx, 0xaea54c
push eax
call fcn.00493390
mov ecx, dword [0xaea550]
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 0x58a69d
mov ecx, dword [ebp - 0xd8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x58a68d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x58ad30
push edx
push ecx
call fcn.00503df0
mov ecx, dword [0xaea550]
add esp, 8
mov dword [ebp - 0xc8], 0
mov dword [ebp - 0xc4], 0xf
mov byte [ebp - 0xd8], 0
cmp esi, ecx
je 0x58acdc
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0xb0]
push eax
call fcn.00510ac0
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.00510060
test eax, eax
je 0x58a714
cmp eax, 0x7ffffff
ja 0x58ad2b
push eax
lea ecx, [ebp - 0x28]
call fcn.0058a280
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.0050f2d0
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x50]
call fcn.0050f010
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x50]
call fcn.0050f350
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0050b8a0
test al, al
je 0x58ac53
nop
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0050b940
push str.arch
lea eax, [ebp - 0x100]
push eax
lea ecx, [ebp - 0x5c]
call fcn.0050b8e0
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.0050f650
mov dword [ebp - 0x1c], eax
mov esi, eax
cmp dword [eax + 0x14], 0x10
mov edi, dword [eax + 0x10]
jb 0x58a7be
mov esi, dword [eax]
xor eax, eax
mov edx, 0x811c9dc5
test edi, edi
je 0x58a7e1
nop dword [eax]
movzx ecx, byte [eax + esi]
inc eax
xor ecx, edx
imul edx, ecx, 0x1000193
cmp eax, edi
jb 0x58a7d0
push edx
push dword [ebp - 0x1c]
lea eax, [ebp - 0x108]
mov ecx, 0xaea56c
push eax
call fcn.00493390
mov ecx, dword [0xaea570]
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 0x58a841
mov ecx, dword [ebp - 0xf0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x58a837
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x58ad30
push edx
push ecx
call fcn.00503df0
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 0x58a89a
mov ecx, dword [ebp - 0xa8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x58a890
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x58ad30
push edx
push ecx
call fcn.00503df0
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.0050b8e0
mov ecx, eax
call fcn.0050f890
test al, al
je 0x58a931
push str.fallbackArch
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x5c]
call fcn.0050b8e0
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.0050f650
mov ecx, dword [ebp - 0x14]
or ecx, 2
mov dword [ebp - 0x14], ecx
cmp dword [eax + 0x10], esi
je 0x58a934
mov byte [ebp - 0xd], 1
jmp 0x58a938
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 0xd], 0
test cl, 2
je 0x58a98c
mov edx, dword [ebp - 0x68]
and ecx, 0xfffffffd
mov dword [ebp - 0x14], ecx
cmp edx, 0x10
jb 0x58a97a
mov ecx, dword [ebp - 0x7c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x58a96d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x58ad30
push edx
push ecx
call fcn.00503df0
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 0x58a9d2
mov edx, dword [ebp - 0x34]
and ecx, 0xfffffffe
mov dword [ebp - 0x14], ecx
cmp edx, 0x10
jb 0x58a9d2
mov ecx, dword [ebp - 0x48]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x58a9c8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x58ad30
push edx
push ecx
call fcn.00503df0
add esp, 8
cmp byte [ebp - 0xd], 0
je 0x58ab02
push str.fallbackArch
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x5c]
call fcn.0050b8e0
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.0050f650
mov dword [ebp - 0x30], eax
mov esi, eax
cmp dword [eax + 0x14], 0x10
mov edi, dword [eax + 0x10]
jb 0x58aa2c
mov esi, dword [eax]
xor ecx, ecx
mov edx, 0x811c9dc5
test edi, edi
je 0x58aa4b
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x58aa37
mov eax, dword [ebp - 0x30]
push edx
push eax
lea eax, [ebp - 0x128]
mov ecx, 0xaea56c
push eax
call fcn.00493390
mov esi, dword [0xaea570]
mov edx, dword [ebp - 0x68]
mov eax, dword [eax + 4]
test eax, eax
cmovne esi, eax
cmp edx, 0x10
jb 0x58aaa0
mov ecx, dword [ebp - 0x7c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x58aa96
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x58ad30
push edx
push ecx
call fcn.00503df0
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 0x58aaea
mov ecx, dword [ebp - 0x48]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x58aae0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x58ad30
push edx
push ecx
call fcn.00503df0
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.0050b8e0
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.0050f650
mov ecx, dword [ebp - 0x80]
mov edx, dword [ebp - 0x24]
add ecx, 0x20
mov byte [ebp - 4], 8
cmp edx, dword [ebp - 0x18]
je 0x58ab9a
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 0x58abaf
lea esi, [ebp - 0x1c]
push esi
push eax
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00589b40
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x68]
mov byte [ebp - 4], 7
cmp edx, 0x10
jb 0x58abe7
mov ecx, dword [ebp - 0x7c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x58abdd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x58ad30
push edx
push ecx
call fcn.00503df0
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 0x58ac31
mov ecx, dword [ebp - 0x48]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x58ac27
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x58ad30
push edx
push ecx
call fcn.00503df0
add esp, 8
lea ecx, [ebp - 0x2c]
call fcn.0050ba00
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0050b8a0
test al, al
jne 0x58a750
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.00589c40
mov ecx, dword [eax]
lea eax, [ebp - 0x28]
add ecx, 0xc
cmp ecx, eax
je 0x58ac85
push dword [ebp + 0xc]
push edi
push esi
call fcn.00589960
mov byte [ebp - 4], 2
test esi, esi
je 0x58acdc
lea eax, [ebp - 0x28]
push eax
push edi
push esi
call fcn.004816c0
mov ecx, dword [ebp - 0x18]
add esp, 0xc
sub ecx, esi
mov eax, esi
and ecx, 0xffffffe0
cmp ecx, 0x1000
jb 0x58acbd
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x58ad30
push ecx
push esi
call fcn.00503df0
add esp, 8
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x64]
call fcn.0050ba10
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0x64]
call fcn.0050b8c0
test al, al
jne 0x58a5e6
lea ecx, [ebp - 0x90]
call fcn.004920a0
lea ecx, [ebp - 0x64]
call fcn.004920a0
lea ecx, [ebp - 0xc0]
call fcn.0050b7d0
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 8
call fcn.0048d130
call fcn.006fee64
int3