Function at 0x437940
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10d8
call fcn.004aa1a0
mov eax, dword [0x4fad60]
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 0x437a23
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 0x437a1c
lea edx, [ebp - 0x10d4]
push edx
lea eax, [ebp - 0x14]
push 0x4e4a94
push eax
mov byte [ebp - 0x10], 0
call fcn.004959b1
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 0x437a1c
mov byte [ebp + eax - 0x434], 0
cmp esi, 0xffffffff
jne 0x437a3f
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
call fcn.00436bd0
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00490a21
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x434]
push str._encry_mode_
push ecx
call fcn.00491610
add esp, 8
test eax, eax
je 0x437a1c
xor eax, eax
xor ecx, ecx
test esi, esi
jle 0x437a1c
nop
cmp ecx, 3
je 0x437a7a
cmp byte [ebp + eax - 0x434], 9
jne 0x437a70
inc ecx
inc eax
cmp eax, esi
jl 0x437a60
cmp ecx, 3
jl 0x437a1c
xor ecx, ecx
cmp eax, esi
jge 0x437a99
sub esi, eax
lea ecx, [ebp + eax - 0x434]
push esi
push ecx
lea edx, [ebp - 0x2c]
push edx
call fcn.00498770
add esp, 0xc
mov ecx, esi
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp + ecx - 0x2c], 0
call fcn.004927ca
add esp, 4
push eax
lea edi, [ebp - 0x434]
mov esi, ebx
mov dword [ebp - 0x10d0], eax
call fcn.00437890
mov esi, eax
cmp esi, 0xffffffff
jne 0x437aec
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10c8]
call fcn.00436bd0
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00490a21
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x434]
push str._hardware_type_
push ecx
call fcn.00491610
add esp, 8
test eax, eax
je 0x437ac5
xor eax, eax
xor ecx, ecx
test esi, esi
jle 0x437ac5
lea esp, [esp]
cmp ecx, 3
je 0x437b2a
cmp byte [ebp + eax - 0x434], 9
jne 0x437b20
inc ecx
inc eax
cmp eax, esi
jl 0x437b10
cmp ecx, 3
jl 0x437ac5
mov edx, dword [ebp - 0x10c8]
xor ecx, ecx
mov dword [edx + 4], 0
cmp eax, esi
jge 0x437b56
sub esi, eax
lea ecx, [ebp + eax - 0x434]
push esi
push ecx
lea eax, [ebp - 0x2c]
push eax
call fcn.00498770
add esp, 0xc
mov ecx, esi
mov byte [ebp + ecx - 0x2c], 0
lea ecx, [ebp - 0x2c]
push ecx
call fcn.004927ca
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.00437890
mov esi, eax
cmp esi, 0xffffffff
je 0x437ac5
mov ecx, edi
push str._hardware_No_
push ecx
call fcn.00491610
add esp, 8
test eax, eax
je 0x437ac5
xor eax, eax
xor ecx, ecx
test esi, esi
jle 0x437ac5
cmp ecx, 3
je 0x437bd1
cmp byte [ebp + eax - 0x434], 9
jne 0x437bc3
inc ecx
inc eax
cmp eax, esi
jl 0x437bb3
cmp ecx, 3
jl 0x437ac5
xor edx, edx
cmp eax, esi
jge 0x437bf7
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 0x437be4
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.0049205c
mov edi, dword [ebx + 0x90]
lea eax, [ebp - 0x4bc]
add esp, 0xc
cmp eax, edi
jae 0x437c97
mov eax, dword [ebx + 0x8c]
lea ecx, [ebp - 0x4bc]
cmp eax, ecx
ja 0x437c97
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 0x437c7f
lea ecx, [ebx + 0x8c]
call fcn.00423e50
mov edi, dword [ebx + 0x90]
imul esi, esi, 0x88
add esi, dword [ebx + 0x8c]
test edi, edi
je 0x437cc1
jmp 0x437cba
cmp edi, dword [ebx + 0x94]
jne 0x437caa
lea ecx, [ebx + 0x8c]
call fcn.00423e50
mov edi, dword [ebx + 0x90]
test edi, edi
je 0x437cc1
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.00497ad0
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.00437890
mov edi, eax
cmp edi, 0xffffffff
je 0x437eb5
jmp 0x437d36
mov ebx, dword [ebp - 0x10c8]
lea ecx, [ebp - 0x434]
push str._unit_key_
push ecx
call fcn.00491610
add esp, 8
test eax, eax
je 0x437eed
xor esi, esi
xor eax, eax
test edi, edi
jle 0x437ec1
mov edi, edi
cmp eax, 3
je 0x437d7e
cmp byte [ebp + esi - 0x434], 9
jne 0x437d70
inc eax
inc esi
cmp esi, edi
jl 0x437d60
cmp eax, 3
jl 0x437ec1
xor ecx, ecx
cmp esi, edi
jge 0x437da8
lea edx, [ebp - 0x2c]
sub edx, esi
lea esp, [esp]
mov al, byte [ebp + esi - 0x434]
mov bl, 9
cmp al, bl
je 0x437daa
mov byte [edx + esi], al
inc esi
inc ecx
cmp esi, edi
jl 0x437d90
jmp 0x437daa
mov bl, 9
lea edx, [ebp - 0x2c]
push edx
mov byte [ebp + ecx - 0x2c], 0
call fcn.004927ca
inc esi
add esp, 4
mov dword [ebp - 0x10c4], eax
mov eax, 1
cmp esi, edi
jge 0x437ed5
nop
cmp eax, 3
jge 0x437ded
cmp byte [ebp + esi - 0x434], bl
jne 0x437de4
inc esi
inc eax
cmp esi, edi
jl 0x437dd0
cmp eax, 3
jl 0x437ed5
xor eax, eax
cmp esi, edi
jge 0x437e08
mov cl, byte [ebp + esi - 0x434]
cmp cl, bl
je 0x437e08
mov byte [ebp + eax - 0x2c], cl
inc esi
inc eax
cmp esi, edi
jl 0x437df3
mov byte [ebp + eax - 0x2c], 0
lea eax, [ebp - 0x2c]
push eax
call fcn.004927ca
inc esi
add esp, 4
mov dword [ebp - 0xcc0], eax
mov eax, 1
cmp esi, edi
jge 0x437eb5
lea ecx, [ecx]
cmp eax, 3
jge 0x437e49
cmp byte [ebp + esi - 0x434], bl
jne 0x437e44
inc esi
inc eax
cmp esi, edi
jl 0x437e30
cmp eax, 3
jl 0x437eb5
xor eax, eax
cmp esi, edi
jge 0x437e6b
sub edi, esi
lea eax, [ebp + esi - 0x434]
push edi
push eax
lea ecx, [ebp - 0x10c0]
push ecx
call fcn.00498770
add esp, 0xc
mov eax, edi
mov byte [ebp + eax - 0x10c0], 0
cmp eax, dword [ebp - 0xcc0]
jne 0x437ee1
mov ebx, dword [ebp - 0x10c8]
add ebx, 0x9c
lea eax, [ebp - 0x10c4]
call fcn.00423a60
mov edx, dword [ebp - 0x10d0]
mov esi, dword [ebp - 0x10cc]
push edx
lea edi, [ebp - 0x434]
call fcn.00437890
mov edi, eax
cmp edi, 0xffffffff
jne 0x437d30
mov eax, dword [ebp - 0x10cc]
push eax
jmp 0x437ac6
mov ecx, dword [ebp - 0x10cc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x437ad2
mov edx, dword [ebp - 0x10cc]
push edx
jmp 0x437ac6
mov ecx, dword [ebp - 0x10cc]
push ecx
jmp 0x437ac6
lea edx, [ebp - 0x434]
push str._file_create_time_
push edx
call fcn.00491610
add esp, 8
test eax, eax
jne 0x437f19
mov eax, dword [ebp - 0x10cc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x437ad2
xor eax, eax
xor ecx, ecx
test edi, edi
jle 0x437ec1
cmp ecx, 3
je 0x437f3b
cmp byte [ebp + eax - 0x434], 9
jne 0x437f31
inc ecx
inc eax
cmp eax, edi
jl 0x437f21
cmp ecx, 3
jl 0x437ec1
xor edx, edx
cmp eax, edi
jge 0x437f63
mov edx, edi
lea ecx, [ebx + 0xac]
sub edx, eax
jmp 0x437f50
movzx esi, byte [ebp + eax - 0x434]
mov word [ecx], si
inc eax
add ecx, 2
cmp eax, edi
jl 0x437f50
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.00490a21
mov esp, ebp
pop ebp
ret 4