Function at 0x406bc0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x58
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x58], eax
mov eax, dword [0x434080]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x54], 0xd88dc1ea
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x60], eax
sub eax, 0x80c347ae
je 0x4070ab
jmp 0x406bfc
mov eax, dword [ebp - 0x60]
sub eax, 0x860ba0f1
je 0x4073fd
jmp 0x406c0f
mov eax, dword [ebp - 0x60]
sub eax, 0x8daa5dd8
je 0x407571
jmp 0x406c22
mov eax, dword [ebp - 0x60]
sub eax, 0x9400e708
je 0x4071ff
jmp 0x406c35
mov eax, dword [ebp - 0x60]
sub eax, 0xa47bb1b4
je 0x4075cb
jmp 0x406c48
mov eax, dword [ebp - 0x60]
sub eax, 0xa61cc0d2
je 0x407026
jmp 0x406c5b
mov eax, dword [ebp - 0x60]
sub eax, 0xabc5010f
je 0x40734f
jmp 0x406c6e
mov eax, dword [ebp - 0x60]
sub eax, 0xae992869
je 0x406f6d
jmp 0x406c81
mov eax, dword [ebp - 0x60]
sub eax, 0xb37d5f56
je 0x407303
jmp 0x406c94
mov eax, dword [ebp - 0x60]
sub eax, 0xb5b9880c
je 0x407623
jmp 0x406ca7
mov eax, dword [ebp - 0x60]
sub eax, 0xbbbcf443
je 0x4073a5
jmp 0x406cba
mov eax, dword [ebp - 0x60]
sub eax, 0xbe7bf3c5
je 0x40765f
jmp 0x406ccd
mov eax, dword [ebp - 0x60]
sub eax, 0xc43f903e
je 0x40730f
jmp 0x406ce0
mov eax, dword [ebp - 0x60]
sub eax, 0xc7637d36
je 0x40760f
jmp 0x406cf3
mov eax, dword [ebp - 0x60]
sub eax, 0xcd7c1e47
je 0x40720b
jmp 0x406d06
mov eax, dword [ebp - 0x60]
sub eax, 0xd88dc1ea
je 0x406f1f
jmp 0x406d19
mov eax, dword [ebp - 0x60]
sub eax, 0xdf4dc1ab
je 0x4074fa
jmp 0x406d2c
mov eax, dword [ebp - 0x60]
sub eax, 0xec8cb5a9
je 0x40736a
jmp 0x406d3f
mov eax, dword [ebp - 0x60]
sub eax, 0xfa67ed6f
je 0x407506
jmp 0x406d52
mov eax, dword [ebp - 0x60]
sub eax, 0xfd9c8a4a
je 0x4073b7
jmp 0x406d65
mov eax, dword [ebp - 0x60]
sub eax, 0xff0af89a
je 0x4071de
jmp 0x406d78
mov eax, dword [ebp - 0x60]
sub eax, 0x4c5588
je 0x4072f7
jmp 0x406d8b
mov eax, dword [ebp - 0x60]
sub eax, 0x7773452
je 0x40738a
jmp 0x406d9e
mov eax, dword [ebp - 0x60]
sub eax, 0x8ca22b8
je 0x40766e
jmp 0x406db1
mov eax, dword [ebp - 0x60]
sub eax, 0x1120a777
je 0x407376
jmp 0x406dc4
mov eax, dword [ebp - 0x60]
sub eax, 0x195d2b2e
je 0x4074bb
jmp 0x406dd7
mov eax, dword [ebp - 0x60]
sub eax, 0x2861afee
je 0x40744b
jmp 0x406dea
mov eax, dword [ebp - 0x60]
sub eax, 0x2deff5aa
je 0x407115
jmp 0x406dfd
mov eax, dword [ebp - 0x60]
sub eax, 0x3589e7c9
je 0x407163
jmp 0x406e10
mov eax, dword [ebp - 0x60]
sub eax, 0x3dec0a0e
je 0x407680
jmp 0x406e23
mov eax, dword [ebp - 0x60]
sub eax, 0x3eda966d
je 0x40727e
jmp 0x406e36
mov eax, dword [ebp - 0x60]
sub eax, 0x4c191638
je 0x4075e8
jmp 0x406e49
mov eax, dword [ebp - 0x60]
sub eax, 0x4e880bf2
je 0x407643
jmp 0x406e5c
mov eax, dword [ebp - 0x60]
sub eax, 0x4f19076e
je 0x40768c
jmp 0x406e6f
mov eax, dword [ebp - 0x60]
sub eax, 0x587e1ce8
je 0x4075bf
jmp 0x406e82
mov eax, dword [ebp - 0x60]
sub eax, 0x5b8499de
je 0x4071c3
jmp 0x406e95
mov eax, dword [ebp - 0x60]
sub eax, 0x5bb052d6
je 0x4074c7
jmp 0x406ea8
mov eax, dword [ebp - 0x60]
sub eax, 0x676eaaac
je 0x4070b7
jmp 0x406ebb
mov eax, dword [ebp - 0x60]
sub eax, 0x67f80902
je 0x4074a0
jmp 0x406ece
mov eax, dword [ebp - 0x60]
sub eax, 0x72caa6ec
je 0x4074db
jmp 0x406ee1
mov eax, dword [ebp - 0x60]
sub eax, 0x73f0b85a
je 0x407457
jmp 0x406ef4
mov eax, dword [ebp - 0x60]
sub eax, 0x759137ee
je 0x40709b
jmp 0x406f07
mov eax, dword [ebp - 0x60]
sub eax, 0x75f3718d
je 0x407032
jmp 0x406f1a
jmp 0x407693
mov eax, dword [0x43559c]
mov ecx, dword [0x435598]
mov edx, eax
add edx, 0xb9c84a27
sub edx, 1
sub edx, 0xb9c84a27
imul eax, edx
and eax, 1
cmp eax, 0
sete al
cmp ecx, 0xa
setl cl
mov dl, al
and dl, cl
xor al, cl
or dl, al
mov eax, 0x4e880bf2
mov ecx, 0xae992869
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x54], eax
jmp 0x407693
mov ecx, dword [ebp - 0x58]
mov edx, dword [ebp - 0x5c]
push eax
mov eax, esp
mov dword [ebp - 0x4c], eax
push eax
mov eax, esp
mov dword [ebp - 0x48], eax
push eax
mov eax, esp
mov dword [ebp - 0x44], eax
push eax
mov eax, esp
mov dword [ebp - 0x40], eax
push eax
mov eax, esp
mov dword [ebp - 0x3c], eax
push eax
mov eax, esp
mov dword [ebp - 0x38], eax
push eax
sub esp, 0xffc
mov eax, esp
mov dword [ebp - 0x34], eax
push eax
mov eax, esp
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x4c]
mov dword [eax], edx
mov eax, dword [ebp - 0x48]
mov dword [eax], ecx
mov ecx, dword [0x43559c]
mov eax, dword [0x435598]
mov edx, ecx
add edx, 0xc1c08302
sub edx, 1
sub edx, 0xc1c08302
imul ecx, edx
and ecx, 1
cmp ecx, 0
sete bl
cmp eax, 0xa
setl dh
mov al, bl
xor al, 0xff
mov ah, dh
xor ah, 0xff
mov cl, 1
xor cl, 0
mov dl, al
and dl, 0
and bl, cl
mov ch, ah
and ch, 0
and dh, cl
or dl, bl
or ch, dh
xor dl, ch
or al, ah
xor al, 0xff
or cl, 0
and al, cl
or dl, al
mov eax, 0x4e880bf2
mov ecx, 0xa61cc0d2
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x54], eax
jmp 0x407693
mov dword [ebp - 0x54], 0x75f3718d
jmp 0x407693
mov eax, dword [ebp - 0x48]
mov eax, dword [eax]
xor ecx, ecx
sub esp, 0x1c
mov dword [esp], eax
mov dword [esp + 4], 0x80000000
mov dword [esp + 8], 1
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0x14], 0x80
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, eax
mov eax, dword [ebp - 0x44]
mov dword [eax], ecx
mov edx, dword [ebp - 0x44]
mov esi, 0xffffffff
mov eax, 0x676eaaac
mov ecx, 0x759137ee
cmp dword [edx], esi
cmove eax, ecx
mov dword [ebp - 0x54], eax
jmp 0x407693
mov byte [ebp - 0x4d], 0
mov dword [ebp - 0x54], 0x80c347ae
jmp 0x407693
mov dword [ebp - 0x54], 0xc7637d36
jmp 0x407693
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax]
xor ecx, ecx
sub esp, 0x1c
mov dword [esp], eax
mov dword [esp + 4], 0x40000000
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 2
mov dword [esp + 0x14], 0x80
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, eax
mov eax, dword [ebp - 0x40]
mov dword [eax], ecx
mov eax, dword [ebp - 0x40]
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x54], 0x2deff5aa
jmp 0x407693
mov eax, dword [0x43559c]
mov ecx, dword [0x435598]
mov edx, eax
add edx, 0x242bc399
sub edx, 1
sub edx, 0x242bc399
imul eax, edx
and eax, 1
cmp eax, 0
sete al
cmp ecx, 0xa
setl cl
mov dl, al
and dl, cl
xor al, cl
or dl, al
mov eax, 0xbe7bf3c5
mov ecx, 0x3589e7c9
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x54], eax
jmp 0x407693
mov eax, dword [ebp - 0x2c]
mov ecx, 0xffffffff
cmp eax, ecx
sete al
and al, 1
mov byte [ebp - 0x25], al
mov eax, dword [0x43559c]
mov ecx, dword [0x435598]
mov edx, eax
add edx, 0x54cac70c
sub edx, 1
sub edx, 0x54cac70c
imul eax, edx
and eax, 1
cmp eax, 0
sete al
cmp ecx, 0xa
setl cl
mov dl, al
and dl, cl
xor al, cl
or dl, al
mov eax, 0xbe7bf3c5
mov ecx, 0x5b8499de
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x54], eax
jmp 0x407693
mov dl, byte [ebp - 0x25]
mov eax, 0xcd7c1e47
mov ecx, 0xff0af89a
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x54], eax
jmp 0x407693
mov eax, dword [ebp - 0x44]
mov eax, dword [eax]
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x4d], 0
mov dword [ebp - 0x54], 0x9400e708
jmp 0x407693
mov dword [ebp - 0x54], 0xc7637d36
jmp 0x407693
mov ecx, dword [0x43559c]
mov eax, dword [0x435598]
mov edx, ecx
sub edx, 0x803bce41
sub edx, 1
add edx, 0x803bce41
imul ecx, edx
and ecx, 1
cmp ecx, 0
sete bl
cmp eax, 0xa
setl dh
mov al, bl
xor al, 0xff
mov ah, dh
xor ah, 0xff
mov cl, 1
xor cl, 0
mov dl, al
and dl, 0
and bl, cl
mov ch, ah
and ch, 0
and dh, cl
or dl, bl
or ch, dh
xor dl, ch
or al, ah
xor al, 0xff
or cl, 0
and al, cl
or dl, al
mov eax, 0x8ca22b8
mov ecx, 0x3eda966d
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x54], eax
jmp 0x407693
mov eax, dword [ebp - 0x3c]
mov byte [eax], 0
mov ecx, dword [0x43559c]
mov eax, dword [0x435598]
mov edx, ecx
sub edx, 0x1ea2e62d
sub edx, 1
add edx, 0x1ea2e62d
imul ecx, edx
and ecx, 1
cmp ecx, 0
sete bl
cmp eax, 0xa
setl dh
mov al, bl
xor al, 0xff
mov ah, dh
xor ah, 0xff
mov cl, 1
xor cl, 0
mov dl, al
and dl, 0
and bl, cl
mov ch, ah
and ch, 0
and dh, cl
or dl, bl
or ch, dh
xor dl, ch
or al, ah
xor al, 0xff
or cl, 0
and al, cl
or dl, al
mov eax, 0x8ca22b8
mov ecx, 0x4c5588
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x54], eax
jmp 0x407693
mov dword [ebp - 0x54], 0xb37d5f56
jmp 0x407693
mov dword [ebp - 0x54], 0xc43f903e
jmp 0x407693
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x44]
mov edx, dword [eax]
mov eax, dword [ebp - 0x30]
xor esi, esi
sub esp, 0x14
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], 0x1000
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x54], 0xabc5010f
jmp 0x407693
mov edx, dword [ebp - 0x24]
mov eax, 0xec8cb5a9
mov ecx, 0x1120a777
cmp edx, 0
cmovne eax, ecx
mov dword [ebp - 0x54], eax
jmp 0x407693
mov dword [ebp - 0x54], 0xa47bb1b4
jmp 0x407693
mov eax, dword [ebp - 0x30]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x54], 0x7773452
jmp 0x407693
mov edx, dword [ebp - 0x20]
mov eax, 0x73f0b85a
mov ecx, 0xbbbcf443
cmp edx, 0
cmove eax, ecx
mov dword [ebp - 0x54], eax
jmp 0x407693
mov eax, dword [ebp - 0x3c]
mov byte [eax], 1
mov dword [ebp - 0x54], 0xfd9c8a4a
jmp 0x407693
mov eax, dword [0x43559c]
mov ecx, dword [0x435598]
xor esi, esi
sub esi, 1
mov edx, eax
add edx, esi
imul eax, edx
and eax, 1
cmp eax, 0
sete al
cmp ecx, 0xa
setl cl
mov dl, al
and dl, cl
xor al, cl
or dl, al
mov eax, 0x3dec0a0e
mov ecx, 0x860ba0f1
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x54], eax
jmp 0x407693
mov eax, dword [0x43559c]
mov ecx, dword [0x435598]
mov edx, eax
add edx, 0xadaa51f0
sub edx, 1
sub edx, 0xadaa51f0
imul eax, edx
and eax, 1
cmp eax, 0
sete al
cmp ecx, 0xa
setl cl
mov dl, al
and dl, cl
xor al, cl
or dl, al
mov eax, 0x3dec0a0e
mov ecx, 0x2861afee
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x54], eax
jmp 0x407693
mov dword [ebp - 0x54], 0xa47bb1b4
jmp 0x407693
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x40]
mov esi, dword [eax]
mov eax, dword [ebp - 0x38]
xor edi, edi
sub esp, 0x14
mov dword [esp], esi
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 0
setne al
and al, 1
mov byte [ebp - 0x19], al
mov dword [ebp - 0x54], 0x67f80902
jmp 0x407693
mov dl, byte [ebp - 0x19]
mov eax, 0x195d2b2e
mov ecx, 0x5bb052d6
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x54], eax
jmp 0x407693
mov dword [ebp - 0x54], 0xa47bb1b4
jmp 0x407693
mov eax, dword [ebp - 0x38]
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x54], 0x72caa6ec
jmp 0x407693
mov eax, dword [ebp - 0x30]
mov esi, dword [eax]
mov edx, dword [ebp - 0x18]
mov eax, 0xfa67ed6f
mov ecx, 0xdf4dc1ab
cmp edx, esi
cmovne eax, ecx
mov dword [ebp - 0x54], eax
jmp 0x407693
mov dword [ebp - 0x54], 0xa47bb1b4
jmp 0x407693
mov ecx, dword [0x43559c]
mov eax, dword [0x435598]
xor esi, esi
sub esi, 1
mov edx, ecx
add edx, esi
imul ecx, edx
and ecx, 1
cmp ecx, 0
sete bl
cmp eax, 0xa
setl dh
mov al, bl
xor al, 0xff
mov ah, dh
xor ah, 0xff
mov cl, 1
xor cl, 0
mov dl, al
and dl, 0
and bl, cl
mov ch, ah
and ch, 0
and dh, cl
or dl, bl
or ch, dh
xor dl, ch
or al, ah
xor al, 0xff
or cl, 0
and al, cl
or dl, al
mov eax, 0x4f19076e
mov ecx, 0x8daa5dd8
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x54], eax
jmp 0x407693
mov eax, dword [0x43559c]
mov ecx, dword [0x435598]
mov edx, eax
add edx, 0xde6fac73
sub edx, 1
sub edx, 0xde6fac73
imul eax, edx
and eax, 1
cmp eax, 0
sete al
cmp ecx, 0xa
setl cl
mov dl, al
and dl, cl
xor al, cl
or dl, al
mov eax, 0x4f19076e
mov ecx, 0x587e1ce8
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x54], eax
jmp 0x407693
mov dword [ebp - 0x54], 0xc43f903e
jmp 0x407693
mov eax, dword [ebp - 0x44]
mov eax, dword [eax]
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x54], 0x4c191638
jmp 0x407693
mov eax, dword [ebp - 0x40]
mov eax, dword [eax]
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x3c]
mov al, byte [eax]
and al, 1
mov byte [ebp - 0x4d], al
mov dword [ebp - 0x54], 0xc7637d36
jmp 0x407693
mov al, byte [ebp - 0x4d]
and al, 1
mov byte [ebp - 0x11], al
mov dword [ebp - 0x54], 0xb5b9880c
jmp 0x407693
mov al, byte [ebp - 0x11]
and al, 1
movzx eax, al
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041e250
mov eax, dword [ebp - 0x64]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [ebp - 0x58]
mov esi, dword [ebp - 0x5c]
push eax
mov edx, esp
push eax
mov eax, esp
mov dword [edx], esi
mov dword [eax], ecx
mov dword [ebp - 0x54], 0xae992869
jmp 0x407693
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x54], 0x3589e7c9
jmp 0x407693
mov eax, dword [ebp - 0x3c]
mov byte [eax], 0
mov dword [ebp - 0x54], 0x3eda966d
jmp 0x407693
mov dword [ebp - 0x54], 0x860ba0f1
jmp 0x407693
mov dword [ebp - 0x54], 0x8daa5dd8
jmp 0x406be6