joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002890
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x70
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rdi, rcx
mov qword [rsp + 0x20], rcx
xor r12d, r12d
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x20]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov r15, rax
test rax, rax
jne 0x1400028ec
mov qword [rdi], r12
mov qword [rdi + 8], r12
mov qword [rdi + 0x10], r12
jmp 0x1400029e2
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x28], xmm0
mov rbp, r12
mov qword [rsp + 0x38], r12
mov esi, 1
mov rbx, qword [rsp + 0x30]
cmp dword [rsp + 0x20], esi
jle 0x1400029c9
lea r14, [rax + 8]
nop word [rax + rax]
mov rdx, qword [r14]
lea rcx, [rsp + 0x48]
call fcn.140002a20
nop
cmp rbx, rbp
je 0x140002966
mov qword [rbx], r12
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], r12
movups xmm0, xmmword [rax]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbx + 0x10], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
add rbx, 0x20
mov qword [rsp + 0x30], rbx
jmp 0x140002980
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.1400023f0
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x1400029b9
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400029b4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002a0b
call fcn.1400059ec
inc esi
add r14, 8
cmp esi, dword [rsp + 0x20]
jl 0x140002920
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rax, qword [rsp + 0x28]
mov qword [rdi], rax
mov qword [rdi + 8], rbx
mov qword [rdi + 0x10], rbp
mov rax, rdi
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140005a90
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
int3

Function at 0x140003180
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
lea rax, [rsp + 0x58]
mov dword [rsp + 0x58], 4
mov qword [rsp + 0x30], rax
lea r8, str.AppsUseLightTheme
xor ebx, ebx
lea rax, [rsp + 0x60]
mov rdi, rcx
mov qword [rsp + 0x28], rax
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionThemesPersonalize
mov qword [rsp + 0x20], rbx
mov rcx, 0xffffffff80000001
lea r9d, [rbx + 0x10]
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x1400031f3
cmp dword [rsp + 0x60], ebx
lea r9d, [rax + 4]
lea r8, [rsp + 0x68]
mov rcx, rdi
sete bl
lea edx, [rax + 0x14]
mov dword [rsp + 0x68], ebx
call qword [sym.imp.dwmapi.dll_DwmSetWindowAttribute]
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x1400066d8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140006722
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140006722
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140006722
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140006722
cmp dword [rcx + 0x84], 0xe
jbe 0x140006722
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140006724
xor al, al
add rsp, 0x28
ret
Function at 0x140001530
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov qword [rsp + 0x20], 0
mov rax, qword [rsp + 0x40]
movsxd rax, dword [rax + 4]
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rsp + 0x20]
call sub.ntoskrnl.exe_PsGetProcessSectionBaseAddress
mov rcx, rax
call fcn.140001810
mov qword [0x140004038], rax
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov qword [rsp + 0x28], 1
mov r8d, 8
lea rdx, [rsp + 0x28]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 8]
call fcn.140002b40
xor eax, eax
add rsp, 0x38
ret

Function at 0x140001760
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
cmp dword [rax], 0x7f1e8b
je 0x140001780
mov eax, 0xc0000001
jmp 0x140001806
mov rax, qword [rsp + 0x40]
cmp dword [rax + 4], 0
jne 0x140001792
mov eax, 0xc0000001
jmp 0x140001806
mov qword [rsp + 0x20], 0
mov rax, qword [rsp + 0x40]
movsxd rax, dword [rax + 4]
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
nop
cmp qword [rsp + 0x20], 0
jne 0x1400017c2
mov eax, 0xc0000001
jmp 0x140001806
mov rcx, qword [rsp + 0x20]
call sub.ntoskrnl.exe_PsGetProcessSectionBaseAddress
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x1400017e0
mov eax, 0xc0000001
jmp 0x140001806
mov r8d, 8
lea rdx, [rsp + 0x28]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 8]
call fcn.140002b40
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
xor eax, eax
add rsp, 0x38
ret
Function at 0x1400020e0
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x70]
cmp dword [rax], 0x7f1e8b
je 0x140002100
mov eax, 0xc0000001
jmp 0x140002263
mov rax, qword [rsp + 0x70]
cmp dword [rax + 4], 0
jne 0x140002115
mov eax, 0xc0000001
jmp 0x140002263
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0x70]
movsxd rax, dword [rax + 4]
lea rdx, [rsp + 0x28]
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
nop
cmp qword [rsp + 0x28], 0
jne 0x140002148
mov eax, 0xc0000001
jmp 0x140002263
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x70]
movzx eax, byte [rax + 0x21]
test eax, eax
je 0x14000217f
mov rax, qword [rsp + 0x70]
mov rdx, qword [rax + 8]
mov rcx, qword [0x140004038]
call fcn.140001d40
mov qword [rsp + 0x30], rax
jmp 0x1400021d7
cmp qword [rsp + 0x28], 0
jne 0x14000218e
xor eax, eax
jmp 0x140002263
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x1400021bf
call fcn.140002670
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov rax, qword [rcx + rax]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x70]
mov rdx, qword [rax + 8]
mov rcx, qword [rsp + 0x38]
call fcn.140002310
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x1400021e6
mov eax, 0xc0000001
jmp 0x140002263
mov rax, qword [rsp + 0x30]
and rax, 0xfff
mov ecx, 0x1000
sub rcx, rax
mov rax, rcx
mov rdx, qword [rsp + 0x50]
mov ecx, eax
call fcn.1400015b0
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], 0
mov rax, qword [rsp + 0x70]
movzx eax, byte [rax + 0x20]
test eax, eax
je 0x140002243
lea r9, [rsp + 0x40]
mov r8, qword [rsp + 0x48]
mov rax, qword [rsp + 0x70]
mov rdx, qword [rax + 0x10]
mov rcx, qword [rsp + 0x30]
call fcn.140002020
nop
jmp 0x140002261
lea r9, [rsp + 0x40]
mov r8, qword [rsp + 0x48]
mov rax, qword [rsp + 0x70]
mov rdx, qword [rax + 0x10]
mov rcx, qword [rsp + 0x30]
call fcn.140001c00
nop
xor eax, eax
add rsp, 0x68
ret
Function at 0x140002080
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
mov eax, dword [rcx + 0x48]
lea rbx, [rcx + 0x28]
mov rsi, qword [rcx]
lea r11, [rcx + 0x28]
add rbx, rax
mov rdi, rcx
movabs rbp, 0x9e3779b185ebca87
movabs r15, 0x27d4eb2f165667c5
movabs r14, 0xc2b2ae3d27d4eb4f
movabs r12, 0x7a1435883d4d519d
cmp rsi, 0x20
jb 0x14000217b
mov rcx, qword [rcx + 8]
mov r8, qword [rdi + 0x18]
mov r9, qword [rdi + 0x20]
mov rax, r8
mov rdx, qword [rdi + 0x10]
mov r10, r9
rol r10, 0x12
rol rax, 0xc
add r10, rax
mov rax, rdx
rol rax, 7
add r10, rax
mov rax, rcx
rol rax, 1
add r10, rax
movabs rax, 0x85ebca77c2b2ae63
imul rcx, r14
imul rdx, r14
imul r8, r14
imul r9, r14
rol rcx, 0x1f
imul rcx, rbp
rol rdx, 0x1f
xor r10, rcx
rol r8, 0x1f
imul r10, rbp
imul rdx, rbp
imul r8, rbp
sub r10, r12
rol r9, 0x1f
xor r10, rdx
imul r10, rbp
imul r9, rbp
sub r10, r12
xor r10, r8
imul r10, rbp
sub r10, r12
xor r10, r9
imul r10, rbp
add rax, r10
add rax, rsi
jmp 0x140002183
lea rax, [rsi + r15]
add rax, qword [rcx + 0x18]
lea rdx, [rdi + 0x30]
cmp rdx, rbx
ja 0x1400021ba
nop dword [rax]
mov rcx, qword [r11]
add rdx, 8
imul rcx, r14
add r11, 8
rol rcx, 0x1f
imul rcx, rbp
xor rax, rcx
rol rax, 0x1b
imul rax, rbp
sub rax, r12
cmp rdx, rbx
jbe 0x140002190
lea rdx, [r11 + 4]
movabs r8, 0x165667b19e3779f9
cmp rdx, rbx
ja 0x1400021e5
mov ecx, dword [r11]
mov r11, rdx
imul rcx, rbp
xor rax, rcx
rol rax, 0x17
imul rax, r14
add rax, r8
cmp r11, rbx
jae 0x14000220b
nop word [rax + rax]
movzx ecx, byte [r11]
inc r11
imul rcx, r15
xor rax, rcx
rol rax, 0xb
imul rax, rbp
cmp r11, rbx
jb 0x1400021f0
mov rbx, qword [rsp + 0x20]
mov rcx, rax
mov rbp, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
shr rcx, 0x21
xor rcx, rax
imul rcx, r14
mov rdx, rcx
shr rdx, 0x1d
xor rdx, rcx
imul rdx, r8
mov rax, rdx
shr rax, 0x20
xor rax, rdx
pop r15
pop r14
pop r12
ret

Function at 0x14000a2e0
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 [0x140034008]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx eax, byte [rcx]
lea rbx, [rsp + 0x30]
xor r14d, r14d
mov rbp, rdx
mov word [rsp + 0x30], r14w
mov rsi, rcx
lea edi, [r14 + 0x28]
test al, al
je 0x14000a391
nop word [rax + rax]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], r14b
lea rcx, [rsp + 0x24]
call fcn.1400105b8
cmp rax, 1
jne 0x14000a3c7
mov rcx, rdi
mov rax, rbx
cmp word [rbx], r14w
je 0x14000a36d
add rax, 2
dec rcx
cmp word [rax], r14w
jne 0x14000a360
cmp rcx, 1
jb 0x14000a3c7
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], r14w
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x14000a330
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14000c130
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.14001027c
int3
Function at 0x14000a450
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x140034008]
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 0x14000a495
xor al, al
jmp 0x14000a4e2
cmp word [rbx], 0
je 0x14000a4ad
nop dword [rax + rax]
add rbx, 2
dec rdi
cmp word [rbx], 0
jne 0x14000a4a0
cmp word [rsp + 0x30], 0
je 0x14000a4db
lea rcx, [rsp + 0x30]
sub rcx, rbx
nop dword [rax]
cmp rdi, 1
jb 0x14000a503
movzx eax, word [rcx + rbx]
dec rdi
mov word [rbx], ax
add rbx, 2
cmp word [rcx + rbx], 0
jne 0x14000a4c0
xor eax, eax
mov word [rbx], ax
mov al, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14000c130
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop rdi
ret
call fcn.14001027c
int3
Function at 0x14000ad60
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x2030
call fcn.140024ae0
sub rsp, rax
mov rax, qword [0x140034008]
xor rax, rsp
mov qword [rsp + 0x2020], rax
mov r11d, dword [0x140035d90]
lea rsi, [0x14004add0]
mov rdi, rcx
test r11d, r11d
jne 0x14000add9
mov r8d, 0x1000
lea rdx, str.HOME
lea rcx, [rsp + 0x20]
call fcn.14000a510
test al, al
je 0x14000aeb9
lea rcx, [rsp + 0x20]
call fcn.140018248
movsxd r11, dword [0x140035d90]
mov qword [rsi + r11*8], rax
inc r11d
mov dword [0x140035d90], r11d
xor r9d, r9d
test r11d, r11d
jle 0x14000ae14
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 0x14000ae04
add rax, 2
test ecx, ecx
jne 0x14000adf0
test edx, edx
je 0x14000ae37
inc r9d
add r10, 8
cmp r9d, r11d
jl 0x14000ade4
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rdi + rax*2], 0
jne 0x14000ae20
cmp rax, 2
jne 0x14000ae3b
cmp word [rdi + 2], 0x3a
jne 0x14000ae3b
mov al, 1
jmp 0x14000ae98
xor edx, edx
mov qword [rsp + 0x2048], rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne bl
test eax, eax
jne 0x14000ae66
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14000ae8d
mov bl, 1
cmp dword [0x140035d90], 0x400
jge 0x14000ae8d
mov rcx, rdi
call fcn.140018248
movsxd rdx, dword [0x140035d90]
mov qword [rsi + rdx*8], rax
inc edx
mov dword [0x140035d90], edx
movzx eax, bl
mov rbx, qword [rsp + 0x2048]
mov rcx, qword [rsp + 0x2020]
xor rcx, rsp
call fcn.14000c130
mov rsi, qword [rsp + 0x2050]
add rsp, 0x2030
pop rdi
ret
lea rcx, str.HOME
call fcn.14000ac00
int3
Function at 0x14000afe0
Capabilities:
Check if file exists
Delete file
Get file attributes
Terminate process

Disassembly:
sub rsp, 0x68
mov rcx, qword [0x140035d98]
test rcx, rcx
je 0x14000b01b
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000b00e
mov rcx, qword [0x140035d98]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [0x140035d98]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x14004edd8], 0
je 0x14000b10e
mov qword [rsp + 0x70], rbx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x78], rbp
lea rbp, [0x14002ee08]
mov qword [rsp + 0x80], rsi
lea rsi, [0x1400485d0]
mov qword [rsp + 0x88], rdi
xor edi, edi
mov qword [rsp + 0x60], r14
mov r14d, 0x414
mov word [rsp + 0x40], r14w
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebx, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000b0ef
test al, 0x10
je 0x14000b0ef
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 0x14000b095
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
mov r14, qword [rsp + 0x60]
add rsp, 0x68
ret
Function at 0x14000ca04
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000ca4e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000ca4e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000ca4e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000ca4e
cmp dword [rcx + 0x84], 0xe
jbe 0x14000ca4e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000ca50
xor al, al
add rsp, 0x28
ret

Function at 0x140010270
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 0x1400100db
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400100db
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400100db
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400100db
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400100db
cmp dword [rcx + 0x84], 0xe
jbe 0x1400100db
cmp dword [rcx + 0xf8], 0
je 0x1400100db
mov ecx, ebx
call fcn.14001018c
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.14000ff68
nop
cmp dword [rbp + 0x20], 0
je 0x140010129
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140010134
int3
xor r8d, r8d
xor edx, edx
jmp 0x14001006c
Function at 0x14001dd48
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 0x14001ddcf
mov rsi, rbx
cmp word [rax], bp
je 0x14001dd8e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14001dd78
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14001dd74
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14001adc0
mov rdi, rax
test rax, rax
je 0x14001ddbc
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14000e050
mov rbp, rdi
xor ecx, ecx
call fcn.140019a34
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 0x140020494
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400204aa
mov al, 1
jmp 0x14002050a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400204bb
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140020508
mov ecx, dword [rcx + 0x18]
nop
call fcn.14001e4ec
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140020508
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140020508
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140020508
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14002050a
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x1400249f0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140024a18
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140024a18
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140003040
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 0x1400030b8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x1400030b8
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x1400030a5
nop
cmp rbx, rcx
jae 0x1400030b8
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x140003090
cmp rbx, rcx
jae 0x1400030b8
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
jmp 0x1400030ba
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 0x1400030d0
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, 0x40
mov eax, r8d
mov rsi, rdx
shr eax, 4
mov edi, r8d
inc ax
mov r14, rcx
movzx edx, ax
mov r8d, 6
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbp, rax
test rax, rax
je 0x140003223
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x140003131
xor edi, edi
mov ebx, edi
jmp 0x140003189
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
jne 0x140003148
xor edi, edi
mov ebx, edi
jmp 0x140003189
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x140003175
nop
cmp rbx, rcx
jae 0x14000317a
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x140003160
cmp rbx, rcx
jb 0x140003180
xor edi, edi
mov ebx, edi
jmp 0x140003189
xor edi, edi
cmp word [rbx], di
cmove rbx, rdi
test rbx, rbx
je 0x140003223
movzx r9d, word [rbx]
lea r8, [rbx + 2]
mov qword [rsp + 0x38], rdi
xor edx, edx
mov qword [rsp + 0x30], rdi
mov ecx, 3
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rsi, eax
test eax, eax
js 0x140003240
mov rcx, qword [r14]
mov edx, 1
sub edx, dword [rcx - 8]
mov ecx, dword [rcx - 0xc]
sub ecx, esi
or edx, ecx
jge 0x1400031df
mov edx, esi
mov rcx, r14
call fcn.1400036c0
mov rdx, qword [r14]
lea r8, [rbx + 2]
movzx r9d, word [rbx]
mov ecx, 3
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rdx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov rcx, qword [r14]
cmp esi, dword [rcx - 0xc]
jg 0x140003240
mov dword [rcx - 0x10], esi
mov eax, 1
mov rcx, qword [r14]
mov byte [rsi + rcx], 0
jmp 0x140003225
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
mov ecx, 0x80070057
call fcn.140002be0
int3
Function at 0x140003250
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov ebx, edx
mov ecx, edx
call fcn.14001e898
test rax, rax
jne 0x140003276
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov r8d, ebx
mov rdx, rax
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.1400030d0

Function at 0x140003dc0
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 0x14001a733
cmp dword [rcx + 0xe8], 0
jne 0x14001a733
movzx eax, dx
mov dword [rcx + 0xe8], eax
call fcn.1400234f8
mov r8d, 5
mov rdx, rdi
mov rsi, qword [rax + 0x18]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceA]
test rax, rax
je 0x14001a777
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14001a777
mov r9, rsi
mov r8, rbp
mov rdx, rax
mov rcx, rbx
call fcn.14001aaa8
jmp 0x14001a779
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret