joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400a8e60
Capabilities:
Query environment variable

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x148
xor eax, eax
mov r9, rcx
mov ecx, 0x20
mov rbx, rdx
mov qword [rsp + 0x20], 0
lea rsi, [rsp + 0x40]
test r9, r9
mov rbp, r8
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov rdi, rsi
rep stosq qword [rdi], rax
mov qword [rsp + 0x38], 0
je 0x1400a72f2
mov r8d, dword [0x140176b98]
mov rcx, r9
test r8d, r8d
jne 0x1400a73b0
call fcn.1400a68b0
mov rdx, rax
mov rcx, rsi
call sub.msvcrt.dll_wcscpy
test rbx, rbx
je 0x1400a7335
mov edx, dword [0x140176b98]
mov rcx, rbx
test edx, edx
jne 0x1400a73a0
call fcn.1400a68b0
mov rdi, rax
mov rcx, rdi
call sub.msvcrt.dll_wcslen
lea rcx, [rax + rax + 2]
call sub.msvcrt.dll_malloc
test rax, rax
mov rbx, rax
je 0x1400a7335
mov rdx, rdi
mov rcx, rax
call sub.msvcrt.dll_wcscpy
lea rdi, [rsp + 0x20]
test rbp, rbp
je 0x1400a7361
mov eax, dword [0x140176b98]
mov rcx, rbp
test eax, eax
jne 0x1400a7390
call fcn.1400a68b0
mov rdx, rax
lea rdi, [rsp + 0x20]
mov rcx, rdi
call sub.msvcrt.dll_wcscpy
mov r8, rdi
mov rdx, rbx
mov rcx, rsi
call fcn.1400a7150
mov rcx, rbx
call sub.msvcrt.dll_free
mov eax, 1
add rsp, 0x148
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.1400a6970
mov rdx, rax
jmp 0x1400a7354
call fcn.1400a6970
mov rdi, rax
jmp 0x1400a7310
call fcn.1400a6970
mov rdx, rax
jmp 0x1400a72ea
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rdi, rdx
mov edx, dword [0x14087f624]
mov rbx, rcx
mov rsi, r8
test edx, edx
je 0x1400a8ec0
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
test rax, rax
je 0x1400a8eb0
mov dword [rsp + 0x20], 0
mov r9, rsi
mov rdx, rdi
mov rcx, rbx
lea r8, [0x1401a58a4]
call fcn.1400a8700
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
call fcn.1400a5760
test eax, eax
jne 0x1400a8e85
nop dword [rax]
lea rcx, str.SSH_CLIENT
call sub.msvcrt.dll_getenv
test rax, rax
je 0x1400a8edb
mov eax, dword [0x14087f620]
test eax, eax
je 0x1400a8f30
test rbx, rbx
je 0x1400a8ef3
lea rdx, str.tinyfd_query
mov rcx, rbx
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x1400a8f10
mov r8, rsi
mov rdx, rdi
mov rcx, rbx
add rsp, 0x30
pop rbx
pop rsi
pop rdi
jmp 0x1400a7280
movabs rax, 0x73776f646e6977
mov qword [0x14087f220], rax
mov eax, 1
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
lea rcx, [0x1401a5837]
call sub.msvcrt.dll_getenv
test rax, rax
jne 0x1400a8edb
jmp 0x1400a8e85
Function at 0x1400af020
Capabilities:
Query environment variable
Query or enumerate registry value
Write file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
lea rcx, str.GLUT_DIALS_SERIAL
call sub.msvcrt.dll_getenv
test rax, rax
mov rcx, rax
je 0x1400af1a0
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x74], 0
mov edx, 0xc0000000
mov qword [rsp + 0x7c], 0
mov qword [rsp + 0x84], 0
mov dword [rsp + 0x70], 0x1c
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
test rax, rax
mov rbx, rax
je 0x1400af218
mov ecx, 0x38
call sub.msvcrt.dll_malloc
mov ecx, 6
lea rbp, [rax + 8]
mov rsi, rax
xor eax, eax
lea rdx, [rsi + 0x1c]
mov rdi, rbp
rep stosq qword [rdi], rax
lea rdi, [rsp + 0x70]
mov rcx, rbx
mov qword [rsi], rbx
call qword [sym.imp.KERNEL32.dll_GetCommState]
mov rdx, rbp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetCommTimeouts]
lea rbp, [rsp + 0x50]
mov rdx, rdi
mov dword [rsp + 0x70], 0x1c
lea rcx, str.96_n_8_1
call qword [sym.imp.KERNEL32.dll_BuildCommDCBA]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetCommState]
mov rdx, rbp
mov rcx, rbx
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x50], 0
mov dword [rsp + 0x58], 1
mov dword [rsp + 0x60], 1
call qword [sym.imp.KERNEL32.dll_SetCommTimeouts]
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov rcx, qword [rsi]
mov r9, rdi
mov rdx, rbp
mov r8d, 1
mov qword [0x140882ce0], rsi
mov byte [rsp + 0x50], 0x20
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor r8d, r8d
mov ecx, 0xa
lea rdx, [0x1400af240]
call fcn.1400acee0
mov rax, qword [0x1401c3d60]
mov byte [rax + 0xb0], 1
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov dword [rsp + 0x4c], 0x100
lea r8, [rsp + 0x70]
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x50], 1
lea rdx, str.SOFTWAREFreeGLUT
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x1400af18a
lea rax, [rsp + 0x4c]
mov rcx, qword [rsp + 0x70]
xor r8d, r8d
lea rbx, [0x140882be0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x50]
lea rdx, str.DialboxSerialPort
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x70]
test eax, eax
jne 0x1400af230
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rbx
jmp 0x1400af043
mov qword [0x140882ce0], 0
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
ret
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400af18a

Function at 0x1400af4f0
Capabilities:
Query environment variable
Query or enumerate registry value
Write file on windows

Disassembly:
mov rax, qword [0x1401c3d60]
cmp byte [rax + 0xb0], 0
je 0x1400af508
ret
jmp fcn.1400af020
Function at 0x1400af580
Capabilities:
Query or enumerate registry value

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x258
cmp byte [rcx + 0x1d0], 0
mov r13, rcx
mov rbx, rdx
je 0x1400af5c0
xor eax, eax
add rsp, 0x258
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rax, str.CurrentJoystickSettings
mov edx, 0x100
mov rdi, qword [sym.imp.msvcrt.dll__snprintf]
lea rsi, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea r12, [rsp + 0x48]
lea rax, [rcx + 0x70]
mov rcx, rsi
lea r9, str.SystemCurrentControlSetControlMediaResourcesJoystick
mov qword [rsp + 0x20], rax
lea r8, str._s_s_s
call rdi
xor r8d, r8d
mov rbp, qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov rdx, rsi
mov qword [rsp + 0x20], r12
mov r9d, 1
mov rcx, 0xffffffff80000002
call rbp
test eax, eax
jne 0x1400af5a2
mov eax, dword [r13 + 0x1c8]
lea rdx, str.OEMName
mov rcx, rsi
mov dword [rsp + 0x44], 0x100
mov qword [rsp + 0x20], rdx
lea r15, [rsp + 0x44]
mov edx, 0x100
lea r8, str.Joystick_d_s
lea r9d, [rax + 1]
call rdi
lea r10, [rsp + 0x150]
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x20], r10
mov rdx, rsi
mov qword [rsp + 0x38], r10
mov r14, qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov qword [rsp + 0x28], r15
call r14
mov rcx, qword [rsp + 0x48]
mov r13, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rsp + 0x34], eax
call r13
mov eax, dword [rsp + 0x34]
test eax, eax
jne 0x1400af5a2
mov r10, qword [rsp + 0x38]
lea r9, str.SystemCurrentControlSetControlMediaPropertiesPrivatePropertiesJoystickOEM
mov edx, 0x100
mov rcx, rsi
lea r8, str._s_s
mov qword [rsp + 0x20], r10
call rdi
xor r8d, r8d
mov qword [rsp + 0x20], r12
mov r9d, 1
mov rdx, rsi
mov rcx, 0xffffffff80000002
call rbp
test eax, eax
jne 0x1400af5a2
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x20], rbx
lea rdx, str.OEMName
mov dword [rsp + 0x44], pe_nt_image_headers64
mov qword [rsp + 0x28], r15
call r14
mov rcx, qword [rsp + 0x48]
mov ebx, eax
call r13
xor eax, eax
test ebx, ebx
sete al
jmp 0x1400af5a4

Function at 0x1400b05e0
Capabilities:
Log keystrokes via polling

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0xa0
mov ebx, 1
call rsi
test ax, ax
js 0x1400b060b
mov ecx, 0xa1
call rsi
movsx ebx, ax
shr ebx, 0x1f
mov ecx, 0xa2
call rsi
mov edx, eax
mov eax, 2
test dx, dx
js 0x1400b062b
mov ecx, 0xa3
call rsi
shr eax, 0xe
and eax, 2
or ebx, eax
mov ecx, 0xa4
call rsi
mov edx, eax
mov eax, 4
test dx, dx
js 0x1400b064d
mov ecx, 0xa5
call rsi
shr eax, 0xd
and eax, 4
or eax, ebx
add rsp, 0x28
pop rbx
pop rsi
ret
Function at 0x1400b6a70
Capabilities:
Hide graphical window

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x1401c3d60]
cmp byte [rsi + 0x1c], 0
je 0x1400b6ab0
mov rbx, qword [0x1401c3d90]
mov rax, qword [rbx + 0x30]
test rax, rax
je 0x1400b6ad3
mov rcx, qword [rax + 0x18]
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
mov rax, qword [rbx + 0x30]
mov byte [rax + 0x54], 0
add rsp, 0x28
pop rbx
pop rsi
ret
lea rdx, str.glutHideWindow
lea rcx, [0x1401a7e40]
call fcn.1400b0690
mov rbx, qword [0x1401c3d90]
mov rax, qword [rbx + 0x30]
test rax, rax
jne 0x1400b6a93
cmp dword [rsi + 0x94], 2
je 0x1400b6a93
lea rdx, str.glutHideWindow
lea rcx, str._ERROR:__Function___s__called_with_no_current_window_defined.
call fcn.1400b0690
mov rax, qword [rbx + 0x30]
jmp 0x1400b6a93
Function at 0x1400b76c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
movaps xmmword [rsp + 0x40], xmm6
movaps xmmword [rsp + 0x50], xmm7
mov rax, qword [0x1401c3d60]
cmp byte [rax + 0x1c], 0
mov rsi, rcx
mov rdi, rdx
je 0x1400b7890
cmp rsi, 3
je 0x1400b78ad
cmp rsi, 2
je 0x1400b78f8
cmp rsi, 6
je 0x1400b7908
cmp rsi, 7
je 0x1400b78e8
cmp rsi, 8
je 0x1400b7918
cmp rsi, 4
je 0x1400b7928
cmp rsi, 5
mov rbx, qword [0x1401c3d50]
jne 0x1400b78c0
nop word cs:[rax + rax]
test rdi, rdi
je 0x1400b7878
cmp byte [rdi], 0
je 0x1400b7878
mov ecx, 1
pxor xmm6, xmm6
call qword [sym.imp.OPENGL32.dll_glPushClientAttrib]
mov rsi, qword [sym.imp.OPENGL32.dll_glPixelStorei]
xor edx, edx
mov ecx, 0xcf0
call rsi
xor edx, edx
mov ecx, 0xcf1
call rsi
xor edx, edx
mov ecx, 0xcf2
call rsi
xor edx, edx
mov ecx, 0xcf3
call rsi
xor edx, edx
mov ecx, 0xcf4
call rsi
mov edx, 1
mov ecx, 0xcf5
call rsi
movzx eax, byte [rdi]
lea rsi, [rdi + 1]
movss xmm7, dword [0x1401a81a0]
mov rdi, qword [sym.imp.OPENGL32.dll_glBitmap]
test al, al
jne 0x1400b7813
jmp 0x1400b7859
mov rcx, qword [rbx + 0x10]
pxor xmm0, xmm0
add rsi, 1
movss xmm3, dword [rbx + 0x1c]
movss xmm2, dword [rbx + 0x18]
mov rbp, qword [rcx + rax*8]
movzx ecx, byte [rbp]
lea rax, [rbp + 1]
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], rax
cvtsi2ss xmm0, ecx
movss dword [rsp + 0x20], xmm0
call rdi
movzx eax, byte [rbp]
pxor xmm0, xmm0
cvtsi2ss xmm0, eax
movzx eax, byte [rsi - 1]
test al, al
addss xmm6, xmm0
je 0x1400b7859
cmp al, 0xa
mov edx, dword [rbx + 0xc]
jne 0x1400b77c0
neg edx
pxor xmm0, xmm0
add rsi, 1
xor ecx, ecx
cvtsi2ss xmm0, edx
xorps xmm6, xmm7
xor edx, edx
movss dword [rsp + 0x20], xmm6
pxor xmm3, xmm3
movaps xmm2, xmm3
pxor xmm6, xmm6
mov qword [rsp + 0x30], 0
movss dword [rsp + 0x28], xmm0
call rdi
movzx eax, byte [rsi - 1]
test al, al
jne 0x1400b7813
movaps xmm6, xmmword [rsp + 0x40]
movaps xmm7, xmmword [rsp + 0x50]
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.OPENGL32.dll_glPopClientAttrib]
movaps xmm6, xmmword [rsp + 0x40]
movaps xmm7, xmmword [rsp + 0x50]
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
ret
lea rdx, str.glutBitmapString
lea rcx, [0x1401a8088]
call fcn.1400b0690
cmp rsi, 3
jne 0x1400b76f3
mov rbx, qword [str.hKe_]
jmp 0x1400b7740
movaps xmm6, xmmword [rsp + 0x40]
mov rdx, rsi
movaps xmm7, xmmword [rsp + 0x50]
lea rcx, str.font_0x_08x_not_found
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.1400b0770
mov rbx, qword [0x1401c3d20]
jmp 0x1400b7740
mov rbx, qword [0x1401c3d00]
jmp 0x1400b7740
mov rbx, qword [0x1401c3d10]
jmp 0x1400b7740
mov rbx, qword [0x1401c3d30]
jmp 0x1400b7740
mov rbx, qword [0x1401c3d40]
jmp 0x1400b7740
Function at 0x1400c29d0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.1400d55a0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.1400d55a0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x1400c2a40
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140882ea4]
test esi, esi
mov rbx, rcx
jle 0x1400c2b70
mov rax, qword [0x140882ea8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400c2a8b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400c2b15
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400c2a70
mov rcx, rbx
call fcn.1400c34b0
test rax, rax
mov rdi, rax
je 0x1400c2b92
mov rax, qword [0x140882ea8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400c35f0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140882ea8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400c2b77
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400c2b0e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400c2b20
add dword [0x140882ea4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x140882ea8]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400c2b0e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400c29d0
nop dword [rax]
xor esi, esi
jmp 0x1400c2a98
mov rax, qword [0x140882ea8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call fcn.1400c29d0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.1400c29d0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400c3100
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140882f00]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140882ee0]
test rbx, rbx
je 0x1400c315c
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 eax, eax
jne 0x1400c3153
test rsi, rsi
je 0x1400c3153
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400c3138
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 0x1400c3370
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400c33a8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400c33b0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x1400c3380
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400c33a8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400c33b0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x1400c3390
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400c33a8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400c33b0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

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

Disassembly:
mov rdx, qword [0x1401c39b0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400c34d0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400c34d8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400c34d0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400c352d
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]
cmp rcx, r8
mov rdx, r8
jb 0x1400c3524
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400c34d0
add rax, 0x28
cmp rax, r9
jne 0x1400c3510
xor eax, eax
ret

Function at 0x1400c3530
Capabilities:
Parse pe header

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

Function at 0x1400c35f0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1401c39b0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400c360f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400c3618
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x1400c49a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x138
mov rbx, rcx
call sub.msvcrt.dll__errno
test rbx, rbx
mov dword [rax], 0
je 0x1400c4ae0
cmp byte [rbx], 0
je 0x1400c4aa8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400c4af0
test al, 0x10
je 0x1400c4aa8
lea rdi, [rsp + 0x20]
mov rdx, rbx
mov r8d, 0x104
mov rcx, rdi
call sub.msvcrt.dll__fullpath
mov rcx, rdi
call sub.msvcrt.dll_strlen
lea rcx, [rax + 0x24b]
mov rsi, rax
call sub.msvcrt.dll_malloc
test rax, rax
mov rbx, rax
je 0x1400c4aff
lea rbp, [rsi + 1]
mov rdx, rdi
lea rcx, [rax + 0x244]
mov r8, rbp
call sub.msvcrt.dll_memcpy
cmp byte [rbx + 0x244], 0
mov rcx, rax
je 0x1400c4a50
movzx eax, byte [rbx + rsi + 0x243]
cmp al, 0x5c
je 0x1400c4a50
cmp al, 0x2f
jne 0x1400c4ac8
lea rdx, [rbx + 0x130]
mov eax, 0x2a
mov word [rcx + rsi], ax
mov rdi, rdx
xor eax, eax
mov ecx, 0x20
mov qword [rbx + 0x238], 0xffffffffffffffff
mov dword [rbx + 0x240], 0
mov qword [rbx + 0x128], 0
rep stosq qword [rdi], rax
mov rax, rbx
mov dword [rdi], 0
add rsp, 0x138
pop rbx
pop rsi
pop rdi
pop rbp
ret
call sub.msvcrt.dll__errno
xor ebx, ebx
mov dword [rax], 0x14
mov rax, rbx
add rsp, 0x138
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov edx, 0x5c
mov word [rcx + rsi], dx
mov rsi, rbp
jmp 0x1400c4a50
call sub.msvcrt.dll__errno
xor ebx, ebx
mov dword [rax], 0xe
jmp 0x1400c4ab5
call sub.msvcrt.dll__errno
xor ebx, ebx
mov dword [rax], 2
jmp 0x1400c4ab5
call sub.msvcrt.dll__errno
xor ebx, ebx
mov dword [rax], 0xc
jmp 0x1400c4ab5
Function at 0x140139350
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, qword [rdi]
call sub.msvcrt.dll__fileno_1
mov ecx, eax
mov r8d, ebx
mov rdx, rsi
call sub.msvcrt.dll__read
cmp eax, 0xffffffff
movsxd rbp, eax
je 0x140139398
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x14013936a
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x140173ee0
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x14017dec0]
jmp 0x1400c4310

Function at 0x140173ef0
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x14017dec0]
jmp 0x1400c4310
Function at 0x180001f2c
Capabilities:
Execute syscall

Disassembly:
mov r10, rcx
mov eax, dword [0x1802b62d8]
syscall
ret

Function at 0x180001f38
Capabilities:
Execute syscall

Disassembly:
mov r10, rcx
mov eax, dword [0x1802b62dc]
syscall
ret
Function at 0x18000b6d0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x1802b5380]
xor rax, rsp
mov qword [rbp - 0x10], rax
cmp qword [0x1802b62f8], 0
mov rbx, rcx
jne 0x18000b860
xor eax, eax
mov dword [rbp - 0x50], 0x7c4a587b
mov byte [rbp - 0x44], al
xor r9d, r9d
mov dword [rbp - 0x4c], 0x2c313335
mov dword [rbp - 0x48], 0x34291536
nop dword [rax]
movsxd rcx, eax
lea rdx, [rbp - 0x50]
add rdx, rcx
lea ecx, [rax + 0x3c]
inc eax
xor byte [rdx], cl
cmp eax, 0xc
jb 0x18000b720
mov eax, 0x1046
mov byte [rbp - 0x44], r9b
mov word [rbp - 0x2c], ax
mov ecx, 0x1049
mov eax, 0x1047
mov dword [rbp - 0x40], 0x104e1049
xor ax, word [0x1800ff89e]
mov word [rbp - 0x2a], ax
mov eax, 0x1048
xor ax, word [str.Lv2]
lea r8d, [rcx + 5]
xor r8w, word [0x1800ff8ac]
lea edx, [rcx + 4]
xor dx, word [0x1800ff8aa]
xor cx, word [0x1800ff8a2]
mov word [rbp - 0x28], ax
mov eax, 0x104a
xor ax, word [0x1800ff8a4]
mov word [rbp - 0x24], ax
mov eax, 0x104b
xor ax, word [0x1800ff8a6]
mov word [rbp - 0x22], ax
mov eax, 0x104c
xor ax, word [0x1800ff8a8]
mov word [rbp - 0x20], ax
mov eax, 0x104f
xor ax, word [0x1800ff8ae]
mov word [rbp - 0x1a], ax
mov eax, 0x1050
xor ax, word [0x1800ff8b0]
mov word [rbp - 0x18], ax
xor eax, eax
mov word [rbp - 0x1e], dx
mov edx, r9d
mov word [rbp - 0x1c], r8w
mov r8d, 0x103c
mov word [rbp - 0x16], ax
mov dword [rbp - 0x3c], 0x104d105b
mov dword [rbp - 0x38], 0x10731073
mov dword [rbp - 0x34], 0x1027106c
mov dword [rbp - 0x30], 0x10291028
mov word [rbp - 0x26], cx
nop dword [rax]
nop dword [rax + rax]
movsxd rax, edx
lea rcx, [rbp - 0x40]
lea rcx, [rcx + rax*2]
lea eax, [r8 + rdx]
inc edx
xor word [rcx], ax
cmp edx, 0x15
jb 0x18000b820
lea rcx, [rbp - 0x40]
mov word [rbp - 0x16], r9w
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
add rax, 5
mov qword [0x1802b62f8], rax
mov rcx, rbx
call fcn.180001f20
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1800553d0
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rbp
ret