joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140099be4
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
xor edi, edi
mov rax, r15
lea rcx, [0x1400e20f0]
and eax, 0x3f
mov r12, r15
sar r12, 6
mov rsi, rdx
lea r9d, [rdi + 0xa]
mov r14, r15
lea rbp, [rax + rax*8]
mov rax, qword [rcx + r12*8]
mov r10, qword [rax + rbp*8 + 0x28]
test r8, r8
je 0x140099c3a
cmp word [rdx], r9w
jne 0x140099c3a
or byte [rax + rbp*8 + 0x38], 4
jmp 0x140099c3f
and byte [rax + rbp*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rax, rsi
mov rbx, rsi
cmp rsi, r8
jae 0x140099dbe
mov r11d, reloc.WS2_32.dll_listen
lea r13d, [r11 - 0xb]
movzx edx, word [rax]
cmp dx, 0x1a
je 0x140099d89
lea rcx, [rax + 2]
cmp dx, r11w
jne 0x140099c87
cmp rcx, r8
jae 0x140099ca7
cmp word [rcx], r9w
jne 0x140099c87
add rax, 4
mov edx, r9d
jmp 0x140099c8a
mov rax, rcx
mov word [rbx], dx
mov r9, r13
mov rcx, rbx
mov r9d, 0xa
lea rbx, [rbx + r13]
cmp rax, r8
jb 0x140099c5c
jmp 0x140099dbe
lea r9, [rsp + 0x80]
mov word [rsp + 0x70], di
mov r8d, r13d
mov dword [rsp + 0x80], edi
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x20], rdi
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140099d82
cmp dword [rsp + 0x80], edi
je 0x140099d82
lea r9, [0x1400e20f0]
mov rax, qword [r9 + r12*8]
test byte [rax + rbp*8 + 0x38], 0x48
mov ebp, 0xa
je 0x140099d5c
movzx eax, word [rsp + 0x70]
cmp ax, bp
jne 0x140099d0f
mov word [rbx], bp
jmp 0x140099dbb
mov word [rsp + 0x78], ax
mov rdx, r14
mov rax, r14
sar rdx, 6
and eax, 0x3f
mov word [rbx], reloc.WS2_32.dll_listen
lea r8, [rax + rax*8]
mov rax, qword [r9 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, r13
jl 0x140099d2a
mov rax, r14
sar rax, 6
and r14d, 0x3f
mov rax, qword [r9 + rax*8]
lea rcx, [r14 + r14*8]
mov byte [rax + rcx*8 + 0x3c], bpl
jmp 0x140099dbb
cmp word [rsp + 0x70], bp
jne 0x140099d68
cmp rbx, rsi
je 0x140099d07
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14009402c
cmp word [rsp + 0x70], bp
je 0x140099dbe
mov word [rbx], reloc.WS2_32.dll_listen
jmp 0x140099dbb
mov rcx, r15
lea r9, [0x1400e20f0]
and ecx, 0x3f
mov rax, r15
sar rax, 6
lea r8, [rcx + rcx*8]
mov rcx, qword [r9 + rax*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x140099db8
or al, r13b
mov byte [rcx + r8*8 + 0x38], al
jmp 0x140099dbe
mov word [rbx], dx
add rbx, r13
sub rbx, rsi
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
Function at 0x14009ca50
Capabilities:
Get file size

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

Function at 0x1400a0394
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x1400ec050]
mov ebx, r9d
mov rdi, r8
mov esi, edx
mov rbp, rcx
cmp rax, 0xffffffffffffffff
je 0x1400a03f9
test rax, rax
jne 0x1400a03e7
lea r9, [0x1400ca4d0]
lea r8, [0x1400ca4c8]
lea rdx, [0x1400ca4d0]
lea ecx, [rax + 0xa]
call fcn.14009fe80
test rax, rax
je 0x1400a03f9
mov r9d, ebx
mov r8, rdi
mov edx, esi
mov rcx, rbp
call fcn.1400ad3d0
jmp 0x1400a0413
xor edx, edx
mov rcx, rbp
call fcn.1400a073c
mov ecx, eax
mov r9d, ebx
mov r8, rdi
mov edx, esi
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x1400a200c
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.14009402c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14009402c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400a2159
cmp rax, 0xffffffffffffffff
je 0x1400a2159
xor edi, edi
test rbp, rbp
jle 0x1400a2107
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14009ce30
mov rbx, rax
test rax, rax
jne 0x1400a2094
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400a20fd
mov edx, 0x8000
mov ecx, r14d
call fcn.140097a8c
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.14009b074
cmp eax, 0xffffffff
je 0x1400a20dd
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400a20a4
mov edx, r15d
mov ecx, r14d
call fcn.140097a8c
jmp 0x1400a20fd
cmp byte [rsi + 0x38], dil
je 0x1400a20f4
cmp dword [rsi + 0x34], 5
jne 0x1400a20f4
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x1400a20fd
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14009d3f0
jmp 0x1400a216b
jns 0x1400a216b
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14009402c
cmp rax, 0xffffffffffffffff
jne 0x1400a2125
cmp byte [rsi + 0x30], dil
je 0x1400a216b
jmp 0x1400a2161
mov ecx, r14d
call fcn.1400a1efc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400a216b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, reloc.WS2_32.dll_listen
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
jmp 0x1400a216b
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400a2166
mov edi, dword [rsi + 0x2c]
jmp 0x1400a216b
mov edi, socket
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14009402c
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 0x1400a55b0
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 0x1400a55e0
xor eax, eax
jmp 0x1400a56a3
mov rbp, rbx
cmp word [rax], si
je 0x1400a5605
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400a55ec
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400a55e8
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.1400a1804
movsxd r14, eax
mov rcx, r14
test eax, eax
jne 0x1400a5646
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400a55d9
call fcn.14009d490
mov rdi, rax
test rax, rax
jne 0x1400a565c
xor ecx, ecx
call fcn.14009d3f0
jmp 0x1400a563b
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.1400a1804
test eax, eax
jne 0x1400a568d
mov rcx, rdi
call fcn.14009d3f0
jmp 0x1400a5697
xor ecx, ecx
call fcn.14009d3f0
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 0x1400a56c0
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 0x1400a5747
mov rsi, rbx
cmp word [rax], bp
je 0x1400a5706
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400a56f0
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400a56ec
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14009d490
mov rdi, rax
test rax, rax
je 0x1400a5734
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400ad410
mov rbp, rdi
xor ecx, ecx
call fcn.14009d3f0
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 0x1400a8430
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov rdi, rdx
mov dword [rsp + 0x30], esi
mov rbx, rcx
test rcx, rcx
je 0x1400a84a3
cmp word [rcx], si
je 0x1400a84a3
lea rdx, [0x1400cb958]
call fcn.1400aba7c
test eax, eax
je 0x1400a84a3
lea rdx, [0x1400cb970]
mov rcx, rbx
call fcn.1400aba7c
test eax, eax
jne 0x1400a8499
mov ecx, dword [rdi + 8]
lea r9d, [rsi + 2]
lea r8, [rsp + 0x30]
mov edx, 0x2000000b
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1400a84c0
mov eax, dword [rsp + 0x30]
jmp 0x1400a84d2
mov rcx, rbx
call fcn.1400919c0
jmp 0x1400a84d2
mov ecx, dword [rdi + 8]
lea r8, [rsp + 0x30]
mov r9d, 2
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x1400a84c4
xor eax, eax
jmp 0x1400a84d2
mov eax, dword [rsp + 0x30]
test eax, eax
jne 0x1400a84d2
call qword [sym.imp.KERNEL32.dll_GetACP]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400a84e4
Capabilities:
Get geographical location

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov ebp, edx
mov dword [rax + 8], ebx
mov edi, ecx
call fcn.14009c254
mov ecx, edi
lea r9d, [rbx + 2]
and ecx, 0x3ff
lea r8, [rsp + 0x30]
bts ecx, 0xa
mov edx, 0x20000001
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1400a8587
cmp edi, dword [rsp + 0x30]
je 0x1400a8580
test ebp, ebp
je 0x1400a8580
mov r9, qword [rsi + 0x98]
mov r8d, ebx
movzx edx, word [r9]
lea rcx, [r9 + 2]
lea eax, [rdx - 0x41]
cmp ax, 0x19
jbe 0x1400a855c
sub dx, 0x61
cmp dx, 0x19
ja 0x1400a8568
movzx edx, word [rcx]
inc r8d
add rcx, 2
jmp 0x1400a8549
or rax, 0xffffffffffffffff
inc rax
cmp word [r9 + rax*2], bx
jne 0x1400a856c
cmp r8d, eax
setne bl
mov eax, ebx
jmp 0x1400a8589
mov eax, 1
jmp 0x1400a8589
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1400a8a84
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400a8aa4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14008b5e0
or eax, 0xffffffff
jmp 0x1400a8aa6
xor eax, eax
add rsp, 0x28
ret
Function at 0x1400ab434
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1400df940]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x1400ab47e
call fcn.14008b62c
mov dword [rax], reloc.WS2_32.dll_ntohs
call fcn.14008b650
mov dword [rax], reloc.WS2_32.dll_listen
call fcn.140083ac4
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 0x1400ab489
lea eax, [rbx + 1]
jmp 0x1400ab46b
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 0x1400ab469
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x1400ab46b
Function at 0x1400ab77c
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.140083b5c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400ab806
cmp byte [rbp - 0x21], r15b
je 0x1400ab801
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400ab83c
call fcn.1400a00ec
test eax, eax
jne 0x1400ab828
cmp byte [rbp - 0x21], r15b
je 0x1400ab820
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400ab83c
cmp byte [rbp - 0x21], r15b
je 0x1400ab839
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.140091b20
test eax, eax
jne 0x1400ab8dc
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140083b5c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400ab87b
cmp byte [rbp - 0x21], r15b
je 0x1400ab8b0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400ab8b0
call fcn.1400a00ec
test eax, eax
jne 0x1400ab89c
cmp byte [rbp - 0x21], r15b
je 0x1400ab895
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400ab8b0
cmp byte [rbp - 0x21], r15b
je 0x1400ab8ad
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.140091b20
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400ab8dc
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400ab8df
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400ab8ed
mov rcx, rdi
call fcn.14009d3f0
cmp byte [rbp + 0x3f], r15b
je 0x1400ab8fc
mov rcx, qword [rbp + 0x27]
call fcn.14009d3f0
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 0x1400ad120
Capabilities:
Parse pe header

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

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140017850], eax
call fcn.14000d7d0
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_UnhandledExceptionFilter]
cmp dword [0x140017850], 0
jne case.default.0x14000dada
mov ecx, 1
call fcn.14000d7d0
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
Function at 0x100091e0
Capabilities:
Set registry value

Disassembly:
push rbx
push rdi
mov r11, rsp
sub rsp, 0x58
xor ebx, ebx
lea rax, [r11 + 0x30]
mov rdx, rcx
mov qword [r11 - 0x18], rbx
mov qword [r11 - 0x20], rax
mov qword [r11 - 0x28], rbx
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000000
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
je 0x10009226
xor eax, eax
jmp 0x10009279
lea rdi, [0x10001610]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsp + 0x88]
lea rdx, [0x10003e98]
lea eax, [rax + rax + 2]
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
mov edi, 1
mov r9d, edi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, ebx
jne 0x10009269
mov ebx, edi
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
add rsp, 0x58
pop rdi
pop rbx
ret

Function at 0x10009280
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push rbx
push rdi
sub rsp, 0x28
lea rdi, [0x10001858]
mov ebx, 0x1505
mov ax, 0x4e
movzx ecx, ax
call qword [sym.imp.MSVCR80.dll_towupper]
add rdi, 2
movzx r11d, ax
movzx eax, word [rdi]
imul ebx, ebx, 0x21
xor ebx, r11d
test ax, ax
jne 0x10009297
mov eax, ebx
add rsp, 0x28
pop rdi
pop rbx
ret

Function at 0x1000ab30
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x20
cmp dword [0x1001404c], 0xffffffff
mov esi, edx
mov edi, ecx
jne 0x1000ab62
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ecx, eax
mov eax, 0xffffffff
lock cmpxchg dword [0x1001404c], ecx
je 0x1000ab62
call qword [sym.imp.KERNEL32.dll_TlsFree]
mov ecx, dword [0x1001404c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
jne 0x1000abd4
test esi, esi
je 0x1000abd4
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov esi, 0x90
xor edx, edx
mov rcx, rax
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbx, rax
jne 0x1000abb8
cmp edi, 9
je 0x1000abdf
cmp edi, 6
je 0x1000abdf
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, 0xc0000017
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov r8, rsi
xor edx, edx
mov rcx, rbx
call sub.MSVCR80.dll_memset
mov ecx, dword [0x1001404c]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rax, rbx
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret
xor eax, eax
jmp 0x1000abd7
Function at 0x1000cef0
Capabilities:
Delete registry key

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rsi, rdx
mov rbp, rcx
xor eax, eax
lea r8, [rax - 1]
mov rcx, r8
mov rdi, rbp
repne scasw ax, word [rdi]
not rcx
lea r12d, [rax + 1]
sub rcx, r12
lea rbx, [r12 + rcx]
test rdx, rdx
je 0x1000cf40
mov rcx, r8
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
sub rcx, r12
lea rbx, [rbx + rcx + 1]
mov eax, 2
mul rbx
cmovo rax, r8
lea rdx, [0x10001838]
mov rcx, rax
call fcn.1000c6f0
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x30], 0
xor edx, edx
mov rcx, rax
call fcn.100091d0
xor ecx, ecx
test eax, eax
cmove ecx, r12d
mov dword [rsp + 0x30], ecx
mov rcx, qword [rsp + 0x28]
test rcx, rcx
jne 0x1000cf8d
lea edi, [rcx + 8]
jmp 0x1000cfd8
mov r8, rbp
mov rdx, rbx
call qword [sym.imp.MSVCR80.dll_wcscpy_s]
test rsi, rsi
je 0x1000cfc4
lea r8, [0x10003e44]
mov rdx, rbx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.MSVCR80.dll_wcscat_s]
mov r8, rsi
mov rdx, rbx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.MSVCR80.dll_wcscat_s]
mov rdx, qword [rsp + 0x28]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, eax
lea rcx, [rsp + 0x28]
call fcn.1000c9b0
mov eax, edi
add rsp, 0x40
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x1000d580
Capabilities:
Delete registry key

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0xc8
mov rax, qword [0x10014030]
xor rax, rsp
mov qword [rsp + 0xb0], rax
movdqu xmm0, xmmword [rcx]
mov rbp, rdx
mov rsi, r8
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x20]
mov r8d, 0x40
movdqu xmmword [rsp + 0x20], xmm0
mov rbx, r9
call fcn.1000abf0
xor eax, eax
lea rcx, [rax - 1]
lea rdi, [rsp + 0x30]
repne scasw ax, word [rdi]
not rcx
add rcx, 6
cmp rcx, 0x40
jbe 0x1000d5eb
mov eax, 0x80070057
jmp 0x1000d69a
lea r8, [0x10003ed8]
mov edx, 0x40
mov rcx, rbx
call qword [sym.imp.MSVCR80.dll_wcscpy_s]
lea r8, [rsp + 0x30]
mov edx, 0x40
mov rcx, rbx
call qword [sym.imp.MSVCR80.dll_wcscat_s]
lea rdx, [0x10003ef8]
mov rcx, rsi
call fcn.1000cef0
lea rdx, [0x10003ee8]
mov rcx, rsi
call fcn.1000cef0
mov rdi, 0xffffffff80000000
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea rdx, [0x10003ee8]
mov rcx, rbp
call fcn.1000cef0
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea rdx, [0x10003f08]
mov rcx, rbx
call fcn.1000cef0
lea rdx, [0x10003f18]
mov rcx, rbx
call fcn.1000cef0
lea rdx, [0x10003f50]
mov rcx, rbx
call fcn.1000cef0
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
xor eax, eax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.10007870
add rsp, 0xc8
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140002470
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je case.default.0x140002491
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x1400024be
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1400024c0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140002519
test ecx, ecx
jle 0x1400024f9
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140002519
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140002519
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al