joyce8/EMBER2024-capa huggingface dataset:
Function at 0xc864d0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00c86657
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0xc86501
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0xc864e7
add dl, dl
jne 0xc8650e
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0xc8656e
xor eax, eax
add dl, dl
jne 0xc8651d
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0xc86625
add dl, dl
jne 0xc8652e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc8653b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc86548
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc86555
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0xc86562
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0xc864f6
mov eax, 1
add dl, dl
jne 0xc8657e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc8658b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0xc86573
sub eax, ebx
mov ebx, 1
jne 0xc865c4
mov ecx, 1
add dl, dl
jne 0xc865a6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xc865b3
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0xc8659b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0xc864f6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xc865e0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xc865ed
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0xc865d5
cmp eax, 0x7d00
jae 0xc86613
cmp eax, 0x500
jb 0xc8660e
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0xc864f6
cmp eax, 0x7f
ja 0xc86616
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0xc864f6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0xc8664a
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 0xc864f6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140002ac0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x140002b1d
lea rbx, [0x140037500]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x140002b04
cmp r10, 2
jb 0x140002b04
cmp byte [r9], r8b
jne 0x140002b04
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x140002ae0
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x140002b5f
lea rbx, [0x140037500]
cmp r8b, 0x23
jne 0x140002b43
cmp byte [r9], r8b
jne 0x140002b43
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x140002b30
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x140002ca0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x140002cba
mov qword [r8], 0
lea rdx, [0x140037104]
call fcn.140002b70
mov rbx, rax
test rax, rax
jne 0x140002cda
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x140002db1
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140002db1
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x140002db1
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140002db1
cmp rdi, 0xffffffffffffffff
je 0x140002db1
mov rax, qword [0x1400e8d78]
test rax, rax
je 0x140002d4e
inc dword [rax + 0xf4]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x140002db1
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rdi
je 0x140002d9e
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x1400e8d78]
test rax, rax
je 0x140002d93
dec dword [rax + 0xf4]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140002dba
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x140002dac
mov qword [r14], rdi
mov rax, rsi
jmp 0x140002dbc
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x1400050e0
Capabilities:
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x20
movsxd r8, dword [rcx + 0xd0]
mov rax, qword [rcx + 0xd8]
movsxd r9, edx
mov ebx, dword [rax + r8*4 - 4]
lea r8, [0x140037500]
not ebx
movzx eax, r9b
movzx ecx, bl
xor rcx, rax
shr ebx, 8
mov eax, r9d
shr eax, 8
movzx edx, al
mov eax, r9d
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rdx, rcx
shr ebx, 8
shr eax, 0x10
xor ebx, dword [r8 + rdx*4]
movzx ecx, bl
shr ebx, 8
movzx edx, al
xor rdx, rcx
xor ebx, dword [r8 + rdx*4]
movzx ecx, bl
shr ebx, 8
mov edx, r9d
shr rdx, 0x18
xor rdx, rcx
mov rcx, qword [0x1400e8d78]
xor ebx, dword [r8 + rdx*4]
not ebx
cmp dword [rcx + 0x3ed4], ebx
jne 0x140005176
mov r8, r9
mov edx, 4
mov ecx, ebx
call fcn.1400175d0
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x140011350
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x1400a1040]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x1400e8d78]
mov edi, ecx
cmp byte [rbx + 0x4a15], 0
jne 0x1400113b1
cmp byte [rbx + 0x4a16], 0
jne 0x1400113b1
movsx r9d, word [rbx + 0x5b0a]
lea r8, str.Tooltip__02d
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.140002a40
test dil, 1
je 0x1400114d8
jmp 0x14001143a
movss xmm1, dword [rbx + 0x3898]
lea r8, str.Tooltip__02d
movsx r9d, word [rbx + 0x5b0a]
lea rcx, [rsp + 0x20]
movaps xmm0, xmm1
xor eax, eax
mulss xmm0, dword [0x14009b56c]
mulss xmm1, dword [0x14009b560]
lea edx, [rax + 0x10]
addss xmm0, dword [rbx + 0xdfc]
addss xmm1, dword [rbx + 0xe00]
mov qword [rbx + 0x4778], rax
mov dword [rbx + 0x4764], 1
movss dword [rbx + 0x4770], xmm0
movss dword [rbx + 0x4774], xmm1
movss xmm0, dword [rbx + 0x38f4]
mulss xmm0, dword [0x14009b4ec]
or dword [rbx + 0x4760], 0x41
movss dword [rbx + 0x47c0], xmm0
call fcn.140002a40
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x140011490
lea r11, [0x140037500]
nop word [rax + rax]
cmp r9b, 0x23
jne 0x140011473
cmp byte [r8], r9b
jne 0x140011473
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x140011460
not ecx
call fcn.14000a560
test rax, rax
je 0x1400114d8
cmp byte [rax + 0x96], 0
je 0x1400114d8
mov byte [rax + 0x9d], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xb8], 1
lea rcx, [rsp + 0x20]
inc word [rbx + 0x5b0a]
mov edx, 0x10
movsx r9d, word [rbx + 0x5b0a]
call fcn.140002a40
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20c0347
call fcn.14000cd60
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140034360
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x140015e80
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 + 0x5bb8], 0
lea rbx, [rcx + 0x5bc0]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x140015f27
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x140015eda
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.140018230
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.140003190
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x5bb8]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x5bc8]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x1400e8d70]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x140015f2f
mov rcx, rbx
call fcn.140003190
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x1400164a0
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x1400e8d78]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x140016503
mov qword [rsp], rbx
lea rbx, [0x140037500]
nop dword [rax]
cmp r9b, 0x23
jne 0x1400164e3
cmp byte [r8], r9b
jne 0x1400164e3
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 0x1400164d0
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5b68]
xor r8d, r8d
not eax
test ecx, ecx
jle 0x140016537
mov r10, qword [r10 + 0x5b70]
mov r9, rcx
mov edx, r8d
lea rcx, [r10 + 8]
cmp dword [rcx], eax
je 0x14001653e
inc r8d
inc rdx
add rcx, 0x48
cmp rdx, r9
jl 0x140016524
xor eax, eax
add rsp, 8
ret
movsxd rax, r8d
lea rcx, [rax + rax*8]
lea rax, [r10 + rcx*8]
add rsp, 8
ret
Function at 0x140029cd0
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, 0x210
call fcn.14000fb20
cmp byte [rax], 0
je 0x140029d3f
xor edx, edx
mov ecx, 0x210
call fcn.1400106d0
test al, al
je 0x140029d3f
mov ecx, 0xa0
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne 0x140029d3f
mov rbx, qword [0x1400e8d78]
cmp byte [rbx + 0x37a9], 0
je 0x140029d2b
xorps xmm3, xmm3
lea rcx, [rbx + 8]
xor r8d, r8d
mov edx, 0x210
call fcn.140002580
mov dword [rbx + 0x380], 0x210
mov dword [rbx + 0x940], 0xa0
mov ecx, 0x214
call fcn.14000fb20
cmp byte [rax], 0
je 0x140029da8
xor edx, edx
mov ecx, 0x214
call fcn.1400106d0
test al, al
je 0x140029da8
mov ecx, 0xa1
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne 0x140029da8
mov rbx, qword [0x1400e8d78]
cmp byte [rbx + 0x37a9], 0
je 0x140029d94
xorps xmm3, xmm3
lea rcx, [rbx + 8]
xor r8d, r8d
mov edx, 0x214
call fcn.140002580
mov dword [rbx + 0x384], 0x214
mov dword [rbx + 0x950], 0xa1
mov ecx, 0x212
call fcn.14000fb20
cmp byte [rax], 0
je 0x140029e11
xor edx, edx
mov ecx, 0x212
call fcn.1400106d0
test al, al
je 0x140029e11
mov ecx, 0x5b
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne 0x140029e11
mov rbx, qword [0x1400e8d78]
cmp byte [rbx + 0x37a9], 0
je 0x140029dfd
xorps xmm3, xmm3
lea rcx, [rbx + 8]
xor r8d, r8d
mov edx, 0x212
call fcn.140002580
mov dword [rbx + 0x26c], 0x212
mov dword [rbx + 0x948], 0x5b
mov ecx, 0x216
call fcn.14000fb20
cmp byte [rax], 0
je 0x140029e7a
xor edx, edx
mov ecx, 0x216
call fcn.1400106d0
test al, al
je 0x140029e7a
mov ecx, 0x5c
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne 0x140029e7a
mov rbx, qword [0x1400e8d78]
cmp byte [rbx + 0x37a9], 0
je 0x140029e66
xorps xmm3, xmm3
lea rcx, [rbx + 8]
xor r8d, r8d
mov edx, 0x216
call fcn.140002580
mov dword [rbx + 0x270], 0x216
mov dword [rbx + 0x958], 0x5c
add rsp, 0x20
pop rbx
ret
Function at 0x140034e40
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140034e8a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140034e8a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140034e8a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140034e8a
cmp dword [rcx + 0x84], 0xe
jbe 0x140034e8a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140034e8c
xor al, al
add rsp, 0x28
ret
Function at 0x140001980
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0xa0
mov rax, qword [0x14002a008]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov r14, rdx
mov rbp, rcx
mov edx, 1
mov ecx, 0x100000
call fcn.14000c9b4
mov rdi, rax
test rax, rax
je 0x140001a13
xor r9d, r9d
mov r8d, 0x100000
mov rdx, rax
lea ecx, [r9 + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
js 0x140001a13
xor ebx, ebx
cmp dword [rdi], ebx
jbe 0x140001a13
mov eax, ebx
mov rdx, rbp
imul rcx, rax, 0x128
movzx eax, word [rcx + rdi + 0x2e]
add rax, 0x30
lea rsi, [rcx + rdi]
add rcx, rax
add rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x140001a49
inc ebx
cmp ebx, dword [rdi]
jb 0x1400019e4
lea rcx, str.ntoskrnl.exe_base_address_not_found._n
call fcn.140001010
xor eax, eax
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140003e70
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
mov rbx, qword [rsi + 0x18]
test rbx, rbx
je 0x140001a13
lea rdx, str.FLTMGR.sys
mov rcx, rbp
call fcn.14001c2a0
test eax, eax
jne 0x140001ae1
mov eax, dword [0x140025840]
lea rcx, [rsp + 0x20]
movups xmm0, xmmword [str.C:windows_system32drivers_]
mov dword [rsp + 0x38], eax
mov rdx, rbp
movzx eax, byte [0x140025844]
movaps xmmword [rsp + 0x20], xmm0
movsd xmm0, qword [0x140025838]
movsd qword [rsp + 0x30], xmm0
xorps xmm0, xmm0
mov byte [rsp + 0x3c], al
xor eax, eax
movups xmmword [rsp + 0x3d], xmm0
mov dword [rsp + 0x7d], eax
movups xmmword [rsp + 0x4d], xmm0
mov word [rsp + 0x81], ax
movups xmmword [rsp + 0x5d], xmm0
mov byte [rsp + 0x83], al
movups xmmword [rsp + 0x6d], xmm0
call qword [sym.imp.KERNEL32.dll_lstrcatA]
xor edx, edx
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x140001aea
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdi, rax
test rax, rax
je 0x140001a1f
mov rdx, r14
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
sub rbx, rdi
add rax, rbx
jmp 0x140001a21
Function at 0x1400048fc
Capabilities:
Parse pe header

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

Function at 0x14000c9a8
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 0x14000c813
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000c813
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000c813
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000c813
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000c813
cmp dword [rcx + 0x84], 0xe
jbe 0x14000c813
cmp dword [rcx + 0xf8], 0
je 0x14000c813
mov ecx, ebx
call fcn.14000c8c4
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.14000c6a0
nop
cmp dword [rbp + 0x20], 0
je 0x14000c861
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000c86c
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000c7a4
Function at 0x140013b00
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 0x140013b30
xor eax, eax
jmp 0x140013bf3
mov rbp, rbx
cmp word [rax], si
je 0x140013b55
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140013b3c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140013b38
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.140012068
movsxd r14, eax
test eax, eax
jne 0x140013b93
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140013b29
mov rcx, r14
call fcn.14000fb30
mov rdi, rax
test rax, rax
jne 0x140013bac
xor ecx, ecx
call fcn.14000e708
jmp 0x140013b88
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.140012068
test eax, eax
jne 0x140013bdd
mov rcx, rdi
call fcn.14000e708
jmp 0x140013be7
xor ecx, ecx
call fcn.14000e708
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 0x140017d7c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140017d92
mov al, 1
jmp 0x140017df2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140017da3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140017df0
mov ecx, dword [rcx + 0x18]
nop
call fcn.140014304
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140017df0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140017df0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140017df0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140017df2
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140019ba8
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.14000a118
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140019c32
cmp byte [rbp - 0x21], r15b
je 0x140019c2d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140019c68
call fcn.14000e958
test eax, eax
jne 0x140019c54
cmp byte [rbp - 0x21], r15b
je 0x140019c4c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140019c68
cmp byte [rbp - 0x21], r15b
je 0x140019c65
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.140011dfc
test eax, eax
jne 0x140019d08
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000a118
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140019ca7
cmp byte [rbp - 0x21], r15b
je 0x140019cdc
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140019cdc
call fcn.14000e958
test eax, eax
jne 0x140019cc8
cmp byte [rbp - 0x21], r15b
je 0x140019cc1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140019cdc
cmp byte [rbp - 0x21], r15b
je 0x140019cd9
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.140011dfc
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140019d08
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140019d0b
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140019d19
mov rcx, rdi
call fcn.14000e708
cmp byte [rbp + 0x3f], r15b
je 0x140019d28
mov rcx, qword [rbp + 0x27]
call fcn.14000e708
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 0x14001bd80
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001bda8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14001bda8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001384
Capabilities:
Parse pe header

Disassembly:
jmp 0x14004dae4
xor r8d, r8d
xor edx, edx
jmp 0x14004d7d4

Function at 0x140002130
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x1400763a0
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x140097040]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rsi, qword [rsp + 0xa0]
lea r10, [0x140099b58]
xor r11d, r11d
lea rdi, [0x1400828e4]
test r9, r9
mov rax, rdx
mov r12, rdx
cmovne r10, r9
test rdx, rdx
lea ebp, [r11 + 1]
cmovne rdi, rdx
mov r15d, ebp
cmovne r15, r8
neg rax
sbb r14, r14
and r14, rcx
test r15, r15
jne 0x140076410
mov rax, 0xfffffffffffffffe
jmp 0x14007655d
cmp word [r10 + 6], r11w
jne 0x14007647f
movzx r9d, byte [rdi]
inc rdi
test r9b, r9b
js 0x14007643a
test r14, r14
je 0x14007642b
mov dword [r14], r9d
test r9b, r9b
setne r11b
mov rax, r11
jmp 0x14007655d
mov al, r9b
and al, 0xe0
cmp al, 0xc0
jne 0x140076448
mov r8b, 2
jmp 0x140076466
mov al, r9b
and al, 0xf0
cmp al, 0xe0
jne 0x140076456
mov r8b, 3
jmp 0x140076466
mov al, r9b
and al, 0xf8
cmp al, 0xf0
jne 0x140076552
mov r8b, 4
movzx eax, r8b
mov ecx, 7
sub ecx, eax
mov edx, ebp
shl edx, cl
mov bl, r8b
sub edx, ebp
and edx, r9d
jmp 0x1400764a8
mov r8b, byte [r10 + 4]
mov edx, dword [r10]
mov bl, byte [r10 + 6]
lea eax, [r8 - 2]
cmp al, 2
ja 0x140076552
cmp bl, bpl
jb 0x140076552
cmp bl, r8b
jae 0x140076552
movzx ebp, bl
cmp rbp, r15
mov r9d, ebp
cmovae r9, r15
jmp 0x1400764d5
movzx ecx, byte [rdi]
inc rdi
mov al, cl
and al, 0xc0
cmp al, 0x80
jne 0x140076552
mov eax, edx
and ecx, 0x3f
shl eax, 6
mov edx, ecx
or edx, eax
mov rax, rdi
sub rax, r12
cmp rax, r9
jb 0x1400764b7
cmp r9, rbp
jae 0x140076501
movzx eax, r8b
sub bl, r9b
mov word [r10 + 4], ax
movzx eax, bl
mov word [r10 + 6], ax
mov dword [r10], edx
jmp 0x140076404
lea eax, [rdx - 0xd800]
cmp eax, 0x7ff
jbe 0x140076552
cmp edx, 0x110000
jae 0x140076552
movzx eax, r8b
mov dword [rsp + 0x20], 0x80
mov dword [rsp + 0x24], 0x800
mov dword [rsp + 0x28], 0x10000
cmp edx, dword [rsp + rax*4 + 0x18]
jb 0x140076552
test r14, r14
je 0x140076540
mov dword [r14], edx
neg edx
mov rdx, r10
sbb rcx, rcx
and rcx, rbp
call fcn.140003954
jmp 0x14007655d
mov rdx, rsi
mov rcx, r10
call fcn.140003f8a
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140002595
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret