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

Disassembly:
cmp edx, 0x1f
jne 0x140097b28
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 0x1400979e5
lea rax, [rsi + 1]
mov byte [rsi], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x1400979e5
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1400979e5
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 0x140097a1c
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x58]
cmp r9, rbx
jae 0x140097a72
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140097a72
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140097a72
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140097a72
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140097a72
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.140097430
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 0x140097ad4
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.1400739c0
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.140097800
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 0x140097b20
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.1400739c0
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x140099290
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x1400d80c0]
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 0x140099325
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call sub.ntdll.dll_memcpy
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 0x140099386
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.1400739c0
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.1400ac3e0
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 0x140099441
sub ecx, 1
je 0x1400994b4
sub ecx, 1
je 0x1400993f0
cmp ecx, 1
je 0x1400993d3
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x1400c1ac0]
call fcn.1400739c0
jmp 0x1400994b4
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.140098fc0
test eax, eax
je 0x1400994b4
jmp 0x14009935a
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.ntdll.dll_memchr
test rax, rax
je 0x1400994b4
sub rax, rsi
cmp rax, rbp
jae 0x1400994b4
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.140073b40
jmp 0x1400994b4
cmp r8d, 4
jle 0x1400994b4
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 0x1400994b4
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.1400738e0
mov esi, eax
test eax, eax
je 0x140099493
mov edx, 5
mov rcx, rbx
call fcn.140099f80
mov eax, esi
jmp 0x14009935a
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.1400823b0
mov rcx, r14
call fcn.140082690
test eax, eax
je 0x140099358
mov edx, 5
mov rcx, rbx
call fcn.140099f80
mov eax, Ordinal_46
jmp 0x14009935a
Function at 0x1400ac250
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 0x1400ac292
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 0x1400ac2d9
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 0x1400ac332
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 0x1400ac2f0
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1400ac373
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1400c1832]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1400c1833]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400ac340
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 0x1400ad3f4
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x1400ad702
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1400ad707
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400ad750
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x1400ad750
dec r8
sub rdx, 1
jne 0x1400ad736
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x180001490
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x180001505
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x180001505
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x1800014f5
nop
cmp rbx, rcx
jae 0x180001505
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x1800014e0
cmp rbx, rcx
jae 0x180001505
cmp word [rbx], 0
je 0x180001505
mov rax, rbx
jmp 0x180001507
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180005c70
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str._MonitoRingAPI_starts_.._n
call fcn.1800011f0
xor eax, eax
lea r8, [0x180005d10]
mov qword [rsp + 0x28], rax
xor r9d, r9d
mov edx, 0x10000
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x180051608], rax
test rax, rax
je 0x180005ccf
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.___thread_started_.._n
call fcn.1800011f0
mov rax, qword [0x180051608]
add rsp, 0x38
ret

Function at 0x180006230
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
mov qword [0x180051610], rcx
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.init__0x
call fcn.1800011f0
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___void_const____ptr64____ptr64]
mov rcx, rax
lea rdx, [0x180045aa4]
call fcn.1800011f0
mov ecx, 0xffffffff
call rbx
xor eax, eax
lea r8, [0x1800062d0]
mov qword [rsp + 0x28], rax
xor r9d, r9d
mov edx, 0x10000
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
add rsp, 0x30
pop rbx
ret

Function at 0x1800158e0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
xor r11d, r11d
xor r10b, r10b
mov rsi, r9
mov rdi, r8
mov rbp, rdx
mov al, 1
mov ebx, r11d
test r8, r8
je 0x18001595b
mov qword [rsp + 0x10], r14
lea r14, [0x18004e1f0]
nop word [rax + rax]
movzx r8d, byte [rbx + rbp]
inc rbx
lea r9, [r8 + r8*2]
movzx ecx, byte [r9 + r14]
and cl, al
mov byte [r11 + rsi], r8b
xor r10b, cl
not al
movzx ecx, byte [r9 + r14 + 2]
or al, byte [r9 + r14 + 1]
movzx edx, r10b
or rcx, rdx
add r11, rcx
cmp rbx, rdi
jb 0x180015920
mov r14, qword [rsp + 0x10]
mov rax, qword [rsp + 0x30]
neg r10b
mov rbx, qword [rsp + 0x18]
mov rbp, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
mov qword [rax], r11
sbb eax, eax
and eax, 0xf
pop rdi
ret
Function at 0x180017240
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
lea rcx, str.SIMDJSON_FORCE_IMPLEMENTATION
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rbp, rax
test rax, rax
je 0x1800172ee
mov rdi, 0xffffffffffffffff
inc rdi
cmp byte [rdi + rax], 0
jne 0x180017276
call fcn.180015390
mov rbx, qword [rax]
call fcn.180015390
mov r14, qword [rax + 8]
cmp rbx, r14
je 0x1800172cb
mov rsi, qword [rbx]
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax]
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0x10
jb 0x1800172ae
mov rax, qword [rax]
cmp r8, rdi
jne 0x1800172c2
mov rdx, rbp
mov rcx, rax
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x1800172cd
add rbx, 8
cmp rbx, r14
jne 0x180017295
xor esi, esi
test rsi, rsi
je 0x1800172dc
call fcn.1800152b0
xchg qword [rax], rsi
jmp 0x18001733d
call fcn.1800157b0
mov rbx, rax
call fcn.1800152b0
xchg qword [rax], rbx
jmp 0x18001733d
call fcn.180015050
mov ebp, eax
call fcn.180015390
mov rbx, qword [rax]
mov rsi, qword [rax + 8]
cmp rbx, rsi
je 0x18001732d
nop word [rax + rax]
mov rdi, qword [rbx]
mov rdx, qword [rdi]
mov rcx, rdi
call qword [rdx + 0x10]
mov ecx, eax
and ecx, ebp
cmp ecx, eax
je 0x180017335
add rbx, 8
cmp rbx, rsi
jne 0x180017310
call fcn.1800157b0
mov rdi, rax
call fcn.1800152b0
xchg qword [rax], rdi
mov rax, qword [rax]
nop
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x18002f140
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x18004e508]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, rdx
call fcn.1800015f0
mov rcx, rax
test rax, rax
je 0x18002f34b
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x48], 3
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.SupportedFeatures
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea r8, [rsp + 0x38]
lea rdx, str.Instances
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
lea rdi, str.Process_Monitor_24_Instance
mov rsi, 0xffffffffffffffff
mov rax, rsi
nop word [rax + rax]
inc rax
cmp word [rdi + rax*2], 0
jne 0x18002f1e0
mov r8d, eax
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.180006f60
mov rax, qword [rsp + 0x40]
mov ebx, dword [rax - 0x10]
cmp dword [rax - 8], 1
jle 0x18002f219
mov edx, ebx
lea rcx, [rsp + 0x40]
call fcn.180006ba0
mov rax, qword [rsp + 0x40]
lea ecx, [rbx*2 + 2]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.DefaultInstance
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea r8, [rsp + 0x30]
mov rdx, rdi
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
lea rdx, str.385200
mov rax, rsi
inc rax
cmp word [rdx + rax*2], 0
jne 0x18002f261
mov r8d, eax
lea rcx, [rsp + 0x40]
call fcn.180006f60
mov rbx, qword [rsp + 0x40]
mov edi, dword [rbx - 0x10]
cmp dword [rbx - 8], 1
jle 0x18002f297
mov edx, edi
lea rcx, [rsp + 0x40]
call fcn.180006ba0
mov rbx, qword [rsp + 0x40]
lea eax, [rdi*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
mov r9d, 1
xor r8d, r8d
lea rdx, str.Altitude
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Flags
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], esi
sub esi, 1
jg 0x18002f326
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
mov eax, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.18002ce50
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
mov ecx, 0x80004005
call fcn.180001450
int3
Function at 0x18002f360
Capabilities:
Install driver

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x150
mov rax, qword [0x18004e508]
xor rax, rsp
mov qword [rsp + 0x148], rax
mov rbx, rcx
call fcn.18002ecb0
test eax, eax
je 0x18002f522
call fcn.1800015f0
mov rcx, rax
test rax, rax
je 0x18002f562
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x130], rax
lea rdx, str.RegistryMachineSystemCurrentControlSetServices_
mov rdi, 0xffffffffffffffff
mov rax, rdi
nop
inc rax
cmp word [rdx + rax*2], 0
jne 0x18002f3d0
mov r8d, eax
lea rcx, [rsp + 0x130]
call fcn.180006f60
mov rbx, qword [rbx + 8]
lea rax, [rsp + 0x28]
mov qword [rsp + 0x20], rax
xor esi, esi
test rbx, rbx
jne 0x18002f408
mov ecx, esi
mov qword [rsp + 0x20], rcx
jmp 0x18002f471
mov rax, rdi
nop dword [rax + rax]
lea rax, [rax + 1]
cmp word [rbx + rax*2], si
jne 0x18002f410
lea edx, [rax + 1]
test edx, edx
js 0x18002f54c
movsxd r14, edx
cmp edx, 0x80
jle 0x18002f451
mov edx, 2
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov rcx, rax
mov qword [rsp + 0x20], rax
test rax, rax
je 0x18002f557
jmp 0x18002f45b
lea rcx, [rsp + 0x28]
mov qword [rsp + 0x20], rcx
lea r8, [r14 + r14]
test r8, r8
je 0x18002f471
mov rdx, rbx
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [rsp + 0x20]
test rcx, rcx
jne 0x18002f47a
mov eax, esi
jmp 0x18002f48a
mov rax, rdi
nop dword [rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x18002f480
mov r8d, eax
mov rdx, rcx
lea rcx, [rsp + 0x130]
call fcn.180007090
nop
lea rax, [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
cmp rcx, rax
je 0x18002f4b3
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbx, qword [rsp + 0x130]
mov rdx, rbx
lea rcx, [rsp + 0x138]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rcx, [rsp + 0x138]
call qword [sym.imp.ntdll.dll_NtLoadDriver]
mov edx, 0x80000000
lea ecx, [rax + rdx]
test edx, ecx
jne 0x18002f503
cmp eax, 0xc000010e
je 0x18002f503
mov r8d, eax
lea rdx, str.NtLoadDriver_Failed_code_0x_x
mov ecx, 3
call fcn.18002fab0
jmp 0x18002f508
mov esi, 1
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x18002f520
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
mov eax, esi
mov rcx, qword [rsp + 0x148]
xor rcx, rsp
call fcn.18002ce50
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
mov ecx, 0x80070057
call fcn.180001450
int3
mov ecx, 0x8007000e
call fcn.180001450
nop
mov ecx, 0x80004005
call fcn.180001450
int3
Function at 0x1800323c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbp
push rdi
sub rsp, 0x38
mov rax, rdx
xor ebp, ebp
mov rdi, rcx
mov dword [rsp + 0x20], ebp
mov rcx, rax
lea edx, [rbp + 1]
call qword [sym.imp.USER32.dll_LookupIconIdFromDirectoryEx]
test eax, eax
jne 0x1800323ea
add rsp, 0x38
pop rdi
pop rbp
ret
mov qword [rsp + 0x50], rbx
mov r8d, 3
mov qword [rsp + 0x58], rsi
mov rcx, rdi
mov qword [rsp + 0x60], r12
movzx edx, ax
mov qword [rsp + 0x30], r15
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdx, rax
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdx, rbx
mov rcx, rdi
mov r12, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rdi, qword [rsp + 0x70]
mov r15d, eax
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x18003245c
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea esi, [r15 + 0xf]
mov dword [rdi + 0x18], ebp
and esi, 0xfffffff0
mov qword [rdi + 0x10], rbp
mov qword [rdi + 8], rbp
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, esi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x1800324de
mov rdx, qword [rdi + 8]
mov qword [rsp + 0x68], r14
test rdx, rdx
je 0x18003249d
mov ebp, dword [rdi + 0x10]
sub ebp, edx
mov r8d, ebp
mov rcx, rbx
mov r14d, ebp
call sub.VCRUNTIME140.dll_memcpy
mov rbp, qword [rdi + 8]
test rbp, rbp
je 0x1800324c8
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbp
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea rax, [r14 + rbx]
mov qword [rdi + 8], rbx
mov r14, qword [rsp + 0x68]
mov qword [rdi + 0x10], rax
mov dword [rdi + 0x18], esi
jmp 0x1800324e1
mov esi, dword [rdi + 0x18]
mov rdx, qword [rdi + 8]
sub esi, r15d
mov r8d, esi
lea rcx, [r15 + rdx]
call sub.VCRUNTIME140.dll_memmove
mov rcx, qword [rdi + 8]
mov r8, r15
mov rdx, r12
call sub.VCRUNTIME140.dll_memcpy
add qword [rdi + 0x10], r15
mov eax, 1
mov r15, qword [rsp + 0x30]
mov r12, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
add rsp, 0x38
pop rdi
pop rbp
ret
Function at 0x1800336d0
Capabilities:
Get disk information

Disassembly:
sub rsp, 0x678
mov rax, qword [0x18004e508]
xor rax, rsp
mov qword [rsp + 0x660], rax
xor eax, eax
lea rdx, [rsp + 0x260]
mov ecx, 0x1ff
mov word [rsp + 0x260], ax
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x18003379e
mov eax, dword [0x180046198]
mov dword [rsp + 0x40], eax
movzx eax, word [0x18004619c]
mov word [rsp + 0x44], ax
movzx eax, word [rsp + 0x260]
mov qword [rsp + 0x670], rbx
lea rbx, [rsp + 0x260]
nop dword [rax]
mov r8d, 0x104
mov word [rsp + 0x40], ax
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x180033782
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x20]
lea rax, [rsp + 0x40]
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x28], rax
call fcn.18000aeb0
movzx eax, word [rbx]
add rbx, 2
test ax, ax
jne 0x180033782
movzx eax, word [rbx]
test ax, ax
jne 0x180033740
mov rbx, qword [rsp + 0x670]
mov eax, 1
mov rcx, qword [rsp + 0x660]
xor rcx, rsp
call fcn.18002ce50
add rsp, 0x678
ret