Function at 0x4070c0
Capabilities:
Copy file
Delete file
Enumerate files on windows
Query or enumerate registry value
Set current directory
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x427d3e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5a8
mov al, byte [0x436b5c]
cmp al, 0x15
push ebp
push esi
push edi
jl 0x40749e
cmp al, 0x7f
jg 0x40749e
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0x3a0]
rep stosd dword es:[edi], eax
push 0x104
lea eax, [esp + 0x29c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x40749e
lea ecx, [esp + 0x298]
push 0x5c
push ecx
call fcn.0040aaf0
lea edi, [esp + 0x2a0]
add esp, 8
mov byte [eax], 0
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x407143
mov edx, dword [str.log_]
mov ax, word [0x42bb78]
lea ecx, [esp + 0xc]
push ecx
push 1
push 0
push 0x429c20
mov dword [edi], edx
push 0x80000002
mov word [edi + 4], ax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4071a6
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x3a4]
push eax
push 0
push 0
push str.LastLog
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x30]
push eax
call fcn.0040bd4f
lea ecx, [esp + 0x34]
push ecx
call fcn.0040bb41
push eax
push str._Y_m_d.log
lea edx, [esp + 0x4c]
push 0x14
push edx
call fcn.0040bb26
mov eax, dword [str.20.log]
mov ecx, dword [0x42bb5c]
add esp, 0x18
lea edx, [esp + 0x298]
push edx
mov dword [esp + 0x4ac], eax
mov dword [esp + 0x4b0], ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x50]
mov dword [esp + 0x1c], eax
push ecx
lea edx, [esp + 0x4ac]
mov dword [esp + 0x24], eax
push edx
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ecx, eax
cmp ecx, 0xffffffff
mov dword [esp + 0x28], ecx
mov eax, 1
je 0x407405
mov ebp, dword [sym.imp.KERNEL32.dll_CopyFileA]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
nop
test eax, eax
je 0x407405
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0x3a4]
push ecx
call fcn.0040ace4
add esp, 8
test eax, eax
jg 0x4073f0
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x80]
push eax
call fcn.0040ace4
add esp, 8
test eax, eax
jge 0x4073f0
lea ecx, [esp + 0x7c]
push ecx
push 0x436b5c
lea edx, [esp + 0x198]
push str._s__s
push edx
call fcn.0040aa2b
add esp, 0x10
push 0
lea eax, [esp + 0x194]
push eax
lea ecx, [esp + 0x84]
push ecx
call ebp
push 0x30d70
call fcn.004196f5
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov dword [esp + 0x5bc], 0
je 0x4072e0
mov ecx, eax
call fcn.00404a70
mov esi, eax
jmp 0x4072e2
xor esi, esi
mov ecx, esi
mov dword [esp + 0x5bc], 0xffffffff
call fcn.004045e0
push 1
lea edx, [esp + 0x194]
push edx
push str.file
mov ecx, esi
call fcn.00404b30
push str.MERONG_0.9__p_
push 3
push str.http:__www.hxgame.net_log_userinstalllog.asp
mov ecx, esi
call fcn.00404480
test eax, eax
je 0x40739f
mov ecx, esi
call fcn.00403710
push str.SUCCESS
push eax
call fcn.0040b220
add esp, 8
test eax, eax
je 0x407350
lea eax, [esp + 0x190]
push eax
call edi
lea ecx, [esp + 0x7c]
push ecx
call edi
jmp 0x4073e4
lea edx, [esp + 0x190]
push edx
call edi
lea eax, [esp + 0x14]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407361
sub eax, edx
mov dword [esp + 0x10], eax
je 0x407386
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.0040ace4
add esp, 8
test eax, eax
jle 0x4073e4
xor eax, eax
jmp 0x407390
mov cl, byte [esp + eax + 0x7c]
mov byte [esp + eax + 0x14], cl
inc eax
test cl, cl
jne 0x407390
jmp 0x4073e4
lea edx, [esp + 0x190]
push edx
call edi
lea eax, [esp + 0x14]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4073b0
sub eax, edx
mov dword [esp + 0x10], eax
je 0x4073d5
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.0040ace4
add esp, 8
test eax, eax
jle 0x4073e4
xor eax, eax
mov cl, byte [esp + eax + 0x7c]
mov byte [esp + eax + 0x14], cl
inc eax
test cl, cl
jne 0x4073d7
test esi, esi
je 0x4073f0
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x50]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
jmp 0x407240
lea eax, [esp + 0x14]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407410
sub eax, edx
lea edx, [esp + 0xc]
push edx
push 0x20006
push 0
push 0x429c20
push 0x80000002
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40749e
test esi, esi
jle 0x407465
lea eax, [esp + 0x14]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407446
mov ecx, dword [esp + 0xc]
sub eax, edx
push eax
lea eax, [esp + 0x18]
push eax
push 1
push 0
push str.LastLog
push ecx
jmp 0x40748d
lea eax, [esp + 0x3c]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407470
sub eax, edx
push eax
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x40]
push edx
push 1
push 0
push str.LastLog
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x5b4]
pop edi
mov dword fs:[0], ecx
pop esi
pop ebp
mov esp, ebp
pop ebp
ret