joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1406c1268
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1406c13ef
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1406c1299
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406c127f
add dl, dl
jne 0x1406c12a6
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406c1306
xor eax, eax
add dl, dl
jne 0x1406c12b5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406c13bd
add dl, dl
jne 0x1406c12c6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406c12d3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406c12e0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406c12ed
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1406c12fa
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1406c128e
mov eax, 1
add dl, dl
jne 0x1406c1316
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406c1323
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406c130b
sub eax, ebx
mov ebx, 1
jne 0x1406c135c
mov ecx, 1
add dl, dl
jne 0x1406c133e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406c134b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406c1333
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406c128e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1406c1378
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406c1385
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406c136d
cmp eax, 0x7d00
jae 0x1406c13ab
cmp eax, 0x500
jb 0x1406c13a6
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406c128e
cmp eax, 0x7f
ja 0x1406c13ae
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406c128e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1406c13e2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1406c128e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14000c330
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14000c33d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14000c34d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14000c335
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x14000c365
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14000c352
sub eax, 3
jb 0x14000c37f
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14000c3b6
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x14000c3a6
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14000c3a4
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14000c393
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.14000c2f2
jmp 0x14000c33d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0xc00
mov dl, 0
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14000c402
cmp rsi, rcx
jae 0x14000c40a
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14000c3e9
cmp al, 0x8f
ja 0x14000c3e9
cmp byte [rsi - 2], 0xf
je 0x14000c3ef
sub al, 0xe8
cmp al, 1
ja 0x14000c3d3
cmp rsi, rcx
jae 0x14000c40a
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14000c3d9
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14000c40a
lodsb al, byte [rsi]
jmp 0x14000c3e9
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0xa000]
mov eax, dword [rdi]
or eax, eax
je 0x14000c467
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x10720]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14000c417
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14000c461
mov qword [rbx], rax
add rbx, 8
jmp 0x14000c437
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x217]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14000c4bf
sub rsp, 0xffffffffffffff80
jmp 0x140001980
Function at 0x140001520
Capabilities:
Create thread

Disassembly:
sub rsp, 0xa8
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x90], rax
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
test rax, rax
je 0x14000154f
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_ShowWindow]
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_GetCursorPos]
mov ecx, 0x10
call fcn.1400016f0
mov rcx, qword [rsp + 0x30]
mov qword [rax], rcx
lea rcx, [0x140001280]
mov qword [rax + 8], rcx
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x140001680]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140001642
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x1400015fd
nop word [rax + rax]
lea rcx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_DispatchMessageW]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x1400015d0
cmp dword [rsp + 0x48], 0
je 0x140001636
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x50], xmm0
lea rcx, [rsp + 0x50]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x140001636
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1400016d0
add rsp, 0xa8
ret
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rsp + 0x48], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3

Function at 0x140002070
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rbx, rcx
je 0x180001440
xor edi, edi
cmp dword [rcx + 0xc], edi
jbe 0x18000142e
mov rax, qword [rbx]
xor edx, edx
mov r8d, dword [rax + rdi*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x180001427
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [rbx + 0xc]
jb 0x1800013fb
mov r8, qword [rbx]
xor edx, edx
mov rcx, qword [0x180022f58]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x180001450
Capabilities:
Allocate or change rwx memory

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov dword [rax + 0x10], edx
push rdi
sub rsp, 0x20
mov eax, ecx
imul rdi, rax, 0x38
add rdi, qword [0x1800256b0]
mov rdx, qword [rdi]
mov cl, byte [rdi + 0x20]
mov rsi, rdx
lea rbx, [rdx - 5]
and cl, 1
je 0x180001489
mov rsi, rbx
movzx eax, cl
lea r9, [rsp + 0x38]
test cl, cl
mov r8d, 0x40
cmove rbx, rdx
lea rbp, [rax*2 + 5]
mov rcx, rbx
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1800014bc
mov eax, 0xa
jmp 0x180001509
mov byte [rbx], 0xe9
mov eax, dword [rdi + 8]
sub eax, esi
sub eax, 5
mov dword [rbx + 1], eax
test byte [rdi + 0x20], 1
je 0x1800014d8
mov rax, qword [rdi]
mov word [rax], 0xf9eb
mov r8d, dword [rsp + 0x38]
lea r9, [rsp + 0x38]
mov rdx, rbp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rbp
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
or byte [rdi + 0x20], 6
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x1800018e0
Capabilities:
Check for software breakpoints

Disassembly:
mov r8b, byte [rcx]
mov r9d, edx
test r8b, r8b
je 0x1800018f7
cmp r8b, 0x90
je 0x1800018f7
cmp r8b, 0xcc
jne 0x180001919
mov r10d, 1
mov edx, r10d
cmp r9d, r10d
jbe 0x180001915
mov eax, edx
cmp byte [rax + rcx], r8b
jne 0x180001919
add edx, r10d
cmp edx, r9d
jb 0x180001905
mov eax, r10d
ret
xor eax, eax
ret
Function at 0x180001c80
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rdi, rcx
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rbp - 0x58]
cmp rdi, 0x40000000
jbe 0x180001cca
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rbx, qword [0x1800256a0]
lea r12, [rdi + 0x40000000]
cmp qword [rbp - 0x50], r12
cmovbe r12, qword [rbp - 0x50]
sub r12, 0xfff
xor esi, esi
test rbx, rbx
je 0x180001d08
cmp rbx, r14
jb 0x180001d03
cmp rbx, r12
jae 0x180001d03
cmp qword [rbx + 8], rsi
jne 0x180001e5f
mov rbx, qword [rbx]
jmp 0x180001cea
mov r15, rdi
cmp rdi, r14
jb 0x180001d8c
mov r13d, dword [rbp - 0x38]
xor edx, edx
mov rax, r15
div r13
sub r15, rdx
sub r15, r13
cmp r15, r14
jb 0x180001d83
mov r8d, 0x30
lea rdx, [rbp - 0x30]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180001d83
cmp dword [rbp - 0x10], 0x10000
je 0x180001d53
mov r15, qword [rbp - 0x28]
cmp r15, r13
jb 0x180001d83
jmp 0x180001d1f
test r15, r15
je 0x180001d83
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x180001e24
cmp r15, r14
jae 0x180001d10
test rbx, rbx
jne 0x180001e24
cmp rdi, r12
ja 0x180001e5f
mov r15d, dword [rbp - 0x38]
xor edx, edx
mov rax, rdi
mov r14d, r15d
div r15
mov eax, r15d
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r12
ja 0x180001e5f
mov r8d, 0x30
lea rdx, [rbp - 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180001e5f
cmp dword [rbp - 0x10], 0x10000
je 0x180001dfa
xor edx, edx
lea edi, [r15 - 1]
add rdi, qword [rbp - 0x18]
add rdi, qword [rbp - 0x30]
mov rax, rdi
div r14
sub rdi, rdx
cmp rdi, r12
jmp 0x180001db3
test rdi, rdi
je 0x180001e5f
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jmp 0x180001d86
lea rcx, [rbx + 0x40]
mov dword [rbx + 0x10], esi
mov edx, 0x40
mov qword [rcx], rsi
mov rax, rcx
mov qword [rbx + 8], rcx
add rdx, 0x40
add rcx, 0x40
mov rsi, rax
cmp rdx, 0xfc0
jbe 0x180001e30
mov rax, qword [0x1800256a0]
mov qword [rbx], rax
mov qword [0x1800256a0], rbx
lea r11, [rsp + 0x80]
mov rax, rbx
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x180008f84
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.1800147e0
sub rsp, rax
mov rax, qword [0x1800210e8]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.18000af4c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x180008fd3
mov rax, rbp
jmp 0x1800090db
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, sym.SleepPatcher.dll_Ordinal_122
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x226b0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.18000cae4
mov r13, rax
lea rax, sym.SleepPatcher.dll_Ordinal_122
mov rcx, qword [rax + rbx*8 + 0x226b0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1800090d7
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 0x1800090d7
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.18000cae4
test rax, rax
js 0x1800090d7
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1800090d7
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1800090c9
lea r8, sym.SleepPatcher.dll_Ordinal_122
cmp rcx, rdx
jae 0x1800090c9
cmp byte [rcx], 0xd
jne 0x1800090af
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1800090be
cmp byte [rcx + 1], 0xa
jne 0x1800090be
inc rcx
jmp 0x1800090be
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x213d0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x180009091
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1800090db
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.180004050
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 0x18000bd90
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x1800226b0]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x18000bdee
cmp word [rdx], r12w
jne 0x18000bdee
or byte [rax + r8*8 + 0x38], cl
jmp 0x18000bdf4
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x18000bf4f
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x18000bf2a
lea r9, [rcx + 2]
cmp ax, r13w
je 0x18000be2d
mov rcx, r9
jmp 0x18000be50
cmp r9, rdx
jae 0x18000be67
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x18000be11
jmp 0x18000bf4f
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18000bf24
cmp dword [rsp + 0x80], edi
je 0x18000bf24
mov rdx, r14
lea r11, [0x1800226b0]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x18000befd
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x18000bed0
mov word [rbx], r12w
jmp 0x18000bf4b
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x18000bed9
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x18000bf4b
cmp word [rsp + 0x70], r12w
jne 0x18000bf0a
cmp rbx, rsi
je 0x18000beca
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.18000caec
cmp word [rsp + 0x70], r12w
je 0x18000bf4f
mov word [rbx], r13w
jmp 0x18000bf4b
lea r11, [0x1800226b0]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x18000bf47
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x18000bf4f
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x18000c7a4
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x18000c7d6
call fcn.18000ba10
mov dword [rax], 0x16
call fcn.18000aee4
jmp 0x18000c8f5
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x18000c8f5
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x18000c8f5
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x18000c805
lock or dword [rcx + 0x14], 0x10
jmp 0x18000c8f5
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x18000c819
call fcn.180012094
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.18000af4c
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.18000c23c
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x18000c8e3
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x18000c8ae
mov rcx, rsi
call fcn.18000af4c
cmp eax, edi
je 0x18000c899
mov rcx, rsi
call fcn.18000af4c
cmp eax, 0xfffffffe
je 0x18000c899
mov rcx, rsi
call fcn.18000af4c
movsxd rbx, eax
lea r14, [0x1800226b0]
mov rcx, rsi
sar rbx, 6
call fcn.18000af4c
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x18000c8a0
lea rdx, [0x1800214d0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x18000c8ae
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x18000c8d2
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x18000c8d2
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x18000c8d2
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x18000c8f8
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x18000ee1c
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x18000ee4c
xor eax, eax
jmp 0x18000ef0f
mov rbp, rbx
cmp word [rax], si
je 0x18000ee71
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18000ee58
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18000ee54
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.18000ed6c
movsxd r14, eax
test eax, eax
jne 0x18000eeaf
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18000ee45
mov rcx, r14
call fcn.18000a3a4
mov rdi, rax
test rax, rax
jne 0x18000eec8
xor ecx, ecx
call fcn.18000ab20
jmp 0x18000eea4
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.18000ed6c
test eax, eax
jne 0x18000eef9
mov rcx, rdi
call fcn.18000ab20
jmp 0x18000ef03
xor ecx, ecx
call fcn.18000ab20
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x180013410
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.18000caec
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.18000caec
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x180013560
cmp rax, 0xffffffffffffffff
je 0x180013560
xor edi, edi
test rbp, rbp
jle 0x18001350b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.18000d398
mov rbx, rax
test rax, rax
jne 0x180013498
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x180013501
mov edx, 0x8000
mov ecx, r14d
call fcn.180013298
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.180010bf0
cmp eax, 0xffffffff
je 0x1800134e1
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1800134a8
mov edx, r15d
mov ecx, r14d
call fcn.180013298
jmp 0x180013501
cmp byte [rsi + 0x38], dil
je 0x1800134f8
cmp dword [rsi + 0x34], 5
jne 0x1800134f8
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x180013501
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.18000ab20
jmp 0x180013574
jns 0x180013574
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.18000caec
cmp rax, 0xffffffffffffffff
jne 0x18001352c
cmp byte [rsi + 0x30], dil
je 0x180013574
mov edi, dword [rsi + 0x2c]
jmp 0x180013574
mov ecx, r14d
call fcn.18001007c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x180013574
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x180013574
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x18001356d
mov eax, dword [rsi + 0x2c]
jmp 0x180013572
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.18000caec
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x180014770
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180014798
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x180014798
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400029a0
Capabilities:
Parse pe header

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

Function at 0x140007308
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 0x140007377
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140007377
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140007377
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140007377
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140007377
cmp dword [rcx + 0x84], 0xe
jbe 0x140007377
cmp dword [rcx + 0xf8], 0
je 0x140007377
mov ecx, ebx
call fcn.14000747c
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.14000713c
nop
cmp dword [rbp + 0x20], 0
je 0x1400073c5
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400073d0
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140007308

Function at 0x140007568
Capabilities:
Parse pe header

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