joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002bfa4
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001f7d0
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001f7d0
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14002c0f4
cmp rax, 0xffffffffffffffff
je 0x14002c0f4
xor edi, edi
test rbp, rbp
jle 0x14002c09f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001be98
mov rbx, rax
test rax, rax
jne 0x14002c02c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14002c095
mov edx, 0x8000
mov ecx, r14d
call fcn.14001708c
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001df20
cmp eax, 0xffffffff
je 0x14002c075
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14002c03c
mov edx, r15d
mov ecx, r14d
call fcn.14001708c
jmp 0x14002c095
cmp byte [rsi + 0x38], dil
je 0x14002c08c
cmp dword [rsi + 0x34], 5
jne 0x14002c08c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14002c095
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001bf10
jmp 0x14002c108
jns 0x14002c108
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001f7d0
cmp rax, 0xffffffffffffffff
jne 0x14002c0c0
cmp byte [rsi + 0x30], dil
je 0x14002c108
mov edi, dword [rsi + 0x2c]
jmp 0x14002c108
mov ecx, r14d
call fcn.140022e60
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14002c108
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x14002c108
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14002c101
mov eax, dword [rsi + 0x2c]
jmp 0x14002c106
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001f7d0
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x14002c970
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14002c998
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14002c998
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14000d984
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 [0x140017850], eax
call fcn.14000d6d0
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 [0x140017850], 0
jne case.default.0x14000d9da
mov ecx, 1
call fcn.14000d6d0
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 0x100403a20
Capabilities:
Encode data using xor

Disassembly:
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
Function at 0x140001000
Capabilities:
Get common file path

Disassembly:
mov byte [rsp + 8], cl
sub rsp, 0x48
lea r8, [rsp + 0x20]
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.USERENV.dll_GetUserProfileDirectoryW]
mov dword [rsp + 0x20], eax
mov byte [rsp + 0x50], 0x48
call fcn.140004100
movsx eax, word [section..data]
add rsp, 0x48
ret
Function at 0x140004100
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x48
lea r8, [rsp + 0x28]
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.USERENV.dll_GetUserProfileDirectoryW]
mov dword [rsp + 0x24], eax
mov dword [rsp + 0x20], 0x8bae
movsx eax, word [section..data]
add rsp, 0x48
ret

Function at 0x1400047f0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x18], r8d
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r12d, r8d
mov ebx, edx
mov r15d, ecx
mov ecx, 8
call fcn.140005d30
nop
cmp dword [0x14000f2e8], 1
je 0x14000479c
mov dword [0x14000f2e4], 1
mov byte [0x14000f2e0], r12b
test ebx, ebx
jne 0x140004788
mov rcx, qword [0x1400103b8]
call sub.KERNEL32.dll_DecodePointer
mov rsi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140004775
mov rcx, qword [0x1400103b0]
call sub.KERNEL32.dll_DecodePointer
mov rdi, rax
mov qword [rsp + 0x20], rax
mov r14, rsi
mov qword [rsp + 0x28], rsi
mov r13, rax
mov qword [rsp + 0x38], rax
sub rdi, 8
mov qword [rsp + 0x20], rdi
cmp rdi, rsi
jb 0x140004714
call fcn.14000568c
cmp qword [rdi], rax
jne 0x140004714
jmp 0x1400046fa
cmp rdi, rsi
jb 0x140004775
mov rcx, qword [rdi]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
call fcn.14000568c
mov qword [rdi], rax
call rbx
mov rcx, qword [0x1400103b8]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
mov rcx, qword [0x1400103b0]
call sub.KERNEL32.dll_DecodePointer
cmp r14, rbx
jne 0x140004753
cmp r13, rax
je 0x140004773
mov r14, rbx
mov qword [rsp + 0x28], rbx
mov rsi, rbx
mov qword [rsp + 0x30], rbx
mov r13, rax
mov qword [rsp + 0x38], rax
mov rdi, rax
mov qword [rsp + 0x20], rax
jmp 0x1400046fa
lea rdx, [0x14000a660]
lea rcx, [0x14000a658]
call fcn.140004544
lea rdx, [0x14000a670]
lea rcx, [0x14000a668]
call fcn.140004544
nop
test r12d, r12d
je 0x1400047ab
mov ecx, 8
call fcn.140005c30
test r12d, r12d
jne 0x1400047d6
mov dword [0x14000f2e8], 1
lea ecx, [r12 + 8]
call fcn.140005c30
mov ecx, r15d
call fcn.1400044d8
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
xor r8d, r8d
xor edx, edx
jmp 0x140004664

Function at 0x1400047fc
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x140004664
Function at 0x140006520
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.14000568c
xor ebx, ebx
mov rdi, rax
cmp qword [0x14000fab8], rbx
jne 0x140006626
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x1400066fb
lea rdx, [0x14000ae38]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400066fb
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x14000ae28]
mov rcx, rsi
mov qword [0x14000fab8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x14000fac0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
mov qword [0x14000fac8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x14000fad8], rax
test rax, rax
je 0x14000661d
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x14000fad0], rax
jmp 0x14000662d
mov rax, qword [0x14000fad0]
jmp 0x140006634
mov rax, qword [0x14000fad0]
mov r11, qword [0x14000fad8]
cmp rax, rdi
je 0x14000669c
cmp r11, rdi
je 0x14000669c
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x14000fad8]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x14000669c
test rax, rax
je 0x14000669c
call rsi
test rax, rax
je 0x140006696
lea rcx, [rsp + 0x88]
mov r9d, 0xc
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x140006696
test byte [rsp + 0x38], 1
jne 0x14000669c
bts ebp, 0x15
jmp 0x1400066da
mov rcx, qword [0x14000fac0]
cmp rcx, rdi
je 0x1400066da
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x1400066da
call rax
mov rbx, rax
test rax, rax
je 0x1400066da
mov rcx, qword [0x14000fac8]
cmp rcx, rdi
je 0x1400066da
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x1400066da
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x14000fab8]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x1400066fb
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x1400066fd
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x140009167
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14000ece0]
jne 0x140007f6a
rol rcx, 0x10
test cx, 0xffff
jne 0x140007f66
repz ret
ror rcx, 0x10
jmp 0x1400090c0
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14000fbe0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x14000fcd8]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140009145
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x14000fbe0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x140009167
mov rax, qword [rsp + 0x88]
mov qword [0x14000fcd8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14000fc78], rax
mov rax, qword [0x14000fcd8]
mov qword [0x14000fb50], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14000fc60], rax
mov dword [0x14000fb40], 0xc0000409
mov dword [0x14000fb44], 1
mov rax, qword [0x14000ece0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14000ece8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x14000fbd8], eax
mov ecx, 1
call fcn.140007d4c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14000b848]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14000fbd8], 0
jne 0x1400091ee
mov ecx, 1
call fcn.140007d4c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x140007c80
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file
Terminate process

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x70
movaps xmmword [rsp + 0x60], xmm6
mov rcx, qword [0x14002d0a0]
test rcx, rcx
je 0x140007cbb
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140007ce0
mov rcx, qword [0x14002d0a0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x1400300e0], 0
jne 0x140007cf8
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x70
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rcx, qword [0x14002d0a0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x140007cae
mov edx, 0x414
lea r12, [rsp + 0x20]
lea rsi, [0x14001d392]
mov qword [rsp + 0x20], 0
lea rdi, [0x140030100]
movq xmm0, rsi
mov rcx, r12
mov dword [rsp + 0x28], 3
movq xmm6, rdi
mov word [rsp + 0x40], dx
mov rbp, qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebx, 0x14
punpcklqdq xmm6, xmm0
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], rsi
movaps xmmword [rsp + 0x30], xmm6
call rbp
mov r13, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov r14, qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140007dc4
test al, 0x10
je 0x140007cc4
mov ecx, 0x64
call r14
mov eax, 0x414
mov qword [rsp + 0x50], rsi
mov rcx, r12
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 3
mov word [rsp + 0x40], ax
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x48], 0
movaps xmmword [rsp + 0x30], xmm6
call rbp
sub ebx, 1
je 0x140007cc4
mov rcx, rdi
call r13
cmp eax, 0xffffffff
jne 0x140007d70
jmp 0x140007cc4

Function at 0x14000e430
Capabilities:
Create directory

Disassembly:
push rdi
mov eax, 0x2020
push rsi
push rbx
call fcn.1400155f0
sub rsp, rax
mov eax, dword [0x140034100]
mov rsi, rcx
test eax, eax
je 0x14000e4d0
xor ebx, ebx
lea rdi, [0x140032100]
test eax, eax
jg 0x14000e46c
jmp 0x14000e480
add rbx, 1
cmp dword [0x140034100], ebx
jle 0x14000e480
mov rdx, qword [rdi + rbx*8]
mov rcx, rsi
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x14000e460
jmp 0x14000e4b7
mov rcx, rsi
call sub.msvcrt.dll_wcslen
cmp rax, 2
jne 0x14000e495
cmp word [rsi + 2], 0x3a
je 0x14000e4b7
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x14000e520
movsxd rbx, dword [0x140034100]
cmp ebx, 0x3ff
jle 0x14000e538
mov eax, 1
add rsp, 0x2020
pop rbx
pop rsi
pop rdi
ret
lea rdi, [rsp + 0x20]
lea rbx, str.HOME
mov r8d, 0x1000
mov rdx, rbx
mov rcx, rdi
call fcn.140007540
test al, al
je 0x14000e55a
movsxd rbx, dword [0x140034100]
mov rcx, rdi
lea rdi, [0x140032100]
call sub.msvcrt.dll__wcsdup
mov qword [rdi + rbx*8], rax
mov eax, dword [0x140034100]
add eax, 1
mov dword [0x140034100], eax
jmp 0x14000e451
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x14000e4a4
xor eax, eax
jmp 0x14000e4bc
mov rcx, rsi
call sub.msvcrt.dll__wcsdup
add dword [0x140034100], 1
mov rdx, rax
lea rax, [0x140032100]
mov qword [rax + rbx*8], rdx
jmp 0x14000e4b7
mov rcx, rbx
call fcn.140007bc0
nop
nop word cs:[rax + rax]
nop
Function at 0x1400142d0
Capabilities:
Write file on windows

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

Function at 0x140014fa2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140034228]
test eax, eax
je 0x14001503a
lea rax, [0x140034200]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140034230]
mov qword [rbp - 8], rax
jmp 0x14001501e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140015012
cmp qword [rbp - 0x10], 0
je 0x140015012
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140014fd8
lea rax, [0x140034200]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14001503b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140015140
Capabilities:
Parse pe header

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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14001523a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140015231
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140015231
mov rax, qword [rbp - 8]
jmp 0x14001524f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140015204
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x10001947c
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rdi
sub rsp, 0x38
xor ebx, ebx
mov rdi, rcx
lea rdx, [rsp + 0x58]
mov dword [rcx], ebx
xor ecx, ecx
mov qword [rsp + 0x68], rbx
mov dword [rsp + 0x50], ebx
call fcn.1000316e4
cmp eax, ebx
je 0x1000194ad
mov ebx, 0x65b
jmp 0x10001954b
mov eax, 1
cmp dword [rsp + 0x58], eax
jne 0x1000194bf
mov dword [rdi], eax
jmp 0x10001954b
cmp dword [rsp + 0x58], 2
jne 0x10001954b
mov dword [rdi], eax
lea rax, [rsp + 0x68]
lea rdx, [0x100002520]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x10001954b
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x60]
lea rdx, [0x1000025a0]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x60], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [rsp + 0x50]
cmp eax, ebx
cmovne ecx, ebx
mov dword [rsp + 0x50], ecx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x50], ebx
je 0x10001954b
mov dword [rdi], ebx
mov eax, ebx
add rsp, 0x38
pop rdi
pop rbx
ret
Function at 0x10001987c
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x120
xor r12d, r12d
mov ebp, ecx
lea rcx, [rax - 0x98]
lea r8d, [r12 + 0x70]
mov rbx, r12
xor edx, edx
mov dword [rax + 0x10], r12d
mov rdi, r12
mov qword [rax + 0x18], r12
mov qword [rax + 0x20], rbx
call sub.msvcrt.dll_memset
lea esi, [r12 + 0x50]
lea rcx, [rsp + 0x60]
mov r8, rsi
xor edx, edx
call sub.msvcrt.dll_memset
lea rax, [0x100019854]
mov dword [rsp + 0x60], esi
mov qword [rsp + 0x68], rax
mov rax, qword [0x100083fd8]
lea rsi, [0x1000025d8]
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x64], 3
mov dword [rsp + 0x70], r12d
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x74], r12d
mov qword [rsp + 0x80], r12
mov qword [rsp + 0xa8], r12
mov qword [rsp + 0x88], r12
mov qword [rsp + 0x98], r12
mov qword [rsp + 0xa0], rsi
call qword [sym.imp.USER32.dll_RegisterClassExW]
cmp ax, r12w
je 0x100019a9c
mov rax, qword [0x100083fd8]
mov qword [rsp + 0x58], r12
lea r8, [0x1000025f0]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r12
mov eax, 0x80000000
mov dword [rsp + 0x38], r12d
mov dword [rsp + 0x30], r12d
mov dword [rsp + 0x28], eax
mov r9d, 0x80000000
mov rdx, rsi
mov ecx, 0x80
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_CreateWindowExW]
cmp rax, r12
mov rsi, rax
je 0x100019a9c
mov edx, ebp
mov rcx, rax
call qword [sym.imp.USER32.dll_ShowWindow]
lea r11, [rsp + 0x160]
cmp r11, r12
je 0x1000199d4
lea rdx, [rsp + 0x168]
lea rcx, [rsp + 0x160]
call fcn.10001955c
mov rdi, qword [rsp + 0x160]
mov rbx, qword [rsp + 0x168]
jmp 0x1000199d9
mov eax, 0x57
cmp eax, r12d
mov dword [rsp + 0x158], eax
jne 0x100019aa9
mov qword [rsp + 0xb8], rsi
lea rax, [0x100002610]
or esi, 0xffffffff
mov ecx, esi
mov dword [rsp + 0xb0], 0x70
mov dword [rsp + 0xb4], 0x4040
mov qword [rsp + 0xc0], rax
mov qword [rsp + 0xc8], rdi
mov qword [rsp + 0xd0], rbx
mov dword [rsp + 0xe0], 5
call qword [sym.imp.USER32.dll_AllowSetForegroundWindow]
lea rcx, [rsp + 0xb0]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
cmp eax, r12d
je 0x100019a9c
mov rcx, qword [rsp + 0x118]
cmp rcx, r12
jne 0x100019a69
mov dword [rsp + 0x158], 0x65b
jmp 0x100019abc
mov edx, esi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, r12d
mov dword [rsp + 0x158], eax
je 0x100019a81
cmp eax, esi
jmp 0x100019a9a
mov rcx, qword [rsp + 0x118]
lea rdx, [rsp + 0x158]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp eax, r12d
jne 0x100019aa9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x158], eax
mov rcx, qword [rsp + 0x118]
cmp rcx, r12
je 0x100019abc
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp rdi, r12
je 0x100019aca
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
cmp rbx, r12
je 0x100019ad8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [rsp + 0x158]
add rsp, 0x120
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x10001be60
Capabilities:
Identify system language via api

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x50], rsi
mov esi, r8d
movzx ebx, dx
mov ebp, ecx
xor edi, edi
cmp dx, di
jne 0x10001bfba
cmp dword [0x1000844c8], edi
je 0x10001c079
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx ebx, ax
movzx ecx, ax
call fcn.10002551c
cmp eax, edi
je 0x10001beca
movzx r8d, bx
lea rdx, [0x100003d30]
lea ecx, [rdi + 1]
call fcn.10001e4c4
jmp 0x10001c079
cmp esi, edi
je 0x10001bee8
movzx r8d, bx
lea rdx, [0x100003d70]
mov ecx, 1
call fcn.10001e4c4
jmp 0x10001c079
movzx r8d, bx
lea rdx, [0x100003df0]
mov ecx, 3
call fcn.10001e4c4
cmp ebp, edi
jne 0x10001bfb0
lea rcx, [0x100083100]
mov rax, qword [0x100083100]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x58], rax
lea rcx, [0x100083100]
mov rax, qword [0x100083100]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x58]
mov ecx, 0x1388
call fcn.100031338
lea rdx, [rsp + 0x20]
mov ecx, 0x13c7
call fcn.100031338
mov r9d, 0x30
mov r8, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x20]
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
nop
lea rdx, [rbx - 0x18]
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
cmp eax, edi
jg 0x10001bf91
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
cmp eax, edi
jg 0x10001bfb0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov edi, 0x717
jmp 0x10001c079
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
cmp ax, bx
je 0x10001c079
mov edx, 0x10
lea r8d, [rdx - 0xf]
movzx ecx, bx
call fcn.1000311f4
cmp eax, edi
jne 0x10001c064
movzx esi, bx
mov r8d, esi
lea rdx, [0x100003e68]
mov ecx, 1
call fcn.10001e4c4
cmp dword [0x1000844c8], edi
je 0x10001c079
movzx ecx, bx
call fcn.10002581c
cmp eax, edi
je 0x10001c04e
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
cmp ax, bx
jne 0x10001c02e
mov r8d, esi
lea rdx, [0x100003ea0]
mov ecx, 1
call fcn.10001e4c4
jmp 0x10001c079
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx r9d, ax
mov r8d, esi
lea rdx, [0x100003f20]
mov ecx, 1
call fcn.10001e4c4
jmp 0x10001c079
mov r8d, esi
lea rdx, [0x100004040]
mov ecx, 2
call fcn.10001e4c4
jmp 0x10001c079
movzx r8d, bx
lea rdx, [0x1000040d0]
mov ecx, 2
call fcn.10001e4c4
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret