joyce8/EMBER2024-capa huggingface dataset:
Function at 0x77cb90
Capabilities:
Terminate process

Disassembly:
push rbp
sub rsp, 0x2b0
mov rbp, rsp
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x28], 0
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x50], 0
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x2c0], rcx
mov rcx, qword [rbp + 0x2c0]
call fcn.004106f0
nop
mov dword [rbp + 0x2ac], 0
mov ecx, 2
xor edx, edx
call fcn.0077c1b0
mov qword [rbp + 0x2a0], rax
mov dword [rbp + 0x68], 0x238
mov rcx, qword [rbp + 0x2a0]
lea rdx, [rbp + 0x68]
call fcn.0077c1e0
mov dword [rbp + 0x2a8], eax
jmp 0x77ccf1
lea rcx, [rbp + 0x48]
lea rdx, [rbp + 0x94]
mov r8d, 0x104
call fcn.00411ea0
lea rcx, [rbp + 0x50]
mov rdx, qword [rbp + 0x48]
call fcn.004375f0
lea rcx, [rbp + 0x58]
mov rdx, qword [rbp + 0x50]
call fcn.00435710
lea rcx, [rbp + 0x40]
mov rdx, qword [rbp + 0x2c0]
call fcn.00435710
mov rcx, qword [rbp + 0x58]
mov rdx, qword [rbp + 0x40]
call fcn.00412410
test eax, eax
je 0x77ccbb
lea rcx, [rbp + 0x30]
lea rdx, [rbp + 0x94]
mov r8d, 0x104
call fcn.00411ea0
lea rcx, [rbp + 0x38]
mov rdx, qword [rbp + 0x30]
call fcn.00435710
lea rcx, [rbp + 0x28]
mov rdx, qword [rbp + 0x2c0]
call fcn.00435710
mov rcx, qword [rbp + 0x38]
mov rdx, qword [rbp + 0x28]
call fcn.00412410
test eax, eax
jne 0x77ccdb
mov ecx, 1
xor edx, edx
mov r8d, dword [rbp + 0x70]
call sub.kernel32.dll_OpenProcess
mov rcx, rax
xor edx, edx
call sub.kernel32.dll_TerminateProcess
mov dword [rbp + 0x2ac], eax
mov rcx, qword [rbp + 0x2a0]
lea rdx, [rbp + 0x68]
call fcn.0077c210
mov dword [rbp + 0x2a8], eax
cmp dword [rbp + 0x2a8], 0
jne 0x77cc26
mov rcx, qword [rbp + 0x2a0]
call sub.kernel32.dll_CloseHandle
nop
lea rcx, [rbp + 0x28]
mov edx, 7
call fcn.00410600
lea rcx, [rbp + 0x2c0]
call fcn.00410520
mov eax, dword [rbp + 0x2ac]
lea rsp, [rbp + 0x2b0]
pop rbp
ret
Function at 0x77db90
Capabilities:
Persist via run registry key

Disassembly:
push rbp
sub rsp, 0x50
mov rbp, rsp
mov qword [rbp + 0x20], 0
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x28], rbp
nop
lea rcx, [rbp + 0x40]
mov rdx, qword [0x007e9748]
call fcn.004197a0
lea rcx, [rbp + 0x20]
mov rdx, qword [0x007e82d0]
call fcn.004197a0
mov rcx, qword [rbp + 0x20]
mov dl, 1
call fcn.00437120
test al, al
je 0x77dbf6
lea rcx, [rbp + 0x38]
mov rdx, qword [0x007e82d0]
call fcn.004197a0
jmp 0x77dc09
mov rax, qword [0x007e8e40]
mov rcx, qword [rax]
lea rdx, [rbp + 0x38]
call fcn.006b6010
mov rax, qword [0x007e8e40]
mov rcx, qword [rax]
call fcn.006b4c10
mov rcx, qword [0x005809b0]
mov dl, 1
call fcn.005820d0
mov qword [rbp + 0x48], rax
nop
mov rcx, qword [rbp + 0x48]
mov rdx, 0xffffffff80000001
call fcn.00582380
mov rcx, qword [rbp + 0x48]
lea rdx, [0x0077dcf8]
xor r8, r8
call fcn.00582590
mov rcx, qword [rbp + 0x48]
mov rdx, qword [rbp + 0x40]
call fcn.00583bc0
test al, al
jne 0x77dc70
mov rcx, qword [rbp + 0x48]
mov rdx, qword [rbp + 0x40]
mov r8, qword [rbp + 0x38]
call fcn.00583340
nop
mov rcx, qword [rbp + 0x48]
call fcn.0040d300
nop
lea rcx, [rbp + 0x20]
call fcn.00410520
lea rcx, [rbp + 0x38]
mov edx, 2
call fcn.00410600
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x7809b0
Capabilities:
Create process on windows

Disassembly:
push rbp
sub rsp, 0x40
mov rbp, rsp
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x20], 0
mov qword [rbp + 0x28], 0
mov qword [rbp + 0x38], rbp
nop
nop
lea rcx, [rbp + 0x28]
xor edx, edx
call fcn.00409950
lea rcx, [rbp + 0x30]
mov rdx, qword [rbp + 0x28]
call fcn.004375f0
lea rcx, [rbp + 0x20]
mov rdx, qword [rbp + 0x30]
xor r8, r8
call fcn.004119e0
mov rcx, qword [rbp + 0x20]
call fcn.00411880
mov rcx, rax
mov edx, 1
call sub.kernel32.dll_WinExec
mov rax, qword [0x007e8e40]
mov rcx, qword [rax]
call fcn.006b4c10
mov ecx, 0x7d0
call sub.kernel32.dll_Sleep
nop
mov rax, qword [0x007e8e40]
mov rcx, qword [rax]
call fcn.006b5120
nop
lea rcx, [rbp + 0x20]
call fcn.00410570
lea rcx, [rbp + 0x28]
mov edx, 2
call fcn.00410600
lea rsp, [rbp + 0x40]
pop rbp
ret

Function at 0x781cd0
Capabilities:
Get graphical window text

Disassembly:
push rbp
sub rsp, 0x40
mov rbp, rsp
mov qword [rbp + 0x28], 0
mov qword [rbp + 0x50], rcx
nop
mov rcx, qword [rbp + 0x50]
call fcn.00410520
call sub.user32.dll_GetForegroundWindow
mov qword [rbp + 0x38], rax
cmp qword [rbp + 0x38], 0
je 0x781d3f
mov rcx, qword [rbp + 0x38]
call sub.user32.dll_GetWindowTextLengthW
add eax, 1
mov dword [rbp + 0x34], eax
lea rcx, [rbp + 0x28]
mov edx, dword [rbp + 0x34]
call fcn.00412050
mov rcx, qword [rbp + 0x28]
call fcn.00411de0
mov rcx, qword [rbp + 0x38]
mov rdx, rax
mov r8d, dword [rbp + 0x34]
call sub.user32.dll_GetWindowTextW
mov rcx, qword [rbp + 0x50]
mov rdx, qword [rbp + 0x28]
call fcn.00435df0
lea rcx, [rbp + 0x28]
call fcn.00410520
nop
lea rcx, [rbp + 0x28]
call fcn.00410520
mov rax, qword [rbp + 0x50]
lea rsp, [rbp + 0x40]
pop rbp
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x0073c4b0]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x0073c4c0]
mov dword [rax], 1
mov rax, qword [0x0073c4d0]
mov dword [rax], 1
mov rax, qword [0x0073c4a0]
mov dword [rax], 1
mov rax, qword [0x0073c360]
cmp word [rax], 0x5a4d
je 0x4010b0
mov rax, qword [0x0073c490]
mov dword [0x0073f008], edx
mov eax, dword [rax]
test eax, eax
je 0x4010a0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x0073c450]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x0073c310]
cmp dword [rax], 1
je 0x4010f0
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401075
movsxd rcx, dword [rax + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x401058
movzx ecx, word [rax + 0x18]
cmp cx, 0x10b
je 0x401103
cmp cx, 0x20b
jne 0x401058
cmp dword [rax + 0x84], 0xe
jbe 0x401058
mov ecx, dword [rax + 0xf8]
xor edx, edx
test ecx, ecx
setne dl
jmp 0x401058
lea rcx, [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401058
mov r8d, dword [rax + 0xe8]
xor edx, edx
test r8d, r8d
setne dl
jmp 0x401058
Function at 0x738f40
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x0073f844]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x7390c8
mov rax, qword [0x0073f848]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x738f8c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x739015
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x738f70
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x7390fd
mov rax, qword [0x0073f848]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x0073f848]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x7390e0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x73900e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x739070
add dword [0x0073f844], 1
cmp edi, 8
jae 0x739043
test dil, 4
jne 0x7390b4
test edi, edi
je 0x739038
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x7390cf
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x739038
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x73905c
jmp 0x739038
add rsi, qword [0x0073f848]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x73900e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x739038
xor esi, esi
jmp 0x738f97
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x739038
mov rax, qword [0x0073f848]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x739850
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x0073fb20]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x0073fb00]
test rbx, rbx
je 0x7398a4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x73989b
test rsi, rsi
je 0x73989b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x739880
lea rcx, [0x0073fb20]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x739ae0
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x739af0
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x739b00
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x739b41
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x739b38
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x739b43
add rax, 0x28
cmp rax, r9
jne 0x739b24
xor eax, eax
ret

Function at 0x739be0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x0073c360]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x739c4d
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x739c4d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x739c4d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x739c44
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x739c4f
add rax, 0x28
cmp rax, r9
jne 0x739c30
xor eax, eax
add rsp, 0x28
ret

Function at 0x739d50
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x0073c360]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x739d70
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x739d68
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x739dcd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x739dc4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x739dd4
add rax, 0x28
cmp rax, r9
jne 0x739db0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x739df0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x0073c360]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x739e5e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x739e5e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x739e5e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x739e5e
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x739e55
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x739e65
add rcx, 0x28
cmp rcx, rax
jne 0x739e40
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x739e78
jmp 0x739e5e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x739e86
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x739e5e
test r9d, r9d
jg 0x739e70
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x73a140
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x14000d2bc
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp byte [0x140016c30], 0
mov rsi, rcx
movsxd rdi, r8d
je 0x14000d2e4
mov eax, 0x3eb
jmp 0x14000d3ae
cmp edi, 0x240
ja 0x14000d2f6
call fcn.14000b1dc
mov rbx, rax
jmp 0x14000d328
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
nop dword [rax + rax]
lea r8, [rdi + 0x78]
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapAlloc]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x14000d328
mov dword [rax], 1
mov dword [rax + 0x68], edi
test rbx, rbx
jne 0x14000d332
lea eax, [rbx + 8]
jmp 0x14000d3ae
lea rcx, [rbx + 0x30]
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
lea rax, [0x14000c1d0]
mov qword [rsp + 0x20], rcx
movups xmmword [rcx + 0x10], xmm0
and dword [rbx + 0x50], 0
lea rdx, [rbx + 0x78]
mov qword [rbx + 0x18], rax
lea r9, [0x140016a04]
mov rax, qword [rsp + 0x68]
mov r8d, edi
mov qword [rbx + 0x20], rax
mov rcx, rsi
mov rax, qword [rsp + 0x70]
mov qword [rbx + 0x28], rax
mov qword [rbx + 0x10], rsi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
nop dword [rax + rax]
test eax, eax
jne 0x14000d3aa
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
cmp eax, 0x3e5
je 0x14000d3aa
mov rcx, rbx
call fcn.14000b218
jmp 0x14000d3ac
xor edi, edi
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x14000d3c8
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
cmp byte [0x140016c30], 0
mov r10, rcx
je 0x14000d3df
mov eax, 0x3eb
jmp 0x14000d446
lea rcx, [rdx + 0x30]
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
lea rax, [0x14000c240]
mov qword [rsp + 0x20], rcx
movups xmmword [rcx + 0x10], xmm0
mov qword [rdx + 0x18], rax
lea r9, [0x140016a04]
mov rax, qword [rsp + 0x68]
mov rcx, r10
mov qword [rdx + 0x20], rax
mov rax, qword [rsp + 0x70]
mov qword [rdx + 0x28], rax
mov qword [rdx + 0x10], r10
add rdx, 0x78
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
nop dword [rax + rax]
test eax, eax
jne 0x14000d444
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x3e5
jne 0x14000d446
xor eax, eax
add rsp, 0x38
ret

Function at 0x14000debc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000df08
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000df00
cmp dword [rcx + 0x3c], edx
jl 0x14000df00
cmp dword [rcx + 0x3c], 0x10000000
jae 0x14000df00
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x14000df08
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140786058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1407861df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140786089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14078606f
add dl, dl
jne 0x140786096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407860f6
xor eax, eax
add dl, dl
jne 0x1407860a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407861ad
add dl, dl
jne 0x1407860b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407860c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407860d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407860dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1407860ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14078607e
mov eax, 1
add dl, dl
jne 0x140786106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140786113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407860fb
sub eax, ebx
mov ebx, 1
jne 0x14078614c
mov ecx, 1
add dl, dl
jne 0x14078612e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14078613b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140786123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14078607e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140786168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140786175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14078615d
cmp eax, 0x7d00
jae 0x14078619b
cmp eax, 0x500
jb 0x140786196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14078607e
cmp eax, 0x7f
ja 0x14078619e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14078607e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1407861d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14078607e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140004907
Capabilities:
Delete directory

Disassembly:
push rbp
push r15
xor rax, rax
push rax
push rax
sub rsp, 0x28
call fcn.1400123e0
mov r15, qword [0x14002048c]
cmp r15, 1
jne 0x1400049d6
push qword [0x14002057c]
pop rcx
call fcn.14000d5b4
mov r15, rax
and r15, r15
jle 0x14000496c
mov rcx, qword [0x14002057c]
call fcn.14000d5bc
mov rcx, qword [0x14002057c]
call fcn.14000d5d0
or rax, rax
je 0x14000496c
mov rbp, qword [0x140020584]
push qword [rbp + 0x10]
pop rcx
call fcn.14000da6c
jmp 0x140004949
push qword [0x14002056c]
pop rcx
call fcn.14000d5b4
mov qword [rsp + 0x28], rax
mov r15, qword [rsp + 0x28]
and r15, r15
jle 0x1400049d6
push 5
push 0
push 1
push qword [0x14002056c]
pop rcx
pop rdx
pop r8
pop r9
call fcn.140009070
mov rcx, qword [0x14002056c]
call fcn.14000d5bc
mov rcx, qword [0x14002056c]
call fcn.14000d5d0
or rax, rax
je 0x1400049d6
mov rbp, qword [0x140020574]
push qword [rbp + 0x14]
pop rcx
call sub.KERNEL32.dll_RemoveDirectoryW
jmp 0x1400049b3
mov rax, 1
jmp 0x1400049e2
add rsp, 0x38
pop r15
pop rbp
ret

Function at 0x140006a58
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rcx
call sub.KERNEL32.dll_GetLastError
mov qword [rsp + 0x38], rax
mov rcx, qword [0x14001f190]
call sub.KERNEL32.dll_TlsGetValue
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x28]
add rsp, 0x48
ret

Function at 0x14000720c
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.14000719c
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x140021170]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400205b8]
jmp 0x140007248
cmp qword [rbx + 0x18], rdi
je 0x14000724f
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14000723f
jmp 0x140007269
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbx + 0x10]
lea rcx, [0x1400205b8]
call fcn.140011c68
lea rcx, [0x140021170]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
invalid
invalid
invalid
sub edi, edi
invalid
invalid
invalid
invalid
sub edi, edi
invalid
sub edi, edi
invalid
Function at 0x14001006c
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14003c618]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov edx, 2
lea r9, [rsp + 0x30]
mov rdi, rcx
mov r8d, edx
mov rcx, qword [rcx + 0x68]
call qword [sym.imp.ntoskrnl.exe_IoOpenDeviceRegistryKey]
mov edx, eax
mov esi, eax
mov eax, 0xc0000000
and edx, eax
cmp edx, eax
je 0x14001021c
mov ecx, dword [rdi + 0xe40]
or rbx, 0xffffffffffffffff
shr ecx, 8
test cl, 1
je 0x1400100d2
mov rcx, qword [rdi + 0x1258]
jmp 0x1400100e8
mov eax, dword [rdi + 0x1250]
mov ecx, dword [rdi + 0x1248]
add rcx, rax
cmp rcx, rax
cmovb rcx, rbx
mov qword [rsp + 0x38], rcx
mov rax, rbx
mov rcx, qword [str.GTX]
xor edi, edi
inc rax
cmp word [rcx + rax*2], di
jne 0x1400100f9
lea eax, [rax*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
lea rdx, [0x14003c060]
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov rcx, qword [0x14003c088]
mov rax, rbx
inc rax
cmp word [rcx + rax*2], di
jne 0x140010137
lea eax, [rax*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
lea rdx, [0x14003c078]
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov dword [rsp + 0x28], 8
lea rdx, [0x14003c090]
mov r9d, 0xb
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov rcx, qword [str.GeForce_GTX_3D]
mov rax, rbx
inc rax
cmp word [rcx + rax*2], di
jne 0x1400101a2
lea eax, [rax*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
lea rdx, [0x14003c0a8]
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov rcx, qword [0x14003c0d0]
inc rbx
cmp word [rcx + rbx*2], di
jne 0x1400101dd
lea eax, [rbx*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
lea rdx, [0x14003c0c0]
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, esi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140021240
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret