Function at 0x4c3bf0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55f619
mov eax, dword fs:[0]
push eax
sub esp, 0x33c
mov eax, dword [0x5cf024]
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 ebx, ecx
cmp dword [ebx + 0x30], 0
jne 0x4c403b
mov eax, dword [ebx + 0x24]
cmp dword [eax - 0xc], 0
jne 0x4c3cda
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x4c3c87
add eax, eax
cmp eax, 0x208
jae 0x4c4057
xor ecx, ecx
mov word [ebp + eax - 0x218], cx
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c3c70
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
jmp 0x4c3c91
mov eax, str.Logger
mov ecx, 6
push ecx
push eax
lea ecx, [ebx + 0x24]
call fcn.00408e30
push 0x2e
push dword [ebx + 0x24]
call fcn.0051f59b
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x4c3cc8
mov eax, dword [ebx + 0x24]
sub ecx, eax
sar ecx, 1
test ecx, ecx
jle 0x4c3cc8
mov eax, dword [eax - 0xc]
sub eax, ecx
push eax
push ecx
lea ecx, [ebx + 0x24]
call fcn.0048fbb0
push 4
push str..log
lea ecx, [ebx + 0x24]
call fcn.00418fe0
mov eax, dword [ebx + 0x24]
push 0
push 0x80
push 4
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [ebx + 0x30]
mov edi, eax
cmp edi, ecx
je 0x4c3d0a
mov edx, dword [ebx + 0x2c]
lea ecx, [ebx + 0x2c]
call dword [edx + 4]
mov dword [ebx + 0x30], edi
mov ecx, edi
cmp dword [ebx + 0x30], 0xffffffff
jne 0x4c3d17
test ecx, ecx
jmp 0x4c4029
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
cmp eax, 0xb7
jne 0x4c3d46
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x4c3d8d
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x4c3d87
test eax, eax
jne 0x4c4025
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x4c4025
push 0
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x220], 0xfeff
push ecx
push 2
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x21c], 2
push ecx
push eax
call edx
push dword [ebx + 0x30]
call edi
mov edx, dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebx + 0x30], 0
je 0x4c403b
mov ecx, dword [ebx + 0x28]
lea esi, [ebp - 0x220]
push 0
push esi
mov esi, dword [ebx + 0x30]
mov eax, dword [ecx - 0xc]
add eax, eax
push eax
push ecx
push esi
call edx
push dword [ebx + 0x30]
call edi
call fcn.004c6260
mov esi, eax
lea edi, [ebp - 0x348]
mov ecx, 0x47
rep movsd dword es:[edi], dword [esi]
call fcn.004092a0
test eax, eax
je 0x4c405c
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
mov dword [ebp - 4], 1
mov ecx, 0x58b920
cmp byte [ebp - 0x233], 0
mov eax, 0x58b944
cmove eax, ecx
cmp byte [ebp - 0x234], 0
push eax
mov ecx, str.workstation
mov eax, str.server
cmove eax, ecx
push eax
push dword [ebp - 0x33c]
lea eax, [ebp - 0x21c]
push dword [ebp - 0x340]
push dword [ebp - 0x344]
push dword [ebp - 0x348]
push str.OS_Version:__u._u._u_SP_u___s____s_
push eax
call fcn.00408670
add esp, 0x20
lea ecx, [ebp - 0x21c]
push 2
push 0x57edf8
call fcn.00418fe0
mov esi, dword [ebp - 0x21c]
lea ecx, [ebp - 0x220]
push 0
push ecx
mov eax, dword [esi - 0xc]
add eax, eax
push eax
push esi
push dword [ebx + 0x30]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebx + 0x30]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov dword [ebp - 4], 0xffffffff
or edi, 0xffffffff
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4c3e9e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.004092a0
test eax, eax
je 0x4c405c
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
mov dword [ebp - 4], 3
mov eax, str.CPU:
lea ecx, [ebp - 0x21c]
test eax, 0xffff0000
jne 0x4c3edf
movzx eax, ax
push eax
call fcn.00415230
jmp 0x4c3eeb
push 5
push str.CPU:
call fcn.00408e30
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x220]
call fcn.004c4070
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x21c]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.00418fe0
mov byte [ebp - 4], 4
mov eax, edi
mov edx, dword [ebp - 0x220]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c3f33
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 2
push 0x57edf8
lea ecx, [ebp - 0x21c]
call fcn.00418fe0
mov esi, dword [ebp - 0x21c]
lea ecx, [ebp - 0x220]
push 0
push ecx
mov eax, dword [esi - 0xc]
add eax, eax
push eax
push esi
push dword [ebx + 0x30]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebx + 0x30]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4c3f8b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.004092a0
test eax, eax
je 0x4c405c
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
mov dword [ebp - 4], 8
mov eax, 0x57edf8
lea ecx, [ebp - 0x21c]
test eax, 0xffff0000
jne 0x4c3fcc
movzx eax, ax
push eax
call fcn.00415230
jmp 0x4c3fd8
push 2
push 0x57edf8
call fcn.00408e30
mov dword [ebp - 4], 9
lea ecx, [ebp - 0x220]
mov esi, dword [ebp - 0x21c]
push 0
push ecx
mov eax, dword [esi - 0xc]
add eax, eax
push eax
push esi
push dword [ebx + 0x30]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebx + 0x30]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x4c403b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4c403b
cmp dword [ebx + 0x30], 0
je 0x4c403b
mov eax, dword [ebx + 0x2c]
lea ecx, [ebx + 0x2c]
call dword [eax + 4]
mov dword [ebx + 0x30], 0
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.0051dacc
mov esp, ebp
pop ebp
ret
call fcn.0051e0ba
push 0x80004005
call fcn.00408f80
int3