joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180129bd0
Capabilities:
Query or enumerate registry value
Set socket configuration

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0x90
mov rax, qword [0x18020ce50]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov esi, ecx
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x180129c25
lea r8, [rbp + 7]
mov dword [rbp + 7], 1
mov edx, 0x8004667e
mov rcx, rax
call qword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
je 0x180129c2c
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x180129ddd
mov qword [rsp + 0xc8], rbx
cmp esi, 1
je 0x180129db7
mov rcx, rdi
call fcn.1801290f0
test al, al
jne 0x180129c61
lea r8, str.Failed_to_enable_TCP_NODELAY.
mov ecx, 2
lea rdx, str.socket
call fcn.1800f0e30
lea r9, [rbp + 0x13]
mov dword [rbp + 0x13], 1
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 8
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x180129db7
xor ebx, ebx
mov dword [rbp + 7], 4
lea rax, [rbp + 0x1f]
mov dword [rbp + 0x17], ebx
xor r8d, r8d
mov dword [rbp + 0x27], 1
lea rdx, str.SYSTEMCurrentControlSetServicesTcpipParameters
mov dword [rbp + 0x2b], 0x1d4c0
lea r9d, [rbx + 1]
mov dword [rbp + 0x2f], 0x2710
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x180129d83
mov rcx, qword [rbp + 0x1f]
lea rax, [rbp + 7]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0xb]
lea rax, [rbp + 0xf]
xor r8d, r8d
lea rdx, str.KeepAliveTime
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x180129d1b
cmp dword [rbp + 0xb], 4
jne 0x180129d2b
mov eax, dword [rbp + 0xf]
cmp eax, dword [rbp + 0x2b]
jae 0x180129d2b
jmp 0x180129d28
mov eax, dword [rbp + 0x2b]
mov ecx, 0x6ddd00
cmp eax, ecx
cmova eax, ecx
mov dword [rbp + 0x2b], eax
mov rcx, qword [rbp + 0x1f]
lea rax, [rbp + 7]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0xb]
lea rax, [rbp + 0xf]
xor r8d, r8d
lea rdx, str.KeepAliveInterval
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x180129d69
cmp dword [rbp + 0xb], 4
jne 0x180129d79
mov eax, dword [rbp + 0xf]
cmp eax, dword [rbp + 0x2f]
jae 0x180129d79
jmp 0x180129d76
mov eax, dword [rbp + 0x2f]
mov ecx, 0x3e8
cmp eax, ecx
cmova eax, ecx
mov dword [rbp + 0x2f], eax
mov rcx, qword [rbp + 0x1f]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], rbx
lea rax, [rbp + 0x17]
mov qword [rsp + 0x38], rbx
lea r8, [rbp + 0x27]
mov qword [rsp + 0x30], rax
mov r9d, recv
mov dword [rsp + 0x28], ebx
mov edx, 0x98000004
mov rcx, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.WS2_32.dll_WSAIoctl]
mov ecx, 0x18
call fcn.180084f90
mov rbx, rax
mov qword [rax], rdi
mov dword [rax + 0xc], esi
call sub.KERNEL32.dll_GetCurrentProcessId
mov dword [rbx + 0x10], eax
mov rax, rbx
mov rbx, qword [rsp + 0xc8]
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.18015c050
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
Function at 0x18012a0d0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbp
push rdi
push r13
push r14
sub rsp, 0x38
mov r13d, r9d
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test rcx, rcx
je 0x18012a1ce
test rdx, rdx
je 0x18012a212
test r8, r8
je 0x18012a256
mov dword [rcx + 8], 0
mov rcx, qword [rcx]
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x30], r15
call qword [sym.imp.WS2_32.dll_recv]
movsxd rsi, eax
cmp rsi, 0xffffffffffffffff
sete r15b
jne 0x18012a1a8
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x70], r12
mov r12, qword [rsp + 0x80]
nop dword [rax + rax]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
mov dword [rdi + 8], eax
call fcn.180175c18
mov dword [rax], ebx
mov eax, dword [rdi + 8]
cmp eax, 0xb
je 0x18012a164
add eax, 0xffffd8cd
cmp eax, 1
ja 0x18012a19e
mov r8, r12
mov edx, 0x300
mov rcx, rdi
call fcn.180129410
test al, al
je 0x18012a19e
mov dword [rdi + 8], 0
mov r9d, r13d
mov rcx, qword [rdi]
mov r8d, ebp
mov rdx, r14
call qword [sym.imp.WS2_32.dll_recv]
movsxd rsi, eax
cmp rsi, 0xffffffffffffffff
sete r15b
je 0x18012a140
mov rbx, qword [rsp + 0x60]
mov r12, qword [rsp + 0x70]
test r15b, r15b
mov rax, 0xffffffffffffffff
mov r15, qword [rsp + 0x30]
cmovne rsi, rax
mov rax, rsi
mov rsi, qword [rsp + 0x68]
add rsp, 0x38
pop r14
pop r13
pop rdi
pop rbp
ret
mov ecx, 2
call fcn.180167c6c
mov rcx, rax
lea r8, str.C:Usersprocr_vcpkg_buildtreesmongo_c_driver_src1.24.3_56c7a21808.clean_srclibmongoc_srcmongocmongoc_socket.c
lea rax, str.sock
mov r9d, 0x43d
mov qword [rsp + 0x28], rax
lea rdx, str._s:_d__s__:_precondition_failed:__s_n
lea rax, str.mongoc_socket_recv
mov qword [rsp + 0x20], rax
call fcn.18007d3a0
call fcn.180177210
int3
mov ecx, 2
call fcn.180167c6c
mov rcx, rax
lea r8, str.C:Usersprocr_vcpkg_buildtreesmongo_c_driver_src1.24.3_56c7a21808.clean_srclibmongoc_srcmongocmongoc_socket.c
lea rax, [0x1801aa994]
mov r9d, 0x43e
mov qword [rsp + 0x28], rax
lea rdx, str._s:_d__s__:_precondition_failed:__s_n
lea rax, str.mongoc_socket_recv
mov qword [rsp + 0x20], rax
call fcn.18007d3a0
call fcn.180177210
int3
mov ecx, 2
call fcn.180167c6c
mov rcx, rax
lea r8, str.C:Usersprocr_vcpkg_buildtreesmongo_c_driver_src1.24.3_56c7a21808.clean_srclibmongoc_srcmongocmongoc_socket.c
lea rax, str.buflen
mov r9d, 0x43f
mov qword [rsp + 0x28], rax
lea rdx, str._s:_d__s__:_precondition_failed:__s_n
lea rax, str.mongoc_socket_recv
mov qword [rsp + 0x20], rax
call fcn.18007d3a0
call fcn.180177210
int3
Function at 0x18013ca20
Capabilities:
Resolve dns

Disassembly:
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x18013ca4f
nop dword [rax]
cmp dword [rcx], edx
je 0x18013ca43
ja 0x18013ca4f
mov rcx, qword [rcx + 0x268]
test rcx, rcx
jne 0x18013ca30
ret
lea rdx, [rcx + 0x280]
jmp fcn.18013c680
ret

Function at 0x180141080
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov ebx, edx
mov rcx, qword [0x1802b8688]
test rcx, rcx
jne 0x1801410c8
xor r9d, r9d
lea rdx, [0x1801cc420]
xor r8d, r8d
lea rcx, [0x1802b8688]
call sub.bcrypt.dll_BCryptOpenAlgorithmProvider
test eax, eax
jns 0x1801410c1
lea r8, str.BCryptOpenAlgorithmProvider__:__ld
jmp 0x1801410f1
mov rcx, qword [0x1802b8688]
xor r9d, r9d
mov r8d, ebx
mov rdx, rdi
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
js 0x1801410ea
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
lea r8, str.BCryptGenRandom__:__ld
mov r9d, eax
lea rdx, str.mongoc
xor ecx, ecx
call fcn.1800f0e30
mov rbx, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rdi
ret

Function at 0x180147640
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
mov r10, r8
mov r11, rdx
mov r9d, eax
test r8, r8
je 0x180147678
sub r11, rcx
nop dword [rax]
nop word [rax + rax]
movzx r8d, byte [r11 + rcx]
movzx edx, byte [rcx]
lea rcx, [rcx + 1]
xor r8d, edx
or r9d, r8d
sub r10, 1
jne 0x180147660
test r9d, r9d
setne al
ret
Function at 0x180149fc0
Capabilities:
Decrypt data via sspi

Disassembly:
mov r11, rsp
push rbx
push rbp
push rdi
sub rsp, 0x80
mov rax, qword [0x18020ce50]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov r9, qword [rcx + 0x40]
xor ebp, ebp
mov rbx, rcx
mov edi, ebp
test r9, r9
je 0x18014a152
mov qword [r11 + 0x10], rsi
mov qword [r11 + 0x18], r14
test edi, edi
jne 0x18014a142
mov r8, qword [rbx + 0x50]
lea edx, [rdi + 1]
lea rcx, [rsp + 0x30]
call fcn.18014cba0
xor r9d, r9d
lea rcx, [rsp + 0x40]
xor r8d, r8d
xor edx, edx
call fcn.18014cba0
xor r9d, r9d
lea rcx, [rsp + 0x50]
xor r8d, r8d
xor edx, edx
call fcn.18014cba0
xor r9d, r9d
lea rcx, [rsp + 0x60]
xor r8d, r8d
xor edx, edx
call fcn.18014cba0
lea r8d, [rdi + 4]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x20]
call fcn.18014cbb0
mov rcx, qword [rbx + 0x10]
lea rdx, [rsp + 0x20]
xor r9d, r9d
xor r8d, r8d
call sub.Secur32.dll_DecryptMessage
mov edi, eax
test eax, eax
je 0x18014a099
cmp eax, 0x90321
je 0x18014a099
cmp eax, 0x90317
je 0x18014a099
cmp eax, 0x80090318
je 0x18014a132
mov dword [rbx + 0x68], 1
jmp 0x18014a132
cmp dword [rsp + 0x44], 1
jne 0x18014a0e1
mov rax, qword [rbx + 0x38]
lea rcx, [rbx + 0x38]
sub rax, qword [rbx + 0x48]
lea r14, [rbx + 0x58]
mov esi, dword [rsp + 0x40]
cmp rax, rsi
jae 0x18014a0c4
mov r8d, esi
mov rdx, r14
call fcn.18014d630
test rsi, rsi
je 0x18014a0e1
mov rcx, qword [r14]
mov r8, rsi
add rcx, qword [rbx + 0x48]
mov rdx, qword [rsp + 0x48]
call fcn.180162090
add qword [rbx + 0x48], rsi
cmp dword [rsp + 0x64], 5
jne 0x18014a118
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x18014a118
mov r8d, eax
mov rax, qword [rbx + 0x40]
cmp rax, r8
jbe 0x18014a11c
mov rcx, qword [rbx + 0x50]
mov rdx, rcx
sub rdx, r8
add rdx, rax
call fcn.180162090
mov eax, dword [rsp + 0x60]
mov qword [rbx + 0x40], rax
jmp 0x18014a11c
mov qword [rbx + 0x40], rbp
cmp edi, 0x90317
jne 0x18014a132
mov byte [rbx + 0x6c], 1
cmp byte [rbx + 0x6d], bpl
jne 0x18014a132
mov byte [rbx + 0x6d], 1
mov rax, qword [rbx + 0x40]
mov r9d, eax
test rax, rax
jne 0x180149ff8
mov rsi, qword [rsp + 0xa8]
mov r14, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.18015c050
add rsp, 0x80
pop rdi
pop rbp
pop rbx
ret
Function at 0x18014a870
Capabilities:
Encrypt data via sspi

Disassembly:
push rbx
push rbp
push rdi
push r15
sub rsp, 0x98
mov rax, qword [0x18020ce50]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rbx, qword [rcx + 0x88]
mov rdi, r8
mov r15, rdx
mov rbp, rcx
test rbx, rbx
je 0x18014aa02
cmp dword [rbx + 0x20], 0
mov qword [rsp + 0xd8], rsi
jne 0x18014a8d8
mov rcx, qword [rbx + 0x10]
lea r8, [rbx + 0x18]
mov edx, 4
call sub.Secur32.dll_QueryContextAttributesA
test eax, eax
je 0x18014a8d8
mov rax, 0xffffffffffffffff
jmp 0x18014a9dd
mov eax, dword [rbx + 0x20]
mov ecx, dword [rbx + 0x1c]
cmp rdi, rax
mov qword [rsp + 0x90], r14
cmova rdi, rax
mov eax, dword [rbx + 0x18]
add rax, rdi
add rcx, rax
call fcn.180084f40
mov r9d, dword [rbx + 0x18]
lea rcx, [rsp + 0x40]
mov r8, rax
mov edx, 7
mov r14, rax
call fcn.18014cba0
mov r8d, dword [rbx + 0x18]
lea rcx, [rsp + 0x50]
add r8, r14
mov r9d, edi
mov edx, 1
call fcn.18014cba0
mov r8d, dword [rbx + 0x18]
lea rcx, [rsp + 0x60]
mov r9d, dword [rbx + 0x1c]
add r8, rdi
add r8, r14
mov edx, 6
call fcn.18014cba0
xor r9d, r9d
lea rcx, [rsp + 0x70]
xor r8d, r8d
xor edx, edx
call fcn.18014cba0
mov r8d, 4
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x30]
call fcn.18014cbb0
mov rcx, qword [rsp + 0x58]
mov r8, rdi
mov rdx, r15
call fcn.180162090
mov rcx, qword [rbx + 0x10]
lea r8, [rsp + 0x30]
xor r9d, r9d
xor edx, edx
call sub.Secur32.dll_EncryptMessage
test eax, eax
jne 0x18014a9ba
mov r8d, dword [rsp + 0x60]
mov rdx, r14
add r8d, dword [rsp + 0x40]
mov rcx, rbp
add r8d, dword [rsp + 0x50]
mov edi, r8d
call fcn.18014df60
mov rbx, rax
jmp 0x18014a9c1
mov rbx, 0xffffffffffffffff
mov rcx, r14
call fcn.180084f30
mov r14, qword [rsp + 0x90]
cmp rdi, rbx
jne 0x18014a9da
mov ebx, dword [rsp + 0x50]
mov rax, rbx
mov rsi, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.18015c050
add rsp, 0x98
pop r15
pop rdi
pop rbp
pop rbx
ret
mov ecx, 2
call fcn.180167c6c
mov rcx, rax
lea r8, str.C:Usersprocr_vcpkg_buildtreesmongo_c_driver_src1.24.3_56c7a21808.clean_srclibmongoc_srcmongocmongoc_stream_tls_secure_channel.c
lea rax, str.secure_channel
mov r9d, 0xfc
mov qword [rsp + 0x28], rax
lea rdx, str._s:_d__s__:_precondition_failed:__s_n
lea rax, str._mongoc_stream_tls_secure_channel_write
mov qword [rsp + 0x20], rax
call fcn.18007d3a0
call fcn.180177210
int3
Function at 0x1801524c0
Capabilities:
Get outbound credentials handle via credssp

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x80
mov rbx, qword [rsp + 0xd0]
xor r14d, r14d
mov esi, r9d
mov rdi, r8
mov qword [rbx + 0x58], r14
mov qword [rbx + 0x60], r14
mov dword [rbx + 0x70], 0x80000001
mov dword [rbx + 0x68], edx
mov word [rbx + 0x6c], r14w
call fcn.180177e38
mov qword [rbx + 0x50], rax
test rax, rax
je 0x1801525e9
mov qword [rsp + 0x90], rbp
mov rcx, rax
mov ebp, 0x2f
mov edx, ebp
call fcn.180162d80
test rax, rax
jne 0x180152542
mov rcx, qword [rbx + 0x50]
lea edx, [rbp + 0x11]
call fcn.180162d80
test rax, rax
je 0x180152542
mov word [rax], bp
mov rdx, qword [rsp + 0xc0]
mov rbp, qword [rsp + 0x90]
test rdi, rdi
je 0x180152590
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0xb8]
mov dword [rsp + 0x68], eax
mov eax, dword [rsp + 0xc8]
mov dword [rsp + 0x78], eax
mov qword [rsp + 0x50], rdi
mov dword [rsp + 0x58], esi
mov qword [rsp + 0x70], rdx
mov dword [rsp + 0x7c], 2
test rdx, rdx
lea rax, [rbx + 0x30]
lea rdx, [rsp + 0xd0]
mov qword [rsp + 0x40], rdx
lea rcx, [rsp + 0x50]
cmove rcx, r14
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
lea rdx, str.kerberos
mov qword [rsp + 0x20], rcx
xor ecx, ecx
lea r8d, [r9 + 2]
call qword [sym.imp.Secur32.dll_AcquireCredentialsHandleW]
test eax, eax
je 0x1801525f0
lea rdx, str.AcquireCredentialsHandle
mov ecx, eax
call fcn.180152fd0
mov eax, 0xffffffff
jmp 0x1801525f9
mov byte [rbx + 0x6c], 1
mov eax, 1
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret

Function at 0x180152930
Capabilities:
Decrypt data via sspi

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
xor ebp, ebp
mov dword [rsp + 0x24], 2
mov rdi, rcx
mov dword [rsp + 0x20], ebp
mov rcx, qword [rcx + 0x58]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov rbx, rdx
test rcx, rcx
je 0x18015297b
call fcn.1801683fc
mov qword [rdi + 0x58], rbp
mov dword [rdi + 0x70], 0x80000001
cmp byte [rdi + 0x6d], bpl
je 0x180152a1a
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.180152e60
mov qword [rsp + 0x38], rax
test rax, rax
je 0x180152a1a
mov eax, dword [rsp + 0x60]
lea rcx, [rdi + 0x40]
mov ebx, 1
mov dword [rsp + 0x30], eax
lea r9, [rdi + 0x70]
mov dword [rsp + 0x44], ebx
xor r8d, r8d
mov dword [rsp + 0x34], 0xa
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x48], rbp
mov dword [rsp + 0x40], ebp
call sub.Secur32.dll_DecryptMessage
test eax, eax
jne 0x1801529f4
mov edx, dword [rsp + 0x40]
test edx, edx
je 0x180152a07
mov rcx, qword [rsp + 0x48]
call fcn.180152f20
mov qword [rdi + 0x58], rax
test rax, rax
jne 0x180152a07
jmp 0x180152a02
lea rdx, [0x1801bc8f8]
mov ecx, eax
call fcn.180152fd0
mov ebx, 0xffffffff
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x180152a16
call fcn.1801683fc
mov eax, ebx
jmp 0x180152a1f
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x180152f20
Capabilities:
Encode data using base64 via winapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
lea rax, [rsp + 0x50]
xor r9d, r9d
mov r8d, 0x40000001
mov qword [rsp + 0x20], rax
mov edi, edx
mov rsi, rcx
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
test eax, eax
je 0x180152f9f
mov ecx, dword [rsp + 0x50]
call fcn.18016ea30
mov rbx, rax
test rax, rax
je 0x180152f9f
lea rax, [rsp + 0x50]
mov r9, rbx
mov r8d, 0x40000001
mov qword [rsp + 0x20], rax
mov edx, edi
mov rcx, rsi
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
test eax, eax
je 0x180152f97
mov rax, rbx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov rcx, rbx
call fcn.1801683fc
lea r9, str.CryptBinaryToString_failed.
xor ecx, ecx
lea r8, [0x1801e88e0]
lea rdx, str.mongoc
call fcn.1800f0e30
mov rbx, qword [rsp + 0x40]
xor eax, eax
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x18015d380
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x78]
sub rax, 0x10000
mov rcx, rax
call fcn.18015d5a0
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x18015d487
mov rax, qword [0x18020ce80]
cmp qword [rsp + 0x20], rax
jb 0x18015d3e4
mov rax, qword [0x18020ce88]
cmp qword [rsp + 0x20], rax
ja 0x18015d3e4
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x18015d3a6
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.180162730
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x18015d413
jmp 0x18015d487
cmp dword [rsp + 0x50], 0x10000
jne 0x18015d46a
cmp qword [rsp + 0x48], 0x10000
jb 0x18015d46a
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18015d458
mov rax, qword [rsp + 0x28]
jmp 0x18015d489
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x18015d482
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.18015d5a0
mov qword [rsp + 0x20], rax
jmp 0x18015d3a6
xor eax, eax
add rsp, 0x68
ret

Function at 0x18015d490
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rcx, qword [rsp + 0x70]
call fcn.18015d5e0
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x18015d593
mov rax, qword [0x18020ce80]
cmp qword [rsp + 0x20], rax
jb 0x18015d4eb
mov rax, qword [0x18020ce88]
cmp qword [rsp + 0x20], rax
ja 0x18015d4eb
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x18015d4ad
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.180162730
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x18015d51a
jmp 0x18015d593
cmp dword [rsp + 0x50], 0x10000
jne 0x18015d571
cmp qword [rsp + 0x48], 0x10000
jb 0x18015d571
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18015d55f
mov rax, qword [rsp + 0x28]
jmp 0x18015d595
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x18015d58e
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.18015d5e0
mov qword [rsp + 0x20], rax
jmp 0x18015d4ad
xor eax, eax
add rsp, 0x68
ret
Function at 0x18015d630
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.18015dbc0
mov qword [rsp + 0x28], 0
cmp qword [0x1802b94b8], 0
jne 0x18015d678
cmp qword [0x1802b94b0], 0
je 0x18015d678
mov rax, qword [0x1802b94b0]
mov qword [0x1802b94b8], rax
cmp qword [0x1802b94b8], 0
je 0x18015d71e
mov rax, qword [0x1802b94b8]
cmp qword [rax + 0x10], 0
je 0x18015d71e
mov rax, qword [0x1802b94b8]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18015d71e
mov rax, qword [0x1802b94b8]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18015d71e
mov rax, qword [0x1802b94b8]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x18015d6e4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x18015d6eb
xor eax, eax
jmp 0x18015d899
mov rax, qword [0x1802b94b8]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x48]
mov qword [rax + 0x10], rcx
mov r8d, 0x60
mov edx, 0xcc
mov rcx, qword [rsp + 0x28]
call fcn.180162730
mov rax, qword [rsp + 0x28]
jmp 0x18015d899
mov rax, qword [0x1802b94b0]
mov qword [0x1802b94b8], rax
jmp 0x18015d740
mov rax, qword [0x1802b94b8]
mov rax, qword [rax + 8]
mov qword [0x1802b94b8], rax
cmp qword [0x1802b94b8], 0
je 0x18015d78d
cmp qword [0x1802b94b8], 0
je 0x18015d78b
mov rax, qword [0x1802b94b8]
cmp qword [rax + 0x10], 0
je 0x18015d78b
mov rax, qword [0x1802b94b8]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18015d78b
mov rax, qword [0x1802b94b8]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18015d78b
jmp 0x18015d6bc
jmp 0x18015d72e
mov rcx, qword [rsp + 0x60]
call fcn.18015fa40
and eax, 0xffff
mov eax, eax
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.18015d8a0
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x18015d897
mov rax, qword [rsp + 0x48]
mov qword [0x1802b94b8], rax
mov rax, qword [0x1802b94b8]
mov dword [rax], 0x52727464
mov rax, qword [0x1802b94b8]
mov qword [rax + 0x10], 0
mov rax, qword [0x1802b94b8]
mov rcx, qword [0x1802b94b0]
mov qword [rax + 8], rcx
mov rax, qword [0x1802b94b8]
mov qword [0x1802b94b0], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x1802b94b8]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x18015d848
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x18015d882
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
mov qword [rcx + rax + 0x48], rdx
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
jmp 0x18015d83e
mov rax, qword [0x1802b94b8]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x18015d6bc
xor eax, eax
add rsp, 0x58
ret
Function at 0x18016ede0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.18015cd60
sub rsp, rax
mov rax, qword [0x18020ce50]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.18017f6bc
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x18016ee2f
mov rax, rbp
jmp 0x18016ef37
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x2b9a50]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.18017a960
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x2b9a50]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x18016ef33
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18016ef33
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.18017a960
test rax, rax
js 0x18016ef33
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x18016ef33
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x18016ef25
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x18016ef25
cmp byte [rcx], 0xd
jne 0x18016ef0b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x18016ef1a
cmp byte [rcx + 1], 0xa
jne 0x18016ef1a
inc rcx
jmp 0x18016ef1a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x20d070]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x18016eeed
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x18016ef37
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.18015c050
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret