joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400ac0e0
Capabilities:
Connect pipe
Create pipe

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x40
xor ebp, ebp
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
test r9d, r9d
jne 0x1400ac1d5
mov rcx, qword [rdi + 0x120]
mov r9d, 0xff
mov qword [rax - 0x10], rbp
xor r8d, r8d
mov dword [rax - 0x18], ebp
mov edx, 0x40040003
mov dword [rax - 0x20], 0x10000
mov dword [rax - 0x28], 0x10000
call qword [sym.imp.KERNEL32.DLL_CreateNamedPipeW]
mov qword [rbx + 0x70], rax
cmp rax, 0xffffffffffffffff
jne 0x1400ac19b
call qword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jg 0x1400ac154
call qword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x1400ac162
call qword [sym.imp.KERNEL32.DLL_GetLastError]
movzx eax, ax
or eax, 0x80070000
cdqe
mov qword [rbx + 0x40], rax
mov qword [rbx + 0x68], rbp
mov rax, qword [rsi + 0x48]
test rax, rax
je 0x1400ac18e
mov rax, qword [rax + 0x68]
mov qword [rbx + 0x68], rax
mov rax, qword [rsi + 0x48]
mov qword [rax + 0x68], rbx
mov qword [rsi + 0x48], rbx
jmp 0x1400ac281
mov qword [rbx + 0x68], rbx
mov qword [rsi + 0x48], rbx
jmp 0x1400ac281
mov r8, rax
mov dword [rsp + 0x20], ebp
mov rdx, rdi
mov rcx, rsi
call fcn.1400ab8e0
test eax, eax
je 0x1400ac1d5
mov rcx, qword [rbx + 0x70]
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov qword [rbx + 0x70], 0xffffffffffffffff
call qword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jg 0x1400ac154
call qword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x1400ac162
xor eax, eax
mov qword [rsp + 0x50], r14
mov qword [rbx + 0x40], rax
lea rdx, [rbx + 0x40]
mov qword [rbx + 0x48], rax
mov qword [rbx + 0x50], rax
mov qword [rbx + 0x58], rax
mov rcx, qword [rbx + 0x70]
call qword [sym.imp.KERNEL32.DLL_ConnectNamedPipe]
test eax, eax
jne 0x1400ac27c
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x3e5
je 0x1400ac27c
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x217
jne 0x1400ac21d
mov rax, rbp
jmp 0x1400ac251
mov rcx, qword [rbx + 0x70]
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov qword [rbx + 0x70], 0xffffffffffffffff
call qword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jg 0x1400ac241
call qword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x1400ac24f
call qword [sym.imp.KERNEL32.DLL_GetLastError]
movzx eax, ax
or eax, 0x80070000
cdqe
mov qword [rbx + 0x40], rax
mov qword [rbx + 0x68], rbp
mov rax, qword [rsi + 0x48]
test rax, rax
je 0x1400ac274
mov rax, qword [rax + 0x68]
mov qword [rbx + 0x68], rax
mov rax, qword [rsi + 0x48]
mov qword [rax + 0x68], rbx
jmp 0x1400ac278
mov qword [rbx + 0x68], rbx
mov qword [rsi + 0x48], rbx
mov r14, qword [rsp + 0x50]
inc dword [rdi + 0x78]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x1400ac6c0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
test dword [rdx + 0x58], 0x1000000
lea rdi, [rdx + 0x80]
mov rbx, rdx
mov rsi, rcx
je 0x1400ac70b
mov qword [rdx + 0x238], 0
lea rcx, [0x1400ac480]
mov rdx, rdi
mov r8d, select
call qword [sym.imp.KERNEL32.DLL_QueueUserWorkItem]
jmp 0x1400ac7c5
xor eax, eax
lea rcx, [rdi + 0x40]
mov qword [rcx], rax
mov qword [rcx + 8], rax
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], rax
test dword [rdx + 0x58], 0x80000
je 0x1400ac735
mov rax, qword [rdi + 0x70]
or rax, 1
mov qword [rdi + 0x58], rax
mov qword [rsp + 0x20], rcx
lea rdx, [0x1404e04a1]
mov rcx, qword [rbx + 0x118]
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x1400ac765
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x3e5
jne 0x1400ac7c9
test dword [rbx + 0x58], 0x80000
je 0x1400ac820
cmp qword [rdi + 0x70], 0
jne 0x1400ac796
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_CreateEventA]
mov qword [rdi + 0x70], rax
test rax, rax
je 0x1400ac859
cmp qword [rdi + 0x78], 0xffffffffffffffff
lea rcx, [rdi + 0x78]
jne 0x1400ac820
mov rdx, qword [rdi + 0x58]
lea r8, [0x1400a79a0]
mov dword [rsp + 0x28], 4
mov r9, rdi
mov dword [rsp + 0x20], 0xffffffff
call qword [sym.imp.KERNEL32.DLL_RegisterWaitForSingleObject]
test eax, eax
jne 0x1400ac820
call qword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jg 0x1400ac7db
call qword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x1400ac7e9
call qword [sym.imp.KERNEL32.DLL_GetLastError]
movzx eax, ax
or eax, 0x80070000
cdqe
mov qword [rdi + 0x40], rax
mov qword [rdi + 0x68], 0
mov rax, qword [rsi + 0x48]
test rax, rax
je 0x1400ac816
mov rax, qword [rax + 0x68]
mov qword [rdi + 0x68], rax
mov rax, qword [rsi + 0x48]
mov qword [rax + 0x68], rdi
mov qword [rsi + 0x48], rdi
jmp 0x1400ac83f
mov qword [rdi + 0x68], rdi
mov qword [rsi + 0x48], rdi
jmp 0x1400ac83f
mov rcx, qword [rbx + 0x128]
test rcx, rcx
je 0x1400ac83f
xor r9d, r9d
lea rdx, [0x1400ad8e0]
lea r8d, [r9 + 0x32]
call fcn.1400a9210
or dword [rbx + 0x58], 0x10000
inc dword [rbx + 0x78]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
lea rdx, str.CreateEvent
call fcn.1400ae490
int3
Function at 0x1400ad030
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
mov rbx, rdx
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov rcx, rbx
movaps xmm0, xmmword [rsp + 0x30]
mov edi, r9d
mov edx, r8d
lea r8, [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
call qword [rbx + 0x68]
mov rdx, qword [rsp + 0x38]
test rdx, rdx
je 0x1400ad0ef
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x1400ad0ef
mov rcx, qword [rbx + 0x118]
lea r9, [rsp + 0x70]
cmp edi, eax
mov qword [rsp + 0x20], 0
cmova edi, eax
mov r8d, edi
call qword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x1400ad0d1
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x40], xmm0
call qword [sym.imp.KERNEL32.DLL_GetLastError]
lea r9, [rsp + 0x40]
mov rdx, rbx
mov r8d, eax
call fcn.1400acf90
xor eax, eax
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
mov edx, dword [rsp + 0x70]
lea r8, [rsp + 0x30]
mov rcx, rbx
call qword [rbx + reloc.WS2_32.dll_WSASetLastError]
mov eax, dword [rsp + 0x70]
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
lea r8, [rsp + 0x30]
mov rdx, 0xfffffffffffff024
mov rcx, rbx
call qword [rbx + reloc.WS2_32.dll_WSASetLastError]
mov rbx, qword [rsp + 0x60]
xor eax, eax
add rsp, 0x50
pop rdi
ret
Function at 0x1400af720
Capabilities:
Initialize winsock library

Disassembly:
push rbx
sub rsp, 0x470
mov rax, qword [0x1402151f8]
xor rax, rsp
mov qword [rsp + 0x460], rax
xor eax, eax
mov ebx, 2
mov qword [0x140560840], rax
xor ecx, ecx
mov word [0x140560840], bx
mov qword [0x140560848], rax
call qword [sym.imp.WS2_32.dll_htons]
lea rdx, [0x140560844]
mov word [0x140560842], ax
lea rcx, str.0.0.0.0
call fcn.1400aefc0
test eax, eax
jne 0x1400af9c0
lea r8, [0x140560860]
xor edx, edx
lea rcx, [0x1401e6960]
call fcn.1400a08e0
test eax, eax
jne 0x1400af9c0
lea ecx, [rbx + 0x41]
call qword [sym.imp.USER32.dll_GetSystemMetrics]
cmp eax, 1
je 0x1400af91a
mov ecx, 0x202
lea rdx, [rsp + 0x2c0]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1400af933
mov qword [rsp + 0x480], rdi
xor r8d, r8d
mov edi, 1
mov ecx, ebx
mov edx, edi
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400af84d
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 0x274
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov edx, 0xffff
mov r8d, 0x2005
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockopt]
cmp eax, 0xffffffff
je 0x1400af942
mov eax, dword [0x140560880]
mov rcx, rbx
test dword [rsp + 0x40], 0x20000
cmove eax, edi
mov dword [0x140560880], eax
call qword [sym.imp.WS2_32.dll_closesocket]
cmp eax, 0xffffffff
je 0x1400af957
jmp 0x1400af874
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x273d
je 0x1400af9ab
cmp eax, 0x273a
jbe 0x1400af9ab
cmp eax, 0x2740
jae 0x1400af9ab
xor r8d, r8d
mov edx, edi
lea ecx, [r8 + 0x17]
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400af8eb
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 0x274
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov edx, 0xffff
mov r8d, 0x2005
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockopt]
cmp eax, 0xffffffff
je 0x1400af96c
mov eax, dword [0x14056087c]
mov rcx, rbx
test dword [rsp + 0x40], 0x20000
cmove eax, edi
mov dword [0x14056087c], eax
call qword [sym.imp.WS2_32.dll_closesocket]
cmp eax, 0xffffffff
je 0x1400af981
jmp 0x1400af912
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x273d
je 0x1400af996
cmp eax, 0x273a
jbe 0x1400af996
cmp eax, 0x2740
jae 0x1400af996
mov rdi, qword [rsp + 0x480]
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.1400cc030
add rsp, 0x470
pop rbx
ret
lea rdx, str.WSAStartup
mov ecx, eax
call fcn.1400ae490
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, str.getsockopt
call fcn.1400ae490
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, str.closesocket
call fcn.1400ae490
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, str.getsockopt
call fcn.1400ae490
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, str.closesocket
call fcn.1400ae490
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, str.socket
call fcn.1400ae490
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, str.socket
call fcn.1400ae490
int3
call fcn.1400f4acc
int3
Function at 0x1400bf2f0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x60
mov rax, qword [0x1402151f8]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rsi, rcx
lea rcx, str.HWLOC_PCI_LOCALITY
call fcn.1400f2d90
mov rbx, rax
test rax, rax
je 0x1400bf3e1
xor edx, edx
mov qword [rsp + 0x78], rdi
mov rcx, rax
mov dword [rsi + 0x2fc], 1
call fcn.1400feacc
mov edi, eax
test eax, eax
js 0x1400bf3d1
lea rdx, [rsp + 0x20]
mov ecx, eax
call fcn.1400fe1a4
test eax, eax
jne 0x1400bf3c8
mov eax, dword [rsp + 0x34]
cmp eax, 0x10000
jg 0x1400bf3a7
inc eax
movsxd rcx, eax
call fcn.1400edbe8
mov r8d, dword [rsp + 0x34]
mov rdx, rax
mov ecx, edi
mov rbx, rax
call fcn.1400f597c
movsxd rcx, dword [rsp + 0x34]
cmp eax, ecx
jne 0x1400bf396
mov byte [rcx + rbx], 0
mov rdx, rbx
mov rcx, rsi
call fcn.1400bf640
mov rcx, rbx
call fcn.1400ed908
mov ecx, edi
call fcn.1400f5fb8
jmp 0x1400bf3dc
mov ecx, 2
call fcn.1400edd10
mov r9d, dword [rsp + 0x34]
lea rdx, str.Ignoring_HWLOC_PCI_LOCALITY_file___s_too_large___lu_bytes__n
mov rcx, rax
mov r8, rbx
call fcn.140006550
mov ecx, edi
call fcn.1400f5fb8
jmp 0x1400bf3dc
mov rdx, rbx
mov rcx, rsi
call fcn.1400bf640
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400cc030
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rsi
ret

Function at 0x1400c13b0
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.DLL_GetSystemInfo]
mov eax, dword [0x140215068]
cmp eax, 1
jbe 0x1400c13f9
mov rdx, qword [0x14024f540]
test rdx, rdx
je 0x1400c13f1
lea ecx, [rax - 1]
call rdx
movzx ecx, ax
mov eax, dword [0x140215068]
shl eax, 6
add eax, 0xffffffc0
add eax, ecx
add rsp, 0x58
ret
shl eax, 6
add rsp, 0x58
ret
mov eax, dword [rsp + 0x40]
add rsp, 0x58
ret
Function at 0x1400c5d10
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push r12
push r13
sub rsp, 0x78
mov rax, qword [0x1402151f8]
xor rax, rsp
mov qword [rsp + 0x50], rax
movzx eax, byte [rcx]
mov r13, r8
cmp al, byte [0x1401e3f18]
mov r12, rdx
jne 0x1400c5d4b
movzx eax, byte [rcx + 1]
cmp al, byte [0x1401e3f19]
jne 0x1400c5d4b
xor eax, eax
jmp 0x1400c5d50
sbb eax, eax
or eax, 1
mov qword [rsp + 0xb8], rsi
lea rbx, str._dev_stdin
test eax, eax
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x68], r14
lea rdx, [0x1401bc464]
cmovne rbx, rcx
mov qword [rsp + 0x60], r15
mov rcx, rbx
call fcn.1400ff458
mov rbp, rax
test rax, rax
je 0x1400c5e59
lea rdx, [rsp + 0x20]
mov rcx, rbx
mov edi, 0x1000
call fcn.1400fe298
test eax, eax
jne 0x1400c5dba
mov eax, 0x8000
test word [rsp + 0x26], ax
je 0x1400c5dba
mov eax, dword [rsp + 0x34]
inc eax
movsxd rdi, eax
lea rcx, [rdi + 1]
call fcn.1400edbe8
mov rsi, rax
test rax, rax
je 0x1400c5e51
mov r9, rbp
mov r8, rdi
mov edx, 1
mov rcx, rax
call fcn.1400f4170
mov r15, rax
mov byte [rax + rsi], 0
cmp rax, rdi
jne 0x1400c5e31
nop
add rdi, rdi
mov rcx, rsi
lea rdx, [rdi + 1]
call fcn.1400ed900
mov r14, rax
test rax, rax
je 0x1400c5e49
mov rbx, rdi
lea rcx, [rax + r15]
shr rbx, 1
mov r9, rbp
mov r8, rbx
mov edx, 1
mov rsi, rax
call fcn.1400f4170
add r15, rax
mov byte [rsi + r15], 0
cmp rax, rbx
je 0x1400c5df0
mov rcx, rbp
call fcn.1400f36ac
lea rax, [r15 + 1]
mov qword [r12], rsi
mov qword [r13], rax
xor eax, eax
jmp 0x1400c5e5e
mov rcx, rsi
call fcn.1400ed908
mov rcx, rbp
call fcn.1400f36ac
mov eax, 0xffffffff
mov r15, qword [rsp + 0x60]
mov r14, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
mov rsi, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400cc030
add rsp, 0x78
pop r13
pop r12
pop rbp
pop rbx
ret

Function at 0x1400cfa90
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.DLL_TlsSetValue]
test eax, eax
je 0x1400cfaa3
add rsp, 0x48
ret
call qword [sym.imp.KERNEL32.DLL_GetLastError]
movzx edx, ax
lea rcx, [rsp + 0x20]
or edx, 0x80070000
test eax, eax
cmovle edx, eax
call fcn.1400d00b0
lea rdx, [0x140211fe8]
lea rcx, [rsp + 0x20]
call fcn.1400eb120
int3

Function at 0x1400da300
Capabilities:
Set thread local storage value

Disassembly:
mov ecx, dword [0x1402505e8]
xor edx, edx
jmp fcn.1400cfa90

Function at 0x1400dac88
Capabilities:
Set thread local storage value

Disassembly:
mov rdx, rcx
mov ecx, dword [0x1402505e8]
jmp fcn.1400cfa90

Function at 0x1400e689c
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x1400e6958]
mov r9, qword [r9 + 8]
jmp fcn.1400d7cb8

Function at 0x1400e6930
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x1400e6968]
mov r9, qword [r9 + 8]
jmp fcn.1400d7cb8
Function at 0x1400f5424
Capabilities:
Delete directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
test eax, eax
jne 0x1400f5444
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
call fcn.1400f5174
or eax, 0xffffffff
jmp 0x1400f5446
xor eax, eax
add rsp, 0x28
ret

Function at 0x1400fd930
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400fd694

Function at 0x14010a3a8
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x14010a248
call fcn.1400f51e4
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.1400edb1c
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14010a230
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x14010a230
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x14010a27a
lock or dword [rax + 0x14], 0x10
jmp 0x14010a230
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x14010a297
mov rcx, qword [rbp + 0x10]
call fcn.14010a87c
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.140106e24
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.1400f597c
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x14010a2ee
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x14010a230
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x14010a35a
mov rcx, qword [rbp + 0x10]
call fcn.140106e24
cmp eax, 0xffffffff
je 0x14010a341
mov rcx, qword [rbp + 0x10]
call fcn.140106e24
cmp eax, 0xfffffffe
je 0x14010a341
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.140106e24
movsxd rdi, eax
lea rsi, [0x140250e50]
mov rcx, rbx
sar rdi, 6
call fcn.140106e24
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x14010a348
lea rax, [0x140215650]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14010a35a
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x14010a390
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x14010a38c
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x14010a38c
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x14010a233
jmp 0x14010a200
Function at 0x14012bf80
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, r8
mov rdi, rdx
mov r8, qword [rdx + 0x70]
mov rbp, rcx
cmp r8, qword [rbx + 0x70]
jne 0x14012bfca
mov rcx, qword [rdx + 0x68]
mov rax, qword [rbx + 0x68]
test rcx, rcx
je 0x14012bfc5
test rax, rax
je 0x14012bfca
mov rdx, rax
call fcn.1400eb210
test eax, eax
jmp 0x14012bfc8
test rax, rax
je 0x14012bfd6
lea rdx, [rdi + 0x68]
mov rcx, rbp
call fcn.14012b8a0
mov r8, qword [rdi + 0x80]
cmp r8, qword [rbx + 0x80]
jne 0x14012c009
mov rcx, qword [rdi + 0x78]
mov rax, qword [rbx + 0x78]
test rcx, rcx
je 0x14012c004
test rax, rax
je 0x14012c009
mov rdx, rax
call fcn.1400eb210
test eax, eax
jmp 0x14012c007
test rax, rax
je 0x14012c044
xor edx, edx
lea rcx, [rbp + 0x30]
mov r8d, 0x80
call fcn.1400eaf90
cmp qword [rdi + 0x80], 0
lea rcx, [rbp + 0x30]
jbe 0x14012c039
mov rdx, qword [rdi + 0x78]
mov r8d, 0x7f
call fcn.1400f1ae0
jmp 0x14012c044
mov edx, 0x7f
call qword [sym.imp.WS2_32.dll_gethostname]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14012d1e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r14
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], rdi
mov rdi, rcx
mov rax, qword [rcx + 0x10]
mov rdx, qword [rax + 0x10]
mov rsi, qword [rdx + 8]
cmp byte [rsi + 0x10], 0
je 0x14012d30e
mov ecx, select
call fcn.1400cc054
mov qword [rsp + 0x50], rax
lea rcx, [rdi + 8]
lea rdx, vtable.xmrig::HttpServer.0
mov qword [rax], rdx
mov qword [rax + 8], rcx
mov qword [rdi + 0x18], rax
mov ecx, 0xa8
call fcn.1400cc054
mov qword [rsp + 0x50], rax
mov r9, qword [rdi + 0x18]
movzx r8d, word [rsi + 0x38]
lea rdx, [rsi + 0x18]
mov rcx, rax
call fcn.1401352e0
nop
mov qword [rdi + 0x20], rax
mov rcx, rax
call fcn.140135030
mov ebx, eax
test eax, eax
jns 0x14012d27c
mov ecx, eax
call fcn.1400a0460
jmp 0x14012d283
lea rax, [0x1401d2622]
test ebx, ebx
jns 0x14012d28e
movzx r9d, word [rsi + 0x38]
jmp 0x14012d291
mov r9d, ebx
mov qword [rsp + 0x20], rax
mov r8, qword [rsi + 0x18]
lea rdx, str.HTTP_API
lea rcx, str.e_1_32m__e_0me_1_37m__13se_0me_1_34m_s:_de_0m_e_1_31m_se_0m
call fcn.1401163c0
test ebx, ebx
jns 0x14012d2bd
mov rcx, rdi
call fcn.14012d160
xor al, al
jmp 0x14012d310
mov word [rdi + 0x28], bx
mov edx, 1
xor ecx, ecx
lea r8d, [rdx + 2]
call qword [sym.imp.KERNEL32.DLL_FindResourceW]
mov rbx, rax
test rax, rax
je 0x14012d30e
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_LoadResource]
test rax, rax
je 0x14012d30e
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_LockResource]
mov qword [0x140256da8], rax
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_SizeofResource]
mov eax, eax
mov qword [0x140256da0], rax
mov al, 1
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x140135030
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbp
sub rsp, 0xd0
mov rax, qword [0x1402151f8]
xor rax, rsp
mov qword [rsp + 0xb0], rax
cmp dword [rcx + 8], 0
mov rbp, rcx
jne 0x14013505e
mov eax, 0xfffff448
jmp 0x140135278
mov qword [rsp + 0xe8], rbx
lea rdx, [rcx + 0x18]
mov rcx, qword [rcx + 0xa0]
mov qword [rsp + 0xc8], rdi
mov rbx, rcx
cmp dword [rcx + 0x10], 0xc
jne 0x1401350ab
movzx eax, word [rdx]
cmp ax, 2
jne 0x140135093
mov r8d, select
jmp 0x14013509f
cmp ax, 0x17
jne 0x1401350ab
mov r8d, 0x1c
call fcn.1400a78a0
mov rbx, qword [rbp + 0xa0]
mov eax, dword [rbx + 0x10]
mov edi, 0x57
cmp eax, 7
je 0x1401350d0
cmp eax, 0xc
jne 0x1401351ac
mov rcx, rbx
call fcn.1400a7ee0
mov edi, eax
jmp 0x1401351ac
mov edx, dword [rbx + 0x58]
lea r8, [0x140134fd0]
mov qword [rsp + 0xc0], r14
mov r14, qword [rbx + 8]
test dl, 0x40
je 0x1401350f2
mov qword [rbx + 0x100], r8
bt edx, 0xd
jb 0x140135102
mov edi, 0x2726
jmp 0x1401351a4
bt edx, 0xc
jae 0x140135112
mov edi, 0x2748
jmp 0x1401351a4
bt edx, 0x19
jb 0x140135122
mov edi, 0x32
jmp 0x1401351a4
mov ecx, dword [rbx + 0x7c]
mov eax, edx
or eax, 0x40
mov qword [rsp + 0xf0], rsi
mov dword [rbx + 0x58], eax
lea eax, [rcx + 1]
mov dword [rbx + 0x7c], eax
test ecx, ecx
jne 0x140135153
test dl, 4
jne 0x140135153
or edx, 0x44
mov dword [rbx + 0x58], edx
test dl, 8
je 0x140135153
inc dword [r14 + 8]
xor edi, edi
mov qword [rbx + 0x100], r8
mov esi, edi
cmp dword [rbx + 0x128], edi
jle 0x14013519c
nop word [rax + rax]
mov r9d, edi
movsxd r8, esi
test esi, esi
mov rdx, rbx
mov rcx, r14
sete r9b
shl r8, 7
add r8, qword [rbx + 0x130]
call fcn.1400ac0e0
inc esi
cmp esi, dword [rbx + 0x128]
jl 0x140135170
mov rsi, qword [rsp + 0xf0]
mov r14, qword [rsp + 0xc0]
mov ecx, edi
call fcn.1400ae540
mov rdi, qword [rsp + 0xc8]
mov rbx, qword [rsp + 0xe8]
test eax, eax
jne 0x140135278
movzx eax, word [rbp + 0x98]
test ax, ax
jne 0x140135275
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x80
call fcn.1400eaf90
mov rdx, qword [rbp + 0xa0]
mov dword [rsp + 0x20], 0x80
mov ecx, dword [rdx + 0x10]
sub ecx, 7
je 0x14013522d
sub ecx, 1
je 0x140135227
sub ecx, 4
je 0x14013521e
sub ecx, 2
je 0x14013521e
cmp ecx, 1
jne 0x140135263
mov rcx, qword [rdx + 0x70]
jmp 0x140135234
mov rcx, qword [rdx + 0x110]
jmp 0x140135234
mov rcx, qword [rdx + 0x68]
jmp 0x140135234
mov rcx, qword [rdx + 0x118]
test byte [rdx + 0x58], 3
jne 0x140135263
cmp rcx, 0xffffffffffffffff
je 0x140135263
cmp dword [rdx + 0x118], 0
jne 0x140135263
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x140135263
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
movzx ecx, word [rsp + 0x32]
call qword [sym.imp.WS2_32.dll_ntohs]
mov word [rbp + 0x98], ax
movzx eax, ax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1400cc030
add rsp, 0xd0
pop rbp
ret