joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001ba00
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400e4b80]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14001ba1f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14001ba28
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140021b60
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
mov qword [rsp + 0x20], rax
movabs rax, 0x7520676e696e6165
mov qword [rsp + 0x28], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x30], rax
movabs rax, 0x20726f6620737965
mov qword [rsp + 0x38], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x80], 0
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
mov dword [rsp + 0x87], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x140021c6a
lea rcx, [rsp + 0x20]
mov eax, 0x28
jmp 0x140021c42
add rax, 1
cmp rax, 0x6b
je 0x140021c5f
cmp byte [rcx + rax], 0
jne 0x140021c38
cmp eax, 0x6a
movsxd rdx, eax
je 0x140021c5f
add eax, 1
cdqe
mov byte [rsp + rdx + 0x20], 0xa
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
lea rcx, [rsp + 0x20]
mov eax, 0x28
mov edx, 0x27
jmp 0x140021c53

Function at 0x140021fe0
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x1400eb6f0], 1
je 0x140022058
lea rdi, [0x1400eb6f0]
mov rcx, rdi
call fcn.1400218e0
lea rbp, [rax + 8]
mov rbx, rax
mov rcx, rbp
call fcn.140021260
mov esi, dword [0x1400eb6f0]
test esi, esi
jne 0x140022068
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x140027798], eax
je 0x140026a36
mov dword [0x1400eb6f0], 1
mov rcx, rbp
call fcn.140021550
test rbx, rbx
je 0x140022058
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.140021c80
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp esi, 1
je 0x140022038
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, esi
mov r8, rdi
lea rdx, str._once__p_is__d_n
mov rcx, rax
call fcn.140020d30
jmp 0x140022038
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
Function at 0x140022090
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
call fcn.140021d90
cmp qword [0x1400ee048], 0
mov rbx, rax
je 0x1400221a8
test rax, rax
je 0x1400221a8
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov edx, 1
mov dword [rbx + 0x70], eax
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x38], 0xffffffffffffffff
lea rcx, [rbx + 0x68]
mov qword [rbx + 0x30], rax
call fcn.140025350
cmp eax, 1
je 0x1400221b6
mov rbp, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbx + 0x68], 0xffffffffffffffff
mov dword [rbx + 0xb8], 0
mov qword [rbx + 0x28], 0
call rbp
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rsi, rax
call rbp
mov dword [rsp + 0x30], 2
mov r8, rdi
mov rdx, rsi
mov dword [rsp + 0x28], 0
lea r9, [rbx + 0x28]
mov rcx, rax
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je fcn.140026a3c
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x140027798]
mov rdx, rbx
mov dword [rbx + 0xbc], 0
mov dword [rbx + 0xc0], eax
movzx eax, byte [rbx + 0x40]
and eax, 0xffffffcf
or eax, 0x10
mov byte [rbx + 0x40], al
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1400221bc
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.140021b60
nop
jmp fcn.140026a3c

Function at 0x1400221d0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.140021fe0
mov ecx, dword [0x140027798]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400221f0
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.140022090
Function at 0x140022de0
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
movaps xmmword [rsp + 0x20], xmm6
mov esi, ecx
mov r12, rdx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
call fcn.140021fe0
mov ecx, dword [0x140027798]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x140022ef0
lea r14, [rbx + 0x68]
mov rcx, r14
call fcn.140025360
cmp esi, dword [rbx + 0x48]
jae 0x140022e70
mov rdi, qword [rbx + 0x50]
mov qword [rdi + rsi*8], r12
mov rax, qword [rbx + 0x58]
mov rcx, r14
mov byte [rax + rsi], 1
call fcn.1400253a0
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
movaps xmm6, xmmword [rsp + 0x20]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [rbx + 0x50]
lea r15d, [rsi + 1]
movsxd r13, r15d
lea rdx, [r13*8]
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
test rax, rax
mov rdi, rax
je 0x140022efd
mov rcx, qword [rbx + 0x58]
mov rdx, r13
movq xmm6, rdi
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
movq xmm0, rax
test rax, rax
mov r13, rax
punpcklqdq xmm6, xmm0
je 0x140022efd
mov eax, dword [rbx + 0x48]
mov edx, r15d
lea rcx, [rdi + rax*8]
sub edx, eax
lea r8, [rdx*8]
xor edx, edx
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov edx, dword [rbx + 0x48]
mov r8d, r15d
lea rcx, [r13 + rdx]
sub r8d, edx
xor edx, edx
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
movaps xmmword [rbx + 0x50], xmm6
mov dword [rbx + 0x48], r15d
jmp 0x140022e34
call fcn.140022090
mov rbx, rax
jmp 0x140022e1f
mov rcx, r14
call fcn.1400253a0
mov eax, 0xc
jmp 0x140022e52

Function at 0x140022f80
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.140021fe0
mov ecx, dword [0x140027798]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140022fa8
mov rax, qword [rax + 0x30]
add rsp, 0x28
ret
call fcn.140022090
test rax, rax
jne 0x140022f9a
add rsp, 0x28
ret

Function at 0x140023010
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.140021fe0
mov ecx, dword [0x140027798]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140023038
add rax, 0x18
add rsp, 0x28
ret
call fcn.140022090
test rax, rax
jne 0x14002302a
jmp 0x14002302e

Function at 0x140023150
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1400eb6f8]
test eax, eax
jne 0x140023168
xor eax, eax
add rsp, 0x28
ret
call fcn.140021fe0
mov ecx, dword [0x140027798]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140023198
mov edx, dword [rax + 0x20]
test edx, edx
jg 0x14002315e
test byte [rax + 0x40], 3
je 0x14002315e
mov eax, dword [rax + 0x44]
and eax, 1
jmp 0x140023160
call fcn.140022090
test rax, rax
jne 0x14002317e
jmp 0x14002315e
Function at 0x1400231b0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call fcn.140021fe0
mov ecx, dword [0x140027798]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400231f0
test ebx, ebx
jle 0x1400231e0
lock add dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
lock sub dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
call fcn.140022090
test rax, rax
jne 0x1400231cd
add rsp, 0x20
pop rbx
ret

Function at 0x1400232e0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.140021fe0
mov ecx, dword [0x140027798]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x140023358
test byte [rbx + 0x40], 0xc
jne 0x14002330f
mov eax, dword [0x1400eb6f8]
test eax, eax
jne 0x140023320
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.140021260
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x140023343
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x140023343
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14002336c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.140021550
call fcn.140022090
test rax, rax
mov rbx, rax
jne 0x1400232ff
add rsp, 0x28
pop rbx
pop rsi
ret
mov rcx, qword [rbx + 0x30]
and eax, 0xfffffff3
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x14002338a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.140021550
call fcn.140023200
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x140023410
call fcn.1400244f0
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x140023448
call fcn.140021fe0
mov ecx, dword [0x140027798]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x1400234a0
test esi, esi
je 0x140023426
call fcn.1400232e0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140023480
mov edx, edi
call fcn.1400245a0
call fcn.1400232e0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140021fe0
mov ecx, dword [0x140027798]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140023490
call fcn.1400232e0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.1400232e0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140021fe0
mov ecx, dword [0x140027798]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
jne 0x1400233e5
call fcn.140022090
mov rbx, rax
jmp 0x1400233e5
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400233fe
call fcn.140022090
jmp 0x140023426
call fcn.140022090
mov rbx, rax
jmp 0x1400233e1
Function at 0x1400233a0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.140021fe0
mov ecx, dword [0x140027798]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x140023358
test byte [rbx + 0x40], 0xc
jne 0x14002330f
mov eax, dword [0x1400eb6f8]
test eax, eax
jne 0x140023320
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.140021260
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x140023343
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x140023343
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14002336c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.140021550
call fcn.140022090
test rax, rax
mov rbx, rax
jne 0x1400232ff
add rsp, 0x28
pop rbx
pop rsi
ret
mov rcx, qword [rbx + 0x30]
and eax, 0xfffffff3
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x14002338a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.140021550
call fcn.140023200
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x140023410
call fcn.1400244f0
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x140023448
call fcn.140021fe0
mov ecx, dword [0x140027798]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x1400234a0
test esi, esi
je 0x140023426
call fcn.1400232e0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140023480
mov edx, edi
call fcn.1400245a0
call fcn.1400232e0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140021fe0
mov ecx, dword [0x140027798]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140023490
call fcn.1400232e0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.1400232e0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140021fe0
mov ecx, dword [0x140027798]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
jne 0x1400233e5
call fcn.140022090
mov rbx, rax
jmp 0x1400233e5
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400233fe
call fcn.140022090
jmp 0x140023426
call fcn.140022090
mov rbx, rax
jmp 0x1400233e1

Function at 0x1400234b0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
call fcn.140021fe0
mov ecx, dword [0x140027798]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x140023520
test esi, esi
je 0x140023500
call fcn.1400232e0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140023530
mov edx, esi
call fcn.1400245a0
call fcn.1400232e0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.1400232e0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.1400232e0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.140022090
mov rbx, rax
jmp 0x1400234d1
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400234ea
Function at 0x14000b9ac
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140016950], eax
call fcn.14000b730
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_UnhandledExceptionFilter]
cmp dword [0x140016950], 0
jne case.default.0x14000ba02
mov ecx, 1
call fcn.14000b730
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
invalid

Function at 0x140001040
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov edx, 0x47
lea rcx, [entry0]
mov al, byte [rcx + rdx]
xor al, 0x87
add al, 0x13
xor al, 0x9a
mov byte [rcx + rdx], al
inc rdx
cmp rdx, 0x2d9
jl 0x140001068
cmp byte [rax - 0x3dbac83b], cl
add ch, byte [rbx - 0x7e6bb849]
invalid
Function at 0x14000462c
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov r15, qword [rsp + 0xa0]
mov rax, rdx
mov ebp, r9d
mov r12d, r8d
mov r13, rcx
xor ebx, ebx
and qword [r11 - 0x48], rbx
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
mov rcx, rax
xor edi, edi
xor esi, esi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x14000471e
mov ecx, ebp
call fcn.14000787c
and qword [rsp + 0x20], rbx
lea r9, [rsp + 0x90]
mov r8d, ebp
mov rdx, rax
mov rcx, r13
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, eax
test eax, eax
je 0x140004719
test r12d, r12d
je 0x1400046ed
mov ecx, dword [r15]
call fcn.14000787c
mov r9d, ebp
mov r8, rsi
mov rdx, r15
mov rcx, rax
mov rbx, rax
call section..text
test eax, eax
jne 0x140004719
mov ebp, dword [r15]
jmp 0x1400046f3
mov rbx, rsi
mov dword [r15], ebp
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, ebp
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
mov eax, 1
test edi, edi
cmovne edi, eax
test r14, r14
je 0x140004727
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rsi, rsi
je 0x140004734
mov rcx, rsi
call fcn.140007380
test r12d, r12d
je 0x140004746
test rbx, rbx
je 0x140004746
mov rcx, rbx
call fcn.140007380
lea r11, [rsp + 0x50]
mov eax, edi
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140005f28
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rdi, qword [rcx + 0x10]
mov rsi, rdx
mov rbx, rcx
test rdi, rdi
je 0x140005fba
cmp qword [rdi], 0
mov rbx, qword [rcx]
je 0x140005f94
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140005fb3
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140005fb3
mov rdx, qword [rdi]
xor r9d, r9d
and qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rdx
mov rcx, rbx
mov rdx, rsi
call rax
jmp 0x140005fa3
cmp dword [rdi + 8], 0
je 0x140005fb3
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov eax, 1
jmp 0x140005fa3
cmp byte [0x140024be8], 0
jne 0x140006005
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140005ff1
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r10, rax
mov qword [0x140024be0], rax
jmp 0x140005ff8
mov r10, qword [0x140024be0]
mov eax, 1
mov byte [0x140024be8], al
jmp 0x14000600c
mov r10, qword [0x140024be0]
mov rcx, qword [rbx]
mov rdx, rsi
test r10, r10
je 0x140005f9d
mov r8d, dword [rbx + 8]
xor r9d, r9d
call r10
jmp 0x140005fa3
Function at 0x140006d08
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x480
mov rax, qword [0x140023010]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov r15, r9
mov r14, r8
mov rbx, rdx
xor edi, edi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x60], rdi
xor edx, edx
lea r8d, [rdi + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x140006d8c
xor edx, edx
lea r8d, [rdi + 2]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x140006d8c
call fcn.140005078
mov ebx, eax
jmp 0x140006e97
mov r8, r15
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x140006dad
call fcn.140005078
jmp 0x140006e86
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r14, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140006da3
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, ebx
jae 0x140006de8
mov ebx, 0x8007000e
jmp 0x140006e88
mov ecx, eax
test eax, eax
je 0x140006e1a
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x140006ecf
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x140006e1a
lea rcx, [rsp + 0x60]
call fcn.14000504c
jmp 0x140006e24
lea rax, [rsp + 0x68]
mov qword [rsp + 0x60], rax
jmp 0x140006e36
cmp qword [rsp + 0x60], rdi
je 0x140006dde
mov dword [rsp + 0x28], ebx
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8, r14
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x140006da3
mov ecx, eax
mov rax, qword [rsp + 0x60]
mov word [rax + rcx*2], di
mov r8d, dword [rsp + 0x4d0]
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x48]
call fcn.140006b70
mov ebx, eax
test rsi, rsi
je 0x140006e97
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x68]
cmp qword [rsp + 0x60], rax
je 0x140006eae
lea rcx, [rsp + 0x60]
call fcn.14000502c
nop
mov eax, ebx
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.140007330
add rsp, 0x480
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
mov ecx, 0x80070216
call fcn.140005cdc
int3

Function at 0x14000c7ec
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000c550
Function at 0x140002952
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
xor r8d, r8d
test rdx, rdx
mov rsi, rcx
mov rbx, rdx
je 0x140002971
mov rcx, rdx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov r8, rax
mov rcx, rbx
mov r9, rsi
mov edx, 1
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.14001a4e8

Function at 0x1400055bb
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rsi, rcx
mov qword [rsp + 0x28], rdx
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [rsp + 0x28]
mov rcx, rsi
mov edx, 1
mov rbx, rax
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rcx, rbx
add rsp, 0x38
pop rbx
pop rsi
jmp fcn.14001a4e8

Function at 0x1400055fa
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
cmp qword [0x14058b0f0], 0
jne 0x140005612
add rsp, 0x38
pop rbx
pop rsi
jmp fcn.1400055bb
lea rsi, [rsp + 0x20]
mov rdx, rcx
mov rcx, rsi
call fcn.140005534
mov rbx, qword [rsp + 0x28]
mov rcx, rsi
call qword [0x14058b0f0]
test rbx, rbx
je 0x140005643
test byte [rbx + 7], 0x40
jne 0x140005643
mov rcx, rbx
call fcn.1400039df
lea rcx, [0x140020320]
call fcn.140015130
cmp byte [rax], 0
je 0x14000567b
lea rcx, [0x140020220]
mov byte [rax], 0
call fcn.140015130
xor r8d, r8d
mov rcx, rax
mov rax, qword [rax]
mov rdx, qword [rax + 0x38]
add rsp, 0x38
pop rbx
pop rsi
jmp fcn.140003f44
add rsp, 0x38
pop rbx
pop rsi
ret

Function at 0x140005cf2
Capabilities:
Write file on windows

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
lea r12, [0x14058b0c0]
xor ebx, ebx
lea r14, [0x140020320]
lea r13, [rsp + 0x20]
mov rsi, rcx
mov rdi, rdx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbp, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rbx, rdi
mov ecx, 1
jl 0x140005d78
call rbp
mov r8d, 1
mov edx, 1
lea rcx, [0x14002139b]
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov ecx, 1
call rbp
mov rcx, rax
call fcn.14001a4e8
mov rcx, r12
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rbp
xor r8d, r8d
mov rdx, r13
mov rcx, rax
mov rax, rbx
shl rax, 4
movups xmm0, xmmword [rsi + rax]
movaps xmmword [rsp + 0x20], xmm0
call fcn.140005bcb
mov rcx, r14
call fcn.140015130
cmp byte [rax], 0
jne 0x140005daa
inc rbx
jmp 0x140005d2b
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret