Function at 0x401000
Capabilities:
Copy file
Delete file
Get file size
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40dd66
mov eax, dword fs:[0]
push eax
mov eax, 0x2650
call fcn.0040d9d0
mov eax, dword [0x415004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x261c], ecx
xor eax, eax
mov dword [ebp - 0x263c], 0
mov dword [ebp - 0x2638], 7
mov word [ebp - 0x264c], ax
push str.XGKernel.dll
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
jne 0x4010b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x800
mov esi, eax
lea eax, [ebp - 0x1218]
push 0
push eax
call fcn.00403110
push esi
push str.XGKernel.dll
push str.Failed_Call_GetModuleHandle
lea eax, [ebp - 0x1218]
push str.ObserverHelp:__s:_s:error_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x20
lea eax, [ebp - 0x1218]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor ebx, ebx
jmp 0x401748
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00403110
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x401134
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x800
mov esi, eax
lea eax, [ebp - 0x1e18]
push 0
push eax
call fcn.00403110
push esi
push str.XGKernel.dll
push str.Failed_Call_GetModuleFileNameW
lea eax, [ebp - 0x1e18]
push str.ObserverHelp:__s:_s:error_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x20
lea eax, [ebp - 0x1e18]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor ebx, ebx
jmp 0x401748
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
jne 0x401196
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x800
mov esi, eax
lea eax, [ebp - 0x2618]
push 0
push eax
call fcn.00403110
push esi
lea eax, [ebp - 0x218]
push eax
push str.Failed_Call_PathRemoveFileSpec
lea eax, [ebp - 0x2618]
push str.ObserverHelp:__s:_s:error_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x20
lea eax, [ebp - 0x2618]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor ebx, ebx
jmp 0x401748
push str.dzclient.dll
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
jne 0x4011fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x800
mov esi, eax
lea eax, [ebp - 0xa18]
push 0
push eax
call fcn.00403110
push esi
lea eax, [ebp - 0x218]
push eax
push str.Failed_Call_PathAppend
lea eax, [ebp - 0xa18]
push str.ObserverHelp:__s:_s:error_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x20
lea eax, [ebp - 0xa18]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor ebx, ebx
jmp 0x401748
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401206
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x264c]
call fcn.004018a0
cmp dword [ebp - 0x2638], 8
lea eax, [ebp - 0x1218]
push 0x800
push 0
lea esi, [ebp - 0x264c]
cmovae esi, dword [ebp - 0x264c]
push eax
call fcn.00403110
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x1218]
add esp, 0xc
test esi, esi
je 0x401277
push 0
push esi
push str.Successed_Get_Client_Path
push str.ObserverHelp:__s:_s:error_d
push eax
call edi
add esp, 0x14
jmp 0x401287
push str.Successed_Get_Client_Path
push str.ObserverHelp:__s
push eax
call edi
add esp, 0xc
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [ebp - 0x1218]
push eax
call ebx
cmp dword [ebp - 0x2638], 8
lea eax, [ebp - 0x264c]
cmovae eax, dword [ebp - 0x264c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
mov dword [ebp - 0x265c], esi
test esi, esi
jne 0x401348
cmp dword [ebp - 0x2638], 8
lea esi, [ebp - 0x264c]
cmovae esi, dword [ebp - 0x264c]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x800
mov dword [ebp - 0x2650], eax
lea eax, [ebp - 0x1218]
push 0
push eax
call fcn.00403110
add esp, 0xc
lea eax, [ebp - 0x1218]
test esi, esi
je 0x401328
push dword [ebp - 0x2650]
push esi
push str.Failed_Call_LoadLibraryW
push str.ObserverHelp:__s:_s:error_d
push eax
call edi
add esp, 0x14
lea eax, [ebp - 0x1218]
push eax
call ebx
xor ebx, ebx
jmp 0x401748
push str.Failed_Call_LoadLibraryW
push str.ObserverHelp:__s
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x1218]
push eax
call ebx
xor ebx, ebx
jmp 0x401748
cmp dword [ebp - 0x2638], 8
lea eax, [ebp - 0x264c]
push 0x800
cmovae eax, dword [ebp - 0x264c]
mov dword [ebp - 0x2650], eax
lea eax, [ebp - 0x1218]
push 0
push eax
call fcn.00403110
mov eax, dword [ebp - 0x2650]
add esp, 0xc
test eax, eax
je 0x40139d
push 0
push eax
push str.Successed_Call_LoadLibraryW
lea eax, [ebp - 0x1218]
push str.ObserverHelp:__s:_s:error_d
push eax
call edi
add esp, 0x14
jmp 0x4013b3
push str.Successed_Call_LoadLibraryW
lea eax, [ebp - 0x1218]
push str.ObserverHelp:__s
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x1218]
push eax
call ebx
push 0x412db8
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x2650], eax
test eax, eax
jne 0x4013f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x800
mov esi, eax
lea eax, [ebp - 0xa18]
push 0
push eax
call fcn.00403110
push esi
push str.DcInit
jmp 0x401518
push 0x400
lea eax, [ebp - 0x1618]
push 0
push eax
call fcn.00403110
add esp, 0xc
lea eax, [ebp - 0x1618]
push eax
call dword [ebp - 0x2650]
test eax, eax
jne 0x401465
push 0x800
push eax
lea eax, [ebp - 0xa18]
push eax
call fcn.00403110
push 0
push str.DcInit
push str.Failed_Call
lea eax, [ebp - 0xa18]
push str.ObserverHelp:__s:_s:error_d
push eax
call edi
add esp, 0x20
lea eax, [ebp - 0xa18]
push eax
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor ebx, ebx
jmp 0x401748
push 0x412e24
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x412e38
push esi
mov dword [ebp - 0x2658], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x412e50
push esi
mov dword [ebp - 0x2654], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [ebp - 0x2658], 0
mov dword [ebp - 0x2650], eax
jne 0x4014c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x800
mov esi, eax
lea eax, [ebp - 0xa18]
push 0
push eax
call fcn.00403110
push esi
push str.DcIsEncryptedFile
jmp 0x401518
cmp dword [ebp - 0x2654], 0
jne 0x4014f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x800
mov esi, eax
lea eax, [ebp - 0xa18]
push 0
push eax
call fcn.00403110
push esi
push str.DcTransFileDirectly2
jmp 0x401518
test eax, eax
jne 0x40153e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x800
mov esi, eax
lea eax, [ebp - 0xa18]
push 0
push eax
call fcn.00403110
push esi
push str.DcUnInit
push str.Failed_Call_GetProcAddress
lea eax, [ebp - 0xa18]
push str.ObserverHelp:__s:_s:error_d
push eax
call edi
add esp, 0x20
lea eax, [ebp - 0xa18]
push eax
call ebx
xor ebx, ebx
jmp 0x401748
mov ebx, dword [ebp - 0x261c]
xor esi, esi
mov ecx, ebx
mov dword [ebp - 0x2624], esi
xor eax, eax
mov dword [ebp - 0x2620], 7
mov word [ebp - 0x2634], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401564
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x2634]
call fcn.004018a0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x2620]
mov eax, edx
mov ecx, dword [ebp - 0x2624]
sub eax, ecx
cmp eax, 4
jb 0x4015cf
cmp edx, 8
lea esi, [ebp - 0x2634]
push 8
cmovae esi, dword [ebp - 0x2634]
lea edi, [ecx + 4]
push str..tmp
mov dword [ebp - 0x2624], edi
lea eax, [esi + ecx*2]
push eax
call fcn.00404600
xor eax, eax
add esp, 0xc
mov word [esi + edi*2], ax
xor esi, esi
jmp 0x4015ec
push 4
push ecx
mov byte [ebp - 0x261c], 0
lea ecx, [ebp - 0x2634]
push dword [ebp - 0x261c]
push 4
call fcn.004019f0
push ebx
call dword [ebp - 0x2658]
test eax, eax
je 0x4016cb
cmp dword [ebp - 0x2620], 8
lea eax, [ebp - 0x2634]
push 0
cmovae eax, dword [ebp - 0x2634]
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
push esi
push str.F6A3A984_6D6D_4BC3_B548_7BE94813244C
push ebx
call dword [ebp - 0x2654]
mov dword [ebp - 0x2654], eax
lea eax, [ebp - 0x261c]
push eax
push esi
mov dword [ebp - 0x261c], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x2654]
test esi, esi
je 0x4016cb
lea eax, [ebp - 0x2634]
test edi, edi
jne 0x401698
cmp dword [ebp - 0x2620], 8
cmovae eax, dword [ebp - 0x2634]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x1618]
push eax
call dword [ebp - 0x2650]
xor ebx, ebx
jmp 0x4016eb
cmp dword [ebp - 0x2620], 8
push 0
cmovae eax, dword [ebp - 0x2634]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp dword [ebp - 0x2620], 8
lea eax, [ebp - 0x2634]
cmovae eax, dword [ebp - 0x2634]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x1618]
push eax
call dword [ebp - 0x2650]
push dword [ebp - 0x265c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor ebx, ebx
test esi, esi
setne bl
mov edx, dword [ebp - 0x2620]
cmp edx, 8
jb 0x40172b
mov ecx, dword [ebp - 0x2634]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401721
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4017a2
push edx
push ecx
call fcn.00401d10
add esp, 8
xor eax, eax
mov dword [ebp - 0x2624], 0
mov dword [ebp - 0x2620], 7
mov word [ebp - 0x2634], ax
mov edx, dword [ebp - 0x2638]
cmp edx, 8
jb 0x401784
mov ecx, dword [ebp - 0x264c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40177a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4017a7
push edx
push ecx
call fcn.00401d10
add esp, 8
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401ccf
mov esp, ebp
pop ebp
ret
call fcn.004053f2
call fcn.004053f2
int3