joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000ae20
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
and dword [rsp + 0x40], 0
lea rax, [rsp + 0x40]
mov r9d, 4
lea r8, str.ShowStoreBanner
mov dword [rsp + 0x28], r9d
lea rdx, str.SoftwareMicrosoftNotepad
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_1.dll_RegSetKeyValueW]
nop dword [rax + rax]
mov rcx, qword [0x140036130]
call qword [sym.imp.USER32.dll_DestroyWindow]
nop dword [rax + rax]
and qword [0x140036130], 0
call fcn.14000b4e0
add rsp, 0x38
ret

Function at 0x14000b7a0
Capabilities:
Query or enumerate registry value

Disassembly:
mov dword [rsp + 8], ecx
mov r11, rsp
sub rsp, 0x48
lea rax, [r11 + 8]
mov dword [rsp + 0x50], 4
mov qword [r11 - 0x18], rax
lea r8, str.ShowStoreBanner
lea rax, [r11 + 0x10]
mov r9d, 0x10
mov qword [r11 - 0x20], rax
lea rdx, str.SoftwareMicrosoftNotepad
and qword [r11 - 0x28], 0
mov rcx, 0xffffffff80000001
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
nop dword [rax + rax]
test eax, eax
jne 0x14000b7f9
cmp dword [rsp + 0x58], eax
je 0x14000b839
and qword [rsp + 0x28], 0
lea r8, [0x14000b850]
and dword [rsp + 0x20], 0
xor r9d, r9d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__beginthreadex]
nop dword [rax + rax]
test rax, rax
jne 0x14000b82a
mov eax, 0x80004005
jmp 0x14000b83b
mov rcx, rax
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
xor eax, eax
add rsp, 0x48
ret
Function at 0x14000cde4
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x460
mov rax, qword [0x1400343f0]
xor rax, rsp
mov qword [rsp + 0x450], rax
and qword [rsp + 0x30], 0
xor r9d, r9d
mov ebx, dword [0x1400355b0]
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
nop dword [rax + rax]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14000cf1a
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, 0x400
lea rdx, [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
nop dword [rax + rax]
test eax, eax
jle 0x14000cf0b
mov edi, dword [rsp + 0x44]
test edi, edi
je 0x14000cf0b
mov ebx, dword [0x1400355b0]
cmp edi, 1
jbe 0x14000cf0b
movzx eax, word [rsp + 0x50]
cmp eax, 0xbbef
je 0x14000cef9
cmp eax, 0xfeff
je 0x14000ced4
cmp eax, 0xfffe
je 0x14000cef2
or dword [rsp + 0x40], 0xffffffff
lea r8, [rsp + 0x40]
mov edx, edi
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_base_util_l1_1_0.dll_IsTextUnicode]
nop dword [rax + rax]
test eax, eax
je 0x14000cedb
cmp dword [rsp + 0x40], 2
jne 0x14000ced4
cmp edi, 0x64
jl 0x14000cedb
mov ebx, 2
jmp 0x14000cf0b
mov edx, edi
lea rcx, [rsp + 0x50]
call fcn.1400240e0
neg eax
sbb ebx, ebx
and ebx, 4
inc ebx
jmp 0x14000cf0b
mov ebx, 3
jmp 0x14000cf0b
cmp edi, 2
jbe 0x14000cf0b
cmp byte [rsp + 0x52], 0xbf
mov eax, 4
cmove ebx, eax
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.1400019d0
lea r11, [rsp + 0x460]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140010aa8
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x340]
sub rsp, 0x440
mov rax, qword [0x1400343f0]
xor rax, rsp
mov qword [rbp + 0x330], rax
mov edi, ecx
xor edx, edx
lea rcx, [rbp + 0x90]
mov r8d, 0x294
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
lea rcx, [rsp + 0x38]
mov ebx, 1
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetLocalTime]
nop dword [rax + rax]
mov ecx, 0x400
mov dword [rsp + 0x30], ebx
call fcn.140010ca8
test eax, eax
je 0x140010b5d
lea r9d, [rbx + 1]
mov edx, 0x20001009
lea r8, [rsp + 0x30]
mov ecx, 0x400
call qword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
nop dword [rax + rax]
mov eax, dword [rsp + 0x30]
cmp eax, ebx
jne 0x140010c7e
call qword [sym.imp.api_ms_win_core_localization_obsolete_l1_2_0.dll_GetUserDefaultUILanguage]
nop dword [rax + rax]
movzx ecx, ax
call fcn.140010ca8
test eax, eax
jne 0x140010c95
mov ebx, 0x11
lea rax, [rbp - 0x10]
mov dword [rsp + 0x28], 0x50
xor r9d, r9d
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x38]
mov edx, ebx
mov ecx, 0x400
call qword [sym.imp.api_ms_win_core_datetime_l1_1_0.dll_GetDateFormatW]
nop dword [rax + rax]
xor r9d, r9d
mov dword [rsp + 0x28], 0x50
lea rax, [rsp + 0x50]
mov ecx, 0x400
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea edx, [r9 + 2]
call qword [sym.imp.api_ms_win_core_datetime_l1_1_0.dll_GetTimeFormatW]
nop dword [rax + rax]
mov ebx, 0x14a
test edi, edi
je 0x140010bd6
lea r8, [0x14002b3e0]
mov edx, ebx
lea rcx, [rbp + 0x90]
call fcn.140008474
lea r8, [rsp + 0x50]
mov rdx, rbx
lea rcx, [rbp + 0x90]
call fcn.140008474
lea r8, [0x14002b3e8]
mov rdx, rbx
lea rcx, [rbp + 0x90]
call fcn.140008474
lea r8, [rbp - 0x10]
mov rdx, rbx
lea rcx, [rbp + 0x90]
call fcn.140008474
test edi, edi
je 0x140010c2d
lea r8, [0x14002b3e0]
mov rdx, rbx
lea rcx, [rbp + 0x90]
call fcn.140008474
mov rcx, qword [0x1400365c8]
lea r9, [rbp + 0x90]
mov edx, 0xc2
mov r8d, 1
call qword [sym.imp.USER32.dll_SendMessageW]
nop dword [rax + rax]
mov ecx, edi
call fcn.140023fc8
mov rcx, qword [rbp + 0x330]
xor rcx, rsp
call fcn.1400019d0
lea r11, [rsp + 0x440]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
cmp eax, 0x17
ja 0x140010b58
mov ecx, 0x800540
bt ecx, eax
jae 0x140010b58
mov ebx, 0x21
jmp 0x140010b5d

Function at 0x140010ca8
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x58
mov rax, qword [0x1400343f0]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov r9d, 0x10
lea r8, [rsp + 0x20]
lea edx, [r9 + 0x48]
call qword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
nop dword [rax + rax]
xor ecx, ecx
test eax, eax
je 0x140010ced
mov eax, 0x800
test word [rsp + 0x2e], ax
je 0x140010ced
mov ecx, 1
mov eax, ecx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400019d0
add rsp, 0x58
ret
Function at 0x14001109c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 8], rcx
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0x50
mov r13, qword [0x1400354c8]
xor ebx, ebx
mov r15, r9
mov r12d, r8d
mov edi, edx
cmp dword [rsp + 0xa0], ebx
jne 0x1400110d9
lea eax, [rbx + 1]
jmp 0x1400111c8
mov rsi, rbx
cmp edi, 0xfde9
je 0x1400110f6
cmp edi, 0xd698
lea rsi, [rsp + 0x80]
cmove rsi, rbx
mov r9d, dword [rsp + 0xa0]
mov r8, r15
mov qword [rsp + 0x38], rsi
mov edx, r12d
mov qword [rsp + 0x30], rbx
mov ecx, edi
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.api_ms_win_core_string_l1_1_0.dll_WideCharToMultiByte]
nop dword [rax + rax]
mov ebp, eax
test eax, eax
jne 0x140011132
xor eax, eax
jmp 0x1400111c8
lea edx, [rax + 1]
mov ecx, 0x40
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalAlloc]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
jne 0x14001115f
lea ecx, [rax + 8]
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
jmp 0x14001112b
mov r9d, dword [rsp + 0xa0]
mov r8, r15
mov qword [rsp + 0x38], rsi
mov edx, r12d
and qword [rsp + 0x30], 0
mov ecx, edi
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rbx
call qword [sym.imp.api_ms_win_core_string_l1_1_0.dll_WideCharToMultiByte]
nop dword [rax + rax]
mov edi, eax
test eax, eax
je 0x1400111b7
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, ebp
mov rdx, rbx
mov rcx, r13
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
nop dword [rax + rax]
mov edi, eax
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
nop dword [rax + rax]
mov eax, edi
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r13
pop r12
pop rdi
pop rsi
ret

Function at 0x140011f30
Capabilities:
Get graphical window text

Disassembly:
sub rsp, 0x28
cmp dword [0x1400363ac], 0
je 0x140011f7a
cmp dword [0x140036164], 0
je 0x140011f54
mov ecx, 0x50200104
add rsp, 0x28
jmp fcn.140020084
mov r9d, dword [0x1400360dc]
mov edx, 0xb1
mov r8d, dword [0x1400360d8]
mov rcx, qword [0x1400365c8]
call qword [sym.imp.USER32.dll_SendMessageW]
nop dword [rax + rax]
add rsp, 0x28
ret
Function at 0x14001eacc
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov ebp, edx
mov rbx, rcx
mov rdx, rcx
mov edi, 1
lea rcx, [0x14002b8c0]
call fcn.14001fac0
xor r14d, r14d
test eax, eax
jne 0x14001eb21
add rbx, 6
movzx eax, word [rbx]
cmp ax, 0x20
je 0x14001eb11
cmp ax, 9
jne 0x14001eb17
add rbx, 2
jmp 0x14001eb02
mov edi, r14d
mov esi, 2
jmp 0x14001eb53
mov rdx, rbx
lea rcx, [0x14002b8c8]
call fcn.14001fac0
test eax, eax
jne 0x14001ebc4
add rbx, 4
movzx eax, word [rbx]
cmp ax, 0x20
je 0x14001eb4b
cmp ax, 9
jne 0x14001eb51
add rbx, 2
jmp 0x14001eb3c
mov esi, edi
test ax, ax
je 0x14001ebc4
mov rcx, qword [0x140036138]
mov edx, ebp
call qword [sym.imp.USER32.dll_ShowWindow]
nop dword [rax + rax]
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x70], r14
mov rcx, rbx
call fcn.140012c20
add rax, 2
test edi, edi
jne 0x14001ec25
movzx ecx, word [rax]
test cx, cx
je 0x14001ebae
cmp cx, 0x20
je 0x14001eb9f
cmp cx, 9
jne 0x14001eba8
add rax, 2
movzx ecx, word [rax]
jmp 0x14001eb93
cmp cx, 0x22
je 0x14001ebda
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14001ebc4
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
nop dword [rax + rax]
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
lea rdx, [rax + 2]
mov eax, r14d
lea r9, [0x1400357d0]
jmp 0x14001ec09
cmp cx, 0x22
je 0x14001ec11
lea r8d, [rax + 1]
cmp r8d, 0x100
jae 0x14001ec11
mov word [r9 + rax*2], cx
add rdx, 2
mov eax, r8d
movzx ecx, word [rdx]
test cx, cx
jne 0x14001ebea
add rax, rax
cmp rax, 0x200
jae 0x14001ed0e
mov word [rax + r9], r14w
mov rbx, qword [rsp + 0x70]
mov r8d, 3
mov qword [rsp + 0x30], r14
mov rcx, rbx
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x20], r8d
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
nop dword [rax + rax]
mov qword [0x1400354c8], rax
cmp rax, 0xffffffffffffffff
jne 0x14001ece1
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 2
je 0x14001ec9e
cmp eax, 5
je 0x14001ec95
cmp eax, 0x41
je 0x14001ec95
mov r8, qword [0x140034598]
cmp eax, 0x7b
cmovne r8, qword [0x1400345f8]
jmp 0x14001eca5
mov r8, qword [0x140034520]
jmp 0x14001eca5
mov r8, qword [0x1400345f0]
mov rdx, qword [0x1400345b8]
mov r9, rbx
mov rcx, qword [0x140036138]
mov dword [rsp + 0x20], 0x30
call fcn.14000c770
test rbx, rbx
je 0x14001ecd7
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
nop dword [rax + rax]
mov eax, 1
jmp 0x14001ebc6
mov edx, dword [0x1400360e0]
lea rcx, [rsp + 0x70]
xor r8d, r8d
call fcn.1400113bc
mov rbx, qword [rsp + 0x70]
test al, al
jne 0x14001ed05
mov rcx, rbx
call fcn.140010fc0
mov ecx, esi
call fcn.140021910
jmp 0x14001ecc3
call fcn.140001b08
int3
Function at 0x1400203d8
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x38
mov r8, rcx
mov dword [rsp + 0x28], 1
and qword [rsp + 0x20], 0
xor ecx, ecx
xor r9d, r9d
xor edx, edx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
nop dword [rax + rax]
add rsp, 0x38
ret
Function at 0x1400225c0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x20
xor ebp, ebp
lea rax, [0x140029258]
mov qword [rcx], rax
lea r9, [rsp + 0x48]
mov qword [rcx + 8], rbp
mov rdi, rcx
mov rax, qword [rdx]
xor r8d, r8d
mov qword [rcx + 0x10], rax
mov qword [rdx], rbp
xor edx, edx
mov byte [rcx + 0x18], bpl
lea rcx, [0x14002e430]
mov qword [rsp + 0x48], rbp
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
nop dword [rax + rax]
test eax, eax
js 0x14002267d
mov rdx, qword [rsp + 0x48]
test rdx, rdx
je 0x140022693
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rdx + rbx*2], bp
jne 0x140022621
lea r8, [rbx + 9]
lea rcx, [rsp + 0x40]
call fcn.14000a13c
mov r11, qword [rsp + 0x40]
lea r8, [0x14002ba78]
mov edx, 9
lea rcx, [r11 + rbx*2]
call fcn.140008548
test eax, eax
js 0x140022669
lea rdx, [rsp + 0x40]
lea rcx, [rdi + 8]
call fcn.14000a454
mov r11, qword [rsp + 0x40]
test r11, r11
je 0x14002267d
mov rcx, r11
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140022693
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x50]
mov rax, rdi
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
Function at 0x140022a38
Capabilities:
Create directory
Get disk size

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rdi, rcx
xor edx, edx
mov rcx, qword [rcx + 8]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateDirectoryW]
nop dword [rax + rax]
xor ebp, ebp
test eax, eax
jne 0x140022a76
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0xb7
jne 0x140022b67
mov rsi, qword [rdi + 8]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rsi + rbx*2], bp
jne 0x140022a7e
lea r8, [rbx + 0x10]
xor edx, edx
lea rcx, [rsp + 0x60]
call fcn.14000a13c
lea rdx, [rbx + 0x10]
mov r9, rsi
mov rbx, qword [rsp + 0x60]
lea rax, str.probe.autosave
mov rcx, rbx
mov qword [rsp + 0x20], rax
lea r8, str._s_s
call fcn.1400085bc
test eax, eax
js 0x140022b53
mov qword [rsp + 0x30], rbp
xor r9d, r9d
mov dword [rsp + 0x28], 0x82
xor r8d, r8d
mov edx, 0xc0000000
mov dword [rsp + 0x20], 2
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
nop dword [rax + rax]
cmp rax, 0xffffffffffffffff
je 0x140022b53
mov rcx, rax
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [rsp + 0x68]
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetDiskFreeSpaceExW]
nop dword [rax + rax]
test eax, eax
je 0x140022b53
mov rcx, qword [0x1400365c8]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0xe]
call qword [sym.imp.USER32.dll_SendMessageW]
nop dword [rax + rax]
lea ecx, [rax + 1]
add rcx, rcx
cmp rcx, qword [rsp + 0x68]
jbe 0x140022b6b
test rbx, rbx
je 0x140022b67
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
nop dword [rax + rax]
xor al, al
jmp 0x140022b81
test rbx, rbx
je 0x140022b7f
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
nop dword [rax + rax]
mov al, 1
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x140024180
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
and qword [rsp + 0x40], 0
lea r9, [rsp + 0x40]
movsxd rbx, edx
mov rdi, rcx
xor edx, edx
lea rcx, [0x14002e430]
xor r8d, r8d
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
nop dword [rax + rax]
mov r8, qword [rsp + 0x40]
mov rdx, rbx
mov rcx, rdi
call fcn.140008474
lea r8, str.MicrosoftWindowsAppsMicrosoft.WindowsNotepad_8wekyb3d8bbwe_notepad.exe
mov rdx, rbx
mov rcx, rdi
call fcn.140008474
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400241eb
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140024200
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x260]
sub rsp, 0x360
mov rax, qword [0x1400343f0]
xor rax, rsp
mov qword [rbp + 0x250], rax
mov rbx, rcx
xor edx, edx
lea rcx, [rbp - 0x1e]
mov r8d, 0x26a
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov eax, 0x22
lea rcx, [rbp - 0x1e]
mov edx, 0x135
mov word [rbp - 0x20], ax
call fcn.140024180
lea r8, [0x14002bcc4]
mov edx, 0x136
lea rcx, [rbp - 0x20]
call fcn.140008474
mov r8, rbx
lea rcx, [rbp - 0x20]
mov edx, 0x136
call fcn.140008474
xor edx, edx
lea rcx, [rsp + 0x74]
lea r8d, [rdx + 0x64]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
xor eax, eax
mov dword [rsp + 0x70], 0x68
xor ebx, ebx
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x50]
xorps xmm0, xmm0
mov qword [rsp + 0x48], rax
lea rdx, [rbp - 0x20]
lea rax, [rsp + 0x70]
xor r9d, r9d
mov qword [rsp + 0x40], rax
xor r8d, r8d
mov qword [rsp + 0x38], rbx
xor ecx, ecx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
movups xmmword [rsp + 0x50], xmm0
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateProcessW]
nop dword [rax + rax]
test eax, eax
lea rcx, [rsp + 0x50]
setne bl
call fcn.140024138
mov al, bl
mov rcx, qword [rbp + 0x250]
xor rcx, rsp
call fcn.1400019d0
mov rbx, qword [rsp + 0x370]
add rsp, 0x360
pop rbp
ret
Function at 0x14002443c
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, 0x30
mov esi, edx
mov rbx, rcx
test rcx, rcx
je 0x1400244a3
call fcn.140025064
test eax, eax
je 0x1400244a3
test dword [rbx + 0x18], 0x200
je 0x1400244bb
mov rdx, qword [rbx + 0x48]
mov r8d, 5
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_1.dll_FindResourceW]
nop dword [rax + rax]
test rax, rax
je 0x1400244a3
mov rcx, qword [rbx + 0x10]
mov rdx, rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadResource]
nop dword [rax + rax]
test rax, rax
jne 0x1400244f3
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
test dword [rbx + 0x18], 0x2000
je 0x1400244ca
mov rax, qword [rbx + 0x10]
jmp 0x14002449e
mov r9d, 0x409
mov r8d, 0x604
test esi, esi
je 0x1400244e0
mov r8d, 0x605
call fcn.140024a08
test rax, rax
je 0x1400244a3
mov rcx, qword [0x1400354c0]
jmp 0x14002448f
mov rcx, rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LockResource]
nop dword [rax + rax]
mov rbp, rax
test rax, rax
je 0x1400244a3
mov edx, 0x10
lea ecx, [rdx + 0x30]
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalAlloc]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x1400244a3
test dword [rbx + 0x18], 0x100
je 0x14002453e
mov rcx, qword [rbx + 0x40]
mov qword [0x140036128], rcx
mov rcx, qword [0x1400354c0]
lea r9, [0x1400245a0]
mov qword [rax + 8], rbx
mov rdx, rbp
mov dword [rax], esi
mov r8, qword [rbx + 8]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.USER32.dll_CreateDialogIndirectParamW]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
jne 0x140024588
and qword [0x140036128], rax
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
nop dword [rax + rax]
mov rax, rbx
jmp 0x1400244a5
Function at 0x413240
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4133cb
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call sym.runtime.stdcall3.abi0
xorps xmm15, xmm15
mov r14, qword [0x005dbcf0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
jne 0x4132a5
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x4132b4
add rsp, 0x48
pop rbp
ret
sub rcx, rbx
add rax, rbx
mov rbx, rcx
test rbx, rbx
jbe 0x4132d3
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x4132e3
cmp rbx, 0x1000
jae 0x4132ab
jmp 0x41334d
add rsp, 0x48
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
cmp rbx, 0x1000
jae 0x4132f5
xor edx, edx
jmp 0x413344
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call sym.runtime.stdcall3.abi0
xorps xmm15, xmm15
mov r14, qword [0x005dbcf0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
sete al
mov rcx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x38]
mov edx, eax
mov rax, qword [rsp + 0x40]
test dl, dl
jne 0x4132d9
jmp 0x4132c8
call sym.runtime.getlasterror.abi0
xorps xmm15, xmm15
mov r14, qword [0x005dbcf0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call sym.runtime.printlock
lea rax, [0x004dc636]
mov ebx, 0x18
nop dword [rax]
call sym.runtime.printstring
mov rax, qword [rsp + 0x38]
call sym.runtime.printuint
lea rax, [0x004dcb2d]
mov ebx, 0x19
nop dword [rax + rax]
call sym.runtime.printstring
mov rax, qword [rsp + 0x30]
call sym.runtime.printuint
call sym.runtime.printnl
call sym.runtime.printunlock
lea rax, [0x004dee29]
mov ebx, 0x21
call sym.runtime.throw
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp sym.runtime.sysUnusedOS
Function at 0x413400
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x413626
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualAlloc]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x1000
mov qword [rsp + 0x20], 4
call sym.runtime.stdcall4.abi0
xorps xmm15, xmm15
mov r14, qword [0x005dbcf0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x60]
mov rcx, rax
cmp qword [rsp + 0x28], rax
je 0x413473
mov rbx, qword [rsp + 0x68]
mov rax, rbx
jmp 0x413482
add rsp, 0x50
pop rbp
ret
sub rdx, rbx
add rcx, rbx
mov rbx, rdx
test rbx, rbx
jbe 0x4134a5
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rcx
mov rdx, rbx
jmp 0x4134b5
cmp rbx, 0x1000
jae 0x413479
nop
jmp 0x413538
add rsp, 0x50
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
nop word [rax + rax]
cmp rbx, 0x1000
jae 0x4134cd
xor esi, esi
jmp 0x41352a
mov rax, qword [sym.imp.kernel32.dll_VirtualAlloc]
mov qword [rsp], rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x1000
mov qword [rsp + 0x20], 4
call sym.runtime.stdcall4.abi0
xorps xmm15, xmm15
mov r14, qword [0x005dbcf0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x28], 0
sete al
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
mov esi, eax
mov rax, qword [rsp + 0x68]
test sil, sil
jne 0x4134ab
jmp 0x413496
call sym.runtime.getlasterror.abi0
xorps xmm15, xmm15
mov r14, qword [0x005dbcf0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov dword [rsp + 0x34], eax
cmp eax, 8
jne 0x4135c0
nop dword [rax + rax]
call sym.runtime.printlock
lea rax, [0x004dcb46]
mov ebx, 0x19
call sym.runtime.printstring
mov rax, qword [rsp + 0x68]
nop dword [rax + rax]
call sym.runtime.printuint
lea rax, [0x004dcb2d]
mov ebx, 0x19
call sym.runtime.printstring
mov eax, dword [rsp + 0x34]
call sym.runtime.printuint
nop
call sym.runtime.printnl
call sym.runtime.printunlock
lea rax, [0x004d9437]
mov ebx, 0xd
call sym.runtime.throw
nop dword [rax + rax]
cmp eax, 0x5af
je 0x413560
call sym.runtime.printlock
lea rax, [0x004dcb46]
mov ebx, 0x19
call sym.runtime.printstring
mov rax, qword [rsp + 0x38]
call sym.runtime.printuint
lea rax, [0x004dcb2d]
mov ebx, 0x19
call sym.runtime.printstring
mov eax, dword [rsp + 0x34]
nop dword [rax]
call sym.runtime.printuint
call sym.runtime.printnl
call sym.runtime.printunlock
lea rax, [0x004de68c]
mov ebx, 0x1f
nop dword [rax + rax]
call sym.runtime.throw
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
nop
jmp sym.runtime.sysUsedOS