joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400ad3da
Capabilities:
Get disk size

Disassembly:
push rsi
sub rsp, 0x30
cmp qword [rcx + 0x78], 0
je 0x1400ad414
mov rsi, rcx
lea r9, [rsp + 0x28]
and qword [r9], 0
mov rcx, qword [rcx + 0x48]
xor edx, edx
xor r8d, r8d
call sub.kernel32.dll_GetDiskFreeSpaceExW
test eax, eax
je 0x1400ad414
mov rax, qword [rsp + 0x28]
mov qword [rsi + 0x80], rax
mov al, 1
jmp 0x1400ad416
xor eax, eax
add rsp, 0x30
pop rsi
ret
Function at 0x1400ae70b
Capabilities:
Accept command line arguments

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rax, rdx
mov rsi, rcx
lea rdx, [rsp + 0x2c]
mov rcx, rax
call sub.shell32.dll_CommandLineToArgvW
test rax, rax
je 0x1400ae7a4
mov rdi, rax
movsxd r12, dword [rsp + 0x2c]
lea rbx, [rsp + 0x30]
mov qword [rbx], 8
xorps xmm0, xmm0
movups xmmword [rbx + 8], xmm0
shl r12, 3
xor r13d, r13d
lea r14, [rsp + 0x48]
cmp r12, r13
je 0x1400ae789
mov r15, qword [rdi + r13]
mov rcx, r15
call sub.msvcrt.dll_wcslen
mov rcx, r14
mov rdx, r15
mov r8, rax
call fcn.1400a799a
mov rcx, rbx
mov rdx, r14
call fcn.1400a7679
add r13, 8
jmp 0x1400ae759
mov rcx, rdi
call sub.kernel32.dll_LocalFree
mov rax, qword [rsp + 0x40]
mov qword [rsi + 0x10], rax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
jmp 0x1400ae7b2
mov qword [rsi], 8
xorps xmm0, xmm0
movups xmmword [rsi + 8], xmm0
mov rax, rsi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x1400af506
Capabilities:
Get memory capacity

Disassembly:
push rsi
push rdi
sub rsp, 0xe8
movaps xmmword [rsp + 0xd0], xmm6
mov rsi, rcx
xorps xmm6, xmm6
lea rdi, [rsp + 0x90]
movaps xmmword [rdi], xmm6
movaps xmmword [rdi + 0x30], xmm6
movaps xmmword [rdi + 0x20], xmm6
movaps xmmword [rdi + 0x10], xmm6
mov dword [rdi], 0x40
mov rcx, rdi
call sub.kernel32.dll_GlobalMemoryStatusEx
mov rax, qword [rdi + 8]
mov qword [rsi + 0xa0], rax
mov rax, qword [rdi + 0x10]
mov qword [rsi + 0xa8], rax
lea rcx, [rsp + 0x20]
movaps xmmword [rcx + 0x50], xmm6
movaps xmmword [rcx + 0x40], xmm6
movaps xmmword [rcx + 0x30], xmm6
movaps xmmword [rcx + 0x20], xmm6
movaps xmmword [rcx + 0x10], xmm6
movaps xmmword [rcx], xmm6
and qword [rcx + 0x60], 0
mov edx, 0x68
call sub.psapi.dll_GetPerformanceInfo
cmp eax, 1
jne 0x1400af5d9
mov r8, qword [rsp + 0x30]
mov r9, qword [rsp + 0x40]
xor r10d, r10d
sub r8, r9
cmovb r8, r10
mov rcx, qword [rsp + 0x70]
mov rax, rcx
mul r8
mov r8, rax
mov r11, 0xffffffffffffffff
cmovo r8, r11
mov rdi, qword [rsp + 0x28]
sub rdi, r9
cmovb rdi, r10
mov rax, rcx
mul rdi
cmovo rax, r11
mov qword [rsi + 0xb0], r8
mov qword [rsi + 0xb8], rax
movaps xmm6, xmmword [rsp + 0xd0]
add rsp, 0xe8
pop rdi
pop rsi
ret
Function at 0x1400b1103
Capabilities:
Get disk information

Disassembly:
push rsi
sub rsp, 0x50
mov rsi, rcx
call sub.kernel32.dll_GetLogicalDrives
mov dword [rsp + 0x24], eax
test eax, eax
je 0x1400b113f
movabs rax, 0x2000000000
lea rdx, [rsp + 0x40]
mov qword [rdx + 8], rax
lea rax, [rsp + 0x24]
mov qword [rdx], rax
lea rcx, [rsp + 0x28]
call fcn.1400a857b
jmp 0x1400b1150
mov qword [rsp + 0x28], 8
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
add rsi, 0xe0
mov rcx, rsi
call fcn.1400a69ae
mov rax, qword [rsp + 0x38]
mov qword [rsi + 0x10], rax
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [rsi], xmm0
add rsp, 0x50
pop rsi
ret
Function at 0x1400b1e64
Capabilities:
Get hostname

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rsi, rcx
lea r14, [rsp + 0x3c]
and dword [r14], 0
mov ecx, 5
xor edx, edx
mov r8, r14
call sub.kernel32.dll_GetComputerNameExW
mov edi, dword [r14]
mov rcx, rdi
mov dl, 1
call fcn.1400a7ca7
mov rbx, rax
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x30], rdi
mov ecx, 5
mov rdx, rax
mov r8, r14
call sub.kernel32.dll_GetComputerNameExW
cmp eax, 1
jne 0x1400b1ed7
lea rax, [rdi + rdi]
xor edx, edx
test rax, rax
je 0x1400b1efe
cmp word [rbx + rdx*2], 0
je 0x1400b1ee7
inc rdx
add rax, 0xfffffffffffffffe
jmp 0x1400b1ec2
lea rcx, [rsp + 0x20]
call fcn.1400a9430
and qword [rsi], 0
jmp 0x1400b1f41
lea rcx, [rsp + 0x20]
xor r8d, r8d
call fcn.1400a772b
mov rbx, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x30]
lea rcx, [rsp + 0x40]
mov rdx, rbx
mov r8, rdi
call fcn.140004a10
cmp qword [rsp + 0x40], 0
je 0x1400b1f29
mov rax, qword [rsp + 0x50]
mov qword [rsi + 0x10], rax
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rsi], xmm0
jmp 0x1400b1f37
and qword [rsi], 0
lea rcx, [rsp + 0x40]
call fcn.1400a60bb
lea rcx, [rsp + 0x20]
call fcn.1400a9430
mov rax, rsi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x1400b2184
Capabilities:
Query or enumerate registry value

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xa8
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionProductNameWindows_11_Windows_10_CurrentBuildNumber_no_name__Process
lea rcx, [rsp + 0x78]
mov r8d, 0x2c
call fcn.1400b2148
lea rcx, [rsp + 0x90]
mov rdx, rbx
mov r8, rdi
call fcn.1400b2148
mov rdx, qword [rsp + 0x78]
lea rax, [rsp + 0x40]
and qword [rax], 0
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
xor r8d, r8d
mov r9d, 0x20019
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x1400b21fc
and qword [rsi], 0
jmp 0x1400b23a4
mov rdi, qword [rsp + 0x40]
mov qword [rsp + 0x70], rdi
mov dword [rsp + 0x3c], 0x800
mov ecx, 0x800
xor edx, edx
call fcn.14002dfdd
lea rbx, [rsp + 0x58]
mov qword [rbx], rax
mov qword [rbx + 8], rdx
and qword [rbx + 0x10], 0
mov r14, qword [rsp + 0x90]
lea r12, [rsp + 0x3c]
lea r15, [rsp + 0x40]
mov rax, qword [rsp + 0x58]
and dword [rsp + 0x40], 0
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rax
mov rcx, rdi
mov rdx, r14
xor r8d, r8d
mov r9, r15
call sub.advapi32.dll_RegQueryValueExW
cmp eax, 0xea
jne 0x1400b2277
mov edx, dword [rsp + 0x3c]
mov rcx, rbx
call fcn.14002a6c5
jmp 0x1400b223d
test eax, eax
jne 0x1400b2369
mov r8d, dword [rsp + 0x3c]
mov qword [rsp + 0x68], r8
mov rdx, qword [rsp + 0x58]
shr r8, 1
lea rcx, [rsp + 0x40]
call fcn.1400a799a
mov rbx, qword [rsp + 0x40]
mov r15, qword [rsp + 0x50]
mov r14, r15
mov rcx, rbx
mov rdx, r14
xor r8d, r8d
call fcn.1400a6c02
test al, al
je 0x1400b2381
test r14, r14
je 0x1400b2330
movzx edx, byte [rbx + r14 - 1]
mov rcx, 0xffffffffffffffff
test dl, dl
jns 0x1400b235e
movzx r8d, byte [rbx + r14 - 2]
cmp r8b, 0xbf
jg 0x1400b2307
movzx r9d, byte [rbx + r14 - 3]
cmp r9b, 0xc0
jge 0x1400b230d
movzx r10d, byte [rbx + r14 - 4]
and r10d, 7
shl r10d, 6
and r9d, 0x3f
or r9d, r10d
jmp 0x1400b2311
and r8d, 0x1f
jmp 0x1400b231c
and r9d, 0xf
shl r9d, 6
and r8d, 0x3f
or r8d, r9d
shl r8d, 6
and edx, 0x3f
or edx, r8d
cmp edx, 0x110000
je 0x1400b22b6
jmp 0x1400b2338
xor r14d, r14d
jmp 0x1400b22a8
cmp edx, 0x80
jb 0x1400b235e
mov rcx, 0xfffffffffffffffe
cmp edx, 0x7ff
jbe 0x1400b235e
xor ecx, ecx
cmp edx, 0x10000
setb cl
or rcx, 0xfffffffffffffffc
add rcx, r14
mov r15, rcx
jmp 0x1400b22a5
and qword [rsi], 0
lea rcx, [rsp + 0x58]
call fcn.14002e741
mov rcx, rdi
call sub.advapi32.dll_RegCloseKey
jmp 0x1400b23a4
mov qword [rsp + 0x50], r15
mov qword [rsi + 0x10], r15
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rsi], xmm0
lea rcx, [rsp + 0x58]
call fcn.14002e741
mov rcx, rdi
call sub.advapi32.dll_RegCloseKey
lea rcx, [rsp + 0x90]
call fcn.1400a9430
lea rcx, [rsp + 0x78]
call fcn.1400a9430
mov rax, rsi
add rsp, 0xa8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x1400d7fde
Capabilities:
Get session user name

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, rcx
lea rdx, [rsp + 0x2c]
and dword [rdx], 0
xor r14d, r14d
xor ecx, ecx
call sub.advapi32.dll_GetUserNameW
test eax, eax
jne 0x1400d80ab
lea rbx, [rsp + 0x2c]
mov ecx, dword [rbx]
xor edx, edx
call fcn.1400d7dd4
mov rdi, rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rdx
and qword [rsp + 0x40], 0
mov rax, rdx
shr rax, 0x20
neg rax
sbb r14d, r14d
or r14d, edx
mov dword [rbx], r14d
mov rcx, rdi
mov rdx, rbx
call sub.advapi32.dll_GetUserNameW
test eax, eax
je 0x1400d8068
mov eax, dword [rsp + 0x2c]
lea r8, [rax - 1]
test rax, rax
cmove r8, rax
mov qword [rsp + 0x40], r8
mov rcx, rsi
mov rdx, rdi
call fcn.140092740
jmp 0x1400d8094
mov ecx, 7
xor edx, edx
call fcn.1400d7d7b
mov dword [rax + 3], 0x6e776f6e
mov dword [rax], 0x6e6b6e75
mov qword [rsi], rax
mov qword [rsi + 8], rdx
mov qword [rsi + 0x10], 7
mov byte [rsi + 0x18], 1
lea rcx, [rsp + 0x30]
call fcn.1400d7e63
mov rax, rsi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, str.assertion_failed:_success.cargo_registry_srcindex.crates.io_6f17d22bba15001fwhoami_1.4.1_srcwindows.rs
lea r8, [0x1401748b8]
mov edx, 0x19
call fcn.14000e3b0
ud2
Function at 0x1400df8d0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
aesenc xmm2, xmm1
aesenc xmm3, xmm1
aesenc xmm4, xmm1
aesenc xmm5, xmm1
aesenc xmm6, xmm1
aesenc xmm7, xmm1
movups xmm1, xmmword [rcx + rax]
add rax, 0x20
aesenc xmm2, xmm0
aesenc xmm3, xmm0
aesenc xmm4, xmm0
aesenc xmm5, xmm0
aesenc xmm6, xmm0
aesenc xmm7, xmm0
movups xmm0, xmmword [rcx + rax - 0x10]
jne fcn.1400df8d0
aesenc xmm2, xmm1
aesenc xmm3, xmm1
aesenc xmm4, xmm1
aesenc xmm5, xmm1
aesenc xmm6, xmm1
aesenc xmm7, xmm1
aesenclast xmm2, xmm0
aesenclast xmm3, xmm0
aesenclast xmm4, xmm0
aesenclast xmm5, xmm0
aesenclast xmm6, xmm0
aesenclast xmm7, xmm0
repz ret

Function at 0x1400df9da
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
aesenc xmm2, xmm1
aesenc xmm3, xmm1
aesenc xmm4, xmm1
aesenc xmm5, xmm1
aesenc xmm6, xmm1
aesenc xmm7, xmm1
aesenc xmm8, xmm1
aesenc xmm9, xmm1
movups xmm1, xmmword [rcx + rax]
add rax, 0x20
aesenc xmm2, xmm0
aesenc xmm3, xmm0
aesenc xmm4, xmm0
aesenc xmm5, xmm0
aesenc xmm6, xmm0
aesenc xmm7, xmm0
aesenc xmm8, xmm0
aesenc xmm9, xmm0
movups xmm0, xmmword [rcx + rax - 0x10]
jne 0x1400df9b0
aesenc xmm2, xmm1
aesenc xmm3, xmm1
aesenc xmm4, xmm1
aesenc xmm5, xmm1
aesenc xmm6, xmm1
aesenc xmm7, xmm1
aesenc xmm8, xmm1
aesenc xmm9, xmm1
aesenclast xmm2, xmm0
aesenclast xmm3, xmm0
aesenclast xmm4, xmm0
aesenclast xmm5, xmm0
aesenclast xmm6, xmm0
aesenclast xmm7, xmm0
aesenclast xmm8, xmm0
aesenclast xmm9, xmm0
repz ret
Function at 0x1400ecf40
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
vmovdqu xmm4, xmmword [rcx - 0x80]
vmovdqu xmm2, xmmword [r11 + 0x20]
lea r13, [rbp - 1]
vmovups xmm15, xmmword [rcx - 0x70]
lea r12, [rcx - 0x60]
vpxor xmm9, xmm1, xmm4
add ebx, 0x6000000
jb 0x1400ed060
vpaddb xmm10, xmm1, xmm2
vpaddb xmm11, xmm10, xmm2
vpxor xmm10, xmm10, xmm4
vpaddb xmm12, xmm11, xmm2
vpxor xmm11, xmm11, xmm4
vpaddb xmm13, xmm12, xmm2
vpxor xmm12, xmm12, xmm4
vpaddb xmm14, xmm13, xmm2
vpxor xmm13, xmm13, xmm4
vpaddb xmm1, xmm14, xmm2
vpxor xmm14, xmm14, xmm4
jmp 0x1400ecfa0
vaesenc xmm9, xmm9, xmm15
vaesenc xmm10, xmm10, xmm15
vaesenc xmm11, xmm11, xmm15
vaesenc xmm12, xmm12, xmm15
vaesenc xmm13, xmm13, xmm15
vaesenc xmm14, xmm14, xmm15
vmovups xmm15, xmmword [r12]
lea r12, [r12 + 0x10]
dec r13d
jne 0x1400ecfa0
vmovdqu xmm3, xmmword [r12]
vaesenc xmm9, xmm9, xmm15
vpxor xmm4, xmm3, xmmword [rdi]
vaesenc xmm10, xmm10, xmm15
vpxor xmm5, xmm3, xmmword [rdi + 0x10]
vaesenc xmm11, xmm11, xmm15
vpxor xmm6, xmm3, xmmword [rdi + 0x20]
vaesenc xmm12, xmm12, xmm15
vpxor xmm8, xmm3, xmmword [rdi + 0x30]
vaesenc xmm13, xmm13, xmm15
vpxor xmm2, xmm3, xmmword [rdi + 0x40]
vaesenc xmm14, xmm14, xmm15
vpxor xmm3, xmm3, xmmword [rdi + 0x50]
lea rdi, [rdi + 0x60]
vaesenclast xmm9, xmm9, xmm4
vaesenclast xmm10, xmm10, xmm5
vaesenclast xmm11, xmm11, xmm6
vaesenclast xmm12, xmm12, xmm8
vaesenclast xmm13, xmm13, xmm2
vaesenclast xmm14, xmm14, xmm3
vmovups xmmword [rsi], xmm9
vmovups xmmword [rsi + 0x10], xmm10
vmovups xmmword [rsi + 0x20], xmm11
vmovups xmmword [rsi + 0x30], xmm12
vmovups xmmword [rsi + 0x40], xmm13
vmovups xmmword [rsi + 0x50], xmm14
lea rsi, [rsi + 0x60]
repz ret
vpshufb xmm6, xmm1, xmm0
vmovdqu xmm5, xmmword [r11 + 0x30]
vpaddd xmm10, xmm6, xmmword [r11 + 0x40]
vpaddd xmm11, xmm6, xmm5
vpaddd xmm12, xmm10, xmm5
vpshufb xmm10, xmm10, xmm0
vpaddd xmm13, xmm11, xmm5
vpshufb xmm11, xmm11, xmm0
vpxor xmm10, xmm10, xmm4
vpaddd xmm14, xmm12, xmm5
vpshufb xmm12, xmm12, xmm0
vpxor xmm11, xmm11, xmm4
vpaddd xmm1, xmm13, xmm5
vpshufb xmm13, xmm13, xmm0
vpxor xmm12, xmm12, xmm4
vpshufb xmm14, xmm14, xmm0
vpxor xmm13, xmm13, xmm4
vpshufb xmm1, xmm1, xmm0
vpxor xmm14, xmm14, xmm4
jmp 0x1400ecfa0
Function at 0x1400f18c0
Capabilities:
Encode data using xor

Disassembly:
xor r10, r10
xor r11, r11
xor r12, r12
cmp r8, 0xd
jne 0x1400f196f
mov r10, qword [rcx]
mov r11, qword [rcx + 5]
shr r11, 0x18
mov r12d, 1
mov rax, qword [rbp + 0xa0]
mov r15, rax
mul r10
mov r13, rax
mov r14, rdx
mov rax, qword [rbp + 0xa0]
mul r11
imul r15, r12
add r14, rax
adc r15, rdx
mov rax, qword [rbp + 0xa8]
mov r9, rax
mul r10
add r14, rax
adc rdx, 0
mov r10, rdx
mov rax, qword [rbp + 0xa8]
mul r11
add r15, rax
adc rdx, 0
imul r9, r12
add r15, r10
adc r9, rdx
mov r10, r13
mov r11, r14
mov r12, r15
and r12, 3
mov r13, r15
and r13, 0xfffffffffffffffc
mov r14, r9
shrd r15, r9, 2
shr r9, 2
add r15, r13
adc r9, r14
add r10, r15
adc r11, r9
adc r12, 0
repz ret
cmp r8, 0x10
jb 0x1400f1a1a
add r10, qword [rcx]
adc r11, qword [rcx + 8]
adc r12, 1
mov rax, qword [rbp + 0xa0]
mov r15, rax
mul r10
mov r13, rax
mov r14, rdx
mov rax, qword [rbp + 0xa0]
mul r11
imul r15, r12
add r14, rax
adc r15, rdx
mov rax, qword [rbp + 0xa8]
mov r9, rax
mul r10
add r14, rax
adc rdx, 0
mov r10, rdx
mov rax, qword [rbp + 0xa8]
mul r11
add r15, rax
adc rdx, 0
imul r9, r12
add r15, r10
adc r9, rdx
mov r10, r13
mov r11, r14
mov r12, r15
and r12, 3
mov r13, r15
and r13, 0xfffffffffffffffc
mov r14, r9
shrd r15, r9, 2
shr r9, 2
add r15, r13
adc r9, r14
add r10, r15
adc r11, r9
adc r12, 0
lea rcx, [rcx + 0x10]
sub r8, 0x10
jmp 0x1400f196f
cmp r8, 0
je 0x1400f1ae0
xor r13, r13
xor r14, r14
xor r15, r15
add rcx, r8
shld r14, r13, 8
shl r13, 8
movzx r15, byte [rcx - 1]
xor r13, r15
dec rcx
dec r8
jne 0x1400f1a30
add r10, r13
adc r11, r14
adc r12, 1
mov rax, qword [rbp + 0xa0]
mov r15, rax
mul r10
mov r13, rax
mov r14, rdx
mov rax, qword [rbp + 0xa0]
mul r11
imul r15, r12
add r14, rax
adc r15, rdx
mov rax, qword [rbp + 0xa8]
mov r9, rax
mul r10
add r14, rax
adc rdx, 0
mov r10, rdx
mov rax, qword [rbp + 0xa8]
mul r11
add r15, rax
adc rdx, 0
imul r9, r12
add r15, r10
adc r9, rdx
mov r10, r13
mov r11, r14
mov r12, r15
and r12, 3
mov r13, r15
and r13, 0xfffffffffffffffc
mov r14, r9
shrd r15, r9, 2
shr r9, 2
add r15, r13
adc r9, r14
add r10, r15
adc r11, r9
adc r12, 0
repz ret
Function at 0x140100010
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.140100db0
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.140100db0
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 0x140100080
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1401c3284]
mov rbx, rcx
test esi, esi
jle 0x1401001b0
mov rax, qword [0x1401c3288]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1401000cb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140100155
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1401000b0
mov rcx, rbx
call fcn.140100ad0
mov rdi, rax
test rax, rax
je 0x1401001d2
mov rax, qword [0x1401c3288]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140100c10
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1401c3288]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1401001b7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14010014e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140100160
add dword [0x1401c3284], 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 [0x1401c3288]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.kernel32.dll_VirtualProtect]
test eax, eax
jne 0x14010014e
call qword [sym.imp.kernel32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140100010
nop dword [rax]
xor esi, esi
jmp 0x1401000d8
mov rax, qword [0x1401c3288]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140100010
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140100010
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140100740
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1401c32e0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1401c32c0]
test rbx, rbx
je 0x14010079c
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 0x140100793
test rsi, rsi
je 0x140100793
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140100778
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 0x140100ad0
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x140100b50
Capabilities:
Parse pe header

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

Function at 0x140100c10
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140175fd0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140100c2f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140100c38
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140101010
Capabilities:
Encode data using xor

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov r10, rcx
mov rbx, r8
cmp edx, 0x80
je 0x1401010a6
mov eax, 1
cmp edx, 0x100
jne 0x1401012c6
lea rdi, [rsp + 0x20]
mov rdx, rcx
lea rbp, [rsp + 0x30]
mov dword [r8 + 0xf0], 0xe
mov rcx, rdi
mov esi, 2
lea r12, [rsp + 0x40]
lea r13, [0x14019c160]
call fcn.1401067b0
mov r8d, 0x10
mov rcx, rbx
mov rdx, rdi
call fcn.140101510
lea rdx, [r10 + 0x10]
mov rcx, rbp
call fcn.1401067b0
lea rcx, [rbx + 0x10]
mov rdx, rbp
add rbx, 0x20
mov r8d, 0x10
call fcn.140101510
jmp 0x14010119a
lea rdi, [rsp + 0x30]
mov rdx, rcx
lea rsi, [rbx + 0x10]
mov dword [r8 + 0xf0], 0xa
mov rcx, rdi
lea rbp, [0x14019c160]
lea r12, [rsp + 0x40]
call fcn.1401067b0
mov rcx, rbx
mov r8d, 0x10
mov rdx, rdi
call fcn.140101510
add rbx, 0xb0
mov rdx, rdi
mov rcx, r12
inc rbp
call fcn.140106c80
mov r8b, byte [rbp - 1]
mov rcx, qword [rsp + 0x40]
call fcn.140106bb0
mov rdx, r8
shr r8, 4
and edx, 0xf
shr rax, 0x30
xor rax, qword [rsp + 0x30]
and r8d, 0xf
xor rax, rdx
mov rdx, rax
mov rcx, rax
shl rcx, 0x10
shl rdx, 0x20
xor rdx, rcx
mov rcx, qword [rsp + 0x48]
xor rdx, rax
shl rax, 0x30
xor rax, rdx
mov qword [rsp + 0x30], rax
call fcn.140106bb0
shr rax, 0x30
xor rax, qword [rsp + 0x38]
xor rax, r8
mov r8d, 0x10
mov rdx, rax
mov rcx, rax
shl rcx, 0x20
shl rdx, 0x10
xor rdx, rcx
mov rcx, rsi
add rsi, 0x10
xor rdx, rax
shl rax, 0x30
xor rax, rdx
mov rdx, rdi
mov qword [rsp + 0x38], rax
call fcn.140101510
cmp rbx, rsi
jne 0x1401010e9
xor eax, eax
jmp 0x1401012c6
mov rdx, rbp
mov rcx, r12
lea r14, [rbx + 0x20]
call fcn.140106c80
mov rax, rsi
mov rcx, qword [rsp + 0x40]
shr rax, 1
mov r8b, byte [r13 + rax - 1]
call fcn.140106bb0
mov rdx, r8
shr rax, 0x30
xor rax, qword [rsp + 0x20]
and edx, 0xf
shr r8, 4
xor rax, rdx
and r8d, 0xf
mov rdx, rax
mov rcx, rax
shl rcx, 0x10
shl rdx, 0x20
xor rdx, rcx
mov rcx, qword [rsp + 0x48]
xor rdx, rax
shl rax, 0x30
xor rax, rdx
mov qword [rsp + 0x20], rax
call fcn.140106bb0
shr rax, 0x30
xor rax, qword [rsp + 0x28]
xor rax, r8
mov r8d, 0x10
mov rdx, rax
mov rcx, rax
shl rcx, 0x20
shl rdx, 0x10
xor rdx, rcx
mov rcx, rbx
xor rdx, rax
shl rax, 0x30
xor rax, rdx
mov rdx, rdi
mov qword [rsp + 0x28], rax
call fcn.140101510
cmp rsi, 0xe
je 0x140101193
mov rdx, rdi
mov rcx, r12
add rsi, 2
call fcn.140106c80
movzx eax, word [rsp + 0x46]
xor rax, qword [rsp + 0x30]
mov r8d, 0x10
mov rdx, rax
mov rcx, rax
shl rcx, 0x20
shl rdx, 0x10
xor rdx, rcx
xor rdx, rax
shl rax, 0x30
xor rax, rdx
mov qword [rsp + 0x30], rax
movzx eax, word [rsp + 0x4e]
xor rax, qword [rsp + 0x38]
mov rdx, rax
mov rcx, rax
shl rcx, 0x20
shl rdx, 0x10
xor rdx, rcx
lea rcx, [rbx + 0x10]
mov rbx, r14
xor rdx, rax
shl rax, 0x30
xor rax, rdx
mov rdx, rbp
mov qword [rsp + 0x38], rax
call fcn.140101510
jmp 0x14010119a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
Function at 0x1401012e0
Capabilities:
Encode data using xor

Disassembly:
push rbx
mov ebx, 1
mov r9d, 0x40
xor eax, eax
mov r8d, 1
shl rbx, 0x3f
mov rdx, r8
mov r11, rcx
shr rax, 1
and edx, 1
neg rdx
and r11, rdx
and rdx, rbx
mov r10, r11
add rax, rdx
xor r10, r8
and r8, r11
shr r10, 1
add r8, r10
dec r9
jne 0x1401012f8
pop rbx
ret

Function at 0x1401038a0
Capabilities:
Encrypt data using curve25519

Disassembly:
mov al, byte [rcx + 0x1f]
and byte [rcx], 0xf8
and eax, 0x7f
or eax, 0x40
mov byte [rcx + 0x1f], al
ret