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

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x160
mov rax, qword [0x140188050]
xor rax, rsp
mov qword [rsp + 0x150], rax
cmp byte [0x1401894f0], 0
mov ebx, edx
mov rdi, rcx
jne 0x14002a8f5
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x104
call fcn.1400082a0
mov ecx, ebx
sub ecx, 0x194
je 0x14002a8a4
cmp ecx, 0x61
je 0x14002a89b
lea rax, str.Server_Error
jmp 0x14002a8ab
lea rax, str.Not_Implemented
jmp 0x14002a8ab
lea rax, str.Not_Found
mov qword [rsp + 0x30], rax
lea r8, str.HTTP_1.1__d__s_r_n_r_n_h1__d__s__h1_
mov dword [rsp + 0x28], ebx
lea rdx, [rsp + 0x40]
mov r9d, ebx
mov qword [rsp + 0x20], rax
mov ecx, 0x104
call fcn.140029cb0
mov edx, 0x104
lea rcx, [rsp + 0x40]
call fcn.14000d820
mov rcx, qword [rdi]
lea rdx, [rsp + 0x40]
xor r9d, r9d
mov r8d, eax
call qword [sym.imp.WSOCK32.dll_send]
mov rcx, rdi
call fcn.140001f70
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14000d260
mov rbx, qword [rsp + 0x180]
add rsp, 0x160
pop rdi
ret

Function at 0x14002acf0
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1f8
mov rax, qword [0x140188050]
xor rax, rsp
mov qword [rsp + 0x1e0], rax
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x198
call fcn.1400082a0
mov ecx, 0x202
lea rdx, [rsp + 0x40]
call qword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
je 0x14002ad79
cmp dword [reloc.WSOCK32.dll_accept], 1
jl 0x14002ad79
test dword [0x1401877ad], 0x8000
je 0x14002ad79
mov dword [rsp + 0x30], eax
lea r9, str.C:TCWork_f41609d3e46cb95bESIFProductsESIF_UFSourcesesif_uf_ccb_sock.h
lea rax, str.WSAStartup_failed:__d_n
mov edx, 1
mov qword [rsp + 0x28], rax
lea r8, str.esif_ccb_socket_init
mov ecx, 0x8000
mov dword [rsp + 0x20], 0x28
call fcn.140008b60
mov rcx, qword [rsp + 0x1e0]
xor rcx, rsp
call fcn.14000d260
add rsp, 0x1f8
ret
Function at 0x14002b060
Capabilities:
Send data
Send data on socket

Disassembly:
push rbp
push r14
push r15
sub rsp, 0x50
xor ebp, ebp
mov r14, rdx
cmp qword [0x140189500], rbp
mov r15, rcx
jne 0x14002b088
lea eax, [rbp + 1]
add rsp, 0x50
pop r15
pop r14
pop rbp
ret
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x80], rdi
mov rdi, rbp
mov qword [rsp + 0x48], r12
lea r12, str.Error_in_sending_packets_n
mov qword [rsp + 0x40], r13
lea r13, str.Error_writing_to_socket:__s
mov qword [rsp + 0x78], rsi
nop word [rax + rax]
mov rbx, qword [0x140189500]
add rbx, rdi
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x14002b173
cmp rcx, qword [0x140182310]
je 0x14002b173
cmp dword [rbx + 8], 1
jne 0x14002b173
xor r9d, r9d
mov r8d, r14d
mov rdx, r15
call qword [sym.imp.WSOCK32.dll_send]
movsxd rsi, eax
cmp rsi, 0xffffffffffffffff
je 0x14002b10b
cmp rsi, r14
je 0x14002b173
mov rcx, qword [rbx]
call qword [sym.imp.WSOCK32.dll_closesocket]
mov qword [rbx], 0xffffffffffffffff
cmp dword [reloc.WSOCK32.dll_accept], 4
jl 0x14002b16e
test dword [0x1401877e0], 0x8000
je 0x14002b16e
cmp rsi, 0xffffffffffffffff
lea rax, str.Incomplete_data_n
lea r9, str.........ESIF_WSSourcesesif_ws_server.c
mov edx, 4
cmove rax, r12
lea r8, str.esif_ws_broadcast_frame
mov qword [rsp + 0x30], rax
mov ecx, 0x8000
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], 0x293
call fcn.140008b60
mov ebp, 1
add rdi, 0x5c
cmp rdi, 0x398
jl 0x14002b0c0
mov r13, qword [rsp + 0x40]
mov eax, ebp
mov r12, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x80]
mov rsi, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop r15
pop r14
pop rbp
ret
Function at 0x14002bf20
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 r14
sub rsp, 0x50
mov rbp, qword [0x140189508]
mov rbx, rcx
mov edi, dword [0x140189510]
mov rcx, rbp
mov r8d, edi
xor edx, edx
xor r14d, r14d
call fcn.1400082a0
mov rcx, qword [rbx]
xor r9d, r9d
mov r8d, edi
mov rdx, rbp
call qword [sym.imp.WSOCK32.dll_recv]
movsxd rsi, eax
lea rax, [rsi + 1]
cmp rax, 1
jbe 0x14002c0e7
cmp dword [reloc.WSOCK32.dll_accept], 4
jl 0x14002bfc6
test dword [0x1401877e0], 0x8000
je 0x14002bfc6
lea rax, str._d_bytes_received_n
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x28], rax
lea r9, str.........ESIF_WSSourcesesif_ws_server.c
lea r8, str.esif_ws_client_process_request
mov dword [rsp + 0x20], 0x2b4
lea edx, [r14 + 4]
mov ecx, 0x8000
call fcn.140008b60
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x14002c093
mov rax, qword [rbx + 0x40]
test rax, rax
je 0x14002c093
lea rdi, [rax + rsi]
cmp rdi, 0x800000
ja 0x14002c0a6
mov rdx, rdi
call fcn.14002ac90
mov r14, rax
test rax, rax
je 0x14002c0a6
cmp dword [reloc.WSOCK32.dll_accept], 4
jl 0x14002c068
test dword [0x1401877e0], 0x8000
je 0x14002c068
mov edx, dword [0x140189510]
lea r9, str.........ESIF_WSSourcesesif_ws_server.c
mov rax, qword [rbx + 0x40]
lea r8, str.esif_ws_client_process_request
mov dword [rsp + 0x48], edx
mov ecx, 0x8000
mov qword [rsp + 0x40], rdi
mov edx, 4
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rax
lea rax, str.WS_Frame_Unbuffering:_buflen_zd_msglen_zd_total_zd_http_d_n
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2c0
call fcn.140008b60
mov rcx, qword [rbx + 0x40]
mov r9, rsi
add rcx, r14
mov r8, rbp
mov rdx, rsi
call fcn.14002d820
mov rbp, r14
mov qword [rbx + 0x38], 0
mov rsi, rdi
mov qword [rbx + 0x40], 0
mov ecx, dword [rbx + 8]
test ecx, ecx
je 0x14002c0c3
cmp ecx, 1
je 0x14002c0b0
mov ebx, 0xc1c
jmp 0x14002c0d6
mov eax, 0x708
jmp 0x14002c132
mov r9, rsi
mov r8, rdi
mov rdx, rbp
mov rcx, rbx
call fcn.14002b680
jmp 0x14002c0d4
mov r9, rsi
mov r8, rdi
mov rdx, rbp
mov rcx, rbx
call fcn.14002b3f0
mov ebx, eax
test r14, r14
je 0x14002c0e3
mov rcx, r14
call fcn.140006db0
mov eax, ebx
jmp 0x14002c132
cmp dword [reloc.WSOCK32.dll_accept], 4
jl 0x14002c12d
test dword [0x1401877e0], 0x8000
je 0x14002c12d
lea rax, str.no_messages_received_from_the_socket_n
mov edx, 4
mov qword [rsp + 0x28], rax
lea r9, str.........ESIF_WSSourcesesif_ws_server.c
lea r8, str.esif_ws_client_process_request
mov dword [rsp + 0x20], 0x2b0
mov ecx, 0x8000
call fcn.140008b60
mov eax, 0xc1c
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
ret
Function at 0x14002c1e0
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rbx, rcx
xor r9d, r9d
mov rcx, qword [rcx]
mov rsi, r8
call qword [sym.imp.WSOCK32.dll_send]
movsxd rdi, eax
cmp rdi, 0xffffffffffffffff
je 0x14002c221
cmp rdi, rsi
jne 0x14002c221
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov rcx, qword [rbx]
call qword [sym.imp.WSOCK32.dll_closesocket]
mov qword [rbx], 0xffffffffffffffff
cmp dword [reloc.WSOCK32.dll_accept], 4
jl 0x14002c292
test dword [0x1401877e0], 0x8000
je 0x14002c292
lea rdx, str.Error_in_sending_packets_n
cmp rdi, 0xffffffffffffffff
lea rax, str.Incomplete_data_n
mov ecx, 0x8000
cmove rax, rdx
lea r9, str.........ESIF_WSSourcesesif_ws_server.c
mov qword [rsp + 0x30], rax
lea r8, str.esif_ws_client_write_to_socket
lea rax, str.Error_writing_to_socket:__s
mov edx, 4
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x273
call fcn.140008b60
mov rbx, qword [rsp + 0x50]
mov eax, 1
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x14002d000
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rax, qword [rsp + 0x60]
lea rbx, [0x140138644]
xor r15d, r15d
lea rbp, [0x140138648]
test r8, r8
mov qword [rsp + 0x40], r15
mov rsi, rbx
mov r14, rdx
cmovne rsi, r8
mov rdi, rcx
movsxd r8, dword [rdx]
test r9, r9
cmovne rbx, r9
test rax, rax
cmovne rbp, rax
xor edx, edx
call fcn.1400082a0
mov qword [rdi], 2
movzx eax, byte [rsi]
cmp al, byte [0x140138644]
jne 0x14002d079
movzx edx, byte [0x140138645]
cmp byte [rsi + 1], dl
je 0x14002d096
mov rcx, rsi
call qword [sym.imp.WSOCK32.dll_inet_addr]
mov dword [rdi + 4], eax
cmp eax, 0xffffffff
jne 0x14002d08f
or eax, 0xffffffff
jmp 0x14002d10c
movzx edx, byte [0x140138645]
movzx eax, byte [rbx]
cmp al, byte [0x140138644]
jne 0x14002d0a6
cmp byte [rbx + 1], dl
je 0x14002d103
movsx ecx, byte [rbx]
call fcn.14000c1c0
mov rcx, rbx
test eax, eax
je 0x14002d0ed
mov r8d, 0xa
lea rdx, [rsp + 0x40]
call fcn.140009110
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14002d0db
cmp byte [rcx], r15b
je 0x14002d0db
mov eax, 0xfffffffe
jmp 0x14002d10c
cmp eax, 0x7fff
ja 0x14002d0d4
movzx ecx, ax
call qword [sym.imp.WSOCK32.dll_htons]
jmp 0x14002d0ff
mov rdx, rbp
call qword [sym.imp.WSOCK32.dll_getservbyname]
test rax, rax
je 0x14002d0d4
movzx eax, word [rax + 0x18]
mov word [rdi + 2], ax
mov dword [r14], reloc.WSOCK32.dll_recv
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x14002e7f0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
jmp 0x14002e7f0
mov qword [rsp + 0x20], rbx
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [rsp + 0xa0]
xor ebx, ebx
mov r12, r9
mov r13, r8
mov rsi, rdx
mov r14, rcx
mov qword [rax], rbx
cmp rdx, 2
jb 0x14002ea1c
movzx edx, word [rcx]
lea edi, [rbx + 2]
mov eax, 6
lea r8d, [rbx + 0x7f]
movzx ecx, dx
mov r9d, 0x7e
shr cx, 0xf
and cl, 1
cmovne edi, eax
movzx eax, dx
shr ax, 8
and ax, 0x7f
cmp r9w, ax
jne 0x14002e85d
add rdi, 2
jmp 0x14002e867
cmp r8w, ax
jne 0x14002e867
add rdi, 8
cmp rsi, rdi
jb 0x14002ea1c
test rdi, rdi
je 0x14002ea1c
test dl, 0x70
je 0x14002e888
mov eax, 0xf3
jmp 0x14002e962
test cl, cl
je 0x14002e87e
movzx ecx, byte [r14]
and cl, 0xf
lea eax, [rcx - 3]
cmp al, 4
jbe 0x14002e87e
cmp cl, 0xb
jae 0x14002e87e
movzx eax, cl
lea r8, [rsp + 0x88]
mov rcx, r14
mov dword [rsp + 0x88], eax
mov rdx, rsi
mov qword [rsp + 0x80], rbp
call fcn.14002e6f0
mov rbp, rax
test rax, rax
jne 0x14002e8d8
mov eax, dword [rsp + 0x88]
jmp 0x14002e95a
cmp dword [reloc.WSOCK32.dll_accept], 4
mov qword [rsp + 0x90], r15
mov r15d, dword [rsp + 0x88]
jl 0x14002e942
test dword [0x1401877e0], 0x8000
je 0x14002e942
mov qword [rsp + 0x48], rdi
lea r9, str.........ESIF_WSSourcesesif_ws_socket.c
mov qword [rsp + 0x40], rsi
lea r8, str.esif_ws_socket_get_subsequent_frame_type
mov qword [rsp + 0x38], rax
mov edx, 4
lea rax, str.WS_Receive_Frame:_Type_02X_Payload_zd_Received_zd_Hdr_zd_n
mov dword [rsp + 0x30], r15d
mov qword [rsp + 0x28], rax
mov ecx, 0x8000
mov dword [rsp + 0x20], 0x1be
call fcn.140008b60
mov rax, rsi
sub rax, rdi
cmp rbp, rax
jbe 0x14002e977
mov eax, 0xf4
mov r15, qword [rsp + 0x90]
mov rbp, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x98]
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
jae 0x14002e98a
mov rax, qword [rsp + 0xa0]
sub rsi, rdi
sub rsi, rbp
mov qword [rax], rsi
movzx ecx, word [r14]
movzx eax, cx
shr ax, 0xf
test al, 1
je 0x14002ea12
shr cx, 8
mov eax, 0x7e
and cx, 0x7f
cmp ax, cx
jne 0x14002e9b1
lea rdx, [r14 + 4]
jmp 0x14002e9c3
mov eax, 0x7f
lea rdx, [r14 + 0xa]
cmp ax, cx
je 0x14002e9c3
lea rdx, [r14 + 2]
test rdx, rdx
je 0x14002ea12
lea rax, [rdx + 4]
mov qword [r13], rax
mov qword [r12], rbp
test rbp, rbp
je 0x14002e9fa
nop dword [rax]
mov rax, qword [r13]
mov rcx, rbx
and ecx, 3
movzx ecx, byte [rcx + rdx]
xor byte [rax + rbx], cl
inc rbx
cmp rbx, qword [r12]
jb 0x14002e9e0
movzx ecx, byte [r14]
mov eax, 0xf7
and cl, 0x80
cmove r15d, eax
mov eax, r15d
jmp 0x14002e952
mov eax, 0xf3
jmp 0x14002e952
mov eax, 0xf4
jmp 0x14002e962
Function at 0x14002ff30
Capabilities:
Create thread

Disassembly:
jmp 0x14002ff30
sub rsp, 0x38
xor eax, eax
lock xadd qword [0x1401894e8], rax
test rax, rax
jg 0x14002ffb2
mov ecx, reloc.WSOCK32.dll_recv
mov qword [rsp + 0x30], rbx
call fcn.140008f40
mov rbx, rax
test rax, rax
je 0x14002ffa6
lea rax, [0x140031ad0]
mov qword [rsp + 0x28], 0
mov r9, rbx
mov qword [rbx], rax
lea r8, [0x140032590]
mov qword [rbx + 8], 0
xor edx, edx
mov dword [rsp + 0x20], 0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x1401896c0], rax
test rax, rax
jne 0x14002ffa6
mov rcx, rbx
call fcn.140006db0
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x38
ret
xor eax, eax
add rsp, 0x38
ret

Function at 0x14003ad40
Capabilities:
Enumerate files on windows

Disassembly:
sub rsp, 0x568
mov rax, qword [0x140188050]
xor rax, rsp
mov qword [rsp + 0x550], rax
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x104
call fcn.1400082a0
call fcn.1400020c0
mov qword [0x140189760], rax
test rax, rax
jne 0x14003ad99
mov eax, 0x708
mov rcx, qword [rsp + 0x550]
xor rcx, rsp
call fcn.14000d260
add rsp, 0x568
ret
xor r9d, r9d
mov qword [rsp + 0x560], rdi
mov edx, 0x80
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x3c0]
lea r8d, [r9 + 7]
call fcn.140006c30
lea rax, str.upe_.dll
mov ecx, 0x104
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x3c0]
lea rax, [0x140137674]
lea r8, [0x140137678]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x440]
call fcn.14003cd50
lea rdx, [rsp + 0x140]
lea rcx, [rsp + 0x440]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14003aedc
mov qword [rsp + 0x570], rbx
lea r8, [rsp + 0x16c]
or r9, 0xffffffffffffffff
lea rcx, [rsp + 0x30]
mov edx, 0x104
call fcn.140009db0
mov ecx, 0x30
call fcn.140008f40
mov rbx, rax
test rax, rax
je 0x14003aecb
xor eax, eax
lea rcx, [rsp + 0x30]
mov qword [rbx], rax
mov qword [rbx + 8], rax
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], rax
lea edx, [rax + 0x2e]
mov qword [rbx + 0x20], rax
mov qword [rbx + 0x28], rax
call fcn.140008330
test rax, rax
je 0x14003aea1
lea rcx, [rsp + 0x30]
mov byte [rax], 0
call fcn.1400057b0
mov qword [rbx + 0x18], rax
mov rdx, rbx
mov rcx, qword [0x140189760]
call fcn.14000daf0
jmp 0x14003aea9
mov rcx, rbx
call fcn.140006db0
lea rdx, [rsp + 0x280]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x14003aecb
lea r8, [rsp + 0x2ac]
jmp 0x14003ae2f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rbx, qword [rsp + 0x570]
mov rdi, qword [rsp + 0x560]
xor eax, eax
mov rcx, qword [rsp + 0x550]
xor rcx, rsp
call fcn.14000d260
add rsp, 0x568
ret
Function at 0x140057be0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
sub rsp, 0x60
mov rax, rdx
mov rbx, rcx
test rdx, rdx
jne 0x140057c53
cmp dword [reloc.WSOCK32.dll_accept], 1
jl 0x140057da5
test dword [0x1401877ad], 0x200000
je 0x140057da5
lea rax, str.logstring_is_NULL
mov edx, 1
mov qword [rsp + 0x28], rax
lea r9, str.....esif_uf_loggingmgr.c
lea r8, str.EsifLogMgr_DataLogWrite
mov dword [rsp + 0x20], 0x97b
mov ecx, 0x200000
call fcn.140008b60
add rsp, 0x60
pop rbx
ret
mov ecx, dword [rcx + 0x78]
test ecx, ecx
je 0x140057da5
mov qword [rsp + 0x58], rbp
test cl, 8
jbe 0x140057c7d
lea rdx, [rsp + 0x80]
mov rcx, rax
call fcn.140001fa0
mov rax, qword [rsp + 0x78]
test byte [rbx + 0x78], 4
jbe 0x140057ca4
lea r9, [rsp + 0x80]
mov r8, rax
lea rdx, [0x140144804]
mov ecx, 5
call fcn.140009ec0
mov rax, qword [rsp + 0x78]
test byte [rbx + 0x78], 2
mov qword [rsp + 0x48], rdi
jbe 0x140057d22
lea rdx, [rsp + 0x80]
mov qword [rsp + 0x50], rsi
mov rcx, rax
call fcn.140002e80
inc eax
movsxd rsi, eax
mov rcx, rsi
call fcn.140008f40
mov rdi, rax
test rax, rax
je 0x140057d18
mov r8, rsi
xor edx, edx
mov rcx, rax
call fcn.1400082a0
mov r9, qword [rsp + 0x78]
lea rax, [rsp + 0x80]
or r8, 0xffffffffffffffff
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov rcx, rdi
call fcn.14000c9c0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, rdi
call fcn.140006db0
mov rax, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x50]
test byte [rbx + 0x78], 1
jbe 0x140057d9b
lea rdx, [rsp + 0x80]
mov rcx, rax
call fcn.140002e80
inc eax
movsxd rdi, eax
mov rcx, rdi
call fcn.140008f40
mov rbx, rax
test rax, rax
je 0x140057d9b
mov r8, rdi
xor edx, edx
mov rcx, rax
call fcn.1400082a0
mov r9, qword [rsp + 0x78]
lea rax, [rsp + 0x80]
or r8, 0xffffffffffffffff
mov qword [rsp + 0x20], rax
mov rdx, rdi
mov rcx, rbx
call fcn.14000c9c0
mov ecx, 4
mov eax, 1
movzx edx, cx
mov r8, rbx
movzx ecx, ax
call fcn.1400071c0
mov rcx, rbx
call fcn.140006db0
mov rdi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x58]
add rsp, 0x60
pop rbx
ret
Function at 0x14005b0d0
Capabilities:
Create thread

Disassembly:
jmp 0x14005b0d0
push rdi
sub rsp, 0x30
cmp byte [rcx + 0x71], 0
mov rdi, rcx
jne 0x14005b184
cmp byte [rcx + 0x73], 0
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rsi
mov word [rcx + 0x71], 1
jne 0x14005b0fd
mov byte [rcx + 0x70], 1
add rcx, 0x38
call qword [sym.imp.KERNEL32.dll_InitializeSRWLock]
xor esi, esi
xor r9d, r9d
xor edx, edx
mov qword [rdi + 0x40], rsi
xor ecx, ecx
mov dword [rdi + 0x48], esi
mov r8d, 0x7fffffff
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
lea ecx, [rsi + 0x10]
mov dword [rdi + 0x50], esi
mov qword [rdi + 0x58], rax
mov byte [rdi + 0x4c], sil
call fcn.140008f40
mov rbx, rax
test rax, rax
je 0x14005b17a
lea rax, [0x14005b2d0]
mov qword [rsp + 0x28], rsi
mov r9, rbx
mov qword [rbx], rax
lea r8, [0x14005d520]
mov qword [rbx + 8], rdi
xor edx, edx
mov dword [rsp + 0x20], esi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rdi + 0x30], rax
test rax, rax
jne 0x14005b17a
mov rcx, rbx
call fcn.140006db0
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x14005d570
Capabilities:
Create thread

Disassembly:
jmp 0x14005d570
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov eax, dword [0x140182d08]
xor esi, esi
cmp ecx, 0x1f4
cmovge eax, ecx
xor bl, bl
mov dword [0x140182d08], eax
movzx ecx, bl
call fcn.14000af60
mov rdi, rax
test rax, rax
je 0x14005d5b8
mov rcx, rax
call fcn.14000bae0
mov rcx, rdi
call fcn.14000c7f0
inc bl
cmp bl, 0x20
jb 0x14005d598
mov rax, rsi
lock xadd qword [0x140182d00], rax
test al, al
je 0x14005d63c
mov ecx, reloc.WSOCK32.dll_recv
call fcn.140008f40
mov rbx, rax
test rax, rax
je 0x14005d637
lea rax, [0x14005d7a0]
mov qword [rsp + 0x28], rsi
mov r9, rbx
mov qword [rbx], rax
lea r8, [0x14005fb80]
mov qword [rbx + 8], rsi
xor edx, edx
mov dword [rsp + 0x20], esi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x14019ee80], rax
test rax, rax
jne 0x14005d63c
mov rcx, rbx
call fcn.140006db0
mov esi, 0x3eb
mov eax, esi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov esi, 0x708
mov rbx, qword [rsp + 0x40]
mov eax, esi
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x14007cc40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x14007cc40
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov r14, qword [rcx + 0x40]
xor edi, edi
cmp dword [rcx + 0x10], 7
mov rbx, rcx
mov dword [rsp + 0x30], 0x18
mov r15d, edi
mov qword [rsp + 0x34], rdi
mov ebp, edi
mov qword [rsp + 0x3c], rdi
mov esi, edi
je 0x14007cc88
mov qword [rcx + 0xa30], 1
jmp 0x14007ce8c
cmp dword [rcx + 0xa38], 1
jne 0x14007cd40
test byte [rcx + 8], 1
je 0x14007ce8c
test r14, r14
je 0x14007ce8c
mov edx, 3
mov rcx, r14
call fcn.14000d820
cmp rax, 2
jbe 0x14007ce8c
test byte [rbx + 8], 4
movzx eax, word [r14]
mov word [rsp + 0x88], ax
mov byte [rsp + 0x8a], sil
je 0x14007cd25
add r14, 3
je 0x14007cced
movzx eax, word [r14]
mov word [rsp + 0x80], ax
jmp 0x14007cd07
xor eax, eax
mov word [rsp + 0x80], ax
call fcn.140008260
mov dword [rax], socket
call fcn.14000c430
lea rcx, [rsp + 0x80]
mov byte [rsp + 0x82], sil
call fcn.140004290
mov eax, eax
mov qword [rbx + 0xa40], rax
lea rcx, [rsp + 0x88]
call fcn.140004290
mov eax, eax
mov qword [rbx + 0xa30], rax
jmp 0x14007ce8c
xor edx, edx
xor r9d, r9d
or r8d, 0xffffffff
lea ecx, [rdx + 0x24]
call fcn.140004670
mov rsi, rax
test rax, rax
jne 0x14007cd63
mov edi, 0x708
jmp 0x14007ce8c
mov rdx, qword [rbx + 0x28]
test rdx, rdx
je 0x14007cde5
cmp qword [rbx + 0x30], rdi
je 0x14007cde5
xor r8d, r8d
mov r9d, 0x80000000
lea ecx, [r8 + 8]
call fcn.140004670
mov rdx, qword [rbx + 0x30]
xor r8d, r8d
mov r9d, 0x80000000
mov r15, rax
lea ecx, [r8 + 8]
call fcn.140004670
mov rbp, rax
test r15, r15
je 0x14007cd59
test rax, rax
je 0x14007cd59
mov r8, rsi
mov rdx, rax
mov rcx, r15
call fcn.140007450
mov edi, eax
test eax, eax
jne 0x14007ce8c
mov ecx, dword [rsi + 0xc]
call fcn.14007f620
mov qword [rbx + 0x48], rax
mov rcx, rax
mov edx, dword [rsi + 0xc]
mov r8, qword [rsi + 4]
mov r9d, edx
call fcn.14007fb00
mov eax, dword [rsi + 0xc]
jmp 0x14007ce5d
mov ecx, dword [0x1401836e8]
call fcn.14007f620
mov rcx, rax
test rax, rax
je 0x14007cd59
mov eax, dword [rbx + 0x10]
mov dword [rsi], eax
mov qword [rsi + 4], rcx
mov eax, dword [0x1401836e8]
mov dword [rsi + 0xc], eax
cmp qword [rbx + 0x48], rdi
jne 0x14007ce60
mov r8, qword [rbx + 0x20]
lea rax, [rsp + 0x30]
mov edx, dword [rbx + 0x54]
mov r9b, 0xff
movzx ecx, byte [rbx + 4]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rax
call fcn.140006ba0
mov edi, eax
test eax, eax
jne 0x14007ce8c
mov ecx, dword [rsi + 0x10]
call fcn.14007f620
mov qword [rbx + 0x48], rax
mov rcx, rax
mov edx, dword [rsi + 0x10]
mov r8, qword [rsi + 4]
mov r9d, edx
call fcn.14007fb00
mov eax, dword [rsi + 0x10]
mov dword [rbx + 0x50], eax
mov rcx, qword [rbx + 0x48]
test rcx, rcx
je 0x14007ce8c
mov edx, dword [rbx + 8]
test dl, 1
je 0x14007ce7c
mov rax, qword [rcx + 4]
mov qword [rbx + 0xa30], rax
test dl, 4
je 0x14007ce8c
mov rax, qword [rcx + 0x10]
mov qword [rbx + 0xa40], rax
mov rcx, r15
call fcn.1400055d0
mov rcx, rbp
call fcn.1400055d0
mov rcx, rsi
call fcn.1400055d0
mov rbx, qword [rsp + 0x90]
mov eax, edi
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14008a600
Capabilities:
Create thread

Disassembly:
jmp 0x14008a600
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
cmp dword [reloc.WSOCK32.dll_accept], 4
mov rsi, rcx
mov rbp, qword [rcx + 0x18]
jl 0x14008a661
test dword [0x1401877e0], 0x40000
je 0x14008a661
lea rax, str.Creating_thread_to_release_acc_n
mov edx, 4
mov qword [rsp + 0x28], rax
lea r9, str...cem_accelerometer.cpp
lea r8, str.CAccelerometer::ReleaseSensor
mov dword [rsp + 0x20], 0x1c8
mov ecx, 0x40000
call fcn.140008b60
mov rax, qword [rsi]
mov rbx, qword [rax + 0x38]
mov rcx, rbx
call qword [section..00cfg]
mov rcx, rsi
call rbx
mov rax, qword [rsi + 0x40]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [section..00cfg]
lea rcx, [rsi + 0x40]
call rbx
mov rax, qword [rsi + 0x70]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [section..00cfg]
lea rcx, [rsi + 0x70]
call rbx
mov rax, qword [rsi + 0x98]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [section..00cfg]
lea rcx, [rsi + 0x98]
call rbx
xor eax, eax
lea r8, [0x140009f90]
mov qword [rsp + 0x28], rax
mov r9, rbp
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
mov qword [rsi + 0x18], rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x14008a6f2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [reloc.WSOCK32.dll_accept], 4
jl 0x14008a738
test dword [0x1401877e0], 0x40000
je 0x14008a738
lea rax, str.Release_thread_creation_complete_n
mov edx, 4
mov qword [rsp + 0x28], rax
lea r9, str...cem_accelerometer.cpp
lea r8, str.CAccelerometer::ReleaseSensor
mov dword [rsp + 0x20], 0x1e2
mov ecx, 0x40000
call fcn.140008b60
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret