joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140007989
Capabilities:
Access peb ldr_data
Get process filename

Disassembly:
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x50]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x140006c33
jmp 0x140008c6d
mov rcx, qword [rsp + 0x70]
call fcn.140006ffc
jmp 0x14000617d
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax*2]
cmp eax, 0x5c
je 0x1400073b8
jmp 0x1400037cd
jmp 0x140007dfa
test eax, eax
jne 0x140008c6d
jmp 0x1400065d2
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax*2]
test eax, eax
jne 0x1400036b2
jmp 0x140003650
xor r9d, r9d
mov r8d, eax
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x38]
call fcn.140004a0e
jmp 0x140004a01
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x48], rax
jmp 0x14000677c
mov rax, qword [rsp + 0x48]
add rsp, 0x68
ret
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x48], 0
jmp 0x14000293b
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x20], 0
jmp 0x140005b80
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
lea rax, [rcx + rax*2 + 2]
mov qword [rsp + 0x38], rax
jmp 0x140007dfa
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword gs:[0x60]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov rax, qword [rax + 0x20]
sub rax, 0x10
jmp 0x140006aba
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax*2]
test eax, eax
jne 0x1400036b2
jmp 0x140003650
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x10]
sub rax, 0x10
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x40]
cmp qword [rsp + 0x30], rax
jne 0x14000293b
jmp 0x14000677c
Function at 0x1400154d0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
xor r14d, r14d
or rbx, 0xffffffffffffffff
cmp dword [0x14002a6f8], r14d
mov rsi, rcx
mov dword [rsp + 0x68], r14d
je 0x140015531
inc rbx
cmp word [rcx + rbx*2], r14w
jne 0x1400154fa
mov rcx, qword [0x14002a700]
lea r9, [rsp + 0x68]
mov r8, rbx
mov qword [rsp + 0x20], r14
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
nop dword [rax + rax]
test eax, eax
jne 0x140015601
jmp 0x140015563
mov qword [rsp + 0x38], r14
xor edx, edx
mov qword [rsp + 0x30], r14
mov r9d, ebx
mov dword [rsp + 0x28], r14d
mov r8, rsi
mov qword [rsp + 0x20], r14
lea ecx, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
nop dword [rax + rax]
movsxd rbp, eax
test eax, eax
jne 0x140015574
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
jmp 0x140015601
mov rdx, rbp
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x140015601
mov qword [rsp + 0x38], r14
xor edx, edx
mov qword [rsp + 0x30], r14
mov r9d, ebx
mov dword [rsp + 0x28], ebp
mov r8, rsi
mov qword [rsp + 0x20], rax
lea ecx, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
nop dword [rax + rax]
test eax, eax
je 0x1400155e6
mov rcx, qword [0x14002a700]
lea r8d, [rax - 1]
lea r9, [rsp + 0x68]
mov qword [rsp + 0x20], r14
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop dword [rax + rax]
test eax, eax
jne 0x1400155f2
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x14003922b
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xf8
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x140203038]
xor rax, rsp
mov qword [rsp + 0xf0], rax
mov rcx, rdx
call fcn.140069d90
mov ebp, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp ebp, eax
je 0x14003927a
mov rcx, rdi
call fcn.14003879a
mov ebp, 0x100000
test al, al
je 0x14003927f
mov ebp, 0x101000
lea r14, [rsp + 0x50]
mov r8d, 0xa0
mov rcx, r14
mov dl, 0xaa
call fcn.1400eee80
mov rcx, r14
call fcn.1400ac7c0
mov byte [r14 + 0x22], 1
lea rcx, [rsp + 0x58]
call fcn.1400aba50
movaps xmm0, xmmword [0x1401d39f0]
lea r15, [rsp + 0x40]
movaps xmmword [r15], xmm0
mov rcx, r15
mov rdx, rbx
mov r8, r14
call fcn.1400a9fd0
mov rcx, r15
call fcn.140069d50
test al, al
je 0x140039361
lea rbx, [rsp + 0x38]
mov qword [rbx], 0
mov rcx, rdi
call fcn.140069d70
mov r14, rax
lea rcx, [rsp + 0x40]
call fcn.140069d70
mov r15, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor edi, edi
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], ebp
mov rcx, rax
mov rdx, r15
mov r8, r14
mov r9, rbx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x140039361
mov r14, qword [rsp + 0x38]
cmp qword [rsi], r14
je 0x14003937d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x1400393b3
lea rax, [r14 + 1]
cmp rax, 2
jb 0x140039357
mov qword [rsi], r14
call fcn.140077980
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14003937d
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov edi, 0x80004005
cmovne edi, ecx
lea rcx, [rsp + 0x40]
call fcn.140069d20
lea rcx, [rsp + 0x50]
call fcn.1400ac830
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.1400ecd30
mov eax, edi
add rsp, 0xf8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.140077980
mov rcx, qword [rsi]
call fcn.140069370
mov qword [rsi], 0
jmp 0x140039345
Function at 0x140039c3c
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x110
movaps xmmword [rsp + 0x100], xmm6
mov rbx, r9
mov r14, r8
mov rdi, rdx
mov r15, rcx
mov esi, dword [rsp + 0x180]
mov rax, qword [0x140203038]
xor rax, rsp
mov qword [rsp + 0xf8], rax
movaps xmm6, xmmword [0x1401d39f0]
lea rcx, [rsp + 0xe0]
movaps xmmword [rcx], xmm6
xor edx, edx
call fcn.1400e6a30
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp eax, esi
jne 0x140039cc5
lea rsi, [rsp + 0x50]
mov rcx, rsi
call fcn.1400e25f0
lea rcx, [rsp + 0xe0]
mov rdx, rsi
call fcn.1400a9f20
mov rcx, rsi
call fcn.140069d20
jmp 0x140039cdc
lea rdx, [rsp + 0xe0]
mov ecx, esi
call fcn.140038a70
test eax, eax
js 0x140039ea1
mov rsi, qword [rsp + 0x170]
movabs r13, 0xaaaaaaaaaaaaaaaa
lea r12, [rsp + 0xc0]
mov qword [r12 + 0x10], r13
movaps xmmword [r12], xmm6
mov rcx, r12
call fcn.140167410
mov qword [rsp + 0x20], r12
mov rcx, r15
mov rdx, r14
mov r8, rbx
mov r9, rsi
call fcn.140038e5d
test eax, eax
js 0x140039e23
mov rsi, qword [rsp + 0x178]
lea rbx, [rsp + 0xa0]
mov qword [rbx + 0x10], r13
movaps xmmword [rbx], xmm6
lea rcx, [rsp + 0xc0]
call fcn.140135bf0
mov rcx, rax
mov rdx, rbx
mov r8, rsi
call fcn.1400b1cc0
lea rsi, [rsp + 0x50]
movaps xmmword [rsi + 0x40], xmm6
movaps xmmword [rsi + 0x30], xmm6
movaps xmmword [rsi + 0x20], xmm6
movaps xmmword [rsi + 0x10], xmm6
movaps xmmword [rsi], xmm6
mov rcx, rsi
mov rdx, rbx
call fcn.1400b2360
mov rcx, rsi
mov rdx, rdi
xor r8d, r8d
call fcn.14016a540
lea r8, [rsp + 0x48]
mov qword [r8], 0
lea rdx, [rsp + 0xe0]
mov rcx, rsi
call fcn.14003922b
mov esi, eax
test eax, eax
js 0x140039e27
mov rbx, qword [rsp + 0x188]
lea rcx, [rsp + 0xc0]
lea rdi, [rsp + 0x30]
mov rdx, rdi
call fcn.140167420
mov rcx, rdi
call fcn.1400395f5
mov rcx, rdi
call fcn.140077ee0
mov r14, qword [rsp + 0x48]
lea r15, [r14 + 1]
cmp r15, 2
jb 0x140039dec
call fcn.140077980
cmp qword [rbx], r14
je 0x140039e1f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rax, qword [rbx]
inc rax
cmp rax, 2
jae 0x140039ea5
cmp r15, 2
jb 0x140039e17
mov qword [rbx], r14
call fcn.140077980
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor edi, edi
jmp 0x140039e2c
mov esi, eax
jmp 0x140039e5a
mov rdi, qword [rsp + 0x48]
lea rax, [rdi + 1]
cmp rax, 2
jb 0x140039e43
call fcn.140077980
mov rcx, rdi
call fcn.140069370
lea rcx, [rsp + 0x50]
call fcn.1400b25a0
lea rcx, [rsp + 0xa0]
call fcn.140077ee0
lea rcx, [rsp + 0xc0]
call fcn.140167500
lea rcx, [rsp + 0xe0]
call fcn.140069d20
mov rcx, qword [rsp + 0xf8]
xor rcx, rsp
call fcn.1400ecd30
mov eax, esi
movaps xmm6, xmmword [rsp + 0x100]
add rsp, 0x110
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov esi, eax
jmp 0x140039e67
call fcn.140077980
mov rcx, qword [rbx]
call fcn.140069370
mov qword [rbx], 0
jmp 0x140039e09
Function at 0x14003ec50
Capabilities:
Write file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x140203038]
xor rax, rsp
mov qword [rsp + 0x50], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x30]
mov qword [r14 + 0x10], rax
movaps xmm0, xmmword [0x1401d39f0]
movaps xmmword [r14], xmm0
mov rcx, rdx
mov rdx, r14
call fcn.14005f3e0
mov rbx, qword [r14]
mov r14, qword [r14 + 8]
cmp rbx, r14
je 0x14003ecb1
mov rcx, rbx
call fcn.1400e96d0
add rbx, 0x28
jmp 0x14003ec9e
lea r14, [rsi + 0xf8]
mov ebx, dword [rdi + 8]
mov rcx, rdi
call fcn.14005f3d0
mov rcx, qword [rsi + 0x90]
mov qword [rsp + 0x20], r14
mov rdx, rax
mov r8d, ebx
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14003ecef
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x14003ed5a
mov byte [rsi + 0x13a], 1
mov eax, 1
lock xadd dword [rsi + 8], eax
mov sil, 1
cmp eax, 0x7fffffff
je 0x14003ed5e
mov rbx, qword [rsp + 0x30]
test rbx, rbx
je 0x14003ed41
mov rdi, qword [rsp + 0x38]
mov rcx, rbx
cmp rdi, rbx
je 0x14003ed37
add rdi, 0xffffffffffffffd8
mov rcx, rdi
call fcn.1400e89f0
cmp rdi, rbx
jne 0x14003ed21
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x38], rbx
call fcn.1400eb6ac
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400ecd30
mov eax, esi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
ret
xor esi, esi
jmp 0x14003ed0a
int3
Function at 0x14003ff80
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
movaps xmmword [rsp + 0x50], xmm6
mov rax, qword [0x140203038]
xor rax, rsp
mov qword [rsp + 0x48], rax
movzx eax, byte [0x140218ee0]
and eax, 1
neg rax
cmp rax, 0xfffffffffffffffd
je 0x1400400be
mov rsi, rcx
lea r14, [0x1401e1d90]
movabs r15, 0xaaaaaaaaaaaaaaaa
movaps xmm6, xmmword [0x1401d39f0]
lea rbx, [rsp + 0x30]
xor r12d, r12d
mov rax, r12
shl rax, 4
mov qword [rsp + 0x40], r15
movaps xmmword [rsp + 0x30], xmm6
mov rdx, qword [rax + r14]
test rdx, rdx
je 0x1400400e6
mov r13, qword [rax + r14 + 8]
mov byte [rsp + 0x47], r13b
cmp rbx, rdx
ja 0x14004001c
lea rax, [rsp + r13*2]
add rax, 0x30
cmp rax, rdx
ja 0x140040115
lea r8, [r13*2]
mov rcx, rbx
call fcn.1400ee7d0
mov word [rsp + r13*2 + 0x30], 0
movzx eax, byte [rsp + 0x47]
mov rcx, qword [rsp + 0x30]
mov r8, rbx
mov rdx, rax
test al, al
jns 0x140040050
mov rdx, qword [rsp + 0x38]
mov r8, rcx
mov r9, qword [rsi + 8]
cmp r9, rdx
mov r10, rdx
cmovb r10, r9
test r10, r10
js 0x140040112
cmp rdx, r9
jbe 0x140040070
xor ebp, ebp
jmp 0x140040099
mov bpl, 1
test rdx, rdx
je 0x140040097
mov r9, qword [rsi]
xor r10d, r10d
movzx r11d, word [r9 + r10*2]
cmp r11w, word [r8 + r10*2]
jne 0x14004006c
inc r10
cmp rdx, r10
jne 0x14004007e
mov rdi, rdx
jmp 0x140040099
xor edi, edi
test al, al
jns 0x1400400a2
call fcn.1400eb6ac
test bpl, bpl
jne 0x1400400c0
inc r12
movzx eax, byte [0x140218ee0]
xor rax, 3
cmp r12, rax
jb 0x14003ffde
xor edi, edi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400ecd30
mov rax, rdi
movaps xmm6, xmmword [rsp + 0x50]
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rax, str.basic_string_const_char__n__detected_nullptr
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude_string
lea r9, str.__n__0____s___nullptr
mov r8d, 0x39b
call fcn.140139d31
int3
lea rax, str.char_traits::copy_overlapped_range
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude__stringchar_traits.h
lea r9, str.__s2_____s1____s2_____s1__n
mov r8d, 0x134
call fcn.140139d31
int3
Function at 0x14004c998
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
cmp qword [rcx], rdx
jne 0x14004c9ac
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rdi]
inc rax
cmp rax, 2
jae 0x14004c9e8
lea rax, [rsi + 1]
cmp rax, 2
jb 0x14004c9d8
mov qword [rdi], rsi
call fcn.140077980
mov ecx, ebx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.140077980
mov rcx, qword [rdi]
call fcn.140069370
mov qword [rdi], 0
jmp 0x14004c9c6
Function at 0x140068700
Capabilities:
Encode data using base64

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
cmp rdx, 1
jne 0x14006886e
mov rbx, qword [rsi + 8]
mov edi, 2
cmp rbx, 2
jae 0x1400688a0
lea rbx, [rsi + 8]
lea rcx, [rdi*8]
call fcn.1400eb670
mov rcx, qword [rsi]
mov qword [rsi], rax
test rcx, rcx
jne 0x14006876c
mov qword [rbx], rdi
xor eax, eax
mov rcx, qword [rsi]
mov qword [rcx + rax*8], 0
inc rax
cmp rdi, rax
jne 0x140068748
mov r8, qword [rsi + 0x10]
test r8, r8
jne 0x140068773
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.1400eb6ac
jmp 0x140068743
lea r10, [rsi + 0x10]
mov rcx, qword [r8 + 8]
mov rax, rdi
shr rax, 1
movabs rdx, 0x5555555555555555
and rdx, rax
mov rax, rdi
sub rax, rdx
movabs rdx, 0x3333333333333333
mov r9, rax
and r9, rdx
shr rax, 2
and rax, rdx
add rax, r9
mov rdx, rax
shr rdx, 4
add rdx, rax
movabs rax, 0xf0f0f0f0f0f0f0f
and rax, rdx
movabs r9, 0x101010101010101
imul r9, rax
shr r9, 0x38
cmp r9, 1
jbe 0x1400689b3
cmp rcx, rdi
jb 0x1400687f1
mov rax, rcx
xor edx, edx
div rdi
mov rcx, rdx
mov rax, qword [rsi]
mov qword [rax + rcx*8], r10
mov r10, qword [r8]
test r10, r10
je 0x140068764
lea r11, [rdi - 1]
mov rax, qword [r10 + 8]
cmp r9d, 1
jbe 0x1400689ab
cmp rax, rdi
jb 0x140068823
xor edx, edx
div rdi
mov rax, rdx
cmp rax, rcx
je 0x140068869
mov rdx, qword [rsi]
cmp qword [rdx + rax*8], 0
jne 0x140068849
mov qword [rdx + rax*8], r8
mov r8, r10
mov r10, qword [r10]
mov rcx, rax
test r10, r10
jne 0x140068808
jmp 0x140068764
mov rdx, qword [r10]
mov qword [r8], rdx
mov rdx, qword [rsi]
mov rdx, qword [rdx + rax*8]
mov rdx, qword [rdx]
mov qword [r10], rdx
mov rdx, qword [rsi]
mov rax, qword [rdx + rax*8]
mov qword [rax], r10
mov r10, r8
mov rax, rcx
jmp 0x140068836
mov rdi, rdx
lea rax, [rdx - 1]
test rdx, rax
je 0x140068885
mov rcx, rdi
call fcn.140060802
mov rdi, rax
mov rbx, qword [rsi + 8]
cmp rdi, rbx
jbe 0x1400688a0
mov rax, rdi
shr rax, 0x3d
je 0x140068727
call fcn.140136787
cmp rdi, rbx
jae 0x140068764
mov rax, qword [rsi + 0x18]
test rax, rax
js 0x1400688b9
cvtsi2ss xmm0, rax
jmp 0x1400688ce
mov rcx, rax
shr rcx, 1
and eax, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
divss xmm0, dword [rsi + 0x20]
call fcn.14010af6c
cvttss2si rcx, xmm0
mov rdx, rcx
subss xmm0, dword [0x1401c70a8]
cvttss2si rax, xmm0
sar rdx, 0x3f
and rax, rdx
or rax, rcx
cmp rbx, 3
jb 0x140068981
mov rcx, rbx
shr rcx, 1
movabs rdx, 0x5555555555555555
and rdx, rcx
mov rcx, rbx
sub rcx, rdx
movabs rdx, 0x3333333333333333
mov r8, rcx
shr r8, 2
and rcx, rdx
and r8, rdx
add r8, rcx
mov rcx, r8
shr rcx, 4
add rcx, r8
movabs rdx, 0xf0f0f0f0f0f0f0f
and rdx, rcx
movabs rcx, 0x101010101010101
imul rcx, rdx
shr rcx, 0x38
cmp ecx, 1
ja 0x140068981
lea rcx, [rax - 1]
bsr rcx, rcx
xor ecx, 0x3f
neg cl
mov edx, 1
shl rdx, cl
cmp rax, 2
cmovb rdx, rax
jmp 0x14006898c
mov rcx, rax
call fcn.140060802
mov rdx, rax
cmp rdi, rdx
cmova rdx, rdi
cmp rdx, rbx
jae 0x140068764
mov rcx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.1401661b0
and rax, r11
jmp 0x140068823
lea rax, [rdi - 1]
and rcx, rax
jmp 0x1400687f1
Function at 0x140068b20
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x28
mov eax, dword [0x140218c00]
mov ecx, dword [0x1402136f0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140068b5b
movzx eax, word [0x140218bd0]
cmp eax, 9
jne 0x140068ba3
mov eax, 1
add rsp, 0x28
ret
lea rcx, [0x140218c00]
call fcn.1400eb7d0
cmp dword [0x140218c00], 0xffffffff
jne 0x140068b45
xorps xmm0, xmm0
movups xmmword [0x140218bf0], xmm0
movups xmmword [0x140218be0], xmm0
movups xmmword [0x140218bd0], xmm0
lea rcx, [0x140218bd0]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x140218c00]
call fcn.1400eb868
jmp 0x140068b45
cmp eax, 5
jg 0x140068bb8
test eax, eax
je 0x140068b56
cmp eax, 5
jne 0x140068bd0
mov eax, 3
jmp 0x140068b56
cmp eax, 6
jne 0x140068bc4
mov eax, 2
jmp 0x140068b56
cmp eax, 0xc
jne 0x140068bd0
mov eax, 4
jmp 0x140068b56
mov eax, 5
jmp 0x140068b56
Function at 0x140069460
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x50
movapd xmmword [rsp + 0x40], xmm6
mov rsi, rcx
mov rax, qword [0x140203038]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x20]
call fcn.1400697c0
mov qword [rsp + 0x28], 0
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_QueryThreadCycleTime]
movsd xmm0, qword [0x140218c78]
xorpd xmm6, xmm6
ucomisd xmm0, xmm6
jne 0x1400694be
jnp 0x140069524
ucomisd xmm0, xmm6
jne 0x1400694ca
jnp 0x140069641
movsd xmm1, qword [rsp + 0x28]
unpcklps xmm1, xmmword [0x1401e05c0]
subpd xmm1, xmmword [0x1401e05d0]
movapd xmm2, xmm1
unpckhpd xmm2, xmm1
addsd xmm2, xmm1
divsd xmm2, xmm0
mulsd xmm2, qword [0x1401e05e0]
cvttsd2si rax, xmm2
mov qword [rsi], rax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400ecd30
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rbx, qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov edi, eax
call rbx
mov rcx, rax
mov edx, 2
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [0x140218c88]
mov ecx, dword [0x1402136f0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140069648
mov eax, dword [0x140218c98]
mov ecx, dword [0x1402136f0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140069682
rdtsc
mov rbx, rax
mov r14, rdx
xor r12d, r12d
lea r15, [rsp + 0x30]
mov qword [r15], r12
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov r13, qword [r15]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
mov edx, edi
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov qword [r15], r12
lea rdi, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
sub r13, qword [0x140218c90]
cvtsi2sd xmm1, r13
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rdi]
divsd xmm1, xmm0
xorpd xmm0, xmm0
movsd xmm2, qword [0x1401e05b8]
ucomisd xmm2, xmm1
ja 0x1400694be
shl r14, 0x20
or rbx, r14
sub rbx, qword [0x140218c80]
movq xmm2, rbx
punpckldq xmm2, xmmword [0x1401e05c0]
subpd xmm2, xmmword [0x1401e05d0]
movapd xmm0, xmm2
unpckhpd xmm0, xmm2
addsd xmm0, xmm2
divsd xmm0, xmm1
movsd qword [0x140218c78], xmm0
jmp 0x1400694be
xor eax, eax
jmp 0x1400694fc
lea rcx, [0x140218c88]
call fcn.1400eb7d0
cmp dword [0x140218c88], 0xffffffff
jne 0x14006956d
rdtsc
shl rdx, 0x20
or rdx, rax
mov qword [0x140218c80], rdx
lea rcx, [0x140218c88]
call fcn.1400eb868
jmp 0x14006956d
lea rcx, [0x140218c98]
call fcn.1400eb7d0
cmp dword [0x140218c98], 0xffffffff
jne 0x140069592
lea rbx, [rsp + 0x30]
mov qword [rbx], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rbx]
mov qword [0x140218c90], rax
lea rcx, [0x140218c98]
call fcn.1400eb868
jmp 0x140069592
Function at 0x140069ca0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
movzx eax, byte [0x140218cc8]
test al, 1
jne 0x140069cfc
test rsi, rsi
je 0x140069cf2
mov r14d, 0xffffffff
nop word cs:[rax + rax]
cmp rsi, r14
mov ebx, 0xffffffff
cmovb rbx, rsi
mov rcx, rdi
mov edx, ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x140069d15
add rdi, rbx
sub rsi, rbx
jne 0x140069cd0
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.14007be50
mov rcx, rdi
mov rdx, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.1400bc770
int3
Function at 0x140076440
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov r14, qword [rdx]
mov qword [rdx], 0
lea r15, [r14 + 1]
cmp r15, 2
jb 0x14007646a
call fcn.140077980
cmp qword [rsi], r14
jne 0x14007648e
movups xmm0, xmmword [rdi + 8]
movups xmm1, xmmword [rdi + 0x18]
movups xmmword [rsi + 0x18], xmm1
movups xmmword [rsi + 8], xmm0
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x1400764ba
cmp r15, 2
jb 0x1400764b0
mov qword [rsi], r14
call fcn.140077980
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14007646f
call fcn.140077980
mov rcx, qword [rsi]
call fcn.140069370
mov qword [rsi], 0
jmp 0x1400764a2
Function at 0x1400783a0
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov rcx, rdx
call fcn.14006a020
mov qword [rsi], 0
test rax, rax
jne 0x1400783f6
lea rcx, [rsi + 8]
lea rdx, [rdi + 8]
call fcn.140077c40
lea rcx, [rsi + 0x20]
call fcn.14007d5b0
mov eax, dword [rdi + 0x24]
mov dword [rsi + 0x24], eax
mov al, byte [rdi + 0x28]
mov byte [rsi + 0x28], al
mov al, byte [rdi + 0x29]
mov byte [rsi + 0x29], al
mov rax, rsi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140078429
lea rax, [rbx + 1]
cmp rax, 2
jb 0x14007841f
mov qword [rsi], rbx
call fcn.140077980
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400783c2
call fcn.140077980
mov rcx, qword [rsi]
call fcn.140069370
mov qword [rsi], 0
jmp 0x14007840d