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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x105c
call fcn.004272f0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1060], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x105c], eax
mov eax, dword [0x43e080]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x1058], 0x248328a3
mov eax, dword [ebp - 0x1058]
mov dword [ebp - 0x1064], eax
sub eax, 0x831dc19d
je 0x40c5b5
jmp 0x40bee2
mov eax, dword [ebp - 0x1064]
sub eax, 0x84a998a6
je 0x40cadb
jmp 0x40bef8
mov eax, dword [ebp - 0x1064]
sub eax, 0x87cba7e2
je 0x40d0af
jmp 0x40bf0e
mov eax, dword [ebp - 0x1064]
sub eax, 0x93441f4f
je 0x40cc25
jmp 0x40bf24
mov eax, dword [ebp - 0x1064]
sub eax, 0x946685ec
je 0x40c8fb
jmp 0x40bf3a
mov eax, dword [ebp - 0x1064]
sub eax, 0x9689e247
je 0x40c859
jmp 0x40bf50
mov eax, dword [ebp - 0x1064]
sub eax, 0xa04b5de6
je 0x40d129
jmp 0x40bf66
mov eax, dword [ebp - 0x1064]
sub eax, 0xa2e2ea68
je 0x40c7e9
jmp 0x40bf7c
mov eax, dword [ebp - 0x1064]
sub eax, 0xa658e0e0
je 0x40d0c4
jmp 0x40bf92
mov eax, dword [ebp - 0x1064]
sub eax, 0xa74cebda
je 0x40c78d
jmp 0x40bfa8
mov eax, dword [ebp - 0x1064]
sub eax, 0xaa06dcbe
je 0x40cbc5
jmp 0x40bfbe
mov eax, dword [ebp - 0x1064]
sub eax, 0xad1b33c8
je 0x40c4b8
jmp 0x40bfd4
mov eax, dword [ebp - 0x1064]
sub eax, 0xb48f5eac
je 0x40ccf9
jmp 0x40bfea
mov eax, dword [ebp - 0x1064]
sub eax, 0xb61e0842
je 0x40d023
jmp 0x40c000
mov eax, dword [ebp - 0x1064]
sub eax, 0xb690c72d
je 0x40c985
jmp 0x40c016
mov eax, dword [ebp - 0x1064]
sub eax, 0xc96667c8
je 0x40cb6e
jmp 0x40c02c
mov eax, dword [ebp - 0x1064]
sub eax, 0xcb7be4f1
je 0x40c69e
jmp 0x40c042
mov eax, dword [ebp - 0x1064]
sub eax, 0xcd945e1d
je 0x40c60d
jmp 0x40c058
mov eax, dword [ebp - 0x1064]
sub eax, 0xeaadffda
je 0x40c547
jmp 0x40c06e
mov eax, dword [ebp - 0x1064]
sub eax, 0xf0a15568
je 0x40cf20
jmp 0x40c084
mov eax, dword [ebp - 0x1064]
sub eax, 0xf9547a10
je 0x40c804
jmp 0x40c09a
mov eax, dword [ebp - 0x1064]
sub eax, 0x2487e8f
je 0x40ccc4
jmp 0x40c0b0
mov eax, dword [ebp - 0x1064]
sub eax, 0x4ff6430
je 0x40cfdf
jmp 0x40c0c6
mov eax, dword [ebp - 0x1064]
sub eax, 0x9adfc33
je 0x40cd08
jmp 0x40c0dc
mov eax, dword [ebp - 0x1064]
sub eax, 0x9c5b26c
je 0x40ccea
jmp 0x40c0f2
mov eax, dword [ebp - 0x1064]
sub eax, 0xbd2329a
je 0x40d008
jmp 0x40c108
mov eax, dword [ebp - 0x1064]
sub eax, 0xbf3bee8
je 0x40c443
jmp 0x40c11e
mov eax, dword [ebp - 0x1064]
sub eax, 0xc3ef315
je 0x40c4a9
jmp 0x40c134
mov eax, dword [ebp - 0x1064]
sub eax, 0xe38d400
je 0x40c7da
jmp 0x40c14a
mov eax, dword [ebp - 0x1064]
sub eax, 0x1a16c6c7
je 0x40d0a0
jmp 0x40c160
mov eax, dword [ebp - 0x1064]
sub eax, 0x1b40e744
je 0x40cd51
jmp 0x40c176
mov eax, dword [ebp - 0x1064]
sub eax, 0x217b9881
je 0x40c7b5
jmp 0x40c18c
mov eax, dword [ebp - 0x1064]
sub eax, 0x22889fe0
je 0x40ca7b
jmp 0x40c1a2
mov eax, dword [ebp - 0x1064]
sub eax, 0x248328a3
je 0x40c3cd
jmp 0x40c1b8
mov eax, dword [ebp - 0x1064]
sub eax, 0x251768ad
je 0x40c9a6
jmp 0x40c1ce
mov eax, dword [ebp - 0x1064]
sub eax, 0x2ef9fd7c
je 0x40d0d9
jmp 0x40c1e4
mov eax, dword [ebp - 0x1064]
sub eax, 0x30963a14
je 0x40c885
jmp 0x40c1fa
mov eax, dword [ebp - 0x1064]
sub eax, 0x35631267
je 0x40ce70
jmp 0x40c210
mov eax, dword [ebp - 0x1064]
sub eax, 0x37b6ad92
je 0x40cf8e
jmp 0x40c226
mov eax, dword [ebp - 0x1064]
sub eax, 0x3dae4e4e
je 0x40cbd4
jmp 0x40c23c
mov eax, dword [ebp - 0x1064]
sub eax, 0x402069b8
je 0x40cb5f
jmp 0x40c252
mov eax, dword [ebp - 0x1064]
sub eax, 0x41817c2a
je 0x40cf03
jmp 0x40c268
mov eax, dword [ebp - 0x1064]
sub eax, 0x43ff93dc
je 0x40c9bc
jmp 0x40c27e
mov eax, dword [ebp - 0x1064]
sub eax, 0x4b86cadc
je 0x40d08b
jmp 0x40c294
mov eax, dword [ebp - 0x1064]
sub eax, 0x4e277743
je 0x40c531
jmp 0x40c2aa
mov eax, dword [ebp - 0x1064]
sub eax, 0x551b1721
je 0x40d032
jmp 0x40c2c0
mov eax, dword [ebp - 0x1064]
sub eax, 0x5bf8202b
je 0x40c7c4
jmp 0x40c2d6
mov eax, dword [ebp - 0x1064]
sub eax, 0x5ed9d8e5
je 0x40cef4
jmp 0x40c2ec
mov eax, dword [ebp - 0x1064]
sub eax, 0x656eb41c
je 0x40c5fe
jmp 0x40c302
mov eax, dword [ebp - 0x1064]
sub eax, 0x673d937b
je 0x40ca8a
jmp 0x40c318
mov eax, dword [ebp - 0x1064]
sub eax, 0x68efa2f7
je 0x40d10c
jmp 0x40c32e
mov eax, dword [ebp - 0x1064]
sub eax, 0x6b9f6bf5
je 0x40cdeb
jmp 0x40c344
mov eax, dword [ebp - 0x1064]
sub eax, 0x718219ea
je 0x40cdfa
jmp 0x40c35a
mov eax, dword [ebp - 0x1064]
sub eax, 0x74e1e53f
je 0x40c76c
jmp 0x40c370
mov eax, dword [ebp - 0x1064]
sub eax, 0x79429e05
je 0x40ca2a
jmp 0x40c386
mov eax, dword [ebp - 0x1064]
sub eax, 0x79a86917
je 0x40c628
jmp 0x40c39c
mov eax, dword [ebp - 0x1064]
sub eax, 0x7a55e9fb
je 0x40c868
jmp 0x40c3b2
mov eax, dword [ebp - 0x1064]
sub eax, 0x7dbeedba
je 0x40ccb5
jmp 0x40c3c8
jmp 0x40d133
mov ecx, dword [0x43f55c]
mov eax, dword [0x43f558]
mov edx, ecx
add edx, 0x29ca70ca
sub edx, 1
sub edx, 0x29ca70ca
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, 0xbd2329a
mov ecx, 0xbf3bee8
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x1058], eax
jmp 0x40d133
mov eax, dword [ebp - 0x1060]
push eax
mov ecx, esp
mov dword [ebp - 0x103c], ecx
mov dword [ebp - 0x1044], eax
mov eax, dword [0x43f55c]
mov ecx, dword [0x43f558]
mov edx, eax
add edx, 0x28278ffd
sub edx, 1
sub edx, 0x28278ffd
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, 0xbd2329a
mov ecx, 0xc3ef315
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x1058], eax
jmp 0x40d133
mov dword [ebp - 0x1058], 0xad1b33c8
jmp 0x40d133
mov eax, dword [ebp - 0x105c]
mov dword [ebp - 0x1048], eax
mov eax, dword [ebp - 0x1048]
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 dword [ebp - 0x104c], eax
mov edx, 0xffffffff
mov eax, 0xcd945e1d
mov ecx, 0x4e277743
cmp dword [ebp - 0x104c], edx
cmove eax, ecx
mov dword [ebp - 0x1058], eax
jmp 0x40d133
mov byte [ebp - 0x103d], 0
mov dword [ebp - 0x1058], 0xeaadffda
jmp 0x40d133
mov ecx, dword [0x43f55c]
mov eax, dword [0x43f558]
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, 1
mov dl, al
and dl, 0xff
and bl, cl
mov ch, ah
and ch, 0xff
and dh, cl
or dl, bl
or ch, dh
xor dl, ch
or al, ah
xor al, 0xff
or cl, 1
and al, cl
or dl, al
mov eax, 0xb61e0842
mov ecx, 0x831dc19d
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x1058], eax
jmp 0x40d133
mov eax, dword [0x43f55c]
mov ecx, dword [0x43f558]
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, 0xb61e0842
mov ecx, 0x656eb41c
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x1058], eax
jmp 0x40d133
mov dword [ebp - 0x1058], 0x41817c2a
jmp 0x40d133
mov eax, dword [ebp - 0x1044]
mov dword [ebp - 0x1038], eax
mov dword [ebp - 0x1058], 0x79a86917
jmp 0x40d133
mov ecx, dword [0x43f55c]
mov eax, dword [0x43f558]
mov edx, ecx
add edx, 0x3b4f5d30
sub edx, 1
sub edx, 0x3b4f5d30
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, 0x551b1721
mov ecx, 0xcb7be4f1
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x1058], eax
jmp 0x40d133
mov eax, dword [ebp - 0x1038]
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 dword [ebp - 0x1050], eax
mov eax, 0xffffffff
cmp dword [ebp - 0x1050], eax
sete al
and al, 1
mov byte [ebp - 0x1031], al
mov ecx, dword [0x43f55c]
mov eax, dword [0x43f558]
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, 1
mov dl, al
and dl, 0xff
and bl, cl
mov ch, ah
and ch, 0xff
and dh, cl
or dl, bl
or ch, dh
xor dl, ch
or al, ah
xor al, 0xff
or cl, 1
and al, cl
or dl, al
mov eax, 0x551b1721
mov ecx, 0x74e1e53f
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x1058], eax
jmp 0x40d133
mov dl, byte [ebp - 0x1031]
mov eax, 0x5bf8202b
mov ecx, 0xa74cebda
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x1058], eax
jmp 0x40d133
mov eax, dword [ebp - 0x104c]
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x103d], 0
mov dword [ebp - 0x1058], 0x217b9881
jmp 0x40d133
mov dword [ebp - 0x1058], 0x41817c2a
jmp 0x40d133
mov byte [ebp - 0x1051], 0
mov dword [ebp - 0x1058], 0xe38d400
jmp 0x40d133
mov dword [ebp - 0x1058], 0xa2e2ea68
jmp 0x40d133
lea eax, [ebp - 0x1010]
mov dword [ebp - 0x1030], eax
mov dword [ebp - 0x1058], 0xf9547a10
jmp 0x40d133
mov edx, dword [ebp - 0x104c]
mov eax, dword [ebp - 0x103c]
mov ecx, dword [ebp - 0x1030]
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 edx, eax
mov eax, 0x9689e247
mov ecx, 0x7a55e9fb
cmp edx, 0
cmovne eax, ecx
mov dword [ebp - 0x1058], eax
jmp 0x40d133
mov dword [ebp - 0x1058], 0x9adfc33
jmp 0x40d133
mov eax, dword [ebp - 0x103c]
mov eax, dword [eax]
mov dword [ebp - 0x102c], eax
mov dword [ebp - 0x1058], 0x30963a14
jmp 0x40d133
mov ecx, dword [0x43f55c]
mov eax, dword [0x43f558]
mov edx, ecx
sub edx, 0xc4ae865f
sub edx, 1
add edx, 0xc4ae865f
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, 0x4b86cadc
mov ecx, 0x946685ec
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x1058], eax
jmp 0x40d133
mov eax, dword [ebp - 0x102c]
cmp eax, 0
sete al
and al, 1
mov byte [ebp - 0x1025], al
mov ecx, dword [0x43f55c]
mov eax, dword [0x43f558]
mov edx, ecx
add edx, 0xf6eef0b2
sub edx, 1
sub edx, 0xf6eef0b2
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, 0x4b86cadc
mov ecx, 0xb690c72d
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x1058], eax
jmp 0x40d133
mov dl, byte [ebp - 0x1025]
mov eax, 0x673d937b
mov ecx, 0x251768ad
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x1058], eax
jmp 0x40d133
mov byte [ebp - 0x1051], 1
mov dword [ebp - 0x1058], 0x43ff93dc
jmp 0x40d133
mov ecx, dword [0x43f55c]
mov eax, dword [0x43f558]
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, 1
mov dl, al
and dl, 0xff
and bl, cl
mov ch, ah
and ch, 0xff
and dh, cl
or dl, bl
or ch, dh
xor dl, ch
or al, ah
xor al, 0xff
or cl, 1
and al, cl
or dl, al
mov eax, 0x1a16c6c7
mov ecx, 0x79429e05
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x1058], eax
jmp 0x40d133
mov eax, dword [0x43f55c]
mov ecx, dword [0x43f558]
mov edx, eax
add edx, 0x5fbd3d21
sub edx, 1
sub edx, 0x5fbd3d21
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, 0x1a16c6c7
mov ecx, 0x22889fe0
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x1058], eax
jmp 0x40d133
mov dword [ebp - 0x1058], 0x9adfc33
jmp 0x40d133
mov eax, dword [0x43f55c]
mov ecx, dword [0x43f558]
mov edx, eax
sub edx, 0xe5cdb0c3
sub edx, 1
add edx, 0xe5cdb0c3
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, 0x87cba7e2
mov ecx, 0x84a998a6
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x1058], eax
jmp 0x40d133
mov eax, dword [ebp - 0x103c]
mov eax, dword [eax]
mov dword [ebp - 0x1024], eax
mov ecx, dword [0x43f55c]
mov eax, dword [0x43f558]
mov edx, ecx
sub edx, 0x912ed5f3
sub edx, 1
add edx, 0x912ed5f3
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, 0x87cba7e2
mov ecx, 0x402069b8
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x1058], eax
jmp 0x40d133
mov dword [ebp - 0x1058], 0xc96667c8
jmp 0x40d133
lea edx, [ebp - 0x1010]
mov esi, dword [ebp - 0x1050]
mov ecx, dword [ebp - 0x1024]
lea eax, [ebp - 0x1014]
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]
mov edx, eax
mov eax, 0xaa06dcbe
mov ecx, 0x3dae4e4e
cmp edx, 0
cmovne eax, ecx
mov dword [ebp - 0x1058], eax
jmp 0x40d133
mov dword [ebp - 0x1058], 0x9adfc33
jmp 0x40d133
mov eax, dword [0x43f55c]
mov ecx, dword [0x43f558]
mov edx, eax
sub edx, 0x3f7b6525
sub edx, 1
add edx, 0x3f7b6525
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, 0xa658e0e0
mov ecx, 0x93441f4f
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x1058], eax
jmp 0x40d133
mov eax, dword [ebp - 0x1014]
mov dword [ebp - 0x1020], eax
mov eax, dword [ebp - 0x103c]
mov eax, dword [eax]
mov dword [ebp - 0x101c], eax
mov ecx, dword [0x43f55c]
mov eax, dword [0x43f558]
mov edx, ecx
sub edx, 0x17592126
sub edx, 1
add edx, 0x17592126
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, 0xa658e0e0
mov ecx, 0x7dbeedba
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x1058], eax
jmp 0x40d133
mov dword [ebp - 0x1058], 0x2487e8f
jmp 0x40d133
mov edx, dword [ebp - 0x1020]
mov esi, dword [ebp - 0x101c]
mov eax, 0xb48f5eac
mov ecx, 0x9c5b26c
cmp edx, esi
cmovne eax, ecx
mov dword [ebp - 0x1058], eax
jmp 0x40d133
mov dword [ebp - 0x1058], 0x9adfc33
jmp 0x40d133
mov dword [ebp - 0x1058], 0xa2e2ea68
jmp 0x40d133
mov eax, dword [0x43f55c]
mov ecx, dword [0x43f558]
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, 0x2ef9fd7c
mov ecx, 0x1b40e744
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x1058], eax
jmp 0x40d133
mov eax, dword [ebp - 0x104c]
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1050]
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x43f55c]
mov eax, dword [0x43f558]
mov edx, ecx
sub edx, 0xda25c5e4
sub edx, 1
add edx, 0xda25c5e4
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, 0x2ef9fd7c
mov ecx, 0x6b9f6bf5
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x1058], eax
jmp 0x40d133
mov dword [ebp - 0x1058], 0x718219ea
jmp 0x40d133
mov ecx, dword [0x43f55c]
mov eax, dword [0x43f558]
mov edx, ecx
sub edx, 0x1865c428
sub edx, 1
add edx, 0x1865c428
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, 0x68efa2f7
mov ecx, 0x35631267
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x1058], eax
jmp 0x40d133
mov al, byte [ebp - 0x1051]
and al, 1
mov byte [ebp - 0x103d], al
mov ecx, dword [0x43f55c]
mov eax, dword [0x43f558]
mov edx, ecx
add edx, 0x4beeb1b6
sub edx, 1
sub edx, 0x4beeb1b6
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, 1
mov dl, al
and dl, 0xff
and bl, cl
mov ch, ah
and ch, 0xff
and dh, cl
or dl, bl
or ch, dh
xor dl, ch
or al, ah
xor al, 0xff
or cl, 1
and al, cl
or dl, al
mov eax, 0x68efa2f7
mov ecx, 0x5ed9d8e5
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x1058], eax
jmp 0x40d133
mov dword [ebp - 0x1058], 0x41817c2a
jmp 0x40d133
mov al, byte [ebp - 0x103d]
and al, 1
mov byte [ebp - 0x1015], al
mov dword [ebp - 0x1058], 0xf0a15568
jmp 0x40d133
mov ecx, dword [0x43f55c]
mov eax, dword [0x43f558]
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, 0xa04b5de6
mov ecx, 0x37b6ad92
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x1058], eax
jmp 0x40d133
mov eax, dword [0x43f55c]
mov ecx, dword [0x43f558]
mov edx, eax
add edx, 0x66a6424f
sub edx, 1
sub edx, 0x66a6424f
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, 0xa04b5de6
mov ecx, 0x4ff6430
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x1058], eax
jmp 0x40d133
mov al, byte [ebp - 0x1015]
and al, 1
movzx eax, al
mov dword [ebp - 0x1068], eax
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004272e0
mov eax, dword [ebp - 0x1068]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x1060]
mov dword [ebp - 0x1044], eax
mov dword [ebp - 0x1058], 0xbf3bee8
jmp 0x40d133
mov dword [ebp - 0x1058], 0x831dc19d
jmp 0x40d133
mov eax, dword [ebp - 0x1038]
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 dword [ebp - 0x1050], eax
mov dword [ebp - 0x1058], 0xcb7be4f1
jmp 0x40d133
mov eax, dword [ebp - 0x102c]
mov dword [ebp - 0x1058], 0x946685ec
jmp 0x40d133
mov dword [ebp - 0x1058], 0x79429e05
jmp 0x40d133
mov eax, dword [ebp - 0x103c]
mov dword [ebp - 0x1058], 0x84a998a6
jmp 0x40d133
mov eax, dword [ebp - 0x103c]
mov dword [ebp - 0x1058], 0x93441f4f
jmp 0x40d133
mov eax, dword [ebp - 0x104c]
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1050]
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x1058], 0x1b40e744
jmp 0x40d133
mov al, byte [ebp - 0x1051]
and al, 1
mov byte [ebp - 0x103d], al
mov dword [ebp - 0x1058], 0x35631267
jmp 0x40d133
mov dword [ebp - 0x1058], 0x37b6ad92
jmp 0x40bec6