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

Disassembly:
jmp 0x140045550
push rbp
push r14
sub rsp, 0x88
movzx r14d, dl
mov rbp, rcx
call fcn.140003f40
test eax, eax
jne 0x14004557b
mov eax, 0x80004005
add rsp, 0x88
pop r14
pop rbp
ret
mov rcx, qword [0x14023d0b0]
lea rax, str.APPID
mov edx, 0x65
mov qword [rsp + 0x80], rdi
xorps xmm0, xmm0
mov qword [rsp + 0x58], rax
lea rdi, str.D5D53ADA_EAFD_4AA8_BD6B_DA32F20171C4
lea r9, [rsp + 0x58]
mov qword [rsp + 0x60], rdi
lea r8d, [rdx - 0x64]
movdqu xmmword [rsp + 0x68], xmm0
call fcn.14001e8a0
test eax, eax
js 0x14004578c
lea rax, [rsp + 0xb8]
mov qword [rsp + 0xa0], rbx
mov qword [rsp + 0xa8], rsi
lea rdx, str.AppID
xor esi, esi
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
mov qword [rsp + 0xb8], rsi
xor r8d, r8d
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14004574c
mov rbx, qword [rsp + 0xb8]
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x40], rax
xor r9d, r9d
lea rax, [rsp + 0x50]
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov qword [rsp + 0x30], rsi
mov rdx, rdi
mov dword [rsp + 0x28], 0x2001f
mov rcx, rbx
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140045733
mov rdi, qword [rsp + 0x50]
lea rdx, str.LocalService
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test r14b, r14b
jne 0x1400456a2
test rdi, rdi
je 0x140045689
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test rbx, rbx
je 0x140045776
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x14004577c
lea rcx, [rbp + 0x48]
test rcx, rcx
je 0x1400456e6
mov rax, 0xffffffffffffffff
cmp word [rcx + rax*2 + 2], si
lea rax, [rax + 1]
jne 0x1400456b2
lea eax, [rax*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
lea rdx, str.LocalService
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, rbp
call fcn.14000da90
test eax, eax
jne 0x140045715
test rdi, rdi
je 0x140045700
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test rbx, rbx
je 0x14004570e
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80004005
jmp 0x14004577c
test rdi, rdi
je 0x140045723
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test rbx, rbx
je 0x140045760
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140045760
mov ecx, eax
call fcn.14001df00
mov edi, eax
test rbx, rbx
je 0x140045755
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140045755
mov ecx, eax
call fcn.14001df00
mov edi, eax
test edi, edi
js 0x14004577a
mov esi, edi
test r14b, r14b
je 0x14004577a
mov rcx, rbp
call fcn.140012230
test eax, eax
je 0x140045776
xor edx, edx
mov rcx, rbp
call fcn.140010940
mov eax, esi
jmp 0x14004577c
mov eax, edi
mov rsi, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0xa0]
mov rdi, qword [rsp + 0x80]
add rsp, 0x88
pop r14
pop rbp
ret

Function at 0x140003380
Capabilities:
Parse pe header

Disassembly:
jmp 0x14019f2bc
xor r8d, r8d
xor edx, edx
jmp 0x14019efac
Function at 0x140006b50
Capabilities:
Accept command line arguments
Query or enumerate registry value

Disassembly:
jmp 0x140049070
jmp 0x1400485b0
push rbx
push r14
sub rsp, 0x298
mov rax, qword [0x140235e48]
xor rax, rsp
mov qword [rsp + 0x280], rax
cmp byte [0x14023d080], 0
mov r14d, edx
mov rbx, rcx
je 0x1400485e6
mov eax, 0xffffffff
jmp 0x1400487b8
mov qword [rsp + 0x2c8], rdi
mov qword [rsp + 0x290], r15
xor r15d, r15d
mov dword [rsp + 0x30], r15d
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea r8, [rsp + 0x30]
mov rcx, rbx
mov rdx, rax
call fcn.140005480
cmp al, 1
jne 0x1400487a2
lea rax, [rsp + 0x38]
mov qword [rsp + 0x2b8], rbp
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov qword [rsp + 0x2c0], rsi
lea rdx, str.AppID
mov qword [rsp + 0x38], r15
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test eax, eax
jne 0x14004878a
mov rsi, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
mov rcx, rsi
mov qword [rsp + 0x40], r15
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.D5D53ADA_EAFD_4AA8_BD6B_DA32F20171C4
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test eax, eax
jne 0x140048774
mov rbp, qword [rsp + 0x40]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rsp + 0x70]
mov dword [rsp + 0x30], 0x208
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.LocalService
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400486f8
mov eax, dword [rsp + 0x34]
dec eax
cmp eax, 1
ja 0x1400486f8
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x140048714
test al, 1
jne 0x1400486f8
shr rax, 1
cmp word [rsp + rax*2 + 0x6e], r15w
je 0x14004871a
mov edx, r14d
mov dword [rbx + 0x26c], r15d
mov rcx, rbx
call fcn.140008b20
mov edi, eax
mov dword [rbx + 0x25c], eax
jmp 0x140048764
mov word [rsp + 0x70], r15w
lea rax, [rbx + 0x48]
mov dword [rbx + 0x26c], 1
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x48]
lea rax, [0x140021130]
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x60], r15
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x14004875e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 0x25c], eax
mov edi, dword [rbx + 0x25c]
test rbp, rbp
je 0x14004877a
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14004877a
mov dword [rbx + 0x25c], eax
test rsi, rsi
je 0x140048790
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140048790
mov dword [rbx + 0x25c], eax
mov rsi, qword [rsp + 0x2c0]
mov rbp, qword [rsp + 0x2b8]
jmp 0x1400487a6
mov edi, dword [rsp + 0x30]
mov r15, qword [rsp + 0x290]
mov eax, edi
mov rdi, qword [rsp + 0x2c8]
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.14000fde0
add rsp, 0x298
pop r14
pop rbx
ret
mov edx, r9d
lea rcx, [0x14023d330]
jmp 0x140007750
Function at 0x14000ccc0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
jmp 0x1401477b4
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x140147841
movsxd rcx, dword [0x14000003c]
lea rdx, [0x140000000]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x140147841
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140147841
sub r8, rdx
movzx eax, word [rcx + 0x14]
lea rdx, [rcx + 0x18]
add rdx, rax
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x140147828
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x140147822
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x14014782a
add rdx, 0x28
jmp 0x140147807
xor edx, edx
test rdx, rdx
jne 0x140147833
xor al, al
jmp 0x140147847
cmp dword [rdx + 0x24], 0
jge 0x14014783d
xor al, al
jmp 0x140147847
mov al, 1
jmp 0x140147847
xor al, al
jmp 0x140147847
add rsp, 0x18
ret

Function at 0x14000ce30
Capabilities:
Clear file content

Disassembly:
jmp 0x1401ae1a4
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 r14d, 1
mov r8d, r14d
xor edx, edx
mov ebp, ecx
call fcn.140006140
xor edx, edx
lea r8d, [r14 + 1]
mov ecx, ebp
mov r15, rax
call fcn.140006140
mov rsi, rbx
sub rsi, rax
cmp r15, 0xffffffffffffffff
je 0x1401ae2db
cmp rax, 0xffffffffffffffff
je 0x1401ae2db
xor edi, edi
test rsi, rsi
jle 0x1401ae297
mov r12d, 0x1000
mov edx, r14d
mov ecx, r12d
call fcn.14001c7f0
mov rbx, rax
test rax, rax
jne 0x1401ae231
call fcn.14000c160
mov dword [rax], ntohl
jmp 0x1401ae27a
mov edx, 0x8000
mov ecx, ebp
call fcn.140016b80
mov r14d, eax
jmp 0x1401ae24c
cdqe
sub rsi, rax
test rsi, rsi
jle 0x1401ae28b
mov r8d, esi
cmp rsi, r12
mov rdx, rbx
mov ecx, ebp
cmovge r8d, r12d
call fcn.14001aad0
cmp eax, 0xffffffff
jne 0x1401ae242
call fcn.1400148f0
cmp dword [rax], 5
jne 0x1401ae27a
call fcn.14000c160
mov dword [rax], reloc.WS2_32.dll_listen
call fcn.14000c160
mov edi, dword [rax]
mov rcx, rbx
call fcn.140001e90
jmp 0x1401ae2e2
mov edx, r14d
mov ecx, ebp
call fcn.140016b80
jmp 0x1401ae281
jns 0x1401ae2e2
xor r8d, r8d
mov rdx, rbx
mov ecx, ebp
call fcn.140006140
cmp rax, 0xffffffffffffffff
je 0x1401ae2db
mov ecx, ebp
call fcn.140020be0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1401ae2e2
call fcn.14000c160
mov dword [rax], reloc.WS2_32.dll_listen
call fcn.1400148f0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx], eax
call fcn.14000c160
mov edi, dword [rax]
xor r8d, r8d
mov rdx, r15
mov ecx, ebp
call fcn.140006140
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 0x140015250
Capabilities:
Get socket status

Disassembly:
jmp 0x1400b4ae0
push rbp
push rbx
push rdi
push r14
lea rbp, [rsp - 0x168]
sub rsp, 0x268
mov rax, qword [0x140235e48]
xor rax, rsp
mov qword [rbp + 0x150], rax
mov rbx, r9
movzx edi, dl
mov r14, rcx
cmp rcx, 0xffffffffffffffff
jne 0x1400b4b3e
lea rax, [0x1401e1a10]
mov dword [rsp + 0x30], 0x2719
mov qword [rsp + 0x38], rax
mov eax, ecx
mov byte [rsp + 0x34], 1
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [r9], xmm0
jmp 0x1400b4c55
mov qword [rsp + 0x298], rsi
mov qword [rsp + 0x260], r15
xor r15d, r15d
mov qword [rsp + 0x48], r14
mov dword [rsp + 0x40], 1
and dil, 1
je 0x1400b4b70
mov qword [rsp + 0x30], r15
lea rsi, [rsp + 0x30]
jmp 0x1400b4ba2
test r8d, r8d
js 0x1400b4b9f
mov eax, 0x10624dd3
lea rsi, [rsp + 0x30]
mul r8d
shr edx, 6
imul eax, edx, 0x3e8
mov dword [rsp + 0x30], edx
sub r8d, eax
imul eax, r8d, 0x3e8
mov dword [rsp + 0x34], eax
jmp 0x1400b4ba2
mov rsi, r15
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
lea ecx, [r14 + 1]
mov qword [rsp + 0x20], rsi
xor r9d, r9d
lea rdx, [rsp + 0x40]
xor r8d, r8d
call qword [sym.imp.WS2_32.dll_select]
mov esi, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
mov dword [rsp + 0x30], eax
lea rax, [0x1401e1a10]
setne byte [rsp + 0x34]
mov qword [rsp + 0x38], rax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbx], xmm0
test esi, esi
jne 0x1400b4c2a
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x30]
test dil, dil
je 0x1400b4c1b
mov dword [rsp + 0x30], 0x2733
mov byte [rsp + 0x34], 1
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
movups xmm0, xmmword [rax]
jmp 0x1400b4c40
mov dword [rsp + 0x30], r15d
mov byte [rsp + 0x34], r15b
movups xmm0, xmmword [rax]
jmp 0x1400b4c40
jle 0x1400b4c43
mov dword [rsp + 0x30], r15d
mov byte [rsp + 0x34], r15b
mov qword [rsp + 0x38], rax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbx], xmm0
mov r15, qword [rsp + 0x260]
mov eax, esi
mov rsi, qword [rsp + 0x298]
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.14000fde0
add rsp, 0x268
pop r14
pop rdi
pop rbx
pop rbp
ret

Function at 0x140015db0
Capabilities:
Parse pe header

Disassembly:
jmp 0x140148918
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140148963
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140148963
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140148963
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140148963
cmp dword [rcx + 0x84], 0xe
jbe 0x140148963
cmp dword [rcx + 0xf8], 0
je 0x140148963
mov al, 1
jmp 0x140148965
xor al, al
add rsp, 0x28
ret
Function at 0x140016730
Capabilities:
Send data
Send data on socket

Disassembly:
jmp 0x1400acd30
push rbx
sub rsp, 0x50
mov rbx, qword [rcx + 8]
lea rax, [rsp + 0x60]
xor ecx, ecx
mov qword [rsp + 0x48], rax
mov byte [rsp + 0x60], 0
mov dword [rsp + 0x40], 1
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor eax, eax
lea r9, [rsp + 0x68]
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov rcx, rbx
mov dword [rsp + 0x68], eax
lea r8d, [rax + 1]
mov dword [rsp + 0x20], eax
call qword [sym.imp.WS2_32.dll_WSASend]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
add rsp, 0x50
pop rbx
ret
Function at 0x140002980
Capabilities:
Hash data using fnv

Disassembly:
mov byte [rsp + 0x10], dl
mov dword [rsp + 8], ecx
movsx eax, byte [rsp + 0x10]
mov ecx, dword [rsp + 8]
xor ecx, eax
mov eax, ecx
mov eax, eax
imul rax, rax, 0x1000193
ret

Function at 0x140003984
Capabilities:
Parse pe header

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

Function at 0x140009dcc
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 0x140009c37
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140009c37
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140009c37
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140009c37
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140009c37
cmp dword [rcx + 0x84], 0xe
jbe 0x140009c37
cmp dword [rcx + 0xf8], 0
je 0x140009c37
mov ecx, ebx
call fcn.140009ce8
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.140009ac4
nop
cmp dword [rbp + 0x20], 0
je 0x140009c85
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140009c90
int3
xor r8d, r8d
xor edx, edx
jmp 0x140009bc8
Function at 0x14000d70c
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 0x14000d73c
xor eax, eax
jmp 0x14000d7ff
mov rbp, rbx
cmp word [rax], si
je 0x14000d761
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000d748
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000d744
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.14000d62c
movsxd r14, eax
test eax, eax
jne 0x14000d79f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000d735
mov rcx, r14
call fcn.14000bac0
mov rdi, rax
test rax, rax
jne 0x14000d7b8
xor ecx, ecx
call fcn.14000bc8c
jmp 0x14000d794
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.14000d62c
test eax, eax
jne 0x14000d7e9
mov rcx, rdi
call fcn.14000bc8c
jmp 0x14000d7f3
xor ecx, ecx
call fcn.14000bc8c
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 0x140010b00
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.14000c6fc
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140010b8a
cmp byte [rbp - 0x21], r15b
je 0x140010b85
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140010bc0
call fcn.14000ec7c
test eax, eax
jne 0x140010bac
cmp byte [rbp - 0x21], r15b
je 0x140010ba4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140010bc0
cmp byte [rbp - 0x21], r15b
je 0x140010bbd
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.14000bcdc
test eax, eax
jne 0x140010c60
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000c6fc
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140010bff
cmp byte [rbp - 0x21], r15b
je 0x140010c34
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140010c34
call fcn.14000ec7c
test eax, eax
jne 0x140010c20
cmp byte [rbp - 0x21], r15b
je 0x140010c19
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140010c34
cmp byte [rbp - 0x21], r15b
je 0x140010c31
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.14000bcdc
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140010c60
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140010c63
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140010c71
mov rcx, rdi
call fcn.14000bc8c
cmp byte [rbp + 0x3f], r15b
je 0x140010c80
mov rcx, qword [rbp + 0x27]
call fcn.14000bc8c
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 0x140013ab0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140013ad8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140013ad8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14000cf60
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x1400ed1f8]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rsi, rdx
mov rdi, rcx
xor ebp, ebp
mov qword [rsp + 0x48], rbp
mov dword [rsp + 0x50], ebp
mov qword [rsp + 0x58], rbp
mov r9d, dword [rcx + 8]
or r9d, 0x2001f
mov r8, rdx
mov rdx, qword [rcx]
lea rcx, [rsp + 0x48]
call fcn.140003a20
mov ebx, eax
mov rcx, qword [rsp + 0x48]
test eax, eax
jne 0x14000d0ec
mov dword [rsp + 0x40], 0x100
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x70]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x14000d055
nop dword [rax + rax]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.14000cf60
mov ebx, eax
mov rcx, qword [rsp + 0x48]
test eax, eax
jne 0x14000d0ec
mov dword [rsp + 0x40], 0x100
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x70]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x14000d000
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14000d06a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], rbp
mov dword [rsp + 0x50], ebp
mov rbx, qword [rdi + 0x10]
test rbx, rbx
je 0x14000d11c
mov rdi, qword [rdi]
cmp qword [rbx], 0
je 0x14000d0d3
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
jne 0x14000d09d
mov ebx, 1
jmp 0x14000d0e7
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000d096
mov qword [rsp + 0x28], rbp
mov rcx, qword [rbx]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, rdi
call qword [case.0x140071fe6.0]
jmp 0x14000d0e5
cmp dword [rbx + 8], 0
je 0x14000d096
mov rcx, rdi
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, eax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14000d0f7
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140068e00
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
cmp byte [0x1400f3f30], 0
jne 0x14000d167
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000d157
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400f3f28], rax
mov byte [0x1400f3f30], 1
jmp 0x14000d16e
mov rax, qword [0x1400f3f28]
mov byte [0x1400f3f30], 1
jmp 0x14000d16e
mov rax, qword [0x1400f3f28]
mov rcx, qword [rdi]
test rax, rax
je 0x14000d0dc
xor r9d, r9d
mov r8d, dword [rdi + 8]
mov rdx, rsi
call qword [case.0x140071fe6.0]
jmp 0x14000d0e5
Function at 0x140037aa0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1400
call fcn.140069e00
sub rsp, rax
mov rax, qword [0x1400ed1f8]
xor rax, rsp
mov qword [rsp + 0x13f0], rax
mov rbx, rcx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x20], rcx
xor ebp, ebp
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x50], 7
mov word [rsp + 0x38], bp
lea r8d, [rbp + 0x3e]
lea rdx, str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
lea rcx, [rsp + 0x38]
call fcn.1400027c0
nop
call fcn.140067b0c
mov edx, eax
mov r10d, 0xffffffff
mov dword [rsp + 0x13e4], r10d
mov dword [rsp + 0x64], eax
mov r14d, 1
mov ecx, r14d
nop word [rax + rax]
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, ecx
mov dword [rsp + rcx*4 + 0x64], edx
inc rcx
cmp rcx, 0x270
jb 0x140037b40
mov dword [rsp + 0x60], 0x270
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x38]
mov r9, qword [rsp + 0x50]
mov rax, qword [rsp + 0x48]
cmp r9, 8
jb 0x140037b8a
mov r8, rcx
lea rdx, [rcx + rax*2]
jmp 0x140037b93
lea rdx, [rdx + rax*2]
lea r8, [rsp + 0x38]
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], rdx
mov rsi, 0xffffffffffffffff
mov r13d, 0x40
nop word [rax + rax]
lea r13, [r13 - 1]
shr rsi, 1
cmp rsi, r10
ja 0x140037bb0
cmp r8, rdx
je 0x140037c94
lea r12, [r8 + 2]
cmp r12, rdx
je 0x140037c94
nop dword [rax]
nop word [rax + rax]
lea r15, [r14 + 1]
mov rbx, rbp
mov rdi, rbp
test r14, r14
je 0x140037c28
nop
lea rcx, [r13 - 1]
shl rbx, cl
add rbx, rbx
nop word [rax + rax]
lea rcx, [rsp + 0x60]
call fcn.1400380c0
mov eax, eax
cmp rax, rsi
ja 0x140037c00
or rbx, rax
lea rcx, [r13 - 1]
shl rdi, cl
add rdi, rdi
or rdi, rsi
cmp rdi, r14
jb 0x140037bf0
xor ebp, ebp
xor edx, edx
mov rax, rdi
div r15
mov r8, rdx
mov rcx, rax
xor edx, edx
mov rax, rbx
div r15
cmp rax, rcx
jb 0x140037c48
cmp r8, r14
jne 0x140037be4
xor edx, edx
mov rax, rbx
div r15
cmp rdx, r14
je 0x140037c6e
movzx ecx, word [r12]
mov r8, qword [rsp + 0x28]
movzx eax, word [r8 + rdx*2]
mov word [r12], ax
mov word [r8 + rdx*2], cx
mov r14, r15
add r12, 2
cmp r12, qword [rsp + 0x20]
jne 0x140037be0
mov r9, qword [rsp + 0x50]
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
mov qword [rbx], rbp
mov qword [rbx + 0x10], rbp
mov qword [rbx + 0x18], 7
mov word [rbx], bp
mov r8d, 0x20
cmp rax, r8
cmovb r8, rax
lea rdx, [rsp + 0x38]
cmp r9, 8
cmovae rdx, rcx
mov rcx, rbx
call fcn.1400027c0
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 8
jb 0x140037d07
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140037d02
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140037d3b
call fcn.14005ce30
mov rax, rbx
mov rcx, qword [rsp + 0x13f0]
xor rcx, rsp
call fcn.140068e00
lea r11, [rsp + 0x1400]
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.14008c3ec
int3