joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001d7d0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movups xmmword [rsp + 0x30], xmm6
movups xmmword [rsp + 0x40], xmm7
mov rdi, qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea r13, [rsp + 0x20]
lea r12, [rsp + 0x28]
mov rbx, rcx
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
mov rcx, r13
call rdi
mov rbp, qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov rcx, r12
call rbp
mov rax, qword [rsp + 0x20]
test rax, rax
js 0x14001d9a0
pxor xmm0, xmm0
cvtsi2sd xmm0, rax
mov rax, qword [rsp + 0x28]
test rax, rax
js 0x14001d9c7
pxor xmm1, xmm1
cvtsi2sd xmm1, rax
divsd xmm0, xmm1
movsd xmm7, qword [0x14005b630]
movsd xmm6, qword [0x14005b638]
mulsd xmm0, xmm7
comisd xmm0, xmm6
jae 0x14001d960
cvttsd2si rsi, xmm0
cmp rbx, 0x3e8
ja 0x14001d97b
movabs r14, 0x8000000000000000
jmp 0x14001d89d
cvttsd2si rax, xmm0
sub rax, rsi
cmp rax, rbx
jae 0x14001d901
mov qword [rsp + 0x20], 0
mov rcx, r13
mov qword [rsp + 0x28], 0
call rdi
mov rcx, r12
call rbp
mov rax, qword [rsp + 0x20]
test rax, rax
js 0x14001d940
pxor xmm0, xmm0
cvtsi2sd xmm0, rax
mov rax, qword [rsp + 0x28]
test rax, rax
js 0x14001d920
pxor xmm1, xmm1
cvtsi2sd xmm1, rax
divsd xmm0, xmm1
mulsd xmm0, xmm7
comisd xmm0, xmm6
jb 0x14001d890
subsd xmm0, xmm6
cvttsd2si rax, xmm0
xor rax, r14
sub rax, rsi
cmp rax, rbx
jb 0x14001d89d
movups xmm6, xmmword [rsp + 0x30]
movups xmm7, xmmword [rsp + 0x40]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rdx, rax
and eax, 1
pxor xmm1, xmm1
shr rdx, 1
or rdx, rax
cvtsi2sd xmm1, rdx
addsd xmm1, xmm1
jmp 0x14001d8df
mov rdx, rax
and eax, 1
pxor xmm0, xmm0
shr rdx, 1
or rdx, rax
cvtsi2sd xmm0, rdx
addsd xmm0, xmm0
jmp 0x14001d8cc
subsd xmm0, xmm6
cvttsd2si rsi, xmm0
btc rsi, 0x3f
cmp rbx, 0x3e8
jbe 0x14001d881
movabs rax, 0x20c49ba5e353f7cf
mov rdx, rbx
shr rdx, 3
mul rdx
shr rdx, 4
mov ecx, edx
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001d881
mov rdx, rax
and eax, 1
pxor xmm0, xmm0
shr rdx, 1
or rdx, rax
mov rax, qword [rsp + 0x28]
cvtsi2sd xmm0, rdx
addsd xmm0, xmm0
test rax, rax
jns 0x14001d844
mov rdx, rax
and eax, 1
pxor xmm1, xmm1
shr rdx, 1
or rdx, rax
cvtsi2sd xmm1, rdx
addsd xmm1, xmm1
jmp 0x14001d84d
Function at 0x140026b50
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xffffffff
lea r8, [0x14005df60]
mov r11, rdx
mov r10, rcx
lea r9, [rcx + 8]
mov rdx, rcx
nop dword [rax]
mov ecx, eax
xor al, byte [rdx]
add rdx, 1
movzx eax, al
shr ecx, 8
xor ecx, dword [r8 + rax*4]
mov eax, ecx
cmp rdx, r9
jne 0x140026b70
movzx eax, cl
mov edx, ecx
shr edx, 8
xor edx, dword [r8 + rax*4]
mov eax, edx
movzx edx, dl
shr eax, 8
xor eax, dword [r8 + rdx*4]
mov edx, eax
movzx eax, al
shr edx, 8
xor edx, dword [r8 + rax*4]
mov eax, edx
movzx edx, dl
shr eax, 8
xor eax, dword [r8 + rdx*4]
cmp r11, 0xc
jbe 0x140026bf0
mov ecx, 0xc
mov edx, 0xc
nop dword [rax]
mov r9d, eax
xor al, byte [r10 + rdx]
lea edx, [rcx + 1]
movzx eax, al
shr r9d, 8
mov rcx, rdx
xor r9d, dword [r8 + rax*4]
mov eax, r9d
cmp rdx, r11
jb 0x140026bd0
not eax
bswap eax
ret
Function at 0x14002d820
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xa8
cmp byte [rdx + 0x10], 0
mov r12, qword [rsp + 0x110]
mov r13d, dword [rsp + 0x118]
mov rdi, rcx
mov rbx, rdx
mov r14d, r8d
mov rbp, r9
je 0x14002d9a2
cmp byte [rdx + 0x28], 0
je 0x14002d9a2
mov rcx, qword [rcx + 0x40]
call dbg.stack_get_packetbuffer
mov rsi, rax
test rax, rax
je 0x14002d948
movdqu xmm0, xmmword [rbx + 0x18]
lea r15, [rax + 8]
mov rcx, qword [rdi + 0x38]
lea rdx, [rsp + 0x80]
lea r9, [rsp + 0x60]
movups xmmword [rsp + 0x80], xmm0
mov rax, qword [rbx + 0x28]
mov qword [rsp + 0x90], rax
movdqu xmm1, xmmword [rbx]
movups xmmword [rsp + 0x60], xmm1
mov rax, qword [rbx + 0x10]
mov qword [rsp + 0x58], 0x7f8
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], rbp
mov dword [rsp + 0x38], r14d
mov qword [rsp + 0x70], rax
mov eax, dword [rbx + 0x38]
mov dword [rsp + 0x30], eax
mov eax, dword [rbx + 0x34]
mov dword [rsp + 0x28], eax
movzx eax, word [rbx + 0x30]
mov dword [rsp + 0x20], eax
movzx r8d, word [rbx + 0x32]
call dbg.tcp_create_packet
mov qword [rsi], rax
test r13d, r13d
jne 0x14002d930
mov rcx, qword [rdi + 0x40]
mov rdx, rsi
mov word [rbx + 0x7c], r12w
mov qword [rbx + 0x88], rbp
add rsp, 0xa8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp dbg.stack_transmit_packetbuffer
mov r8d, 0x258
mov rdx, rax
mov rcx, r15
call dbg.tcp_set_window
jmp 0x14002d8fd
mov eax, dword [0x140175c80]
test eax, eax
je 0x14002d988
mov ecx, 1
call qword [dbg.__acrt_iob_func]
mov rcx, rax
call sym.fflush
mov ecx, 0x64
add rsp, 0xa8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp sym.pixie_usleep
lea rdx, str.packet_buffers_empty__should_be_impossible__n
xor ecx, ecx
call dbg.LOG
mov dword [0x140175c80], 1
jmp 0x14002d952
mov r8d, 0x391
lea rdx, str.src_proto_tcp.c
lea rcx, str.tcb__ip_me.version___0__tcb__ip_them.version___0
call qword [sym.imp.msvcrt.dll__assert]
nop
nop dword [rax]
Function at 0x14002f390
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xb8
mov r12d, dword [rsp + 0x120]
mov r13d, dword [rsp + 0x128]
mov r15d, dword [rsp + 0x130]
mov r14d, dword [rsp + 0x138]
mov qword [rsp + 0x68], rcx
mov rcx, rdx
mov rsi, rdx
mov rbp, r8
mov rdi, r9
call dbg.stack_get_packetbuffer
mov rbx, rax
test rax, rax
je 0x14002f490
movdqu xmm0, xmmword [rbp]
mov rcx, qword [rsp + 0x68]
lea r9, [rsp + 0x70]
mov r8d, r12d
lea rdx, [rsp + 0x90]
movups xmmword [rsp + 0x90], xmm0
mov rax, qword [rbp + 0x10]
mov qword [rsp + 0xa0], rax
movdqu xmm1, xmmword [rdi]
movups xmmword [rsp + 0x70], xmm1
mov rax, qword [rdi + 0x10]
mov qword [rsp + 0x58], 0x7f8
mov qword [rsp + 0x80], rax
lea rax, [rbx + 8]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x38], 4
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r13d
call dbg.tcp_create_packet
mov rdx, rbx
mov rcx, rsi
mov qword [rbx], rax
add rsp, 0xb8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp dbg.stack_transmit_packetbuffer
mov eax, dword [0x140175ce0]
test eax, eax
je 0x14002f4d0
mov ecx, 1
call qword [dbg.__acrt_iob_func]
mov rcx, rax
call sym.fflush
mov ecx, 0x64
add rsp, 0xb8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp sym.pixie_usleep
lea rdx, str.packet_buffers_empty__should_be_impossible__n
xor ecx, ecx
call dbg.LOG
mov dword [0x140175ce0], 1
jmp 0x14002f49a

Function at 0x140031c80
Capabilities:
Encode data using xor

Disassembly:
cmp r9, rdx
mov r10, rcx
mov rax, rdx
cmova r9, rdx
test r9, r9
je 0x140031cea
xor edx, edx
mov ecx, 0x66747032
nop dword [rax]
movzx r11d, byte [r10 + rdx]
xor r11d, ecx
mov byte [r8 + rdx], r11b
mov r11d, ecx
shr r11d, 8
xor r11b, byte [r10 + rdx + 1]
mov byte [r8 + rdx + 1], r11b
mov r11d, ecx
shr r11d, 0x10
xor r11b, byte [r10 + rdx + 2]
mov byte [r8 + rdx + 2], r11b
mov r11d, ecx
rol ecx, 1
shr r11d, 0x18
xor r11b, byte [r10 + rdx + 3]
mov byte [r8 + rdx + 3], r11b
add rdx, 4
cmp rdx, r9
jb 0x140031ca0
ret
Function at 0x140031d20
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x9a8
mov r9d, 0x800
mov rbx, qword [rsp + 0xa10]
mov rax, qword [rbx + 0x50]
movdqu xmm0, xmmword [rbx + 0x40]
mov ebp, dword [rbx + 0x78]
mov qword [rsp + 0xb0], rax
mov eax, dword [rbx + 0x80]
mov rdi, rdx
mov rsi, rcx
mov edx, dword [rbx + 0x84]
lea r12, [rsp + 0x1a0]
mov qword [rsp + 0xc0], 0
lea rcx, [r8 + rax]
mov r8, r12
mov qword [rsp + 0xc8], 0xe
mov byte [rsp + 0x1a0], 0
mov r13, rdx
movups xmmword [rsp + 0xa0], xmm0
call dbg.zadecrypt
mov r14d, eax
cmp r13d, eax
je 0x140031dc8
xor eax, eax
add rsp, 0x9a8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov r9d, dword [rsp + 0x1a0]
mov dword [rsp + 0x1a0], 0
test eax, eax
je 0x140031dae
cmp eax, 1
je 0x140031dae
lea eax, [rax - 2]
lea rdx, [rsp + 0x1a1]
mov r15, r12
lea r11, [rsp + rax + 0x1a2]
lea r8, [0x140067da0]
mov eax, 0x2dfd1072
nop word cs:[rax + rax]
movzx ecx, byte [rdx]
add rdx, 1
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [r8 + rcx*4]
cmp rdx, r11
jne 0x140031e10
not eax
cmp eax, r9d
jne 0x140031dae
cmp r14d, 0xf
jbe 0x140031dae
cmp dword [rsp + 0x1a4], 0x7265744c
jne 0x140031dae
lea r13, [rsp + 0xc0]
mov r9d, 0xb
mov edx, 0xe
lea r8, str.ZeroAccess:
mov rcx, r13
call dbg.banout_append
mov eax, dword [rsp + 0x1ac]
cmp eax, 0x100
ja 0x140031dae
lea edx, [rax*8 + 0x10]
cmp r14d, edx
jb 0x140031dae
test eax, eax
je 0x140031f06
lea rax, [r12 + rax*8]
lea r14, str._u._u._u._u
mov qword [rsp + 0x58], rax
lea r12, [rsp + 0x80]
nop
movzx eax, byte [r15 + 0x13]
mov r8, r14
mov edx, 0x14
mov rcx, r12
add r15, 8
mov dword [rsp + 0x30], eax
movzx eax, byte [r15 + 0xa]
mov dword [rsp + 0x28], eax
movzx eax, byte [r15 + 9]
mov dword [rsp + 0x20], eax
movzx r9d, byte [r15 + 8]
call sym.snprintf.constprop.0_11
mov rcx, r12
call sym.strlen
mov r8, r12
mov edx, 0xe
mov rcx, r13
mov r9, rax
call dbg.banout_append
cmp qword [rsp + 0x58], r15
jne 0x140031eb0
mov rcx, r13
mov edx, 0xe
call sym.banout_string_length
mov rcx, r13
mov edx, 0xe
mov r12d, eax
call sym.banout_string
mov rdx, qword [rsp + 0xb0]
mov dword [rsp + 0x40], r12d
mov rcx, rsi
mov qword [rsp + 0x38], rax
mov r9d, 0x11
lea r8, [rsp + 0x60]
movdqu xmm1, xmmword [rsp + 0xa0]
mov qword [rsp + 0x70], rdx
mov rdx, rdi
movups xmmword [rsp + 0x60], xmm1
mov eax, dword [rbx + 0x28]
mov dword [rsp + 0x28], 0xe
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x20], ebp
call dbg.output_report_banner
jmp 0x140031dae
Function at 0x140031f80
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0xb0
mov r9d, pe_nt_image_headers64
mov edx, 0x10
lea rcx, [0x140067d80]
lea rdi, [rsp + 0x30]
mov r8, rdi
call dbg.zadecrypt
mov esi, dword [rsp + 0x30]
lea rdx, [rsp + 0x31]
mov dword [rsp + 0x30], 0
lea r8, [rsp + 0x40]
mov eax, 0x2dfd1072
lea r9, [0x140067da0]
nop dword [rax + rax]
movzx ecx, byte [rdx]
add rdx, 1
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [r9 + rcx*4]
cmp r8, rdx
jne 0x140031fd0
mov qword [rsp + 0x20], 0
not eax
lea r8, [rsp + 0x21]
mov dword [rsp + 0x28], 0
mov ebx, eax
mov eax, 0x2dfd1072
mov dword [rsp + 0x24], 0x6765744c
mov dword [rsp + 0x2c], 0xf0a577f
nop word [rax + rax]
movzx edx, byte [r8]
add r8, 1
xor edx, eax
shr eax, 8
movzx edx, dl
xor eax, dword [r9 + rdx*4]
cmp r8, rdi
jne 0x140032020
not eax
lea rcx, [rsp + 0x20]
mov r9d, 0x10
mov edx, 0x10
mov dword [rsp + 0x20], eax
call dbg.zadecrypt
movabs rax, 0xab8d9428ce6ebeda
xor rax, qword [rsp + 0x30]
movabs rdx, 0x3ca9d6ec99d1c0c9
xor rdx, qword [rsp + 0x38]
or rax, rdx
setne dl
xor eax, eax
cmp esi, ebx
movzx edx, dl
setne al
or eax, edx
add rsp, 0xb0
pop rbx
pop rsi
pop rdi
ret
Function at 0x1400323b0
Capabilities:
Get local ipv4 addresses

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
xor ebx, ebx
mov rdi, rcx
mov rcx, rdx
mov dword [rsp + 0x3c], 0
lea r12, [rsp + 0x3c]
call dbg.rawsock_win_name
mov rbp, rax
jmp 0x1400323fd
mov rcx, rbx
call sym.free
mov ecx, dword [rsp + 0x3c]
call sym.malloc
mov rbx, rax
test rax, rax
je 0x14003252b
mov qword [rsp + 0x20], r12
mov r9, rbx
xor r8d, r8d
xor edx, edx
mov ecx, 0x17
call sym.GetAdaptersAddresses
mov esi, eax
cmp eax, 0x6f
je 0x1400323e0
test eax, eax
jne 0x1400324e0
mov rsi, rbx
test rbx, rbx
jne 0x140032439
jmp 0x140032508
mov rsi, qword [rsi + 8]
test rsi, rsi
je 0x140032449
mov rcx, qword [rsi + 0x10]
mov rdx, rbp
call dbg.rawsock_is_adapter_names_equal
test eax, eax
je 0x140032430
movabs r8, 0x500000004
mov rax, qword [rsi + 0x18]
xor ebp, ebp
xor esi, esi
test rax, rax
je 0x140032525
nop dword [rax]
mov rdx, qword [rax + 0x10]
cmp word [rdx], 0x17
jne 0x1400324b0
cmp dword [rax + 4], 2
je 0x1400324b0
cmp dword [rax + 0x20], 2
je 0x1400324b0
cmp qword [rax + 0x20], r8
je 0x1400324b0
mov rcx, qword [rdx + 8]
cmp cl, 0xfb
ja 0x1400324b0
bswap rcx
mov r9, rcx
shr r9, 0x20
cmp r9, 0x20010db8
je 0x1400324b0
mov rsi, qword [rdx + 0x10]
mov rbp, rcx
bswap rsi
nop word [rax + rax]
mov rax, qword [rax + 8]
test rax, rax
jne 0x140032468
mov rcx, rbx
call sym.free
mov rax, rdi
mov qword [rdi], rbp
mov qword [rdi + 8], rsi
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov r8d, esi
lea rdx, str.GetAdaptersAddresses__:_failed:__u_n
mov rcx, rax
call sym.fprintf_25
xor ebp, ebp
xor esi, esi
jmp 0x1400324c1
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov r8, rbp
lea rdx, str.GetAdaptersInfo:_adapter_not_found:__s_n
mov rcx, rax
call sym.fprintf_25
xor esi, esi
xor ebp, ebp
jmp 0x1400324b9
mov ecx, 2
call qword [dbg.__acrt_iob_func]
lea rdx, str.GetAdaptersAddresses__:malloc__:_failed:_out_of_memory_n
mov rcx, rax
call sym.fprintf_25
jmp 0x1400324fd
Function at 0x140033240
Capabilities:
Write file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
movabs rax, 0x40002a1b2c3d4
mov ebp, edx
xor edx, edx
mov qword [rsp + 0x20], rax
mov rdi, rcx
movabs rax, 0xff00000000000000
mov qword [rsp + 0x28], rdx
mov edx, 0x690000ff
mov qword [rsp + 0x31], rdx
lea rdx, [0x1400686aa]
mov qword [rsp + 0x29], rax
mov word [rsp + 0x34], bp
call sym.fopen
mov rsi, rax
test rax, rax
je 0x140033350
lea rcx, [rsp + 0x20]
mov r9, rax
mov r8d, 0x18
mov edx, 1
call sym.fwrite
cmp rax, 0x18
jne 0x140033310
mov edx, 1
mov ecx, 0x150
call sym.calloc
mov rbx, rax
test rax, rax
je 0x140033376
lea rcx, [rax + 0x1c]
mov r9, rdi
mov edx, 0x100
lea r8, [0x1400686a7]
call sym.snprintf_6
mov rax, rbx
mov qword [rbx], rsi
mov dword [rbx + 0x11c], 2
mov dword [rbx + 0x120], ebp
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov ecx, 2
xor ebx, ebx
call qword [dbg.__acrt_iob_func]
lea rdx, str.Could_not_write_capture_file_header_n
mov rcx, rax
call sym.fprintf_28
mov rcx, rdi
call sym.perror
mov rcx, rsi
call sym.fclose
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov ecx, 2
xor ebx, ebx
call qword [dbg.__acrt_iob_func]
lea rdx, str.Could_not_open_capture_file_n
mov rcx, rax
call sym.fprintf_28
mov rcx, rdi
call sym.perror
jmp 0x14003333c
mov ecx, 1
call sym.exit
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x140033d10
Capabilities:
Get mac address on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov ecx, 0x2c0
mov dword [rsp + 0x3c], 0x2c0
call sym.malloc
mov qword [rsp + 0x28], rax
test rax, rax
je 0x140033f8a
lea rbx, [rsp + 0x3c]
mov rcx, qword [rsp + 0x28]
mov rdx, rbx
call sym.GetAdaptersInfo
cmp eax, 0x6f
je 0x140033f40
mov rcx, qword [rsp + 0x28]
mov rdx, rbx
call sym.GetAdaptersInfo
test eax, eax
jne 0x140033f70
mov r14, qword [rsp + 0x28]
lea rdi, str._.2X_
jmp 0x140033d8c
mov r14, qword [r14]
test r14, r14
je 0x140033f22
cmp dword [r14 + 0x1a4], 6
jne 0x140033d80
lea r12, [r14 + 0xc]
mov rcx, r12
call sym.strlen
lea r13, [rax + 0xd]
mov rcx, r13
call sym.malloc
mov rbp, rax
mov eax, dword [r14 + 0x194]
lea ebx, [rax + rax*2 + 1]
mov rcx, rbx
call sym.malloc
mov rsi, rax
test rbp, rbp
je 0x140033f80
test rax, rax
je 0x140033f80
mov rdx, r13
mov r9, r12
lea r8, str.DeviceNPF__s
mov rcx, rbp
call dbg.snprintf
mov r15, rsi
add rbx, rsi
xor r13d, r13d
mov eax, dword [r14 + 0x194]
test eax, eax
jne 0x140033e27
jmp 0x140033e50
mov r8, rdi
mov rcx, r15
call dbg.snprintf
mov eax, dword [r14 + 0x194]
add r13, 1
add r15, 3
cmp r13d, eax
jae 0x140033e50
movzx r9d, byte [r14 + r13 + 0x198]
mov rdx, rbx
sub eax, 1
sub rdx, r15
cmp eax, r13d
jne 0x140033e08
lea r8, str._.2X
mov rcx, r15
call dbg.snprintf
jmp 0x140033e13
mov eax, dword [0x140175d20]
lea rbx, [0x140175d40]
mov rcx, r12
lea r13, [r14 + 0x1c0]
mov rdx, rax
shl rax, 4
add rax, rbx
add edx, 1
mov qword [rax], rsi
mov qword [rax + 8], rbp
mov dword [0x140175d20], edx
call sym.strlen
lea rdx, [rax + 0xd]
mov rcx, rdx
mov qword [rsp + 0x20], rdx
call sym.malloc
mov rcx, r13
mov rbx, rax
call sym.strlen
lea rbp, [rax + 1]
mov rcx, rbp
call sym.malloc
mov rsi, rax
test rbx, rbx
je 0x140033f80
test rax, rax
mov rdx, qword [rsp + 0x20]
je 0x140033f80
mov r9, r12
lea r8, str.DeviceNPF__s
mov rcx, rbx
call dbg.snprintf
mov rdx, rbp
mov rcx, rsi
mov r9, r13
lea r8, [0x14006893a]
call dbg.snprintf
mov eax, dword [0x140175d20]
lea rcx, [0x140175d40]
mov r14, qword [r14]
mov rdx, rax
shl rax, 4
add rax, rcx
add edx, 1
mov qword [rax], rsi
mov qword [rax + 8], rbx
mov dword [0x140175d20], edx
test r14, r14
jne 0x140033d8c
mov rcx, qword [rsp + 0x28]
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp sym.free
mov rcx, qword [rsp + 0x28]
call sym.free
mov ecx, dword [rsp + 0x3c]
call sym.malloc
mov qword [rsp + 0x28], rax
test rax, rax
je 0x140033f8a
mov rdx, rbx
mov rcx, rax
call sym.GetAdaptersInfo
test eax, eax
je 0x140033d70
mov edx, eax
lea rcx, str.GetAdaptersInfo_failed_with_error:__u_n
call sym.printf_9
jmp 0x140033f22
mov ecx, 1
call sym.exit
lea rcx, str.Error_allocating_memory_needed_to_call_GetAdaptersinfo_n
call sym.printf_9
nop
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140043b40
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 0x140043bb0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1401763c4]
mov rbx, rcx
test esi, esi
jle 0x140043ce0
mov rax, qword [0x1401763c8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140043bfb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140043c85
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140043be0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140043d02
mov rax, qword [0x1401763c8]
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 [0x1401763c8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140043ce7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140043c7e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140043c90
add dword [0x1401763c4], 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 [0x1401763c8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140043c7e
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 0x140043c08
mov rax, qword [0x1401763c8]
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 0x140044290
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140176420]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140176400]
test rbx, rbx
je 0x1400442ec
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x1400442e3
test eax, eax
jne 0x1400442e3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400442c8
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 0x140044500
Capabilities:
Parse pe header

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

Function at 0x140044530
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x14004457d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x140044574
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14004457f
add rax, 0x28
cmp rax, r9
jne 0x140044560
xor eax, eax
ret

Function at 0x140044580
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140044610
mov rdx, qword [0x14006c980]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x1400445fe
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1400445fe
cmp word [rax + 0x18], 0x20b
jne 0x1400445fe
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140044610
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x1400445e9
add rbx, 0x28
cmp rbx, rdi
je 0x140044610
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x1400445e0
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x140044620
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14006c980]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140044640
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140044648
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140044640
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14004469d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140044694
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140044640
add rax, 0x28
cmp rax, r9
jne 0x140044680
xor eax, eax
ret

Function at 0x1400446a0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14006c980]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400446bf
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400446c8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400446bf
movzx ecx, word [rax + 6]
mov eax, ecx
ret