joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140029810
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x10], rdx
push rdi
push r14
push r15
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], rsi
mov r14, r9
xor edi, edi
mov rsi, qword [rsp + 0x70]
mov dword [rsi], edi
mov qword [rsi + 8], rdi
mov qword [rsi + 0x10], rdi
mov ecx, edi
lea r15, [0x140000000]
lea rbp, [0x140042660]
nop word [rax + rax]
movzx eax, byte [rcx + r15 + 0x309b0]
mov byte [rcx + rbp], al
lea rcx, [rcx + 1]
test al, al
jne 0x140029860
mov ecx, 0x10
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonLinkCtrl::XElementButtonLinkCtrl]
mov rbx, rax
mov qword [rsp + 0x58], rax
test rax, rax
je 0x1400298bd
mov word [rax], di
mov qword [rax + 8], rdi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x1400298c0
inc eax
movsxd rcx, eax
call qword [sym.imp.mfc140u.dll_operator_1]
mov qword [rbx + 8], rax
mov rdx, rbp
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x1400298c0
mov rbx, rdi
mov edx, 1
mov rcx, rbx
call fcn.14002a380
mov qword [rsi + 8], rax
test rax, rax
je 0x140029945
xor edx, edx
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [r14], eax
cmp eax, 0xffffffff
je 0x140029945
test rbx, rbx
je 0x14002990a
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1400298fd
call qword [sym.imp.mfc140u.dll_operator]
mov edx, 0x10
mov rcx, rbx
call fcn.14002c9cc
mov rdx, rdi
nop dword [rax]
movzx eax, byte [rdx + r15 + 0x309c0]
mov byte [rdx + rbp], al
lea rdx, [rdx + 1]
test al, al
jne 0x140029910
mov rcx, rbp
call fcn.14002a700
mov rbx, rax
mov edx, 0xa
mov rcx, rax
call fcn.14002a380
mov qword [rsi + 0x10], rax
test rax, rax
jne 0x14002994a
mov edi, 2
test rbx, rbx
je 0x14002996b
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14002995e
call qword [sym.imp.mfc140u.dll_operator]
mov edx, 0x10
mov rcx, rbx
call fcn.14002c9cc
test edi, edi
je 0x14002998d
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x14002997d
call fcn.14002a1e0
mov rcx, qword [rsi + 0x10]
test rcx, rcx
je 0x1400299c8
call fcn.14002a1e0
jmp 0x1400299c8
lea rcx, [0x140028f80]
mov rax, qword [rsp + 0x78]
mov qword [rax], rcx
lea rcx, [0x140029130]
mov qword [rax + 8], rcx
lea rcx, [0x1400294f0]
mov qword [rax + 0x10], rcx
lea rcx, [0x140029250]
mov qword [rax + 0x18], rcx
lea rcx, [0x1400292b0]
mov qword [rax + 0x20], rcx
mov eax, edi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x1400299f0
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x10], rdx
push rdi
push r14
push r15
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], rsi
mov r14, r9
mov rsi, qword [rsp + 0x70]
mov dword [rsi], 1
xor edi, edi
mov qword [rsi + 8], rdi
mov qword [rsi + 0x10], rdi
mov ecx, edi
lea r15, [0x140000000]
lea rbp, [0x140042660]
nop
movzx eax, byte [rcx + r15 + 0x30980]
mov byte [rcx + rbp], al
lea rcx, [rcx + 1]
test al, al
jne 0x140029a40
mov ecx, 0x10
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonLinkCtrl::XElementButtonLinkCtrl]
mov rbx, rax
mov qword [rsp + 0x58], rax
test rax, rax
je 0x140029a9d
mov word [rax], di
mov qword [rax + 8], rdi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x140029aa0
inc eax
movsxd rcx, eax
call qword [sym.imp.mfc140u.dll_operator_1]
mov qword [rbx + 8], rax
mov rdx, rbp
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x140029aa0
mov rbx, rdi
mov edx, 1
mov rcx, rbx
call fcn.14002a380
mov qword [rsi + 8], rax
test rax, rax
je 0x140029b25
xor edx, edx
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [r14], eax
cmp eax, 0xffffffff
je 0x140029b25
test rbx, rbx
je 0x140029aea
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140029add
call qword [sym.imp.mfc140u.dll_operator]
mov edx, 0x10
mov rcx, rbx
call fcn.14002c9cc
mov rdx, rdi
nop dword [rax]
movzx eax, byte [rdx + r15 + 0x309b0]
mov byte [rdx + rbp], al
lea rdx, [rdx + 1]
test al, al
jne 0x140029af0
mov rcx, rbp
call fcn.14002a700
mov rbx, rax
mov edx, 0xa
mov rcx, rax
call fcn.14002a380
mov qword [rsi + 0x10], rax
test rax, rax
jne 0x140029b2a
mov edi, 2
test rbx, rbx
je 0x140029b4b
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140029b3e
call qword [sym.imp.mfc140u.dll_operator]
mov edx, 0x10
mov rcx, rbx
call fcn.14002c9cc
test edi, edi
je 0x140029b6d
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x140029b5d
call fcn.14002a1e0
mov rcx, qword [rsi + 0x10]
test rcx, rcx
je 0x140029ba8
call fcn.14002a1e0
jmp 0x140029ba8
lea rcx, [0x140028f80]
mov rax, qword [rsp + 0x78]
mov qword [rax], rcx
lea rcx, [0x140029130]
mov qword [rax + 8], rcx
lea rcx, [0x140029560]
mov qword [rax + 0x10], rcx
lea rcx, [0x140029250]
mov qword [rax + 0x18], rcx
lea rcx, [0x1400292b0]
mov qword [rax + 0x20], rcx
mov eax, edi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x140029e70
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push r14
sub rsp, 0x48
xor esi, esi
mov r14, r8
movzx ebp, dx
mov rbx, rcx
test r8, r8
jne 0x140029e97
movzx eax, si
add rsp, 0x48
pop r14
pop rsi
pop rbp
pop rbx
ret
mov qword [rsp + 0x70], rdi
movzx edi, si
mov qword [rsp + 0x78], r12
mov qword [rsp + 0x40], r15
cmp si, bp
jge 0x140029fd4
lea r15, [0x140030680]
mov r12d, 0xd
nop
mov rcx, qword [r14]
lea r9, [rsp + 0x88]
mov r8d, 2
mov qword [rsp + 0x20], rsi
lea rdx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140029f0d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x58
jae 0x140029efb
mov eax, eax
mov ecx, dword [r15 + rax*4]
jmp 0x140029f00
mov ecx, operator
mov dword [0x140042de8], ecx
mov byte [0x1400433b0], sil
mov eax, dword [rsp + 0x88]
not byte [rsp + 0x80]
not byte [rsp + 0x81]
cmp ax, 2
jne 0x14002a01c
movzx eax, word [rsp + 0x80]
cmp ax, r12w
jne 0x140029fc0
mov word [rbx], r12w
lea r9, [rsp + 0x30]
mov rcx, qword [r14]
lea rdx, [rsp + 0x80]
mov r8d, 2
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140029f8c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x58
jae 0x140029f7a
mov eax, eax
mov ecx, dword [r15 + rax*4]
jmp 0x140029f7f
mov ecx, operator
mov dword [0x140042de8], ecx
mov byte [0x1400433b0], sil
mov eax, dword [rsp + 0x30]
not byte [rsp + 0x80]
not byte [rsp + 0x81]
cmp ax, 2
jne 0x140029ffd
movzx eax, word [rsp + 0x80]
cmp ax, 0xa
je 0x140029ff0
mov word [rbx + 2], ax
add rbx, 4
add di, 2
jmp 0x140029fc7
mov word [rbx], ax
add rbx, 2
add di, 2
cmp di, bp
jl 0x140029ec0
movzx eax, si
mov r12, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x70]
mov r15, qword [rsp + 0x40]
add rsp, 0x48
pop r14
pop rsi
pop rbp
pop rbx
ret
mov eax, 0xa
mov dword [rbx + 2], eax
lea eax, [rdi + 4]
jmp 0x140029fd7
test ax, ax
jne 0x140029fd7
test di, di
je 0x140029fd7
mov eax, 0xa
mov dword [rbx + 2], 0xa000d
lea eax, [rdi + 4]
mov word [rbx + 6], si
jmp 0x140029fd7
test ax, ax
jne 0x140029fd7
test di, di
je 0x140029fd7
mov eax, 0xa
mov dword [rbx], 0xa000d
lea eax, [rdi + 4]
mov word [rbx + 4], si
jmp 0x140029fd7

Function at 0x14002a040
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
movsxd rdi, r8d
mov rbx, rdx
test r8d, r8d
jle 0x14002a06c
mov r9, rdi
nop dword [rax + rax]
not byte [rdx]
lea rdx, [rdx + 1]
sub r9, 1
jne 0x14002a060
mov rcx, qword [rcx]
lea r9, [rsp + 0x50]
mov rdx, rbx
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14002a0b5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x58
jae 0x14002a0a3
mov eax, eax
lea rcx, [0x140030680]
mov ecx, dword [rcx + rax*4]
jmp 0x14002a0a8
mov ecx, operator
mov dword [0x140042de8], ecx
mov byte [0x1400433b0], 0
test rdi, rdi
jle 0x14002a0cc
nop word [rax + rax]
not byte [rbx]
lea rbx, [rbx + 1]
sub rdi, 1
jne 0x14002a0c0
mov eax, dword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x14002a0e0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rcx, qword [rcx]
lea r9, [rsp + 0x40]
movsxd rdi, r8d
mov rbx, rdx
mov r8d, edi
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14002a139
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x58
jae 0x14002a127
mov eax, eax
lea rcx, [0x140030680]
mov ecx, dword [rcx + rax*4]
jmp 0x14002a12c
mov ecx, operator
mov dword [0x140042de8], ecx
mov byte [0x1400433b0], 0
mov rcx, rdi
test edi, edi
jle 0x14002a14c
not byte [rbx]
lea rbx, [rbx + 1]
sub rcx, 1
jne 0x14002a140
mov eax, dword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x14002a380
Capabilities:
Get common file path

Disassembly:
push rbp
push rdi
push r14
sub rsp, 0x370
mov rax, qword [0x14003c008]
xor rax, rsp
mov qword [rsp + 0x360], rax
mov rbp, rcx
mov r14d, edx
mov ecx, 0x10
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonLinkCtrl::XElementButtonLinkCtrl]
mov qword [rsp + 0x20], rax
mov rdi, rax
test rax, rax
je 0x14002a4c4
mov qword [rsp + 0x3a0], rbx
xor ebx, ebx
mov qword [rsp + 0x3a8], rsi
mov qword [rax], rbx
mov qword [rax + 8], rbx
test rbp, rbp
je 0x14002a3e8
mov rcx, rbp
call fcn.14002a670
jmp 0x14002a464
lea rdx, [rsp + 0x30]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x14002a491
add eax, 0xc
cmp eax, 0x104
jae 0x14002a491
lea r9, [rsp + 0x140]
xor r8d, r8d
lea rdx, [0x140030a60]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x14002a491
nop word [rax + rax]
movzx eax, byte [rsp + rbx + 0x140]
mov byte [rsp + rbx + 0x250], al
lea rbx, [rbx + 1]
test al, al
jne 0x14002a440
lea rcx, [rsp + 0x250]
call fcn.14002a700
mov edx, r14d
mov qword [rdi + 8], rax
mov rcx, rax
call fcn.14002a260
mov qword [rdi], rax
cmp rax, 0xffffffffffffffff
jne 0x14002a4bf
mov rcx, rdi
call fcn.14002a160
mov edx, 0x10
mov rcx, rdi
call fcn.14002c9cc
xor eax, eax
mov rbx, qword [rsp + 0x3a0]
mov rsi, qword [rsp + 0x3a8]
mov rcx, qword [rsp + 0x360]
xor rcx, rsp
call fcn.14002c160
add rsp, 0x370
pop r14
pop rdi
pop rbp
ret
mov rax, rdi
jmp 0x14002a493
mov dword [0x140042de8], 2
xor eax, eax
mov byte [0x1400433b0], 0
jmp 0x14002a4a3

Function at 0x14002a5b0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14002a5fa
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x58
jae 0x14002a5e8
mov eax, eax
lea rcx, [0x140030680]
mov ecx, dword [rcx + rax*4]
jmp 0x14002a5ed
mov ecx, operator
mov dword [0x140042de8], ecx
mov byte [0x1400433b0], 0
mov eax, dword [rsp + 0x40]
add rsp, 0x38
ret
Function at 0x14002ab20
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push rbx
sub rsp, 0x20
cmp byte [rcx], 0
mov rbx, rcx
je 0x14002ac98
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
test ecx, ecx
jne 0x14002ac90
mov qword [rsp + 0x30], rbp
or rcx, 0xffffffffffffffff
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], r14
cmp byte [rbx + rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x14002ab60
movzx eax, word [0x140033ea8]
xor r14d, r14d
cmp byte [rcx + rbx - 1], al
sete r14b
test r14d, r14d
je 0x14002ab9b
or rax, 0xffffffffffffffff
inc rax
cmp byte [rbx + rax], 0
jne 0x14002ab86
mov byte [rax + rbx - 1], 0
movzx eax, word [0x140033ea8]
movsx edx, al
mov rcx, rbx
call qword [sym.imp.VCRUNTIME140.dll_strrchr]
mov rdi, rax
or rbp, 0xffffffffffffffff
nop
inc rbp
cmp byte [rbx + rbp], 0
jne 0x14002abb0
mov rcx, rbx
add rbp, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x14002abf4
nop word [rax + rax]
movsx edx, byte [0x140033ea8]
mov rcx, rbx
call qword [sym.imp.VCRUNTIME140.dll_strrchr]
mov rcx, rbx
mov rdi, rax
mov byte [rax], 0
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x14002abd0
mov esi, 1
cmp rdi, rbp
je 0x14002ac55
nop
test esi, esi
je 0x14002ac74
movzx eax, byte [0x140033ea8]
xor edx, edx
mov rcx, rbx
mov byte [rdi], al
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x14002ac2d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x14002ac2d
xor eax, eax
jmp 0x14002ac32
mov eax, 1
and esi, eax
or rdi, 0xffffffffffffffff
nop dword [rax + rax]
inc rdi
cmp byte [rbx + rdi], 0
jne 0x14002ac40
add rdi, rbx
cmp rdi, rbp
jne 0x14002ac00
test esi, esi
je 0x14002ac74
test r14d, r14d
je 0x14002ac74
dec rbx
nop dword [rax]
cmp byte [rbx + 1], 0
lea rbx, [rbx + 1]
jne 0x14002ac60
movzx eax, word [0x140033ea8]
mov word [rbx], ax
mov rdi, qword [rsp + 0x40]
mov eax, esi
mov rsi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rbx
ret
mov eax, ecx
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x14002b260
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x290
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x20], rsi
mov rax, qword [0x14003c008]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rdi, r8
mov rbx, rcx
xor r8d, r8d
lea rdx, str.Word_List__d
lea rcx, [r11 - 0x128]
call qword [sym.imp.USER32.dll_wsprintfA]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rsp + 0x170]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14002b318
mov dword [rsp + 0x30], operator
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
xor r8d, r8d
lea rdx, str.Name
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x38]
test eax, eax
je 0x14002b31f
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x14002b3c7
mov dword [rsp + 0x30], 4
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
xor r8d, r8d
lea rdx, str.Enabled
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
xor esi, esi
test eax, eax
jne 0x14002b363
mov eax, esi
cmp dword [rsp + 0x44], eax
setne al
mov dword [rdi], eax
jmp 0x14002b369
mov dword [rdi], 1
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, 0x10
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonLinkCtrl::XElementButtonLinkCtrl]
mov rbx, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x14002b3c1
mov word [rax], si
mov qword [rax + 8], rsi
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x14002b3c4
inc eax
movsxd rcx, eax
call qword [sym.imp.mfc140u.dll_operator_1]
mov qword [rbx + 8], rax
lea rdx, [rsp + 0x60]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x14002b3c4
mov rbx, rsi
mov rax, rbx
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.14002c160
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14002b77c
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x68]
sub rsp, 0x160
mov rax, qword [0x14003c008]
xor rax, rsp
mov qword [rbp + 0x50], rax
lea rax, [rsp + 0x38]
mov rdi, rcx
lea rdx, str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000000
mov qword [rsp + 0x20], rax
xor ebx, ebx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14002b883
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov esi, 0x104
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x34], esi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14002b874
cmp dword [rsp + 0x30], 2
mov byte [rbp + 0x43], bl
lea rcx, [rsp + 0x40]
jne 0x14002b83e
mov r8d, esi
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
dec eax
cmp eax, 0x103
setbe bl
jmp 0x14002b874
mov edx, ebx
sub rcx, rdi
lea rax, [rsi + 0x7ffffefa]
test rax, rax
je 0x14002b860
mov al, byte [rcx + rdi]
test al, al
je 0x14002b860
mov byte [rdi], al
inc rdi
dec rsi
jne 0x14002b843
test rsi, rsi
jne 0x14002b86d
dec rdi
mov edx, 0x8007007a
test edx, edx
mov byte [rdi], bl
setns bl
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x14002b885
xor eax, eax
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.14002c160
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret

Function at 0x14002c878
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x14002c909
movsxd rax, dword [0x14000003c]
lea rdx, [0x140000000]
lea rcx, [rax + rdx]
cmp dword [rcx], 0x4550
jne 0x14002c909
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002c909
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 0x14002c8ed
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x14002c8e7
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x14002c8ef
add rdx, 0x28
jmp 0x14002c8cc
xor edx, edx
test rdx, rdx
jne 0x14002c8f8
xor al, al
jmp 0x14002c90f
test dword [rdx + 0x24], 0x80000000
je 0x14002c905
xor al, al
jmp 0x14002c90f
mov al, 1
jmp 0x14002c90f
xor al, al
jmp 0x14002c90f
add rsp, 0x18
ret
Function at 0x1400183a0
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [rcx + 0x10]
lea rdx, [rsp + 0x20]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rax, qword [rcx + 8]
mov rbx, rcx
mov r9d, 0xffffffff
mov qword [rsp + 0x28], rax
lea ecx, [r8 + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
lock xadd dword [0x140297a20], eax
mov rcx, qword [rbx + 8]
test eax, eax
je 0x1400183fd
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
add rsp, 0x30
pop rbx
ret
mov rdx, rcx
xor r8d, r8d
lea rcx, [fcn.140003010]
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov rcx, qword [rbx + 8]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
add rsp, 0x30
pop rbx
ret

Function at 0x140018430
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x40
xor r9d, r9d
mov r14d, r8d
mov rsi, rdx
mov rbp, rcx
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsi + 8], rax
mov rdi, rax
lea r15, [0x1401fd840]
test rax, rax
jne 0x1400184a2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [rsi]
lea edx, [rdi + 1]
mov rcx, rsi
mov ebx, eax
call qword [r8]
test ebx, ebx
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x38], r15
setne byte [rsp + 0x34]
test ebx, ebx
jne 0x1400185ae
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbp + 0x10], rax
mov qword [rsi + 0x10], rax
cmp qword [rbp + 0x10], 0
jne 0x1400184f1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [rsi]
mov edx, 1
mov rcx, rsi
mov ebx, eax
call qword [r8]
test ebx, ebx
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x38], r15
setne byte [rsp + 0x34]
test ebx, ebx
jne 0x1400185c0
xor ecx, ecx
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea r8, [0x1400185e0]
mov r9, rsi
mov dword [rsp + 0x20], ecx
mov edx, r14d
mov dword [rsp + 0x68], ecx
call fcn.14017da2c
mov qword [rbp + 8], rax
test rax, rax
jne 0x140018567
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [rsi]
mov edx, 1
mov rcx, rsi
mov ebx, eax
call qword [r8]
test rdi, rdi
je 0x140018544
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x140018553
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x38], r15
setne byte [rsp + 0x34]
test ebx, ebx
jne 0x14001859c
test rdi, rdi
je 0x140018583
mov edx, 0xffffffff
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
lea rdx, str.thread
lea rcx, [rsp + 0x30]
call fcn.140017ec0
int3
lea rdx, str.thread.entry_event
lea rcx, [rsp + 0x30]
call fcn.140017ec0
int3
lea rdx, str.thread.exit_event
lea rcx, [rsp + 0x30]
call fcn.140017ec0
int3
Function at 0x1400186d0
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x30
mov rbx, qword [rcx]
mov rsi, rcx
test rbx, rbx
je 0x140018799
mov qword [rsp + 0x40], rdi
nop
mov rax, qword [rbx + 0x10]
lea rdx, [rsp + 0x20]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rax, qword [rbx + 8]
mov r9d, 0xffffffff
mov qword [rsp + 0x28], rax
lea ecx, [r8 + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
lock xadd dword [0x140297a20], eax
mov rcx, qword [rbx + 8]
test eax, eax
je 0x140018740
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x140018762
mov rdx, rcx
xor r8d, r8d
lea rcx, [fcn.140003010]
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov rcx, qword [rbx + 8]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rdi, qword [rsi]
mov rbx, qword [rdi + 0x18]
mov qword [rsi], rbx
test rdi, rdi
je 0x14001878b
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0x20
mov rcx, rdi
call fcn.1401589a4
mov rbx, qword [rsi]
test rbx, rbx
jne 0x1400186f0
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rsi
ret