joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001c4a0
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 + 0x2628], 0
lea rbx, [rcx + 0x2630]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x14001c547
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x14001c4fa
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.14001f0f0
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.1400030d0
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x2628]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x2638]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x140054778]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x14001c54f
mov rcx, rbx
call fcn.1400030d0
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x14001c8f0
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 [0x140054780]
xor ebp, ebp
cmp byte [rbx + 0x2568], bpl
jne 0x14001c9cf
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x14001c9c8
lea r8, [rsp + 0x30]
mov qword [rsp + 0x30], rbp
call fcn.140002a50
mov rsi, rax
test rax, rax
je 0x14001c9c8
mov rdx, qword [rsp + 0x30]
test rdx, rdx
je 0x14001c954
mov rcx, rax
call fcn.14001cb20
mov r8, qword [0x140054780]
test r8, r8
je 0x14001c9bf
movsx rdx, word [r8 + 0x2750]
lea rcx, [r8 + 0x2754]
mov r9d, dword [r8 + 0x12b0]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x14001c9b4
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 + 0x2750], cx
movsx rax, cx
lea rcx, [r8 + 0x2754]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], ebp
inc word [rcx + 6]
inc dword [r8 + 0x274c]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov byte [rbx + 0x2568], 1
movss xmm0, dword [rbx + 0x256c]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x14001ca5e
subss xmm0, dword [rbx + 0x18]
comiss xmm1, xmm0
movss dword [rbx + 0x256c], xmm0
jb 0x14001ca5e
mov rdi, qword [rbx + 0x20]
test rdi, rdi
je 0x14001ca51
mov rax, qword [0x140054780]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], rbp
mov dword [rax + 0x256c], ebp
call fcn.14001cd80
lea rdx, [0x140046ce4]
mov rcx, rdi
mov rsi, rax
call fcn.1400028a0
mov rdi, rax
test rax, rax
je 0x14001ca58
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 0x14001ca58
mov byte [rbx + 0xbc], 1
mov dword [rbx + 0x256c], ebp
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x14001ca80
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x140054780]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x14001cae3
mov qword [rsp], rbx
lea rbx, [0x1400471d0]
nop dword [rax]
cmp r9b, 0x23
jne 0x14001cac3
cmp byte [r8], r9b
jne 0x14001cac3
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 0x14001cab0
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x2580]
not eax
mov r8, qword [r10 + 0x2588]
lea rdx, [rcx + rcx*8]
lea rcx, [r8 + rdx*8]
cmp r8, rcx
je 0x14001cb0f
cmp dword [r8 + 8], eax
je 0x14001cb16
add r8, 0x48
cmp r8, rcx
jne 0x14001cb00
xor eax, eax
add rsp, 8
ret
mov rax, r8
add rsp, 8
ret
Function at 0x140031900
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x70
mov rax, qword [0x140054040]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rdi, qword [0x140054780]
mov rbp, rcx
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x140031b1e
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x140031b1e
mov qword [rsp + 0x80], rbx
mov ecx, 0x50
mov qword [rsp + 0x88], rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r8, qword [0x140054780]
xor ebx, ebx
mov rsi, rax
test r8, r8
je 0x1400319d4
movsx rdx, word [r8 + 0x2750]
lea rax, [r8 + 0x2754]
mov r9d, dword [r8 + 0x12b0]
lea rax, [rax + rdx*8]
cmp dword [rax], r9d
je 0x1400319c9
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 + 0x2750], cx
movsx rax, cx
lea rax, [rax*8 + 0x2754]
add rax, r8
mov dword [rax], r9d
mov dword [rax + 4], ebx
inc word [rax + 4]
inc dword [r8 + 0x2748]
test rsi, rsi
je 0x1400319f1
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm0
movups xmmword [rsi + 0x20], xmm0
movups xmmword [rsi + 0x30], xmm0
movups xmmword [rsi + 0x40], xmm0
jmp 0x1400319f4
mov rsi, rbx
or dword [rdi + 0xc], 6
lea rax, [0x14004bec8]
mov qword [rdi + 0x90], rax
xor ecx, ecx
mov qword [rdi + 0xa0], rsi
mov qword [rsi], rbp
mov rax, qword [rsp + 0x58]
mov qword [rsi + 0x20], rax
mov rax, qword [rsp + 0x60]
mov qword [rsi + 0x18], rax
mov dword [rsi + 0x28], 9
mov rdi, qword [rdi + 0xa0]
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
shr rax, 0x10
mov r9d, 4
movzx ecx, ax
lea r8, [rdi + 0x2c]
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x140031a5b
mov dword [rdi + 0x2c], ebx
mov rax, qword [0x140054780]
mov rcx, qword [rax + 0x1e98]
mov rax, qword [rsi]
mov rdx, qword [rcx]
mov qword [rdx + 0x30], rax
mov qword [rdx + 0x28], rax
lea rax, str.xinput1_4.dll
mov qword [rsp + 0x30], rax
lea rax, str.xinput1_3.dll
mov qword [rsp + 0x38], rax
lea rax, str.xinput9_1_0.dll
mov qword [rsp + 0x40], rax
lea rax, str.xinput1_2.dll
mov qword [rsp + 0x48], rax
lea rax, str.xinput1_1.dll
mov qword [rsp + 0x50], rax
mov byte [rsi + 0x31], 1
nop word [rax + rax]
mov rcx, qword [rsp + rbx*8 + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdi, rax
test rax, rax
jne 0x140031ade
inc rbx
cmp rbx, 5
jl 0x140031ac0
jmp 0x140031b0a
lea rdx, str.XInputGetCapabilities
mov qword [rsi + 0x38], rdi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.XInputGetState
mov rcx, rdi
mov qword [rsi + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x48], rax
mov rsi, qword [rsp + 0x88]
mov al, 1
mov rbx, qword [rsp + 0x80]
jmp 0x140031b20
xor al, al
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400429b0
mov rbp, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
ret
Function at 0x1400378e0
Capabilities:
Hash data with crc32

Disassembly:
mov rax, qword [0x140054780]
mov rdx, qword [rax + 0x2188]
cmp ecx, 0xffffffff
jne 0x1400378fa
cmp dword [rdx + 0x74], ecx
cmovne ecx, dword [rdx + 0x74]
cmp ecx, dword [rdx + 0x6c]
mov eax, 0xffffffff
cmove ecx, eax
test byte [rdx + 4], 7
je 0x140037977
mov r10d, dword [rdx]
lea r8, [0x14004bfa9]
movzx eax, word [rdx + 0x78]
lea r11, [0x1400471d0]
not r10d
mov word [rdx + 0x224], cx
mov ecx, r10d
mov byte [rdx + 0x23b], 1
mov word [rdx + 0x7a], ax
mov r9b, 0x23
nop dword [rax + rax]
cmp r9b, 0x23
jne 0x140037953
cmp byte [r8], r9b
jne 0x140037953
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 0x140037940
not ecx
jmp fcn.140016c50
ret
Function at 0x14004358c
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x140016830
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x248
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x5a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x268]
mov rax, qword [0x14002a040]
xor rax, rbp
mov qword [rbp + 0x218], rax
lea rcx, [0x140031026]
call fcn.1400117ee
nop
xor edx, edx
mov ecx, 4
call fcn.1400113c5
mov rdx, rax
lea rcx, [rbp + 8]
call fcn.140011820
nop
lea rcx, [rbp + 8]
call fcn.140011753
cmp rax, 0xffffffffffffffff
jne 0x1400168ee
lea rdx, str.Failed_to_create_thread_snapshot
lea rcx, [rbp + 0x148]
call fcn.140011384
nop
lea rcx, [rbp + 0x148]
call fcn.140011613
nop
lea rcx, [rbp + 0x148]
call fcn.140011186
nop
mov qword [rbp + 0x188], 0
lea rcx, [rbp + 8]
call fcn.140011235
mov rax, qword [rbp + 0x188]
jmp 0x1400169b4
mov dword [rbp + 0x28], 0x1c
lea rcx, [rbp + 8]
call fcn.140011753
lea rdx, [rbp + 0x28]
mov rcx, rax
call fcn.140011519
test eax, eax
je 0x14001696b
mov eax, dword [rbp + 0x240]
cmp dword [rbp + 0x34], eax
jne 0x140016952
mov r8d, dword [rbp + 0x30]
xor edx, edx
mov ecx, 0x1a
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov qword [rbp + 0x68], rax
cmp qword [rbp + 0x68], 0
je 0x140016952
mov rax, qword [rbp + 0x68]
mov qword [rbp + 0x1a8], rax
lea rcx, [rbp + 8]
call fcn.140011235
mov rax, qword [rbp + 0x1a8]
jmp 0x1400169b4
lea rcx, [rbp + 8]
call fcn.140011753
lea rdx, [rbp + 0x28]
mov rcx, rax
call fcn.1400110e1
test eax, eax
jne 0x14001690e
lea rdx, str.No_suitable_thread_found_in_the_target_process
lea rcx, [rbp + 0x1c8]
call fcn.140011384
nop
lea rcx, [rbp + 0x1c8]
call fcn.140011613
nop
lea rcx, [rbp + 0x1c8]
call fcn.140011186
nop
mov qword [rbp + 0x208], 0
lea rcx, [rbp + 8]
call fcn.140011235
mov rax, qword [rbp + 0x208]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x1400241c0]
call fcn.1400116bd
mov rax, rdi
mov rcx, qword [rbp + 0x218]
xor rcx, rbp
call fcn.1400113de
lea rsp, [rbp + 0x228]
pop rdi
pop rbp
ret

Function at 0x140011479
Capabilities:
Terminate process

Disassembly:
jmp 0x14001b520
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
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]
nop
add rsp, 0x28
ret
Function at 0x1400115a0
Capabilities:
Parse pe header

Disassembly:
jmp 0x14001c870
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14001c890
xor al, al
jmp 0x14001c911
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14001c8a3
xor al, al
jmp 0x14001c911
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001c8cd
xor al, al
jmp 0x14001c911
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14001c8e1
xor al, al
jmp 0x14001c911
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14001c8f3
xor al, al
jmp 0x14001c911
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001c90f
xor al, al
jmp 0x14001c911
mov al, 1
add rsp, 0x38
ret
Function at 0x14001a670
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.14001182a
movzx eax, al
test eax, eax
jne 0x14001a690
mov ecx, 7
call fcn.1400116cc
nop
mov byte [rsp + 0x20], 0
call fcn.14001170d
mov byte [rsp + 0x21], al
cmp dword [0x14002adb8], 1
jne 0x14001a6b4
mov ecx, 7
call fcn.1400116cc
nop
jmp 0x14001a70c
cmp dword [0x14002adb8], 0
jne 0x14001a707
mov dword [0x14002adb8], 1
lea rdx, [0x140023660]
lea rcx, [0x140023330]
call fcn.1400113c0
test eax, eax
je 0x14001a6e8
mov eax, 0xff
jmp 0x14001a811
lea rdx, [0x140023220]
lea rcx, [section..rdata]
call fcn.1400116f4
mov dword [0x14002adb8], 2
jmp 0x14001a70c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.1400116b3
call fcn.1400115cd
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x14001a769
mov rcx, qword [rsp + 0x30]
call fcn.14001131b
movzx eax, al
test eax, eax
je 0x14001a769
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x140032020]
nop
call fcn.14001162c
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x14001a79d
mov rcx, qword [rsp + 0x38]
call fcn.14001131b
movzx eax, al
test eax, eax
je 0x14001a79d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.1400117c1
nop
call fcn.14001a8c0
mov dword [rsp + 0x28], eax
call fcn.1400115a0
movzx eax, al
test eax, eax
jne 0x14001a7bc
mov ecx, dword [rsp + 0x28]
call fcn.1400110a0
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x14001a7cb
call fcn.1400117df
nop
xor edx, edx
mov cl, 1
call fcn.1400112da
mov eax, dword [rsp + 0x28]
jmp 0x14001a811
add rsp, 0x68
ret
Function at 0x140002978
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x28
xor eax, eax
mov word [rsp + 8], ax
mov qword [rsp], 0
mov qword [rsp + 0x10], 0
mov rax, qword [rsp + 0x38]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x10], rax
mov rax, qword [rsp + 0x10]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x10]
lea rax, [rcx + rax + 0x18]
mov qword [rsp], rax
mov rax, qword [rsp]
mov eax, dword [rax + 0x14]
cmp dword [rsp + 0x30], eax
jae 0x1400029e3
mov eax, dword [rsp + 0x30]
jmp 0x140002a7d
xor eax, eax
mov word [rsp + 8], ax
jmp 0x1400029f9
movzx eax, word [rsp + 8]
inc ax
mov word [rsp + 8], ax
movzx eax, word [rsp + 8]
mov rcx, qword [rsp + 0x10]
movzx ecx, word [rcx + 6]
cmp eax, ecx
jge 0x140002a7b
movzx eax, word [rsp + 8]
imul rax, rax, 0x28
mov rcx, qword [rsp]
mov eax, dword [rcx + rax + 0xc]
cmp dword [rsp + 0x30], eax
jb 0x140002a76
movzx eax, word [rsp + 8]
imul rax, rax, 0x28
movzx ecx, word [rsp + 8]
imul rcx, rcx, 0x28
mov rdx, qword [rsp]
mov eax, dword [rdx + rax + 0xc]
mov rdx, qword [rsp]
add eax, dword [rdx + rcx + 0x10]
cmp dword [rsp + 0x30], eax
jae 0x140002a76
movzx eax, word [rsp + 8]
imul rax, rax, 0x28
mov rcx, qword [rsp]
mov eax, dword [rcx + rax + 0xc]
mov ecx, dword [rsp + 0x30]
sub ecx, eax
mov eax, ecx
movzx ecx, word [rsp + 8]
imul rcx, rcx, 0x28
mov rdx, qword [rsp]
add eax, dword [rdx + rcx + 0x14]
jmp 0x140002a7d
jmp 0x1400029ec
xor eax, eax
add rsp, 0x28
ret
Function at 0x140002a88
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x30], 2
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
movzx eax, word [rax + 0x18]
cmp eax, 0x10b
jne 0x140002b11
cmp dword [rsp + 0x30], 1
je 0x140002b0f
xor eax, eax
jmp 0x140002ca3
jmp 0x140002b38
mov rax, qword [rsp + 0x48]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x140002b31
cmp dword [rsp + 0x30], 2
je 0x140002b2f
xor eax, eax
jmp 0x140002ca3
jmp 0x140002b38
xor eax, eax
jmp 0x140002ca3
mov rax, qword [rsp + 0x48]
add rax, 0x88
mov qword [rsp + 0x28], rax
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x28]
mov ecx, dword [rax]
call fcn.140002978
mov eax, eax
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x48]
mov ecx, dword [rax + 0x20]
call fcn.140002978
mov eax, eax
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x48]
mov ecx, dword [rax + 0x1c]
call fcn.140002978
mov eax, eax
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x48]
mov ecx, dword [rax + 0x24]
call fcn.140002978
mov eax, eax
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 0x18]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x20]
dec ecx
mov dword [rsp + 0x20], ecx
test eax, eax
je 0x140002ca1
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x28]
mov ecx, dword [rax]
call fcn.140002978
mov eax, eax
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov rdx, qword [0x140007028]
mov rcx, qword [rsp + 0x58]
call qword [0x140007140]
test rax, rax
je 0x140002c80
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x48]
mov ecx, dword [rax + 0x1c]
call fcn.140002978
mov eax, eax
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x40]
movzx eax, word [rax]
mov rcx, qword [rsp + 0x50]
lea rax, [rcx + rax*4]
mov qword [rsp + 0x50], rax
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x50]
mov ecx, dword [rax]
call fcn.140002978
jmp 0x140002ca3
mov rax, qword [rsp + 0x28]
add rax, 4
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x40]
add rax, 2
mov qword [rsp + 0x40], rax
jmp 0x140002be3
xor eax, eax
add rsp, 0x68
ret
Function at 0x1400033ec
Capabilities:
Check os version

Disassembly:
push rdi
sub rsp, 0x140
lea rax, [rsp + 0x20]
mov rdi, rax
xor eax, eax
mov ecx, 0x11c
rep stosb byte [rdi], al
mov dword [rsp + 0x20], 0x11c
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x140003448
cmp dword [rsp + 0x24], 6
jb 0x140003432
cmp dword [rsp + 0x24], 6
jne 0x140003436
cmp dword [rsp + 0x28], 1
jae 0x140003436
mov al, 1
jmp 0x14000344a
cmp dword [rsp + 0x24], 6
jne 0x140003448
cmp dword [rsp + 0x28], 1
jne 0x140003448
mov al, 1
jmp 0x14000344a
xor al, al
add rsp, 0x140
pop rdi
ret

Function at 0x1400039b4
Capabilities:
Persist via run registry key

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov rcx, 0xffffffff80000001
call qword [0x140007400]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x1400039f9
xor al, al
jmp 0x140003a5b
xor eax, eax
mov rcx, 0xffffffffffffffff
mov rdi, qword [rsp + 0x58]
repne scasw ax, word [rdi]
not rcx
dec rcx
mov rax, rcx
lea rax, [rax + rax + 2]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
call qword [0x140007408]
mov dword [rsp + 0x38], eax
mov rcx, qword [rsp + 0x30]
call qword [0x140007288]
cmp dword [rsp + 0x38], 0
je 0x140003a59
xor al, al
jmp 0x140003a5b
mov al, 1
add rsp, 0x40
pop rdi
ret
Function at 0x1400040e4
Capabilities:
Acquire debug privileges

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x68], 0
mov dword [rsp + 0x58], 0
lea rax, [rsp + 0x5c]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov dword [rsp + 0x4c], 1
mov dword [rsp + 0x38], 0
call qword [0x140007378]
lea r8, [rsp + 0x40]
mov edx, 0x28
mov rcx, rax
call qword [0x1400072c0]
test eax, eax
je 0x1400041c2
mov dword [rsp + 0x58], 1
mov dword [rsp + 0x64], 2
lea r8, [rsp + 0x5c]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [0x1400072c8]
test eax, eax
je 0x1400041b7
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rsp + 0x58]
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [0x1400072b8]
mov rcx, qword [rsp + 0x40]
call qword [0x140007100]
mov r8d, dword [rsp + 0x90]
xor edx, edx
mov ecx, 0x43a
call qword [0x1400073a8]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x1400041ee
mov dword [rsp + 0x4c], 0
jmp 0x14000423c
xor r9d, r9d
mov r8d, dword [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x30]
call fcn.140002cb8
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x140004222
mov dword [rsp + 0x4c], 0
jmp 0x14000423c
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x50]
call qword [0x140007360]
xor eax, eax
test eax, eax
jne 0x14000414b
cmp qword [rsp + 0x30], 0
je 0x14000424f
mov rcx, qword [rsp + 0x30]
call qword [0x140007100]
mov eax, dword [rsp + 0x4c]
add rsp, 0x70
pop rdi
ret
Function at 0x1405f0058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1405f01df
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 0x1405f0089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1405f006f
add dl, dl
jne 0x1405f0096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1405f00f6
xor eax, eax
add dl, dl
jne 0x1405f00a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1405f01ad
add dl, dl
jne 0x1405f00b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405f00c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405f00d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405f00dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1405f00ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1405f007e
mov eax, 1
add dl, dl
jne 0x1405f0106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405f0113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1405f00fb
sub eax, ebx
mov ebx, 1
jne 0x1405f014c
mov ecx, 1
add dl, dl
jne 0x1405f012e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1405f013b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1405f0123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1405f007e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1405f0168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1405f0175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1405f015d
cmp eax, 0x7d00
jae 0x1405f019b
cmp eax, 0x500
jb 0x1405f0196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1405f007e
cmp eax, 0x7f
ja 0x1405f019e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1405f007e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1405f01d2
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 0x1405f007e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20