joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180213be0
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.18021007c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.18021007c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x180213d30
cmp rax, 0xffffffffffffffff
je 0x180213d30
xor edi, edi
test rbp, rbp
jle 0x180213cdb
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.18020cbf8
mov rbx, rax
test rax, rax
jne 0x180213c68
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x180213cd1
mov edx, 0x8000
mov ecx, r14d
call fcn.1802137d8
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.1802067d4
cmp eax, 0xffffffff
je 0x180213cb1
cdqe
sub rbp, rax
test rbp, rbp
jg 0x180213c78
mov edx, r15d
mov ecx, r14d
call fcn.1802137d8
jmp 0x180213cd1
cmp byte [rsi + 0x38], dil
je 0x180213cc8
cmp dword [rsi + 0x34], 5
jne 0x180213cc8
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x180213cd1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.18020c5d0
jmp 0x180213d44
jns 0x180213d44
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.18021007c
cmp rax, 0xffffffffffffffff
jne 0x180213cfc
cmp byte [rsi + 0x30], dil
je 0x180213d44
mov edi, dword [rsi + 0x2c]
jmp 0x180213d44
mov ecx, r14d
call fcn.1801fe7b8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x180213d44
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 0x180213d44
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x180213d3d
mov eax, dword [rsi + 0x2c]
jmp 0x180213d42
mov eax, socket
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.18021007c
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 0x18021cba4
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x18021cbc4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1801b3b7c
or eax, 0xffffffff
jmp 0x18021cbc6
xor eax, eax
add rsp, 0x28
ret
Function at 0x18021ea00
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 0x18021ea30
xor eax, eax
jmp 0x18021eaf3
mov rbp, rbx
cmp word [rax], si
je 0x18021ea55
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18021ea3c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18021ea38
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.1802134ec
movsxd r14, eax
test eax, eax
jne 0x18021ea93
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18021ea29
mov rcx, r14
call fcn.1802102e4
mov rdi, rax
test rax, rax
jne 0x18021eaac
xor ecx, ecx
call fcn.18020c5d0
jmp 0x18021ea88
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.1802134ec
test eax, eax
jne 0x18021eadd
mov rcx, rdi
call fcn.18020c5d0
jmp 0x18021eae7
xor ecx, ecx
call fcn.18020c5d0
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 0x18021eb10
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 0x18021eb97
mov rsi, rbx
cmp word [rax], bp
je 0x18021eb56
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x18021eb40
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x18021eb3c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1802102e4
mov rdi, rax
test rax, rax
je 0x18021eb84
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.180227d00
mov rbp, rdi
xor ecx, ecx
call fcn.18020c5d0
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 0x180225e80
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.1801b68f0
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x180225f0a
cmp byte [rbp - 0x21], r15b
je 0x180225f05
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x180225f40
call fcn.18020d944
test eax, eax
jne 0x180225f2c
cmp byte [rbp - 0x21], r15b
je 0x180225f24
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x180225f40
cmp byte [rbp - 0x21], r15b
je 0x180225f3d
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.1801e4024
test eax, eax
jne 0x180225fe0
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1801b68f0
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x180225f7f
cmp byte [rbp - 0x21], r15b
je 0x180225fb4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x180225fb4
call fcn.18020d944
test eax, eax
jne 0x180225fa0
cmp byte [rbp - 0x21], r15b
je 0x180225f99
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x180225fb4
cmp byte [rbp - 0x21], r15b
je 0x180225fb1
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.1801e4024
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x180225fe0
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x180225fe3
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x180225ff1
mov rcx, rdi
call fcn.18020c5d0
cmp byte [rbp + 0x3f], r15b
je 0x180226000
mov rcx, qword [rbp + 0x27]
call fcn.18020c5d0
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 0x1802278d0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1802278f8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1802278f8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140020ad0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rbx, rcx
test r8, r8
jg 0x140020af2
xor eax, eax
add rsp, 0x30
pop r14
pop rbp
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rdi
je 0x140020b7e
lfence
mov rdi, rbp
nop dword [rax]
mov rcx, rbx
call fcn.1400111b0
test rax, rax
jle 0x140020b4e
cmp rdi, rax
mov rsi, rdi
mov rcx, r14
cmovge rsi, rax
mov rax, qword [rbx + 0x38]
mov r8, rsi
mov rdx, qword [rax]
call fcn.14004a640
mov rax, qword [rbx + 0x50]
sub rdi, rsi
sub dword [rax], esi
mov rcx, qword [rbx + 0x38]
movsxd rax, esi
add qword [rcx], rax
jmp 0x140020b6e
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 0x38]
call qword [0x140077500]
cmp eax, 0xffffffff
je 0x140020b76
mov byte [r14], al
dec rdi
mov esi, 1
add r14, rsi
test rdi, rdi
jg 0x140020b10
sub rbp, rdi
jmp 0x140020c68
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140020b95
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140020b97
xor ecx, ecx
movsxd rax, ecx
mov rdi, rbp
test ecx, ecx
je 0x140020bcc
cmp rax, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call fcn.14004a640
mov rax, qword [rbx + 0x50]
add r14, rdi
sub rsi, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
mov rdi, rsi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x140020c62
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140020c07
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
cmp rdi, 0xfff
jbe 0x140020c40
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call fcn.140055428
sub rsi, rax
add r14, rax
mov rdi, rsi
cmp rax, 0xfff
jne 0x140020c62
cmp rsi, rax
ja 0x140020c10
test rdi, rdi
je 0x140020c62
mov r9, qword [rbx + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.140055428
mov rsi, rdi
sub rsi, rax
sub rbp, rsi
lfence
mov rsi, qword [rsp + 0x28]
mov rax, rbp
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rbp
pop rbx
ret
Function at 0x140039830
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14009b010]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp qword [rcx + 0x20], 8
lea rbx, [rcx + 8]
mov dword [rsp + 0x30], 4
jb 0x14003985b
mov rbx, qword [rbx]
mov rcx, qword [rcx]
lea rdx, [rsp + 0x40]
mov r8d, 1
call fcn.140044280
mov eax, dword [rsp + 0x40]
test eax, eax
jne 0x1400398a4
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x38]
lea rax, [rsp + 0x34]
xor r8d, r8d
mov rdx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1400398c0
cmp eax, 0xea
je 0x1400398c0
xor al, al
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140045000
add rsp, 0x60
pop rbx
ret
mov al, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140045000
add rsp, 0x60
pop rbx
ret

Function at 0x1400398e0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14009b010]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp qword [rcx + 0x20], 8
lea rbx, [rcx + 8]
mov dword [rsp + 0x30], 4
jb 0x14003990b
mov rbx, qword [rbx]
mov rcx, qword [rcx]
lea rdx, [rsp + 0x40]
mov r8d, 1
call fcn.140044280
mov eax, dword [rsp + 0x40]
test eax, eax
jne 0x140039954
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rsp + 0x38]
xor r8d, r8d
mov rdx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140039970
cmp eax, 0xea
je 0x140039970
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140045000
add rsp, 0x60
pop rbx
ret
mov eax, dword [rsp + 0x34]
sub eax, 1
je 0x140039a09
sub eax, 2
je 0x1400399f1
sub eax, 1
je 0x1400399d9
sub eax, 3
je 0x1400399c1
cmp eax, 4
je 0x1400399a9
mov eax, 6
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140045000
add rsp, 0x60
pop rbx
ret
mov eax, 2
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140045000
add rsp, 0x60
pop rbx
ret
mov eax, 4
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140045000
add rsp, 0x60
pop rbx
ret
mov eax, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140045000
add rsp, 0x60
pop rbx
ret
mov eax, 5
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140045000
add rsp, 0x60
pop rbx
ret
mov eax, 3
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140045000
add rsp, 0x60
pop rbx
ret
Function at 0x140039a30
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x14009b010]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov rsi, rcx
mov dword [rsp + 0x58], 8
lea rbx, [rcx + 8]
cmp qword [rbx + 0x18], 8
jb 0x140039a6d
mov rbx, qword [rbx]
mov r8d, 1
lea rdx, [rsp + 0x68]
mov rcx, qword [rcx]
call fcn.140044280
mov edi, dword [rsp + 0x68]
test edi, edi
jne 0x140039b03
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x5c]
xor r8d, r8d
mov rdx, rbx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x140039b03
mov rax, qword [rsp + 0x60]
mov ecx, dword [rsp + 0x5c]
cmp ecx, 4
je 0x140039ade
cmp ecx, 0xb
jne 0x140039b40
movabs rcx, 0x100000000
cmp rax, rcx
jae 0x140039b63
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140045000
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
mov r8, rsi
lea rdx, str.Failed_to_read_registry_value
lea rcx, [rsp + 0x68]
call fcn.14003d930
mov r9, rax
call fcn.1400170a0
mov r8, rax
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.140039070
lea rdx, [0x1400990b0]
lea rcx, [rsp + 0x30]
call fcn.14004a344
nop
lea rdx, str.Not_an_integer_value
lea rcx, [rsp + 0x68]
call fcn.14000bd40
lea rdx, [0x1400990d0]
lea rcx, [rsp + 0x68]
call fcn.14004a344
int3
lea rdx, str.Integer_is_too_big_to_see_as_an_Integer
lea rcx, [rsp + 0x68]
call fcn.14000bd40
lea rdx, [0x1400990d0]
lea rcx, [rsp + 0x68]
call fcn.14004a344
int3

Function at 0x140039b90
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14009b010]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x30], 8
lea rbx, [rcx + 8]
cmp qword [rbx + 0x18], 8
jb 0x140039bbb
mov rbx, qword [rbx]
mov r8d, 1
lea rdx, [rsp + 0x40]
mov rcx, qword [rcx]
call fcn.140044280
cmp dword [rsp + 0x40], 0
jne 0x140039c28
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rdx, rbx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140039c28
mov eax, dword [rsp + 0x34]
cmp eax, 4
je 0x140039c22
cmp eax, 0xb
jne 0x140039c28
mov ecx, 0xffffffff
mov rax, qword [rsp + 0x38]
cmp rax, rcx
ja 0x140039c28
jmp 0x140039c26
mov eax, dword [rsp + 0x38]
jmp 0x140039c2a
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140045000
add rsp, 0x60
pop rbx
ret
Function at 0x140039c40
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x14009b010]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov rsi, rcx
mov dword [rsp + 0x58], 8
lea rbx, [rcx + 8]
cmp qword [rbx + 0x18], 8
jb 0x140039c7d
mov rbx, qword [rbx]
mov r8d, 1
lea rdx, [rsp + 0x68]
mov rcx, qword [rcx]
call fcn.140044280
mov edi, dword [rsp + 0x68]
test edi, edi
jne 0x140039d2d
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x5c]
xor r8d, r8d
mov rdx, rbx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x140039d2d
mov eax, dword [rsp + 0x5c]
cmp eax, 4
je 0x140039d04
cmp eax, 0xb
jne 0x140039d0a
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140045000
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
mov eax, dword [rsp + 0x60]
jmp 0x140039cdf
lea rdx, str.Not_an_integer_value
lea rcx, [rsp + 0x68]
call fcn.14000bd40
lea rdx, [0x1400990d0]
lea rcx, [rsp + 0x68]
call fcn.14004a344
int3
mov r8, rsi
lea rdx, str.Failed_to_read_registry_value
lea rcx, [rsp + 0x68]
call fcn.14003d930
mov r9, rax
call fcn.1400170a0
mov r8, rax
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.140039070
lea rdx, [0x1400990b0]
lea rcx, [rsp + 0x30]
call fcn.14004a344
int3
Function at 0x140041200
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x90
mov rax, qword [0x14009b010]
xor rax, rsp
mov qword [rbp + 0x4f], rax
mov rbx, rcx
cmp qword [rcx + 8], 0xffffffffffffffff
je 0x140041362
cmp byte [rdx + 4], 0
je 0x14004123e
mov eax, dword [rcx]
cmp dword [rdx], eax
jl 0x140041362
mov r9, r8
mov r8, rdx
lea rdx, str._H:_M:_S
lea rcx, [rbp + 0xf]
call fcn.140040ae0
nop
mov dword [rbp + 7], 0
cmp byte [rbx + 0x10], 0
je 0x140041301
lea rax, [rbp + 0xf]
cmp qword [rbp + 0x27], 0x10
cmovae rax, qword [rbp + 0xf]
mov qword [rbp - 9], rax
mov rax, qword [rbp + 0x1f]
mov qword [rbp - 1], rax
movaps xmm0, xmmword [rbp - 9]
movdqa xmmword [rbp - 9], xmm0
lea rdx, [rbp - 9]
lea rcx, [rbp + 0x2f]
call fcn.140043030
lea rdx, [rbp + 0x2f]
cmp qword [rbp + 0x47], 8
cmovae rdx, qword [rbp + 0x2f]
mov qword [rsp + 0x20], 0
lea r9, [rbp + 7]
mov r8d, dword [rbp + 0x3f]
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
mov rdx, qword [rbp + 0x47]
cmp rdx, 8
jb 0x14004132b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x2f]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400412fa
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140041385
call fcn.1400452ac
jmp 0x14004132b
lea rdx, [rbp + 0xf]
cmp qword [rbp + 0x27], 0x10
cmovae rdx, qword [rbp + 0xf]
mov qword [rsp + 0x20], 0
lea r9, [rbp + 7]
mov r8d, dword [rbp + 0x1f]
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop
mov rdx, qword [rbp + 0x27]
cmp rdx, 0x10
jb 0x140041362
inc rdx
mov rcx, qword [rbp + 0xf]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004135d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004137f
call fcn.1400452ac
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.140045000
mov rbx, qword [rsp + 0xb8]
add rsp, 0x90
pop rbp
ret
call fcn.14004eb2c
nop
call fcn.14004eb2c
nop
int3
Function at 0x140041ae0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x14009b010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rdi, qword [r8]
mov r14, r9
mov rbp, qword [rsp + 0xe0]
mov rsi, rdx
mov r15, qword [rsp + 0xe8]
mov rbx, rcx
mov r12, qword [rsp + 0xf0]
test rdi, rdi
je 0x140041be6
cmp qword [rdi + 8], 0xffffffffffffffff
je 0x140041be6
cmp byte [rcx + 4], 0
je 0x140041b49
mov eax, dword [rdi]
cmp dword [rcx], eax
jl 0x140041be6
mov r9, rsi
lea rdx, str._FT_T
mov r8, rbx
lea rcx, [rsp + 0x38]
call fcn.140040ae0
mov r8d, dword [rsp + 0x48]
lea rdx, [rsp + 0x38]
mov rcx, qword [rdi + 8]
lea r9, [rsp + 0x30]
xor eax, eax
mov qword [rsp + 0x68], 0xffffffffffffffff
cmp qword [rsp + 0x50], 0x10
mov dword [rsp + 0x30], eax
cmovae rdx, qword [rsp + 0x38]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdx, qword [rsp + 0x50]
cmp rdx, 0x10
jb 0x140041be6
mov rcx, qword [rsp + 0x38]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140041be1
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140041c2e
call fcn.1400452ac
mov rcx, qword [r14]
test rcx, rcx
je 0x140041bf9
mov r8, rsi
mov rdx, rbx
call fcn.140040f80
mov r9, r15
mov qword [rsp + 0x20], r12
mov r8, rbp
mov rdx, rsi
mov rcx, rbx
call fcn.1400428f0
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140045000
add rsp, 0x80
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
call fcn.14004eb2c
int3
Function at 0x1400444f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0xb0
mov rax, qword [0x14009b010]
xor rax, rsp
mov qword [rsp + 0xa8], rax
mov ebp, r8d
mov rdi, rdx
mov rsi, rcx
mov qword [rsp + 0x88], rdx
mov eax, dword [rcx + 0x50]
inc eax
mov dword [r11 - 0x50], eax
xorps xmm0, xmm0
mov ebx, eax
movdqu xmmword [r11 - 0x48], xmm0
xor r14d, r14d
mov qword [r11 - 0x38], r14
test eax, eax
je 0x14004457a
lfence
mov edx, ebx
lea rcx, [r11 - 0x48]
call fcn.140005780
mov qword [rsp + 0x90], rax
lea r8, [rbx + rbx]
lea rbx, [r8 + rax]
mov qword [rsp + 0xa0], rbx
xor edx, edx
mov rcx, rax
call fcn.14004a420
mov qword [rsp + 0x98], rbx
mov rbx, qword [rsp + 0x90]
mov edx, 1
mov rcx, rsi
call fcn.140044390
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x88]
mov r8, rbx
mov edx, ebp
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov ebx, eax
test eax, eax
jne 0x14004465a
mov r8d, dword [rsp + 0x88]
mov qword [rdi], r14
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], 7
mov word [rdi], r14w
mov rdx, qword [rsp + 0x90]
mov rcx, rdi
call fcn.140005330
nop
mov rcx, qword [rsp + 0x90]
test rcx, rcx
je 0x140044633
mov rdx, qword [rsp + 0xa0]
sub rdx, rcx
sar rdx, 1
add rdx, rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004462e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140044654
call fcn.1400452ac
mov rax, rdi
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.140045000
add rsp, 0xb0
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
call fcn.14004eb2c
nop
mov rcx, rsi
call fcn.14003bf50
mov r8, rax
lea rdx, str.Failed_to_retrieve_value_name
lea rcx, [rsp + 0x68]
call fcn.14003dae0
mov r9, rax
call fcn.1400170a0
mov r8, rax
mov edx, ebx
lea rcx, [rsp + 0x40]
call fcn.140039070
lea rdx, [0x1400990b0]
lea rcx, [rsp + 0x40]
call fcn.14004a344
int3