joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000cb80
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.140017940
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.140017940
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x14000d852
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140033528]
test eax, eax
je 0x14000d8ea
lea rax, [0x140033500]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140033530]
mov qword [rbp - 8], rax
jmp 0x14000d8ce
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x14000d8c2
cmp qword [rbp - 0x10], 0
je 0x14000d8c2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x14000d888
lea rax, [0x140033500]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14000d8eb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14000d9f0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x14000da18
mov eax, 0
jmp 0x14000da66
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x14000da41
mov eax, 0
jmp 0x14000da66
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x14000da61
mov eax, 0
jmp 0x14000da66
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x14000da6c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14000daea
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14000dae1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x14000dae1
mov rax, qword [rbp - 8]
jmp 0x14000daff
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x14000dab4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x180060d10
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0xc0
mov rax, qword [0x1802db3c0]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rsi, rcx
mov qword [rbp - 0x39], rcx
xor ebx, ebx
mov dword [rbp - 0x55], ebx
lea rcx, [rbp - 0x29]
call fcn.180060fc0
nop
mov rdx, rax
lea rcx, [rbp - 9]
call fcn.18005f4c0
nop
mov rdx, qword [rbp - 0x11]
cmp rdx, 0xf
jbe 0x180060d96
inc rdx
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180060d91
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180060e8b
call fcn.180130d88
movdqa xmm0, xmmword [0x180206e80]
movdqu xmmword [rbp - 0x19], xmm0
mov byte [rbp - 0x29], 0
mov dword [rbp - 0x59], ebx
lea rcx, [rbp - 9]
cmp qword [rbp + 0xf], 7
cmova rcx, qword [rbp - 9]
lea rdx, [rbp - 0x59]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov r14d, eax
test eax, eax
je 0x180060e91
mov qword [rsi], rbx
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], rbx
mov edx, r14d
mov rcx, rsi
call fcn.1800606a0
mov rcx, qword [rsi]
lea rbx, [rcx + r14]
mov r8d, r14d
xor edx, edx
call fcn.1801eeca0
mov qword [rsi + 8], rbx
mov dword [rbp - 0x55], 1
lea rcx, [rbp - 9]
cmp qword [rbp + 0xf], 7
cmova rcx, qword [rbp - 9]
mov r9, qword [rsi]
mov r8d, r14d
mov edx, dword [rbp - 0x59]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x180060ecf
mov rdx, qword [rbp + 0xf]
cmp rdx, 7
jbe 0x180060e5e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 9]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180060e59
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180060e85
call fcn.180130d88
mov rax, rsi
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.180131440
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.18017a460
nop
call fcn.18017a460
int3
lea rcx, [rbp + 0x17]
call fcn.180060f10
nop
lea rcx, str.Failed_to_GetFileVersionInfoSize._Error:_
mov qword [rbp - 0x29], rcx
mov qword [rbp - 0x21], 0x2b
mov r8, rax
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x51]
call fcn.18005dc20
lea rdx, [0x1802d2f58]
lea rcx, [rbp - 0x51]
call fcn.180169f74
nop
lea rcx, [rbp + 0x17]
call fcn.180060f10
nop
lea rcx, str.Failed_to_GetFileVersionInfo._Error:_
mov qword [rbp - 0x29], rcx
mov qword [rbp - 0x21], 0x27
mov r8, rax
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x51]
call fcn.18005dc20
lea rdx, [0x1802d2f58]
lea rcx, [rbp - 0x51]
call fcn.180169f74
int3
Function at 0x180097c10
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, r9
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
cmp rcx, 0xffffffffffffffff
jne 0x180097c52
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, 0x38
mov qword [rbx], 0
cmp eax, 0x2733
mov edx, 0x51
cmove ecx, edx
mov eax, ecx
add rsp, 0x20
pop rbx
ret
mov qword [rbx], rcx
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x180097df0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x130
mov rax, qword [0x1802db3c0]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov rsi, qword [rsp + 0x190]
mov rbp, rcx
mov rcx, qword [rcx + 0x18]
mov r15, r8
movsxd r8, edx
mov r12, r9
mov rax, r8
shl rax, 5
lea rbx, [rcx + 0x230]
mov r14, qword [rcx + r8*8 + 0x1e8]
add rbx, rax
mov rax, qword [rcx + 0x410]
mov rdi, qword [rbx + 8]
sub rdi, qword [rbx + 0x10]
test byte [rax + 0x84], 3
je 0x180097efc
lea rax, [0x180097ca0]
cmp qword [rcx + r8*8 + 0x210], rax
jne 0x180097efc
cmp qword [rbx], 0
je 0x180097e81
test rdi, rdi
je 0x180097efc
mov rdx, 0xffffffffffffffff
xor r9d, r9d
mov r8, rdx
mov rcx, r14
call fcn.1800adf50
cmp eax, 0xffffffff
je 0x180097efc
test al, 1
je 0x180097efc
mov rcx, qword [rbx]
test rcx, rcx
jne 0x180097edb
mov eax, dword [rbp + 0x734]
add eax, eax
movsxd rcx, eax
mov qword [rbx + 8], rcx
call qword [fcn.1801a9624]
mov qword [rbx], rax
mov rcx, rax
test rax, rax
je 0x180097f36
mov rdi, qword [rbx + 8]
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0
mov rdx, qword [rbx + 0x10]
xor r9d, r9d
add rdx, rcx
mov r8d, edi
mov rcx, r14
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
test eax, eax
jle 0x180097efc
add qword [rbx + 0x10], rcx
xor r9d, r9d
mov r8d, r12d
mov rdx, r15
mov rcx, r14
call qword [sym.imp.WS2_32.dll_send]
movsxd rbx, eax
mov dword [rsi], 0
cmp rbx, 0xffffffffffffffff
jne 0x180097f75
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp eax, 0x2733
jne 0x180097f45
xor ebx, ebx
mov dword [rsi], 0x51
jmp 0x180097f75
mov dword [rsi], 0x1b
mov rax, 0xffffffffffffffff
jmp 0x180097f78
mov r8d, 0x100
lea rdx, [rsp + 0x20]
mov ecx, edi
call fcn.1800a1ce0
mov r8, rax
lea rdx, str.Send_failure:__s
mov rcx, rbp
call fcn.180097980
mov dword [rbp + 0xde4], edi
mov dword [rsi], 0x37
mov rax, rbx
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.180131440
add rsp, 0x130
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180098760
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x1c0
mov rax, qword [0x1802db3c0]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
xorps xmm0, xmm0
mov dword [rsp + 0x20], 0x80
mov rax, rdx
mov rbx, r8
mov rsi, rcx
lea r8, [rsp + 0x20]
mov rcx, rax
lea rdx, [rsp + 0x30]
mov rdi, r9
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0xa0], xmm0
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x180098813
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, eax
mov ebx, eax
call fcn.1800a1ce0
mov r9, rax
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.180097980
jmp 0x1800988db
movzx ecx, word [rsp + 0x30]
mov edx, ecx
sub edx, 1
je 0x1800988b0
sub edx, 1
je 0x18009885a
cmp edx, 0x15
jne 0x180098861
lea rdx, [rsp + 0x38]
mov r8, rbx
mov r9d, 0x2e
call fcn.1800b3cd0
test rax, rax
je 0x180098861
movzx ecx, word [rsp + 0x32]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov dword [rdi], eax
jmp 0x1800988db
lea rdx, [rsp + 0x34]
jmp 0x180098832
mov byte [rbx], 0
mov dword [rdi], 0
call fcn.18017a630
mov dword [rax], 0x273f
call fcn.18017a630
mov ebx, dword [rax]
call fcn.18017a630
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, ebx
mov rdi, rax
call fcn.1800a1ce0
mov r8d, dword [rdi]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rsi
call fcn.180097980
jmp 0x1800988db
cmp dword [rsp + 0x20], 2
jle 0x1800988d2
lea r9, [rsp + 0x32]
mov edx, 0x2e
lea r8, [0x18020bed0]
mov rcx, rbx
call fcn.18009b080
jmp 0x1800988d5
mov byte [rbx], 0
mov dword [rdi], 0
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.180131440
add rsp, 0x1c0
pop rdi
pop rsi
pop rbx
ret
Function at 0x1800ab770
Capabilities:
Convert ip address from string

Disassembly:
push rbx
push rdi
push r13
push r14
sub rsp, 0x68
mov rax, qword [0x1802db3c0]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdi, rdx
mov r13, rcx
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rdx + rbx], 0
jne 0x1800ab797
mov qword [rsp + 0xa0], rbp
xor r14d, r14d
cmp byte [rdx], 0x5b
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x50], r15
jne 0x1800ab906
cmp rbx, 4
jb 0x1800ab91a
inc rdi
sub rbx, 2
cmp byte [rdi + rbx], 0x5d
jne 0x1800ab91a
lea rdx, str.0123456789abcdefABCDEF:.
mov rcx, rdi
call fcn.1801bfca0
cmp rbx, rax
je 0x1800ab8a8
cmp byte [rdi + rax], 0x25
lea r15, [rdi + rax]
mov rbx, rax
jne 0x1800ab91a
lea r8d, [r14 + 2]
mov ebp, r14d
lea rdx, [0x1802112cc]
lea rcx, [r15 + 1]
lea rsi, [r15 + 1]
call fcn.1801ac8a0
test eax, eax
jne 0x1800ab839
movzx eax, byte [r15 + 3]
lea rcx, [r15 + 3]
test al, al
je 0x1800ab839
cmp al, 0x5d
cmovne rsi, rcx
movzx eax, byte [rsi]
test al, al
je 0x1800ab91a
mov rcx, r14
cmp al, 0x5d
je 0x1800ab864
cmp rcx, 0xf
jge 0x1800ab864
inc rsi
mov byte [rsp + rcx + 0x20], al
inc ebp
inc rcx
movzx eax, byte [rsi]
test al, al
jne 0x1800ab847
test ebp, ebp
je 0x1800ab91a
cmp byte [rsi], 0x5d
jne 0x1800ab91a
movsxd rax, ebp
cmp rax, 0x10
jae 0x1800ab921
lea rcx, [rsp + 0x20]
mov byte [rsp + rax + 0x20], r14b
call qword [case.0x180089a39.0]
mov qword [r13 + 0x28], rax
test rax, rax
jne 0x1800ab8a2
mov eax, 7
jmp 0x1800ab8d7
mov word [r15], 0x5d
lea r8, [rsp + 0x30]
mov byte [rdi + rbx], r14b
mov rdx, rdi
mov ecx, reloc.WS2_32.dll_socket
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x1800ab91a
mov byte [rdi + rbx], 0x5d
cmp byte [rdi], r14b
mov eax, select
cmove r14d, eax
mov eax, r14d
mov r15, qword [rsp + 0x50]
mov r12, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.180131440
add rsp, 0x68
pop r14
pop r13
pop rdi
pop rbx
ret
lea rdx, [0x1802112d0]
mov rcx, rdi
call fcn.1801bf3a0
cmp rbx, rax
je 0x1800ab8c8
mov eax, 3
jmp 0x1800ab8d7
call fcn.180131988
int3
Function at 0x1800b3860
Capabilities:
Connect socket
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x1802db3c0]
xor rax, rsp
mov qword [rbp - 8], rax
mov edx, 1
mov dword [rbp - 0x40], reloc.WS2_32.dll_recv
mov esi, 2
mov dword [rbp - 0x3c], 1
mov ecx, esi
mov rdi, r9
lea r8d, [rdx + 5]
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1800b38b2
jmp 0x1800b3a7b
mov qword [rsp + 0x90], r14
mov ecx, 0x7f000001
xor r14d, r14d
mov word [rbp - 0x38], si
mov qword [rbp - 0x30], r14
call qword [sym.imp.WS2_32.dll_htonl]
lea r9, [rbp - 0x3c]
mov word [rbp - 0x36], r14w
mov edx, 0xffff
mov dword [rbp - 0x34], eax
lea r8d, [r14 + 4]
mov qword [rdi + 8], 0xffffffffffffffff
mov rcx, rbx
mov qword [rdi], 0xffffffffffffffff
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x1800b3a52
lea r8d, [r14 + 0x10]
mov rcx, rbx
lea rdx, [rbp - 0x38]
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x1800b3a52
lea r8, [rbp - 0x40]
mov rcx, rbx
lea rdx, [rbp - 0x38]
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x1800b3a52
cmp dword [rbp - 0x40], 0x10
jl 0x1800b3a52
lea edx, [r14 + 1]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x1800b3a52
xor r8d, r8d
lea edx, [r14 + 1]
mov ecx, esi
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rdi], rax
cmp rax, 0xffffffffffffffff
je 0x1800b3a52
lea r8d, [r14 + 0x10]
mov rcx, rax
lea rdx, [rbp - 0x38]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x1800b3a52
lea edx, [r14 + 1]
mov rcx, rbx
call fcn.1800b3ca0
test eax, eax
js 0x1800b3a52
lea edx, [r14 + 1]
mov qword [rbp - 0x18], rbx
mov r8d, 0x2710
mov dword [rbp - 0x10], 0x300
lea rcx, [rbp - 0x18]
call fcn.1800adb30
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_accept]
mov qword [rdi + 8], rax
cmp rax, 0xffffffffffffffff
je 0x1800b3a52
mov rcx, qword [rdi]
lea r8, [rbp - 0x40]
lea rdx, [rbp - 0x38]
mov dword [rbp - 0x40], reloc.WS2_32.dll_recv
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x1800b3a52
cmp dword [rbp - 0x40], 0x10
jl 0x1800b3a52
mov rcx, qword [rdi + 8]
lea r8, [rbp - 0x40]
lea rdx, [rbp - 0x28]
mov dword [rbp - 0x40], reloc.WS2_32.dll_recv
call qword [sym.imp.WS2_32.dll_getpeername]
cmp eax, 0xffffffff
je 0x1800b3a52
cmp dword [rbp - 0x40], 0x10
jl 0x1800b3a52
movzx eax, word [rbp - 0x28]
cmp word [rbp - 0x38], ax
jne 0x1800b3a52
mov eax, dword [rbp - 0x24]
cmp dword [rbp - 0x34], eax
jne 0x1800b3a52
movzx eax, word [rbp - 0x26]
cmp word [rbp - 0x36], ax
jne 0x1800b3a52
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x1800b3a73
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rdi]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rdi + 8]
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0xffffffff
mov r14, qword [rsp + 0x90]
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.180131440
mov rbx, qword [rsp + 0x98]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
Function at 0x1800b6180
Capabilities:
Get file size
Read file on windows

Disassembly:
push rbx
push rbp
push r12
push r13
push r15
sub rsp, 0x180
mov rax, qword [0x1802db3c0]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov qword [rsp + 0x50], rcx
mov r15, r8
mov rcx, rdx
mov r12, rdx
xor ebp, ebp
xor ebx, ebx
call case.0x180089a39.0
mov r13, rax
test rax, rax
jne 0x1800b61fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.1800a1e10
mov r9, rax
lea rdx, str.schannel:_invalid_path_name_for_CA_file__s:__s
mov r8, r12
mov rcx, r15
call fcn.180097980
xor ecx, ecx
lea ebx, [rbp + 0x4d]
call qword [fcn.1801a714c]
jmp 0x1800b63b8
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov rcx, r13
mov qword [rsp + 0x170], r14
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x1800b6271
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.1800a1e10
mov r9, rax
lea rdx, str.schannel:_failed_to_open_CA_file__s:__s
mov r8, r12
mov rcx, r15
call fcn.180097980
xor ecx, ecx
lea ebx, [r14 + 0x4e]
jmp 0x1800b63a2
lea rdx, [rsp + 0x48]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x1800b62ba
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.1800a1e10
mov r9, rax
lea rdx, str.schannel:_failed_to_determine_size_of_CA_file__s:__s
mov r8, r12
mov rcx, r15
call fcn.180097980
mov ebx, 0x4d
jmp 0x1800b6396
mov qword [rsp + 0x178], rdi
mov rdi, qword [rsp + 0x48]
cmp rdi, 0x100000
jle 0x1800b62ef
mov r8d, 0x100000
lea rdx, str.schannel:_CA_file_exceeds_max_size_of__u_bytes
mov rcx, r15
call fcn.180097980
mov ebx, 0x4d
jmp 0x1800b638e
lea rcx, [rdi + 1]
call qword [fcn.1801a9624]
mov rbp, rax
test rax, rax
jne 0x1800b6309
lea ebx, [rax + 0x1b]
jmp 0x1800b638e
mov qword [rsp + 0x1c8], rsi
test rdi, rdi
je 0x1800b6368
nop word [rax + rax]
mov r8d, edi
mov dword [rsp + 0x40], 0
sub r8d, ebx
mov esi, ebx
lea rdx, [rbx + rbp]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1800b63da
mov eax, dword [rsp + 0x40]
test eax, eax
jne 0x1800b635f
mov edi, esi
jmp 0x1800b6361
add ebx, eax
mov eax, ebx
cmp rax, rdi
jb 0x1800b6320
mov rcx, qword [rsp + 0x50]
mov r9, r12
mov r8, rdi
mov byte [rdi + rbp], 0
mov rdx, rbp
mov qword [rsp + 0x20], r15
call fcn.1800b5f00
mov ebx, eax
mov rsi, qword [rsp + 0x1c8]
mov rdi, qword [rsp + 0x178]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbp
call qword [fcn.1801a714c]
mov rcx, r13
call fcn.1801a714c
mov r14, qword [rsp + 0x170]
mov eax, ebx
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.180131440
add rsp, 0x180
pop r15
pop r13
pop r12
pop rbp
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.1800a1e10
mov r9, rax
lea rdx, str.schannel:_failed_to_read_from_CA_file__s:__s
mov r8, r12
mov rcx, r15
call fcn.180097980
mov ebx, 0x4d
jmp 0x1800b6386
Function at 0x1800c2260
Capabilities:
Access peb ldr_data

Disassembly:
push rbx
push rbp
push r14
sub rsp, 0x50
mov rax, qword [0x1802db3c0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rax, qword gs:[0x60]
xor r14d, r14d
mov rbp, rcx
mov rdx, qword [rax + 0x18]
mov rbx, qword [rdx + 0x10]
cmp qword [rcx + 0x28], r14
jne 0x1800c229e
mov rax, qword [rbx + 0x30]
jmp 0x1800c2410
cmp qword [rcx + 0x30], 7
lea rdx, [rcx + 0x18]
mov qword [rsp + 0x78], rsi
mov qword [rsp + 0x80], rdi
jbe 0x1800c22ba
mov rdx, qword [rcx + 0x18]
mov r8, qword [rcx + 0x28]
xorps xmm0, xmm0
lea rcx, [rsp + 0x28]
mov qword [rsp + 0x38], r14
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x40], r14
call fcn.180003ad0
lea rcx, [rsp + 0x28]
call fcn.180029e00
mov rdx, qword [rsp + 0x40]
movzx esi, al
cmp rdx, 7
jbe 0x1800c2329
mov rcx, qword [rsp + 0x28]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800c2324
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800c242c
call fcn.180130d88
cmp qword [rbx + 0x30], r14
je 0x1800c2388
xor rsi, 1
add rsi, rsi
nop word [rax + rax]
movups xmm0, xmmword [rbx + rsi*8 + 0x48]
lea rdx, [rbp + 0x18]
movd eax, xmm0
movzx r8d, ax
shr r8, 1
cmp qword [rbp + 0x28], r8
cmovb r8, qword [rbp + 0x28]
cmp qword [rbp + 0x30], 7
jbe 0x1800c2368
mov rdx, qword [rbp + 0x18]
psrldq xmm0, 8
movq rcx, xmm0
call fcn.1801c1c6c
test eax, eax
je 0x1800c2426
mov rbx, qword [rbx]
cmp qword [rbx + 0x30], r14
jne 0x1800c2340
xorps xmm0, xmm0
mov qword [rsp + 0x38], r14
mov ecx, 0x30
mov qword [rsp + 0x40], reloc.WS2_32.dll_ntohs
movups xmmword [rsp + 0x28], xmm0
call fcn.180130d4c
movups xmm0, xmmword [str.EAT__Failed_to_automatically_find_module]
mov qword [rsp + 0x28], rax
mov rcx, rax
mov qword [rsp + 0x38], 0x29
mov edx, 2
mov qword [rsp + 0x40], 0x2f
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x180214ba0]
movups xmmword [rax + 0x10], xmm1
movsd xmm0, qword [0x180214bb0]
movsd qword [rax + 0x20], xmm0
movzx eax, byte [0x180214bb8]
mov byte [rcx + 0x28], al
mov byte [rcx + 0x29], r14b
lea rcx, [rsp + 0x28]
call fcn.1800bf850
xor eax, eax
mov rsi, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180131440
add rsp, 0x50
pop r14
pop rbp
pop rbx
ret
mov rax, qword [rbx + 0x30]
jmp 0x1800c2403
call fcn.18017a460
int3
Function at 0x1800d5c60
Capabilities:
Check for software breakpoints

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x1802db3c0]
xor rax, rsp
mov qword [rsp + 0x48], rax
movzx ebp, dl
mov rsi, rcx
lea rdx, [rcx + 0x60]
lea rcx, [rsp + 0x28]
call fcn.18001bab0
nop
xor ebx, ebx
xor r14d, r14d
mov rdi, qword [rsi + 0x38]
sub rdi, qword [rsi + 0x30]
je 0x1800d5d10
movabs rax, 0x7fffffffffffffff
cmp rdi, rax
ja 0x1800d5ee4
cmp rdi, 0x1000
jb 0x1800d5cee
lea rcx, [rdi + 0x27]
cmp rcx, rdi
jbe 0x1800d5eea
call fcn.180130d4c
test rax, rax
je 0x1800d5ede
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x1800d5cf9
mov rcx, rdi
call fcn.180130d4c
mov rbx, rax
lea r14, [rbx + rdi]
mov r8, qword [rsi + 0x38]
mov rdx, qword [rsi + 0x30]
sub r8, rdx
mov rcx, rbx
call fcn.1801ee600
mov rax, qword [rsi + 0x38]
sub rax, qword [rsi + 0x30]
mov r15, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x28]
cmp rax, 1
jne 0x1800d5d2d
cmp byte [rbx], 0xcc
jmp 0x1800d5d3c
cmp rax, 2
jb 0x1800d5d42
cmp byte [rbx], 0xf3
jne 0x1800d5d42
cmp byte [rbx + 1], 0xc3
je 0x1800d5ed6
lea rcx, [rsp + 0x28]
cmp r15, 0xf
cmova rcx, rsi
mov rdi, qword [rsp + 0x38]
cmp rdi, 3
jne 0x1800d5d76
mov r8, rdi
lea rdx, [0x180214f44]
call fcn.1801ee500
test eax, eax
jne 0x1800d5d76
test bpl, bpl
je 0x1800d5ed6
lea rcx, [rsp + 0x28]
cmp r15, 0xf
cmova rcx, rsi
cmp rdi, 3
jne 0x1800d5da0
mov r8, rdi
lea rdx, [0x180214a14]
call fcn.1801ee500
test eax, eax
je 0x1800d5ed6
lea rbp, [rsp + 0x28]
cmp r15, 0xf
cmova rbp, rsi
cmp rdi, 4
jb 0x1800d5e38
lea r8, [rdi - 3]
add r8, rbp
sub r8, rbp
mov edx, 0x69
mov rcx, rbp
call fcn.1801ee460
mov r9, rax
test rax, rax
je 0x1800d5e38
lea r12, str.iret
nop dword [rax]
xor ecx, ecx
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [r9 + rcx]
inc rcx
cmp al, byte [r12 + rcx - 1]
jne 0x1800d5e09
cmp rcx, 4
jne 0x1800d5df0
xor eax, eax
jmp 0x1800d5e0e
sbb eax, eax
or eax, 1
test eax, eax
je 0x1800d5ecd
inc r9
lea r8, [rdi - 3]
add r8, rbp
sub r8, r9
mov edx, 0x69
mov rcx, r9
call fcn.1801ee460
mov r9, rax
test rax, rax
jne 0x1800d5de0
xor dil, dil
test rbx, rbx
je 0x1800d5e70
sub r14, rbx
cmp r14, 0x1000
jb 0x1800d5e64
add r14, 0x27
mov rcx, qword [rbx - 8]
sub rbx, rcx
lea rax, [rbx - 8]
cmp rax, 0x1f
ja 0x1800d5ede
mov rbx, rcx
mov rdx, r14
mov rcx, rbx
call fcn.180130d88
nop
cmp r15, 0xf
jbe 0x1800d5ea3
lea rdx, [r15 + 1]
mov rax, rsi
cmp rdx, 0x1000
jb 0x1800d5e9b
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800d5ef0
mov rcx, rsi
call fcn.180130d88
movzx eax, dil
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180131440
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
cmp r9, rbp
jne 0x1800d5e38
mov dil, 1
jmp 0x1800d5e3b
call fcn.18017a460
int3
call fcn.180022290
int3
call fcn.180021d80
nop
call fcn.18017a460
int3