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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x240
xor r13d, r13d
mov edi, r8d
mov r12, rdx
mov rsi, rcx
mov ebx, r13d
test r8d, r8d
jle 0x1800043e8
nop
lea rax, [rsp + 0x268]
lea r8, [rsp + 0x30]
lea ecx, [rsi + 1]
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x268], 1
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x26c], r13d
mov qword [rsp + 0x38], rsi
mov dword [rsp + 0x30], 1
call qword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
je 0x180004407
lea rdx, [rsp + 0x30]
mov rcx, rsi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x180004407
mov r8d, edi
movsxd rdx, ebx
xor r9d, r9d
sub r8d, ebx
add rdx, r12
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x1800043ea
add ebx, eax
cmp ebx, edi
jl 0x180004370
mov eax, edi
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rdi
ret
mov eax, 0xfffffc88
jmp 0x1800043ea

Function at 0x180004410
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x20
xor ebx, ebx
mov ebp, r9d
mov edi, r8d
mov r12, rdx
mov rsi, rcx
test r8d, r8d
jle 0x180004470
nop dword [rax]
mov edx, ebp
mov rcx, rsi
call fcn.180004290
test al, al
je 0x18000448d
mov r8d, edi
movsxd rdx, ebx
xor r9d, r9d
sub r8d, ebx
add rdx, r12
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x180004472
add ebx, eax
cmp ebx, edi
jl 0x180004440
mov eax, edi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret
mov eax, 0xfffffc88
jmp 0x180004472
Function at 0x180004740
Capabilities:
Encode data using base64

Disassembly:
push rdi
mov r10, r8
mov edi, edx
mov r11, rcx
test rcx, rcx
je 0x180004885
test edx, edx
js 0x180004885
test r8, r8
je 0x18000486f
mov qword [rsp + 0x10], rbx
mov ebx, edx
test edx, edx
jle 0x180004866
mov qword [rsp + 0x18], rsi
lea rsi, [0x18002e760]
nop
cmp ebx, 3
jl 0x1800047ef
movzx ecx, byte [r11 + 1]
movzx edx, byte [r11]
movzx r9d, byte [r11 + 2]
mov r8d, ecx
shr ecx, 4
mov rax, rdx
shr rax, 2
add r11, 3
movzx eax, byte [rax + rsi]
mov byte [r10], al
mov eax, edx
shl eax, 4
or rcx, rax
and ecx, 0x3f
movzx eax, byte [rcx + rsi]
mov rcx, r9
mov byte [r10 + 1], al
lea eax, [r8*4]
shr rcx, 6
or rcx, rax
and ecx, 0x3f
movzx eax, byte [rcx + rsi]
mov byte [r10 + 2], al
mov rax, r9
and eax, 0x3f
add r10, 4
movzx eax, byte [rax + rsi]
mov byte [r10 - 1], al
jmp 0x180004856
movzx r8d, byte [r11]
inc r11
cmp ebx, 2
jne 0x180004804
movzx ecx, byte [r11]
inc r11
jmp 0x180004806
xor cl, cl
movzx edx, cl
movzx eax, r8b
shr rax, 2
mov ecx, edx
movzx eax, byte [rax + rsi]
shr ecx, 4
mov byte [r10], al
movzx eax, r8b
shl eax, 4
or rcx, rax
and ecx, 0x3f
movzx eax, byte [rcx + rsi]
mov byte [r10 + 1], al
cmp ebx, 1
jne 0x18000483c
lea eax, [rbx + 0x3c]
jmp 0x180004849
and edx, 0xf
shl edx, 2
movsxd rax, edx
movsx eax, byte [rax + rsi]
mov byte [r10 + 2], al
mov byte [r10 + 3], 0x3d
add r10, 4
sub ebx, 3
test ebx, ebx
jg 0x180004780
mov rsi, qword [rsp + 0x18]
mov rbx, qword [rsp + 0x10]
mov byte [r10], 0
lea ecx, [rdi + 2]
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
shl eax, 2
pop rdi
ret
or eax, 0xffffffff
pop rdi
ret
Function at 0x1800054c0
Capabilities:
Hash data with md5

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x180
mov rax, qword [0x1800393f8]
xor rax, rsp
mov qword [rsp + 0x170], rax
xor eax, eax
mov qword [rsp + 0x90], r8
mov r8d, edx
mov rdx, rcx
lea rcx, [rsp + 0xa0]
mov dword [rsp + 0xa0], 0x67452301
mov dword [rsp + 0xb4], eax
mov dword [rsp + 0xb0], eax
mov dword [rsp + 0xa4], 0xefcdab89
mov dword [rsp + 0xa8], 0x98badcfe
mov dword [rsp + 0xac], 0x10325476
call fcn.1800052e0
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x100]
call fcn.1800053b0
movzx eax, byte [rsp + 0x10e]
movzx r11d, byte [rsp + 0x10f]
movzx edx, byte [rsp + 0x10d]
movzx r10d, byte [rsp + 0x10c]
movzx ecx, byte [rsp + 0x10b]
movzx ebx, byte [rsp + 0x10a]
movzx edi, byte [rsp + 0x109]
movzx esi, byte [rsp + 0x108]
movzx ebp, byte [rsp + 0x107]
movzx r12d, byte [rsp + 0x106]
movzx r13d, byte [rsp + 0x105]
movzx r14d, byte [rsp + 0x104]
movzx r15d, byte [rsp + 0x103]
movzx r9d, byte [rsp + 0x101]
movzx r8d, byte [rsp + 0x100]
mov dword [rsp + 0x88], r11d
mov dword [rsp + 0x80], eax
movzx eax, byte [rsp + 0x102]
mov dword [rsp + 0x78], edx
mov dword [rsp + 0x70], r10d
mov dword [rsp + 0x68], ecx
mov rcx, qword [rsp + 0x90]
mov dword [rsp + 0x60], ebx
mov dword [rsp + 0x58], edi
mov dword [rsp + 0x50], esi
mov dword [rsp + 0x48], ebp
mov dword [rsp + 0x40], r12d
mov dword [rsp + 0x38], r13d
mov dword [rsp + 0x30], r14d
lea rdx, str._02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], eax
call fcn.180018350
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.180018330
mov rbx, qword [rsp + 0x1d8]
add rsp, 0x180
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x180005660
Capabilities:
Acquire debug privileges

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x50]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1800056e4
lea r8, [rsp + 0x58]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov rcx, qword [rsp + 0x50]
test eax, eax
je 0x1800056de
mov rax, qword [rsp + 0x58]
lea r8, [rsp + 0x30]
xor edx, edx
mov qword [rsp + 0x34], rax
xor eax, eax
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x28], rax
lea r9d, [rax + 0x10]
mov dword [rsp + 0x3c], 2
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x1800056eb
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x48
ret
mov eax, 1
add rsp, 0x48
ret
Function at 0x180005700
Capabilities:
Create service
Persist via windows service
Start service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x18003df80]
mov rdi, r8
mov rbp, rdx
mov rsi, rcx
test rax, rax
jne 0x180005740
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov qword [0x18003df80], rax
xor ebx, ebx
mov r9d, 0xf01ff
mov r8, rbp
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], ebx
mov rdx, rsi
mov rcx, rax
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 1
call qword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov rdi, rax
test rax, rax
jne 0x1800057f8
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x1800057b8
cmp eax, 0x431
je 0x1800057b8
lea rcx, str.InstallDriver_CrateService___Faild__d____n
mov edx, eax
call fcn.180003e10
jmp 0x18000585d
lea rcx, str.InstallDriver_CrateService___Faild_Service_is_ERROR_IO_PENDING_or_ERROR_SERVICE_EXISTS___n
call fcn.180003e10
mov rcx, qword [0x18003df80]
mov r8d, 0xf01ff
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rdi, rax
test rax, rax
jne 0x1800057f8
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.InstallDriver_OpenService___Faild__d____n
mov edx, eax
call fcn.180003e10
jmp 0x18000585d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x18000584a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x18000583c
cmp eax, 0x420
je 0x18000582e
lea rcx, str.InstallDriver_StartService___Faild__d____n
mov edx, eax
call fcn.180003e10
jmp 0x18000584f
lea rcx, str.InstallDriver_StartService___ERROR_SERVICE_ALREADY_RUNNING____n
call fcn.180003e10
jmp 0x18000584f
lea rcx, str.InstallDriver_StartService___Faild_ERROR_IO_PENDING____n
call fcn.180003e10
jmp 0x18000584f
mov ebx, 1
test rdi, rdi
je 0x18000585d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea r11, [rsp + 0x70]
mov eax, ebx
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x180005880
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x150
mov rax, qword [0x1800393f8]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rax, qword [str.SYSTEMCurrentControlSet_services_]
mov rbx, rdx
mov rdx, rcx
lea rcx, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov qword [rcx], rax
mov rax, qword [0x180032910]
mov qword [rcx + 8], rax
mov rax, qword [0x180032918]
mov qword [rcx + 0x10], rax
mov rax, qword [0x180032920]
mov qword [rcx + 0x18], rax
movzx eax, word [0x180032928]
mov word [rcx + 0x20], ax
movzx eax, byte [0x18003292a]
mov byte [rcx + 0x22], al
xor eax, eax
or rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
xor ecx, ecx
nop dword [rax]
movzx eax, byte [rdx + rcx]
inc rcx
mov byte [rdi + rcx - 2], al
test al, al
jne 0x180005900
lea rax, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov r9d, 0x2001f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x18000594e
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov rcx, 0xffffffff80000002
call fcn.1800063a0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, 1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.180018330
mov rbx, qword [rsp + 0x170]
add rsp, 0x150
pop rdi
ret

Function at 0x180005ba0
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 rdi, rdx
mov rbp, rcx
mov rdx, r8
mov rcx, rdi
mov rbx, r8
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rdx, rbx
mov rcx, rdi
mov esi, eax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r8d, esi
mov rcx, rbp
mov rdx, rax
mov dword [rbp + 4], 0
call fcn.180001a10
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
xor eax, eax
add rsp, 0x20
pop rdi
ret
Function at 0x180005c20
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
lea r8, [0x180032a78]
lea rdx, [0x180032a74]
mov rbp, rcx
call fcn.180001c50
movsxd r8, dword [rbp + 4]
mov rax, qword [rbp + 8]
cmp byte [r8 + rax - 1], 0x2f
je 0x180005c70
lea rdx, [0x180032a78]
mov r8d, 1
mov rcx, rbp
call fcn.1800014b0
nop
mov ecx, 9
call fcn.18001842c
mov edx, 8
mov rcx, rax
mov rbx, rax
call fcn.180004610
mov rdx, qword [rbp + 8]
lea rcx, [0x180032a7c]
mov r8, rbx
call fcn.180001930
mov rcx, rbx
mov rdi, rax
call fcn.1800183ec
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x180005cf6
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x180005cc7
mov edx, dword [rdi]
call fcn.180001240
mov rsi, qword [0x18003be50]
lea rbx, [rdi - 8]
lea rcx, [rsi + 0x20]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rsi + 8]
lea rcx, [rsi + 0x20]
mov qword [rbx], rax
mov qword [rsi + 8], rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x180005c70
mov rdx, qword [rdi + 8]
mov rcx, rbp
call fcn.180001ab0
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x180005d12
mov edx, dword [rdi]
call fcn.180001240
mov rsi, qword [0x18003be50]
lea rbx, [rdi - 8]
lea rcx, [rsi + 0x20]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rsi + 8]
lea rcx, [rsi + 0x20]
mov qword [rbx], rax
mov qword [rsi + 8], rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
mov rax, rbp
mov rbp, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x180005ff0
Capabilities:
Create process on windows

Disassembly:
push rdi
sub rsp, 0xe0
xor edx, edx
mov rdi, rcx
lea rcx, [rsp + 0x78]
lea r8d, [rdx + 0x60]
mov dword [rsp + 0x70], WSAGetLastError
call fcn.18001fe60
xor r11d, r11d
xor eax, eax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
xor r9d, r9d
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r11
mov qword [rsp + 0x30], r11
mov dword [rsp + 0x28], r11d
xor r8d, r8d
mov rdx, rdi
xor ecx, ecx
mov qword [rsp + 0x50], r11
mov dword [rsp + 0x20], r11d
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x180006088
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x60]
add rsp, 0xe0
pop rdi
ret
mov qword [rsp + 0xf0], rbx
lea rbx, [0x18002e55b]
test rdi, rdi
cmovne rbx, rdi
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x180032a98]
mov edx, eax
mov r8, rbx
call fcn.180003eb0
mov rbx, qword [rsp + 0xf0]
xor eax, eax
add rsp, 0xe0
pop rdi
ret
Function at 0x1800063a0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x150
mov rax, qword [0x1800393f8]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rbx, qword [r8]
mov rsi, rdx
mov rdi, rcx
lea r8, [rsp + 0x40]
mov r9d, 0x100
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x180006431
lea rax, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov r9d, 0x2001f
xor r8d, r8d
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x180006417
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.1800063a0
lea r8, [rsp + 0x40]
mov r9d, 0x100
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x1800063e0
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
xor eax, eax
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.180018330
add rsp, 0x150
pop rdi
pop rsi
pop rbx
ret

Function at 0x1800068b0
Capabilities:
Get hostname
Resolve dns

Disassembly:
sub rsp, 0x28
cmp qword [0x18003df90], 0
je 0x1800068c8
mov eax, 1
add rsp, 0x28
ret
mov rcx, qword [0x18003dfa0]
mov qword [rsp + 0x20], rbx
test rcx, rcx
jne 0x180006914
mov rcx, qword [0x18003be50]
call fcn.1800010a0
mov rbx, rax
test rax, rax
jne 0x1800068f1
xor ecx, ecx
jmp 0x18000690d
xor ecx, ecx
mov rdx, rax
mov dword [rax + 4], ecx
mov ecx, 0x100
call fcn.180001120
mov rcx, rbx
mov qword [rbx + 8], rax
mov byte [rax], 0
mov qword [0x18003dfa0], rcx
mov edx, dword [rcx]
mov rcx, qword [rcx + 8]
dec edx
call qword [sym.imp.WS2_32.dll_gethostname]
mov rdx, qword [0x18003dfa0]
lea rcx, str.hostname_:_s
mov rdx, qword [rdx + 8]
call fcn.180003eb0
mov rcx, qword [0x18003dfa0]
mov rcx, qword [rcx + 8]
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
je 0x1800069a6
mov rax, qword [rax + 0x18]
mov rcx, qword [rax]
mov ebx, dword [rcx]
test bl, bl
je 0x1800069c6
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov rcx, rax
call fcn.1800018c0
mov rdx, qword [0x18003dfa0]
lea rcx, str._s__s__08X
mov rdx, qword [rdx + 8]
mov r8, qword [rax + 8]
mov r9d, ebx
mov qword [0x18003df90], rax
mov dword [0x18003dfa8], ebx
call fcn.180003eb0
mov rbx, qword [rsp + 0x20]
mov eax, 1
add rsp, 0x28
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rdx, qword [0x18003dfa0]
lea rcx, str.gethostbyname_errors__s__d
mov rdx, qword [rdx + 8]
mov r8d, eax
call fcn.180003eb0
xor eax, eax
mov rbx, qword [rsp + 0x20]
add rsp, 0x28
ret
Function at 0x1800069e0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x170
mov rax, qword [0x1800393f8]
xor rax, rsp
mov qword [rsp + 0x160], rax
xor ebx, ebx
lea rax, [rsp + 0x40]
mov rdi, rcx
lea rdx, str.SYSTEMCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318
mov esi, 1
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x48], esi
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x180006af4
lea rdx, str._sConnection
lea rcx, [rsp + 0x50]
mov r8, rdi
call fcn.180018350
mov rcx, qword [rsp + 0x40]
lea r11, [rsp + 0x38]
lea rdx, [rsp + 0x50]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x180006ae9
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
lea rdx, str.PnpInstanceID
xor r8d, r8d
mov dword [rsp + 0x30], 0x104
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x180006ade
lea r8d, [rbx + 3]
lea rdx, [0x180032d40]
lea rcx, [rsp + 0x50]
call fcn.1800199d0
test eax, eax
cmove ebx, esi
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.180018330
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x180006b20
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
sub rsp, 0x2c0
mov rax, qword [0x1800393f8]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
xor ebx, ebx
lea rax, [rsp + 0x68]
mov rsi, rcx
lea rdx, str.SYSTEMCurrentControlSetControlClass4D36E972_E325_11CE_BFC1_08002BE10318
mov ebp, 1
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x64], ebx
mov dword [rsp + 0x7c], ebp
mov dword [rsp + 0x78], 4
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x180006d60
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rbx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x2d8], rdi
mov dword [rsp + 0x60], ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
cmp dword [rsp + 0x60], ebx
mov edi, ebx
jle 0x180006d4d
nop
lea rcx, [rsp + 0x91]
xor edx, edx
mov r8d, 0x103
mov dword [rsp + 0x88], 0x104
mov byte [rsp + 0x90], bl
call fcn.18001fe60
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
lea r9, [rsp + 0x88]
lea r8, [rsp + 0x90]
mov edx, edi
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov rcx, qword [rsp + 0x68]
lea r11, [rsp + 0x70]
lea rdx, [rsp + 0x90]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x180006ceb
lea rcx, [rsp + 0x1a1]
xor edx, edx
mov r8d, 0x104
mov byte [rsp + 0x1a0], bl
call fcn.18001fe60
mov rcx, qword [rsp + 0x70]
lea rax, [rsp + 0x64]
lea r9, [rsp + 0x7c]
lea rdx, str.NetCfgInstanceId
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x1a0]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x64], 0x104
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x180006ce0
lea rcx, [rsp + 0x1a0]
mov rdx, rsi
call fcn.1800184e4
test rax, rax
jne 0x180006cf9
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc edi
cmp edi, dword [rsp + 0x60]
jl 0x180006bf0
jmp 0x180006d4d
mov rcx, qword [rsp + 0x70]
lea rax, [rsp + 0x80]
lea r9, [rsp + 0x78]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x84]
lea rdx, str.Characteristics
xor r8d, r8d
mov dword [rsp + 0x80], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x180006d4d
movzx ecx, byte [rsp + 0x84]
and cl, 4
cmp cl, 4
cmove ebx, ebp
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x2d8]
mov eax, ebx
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.180018330
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop rsi
ret
Function at 0x1800070b0
Capabilities:
Get mac address on windows

Disassembly:
push rbp
push r13
push r14
sub rsp, 0x50
or r13d, 0xffffffff
call fcn.1800068b0
mov ecx, 0x2c0
mov r14d, eax
call fcn.18001842c
cmp qword [0x18003df98], 0
mov rbp, rax
mov dword [rsp + 0x70], 0x2c0
je 0x1800070f1
xor eax, eax
add rsp, 0x50
pop r14
pop r13
pop rbp
ret
lea rcx, str.GetMacByAdapters
call fcn.180003eb0
lea rdx, [rsp + 0x70]
mov rcx, rbp
call sub.IPHLPAPI.DLL_GetAdaptersInfo
cmp eax, 0x6f
jne 0x180007123
mov rcx, rbp
call fcn.1800183ec
mov ecx, dword [rsp + 0x70]
call fcn.18001842c
mov rbp, rax
lea rdx, [rsp + 0x70]
mov rcx, rbp
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], r12
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
jne 0x1800072d0
mov rdi, rbp
test rbp, rbp
je 0x1800072dd
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x80], rsi
nop dword [rax + rax]
lea rcx, [rdi + 0xc]
call fcn.1800069e0
test eax, eax
jne 0x180007192
lea rcx, [rdi + 0xc]
call fcn.180006b20
test eax, eax
jne 0x180007192
cmp qword [rdi], 0
je 0x180007192
lea rdx, [rdi + 0xc]
lea rcx, [0x180032e70]
call fcn.180003eb0
jmp 0x1800071d0
xor esi, esi
lea rbx, [rdi + 0x1b8]
test r14d, r14d
je 0x1800071e2
test rbx, rbx
je 0x1800071bf
lea rcx, [rbx + 8]
call qword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, dword [0x18003dfa8]
je 0x1800071dd
mov rbx, qword [rbx]
test rbx, rbx
jne 0x1800071a5
cmp qword [rdi], rsi
je 0x1800071e2
lea rcx, [0x180032e50]
call fcn.180003eb0
mov rdi, qword [rdi]
test rdi, rdi
jne 0x180007160
jmp 0x1800072c3
mov esi, 1
lea rcx, str.bGetIP__d_bMatchAddress__d
mov r8d, esi
mov edx, r14d
call fcn.180003eb0
test rbx, rbx
je 0x18000723a
mov rcx, qword [0x18003df90]
test rcx, rcx
jne 0x180007223
lea rcx, [rbx + 8]
call fcn.1800018c0
lea rcx, [0x180032e20]
mov qword [0x18003df90], rax
call fcn.180003eb0
jmp 0x180007273
lea rdx, [rbx + 8]
call fcn.180001ab0
lea rcx, [0x180032e20]
call fcn.180003eb0
jmp 0x180007273
mov rcx, qword [0x18003df90]
test rcx, rcx
jne 0x18000725b
lea rcx, [rdi + 0x1c0]
call fcn.1800018c0
mov qword [0x18003df90], rax
jmp 0x180007267
lea rdx, [rdi + 0x1c0]
call fcn.180001ab0
lea rcx, [0x180032e30]
call fcn.180003eb0
movzx ecx, byte [rdi + 0x19c]
movzx eax, byte [rdi + 0x19d]
movzx r10d, byte [rdi + 0x19b]
movzx r9d, byte [rdi + 0x19a]
movzx r8d, byte [rdi + 0x199]
movzx edx, byte [rdi + 0x198]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], ecx
lea rcx, str._02x__02x__02x__02x__02x__02x
mov dword [rsp + 0x20], r10d
call fcn.180001930
xor r13d, r13d
mov qword [0x18003df98], rax
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
test rbp, rbp
je 0x1800072dd
mov rcx, rbp
call fcn.1800183ec
mov r12, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
mov eax, r13d
add rsp, 0x50
pop r14
pop r13
pop rbp
ret