joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400e96b0
Capabilities:
Write file on windows

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x40
mov rsi, rcx
mov r14, qword [rdx]
add dword [rcx], 2
mov rbx, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, 2
call rbx
lea rdx, [0x140120ad9]
lea r8, str.EnumLiteral
mov rcx, rax
call fcn.1400def90
mov rdi, qword [r14 + 0x18]
movups xmm0, xmmword [r14 + 0x20]
movaps xmmword [rsp + 0x20], xmm0
mov ecx, 2
call rbx
mov ecx, 0xa
mov rdx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
cmp dword [rsi], 0
je 0x1400e972a
xor ebp, ebp
mov ecx, 2
call rbx
mov ecx, 0x20
mov rdx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
inc ebp
cmp ebp, dword [rsi]
jne 0x1400e9710
mov byte [rsi + 4], 0
test rdi, rdi
je 0x1400e9740
mov rcx, rdi
mov rdx, rsi
call fcn.1400e31f0
jmp 0x1400e9765
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rcx, str._null_
mov edx, 6
mov r8d, 1
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov byte [rsi + 4], 1
movaps xmm0, xmmword [rsp + 0x20]
movaps xmmword [rsp + 0x30], xmm0
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.1400e4c40
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, 0x29
mov rdx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
add dword [rsi], 0xfffffffe
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret

Function at 0x1400e97b0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rsi, rcx
mov rbx, qword [rdx]
add dword [rcx], 2
mov r15, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, 2
call r15
lea rdx, [0x140120ad9]
lea r8, str.BracedExpr
mov rcx, rax
call fcn.1400def90
mov r14, qword [rbx + 0x18]
mov rdi, qword [rbx + 0x20]
movzx ebx, byte [rbx + 0x28]
mov ecx, 2
call r15
mov ecx, 0xa
mov rdx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
cmp dword [rsi], 0
je 0x1400e983b
xor ebp, ebp
nop word cs:[rax + rax]
mov ecx, 2
call r15
mov ecx, 0x20
mov rdx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
inc ebp
cmp ebp, dword [rsi]
jne 0x1400e9820
mov byte [rsi + 4], 0
test r14, r14
je 0x1400e9851
mov rcx, r14
mov rdx, rsi
call fcn.1400e31f0
jmp 0x1400e9876
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rcx, str._null_
mov edx, 6
mov r8d, 1
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov byte [rsi + 4], 1
mov rcx, rsi
mov rdx, rdi
call fcn.1400e4a80
mov rcx, rsi
mov edx, ebx
call fcn.1400e69a0
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, 0x29
mov rdx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
add dword [rsi], 0xfffffffe
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x1400e98c0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rsi, rcx
mov rdi, qword [rdx]
add dword [rcx], 2
mov r15, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, 2
call r15
lea rdx, [0x140120ad9]
lea r8, str.BracedRangeExpr
mov rcx, rax
call fcn.1400def90
mov r14, qword [rdi + 0x18]
mov rbx, qword [rdi + 0x20]
mov rdi, qword [rdi + 0x28]
mov ecx, 2
call r15
mov ecx, 0xa
mov rdx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
cmp dword [rsi], 0
je 0x1400e994b
xor ebp, ebp
nop word cs:[rax + rax]
mov ecx, 2
call r15
mov ecx, 0x20
mov rdx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
inc ebp
cmp ebp, dword [rsi]
jne 0x1400e9930
mov byte [rsi + 4], 0
test r14, r14
je 0x1400e9961
mov rcx, r14
mov rdx, rsi
call fcn.1400e31f0
jmp 0x1400e9986
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rcx, str._null_
mov edx, 6
mov r8d, 1
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov byte [rsi + 4], 1
mov rcx, rsi
mov rdx, rbx
call fcn.1400e4a80
mov rcx, rsi
mov rdx, rdi
call fcn.1400e4a80
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, 0x29
mov rdx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
add dword [rsi], 0xfffffffe
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x14000a8f0
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x90
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor r14d, r14d
lea rbx, [rsp + 0x30]
mov rbp, rdx
mov rdi, rcx
mov word [rsp + 0x30], r14w
lea esi, [r14 + 0x28]
cmp byte [rcx], r14b
je 0x14000a9a2
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rdi]
lea rdx, [rsp + 0x20]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rcx, [rsp + 0x24]
mov byte [rsp + 0x21], r14b
call fcn.14000e320
cmp rax, 1
jne 0x14000a9de
mov rcx, rsi
mov rax, rbx
cmp word [rbx], r14w
je 0x14000a980
add rax, 2
dec rcx
cmp word [rax], r14w
jne 0x14000a973
cmp rcx, 1
jb 0x14000a9d8
movzx ecx, word [rsp + 0x24]
inc rdi
add rbx, 2
mov word [rax], cx
dec rsi
mov word [rax + 2], r14w
cmp byte [rdi], r14b
jne 0x14000a940
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14000c100
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call fcn.14000dfdc
int3
call fcn.14000dfdc
int3

Function at 0x14000ab70
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x250
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, r8
lea rax, [rsp + 0x30]
mov rbx, rcx
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor ecx, ecx
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x14000abb5
xor al, al
jmp 0x14000ac02
cmp word [rbx], 0
je 0x14000abcd
nop dword [rax + rax]
add rbx, 2
dec rdi
cmp word [rbx], 0
jne 0x14000abc0
cmp word [rsp + 0x30], 0
je 0x14000abfb
lea rcx, [rsp + 0x30]
sub rcx, rbx
nop dword [rax]
cmp rdi, 1
jb 0x14000ac23
movzx eax, word [rcx + rbx]
dec rdi
mov word [rbx], ax
add rbx, 2
cmp word [rcx + rbx], 0
jne 0x14000abe0
xor eax, eax
mov word [rbx], ax
mov al, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14000c100
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop rdi
ret
call fcn.14000dfdc
int3
Function at 0x14000b3b0
Capabilities:
Write file on windows

Disassembly:
test rdx, rdx
je 0x14000b443
push rbx
push rbp
sub rsp, 0x38
mov qword [rsp + 0x50], rsi
mov rbx, rdx
mov qword [rsp + 0x60], rdi
mov rbp, rcx
mov qword [rsp + 0x30], r14
xor r14d, r14d
nop word [rax + rax]
mov edi, 0x8000
lea rcx, [0x140038d70]
cmp rbx, rdi
cmovbe edi, ebx
movsxd rsi, edi
mov rdx, rsi
call fcn.14000b270
cmp rbp, 0xffffffffffffffff
je 0x14000b429
lea r9, [rsp + 0x58]
mov dword [rsp + 0x58], r14d
mov r8d, edi
mov qword [rsp + 0x20], r14
lea rdx, [0x140038d70]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14000b444
sub rbx, rsi
jne 0x14000b3e0
mov rdi, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x50]
mov r14, qword [rsp + 0x30]
add rsp, 0x38
pop rbp
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error__couldnt_unpack_file_to_target_path.
call fcn.14000b130
int3

Function at 0x14000b460
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x2030
call fcn.14001e380
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x2020], rax
mov r11d, dword [0x14002fd0c]
lea rsi, [0x140031d60]
mov rdi, rcx
test r11d, r11d
jne 0x14000b4d9
mov r8d, 0x1000
lea rdx, str.HOME
lea rcx, [rsp + 0x20]
call fcn.14000ac30
test al, al
je 0x14000b5b9
lea rcx, [rsp + 0x20]
call fcn.140012690
movsxd r11, dword [0x14002fd0c]
mov qword [rsi + r11*8], rax
inc r11d
mov dword [0x14002fd0c], r11d
xor r9d, r9d
test r11d, r11d
jle 0x14000b518
mov r10, rsi
mov r8, qword [r10]
mov rax, rdi
sub r8, rdi
nop dword [rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x14000b504
add rax, 2
test ecx, ecx
jne 0x14000b4f0
test edx, edx
je 0x14000b5b5
inc r9d
add r10, 8
cmp r9d, r11d
jl 0x14000b4e4
or rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rdi + rax*2], 0
jne 0x14000b520
cmp rax, 2
jne 0x14000b537
cmp word [rdi + 2], 0x3a
je 0x14000b5b5
xor edx, edx
mov qword [rsp + 0x2048], rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne bl
test bl, bl
jne 0x14000b562
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14000b589
mov bl, 1
cmp dword [0x14002fd0c], 0x400
jge 0x14000b589
mov rcx, rdi
call fcn.140012690
movsxd rdx, dword [0x14002fd0c]
mov qword [rsi + rdx*8], rax
inc edx
mov dword [0x14002fd0c], edx
movzx eax, bl
mov rbx, qword [rsp + 0x2048]
mov rcx, qword [rsp + 0x2020]
xor rcx, rsp
call fcn.14000c100
mov rsi, qword [rsp + 0x2050]
add rsp, 0x2030
pop rdi
ret
mov al, 1
jmp 0x14000b594
mov ecx, 2
call fcn.14000e4dc
mov rcx, rax
lea r8, str.HOME
lea rdx, str.Error__couldnt_runtime_expand_spec__ls._n
call fcn.140001010
call fcn.14000dfdc
int3
Function at 0x14000b6f0
Capabilities:
Check if file exists
Delete file

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 r14
sub rsp, 0x60
xor edi, edi
mov dword [rax - 0x40], 3
lea rbp, [0x140029738]
mov qword [rax - 0x48], rdi
lea rsi, [0x14002fd30]
mov qword [rax - 0x30], rbp
mov r14d, 0x414
mov qword [rax - 0x38], rsi
lea rcx, [rax - 0x48]
mov word [rax - 0x28], r14w
mov dword [rax - 0x24], edi
mov qword [rax - 0x20], rdi
mov qword [rax - 0x18], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebx, edi
nop
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000b7aa
test al, 0x10
je 0x14000b7aa
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov word [rsp + 0x40], r14w
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
inc ebx
cmp ebx, 0x14
jl 0x14000b750
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
sub rsp, 0x28
mov rcx, qword [0x140031d30]
test rcx, rcx
je 0x14000b80b
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000b7fe
mov rcx, qword [0x140031d30]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [0x140031d30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x14002fd08], 0
je 0x14000b81d
add rsp, 0x28
jmp 0x14000b6f0
add rsp, 0x28
ret
Function at 0x14000b7d0
Capabilities:
Check if file exists
Delete file
Get file attributes
Terminate process

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 r14
sub rsp, 0x60
xor edi, edi
mov dword [rax - 0x40], 3
lea rbp, [0x140029738]
mov qword [rax - 0x48], rdi
lea rsi, [0x14002fd30]
mov qword [rax - 0x30], rbp
mov r14d, 0x414
mov qword [rax - 0x38], rsi
lea rcx, [rax - 0x48]
mov word [rax - 0x28], r14w
mov dword [rax - 0x24], edi
mov qword [rax - 0x20], rdi
mov qword [rax - 0x18], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebx, edi
nop
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000b7aa
test al, 0x10
je 0x14000b7aa
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov word [rsp + 0x40], r14w
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
inc ebx
cmp ebx, 0x14
jl 0x14000b750
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
sub rsp, 0x28
mov rcx, qword [0x140031d30]
test rcx, rcx
je 0x14000b80b
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000b7fe
mov rcx, qword [0x140031d30]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [0x140031d30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x14002fd08], 0
je 0x14000b81d
add rsp, 0x28
jmp 0x14000b6f0
add rsp, 0x28
ret
Function at 0x14000dde8
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14000de57
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000de57
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000de57
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000de57
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000de57
cmp dword [rcx + 0x84], 0xe
jbe 0x14000de57
cmp dword [rcx + 0xf8], 0
je 0x14000de57
mov ecx, ebx
call fcn.14000defc
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14000dcf0
nop
cmp dword [rbp + 0x20], 0
jne 0x14000deb8
call fcn.140012c04
cmp eax, 1
jne 0x14000dea8
xor dl, dl
jmp 0x14000deb2
call fcn.140012bd0
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x14000dec3
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000decc
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000dde8

Function at 0x14000dfd0
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14000de57
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000de57
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000de57
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000de57
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000de57
cmp dword [rcx + 0x84], 0xe
jbe 0x14000de57
cmp dword [rcx + 0xf8], 0
je 0x14000de57
mov ecx, ebx
call fcn.14000defc
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14000dcf0
nop
cmp dword [rbp + 0x20], 0
jne 0x14000deb8
call fcn.140012c04
cmp eax, 1
jne 0x14000dea8
xor dl, dl
jmp 0x14000deb2
call fcn.140012bd0
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x14000dec3
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000decc
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000dde8
Function at 0x1400177cc
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140017853
mov rsi, rbx
cmp word [rax], bp
je 0x140017812
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400177fc
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400177f8
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400129e0
mov rdi, rax
test rax, rax
je 0x140017840
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14000cd50
mov rbp, rdi
xor ecx, ecx
call fcn.140012980
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140019d70
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140019d86
mov al, 1
jmp 0x140019df2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140019d97
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140019df0
mov ecx, dword [rcx + 0x18]
nop
call fcn.140017f70
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140019df0
and qword [rsp + 0x38], 0
lea r8, [rsp + 0x38]
mov r9d, 1
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140019df0
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140019df0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140019df2
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x100001100
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x100090120]
jne 0x1000192d4
rol rcx, 0x10
test cx, 0xffff
jne 0x1000192d0
ret 0
ror rcx, 0x10
jmp 0x1000561c0
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x100090d70]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x100090e68]
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 0x100056245
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, [0x100090d70]
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 0x100056267
mov rax, qword [rsp + 0x88]
mov qword [0x100090e68], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x100090e08], rax
mov rax, qword [0x100090e68]
mov qword [0x100090ce0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x100090df0], rax
mov dword [0x100090cd0], 0xc0000409
mov dword [0x100090cd4], 1
mov rax, qword [0x100090120]
mov qword [rsp + 0x68], rax
mov rax, qword [0x100090128]
mov qword [rsp + 0x70], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x10006bd80]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
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 0x100001f24
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x18], r8d
push rbx
sub rsp, 0x30
mov rax, rcx
mov rcx, qword [0x100092230]
mov rbx, rdx
test rcx, rcx
je 0x100021492
mov rdx, qword [rbx]
lea rax, [rsp + 0x50]
mov r9d, 4
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1000214aa
mov al, 1
jmp 0x100001f71
add rsp, 0x30
pop rbx
ret
mov rcx, rax
call fcn.10000ee18
test al, al
je 0x1000214aa
mov rcx, qword [0x100092230]
jmp 0x100001f44
xor al, al
jmp 0x100001f71

Function at 0x100005700
Capabilities:
Get graphical window text

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x48], rbx
mov rdi, rcx
mov rbx, qword [rcx + 0x1c0]
call qword [sym.imp.USER32.dll_GetFocus]
cmp rax, rbx
jne 0x1000206e0
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
lea rdx, [0x100066a5c]
lea rcx, [rsp + 0x40]
call fcn.100001740
nop
mov edx, LoadRegTypeLib
lea rcx, [rsp + 0x40]
call fcn.1000017d0
mov r9, rax
mov edx, SafeArrayGetDim
mov r8d, LoadRegTypeLib
mov rcx, qword [rdi + 0x1c0]
call qword [sym.imp.USER32.dll_SendMessageW]
or edx, 0xffffffff
lea rcx, [rsp + 0x40]
call fcn.100001848
lea rcx, [rsp + 0x40]
call fcn.100002300
mov r11, qword [rsp + 0x40]
cmp dword [r11 - 8], 0
jne 0x10002075b
lea r9, [0x100066a5c]
xor r8d, r8d
lea edx, [r8 + 0xc]
mov rcx, qword [rdi + 0x1c0]
call qword [sym.imp.USER32.dll_SendMessageW]
nop
lea rcx, [rsp + 0x40]
call fcn.1000012b0
nop
jmp 0x10000572d

Function at 0x100007d24
Capabilities:
Extract resource via kernel32 functions

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
sub rsp, 0x20
mov eax, edx
mov esi, edx
mov r8d, 6
shr eax, 4
mov rbp, rcx
inc ax
movzx edx, ax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
xor ebx, ebx
mov r12, rax
cmp rax, rbx
je 0x100019de1
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
cmp rax, rbx
je 0x100007dc3
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
cmp rax, rbx
je 0x100007dc3
mov rdx, r12
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rdi
and esi, 0xf
jbe 0x100007db2
cmp rdi, r11
jae 0x100007dc3
add esi, 0xffffffff
movzx eax, word [rdi]
lea rdi, [rdi + rax*2 + 2]
jne 0x100007da0
cmp rdi, r11
jae 0x100007dc3
movzx eax, word [rdi]
neg ax
sbb rbx, rbx
and rbx, rdi
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret
xor eax, eax
jmp 0x100007dc6
Function at 0x100009790
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rcx, qword [0x100090148]
test rcx, rcx
je 0x10000ed65
call qword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
test rax, rax
je 0x10000c0d4
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov edx, 0x1000
lea r9d, [rax + 0x40]
xor ecx, ecx
mov r8d, edx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
je 0x100021352
mov eax, dword [rax]
mov rcx, qword [0x100090148]
call qword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
mov rdi, rax
test rax, rax
jne 0x100021359
lea rdi, [rbx + 0xfe0]
mov rcx, qword [0x100090148]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add rbx, 0x20
cmp rbx, rdi
jb 0x10000c116
mov rax, rbx
jmp 0x1000097b9
call fcn.10000ed84
test eax, eax
je 0x100021352
mov rcx, qword [0x100090148]
jmp 0x1000097aa
xor eax, eax
jmp 0x1000097b9
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, rdi
jmp 0x1000097b9

Function at 0x100009d28
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rax, rcx
mov rcx, qword [0x100092230]
xor ebx, ebx
mov rbp, r9
mov rdi, r8
mov rsi, rdx
cmp rcx, rbx
je 0x100021476
mov rdx, qword [rsi]
lea rax, [rsp + 0x68]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov dword [rsp + 0x68], 4
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x100009d96
cmp dword [rsp + 0x30], 4
movzx ebx, bl
mov ecx, 1
cmove ebx, ecx
lea rcx, [0x100090280]
mov r8, rdi
mov rdx, rsi
call fcn.10000a288
mov rsi, qword [rsp + 0x60]
mov byte [rbp], al
mov rbp, qword [rsp + 0x58]
mov al, bl
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
mov rcx, rax
call fcn.10000ee18
cmp al, bl
je 0x100009d96
mov rcx, qword [0x100092230]
jmp 0x100009d5a

Function at 0x10000a200
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, rcx
mov rcx, qword [0x100092230]
mov rbx, r8
mov rdi, rdx
test rcx, rcx
je 0x10000edf3
mov rdx, qword [rdi]
lea rax, [rsp + 0x68]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov dword [rsp + 0x68], 4
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_RegQueryValueExW]
test eax, eax
jne 0x10002146f
cmp dword [rsp + 0x30], 4
jne 0x10002146f
lea rcx, [0x100090280]
mov r8, rbx
mov rdx, rdi
call fcn.10000a288
mov al, 1
jmp 0x10000a274
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
mov rcx, rax
call fcn.10000ee18
test al, al
je 0x10002146f
mov rcx, qword [0x100092230]
jmp 0x10000a223
xor al, al
jmp 0x10000a274