joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400a76b4
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 0x1400a76e6
call fcn.14009614c
mov dword [rax], 0x16
call fcn.1400915c0
jmp 0x1400a7805
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1400a7805
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1400a7805
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1400a7715
lock or dword [rcx + 0x14], 0x10
jmp 0x1400a7805
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1400a7729
call fcn.1400a7820
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.1400a3a88
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.1400a714c
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x1400a77f3
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x1400a77be
mov rcx, rsi
call fcn.1400a3a88
cmp eax, edi
je 0x1400a77a9
mov rcx, rsi
call fcn.1400a3a88
cmp eax, 0xfffffffe
je 0x1400a77a9
mov rcx, rsi
call fcn.1400a3a88
movsxd rbx, eax
lea r14, [0x140129580]
mov rcx, rsi
sar rbx, 6
call fcn.1400a3a88
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x1400a77b0
lea rdx, [0x140117660]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1400a77be
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x1400a77e2
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x1400a77e2
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x1400a77e2
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 0x1400a7808
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 0x1400ae228
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 0x1400ae2af
mov rsi, rbx
cmp word [rax], bp
je 0x1400ae26e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400ae258
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400ae254
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400a28e8
mov rdi, rax
test rax, rax
je 0x1400ae29c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400b15c0
mov rbp, rdi
xor ecx, ecx
call fcn.1400a28ac
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 0x1400b1020
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.1400a69c4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400a69c4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400b1170
cmp rax, 0xffffffffffffffff
je 0x1400b1170
xor edi, edi
test rbp, rbp
jle 0x1400b111b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400a3e90
mov rbx, rax
test rax, rax
jne 0x1400b10a8
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400b1111
mov edx, 0x8000
mov ecx, r14d
call fcn.1400a03ac
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.1400a643c
cmp eax, 0xffffffff
je 0x1400b10f1
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400b10b8
mov edx, r15d
mov ecx, r14d
call fcn.1400a03ac
jmp 0x1400b1111
cmp byte [rsi + 0x38], dil
je 0x1400b1108
cmp dword [rsi + 0x34], 5
jne 0x1400b1108
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400b1111
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400a28ac
jmp 0x1400b1184
jns 0x1400b1184
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400a69c4
cmp rax, 0xffffffffffffffff
jne 0x1400b113c
cmp byte [rsi + 0x30], dil
je 0x1400b1184
mov edi, dword [rsi + 0x2c]
jmp 0x1400b1184
mov ecx, r14d
call fcn.1400ae770
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400b1184
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 0x1400b1184
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400b117d
mov eax, dword [rsi + 0x2c]
jmp 0x1400b1182
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400a69c4
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 0x1400b1310
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400b1338
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400b1338
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140002942
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
xor r8d, r8d
mov rsi, rcx
mov rbx, rdx
test rdx, rdx
je 0x140002961
mov rcx, rdx
call sub.msvcrt.dll_strlen
mov r8, rax
mov rcx, rbx
mov r9, rsi
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.14001aa60

Function at 0x140005676
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov qword [rsp + 0x28], rdx
mov rsi, rcx
mov ecx, 2
call qword [fcn.14001a480]
mov r8, qword [rsp + 0x28]
mov rcx, rsi
mov edx, 1
mov rbx, rax
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rcx, rbx
add rsp, 0x38
pop rbx
pop rsi
jmp fcn.14001aa60

Function at 0x1400056b5
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
cmp qword [0x1401130f0], 0
jne 0x1400056cd
add rsp, 0x38
pop rbx
pop rsi
jmp fcn.140005676
lea rsi, [rsp + 0x20]
mov rdx, rcx
mov rcx, rsi
call fcn.140005614
mov rbx, qword [rsp + 0x28]
mov rcx, rsi
call qword [0x1401130f0]
test rbx, rbx
je 0x1400056fe
test byte [rbx + 7], 0x40
jne 0x1400056fe
mov rcx, rbx
call fcn.1400039cc
lea rcx, [0x14001b320]
call fcn.140015260
cmp byte [rax], 0
je 0x140005736
mov byte [rax], 0
lea rcx, [0x14001b220]
call fcn.140015260
xor r8d, r8d
mov rcx, rax
mov rax, qword [rax]
mov rdx, qword [rax + 0x38]
add rsp, 0x38
pop rbx
pop rsi
jmp fcn.140003f38
add rsp, 0x38
pop rbx
pop rsi
ret

Function at 0x140005d6b
Capabilities:
Write file on windows

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
lea r12, [0x1401130c0]
xor ebx, ebx
lea r14, [0x14001b320]
mov rsi, rcx
mov rdi, rdx
lea r13, [rsp + 0x20]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbp, qword [fcn.14001a480]
mov ecx, 1
cmp rbx, rdi
jl 0x140005df1
call rbp
mov r8d, 1
mov edx, 1
lea rcx, [0x14001c3bb]
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 1
call rbp
mov rcx, rax
call fcn.14001aa60
mov rcx, r12
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rbp
xor r8d, r8d
mov rdx, r13
mov rcx, rax
mov rax, rbx
shl rax, 4
movups xmm0, xmmword [rsi + rax]
movups xmmword [rsp + 0x20], xmm0
call fcn.140005c45
mov rcx, r14
call fcn.140015260
cmp byte [rax], 0
jne 0x140005e23
inc rbx
jmp 0x140005da4
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
Function at 0x140010fa3
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x140010fe1
cmp word [rcx], 0x5a4d
jne 0x140010fe1
movsxd rdx, dword [rcx + 0x3c]
cmp edx, 0x400
jg 0x140010fe1
call fcn.140007633
mov rcx, qword [0x14010e1d0]
mov rbx, rax
call fcn.140015260
cmp byte [rax], 0
jne 0x140010fe1
cmp dword [rbx], 0x4550
je 0x140010fe3
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x140014330
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 fcn.14001a480
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.14001a480
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 0x1400143a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140113b14]
mov rbx, rcx
test esi, esi
jle 0x1400144d0
mov rax, qword [0x140113b18]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400143eb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140014475
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400143d0
mov rcx, rbx
call fcn.140014df0
mov rdi, rax
test rax, rax
je 0x1400144f2
mov rax, qword [0x140113b18]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140014f30
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140113b18]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400144d7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14001446e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140014480
add dword [0x140113b14], 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 [0x140113b18]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14001446e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140014330
nop dword [rax]
xor esi, esi
jmp 0x1400143f8
mov rax, qword [0x140113b18]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140014330
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140014330
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x140014a60
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140113b80]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140113b60]
test rbx, rbx
je 0x140014abc
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 0x140014ab3
test rsi, rsi
je 0x140014ab3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140014a98
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 0x140014df0
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x140014e70
Capabilities:
Parse pe header

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

Function at 0x140014f30
Capabilities:
Parse pe header

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

Function at 0x140015200
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov dword [0x140113c00], 0xffffffff
mov r8d, 0xffff
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov qword [0x140113c08], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x140015250
lea rdx, [0x140015110]
mov ecx, eax
mov dword [0x140113bf8], eax
call fcn.14001abc0
test eax, eax
jne 0x140015258
add rsp, 0x28
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140015247
call sub.msvcrt.dll_abort
nop
nop
Function at 0x140015260
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x14010e170]
mov r11d, dword [rsi]
mov rbx, rcx
test r11d, r11d
jne 0x140015298
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x140015300
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov r12, qword [rcx + 0x10]
test r12, r12
je 0x140015310
mov esi, dword [0x140113bf8]
mov r13, qword [sym.imp.KERNEL32.dll_GetLastError]
call r13
mov edi, eax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, edi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rsi, rsi
je 0x140015380
mov rbp, qword [rsi]
cmp rbp, r12
jb 0x1400153c8
sub r12, 1
mov rax, qword [rsi + r12*8 + 8]
test rax, rax
jne 0x140015287
mov rcx, rbx
call fcn.140015160
mov qword [rsi + r12*8 + 8], rax
jmp 0x140015287
call fcn.140015160
mov qword [rbx + 0x10], rax
jmp 0x140015287
mov r10d, dword [rsi]
test r10d, r10d
je 0x14001542a
mov r9d, dword [0x14001b560]
test r9d, r9d
je 0x140015458
lock add dword [0x140113c00], 1
jne 0x14001548c
mov r12, qword [rbx + 0x10]
test r12, r12
je 0x140015437
mov eax, dword [rsi]
test eax, eax
je 0x1400152a1
lock sub dword [0x140113c00], 1
js 0x1400152a1
mov rcx, qword [0x140113c08]
xor r8d, r8d
mov edx, 1
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
jmp 0x1400152a1
lea rcx, [r12 + 0x21]
mov edx, 8
lea rdi, [r12 + 0x20]
call sub.msvcrt.dll_calloc
mov rsi, rax
test rax, rax
je 0x1400154b3
mov qword [rax], rdi
mov ecx, dword [0x140113bf8]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x1400152db
call r13
jmp 0x1400152db
lea rdi, [rbp + rbp]
lea rax, [r12 + 0x20]
mov rcx, rsi
cmp rdi, r12
cmovb rdi, rax
lea rdx, [rdi*8 + 8]
call sub.msvcrt.dll_realloc
mov rsi, rax
test rax, rax
je 0x1400154b3
mov qword [rax], rdi
sub rdi, rbp
lea rcx, [rax + rbp*8 + 8]
xor edx, edx
lea r8, [rdi*8]
call sub.msvcrt.dll_memset
jmp 0x1400153a3
call fcn.140015200
mov dword [0x14001b560], 1
mov edx, dword [rsi]
test edx, edx
jne 0x14001532c
mov r12, qword [rbx + 0x10]
test r12, r12
jne 0x1400152a1
mov rax, qword [0x140113bf0]
lea r12, [rax + 1]
mov qword [0x140113bf0], r12
mov qword [rbx + 0x10], r12
jmp 0x140015347
lock add dword [0x14001b564], 1
je 0x140015411
mov r8d, dword [0x14001b560]
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
lea rdi, [0x14001b560]
test r8d, r8d
jne 0x140015420
nop dword [rax]
xor ecx, ecx
call rbp
mov ecx, dword [rdi]
test ecx, ecx
je 0x140015480
jmp 0x140015420
mov rcx, qword [0x140113c08]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14001533a
lock sub dword [0x140113c00], 1
jmp 0x14001533a
call sub.msvcrt.dll_abort
nop
nop dword [rax]
cmp qword [rcx], rdx
jae 0x1400154d0
mov qword [rcx], rdx
mov qword [rcx + 0x18], 0
cmp qword [rcx + 8], r8
jae 0x1400154da
mov qword [rcx + 8], r8
test r9, r9
je 0x1400154e4
cmp qword [rcx], rdx
je 0x1400154e8
ret
mov qword [rcx + 0x18], r9
ret
Function at 0x140001050
Capabilities:
Enumerate process modules

Disassembly:
push rdi
mov eax, 0x2250
call fcn.140002490
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x2240], rax
mov r8d, ecx
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.DLL_OpenProcess]
mov rdi, rax
test rax, rax
je 0x14000113c
mov qword [rsp + 0x2268], rbx
lea r9, [rsp + 0x20]
mov r8d, 0x2000
mov qword [rsp + 0x2270], rsi
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_K32EnumProcessModules]
test eax, eax
je 0x140001121
mov eax, dword [rsp + 0x20]
xor ebx, ebx
test rax, 0xfffffffffffffff8
jbe 0x140001121
nop dword [rax + rax]
lea rsi, [rsp + 0x30]
mov r9d, 0x104
mov rdx, qword [rsi + rbx*8]
lea rsi, [rsi + rbx*8]
lea r8, [rsp + 0x2030]
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_K32GetModuleBaseNameW]
test eax, eax
je 0x140001111
lea rdx, str.RobloxPlayerBeta.exe
lea rcx, [rsp + 0x2030]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x140001155
mov eax, dword [rsp + 0x20]
inc rbx
shr rax, 3
cmp rbx, rax
jb 0x1400010d0
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
mov rbx, qword [rsp + 0x2268]
mov rsi, qword [rsp + 0x2270]
mov rcx, qword [rsp + 0x2240]
xor rcx, rsp
call fcn.140001790
add rsp, 0x2250
pop rdi
ret
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov rax, qword [rsi]
jmp 0x14000112c
Function at 0x140002058
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test rax, rax
je 0x1400020a2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400020a2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400020a2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400020a2
cmp dword [rcx + 0x84], 0xe
jbe 0x1400020a2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400020a4
xor al, al
add rsp, 0x28
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400f9de0]
mov dword [rax], 1
mov rax, qword [0x1400f9df0]
mov dword [rax], 1
mov rax, qword [0x1400f9e00]
mov dword [rax], 1
mov rax, qword [0x1400f9d60]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140072c40
Capabilities:
Query environment variable

Disassembly:
push r14
mov eax, 0x10080
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.1400d5580
sub rsp, rax
xor eax, eax
xor edx, edx
xor esi, esi
mov r14d, 0x28
movzx edi, byte [rcx]
mov word [rsp + 0x80], ax
mov r12, rcx
lea rbp, [rsp + 0x30]
lea r13, [rsp + 0x2e]
mov word [rsp + 0x30], dx
test dil, dil
je 0x140072ce9
nop dword [rax]
mov rax, r14
lea rbx, [rbp + rsi*2]
sub rax, rsi
cmp word [rbp + rsi*2], 0
je 0x140072cae
nop dword [rax + rax]
add rbx, 2
sub rax, 1
cmp word [rbx], 0
jne 0x140072ca0
test rax, rax
je 0x1400e63fe
mov rcx, rbx
add rsi, 1
call sub.msvcrt.dll_wcslen
mov r8d, 2
mov rdx, r13
mov byte [rsp + 0x2e], dil
lea rcx, [rbx + rax*2]
mov byte [rsp + 0x2f], 0
call sub.msvcrt.dll_mbstowcs
movzx edi, byte [r12 + rsi]
test dil, dil
jne 0x140072c88
lea rbx, [rsp + 0x80]
mov r8d, 0x10000
mov rcx, rbp
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x140072d18
mov rcx, rbx
call sub.msvcrt.dll__wcsdup
add rsp, 0x10080
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret

Function at 0x140072d30
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
xor eax, eax
xor esi, esi
mov r13d, 0x28
movzx edi, byte [rcx]
mov word [rsp + 0x30], ax
mov rbp, rcx
mov r14, rdx
lea r15, [rsp + 0x30]
lea r12, [rsp + 0x2e]
test dil, dil
je 0x140072dd1
nop word [rax + rax]
mov rax, r13
lea rbx, [r15 + rsi*2]
sub rax, rsi
cmp word [r15 + rsi*2], 0
je 0x140072d96
nop word [rax + rax]
add rbx, 2
sub rax, 1
cmp word [rbx], 0
jne 0x140072d88
test rax, rax
je 0x1400e6404
mov rcx, rbx
add rsi, 1
call sub.msvcrt.dll_wcslen
mov r8d, 2
mov rdx, r12
mov byte [rsp + 0x2e], dil
lea rcx, [rbx + rax*2]
mov byte [rsp + 0x2f], 0
call sub.msvcrt.dll_mbstowcs
movzx edi, byte [rbp + rsi]
test dil, dil
jne 0x140072d70
mov rdx, r14
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
nop
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret