joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140075b94
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1400759ff
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400759ff
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400759ff
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400759ff
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400759ff
cmp dword [rcx + 0x84], 0xe
jbe 0x1400759ff
cmp dword [rcx + 0xf8], 0
je 0x1400759ff
mov ecx, ebx
call fcn.140075ab0
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14007588c
nop
cmp dword [rbp + 0x20], 0
je 0x140075a4d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140075a58
int3
xor r8d, r8d
xor edx, edx
jmp 0x140075990

Function at 0x14007676c
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x1400b3040]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x140097b78]
mov rbp, rcx
call fcn.140082ac4
xor edi, edi
test rax, rax
je 0x140076852
mov ebx, edi
call fcn.14007c7b8
mov r14d, dword [rax]
call fcn.14007c7b8
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.140082a10
mov rsi, rax
test rax, rax
je 0x1400767e3
call fcn.14007c7b8
mov dword [rax], r14d
jmp 0x14007680d
call fcn.14007c7b8
cmp dword [rax], 0x22
jne 0x14007684a
call fcn.14007c7b8
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.140082a10
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x14007684a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x140076811
cmp rax, 3
je 0x14007682c
mov rcx, rsi
call fcn.1400766c8
test al, al
je 0x14007683d
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x14007683d
mov dil, 1
mov rcx, rbx
call fcn.140071010
mov al, dil
jmp 0x140076854
mov rcx, rbx
call fcn.140071010
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14008ec20
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x14007f378
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, [0x1400b5050]
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 0x14007f3cf
cmp word [rdx], r13w
jne 0x14007f3cf
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14007f3d4
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14007f4f9
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14007f51a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14007f40d
mov rdx, r9
mov word [rbx], cx
jmp 0x14007f434
cmp r9, r8
jae 0x14007f444
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 0x14007f3ee
jmp 0x14007f4f9
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 0x14007f4ee
cmp dword [rsp + 0x80], esi
je 0x14007f4ee
lea r8, [0x1400b5050]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14007f4c6
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14007f496
mov word [rbx], r13w
jmp 0x14007f4f6
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 0x14007f4a3
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14007f4f6
cmp word [rsp + 0x70], r13w
jne 0x14007f4d3
cmp rbx, r14
je 0x14007f490
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14007f2d4
cmp word [rsp + 0x70], r13w
je 0x14007f4f9
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, [0x1400b5050]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14007f4f3
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14007f4f9
Function at 0x140081b98
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140081bae
mov al, 1
jmp 0x140081c0e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140081bbf
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140081c0c
mov ecx, dword [rcx + 0x18]
nop
call fcn.140083160
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140081c0c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140081c0c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140081c0c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140081c0e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140084a64
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 0x140084a94
xor eax, eax
jmp 0x140084b57
mov rbp, rbx
cmp word [rax], si
je 0x140084ab9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140084aa0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140084a9c
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.140083480
movsxd r14, eax
test eax, eax
jne 0x140084af7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140084a8d
mov rcx, r14
call fcn.14007d9bc
mov rdi, rax
test rax, rax
jne 0x140084b10
xor ecx, ecx
call fcn.14007d980
jmp 0x140084aec
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.140083480
test eax, eax
jne 0x140084b41
mov rcx, rdi
call fcn.14007d980
jmp 0x140084b4b
xor ecx, ecx
call fcn.14007d980
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 0x140084b74
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 0x140084bfb
mov rsi, rbx
cmp word [rax], bp
je 0x140084bba
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140084ba4
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140084ba0
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14007d9bc
mov rdi, rax
test rax, rax
je 0x140084be8
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400910c0
mov rbp, rdi
xor ecx, ecx
call fcn.14007d980
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 0x140088110
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.14007d0ec
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 0x1400881b1
cmp ebx, dword [rsp + 0x30]
je 0x1400881aa
test esi, esi
je 0x1400881aa
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140088185
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140088192
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14008816f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140088196
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400881b3
mov eax, 1
jmp 0x1400881b3
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14008ca18
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1400b3040]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x14008ca62
call fcn.14007c798
mov dword [rax], 0xf
call fcn.14007c7b8
mov dword [rax], 0xd
call fcn.1400788ac
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14008ec20
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x14008ca6d
lea eax, [rbx + 1]
jmp 0x14008ca4f
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 0x14008ca4d
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x14008ca4f
Function at 0x14008d234
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.14006b000
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14008d2be
cmp byte [rbp - 0x21], r15b
je 0x14008d2b9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14008d2f4
call fcn.140080038
test eax, eax
jne 0x14008d2e0
cmp byte [rbp - 0x21], r15b
je 0x14008d2d8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14008d2f4
cmp byte [rbp - 0x21], r15b
je 0x14008d2f1
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.140075f10
test eax, eax
jne 0x14008d394
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14006b000
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14008d333
cmp byte [rbp - 0x21], r15b
je 0x14008d368
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14008d368
call fcn.140080038
test eax, eax
jne 0x14008d354
cmp byte [rbp - 0x21], r15b
je 0x14008d34d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14008d368
cmp byte [rbp - 0x21], r15b
je 0x14008d365
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.140075f10
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14008d394
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14008d397
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14008d3a5
mov rcx, rdi
call fcn.14007d980
cmp byte [rbp + 0x3f], r15b
je 0x14008d3b4
mov rcx, qword [rbp + 0x27]
call fcn.14007d980
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 0x14008e17c
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.14007f2d4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14007f2d4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14008e2cc
cmp rax, 0xffffffffffffffff
je 0x14008e2cc
xor edi, edi
test rbp, rbp
jle 0x14008e277
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14007efec
mov rbx, rax
test rax, rax
jne 0x14008e204
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14008e26d
mov edx, 0x8000
mov ecx, r14d
call fcn.140079ee4
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.140081394
cmp eax, 0xffffffff
je 0x14008e24d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14008e214
mov edx, r15d
mov ecx, r14d
call fcn.140079ee4
jmp 0x14008e26d
cmp byte [rsi + 0x38], dil
je 0x14008e264
cmp dword [rsi + 0x34], 5
jne 0x14008e264
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14008e26d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14007d980
jmp 0x14008e2e0
jns 0x14008e2e0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14007f2d4
cmp rax, 0xffffffffffffffff
jne 0x14008e298
cmp byte [rsi + 0x30], dil
je 0x14008e2e0
mov edi, dword [rsi + 0x2c]
jmp 0x14008e2e0
mov ecx, r14d
call fcn.140083160
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14008e2e0
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 0x14008e2e0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14008e2d9
mov eax, dword [rsi + 0x2c]
jmp 0x14008e2de
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14007f2d4
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 0x14008ed40
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14008ed68
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14008ed68
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140011208
Capabilities:
Terminate process

Disassembly:
jmp 0x1400138c0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x140011299
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014c10
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014c30
xor al, al
jmp 0x140014cb1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014c43
xor al, al
jmp 0x140014cb1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140014c6d
xor al, al
jmp 0x140014cb1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014c81
xor al, al
jmp 0x140014cb1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014c93
xor al, al
jmp 0x140014cb1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140014caf
xor al, al
jmp 0x140014cb1
mov al, 1
add rsp, 0x38
ret
Function at 0x1400113e3
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
jmp 0x140011870
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x158
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x1a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x178]
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x118], rax
lea rcx, [0x1400240a2]
call fcn.1400113bb
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 0x18
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x1400118f2
mov eax, 0xffffffff
jmp 0x140011a23
lea rax, [rbp + 0x28]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x800c
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x14001192a
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 0xffffffff
jmp 0x140011a23
xor r9d, r9d
mov r8d, dword [rbp + 0x158]
mov rdx, qword [rbp + 0x150]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x140011969
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 0xffffffff
jmp 0x140011a23
lea rax, [rbp + 0x48]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8, qword [rbp + 0x28]
mov edx, 0x6610
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
jne 0x1400119a9
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 0xffffffff
jmp 0x140011a23
lea rax, [rbp + 0x148]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x140]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 1
xor edx, edx
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x140011a01
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 0xffffffff
jmp 0x140011a23
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x14001ad90]
call fcn.140011334
mov rax, rdi
mov rcx, qword [rbp + 0x118]
xor rcx, rbp
call fcn.1400111c2
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret
Function at 0x18002cd10
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rbp
sub rsp, 0x3a0
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x388], rbx
mov rax, qword [0x18004b008]
xor rax, rbp
mov qword [rbp + 0x360], rax
mov rbx, rcx
mov dword [rbp + 0x22], 0x41575446
lea rcx, [rbp + 0x30]
mov word [rbp + 0x20], 0x4f53
xor edx, edx
mov dword [rbp + 0x26], 0x5c4552
mov r8d, 0x104
mov word [rbp + 0x10], 0x7325
mov word [rbp + 0x13], 0x73
mov byte [rbp + 0x12], 0x25
call fcn.180030440
lea rcx, str.RSpeedupTab
or rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x18002cd80
inc eax
cmp eax, 0x3fffffff
jle 0x18002cd97
xor eax, eax
jmp 0x18002cdd2
lea r8d, [rax + rax]
cdqe
add rax, rax
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x18002cdb3
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.18003e5e0
sub rsp, rcx
mov r9d, 3
lea rcx, [rsp + 0x30]
call fcn.18002c660
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x10]
lea rax, [rbp + 0x20]
or r8, 0xffffffffffffffff
mov edx, 0x104
mov qword [rsp + 0x20], rax
lea rcx, [rbp + 0x30]
call fcn.18002c600
lea rax, [rbp + 8]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 0x30]
mov rcx, 0xffffffff80000001
call fcn.18002a910
test eax, eax
jne 0x18002cedd
xor edx, edx
lea rcx, [rbp + 0x250]
mov r8d, 0x104
call fcn.180030440
mov rcx, qword [rbp + 8]
lea rax, [rbp + 4]
mov qword [rsp + 0x28], rax
lea rdx, [rbp + 0x18]
lea rax, [rbp + 0x250]
mov dword [rbp + 0x1a], 0x736c61
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov word [rbp + 0x18], 0x7668
call fcn.18002a230
test eax, eax
jne 0x18002ced4
cmp dword [rbp + 4], eax
jbe 0x18002ced4
xor edx, edx
lea rcx, [rbp + 0x140]
mov r8d, 0x104
call fcn.180030440
lea r9, [rbp]
mov word [rbp], 0x6425
or r8, 0xffffffffffffffff
mov byte [rbp + 2], 0
mov edx, 0x104
mov qword [rsp + 0x20], rbx
lea rcx, [rbp + 0x140]
call fcn.18002c600
lea rdx, [rbp + 0x140]
lea rcx, [rbp + 0x250]
call fcn.18002ba30
test rax, rax
je 0x18002ced4
mov rcx, qword [rbp + 8]
call fcn.18002aab0
mov rax, rbx
jmp 0x18002cee6
mov rcx, qword [rbp + 8]
call fcn.18002aab0
mov rcx, rbx
call qword [0x180077a78]
mov rcx, qword [rbp + 0x360]
xor rcx, rbp
call fcn.18002e780
mov rbx, qword [rbp + 0x388]
lea rsp, [rbp + 0x370]
pop rbp
ret
Function at 0x18002cf10
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rbp
sub rsp, 0x3a0
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x388], rbx
mov rax, qword [0x18004b008]
xor rax, rbp
mov qword [rbp + 0x360], rax
mov rbx, rcx
mov word [rbp + 0x20], 0x4f53
lea rcx, [rbp + 0x30]
mov dword [rbp + 0x25], 0x5c455241
xor edx, edx
mov byte [rbp + 0x29], 0
mov r8d, 0x104
mov word [rbp + 0x23], 0x5754
mov byte [rbp + 0x22], 0x46
mov dword [rbp + 0x11], 0x732573
mov byte [rbp + 0x10], 0x25
call fcn.180030440
lea rcx, str.RSpeedupTab
or rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x18002cf80
inc eax
cmp eax, 0x3fffffff
jle 0x18002cf97
xor eax, eax
jmp 0x18002cfd2
lea r8d, [rax + rax]
cdqe
add rax, rax
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x18002cfb3
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.18003e5e0
sub rsp, rcx
mov r9d, 3
lea rcx, [rsp + 0x30]
call fcn.18002c660
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x10]
lea rax, [rbp + 0x20]
or r8, 0xffffffffffffffff
mov edx, 0x104
mov qword [rsp + 0x20], rax
lea rcx, [rbp + 0x30]
call fcn.18002c600
lea rax, [rbp + 8]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 0x30]
mov rcx, 0xffffffff80000001
call fcn.18002a910
test eax, eax
jne 0x18002d0df
xor edx, edx
lea rcx, [rbp + 0x250]
mov r8d, 0x104
call fcn.180030440
mov rcx, qword [rbp + 8]
lea rax, [rbp + 4]
mov qword [rsp + 0x28], rax
lea rdx, [rbp + 0x18]
lea rax, [rbp + 0x250]
mov dword [rbp + 0x1a], 0x736c61
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov word [rbp + 0x18], 0x7668
call fcn.18002a230
test eax, eax
jne 0x18002d0d6
cmp dword [rbp + 4], eax
jbe 0x18002d0d6
xor edx, edx
lea rcx, [rbp + 0x140]
mov r8d, 0x104
call fcn.180030440
lea r9, [rbp]
mov word [rbp], 0x6425
or r8, 0xffffffffffffffff
mov byte [rbp + 2], 0
mov edx, 0x104
mov qword [rsp + 0x20], rbx
lea rcx, [rbp + 0x140]
call fcn.18002c600
lea rdx, [rbp + 0x140]
lea rcx, [rbp + 0x250]
call fcn.18002ba30
test rax, rax
je 0x18002d0d6
mov rcx, qword [rbp + 8]
call fcn.18002aab0
mov eax, 1
jmp 0x18002d0e8
mov rcx, qword [rbp + 8]
call fcn.18002aab0
mov rcx, rbx
call qword [0x180077a60]
mov rcx, qword [rbp + 0x360]
xor rcx, rbp
call fcn.18002e780
mov rbx, qword [rbp + 0x388]
lea rsp, [rbp + 0x370]
pop rbp
ret