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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x6148], 0
lea rbx, [rcx + 0x6150]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x14001bdc7
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x14001bd7a
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.14001e780
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.140004350
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x6148]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x6158]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x14006ca58]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x14001bdcf
mov rcx, rbx
call fcn.140004350
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x14001c100
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbx, qword [0x14006ca60]
xor ebp, ebp
cmp byte [rbx + 0x6098], bpl
jne 0x14001c1df
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x14001c1d8
lea r8, [rsp + 0x30]
mov qword [rsp + 0x30], rbp
call fcn.140003b60
mov rsi, rax
test rax, rax
je 0x14001c1d8
mov rdx, qword [rsp + 0x30]
test rdx, rdx
je 0x14001c164
mov rcx, rax
call fcn.14001c330
mov r8, qword [0x14006ca60]
test r8, r8
je 0x14001c1cf
movsx rdx, word [r8 + 0x6228]
lea rcx, [r8 + 0x622c]
mov r9d, dword [r8 + 0x3fc0]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x14001c1c4
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x6228], cx
movsx rax, cx
lea rcx, [r8 + 0x622c]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], ebp
inc word [rcx + 6]
inc dword [r8 + 0x6224]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov byte [rbx + 0x6098], 1
movss xmm0, dword [rbx + 0x609c]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x14001c26e
subss xmm0, dword [rbx + 0x18]
comiss xmm1, xmm0
movss dword [rbx + 0x609c], xmm0
jb 0x14001c26e
mov rdi, qword [rbx + 0x20]
test rdi, rdi
je 0x14001c261
mov rax, qword [0x14006ca60]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], rbp
mov dword [rax + 0x609c], ebp
call fcn.14001c590
lea rdx, [0x14005d8d4]
mov rcx, rdi
mov rsi, rax
call fcn.1400039b0
mov rdi, rax
test rax, rax
je 0x14001c268
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x14001c268
mov byte [rbx + 0xe6], 1
mov dword [rbx + 0x609c], ebp
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x14001c290
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x14006ca60]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x14001c2f3
mov qword [rsp], rbx
lea rbx, [0x14005ddf0]
nop dword [rax]
cmp r9b, 0x23
jne 0x14001c2d3
cmp byte [r8], r9b
jne 0x14001c2d3
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rbx + rdx*4]
test r9b, r9b
jne 0x14001c2c0
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x60b0]
not eax
mov r8, qword [r10 + 0x60b8]
lea rdx, [rcx + rcx*8]
lea rcx, [r8 + rdx*8]
cmp r8, rcx
je 0x14001c31f
cmp dword [r8 + 8], eax
je 0x14001c326
add r8, 0x48
cmp r8, rcx
jne 0x14001c310
xor eax, eax
add rsp, 8
ret
mov rax, r8
add rsp, 8
ret
Function at 0x1400313b0
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x70
mov rax, qword [0x14006c040]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rsi, qword [0x14006ca60]
mov rbp, rcx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x1400315cf
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x1400315cf
mov qword [rsp + 0x80], rbx
mov ecx, 0x50
mov qword [rsp + 0x88], rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r8, qword [0x14006ca60]
xor ebx, ebx
mov rdi, rax
test r8, r8
je 0x140031484
movsx rdx, word [r8 + 0x6228]
lea rax, [r8 + 0x622c]
mov r9d, dword [r8 + 0x3fc0]
lea rax, [rax + rdx*8]
cmp dword [rax], r9d
je 0x140031479
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x6228], cx
movsx rax, cx
lea rax, [rax*8 + 0x622c]
add rax, r8
mov dword [rax], r9d
mov dword [rax + 4], ebx
inc word [rax + 4]
inc dword [r8 + 0x6220]
test rdi, rdi
je 0x1400314a1
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
movups xmmword [rdi + 0x10], xmm0
movups xmmword [rdi + 0x20], xmm0
movups xmmword [rdi + 0x30], xmm0
movups xmmword [rdi + 0x40], xmm0
jmp 0x1400314a4
mov rdi, rbx
or dword [rsi + 0xc], 6
lea rax, str.imgui_impl_win32
mov qword [rsi + 0x88], rax
mov qword [rsi + 0x98], rdi
mov qword [rdi], rbp
mov rax, qword [rsp + 0x30]
mov qword [rdi + 0x20], rax
mov rax, qword [rsp + 0x38]
mov qword [rdi + 0x18], rax
mov dword [rdi + 0x28], 9
test r8, r8
je 0x1400314e7
mov rsi, qword [r8 + 0x98]
jmp 0x1400314ea
mov rsi, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
shr rax, 0x10
mov r9d, 4
movzx ecx, ax
lea r8, [rsi + 0x2c]
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x140031515
mov dword [rsi + 0x2c], ebx
mov rax, qword [0x14006ca60]
mov rcx, qword [rax + 0x4ba0]
mov rax, qword [rdi]
mov rdx, qword [rcx]
mov qword [rdx + 0x30], rax
mov qword [rdx + 0x28], rax
lea rax, str.xinput1_4.dll
mov qword [rsp + 0x40], rax
lea rax, str.xinput1_3.dll
mov qword [rsp + 0x48], rax
lea rax, str.xinput9_1_0.dll
mov qword [rsp + 0x50], rax
lea rax, str.xinput1_2.dll
mov qword [rsp + 0x58], rax
lea rax, str.xinput1_1.dll
mov qword [rsp + 0x60], rax
mov byte [rdi + 0x31], 1
mov rcx, qword [rsp + rbx*8 + 0x40]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
jne 0x14003158f
inc rbx
cmp rbx, 5
jl 0x140031571
jmp 0x1400315bb
lea rdx, str.XInputGetCapabilities
mov qword [rdi + 0x38], rsi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.XInputGetState
mov rcx, rsi
mov qword [rdi + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0x48], rax
mov rdi, qword [rsp + 0x88]
mov al, 1
mov rbx, qword [rsp + 0x80]
jmp 0x1400315d1
xor al, al
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400596c0
mov rbp, qword [rsp + 0x90]
add rsp, 0x70
pop rsi
ret
Function at 0x14005a2ec
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14005a336
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14005a336
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14005a336
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14005a336
cmp dword [rcx + 0x84], 0xe
jbe 0x14005a336
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14005a338
xor al, al
add rsp, 0x28
ret
Function at 0x140ef0058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140ef01df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140ef0089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140ef006f
add dl, dl
jne 0x140ef0096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140ef00f6
xor eax, eax
add dl, dl
jne 0x140ef00a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140ef01ad
add dl, dl
jne 0x140ef00b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ef00c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ef00d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ef00dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140ef00ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140ef007e
mov eax, 1
add dl, dl
jne 0x140ef0106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ef0113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140ef00fb
sub eax, ebx
mov ebx, 1
jne 0x140ef014c
mov ecx, 1
add dl, dl
jne 0x140ef012e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140ef013b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140ef0123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140ef007e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140ef0168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140ef0175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140ef015d
cmp eax, 0x7d00
jae 0x140ef019b
cmp eax, 0x500
jb 0x140ef0196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140ef007e
cmp eax, 0x7f
ja 0x140ef019e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140ef007e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140ef01d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x140ef007e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140005cdc
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r14
sub rsp, 0x20
xor r14d, r14d
mov rbp, rdx
mov ebx, r14d
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140005dd4
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140005dd4
cmp eax, 3
je 0x140005d36
xor edx, edx
mov rcx, rdi
call fcn.140005df0
test eax, eax
jne 0x140005dd4
movzx ecx, word [rdi]
mov rsi, r14
mov rdx, rdi
test cx, cx
je 0x140005dbb
mov r12d, 0x5c
cmp cx, r12w
mov rax, rdx
cmovne rax, rsi
add rdx, 2
mov rsi, rax
movzx ecx, word [rdx]
test cx, cx
jne 0x140005d4a
test rax, rax
je 0x140005dbb
mov rdx, rbp
mov word [rax], r14w
mov rcx, rdi
call fcn.140005cdc
mov word [rsi], r12w
mov ebx, eax
test eax, eax
js 0x140005dd4
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140005db6
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140005da6
mov ebx, 1
jmp 0x140005dd4
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x140005dd4
mov ebx, r14d
jmp 0x140005dd4
mov ebx, 0x80070003
lea rcx, str.c:_agent_work138_s_srclibsdutildirutil.cpp
mov r8d, ebx
mov edx, 0x72
call fcn.140005770
mov rbp, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop r12
pop rdi
ret

Function at 0x140005df0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140005e1a
test al, 0x10
je 0x140005e1a
test rdi, rdi
je 0x140005e15
mov dword [rdi], eax
mov ebx, 1
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140608160
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1406082e7
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140608191
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140608177
add dl, dl
jne 0x14060819e
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406081fe
xor eax, eax
add dl, dl
jne 0x1406081ad
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406082b5
add dl, dl
jne 0x1406081be
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406081cb
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406081d8
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406081e5
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1406081f2
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140608186
mov eax, 1
add dl, dl
jne 0x14060820e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14060821b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140608203
sub eax, ebx
mov ebx, 1
jne 0x140608254
mov ecx, 1
add dl, dl
jne 0x140608236
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140608243
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14060822b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140608186
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140608270
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14060827d
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140608265
cmp eax, 0x7d00
jae 0x1406082a3
cmp eax, 0x500
jb 0x14060829e
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140608186
cmp eax, 0x7f
ja 0x1406082a6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140608186
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1406082da
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x140608186
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140002130
Capabilities:
Parse pe header

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

Function at 0x1400098a0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000969c
Function at 0x14000ebe8
Capabilities:
Query environment variable

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, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14000ec18
xor eax, eax
jmp 0x14000ecdb
mov rbp, rbx
cmp word [rax], si
je 0x14000ec3d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000ec24
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000ec20
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14000eb08
movsxd r14, eax
test eax, eax
jne 0x14000ec7b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000ec11
mov rcx, r14
call fcn.14000b39c
mov rdi, rax
test rax, rax
jne 0x14000ec94
xor ecx, ecx
call fcn.14000a724
jmp 0x14000ec70
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14000eb08
test eax, eax
jne 0x14000ecc5
mov rcx, rdi
call fcn.14000a724
jmp 0x14000eccf
xor ecx, ecx
call fcn.14000a724
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
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
Function at 0x140012ffc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140013012
mov al, 1
jmp 0x140013072
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140013023
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140013070
mov ecx, dword [rcx + 0x18]
nop
call fcn.14000f508
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140013070
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140013070
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140013070
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140013072
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400140b0
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14000dbd8
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14001413a
cmp byte [rbp - 0x21], r15b
je 0x140014135
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140014170
call fcn.14000a974
test eax, eax
jne 0x14001415c
cmp byte [rbp - 0x21], r15b
je 0x140014154
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140014170
cmp byte [rbp - 0x21], r15b
je 0x14001416d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14000d1b8
test eax, eax
jne 0x140014210
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000dbd8
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400141af
cmp byte [rbp - 0x21], r15b
je 0x1400141e4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400141e4
call fcn.14000a974
test eax, eax
jne 0x1400141d0
cmp byte [rbp - 0x21], r15b
je 0x1400141c9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400141e4
cmp byte [rbp - 0x21], r15b
je 0x1400141e1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14000d1b8
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140014210
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140014213
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140014221
mov rcx, rdi
call fcn.14000a724
cmp byte [rbp + 0x3f], r15b
je 0x140014230
mov rcx, qword [rbp + 0x27]
call fcn.14000a724
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x1400167a0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400167c8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400167c8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14000115c
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
xor r9b, r9b
movzx r11d, cl
shl r11d, 2
mov rbx, r8
movzx r8d, r9b
xor r10b, r10b
add r8d, r11d
shl r8d, 2
movzx eax, r10b
inc r10b
add eax, r8d
mov cl, byte [rax + rbx]
xor byte [rdx], cl
inc rdx
cmp r10b, 4
jb 0x14000117d
inc r9b
cmp r9b, 4
jb 0x14000116f
mov rbx, qword [rsp + 8]
ret

Function at 0x1400011a4
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

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 rsi, rdx
mov r8, rdx
mov rdx, rcx
mov rbx, rcx
xor ecx, ecx
call fcn.14000115c
mov dil, 1
lea r14, [rbx + 2]
mov r12d, 4
mov rdx, rbx
mov r8, r12
mov rcx, rdx
mov r9, r12
movzx eax, byte [rcx]
lea r10, str.cw
mov al, byte [rax + r10]
mov byte [rcx], al
add rcx, r12
sub r9, 1
jne 0x1400011ed
inc rdx
sub r8, 1
jne 0x1400011e7
mov al, byte [rbx + 5]
mov cl, byte [rbx + 1]
mov byte [rbx + 1], al
mov al, byte [rbx + 9]
mov byte [rbx + 5], al
mov al, byte [rbx + 0xd]
mov byte [rbx + 9], al
mov al, byte [rbx + 0xa]
mov byte [rbx + 0xd], cl
mov cl, byte [r14]
mov byte [r14], al
mov al, byte [rbx + 0xe]
mov byte [rbx + 0xa], cl
mov cl, byte [rbx + 6]
mov byte [rbx + 6], al
mov al, byte [rbx + 0xf]
mov byte [rbx + 0xe], cl
mov cl, byte [rbx + 3]
mov byte [rbx + 3], al
mov al, byte [rbx + 0xb]
mov byte [rbx + 0xf], al
mov al, byte [rbx + 7]
mov byte [rbx + 0xb], al
mov byte [rbx + 7], cl
cmp dil, 0xa
je 0x14000131c
mov r15, r14
mov rbp, r12
mov r11b, byte [r15 - 2]
mov r8b, byte [r15 - 1]
mov dl, r11b
mov r9b, byte [r15]
xor dl, r8b
xor r9b, byte [r15 + 1]
mov al, dl
shr al, 7
add dl, dl
movzx eax, al
mov r10b, r9b
imul ecx, eax, 0x1b
xor r10b, r11b
xor r10b, r8b
xor cl, dl
mov dl, byte [r15]
xor cl, r11b
xor dl, r8b
xor r11b, byte [r15 + 1]
xor cl, r10b
mov byte [r15 - 2], cl
mov al, dl
shr al, 7
add dl, dl
movzx eax, al
imul ecx, eax, 0x1b
mov al, r9b
shr al, 7
add r9b, r9b
movzx eax, al
xor cl, dl
xor cl, r8b
xor cl, r10b
mov byte [r15 - 1], cl
imul ecx, eax, 0x1b
mov al, r11b
shr al, 7
add r11b, r11b
movzx eax, al
xor cl, r9b
xor cl, byte [r15]
xor cl, r10b
mov byte [r15], cl
imul ecx, eax, 0x1b
xor cl, r11b
xor cl, byte [r15 + 1]
xor cl, r10b
mov byte [r15 + 1], cl
add r15, r12
sub rbp, 1
jne 0x140001267
mov r8, rsi
mov rdx, rbx
mov cl, dil
call fcn.14000115c
inc dil
jmp 0x1400011e1
mov r8, rsi
mov rdx, rbx
mov cl, 0xa
call fcn.14000115c
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x140003d64
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xe0
xor eax, eax
lea rcx, [rbp - 0x19]
mov rbx, rdx
mov qword [rbp - 0x29], rax
xorps xmm0, xmm0
xor edx, edx
movups xmmword [rbp - 0x39], xmm0
lea r8d, [rax + 0x68]
call sub.VCRUNTIME140.dll_memset
lea rax, str.winsta0default
mov dword [rbp - 0x19], 0x68
mov rcx, rbx
mov qword [rbp - 9], rax
call qword [sym.imp.Qt5Core.dll_public:_unsigned_short_int_const____ptr64___cdecl_QString::utf16_void_const___ptr64]
and qword [rbp + 0x67], 0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rbp + 0x77]
mov edx, 0xf01ff
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
cmp eax, 1
jne 0x140003deb
mov rdx, qword [rbp + 0x77]
lea rcx, [rbp + 0x67]
xor r8d, r8d
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
lea rax, [rbp - 0x39]
xor r9d, r9d
mov qword [rsp + 0x48], rax
xor r8d, r8d
lea rax, [rbp - 0x19]
xor edx, edx
mov qword [rsp + 0x40], rax
mov rcx, rbx
and qword [rsp + 0x38], 0
mov rax, qword [rbp + 0x67]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x628
and dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x140003e4e
mov rcx, qword [rbp - 0x39]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp - 0x39]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x67]
call qword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov rcx, qword [rbp + 0x77]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0xf8]
add rsp, 0xe0
pop rbp
ret