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

Disassembly:
push 0xffffffffffffffff
push 0x50939d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x278
mov eax, dword [0x5580c0]
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 0x55cde0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x294], 1
call fcn.004dd4bb
lea ebp, [edi + 0x64]
lea ecx, [esp + 0x14]
push ebp
mov byte [esp + 0x294], 2
call fcn.004dd586
lea eax, [esp + 0x34]
push 1
push eax
lea ecx, [esp + 0x1c]
call fcn.004d3d01
mov eax, dword [eax]
push 0x552bd8
push eax
call fcn.004c2aee
add esp, 8
lea ecx, [esp + 0x34]
test eax, eax
setne byte [esp + 0x3b]
call fcn.004dd44d
cmp byte [esp + 0x3b], bl
je 0x40e16a
push 0x552bd8
lea ecx, [esp + 0x18]
call fcn.004dd829
lea ecx, [esp + 0x14]
push str.serial.txt
lea edx, [esp + 0x38]
push ecx
push edx
call fcn.004dd6e2
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x294], 3
call fcn.004dd586
lea ecx, [esp + 0x34]
mov byte [esp + 0x290], 2
call fcn.004dd44d
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 0x40e218
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x27
je 0x40e2f7
cmp eax, 0x70
je 0x40e29d
lea ecx, [esp + 0x34]
push 0xe82b
push ecx
call fcn.0042e2e0
mov edx, dword [esp + 0x18]
mov eax, dword [eax]
add esp, 8
push 0x55cde0
push edx
push eax
lea eax, [esp + 0x64]
push eax
call fcn.004c2b9d
add esp, 0x10
lea ecx, [esp + 0x34]
call fcn.004dd44d
push ebx
lea ecx, [esp + 0x5c]
push 0x10
push ecx
call fcn.004e57ca
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.004dd87d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, ebx
jne 0x40e43d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x27
je 0x40e3e3
cmp eax, 0x70
je 0x40e36d
lea eax, [esp + 0x20]
push 0xe82b
push eax
call fcn.0042e2e0
mov ecx, dword [esp + 0x18]
mov eax, dword [eax]
add esp, 8
lea edx, [esp + 0x58]
push 0x55cde0
push ecx
push eax
push edx
call fcn.004c2b9d
add esp, 0x10
lea ecx, [esp + 0x20]
call fcn.004dd44d
push ebx
lea eax, [esp + 0x5c]
push 0x10
push eax
call fcn.004e57ca
jmp 0x40e43d
lea edx, [esp + 0x2c]
push 0xe82a
push edx
call fcn.0042e2e0
mov esi, eax
lea eax, [esp + 0x30]
push 0xe82b
push eax
mov byte [esp + 0x2a0], 5
call fcn.0042e2e0
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.004c2b9d
add esp, 0x10
lea ecx, [esp + 0x28]
call fcn.004dd44d
mov byte [esp + 0x290], 2
lea ecx, [esp + 0x2c]
jmp 0x40e34f
lea edx, [esp + 0x20]
push 0xe82a
push edx
call fcn.0042e2e0
mov esi, eax
lea eax, [esp + 0x2c]
push 0xe82b
push eax
mov byte [esp + 0x2a0], 4
call fcn.0042e2e0
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.004c2b9d
add esp, 0x10
lea ecx, [esp + 0x24]
call fcn.004dd44d
mov byte [esp + 0x290], 2
lea ecx, [esp + 0x20]
call fcn.004dd44d
push ebx
lea ecx, [esp + 0x5c]
push 0x10
push ecx
call fcn.004e57ca
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40ec3b
lea ecx, [esp + 0x2c]
push 0xe82a
push ecx
call fcn.0042e2e0
mov edi, eax
lea edx, [esp + 0x2c]
push 0xe82b
push edx
mov byte [esp + 0x2a0], 7
call fcn.0042e2e0
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.004c2b9d
add esp, 0x10
lea ecx, [esp + 0x24]
call fcn.004dd44d
mov byte [esp + 0x290], 2
lea ecx, [esp + 0x2c]
call fcn.004dd44d
push ebx
lea ecx, [esp + 0x5c]
push 0x10
push ecx
call fcn.004e57ca
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40ec3b
lea edx, [esp + 0x34]
push 0xe82a
push edx
call fcn.0042e2e0
mov edi, eax
lea eax, [esp + 0x30]
push 0xe82b
push eax
mov byte [esp + 0x2a0], 6
call fcn.0042e2e0
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.004c2b9d
add esp, 0x10
lea ecx, [esp + 0x28]
call fcn.004dd44d
mov byte [esp + 0x290], 2
lea ecx, [esp + 0x34]
jmp 0x40e3c5
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.004dd6e2
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x294], 8
call fcn.004dd586
lea ecx, [esp + 0x20]
mov byte [esp + 0x290], 2
call fcn.004dd44d
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 0x40e4f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x27
je 0x40e5d7
cmp eax, 0x70
je 0x40e57d
lea edx, [esp + 0x20]
push 0xe82c
push edx
call fcn.0042e2e0
mov ecx, dword [esp + 0x18]
mov eax, dword [eax]
add esp, 8
lea edx, [esp + 0x58]
push 0x55cde0
push ecx
push eax
push edx
call fcn.004c2b9d
add esp, 0x10
lea ecx, [esp + 0x20]
call fcn.004dd44d
push ebx
lea eax, [esp + 0x5c]
push 0x10
push eax
call fcn.004e57ca
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.004dd87d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, ebx
jne 0x40e717
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x27
je 0x40e6bc
cmp eax, 0x70
je 0x40e649
lea eax, [esp + 0x1c]
push 0xe82c
push eax
call fcn.0042e2e0
mov ecx, dword [esp + 0x18]
mov eax, dword [eax]
add esp, 8
lea edx, [esp + 0x58]
push 0x55cde0
push ecx
push eax
push edx
call fcn.004c2b9d
add esp, 0x10
lea ecx, [esp + 0x1c]
call fcn.004dd44d
push ebx
lea eax, [esp + 0x5c]
push 0x10
push eax
call fcn.004e57ca
jmp 0x40e717
lea ecx, [esp + 0x2c]
push 0xe82a
push ecx
call fcn.0042e2e0
mov esi, eax
lea edx, [esp + 0x2c]
push 0xe82c
push edx
mov byte [esp + 0x2a0], 0xa
call fcn.0042e2e0
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.004c2b9d
add esp, 0x10
lea ecx, [esp + 0x24]
call fcn.004dd44d
mov byte [esp + 0x290], 2
lea ecx, [esp + 0x2c]
jmp 0x40e62f
lea edx, [esp + 0x34]
push 0xe82a
push edx
call fcn.0042e2e0
mov esi, eax
lea eax, [esp + 0x30]
push 0xe82c
push eax
mov byte [esp + 0x2a0], 9
call fcn.0042e2e0
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.004c2b9d
add esp, 0x10
lea ecx, [esp + 0x28]
call fcn.004dd44d
mov byte [esp + 0x290], 2
lea ecx, [esp + 0x34]
call fcn.004dd44d
push ebx
lea ecx, [esp + 0x5c]
push 0x10
push ecx
call fcn.004e57ca
push ebx
call edi
jmp 0x40ec3b
lea ecx, [esp + 0x24]
push 0xe82a
push ecx
call fcn.0042e2e0
mov ebp, eax
lea edx, [esp + 0x28]
push 0xe82c
push edx
mov byte [esp + 0x2a0], 0xc
call fcn.0042e2e0
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.004c2b9d
add esp, 0x10
lea ecx, [esp + 0x20]
call fcn.004dd44d
mov byte [esp + 0x290], 2
lea ecx, [esp + 0x24]
call fcn.004dd44d
push ebx
lea ecx, [esp + 0x5c]
push 0x10
push ecx
call fcn.004e57ca
push esi
call edi
jmp 0x40ec3b
lea edx, [esp + 0x28]
push 0xe82a
push edx
call fcn.0042e2e0
mov ebp, eax
lea eax, [esp + 0x34]
push 0xe82c
push eax
mov byte [esp + 0x2a0], 0xb
call fcn.0042e2e0
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.004c2b9d
add esp, 0x10
lea ecx, [esp + 0x2c]
call fcn.004dd44d
mov byte [esp + 0x290], 2
lea ecx, [esp + 0x28]
jmp 0x40e6a2
push esi
call edi
push ecx
mov ecx, esp
mov dword [esp + 0x44], esp
push str.autoname.dat
call fcn.004dd4bb
lea edx, [esp + 0x34]
mov ecx, 0x55e088
push edx
call fcn.0044bd60
lea eax, [esp + 0x14]
push str.autoname.dat
lea ecx, [esp + 0x20]
push eax
push ecx
mov byte [esp + 0x29c], 0xd
call fcn.004dd6e2
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.004dd44d
cmp esi, ebx
jne 0x40e7d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 2
je 0x40e7d9
sub eax, 0x25
je 0x40e918
sub eax, 0x49
je 0x40e8ba
lea eax, [esp + 0x1c]
push 0xe82d
push eax
call fcn.0042e2e0
mov ecx, dword [ebp]
mov eax, dword [eax]
add esp, 8
lea edx, [esp + 0x58]
push 0x55cde0
push ecx
push str.autoname.dat
push eax
push edx
call fcn.004c2b9d
add esp, 0x14
lea ecx, [esp + 0x1c]
call fcn.004dd44d
push ebx
lea eax, [esp + 0x5c]
push 0x10
push eax
call fcn.004e57ca
push ecx
mov ecx, esp
mov dword [esp + 0x44], esp
push str.commands.dat
call fcn.004dd4bb
lea edx, [esp + 0x20]
mov ecx, 0x55e088
push edx
call fcn.0044bd60
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x294], 0x10
call fcn.004dd586
lea ecx, [esp + 0x1c]
mov byte [esp + 0x290], 0xd
call fcn.004dd44d
lea eax, [esp + 0x14]
push str.commands.dat
lea ecx, [esp + 0x20]
push eax
push ecx
call fcn.004dd6e2
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.004dd44d
cmp esi, ebx
jne 0x40ea4a
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 2
je 0x40ea4a
sub eax, 0x25
je 0x40e9e9
sub eax, 0x49
je 0x40e98b
lea eax, [esp + 0x1c]
push 0xe82d
push eax
call fcn.0042e2e0
mov ecx, dword [ebp]
mov eax, dword [eax]
add esp, 8
lea edx, [esp + 0x58]
push 0x55cde0
push ecx
push str.commands.dat
push eax
push edx
call fcn.004c2b9d
add esp, 0x14
lea ecx, [esp + 0x1c]
call fcn.004dd44d
push ebx
lea eax, [esp + 0x5c]
push 0x10
push eax
call fcn.004e57ca
jmp 0x40ea4a
lea ecx, [esp + 0x24]
push 0xe82a
push ecx
call fcn.0042e2e0
mov esi, eax
lea edx, [esp + 0x28]
push 0xe82d
push edx
mov byte [esp + 0x2a0], 0xf
call fcn.0042e2e0
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.004c2b9d
add esp, 0x14
lea ecx, [esp + 0x20]
call fcn.004dd44d
mov byte [esp + 0x290], 0xd
lea ecx, [esp + 0x24]
jmp 0x40e974
lea edx, [esp + 0x28]
push 0xe82a
push edx
call fcn.0042e2e0
mov esi, eax
lea eax, [esp + 0x34]
push 0xe82d
push eax
mov byte [esp + 0x2a0], 0xe
call fcn.0042e2e0
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.004c2b9d
add esp, 0x14
lea ecx, [esp + 0x2c]
call fcn.004dd44d
mov byte [esp + 0x290], 0xd
lea ecx, [esp + 0x28]
call fcn.004dd44d
push ebx
lea ecx, [esp + 0x5c]
push 0x10
push ecx
call fcn.004e57ca
jmp 0x40ec2a
lea ecx, [esp + 0x24]
push 0xe82a
push ecx
call fcn.0042e2e0
mov esi, eax
lea edx, [esp + 0x28]
push 0xe82d
push edx
mov byte [esp + 0x2a0], 0x12
call fcn.0042e2e0
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.004c2b9d
add esp, 0x14
lea ecx, [esp + 0x20]
call fcn.004dd44d
mov byte [esp + 0x290], 0xd
lea ecx, [esp + 0x24]
jmp 0x40e974
lea edx, [esp + 0x28]
push 0xe82a
push edx
call fcn.0042e2e0
mov esi, eax
lea eax, [esp + 0x34]
push 0xe82d
push eax
mov byte [esp + 0x2a0], 0x11
call fcn.0042e2e0
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.004c2b9d
add esp, 0x14
lea ecx, [esp + 0x2c]
call fcn.004dd44d
mov byte [esp + 0x290], 0xd
lea ecx, [esp + 0x28]
jmp 0x40e974
lea edx, [esp + 0x3c]
push 5
push edx
mov ecx, 0x55f6e8
call fcn.004b43e0
mov eax, dword [esp + 0x3c]
mov byte [esp + 0x290], 0x13
cmp dword [eax - 8], ebx
jne 0x40ea7a
push 0x55e734
lea ecx, [esp + 0x40]
call fcn.004dd586
lea ecx, [esp + 0x14]
push str.sm.dat
lea edx, [esp + 0x24]
push ecx
push edx
call fcn.004dd6e2
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.004dd6e2
mov eax, dword [eax]
push ebx
push esi
push eax
call edi
lea ecx, [esp + 0x1c]
mov esi, eax
call fcn.004dd44d
lea ecx, [esp + 0x20]
mov byte [esp + 0x290], 0x13
call fcn.004dd44d
cmp esi, ebx
jne 0x40eb36
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 2
je 0x40eb36
sub eax, 0x25
je 0x40ec77
sub eax, 0x49
je 0x40ebab
lea edx, [esp + 0x50]
push 0xe82d
push edx
call fcn.0042e2e0
mov ecx, dword [ebp]
mov eax, dword [eax]
add esp, 8
lea edx, [esp + 0x58]
push 0x55cde0
push ecx
push str.sm.dat
push eax
push edx
call fcn.004c2b9d
add esp, 0x14
lea ecx, [esp + 0x50]
call fcn.004dd44d
push ebx
lea eax, [esp + 0x5c]
push 0x10
push eax
call fcn.004e57ca
lea ecx, [esp + 0x3c]
mov byte [esp + 0x290], 0xd
call fcn.004dd44d
lea ecx, [esp + 0x30]
mov byte [esp + 0x290], 2
call fcn.004dd44d
lea ecx, [esp + 0x18]
mov byte [esp + 0x290], 1
call fcn.004dd44d
lea ecx, [esp + 0x10]
mov byte [esp + 0x290], bl
call fcn.004dd44d
lea ecx, [esp + 0x14]
mov dword [esp + 0x290], 0xffffffff
call fcn.004dd44d
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.0042e2e0
mov esi, eax
lea edx, [esp + 0x54]
push 0xe82d
push edx
mov byte [esp + 0x2a0], 0x16
call fcn.0042e2e0
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.004c2b9d
add esp, 0x14
lea ecx, [esp + 0x4c]
call fcn.004dd44d
mov byte [esp + 0x290], 0x13
lea ecx, [esp + 0x54]
call fcn.004dd44d
push ebx
lea ecx, [esp + 0x5c]
push 0x10
push ecx
call fcn.004e57ca
lea ecx, [esp + 0x3c]
mov byte [esp + 0x290], 0xd
call fcn.004dd44d
lea ecx, [esp + 0x30]
mov byte [esp + 0x290], 2
call fcn.004dd44d
lea ecx, [esp + 0x18]
mov byte [esp + 0x290], 1
call fcn.004dd44d
lea ecx, [esp + 0x10]
mov byte [esp + 0x290], bl
call fcn.004dd44d
lea ecx, [esp + 0x14]
mov dword [esp + 0x290], 0xffffffff
call fcn.004dd44d
xor eax, eax
jmp 0x40eb92
lea edx, [esp + 0x40]
push 0xe82a
push edx
call fcn.0042e2e0
mov esi, eax
lea eax, [esp + 0x50]
push 0xe82d
push eax
mov byte [esp + 0x2a0], 0x15
call fcn.0042e2e0
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.004c2b9d
add esp, 0x14
lea ecx, [esp + 0x48]
call fcn.004dd44d
mov byte [esp + 0x290], 0x13
lea ecx, [esp + 0x40]
jmp 0x40ec07