Function at 0x100198e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10d8
call fcn.100790e0
mov eax, dword [0x100a5c90]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
xor ecx, ecx
push ecx
push 0x80
push 3
push ecx
push ecx
push SysReAllocString
push eax
mov dword [ebp - 0x10c8], edi
mov dword [edi + 0x1dc], ecx
mov dword [edi + 0x1e0], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x10cc], ebx
cmp ebx, 0xffffffff
je 0x100199c3
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
xor eax, eax
push eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov word [ebp - 0xc], ax
mov byte [ebp - 0xa], al
lea eax, [ebp - 0x10d0]
push eax
push 4
lea ecx, [ebp - 0x14]
push ecx
push ebx
call esi
cmp dword [ebp - 0x10d0], 4
jne 0x100199bc
lea edx, [ebp - 0x10d4]
push edx
lea eax, [ebp - 0x14]
push 0x100928a0
push eax
mov byte [ebp - 0x10], 0
call fcn.100679f1
mov edx, dword [ebp - 0x10d4]
add esp, 0xc
push 0
lea ecx, [ebp - 0x10d0]
push ecx
push edx
lea eax, [ebp - 0x434]
push eax
push ebx
call esi
mov eax, dword [ebp - 0x10d4]
mov esi, dword [ebp - 0x10d0]
cmp eax, esi
jne 0x100199bc
mov byte [ebp + eax - 0x434], 0
cmp esi, 0xffffffff
jne 0x100199df
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
call fcn.100192e0
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10066b1b
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x434]
push str._encry_mode_
push ecx
call fcn.10069320
add esp, 8
test eax, eax
je 0x100199bc
xor eax, eax
xor ecx, ecx
test esi, esi
jle 0x100199bc
nop
cmp ecx, 3
je 0x10019a1a
cmp byte [ebp + eax - 0x434], 9
jne 0x10019a10
inc ecx
inc eax
cmp eax, esi
jl 0x10019a00
cmp ecx, 3
jl 0x100199bc
xor ecx, ecx
cmp eax, esi
jge 0x10019a39
sub esi, eax
lea ecx, [ebp + eax - 0x434]
push esi
push ecx
lea edx, [ebp - 0x2c]
push edx
call fcn.10073cd0
add esp, 0xc
mov ecx, esi
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp + ecx - 0x2c], 0
call fcn.10067d5c
add esp, 4
push eax
lea edi, [ebp - 0x434]
mov esi, ebx
mov dword [ebp - 0x10d0], eax
call fcn.10019830
mov esi, eax
cmp esi, 0xffffffff
jne 0x10019a8c
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10c8]
call fcn.100192e0
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10066b1b
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x434]
push str._hardware_type_
push ecx
call fcn.10069320
add esp, 8
test eax, eax
je 0x10019a65
xor eax, eax
xor ecx, ecx
test esi, esi
jle 0x10019a65
lea esp, [esp]
cmp ecx, 3
je 0x10019aca
cmp byte [ebp + eax - 0x434], 9
jne 0x10019ac0
inc ecx
inc eax
cmp eax, esi
jl 0x10019ab0
cmp ecx, 3
jl 0x10019a65
mov edx, dword [ebp - 0x10c8]
xor ecx, ecx
mov dword [edx + 4], 0
cmp eax, esi
jge 0x10019af6
sub esi, eax
lea ecx, [ebp + eax - 0x434]
push esi
push ecx
lea eax, [ebp - 0x2c]
push eax
call fcn.10073cd0
add esp, 0xc
mov ecx, esi
mov byte [ebp + ecx - 0x2c], 0
lea ecx, [ebp - 0x2c]
push ecx
call fcn.10067d5c
mov edx, dword [ebp - 0x10c8]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x10d0]
add esp, 4
push eax
lea edi, [ebp - 0x434]
mov esi, ebx
call fcn.10019830
mov esi, eax
cmp esi, 0xffffffff
je 0x10019a65
mov ecx, edi
push str._hardware_No_
push ecx
call fcn.10069320
add esp, 8
test eax, eax
je 0x10019a65
xor eax, eax
xor ecx, ecx
test esi, esi
jle 0x10019a65
cmp ecx, 3
je 0x10019b71
cmp byte [ebp + eax - 0x434], 9
jne 0x10019b63
inc ecx
inc eax
cmp eax, esi
jl 0x10019b53
cmp ecx, 3
jl 0x10019a65
xor edx, edx
cmp eax, esi
jge 0x10019b97
mov ecx, dword [ebp - 0x10c8]
mov edx, esi
add ecx, 8
sub edx, eax
movzx edi, byte [ebp + eax - 0x434]
mov word [ecx], di
inc eax
add ecx, 2
cmp eax, esi
jl 0x10019b84
mov ebx, dword [ebp - 0x10c8]
xor eax, eax
mov word [ebx + edx*2 + 8], ax
movzx edx, ax
lea ecx, [eax + 0x20]
mov eax, edx
shl edx, 0x10
or eax, edx
lea edi, [ebp - 0x4b8]
rep stosd dword es:[edi], eax
lea ecx, [ebx + 8]
push ecx
stosw word es:[edi], ax
mov eax, dword [ebx + 4]
lea edx, [ebp - 0x4b8]
push 0x41
push edx
mov dword [ebp - 0x4bc], eax
call fcn.100676b5
mov edi, dword [ebx + 0x90]
lea eax, [ebp - 0x4bc]
add esp, 0xc
cmp eax, edi
jae 0x10019c37
mov eax, dword [ebx + 0x8c]
lea ecx, [ebp - 0x4bc]
cmp eax, ecx
ja 0x10019c37
sub ecx, eax
mov eax, 0x78787879
imul ecx
sar edx, 6
mov esi, edx
shr esi, 0x1f
add esi, edx
cmp edi, dword [ebx + 0x94]
jne 0x10019c1f
lea ecx, [ebx + 0x8c]
call fcn.1001c030
mov edi, dword [ebx + 0x90]
imul esi, esi, 0x88
add esi, dword [ebx + 0x8c]
test edi, edi
je 0x10019c61
jmp 0x10019c5a
cmp edi, dword [ebx + 0x94]
jne 0x10019c4a
lea ecx, [ebx + 0x8c]
call fcn.1001c030
mov edi, dword [ebx + 0x90]
test edi, edi
je 0x10019c61
lea esi, [ebp - 0x4bc]
mov ecx, 0x22
rep movsd dword es:[edi], dword [esi]
add dword [ebx + 0x90], 0x88
xor esi, esi
push 0x400
lea edx, [ebp - 0x10c0]
push esi
push edx
mov dword [ebp - 0x10c4], esi
call fcn.1006b580
xor eax, eax
movzx edx, ax
mov eax, edx
shl edx, 0x10
or eax, edx
mov dword [ebp - 0xcc0], esi
mov esi, dword [ebp - 0x10cc]
mov ecx, 0x200
lea edi, [ebp - 0xcbc]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x10d0]
add esp, 0xc
push eax
lea edi, [ebp - 0x434]
call fcn.10019830
mov edi, eax
cmp edi, 0xffffffff
je 0x10019e55
jmp 0x10019cd6
mov ebx, dword [ebp - 0x10c8]
lea ecx, [ebp - 0x434]
push str._unit_key_
push ecx
call fcn.10069320
add esp, 8
test eax, eax
je 0x10019e8d
xor esi, esi
xor eax, eax
test edi, edi
jle 0x10019e61
mov edi, edi
cmp eax, 3
je 0x10019d1e
cmp byte [ebp + esi - 0x434], 9
jne 0x10019d10
inc eax
inc esi
cmp esi, edi
jl 0x10019d00
cmp eax, 3
jl 0x10019e61
xor ecx, ecx
cmp esi, edi
jge 0x10019d48
lea edx, [ebp - 0x2c]
sub edx, esi
lea esp, [esp]
mov al, byte [ebp + esi - 0x434]
mov bl, 9
cmp al, bl
je 0x10019d4a
mov byte [edx + esi], al
inc esi
inc ecx
cmp esi, edi
jl 0x10019d30
jmp 0x10019d4a
mov bl, 9
lea edx, [ebp - 0x2c]
push edx
mov byte [ebp + ecx - 0x2c], 0
call fcn.10067d5c
inc esi
add esp, 4
mov dword [ebp - 0x10c4], eax
mov eax, 1
cmp esi, edi
jge 0x10019e75
nop
cmp eax, 3
jge 0x10019d8d
cmp byte [ebp + esi - 0x434], bl
jne 0x10019d84
inc esi
inc eax
cmp esi, edi
jl 0x10019d70
cmp eax, 3
jl 0x10019e75
xor eax, eax
cmp esi, edi
jge 0x10019da8
mov cl, byte [ebp + esi - 0x434]
cmp cl, bl
je 0x10019da8
mov byte [ebp + eax - 0x2c], cl
inc esi
inc eax
cmp esi, edi
jl 0x10019d93
mov byte [ebp + eax - 0x2c], 0
lea eax, [ebp - 0x2c]
push eax
call fcn.10067d5c
inc esi
add esp, 4
mov dword [ebp - 0xcc0], eax
mov eax, 1
cmp esi, edi
jge 0x10019e55
lea ecx, [ecx]
cmp eax, 3
jge 0x10019de9
cmp byte [ebp + esi - 0x434], bl
jne 0x10019de4
inc esi
inc eax
cmp esi, edi
jl 0x10019dd0
cmp eax, 3
jl 0x10019e55
xor eax, eax
cmp esi, edi
jge 0x10019e0b
sub edi, esi
lea eax, [ebp + esi - 0x434]
push edi
push eax
lea ecx, [ebp - 0x10c0]
push ecx
call fcn.10073cd0
add esp, 0xc
mov eax, edi
mov byte [ebp + eax - 0x10c0], 0
cmp eax, dword [ebp - 0xcc0]
jne 0x10019e81
mov ebx, dword [ebp - 0x10c8]
add ebx, 0x9c
lea eax, [ebp - 0x10c4]
call fcn.1000d8d0
mov edx, dword [ebp - 0x10d0]
mov esi, dword [ebp - 0x10cc]
push edx
lea edi, [ebp - 0x434]
call fcn.10019830
mov edi, eax
cmp edi, 0xffffffff
jne 0x10019cd0
mov eax, dword [ebp - 0x10cc]
push eax
jmp 0x10019a66
mov ecx, dword [ebp - 0x10cc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x10019a72
mov edx, dword [ebp - 0x10cc]
push edx
jmp 0x10019a66
mov ecx, dword [ebp - 0x10cc]
push ecx
jmp 0x10019a66
lea edx, [ebp - 0x434]
push str._file_create_time_
push edx
call fcn.10069320
add esp, 8
test eax, eax
jne 0x10019eb9
mov eax, dword [ebp - 0x10cc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x10019a72
xor eax, eax
xor ecx, ecx
test edi, edi
jle 0x10019e61
cmp ecx, 3
je 0x10019edb
cmp byte [ebp + eax - 0x434], 9
jne 0x10019ed1
inc ecx
inc eax
cmp eax, edi
jl 0x10019ec1
cmp ecx, 3
jl 0x10019e61
xor edx, edx
cmp eax, edi
jge 0x10019f03
mov edx, edi
lea ecx, [ebx + 0xac]
sub edx, eax
jmp 0x10019ef0
movzx esi, byte [ebp + eax - 0x434]
mov word [ecx], si
inc eax
add ecx, 2
cmp eax, edi
jl 0x10019ef0
mov ecx, dword [ebp - 0x10cc]
xor eax, eax
push ecx
mov word [ebx + edx*2 + 0xac], ax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.10066b1b
mov esp, ebp
pop ebp
ret 4