joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140097f30
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x1400980d8
push rbp
push rdi
push r14
sub rsp, 0x20
mov rbp, qword [rcx]
mov r14, rcx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], r15
mov rdi, qword [rbp + 0x1e0]
lea rsi, [rdi + 0x1cb8]
lea rbx, [rdi + 0x1eb8]
mov qword [rbx], rsi
cmp rsi, rbx
jae 0x140097f95
lea rax, [rsi + 1]
mov byte [rsi], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x140097f95
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x140097f95
mov byte [rax], dl
inc qword [rbx]
movzx ecx, word [rdi + 0x1ca8]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rdi + 0x1caa]
movzx r15d, ax
mov word [rsp + 0x48], ax
call qword [sym.imp.WS2_32.dll_htons]
mov r9, qword [rbx]
movzx ecx, ax
cmp r9, rbx
jae 0x140097fcc
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x58]
cmp r9, rbx
jae 0x140098022
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140098022
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140098022
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140098022
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140098022
mov byte [r9], 0xf0
mov r9, qword [rbx]
inc r9
mov qword [rdi + 0x1ec0], r9
lea r8, [rdi + 0x1cba]
sub r9, rsi
mov qword [rbx], rsi
sub r9, 2
mov edx, 0x3e
mov rcx, rbp
call fcn.1400979e0
mov rcx, qword [r14 + 0x4c0]
xor r9d, r9d
mov rdx, rsi
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
test eax, eax
jns 0x140098084
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140074160
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.140097db0
mov rcx, qword [r14 + 0x4c0]
lea rdx, [rdi + 0x1cbf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1400980d0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140074160
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x140099840
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x1401540c0]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0xa00]
lea rax, [rsp + 0x30]
mov rdi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
add r8d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x1400998d5
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call fcn.1400adcba
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r8d, dword [rbx + 0x154]
mov qword [rsp + 0xf8], rbp
mov qword [rsp + 0x100], rsi
cmp r8d, 4
jge 0x140099936
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.140074160
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0x100]
mov rbp, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400ace70
add rsp, 0xd0
pop r14
pop rdi
pop rbx
ret
mov rdx, qword [rbx + 0x168]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rbx + 0xc], ecx
sub ecx, 3
je 0x1400999f1
sub ecx, 1
je 0x140099a64
sub ecx, 1
je 0x1400999a0
cmp ecx, 1
je 0x140099983
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x1400b21c0]
call fcn.140074160
jmp 0x140099a64
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.140099570
test eax, eax
je 0x140099a64
jmp 0x14009990a
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbp, eax
lea rsi, [rdx + 4]
movzx eax, byte [rdx + 3]
mov r8, rbp
shl ecx, 8
xor edx, edx
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x140099a64
sub rax, rsi
cmp rax, rbp
jae 0x140099a64
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.1400742e0
jmp 0x140099a64
cmp r8d, 4
jle 0x140099a64
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x48]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x140099a64
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.140074080
mov esi, eax
test eax, eax
je 0x140099a43
mov edx, 5
mov rcx, rbx
call fcn.14009a530
mov eax, esi
jmp 0x14009990a
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.140082960
mov rcx, r14
call fcn.140082c40
test eax, eax
je 0x140099908
mov edx, 5
mov rcx, rbx
call fcn.14009a530
mov eax, Ordinal_46
jmp 0x14009990a
Function at 0x1400ac800
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x1400ac842
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x1400ac889
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x1400ac8e2
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x1400ac8a0
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1400ac923
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1400c7bd2]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1400c7bd3]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400ac8f0
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x1400ad898
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400ad8e2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400ad8e2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400ad8e2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400ad8e2
cmp dword [rcx + 0x84], 0xe
jbe 0x1400ad8e2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400ad8e4
xor al, al
add rsp, 0x28
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x14000a590]
mov dword [rax], 1
mov rax, qword [0x14000a5a0]
mov dword [rax], 1
mov rax, qword [0x14000a5b0]
mov dword [rax], 1
mov rax, qword [0x14000a540]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140003470
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140003498
mov eax, 0
jmp 0x1400034e6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400034c1
mov eax, 0
jmp 0x1400034e6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x1400034e1
mov eax, 0
jmp 0x1400034e6
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x1400034ec
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14000356a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140003561
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140003561
mov rax, qword [rbp - 8]
jmp 0x14000357f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140003534
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001810
Capabilities:
Check os version

Disassembly:
sub rsp, 0xe8
mov rax, qword [0x1400213d8]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov r8d, 0x94
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.14000c9e0
mov dword [rsp + 0x30], 0x94
mov dword [0x140027370], 1
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x1400018d8
cmp dword [rsp + 0x40], 2
jne 0x1400018d8
cmp dword [rsp + 0x34], 5
jne 0x14000187d
cmp dword [rsp + 0x38], 0
jne 0x14000187d
mov dword [0x140027370], 2
jmp 0x1400018d8
cmp dword [rsp + 0x34], 5
jne 0x140001897
cmp dword [rsp + 0x38], 1
jne 0x140001897
mov dword [0x140027370], 3
jmp 0x1400018d8
cmp dword [rsp + 0x34], 5
jne 0x1400018b1
cmp dword [rsp + 0x38], 2
jne 0x1400018b1
mov dword [0x140027370], 4
jmp 0x1400018d8
cmp dword [rsp + 0x34], 6
jb 0x1400018d8
cmp dword [rsp + 0x3c], 0x1b58
jae 0x1400018ce
mov dword [0x140027370], 5
jmp 0x1400018d8
mov dword [0x140027370], 6
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.14000b050
add rsp, 0xe8
ret
Function at 0x1400025f0
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x28
call fcn.1400077c0
test eax, eax
je 0x1400027b8
lea rcx, str.advapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x140027310], rax
cmp qword [0x140027310], 0
jne 0x140002640
lea r8, str.loading_DLL_advapi32.dll_failed_n
lea rdx, [0x14002315c]
lea rcx, [0x1400248b0]
call fcn.1400010c0
xor eax, eax
jmp 0x1400027bd
lea rdx, str.OpenSCManagerA
mov rcx, qword [0x140027310]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140027328], rax
lea rdx, str.OpenServiceA
mov rcx, qword [0x140027310]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140027330], rax
lea rdx, str.ChangeServiceConfigA
mov rcx, qword [0x140027310]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140027338], rax
lea rdx, str.CloseServiceHandle
mov rcx, qword [0x140027310]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140027340], rax
lea rdx, str.CreateServiceA
mov rcx, qword [0x140027310]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140027348], rax
lea rdx, str.DeleteService
mov rcx, qword [0x140027310]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140027350], rax
lea rdx, str.StartServiceA
mov rcx, qword [0x140027310]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140027358], rax
lea rdx, str.QueryServiceStatus
mov rcx, qword [0x140027310]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140027360], rax
lea rdx, str.ControlService
mov rcx, qword [0x140027310]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140027368], rax
cmp qword [0x140027328], 0
je 0x14000278d
cmp qword [0x140027330], 0
je 0x14000278d
cmp qword [0x140027338], 0
je 0x14000278d
cmp qword [0x140027340], 0
je 0x14000278d
cmp qword [0x140027348], 0
je 0x14000278d
cmp qword [0x140027350], 0
je 0x14000278d
cmp qword [0x140027358], 0
je 0x14000278d
cmp qword [0x140027360], 0
je 0x14000278d
cmp qword [0x140027368], 0
jne 0x1400027b8
mov rcx, qword [0x140027310]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea r8, str.loading_exported_functions_of_advapi32.dll_failed
lea rdx, [0x140023174]
lea rcx, str.usb_service_load_dll
call fcn.1400010c0
xor eax, eax
jmp 0x1400027bd
mov eax, 1
add rsp, 0x28
ret
Function at 0x1400069c0
Capabilities:
Get token membership

Disassembly:
sub rsp, 0x98
mov rax, qword [0x1400213d8]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov byte [rsp + 0x78], 0
mov byte [rsp + 0x79], 0
mov byte [rsp + 0x7a], 0
mov byte [rsp + 0x7b], 0
mov byte [rsp + 0x7c], 0
mov byte [rsp + 0x7d], 5
cmp dword [0x140027370], 0
jne 0x140006a05
call fcn.140001810
xor eax, eax
test eax, eax
jne 0x1400069f7
cmp dword [0x140027370], 3
jg 0x140006a1e
mov eax, 1
jmp 0x140006aa9
lea rax, [rsp + 0x60]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0x220
mov r8d, 0x20
mov dl, 2
lea rcx, [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 0
je 0x140006aa5
lea r8, [rsp + 0x68]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x140006a9a
mov dword [rsp + 0x68], 0
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14000b050
add rsp, 0x98
ret

Function at 0x140006ad0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
sub rsp, 0x68
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0xffffffffffffffff
jne 0x140006af1
jmp 0x140006b7d
mov r8d, 0x12c
mov edx, 0x2724
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x140006b13
jmp 0x140006b7d
mov rdx, qword [rsp + 0x38]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rsp + 0x48], eax
mov rdx, qword [rsp + 0x38]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x140006b40
jmp 0x140006b7d
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x140006b5a
jmp 0x140006b7d
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov r8d, dword [rsp + 0x48]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_WriteFile]
add rsp, 0x68
ret

Function at 0x140006b90
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x68
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x140006bb5
mov eax, 0xffffffff
jmp 0x140006c0a
lea rdx, str.GetNativeSystemInfo
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140006bdf
lea rcx, [rsp + 0x30]
call qword [rsp + 0x20]
jmp 0x140006bea
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [rsp + 0x30]
cmp eax, 9
je 0x140006bfe
movzx eax, word [rsp + 0x30]
cmp eax, 6
jne 0x140006c05
mov eax, 0x40
jmp 0x140006c0a
mov eax, 0x20
add rsp, 0x68
ret
Function at 0x140006c10
Capabilities:
Acquire debug privileges

Disassembly:
sub rsp, 0x68
mov rax, qword [0x1400213d8]
xor rax, rsp
mov qword [rsp + 0x58], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x30]
mov edx, 0x20
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140006c58
lea r8, [rsp + 0x50]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x140006c68
lea rcx, str.SetPrivilege_Error_n
call fcn.14000c7d4
xor eax, eax
jmp 0x140006cc2
mov dword [rsp + 0x40], 1
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x44], rax
mov dword [rsp + 0x4c], 2
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rsp + 0x40]
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x140006cbd
lea rcx, str.AdjustTokenPrivilege_Errro_n
call fcn.14000c7d4
xor eax, eax
jmp 0x140006cc2
mov eax, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000b050
add rsp, 0x68
ret
Function at 0x140008740
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], 1
xor r9d, r9d
mov r8d, 1
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1400087d2
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x1400087c7
mov r8, qword [rsp + 0x60]
lea rdx, str.removed__s_from_device_registry.._n
lea rcx, str.usb_registry_remove_device_regvalue
call fcn.140001160
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x1400087d4
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
add rsp, 0x48
ret

Function at 0x1400094e0
Capabilities:
Query or enumerate registry value

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov qword [rsp + 0x40], 0
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x48], 0
movsxd rax, dword [rsp + 0x78]
mov r8, rax
xor edx, edx
mov rcx, qword [rsp + 0x70]
call fcn.14000c9e0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1400095c7
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x4c]
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1400095c7
cmp dword [rsp + 0x4c], 1
jne 0x1400095bf
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
movsx eax, byte [rax]
test eax, eax
je 0x1400095bf
mov rax, qword [rsp + 0x30]
movsx eax, byte [rax]
cmp eax, 0x2c
jne 0x1400095b0
mov rax, qword [rsp + 0x30]
mov byte [rax], 0
mov rax, qword [rsp + 0x30]
inc rax
mov qword [rsp + 0x30], rax
jmp 0x14000958f
mov dword [rsp + 0x48], 1
cmp qword [rsp + 0x40], 0
je 0x1400095da
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x48]
add rsp, 0x58
ret
Function at 0x1400095f0
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x40], 0
call fcn.1400077c0
test eax, eax
jne 0x140009668
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
movsx eax, byte [rax]
test eax, eax
je 0x140009668
mov rax, qword [rsp + 0x30]
movsx eax, byte [rax + 1]
test eax, eax
je 0x140009668
mov rax, qword [rsp + 0x30]
movsx eax, byte [rax]
test eax, eax
jne 0x140009659
mov rax, qword [rsp + 0x30]
mov byte [rax], 0x2c
mov rax, qword [rsp + 0x30]
inc rax
mov qword [rsp + 0x30], rax
jmp 0x14000962c
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140009733
cmp dword [rsp + 0x78], 2
jle 0x140009717
call fcn.1400077c0
test eax, eax
je 0x1400096de
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 7
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x1400096dc
mov dword [rsp + 0x40], 1
jmp 0x140009715
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x140009715
mov dword [rsp + 0x40], 1
jmp 0x140009733
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x140009733
mov dword [rsp + 0x40], 1
cmp qword [rsp + 0x38], 0
je 0x140009746
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x40]
add rsp, 0x58
ret