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

Disassembly:
push 0xffffffffffffffff
push 0x88d8a7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
mov eax, dword [0x9de994]
push ebx
push ebp
mov ebp, ecx
cmp eax, 2
push esi
mov dword [esp + 0x18], ebp
jae 0x6eacf8
mov eax, 1
jmp 0x6eb041
push 0x9b5220
lea ecx, [esp + 0x18]
call fcn.00831f5f
xor ebx, ebx
push 0x9de998
mov dword [esp + 0x138], ebx
call fcn.005fc40b
add esp, 4
test eax, eax
push 0x9de974
jbe 0x6ead64
lea ecx, [esp + 0x14]
call fcn.00831fb4
mov ecx, dword [0x9de970]
mov edx, dword [eax]
push ecx
push edx
push 0x9de998
lea eax, [esp + 0x20]
push str._susbkey__s__d.log
push eax
mov byte [esp + 0x148], 1
call fcn.00826097
add esp, 0x14
mov byte [esp + 0x134], bl
lea ecx, [esp + 0x10]
jmp 0x6ead9c
lea ecx, [esp + 0x14]
call fcn.00831fb4
mov ecx, dword [0x9de970]
mov edx, dword [eax]
push ecx
push edx
lea eax, [esp + 0x1c]
push str.c:usbkey__s__d.log
push eax
mov byte [esp + 0x144], 2
call fcn.00826097
add esp, 0x10
mov byte [esp + 0x134], bl
lea ecx, [esp + 0x10]
call fcn.00831eeb
call fcn.006640f0
mov ecx, dword [esp + 0x14]
push ebx
push ebx
push 4
push eax
push 3
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x6eae60
push 0x9b5220
lea ecx, [esp + 0x14]
call fcn.00831f5f
push 0x9de974
lea ecx, [esp + 0x1c]
mov byte [esp + 0x138], 3
call fcn.00831fb4
mov esi, eax
mov byte [esp + 0x134], 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [0x9de970]
push eax
mov eax, dword [esi]
push edx
push eax
lea ecx, [esp + 0x1c]
push str.CreateFile_c:usbkey__s__d.log_fail__GetLastError_d
push ecx
call fcn.00826097
add esp, 0x14
lea ecx, [esp + 0x18]
mov byte [esp + 0x134], 3
call fcn.00831eeb
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [esp + 0x10]
mov byte [esp + 0x134], bl
call fcn.00831eeb
lea ecx, [esp + 0x14]
mov dword [esp + 0x134], 0xffffffff
call fcn.00831eeb
xor eax, eax
jmp 0x6eb041
push edi
push 2
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor eax, eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x22], eax
push ecx
mov dword [esp + 0x2a], eax
mov word [esp + 0x24], bx
mov dword [esp + 0x2e], eax
mov word [esp + 0x32], ax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x31]
mov byte [esp + 0x30], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 0x2c]
mov dword [esp + 0x10], ebx
cmp eax, ebx
jne 0x6eaeb3
mov eax, 0x9bec2c
mov ecx, dword [ebp + 0x28]
cmp ecx, ebx
jne 0x6eaebf
mov ecx, 0x9bec2c
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, dword [0x9de970]
mov ecx, dword [esp + 0x32]
push eax
mov eax, dword [esp + 0x38]
push edx
mov edx, dword [esp + 0x38]
and eax, 0xffff
push 0x9de974
and ecx, 0xffff
push eax
mov eax, dword [esp + 0x3e]
and edx, 0xffff
push ecx
mov ecx, dword [esp + 0x3e]
push edx
mov edx, dword [esp + 0x40]
and eax, 0xffff
and ecx, 0xffff
push eax
and edx, 0xffff
push ecx
push edx
lea eax, [esp + 0x5c]
push str._04d__02d__02d__02d:_02d:_02d___s___d___d__SN:_s__ID:_s_
push eax
call fcn.00743a50
add esp, 0x34
lea ecx, [esp + 0x10]
lea edi, [esp + 0x30]
xor eax, eax
push ebx
push ecx
or ecx, 0xffffffff
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + 0x38]
push ecx
push edx
push esi
mov dword [esp + 0x24], ebx
call ebp
mov edi, dword [esp + 0x1c]
cmp dword [edi + 4], ebx
je 0x6eaf75
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [edi + 4]
push eax
lea ecx, [esp + 0x38]
push str._Err0x_x__GetLastError0x_x__r_n
push ecx
call fcn.00743a50
add esp, 0x10
jmp 0x6eaf87
lea edx, [esp + 0x30]
push str._r_n
push edx
call fcn.00743a50
add esp, 8
lea eax, [esp + 0x10]
push ebx
push eax
lea edi, [esp + 0x38]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x18], ebx
push ecx
lea ecx, [esp + 0x3c]
push ecx
push esi
call ebp
lea edx, [esp + 0x10]
push ebx
push edx
mov edx, dword [esp + 0x148]
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x18], ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call ebp
mov eax, dword [esp + 0x144]
cmp eax, 0x12345678
je 0x6eafed
push eax
lea eax, [esp + 0x34]
push str.___Result0x_x__r_n
push eax
call fcn.00743a50
add esp, 0xc
jmp 0x6eafff
lea ecx, [esp + 0x30]
push 0x8a8eb8
push ecx
call fcn.00743a50
add esp, 8
lea edi, [esp + 0x30]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
push ebx
dec ecx
push edx
lea eax, [esp + 0x38]
push ecx
push eax
push esi
mov dword [esp + 0x24], ebx
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x18]
mov dword [esp + 0x138], 0xffffffff
call fcn.00831eeb
mov eax, 1
pop edi
mov ecx, dword [esp + 0x12c]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x12c
ret 8