joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140004510]
mov dword [rax], 1
mov rax, qword [0x140004520]
mov dword [rax], 1
mov rax, qword [0x140004530]
mov dword [rax], 1
mov rax, qword [0x1400044c0]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140001a60
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x140002732
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140007108]
test eax, eax
je 0x1400027ca
lea rax, [0x1400070e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140007110]
mov qword [rbp - 8], rax
jmp 0x1400027ae
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x1400027a2
cmp qword [rbp - 0x10], 0
je 0x1400027a2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140002768
lea rax, [0x1400070e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1400027cb
nop
add rsp, 0x30
pop rbp
ret
Function at 0x140005690
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push r14
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor r14d, r14d
xor eax, eax
lock cmpxchg qword [0x1400085e0], rbx
je 0x1400056e2
cmp rax, rbx
jne 0x1400056d5
mov ebx, 1
mov r14d, ebx
jmp 0x1400056e7
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x1400056b9
mov ebx, 1
mov eax, dword [0x1400085e8]
cmp eax, ebx
jne 0x1400056fd
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x140005766
mov eax, dword [0x1400085e8]
test eax, eax
jne 0x140005760
mov dword [0x1400085e8], ebx
lea r12, [0x1400062e0]
lea rdi, [0x1400062c8]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r12
jae 0x140005752
test eax, eax
jne 0x140005756
mov rsi, qword [rdi]
test rsi, rsi
je 0x140005747
mov rcx, rsi
mov rax, qword [0x1400062a0]
call rax
call rsi
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x140005724
test eax, eax
je 0x140005766
mov eax, 0xff
jmp 0x140005847
mov dword [0x140008024], ebx
mov eax, dword [0x1400085e8]
cmp eax, ebx
jne 0x14000578d
lea rdx, [0x1400062c0]
lea rcx, [0x1400062b0]
call sub.msvcrt.dll__initterm
mov dword [0x1400085e8], 2
test r14d, r14d
jne 0x14000579b
xor eax, eax
xchg qword [0x1400085e0], rax
cmp qword [0x140008600], 0
je 0x1400057d3
lea rcx, [0x140008600]
call fcn.140005ab0
test eax, eax
je 0x1400057d3
mov rbx, qword [0x140008600]
mov rcx, rbx
mov rax, qword [0x1400062a0]
call rax
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call rbx
mov r8, qword [0x140008038]
mov rdx, qword [0x140008030]
mov ecx, dword [0x140008028]
call fcn.140001008
mov dword [0x140008020], eax
cmp dword [0x140008040], 0
jne 0x140005803
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140008024], 0
jne 0x140005818
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140008020]
jmp 0x140005847
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov r12, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
sub rsp, 0x28
call fcn.140137000
add rsp, 0x28
jmp 0x140005690

Function at 0x1400059ac
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400059f8
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400059f0
cmp dword [rcx + 0x3c], edx
jl 0x1400059f0
cmp dword [rcx + 0x3c], 0x10000000
jae 0x1400059f0
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x1400059f8
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140011208
Capabilities:
Terminate process

Disassembly:
jmp 0x1400131b0
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]
add rsp, 0x28
ret

Function at 0x140011285
Capabilities:
Create process on windows

Disassembly:
jmp 0x140011a50
push rbp
push rsi
push rdi
sub rsp, 0x1d0
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x38
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x198], rax
lea rcx, [0x1400240a2]
call fcn.140011393
mov ecx, 0x4e3
call qword [sym.imp.KERNEL32.dll_SetConsoleCP]
mov ecx, 0x4e3
call qword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
lea rax, [rbp + 8]
lea rcx, [0x14001ae50]
mov rdi, rax
mov rsi, rcx
mov ecx, 0xa
rep movsb byte [rdi], byte [rsi]
lea rcx, [0x14001ae60]
call fcn.1400111a9
lea rdx, [rbp + 0xa4]
lea rcx, [0x14001ae88]
call fcn.1400110a0
cmp dword [rbp + 0xa4], 1
jne 0x140011b59
lea rcx, [0x14001ae90]
call fcn.1400111a9
lea rdx, [rbp + 0x40]
lea rcx, [0x14001aea8]
call fcn.1400110a0
lea rdx, [0x14001aeac]
lea rcx, [rbp + 8]
call qword [sym.imp.ucrtbased.dll_fopen]
mov qword [rbp + 0xc8], rax
cmp qword [rbp + 0xc8], 0
jne 0x140011b35
lea rcx, [0x14001aeb0]
call fcn.1400111a9
mov eax, 1
jmp 0x140011b91
lea r8, [rbp + 0x40]
lea rdx, str.F10::_ExitApp_nF9::Reload_nF11::_nloop_nSend___s_Enter_nsleep__150_nSend___next_Enter_nsleep__3500_n_nreturn
mov rcx, qword [rbp + 0xc8]
call fcn.14001134d
mov rcx, qword [rbp + 0xc8]
call qword [sym.imp.ucrtbased.dll_fclose]
mov dword [rsp + 0x28], 5
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, str.SPAMB.ahk
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
lea rcx, str.F11__
call fcn.1400111a9
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x14001ae10]
call fcn.140011325
mov rax, rdi
mov rcx, qword [rbp + 0x198]
xor rcx, rbp
call fcn.1400111c2
lea rsp, [rbp + 0x1a0]
pop rdi
pop rsi
pop rbp
ret

Function at 0x14001128f
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400144f0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014510
xor al, al
jmp 0x140014591
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014523
xor al, al
jmp 0x140014591
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 0x14001454d
xor al, al
jmp 0x140014591
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014561
xor al, al
jmp 0x140014591
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014573
xor al, al
jmp 0x140014591
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001458f
xor al, al
jmp 0x140014591
mov al, 1
add rsp, 0x38
ret
Function at 0x140029bbc
Capabilities:
Clear file content

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 rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001d294
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001d294
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140029d0c
cmp rax, 0xffffffffffffffff
je 0x140029d0c
xor edi, edi
test rbp, rbp
jle 0x140029cb7
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001fbc0
mov rbx, rax
test rax, rax
jne 0x140029c44
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140029cad
mov edx, 0x8000
mov ecx, r14d
call fcn.14001abfc
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001df70
cmp eax, 0xffffffff
je 0x140029c8d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140029c54
mov edx, r15d
mov ecx, r14d
call fcn.14001abfc
jmp 0x140029cad
cmp byte [rsi + 0x38], dil
je 0x140029ca4
cmp dword [rsi + 0x34], 5
jne 0x140029ca4
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140029cad
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001b960
jmp 0x140029d20
jns 0x140029d20
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001d294
cmp rax, 0xffffffffffffffff
jne 0x140029cd8
cmp byte [rsi + 0x30], dil
je 0x140029d20
mov edi, dword [rsi + 0x2c]
jmp 0x140029d20
mov ecx, r14d
call fcn.1400190b8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140029d20
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140029d20
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140029d19
mov eax, dword [rsi + 0x2c]
jmp 0x140029d1e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001d294
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x14002ae10
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14002ae38
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14002ae38
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x140014d40
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140014d8a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140014d8a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140014d8a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140014d8a
cmp dword [rcx + 0x84], 0xe
jbe 0x140014d8a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140014d8c
xor al, al
add rsp, 0x28
ret
Function at 0x14000109c
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rsi
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r12
push rbp
push r14
push r15
lea rbp, [rax - 0x158]
sub rsp, 0x240
lea rcx, [0x14000e510]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x104
ja 0x1400012e3
lea rdx, [0x14000e510]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
movzx ecx, word [rsp + 0x20]
mov r12d, 0x5c
lea eax, [rcx - 0x61]
cmp ax, 0x19
jbe 0x140001105
lea eax, [rcx - 0x41]
cmp ax, 0x19
ja 0x14000111d
cmp word [rsp + 0x22], 0x3a
jne 0x14000111d
cmp word [rsp + 0x24], r12w
jne 0x14000111d
mov r14d, 3
jmp 0x140001139
cmp cx, r12w
jne 0x1400012e3
cmp word [rsp + 0x22], r12w
jne 0x1400012e3
mov r14d, 2
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000115b
and al, 0x10
neg al
sbb eax, eax
not eax
and eax, 0xb7
jmp 0x1400012e8
xor edx, edx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor r15d, r15d
test eax, eax
jne 0x1400012db
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test eax, eax
je 0x1400012db
cmp eax, 0xb7
je 0x1400012db
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movzx edx, word [rsp + 0x20]
or ecx, 0xffffffff
movsxd rsi, eax
mov r9d, r15d
test dx, dx
je 0x1400012df
lea r8, [rsp + 0x20]
cmp dx, r12w
lea r8, [r8 + 2]
movzx edx, word [r8]
mov eax, r9d
cmovne eax, ecx
inc r9d
movsxd rcx, eax
test dx, dx
jne 0x1400011b5
test eax, eax
js 0x1400012df
cmp ecx, r14d
jb 0x1400012df
mov edx, ecx
lea rax, [rsi - 1]
cmp rdx, rax
jne 0x140001200
cmp rsi, 1
je 0x1400012db
mov word [rsp + rcx*2 + 0x20], r15w
mov esi, edx
or rdi, 0xffffffffffffffff
xor edx, edx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1400012c8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
test eax, eax
je 0x1400012c8
cmp eax, 0xb7
je 0x14000128c
movzx r8d, word [rsp + 0x20]
mov r9d, edi
mov rdx, rdi
mov r11d, r15d
mov r10, r15
test r8w, r8w
je 0x140001288
cmp r8w, r12w
mov rax, r10
movzx r8d, word [rsp + r10*2 + 0x22]
cmovne rax, rdx
mov rdx, rax
mov eax, r11d
cmovne eax, r9d
inc r10
inc r11d
mov r9d, eax
test r8w, r8w
jne 0x140001248
cmp rdx, 1
jl 0x140001288
cmp eax, r14d
jb 0x140001288
mov word [rsp + rdx*2 + 0x20], r15w
jmp 0x140001204
mov eax, ecx
jmp 0x1400012e8
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400012c8
test al, 0x10
jne 0x1400012c8
mov eax, 0xb7
jmp 0x1400012e8
mov word [rsp + rcx*2 + 0x20], r12w
xor edx, edx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1400012c8
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400012e8
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
cmp rcx, rsi
jb 0x1400012a7
xor eax, eax
jmp 0x1400012e8
mov eax, edi
jmp 0x1400012e8
mov eax, 0x7b
lea r11, [rsp + 0x240]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov r12, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140001588
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x2f0
mov rax, qword [0x14000e970]
xor ebx, ebx
mov r14, rcx
test rax, rax
jne 0x140001620
mov edx, 0x106
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
dec eax
cmp eax, 0x103
ja 0x1400016e4
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea r8d, [rbx + 0x5c]
lea ecx, [rax - 1]
cmp word [rsp + rcx*2 + 0x20], r8w
je 0x1400015ed
mov ecx, eax
inc eax
mov word [rsp + rcx*2 + 0x20], r8w
mov eax, eax
lea rcx, [rsp + 0x20]
lea rdx, str.version.dll
lea rcx, [rcx + rax*2]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x14000e970], rax
test rax, rax
je 0x1400016e4
lea rdx, str.GetFileVersionInfoSizeW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14000e970]
lea rdx, str.GetFileVersionInfoW
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14000e970]
lea rdx, str.VerQueryValueW
mov r15, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbp, rax
test rdi, rdi
je 0x1400016e4
test r15, r15
je 0x1400016e4
test rax, rax
je 0x1400016e4
xor edx, edx
mov rcx, r14
call rdi
mov esi, eax
test eax, eax
je 0x1400016e4
mov ecx, esi
call sub.msvcrt.dll_malloc
mov rdi, rax
test rax, rax
je 0x1400016e4
mov r9, rax
mov r8d, esi
xor edx, edx
mov rcx, r14
call r15
test eax, eax
je 0x1400016d8
lea r9, [rsp + 0x328]
mov qword [rsp + 0x330], rbx
lea r8, [rsp + 0x330]
mov dword [rsp + 0x328], ebx
lea rdx, [0x14000b7b8]
mov rcx, rdi
call rbp
test eax, eax
je 0x1400016d8
mov rax, qword [rsp + 0x330]
mov ebx, dword [rax + 8]
mov rcx, rdi
call sub.msvcrt.dll_free
mov eax, ebx
jmp 0x1400016e6
xor eax, eax
mov rbx, qword [rsp + 0x320]
add rsp, 0x2f0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140002640
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rsi, rcx
mov rbx, r8
mov rcx, r8
mov rdi, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r9d, 1
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140005e64
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rbx, qword [r8]
mov rdi, r8
and qword [r8], 0
mov rsi, rdx
mov r14, rcx
test rbx, rbx
je 0x140005ed2
mov r15d, 0x400000
and dword [rsp + 0x60], 0
lea r9, [rsp + 0x60]
mov rcx, qword [r14]
mov r8d, ebx
cmp rbx, r15
mov rdx, rsi
cmova r8d, r15d
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [rsp + 0x60]
add qword [rdi], rdx
add rsi, rdx
sub rbx, rdx
test eax, eax
je 0x140005ee8
test edx, edx
je 0x140005ed2
test rbx, rbx
jne 0x140005e92
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140005ed4

Function at 0x140005f70
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rbx, qword [r8]
mov rdi, r8
and qword [r8], 0
mov rsi, rdx
mov r14, rcx
test rbx, rbx
je 0x140005fde
mov r15d, 0x400000
and dword [rsp + 0x60], 0
lea r9, [rsp + 0x60]
mov rcx, qword [r14]
mov r8d, ebx
cmp rbx, r15
mov rdx, rsi
cmova r8d, r15d
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [rsp + 0x60]
add qword [rdi], rdx
add rsi, rdx
sub rbx, rdx
test eax, eax
je 0x140005ff4
test edx, edx
je 0x140005fde
test rbx, rbx
jne 0x140005f9e
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140005fe0

Function at 0x140006e80
Capabilities:
Check os version
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x2f0
call qword [sym.imp.KERNEL32.dll_GetVersion]
xor esi, esi
cmp ax, 6
je 0x140006ed6
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.SetDefaultDllDirectories
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140006ed6
mov ecx, 0xc00
call rax
test eax, eax
jne 0x140006f69
mov edx, 0x106
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [rax - 1]
cmp ecx, 0x103
ja 0x140006f69
lea ecx, [rax - 1]
mov r8d, 0x5c
cmp word [rsp + rcx*2 + 0x20], r8w
je 0x140006f0c
mov ecx, eax
inc eax
mov word [rsp + rcx*2 + 0x20], r8w
mov cl, byte [str.userenv]
lea rbx, str.userenv
test cl, cl
je 0x140006f69
mov eax, eax
lea rdi, [rsp + 0x20]
lea rdi, [rdi + rax*2]
mov rdx, rdi
inc rbx
movzx eax, cl
mov cl, byte [rbx]
inc rbx
mov word [rdx], ax
lea rdx, [rdx + 2]
test cl, cl
jne 0x140006f2e
mov dword [rdx], 0x64002e
lea rcx, [rsp + 0x20]
mov dword [rdx + 4], 0x6c006c
mov word [rdx + 8], si
xor edx, edx
lea r8d, [rdx + 8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov cl, byte [rbx]
test cl, cl
jne 0x140006f28
lea r11, [rsp + 0x2f0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14000877c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
lea r11, [0x14000e980]
xor edx, edx
mov r8, r11
mov r9d, edx
mov r10d, 8
mov ecx, r9d
mov eax, r9d
and ecx, 1
shr eax, 1
neg ecx
and ecx, 0xedb88320
mov r9d, ecx
xor r9d, eax
sub r10, 1
jne 0x140008791
mov dword [r8], r9d
inc edx
add r8, 4
cmp edx, 0x100
jb 0x140008788
lea r8, [0x14000ed80]
mov r9d, 0xb00
mov edx, dword [r8 - 0x400]
movzx ecx, dl
shr edx, 8
xor edx, dword [r11 + rcx*4]
mov dword [r8], edx
lea r8, [r8 + 4]
sub r9, 1
jne 0x1400087ce
ret

Function at 0x1400087f0
Capabilities:
Encode data using xor

Disassembly:
lea r9, [0x14000e980]
jmp 0x140008800
push rbx
push rbp
push rsi
push rdi
mov eax, ecx
mov rbp, r9
mov rdi, r8
cmp rdi, 0x1f
jb 0x1400089c3
test edx, 3
je 0x140008835
movzx esi, byte [rdx]
movzx ebx, al
inc rdx
shr eax, 8
xor esi, ebx
xor eax, dword [rbp + rsi*4]
dec rdi
jmp 0x140008816
xor eax, dword [rdx]
lea rdi, [rdx + rdi - 0x1b]
sub rdx, rdi
nop
mov ecx, dword [rdi + rdx + 0xc]
movzx ebx, word [rdi + rdx + 8]
movzx r9d, word [rdi + rdx + 0xa]
movzx esi, bl
shr ebx, 8
xor ecx, dword [rbp + rsi*4 + 0xc00]
movzx esi, r9b
shr r9d, 8
xor ecx, dword [rbp + rbx*4 + 0x800]
xor ecx, dword [rbp + rsi*4 + 0x400]
xor ecx, dword [rbp + r9*4]
movzx ebx, word [rdi + rdx + 4]
movzx r9d, word [rdi + rdx + 6]
movzx esi, bl
shr ebx, 8
xor ecx, dword [rbp + rsi*4 + 0x1c00]
movzx esi, r9b
shr r9d, 8
xor ecx, dword [rbp + rbx*4 + 0x1800]
xor ecx, dword [rbp + rsi*4 + 0x1400]
xor ecx, dword [rbp + r9*4 + 0x1000]
movzx esi, al
mov ebx, eax
shr ebx, 0x18
xor ecx, dword [rbp + rsi*4 + 0x2c00]
xor ecx, dword [rbp + rbx*4 + 0x2000]
ror eax, 0x10
movzx esi, al
shr eax, 0x18
xor ecx, dword [rbp + rsi*4 + 0x2400]
xor ecx, dword [rbp + rax*4 + 0x2800]
mov eax, dword [rdi + rdx + 0x18]
movzx ebx, word [rdi + rdx + 0x14]
movzx r9d, word [rdi + rdx + 0x16]
movzx esi, bl
shr ebx, 8
xor eax, dword [rbp + rsi*4 + 0xc00]
movzx esi, r9b
shr r9d, 8
xor eax, dword [rbp + rbx*4 + 0x800]
xor eax, dword [rbp + rsi*4 + 0x400]
xor eax, dword [rbp + r9*4]
movzx ebx, word [rdi + rdx + 0x10]
movzx r9d, word [rdi + rdx + 0x12]
movzx esi, bl
shr ebx, 8
xor eax, dword [rbp + rsi*4 + 0x1c00]
movzx esi, r9b
shr r9d, 8
xor eax, dword [rbp + rbx*4 + 0x1800]
xor eax, dword [rbp + rsi*4 + 0x1400]
xor eax, dword [rbp + r9*4 + 0x1000]
movzx esi, cl
mov ebx, ecx
shr ebx, 0x18
xor eax, dword [rbp + rsi*4 + 0x2c00]
xor eax, dword [rbp + rbx*4 + 0x2000]
ror ecx, 0x10
movzx esi, cl
shr ecx, 0x18
xor eax, dword [rbp + rsi*4 + 0x2400]
xor eax, dword [rbp + rcx*4 + 0x2800]
add rdx, 0x18
jae 0x140008840
add rdi, 0x18
sub rdx, 0x18
movzx ebx, al
movzx ecx, ah
shr eax, 0x10
movzx esi, al
shr eax, 8
mov eax, dword [rbp + rax*4]
xor eax, dword [rbp + rbx*4 + 0xc00]
xor eax, dword [rbp + rcx*4 + 0x800]
xor eax, dword [rbp + rsi*4 + 0x400]
add rdx, 4
jb 0x1400089b9
xor eax, dword [rdi + rdx]
jmp 0x140008986
add rdx, rdi
add rdi, 3
sub rdi, rdx
test rdi, rdi
je 0x1400089df
movzx esi, byte [rdx]
movzx ebx, al
inc rdx
shr eax, 8
xor esi, ebx
xor eax, dword [rbp + rsi*4]
dec rdi
jne 0x1400089c8
pop rdi
pop rsi
pop rbp
pop rbx
ret