Function at 0x42bc40
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cf7f5
mov eax, dword fs:[0]
push eax
sub esp, 0x13c
push ebx
push esi
push edi
mov eax, dword [0x515080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x34], 0
jne 0x42c35c
xor eax, eax
xor ecx, ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], ecx
mov eax, dword [ebx + 0x24]
lea esi, [ebx + 0x24]
cmp dword [eax - 0xc], 0
jne 0x42bca1
push ecx
inc ecx
mov dword [ebp - 0x14], ecx
mov ecx, ebx
call fcn.0042c550
test al, al
je 0x42bde7
push 0
push 0x80
push 4
push 0
push 3
push 0xc0000000
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
lea edi, [ebx + 0x30]
mov dword [ebp - 0x1c], eax
cmp eax, dword [edi + 4]
je 0x42bcdd
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4e2514]
mov ecx, edi
call esi
mov eax, dword [ebp - 0x1c]
mov dword [edi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebx + 0x34], 0xffffffff
mov dword [ebp - 0x1c], eax
jne 0x42bdd9
call fcn.004046f0
mov edi, eax
test edi, edi
je 0x42c36e
mov ecx, dword [edi]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x4e2514]
mov ecx, edi
call esi
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
push str.LOGGER__failed_to_create_LOG_at:
call fcn.00403700
test al, al
jne 0x42bd3d
push 0x20
push str.LOGGER__failed_to_create_LOG_at:
lea ecx, [ebp - 0x10]
call fcn.00403890
mov dword [ebp - 4], 1
lea eax, [ebx + 0x24]
push eax
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0x20]
call fcn.00410310
add esp, 4
mov byte [ebp - 4], 2
push dword [eax]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [ebp - 4], 1
or eax, 0xffffffff
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x42bd8d
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4e2514]
mov ecx, edi
call esi
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x42bdbb
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4e2514]
mov ecx, edi
call esi
lea ecx, [ebx + 0x24]
call fcn.004037c0
mov eax, dword [ebx + 0x30]
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x4e2514]
lea ecx, [ebx + 0x30]
call edi
lea edi, [ebx + 0x30]
cmp dword [ebx + 0x34], 0
jne 0x42bdea
mov ecx, dword [ebp - 0x14]
jmp 0x42bc81
lea edi, [ebx + 0x30]
mov ecx, dword [ebx + 0x34]
cmp ecx, 0xffffffff
je 0x42c33e
mov eax, dword [ebp - 0x1c]
cmp eax, 0xb7
jne 0x42bf2d
call fcn.004046f0
mov edi, eax
test edi, edi
je 0x42c36e
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x4e2514]
mov ecx, edi
call esi
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 5
lea ecx, [ebp - 0x10]
push str.LOGGER__Reusing_LOG_file_at:
call fcn.00403700
test al, al
jne 0x42be51
push 0x1c
push str.LOGGER__Reusing_LOG_file_at:
lea ecx, [ebp - 0x10]
call fcn.00403890
mov dword [ebp - 4], 6
lea eax, [ebx + 0x24]
push eax
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0x1c]
call fcn.00410310
add esp, 4
mov byte [ebp - 4], 7
mov edx, eax
push 0x4f0c8c
lea ecx, [ebp - 0x20]
call fcn.0042cd30
add esp, 4
mov byte [ebp - 4], 8
push dword [eax]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [ebp - 4], 7
or eax, 0xffffffff
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x42beb7
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4e2514]
mov ecx, edi
call esi
mov byte [ebp - 4], 6
or eax, 0xffffffff
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x42bee2
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4e2514]
mov ecx, edi
call esi
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x42bf10
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4e2514]
mov ecx, edi
call esi
mov eax, dword [ebx + 0x34]
test eax, eax
je 0x42c077
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x42c077
test eax, eax
jne 0x42c33e
test ecx, ecx
je 0x42c33e
call fcn.004046f0
mov edi, eax
test edi, edi
je 0x42c378
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x4e2514]
mov ecx, edi
call esi
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0xc
lea ecx, [ebp - 0x14]
push str.LOGGER__Creating_LOG_file_at:
call fcn.00403700
test al, al
jne 0x42bf8a
push 0x1d
push str.LOGGER__Creating_LOG_file_at:
lea ecx, [ebp - 0x14]
call fcn.00403890
mov dword [ebp - 4], 0xd
lea eax, [ebx + 0x24]
push eax
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x1c]
call fcn.00410310
add esp, 4
mov byte [ebp - 4], 0xe
mov edx, eax
push 0x4f0c8c
lea ecx, [ebp - 0x20]
call fcn.0042cd30
add esp, 4
mov byte [ebp - 4], 0xf
push dword [eax]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [ebp - 4], 0xe
or eax, 0xffffffff
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x42bff0
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4e2514]
mov ecx, edi
call esi
mov byte [ebp - 4], 0xd
or eax, 0xffffffff
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x42c01b
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4e2514]
mov ecx, edi
call esi
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x42c049
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4e2514]
mov ecx, edi
call esi
mov eax, 0xfeff
mov dword [ebp - 0x18], 2
push 0
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 0x10]
push eax
push dword [ebx + 0x34]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebx + 0x34]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov edx, dword [ebx + 0x34]
test edx, edx
je 0x42c35c
mov ecx, dword [ebx + 0x2c]
lea esi, [ebp - 0x18]
push 0
push esi
mov eax, dword [ecx - 0xc]
add eax, eax
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebx + 0x34]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
call fcn.00422120
mov esi, eax
lea edi, [ebp - 0x148]
mov ecx, 0x47
rep movsd dword es:[edi], dword [esi]
call fcn.004046f0
mov edi, eax
test edi, edi
je 0x42c36e
mov ecx, dword [edi]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x4e2514]
mov ecx, edi
call esi
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0x14
mov ecx, 0x4f00c0
cmp byte [ebp - 0x33], 0
mov eax, 0x4f00c8
cmove eax, ecx
cmp byte [ebp - 0x34], 0
push eax
mov ecx, str.workstation
mov eax, str.server
cmove eax, ecx
push eax
push dword [ebp - 0x13c]
lea eax, [ebp - 0x14]
push dword [ebp - 0x140]
push dword [ebp - 0x144]
push dword [ebp - 0x148]
push str.OS_Version:__u._u._u_SP_u___s____s_
push eax
call fcn.00408d80
add esp, 0x20
lea ecx, [ebp - 0x14]
push 2
push 0x4f0c8c
call fcn.004025b0
mov esi, dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
push 0
push ecx
mov eax, dword [esi - 0xc]
add eax, eax
push eax
push esi
push dword [ebx + 0x34]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebx + 0x34]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov dword [ebp - 4], 0xffffffff
or edi, 0xffffffff
lea ecx, [esi - 0x10]
mov eax, edi
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x42c191
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4e2514]
mov ecx, edi
call esi
or edi, 0xffffffff
call fcn.004046f0
mov dword [ebp - 0x18], eax
test eax, eax
je 0x42c36e
mov ecx, dword [eax]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x4e2514]
mov ecx, dword [ebp - 0x18]
call esi
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0x16
lea ecx, [ebp - 0x10]
push str.CPU:
call fcn.00403700
test al, al
jne 0x42c1e0
push 5
push str.CPU:
lea ecx, [ebp - 0x10]
call fcn.00403890
mov dword [ebp - 4], 0x17
lea ecx, [ebp - 0x18]
call fcn.0042c390
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x10]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.004025b0
mov byte [ebp - 4], 0x17
mov eax, edi
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x42c22e
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4e2514]
mov ecx, edi
call esi
or edi, 0xffffffff
push 2
push 0x4f0c8c
lea ecx, [ebp - 0x10]
call fcn.004025b0
mov esi, dword [ebp - 0x10]
lea ecx, [ebp - 0x18]
push 0
push ecx
mov eax, dword [esi - 0xc]
add eax, eax
push eax
push esi
push dword [ebx + 0x34]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebx + 0x34]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
mov eax, edi
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x42c28c
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4e2514]
mov ecx, edi
call esi
or edi, 0xffffffff
call fcn.004046f0
mov dword [ebp - 0x18], eax
test eax, eax
je 0x42c36e
mov ecx, dword [eax]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x4e2514]
mov ecx, dword [ebp - 0x18]
call esi
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0x1b
lea ecx, [ebp - 0x14]
push 0x4f0c8c
call fcn.00403700
test al, al
jne 0x42c2db
push 2
push 0x4f0c8c
lea ecx, [ebp - 0x14]
call fcn.00403890
mov dword [ebp - 4], 0x1c
lea ecx, [ebp - 0x18]
mov esi, dword [ebp - 0x14]
push 0
push ecx
mov eax, dword [esi - 0xc]
add eax, eax
push eax
push esi
push dword [ebx + 0x34]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebx + 0x34]
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 0x42c35c
mov edi, dword [esi]
push esi
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4e2514]
mov ecx, edi
call esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [edi + 4], 0
je 0x42c35c
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4e2514]
mov ecx, edi
call esi
mov dword [edi + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00402720
push 0x80004005
call fcn.00402720
int3