joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140049584
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x14009a238]
xor rax, rsp
mov qword [rbp - 8], rax
xor eax, eax
lea rdx, [rbp - 0x30]
xor edi, edi
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rax
mov r15, rcx
mov qword [rbp - 0x10], rax
mov dword [rbp - 0x2c], edi
mov dword [rbp - 0x30], edi
call fcn.140049c88
test eax, eax
je 0x1400495df
cmp dword [rbp - 0x30], edi
sete dil
mov ebx, edi
jmp 0x140049769
mov qword [rsp + 0x30], rdi
mov r8d, 3
mov dword [rsp + 0x28], 0x20000000
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x20], r8d
mov rcx, r15
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14004962a
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x140049769
mov rcx, rsi
call fcn.140049464
mov ebx, eax
test eax, eax
je 0x140049760
mov qword [rsp + 0x38], rdi
lea rax, [rbp - 0x28]
mov qword [rsp + 0x30], rax
xor r9d, r9d
lea rax, [rbp - 0x20]
mov dword [rsp + 0x28], AtlComPtrAssign
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, 0x70000
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_io_l1_1_0.dll_DeviceIoControl]
test eax, eax
jne 0x14004968c
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x140049760
mov ebx, dword [rbp - 0xc]
xor ecx, ecx
add ebx, 0x1ff
mov r8d, 0x3000
and ebx, 0xfffffe00
mov edx, ebx
lea r9d, [rcx + 4]
call qword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_VirtualAlloc]
mov r12, rax
test rax, rax
je 0x140049673
lea r9, [rbp - 0x2c]
mov qword [rsp + 0x20], rdi
mov r8d, ebx
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
test eax, eax
jne 0x14004970f
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx r14d, ax
or r14d, 0x80070000
test eax, eax
cmovle r14d, eax
cmp r14d, 0x80310000
jne 0x140049700
mov edx, 1
mov rcx, r15
call fcn.140049d78
cmp r14d, 0x80310000
mov ebx, edi
cmovne ebx, r14d
jmp 0x14004974f
mov edx, dword [rbp - 0x2c]
xor r8d, r8d
mov rcx, r12
call fcn.14004a0e8
mov ebx, 1
lea ecx, [rax - 2]
cmp ecx, ebx
jbe 0x140049739
cmp eax, ebx
jne 0x14004973f
mov rcx, rsi
call fcn.1400490ec
mov ebx, eax
jmp 0x14004973b
mov ebx, edi
test ebx, ebx
js 0x14004974f
test ebx, ebx
mov rcx, r15
sete dil
mov edx, edi
call fcn.140049d78
xor edx, edx
mov r8d, 0x8000
mov rcx, r12
call qword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_VirtualFree]
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14004a710
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x140049790
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x40
xor ebx, ebx
mov dword [rsp + 0x58], 4
cmp dword [0x14009b400], ebx
mov dword [rsp + 0x50], ebx
jne 0x14004980e
lea rax, [r11 + 0x10]
mov r9d, 0x20000010
mov qword [r11 - 0x18], rax
lea r8, str.CacheDisable
lea rax, [r11 + 8]
mov rcx, 0xffffffff80000002
mov qword [r11 - 0x20], rax
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionFveDetect
mov qword [r11 - 0x28], rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
test eax, 0xfffffffc
jne 0x14004980e
cmp eax, 1
je 0x14004980e
mov eax, dword [0x14009a71c]
cmp dword [rsp + 0x50], ebx
mov dword [0x14009b400], 1
cmovne eax, ebx
mov dword [0x14009a71c], eax
jmp 0x140049814
mov eax, dword [0x14009a71c]
add rsp, 0x40
pop rbx
ret

Function at 0x140049c88
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
push rsi
push rdi
push r14
sub rsp, 0x40
xor ebx, ebx
mov dword [rax + 0x18], 4
mov qword [rax + 0x20], rbx
mov r14, rdx
mov dword [rax + 8], ebx
mov rdi, rcx
mov esi, ebx
test rcx, rcx
je 0x140049d45
test rdx, rdx
je 0x140049d45
mov dword [rdx], ebx
call fcn.140049790
test eax, eax
jne 0x140049cd4
lea edi, [rbx + 1]
jmp 0x140049d63
lea rdx, [rsp + 0x78]
mov rcx, rdi
call fcn.14004981c
mov rsi, qword [rsp + 0x78]
mov edi, eax
test eax, eax
js 0x140049d4a
lea rax, [rsp + 0x70]
mov r9d, reloc.ATL.DLL_AtlModuleInit
mov qword [rsp + 0x30], rax
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionFveDetectCache
lea rax, [rsp + 0x60]
mov r8, rsi
mov qword [rsp + 0x28], rax
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
test eax, eax
je 0x140049d36
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x140049d4a
cmp dword [rsp + 0x60], ebx
je 0x140049d4a
mov dword [r14], 1
jmp 0x140049d4a
mov edi, 0x80070057
test rsi, rsi
je 0x140049d63
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
test edi, edi
sete bl
mov eax, ebx
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x140049d78
Capabilities:
Set registry value

Disassembly:
push rbp
push rbx
mov rbp, rsp
sub rsp, 0x58
and qword [rbp + 0x28], 0
xor eax, eax
and qword [rbp + 0x18], 0
mov rbx, rcx
and qword [rbp + 0x30], 0
test edx, edx
setne al
mov dword [rbp + 0x20], eax
test rcx, rcx
je 0x140049eaa
call fcn.140049790
test eax, eax
je 0x140049e87
lea rdx, [rbp + 0x30]
mov rcx, rbx
call fcn.14004981c
mov rbx, qword [rbp + 0x30]
test eax, eax
js 0x140049e6e
and qword [rsp + 0x40], 0
lea rax, [rbp + 0x28]
mov qword [rsp + 0x38], rax
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionFveDetect
and qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], 0xf003f
xor r8d, r8d
and dword [rsp + 0x20], 0
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
test eax, eax
jne 0x140049e6e
and qword [rsp + 0x40], 0
lea rax, [rbp + 0x18]
mov rcx, qword [rbp + 0x28]
lea rdx, str.Cache
mov qword [rsp + 0x38], rax
xor r9d, r9d
and qword [rsp + 0x30], 0
xor r8d, r8d
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], 1
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
test eax, eax
jne 0x140049e6e
mov rcx, qword [rbp + 0x18]
lea r9d, [rax + 4]
lea rax, [rbp + 0x20]
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
test rbx, rbx
je 0x140049e87
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
mov rcx, qword [rbp + 0x18]
test rcx, rcx
je 0x140049e9b
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
and qword [rbp + 0x18], 0
mov rcx, qword [rbp + 0x28]
test rcx, rcx
je 0x140049eaa
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
add rsp, 0x58
pop rbx
pop rbp
ret
Function at 0x14004a47c
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x14009b408], rbx
je 0x14004a4e3
cmp rax, rbx
jne 0x14004a4d6
mov ebx, 1
mov esi, ebx
jmp 0x14004a4e8
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x14004a4bb
mov ebx, 1
mov eax, dword [0x14009b410]
cmp eax, ebx
jne 0x14004a500
mov edi, AtlInternalQueryInterface
mov ecx, edi
call sub.msvcrt.dll__amsg_exit
jmp 0x14004a56c
mov eax, dword [0x14009b410]
test eax, eax
jne 0x14004a561
mov dword [0x14009b410], ebx
lea r15, [0x140051d58]
lea rdi, [0x140051d40]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x14004a553
test eax, eax
jne 0x14004a557
cmp qword [rdi], r14
je 0x14004a548
mov rax, qword [rdi]
mov rcx, qword [0x140051cb8]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x14004a52a
test eax, eax
je 0x14004a567
mov eax, 0xff
jmp 0x14004a6c2
mov dword [0x14009a724], ebx
mov edi, AtlInternalQueryInterface
mov eax, dword [0x14009b410]
cmp eax, ebx
jne 0x14004a593
lea rdx, [0x140051d38]
lea rcx, [0x140051cc0]
call sub.msvcrt.dll__initterm
mov dword [0x14009b410], 2
test esi, esi
jne 0x14004a5a1
mov rax, r14
xchg qword [0x14009b408], rax
cmp qword [0x14009b428], r14
je 0x14004a5d4
lea rcx, [0x14009b428]
call fcn.14004ac30
test eax, eax
je 0x14004a5d4
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x14009b428]
mov r9, qword [0x140051cb8]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x14004a5ed
mov eax, 0xff
jmp 0x14004a6c2
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x14004a673
test ax, ax
je 0x14004a608
test edx, edx
jne 0x14004a673
sub ax, bx
cmp ax, di
ja 0x14004a61e
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x14004a608
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140006308
mov dword [0x14009a720], eax
cmp dword [0x14009a740], r14d
jne 0x14004a65c
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14009a724], r14d
jne 0x14004a671
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14009a720]
jmp 0x14004a6c2
cmp ax, 0x22
jne 0x14004a687
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x14004a5f6
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.14012e000
add rsp, 0x28
jmp 0x14004a47c
Function at 0x14004ab40
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14004ab8c
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14004ab84
cmp dword [rcx + 0x3c], edx
jl 0x14004ab84
cmp dword [rcx + 0x3c], 0x10000000
jae 0x14004ab84
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 0x14004ab8c
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140004430]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140004440]
mov dword [rax], 1
mov rax, qword [0x140004450]
mov dword [rax], 1
mov rax, qword [0x1400043d0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140004420]
mov dword [0x14000700c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x140004500]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x1400044e0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x140004380]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x140001740
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 dword [rax]
Function at 0x1400017b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140007094]
test esi, esi
mov rbx, rcx
jle 0x1400018e0
mov rax, qword [0x140007098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400017fb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001885
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400017e0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov rdi, rax
je 0x140001902
mov rax, qword [0x140007098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call sym._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140007098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400018e7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000187e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001890
add dword [0x140007094], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x140007098]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000187e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140001808
mov rax, qword [0x140007098]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140001e70
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140007100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400070e0]
test rbx, rbx
je 0x140001ecc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140001ec3
test rsi, rsi
je 0x140001ec3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140001ea8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400020e0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call qword [rax]
nop
nop

Function at 0x1400020f0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
call qword [rax]
nop
nop
nop
Function at 0x140002100
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140002118
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002120
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140002130
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx r8d, word [rcx + 6]
movzx eax, word [rcx + 0x14]
test r8w, r8w
lea rax, [rcx + rax + 0x18]
je 0x14000217d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rdx, r8
mov rcx, r8
jb 0x140002174
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000217f
add rax, 0x28
cmp rax, r9
jne 0x140002160
xor eax, eax
ret

Function at 0x140002180
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140002210
mov rdx, qword [0x1400043d0]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x1400021fe
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1400021fe
cmp word [rax + 0x18], 0x20b
jne 0x1400021fe
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140002210
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x1400021e9
add rbx, 0x28
cmp rbx, rdi
je 0x140002210
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x1400021e0
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

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

Disassembly:
mov rdx, qword [0x1400043d0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002240
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002248
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002240
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000229d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x140002294
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002240
add rax, 0x28
cmp rax, r9
jne 0x140002280
xor eax, eax
ret

Function at 0x1400022a0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400043d0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400022bf
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400022c8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400022bf
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x1400022e0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x1400043d0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002300
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002308
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002300
movzx r8d, word [rdx + 6]
movzx eax, word [rdx + 0x14]
test r8w, r8w
lea rax, [rdx + rax + 0x18]
je 0x140002350
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002347
test rcx, rcx
je 0x140002300
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140002338
xor eax, eax
ret

Function at 0x140002360
Capabilities:
Parse pe header

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

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

Disassembly:
mov rdx, qword [0x1400043d0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400023c0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400023c8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400023c0
movzx r9d, word [r8 + 6]
sub rcx, rdx
movzx edx, word [r8 + 0x14]
test r9w, r9w
lea rdx, [r8 + rdx + 0x18]
je 0x1400023c0
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x140002414
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002420
add rdx, 0x28
cmp r9, rdx
jne 0x140002400
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x1400043d0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002452
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002460
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002452
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002452
movzx r10d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
test r10w, r10w
lea rdx, [r8 + rdx + 0x18]
je 0x140002452
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
cmp rax, r9
mov r8, r9
jb 0x1400024b5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1400024c8
add rdx, 0x28
cmp rdx, r10
jne 0x1400024a0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400024d7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1400024e7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400024be
test ecx, ecx
jg 0x1400024d0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140003264
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x260
mov rax, qword [0x140006110]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor r12d, r12d
mov rdi, rcx
mov ebx, r12d
mov ebp, r12d
cmp dword [rcx + 0x34], r12d
jbe 0x1400033f7
mov rsi, r12
cmp ebx, r12d
jl 0x1400033f7
mov rcx, qword [rdi]
cmp word [rcx + rsi + 0x14], r12w
je 0x1400033e8
mov qword [rsp + 0x38], r12
mov rcx, qword [rcx + rsi]
lea r8, [rsp + 0x38]
mov rax, qword [rcx]
lea rdx, [0x1400018c0]
call qword [rax]
cmp eax, r12d
mov ebx, eax
jl 0x1400033d3
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x30], r12
lea rdx, [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + 0x28]
movsxd rbx, eax
cmp ebx, r12d
jl 0x1400033c3
mov rax, qword [rsp + 0x30]
cmp rax, r12
je 0x14000334b
lea r8, [0x140001920]
lea rcx, [rsp + 0x40]
mov r9d, 0x14
mov edx, 0x100
mov qword [rsp + 0x20], rax
call fcn.140003b18
cmp eax, r12d
jl 0x14000334b
lea r8, [rsp + 0x40]
lea rdx, [0x140001930]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyValueW]
mov edx, r12d
cmp dword [rdi + 0x10], r12d
jbe 0x1400033c3
cmp rbx, r12
jl 0x1400033c3
mov rax, qword [rdi]
mov ecx, ebp
imul rcx, rcx, 0x58
lea r10, [rcx + rax + 0x14]
mov rax, qword [rdi + 8]
movsxd rcx, edx
imul rcx, rcx, 0x160
lea r8, [rcx + rax + 0x20]
sub r10, r8
movzx eax, word [r8]
movzx ecx, word [r8 + r10]
sub eax, ecx
jne 0x140003392
add r8, 2
test ecx, ecx
jne 0x14000337d
cmp eax, r12d
je 0x1400033a0
inc edx
cmp edx, dword [rdi + 0x10]
jb 0x140003354
jmp 0x1400033c3
movsxd r8, edx
mov rdx, qword [rsp + 0x30]
mov ecx, 0x14
imul r8, r8, 0x160
add r8, qword [rdi + 8]
add r8, 0x60
call fcn.140003b88
mov ebx, eax
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x30], r12
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x38], r12
cmp rcx, r12
je 0x1400033e8
mov rax, qword [rcx]
call qword [rax + 0x10]
inc ebp
add rsi, 0x58
cmp ebp, dword [rdi + 0x34]
jb 0x1400032a4
mov eax, ebx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140004090
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret