joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14005d000
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x14010a028]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x1401242d0]
mov ecx, dword [0x140119718]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14005d060
mov rsi, qword [0x1401242c8]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14007d7b0
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x1401242d0]
call fcn.14007c53c
cmp dword [0x1401242d0], 0xffffffff
jne 0x14005d03c
lea rsi, [rsp + 0x38]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.14007f900
mov dword [rsi - 4], 0x11c
lea rsi, [rsp + 0x34]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea rdi, [rsp + 0x30]
mov dword [rdi], 0
mov ecx, dword [rsi + 4]
mov edx, dword [rsi + 8]
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetProductInfo]
mov ecx, 0x80
call fcn.14007c4b4
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x140124318]
mov ecx, dword [0x140119718]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14005d120
lea r8, [0x1401242e8]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.140038df0
mov qword [0x1401242c8], rsi
lea rcx, [0x1401242d0]
call fcn.14007c5f0
jmp 0x14005d03c
lea rcx, [0x140124318]
call fcn.14007c53c
cmp dword [0x140124318], 0xffffffff
jne 0x14005d0f1
xorps xmm0, xmm0
movups xmmword [0x140124308], xmm0
movups xmmword [0x1401242f8], xmm0
movups xmmword [0x1401242e8], xmm0
lea rcx, [0x1401242e8]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x140124318]
call fcn.14007c5f0
jmp 0x14005d0f1
Function at 0x14005d170
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x14010a028]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x1401242d0]
mov ecx, dword [0x140119718]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14005d1d1
mov rax, qword [0x1401242c8]
mov esi, dword [rax]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14007d7b0
mov eax, esi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x1401242d0]
call fcn.14007c53c
cmp dword [0x1401242d0], 0xffffffff
jne 0x14005d1ac
lea rsi, [rsp + 0x38]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.14007f900
mov dword [rsi - 4], 0x11c
lea rsi, [rsp + 0x34]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea rdi, [rsp + 0x30]
mov dword [rdi], 0
mov ecx, dword [rsi + 4]
mov edx, dword [rsi + 8]
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetProductInfo]
mov ecx, 0x80
call fcn.14007c4b4
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x140124318]
mov ecx, dword [0x140119718]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14005d291
lea r8, [0x1401242e8]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.140038df0
mov qword [0x1401242c8], rsi
lea rcx, [0x1401242d0]
call fcn.14007c5f0
jmp 0x14005d1ac
lea rcx, [0x140124318]
call fcn.14007c53c
cmp dword [0x140124318], 0xffffffff
jne 0x14005d262
xorps xmm0, xmm0
movups xmmword [0x140124308], xmm0
movups xmmword [0x1401242f8], xmm0
movups xmmword [0x1401242e8], xmm0
lea rcx, [0x1401242e8]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x140124318]
call fcn.14007c5f0
jmp 0x14005d262
Function at 0x14006d400
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
xor eax, eax
test r8d, r8d
sete al
xor r8d, r8d
test edx, edx
sete r8b
xor ecx, ecx
mov edx, r8d
mov r8d, eax
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsi], 0
test rax, rax
je 0x14006d49a
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14006d484
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14006d461
mov qword [rsi], rdi
call fcn.14005eb20
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsi]
mov byte [rsi + 8], 0
inc rax
cmp rax, 1
jbe 0x14006d49e
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.14005eb20
mov rcx, qword [rsi]
call fcn.14005eb30
mov qword [rsi], 0
jmp 0x14006d44f
mov byte [rsi + 8], 0
int3
Function at 0x140072510
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [0x1401196a0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140072544
mov rcx, qword [rsi]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rsi + 8]
jne 0x140072544
mov rax, qword [rax + rcx]
add rsp, 0x20
pop rsi
ret
xor eax, eax
jmp 0x14007253e

Function at 0x140078850
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, ecx
test r8, r8
je 0x14007887b
xor ecx, ecx
lea r9, [0x1400fc8c0]
movzx r10d, al
movzx r11d, byte [rdx + rcx]
xor r11d, r10d
shr eax, 8
xor eax, dword [r9 + r11*4]
inc rcx
cmp r8, rcx
jne 0x140078860
ret
Function at 0x14007ccf4
Capabilities:
Parse pe header

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

Function at 0x14007cfd0
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x14000003c]
lea rsi, [0x140000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x14007d048
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x14007d048
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x14007d048
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x14007d03c
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x14007d05a
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x14007d02a
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x14007d04a

Function at 0x14008bca8
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x14008bcdf
call fcn.14008ed84
mov dword [rax], 0x16
call fcn.1400a0024
xor eax, eax
jmp 0x14008bd6d
mov rdx, r9
mov rcx, r8
call fcn.14008bd90
mov rbx, rax
test rax, rax
je 0x14008bd6a
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x14008be00]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x14008bd57
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14008edc4
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14008bd3e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14008bd4d
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.140052840
jmp 0x14008bd6a
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14008bd67
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x140092ef0
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x14010a028]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x140092f3a
call fcn.14008eda4
mov dword [rax], 0xf
call fcn.14008ed84
mov dword [rax], 0xd
call fcn.1400a0024
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14007d7b0
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x140092f45
lea eax, [rbx + 1]
jmp 0x140092f27
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x140092f25
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x140092f27
Function at 0x14009a0e0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14009a108
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14009a108
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x1400a4568
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.14009dc84
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 0x1400a4609
cmp ebx, dword [rsp + 0x30]
je 0x1400a4602
test esi, esi
je 0x1400a4602
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400a45dd
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400a45ea
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400a45c7
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400a45ee
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400a460b
mov eax, 1
jmp 0x1400a460b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400a55f8
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 0x1400a5628
xor eax, eax
jmp 0x1400a56eb
mov rbp, rbx
cmp word [rax], si
je 0x1400a564d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400a5634
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400a5630
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.1400a5518
movsxd r14, eax
test eax, eax
jne 0x1400a568b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400a5621
mov rcx, r14
call fcn.1400240a0
mov rdi, rax
test rax, rax
jne 0x1400a56a4
xor ecx, ecx
call fcn.140052840
jmp 0x1400a5680
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.1400a5518
test eax, eax
jne 0x1400a56d5
mov rcx, rdi
call fcn.140052840
jmp 0x1400a56df
xor ecx, ecx
call fcn.140052840
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 0x1400a5708
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 0x1400a578f
mov rsi, rbx
cmp word [rax], bp
je 0x1400a574e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400a5738
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400a5734
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400240a0
mov rdi, rax
test rax, rax
je 0x1400a577c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14007f260
mov rbp, rdi
xor ecx, ecx
call fcn.140052840
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 0x1400a8404
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.140086518
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400a848e
cmp byte [rbp - 0x21], r15b
je 0x1400a8489
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400a84c4
call fcn.14009e454
test eax, eax
jne 0x1400a84b0
cmp byte [rbp - 0x21], r15b
je 0x1400a84a8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400a84c4
cmp byte [rbp - 0x21], r15b
je 0x1400a84c1
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.14008bb2c
test eax, eax
jne 0x1400a8564
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140086518
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400a8503
cmp byte [rbp - 0x21], r15b
je 0x1400a8538
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400a8538
call fcn.14009e454
test eax, eax
jne 0x1400a8524
cmp byte [rbp - 0x21], r15b
je 0x1400a851d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400a8538
cmp byte [rbp - 0x21], r15b
je 0x1400a8535
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.14008bb2c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400a8564
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400a8567
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400a8575
mov rcx, rdi
call fcn.140052840
cmp byte [rbp + 0x3f], r15b
je 0x1400a8584
mov rcx, qword [rbp + 0x27]
call fcn.140052840
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 0x1400a8ba0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400a8bb6
mov al, 1
jmp 0x1400a8c16
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400a8bc7
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400a8c14
mov ecx, dword [rcx + 0x18]
nop
call fcn.14008eecc
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400a8c14
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400a8c14
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400a8c14
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400a8c16
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x1400b0600
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x28
test rdx, rdx
je 0x1400b0613
cmp dword [0x14011cf10], ecx
jle 0x1400b061a
add rsp, 0x28
pop rdi
pop rsi
ret
mov rsi, rdx
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
movsxd rdi, eax
mov rcx, rsi
mov rdx, rdi
call fcn.1400b0660
test edi, edi
je 0x1400b0613
cmp byte [rdi + rsi - 1], 0xa
je 0x1400b0613
lea rcx, [0x1400f1e2c]
mov edx, 1
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.1400b0660

Function at 0x1400b0660
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x14010a028]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rbx, rax
add rsi, rdi
xor r15d, r15d
lea r14, [rsp + 0x2c]
mov r12, qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x1400b06ae
mov rdx, rcx
add rdi, rdx
cmp al, 1
je 0x1400b06ec
cmp rdi, rsi
jae 0x1400b06ec
mov dword [rsp + 0x2c], 0
mov r8d, esi
sub r8d, edi
mov qword [rsp + 0x20], r15
mov rcx, rbx
mov rdx, rdi
mov r9, r14
call r12
test eax, eax
sete dl
mov ecx, dword [rsp + 0x2c]
test rcx, rcx
sete al
or al, dl
mov edx, 0
jne 0x1400b06a7
jmp 0x1400b06a4
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14007d7b0
nop
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x1400cdcd0
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov ebx, r8d
mov edi, edx
mov rsi, rcx
mov rax, qword [0x14010a028]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp byte [rcx + 8], 0
je 0x1400cdd41
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, edi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x1400cdd4b
mov dil, 1
test bl, bl
je 0x1400cdd2a
cmp byte [rsi + 8], 0
je 0x1400cdd46
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14007d7b0
mov eax, edi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
mov rcx, qword [rsi]
jmp 0x1400cdcfd
mov rcx, qword [rsi]
jmp 0x1400cdd1f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [rsi + 8], 0
je 0x1400cdd73
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1400cdd78
xor edi, edi
jmp 0x1400cdd2a
mov rcx, qword [rsi]
jmp 0x1400cdd60
mov dword [rsp + 0x24], 0xaaaaaaaa
cmp byte [rsi + 8], 0
je 0x1400cdd9f
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov dil, 1
jmp 0x1400cdd2a
mov rcx, qword [rsi]
jmp 0x1400cdd8f
Function at 0x1400ce180
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x250
mov rax, qword [0x14010a028]
xor rax, rsp
mov qword [rsp + 0x248], rax
mov sil, 1
cmp qword [0x140124230], 0
je 0x1400ce1c6
mov rcx, qword [rsp + 0x248]
xor rcx, rsp
call fcn.14007d7b0
mov eax, esi
add rsp, 0x250
pop rbx
pop rdi
pop rsi
ret
mov rdi, qword [0x140124208]
test rdi, rdi
je 0x1400ce267
test byte [0x140118078], 1
je 0x1400ce1a9
cmp byte [rdi + 0x17], 0
jns 0x1400ce1e8
mov rdi, qword [rdi]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov rcx, rdi
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x140124230], rax
inc rax
cmp rax, 1
ja 0x1400ce1a9
lea rdi, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.14007f900
mov word [rdi], 0
mov ecx, 0x104
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add eax, 0xfffffefb
cmp eax, 0xfffffefc
jae 0x1400ce330
xor esi, esi
jmp 0x1400ce1a9
mov ecx, 0x18
call fcn.14007c4b4
mov rdi, rax
lea rbx, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rbx
mov dl, 0xaa
call fcn.14007f900
xor ecx, ecx
mov rdx, rbx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
movaps xmm0, xmmword [0x1400f1bb0]
movups xmmword [rdi], xmm0
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rdi + 0x10], rax
mov rcx, rdi
mov rdx, rbx
call fcn.14002fad0
movzx eax, byte [rdi + 0x17]
test al, al
js 0x1400ce2cd
and eax, 0x7f
mov rcx, rdi
jmp 0x1400ce2d4
mov rax, qword [rdi + 8]
mov rcx, qword [rdi]
test rax, rax
je 0x1400ce30f
lea r8, [rax + rax]
test r8, r8
je 0x1400ce30f
lea rdx, [r8 - 2]
cmp word [rcx + r8 - 2], 0x5c
mov r8, rdx
jne 0x1400ce2dd
cmp rdx, 0xfffffffffffffffe
je 0x1400ce30f
sar rdx, 1
cmp rax, rdx
jbe 0x1400ce3f7
inc rdx
mov rcx, rdi
call fcn.1400ce8b0
lea rdx, str.debug.log
mov r8d, 9
mov rcx, rdi
call fcn.140032900
mov qword [0x140124208], rdi
jmp 0x1400ce1d6
mov rdi, qword [0x140124208]
lea rbx, [rsp + 0x40]
mov rcx, rbx
call fcn.140099aa8
mov rcx, rdi
mov rdx, rbx
mov r8, rax
call fcn.140032800
mov rcx, qword [0x140124208]
call fcn.1400cb930
cmp word [rax], 0x5c
je 0x1400ce37d
mov rcx, qword [0x140124208]
lea rdx, [0x1400f4a7a]
mov r8d, 1
call fcn.140032900
mov rcx, qword [0x140124208]
lea rdx, str.debug.log
mov r8d, 9
call fcn.140032900
mov rcx, qword [0x140124208]
cmp byte [rcx + 0x17], 0
jns 0x1400ce3a6
mov rcx, qword [rcx]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x140124230], rax
inc rax
cmp rax, 1
ja 0x1400ce1a9
mov qword [0x140124230], 0
jmp 0x1400ce260
mov rcx, rdi
call fcn.1400aea80
int3
Function at 0x14000117c
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x30
mov rdi, qword [rsp + 0x60]
mov esi, r9d
mov rbp, r8
mov qword [rax - 0x18], rdi
xor r9d, r9d
xor r8d, r8d
xor ebx, ebx
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x1400011d2
mov rcx, qword [rdi]
xor r9d, r9d
mov r8d, esi
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov ebx, eax
test eax, eax
jne 0x1400011d2
mov rcx, qword [rdi]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rbp, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x1400011ec
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
xor ebx, ebx
mov dword [rax - 0x38], 0xf0000000
mov rdi, r9
mov dword [r9], ebx
mov r14, r8
mov qword [rax - 0x20], rbx
mov esi, edx
mov rbp, rcx
lea r9d, [rbx + 0x18]
xor r8d, r8d
xor edx, edx
lea rcx, [rax - 0x20]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x1400012ac
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov r9d, esi
mov qword [rsp + 0x20], rax
mov r8, rbp
mov qword [rsp + 0x30], rbx
mov edx, 0x8003
call fcn.14000117c
test eax, eax
je 0x14000129f
mov rcx, qword [rsp + 0x30]
lea edx, [rbx + 4]
lea r9, [rsp + 0x78]
mov dword [rsp + 0x78], edx
mov r8, rdi
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov rcx, qword [rsp + 0x30]
lea edx, [rbx + 2]
mov r9, rdi
mov dword [rsp + 0x20], ebx
mov r8, r14
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov rcx, qword [rsp + 0x30]
mov ebx, 1
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret