Function at 0x40e0e0
Capabilities:
Copy file
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x50905d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x278
mov eax, dword [0x5580a0]
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
xor ebx, ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0x290], ebx
push 0x55cdc0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x294], 1
call fcn.004dd17f
lea ebp, [edi + 0x64]
lea ecx, [esp + 0x14]
push ebp
mov byte [esp + 0x294], 2
call fcn.004dd24a
lea eax, [esp + 0x34]
push 1
push eax
lea ecx, [esp + 0x1c]
call fcn.004d39c5
mov eax, dword [eax]
push 0x552bd8
push eax
call fcn.004c27be
add esp, 8
lea ecx, [esp + 0x34]
test eax, eax
setne byte [esp + 0x3b]
call fcn.004dd111
cmp byte [esp + 0x3b], bl
je 0x40e18a
push 0x552bd8
lea ecx, [esp + 0x18]
call fcn.004dd4ed
lea ecx, [esp + 0x14]
push str.serial.txt
lea edx, [esp + 0x38]
push ecx
push edx
call fcn.004dd3a6
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x294], 3
call fcn.004dd24a
lea ecx, [esp + 0x34]
mov byte [esp + 0x290], 2
call fcn.004dd111
mov eax, dword [esp + 0x10]
push ebx
push 0x20
push 2
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, ebx
jne 0x40e238
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x27
je 0x40e317
cmp eax, 0x70
je 0x40e2bd
lea ecx, [esp + 0x34]
push 0xe82b
push ecx
call fcn.0042e080
mov edx, dword [esp + 0x18]
mov eax, dword [eax]
add esp, 8
push 0x55cdc0
push edx
push eax
lea eax, [esp + 0x64]
push eax
call fcn.004c286d
add esp, 0x10
lea ecx, [esp + 0x34]
call fcn.004dd111
push ebx
lea ecx, [esp + 0x5c]
push 0x10
push ecx
call fcn.004e548e
mov edx, dword [edi + 0x60]
lea ecx, [edi + 0x60]
push ebx
mov eax, dword [edx - 8]
lea edx, [esp + 0x48]
push edx
push eax
push eax
call fcn.004dd541
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, ebx
jne 0x40e45d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x27
je 0x40e403
cmp eax, 0x70
je 0x40e38d
lea eax, [esp + 0x20]
push 0xe82b
push eax
call fcn.0042e080
mov ecx, dword [esp + 0x18]
mov eax, dword [eax]
add esp, 8
lea edx, [esp + 0x58]
push 0x55cdc0
push ecx
push eax
push edx
call fcn.004c286d
add esp, 0x10
lea ecx, [esp + 0x20]
call fcn.004dd111
push ebx
lea eax, [esp + 0x5c]
push 0x10
push eax
call fcn.004e548e
jmp 0x40e45d
lea edx, [esp + 0x2c]
push 0xe82a
push edx
call fcn.0042e080
mov esi, eax
lea eax, [esp + 0x30]
push 0xe82b
push eax
mov byte [esp + 0x2a0], 5
call fcn.0042e080
mov ecx, dword [esi]
mov edx, dword [esp + 0x20]
mov eax, dword [eax]
add esp, 0x10
push ecx
push edx
push eax
lea eax, [esp + 0x64]
push eax
call fcn.004c286d
add esp, 0x10
lea ecx, [esp + 0x28]
call fcn.004dd111
mov byte [esp + 0x290], 2
lea ecx, [esp + 0x2c]
jmp 0x40e36f
lea edx, [esp + 0x20]
push 0xe82a
push edx
call fcn.0042e080
mov esi, eax
lea eax, [esp + 0x2c]
push 0xe82b
push eax
mov byte [esp + 0x2a0], 4
call fcn.0042e080
mov ecx, dword [esi]
mov edx, dword [esp + 0x20]
mov eax, dword [eax]
add esp, 0x10
push ecx
push edx
push eax
lea eax, [esp + 0x64]
push eax
call fcn.004c286d
add esp, 0x10
lea ecx, [esp + 0x24]
call fcn.004dd111
mov byte [esp + 0x290], 2
lea ecx, [esp + 0x20]
call fcn.004dd111
push ebx
lea ecx, [esp + 0x5c]
push 0x10
push ecx
call fcn.004e548e
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40ec5b
lea ecx, [esp + 0x2c]
push 0xe82a
push ecx
call fcn.0042e080
mov edi, eax
lea edx, [esp + 0x2c]
push 0xe82b
push edx
mov byte [esp + 0x2a0], 7
call fcn.0042e080
mov ecx, dword [edi]
mov edx, dword [esp + 0x20]
mov eax, dword [eax]
add esp, 0x10
push ecx
push edx
push eax
lea eax, [esp + 0x64]
push eax
call fcn.004c286d
add esp, 0x10
lea ecx, [esp + 0x24]
call fcn.004dd111
mov byte [esp + 0x290], 2
lea ecx, [esp + 0x2c]
call fcn.004dd111
push ebx
lea ecx, [esp + 0x5c]
push 0x10
push ecx
call fcn.004e548e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40ec5b
lea edx, [esp + 0x34]
push 0xe82a
push edx
call fcn.0042e080
mov edi, eax
lea eax, [esp + 0x30]
push 0xe82b
push eax
mov byte [esp + 0x2a0], 6
call fcn.0042e080
mov ecx, dword [edi]
mov edx, dword [esp + 0x20]
mov eax, dword [eax]
add esp, 0x10
push ecx
push edx
push eax
lea eax, [esp + 0x64]
push eax
call fcn.004c286d
add esp, 0x10
lea ecx, [esp + 0x28]
call fcn.004dd111
mov byte [esp + 0x290], 2
lea ecx, [esp + 0x34]
jmp 0x40e3e5
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call edi
lea edx, [esp + 0x14]
push str.key.reg
lea eax, [esp + 0x24]
push edx
push eax
call fcn.004dd3a6
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x294], 8
call fcn.004dd24a
lea ecx, [esp + 0x20]
mov byte [esp + 0x290], 2
call fcn.004dd111
mov ecx, dword [esp + 0x10]
push ebx
push 0x20
push 2
push ebx
push ebx
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, ebx
jne 0x40e514
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x27
je 0x40e5f7
cmp eax, 0x70
je 0x40e59d
lea edx, [esp + 0x20]
push 0xe82c
push edx
call fcn.0042e080
mov ecx, dword [esp + 0x18]
mov eax, dword [eax]
add esp, 8
lea edx, [esp + 0x58]
push 0x55cdc0
push ecx
push eax
push edx
call fcn.004c286d
add esp, 0x10
lea ecx, [esp + 0x20]
call fcn.004dd111
push ebx
lea eax, [esp + 0x5c]
push 0x10
push eax
call fcn.004e548e
mov edx, dword [esp + 0x1c]
push ebx
mov eax, dword [edx + 0x5c]
lea ecx, [edx + 0x5c]
lea edx, [esp + 0x48]
mov eax, dword [eax - 8]
push edx
push eax
push eax
call fcn.004dd541
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, ebx
jne 0x40e737
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x27
je 0x40e6dc
cmp eax, 0x70
je 0x40e669
lea eax, [esp + 0x1c]
push 0xe82c
push eax
call fcn.0042e080
mov ecx, dword [esp + 0x18]
mov eax, dword [eax]
add esp, 8
lea edx, [esp + 0x58]
push 0x55cdc0
push ecx
push eax
push edx
call fcn.004c286d
add esp, 0x10
lea ecx, [esp + 0x1c]
call fcn.004dd111
push ebx
lea eax, [esp + 0x5c]
push 0x10
push eax
call fcn.004e548e
jmp 0x40e737
lea ecx, [esp + 0x2c]
push 0xe82a
push ecx
call fcn.0042e080
mov esi, eax
lea edx, [esp + 0x2c]
push 0xe82c
push edx
mov byte [esp + 0x2a0], 0xa
call fcn.0042e080
mov ecx, dword [esi]
mov edx, dword [esp + 0x20]
mov eax, dword [eax]
add esp, 0x10
push ecx
push edx
push eax
lea eax, [esp + 0x64]
push eax
call fcn.004c286d
add esp, 0x10
lea ecx, [esp + 0x24]
call fcn.004dd111
mov byte [esp + 0x290], 2
lea ecx, [esp + 0x2c]
jmp 0x40e64f
lea edx, [esp + 0x34]
push 0xe82a
push edx
call fcn.0042e080
mov esi, eax
lea eax, [esp + 0x30]
push 0xe82c
push eax
mov byte [esp + 0x2a0], 9
call fcn.0042e080
mov ecx, dword [esi]
mov edx, dword [esp + 0x20]
mov eax, dword [eax]
add esp, 0x10
push ecx
push edx
push eax
lea eax, [esp + 0x64]
push eax
call fcn.004c286d
add esp, 0x10
lea ecx, [esp + 0x28]
call fcn.004dd111
mov byte [esp + 0x290], 2
lea ecx, [esp + 0x34]
call fcn.004dd111
push ebx
lea ecx, [esp + 0x5c]
push 0x10
push ecx
call fcn.004e548e
push ebx
call edi
jmp 0x40ec5b
lea ecx, [esp + 0x24]
push 0xe82a
push ecx
call fcn.0042e080
mov ebp, eax
lea edx, [esp + 0x28]
push 0xe82c
push edx
mov byte [esp + 0x2a0], 0xc
call fcn.0042e080
mov ecx, dword [ebp]
mov edx, dword [esp + 0x20]
mov eax, dword [eax]
add esp, 0x10
push ecx
push edx
push eax
lea eax, [esp + 0x64]
push eax
call fcn.004c286d
add esp, 0x10
lea ecx, [esp + 0x20]
call fcn.004dd111
mov byte [esp + 0x290], 2
lea ecx, [esp + 0x24]
call fcn.004dd111
push ebx
lea ecx, [esp + 0x5c]
push 0x10
push ecx
call fcn.004e548e
push esi
call edi
jmp 0x40ec5b
lea edx, [esp + 0x28]
push 0xe82a
push edx
call fcn.0042e080
mov ebp, eax
lea eax, [esp + 0x34]
push 0xe82c
push eax
mov byte [esp + 0x2a0], 0xb
call fcn.0042e080
mov ecx, dword [ebp]
mov edx, dword [esp + 0x20]
mov eax, dword [eax]
add esp, 0x10
push ecx
push edx
push eax
lea eax, [esp + 0x64]
push eax
call fcn.004c286d
add esp, 0x10
lea ecx, [esp + 0x2c]
call fcn.004dd111
mov byte [esp + 0x290], 2
lea ecx, [esp + 0x28]
jmp 0x40e6c2
push esi
call edi
push ecx
mov ecx, esp
mov dword [esp + 0x44], esp
push str.autoname.dat
call fcn.004dd17f
lea edx, [esp + 0x34]
mov ecx, 0x55e068
push edx
call fcn.0044ba00
lea eax, [esp + 0x14]
push str.autoname.dat
lea ecx, [esp + 0x20]
push eax
push ecx
mov byte [esp + 0x29c], 0xd
call fcn.004dd3a6
mov eax, dword [eax]
mov edx, dword [esp + 0x30]
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileA]
push ebx
push eax
push edx
call edi
lea ecx, [esp + 0x1c]
mov esi, eax
call fcn.004dd111
cmp esi, ebx
jne 0x40e7f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 2
je 0x40e7f9
sub eax, 0x25
je 0x40e938
sub eax, 0x49
je 0x40e8da
lea eax, [esp + 0x1c]
push 0xe82d
push eax
call fcn.0042e080
mov ecx, dword [ebp]
mov eax, dword [eax]
add esp, 8
lea edx, [esp + 0x58]
push 0x55cdc0
push ecx
push str.autoname.dat
push eax
push edx
call fcn.004c286d
add esp, 0x14
lea ecx, [esp + 0x1c]
call fcn.004dd111
push ebx
lea eax, [esp + 0x5c]
push 0x10
push eax
call fcn.004e548e
push ecx
mov ecx, esp
mov dword [esp + 0x44], esp
push str.commands.dat
call fcn.004dd17f
lea edx, [esp + 0x20]
mov ecx, 0x55e068
push edx
call fcn.0044ba00
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x294], 0x10
call fcn.004dd24a
lea ecx, [esp + 0x1c]
mov byte [esp + 0x290], 0xd
call fcn.004dd111
lea eax, [esp + 0x14]
push str.commands.dat
lea ecx, [esp + 0x20]
push eax
push ecx
call fcn.004dd3a6
mov eax, dword [eax]
mov edx, dword [esp + 0x30]
push ebx
push eax
push edx
call edi
lea ecx, [esp + 0x1c]
mov esi, eax
call fcn.004dd111
cmp esi, ebx
jne 0x40ea6a
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 2
je 0x40ea6a
sub eax, 0x25
je 0x40ea09
sub eax, 0x49
je 0x40e9ab
lea eax, [esp + 0x1c]
push 0xe82d
push eax
call fcn.0042e080
mov ecx, dword [ebp]
mov eax, dword [eax]
add esp, 8
lea edx, [esp + 0x58]
push 0x55cdc0
push ecx
push str.commands.dat
push eax
push edx
call fcn.004c286d
add esp, 0x14
lea ecx, [esp + 0x1c]
call fcn.004dd111
push ebx
lea eax, [esp + 0x5c]
push 0x10
push eax
call fcn.004e548e
jmp 0x40ea6a
lea ecx, [esp + 0x24]
push 0xe82a
push ecx
call fcn.0042e080
mov esi, eax
lea edx, [esp + 0x28]
push 0xe82d
push edx
mov byte [esp + 0x2a0], 0xf
call fcn.0042e080
mov ecx, dword [esi]
mov edx, dword [ebp]
mov eax, dword [eax]
add esp, 0x10
push ecx
push edx
push str.autoname.dat
push eax
lea eax, [esp + 0x68]
push eax
call fcn.004c286d
add esp, 0x14
lea ecx, [esp + 0x20]
call fcn.004dd111
mov byte [esp + 0x290], 0xd
lea ecx, [esp + 0x24]
jmp 0x40e994
lea edx, [esp + 0x28]
push 0xe82a
push edx
call fcn.0042e080
mov esi, eax
lea eax, [esp + 0x34]
push 0xe82d
push eax
mov byte [esp + 0x2a0], 0xe
call fcn.0042e080
mov ecx, dword [esi]
mov edx, dword [ebp]
mov eax, dword [eax]
add esp, 0x10
push ecx
push edx
push str.autoname.dat
push eax
lea eax, [esp + 0x68]
push eax
call fcn.004c286d
add esp, 0x14
lea ecx, [esp + 0x2c]
call fcn.004dd111
mov byte [esp + 0x290], 0xd
lea ecx, [esp + 0x28]
call fcn.004dd111
push ebx
lea ecx, [esp + 0x5c]
push 0x10
push ecx
call fcn.004e548e
jmp 0x40ec4a
lea ecx, [esp + 0x24]
push 0xe82a
push ecx
call fcn.0042e080
mov esi, eax
lea edx, [esp + 0x28]
push 0xe82d
push edx
mov byte [esp + 0x2a0], 0x12
call fcn.0042e080
mov ecx, dword [esi]
mov edx, dword [ebp]
mov eax, dword [eax]
add esp, 0x10
push ecx
push edx
push str.commands.dat
push eax
lea eax, [esp + 0x68]
push eax
call fcn.004c286d
add esp, 0x14
lea ecx, [esp + 0x20]
call fcn.004dd111
mov byte [esp + 0x290], 0xd
lea ecx, [esp + 0x24]
jmp 0x40e994
lea edx, [esp + 0x28]
push 0xe82a
push edx
call fcn.0042e080
mov esi, eax
lea eax, [esp + 0x34]
push 0xe82d
push eax
mov byte [esp + 0x2a0], 0x11
call fcn.0042e080
mov ecx, dword [esi]
mov edx, dword [ebp]
mov eax, dword [eax]
add esp, 0x10
push ecx
push edx
push str.commands.dat
push eax
lea eax, [esp + 0x68]
push eax
call fcn.004c286d
add esp, 0x14
lea ecx, [esp + 0x2c]
call fcn.004dd111
mov byte [esp + 0x290], 0xd
lea ecx, [esp + 0x28]
jmp 0x40e994
lea edx, [esp + 0x3c]
push 5
push edx
mov ecx, 0x55f6e0
call fcn.004b4090
mov eax, dword [esp + 0x3c]
mov byte [esp + 0x290], 0x13
cmp dword [eax - 8], ebx
jne 0x40ea9a
push 0x55e714
lea ecx, [esp + 0x40]
call fcn.004dd24a
lea ecx, [esp + 0x14]
push str.sm.dat
lea edx, [esp + 0x24]
push ecx
push edx
call fcn.004dd3a6
mov esi, dword [eax]
lea eax, [esp + 0x3c]
push str._sm.dat
lea ecx, [esp + 0x20]
push eax
push ecx
mov byte [esp + 0x29c], 0x14
call fcn.004dd3a6
mov eax, dword [eax]
push ebx
push esi
push eax
call edi
lea ecx, [esp + 0x1c]
mov esi, eax
call fcn.004dd111
lea ecx, [esp + 0x20]
mov byte [esp + 0x290], 0x13
call fcn.004dd111
cmp esi, ebx
jne 0x40eb56
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 2
je 0x40eb56
sub eax, 0x25
je 0x40ec97
sub eax, 0x49
je 0x40ebcb
lea edx, [esp + 0x50]
push 0xe82d
push edx
call fcn.0042e080
mov ecx, dword [ebp]
mov eax, dword [eax]
add esp, 8
lea edx, [esp + 0x58]
push 0x55cdc0
push ecx
push str.sm.dat
push eax
push edx
call fcn.004c286d
add esp, 0x14
lea ecx, [esp + 0x50]
call fcn.004dd111
push ebx
lea eax, [esp + 0x5c]
push 0x10
push eax
call fcn.004e548e
lea ecx, [esp + 0x3c]
mov byte [esp + 0x290], 0xd
call fcn.004dd111
lea ecx, [esp + 0x30]
mov byte [esp + 0x290], 2
call fcn.004dd111
lea ecx, [esp + 0x18]
mov byte [esp + 0x290], 1
call fcn.004dd111
lea ecx, [esp + 0x10]
mov byte [esp + 0x290], bl
call fcn.004dd111
lea ecx, [esp + 0x14]
mov dword [esp + 0x290], 0xffffffff
call fcn.004dd111
mov eax, 1
mov ecx, dword [esp + 0x288]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x284
ret
lea ecx, [esp + 0x54]
push 0xe82a
push ecx
call fcn.0042e080
mov esi, eax
lea edx, [esp + 0x54]
push 0xe82d
push edx
mov byte [esp + 0x2a0], 0x16
call fcn.0042e080
mov ecx, dword [esi]
mov edx, dword [ebp]
mov eax, dword [eax]
add esp, 0x10
push ecx
push edx
push str.sm.dat
push eax
lea eax, [esp + 0x68]
push eax
call fcn.004c286d
add esp, 0x14
lea ecx, [esp + 0x4c]
call fcn.004dd111
mov byte [esp + 0x290], 0x13
lea ecx, [esp + 0x54]
call fcn.004dd111
push ebx
lea ecx, [esp + 0x5c]
push 0x10
push ecx
call fcn.004e548e
lea ecx, [esp + 0x3c]
mov byte [esp + 0x290], 0xd
call fcn.004dd111
lea ecx, [esp + 0x30]
mov byte [esp + 0x290], 2
call fcn.004dd111
lea ecx, [esp + 0x18]
mov byte [esp + 0x290], 1
call fcn.004dd111
lea ecx, [esp + 0x10]
mov byte [esp + 0x290], bl
call fcn.004dd111
lea ecx, [esp + 0x14]
mov dword [esp + 0x290], 0xffffffff
call fcn.004dd111
xor eax, eax
jmp 0x40ebb2
lea edx, [esp + 0x40]
push 0xe82a
push edx
call fcn.0042e080
mov esi, eax
lea eax, [esp + 0x50]
push 0xe82d
push eax
mov byte [esp + 0x2a0], 0x15
call fcn.0042e080
mov ecx, dword [esi]
mov edx, dword [ebp]
mov eax, dword [eax]
add esp, 0x10
push ecx
push edx
push str.sm.dat
push eax
lea eax, [esp + 0x68]
push eax
call fcn.004c286d
add esp, 0x14
lea ecx, [esp + 0x48]
call fcn.004dd111
mov byte [esp + 0x290], 0x13
lea ecx, [esp + 0x40]
jmp 0x40ec27