joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420130
Capabilities:
Check mutex on windows
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov edi, dword [ebp + 8]
mov dword [esp], edi
call sym._strlen
mov ebx, eax
lea eax, [eax + 0x40]
and eax, 0xfffffff0
call fcn.0040dc70
mov edx, 0x326d
sub esp, eax
lea eax, [esp + 0x1b]
mov dword [esp + 4], edi
mov dword [esp + 8], ebx
lea esi, [esp + 0xc]
mov word [esp + 0x18], dx
mov dword [esp + 0xc], 0x2d636367
mov dword [esp], eax
mov dword [esp + 0x10], 0x656d6873
mov dword [esp + 0x14], 0x64742d6d
mov byte [esp + 0x1a], 0x2d
call sym._memcpy
lea eax, [ebx + 0x10]
lea edi, [esi + eax]
mov dword [ebp - 0x24], eax
lea eax, [ebx + 0x30]
mov dword [edi], 0x61616161
mov dword [edi + 4], 0x61616161
mov dword [edi + 8], 0x61616161
mov dword [edi + 0xc], 0x61616161
mov dword [edi + 0x10], 0x61616161
mov dword [edi + 0x14], 0x61616161
mov dword [edi + 0x18], 0x61616161
mov dword [edi + 0x1c], 0x61616161
mov dword [ebp - 0x1c], eax
mov byte [esp + ebx + 0x3c], 0
mov byte [esp + ebx + 0x1b], 0
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
sub esp, 0xc
mov byte [esi + ebx + 0xf], 0x2d
mov dword [ebp - 0x20], eax
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
sub esp, 8
test eax, eax
je 0x42021f
int3
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_FindAtomA]
sub esp, 4
test ax, ax
jne 0x4202c3
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._malloc
mov edx, edi
mov ebx, eax
mov eax, 0x20
nop
lea esi, [esi]
bt ebx, eax
jae 0x420258
mov byte [edx], 0x41
add edx, 1
sub eax, 1
jne 0x420250
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_AddAtomA]
sub esp, 4
test ax, ax
je 0x4202c0
mov ecx, dword [ebp - 0x24]
mov edx, esi
movzx eax, ax
mov dword [esp], ecx
mov ecx, dword [ebp - 0x1c]
call sym._get_ptr_from_atom_1
cmp eax, ebx
mov esi, eax
je 0x4202da
mov dword [esp], ebx
call sym._free
mov edi, dword [ebp - 0x20]
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
sub esp, 4
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
int3
mov ecx, dword [ebp - 0x24]
mov edx, esi
movzx eax, ax
mov dword [esp], ecx
mov ecx, dword [ebp - 0x1c]
call sym._get_ptr_from_atom_1
mov esi, eax
jmp 0x420292
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], 0
mov dword [esp], ebx
mov dword [esp + 8], eax
call sym._memset
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x420292
mov dword [esp], ebx
call dword [ebp + 0x10]
jmp 0x420292
Function at 0x40a0b0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov ecx, dword [0x43df24]
mov edx, dword [0x43df28]
mov eax, dword [ebp + 8]
lea esi, [ecx - 1]
imul esi, ecx
mov ecx, esi
xor ecx, 0xfffffffe
test ecx, esi
mov ecx, 0x5f420508
sete byte [ebp - 0xd]
cmp edx, 0xa
mov edx, 0xa28fabba
setl byte [ebp - 0xe]
cmp edx, 0xa28fabba
jne 0x40a116
mov bl, byte [ebp - 0xd]
mov dl, byte [ebp - 0xe]
mov esi, 0xf71985d0
mov dh, bl
xor dh, dl
cmovne esi, ecx
test dl, dl
mov edx, esi
cmovne edx, ecx
test bl, bl
cmove edx, esi
cmp edx, 0xa28fabba
je 0x40a0f0
cmp edx, 0xf71985d0
je 0x40a14c
cmp edx, 0x5f420508
jne 0x40a10e
push eax
mov edi, esp
mov dword [edi], eax
mov eax, section..data
mov esi, dword [edi]
push esi
mov edx, eax
mov ecx, 0x27
xor ecx, 0x1af
add edx, ecx
call edx
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push eax
mov edi, esp
mov dword [edi], eax
mov eax, section..data
mov esi, dword [edi]
push esi
mov edx, eax
mov ecx, 0x27
xor ecx, 0x1af
add edx, ecx
call edx
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x42967c
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4296bb
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4296bb
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4296bb
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4296bb
cmp dword [ecx + 0x74], 0xe
jbe 0x4296bb
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x42c2e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42c30d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42c30d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x42c6a2
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x437758
push 0x437750
push str.FlsAlloc
push 0x1f
call fcn.0042c985
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42c6d6
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x42c6dc
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x42c720
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x437768
push 0x437760
push str.FlsGetValue
push 0x21
call fcn.0042c985
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42c757
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x42c75f
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x437770
push 0x437768
push str.FlsSetValue
push 0x22
call fcn.0042c985
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42c799
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x43022a
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4302c7
push ebx
push esi
call fcn.004302ca
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0043012e
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x430274
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4302c6
push edi
push eax
call fcn.0042ebbb
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x430294
call fcn.0042dc6b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4302c5
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0043012e
add esp, 0x20
test eax, eax
jne 0x4302b3
push edi
call fcn.0042dc6b
jmp 0x4302bb
push ebx
call fcn.0042dc6b
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x10001090
Capabilities:
Read file on windows

Disassembly:
push ecx
push esi
call fcn.10001000
mov esi, dword [esp + 0xc]
mov ecx, dword [0x10011fe4]
push 0
lea eax, [esp + 8]
push eax
push 8
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100010c8
mov edx, dword [0x10011fe4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
pop ecx
ret
mov eax, dword [esp + 4]
test eax, eax
ja 0x100010e1
mov eax, dword [0x10011fe4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
pop ecx
ret
push eax
push esi
call fcn.10004240
mov ecx, dword [0x10011fe4]
add esp, 8
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
pop ecx
ret

Function at 0x10001250
Capabilities:
Read file on windows

Disassembly:
push ecx
mov dword [esp], 0
call fcn.100011c0
test eax, eax
jne 0x10001263
pop ecx
ret
mov ecx, dword [0x10011fe8]
push esi
mov esi, dword [esp + 0xc]
push 0
lea eax, [esp + 8]
push eax
push 8
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000128b
mov eax, dword [esp + 4]
test eax, eax
ja 0x10001295
call fcn.100011a0
xor eax, eax
pop esi
pop ecx
ret
push eax
push esi
call fcn.10004240
add esp, 8
call fcn.100011a0
mov eax, 1
pop esi
pop ecx
ret

Function at 0x100012b0
Capabilities:
Print debug messages

Disassembly:
sub esp, 8
call fcn.100011c0
test eax, eax
jne 0x100012c7
call fcn.100011a0
xor eax, eax
add esp, 8
ret
mov edx, dword [0x10011fe8]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push 0
lea eax, [esp + 0xc]
push eax
push 4
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push 0x160010
push edx
call edi
test eax, eax
je 0x10001305
mov eax, dword [esp + 4]
test eax, eax
jg 0x10001311
push str._Device_Monitor__:_parallel_NT_parallel_QUERY_DEVICE_ID_SIZE_error_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call fcn.100011a0
xor eax, eax
pop edi
add esp, 8
ret
add eax, 0xa
push esi
push eax
call fcn.10004c18
mov esi, eax
mov eax, dword [esp + 0xc]
add eax, 0xa
push eax
push 0
push esi
call fcn.10004b40
mov edx, dword [esp + 0x18]
mov eax, dword [0x10011fe8]
add esp, 0x10
push 0
lea ecx, [esp + 0x10]
push ecx
add edx, 0xa
push edx
push esi
push 0
push 0
push 0x16000c
push eax
call edi
test eax, eax
jne 0x10001371
mov ecx, dword [esp + 0x1c]
mov dword [ecx], eax
call fcn.100011a0
push esi
call fcn.10004c82
add esp, 4
pop esi
xor eax, eax
pop edi
add esp, 8
ret
mov eax, dword [esp + 0xc]
test eax, eax
jbe 0x1000135b
mov edx, dword [esp + 0x1c]
push eax
mov dword [edx], eax
mov eax, dword [esp + 0x18]
push esi
push eax
call fcn.10004c90
push esi
call fcn.10004c82
add esp, 0x10
call fcn.100011a0
pop esi
mov eax, 1
pop edi
add esp, 8
ret
Function at 0x100017c0
Capabilities:
Create service
Get common file path
Persist via windows service
Print debug messages
Start service

Disassembly:
sub esp, 0xa4
mov eax, dword [0x1001100c]
xor eax, esp
mov dword [esp + 0xa0], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push edi
push str.DgiVecp_install_n
call ebx
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
mov dword [esp + 8], edi
je 0x10001932
push esi
push 0xf01ff
push str.DgiVecp
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x100018c2
push 0x80
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [esp + 0x2c]
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x10001833
mov ecx, dword [str.DriversDgiVecp.sys]
mov edx, dword [0x1000d2a4]
push 0
push 0
mov dword [eax], ecx
mov ecx, dword [0x1000d2a8]
mov dword [eax + 4], edx
mov edx, dword [0x1000d2ac]
push 0
push 0
mov dword [eax + 8], ecx
mov ecx, dword [0x1000d2b0]
mov dword [eax + 0xc], edx
mov dl, byte [0x1000d2b4]
push 0
mov dword [eax + 0x10], ecx
mov byte [eax + 0x14], dl
lea eax, [esp + 0x40]
push eax
push 1
push 2
push 1
push 0xf01ff
push str.DgiVecp
push str.DgiVecp
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov esi, eax
test esi, esi
jne 0x100018c2
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop edi
pop ebx
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call fcn.10004b28
add esp, 0xa4
ret
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_ControlService]
lea ecx, [esp + 0x14]
push ecx
push 4
push esi
call ebp
cmp dword [esp + 0x18], 4
je 0x10001920
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x100018f0
push str.Could_not_start_Error__n
call ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
xor edi, edi
push 0x3e8
call ebx
lea edx, [esp + 0x14]
push edx
push 4
push esi
call ebp
test eax, eax
je 0x10001914
cmp dword [esp + 0x18], 4
je 0x1000191c
add edi, 1
cmp edi, 0xa
jl 0x100018f8
mov edi, dword [esp + 0x10]
test esi, esi
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop ebp
je 0x1000192e
push esi
call ebx
push edi
call ebx
pop esi
mov ecx, dword [esp + 0xa8]
pop edi
pop ebx
xor ecx, esp
call fcn.10004b28
add esp, 0xa4
ret
Function at 0x10001950
Capabilities:
Create service
Get common file path
Persist via windows service
Print debug messages
Start service

Disassembly:
sub esp, 0xa4
mov eax, dword [0x1001100c]
xor eax, esp
mov dword [esp + 0xa0], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push edi
push str.Port_Contetion_Driver_install_n
call ebx
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
mov dword [esp + 8], edi
je 0x10001ab7
push esi
push 0xf01ff
push str.SSPORT
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x10001a49
push 0x80
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [esp + 0x2c]
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x100019c3
mov ecx, dword [str.DriversSSPORT.sys]
mov edx, dword [0x1000d2d8]
push 0
push 0
push 0
mov dword [eax], ecx
mov ecx, dword [0x1000d2dc]
push 0
mov dword [eax + 4], edx
mov edx, dword [0x1000d2e0]
push 0
mov dword [eax + 8], ecx
mov ecx, dword [0x1000d2e4]
mov dword [eax + 0xc], edx
lea edx, [esp + 0x40]
push edx
push 1
push 2
push 1
push 0xf01ff
push str.SSPORT
push str.SSPORT
push edi
mov dword [eax + 0x10], ecx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov esi, eax
test esi, esi
jne 0x10001a49
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop edi
pop ebx
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call fcn.10004b28
add esp, 0xa4
ret
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_ControlService]
lea eax, [esp + 0x14]
push eax
push 4
push esi
call ebp
cmp dword [esp + 0x18], 4
je 0x10001aa5
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x10001a77
push str.Could_not_start_Error__n
call ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
xor edi, edi
nop
push 0x64
call ebx
lea ecx, [esp + 0x14]
push ecx
push 4
push esi
call ebp
test eax, eax
je 0x10001a99
cmp dword [esp + 0x18], 4
je 0x10001aa1
add edi, 1
cmp edi, 0xa
jl 0x10001a80
mov edi, dword [esp + 0x10]
test esi, esi
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop ebp
je 0x10001ab3
push esi
call ebx
push edi
call ebx
pop esi
mov ecx, dword [esp + 0xa8]
pop edi
pop ebx
xor ecx, esp
call fcn.10004b28
add esp, 0xa4
ret

Function at 0x10001b10
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
push str.registerAlet_handle___x_n
push 0x10012008
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0x10012008
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp byte [0x10014004], 0
mov dword [0x10014010], esi
pop esi
jne 0x10001b4b
mov byte [0x10014004], 0xaa
ret 4
Function at 0x100023b0
Capabilities:
Print debug messages

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
movzx eax, bl
push edi
push eax
push str._Device_Monitor__PortAcquire_Port_x__0x_02x_n
push 0x10012008
call dword [sym.imp.USER32.dll_wsprintfA]
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0xc
push 0x10012008
call esi
push ebx
call fcn.10001be0
mov edi, eax
add esp, 4
cmp edi, 1
jne 0x10002457
call fcn.10004640
cmp eax, edi
jne 0x1000245b
push str._Device_Monitor__PortAcquire:_WIN8_or_higher__check_spooler_status___n
call esi
cmp bl, 1
je 0x10002443
cmp bl, 0x10
je 0x10002443
push str.Samsung
call fcn.100015d0
add esp, 4
cmp eax, edi
jne 0x1000245b
push str._Device_Monitor__PortAcquire_:_IsUSBSpoolerJob__S__job_exists__n
call esi
push str._Device_Monitor__PortAcquire____False_n
call esi
push str._Device_Monitor__PortAcquire____release_port_n
xor edi, edi
call esi
push ebx
call sym.ssdevm.dll_PortRelease
add esp, 4
push str._Device_Monitor__PortAcquire____false_n
call esi
mov eax, edi
pop edi
pop esi
pop ebx
ret
push str._Device_Monitor__PortAcquire:_skip_checking_spooler_for_0x01__0x10_n
call esi
push str._Device_Monitor__PortAcquire____true_n
call esi
mov eax, edi
pop edi
pop esi
pop ebx
ret
test edi, edi
je 0x10002436
push str._Device_Monitor__PortAcquire____true_n
call esi
mov eax, edi
pop edi
pop esi
pop ebx
ret

Function at 0x10002670
Capabilities:
Print debug messages

Disassembly:
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str._Device_Monitor__PortAcquire16_call_n
call edi
mov al, byte [0x10014004]
cmp al, 0xaa
mov ebx, dword [esp + 0xc]
jne 0x100026b6
cmp dword [0x10014028], 0
mov byte [0x10014004], 0
je 0x100026d2
push esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0xa
call esi
cmp dword [0x10014028], 0
jne 0x100026a3
mov al, byte [0x10014004]
pop esi
test al, al
je 0x100026d2
cmp al, byte [ebx]
je 0x100026d2
mov eax, dword [esp + 0x10]
push str._Device_Monitor__PortAcquire16_False_n
mov dword [eax], 0
call edi
pop edi
pop ebx
ret
mov cl, byte [ebx]
mov edx, dword [esp + 0x10]
mov byte [0x10014004], cl
push str._Device_Monitor__PortAcquire16_True_n
mov dword [edx], 1
call edi
pop edi
pop ebx
ret

Function at 0x10002760
Capabilities:
Create thread
Print debug messages

Disassembly:
cmp dword [section..MYSEC], 0
je 0x10002774
push str._Device_Monitor__Already_Thread_______________n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call fcn.100043d0
mov dword [0x1001402c], eax
call fcn.100017c0
push 0
push 0
push 0x10003cf0
call fcn.1000575b
add esp, 0xc
mov eax, 1
ret
Function at 0x10002e80
Capabilities:
Print debug messages

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str._Device_Monitor_____________________________________________n
mov dword [esp + 0x14], 0
call edi
push str._Device_Monitor__DeviceOpen_n
call edi
mov ebp, dword [esp + 0x24]
mov ebx, dword [esp + 0x28]
movzx ecx, word [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push ebx
movzx eax, bp
push eax
mov eax, dword [esp + 0x20]
push ecx
push edx
push eax
push str._Device_Monitor__Device_:__d__USB_:__d__vid_:__x__pid_:__x__devID_:__s_n
push 0x10012008
call esi
add esp, 0x1c
push 0x10012008
call edi
call fcn.10004640
cmp eax, 1
jne 0x10002f20
push str._Device_Monitor__DeviceOpen:_WIN8_or_higher__check_spooler_status___n
call edi
push ebx
call fcn.100015d0
add esp, 4
test eax, eax
je 0x10002f20
push ebx
push str._Device_Monitor___IsUSBSpoolerJob___s__job_exists___cannot_open_device_n
push 0x10012008
call esi
add esp, 0xc
push 0x10012008
call edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push ebx
push ebp
push ecx
push edx
push eax
call fcn.100028a0
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x10002f4a
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
add dword [esp + 0x10], 1
test esi, esi
jne 0x10002f5a
cmp dword [esp + 0x10], 3
jl 0x10002f20
mov ecx, dword [0x10011ff8]
push esi
push ecx
push str._Device_Monitor__HANDEL___x___dwResult___d_n
push 0x10012008
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0x10012008
call edi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x10002f90
Capabilities:
Print debug messages

Disassembly:
push ecx
cmp dword [0x10014020], 1
jne 0x10002fd3
push 0x1000d280
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push 0
push eax
mov eax, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [0x10011ff4]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
pop ecx
ret
mov eax, dword [0x1001402c]
cmp eax, 4
je 0x10002fe2
cmp eax, 5
jne 0x1000301c
push str.Parallel
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push 0
push ecx
mov ecx, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push ecx
mov ecx, dword [0x10011ff0]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
pop ecx
ret
mov eax, dword [esp]
pop ecx
ret
Function at 0x10003060
Capabilities:
Print debug messages

Disassembly:
mov eax, dword [0x10014020]
sub esp, 0x1c
cmp eax, 1
push esi
je 0x1000319f
cmp eax, 3
je 0x1000319f
cmp eax, 2
jne 0x10003198
mov eax, dword [0x1001402c]
cmp eax, 4
je 0x10003100
cmp eax, 5
je 0x10003100
mov esi, dword [esp + 0x24]
push esi
push str._Device_Monitor__Parallel_9x_::_SetDeviceTimeout__d__n
push 0x10012008
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0x10012008
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [0x10011ff0]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetCommTimeouts]
mov eax, dword [0x10011ff0]
lea edx, [esp + 0xc]
push edx
push eax
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], esi
call dword [sym.imp.KERNEL32.dll_SetCommTimeouts]
xor eax, eax
pop esi
add esp, 0x1c
ret
mov esi, dword [esp + 0x24]
push ebp
push edi
push esi
push str._Device_Monitor__Parallel_NT_::_SetDeviceTimeout__d__n
push 0x10012008
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebp, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0xc
push 0x10012008
call ebp
mov eax, dword [0x10011ff0]
mov edi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push 0
lea ecx, [esp + 0x10]
push ecx
push 0x14
lea edx, [esp + 0x20]
push edx
push 0
push 0
push 0x1b0020
push eax
call edi
mov eax, dword [0x10011ff0]
push 0
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
push 0x14
lea edx, [esp + 0x28]
push edx
push 0x1b001c
push eax
mov dword [esp + 0x44], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x34], 0x5dc
call edi
test eax, eax
jne 0x10003196
push str._Device_Monitor__NT_Parallel_Timeout_Setting_Error____n
call ebp
pop edi
pop ebp
xor eax, eax
pop esi
add esp, 0x1c
ret
mov esi, dword [esp + 0x24]
push esi
push str._Device_Monitor__USB_::_SetDeviceTimeout__d__n
push 0x10012008
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0x10012008
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
call fcn.10004080
add esp, 4
mov eax, 1
pop esi
add esp, 0x1c
ret
Function at 0x100031e0
Capabilities:
Print debug messages
Read file on windows

Disassembly:
push ecx
mov eax, dword [0x10011ff8]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push edi
push eax
push str._Device_Monitor__HANDEL___x_n
xor edi, edi
push 0x10012008
mov dword [esp + 0x1c], edi
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0xc
push 0x10012008
call ebp
mov ecx, dword [0x10014020]
mov ebx, dword [esp + 0x1c]
xor eax, eax
cmp ecx, 1
je 0x10003272
cmp ecx, 3
jne 0x100032bf
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
mov ecx, dword [0x10014044]
push edx
push ebx
push eax
push ecx
call fcn.10004090
add esp, 0x10
cmp eax, edi
jne 0x100032bf
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
push eax
push str._Device_Monitor__Read_Error______GetLasetError__x_n
push 0x10012008
call esi
add esp, 0xc
push 0x10012008
call ebp
call edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
cmp ebx, edi
mov ebp, dword [esp + 0x18]
je 0x10003313
mov edi, edi
mov esi, ebx
sub esi, edi
cmp esi, 0x1000
jbe 0x10003291
mov esi, 0x1000
mov ecx, dword [esp + 0x20]
mov edx, dword [0x10011ff8]
push ecx
push esi
push ebp
push edx
call fcn.10004090
add esp, 0x10
test eax, eax
je 0x100032b9
add edi, esi
add ebp, esi
cmp ebx, edi
jne 0x10003280
mov ecx, dword [esp + 0x20]
mov dword [ecx], edi
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
cmp dword [0x10014020], 2
jne 0x1000330f
mov eax, dword [0x1001402c]
cmp eax, 4
je 0x100032d7
cmp eax, 5
jne 0x100032e1
push 0
call fcn.10003030
add esp, 4
mov eax, dword [esp + 0x18]
mov ecx, dword [0x10011ff0]
push 0
lea edx, [esp + 0x14]
push edx
push ebx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
mov dword [edx], ecx
je 0x10003313
cmp ecx, ebx
je 0x10003338
jmp 0x10003313
test eax, eax
jne 0x10003338
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
push eax
push str._Device_Monitor__Read_Error______GetLasetError__x_n
push 0x10012008
call esi
add esp, 0xc
push 0x10012008
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret