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

Disassembly:
push 0xffffffffffffffff
push 0x56cd98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push ebp
push esi
push edi
xor edi, edi
mov dword [esp + 0x48], edi
mov eax, dword [0x5d2d10]
mov dword [esp + 0x10], eax
push 0x5d7b88
lea ecx, [esp + 0x30]
mov byte [esp + 0x4c], 3
call fcn.00530bfd
mov ecx, dword [esp + 0x50]
push str.serial.txt
lea edx, [esp + 0x20]
push ecx
push edx
mov byte [esp + 0x54], 4
mov dword [esp + 0x24], edi
call fcn.004a0890
add esp, 0xc
mov eax, dword [esp + 0x1c]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
push edi
push 0x20
push 2
push edi
push edi
push 0x40000000
push eax
mov byte [esp + 0x64], 5
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, eax
cmp esi, 0xffffffff
jne 0x487e75
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x27
je 0x487dfb
cmp eax, 0x70
je 0x487dfb
mov ecx, dword [esp + 0x50]
push 0x5d7b88
push ecx
lea edx, [esp + 0x18]
push 0xe82b
push edx
call fcn.00528836
add esp, 0x10
jmp 0x487e3f
lea eax, [esp + 0x34]
push 0xe82a
push eax
call fcn.004ef2a0
mov ecx, dword [eax]
mov edx, dword [esp + 0x58]
push ecx
push edx
lea eax, [esp + 0x20]
push 0xe82b
push eax
mov byte [esp + 0x60], 6
call fcn.00528836
add esp, 0x18
lea ecx, [esp + 0x34]
mov byte [esp + 0x48], 5
call fcn.00530b8f
mov dword [esp + 0x18], 1
mov edi, dword [esp + 0x5c]
mov ecx, dword [edi]
mov eax, dword [ecx - 8]
test eax, eax
je 0x487e58
push str._r_n_r_n
mov ecx, edi
call fcn.00530f6b
lea edx, [esp + 0x10]
mov ecx, edi
push edx
call fcn.00530fa7
mov eax, dword [esp + 0x18]
test eax, eax
je 0x487f47
jmp 0x488469
mov eax, dword [esp + 0x54]
lea edx, [esp + 0x38]
push edi
push edx
mov ecx, dword [eax - 8]
push ecx
push eax
push esi
call ebp
cmp eax, edi
mov edi, dword [esp + 0x5c]
jne 0x487f39
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x27
je 0x487ec1
cmp eax, 0x70
je 0x487ec1
mov eax, dword [esp + 0x50]
push 0x5d7b88
push eax
lea ecx, [esp + 0x18]
push 0xe82b
push ecx
call fcn.00528836
add esp, 0x10
jmp 0x487f05
lea edx, [esp + 0x5c]
push 0xe82a
push edx
call fcn.004ef2a0
mov eax, dword [eax]
mov ecx, dword [esp + 0x58]
push eax
push ecx
lea edx, [esp + 0x20]
push 0xe82b
push edx
mov byte [esp + 0x60], 7
call fcn.00528836
add esp, 0x18
lea ecx, [esp + 0x5c]
mov byte [esp + 0x48], 5
call fcn.00530b8f
mov dword [esp + 0x18], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x487f21
push str._r_n_r_n
mov ecx, edi
call fcn.00530f6b
lea ecx, [esp + 0x10]
push ecx
mov ecx, edi
call fcn.00530fa7
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x488469
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x50]
push str.key.reg
lea eax, [esp + 0x18]
push edx
push eax
call fcn.004a0890
add esp, 0xc
mov ecx, dword [esp + 0x14]
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push ecx
mov byte [esp + 0x64], 8
call ebx
mov esi, eax
or ebx, 0xffffffff
cmp esi, ebx
jne 0x488027
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x27
je 0x487fb8
cmp eax, 0x70
je 0x487fb8
mov edx, dword [esp + 0x14]
push 0x5d7b88
push edx
lea eax, [esp + 0x18]
push 0xe82b
push eax
call fcn.00528836
mov ebp, dword [esp + 0x28]
add esp, 0x10
jmp 0x487ff9
lea ecx, [esp + 0x5c]
push 0xe82a
push ecx
call fcn.004ef2a0
mov edx, dword [eax]
mov eax, dword [esp + 0x1c]
push edx
push eax
lea ecx, [esp + 0x20]
push 0xe82b
push ecx
mov byte [esp + 0x60], 9
call fcn.00528836
add esp, 0x18
lea ecx, [esp + 0x5c]
mov byte [esp + 0x48], 8
call fcn.00530b8f
mov ebp, 1
mov edx, dword [edi]
mov eax, dword [edx - 8]
test eax, eax
je 0x48800e
push str._r_n_r_n
mov ecx, edi
call fcn.00530f6b
lea eax, [esp + 0x10]
mov ecx, edi
push eax
call fcn.00530fa7
test ebp, ebp
je 0x4880fa
jmp 0x488265
mov eax, dword [esp + 0x58]
lea edx, [esp + 0x38]
push 0
push edx
mov ecx, dword [eax - 8]
push ecx
push eax
push esi
call ebp
test eax, eax
jne 0x4880e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x27
je 0x488070
cmp eax, 0x70
je 0x488070
mov eax, dword [esp + 0x14]
push 0x5d7b88
push eax
lea ecx, [esp + 0x18]
push 0xe82b
push ecx
call fcn.00528836
add esp, 0x10
jmp 0x4880b4
lea edx, [esp + 0x5c]
push 0xe82a
push edx
call fcn.004ef2a0
mov eax, dword [eax]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
lea edx, [esp + 0x20]
push 0xe82b
push edx
mov byte [esp + 0x60], 0xa
call fcn.00528836
add esp, 0x18
lea ecx, [esp + 0x5c]
mov byte [esp + 0x48], 8
call fcn.00530b8f
mov dword [esp + 0x18], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4880d0
push str._r_n_r_n
mov ecx, edi
call fcn.00530f6b
lea ecx, [esp + 0x10]
push ecx
mov ecx, edi
call fcn.00530fa7
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x488265
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x50]
push str.Commands.dat
lea eax, [esp + 0x2c]
push edx
push eax
call fcn.004a0890
lea ecx, [esp + 0x68]
mov byte [esp + 0x54], 0xb
push ecx
call fcn.0049ec70
mov eax, dword [eax]
push str.Commands.dat
lea edx, [esp + 0x38]
push eax
push edx
mov byte [esp + 0x64], 0xc
call fcn.004a0890
add esp, 0x1c
lea ecx, [esp + 0x5c]
mov byte [esp + 0x48], 0xe
call fcn.00530b8f
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0
push eax
push ecx
call esi
test eax, eax
jne 0x4882db
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 2
je 0x4881df
sub eax, 0x25
je 0x48819c
sub eax, 0x49
je 0x48819c
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push 0x5d7b88
push edx
push eax
lea ecx, [esp + 0x1c]
push 0xe82d
push ecx
call fcn.00528836
add esp, 0x14
jmp 0x488220
lea edx, [esp + 0x34]
push 0xe82a
push edx
call fcn.004ef2a0
mov eax, dword [eax]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
push eax
push ecx
push edx
lea eax, [esp + 0x24]
push 0xe82d
push eax
mov byte [esp + 0x64], 0xf
call fcn.00528836
add esp, 0x1c
lea ecx, [esp + 0x34]
mov byte [esp + 0x48], 0xe
call fcn.00530b8f
jmp 0x488228
lea ecx, [esp + 0x18]
push 0xf2be
push ecx
call fcn.004ef2a0
mov edx, dword [eax]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
push edx
push eax
push ecx
lea edx, [esp + 0x24]
push 0xe82d
push edx
mov byte [esp + 0x64], 0x10
call fcn.00528836
add esp, 0x1c
lea ecx, [esp + 0x18]
mov byte [esp + 0x48], 0xe
call fcn.00530b8f
test ebp, ebp
je 0x4882db
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x48823d
push str._r_n_r_n
mov ecx, edi
call fcn.00530f6b
lea ecx, [esp + 0x10]
push ecx
mov ecx, edi
call fcn.00530fa7
lea ecx, [esp + 0x24]
mov byte [esp + 0x48], 0xb
call fcn.00530b8f
lea ecx, [esp + 0x28]
mov byte [esp + 0x48], 8
call fcn.00530b8f
lea ecx, [esp + 0x14]
mov byte [esp + 0x48], 5
call fcn.00530b8f
lea ecx, [esp + 0x1c]
mov byte [esp + 0x48], 4
call fcn.00530b8f
lea ecx, [esp + 0x2c]
mov byte [esp + 0x48], 3
call fcn.00530b8f
lea ecx, [esp + 0x10]
mov byte [esp + 0x48], 2
call fcn.00530b8f
lea ecx, [esp + 0x50]
mov byte [esp + 0x48], 1
call fcn.00530b8f
lea ecx, [esp + 0x54]
mov byte [esp + 0x48], 0
call fcn.00530b8f
lea ecx, [esp + 0x58]
mov dword [esp + 0x48], ebx
call fcn.00530b8f
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret
lea edx, [esp + 0x20]
mov ecx, 0x66d030
push edx
call fcn.004d1d70
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x34]
push eax
push ecx
mov byte [esp + 0x50], 0x11
call fcn.004a0350
mov eax, dword [eax]
mov edx, dword [esp + 0x58]
push eax
lea eax, [esp + 0x3c]
push edx
push eax
mov byte [esp + 0x5c], 0x12
call fcn.004a0890
add esp, 0x14
mov bl, 0x14
lea ecx, [esp + 0x34]
mov byte [esp + 0x48], bl
call fcn.00530b8f
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x20]
push 0
push ecx
push edx
call esi
test eax, eax
jne 0x4884d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 2
je 0x4883ba
sub eax, 0x25
je 0x488378
sub eax, 0x49
je 0x488378
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x20]
push 0x5d7b88
push eax
push ecx
lea edx, [esp + 0x1c]
push 0xe82d
push edx
call fcn.00528836
add esp, 0x14
jmp 0x4883fa
lea eax, [esp + 0x18]
push 0xe82a
push eax
call fcn.004ef2a0
mov ecx, dword [eax]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x28]
push ecx
push edx
push eax
lea ecx, [esp + 0x24]
push 0xe82d
push ecx
mov byte [esp + 0x64], 0x15
call fcn.00528836
add esp, 0x1c
lea ecx, [esp + 0x18]
mov byte [esp + 0x48], bl
call fcn.00530b8f
jmp 0x488402
lea edx, [esp + 0x3c]
push 0xf2be
push edx
call fcn.004ef2a0
mov eax, dword [eax]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x28]
push eax
push ecx
push edx
lea eax, [esp + 0x24]
push 0xe82d
push eax
mov byte [esp + 0x64], 0x16
call fcn.00528836
add esp, 0x1c
lea ecx, [esp + 0x3c]
mov byte [esp + 0x48], bl
call fcn.00530b8f
test ebp, ebp
je 0x4884d5
mov ecx, dword [edi]
mov eax, dword [ecx - 8]
test eax, eax
je 0x488417
push str._r_n_r_n
mov ecx, edi
call fcn.00530f6b
lea edx, [esp + 0x10]
mov ecx, edi
push edx
call fcn.00530fa7
lea ecx, [esp + 0x30]
mov byte [esp + 0x48], 0x11
call fcn.00530b8f
lea ecx, [esp + 0x20]
mov byte [esp + 0x48], 0xe
call fcn.00530b8f
lea ecx, [esp + 0x24]
mov byte [esp + 0x48], 0xb
call fcn.00530b8f
lea ecx, [esp + 0x28]
mov byte [esp + 0x48], 8
call fcn.00530b8f
lea ecx, [esp + 0x14]
mov byte [esp + 0x48], 5
call fcn.00530b8f
lea ecx, [esp + 0x1c]
mov byte [esp + 0x48], 4
call fcn.00530b8f
lea ecx, [esp + 0x2c]
mov byte [esp + 0x48], 3
call fcn.00530b8f
lea ecx, [esp + 0x10]
mov byte [esp + 0x48], 2
call fcn.00530b8f
lea ecx, [esp + 0x50]
mov byte [esp + 0x48], 1
call fcn.00530b8f
lea ecx, [esp + 0x54]
mov byte [esp + 0x48], 0
call fcn.00530b8f
lea ecx, [esp + 0x58]
mov dword [esp + 0x48], 0xffffffff
call fcn.00530b8f
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret
lea ecx, [esp + 0x30]
mov byte [esp + 0x48], 0x11
call fcn.00530b8f
lea ecx, [esp + 0x20]
mov byte [esp + 0x48], 0xe
call fcn.00530b8f
lea ecx, [esp + 0x24]
mov byte [esp + 0x48], 0xb
call fcn.00530b8f
lea ecx, [esp + 0x28]
mov byte [esp + 0x48], 8
call fcn.00530b8f
lea ecx, [esp + 0x14]
mov byte [esp + 0x48], 5
call fcn.00530b8f
lea ecx, [esp + 0x1c]
mov byte [esp + 0x48], 4
call fcn.00530b8f
lea ecx, [esp + 0x2c]
mov byte [esp + 0x48], 3
call fcn.00530b8f
lea ecx, [esp + 0x10]
mov byte [esp + 0x48], 2
call fcn.00530b8f
lea ecx, [esp + 0x50]
mov byte [esp + 0x48], 1
call fcn.00530b8f
lea ecx, [esp + 0x54]
mov byte [esp + 0x48], 0
call fcn.00530b8f
lea ecx, [esp + 0x58]
mov dword [esp + 0x48], 0xffffffff
call fcn.00530b8f
mov ecx, dword [esp + 0x40]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x3c
ret