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

Disassembly:
jmp 0x140016370
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x1400113b6
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400176c0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400176e0
xor al, al
jmp 0x140017761
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400176f3
xor al, al
jmp 0x140017761
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001771d
xor al, al
jmp 0x140017761
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140017731
xor al, al
jmp 0x140017761
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140017743
xor al, al
jmp 0x140017761
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001775f
xor al, al
jmp 0x140017761
mov al, 1
add rsp, 0x38
ret
Function at 0x2fc4d8540
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4d9620
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d8f42
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4fb108]
test eax, eax
je 0x2fc4d8fda
lea rax, [0x2fc4fb0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4fb110]
mov qword [rbp - 8], rax
jmp 0x2fc4d8fbe
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4d8fb2
cmp qword [rbp - 0x10], 0
je 0x2fc4d8fb2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4d8f78
lea rax, [0x2fc4fb0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d8fdb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d90e0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d9108
mov eax, 0
jmp 0x2fc4d9156
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4d9131
mov eax, 0
jmp 0x2fc4d9156
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d9151
mov eax, 0
jmp 0x2fc4d9156
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d915c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4d91da
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d91d1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4d91d1
mov rax, qword [rbp - 8]
jmp 0x2fc4d91ef
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4d91a4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d59c0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4d6aa0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d63c2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f8108]
test eax, eax
je 0x2fc4d645a
lea rax, [0x2fc4f80e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f8110]
mov qword [rbp - 8], rax
jmp 0x2fc4d643e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4d6432
cmp qword [rbp - 0x10], 0
je 0x2fc4d6432
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4d63f8
lea rax, [0x2fc4f80e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d645b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d6560
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d6588
mov eax, 0
jmp 0x2fc4d65d6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4d65b1
mov eax, 0
jmp 0x2fc4d65d6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d65d1
mov eax, 0
jmp 0x2fc4d65d6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d65dc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4d665a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d6651
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4d6651
mov rax, qword [rbp - 8]
jmp 0x2fc4d666f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4d6624
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140003c90
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov rax, qword [0x1400820d8]
xor rax, rsp
mov qword [rbp - 8], rax
mov edx, 0x6c
mov dword [rbp - 0x40], 0x740055
lea r10, [0x1400849c0]
mov dword [rbp - 0x3c], 0x6c0069
xor r11d, r11d
mov dword [rbp - 0x38], 0x5c0073
lea r9, [rbp - 0x40]
mov dword [rbp - 0x34], 0x6f0043
lea r8d, [rdx - 0x51]
mov dword [rbp - 0x30], 0x70006d
mov dword [rbp - 0x2c], 0x740075
mov rcx, r10
mov dword [rbp - 0x28], 0x720065
sub r9, r10
mov dword [rbp - 0x24], 0x31005a
mov dword [rbp - 0x20], 0x5f0032
mov dword [rbp - 0x1c], 0x360078
mov dword [rbp - 0x18], 0x2e0034
mov dword [rbp - 0x14], 0x6c0064
mov dword [rbp - 0x10], edx
nop dword [rax + rax]
lea rax, [r8 + 0x7fffffe3]
test rax, rax
je 0x140003d43
movzx edx, word [r9 + rcx]
test dx, dx
je 0x140003d43
mov word [rcx], dx
add rcx, 2
sub r8, 1
jne 0x140003d20
test r8, r8
lea rdx, [rcx - 2]
mov rax, r10
cmovne rdx, rcx
mov word [rdx], r11w
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140030ed0
add rsp, 0x40
pop rbp
ret

Function at 0x140003d70
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov rax, qword [0x1400820d8]
xor rax, rsp
mov qword [rbp - 8], rax
xor r11d, r11d
mov dword [rbp - 0x40], 0x6f004c
lea r10, [0x1400849f8]
mov dword [rbp - 0x3c], 0x5c0067
mov edx, 0x72
mov dword [rbp - 0x38], 0x6f0043
lea r9, [rbp - 0x40]
mov dword [rbp - 0x34], 0x70006d
mov dword [rbp - 0x30], 0x740075
mov rcx, r10
mov dword [rbp - 0x2c], 0x720065
sub r9, r10
lea r8d, [rdx - 0x56]
mov dword [rbp - 0x28], 0x31005a
mov dword [rbp - 0x24], 0x5f0032
mov dword [rbp - 0x20], 0x650068
mov dword [rbp - 0x1c], 0x70006c
mov dword [rbp - 0x18], 0x720065
mov dword [rbp - 0x14], 0x6c002e
mov dword [rbp - 0x10], 0x67006f
mov word [rbp - 0xc], r11w
lea rax, [r8 + 0x7fffffe2]
test rax, rax
je 0x140003e27
movzx edx, word [r9 + rcx]
test dx, dx
je 0x140003e27
mov word [rcx], dx
add rcx, 2
sub r8, 1
jne 0x140003e04
test r8, r8
lea rdx, [rcx - 2]
mov rax, r10
cmovne rdx, rcx
mov word [rdx], r11w
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140030ed0
add rsp, 0x40
pop rbp
ret

Function at 0x140003e50
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1400820d8]
xor rax, rsp
mov qword [rsp + 0x20], rax
xor r11d, r11d
mov dword [rsp], 0x31007a
lea r10, [0x1400849a0]
mov dword [rsp + 4], 0x5f0032
lea r9, [rsp]
mov dword [rsp + 8], 0x360078
mov dword [rsp + 0xc], 0x5f0034
mov rcx, r10
lea r8d, [r11 + 0xe]
mov dword [rsp + 0x10], 0x610070
mov dword [rsp + 0x14], 0x680074
sub r9, r10
mov word [rsp + 0x18], r11w
lea rax, [r8 + 0x7ffffff0]
test rax, rax
je 0x140003ed3
movzx edx, word [r9 + rcx]
test dx, dx
je 0x140003ed3
mov word [rcx], dx
add rcx, 2
sub r8, 1
jne 0x140003eb0
test r8, r8
lea rdx, [rcx - 2]
mov rax, r10
cmovne rdx, rcx
mov word [rdx], r11w
mov rcx, qword [rsp + 0x20]
xor rcx, rsp
call fcn.140030ed0
add rsp, 0x38
ret
Function at 0x1400108b0
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rbp
mov qword [rsp + 0x78], rsi
mov r13d, r9d
mov rbp, r8
mov rsi, rdx
mov rbx, rcx
lea rax, vtable.LogUtils::LogAppender.0
mov qword [rcx], rax
xor edi, edi
mov qword [rcx + 8], rdi
mov dword [rcx + 0x10], edi
mov byte [rcx + 0x14], 1
mov dword [rcx + 0x18], edi
call fcn.140012280
mov rcx, rax
test rax, rax
je 0x140010a85
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbx + 0x20], rax
call fcn.140012280
mov rcx, rax
test rax, rax
je 0x140010a90
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbx + 0x28], rax
call fcn.140012280
mov rcx, rax
test rax, rax
je 0x140010a7a
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbx + 0x30], rax
mov r14, 0xffffffffffffffff
mov dword [rbx + 0x38], r14d
lea rcx, [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
nop
mov qword [rbx + 0x68], rdi
mov qword [rbx + 0x70], rdi
mov qword [rbx + 0x78], rdi
mov dword [rbx + 0x18], r13d
test rsi, rsi
jne 0x14001098c
mov eax, edi
jmp 0x14001099a
mov rax, r14
nop
inc rax
cmp word [rsi + rax*2], 0
jne 0x140010990
mov r8d, eax
mov rdx, rsi
lea rcx, [rbx + 0x20]
call fcn.140012f80
lea rdx, [rbx + 0x20]
lea rcx, [rbx + 0x28]
call fcn.140010ba0
test rbp, rbp
je 0x1400109cd
mov rax, r14
nop
inc rax
cmp word [rbp + rax*2], 0
jne 0x1400109c0
mov edi, eax
mov r8d, edi
mov rdx, rbp
lea rcx, [rbx + 0x30]
call fcn.140012f80
lea r8, [rbx + 0x28]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140011e20
nop
mov rdx, rax
lea rcx, [rbx + 0x28]
call fcn.140010ba0
nop
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], r14d
sub r14d, 1
jg 0x140010a19
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov r8, qword [rbx + 0x28]
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rbx + 8], rax
test rax, rax
je 0x140010a5a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140010a5a
cmp dword [rbx + 0x18], 0
je 0x140010a4f
mov rcx, qword [rbx + 0x20]
call fcn.140041f28
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
nop
mov rax, rbx
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov ecx, 0x80004005
call fcn.140010508
nop
mov ecx, 0x80004005
call fcn.140010508
nop
mov ecx, 0x80004005
call fcn.140010508
int3
Function at 0x1400131b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140013225
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140013225
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x140013215
nop
cmp rbx, rcx
jae 0x140013225
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x140013200
cmp rbx, rcx
jae 0x140013225
cmp word [rbx], 0
je 0x140013225
mov rax, rbx
jmp 0x140013227
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400137f0
Capabilities:
Print debug messages

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x160
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rsp + 0x190], rbx
mov rax, qword [0x1400820d8]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rdi, rdx
mov rbx, rcx
xor ebp, ebp
mov dword [rsp + 0x30], ebp
mov dword [rsp + 0x20], 0x180
lea r9d, [rbp + 0x40]
mov r8d, 0x8109
call fcn.140042964
mov esi, eax
test eax, eax
je 0x1400139af
xor edx, edx
mov r8d, 0xe8
lea rcx, [rsp + 0x60]
call fcn.140035530
lea edx, [rbp + 2]
lea r8d, [rbp + 1]
lea rcx, [rsp + 0x60]
call fcn.140002940
nop
lea rdx, str.open
lea rcx, [rsp + 0x60]
call fcn.1400015a0
mov rcx, rax
mov rdx, rdi
call fcn.1400015a0
mov rcx, rax
lea rdx, str._error.__
call fcn.1400015a0
mov rcx, rax
mov edx, esi
call fcn.140010c30
mov rcx, rax
lea rdx, [0x1400630d8]
call fcn.1400015a0
nop
movdqa xmm0, xmmword [0x14005e1c0]
movdqu xmmword [rsp + 0x48], xmm0
mov word [rsp + 0x38], bp
mov dword [rsp + 0x30], 2
mov rcx, qword [rsp + 0xd8]
test cl, 2
jne 0x14001390d
mov rax, qword [rsp + 0xa8]
mov r8, qword [rax]
test r8, r8
je 0x14001390d
mov rax, qword [rsp + 0x88]
mov rdx, qword [rax]
cmp r8, qword [rsp + 0xd0]
cmovb r8, qword [rsp + 0xd0]
sub r8, rdx
jmp 0x140013941
test cl, 4
jne 0x14001394f
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rax]
test rcx, rcx
je 0x14001394f
mov rax, qword [rsp + 0x80]
mov rdx, qword [rax]
mov rax, qword [rsp + 0xb8]
movsxd r8, dword [rax]
add r8, r8
sub r8, rdx
add r8, rcx
sar r8, 1
lea rcx, [rsp + 0x38]
call fcn.140006f60
nop
lea rcx, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rdx, qword [rsp + 0x50]
cmp rdx, 8
jb 0x1400139a5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001399f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400139eb
call fcn.140030afc
nop
lea rcx, [rsp + 0x60]
call fcn.140003f00
mov ecx, dword [rbx]
cmp ecx, 0xffffffff
je 0x1400139c3
xor edx, edx
lea r8d, [rdx + 2]
call fcn.140042e9c
jmp 0x1400139c8
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140030ed0
mov rbx, qword [rsp + 0x190]
add rsp, 0x160
pop rdi
pop rsi
pop rbp
ret
call fcn.140037b64
nop
int3
Function at 0x14001ab50
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
sub rsp, 0x880
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov rax, qword [0x1400820d8]
xor rax, rsp
mov qword [rsp + 0x870], rax
mov rax, r9
mov r10, r8
mov rbx, rdx
mov qword [rsp + 0x58], rdx
mov rsi, qword [rsp + 0x8c0]
xor ebp, ebp
mov dword [rsp + 0x48], ebp
mov qword [rsp + 0x40], rbp
mov qword [rdx + 0x10], rbp
mov qword [rdx + 0x18], 7
mov word [rdx], bp
mov dword [rsp + 0x48], 1
test r8, r8
je 0x14001ac78
test rax, rax
je 0x14001ac78
test rsi, rsi
je 0x14001ac78
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x20], rcx
mov r9d, 0x20219
xor r8d, r8d
mov rdx, rax
mov rcx, r10
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001ac68
cmp qword [rsp + 0x40], rbp
je 0x14001ac78
xor edx, edx
mov r8d, 0x802
lea rcx, [rsp + 0x60]
call fcn.140035530
mov dword [rsp + 0x4c], 0x800
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbp
mov r9d, 0xffff
mov r8, rsi
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x14001ac68
lea rax, [rsp + 0x60]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x14001ac50
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.140006f60
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14001ac78
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rbx
mov rcx, qword [rsp + 0x870]
xor rcx, rsp
call fcn.140030ed0
add rsp, 0x880
pop rsi
pop rbp
pop rbx
ret
Function at 0x140023550
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rsi, rdx
mov rdi, rcx
test rcx, rcx
je 0x140023688
test rdx, rdx
je 0x140023688
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140023688
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x140023688
xor ebx, ebx
mov dword [rsp + 0x80], ebx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [rax + 5]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
mov qword [rsp + 0x40], rax
cmp rax, 0xffffffffffffffff
je 0x14002367e
xor eax, eax
mov qword [rsp + 0x88], rax
lea rdx, [rsp + 0x88]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140023675
cmp dword [rsp + 0x8c], ebx
jne 0x140023675
mov edx, dword [rsp + 0x88]
xor r8d, r8d
mov rcx, rsi
call fcn.14000b044
nop
mov dword [rsp + 0x70], ebx
xor edx, edx
mov rcx, rsi
call fcn.14000acb4
mov rdx, rax
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x70]
mov r8d, dword [rsp + 0x88]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x70]
cmp dword [rsp + 0x88], eax
jne 0x140023675
mov ebx, 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
xor eax, eax
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
Function at 0x140030260
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x70
mov qword [r11 - 0x60], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov rax, qword [0x1400820d8]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov r14, r9
mov rbx, r8
mov rsi, rdx
mov qword [r11 - 0x58], rdx
mov qword [r11 - 0x50], r9
mov rbp, qword [rsp + 0xc0]
xor r15d, r15d
mov dword [r11 - 0x68], r15d
mov qword [r11 - 0x40], r15
xor eax, eax
mov qword [rdx], rax
call fcn.140012280
mov rcx, rax
test rax, rax
je 0x140030430
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsi], rax
mov dword [rsp + 0x30], 1
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
mov rdx, qword [r14]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea rdi, [r15 - 1]
test eax, eax
jne 0x1400303f1
mov qword [rsp + 0x60], r15
lea rax, [rsp + 0x64]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x60]
xor r8d, r8d
mov rdx, rbp
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400303e0
mov eax, dword [rsp + 0x64]
test eax, eax
je 0x1400303f1
add eax, 0x10
mov dword [rsp + 0x50], eax
mov ecx, eax
lea rdx, [0x140066bb0]
call fcn.140031418
mov rbx, rax
test rax, rax
je 0x1400303f1
mov r8d, dword [rsp + 0x50]
xor edx, edx
mov rcx, rax
call fcn.140035530
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
mov rdx, rbp
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1400303a2
mov rcx, rbx
call fcn.140030afc
jmp 0x1400303f1
mov rax, rdi
inc rax
cmp word [rbx + rax*2], 0
jne 0x1400303a5
test rax, rax
je 0x1400303d8
mov rax, rdi
nop word [rax + rax]
inc rax
cmp word [rbx + rax*2], 0
jne 0x1400303c0
mov r8d, eax
mov rdx, rbx
mov rcx, rsi
call fcn.140012f80
mov rcx, rbx
call fcn.140030afc
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400303f1
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [r14]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x14003040c
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
mov rax, rsi
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140030ed0
mov rbx, qword [rsp + 0xa0]
add rsp, 0x70
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.140010508
int3
Function at 0x140030440
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x1400820d8]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, qword [rsp + 0x90]
mov rbx, 0xffffffffffffffff
mov rax, rbx
mov qword [rsp + 0x30], r8
mov r15, r9
mov r14, r8
mov r10, rdx
nop
cmp word [rdi + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x140030480
mov rdx, qword [r14]
lea ebp, [rax*2 + 2]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x30], 0
mov r9d, 0xf003f
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rcx, r10
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor esi, esi
test eax, eax
sete sil
test eax, eax
jne 0x1400304fd
mov rcx, qword [rsp + 0x30]
lea r9d, [rax + 1]
mov dword [rsp + 0x28], ebp
xor r8d, r8d
mov rdx, r15
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
xor esi, esi
test eax, eax
sete sil
test rcx, rcx
je 0x1400304fd
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [r14]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x140030518
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
mov eax, esi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140030ed0
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret