joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140051bb0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push rbx
push rsi
push rdi
push r14
sub rsp, 0xb88
mov rax, qword [0x1400d1608]
xor rax, rsp
mov qword [rsp + 0xb70], rax
mov rbx, r8
mov r14d, edx
mov rdi, rcx
lea rdx, [rsp + 0x370]
mov rcx, qword [rcx]
mov r8d, 0x3fe
call fcn.14004fdf0
movsxd rsi, eax
test eax, eax
jns 0x140051c36
test rbx, rbx
je 0x140051bfd
inc dword [rbx + 0x2c]
mov r8d, 0x100
mov dword [rdi + 0x28], 0x45
lea rdx, [rsp + 0x270]
mov ecx, esi
call fcn.140044d90
mov rcx, rax
call fcn.140087760
mov ecx, esi
mov qword [rdi + 0x50], rax
call fcn.1400518a0
mov dword [rdi + 0x4c], eax
xor eax, eax
jmp 0x140051cf6
je 0x140051c49
lea eax, [rsi - 1]
movsxd rcx, eax
cmp word [rsp + rcx*2 + 0x370], 0x5c
je 0x140051c58
mov ecx, 0x5c
mov word [rsp + rsi*2 + 0x370], cx
inc esi
movsxd rax, esi
mov ecx, 0x2a
mov word [rsp + rax*2 + 0x370], cx
lea rax, [rax*2 + 2]
cmp rax, 0x800
jae 0x140051dde
xor ecx, ecx
mov qword [rsp + 0xb80], rbp
mov word [rsp + rax + 0x370], cx
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x370]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x140051d13
test rbx, rbx
je 0x140051cb2
inc dword [rbx + 0x2c]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
mov dword [rdi + 0x28], 0x45
mov ecx, eax
lea rdx, [rsp + 0x270]
mov ebx, eax
call fcn.140044d90
mov rcx, rax
call fcn.140087760
mov ecx, ebx
mov qword [rdi + 0x50], rax
call fcn.1400518a0
mov dword [rdi + 0x4c], eax
xor eax, eax
mov rbp, qword [rsp + 0xb80]
mov rcx, qword [rsp + 0xb70]
xor rcx, rsp
call fcn.14006f1f0
add rsp, 0xb88
pop r14
pop rdi
pop rsi
pop rbx
ret
cmp word [rsp + 0x4c], 0x2e
jne 0x140051d33
movzx eax, word [rsp + 0x4e]
test ax, ax
je 0x140051d68
cmp ax, 0x2e
jne 0x140051d33
cmp word [rsp + 0x50], 0
je 0x140051d68
mov r8, rbx
lea rdx, [rsp + 0x4c]
mov rcx, rdi
call fcn.1400519d0
mov esi, eax
test eax, eax
js 0x140051dce
mov rcx, qword [rdi + 0x78]
cmp dword [rcx + 0x28], 0x44
jne 0x140051d68
mov r8, rbx
mov edx, r14d
call fcn.140051bb0
mov esi, eax
test eax, eax
js 0x140051dce
lea rdx, [rsp + 0x20]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140051d13
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindClose]
test rbx, rbx
je 0x140051cec
cmp qword [rbx], 0
je 0x140051cec
call fcn.140051fb0
mov rcx, qword [rbx + 0x18]
mov rdi, rax
add rcx, 0xfa
cmp rax, rcx
jle 0x140051cec
mov rcx, rbx
call qword [rbx]
test eax, eax
jns 0x140051dc5
mov eax, 0xffffffe0
jmp 0x140051cee
mov qword [rbx + 0x18], rdi
jmp 0x140051cec
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
jmp 0x140051cee
call fcn.14006ef6c
int3
Function at 0x140052400
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rdx
test ecx, ecx
je 0x140052485
cmp qword [0x1400e3e90], 0
mov eax, ecx
mov qword [0x1400e3e90], rax
jne 0x1400524b1
xor ebx, ebx
mov qword [0x1400e3e98], rdx
mov qword [rsp + 0x28], rbx
lea r8, [0x140052190]
xor r9d, r9d
mov dword [rsp + 0x20], ebx
mov edx, 0x4000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x1400e3ea8], rax
test rax, rax
jne 0x1400524d2
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x14023a710], 0
mov ebx, eax
jl 0x14005247b
mov r8d, eax
lea rdx, str.Heartbeat_thread_failed:__d
xor ecx, ecx
call fcn.1400481d0
neg ebx
mov eax, ebx
add rsp, 0x30
pop rbx
ret
mov rcx, qword [0x1400e3ea8]
xor ebx, ebx
test rcx, rcx
je 0x1400524b1
mov rax, qword [0x1400e3e90]
mov qword [0x1400e3e90], rbx
lea edx, [rax + rax]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov qword [0x1400e3ea8], rbx
lea rcx, [0x1402394e0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [0x1402394e0]
mov qword [0x1400e3e98], rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
add rsp, 0x30
pop rbx
ret
Function at 0x140054680
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
movsxd rbx, ecx
lea rdi, [0x140000000]
mov r9, r8
lea rax, [rdi + 0xe3f38]
mov r8, rdx
xor ecx, ecx
xor edx, edx
lea rax, [rax + rbx*4]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rdi + rbx*8 + 0xe3eb0], rax
test rax, rax
jne 0x1400546dc
call qword [sym.imp.KERNEL32.dll_GetLastError]
neg eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov dword [rdi + rbx*4 + 0xe3f08], 1
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140055b70
Capabilities:
Connect socket
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x170
mov rax, qword [0x1400d1608]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov edx, 1
mov dword [rsp + 0x34], 1
mov esi, 2
mov dword [rsp + 0x30], reloc.WS2_32.dll_recv
mov ecx, esi
lea r8d, [rdx + 5]
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140055bfa
cmp dword [0x14023a710], 0
jl 0x140055bf0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.140044d90
mov r8, rax
lea rdx, str.socket:__s
xor ecx, ecx
call fcn.1400481d0
mov eax, 0xfffffffe
jmp 0x140055d80
xorps xmm0, xmm0
mov qword [rsp + 0x180], rbx
xor ebx, ebx
mov word [rsp + 0x38], si
mov ecx, 0x7f000001
mov qword [rsp + 0x40], rbx
movups xmmword [rsp + 0x48], xmm0
call qword [sym.imp.WS2_32.dll_htonl]
lea r9, [rsp + 0x34]
mov word [rsp + 0x3a], bx
mov edx, 0xffff
mov dword [rsp + 0x3c], eax
lea r8d, [rbx + 4]
mov dword [rsp + 0x20], 4
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x140055c5a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
jmp 0x140055d3a
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x38]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
jns 0x140055c7f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
jmp 0x140055d3a
mov edx, 1
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_listen]
test eax, eax
jns 0x140055c9e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
jmp 0x140055d3a
lea r8, [rsp + 0x30]
mov rcx, rdi
lea rdx, [rsp + 0x48]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jns 0x140055cbf
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
jmp 0x140055d3a
xor r8d, r8d
mov ecx, esi
lea edx, [r8 + 1]
call qword [sym.imp.WS2_32.dll_socket]
mov r8d, dword [rsp + 0x30]
lea rdx, [rsp + 0x48]
mov rcx, rax
mov qword [0x1400e3608], rax
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
js 0x140055d25
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_accept]
mov rcx, rdi
mov qword [0x1400e3600], rax
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [0x1400e3608]
lea r8, [rsp + 0x34]
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
jns 0x140055d76
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, qword [0x1400e3608]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_closesocket]
cmp dword [0x14023a710], 0
jl 0x140055d66
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, ebx
call fcn.140044d90
mov r8, rax
lea rdx, str.Wake_initialization_error:__s
xor ecx, ecx
call fcn.1400481d0
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0xfffffffe
jmp 0x140055d78
xor eax, eax
mov rbx, qword [rsp + 0x180]
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.14006f1f0
mov rsi, qword [rsp + 0x188]
add rsp, 0x170
pop rdi
ret
Function at 0x1400563e0
Capabilities:
Get mac address on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x3d40
call fcn.14006f190
sub rsp, rax
mov rax, qword [0x1400d1608]
xor rax, rsp
mov qword [rsp + 0x3d30], rax
mov rdi, rcx
mov dword [rsp + 0x20], 0x3c00
lea rcx, [rsp + 0x130]
lea rdx, [rsp + 0x20]
lea rbx, [rsp + 0x130]
call qword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
test eax, eax
je 0x14005647e
cmp dword [0x14023a710], 0
jl 0x14005645b
mov r8d, 0x100
lea rdx, [rsp + 0x30]
mov ecx, eax
call fcn.140044d90
mov r8, rax
lea rdx, [0x1400cb480]
xor ecx, ecx
call fcn.1400481d0
xor eax, eax
mov rcx, qword [rsp + 0x3d30]
xor rcx, rsp
call fcn.14006f1f0
mov rbx, qword [rsp + 0x3d58]
add rsp, 0x3d40
pop rdi
ret
mov rcx, rdi
call fcn.140044b90
shr rax, 0x10
mov qword [rsp + 0x28], rax
movzx ecx, word [rsp + 0x2c]
cmp dword [rbx + 0x194], 6
jb 0x1400564ae
cmp eax, dword [rbx + 0x198]
jne 0x1400564ae
cmp cx, word [rbx + 0x19c]
je 0x1400564b8
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140056494
jmp 0x14005645b
mov eax, 1
jmp 0x14005645d

Function at 0x1400564c0
Capabilities:
Get local ipv4 addresses

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x3d50
call fcn.14006f190
sub rsp, rax
mov rax, qword [0x1400d1608]
xor rax, rsp
mov qword [rsp + 0x3d40], rax
xor r8d, r8d
mov dword [rsp + 0x30], 0x3c00
lea rax, [rsp + 0x30]
mov edi, 0x10000
lea r9, [rsp + 0x140]
mov qword [rsp + 0x20], rax
lea rbx, [rsp + 0x140]
lea edx, [r8 + 0xe]
lea ecx, [rdx - 0xc]
call qword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
test eax, eax
je 0x140056553
cmp dword [0x14023a710], 1
jl 0x14005654f
mov r8d, 0x100
lea rdx, [rsp + 0x40]
mov ecx, eax
call fcn.140044d90
mov r8, rax
lea rdx, str.GetAdaptersAddresses:__s
mov ecx, 1
call fcn.1400481d0
xor eax, eax
jmp 0x14005658c
mov r9d, dword [rbx + 0x60]
test r9d, r9d
je 0x140056563
cmp r9d, edi
cmovb edi, r9d
cmp dword [0x14023a710], 2
jl 0x140056581
mov r8, qword [rbx + 0x48]
lea rdx, str._S:__d
mov ecx, 2
call fcn.1400481d0
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x140056553
mov eax, edi
mov rcx, qword [rsp + 0x3d40]
xor rcx, rsp
call fcn.14006f1f0
mov rbx, qword [rsp + 0x3d60]
add rsp, 0x3d50
pop rdi
ret
Function at 0x1400565b0
Capabilities:
Connect socket
Receive data
Receive data on socket
Send data
Send data on socket
Send http request

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x968
mov rax, qword [0x1400d1608]
xor rax, rsp
mov qword [rsp + 0x950], rax
xor eax, eax
mov ebx, 2
mov word [rsp + 0x40], bx
mov r15, r9
mov qword [rsp + 0x46], rax
mov r14, r8
mov word [rsp + 0x4e], ax
mov rsi, rdx
mov rbp, rcx
test rdx, rdx
je 0x1400567de
lea edx, [rbx + 0x38]
mov rcx, rsi
call fcn.14006fd18
mov rdi, rax
test rax, rax
je 0x1400567de
lea ecx, [rbx + 0x4e]
mov byte [rax], 0
call qword [sym.imp.WS2_32.dll_htons]
mov ecx, 0xa9fea9fe
mov word [rsp + 0x42], ax
call qword [sym.imp.WS2_32.dll_htonl]
xor r8d, r8d
lea edx, [rbx - 1]
mov ecx, ebx
mov dword [rsp + 0x44], eax
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400567de
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
js 0x1400567d5
mov qword [rsp + 0x30], r15
lea r8, str.GET__s_s_s_HTTP_1.0_r_n_s_r_n
mov qword [rsp + 0x28], r14
lea rcx, [rsp + 0x50]
mov r9, rbp
mov qword [rsp + 0x20], rsi
mov edx, 0x100
call fcn.140044c10
movsxd r8, eax
lea rdx, [rsp + 0x50]
xor r9d, r9d
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
js 0x1400567d5
xor r9d, r9d
mov byte [rsp + 0x94f], 0
mov r8d, 0x7ff
lea rdx, [rsp + 0x150]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_recv]
mov rcx, rbx
movsxd rsi, eax
call qword [sym.imp.WS2_32.dll_closesocket]
test esi, esi
js 0x1400567de
mov rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp byte [rdi + rbx + 1], 0
jne 0x1400566f0
cmp rsi, 0x800
jae 0x140056800
mov r8d, reloc.WS2_32.dll_ntohs
mov byte [rsp + rsi + 0x150], 0
lea rdx, str.HTTP_1.0_200_OK
lea rcx, [rsp + 0x150]
call fcn.140075520
test eax, eax
je 0x14005674f
mov r8d, reloc.WS2_32.dll_ntohs
lea rdx, str.HTTP_1.1_200_OK
lea rcx, [rsp + 0x150]
call fcn.140075520
test eax, eax
jne 0x1400567de
lea eax, [rsi - 4]
xor edx, edx
movsxd r8, eax
test eax, eax
jle 0x1400567de
mov eax, edx
movzx ecx, byte [rsp + rax + 0x150]
cmp cl, 0xa
jne 0x140056777
cmp byte [rsp + rax + 0x151], cl
jmp 0x14005679f
cmp cl, 0xd
jne 0x1400567a1
movzx ecx, byte [rsp + rax + 0x151]
cmp cl, 0xd
je 0x1400567ad
cmp cl, 0xa
jne 0x1400567a1
cmp byte [rsp + rax + 0x152], 0xd
jne 0x1400567a1
cmp byte [rsp + rax + 0x153], cl
je 0x1400567ad
inc edx
inc rax
cmp rax, r8
jl 0x140056761
jmp 0x1400567de
lea ecx, [rdx + 4]
mov r8, rbx
movsxd rdx, ecx
lea rax, [rsp + 0x150]
add rdx, rax
lea rcx, [rdi + 1]
call fcn.14007a2cc
test eax, eax
jne 0x1400567de
mov eax, 1
jmp 0x1400567e0
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
mov rcx, qword [rsp + 0x950]
xor rcx, rsp
call fcn.14006f1f0
add rsp, 0x968
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
call fcn.14006ef6c
int3
Function at 0x1400570b0
Capabilities:
Set socket configuration

Disassembly:
push rbx
push rbp
push rsi
push r14
sub rsp, 0x158
mov rax, qword [0x1400d1608]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov r14, qword [0x14023a5f0]
lea rax, [rsp + 0x34]
mov ebx, r8d
mov dword [rsp + 0x34], 4
mov r8d, ecx
mov qword [rsp + 0x20], rax
mov rsi, rdx
lea r9, [rsp + 0x30]
mov ebp, ecx
mov edx, 0xffff
mov rcx, r14
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
je 0x140057143
cmp dword [0x14023a710], 0
jl 0x140057143
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x40]
mov ecx, eax
call fcn.140044d90
mov r9, rax
lea r8, str.getsockopt
lea rdx, [0x1400ce2cc]
xor ecx, ecx
call fcn.1400481d0
cmp dword [rsp + 0x34], 4
mov qword [rsp + 0x150], rdi
je 0x140057177
cmp dword [0x14023a710], 0
jl 0x1400572d7
lea rdx, str.Inconsistency_in_getsockopt_parameter_length
xor ecx, ecx
call fcn.1400481d0
mov eax, 0xfffffffe
jmp 0x140057298
cmp dword [0x14023a710], 3
jl 0x140057199
mov r9d, dword [rsp + 0x30]
lea rdx, str.Default__s__d
mov r8, rsi
mov ecx, 3
call fcn.1400481d0
mov ecx, dword [rsp + 0x30]
mov edi, ebx
cmp ecx, ebx
jge 0x140057296
nop word [rax + rax]
cmp dword [0x14023a710], 3
mov dword [rsp + 0x30], ebx
jl 0x1400571d4
mov r9d, ebx
lea rdx, str.Trying_UDP__s__d
mov r8, rsi
mov ecx, 3
call fcn.1400481d0
lea r9, [rsp + 0x30]
mov dword [rsp + 0x20], 4
mov r8d, ebp
mov edx, 0xffff
mov rcx, r14
call qword [sym.imp.WS2_32.dll_setsockopt]
lea rax, [rsp + 0x34]
mov r8d, ebp
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov edx, 0xffff
mov rcx, r14
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
je 0x14005724f
cmp dword [0x14023a710], 0
jl 0x14005724f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x40]
mov ecx, eax
call fcn.140044d90
mov r9, rax
lea r8, str.getsockopt_recv
lea rdx, [0x1400ce32c]
xor ecx, ecx
call fcn.1400481d0
mov ecx, dword [rsp + 0x30]
cmp ecx, ebx
jge 0x140057286
lea eax, [rdi*4]
cdq
and edx, 0xf
add eax, edx
sar eax, 4
cmp ebx, eax
jg 0x140057277
cmp edi, 0x100000
jl 0x140057277
mov edi, eax
jmp 0x140057279
mov eax, edi
cdq
and edx, 0xf
add eax, edx
sar eax, 4
neg eax
add ebx, eax
cmp ebx, 0x10000
jl 0x1400572bd
cmp ecx, ebx
jl 0x1400571b0
mov eax, ecx
mov rdi, qword [rsp + 0x150]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14006f1f0
add rsp, 0x158
pop r14
pop rsi
pop rbp
pop rbx
ret
cmp dword [0x14023a710], 0
jl 0x1400572d7
mov r8d, ebx
lea rdx, str.Unable_to_set_a_sane_UDP_buffer_size___d_
xor ecx, ecx
call fcn.1400481d0
mov eax, 0xfffffffe
jmp 0x140057298
Function at 0x1400654c0
Capabilities:
Write file on windows

Disassembly:
push rdi
sub rsp, 0x50
mov rdx, qword [rcx + 0x100]
mov rdi, rcx
movabs rcx, 0x7fffffffffffffff
cmp rdx, rcx
jae 0x1400655ac
movsxd rax, dword [rdi + 0xfc]
sub rcx, rax
cmp rdx, rcx
ja 0x1400655ac
cmp dword [rdi + 4], 2
je 0x1400655c3
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rsi
call fcn.140051fb0
mov ecx, dword [rdi + 0x100]
lea r9, [rsp + 0x60]
mov r8d, dword [rdi + 0xfc]
mov rsi, rax
mov rdx, qword [rdi + 0x80]
xor eax, eax
mov dword [rsp + 0x40], ecx
mov rcx, qword [rdi + 0x100]
shr rcx, 0x20
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x30]
mov dword [rsp + 0x44], ecx
mov rcx, qword [rdi + 0xf0]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140065576
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
neg ebx
jmp 0x14006557a
mov ebx, dword [rsp + 0x60]
call fcn.140051fb0
sub rax, rsi
mov rsi, qword [rsp + 0x70]
cmp rax, 0x3e8
jle 0x14006559f
mov ecx, dword [rdi + 0xbc]
mov r8, rax
mov edx, ebx
call fcn.140065be0
mov eax, ebx
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
cmp dword [0x14023a710], 0
jl 0x1400655c3
lea rdx, str.Maximum_file_write_exceeded
xor ecx, ecx
call fcn.1400481d0
mov eax, 0xfffffffc
add rsp, 0x50
pop rdi
ret
Function at 0x14006a7c0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x1f0
mov rax, qword [0x1400d1608]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
mov rsi, qword [rsp + 0x230]
mov rbp, rcx
mov r10, r8
mov dword [rsp + 0x30], 0x40
mov rax, rdx
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x20], rcx
mov rdi, r9
mov rcx, rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, r10
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x14006a826
mov eax, 0xffffffff
jmp 0x14006a95e
test rdi, rdi
je 0x14006a930
mov qword [rsp + 0x1e8], rbx
nop word [rax + rax]
lea rax, [rdi + 0x18]
mov r9, rbp
lea r8, [0x1400d077c]
mov qword [rsp + 0x20], rax
mov edx, 0x80
lea rcx, [rsp + 0x50]
call fcn.140044c10
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, eax
test eax, eax
je 0x14006a8d1
mov r8, qword [0x140233378]
test r8, r8
je 0x14006a91b
lea rdx, [rsp + 0x50]
lea rcx, str.Registry_Key__s:
call r8
mov r8d, 0x100
lea rdx, [rsp + 0xd0]
mov ecx, ebx
call fcn.140044d90
mov rdx, rax
lea rcx, str.___s
call qword [0x140233378]
jmp 0x14006a91b
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x48]
xor r8d, r8d
mov qword [rsp + 0x20], rsi
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x38]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x14006a928
mov rax, qword [0x140233378]
test rax, rax
je 0x14006a91b
lea rcx, str.Unable_to_read_Windows_Registry
call rax
mov rdi, qword [rdi + 0x10]
test rdi, rdi
jne 0x14006a840
mov rbx, qword [rsp + 0x1e8]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test rdi, rdi
jne 0x14006a95c
mov rax, qword [0x140233378]
test rax, rax
je 0x14006a955
lea rcx, [0x1400d07d8]
call rax
mov eax, 0xfffffffe
jmp 0x14006a95e
xor eax, eax
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.14006f1f0
add rsp, 0x1f0
pop rdi
pop rsi
pop rbp
ret
Function at 0x14006a980
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x968
mov rax, qword [0x1400d1608]
xor rax, rsp
mov qword [rsp + 0x940], rax
movsxd rbx, edx
lea rax, [rsp + 0x140]
xor edx, edx
mov dword [rsp + 0x28], 0x400
mov rbp, r9
mov qword [rsp + 0x20], rax
mov r12, rcx
mov r13, r8
mov ecx, 0xfde9
lea r9d, [rdx - 1]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea rdx, [0x1400d0754]
lea rcx, [rsp + 0x140]
call fcn.14007e750
xor edi, edi
mov rsi, rax
mov qword [rsp + 0x30], rdi
test rax, rax
je 0x14006aac9
mov qword [rsp + 0x960], r14
lea rcx, [rsp + 0x40]
mov r8, rax
lea r14, [rsp + 0x30]
mov edx, 0x100
call fcn.14007ec64
test rax, rax
je 0x14006aab9
mov qword [rsp + 0x958], r15
mov r15, rbx
nop
mov r8, r15
lea rdx, [rsp + 0x40]
mov rcx, r12
call fcn.140075520
test eax, eax
je 0x14006aa95
lea rax, [rsp + 0x40]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], dil
jne 0x14006aa50
mov ecx, 0x108
call fcn.140073404
mov qword [r14], rax
lea rdx, [rsp + 0x40]
mov r8d, 0xf8
cmp rbx, r8
mov qword [rax + 8], rdi
mov rax, qword [r14]
cmovb r8, rbx
mov qword [rax], rbx
mov rcx, qword [r14]
add rcx, 0x10
call fcn.14006ffd0
mov r14, qword [r14]
add r14, 8
mov r8, rsi
lea rcx, [rsp + 0x40]
mov edx, 0x100
call fcn.14007ec64
test rax, rax
jne 0x14006aa30
mov rdi, qword [rsp + 0x30]
mov r15, qword [rsp + 0x958]
mov rcx, rsi
call fcn.14007e7e0
mov r14, qword [rsp + 0x960]
test rbp, rbp
je 0x14006aad4
cmp byte [rbp], 0
jne 0x14006ab06
test rdi, rdi
jne 0x14006ab06
test rsi, rsi
je 0x14006abb1
mov rcx, r13
call fcn.140081314
test eax, eax
jns 0x14006abb1
lea rcx, str.Unable_to_clear_registration_file
call fcn.14007ef40
lea eax, [rdi - 3]
jmp 0x14006abb3
lea rdx, [0x1400d0764]
lea rcx, [rsp + 0x140]
call fcn.14007e750
mov rsi, rax
test rax, rax
jne 0x14006ab4e
lea rcx, str.Unable_to_open_registration_file
call fcn.14007ef40
test rdi, rdi
je 0x14006ab47
mov rbx, qword [rdi + 8]
mov rcx, rdi
call fcn.1400733f0
mov rdi, rbx
test rbx, rbx
jne 0x14006ab33
mov eax, 0xfffffffd
jmp 0x14006abb3
test rdi, rdi
je 0x14006ab89
nop dword [rax]
nop word [rax + rax]
mov rdx, qword [rdi]
lea rcx, [rdi + 0x10]
mov r9, rsi
mov r8d, 1
call fcn.14007eebc
mov rbx, qword [rdi + 8]
mov rcx, rdi
call fcn.1400733f0
mov rdi, rbx
test rbx, rbx
jne 0x14006ab60
test rbp, rbp
je 0x14006aba9
cmp byte [rbp], 0
je 0x14006aba9
mov r9, rbp
lea rdx, str._s_s_n
mov r8, r12
mov rcx, rsi
call fcn.14006abe0
mov rcx, rsi
call fcn.14007e7e0
xor eax, eax
mov rcx, qword [rsp + 0x940]
xor rcx, rsp
call fcn.14006f1f0
add rsp, 0x968
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14006ac30
Capabilities:
Get mac address on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r14
mov eax, 0x3d40
call fcn.14006f190
sub rsp, rax
mov rax, qword [0x1400d1608]
xor rax, rsp
mov qword [rsp + 0x3d30], rax
mov r14, rcx
mov dword [rsp + 0x20], 0x3c00
lea rcx, [rsp + 0x130]
lea rdx, [rsp + 0x20]
lea rbx, [rsp + 0x130]
call qword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
mov edi, eax
test eax, eax
je 0x14006acc2
cmp qword [0x140233378], 0
je 0x14006acb3
mov r8d, 0x100
lea rdx, [rsp + 0x30]
mov ecx, eax
call fcn.140044d90
mov rdx, rax
lea rcx, str.GetAdaptersInfo:__s
call qword [0x140233378]
cmp edi, 0x6f
je 0x14006acc2
mov eax, 0xfffffffc
jmp 0x14006adae
mov qword [rsp + 0x3d58], rsi
mov rdi, r14
xor esi, esi
nop
cmp dword [rbx + 0x194], 0
jbe 0x14006ad2f
mov edx, gethostbyname
lea ecx, [rdx - 0x2f]
call fcn.140074c18
mov qword [rdi], rax
test rax, rax
je 0x14006ad83
mov ecx, dword [rbx + 0x198]
lea r8, [0x1400d0748]
mov dword [rax], ecx
mov edx, reloc.WS2_32.dll_sendto
movzx ecx, word [rbx + 0x19c]
mov word [rax + 4], cx
mov r9, qword [rdi]
lea rcx, [r9 + 0x18]
mov r9, qword [r9]
call fcn.140044c10
mov rcx, qword [rdi]
mov dword [rcx + 8], eax
mov rdi, qword [rdi]
add rdi, 0x10
inc esi
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14006acd0
test esi, esi
jne 0x14006ad7f
lea edx, [rbx + 0x30]
lea ecx, [rbx + 1]
call fcn.140074c18
mov qword [r14], rax
test rax, rax
je 0x14006ada1
movabs rcx, 0xffffff4445490000
lea r8, str._16.16I64X
mov qword [rax], rcx
lea edx, [rbx + 0x14]
mov r9, qword [r14]
lea rcx, [r9 + 0x18]
mov r9, qword [r9]
call fcn.140044c10
mov rcx, qword [r14]
mov dword [rcx + 8], eax
lea eax, [rbx + 1]
jmp 0x14006ada6
mov eax, esi
jmp 0x14006ada6
mov rcx, qword [r14]
test rcx, rcx
je 0x14006ada1
nop dword [rax + rax]
mov rbx, qword [rcx + 0x10]
call fcn.1400733f0
mov rcx, rbx
test rbx, rbx
jne 0x14006ad90
mov eax, 0xffffffff
mov rsi, qword [rsp + 0x3d58]
mov rcx, qword [rsp + 0x3d30]
xor rcx, rsp
call fcn.14006f1f0
lea r11, [rsp + 0x3d40]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret