joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140171400
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov ecx, 1
call fcn.140174160
mov rdx, rdi
xor ecx, ecx
mov rbx, qword [rax]
call fcn.140174160
mov r8d, 1
mov rdx, rbx
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x140171447
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1401765f4
mov rbx, qword [rsp + 0x30]
or eax, 0xffffffff
add rsp, 0x20
pop rdi
ret

Function at 0x140171a90
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xa0
mov edi, edx
mov rsi, rcx
mov rdx, rcx
xor ecx, ecx
call fcn.140174160
mov rcx, qword [rax]
call fcn.14018b37c
mov ebx, eax
test eax, eax
jne 0x140171be5
mov r8d, dword [0x140271b50]
not r8d
and r8d, edi
test r8b, 2
je 0x140171be5
xor edi, edi
mov word [rbp + 0x7b], 0x100
xor eax, eax
mov qword [rbp + 0xf], rdi
mov qword [rbp + 0x17], rax
lea rcx, [rbp + 0x77]
mov qword [rbp + 0x1f], rax
xor r9d, r9d
mov qword [rbp + 0x27], rax
xor r8d, r8d
mov qword [rbp + 0x2f], rax
mov dl, 1
mov qword [rbp + 0x37], rax
mov qword [rbp + 0x3f], rax
lea rax, [rbp + 0x7f]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], edi
mov dword [rsp + 0x40], edi
mov dword [rsp + 0x38], edi
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
mov qword [rbp + 0x7f], rdi
mov qword [rbp + 7], rdi
mov dword [rbp + 0x77], edi
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
movsxd rcx, eax
call fcn.140172320
test rax, rax
je 0x140171bb8
mov rax, qword [rbp + 0x7f]
lea r9, [rbp + 7]
xor r8d, r8d
mov qword [rbp + 0x3f], rax
lea rdx, [rbp + 0x17]
mov dword [rbp + 0x17], 0x10000000
lea ecx, [rbx + 1]
mov qword [rbp + 0x1b], 2
mov dword [rbp + 0x33], edi
mov dword [rbp + 0x37], 5
call qword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
test eax, eax
jne 0x140171bb8
mov rdx, rsi
lea rcx, [rbp + 0xf]
call fcn.1401741c0
mov rcx, qword [rbp + 7]
lea edx, [rbx + 1]
mov qword [rsp + 0x30], rdi
lea r8d, [rbx + 4]
mov qword [rsp + 0x28], rcx
xor r9d, r9d
mov rcx, qword [rax]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
lea rcx, [rbp + 0xf]
call fcn.140174190
mov rcx, qword [rbp + 0x7f]
test rcx, rcx
je 0x140171bd4
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov qword [rbp + 0x7f], rdi
mov rcx, qword [rbp + 7]
test rcx, rcx
je 0x140171be3
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, ebx
mov rbx, qword [rsp + 0xc0]
add rsp, 0xa0
pop rdi
pop rsi
pop rbp
ret

Function at 0x140171da0
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
call fcn.14018a088
cdqe
add rsp, 0x28
ret
Function at 0x140171db0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x50
xor eax, eax
mov rbx, rcx
mov qword [r11 - 0x38], rax
xor ecx, ecx
mov qword [r11 - 0x30], rax
mov qword [r11 - 0x28], rax
mov qword [r11 - 0x20], rax
mov dword [rsp + 0x40], eax
call fcn.140174160
lea r8, [rsp + 0x20]
xor edx, edx
mov rsi, qword [rax]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
movsxd rcx, eax
call fcn.140172320
xor edi, edi
mov rcx, rsi
test rax, rax
sete dil
call rbx
mov ebp, eax
test eax, eax
jne 0x140171e8c
test edi, edi
jne 0x140171e8c
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea r8, [rsp + 0x20]
xor edx, edx
mov rcx, rsi
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
movsxd rcx, eax
call fcn.140172320
test rax, rax
jne 0x140171e8c
mov rcx, qword gs:[0x58]
mov ebx, 0x2fe0
add rbx, qword [rcx]
nop dword [rax]
mov rax, qword [rbx]
test rax, rax
jne 0x140171e5d
call fcn.140176664
cmp dword [rax], 5
jne 0x140171e8c
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, edi
cmp eax, 2
ja 0x140171ea3
lea r8, [rsp + 0x20]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
movsxd rcx, eax
call fcn.140172320
test rax, rax
je 0x140171e50
mov eax, ebp
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
or eax, 0xffffffff
jmp 0x140171e8e
mov rdx, rcx
lea rcx, [0x140187960]
jmp 0x140171db0

Function at 0x140171eb0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov rdx, rcx
lea rcx, [0x14018b3a8]
jmp 0x140171db0
Function at 0x140171f80
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x50
xor eax, eax
mov rbx, rcx
mov qword [r11 - 0x38], rax
xor ecx, ecx
mov qword [r11 - 0x30], rax
mov qword [r11 - 0x28], rax
mov qword [r11 - 0x20], rax
mov dword [rsp + 0x40], eax
call fcn.140174160
lea r8, [rsp + 0x20]
xor edx, edx
mov rsi, qword [rax]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
movsxd rcx, eax
call fcn.140172320
xor edi, edi
mov rcx, rsi
test rax, rax
sete dil
call rbx
mov ebp, eax
test eax, eax
jne 0x140171e8c
test edi, edi
jne 0x140171e8c
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea r8, [rsp + 0x20]
xor edx, edx
mov rcx, rsi
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
movsxd rcx, eax
call fcn.140172320
test rax, rax
jne 0x140171e8c
mov rcx, qword gs:[0x58]
mov ebx, 0x2fe0
add rbx, qword [rcx]
nop dword [rax]
mov rax, qword [rbx]
test rax, rax
jne 0x140171e5d
call fcn.140176664
cmp dword [rax], 5
jne 0x140171e8c
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, edi
cmp eax, 2
ja 0x140171ea3
lea r8, [rsp + 0x20]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
movsxd rcx, eax
call fcn.140172320
test rax, rax
je 0x140171e50
mov eax, ebp
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
or eax, 0xffffffff
jmp 0x140171e8e
mov rdx, rcx
lea rcx, [0x140187960]
jmp 0x140171db0

Function at 0x140172d70
Capabilities:
Timestomp file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
mov rbx, rdx
or edi, 0xffffffff
xor esi, esi
xor r9d, r9d
mov qword [rsp + 0x30], rsi
mov edx, 0x100
mov dword [rsp + 0x28], 0x2000080
lea r8d, [rdi + 4]
mov dword [rsp + 0x20], 3
call fcn.140174380
mov rcx, rax
call fcn.140172370
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140172e1b
test rbx, rbx
jne 0x140172ddb
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x78], rax
jmp 0x140172df6
lea rdx, [rsp + 0x70]
mov rcx, rbx
call fcn.140174450
lea rcx, [rbx + 8]
lea rdx, [rsp + 0x78]
call fcn.140174450
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x78]
lea r8, [rsp + 0x70]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFileTime]
movsxd rcx, eax
call fcn.140172320
test rax, rax
cmovne edi, esi
lea rcx, [rsp + 0x40]
call fcn.140174340
mov rbx, qword [rsp + 0x60]
mov eax, edi
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x140172f40
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
sub rsp, 0x20
cmp byte [rcx], 0
mov rsi, rcx
jne 0x140172f7b
mov rax, qword gs:[0x58]
mov edx, 0x2fe0
mov rcx, qword [rax]
mov rax, qword [rdx + rcx]
test rax, rax
jne 0x140172f6d
call fcn.140176664
mov dword [rax], 2
xor eax, eax
add rsp, 0x20
pop rsi
ret
mov rdx, rsi
xor ecx, ecx
call fcn.140174160
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
call fcn.140172320
cmp eax, 0xffffffff
je 0x140172f73
test al, 0x10
jne 0x140172fcb
mov rax, qword gs:[0x58]
mov edx, 0x2fe0
mov rcx, qword [rax]
mov rax, qword [rdx + rcx]
test rax, rax
jne 0x140172fbd
call fcn.140176664
mov dword [rax], reloc.WS2_32.dll_sendto
xor eax, eax
add rsp, 0x20
pop rsi
ret
mov edx, 1
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rdi
lea ecx, [rdx + 0x27]
call fcn.140176684
mov edx, 1
mov ecx, 0x128
mov rdi, rax
call fcn.140176684
mov rcx, rsi
mov rbx, rax
call fcn.140172950
mov qword [rbx], rax
mov rax, rdi
mov qword [rdi], rbx
mov rbx, qword [rsp + 0x30]
mov qword [rdi + 0x10], 0xffffffffffffffff
mov dword [rdi + 0x18], 0x128
mov dword [rdi + 0x1c], 0x128
mov dword [rdi + 8], 8
mov dword [rdi + 0x20], 1
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret
Function at 0x140173040
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x380
mov r14, qword [rcx]
mov rdi, rcx
mov rcx, qword [rcx + 0x10]
or rbx, 0xffffffffffffffff
cmp rcx, rbx
jne 0x14017311a
mov rdx, qword [r14]
lea r8, [rsp + 0x20]
sub r8, rdx
nop word [rax + rax]
movzx eax, byte [rdx]
mov byte [r8 + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x140173080
lea rcx, [rsp + 0x20]
mov rax, rbx
inc rax
cmp byte [rcx + rax], 0
jne 0x140173097
cdqe
cmp byte [rsp + rax + 0x1f], 0x2f
je 0x1401730c5
lea rcx, [rsp + 0x20]
dec rcx
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x1401730b1
movzx eax, word [0x14019d65c]
mov word [rcx], ax
lea rcx, [rsp + 0x20]
dec rcx
nop dword [rax]
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x1401730d0
movzx eax, word [0x14019e27c]
lea rdx, [rsp + 0x20]
mov word [rcx], ax
xor ecx, ecx
call fcn.140174160
lea rdx, [rsp + 0x130]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rcx, rax
call fcn.140172320
mov qword [rdi + 0x10], rax
cmp rax, 0xffffffffffffffff
jne 0x140173172
xor eax, eax
jmp 0x140173211
lea rdx, [rsp + 0x130]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
movsxd rcx, eax
call fcn.140172320
test rax, rax
jne 0x140173172
mov rax, qword gs:[0x58]
mov ebx, 0x2fe0
add rbx, qword [rax]
mov rax, qword [rbx]
test rax, rax
jne 0x140173153
call fcn.140176664
cmp dword [rax], 0x12
jne 0x14017316b
mov rax, qword [rbx]
test rax, rax
jne 0x140173165
call fcn.140176664
mov dword [rax], 0
xor eax, eax
jmp 0x140173211
test byte [rsp + 0x130], 0x10
lea rdx, [rsp + 0x15c]
mov ecx, 4
mov qword [rsp + 0x390], r15
mov eax, 8
mov qword [r14 + 8], 0
cmovne eax, ecx
xor ecx, ecx
mov byte [r14 + 0x120], al
mov eax, 0x120
mov word [r14 + 0x10], ax
call fcn.140173db0
mov r8d, 0x104
lea rcx, [r14 + 0x14]
mov rdx, qword [rax]
call fcn.140174050
nop dword [rax]
inc rbx
cmp byte [r14 + rbx + 0x14], 0
jne 0x1401731d0
mov rax, qword gs:[0x58]
mov edx, 0x2fe0
mov word [r14 + 0x12], bx
mov rcx, qword [rax]
mov rax, qword [rdx + rcx]
test rax, rax
jne 0x1401731ff
call fcn.140176664
mov r15, qword [rsp + 0x390]
mov dword [rax], 0
lea rax, [r14 + 8]
lea r11, [rsp + 0x380]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop r14
ret
Function at 0x140173a70
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov edi, edx
mov r8d, ecx
xor ebx, ebx
xor edx, edx
lea ecx, [rbx + 1]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rcx, rax
call fcn.140172370
mov rsi, rax
test rax, rax
jne 0x140173ab4
or eax, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
test edi, edi
je 0x140173b0d
cmp edi, 9
je 0x140173aec
cmp edi, 0x16
je 0x140173aec
mov rax, qword gs:[0x58]
mov edx, 0x2fe0
mov rcx, qword [rax]
mov rax, qword [rdx + rcx]
test rax, rax
jne 0x140173ae1
call fcn.140176664
mov dword [rax], reloc.WS2_32.dll_shutdown
or ebx, 0xffffffff
jmp 0x140173b0d
or edx, 0xffffffff
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
movsxd rcx, eax
call fcn.140172320
mov ecx, ebx
or ebx, 0xffffffff
test rax, rax
cmove ecx, ebx
mov ebx, ecx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

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

Disassembly:
sub rsp, 0x28
mov rax, qword gs:[0x58]
mov rdx, rcx
mov ecx, 0x33e0
add rcx, 0x20
add rcx, qword [rax]
call fcn.1401741c0
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
add rsp, 0x28
ret

Function at 0x14017637c
Capabilities:
Allocate thread local storage

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
lea r9, str.FlsAlloc
xor ecx, ecx
lea r8, [0x140224718]
lea rdx, str.FlsAlloc
call fcn.1401761a4
mov rbx, rax
test rax, rax
je 0x1401763bc
mov rcx, rax
call fcn.140174c3c
mov rcx, rdi
call rbx
jmp 0x1401763c2
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140176424
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, str.FlsSetValue
mov edi, ecx
lea rdx, str.FlsSetValue
mov ecx, 3
lea r8, [0x140224750]
call fcn.1401761a4
mov rsi, rax
test rax, rax
je 0x140176470
mov rcx, rax
call fcn.140174c3c
mov rdx, rbx
mov ecx, edi
call rsi
jmp 0x14017647b
mov rdx, rbx
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14017693c
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x140176710
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140176710
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140176710
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140176710
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140176710
cmp dword [rcx + 0x84], 0xe
jbe 0x140176710
cmp dword [rcx + 0xf8], esi
je 0x140176710
mov ecx, r14d
call fcn.140176858
mov ecx, 2
call fcn.14018d1f0
nop
cmp byte [0x140271d50], 0
jne 0x1401767da
mov r15d, 1
mov eax, r15d
xchg dword [0x140271d40], eax
test ebx, ebx
jne 0x140176783
mov rdi, qword [0x14026cc00]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x140271d48]
cmp rcx, rax
je 0x14017677a
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [0x140199890]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x140272408]
jmp 0x14017678f
cmp ebx, r15d
jne 0x140176795
lea rcx, [0x140272420]
call fcn.14018c580
nop
test ebx, ebx
jne 0x1401767ac
lea rdx, [0x140199c70]
lea rcx, [0x140199c50]
call fcn.14018bf64
lea rdx, [0x140199e38]
lea rcx, [0x140199c78]
call fcn.14018bf64
movzx eax, byte [0x140271d50]
test esi, esi
cmove eax, r15d
mov byte [0x140271d50], al
jmp 0x1401767da
mov ecx, 2
call fcn.14018d244
test esi, esi
jne 0x1401767f1
mov ecx, r14d
call fcn.14017680c
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x1401766a0

Function at 0x14018f3d4
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rdx, rcx
test rcx, rcx
jne 0x14018f3b1
call fcn.140176664
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.14018cbc0
or eax, 0xffffffff
jmp 0x14018f3ce
sub dword [rcx + 0x10], 1
jns 0x14018f3c0
add rsp, 0x28
jmp fcn.14018fb20
mov rax, qword [rcx]
movzx ecx, byte [rax]
inc rax
mov qword [rdx], rax
mov eax, ecx
add rsp, 0x28
ret
jmp 0x14018f390
Function at 0x14018fb20
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x14018f9c0
call fcn.140176664
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.14018cbc0
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14018f9a8
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x14018f9a8
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x14018f9f2
lock or dword [rax + 0x14], 0x10
jmp 0x14018f9a8
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x14018fa0f
mov rcx, qword [rbp + 0x10]
call fcn.140195240
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.140186614
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.14018a088
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x14018fa66
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x14018f9a8
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x14018fad2
mov rcx, qword [rbp + 0x10]
call fcn.140186614
cmp eax, 0xffffffff
je 0x14018fab9
mov rcx, qword [rbp + 0x10]
call fcn.140186614
cmp eax, 0xfffffffe
je 0x14018fab9
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.140186614
movsxd rdi, eax
lea rsi, [0x140271eb0]
mov rcx, rbx
sar rdi, 6
call fcn.140186614
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x14018fac0
lea rax, [0x14026cef0]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14018fad2
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x14018fb08
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x14018fb04
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x14018fb04
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x14018f9ab
jmp 0x14018f978
Function at 0x140190734
Capabilities:
Create thread
Print debug messages

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, 0x50
mov esi, r8d
mov r14, rdx
mov rbx, rcx
call fcn.14018dbe0
mov bpl, al
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor edi, edi
test eax, eax
je 0x140190787
test rbx, rbx
je 0x140190778
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test bpl, bpl
je 0x140190787
mov edi, 4
jmp 0x140190830
call fcn.14018d9e8
test al, al
jne 0x1401907a4
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
neg eax
sbb edi, edi
neg edi
add edi, 3
jmp 0x140190830
test bpl, bpl
je 0x140190807
mov qword [rsp + 0x28], rdi
lea r9, [rsp + 0x30]
lea r8, [0x14019070c]
mov dword [rsp + 0x20], edi
xor edx, edx
mov qword [rsp + 0x30], r14
xor ecx, ecx
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x40], esi
mov dword [rsp + 0x44], edi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140190830
xor r8d, r8d
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
mov rcx, rbx
test eax, eax
je 0x140190801
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140190830
mov edi, dword [rsp + 0x44]
jmp 0x1401907f9
call fcn.14018db0c
test al, al
jne 0x140190818
bts esi, 0x15
xor ecx, ecx
jmp 0x140190820
call fcn.14018da44
mov rcx, rax
mov r9d, esi
mov r8, r14
mov rdx, rbx
call fcn.14018d8d4
mov edi, eax
mov rbx, qword [rsp + 0x60]
mov eax, edi
mov rdi, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop r14
ret
Function at 0x1400292ec
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.14001c9b4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001c9b4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14002943c
cmp rax, 0xffffffffffffffff
je 0x14002943c
xor edi, edi
test rbp, rbp
jle 0x1400293e7
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001f2e0
mov rbx, rax
test rax, rax
jne 0x140029374
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400293dd
mov edx, 0x8000
mov ecx, r14d
call fcn.14001a2e8
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.14001d690
cmp eax, 0xffffffff
je 0x1400293bd
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140029384
mov edx, r15d
mov ecx, r14d
call fcn.14001a2e8
jmp 0x1400293dd
cmp byte [rsi + 0x38], dil
je 0x1400293d4
cmp dword [rsi + 0x34], 5
jne 0x1400293d4
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400293dd
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001b07c
jmp 0x140029450
jns 0x140029450
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001c9b4
cmp rax, 0xffffffffffffffff
jne 0x140029408
cmp byte [rsi + 0x30], dil
je 0x140029450
mov edi, dword [rsi + 0x2c]
jmp 0x140029450
mov ecx, r14d
call fcn.1400187a4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140029450
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 0x140029450
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140029449
mov eax, dword [rsi + 0x2c]
jmp 0x14002944e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001c9b4
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 0x12475d0
Capabilities:
Encode data using xor

Disassembly:
jmp 0x12475da
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x1247603
pop rbp
sub rbp, 0x33
sub rbp, 0xe475d0
sub rsp, 0x20
jmp 0x1247622
mov rax, 0xe475d0
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0xffffffffcac63545
xor byte [rax], dl
inc rax
dec rcx
jne 0x1247641
jmp 0x1247658
or eax, 0xccceaccc
jns 0x12476a4
or eax, 0x444d84c4
or eax, 0x820dac44
test dword [rcx + 0x45], eax
or eax, 0x456d8782
or eax, 0x440da7b2
test dh, cl
invalid
jl 0x1247670
sub eax, dword [rbp + 0x45]
lodsd eax, dword [rsi]
lodsb al, byte [rsi]
push rbx
test byte [r13 + 0xd547447], r13b
invalid