joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1402f61ec
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x90
mov r14, qword [rbp + 0x77]
mov rdi, rdx
xor edx, edx
mov r12, r9
and dword [rbp + 0x67], edx
mov r15d, r8d
and dword [rbp - 0x39], edx
mov rsi, rcx
mov qword [rbp - 0x29], rdx
cmp dword [r14], r8d
jae 0x1402f6235
mov edi, 0x80049e19
jmp 0x1402f6399
mov rax, qword [rdi]
and qword [rbp - 0x21], rdx
and qword [rbp - 0x31], rdx
and qword [rbp - 0x19], rdx
mov rbx, qword [rax]
mov rcx, rbx
call qword [0x1403b8660]
lea r8, [rbp - 0x31]
mov rcx, rdi
lea rdx, [0x140409078]
call rbx
test eax, eax
je 0x1402f626e
mov edi, 0x80049e2f
jmp 0x1402f62f6
mov rdi, qword [rbp - 0x31]
mov rax, qword [rdi]
mov rbx, qword [rax + 0x30]
mov rcx, rbx
call qword [0x1403b8660]
lea rdx, [rbp - 0x21]
mov rcx, rdi
call rbx
mov edi, eax
test eax, eax
js 0x1402f62f6
mov rdx, qword [rbp - 0x21]
lea r8, [rbp - 0x19]
mov rcx, rsi
call fcn.1402f5944
mov edi, eax
test eax, eax
js 0x1402f62f6
lea rax, [0x140043eb8]
mov qword [rbp - 0x11], 3
mov qword [rbp - 9], rax
lea rdx, [rbp - 0x11]
lea rax, [rbp + 0x77]
mov qword [rbp + 7], rsi
mov qword [rbp - 1], rax
xor r9d, r9d
mov rax, qword [rbp - 0x31]
mov ecx, 0xb9
mov qword [rbp + 0xf], rax
mov rax, qword [rbp - 0x19]
mov qword [rbp + 0x17], rax
lea r8d, [r9 + 0x38]
lea rax, [rbp - 0x29]
mov qword [rbp + 0x1f], rax
call sub.ntdll.dll_NtQuerySystemInformation
mov edi, dword [rbp + 0x77]
mov rsi, qword [rbp - 0x21]
test rsi, rsi
je 0x1402f6319
mov rax, qword [rsi]
mov rbx, qword [rax + 0x10]
mov rcx, rbx
call qword [0x1403b8660]
mov rcx, rsi
call rbx
and qword [rbp - 0x21], 0
mov rsi, qword [rbp - 0x31]
test rsi, rsi
je 0x1402f633c
mov rax, qword [rsi]
mov rbx, qword [rax + 0x10]
mov rcx, rbx
call qword [0x1403b8660]
mov rcx, rsi
call rbx
and qword [rbp - 0x31], 0
test edi, edi
js 0x1402f6395
mov eax, dword [r14]
mov r8d, r15d
mov r9, qword [rbp + 0x7f]
mov rdx, r12
mov rcx, qword [rbp - 0x29]
mov dword [rbp + 0x67], eax
lea rax, [rbp + 0x67]
mov qword [rsp + 0x28], rax
call fcn.140166aac
mov edi, eax
test eax, eax
js 0x1402f6395
mov eax, dword [r14]
lea r9, [rbp - 0x39]
mov r8d, dword [rbp + 0x67]
sub eax, r8d
mov rdx, qword [rbp + 0x7f]
mov rcx, qword [rbp - 0x29]
mov dword [rbp - 0x39], eax
call fcn.140166dd0
mov edi, eax
test eax, eax
js 0x1402f6395
mov ecx, dword [rbp + 0x67]
add ecx, dword [rbp - 0x39]
mov dword [r14], ecx
mov rdx, qword [rbp - 0x29]
cmp dword [0x140438460], 0
je 0x1402f63ac
test rdx, rdx
je 0x1402f63ac
call fcn.14016998c
lea r11, [rsp + 0x90]
mov eax, edi
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x14036bca8
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rsi, r8
mov ebp, edx
mov rdi, rcx
test r8, r8
je 0x14036be52
cmp edx, 0x14
jbe 0x14036be52
mov rbx, qword [rcx + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
and qword [rdi + 0x20], 0
mov rbx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
and qword [rdi + 0x10], 0
lea r15, [rdi + 0x30]
mov rcx, qword [r15]
and dword [rdi + 0x18], 0
test rcx, rcx
je 0x14036bd2e
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
and qword [r15], 0
mov ecx, dword [rsi + 0xc]
lea r14, [rdi + 0x2c]
shr ecx, 3
mov dword [rdi + 0x28], ecx
mov eax, dword [rsi + 0x10]
mov dword [r14], eax
mov eax, ecx
shr eax, 1
add eax, 4
lea eax, [rax + rax*4]
lea ecx, [rax + rcx*2]
cmp ebp, ecx
jne 0x14036be52
mov rbx, qword [rdi + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
and qword [rdi + 0x20], 0
mov ebx, dword [rdi + 0x28]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, ebx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rdi + 0x20], rax
test rax, rax
jne 0x14036bd9d
mov ebx, 0x8007000e
jmp 0x14036be57
mov r8d, dword [rdi + 0x28]
lea rdx, [rsi + 0x14]
mov rcx, rax
call sub.msvcrt.dll_memcpy
test r14, r14
je 0x14036be52
mov edx, 4
mov rcx, r14
call fcn.14036cc74
mov ebx, eax
test eax, eax
jne 0x14036be57
mov rcx, qword [rdi + 0x20]
test rcx, rcx
je 0x14036be52
mov edx, dword [rdi + 0x28]
call fcn.14036cc74
mov ebx, eax
test eax, eax
jne 0x14036be57
lea r14, [rdi + 0x38]
cmp qword [r14], 0
jne 0x14036be26
lea r9d, [rax + 0x18]
mov dword [rsp + 0x20], 0xf0000000
lea r8, str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
xor edx, edx
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x14036be26
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14036be57
mov rcx, qword [r14]
xor r9d, r9d
mov qword [rsp + 0x28], r15
mov r8d, ebp
mov rdx, rsi
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x14036be10
mov dword [rdi + 0xc], 4
jmp 0x14036be57
mov ebx, 0x80070057
mov rbp, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x14036d1b8
Capabilities:
Encrypt or decrypt via wincrypt
Generate random numbers via winapi

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov dword [rax + 0x18], r8d
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
xor r15d, r15d
mov r12, r9
mov dword [rax + 0x10], r15d
mov ebp, r8d
mov rsi, rdx
mov rbx, rcx
mov edi, r15d
test rdx, rdx
je 0x14036d3d3
test r9, r9
je 0x14036d3d3
mov r14, qword [rsp + 0xa0]
test r14, r14
je 0x14036d3d3
cmp qword [rcx + 0x30], r15
jne 0x14036d21b
mov ebx, 0x80049e51
jmp 0x14036d3d8
mov r13d, dword [r14]
lea rdx, str.http:__www.w3.org_2001_04_xmlencaes128_cbc
mov rcx, rsi
mov dword [r14], r15d
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x14036d247
cmp dword [rbx + 0xc], 1
lea esi, [rax + 0x10]
je 0x14036d283
mov ebx, 0x80049e2e
jmp 0x14036d3d8
lea rdx, str.http:__www.w3.org_2001_04_xmlencaes192_cbc
mov rcx, rsi
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x14036d263
cmp dword [rbx + 0xc], 2
lea esi, [rax + 0x18]
jmp 0x14036d23b
lea rdx, str.http:__www.w3.org_2001_04_xmlencaes256_cbc
mov rcx, rsi
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x14036d3cc
cmp dword [rbx + 0xc], 3
lea esi, [rax + 0x20]
jmp 0x14036d23b
mov rcx, qword [rbx + 0x30]
lea r15d, [rsi + rbp]
xor r9d, r9d
mov dword [rsp + 0x30], r15d
lea rax, [rsp + 0x88]
mov dword [rsp + 0x88], r15d
mov qword [rsp + 0x28], rax
xor edx, edx
and qword [rsp + 0x20], rdi
lea r8d, [r9 + 1]
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
jne 0x14036d2d6
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14036d3d8
mov ebp, dword [rsp + 0x88]
mov dword [r14], ebp
mov r14, qword [rsp + 0xa8]
test r14, r14
je 0x14036d3c8
cmp r13d, ebp
jae 0x14036d300
mov ebx, 0x80049e19
jmp 0x14036d3d8
mov dword [rsp + 0x88], r15d
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbp
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
jne 0x14036d32e
mov ebx, 0x8007000e
jmp 0x14036d3d8
mov r8, rbp
xor edx, edx
mov rcx, rdi
call sub.msvcrt.dll_memset
mov r8d, dword [rsp + 0x90]
mov rdx, r12
mov ecx, esi
add rcx, rdi
call sub.msvcrt.dll_memcpy
mov r15d, 2
mov r8d, esi
mov r9d, r15d
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
je 0x14036d384
mov r9d, r15d
mov r8d, esi
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
mov ebx, eax
bts ebx, 0x1c
jmp 0x14036d3d8
mov rcx, qword [rbx + 0x30]
lea rax, [rsp + 0x88]
xor r9d, r9d
mov dword [rsp + 0x30], ebp
mov qword [rsp + 0x28], rax
xor edx, edx
mov qword [rsp + 0x20], rdi
lea r8d, [r9 + 1]
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
je 0x14036d2bd
mov r8d, dword [rsp + 0x88]
mov rdx, rdi
mov rcx, r14
call sub.msvcrt.dll_memcpy
xor ebx, ebx
jmp 0x14036d3d8
mov ebx, 0x80049e5b
jmp 0x14036d3d8
mov ebx, 0x80070057
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, ebx
mov rbx, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14036d40c
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
xor edi, edi
mov r12d, r8d
mov dword [rax + 0x10], edi
mov r15, r9
mov rbp, rdx
mov rsi, rcx
mov ebx, edi
test rdx, rdx
je 0x14036d57c
test r9, r9
je 0x14036d57c
mov r14, qword [rsp + 0x80]
test r14, r14
je 0x14036d57c
cmp qword [rcx + 0x30], rdi
jne 0x14036d46e
mov edi, 0x80049e51
jmp 0x14036d581
mov r13d, dword [r14]
lea rdx, str.http:__www.w3.org_2001_04_xmlencaes128_cbc
mov rcx, rbp
mov dword [r14], edi
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x14036d497
cmp dword [rsi + 0xc], 1
je 0x14036d4cd
mov edi, 0x80049e2e
jmp 0x14036d581
lea rdx, str.http:__www.w3.org_2001_04_xmlencaes192_cbc
mov rcx, rbp
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x14036d4b0
cmp dword [rsi + 0xc], 2
jmp 0x14036d48b
lea rdx, str.http:__www.w3.org_2001_04_xmlencaes256_cbc
mov rcx, rbp
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x14036d575
cmp dword [rsi + 0xc], 3
jmp 0x14036d48b
mov dword [rsp + 0x68], r12d
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r12
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
jne 0x14036d4f8
mov edi, 0x8007000e
jmp 0x14036d581
mov r8d, dword [rsp + 0x68]
mov rdx, r15
mov rcx, rbx
call sub.msvcrt.dll_memcpy
mov rcx, qword [rsi + 0x30]
lea rax, [rsp + 0x68]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor edx, edx
mov qword [rsp + 0x20], rbx
lea r8d, [r9 + 1]
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x14036d544
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x14036d581
mov eax, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x88]
add eax, 0xfffffff0
mov dword [r14], eax
test rcx, rcx
je 0x14036d581
cmp r13d, eax
jae 0x14036d567
mov edi, 0x80049e19
jmp 0x14036d581
mov r8d, eax
lea rdx, [rbx + 0x10]
call sub.msvcrt.dll_memcpy
jmp 0x14036d581
mov edi, 0x80049e5b
jmp 0x14036d581
mov edi, 0x80070057
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x60]
mov eax, edi
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14036eafc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14036eb48
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14036eb40
cmp dword [rcx + 0x3c], edx
jl 0x14036eb40
cmp dword [rcx + 0x3c], 0x10000000
jae 0x14036eb40
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 0x14036eb48
mov rax, rdx
add rsp, 0x18
ret
Function at 0x14075f104
Capabilities:
Encode data using xor

Disassembly:
pop r8
not r9d
jmp 0x14074b2f9
mov word [r11], r8w
jmp 0x14073bf25
lea rsp, [rsp + 8]
jmp 0x140736a0d
jmp 0x14073a9e9
mov dword [r8], r9d
push 0x161aad0f
call fcn.1407446a7
push 0x76bf9230
jge fcn.14074677f
xor dl, r11b
not dword [rsp + 2]
dec word [rsp + 2]
setl byte [rsp + 1]
neg dl
rol byte [rsp + 4], 0xc6
sub qword [rsp], 0x27315f08
rol byte [rsp + 4], 0xa1
xor dl, 5
call fcn.1407217b8
sar byte [rsp], 1
sbb r11, 1
not byte [rsp + 1]
jmp 0x14073d2b2
lea rsp, [rsp + 0x28]
je 0x140736352
mov r10d, 0xe7abd41a
rol r10w, 0x6e
shl r10w, 0x4b
push r8
xor r10b, r10b
adc r10w, 0x4f25
lea r10, [0x140760860]
movzx r8d, byte [rcx]
push 0xfffffffffe089106
inc byte [rsp + 7]
dec word [rsp + 3]
xor r8d, r9d
and r8d, 0xff
push 0x58bd79a3
push 0xffffffffd81d2b32
mov r8d, dword [r10 + r8*4]
sal dword [rsp + 0x13], 0x82
push 0xffffffffe02d61b2
shr r9d, 8
shr word [rsp + 0x10], 0x4b
ror byte [rsp + 0x10], 0xc1
and word [rsp + 0x1e], 0x53b8
xor r9d, r8d
dec byte [rsp + 0xe]
inc rcx
xor r9d, 0x582679bf
dec rsi
lea rsp, [rsp + 0x20]
jne 0x14075f131
mov r8d, 0xba971b3f
jmp 0x140736350
Function at 0x14000f078
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 [0x140019760], eax
call fcn.14000fa48
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 [0x140019760], 0
jne case.default.0x14000f0ce
mov ecx, 1
call fcn.14000fa48
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]
hlt
Function at 0x140002b80
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x140257908]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rbx, rcx
xor esi, esi
mov qword [rbp - 0x30], rsi
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x18], 7
mov word [rbp - 0x30], si
mov rdx, 0xffffffffffffffff
inc rdx
cmp word [rcx + rdx*2], si
jne 0x140002bc5
lea rcx, [rbp - 0x30]
cmp rdx, 7
ja 0x140002bf2
mov qword [rbp - 0x20], rdx
lea rdi, [rdx + rdx]
mov r8, rdi
mov rdx, rbx
call fcn.14019b740
mov word [rbp + rdi - 0x30], si
jmp 0x140002bfb
mov r9, rbx
call fcn.140002990
nop
lea rdx, [rbp - 0x30]
mov r10, qword [rbp - 0x30]
mov rdi, qword [rbp - 0x18]
cmp rdi, 8
cmovae rdx, r10
mov r8, qword [rbp - 0x20]
test r8, r8
je 0x140002c4b
lea rcx, [r8 - 1]
mov rax, 0xffffffffffffffff
cmp rcx, rax
cmovb rax, rcx
lea rcx, [rdx + rax*2]
cmp word [rcx], 0x5c
je 0x140002c43
cmp rcx, rdx
je 0x140002c4b
sub rcx, 2
cmp word [rcx], 0x5c
jne 0x140002c34
sub rcx, rdx
sar rcx, 1
jmp 0x140002c52
mov rcx, 0xffffffffffffffff
cmp ecx, 0xffffffff
je 0x140002d02
movsxd rcx, ecx
cmp rcx, r8
ja 0x140002c79
mov qword [rbp - 0x20], rcx
lea rax, [rbp - 0x30]
cmp rdi, 8
cmovae rax, r10
mov word [rax + rcx*2], si
jmp 0x140002cc8
mov rdx, rcx
sub rdx, r8
mov rax, rdi
sub rax, r8
cmp rdx, rax
ja 0x140002cb7
mov qword [rbp - 0x20], rcx
lea r9, [rbp - 0x30]
cmp rdi, 8
cmovae r9, r10
lea rdi, [r9 + r8*2]
test rdx, rdx
je 0x140002cac
movzx eax, si
mov rcx, rdx
rep stosw word [rdi], ax
lea rax, [r8 + rdx]
mov word [r9 + rax*2], si
jmp 0x140002cc8
mov word [rsp + 0x20], si
mov r9, rdx
lea rcx, [rbp - 0x30]
call fcn.140002fa0
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rcx, qword [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140002d02
call qword [sym.imp.KERNEL32.dll_GetLastError]
add eax, 0xfffffffe
cmp eax, 1
ja 0x140002d02
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rcx, qword [rbp - 0x30]
call fcn.140002b80
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, 1
sete dil
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x140002d50
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002d4b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002d76
call fcn.14000bb2c
movzx eax, dil
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1401943d0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.14019ee9c
int3
Function at 0x1400049c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov dword [rsp + 8], ecx
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x90
xor r15d, r15d
mov dword [rbp + 0x67], r15d
lea r12, vtable.CXRegistry.0
mov qword [rbp - 1], r12
mov qword [rbp + 7], 0xffffffff80000001
lea rdx, str.CLSIDF47C0647_28E5_4578_A851_A4893D7681C6
mov qword [rbp + 0x17], rdx
mov dword [rbp + 0x6f], r15d
lea rax, [rbp + 0x6f]
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0xf]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x20019
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140004bc7
mov dword [rbp + 0x6f], 4
mov dword [rbp + 0x77], 4
lea rax, [rbp + 0x6f]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x67]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x77]
xor r8d, r8d
lea rdx, [0x1402235e0]
mov rcx, qword [rbp + 0xf]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140004bc7
mov r14d, r15d
mov qword [rbp - 0x11], r15
mov esi, r15d
mov qword [rbp - 9], r15
mov ecx, 0x2000
call fcn.14000b7d4
mov rdi, rax
mov qword [rbp - 0x19], rax
test rax, rax
je 0x140004ac0
xor edx, edx
mov r8d, 0x2000
mov rcx, rax
call fcn.14019bdf0
mov r14d, 0x1000
mov qword [rbp - 0x11], r14
mov r8d, r14d
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x140004b15
mov edx, 0x5c
mov rcx, rdi
call fcn.14019b5b4
test rax, rax
je 0x140004af0
cmp word [rax + 2], 0
je 0x140004af0
mov word [rax + 2], r15w
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp word [rdi + rax*2], 0
jne 0x140004b00
cmp rax, r14
cmovb rsi, rax
mov qword [rbp - 9], rsi
test r14, r14
je 0x140004b53
lea rax, [rsi + 0xc]
mov rcx, r14
sub rcx, rsi
dec rcx
mov ebx, VariantTimeToDosDateTime
cmp rax, r14
cmova rbx, rcx
lea r8, [rbx + rbx]
lea rcx, [rdi + rsi*2]
lea rdx, str.Languages_
call fcn.14019b740
add rsi, rbx
mov qword [rbp - 9], rsi
mov word [rdi + rsi*2], r15w
mov eax, dword [rbp + 0x67]
cmp eax, 0x40a
je 0x140004b72
cmp eax, 0x816
jne 0x140004bb9
test r14, r14
je 0x140004bb0
lea rdx, [0x140223618]
jmp 0x140004b7e
test r14, r14
je 0x140004bb0
lea rdx, [0x140223600]
mov rcx, r14
sub rcx, rsi
dec rcx
lea rax, [rsi + 0xa]
mov ebx, 9
cmp rax, r14
cmova rbx, rcx
lea r8, [rbx + rbx]
lea rcx, [rdi + rsi*2]
call fcn.14019b740
add rsi, rbx
mov word [rdi + rsi*2], r15w
mov qword [rbp - 9], rsi
mov rcx, rdi
call fcn.140003b90
nop
test rdi, rdi
je 0x140004bc7
mov rcx, rdi
call fcn.14000b7cc
nop
mov qword [rbp - 1], r12
mov rcx, qword [rbp + 0xf]
test rcx, rcx
je 0x140004bda
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x90
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140004eb0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, dx
jmp method.CDialog.virtual_720
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov qword [rcx + 0xf0], rdx
mov rbp, r8
mov rdi, rdx
mov rbx, rcx
cmp rdx, 0x10000
jae 0x1400151ff
cmp dword [rcx + 0xe8], 0
jne 0x1400151ff
movzx eax, di
mov dword [rcx + 0xe8], eax
call fcn.14001bb2c
mov r8d, 5
mov rdx, rdi
mov rsi, qword [rax + 0x18]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x140015243
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140015243
mov r9, rsi
mov r8, rbp
mov rdx, rax
mov rcx, rbx
call fcn.140015578
jmp 0x140015245
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 0x140005120
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 0x140005198
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140005198
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x140005185
nop
cmp rbx, rcx
jae 0x140005198
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x140005170
cmp rbx, rcx
jae 0x140005198
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
jmp 0x14000519a
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 0x140005390
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov r14, rcx
mov edi, edx
mov ecx, edx
call fcn.14001b1a4
mov rsi, rax
test rax, rax
jne 0x1400053c5
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov eax, edi
mov qword [rsp + 0x30], rbx
shr eax, 4
mov r8d, 6
inc ax
mov qword [rsp + 0x38], rbp
movzx edx, ax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbp, rax
test rax, rax
je 0x1400054af
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1400054af
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x1400054af
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x14000544a
cmp rbx, rcx
jae 0x1400054af
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x140005435
cmp rbx, rcx
jae 0x1400054af
cmp word [rbx], 0
je 0x1400054af
mov rax, qword [r14]
mov esi, 1
movzx edi, word [rbx]
mov ecx, esi
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, edi
or ecx, eax
jge 0x140005478
mov edx, edi
mov rcx, r14
call fcn.1400056a0
movzx r9d, word [rbx]
lea r8, [rbx + 2]
mov rcx, qword [r14]
mov rdx, rdi
call fcn.1401a31e4
xor ecx, ecx
test eax, eax
je 0x14000549b
cmp eax, 0xc
je 0x1400054d6
cmp eax, 0x50
jne 0x1400054d0
mov rax, qword [r14]
cmp edi, dword [rax - 0xc]
jg 0x1400054dc
mov dword [rax - 0x10], edi
mov rax, qword [r14]
mov word [rax + rdi*2], cx
jmp 0x1400054b3
xor ecx, ecx
mov esi, ecx
mov rbx, qword [rsp + 0x30]
mov eax, esi
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
call fcn.140018178
int3
call fcn.14001819c
int3
mov ecx, 0x80070057
call fcn.140004e60
int3
Function at 0x140005550
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov eax, r8d
mov rbp, rdx
shr eax, 4
mov edi, r8d
inc ax
mov rsi, rcx
movzx edx, ax
mov r8d, 6
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov r14, rax
test rax, rax
je 0x14000565d
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14000565d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x14000565d
mov rdx, r14
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x1400055f5
nop word [rax + rax]
cmp rbx, rcx
jae 0x14000565d
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x1400055e0
cmp rbx, rcx
jae 0x14000565d
cmp word [rbx], 0
je 0x14000565d
mov rax, qword [rsi]
mov ecx, 1
movzx edi, word [rbx]
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, edi
or ecx, eax
jge 0x140005621
mov edx, edi
mov rcx, rsi
call fcn.1400056a0
movzx r9d, word [rbx]
lea r8, [rbx + 2]
mov rcx, qword [rsi]
mov rdx, rdi
call fcn.1401a31e4
xor edx, edx
test eax, eax
je 0x140005644
cmp eax, 0xc
je 0x140005680
cmp eax, 0x50
jne 0x14000567a
mov rcx, qword [rsi]
cmp edi, dword [rcx - 0xc]
jg 0x140005686
mov dword [rcx - 0x10], edi
mov eax, 1
mov rcx, qword [rsi]
mov word [rcx + rdi*2], dx
jmp 0x14000565f
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
call fcn.140018178
int3
call fcn.14001819c
int3
mov ecx, 0x80070057
call fcn.140004e60
int3