joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400015e0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov esi, edx
xor r11d, r11d
mov rbp, rcx
lea rax, [rsi + r8]
mov ebx, edx
mov qword [rsp + 0x20], r11
cmp rax, qword [0x140008f78]
mov edi, r11d
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x78], rsi
jle 0x140001624
xor eax, eax
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
movzx ecx, byte [0x140008f64]
mov rax, r8
sar rax, cl
mov ecx, eax
mov rax, qword [0x140008f68]
lea r9, [rax + rcx*4]
mov ecx, dword [0x140008f60]
lea r10d, [rcx - 1]
mov qword [rsp + 0x28], r9
and r10d, r8d
mov dword [rsp + 0x70], r10d
lea eax, [r10 + rdx]
cmp eax, ecx
jbe 0x140001677
mov ebx, ecx
mov edi, edx
sub ebx, r10d
mov r11d, ebx
sub edi, ebx
lea rax, [rbx + r8]
mov qword [rsp + 0x78], r11
mov qword [rsp + 0x20], rax
cmp byte [0x140008914], 0
je 0x14000169d
mov rcx, qword [0x140008908]
lea rdx, [rsp + 0x68]
mov r8d, 4
call qword [0x140008f80]
mov r11d, eax
jmp 0x1400016fc
mov esi, dword [0x140008320]
xor r8d, r8d
mov rdx, r9
mov ecx, esi
call qword [sym.imp.msvcrt.dll__lseeki64]
cmp rax, qword [rsp + 0x28]
je 0x1400016be
or r11d, 0xffffffff
jmp 0x1400016f7
lea rdx, [rsp + 0x68]
mov r8d, 4
mov ecx, esi
call qword [sym.imp.msvcrt.dll__read]
movsxd r11, eax
cmp r11d, 3
ja 0x1400016f7
mov eax, 4
lea rcx, [rsp + r11 + 0x68]
xor edx, edx
sub eax, r11d
movsxd r8, eax
call sub.msvcrt.dll_memset
mov r11d, 4
mov rsi, qword [rsp + 0x30]
cmp r11d, 4
je 0x140001740
mov rcx, qword [sym.imp.msvcrt.dll__iob]
lea rdx, str.vhd_read:_Error_reading_block_table:__m_n
add rcx, 0x60
call section..text
call qword [sym.imp.msvcrt.dll__errno]
cmp dword [rax], 0
jne 0x140001730
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 7
or eax, 0xffffffff
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
mov r8, rsi
xor edx, edx
mov rcx, rbp
call sub.msvcrt.dll_memset
mov ecx, dword [rsp + 0x68]
cmp ecx, 0xffffffff
je 0x1400017af
call qword [sym.imp.WS2_32.dll_ntohl]
movzx ecx, byte [0x140008f70]
mov r8d, eax
mov dword [rsp + 0x68], eax
mov eax, dword [0x140008334]
shl r8, cl
add r8, rax
mov eax, dword [rsp + 0x70]
add r8, rax
cmp byte [0x140008914], 0
je 0x14000179e
mov rcx, qword [0x140008908]
mov r9, r8
mov rdx, rbp
mov r8d, ebx
call qword [0x140008f80]
jmp 0x1400017a8
mov edx, ebx
mov rcx, rbp
call fcn.140001200
mov ebx, eax
cmp eax, 0xffffffff
je 0x140001730
test edi, edi
je 0x1400017d2
mov rcx, qword [rsp + 0x78]
mov r8, qword [rsp + 0x20]
mov edx, edi
add rcx, rbp
call fcn.1400015e0
cmp eax, 0xffffffff
je 0x140001730
add ebx, eax
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x140004580
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x50
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x48], rdi
xor ebp, ebp
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r13
mov r13, rdx
mov esi, r9d
mov rdi, r8
mov ebx, ebp
mov r12b, 1
test r9d, r9d
je 0x140004655
mov qword [rsp + 0x30], r14
lea r14, [0x140008fa0]
nop word [rax + rax]
mov rcx, qword [0x140008fb8]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
je 0x14000460d
mov r8d, esi
lea r9, [rsp + 0x70]
mov rdx, rdi
mov rcx, r13
sub r8d, ebx
mov dword [0x140008fb0], ebp
mov dword [0x140008fb4], ebp
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14000461a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x14000464d
lea r8, [rsp + 0x78]
mov r9d, 1
mov rdx, r14
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x140004648
mov eax, dword [rsp + 0x78]
test eax, eax
je 0x140004650
add ebx, eax
add rdi, rax
cmp ebx, esi
jb 0x1400045d0
jmp 0x140004650
xor r12b, r12b
jmp 0x140004650
xor r12b, r12b
mov r14, qword [rsp + 0x30]
mov r13, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
cmp ebx, esi
mov rsi, qword [rsp + 0x68]
setne bpl
test r12b, bpl
mov r12, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x60]
je 0x140004684
mov ecx, 0x26
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
add rsp, 0x50
pop rbx
ret

Function at 0x140004690
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x30
xor ebp, ebp
mov esi, r9d
mov rdi, r8
mov r12, rdx
mov ebx, ebp
test r9d, r9d
je 0x14000473b
mov qword [rsp + 0x60], r13
lea r13, [0x140008fa0]
nop dword [rax]
mov rcx, qword [0x140008fb8]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
je 0x1400046fd
mov r8d, esi
lea r9, [rsp + 0x70]
mov rdx, rdi
mov rcx, r12
sub r8d, ebx
mov dword [0x140008fb0], ebp
mov dword [0x140008fb4], ebp
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14000470a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x140004736
lea r8, [rsp + 0x78]
mov r9d, 1
mov rdx, r13
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x140004736
mov ecx, dword [rsp + 0x78]
test ecx, ecx
je 0x140004736
add ebx, ecx
add rdi, rcx
cmp ebx, esi
jb 0x1400046c0
mov r13, qword [rsp + 0x60]
cmp ebx, esi
sete bpl
mov eax, ebp
add rsp, 0x30
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14000486c
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rsi
mov qword [rsp + 0x10], rdi
mov qword [rsp + 0x18], r12
push r13
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
xor r12d, r12d
xor eax, eax
lock cmpxchg qword [0x140008fc8], rdi
je 0x1400048ba
cmp rax, rdi
jne 0x1400048ad
mov edi, 1
mov r12d, edi
jmp 0x1400048bf
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140004891
mov edi, 1
mov eax, dword [0x140008fc0]
cmp eax, edi
jne 0x1400048d5
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x140004932
mov eax, dword [0x140008fc0]
test eax, eax
jne 0x14000492c
mov dword [0x140008fc0], edi
lea r13, [0x140005370]
lea rsi, [0x140005358]
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], eax
cmp rsi, r13
jae 0x14000491e
test eax, eax
jne 0x14000491e
mov rcx, qword [rsi]
test rcx, rcx
je 0x140004913
call rcx
mov dword [rsp + 0x20], eax
add rsi, 8
mov qword [rsp + 0x28], rsi
jmp 0x1400048fc
test eax, eax
je 0x140004932
mov eax, 0xff
jmp 0x140004a04
mov dword [0x14000836c], edi
mov eax, dword [0x140008fc0]
cmp eax, edi
jne 0x140004959
lea rdx, [0x140005350]
lea rcx, [0x140005338]
call sub.msvcrt.dll__initterm
mov dword [0x140008fc0], 2
test r12d, r12d
jne 0x140004967
xor eax, eax
xchg qword [0x140008fc8], rax
cmp qword [0x140008fd0], 0
je 0x140004990
lea rcx, [0x140008fd0]
call fcn.140004d28
test eax, eax
je 0x140004990
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x140008fd0]
mov r8, qword [0x140008350]
mov rdx, qword [0x140008358]
mov ecx, dword [0x140008348]
call fcn.140002560
mov dword [0x140008368], eax
cmp dword [0x14000834c], 0
jne 0x1400049c0
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14000836c], 0
jne 0x1400049d5
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140008368]
jmp 0x140004a04
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
mov r12, qword [rsp + 0x50]
add rsp, 0x30
pop r13
ret
sub rsp, 0x28
call fcn.140098000
add rsp, 0x28
jmp 0x14000486c

Function at 0x140004d7c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x140004dc9
cmp rcx, 0xffffffffffffffff
je 0x140004dc9
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140004dc1
cmp dword [rcx + 0x3c], edx
jl 0x140004dc1
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140004dc1
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140004dc9
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140001154
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x10], 0
mov dword [rbp - 0x1c], 0x30
mov eax, dword [rbp - 0x1c]
mov rax, qword gs:[rax]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov rax, qword [rax + 8]
mov qword [rbp - 0x18], rax
mov dword [rbp - 4], 0
jmp 0x1400011ac
mov rax, qword [rbp - 0x10]
cmp rax, qword [rbp - 0x18]
jne 0x14000119e
mov dword [rbp - 4], 1
jmp 0x1400011e3
mov ecx, 0x3e8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [0x14012a490]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], 0
mov rcx, qword [rbp - 0x38]
mov rax, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x30]
lock cmpxchg qword [rdx], rcx
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x14000118b
mov rax, qword [0x14012a4a0]
mov eax, dword [rax]
cmp eax, 1
jne 0x1400011fd
mov ecx, 0x1f
call fcn.14010c5e0
jmp 0x14000123c
mov rax, qword [0x14012a4a0]
mov eax, dword [rax]
test eax, eax
jne 0x140001232
mov rax, qword [0x14012a4a0]
mov dword [rax], 1
mov rax, qword [0x14012a4e0]
mov rdx, rax
mov rax, qword [0x14012a4d0]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x14000123c
mov dword [0x14012e024], 1
mov rax, qword [0x14012a4a0]
mov eax, dword [rax]
cmp eax, 1
jne 0x140001270
mov rax, qword [0x14012a4c0]
mov rdx, rax
mov rax, qword [0x14012a4b0]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov rax, qword [0x14012a4a0]
mov dword [rax], 2
cmp dword [rbp - 4], 0
jne 0x140001294
mov rax, qword [0x14012a490]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], 0
mov rdx, qword [rbp - 0x50]
mov rax, qword [rbp - 0x48]
xchg qword [rax], rdx
mov rax, qword [0x14012a3e0]
mov rax, qword [rax]
test rax, rax
je 0x1400012bf
mov rax, qword [0x14012a3e0]
mov rax, qword [rax]
mov r8d, 0
mov edx, 2
mov ecx, 0
call rax
call fcn.14010b868
mov rax, qword [0x14012a520]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call rax
mov rdx, qword [0x14012a480]
mov qword [rdx], rax
lea rax, section..text
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.14010b060
mov eax, dword [0x14012e004]
lea rdx, [0x14012e008]
mov ecx, eax
call fcn.14000147c
call fcn.14010adf7
mov rax, qword [0x14012a410]
mov rax, qword [rax]
mov rdx, qword [0x14012e010]
mov qword [rax], rdx
mov rcx, qword [0x14012e010]
mov rdx, qword [0x14012e008]
mov eax, dword [0x14012e004]
mov r8, rcx
mov ecx, eax
call fcn.1400016d0
mov dword [0x14012e01c], eax
mov eax, dword [0x14012e020]
test eax, eax
jne 0x14000135d
mov eax, dword [0x14012e01c]
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
mov eax, dword [0x14012e024]
test eax, eax
jne 0x14000136c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x14012e01c]
add rsp, 0x70
pop rbp
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x14012a440]
mov dword [rax], 1
mov rax, qword [0x14012a450]
mov dword [rax], 1
mov rax, qword [0x14012a460]
mov dword [rax], 1
mov rax, qword [0x14012a400]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
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 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14010b070
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 sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.14010c3d0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x14010bd42
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14012e168]
test eax, eax
je 0x14010bdda
lea rax, [0x14012e140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14012e170]
mov qword [rbp - 8], rax
jmp 0x14010bdbe
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 0x14010bdb2
cmp qword [rbp - 0x10], 0
je 0x14010bdb2
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 0x14010bd78
lea rax, [0x14012e140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14010bddb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14010bee0
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 0x14010bf08
mov eax, 0
jmp 0x14010bf56
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 0x14010bf31
mov eax, 0
jmp 0x14010bf56
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 0x14010bf51
mov eax, 0
jmp 0x14010bf56
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x14010bf5c
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 0x14010bfda
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14010bfd1
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 0x14010bfd1
mov rax, qword [rbp - 8]
jmp 0x14010bfef
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 0x14010bfa4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x180001270
Capabilities:
Connect pipe
Create pipe

Disassembly:
mov rax, rsp
push rbx
sub rsp, 0x40
and qword [rax - 0x10], 0
and dword [rax - 0x18], 0
or qword [rdx], 0xffffffffffffffff
mov dword [rax - 0x20], r8d
mov rbx, rdx
mov edx, 3
mov dword [rax - 0x28], r8d
lea r9d, [rdx - 2]
lea r8d, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
jne 0x1800012b0
xor eax, eax
jmp 0x1800012d8
mov rcx, qword [rbx]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x1800012d3
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0x217
sete cl
test ecx, ecx
je 0x1800012b0
mov eax, 1
add rsp, 0x40
pop rbx
ret

Function at 0x1800012e0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
xor ebx, ebx
mov edi, r8d
mov rsi, rdx
and dword [rsp + 0x60], ebx
mov rbp, rcx
test r8d, r8d
je 0x18000133e
mov r14d, 0x2000
mov r8d, edi
mov edx, ebx
lea r9, [rsp + 0x60]
sub r8d, ebx
mov rcx, rbp
cmp r8d, r14d
cmova r8d, r14d
and qword [rsp + 0x20], 0
add rdx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x180001356
add ebx, dword [rsp + 0x60]
cmp ebx, edi
jb 0x18000130c
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
xor eax, eax
jmp 0x180001343

Function at 0x1800014d4
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
cmp dword [rcx], 0xa2a1de0
je 0x1800014f1
cmp dword [rcx], 0x56a2b5f0
jne 0x1800014fa
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitThread]
add rsp, 0x28
ret
Function at 0x180001714
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
xor ebx, ebx
lea rdi, [0x18001b228]
lea r15, str.ThisIsThePatchData
cmp byte [rdi - 0x208], 0
je 0x18000189d
cmp byte [rdi - 0x104], 0
je 0x18000189d
movsxd rbp, ebx
xor r14b, r14b
imul rbp, rbp, 0x270
add rbp, r15
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rsi, rax
test rax, rax
jne 0x1800017b2
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
jne 0x1800017af
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Patch_index__d_error__d_loading_library__s_n
lea rcx, [0x180021880]
mov r8d, ebx
mov r9d, eax
mov qword [rsp + 0x20], rbp
call fcn.1800010c8
jmp 0x18000188b
mov r14b, 1
lea r12, [rbp + 0x104]
mov rcx, rsi
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r15, rax
test rax, rax
jne 0x180001804
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Patch_index__d_error__d_getting_proc_address:__s__s__n
lea rcx, [0x180021880]
mov r8d, ebx
mov r9d, eax
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rbp
call fcn.1800010c8
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x180001884
test r14b, r14b
je 0x180001812
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
movsxd rcx, dword [rdi - 4]
movsxd rdx, dword [rdi]
lea r9, [rsp + 0x60]
add rcx, r15
mov r8d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x18000183a
lea rdx, str.Patch_index__d_error_setting_memory_protection_n
jmp 0x180001875
movsxd rcx, dword [rdi - 4]
movsxd r8, dword [rdi]
lea rdx, [rbp + 0x20c]
add rcx, r15
call fcn.180002e80
movsxd rcx, dword [rdi - 4]
movsxd rdx, dword [rdi]
mov r8d, dword [rsp + 0x60]
lea r9, [rsp + 0x68]
add rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x180001884
lea rdx, str.Patch_index__d_error_re_setting_memory_protection_n
lea rcx, [0x180021880]
mov r8d, ebx
call fcn.1800010c8
lea r15, str.ThisIsThePatchData
inc ebx
add rdi, 0x270
cmp ebx, 4
jl 0x18000173a
xor edx, edx
mov r8d, 0x9c0
mov rcx, r15
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
jmp fcn.180003380

Function at 0x1800018c4
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
and qword [rsp + 0x50], 0
lea r8, [rsp + 0x50]
mov rbx, rdx
mov rdi, rcx
call fcn.18000192c
test eax, eax
je 0x1800018ef
mov rax, qword [rsp + 0x50]
jmp 0x18000191f
mov rcx, qword [rsp + 0x50]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x180001904
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
mov r9, rbx
mov r8, rdi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x18000192c
Capabilities:
Create thread
Resume thread

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x520
mov rax, qword [0x1800201e0]
xor rax, rsp
mov qword [rsp + 0x510], rax
mov rdi, qword [rsp + 0x30]
mov esi, dword [rsp + 0x30]
mov rbp, rcx
lea rcx, str.___THREAD.C_____________________________________________________
xor ebx, ebx
mov r15, rdx
mov rax, rcx
mov r14, r8
lea rdx, [0x1800124d1]
lea r9d, [rbx + 0x40]
cmp byte [rax], 0x21
jne 0x180001984
mov rdi, rdx
jmp 0x18000198d
cmp byte [rax], 0x2b
jne 0x18000198f
movsx esi, byte [rax + 1]
mov byte [rax], bl
inc rdx
inc rax
dec r9
jne 0x18000197a
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x1800019ac
xor eax, eax
jmp 0x180001a2d
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1800019a5
mov r8d, esi
mov r9, r15
xor edx, edx
xor ecx, ecx
add r8, rax
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
je 0x1800019a5
lea rdx, [rsp + 0x40]
mov rcx, rax
mov qword [r14], rax
mov dword [rsp + 0x70], 0x10000b
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x1800019a5
lea rdx, [rsp + 0x40]
mov rcx, rdi
mov qword [rsp + 0xc0], rbp
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
je 0x1800019a5
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
setne bl
mov eax, ebx
mov rcx, qword [rsp + 0x510]
xor rcx, rsp
call fcn.180003520
mov rbx, qword [rsp + 0x568]
add rsp, 0x520
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret