joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400160c4
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, [0x1400361f0]
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 0x14001611b
cmp word [rdx], r13w
jne 0x14001611b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140016120
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140016245
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140016266
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140016159
mov rdx, r9
mov word [rbx], cx
jmp 0x140016180
cmp r9, r8
jae 0x140016190
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 0x14001613a
jmp 0x140016245
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 0x14001623a
cmp dword [rsp + 0x80], esi
je 0x14001623a
lea r8, [0x1400361f0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140016212
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400161e2
mov word [rbx], r13w
jmp 0x140016242
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 0x1400161ef
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140016242
cmp word [rsp + 0x70], r13w
jne 0x14001621f
cmp rbx, r14
je 0x1400161dc
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140016d2c
cmp word [rsp + 0x70], r13w
je 0x140016245
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, [0x1400361f0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14001623f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140016245
Function at 0x14001a9bc
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 0x14001a9ec
xor eax, eax
jmp 0x14001aaaf
mov rbp, rbx
cmp word [rax], si
je 0x14001aa11
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14001a9f8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14001a9f4
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.140018fbc
movsxd r14, eax
test eax, eax
jne 0x14001aa4f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14001a9e5
mov rcx, r14
call fcn.140016dd0
mov rdi, rax
test rax, rax
jne 0x14001aa68
xor ecx, ecx
call fcn.140014808
jmp 0x14001aa44
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.140018fbc
test eax, eax
jne 0x14001aa99
mov rcx, rdi
call fcn.140014808
jmp 0x14001aaa3
xor ecx, ecx
call fcn.140014808
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 0x14001d978
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.14001344c
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 0x14001da19
cmp ebx, dword [rsp + 0x30]
je 0x14001da12
test esi, esi
je 0x14001da12
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14001d9ed
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14001d9fa
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14001d9d7
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14001d9fe
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14001da1b
mov eax, 1
jmp 0x14001da1b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14001fed4
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14000f100
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14001ff5e
cmp byte [rbp - 0x21], r15b
je 0x14001ff59
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14001ff94
call fcn.140015134
test eax, eax
jne 0x14001ff80
cmp byte [rbp - 0x21], r15b
je 0x14001ff78
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14001ff94
cmp byte [rbp - 0x21], r15b
je 0x14001ff91
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14000f288
test eax, eax
jne 0x140020034
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000f100
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14001ffd3
cmp byte [rbp - 0x21], r15b
je 0x140020008
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140020008
call fcn.140015134
test eax, eax
jne 0x14001fff4
cmp byte [rbp - 0x21], r15b
je 0x14001ffed
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140020008
cmp byte [rbp - 0x21], r15b
je 0x140020005
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14000f288
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140020034
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140020037
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140020045
mov rcx, rdi
call fcn.140014808
cmp byte [rbp + 0x3f], r15b
je 0x140020054
mov rcx, qword [rbp + 0x27]
call fcn.140014808
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1400206a0
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.140016d2c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140016d2c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400207f0
cmp rax, 0xffffffffffffffff
je 0x1400207f0
xor edi, edi
test rbp, rbp
jle 0x14002079b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140014df4
mov rbx, rax
test rax, rax
jne 0x140020728
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140020791
mov edx, 0x8000
mov ecx, r14d
call fcn.140010510
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.140014500
cmp eax, 0xffffffff
je 0x140020771
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140020738
mov edx, r15d
mov ecx, r14d
call fcn.140010510
jmp 0x140020791
cmp byte [rsi + 0x38], dil
je 0x140020788
cmp dword [rsi + 0x34], 5
jne 0x140020788
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140020791
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140014808
jmp 0x140020804
jns 0x140020804
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140016d2c
cmp rax, 0xffffffffffffffff
jne 0x1400207bc
cmp byte [rsi + 0x30], dil
je 0x140020804
mov edi, dword [rsi + 0x2c]
jmp 0x140020804
mov ecx, r14d
call fcn.14001b424
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140020804
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 0x140020804
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400207fd
mov eax, dword [rsi + 0x2c]
jmp 0x140020802
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140016d2c
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 0x1400216c0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400216e8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400216e8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001000
Capabilities:
Allocate or change rwx memory
Create thread
Get file size
Read file on windows
Spawn thread to rwx shellcode

Disassembly:
push rdi
sub rsp, 0x70
mov qword [rsp + 0x58], 0
mov dword [rsp + 0x50], 0
lea rax, [rsp + 0x54]
mov rdi, rax
xor eax, eax
mov ecx, 4
rep stosb byte [rdi], al
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 1
mov edx, 0x80000000
lea rcx, str.payload_x64.bin.sgn
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0xffffffffffffffff
jne 0x140001083
mov eax, 0xffffffff
jmp 0x14000114f
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x1400010a1
mov eax, 0xffffffff
jmp 0x14000114f
mov eax, dword [rsp + 0x50]
mov r9d, 4
mov r8d, 0x3000
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400010ee
mov eax, 0xffffffff
jmp 0x14000114f
mov eax, dword [rsp + 0x50]
lea r9, [rsp + 0x44]
mov r8d, 0x20
mov edx, eax
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
je 0x14000114d
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rsp + 0x60]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x68], rax
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
add rsp, 0x70
pop rdi
ret

Function at 0x140001884
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400018ce
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400018ce
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400018ce
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400018ce
cmp dword [rcx + 0x84], 0xe
jbe 0x1400018ce
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400018d0
xor al, al
add rsp, 0x28
ret
Function at 0x140003820
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x60
mov rdi, rcx
xor esi, esi
mov ebx, esi
mov dword [rsp + 0x98], ebx
lea r8, str.CTFarmMutex
lea edx, [rsi + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140003886
xor edx, edx
lea rcx, str.H_SMILE_FRAME
call qword [sym.imp.USER32.dll_FindWindowW]
test rax, rax
je 0x1400039ad
lea edx, [rsi + 1]
mov rcx, rax
call qword [sym.imp.USER32.dll_ShowWindow]
jmp 0x1400039ad
call fcn.1400037b0
mov rbx, rax
cmp qword [rax], 0
je 0x1400038a5
call fcn.140003280
mov rdx, qword [rax + 0x518]
mov rcx, qword [rbx]
call rdx
mov qword [rbx], rsi
call fcn.140003280
mov rax, qword [rax + 0x508]
mov edx, 0x54e42
lea rcx, [0x1401117e0]
call rax
mov qword [rbx], rax
test rax, rax
je 0x1400039d5
mov ecx, 0xc0
call fcn.1400d26ac
mov qword [rsp + 0xa0], rax
test rax, rax
je 0x1400038f2
mov rcx, rax
call fcn.140006040
mov rbx, rax
jmp 0x1400038f5
mov rbx, rsi
cmp qword [rbx + 0x28], 0
je 0x140003955
cmp byte [rbx + 0x30], 0
jne 0x140003955
mov byte [rbx + 0x30], 1
lea rax, [rbx + 0x20]
mov r14, rbx
test rax, rax
cmove r14, rsi
mov r15, qword [r14 + 0x28]
call fcn.140003280
mov rax, qword [rax + 0x48]
mov r8, r14
lea rdx, [0x1400033d0]
mov rcx, r15
call rax
mov r14, qword [rbx + 0x28]
call fcn.140003280
mov rax, qword [rax + 0x298]
mov r9d, 0xffff
mov r8, rbx
lea rdx, [0x1400034f0]
mov rcx, r14
call rax
mov r14, qword [rbx + 0x28]
call fcn.140003280
mov rax, qword [rax + 0x38]
lea rdx, str.this:__app_index.htm
mov rcx, r14
call rax
test eax, eax
je 0x1400039f7
mov rcx, rbx
call fcn.14000f090
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x140003a19
mov rax, qword [rcx]
call qword [rax + 0x10]
mov ebx, eax
mov dword [rsp + 0x98], eax
jmp 0x1400039ad
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x1400039c7
mov r8, qword [rcx]
cmp rcx, rdi
setne dl
call qword [r8 + 0x20]
mov qword [rdi + 0x38], rsi
mov eax, ebx
add rsp, 0x60
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
lea rdx, str.cant_open_archive
lea rcx, [rsp + 0x20]
call fcn.140002c80
lea rdx, [0x14018ae50]
lea rcx, [rsp + 0x20]
call fcn.1400d37f8
lea rdx, str.cant_open_index
lea rcx, [rsp + 0x38]
call fcn.140002c80
lea rdx, [0x14018ae50]
lea rcx, [rsp + 0x38]
call fcn.1400d37f8
call fcn.1400ce1f8
int3
Function at 0x140010510
Capabilities:
Get hostname

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14018d558]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x20], rcx
lea rdx, [rsp + 0x20]
xorps xmm0, xmm0
mov dword [rsp + 0x20], 0x20
mov rbx, rcx
lea rcx, [rsp + 0x30]
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
xorps xmm0, xmm0
lea rcx, [0x140167c50]
movups xmmword [rbx], xmm0
test eax, eax
mov qword [rbx + 0x10], 0
lea rdx, [rsp + 0x30]
mov qword [rbx + 0x18], 0
cmove rdx, rcx
mov r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], 0
jne 0x140010581
mov rcx, rbx
call fcn.140004580
mov rax, rbx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400d2c70
add rsp, 0x60
pop rbx
ret

Function at 0x140010860
Capabilities:
Get memory capacity

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x14018d558]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rsi, rcx
mov qword [rsp + 0x28], rcx
xor ebx, ebx
mov dword [rsp + 0x20], ebx
call fcn.140003280
mov rdx, qword [rax + 0x408]
mov rcx, rsi
call rdx
mov dword [rsp + 0x20], 1
mov edi, ebx
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
mov dword [rsp + 0x40], 0x40
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x1400108ed
mov rbx, qword [rsp + 0x50]
shr rbx, 0x14
mov rdi, qword [rsp + 0x48]
shr rdi, 0x14
call fcn.140003280
mov r8, qword [rax + 0x408]
lea rcx, [rsp + 0x30]
call r8
call fcn.140003280
mov r10, qword [rax + 0x450]
xor r9d, r9d
lea r8d, [r9 + 3]
mov edx, ebx
lea rcx, [rsp + 0x30]
call r10
nop
lea r8, [rsp + 0x30]
lea rdx, str.free
mov rcx, rsi
call fcn.14000eca0
nop
call fcn.140003280
mov r9, qword [rax + 0x410]
lea rcx, [rsp + 0x30]
call r9
nop
call fcn.140003280
mov r9, qword [rax + 0x408]
lea rcx, [rsp + 0x30]
call r9
call fcn.140003280
mov r10, qword [rax + 0x450]
xor r9d, r9d
lea r8d, [r9 + 3]
mov edx, edi
lea rcx, [rsp + 0x30]
call r10
nop
lea r8, [rsp + 0x30]
lea rdx, str.total
mov rcx, rsi
call fcn.14000eca0
nop
call fcn.140003280
mov rdx, qword [rax + 0x410]
lea rcx, [rsp + 0x30]
call rdx
nop
mov rax, rsi
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400d2c70
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1400109d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x270
mov rax, qword [0x14018d558]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rbx, rcx
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x50]
xor edx, edx
mov r8d, 0x208
xor edi, edi
call fcn.1400d4e70
lea rax, [rsp + 0x30]
mov dword [rsp + 0x38], 0x103
mov r9d, 0x20219
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SoftwareCryptotabCTFarm
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140010a69
lea rax, [rsp + 0x30]
mov r9d, 0x20219
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareCryptotabCTFarm
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140010ab3
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x3c]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x3c], 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.TrackID
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140010aa8
mov word [rsp + 0x50], di
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xorps xmm0, xmm0
lea rax, [rsp + 0x50]
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
mov r8, 0xffffffffffffffff
mov qword [rbx + 0x18], rdi
nop dword [rax]
inc r8
cmp word [rax + r8*2], di
jne 0x140010ad0
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.140004580
mov rax, rbx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1400d2c70
mov rbx, qword [rsp + 0x288]
add rsp, 0x270
pop rdi
ret

Function at 0x140010b10
Capabilities:
Get session user name

Disassembly:
push rbx
sub rsp, 0x250
mov rax, qword [0x14018d558]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rcx
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8d, 0x202
call fcn.1400d4e70
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x202
lea rcx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
xorps xmm0, xmm0
lea rcx, [0x140167c50]
movups xmmword [rbx], xmm0
test eax, eax
mov qword [rbx + 0x10], 0
lea rdx, [rsp + 0x30]
mov qword [rbx + 0x18], 0
cmove rdx, rcx
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x140010b90
mov rcx, rbx
call fcn.140004580
mov rax, rbx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400d2c70
add rsp, 0x250
pop rbx
ret
Function at 0x140015af0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, qword [rcx]
mov r10d, 0x270
mov ecx, dword [r9]
cmp ecx, r10d
jne 0x140015b51
lea r8, [r9 + 8]
nop dword [rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x140015b10
mov ecx, dword [r9]
jmp 0x140015c38
cmp ecx, 0x4e0
jb 0x140015c38
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, eax
lea r10, [r10 + 4]
xor edx, r11d
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x630]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x140015b70
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop dword [rax + rax]
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, eax
lea r10, [r10 + 4]
xor edx, r11d
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 - 0xd50]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x140015bc0
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret
Function at 0x140093a00
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
pshufd xmm0, xmmword [rdx], 0x55
lea rdi, [0x1401699a0]
mov r11, rcx
movd eax, xmm0
pshufd xmm0, xmmword [rdx], 0xff
mov rbx, rdx
mov r9d, eax
movdqu xmm5, xmmword [r11]
shr rax, 0x10
movzx r8d, al
mov eax, r9d
shr rax, 0x18
pslldq xmm5, 4
movdqa xmm4, xmm5
pslldq xmm5, 4
movzx r10d, byte [r8 + rdi]
movzx eax, byte [rax + rdi]
xorps xmm4, xmmword [r11]
shl eax, 8
or r10d, eax
mov eax, r9d
shr rax, 8
movzx ecx, al
shl r10d, 8
movzx eax, byte [rcx + rdi]
or r10d, eax
movzx eax, r9b
shl r10d, 8
movzx ecx, byte [rax + rdi]
or r10d, ecx
movd eax, xmm0
mov edx, eax
shr rax, 0x10
movzx ecx, al
mov eax, edx
shr rax, 0x18
movd xmm3, r10d
movzx r8d, byte [rcx + rdi]
movzx eax, byte [rax + rdi]
shl eax, 8
or r8d, eax
mov eax, edx
shr rax, 8
movzx ecx, al
shl r8d, 8
movzx eax, byte [rcx + rdi]
or r8d, eax
movzx eax, dl
shl r8d, 8
movzx ecx, byte [rax + rdi]
mov eax, r10d
ror eax, 8
or r8d, ecx
xor eax, 2
mov ecx, r8d
ror ecx, 8
xor ecx, 2
movd xmm2, r8d
movd xmm0, eax
punpckldq xmm3, xmm0
movdqa xmm0, xmm5
movd xmm1, ecx
xorps xmm0, xmm4
punpckldq xmm2, xmm1
punpcklqdq xmm3, xmm2
pslldq xmm5, 4
xorps xmm0, xmm5
pshufd xmm1, xmm3, 0xff
xorps xmm1, xmm0
pshufd xmm0, xmm1, 0x55
movd eax, xmm0
movdqu xmmword [r11], xmm1
mov edx, eax
shr rax, 0x10
movzx ecx, al
mov eax, edx
shr rax, 0x18
movzx r9d, byte [rcx + rdi]
movzx eax, byte [rax + rdi]
shl eax, 8
or r9d, eax
movdqu xmm5, xmmword [rbx]
mov eax, edx
shr rax, 8
movzx ecx, al
pshufd xmm0, xmm1, 0xff
shl r9d, 8
pslldq xmm5, 4
movzx eax, byte [rcx + rdi]
movdqa xmm4, xmm5
xorps xmm4, xmmword [rbx]
or r9d, eax
movzx eax, dl
shl r9d, 8
pslldq xmm5, 4
movzx ecx, byte [rax + rdi]
movd eax, xmm0
or r9d, ecx
mov edx, eax
shr rax, 0x10
movzx ecx, al
mov eax, edx
shr rax, 0x18
movd xmm3, r9d
movzx r8d, byte [rcx + rdi]
movzx eax, byte [rax + rdi]
shl eax, 8
or r8d, eax
mov eax, edx
shr rax, 8
movzx ecx, al
shl r8d, 8
movzx eax, byte [rcx + rdi]
or r8d, eax
movzx eax, dl
shl r8d, 8
movzx ecx, byte [rax + rdi]
mov rdi, qword [rsp + 0x10]
or r8d, ecx
mov ecx, r9d
mov eax, r8d
ror ecx, 8
ror eax, 8
movd xmm2, r8d
movd xmm0, ecx
punpckldq xmm3, xmm0
movdqa xmm0, xmm5
movd xmm1, eax
xorps xmm0, xmm4
punpckldq xmm2, xmm1
punpcklqdq xmm3, xmm2
pslldq xmm5, 4
pshufd xmm1, xmm3, 0xaa
xorps xmm0, xmm5
xorps xmm1, xmm0
movdqu xmmword [rbx], xmm1
mov rbx, qword [rsp + 8]
ret