joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180046170
Capabilities:
Get socket status

Disassembly:
push rbp
push rbx
push rdi
push r14
lea rbp, [rsp - 0x178]
sub rsp, 0x278
mov rax, qword [0x1800ba0e0]
xor rax, rsp
mov qword [rbp + 0x160], rax
mov rdi, r8
movzx r14d, dl
mov rbx, rcx
cmp rcx, 0xffffffffffffffff
jne 0x1800461c7
mov dword [rsp + 0x30], 0x2719
call fcn.180050f80
mov qword [rsp + 0x38], rax
or eax, ebx
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
jmp 0x1800462ae
mov qword [rsp + 0x2b8], rsi
xor ecx, ecx
mov qword [rsp + 0x270], r15
xor r15d, r15d
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x58], rbx
mov dword [rsp + 0x50], 1
call qword [sym.imp.WS2_32.dll_WSASetLastError]
and r14b, 1
lea rax, [rsp + 0x40]
lea ecx, [rbx + 1]
cmove rax, r15
lea r8, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor edx, edx
call qword [sym.imp.WS2_32.dll_select]
mov esi, eax
call fcn.180050f80
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], eax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
test esi, esi
jne 0x180046283
test r14b, r14b
je 0x18004626a
mov dword [rsp + 0x30], 0x2733
call fcn.180050f80
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x30]
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
movups xmm0, xmmword [rax]
jmp 0x180046299
mov dword [rsp + 0x30], r15d
call fcn.180050f80
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x30]
movups xmm0, xmmword [rax]
jmp 0x180046299
jle 0x18004629c
mov dword [rsp + 0x30], r15d
call fcn.180050f80
mov qword [rsp + 0x38], rax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
mov r15, qword [rsp + 0x270]
mov eax, esi
mov rsi, qword [rsp + 0x2b8]
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.18004b0f0
add rsp, 0x278
pop r14
pop rdi
pop rbx
pop rbp
ret
Function at 0x180048340
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x68
mov rax, qword [0x1800ba0e0]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov r14, qword [rsp + 0xc0]
mov rdi, rcx
xor ecx, ecx
mov ebx, r9d
mov rbp, r8
mov rsi, rdx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor r15d, r15d
mov dword [rsp + 0x54], ebx
mov qword [rsp + 0x30], r15
lea rax, [rsp + 0x54]
mov qword [rsp + 0x28], r15
lea r9, [rsp + 0x50]
mov r8d, ebp
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov dword [rsp + 0x50], r15d
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_WSARecv]
mov edi, eax
call fcn.180050f80
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x48], rbx
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [r14], xmm0
mov ecx, dword [r14]
cmp ecx, 0x40
jne 0x1800483e0
mov dword [rsp + 0x40], 0x2746
jmp 0x1800483f0
cmp ecx, 0x4d2
jne 0x180048403
mov dword [rsp + 0x40], 0x274d
call fcn.180050f80
mov qword [rsp + 0x48], rax
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [r14], xmm0
test edi, edi
je 0x18004840c
or eax, 0xffffffff
jmp 0x180048428
mov dword [rsp + 0x40], r15d
call fcn.180050f80
mov qword [rsp + 0x48], rax
movups xmm0, xmmword [rsp + 0x40]
mov eax, dword [rsp + 0x50]
movups xmmword [r14], xmm0
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.18004b0f0
add rsp, 0x68
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180048fe0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x60
mov qword [rax - 0x38], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1800ba0e0]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rsi, rdx
mov rdi, rcx
xor ebx, ebx
mov eax, ebx
lock xadd dword [rcx + 0x30], eax
test eax, eax
jne 0x18004903c
call fcn.18004a4b0
mov dword [rsp + 0x20], ebx
call fcn.180050f80
mov qword [rsp + 0x28], rax
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rsi], xmm0
xor eax, eax
jmp 0x1800490d5
mov qword [rsp + 0x38], rbx
xor eax, eax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x40], rdi
lea rax, [rsp + 0x38]
mov qword [rsp + 0x48], rax
mov ecx, dword [0x1800c5bec]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x40]
mov ecx, dword [0x1800c5bec]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov r8, rsi
mov dl, 1
mov rcx, rdi
call fcn.180041b00
test rax, rax
je 0x1800490b1
nop dword [rax]
lea rax, [rbx + 1]
cmp rbx, 0xffffffffffffffff
cmove rax, rbx
mov rbx, rax
mov r8, rsi
mov dl, 1
mov rcx, rdi
call fcn.180041b00
test rax, rax
jne 0x180049090
mov rdx, qword [rsp + 0x50]
mov ecx, dword [0x1800c5bec]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1800490d2
call fcn.18004b054
mov rax, rbx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.18004b0f0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x180049100
Capabilities:
Print debug messages
Terminate thread

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x50], rbx
mov rbx, qword [str..pipe6c459691_c3d3_4686_b2fd_6b3ba6528b42]
mov qword [rsp + 0x60], rdi
mov rdi, qword [0x1800c5bd0]
mov byte [0x1800c5ab7], 0
test rdi, rdi
je 0x1800491dd
mov qword [rsp + 0x58], rsi
xor edx, edx
mov qword [rsp + 0x40], r14
mov rcx, rbx
xor r14b, r14b
call qword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
test eax, eax
je 0x1800491b2
mov qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0xc0000000
mov dword [rsp + 0x20], 3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1800491b2
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [0x1800c5bdb], r14b
mov eax, 1
movzx ebx, r14b
mov rcx, rsi
cmove ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x1800491b2
lea rcx, str.exit_pipe_thread_success
jmp 0x1800491c4
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, str.exit_pipe_thread_failed__use_TerminateThread
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r14, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x58]
mov rcx, qword [0x1800c5bc8]
mov rdi, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x50]
mov qword [0x1800c5bd0], 0
test rcx, rcx
je 0x18004923d
cmp dword [0x1800ba0b8], 0
jne 0x180049210
lea rcx, str.exit_heartbeat_success
jmp 0x18004921f
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, str.exit_heartbeat_failed__use_TerminateThread
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [0x1800c5bc8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1800c5bc8], 0
mov al, 1
add rsp, 0x48
ret
Function at 0x180049900
Capabilities:
Print debug messages
Read file on windows
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x7c8]
sub rsp, 0x8b0
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1800ba0e0]
xor rax, rsp
mov qword [rbp + 0x7a0], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x78], rdx
xor edx, edx
mov rcx, qword [str..pipe6c459691_c3d3_4686_b2fd_6b3ba6528b42]
call qword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
test eax, eax
setne al
test al, al
je 0x180049a7c
lea rcx, str.save_load_url:_pipe
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor ebx, ebx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov rcx, qword [str..pipe6c459691_c3d3_4686_b2fd_6b3ba6528b42]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x1800499ba
lea rcx, str.CreateFileA_failed_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x180049aff
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp - 0x80]
call fcn.180050fe0
mov rcx, rdi
call fcn.18003c9f0
mov r8, rax
mov edx, 0x400
lea rcx, [rbp - 0x80]
call fcn.18005abac
mov rcx, rsi
call fcn.18003c9f0
mov r8, rax
mov edx, 0x400
lea rcx, [rbp + 0x380]
call fcn.18005abac
mov dword [rsp + 0x70], ebx
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x70]
mov r8d, 0x800
lea rdx, [rbp - 0x80]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x180049a2e
lea rcx, str.write_pipe_failed_n
jmp 0x180049a68
mov dword [rsp + 0x70], ebx
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x780], xmm0
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x70]
mov r8d, SafeArrayGetLBound
lea rdx, [rbp + 0x780]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x180049a6e
lea rcx, str.read_pipe_failed_to_wait_check_end_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180049aff
lea rcx, str.save_load_url:_insert_load_url
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rax, [rbp + 0x780]
mov qword [rsp + 0x68], rax
mov qword [rbp + 0x798], SafeArrayGetLBound
xor ebx, ebx
mov qword [rbp + 0x790], rbx
mov byte [rbp + 0x780], bl
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rsi
lea rcx, [rbp + 0x780]
call fcn.180002490
nop
mov qword [rsp + 0x58], SafeArrayGetLBound
mov qword [rsp + 0x50], rbx
mov byte [rsp + 0x40], bl
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.180002490
nop
lea rdx, [rbp + 0x780]
lea rcx, [rsp + 0x40]
call fcn.180044a10
nop
mov rcx, rdi
call fcn.180002860
nop
mov rcx, rsi
call fcn.180002860
mov rcx, qword [rbp + 0x7a0]
xor rcx, rsp
call fcn.18004b0f0
lea r11, [rsp + 0x8b0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x180049b40
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x68
mov rax, qword [0x1800ba0e0]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov r14, qword [rsp + 0xc0]
mov rdi, rcx
xor ecx, ecx
mov ebx, r9d
mov rbp, r8
mov rsi, rdx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor r15d, r15d
lea r9, [rsp + 0x50]
mov qword [rsp + 0x30], r15
mov r8d, ebp
mov qword [rsp + 0x28], r15
mov rdx, rsi
mov rcx, rdi
mov dword [rsp + 0x20], ebx
mov dword [rsp + 0x50], r15d
call qword [sym.imp.WS2_32.dll_WSASend]
mov edi, eax
call fcn.180050f80
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x48], rbx
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [r14], xmm0
mov ecx, dword [r14]
cmp ecx, 0x40
jne 0x180049bd6
mov dword [rsp + 0x40], 0x2746
jmp 0x180049be6
cmp ecx, 0x4d2
jne 0x180049bf9
mov dword [rsp + 0x40], 0x274d
call fcn.180050f80
mov qword [rsp + 0x48], rax
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [r14], xmm0
test edi, edi
je 0x180049c02
or eax, 0xffffffff
jmp 0x180049c1e
mov dword [rsp + 0x40], r15d
call fcn.180050f80
mov qword [rsp + 0x48], rax
movups xmm0, xmmword [rsp + 0x40]
mov eax, dword [rsp + 0x50]
movups xmmword [r14], xmm0
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.18004b0f0
add rsp, 0x68
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x180049c80
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x438
mov rax, qword [0x1800ba0e0]
xor rax, rsp
mov qword [rsp + 0x420], rax
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x400
call fcn.180050fe0
lea rdx, [rsp + 0x20]
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x180049cd7
lea r8, str.skyguard_bho
lea rdx, [rsp + 0x20]
lea rcx, [0x1800c5ab8]
call fcn.180001e00
mov rcx, qword [rsp + 0x420]
xor rcx, rsp
call fcn.18004b0f0
add rsp, 0x438
ret

Function at 0x18004a220
Capabilities:
Set socket configuration

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x58
mov rax, qword [0x1800ba0e0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov esi, ecx
mov rbp, r9
xor ecx, ecx
mov edi, r8d
mov ebx, edx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor r9d, r9d
mov dword [rsp + 0x28], 1
mov r8d, edi
mov dword [rsp + 0x20], 0
mov edx, ebx
mov ecx, esi
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov rdi, rax
call fcn.180050f80
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], eax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbp], xmm0
cmp rdi, 0xffffffffffffffff
jne 0x18004a298
or rax, rdi
jmp 0x18004a2e0
cmp esi, 0x17
jne 0x18004a2c2
lea r9, [rsp + 0x40]
mov dword [rsp + 0x40], 0
lea edx, [rsi + 0x12]
mov dword [rsp + 0x20], 4
lea r8d, [rsi + 4]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rsp + 0x30], 0
call fcn.180050f80
mov qword [rsp + 0x38], rax
mov rax, rdi
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbp], xmm0
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.18004b0f0
add rsp, 0x58
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x18004a300
Capabilities:
Create thread

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x1800ba0e0]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor r9d, r9d
mov r14d, r8d
mov rsi, rdx
mov rbp, rcx
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsi + 8], rax
mov rdi, rax
test rax, rax
jne 0x18004a372
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [rsi]
lea edx, [rdi + 1]
mov rcx, rsi
mov ebx, eax
call qword [r8]
xor eax, eax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x30], ebx
call fcn.180050f80
mov qword [rsp + 0x38], rax
test ebx, ebx
jne 0x18004a473
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbp + 0x10], rax
mov qword [rsi + 0x10], rax
cmp qword [rbp + 0x10], 0
jne 0x18004a3c6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [rsi]
mov edx, 1
mov rcx, rsi
mov ebx, eax
call qword [r8]
xor eax, eax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x30], ebx
call fcn.180050f80
mov qword [rsp + 0x38], rax
test ebx, ebx
jne 0x18004a485
xor ecx, ecx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea r8, [0x18004ab00]
mov r9, rsi
mov dword [rsp + 0x20], ecx
mov edx, r14d
mov dword [rsp + 0x40], ecx
call fcn.180065340
mov qword [rbp + 8], rax
test rax, rax
jne 0x18004a441
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [rsi]
mov edx, 1
mov rcx, rsi
mov ebx, eax
call qword [r8]
test rdi, rdi
je 0x18004a419
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x18004a428
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x30], ebx
call fcn.180050f80
mov qword [rsp + 0x38], rax
test ebx, ebx
jne 0x18004a497
test rdi, rdi
je 0x18004a45b
or edx, 0xffffffff
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.18004b0f0
add rsp, 0x50
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
lea rdx, str.thread.entry_event
lea rcx, [rsp + 0x30]
call fcn.1800420a0
int3
lea rdx, str.thread.exit_event
lea rcx, [rsp + 0x30]
call fcn.1800420a0
int3
lea rdx, str.thread
lea rcx, [rsp + 0x30]
call fcn.1800420a0
int3
Function at 0x18004fff0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
jmp 0x180050200
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rsi
mov ecx, dword [0x1800ba198]
cmp ecx, 0xffffffff
jne 0x180050228
xor esi, esi
jmp 0x180050231
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
mov qword [rsp + 0x40], rsi
test rsi, rsi
je 0x180050323
nop
mov rbx, qword [rsi + 0x18]
cmp qword [rsi + 0x30], 0
jne 0x180050256
test rbx, rbx
je 0x1800502fc
jmp 0x180050260
test rbx, rbx
je 0x1800502b4
nop dword [rax + rax]
mov rax, qword [rbx + 8]
mov qword [rsi + 0x18], rax
mov rcx, qword [rbx]
test rcx, rcx
je 0x180050297
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdi, qword [rbx]
mov rax, qword [rdi]
xor edx, edx
mov rcx, rdi
call qword [rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsi + 0x18]
test rbx, rbx
jne 0x180050260
cmp qword [rsi + 0x30], 0
je 0x180050240
nop dword [rax + rax]
mov rbx, qword [rsi + 0x28]
mov rbx, qword [rbx]
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x1800502df
mov rdx, qword [rbx + 0x38]
test rdx, rdx
je 0x1800502df
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r8, rbx
lea rdx, [rsp + 0x48]
lea rcx, [rsi + 0x28]
call fcn.18004fab0
cmp qword [rsi + 0x30], 0
jne 0x1800502c0
jmp 0x180050240
lea rdx, [0x18004fa70]
lea rcx, [0x1800c6730]
call fcn.18004f680
mov ecx, dword [0x1800ba198]
cmp ecx, 0xffffffff
je 0x180050323
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
test rsi, rsi
je 0x180050354
or eax, 0xffffffff
lock xadd dword [rsi + 8], eax
cmp eax, 1
jne 0x180050354
mov rax, qword [rsi]
xor edx, edx
mov rcx, rsi
call qword [rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x180050200
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
jmp 0x180050200
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rsi
mov ecx, dword [0x1800ba198]
cmp ecx, 0xffffffff
jne 0x180050228
xor esi, esi
jmp 0x180050231
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
mov qword [rsp + 0x40], rsi
test rsi, rsi
je 0x180050323
nop
mov rbx, qword [rsi + 0x18]
cmp qword [rsi + 0x30], 0
jne 0x180050256
test rbx, rbx
je 0x1800502fc
jmp 0x180050260
test rbx, rbx
je 0x1800502b4
nop dword [rax + rax]
mov rax, qword [rbx + 8]
mov qword [rsi + 0x18], rax
mov rcx, qword [rbx]
test rcx, rcx
je 0x180050297
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdi, qword [rbx]
mov rax, qword [rdi]
xor edx, edx
mov rcx, rdi
call qword [rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsi + 0x18]
test rbx, rbx
jne 0x180050260
cmp qword [rsi + 0x30], 0
je 0x180050240
nop dword [rax + rax]
mov rbx, qword [rsi + 0x28]
mov rbx, qword [rbx]
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x1800502df
mov rdx, qword [rbx + 0x38]
test rdx, rdx
je 0x1800502df
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r8, rbx
lea rdx, [rsp + 0x48]
lea rcx, [rsi + 0x28]
call fcn.18004fab0
cmp qword [rsi + 0x30], 0
jne 0x1800502c0
jmp 0x180050240
lea rdx, [0x18004fa70]
lea rcx, [0x1800c6730]
call fcn.18004f680
mov ecx, dword [0x1800ba198]
cmp ecx, 0xffffffff
je 0x180050323
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
test rsi, rsi
je 0x180050354
or eax, 0xffffffff
lock xadd dword [rsi + 8], eax
cmp eax, 1
jne 0x180050354
mov rax, qword [rsi]
xor edx, edx
mov rcx, rsi
call qword [rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x18006e784
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 0x18006e624
call fcn.18005cb70
mov dword [rax], SafeArrayUnaccessData
call fcn.18005c7d4
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 0x18006e60c
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x18006e60c
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x18006e656
lock or dword [rax + 0x14], 0x10
jmp 0x18006e60c
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x18006e673
mov rcx, qword [rbp + 0x10]
call fcn.180078098
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.18006b588
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.18006e05c
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x18006e6ca
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 0x18006e60c
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x18006e736
mov rcx, qword [rbp + 0x10]
call fcn.18006b588
cmp eax, 0xffffffff
je 0x18006e71d
mov rcx, qword [rbp + 0x10]
call fcn.18006b588
cmp eax, 0xfffffffe
je 0x18006e71d
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.18006b588
movsxd rdi, eax
lea rsi, [0x1800c6df0]
mov rcx, rbx
sar rdi, 6
call fcn.18006b588
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x18006e724
lea rax, [0x1800ba540]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x18006e736
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x18006e76c
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x18006e768
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x18006e768
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 0x18006e60f
jmp 0x18006e5dc
Function at 0x180003700
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x178
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x26
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x198]
mov rax, qword [0x18021f480]
xor rax, rbp
mov qword [rbp + 0x148], rax
lea rcx, [0x1802380a6]
call fcn.180141e90
nop
mov rax, qword [rbp + 0x178]
sub rax, 0x10000
mov rcx, rax
call fcn.1800039e0
mov qword [rbp + 8], rax
mov rax, qword [rbp + 0x170]
cmp qword [rbp + 8], rax
jbe 0x18000383a
mov rax, qword [section..data]
cmp qword [rbp + 8], rax
jb 0x1800037a3
mov rax, qword [0x1801b1008]
cmp qword [rbp + 8], rax
ja 0x1800037a3
mov rax, qword [rbp + 8]
sub rax, 0x8000000
mov qword [rbp + 8], rax
jmp 0x180003768
mov r8d, 0x30
xor edx, edx
lea rcx, [rbp + 0x28]
call sub.VCRUNTIME140D.dll_memset
nop
mov r8d, 0x30
lea rdx, [rbp + 0x28]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x1800037d0
jmp 0x18000383a
cmp dword [rbp + 0x48], 0x10000
jne 0x18000381f
cmp qword [rbp + 0x40], 0x10000
jb 0x18000381f
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbp + 0x78], rax
cmp qword [rbp + 0x78], 0
je 0x18000380f
mov rax, qword [rbp + 0x78]
jmp 0x18000383c
mov rax, qword [rbp + 8]
sub rax, 0x10000
mov qword [rbp + 8], rax
jmp 0x180003835
mov rax, qword [rbp + 0x30]
sub rax, 0x10000
mov rcx, rax
call fcn.1800039e0
mov qword [rbp + 8], rax
jmp 0x180003768
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x18014d440]
call fcn.180141c60
mov rax, rdi
mov rcx, qword [rbp + 0x148]
xor rcx, rbp
call fcn.1801420e0
lea rsp, [rbp + 0x158]
pop rdi
pop rbp
ret