joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140009d40
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x18], r8
push rdi
sub rsp, 0x30
mov rax, qword [0x1400cd4d0]
xor rax, rsp
mov qword [rsp + 0x20], rax
mov rdi, rdx
mov r10, rcx
movzx edx, byte [r8 + 0x10]
movabs rcx, 0x100000001b3
mov r9, r8
movabs rax, 0xcbf29ce484222325
xor rdx, rax
movzx eax, byte [r8 + 0x11]
imul rdx, rcx
xor rdx, rax
movzx eax, byte [r8 + 0x12]
imul rdx, rcx
xor rdx, rax
movzx eax, byte [r8 + 0x13]
mov r8, qword [r10 + 0x30]
imul rdx, rcx
xor rdx, rax
imul rdx, rcx
mov rcx, qword [r10 + 0x18]
and r8, rdx
shl r8, 4
add rcx, r8
cmp qword [rcx + 8], r9
jne 0x140009de8
cmp qword [rcx], r9
jne 0x140009dde
mov rax, qword [r10 + 8]
mov qword [rcx], rax
mov rcx, qword [r10 + 0x18]
mov rax, qword [r10 + 8]
mov qword [r8 + rcx + 8], rax
jmp 0x140009df3
mov rax, qword [r9 + 8]
mov qword [rcx + 8], rax
jmp 0x140009df3
cmp qword [rcx], r9
jne 0x140009df8
mov rax, qword [r9]
mov qword [rcx], rax
mov r9, qword [rsp + 0x50]
mov rdx, qword [r9 + 8]
mov rcx, r9
mov rbx, qword [r9]
mov qword [rdx], rbx
mov r8, qword [r9]
mov rdx, qword [r9 + 8]
mov qword [r8 + 8], rdx
dec qword [r10 + 0x10]
call fcn.140026f68
mov rax, rdi
mov qword [rdi], rbx
mov rcx, qword [rsp + 0x20]
xor rcx, rsp
call fcn.140026f00
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x14000a4b0
Capabilities:
Create thread
Resume thread

Disassembly:
push rdi
mov eax, 0x1080
call fcn.1400279d0
sub rsp, rax
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x1098], rbx
mov rax, qword [0x1400cd4d0]
xor rax, rsp
mov qword [rsp + 0x1078], rax
mov rdi, rcx
xor eax, eax
mov qword [rsp + 0x1070], rax
lea rdx, [rcx + 0x10]
lea rcx, [rsp + 0x1070]
call fcn.140002480
nop
lea rax, [rdi + 8]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 4
mov r9, rdi
lea r8, [0x14000a780]
xor edx, edx
xor ecx, ecx
call fcn.14002d5c0
mov rbx, rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x30], 0
mov rcx, qword [rdi]
cmp rax, rcx
je 0x14000a583
test rcx, rcx
je 0x14000a580
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x14000a579
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.Could_not_close_handle___i_.
lea rcx, [rsp + 0x50]
call fcn.140008b10
lea rdx, [0x1400cb038]
lea rcx, [rsp + 0x50]
call fcn.140028a54
int3
mov qword [rdi], 0
mov qword [rdi], rbx
lea rcx, [rsp + 0x30]
call fcn.140001a20
mov qword [rsp + 0x38], 0
cmp qword [rdi], 0
sete bl
lea rcx, [rsp + 0x38]
call fcn.140001a20
test bl, bl
je 0x14000a5ce
lea rdx, str.Thread_cannot_start.
lea rcx, [rsp + 0x50]
call fcn.140008b10
lea rdx, [0x1400cb038]
lea rcx, [rsp + 0x50]
call fcn.140028a54
int3
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
nop
lea rcx, [rsp + 0x1070]
call fcn.140002510
mov rcx, qword [rsp + 0x1078]
xor rcx, rsp
call fcn.140026f00
mov rbx, qword [rsp + 0x1098]
add rsp, 0x1080
pop rdi
ret
Function at 0x14000a610
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x1400cd4d0]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, rcx
xor eax, eax
mov qword [rsp + 0x28], rax
lea rdx, [rcx + 0x10]
lea rcx, [rsp + 0x28]
call fcn.140002480
nop
movzx eax, byte [rbx + 0x80]
test al, al
je 0x14000a662
mov rcx, qword [rbx]
test rcx, rcx
je 0x14000a662
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
xor eax, eax
xchg byte [rbx + 0x80], al
lea rcx, [rsp + 0x28]
call fcn.140002510
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140026f00
add rsp, 0x40
pop rbx
ret

Function at 0x14000ae60
Capabilities:
Check mutex on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0xfe0]
mov eax, 0x10e0
call fcn.1400279d0
sub rsp, rax
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov rax, qword [0x1400cd4d0]
xor rax, rsp
mov qword [rbp + 0xfd8], rax
mov rsi, r9
mov rbx, rcx
mov qword [rsp + 0x70], rcx
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rbp + 0xfb8]
call fcn.14000b150
nop
xor eax, eax
mov qword [rbp + 0xfa0], rax
mov qword [rbp + 0xfa8], rax
mov qword [rbp + 0xfb0], rax
test rsi, rsi
je 0x14000aef0
mov dword [rbp + 0xfa0], 0x18
mov dword [rbp + 0xfb0], 1
mov rax, qword [rsi]
mov qword [rbp + 0xfa8], rax
lea rax, vtable.Mutex.0
mov qword [rbx], rax
mov qword [rbx + 8], r14
mov dword [rsp + 0x20], 1
lea rdx, [rbp + 0xfb8]
lea rcx, [rsp + 0x30]
call fcn.140006570
nop
cmp qword [rax + 0x18], 8
jb 0x14000af22
mov rax, qword [rax]
lea rcx, [rbp + 0xfa0]
test rsi, rsi
cmove rcx, r14
mov r8, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x28]
lea rcx, [rbx + 8]
call fcn.14000a810
nop
lea rcx, [rsp + 0x28]
call fcn.140001a20
nop
mov r8, qword [rsp + 0x48]
cmp r8, 8
jb 0x14000af77
inc r8
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x30]
call fcn.140007680
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], r14
mov word [rsp + 0x30], r14w
cmp qword [rbx + 8], 0
jne 0x14000b026
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x14000afdb
lea r8, [rbp + 0xfb8]
cmp qword [rbp + 0xfd0], 0x10
cmovae r8, qword [rbp + 0xfb8]
lea rdx, str.Access_is_denied_when_creating_mutex:__s
lea rcx, [rsp + 0x30]
call fcn.14000adc0
lea rdx, [0x1400cb250]
lea rcx, [rsp + 0x30]
call fcn.140028a54
int3
lea rdx, [rbp + 0xfb8]
lea rcx, [rsp + 0x30]
call fcn.140006520
mov rbx, rax
cmp qword [rax + 0x18], 0x10
jb 0x14000aff9
mov rbx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov r8, rbx
lea rdx, str.Could_not_create_open_mutex_with_name__s___i_.
lea rcx, [rbp - 0x80]
call fcn.140008b10
lea rdx, [0x1400cb038]
lea rcx, [rbp - 0x80]
call fcn.140028a54
nop
lea rcx, [rbp + 0xfb8]
call fcn.140001a90
mov rax, rbx
mov rcx, qword [rbp + 0xfd8]
xor rcx, rsp
call fcn.140026f00
add rsp, 0x10e0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14000ca40
Capabilities:
Delete registry key

Disassembly:
push rdi
mov eax, 0x1070
call fcn.1400279d0
sub rsp, rax
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x1080], rbx
mov rdi, rdx
mov rbx, rcx
lea rcx, [rsp + 0x20]
call fcn.140006570
nop
cmp qword [rax + 0x18], 8
jb 0x14000ca7b
mov rax, qword [rax]
mov rdx, rax
mov rcx, qword [rbx]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, eax
mov r8, qword [rsp + 0x38]
cmp r8, 8
jb 0x14000caa6
inc r8
mov rdx, qword [rsp + 0x20]
lea rcx, [rsp + 0x20]
call fcn.140007680
mov qword [rsp + 0x38], 7
xor eax, eax
mov qword [rsp + 0x30], rax
mov word [rsp + 0x20], ax
test ebx, ebx
je 0x14000cb00
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.140006520
nop
cmp qword [rax + 0x18], 0x10
jb 0x14000cad7
mov rax, qword [rax]
mov r9d, ebx
mov r8, rax
lea rdx, str.Could_not_delete_specified_registry_subkey__s___i_.
lea rcx, [rsp + 0x50]
call fcn.140008b10
lea rdx, [0x1400cb038]
lea rcx, [rsp + 0x50]
call fcn.140028a54
nop
mov rbx, qword [rsp + 0x1080]
add rsp, 0x1070
pop rdi
ret
Function at 0x140014810
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x150
mov rax, qword [0x1400cd4d0]
xor rax, rsp
mov qword [rsp + 0x140], rax
cmp byte [0x1400cee96], 0
lea rsi, [0x1400ceb50]
mov edi, edx
mov rbx, rcx
je 0x140014868
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 0x29]
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov rcx, rsi
call fcn.1400562b0
cmp byte [0x1400ceb50], 0
jne 0x140014974
mov rcx, qword [0x1400d0fc0]
mov r8d, 0x104
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edx, 0x5c
mov rcx, rsi
call fcn.140028914
test rax, rax
je 0x1400148a0
mov byte [rax], 0
mov rcx, rsi
call fcn.1400562b0
xor ecx, ecx
nop word [rax + rax]
movzx eax, byte [rcx + rsi]
mov byte [rsp + rcx + 0x30], al
lea rcx, [rcx + 1]
test al, al
jne 0x1400148b0
lea rcx, [rsp + 0x30]
dec rcx
nop dword [rax + rax]
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x1400148d0
lea r8, str.mehoxml32.dll
xor edx, edx
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [r8 + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x1400148f0
lea rcx, [rsp + 0x30]
call fcn.140056560
test eax, eax
jne 0x140014916
mov byte [0x1400ceb50], al
jmp 0x14001491f
cmp byte [0x1400ceb50], 0
jne 0x140014974
xor r9d, r9d
mov edx, 0x104
mov rcx, rsi
lea r8d, [r9 + 1]
call fcn.140014470
test eax, eax
je 0x14001494c
mov edx, 0x5c
mov rcx, rsi
call fcn.140028914
test rax, rax
je 0x14001494c
mov byte [rax], 0
cmp byte [0x1400ceb50], 0
jne 0x140014974
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 0x29]
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov rcx, rsi
call fcn.1400562b0
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
call fcn.14002f5e0
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140026f00
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140016950
Capabilities:
Get common file path
Get hostname
Get session user name
Query environment variable

Disassembly:
push rbx
sub rsp, 0x480
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov rax, qword [0x1400cd4d0]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov rbx, rcx
mov byte [rsp + 0x250], 0
call fcn.140056b00
mov edx, 0x104
lea rcx, [rsp + 0x250]
test eax, eax
je 0x14001699d
call qword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryA]
jmp 0x1400169a3
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov byte [rsp + 0x30], 0
mov dword [rsp + 0x20], 0x104
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov rax, qword [rsp + 0x30]
test al, al
cmove rax, qword [str.Unknown]
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x140], 0
mov dword [rsp + 0x20], 0x104
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x140]
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov rax, qword [rsp + 0x140]
movabs rcx, 0x746c7561666544
test al, al
cmove rax, rcx
mov qword [rsp + 0x140], rax
mov rcx, rbx
call fcn.140055b60
lea r8, [rsp + 0x250]
lea rdx, str._systemroot_
mov rcx, rbx
call fcn.140055b80
xor edx, edx
mov r8d, 0x104
lea rcx, [rsp + 0x360]
call fcn.1400291f0
mov r8d, 0x104
lea rdx, [rsp + 0x360]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea rdx, [rsp + 0x360]
mov rcx, rbx
call fcn.140054b70
nop
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.140026f00
add rsp, 0x480
pop rbx
ret
Function at 0x140019880
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 0x18], r8
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rsi
mov rsi, rdx
xor eax, eax
mov dword [rsp + 0x20], eax
test rdx, rdx
je 0x14001993c
test r8, r8
je 0x14001993c
mov qword [rsp + 0x28], rax
lea rcx, str.secur32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
mov qword [rsp + 0x28], rax
test rax, rax
je 0x140019906
lea rdx, str.GetUserNameExA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140019906
lea r8, [rsp + 0x60]
mov rdx, rsi
mov ecx, 2
call rax
movzx edi, al
mov dword [rsp + 0x20], edi
test al, al
jne 0x14001991a
lea rdx, [rsp + 0x60]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov edi, eax
mov dword [rsp + 0x20], eax
jmp 0x140019925
test rbx, rbx
je 0x140019934
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
jmp 0x14001993a
mov eax, edi
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x14003db48
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x14003d9d3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003d9d3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003d9d3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14003d9d3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003d9d3
cmp dword [rcx + 0x84], 0xe
jbe 0x14003d9d3
cmp dword [rcx + 0xf8], 0
je 0x14003d9d3
mov ecx, ebx
call fcn.14003da74
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.14003d850
cmp dword [rbp + 0x20], 0
je 0x14003da20
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14003da28
int3
xor r8d, r8d
xor edx, edx
jmp 0x14003d96c
Function at 0x14004d04c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r10, [0x1400d0600]
mov r14, rdx
mov rax, r15
sar rax, 6
mov rdx, r15
and edx, 0x3f
mov rdi, r15
shl rdx, 6
mov r9, qword [r10 + rax*8]
mov r12, qword [r9 + rdx + 0x28]
test r8, r8
je 0x14004d0b1
cmp byte [r14], 0xa
jne 0x14004d0b1
mov rcx, r15
mov rax, r15
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r10 + rax*8]
or byte [rax + rcx + 0x38], 4
jmp 0x14004d0d2
mov dl, byte [r9 + rdx + 0x38]
mov rcx, rdi
and dl, 0xfb
mov rax, rdi
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r10 + rax*8]
mov byte [rax + rcx + 0x38], dl
lea rbp, [r14 + r8]
mov rsi, r14
mov rbx, r14
cmp r14, rbp
jae 0x14004d22c
mov r13d, 1
mov al, byte [rsi]
cmp al, 0x1a
je 0x14004d1ec
cmp al, 0xd
je 0x14004d106
mov byte [rbx], al
add rbx, r13
add rsi, r13
jmp 0x14004d1e1
lea rax, [rsi + 1]
cmp rax, rbp
jae 0x14004d12c
cmp byte [rax], 0xa
jne 0x14004d11e
mov byte [rbx], 0xa
mov eax, 2
jmp 0x14004d124
mov byte [rbx], 0xd
mov rax, r13
add rsi, rax
jmp 0x14004d1de
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x78]
mov r8d, r13d
lea rdx, [rsp + 0x70]
mov rcx, r12
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14004d1d4
cmp dword [rsp + 0x78], 0
je 0x14004d1d4
mov rcx, rdi
lea r10, [0x1400d0600]
and ecx, 0x3f
mov rax, rdi
sar rax, 6
shl rcx, 6
mov rax, qword [r10 + rax*8]
test byte [rax + rcx + 0x38], 0x48
je 0x14004d1a4
mov dl, byte [rsp + 0x70]
cmp dl, 0xa
je 0x14004d1b0
mov rcx, rdi
mov byte [rbx], 0xd
mov rax, rdi
and ecx, 0x3f
sar rax, 6
shl rcx, 6
mov rax, qword [r10 + rax*8]
mov byte [rax + rcx + 0x3a], dl
jmp 0x14004d1de
cmp byte [rsp + 0x70], 0xa
jne 0x14004d1b5
cmp rbx, r14
jne 0x14004d1b5
mov byte [rbx], 0xa
jmp 0x14004d1de
mov r8d, r13d
or rdx, 0xffffffffffffffff
mov ecx, r15d
call fcn.14004d044
cmp byte [rsp + 0x70], 0xa
lea r10, [0x1400d0600]
je 0x14004d1e1
jmp 0x14004d1db
lea r10, [0x1400d0600]
mov byte [rbx], 0xd
add rbx, r13
cmp rsi, rbp
jb 0x14004d0eb
jmp 0x14004d22c
mov rcx, rdi
mov rax, rdi
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r10 + rax*8]
mov dl, byte [rax + rcx + 0x38]
test dl, 0x40
jne 0x14004d225
mov rax, rdi
or dl, 2
sar rax, 6
and edi, 0x3f
shl rdi, 6
mov rax, qword [r10 + rax*8]
mov byte [rax + rdi + 0x38], dl
jmp 0x14004d22c
mov cl, byte [rsi]
mov byte [rbx], cl
add rbx, r13
sub rbx, r14
mov eax, ebx
mov rbx, qword [rsp + 0x80]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14004d24c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r11, [0x1400d0600]
mov r9, r15
mov rax, r15
sar rax, 6
and r9d, 0x3f
shl r9, 6
mov r14, rdx
mov rdi, r15
mov r10d, 0xa
mov rdx, qword [r11 + rax*8]
mov r12, qword [rdx + r9 + 0x28]
test r8, r8
je 0x14004d2b8
cmp word [r14], r10w
jne 0x14004d2b8
mov rcx, r15
mov rax, r15
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r11 + rax*8]
or byte [rax + rcx + 0x38], 4
jmp 0x14004d2d9
mov dl, byte [rdx + r9 + 0x38]
mov rcx, rdi
and dl, 0xfb
mov rax, rdi
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r11 + rax*8]
mov byte [rax + rcx + 0x38], dl
lea rbp, [r14 + r8*2]
mov rsi, r14
mov rbx, r14
cmp r14, rbp
jae 0x14004d4b2
mov ecx, 0xd
lea r13d, [rcx - 0xb]
movzx eax, word [rsi]
cmp ax, 0x1a
je 0x14004d470
cmp ax, cx
je 0x14004d315
mov word [rbx], ax
add rbx, r13
add rsi, r13
jmp 0x14004d409
lea rax, [rsi + 2]
cmp rax, rbp
jae 0x14004d33d
cmp word [rax], r10w
jne 0x14004d32f
mov word [rbx], r10w
mov eax, 4
jmp 0x14004d335
mov word [rbx], cx
mov rax, r13
add rsi, rax
jmp 0x14004d453
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x80]
mov r8d, r13d
lea rdx, [rsp + 0x70]
mov rcx, r12
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14004d458
cmp dword [rsp + 0x80], 0
je 0x14004d458
mov rcx, rdi
lea r11, [0x1400d0600]
and ecx, 0x3f
mov rax, rdi
sar rax, 6
mov r10d, 0xa
shl rcx, 6
mov rax, qword [r11 + rax*8]
test byte [rax + rcx + 0x38], 0x48
je 0x14004d417
movzx eax, word [rsp + 0x70]
cmp ax, r10w
jne 0x14004d3af
mov word [rbx], r10w
jmp 0x14004d401
mov r8, rdi
mov word [rsp + 0x78], ax
mov r9, rdi
and r8d, 0x3f
sar r9, 6
mov ecx, 0xd
xor edx, edx
mov word [rbx], cx
shl r8, 6
mov rcx, qword [r11 + r9*8]
mov al, byte [rsp + rdx + 0x78]
add rcx, r8
mov byte [rcx + rdx + 0x3a], al
inc rdx
cmp rdx, r13
jl 0x14004d3d0
mov rcx, rdi
mov rax, rdi
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r11 + rax*8]
mov byte [rax + rcx + 0x3c], r10b
add rbx, r13
mov ecx, 0xd
cmp rsi, rbp
jb 0x14004d2f5
jmp 0x14004d4b2
cmp word [rsp + 0x70], r10w
jne 0x14004d424
cmp rbx, r14
je 0x14004d3a9
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14004d044
mov r10d, 0xa
lea r11, [0x1400d0600]
cmp word [rsp + 0x70], r10w
je 0x14004d404
lea ecx, [r10 + 3]
mov word [rbx], cx
add rbx, r13
jmp 0x14004d409
mov ecx, 0xd
lea r11, [0x1400d0600]
mov word [rbx], cx
add rbx, r13
lea r10d, [rcx - 3]
jmp 0x14004d409
mov rcx, rdi
mov rax, rdi
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r11 + rax*8]
mov dl, byte [rax + rcx + 0x38]
test dl, 0x40
jne 0x14004d4a9
mov rax, rdi
or dl, r13b
sar rax, 6
and edi, 0x3f
shl rdi, 6
mov rax, qword [r11 + rax*8]
mov byte [rax + rdi + 0x38], dl
jmp 0x14004d4b2
movzx ecx, word [rsi]
mov word [rbx], cx
add rbx, r13
sub rbx, r14
sar rbx, 1
lea rax, [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 0x1400500b0
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
push rdi
push r14
push r15
sub rsp, 0xa0
mov qword [r11 - 0x48], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov rax, qword [0x1400cd4d0]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov r15d, edx
mov r14, rcx
mov qword [rsp + 0x60], rcx
xor esi, esi
mov dword [rsp + 0x40], esi
or rdi, 0xffffffffffffffff
mov qword [r11 - 0x70], rdi
lea rcx, [0x1400d0d60]
call fcn.1400533c0
nop
mov ebx, esi
mov dword [rsp + 0x50], ebx
nop dword [rax]
cmp ebx, 0x32
jge 0x140050160
cmp rdi, 0xffffffffffffffff
jne 0x14005016a
test ebx, ebx
jle 0x140050128
lea ecx, [rdi + 0x15]
call qword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
mov dword [rsp + 0x50], ebx
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, r14
call fcn.140050440
mov rdi, rax
mov qword [rsp + 0x48], rax
jmp 0x140050110
cmp rdi, 0xffffffffffffffff
je 0x140050227
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, esi
mov dword [rsp + 0x54], ebx
cmp ebx, 0xa
jae 0x1400501d3
mov rdx, qword [r14 + 0x108]
mov rax, qword [rdx - 0x10]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x58]
mov r8d, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400501c4
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, 1
mov dword [rsp + 0x40], esi
jmp 0x1400501d3
mov ecx, 0x14
call qword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
jmp 0x14005017d
test r15d, r15d
je 0x1400501e1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or rdi, 0xffffffffffffffff
mov qword [rsp + 0x48], rdi
mov rdx, r14
lea rcx, [rsp + 0x78]
call fcn.1400058a0
nop
lea rcx, [rsp + 0x78]
call fcn.140057010
nop
lea rcx, [rsp + 0x78]
call fcn.140001a90
nop
jmp 0x140050227
xor edx, edx
mov r8d, 0x104
mov rcx, r14
call fcn.1400291f0
lea rcx, [r14 + 0x108]
call fcn.1400550a0
lea rcx, [r14 + 0x110]
call fcn.1400550a0
lea rcx, [0x1400d0d60]
call fcn.140053780
mov rbx, rax
nop
test rbx, rbx
je 0x1400502aa
mov rdx, rbx
lea rcx, [0x1400d0d60]
call fcn.1400537e0
mov r15, rax
mov rcx, rbx
call fcn.140053770
test rax, rax
je 0x1400502a5
mov rcx, rbx
call fcn.140053770
cmp r14, rax
jne 0x1400502a5
xor r8d, r8d
mov rdx, rbx
lea rcx, [0x1400d0d60]
call fcn.1400538e0
jmp 0x1400502aa
mov rbx, r15
jmp 0x140050260
mov qword [rsp + 0x68], r14
test r14, r14
je 0x1400502db
lea rcx, [r14 + 0x110]
call fcn.140054a40
nop
lea rcx, [r14 + 0x108]
call fcn.140054a40
mov edx, 0x118
mov rcx, r14
call fcn.140026f24
nop
jmp 0x1400502e6
lea rcx, [0x1400d0d60]
call fcn.1400538c0
cmp rdi, 0xffffffffffffffff
je 0x140050301
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140026f00
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x1400514e0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x450
mov rax, qword [0x1400cd4d0]
xor rax, rsp
mov qword [rsp + 0x440], rax
xor edi, edi
mov rsi, r9
mov r14, r8
mov rbx, rdx
mov rbp, rcx
test rcx, rcx
je 0x1400515f8
test rdx, rdx
je 0x1400515f8
test r9, r9
je 0x1400515f8
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x400
call fcn.1400291f0
lea rdx, [rsp + 0x40]
sub rdx, rbx
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rbx]
mov byte [rdx + rbx], al
lea rbx, [rbx + 1]
test al, al
jne 0x140051550
lea rax, [rsp + 0x38]
mov qword [rsp + 0x38], rdi
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rsp + 0x40]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1400515f8
mov eax, dword [rsp + 0x4a8]
mov dword [rsp + 0x30], edi
sub eax, 1
je 0x1400515a2
sub eax, 3
je 0x1400515ee
cmp eax, 3
jne 0x1400515ad
mov eax, dword [rsp + 0x4a0]
mov dword [rsp + 0x30], eax
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x4a8]
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov rdx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov ecx, 1
cmove edi, ecx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x1400515fa
mov dword [rsp + 0x30], 4
jmp 0x1400515ad
xor eax, eax
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.140026f00
add rsp, 0x450
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret