Function at 0x5765fd70
Capabilities:
Create process on windows
Read .ini file
Write and execute a file
Write file on windows

Disassembly:
sub esp, 0xe34
push ebx
mov ebx, ecx
push ebp
push esi
mov dword [ebx + 8], 1
mov dl, byte [0x576876ec]
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], dl
mov byte [esp + 0x224], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x225]
mov byte [esp + 0x83c], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x83d]
mov byte [esp + 0x328], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x329]
mov byte [esp + 0x120], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x121]
mov ebp, dword [esp + 0xe48]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 0x418]
mov dword [esp + 0x10], eax
push eax
lea eax, [esp + 0x124]
push str.Errlog_d.log
push eax
call sub.MSVCRT.dll_sprintf
add esp, 0xc
lea ecx, [esp + 0x120]
push ecx
push str.Error_Log__s
call fcn.57653a20
add esp, 8
lea edx, [esp + 0x120]
lea eax, [esp + 0x1c]
push edx
push 0x576897b0
push 0x57684550
push eax
call sub.MSVCRT.dll_sprintf
mov cx, word [0x576876e8]
xor eax, eax
mov word [esp + 0x43c], cx
mov ecx, 0x81
lea edi, [esp + 0x43e]
lea edx, [esp + 0x43c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea eax, [esp + 0x30]
push edx
push eax
call fcn.57661060
lea ecx, [esp + 0x38]
push ecx
call fcn.57661130
add esp, 0x20
test eax, eax
jne 0x5765ff0b
push eax
push 0x80
push 1
push eax
push eax
lea edx, [esp + 0x30]
push 0x40000000
push edx
mov dword [esp + 0x34], 0xfeff
call fcn.57661420
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
add esp, 0x1c
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esp + 0x20]
push 2
push ecx
push esi
call edi
lea edx, [esp + 0x14]
push 0
push edx
push str._LOG_
call sub.MSVCRT.dll_wcslen
add esp, 4
lea eax, [eax + eax + 2]
push eax
push str._LOG_
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x576894a4
lea ecx, [esp + 0x840]
push 0x104
push ecx
push 0
push str.SERIAL
push str.Setup
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea edx, [esp + 0x1c]
lea eax, [esp + 0x83c]
push edx
push eax
push 0x57686fc8
push 0x57684f78
call esi
lea edi, [ebp + 0x210]
push edi
call sub.MSVCRT.dll_wcslen
add esp, 4
test eax, eax
jne 0x5765ff6f
push str.UNKNOWN_FILENAME
push edi
call sub.MSVCRT.dll_swprintf
add esp, 8
lea ecx, [esp + 0x42c]
push ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push str.FILENAME
push 0x57686f88
call edi
lea edx, [esp + 0x1c]
lea eax, [ebx + 0xc]
push edx
push eax
push str.APPNAME
push 0x57684f78
call esi
lea ecx, [esp + 0x1c]
lea edx, [ebp + 0x10c]
push ecx
push edx
push str.DRVNAME
push 0x57684f78
call esi
lea eax, [esp + 0x1c]
add ebp, 8
push eax
push ebp
push str.PRINTERNAME
push 0x57684f78
call esi
lea ecx, [esp + 0x42c]
push ecx
push 0x576879dc
push str.SABEON
push 0x57686f88
call edi
lea edx, [esp + 0x42c]
push edx
push 0x57687aa4
push str.DEPT
push 0x57686f88
call edi
lea eax, [ebx + 0x318]
test eax, eax
je 0x5766001d
lea ecx, [esp + 0x42c]
push ecx
push eax
push str.DEPTENG
push 0x57686f88
call edi
lea edx, [esp + 0x42c]
push edx
push 0x576879b4
push str.NAME
push 0x57686f88
call edi
lea eax, [ebx + 0x728]
test eax, eax
je 0x57660055
lea ecx, [esp + 0x42c]
push ecx
push eax
push str.NAME_E
push 0x57686f88
call edi
mov edx, dword [esp + 0x10]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x224]
rep stosd dword es:[edi], eax
push edx
lea eax, [esp + 0x228]
push 0x57686ef4
push eax
call sub.MSVCRT.dll_sprintf
add esp, 0xc
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x224]
push ecx
push edx
push str.TIME
push 0x57684f78
call esi
mov al, byte [0x576876ec]
mov ecx, 0xff
mov byte [esp + 0xa44], al
xor eax, eax
lea edi, [esp + 0xa45]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebx + 4]
cmp eax, 0xd
je 0x576600dc
mov edx, dword [0x57687724]
lea ecx, [esp + 0xa44]
push 0x400
push ecx
push eax
push edx
call dword [sym.imp.USER32.dll_LoadStringA]
jmp 0x576600fd
mov eax, dword [esp + 0xe4c]
test eax, eax
je 0x576600fd
push eax
lea eax, [esp + 0xa48]
push 0x5768352c
push eax
call sub.MSVCRT.dll_sprintf
add esp, 0xc
lea ecx, [esp + 0x1c]
lea edx, [esp + 0xa44]
push ecx
push edx
push str.ERRCONTENT
push 0x57684f78
call esi
mov ebx, dword [ebx + 4]
cmp ebx, 6
jne 0x57660125
mov edx, 1
jmp 0x57660130
xor edx, edx
cmp ebx, 7
setne dl
add edx, 2
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x224]
push edx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x228]
push 0x57686ef4
push eax
call sub.MSVCRT.dll_sprintf
add esp, 0xc
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x224]
push ecx
push edx
push str.ERRCODE
push 0x57684f78
call esi
lea eax, [esp + 0x120]
lea ecx, [esp + 0x328]
push eax
push 0x576898b4
push str._sSecuELog.exe___s_
push ecx
call sub.MSVCRT.dll_sprintf
mov dl, byte [0x576876ec]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x951]
mov byte [esp + 0x950], dl
add esp, 0x10
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x120]
lea ecx, [esp + 0x940]
push eax
push str.__s_
push ecx
call sub.MSVCRT.dll_sprintf
mov eax, dword [0x5768946c]
add esp, 0xc
lea edx, [esp + 0x1c]
test eax, eax
push edx
je 0x5766021f
push 0x57686edc
push str.ONOFF
push 0x57684f78
call esi
lea eax, [esp + 0x328]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
lea ecx, [esp + 0x328]
push ecx
push str.On___Line_
call fcn.57653a20
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xe34
ret 8
push 0x57685074
push str.ONOFF
push 0x57684f78
call esi
lea eax, [esp + 0x120]
lea ecx, [esp + 0x1c]
push eax
push 0x5768352c
push ecx
call sub.MSVCRT.dll_sprintf
add esp, 0xc
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x120]
push 0x576897b0
lea edx, [esp + 0x124]
push str._sofflineErr.log
push edx
rep stosd dword es:[edi], eax
call sub.MSVCRT.dll_sprintf
add esp, 0xc
lea eax, [esp + 0x120]
push eax
push 0
push str.COUNT
push str.FILE
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov cl, byte [0x576876ec]
mov ebx, eax
mov byte [esp + 0x738], cl
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x739]
rep stosd dword es:[edi], eax
inc ebx
lea edx, [esp + 0x738]
stosw word es:[edi], ax
push ebx
push str.NUM_d
push edx
stosb byte es:[edi], al
call sub.MSVCRT.dll_sprintf
add esp, 0xc
lea eax, [esp + 0x120]
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x738]
push eax
push ecx
push edx
push str.LIST
call esi
mov al, byte [0x576876ec]
mov ecx, 0x40
mov byte [esp + 0x634], al
xor eax, eax
lea edi, [esp + 0x635]
push ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x638]
push 0x57686ef4
push ecx
stosb byte es:[edi], al
call sub.MSVCRT.dll_sprintf
add esp, 0xc
lea edx, [esp + 0x120]
lea eax, [esp + 0x634]
push edx
push eax
push str.COUNT
push str.FILE
call esi
push str.Off___Line_
call fcn.57653a20
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xe34
ret 8