joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14005a980
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x14005aa35
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x70], rdi
test byte [rax], al
lea rdx, [rax + 0x10]
mov rsi, qword [rsp + 0x68]
mov rcx, rdi
mov rax, rdx
mov rbx, rsi
call dbg.runtime.(*traceMap).put
nop
test bl, bl
je 0x14005aa2f
mov qword [rsp + 0x18], rax
movups xmmword [rsp + 0x20], xmm15
movups xmmword [rsp + 0x28], xmm15
movups xmmword [rsp + 0x38], xmm15
lea rcx, [dbg.runtime.(*traceStringTable).put.func1]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x40], rcx
lea rcx, [rsp + 0x20]
mov qword [rsp], rcx
call dbg.runtime.systemstack
xorps xmm15, xmm15
mov r14, qword [0x140276798]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x18]
add rsp, 0x48
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call dbg.runtime.morestack_noctxt
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
jmp dbg.runtime.(*traceStringTable).put
Function at 0x14005d9a0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x14005da4f
push rbp
mov rbp, rsp
sub rsp, 0x58
mov qword [rsp + 0x70], rbx
lea rdx, [rsp + 0x68]
mov qword [rsp + 8], 0
movups xmmword [rsp + 0x10], xmm15
movups xmmword [rsp + 0x18], xmm15
movups xmmword [rsp + 0x28], xmm15
movups xmmword [rsp + 0x38], xmm15
movups xmmword [rsp + 0x48], xmm15
lea rsi, [dbg.runtime.callers.func1]
mov qword [rsp + 0x10], rsi
mov rsi, qword [rsp + 0x60]
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdx
mov rdx, r14
mov qword [rsp + 0x28], rdx
lea rdx, [rsp + 8]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x10]
mov qword [rsp], rax
call dbg.runtime.systemstack
xorps xmm15, xmm15
mov r14, qword [0x140276798]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 8]
add rsp, 0x58
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call dbg.runtime.morestack_noctxt
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
nop dword [rax]
jmp dbg.runtime.callers

Function at 0x1400684e0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp byte [0x14027656b], 0
je 0x1400684ee
jmp dbg.aeshashbody
jmp dbg.runtime.memhashFallback

Function at 0x140068500
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp byte [0x14027656b], 0
je 0x140068515
mov rcx, qword [rax + 8]
mov rax, qword [rax]
jmp dbg.aeshashbody
jmp dbg.runtime.strhashFallback

Function at 0x140068520
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp byte [0x14027656b], 0
je 0x140068555
movq xmm0, rbx
pinsrd xmm0, dword [rax], 2
aesenc xmm0, xmmword [0x140276bc0]
aesenc xmm0, xmmword [0x140276bd0]
aesenc xmm0, xmmword [0x140276be0]
movq rax, xmm0
ret
jmp sym.runtime.memhash32Fallback

Function at 0x140068560
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp byte [0x14027656b], 0
je 0x140068596
movq xmm0, rbx
pinsrq xmm0, qword [rax], 1
aesenc xmm0, xmmword [0x140276bc0]
aesenc xmm0, xmmword [0x140276bd0]
aesenc xmm0, xmmword [0x140276be0]
movq rax, xmm0
ret
jmp sym.runtime.memhash64Fallback
Function at 0x140069c00
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push rbp
mov rbp, rsp
pushfq
cld
sub rsp, 0xe0
mov qword [rsp], rdi
mov qword [rsp + 8], rsi
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], r12
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x38], r15
movups xmmword [rsp + 0x40], xmm6
movups xmmword [rsp + 0x50], xmm7
movups xmmword [rsp + 0x60], xmm8
movups xmmword [rsp + 0x70], xmm9
movups xmmword [rsp + 0x80], xmm10
movups xmmword [rsp + 0x90], xmm11
movups xmmword [rsp + 0xa0], xmm12
movups xmmword [rsp + 0xb0], xmm13
movups xmmword [rsp + 0xc0], xmm14
movups xmmword [rsp + 0xd0], xmm15
xorps xmm15, xmm15
xor r14, r14
mov rax, qword [0x140276798]
mov rax, qword gs:[rax]
cmp rax, 0
je 0x140069c9b
mov r14, qword [rax]
sub rsp, 0x10
mov rax, rcx
mov rbx, rdx
call dbg.runtime.sigtrampgo
add rsp, 0x10
mov rdi, qword [rsp]
mov rsi, qword [rsp + 8]
mov rbp, qword [rsp + 0x10]
mov rbx, qword [rsp + 0x18]
mov r12, qword [rsp + 0x20]
mov r13, qword [rsp + 0x28]
mov r14, qword [rsp + 0x30]
mov r15, qword [rsp + 0x38]
movups xmm6, xmmword [rsp + 0x40]
movups xmm7, xmmword [rsp + 0x50]
movups xmm8, xmmword [rsp + 0x60]
movups xmm9, xmmword [rsp + 0x70]
movups xmm10, xmmword [rsp + 0x80]
movups xmm11, xmmword [rsp + 0x90]
movups xmm12, xmmword [rsp + 0xa0]
movups xmm13, xmmword [rsp + 0xb0]
movups xmm14, xmmword [rsp + 0xc0]
movups xmm15, xmmword [rsp + 0xd0]
add rsp, 0xe0
popfq
pop rbp
ret

Function at 0x140069ec0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x28
pushfq
cld
sub rsp, 0xe0
mov qword [rsp], rdi
mov qword [rsp + 8], rsi
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], r12
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x38], r15
movups xmmword [rsp + 0x40], xmm6
movups xmmword [rsp + 0x50], xmm7
movups xmmword [rsp + 0x60], xmm8
movups xmmword [rsp + 0x70], xmm9
movups xmmword [rsp + 0x80], xmm10
movups xmmword [rsp + 0x90], xmm11
movups xmmword [rsp + 0xa0], xmm12
movups xmmword [rsp + 0xb0], xmm13
movups xmmword [rsp + 0xc0], xmm14
movups xmmword [rsp + 0xd0], xmm15
mov rax, qword [0x140276798]
mov rax, qword gs:[rax]
cmp rax, 0
jne 0x140069f57
int 3
mov r14, qword [rax]
sub rsp, 0x28
mov qword [rsp], rcx
mov qword [rsp + 8], rdx
mov qword [rsp + 0x10], r8
mov qword [rsp + 0x18], r9
call dbg.runtime.sehhandler
mov eax, dword [rsp + 0x20]
add rsp, 0x28
mov rdi, qword [rsp]
mov rsi, qword [rsp + 8]
mov rbp, qword [rsp + 0x10]
mov rbx, qword [rsp + 0x18]
mov r12, qword [rsp + 0x20]
mov r13, qword [rsp + 0x28]
mov r14, qword [rsp + 0x30]
mov r15, qword [rsp + 0x38]
movups xmm6, xmmword [rsp + 0x40]
movups xmm7, xmmword [rsp + 0x50]
movups xmm8, xmmword [rsp + 0x60]
movups xmm9, xmmword [rsp + 0x70]
movups xmm10, xmmword [rsp + 0x80]
movups xmm11, xmmword [rsp + 0x90]
movups xmm12, xmmword [rsp + 0xa0]
movups xmm13, xmmword [rsp + 0xb0]
movups xmm14, xmmword [rsp + 0xc0]
movups xmm15, xmmword [rsp + 0xd0]
add rsp, 0xe0
popfq
add rsp, 0x28
pop rbp
ret
Function at 0x140087ba0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x140087c6a
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], 0
call dbg.internal/bytealg.IndexByteString
xorps xmm15, xmm15
mov r14, qword [0x140276798]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0xffffffffffffffff
jne 0x140087c4f
mov rcx, qword [rsp + 0x60]
lea rdx, [rcx + 1]
mov qword [rsp + 0x40], rdx
lea rax, [0x14010c600]
xor ebx, ebx
mov rcx, rdx
call dbg.runtime.makeslice
mov rbx, qword [rsp + 0x60]
mov rcx, rax
xor edi, edi
mov rsi, qword [rsp + 0x40]
mov rax, qword [rsp + 0x58]
nop dword [rax]
call dbg.syscall.encodeWTF16
inc rbx
cmp rcx, rbx
jae 0x140087c3e
mov edi, 1
lea rsi, [0x14010c600]
call dbg.runtime.growslice
mov word [rax + rbx*2 - 2], 0
xor edi, edi
xor esi, esi
add rsp, 0x48
pop rbp
ret
xor eax, eax
xor ebx, ebx
mov rcx, rbx
lea rdi, [0x1401566d8]
lea rsi, [0x140155d70]
add rsp, 0x48
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call dbg.runtime.morestack_noctxt
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp dbg.syscall.UTF16FromString

Function at 0x1400a1f60
Capabilities:
Hash data using fnv

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x1400a269f
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rsp + 0x20], rax
movabs rcx, 0xcbf29ce484222325
jmp 0x1400a1f8d
lea rax, [rdx + 0x10]
dec rbx
mov rcx, rsi
test rbx, rbx
jle 0x1400a2211
mov rdx, rax
mov rsi, qword [rax]
nop dword [rax]
test rsi, rsi
je 0x1400a223d
mov edi, dword [rsi + 0x10]
shr edi, 1
mov r8, qword [rax + 8]
and edi, 0x3f
lea rax, [0x1401580a0]
jmp qword [rax + rdi*8]
mov rax, rcx
add rsp, 0x10
pop rbp
ret
lea rax, [0x14010c500]
lea rbx, [0x140156590]
call dbg.runtime.gopanic
inc rax
cmp rax, r8
jge 0x1400a2262
mov r9, qword [rsi + rax*8]
xor r10d, r10d
nop
jmp 0x1400a2297
lea rdi, [0x14010c580]
mov rsi, rcx
movabs rcx, 0x100000001b3
jmp 0x1400a1f83
movzx r11d, r9b
xor rcx, r11
inc r10
shr r9, 8
movabs r11, 0x100000001b3
imul rcx, r11
cmp r10, 8
jl 0x1400a227b
jmp 0x1400a2250
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
call dbg.runtime.morestack_noctxt
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
jmp dbg.internal/bisect.Hash

Function at 0x1400a2840
Capabilities:
Hash data using fnv

Disassembly:
test byte [rax], al
mov rcx, rbx
and ebx, 0x7f
shl rbx, 5
lea rdx, [rax + rbx]
xor eax, eax
jmp 0x1400a2857
inc rax
cmp rax, 4
jge 0x1400a286f
lea rbx, [rdx + rax*8]
mov rbx, qword [rbx]
cmp rbx, rcx
jne 0x1400a2854
mov eax, 1
ret
xor eax, eax
movabs rbx, 0xcbf29ce484222325
jmp 0x1400a2880
inc rax
cmp rax, 4
jge 0x1400a288e
mov rsi, qword [rdx + rax*8]
xor edi, edi
jmp 0x1400a28b7
and ebx, 3
lea rdx, [rdx + rbx*8]
xchg qword [rdx], rcx
xor eax, eax
ret
movzx r8d, sil
xor rbx, r8
inc rdi
shr rsi, 8
movabs r8, 0x100000001b3
imul rbx, r8
cmp rdi, 8
jl 0x1400a289b
jmp 0x1400a287d
Function at 0x1400ab0e0
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x1400ab1e1
push rbp
mov rbp, rsp
sub rsp, 0x48
movq qword [rsp + 0x40], xmm15
mov qword [rsp + 0x60], rcx
mov byte [rsp + 0x17], 0
movups xmmword [rsp + 0x18], xmm15
mov word [rsp], ax
mov word [rsp + 2], bx
call dbg.github.com/sstallion/go-hid._Cfunc_hid_enumerate
xorps xmm15, xmm15
mov r14, qword [0x140276798]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 8]
nop
movups xmmword [rsp + 0x30], xmm15
lea rcx, [dbg.github.com/sstallion/go-hid.Enumerate.Enumerate.func1.func2]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x40], rcx
mov byte [rsp + 0x17], 1
jmp 0x1400ab160
mov rcx, qword [rsp + 0x28]
mov rax, qword [rcx + 0x38]
test rax, rax
je 0x1400ab1a7
mov qword [rsp + 0x28], rax
call dbg.github.com/sstallion/go-hid.newDeviceInfo
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rdx]
call rcx
test rax, rax
je 0x1400ab157
mov qword [rsp + 0x18], rax
mov qword [rsp + 0x20], rbx
mov byte [rsp + 0x17], 0
mov rdx, qword [rsp + 0x40]
mov rax, qword [rdx]
call rax
mov rax, qword [rsp + 0x18]
mov rbx, qword [rsp + 0x20]
add rsp, 0x48
pop rbp
ret
movups xmmword [rsp + 0x18], xmm15
mov byte [rsp + 0x17], 0
mov rdx, qword [rsp + 0x40]
mov rax, qword [rdx]
call rax
mov rbx, qword [rsp + 0x20]
mov rax, qword [rsp + 0x18]
add rsp, 0x48
pop rbp
ret
mov word [rsp + 8], ax
mov word [rsp + 0xa], bx
mov qword [rsp + 0x10], rcx
call dbg.runtime.morestack_noctxt
movzx eax, word [rsp + 8]
movzx ebx, word [rsp + 0xa]
mov rcx, qword [rsp + 0x10]
jmp dbg.github.com/sstallion/go-hid.Enumerate
Function at 0x1400ccb20
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rcx, str.hid.dll
call rbx
mov qword [0x14027a218], rax
test rax, rax
je 0x1400ccdc2
lea rcx, str.cfgmgr32.dll
call rbx
mov rcx, qword [0x14027a218]
mov qword [0x14027a210], rax
test rax, rax
je 0x1400ccdb7
mov rbx, qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.HidD_GetHidGuid
call rbx
mov rcx, qword [0x14027a218]
mov qword [0x14027a2a0], rax
test rax, rax
je 0x1400ccdb7
lea rdx, str.HidD_GetAttributes
call rbx
mov rcx, qword [0x14027a218]
mov qword [0x14027a298], rax
test rax, rax
je 0x1400ccdb7
lea rdx, str.HidD_GetSerialNumberString
call rbx
mov rcx, qword [0x14027a218]
mov qword [0x14027a290], rax
test rax, rax
je 0x1400ccdb7
lea rdx, str.HidD_GetManufacturerString
call rbx
mov rcx, qword [0x14027a218]
mov qword [0x14027a288], rax
test rax, rax
je 0x1400ccdb7
lea rdx, str.HidD_GetProductString
call rbx
mov rcx, qword [0x14027a218]
mov qword [0x14027a280], rax
test rax, rax
je 0x1400ccdb7
lea rdx, [0x1401e7d19]
call rbx
mov rcx, qword [0x14027a218]
mov qword [0x14027a278], rax
test rax, rax
je 0x1400ccdb7
lea rdx, str.HidD_GetFeature
call rbx
mov rcx, qword [0x14027a218]
test rax, rax
je 0x1400ccdb7
lea rdx, str.HidD_GetInputReport
call rbx
mov rcx, qword [0x14027a218]
test rax, rax
je 0x1400ccdb7
lea rdx, [0x1401e7d4d]
call rbx
mov rcx, qword [0x14027a218]
mov qword [0x14027a270], rax
test rax, rax
je 0x1400ccdb7
lea rdx, [0x1401e7d63]
call rbx
mov rcx, qword [0x14027a218]
mov qword [0x14027a268], rax
test rax, rax
je 0x1400ccdb7
lea rdx, str.HidD_FreePreparsedData
call rbx
mov rcx, qword [0x14027a218]
mov qword [0x14027a260], rax
test rax, rax
je 0x1400ccdb7
lea rdx, [0x1401e7d90]
call rbx
mov rcx, qword [0x14027a218]
mov qword [0x14027a258], rax
test rax, rax
je 0x1400ccdb7
lea rdx, str.HidD_SetNumInputBuffers
call rbx
mov qword [0x14027a250], rax
test rax, rax
je 0x1400ccdb0
mov rcx, qword [0x14027a210]
lea rdx, str.CM_Locate_DevNodeW
call rbx
mov qword [0x14027a248], rax
test rax, rax
je 0x1400ccdb0
mov rcx, qword [0x14027a210]
lea rdx, str.CM_Get_Parent
call rbx
mov qword [0x14027a240], rax
test rax, rax
je 0x1400ccdb0
mov rcx, qword [0x14027a210]
lea rdx, str.CM_Get_DevNode_PropertyW
call rbx
mov qword [0x14027a238], rax
test rax, rax
je 0x1400ccdb0
mov rcx, qword [0x14027a210]
lea rdx, str.CM_Get_Device_Interface_PropertyW
call rbx
mov qword [0x14027a230], rax
test rax, rax
je 0x1400ccdb0
mov rcx, qword [0x14027a210]
lea rdx, str.CM_Get_Device_Interface_List_SizeW
call rbx
mov qword [0x14027a228], rax
test rax, rax
je 0x1400ccdb0
mov rcx, qword [0x14027a210]
lea rdx, str.CM_Get_Device_Interface_ListW
call rbx
mov qword [0x14027a220], rax
test rax, rax
je 0x1400ccdb0
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov rcx, qword [0x14027a218]
test rcx, rcx
je 0x1400ccdc2
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, qword [0x14027a210]
mov qword [0x14027a218], 0
test rcx, rcx
je 0x1400ccddf
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [0x14027a210], 0
mov eax, 0xffffffff
add rsp, 0x20
pop rbx
ret
Function at 0x1400ce4e0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rbx, rcx
mov rdi, rdx
mov rcx, qword [rcx + 0x30]
mov rsi, r8
mov dword [rsp + 0x3c], 0
test rdx, rdx
je 0x1400ce610
test r8, r8
je 0x1400ce610
call sym.free
movzx ecx, word [rbx + 0xc]
mov qword [rbx + 0x30], 0
lea r12, [rbx + 0x30]
cmp rsi, rcx
jb 0x1400ce5a8
lea rbp, [rbx + 0x68]
mov rcx, qword [rbx]
xor r9d, r9d
mov r8d, esi
mov qword [rsp + 0x20], rbp
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400ce5ff
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x1400ce5f0
mov rcx, qword [rbx + 0x80]
mov edx, 0x3e8
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1400ce630
xor r9d, r9d
mov rcx, qword [rbx]
lea r8, [rsp + 0x3c]
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x1400ce641
mov eax, dword [rsp + 0x3c]
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rbp, qword [rbx + 0x10]
test rbp, rbp
je 0x1400ce5e0
mov r8, rsi
mov rdx, rdi
mov rcx, rbp
mov rdi, rbp
call sym.memcpy
movzx r8d, word [rbx + 0xc]
lea rcx, [rbp + rsi]
xor edx, edx
sub r8, rsi
call sym.memset
movzx esi, word [rbx + 0xc]
jmp 0x1400ce52b
call sym.malloc
mov qword [rbx + 0x10], rax
mov rbp, rax
jmp 0x1400ce5b1
lea rdx, str.WriteFile
mov rcx, r12
call dbg.register_winapi_error_to_buffer
mov eax, 0xffffffff
jmp 0x1400ce599
call sym.free
mov qword [rbx + 0x30], 0
lea rcx, str.Zero_buffer_length
call qword [sym.imp.msvcrt.dll__wcsdup]
mov qword [rbx + 0x30], rax
jmp 0x1400ce5ff
lea rdx, str.hid_write_WaitForSingleObject
mov rcx, r12
call dbg.register_winapi_error_to_buffer
jmp 0x1400ce5ff
lea rdx, str.hid_write_GetOverlappedResult
mov rcx, r12
call dbg.register_winapi_error_to_buffer
jmp 0x1400ce5ff
Function at 0x1400ce660
Capabilities:
Read file on windows

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rbx, rcx
mov rdi, rdx
mov rcx, qword [rcx + 0x30]
mov rsi, r8
mov dword [rsp + 0x3c], 0
mov ebp, r9d
test rdx, rdx
je 0x1400ce7f0
test r8, r8
je 0x1400ce7f0
call sym.free
mov edx, dword [rbx + 0x38]
mov r12, qword [rbx + 0x60]
lea r13, [rbx + 0x30]
mov qword [rbx + 0x30], 0
test edx, edx
je 0x1400ce730
test ebp, ebp
js 0x1400ce6c9
mov edx, ebp
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, eax
xor eax, eax
test edx, edx
jne 0x1400ce722
mov rcx, qword [rbx]
lea rdx, [rbx + 0x48]
mov r9d, 1
lea r8, [rsp + 0x3c]
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov dword [rbx + 0x38], 0
test eax, eax
je 0x1400ce810
mov ecx, dword [rsp + 0x3c]
xor eax, eax
test ecx, ecx
je 0x1400ce722
mov rdx, qword [rbx + 0x40]
cmp byte [rdx], 0
jne 0x1400ce780
sub ecx, 1
cmp rcx, rsi
mov dword [rsp + 0x3c], ecx
cmovbe rsi, rcx
add rdx, 1
mov rcx, rdi
mov r8, rsi
call sym.memcpy
mov eax, esi
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov dword [rbx + 0x38], 1
mov r8, qword [rbx + 0x18]
xor edx, edx
mov rcx, qword [rbx + 0x40]
call sym.memset
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ResetEvent]
lea rax, [rbx + 0x48]
mov rdx, qword [rbx + 0x40]
mov rcx, qword [rbx]
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], rax
mov r8d, dword [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400ce7a8
mov dword [rbx + 0x38], 0
jmp 0x1400ce6f0
cmp rcx, rsi
cmovbe rsi, rcx
mov rcx, rdi
mov r8, rsi
call sym.memcpy
mov eax, esi
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x1400ce6b2
lea rdx, str.ReadFile
mov rcx, r13
call dbg.register_winapi_error_to_buffer
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CancelIo]
xor eax, eax
mov dword [rbx + 0x38], eax
nop word cs:[rax + rax]
mov eax, 0xffffffff
jmp 0x1400ce722
call sym.free
mov qword [rbx + 0x30], 0
lea rcx, str.Zero_buffer_length
call qword [sym.imp.msvcrt.dll__wcsdup]
mov qword [rbx + 0x30], rax
jmp 0x1400ce7e0
lea rdx, str.hid_read_timeout_GetOverlappedResult
mov rcx, r13
call dbg.register_winapi_error_to_buffer
jmp 0x1400ce7e0

Function at 0x1400ce830
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [rcx + 8]
neg eax
sbb r9d, r9d
jmp dbg.hid_read_timeout

Function at 0x1400d1810
Capabilities:
Create thread

Disassembly:
mov rdx, rcx
lea rcx, [dbg.threadentry]
jmp sym._cgo_beginthread

Function at 0x1400d99a0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x1400d9a10
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14027ada4]
mov rbx, rcx
test esi, esi
jle 0x1400d9b40
mov rax, qword [0x14027ada8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400d9a5b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400d9ae5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400d9a40
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x1400d9b62
mov rax, qword [0x14027ada8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14027ada8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400d9b47
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1400d9ade
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x1400d9af0
add dword [0x14027ada4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14027ada8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400d9ade
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x1400d9a68
mov rax, qword [0x14027ada8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400da100
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14027ae00]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14027ade0]
test rbx, rbx
je 0x1400da164
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop word cs:[rax + rax]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x1400da15b
test eax, eax
jne 0x1400da15b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400da140
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400da3a0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400da3b8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400da3c0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret