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

Disassembly:
push 0xffffffffffffffff
push 0x6131f7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
mov eax, dword [0x6a4f78]
push ebx
push ebp
mov ebp, ecx
cmp eax, 2
push esi
mov dword [esp + 0x18], ebp
jae 0x532c48
mov eax, 1
jmp 0x532f91
push 0x69dc58
lea ecx, [esp + 0x18]
call fcn.005ece05
xor ebx, ebx
push 0x6a4f7c
mov dword [esp + 0x138], ebx
call fcn.00465c4f
add esp, 4
test eax, eax
push 0x6a4f58
jbe 0x532cb4
lea ecx, [esp + 0x14]
call fcn.005ece5a
mov ecx, dword [0x6a4f54]
mov edx, dword [eax]
push ecx
push edx
push 0x6a4f7c
lea eax, [esp + 0x20]
push str._susbkey__s__d.log
push eax
mov byte [esp + 0x148], 1
call fcn.005e20b1
add esp, 0x14
mov byte [esp + 0x134], bl
lea ecx, [esp + 0x10]
jmp 0x532cec
lea ecx, [esp + 0x14]
call fcn.005ece5a
mov ecx, dword [0x6a4f54]
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.005e20b1
add esp, 0x10
mov byte [esp + 0x134], bl
lea ecx, [esp + 0x10]
call fcn.005ecd91
call fcn.004ccd60
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 0x532db0
push 0x69dc58
lea ecx, [esp + 0x14]
call fcn.005ece05
push 0x6a4f58
lea ecx, [esp + 0x1c]
mov byte [esp + 0x138], 3
call fcn.005ece5a
mov esi, eax
mov byte [esp + 0x134], 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [0x6a4f54]
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.005e20b1
add esp, 0x14
lea ecx, [esp + 0x18]
mov byte [esp + 0x134], 3
call fcn.005ecd91
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.005ecd91
lea ecx, [esp + 0x14]
mov dword [esp + 0x134], 0xffffffff
call fcn.005ecd91
xor eax, eax
jmp 0x532f91
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 0x532e03
mov eax, 0x69f6d0
mov ecx, dword [ebp + 0x28]
cmp ecx, ebx
jne 0x532e0f
mov ecx, 0x69f6d0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, dword [0x6a4f54]
mov ecx, dword [esp + 0x32]
push eax
mov eax, dword [esp + 0x38]
push edx
mov edx, dword [esp + 0x38]
and eax, 0xffff
push 0x6a4f58
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.00467451
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 0x532ec5
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.00467451
add esp, 0x10
jmp 0x532ed7
lea edx, [esp + 0x30]
push str._r_n
push edx
call fcn.00467451
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 0x532f3d
push eax
lea eax, [esp + 0x34]
push str.___Result0x_x__r_n
push eax
call fcn.00467451
add esp, 0xc
jmp 0x532f4f
lea ecx, [esp + 0x30]
push 0x626d30
push ecx
call fcn.00467451
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.005ecd91
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