joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14005e8f8
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.140050fa0
sub rsp, rax
mov rax, qword [0x1400aa020]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14006b7b0
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14005e947
mov rax, rbp
jmp 0x14005ea4f
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 + 0xaf5f0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140071dcc
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0xaf5f0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14005ea4b
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 0x14005ea4b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140071dcc
test rax, rax
js 0x14005ea4b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14005ea4b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14005ea3d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14005ea3d
cmp byte [rcx], 0xd
jne 0x14005ea23
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14005ea32
cmp byte [rcx + 1], 0xa
jne 0x14005ea32
inc rcx
jmp 0x14005ea32
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xaa5d0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14005ea05
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14005ea4f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140050300
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 0x14006b8d0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14006b8e6
mov al, 1
jmp 0x14006b946
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14006b8f7
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14006b944
mov ecx, dword [rcx + 0x18]
nop
call fcn.140075f50
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14006b944
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14006b944
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14006b944
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14006b946
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14007116c
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, [0x1400af5f0]
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 0x1400711c3
cmp word [rdx], r13w
jne 0x1400711c3
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400711c8
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400712ed
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14007130e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140071201
mov rdx, r9
mov word [rbx], cx
jmp 0x140071228
cmp r9, r8
jae 0x140071238
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 0x1400711e2
jmp 0x1400712ed
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 0x1400712e2
cmp dword [rsp + 0x80], esi
je 0x1400712e2
lea r8, [0x1400af5f0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400712ba
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14007128a
mov word [rbx], r13w
jmp 0x1400712ea
mov ecx, 0xd
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 0x140071297
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400712ea
cmp word [rsp + 0x70], r13w
jne 0x1400712c7
cmp rbx, r14
je 0x140071284
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140071dd4
cmp word [rsp + 0x70], r13w
je 0x1400712ed
mov ecx, 0xd
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, [0x1400af5f0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400712e7
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400712ed
Function at 0x140075224
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 0x140075254
xor eax, eax
jmp 0x140075317
mov rbp, rbx
cmp word [rax], si
je 0x140075279
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140075260
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14007525c
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.140070a08
movsxd r14, eax
test eax, eax
jne 0x1400752b7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14007524d
mov rcx, r14
call fcn.14006e5c0
mov rdi, rax
test rax, rax
jne 0x1400752d0
xor ecx, ecx
call fcn.14006e13c
jmp 0x1400752ac
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.140070a08
test eax, eax
jne 0x140075301
mov rcx, rdi
call fcn.14006e13c
jmp 0x14007530b
xor ecx, ecx
call fcn.14006e13c
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 0x140075334
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400753bb
mov rsi, rbx
cmp word [rax], bp
je 0x14007537a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140075364
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140075360
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14006e5c0
mov rdi, rax
test rax, rax
je 0x1400753a8
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140052760
mov rbp, rdi
xor ecx, ecx
call fcn.14006e13c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400784a4
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.14006bd90
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x140078545
cmp ebx, dword [rsp + 0x30]
je 0x14007853e
test esi, esi
je 0x14007853e
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140078519
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140078526
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140078503
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14007852a
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140078547
mov eax, 1
jmp 0x140078547
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14007cd70
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.140071dd4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140071dd4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14007cec0
cmp rax, 0xffffffffffffffff
je 0x14007cec0
xor edi, edi
test rbp, rbp
jle 0x14007ce6b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14006c364
mov rbx, rax
test rax, rax
jne 0x14007cdf8
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14007ce61
mov edx, 0x8000
mov ecx, r14d
call fcn.14006918c
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.14006de34
cmp eax, 0xffffffff
je 0x14007ce41
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14007ce08
mov edx, r15d
mov ecx, r14d
call fcn.14006918c
jmp 0x14007ce61
cmp byte [rsi + 0x38], dil
je 0x14007ce58
cmp dword [rsi + 0x34], 5
jne 0x14007ce58
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14007ce61
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14006e13c
jmp 0x14007ced4
jns 0x14007ced4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140071dd4
cmp rax, 0xffffffffffffffff
jne 0x14007ce8c
cmp byte [rsi + 0x30], dil
je 0x14007ced4
mov edi, dword [rsi + 0x2c]
jmp 0x14007ced4
mov ecx, r14d
call fcn.140075f50
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14007ced4
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 0x14007ced4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14007cecd
mov eax, dword [rsi + 0x2c]
jmp 0x14007ced2
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140071dd4
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 0x14001c620
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400284c4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x14001c7a8
mov rax, qword [0x1400284c8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x14001c66c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x14001c6f5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x14001c650
mov rcx, rbx
call fcn.14001e650
test rax, rax
mov r12, rax
je 0x14001c7dd
mov rax, qword [0x1400284c8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.14001e780
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1400284c8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14001c7c0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14001c6ee
sub eax, 0x40
and eax, 0xffffffbf
jne 0x14001c750
add dword [0x1400284c4], 1
cmp edi, 8
jae 0x14001c723
test dil, 4
jne 0x14001c794
test edi, edi
je 0x14001c718
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x14001c7af
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x14001c718
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x14001c73c
jmp 0x14001c718
add rsi, qword [0x1400284c8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14001c6ee
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14001e980
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x14001c718
xor esi, esi
jmp 0x14001c677
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x14001c718
mov rax, qword [0x1400284c8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.14001e980
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.14001e980
nop
nop dword [rax]
Function at 0x14001dd60
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
lea r14, [rcx + 0xb0]
mov rax, r14
test r8, r8
je 0x14001de46
mov r15, r8
mov rsi, rdx
mov r12, rcx
xor edi, edi
mov rax, r14
mov rbx, rdx
nop word cs:[rax + rax]
nop dword [rax + rax]
lea rcx, [rsi + rdi]
movzx edx, byte [rax]
xor byte [rsi + rdi], dl
movzx edx, byte [rax + 1]
xor byte [rsi + rdi + 1], dl
movzx edx, byte [rax + 2]
xor byte [rsi + rdi + 2], dl
movzx edx, byte [rax + 3]
xor byte [rsi + rdi + 3], dl
movzx edx, byte [rax + 4]
xor byte [rsi + rdi + 4], dl
movzx edx, byte [rax + 5]
xor byte [rsi + rdi + 5], dl
movzx edx, byte [rax + 6]
xor byte [rsi + rdi + 6], dl
movzx edx, byte [rax + 7]
xor byte [rsi + rdi + 7], dl
movzx edx, byte [rax + 8]
xor byte [rsi + rdi + 8], dl
movzx edx, byte [rax + 9]
xor byte [rsi + rdi + 9], dl
movzx edx, byte [rax + 0xa]
xor byte [rsi + rdi + 0xa], dl
movzx edx, byte [rax + 0xb]
xor byte [rsi + rdi + 0xb], dl
movzx edx, byte [rax + 0xc]
xor byte [rsi + rdi + 0xc], dl
movzx edx, byte [rax + 0xd]
xor byte [rsi + rdi + 0xd], dl
movzx edx, byte [rax + 0xe]
xor byte [rsi + rdi + 0xe], dl
movzx eax, byte [rax + 0xf]
xor byte [rsi + rdi + 0xf], al
mov rdx, r12
call fcn.14001d1c0
mov rax, rbx
add rbx, 0x10
add rdi, 0x10
cmp rdi, r15
jb 0x14001dda0
lea rax, [rsi + rdi]
add rax, 0xfffffffffffffff0
movups xmm0, xmmword [rax]
movups xmmword [r14], xmm0
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret

Function at 0x14001de60
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
test r8, r8
je 0x14001df6a
mov r14, r8
mov rdi, rdx
mov rbx, rcx
lea r15, [rcx + 0xb0]
xor esi, esi
nop word cs:[rax + rax]
lea rcx, [rdi + rsi]
movups xmm0, xmmword [rdi + rsi]
movaps xmmword [rsp + 0x20], xmm0
mov rdx, rbx
call fcn.14001d880
movzx eax, byte [rbx + 0xb0]
xor byte [rdi + rsi], al
movzx eax, byte [rbx + 0xb1]
xor byte [rdi + rsi + 1], al
movzx eax, byte [rbx + 0xb2]
xor byte [rdi + rsi + 2], al
movzx eax, byte [rbx + 0xb3]
xor byte [rdi + rsi + 3], al
movzx eax, byte [rbx + 0xb4]
xor byte [rdi + rsi + 4], al
movzx eax, byte [rbx + 0xb5]
xor byte [rdi + rsi + 5], al
movzx eax, byte [rbx + 0xb6]
xor byte [rdi + rsi + 6], al
movzx eax, byte [rbx + 0xb7]
xor byte [rdi + rsi + 7], al
movzx eax, byte [rbx + 0xb8]
xor byte [rdi + rsi + 8], al
movzx eax, byte [rbx + 0xb9]
xor byte [rdi + rsi + 9], al
movzx eax, byte [rbx + 0xba]
xor byte [rdi + rsi + 0xa], al
movzx eax, byte [rbx + 0xbb]
xor byte [rdi + rsi + 0xb], al
movzx eax, byte [rbx + 0xbc]
xor byte [rdi + rsi + 0xc], al
movzx eax, byte [rbx + 0xbd]
xor byte [rdi + rsi + 0xd], al
movzx eax, byte [rbx + 0xbe]
xor byte [rdi + rsi + 0xe], al
movzx eax, byte [rbx + 0xbf]
xor byte [rdi + rsi + 0xf], al
movaps xmm0, xmmword [rsp + 0x20]
movups xmmword [r15], xmm0
add rsi, 0x10
cmp rsi, r14
jb 0x14001de90
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x14001e2a0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x1400287e0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400287c0]
test rbx, rbx
je 0x14001e2f4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x14001e2eb
test rsi, rsi
je 0x14001e2eb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14001e2d0
lea rcx, [0x1400287e0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x14001e650
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x14001f040]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x14001e6bd
mov rcx, r8
call fcn.14001e530
test eax, eax
je 0x14001e6bd
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x14001e6bd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x14001e6b4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14001e6bf
add rax, 0x28
cmp rax, r9
jne 0x14001e6a0
xor eax, eax
add rsp, 0x28
ret

Function at 0x14001e980
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.14001d000
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.14001d000
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
int3
Function at 0x140004e90
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
mov eax, 0x1030
call fcn.140072a00
sub rsp, rax
mov rax, qword [0x1400950c8]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov rbx, rcx
lea rcx, [rsp + 0x21]
xor edx, edx
mov r8d, 0xfff
mov byte [rsp + 0x20], 0
call fcn.14005fe50
lea r9, [rsp + 0x1048]
lea rcx, [rsp + 0x20]
mov r8, rbx
mov edx, 0xfff
call fcn.14005fdec
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.14005fe20
add rsp, 0x1030
pop rbx
ret

Function at 0x140001100
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x240
mov rax, qword [0x1400950c8]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rdi, rcx
mov bl, 0x41
nop word [rax + rax]
lea rcx, [rsp + 0x31]
xor edx, edx
mov r8d, 0x1ff
mov byte [rsp + 0x20], bl
mov byte [rsp + 0x21], 0x3a
mov byte [rsp + 0x22], 0
mov byte [rsp + 0x30], 0
call fcn.14005fe50
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x20]
mov r8d, 0x1ff
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
test eax, eax
je 0x140001180
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1400605e0
test eax, eax
je 0x1400011aa
inc bl
cmp bl, 0x5a
jle 0x140001130
xor al, al
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14005fe20
mov rbx, qword [rsp + 0x258]
add rsp, 0x240
pop rdi
ret
mov al, bl
jmp 0x140001189

Function at 0x140002d10
Capabilities:
Check os version
Get os information via kuser_shared_data

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0xd0
mov rax, qword [0x1400950c8]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov ax, word [0x1400969b0]
xor ebx, ebx
lea edi, [rbx + 2]
cmp bx, ax
jne 0x140002dda
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, 0x9c
call fcn.14005fe50
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x9c
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x140002d8d
cmp dword [rsp + 0x24], 5
jbe 0x140002d7f
mov eax, edi
mov word [0x1400969b0], ax
jmp 0x140002dda
mov eax, 1
mov word [0x1400969b0], ax
jmp 0x140002dda
mov qword [rsp + 0xe0], rsi
mov esi, 0x7ffe026c
mov edx, 8
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x140002dcb
cmp dword [rsi], 5
jbe 0x140002dbd
mov ax, di
mov word [0x1400969b0], ax
jmp 0x140002dd2
mov eax, 1
mov word [0x1400969b0], ax
jmp 0x140002dd2
mov ax, word [0x1400969b0]
mov rsi, qword [rsp + 0xe0]
cmp di, ax
sete al
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14005fe20
mov rbx, qword [rsp + 0xe8]
add rsp, 0xd0
pop rdi
ret
Function at 0x140003bb0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov dword [rsp + 0x20], r9d
push rsi
sub rsp, 0x30
mov rsi, r8
test rdx, rdx
je 0x140003c5d
test r8, r8
je 0x140003c5d
mov rbx, qword [rsp + 0x60]
test rbx, rbx
je 0x140003c5d
lea rax, [rsp + 0x48]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x20], rax
xor dil, dil
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140003c3f
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x48]
lea r9, [rsp + 0x58]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, rsi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
movzx edi, dil
test eax, eax
mov ecx, 1
cmove edi, ecx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, dil
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
xor al, al
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret

Function at 0x140003c70
Capabilities:
Get os information via kuser_shared_data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rbx, rcx
mov esi, 0x7ffe026c
mov rcx, rsi
mov edx, 8
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x140003cc1
mov eax, dword [rsi]
mov dword [rbx], eax
mov eax, dword [0x7ffe0270]
mov dword [rdi], eax
xor eax, eax
cmp dword [rbx], 5
setae al
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
xor al, al
add rsp, 0x20
pop rdi
ret