joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001113
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x14001fe84
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, [0x14007fbf0]
mov edi, ecx
lea rdx, str.FlsSetValue
mov ecx, 3
lea r8, [0x14007fbe8]
call fcn.14001f7dc
mov rdx, rbx
mov ecx, edi
test rax, rax
je 0x14001fec4
call qword [case.0x140019d66.0]
jmp 0x14001feca
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140001140
Capabilities:
Query environment variable

Disassembly:
jmp 0x14005a658
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 r14d, r14d
mov rbx, rax
test rax, rax
je 0x14005a72a
mov rsi, rax
cmp word [rax], r14w
je 0x14005a6ab
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], r14w
jne 0x14005a693
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], r14w
jne 0x14005a68f
mov qword [rsp + 0x38], r14
sub rsi, rbx
mov qword [rsp + 0x30], r14
add rsi, 2
sar rsi, 1
mov r8, rbx
mov r9d, esi
mov dword [rsp + 0x28], r14d
xor edx, edx
mov qword [rsp + 0x20], r14
xor ecx, ecx
call fcn.1400010eb
movsxd rbp, eax
test eax, eax
je 0x14005a72a
mov rcx, rbp
call fcn.140001ce4
mov rdi, rax
test rax, rax
je 0x14005a71d
mov qword [rsp + 0x38], r14
mov r9d, esi
mov qword [rsp + 0x30], r14
mov r8, rbx
mov dword [rsp + 0x28], ebp
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
call fcn.1400010eb
test eax, eax
je 0x14005a71d
mov rsi, rdi
mov rdi, r14
jmp 0x14005a720
mov rsi, r14
mov rcx, rdi
call fcn.140003bca
jmp 0x14005a72d
mov rsi, r14
test rbx, rbx
je 0x14005a73b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rbx, qword [rsp + 0x50]
mov rax, rsi
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x140001348
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x14001fe2c
push rbx
sub rsp, 0x20
mov ebx, ecx
lea r9, [0x14007fbd0]
mov ecx, 2
lea r8, [0x14007fbc8]
lea rdx, str.FlsGetValue
call fcn.14001f7dc
mov ecx, ebx
test rax, rax
je 0x14001fe66
add rsp, 0x20
pop rbx
jmp qword [case.0x140019d66.0]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x14000186b
Capabilities:
Check if file exists

Disassembly:
jmp 0x140016570
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov rbx, rcx
mov ebp, r8d
xor ecx, ecx
mov r14d, edx
xor esi, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rbx, rbx
je 0x1400166d1
movzx eax, word [rbx]
cmp ax, 0x5c
je 0x1400165dc
cmp ax, 0x2f
je 0x1400165dc
movzx ecx, ax
call fcn.140001e24
test eax, eax
je 0x1400166d1
cmp word [rbx + 2], 0x3a
jne 0x1400166d1
movzx eax, word [rbx + 4]
cmp ax, 0x5c
je 0x1400165dc
cmp ax, 0x2f
jne 0x1400166d1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400166ca
test al, 0x50
jne 0x1400166ca
xor r9d, r9d
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov edx, 0x80000000
mov rcx, rbx
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14001662d
lea ecx, [rax + 0x21]
jmp 0x1400166d6
mov rcx, rbx
call fcn.1400120d0
test eax, eax
jne 0x14001669f
test ebp, ebp
mov dword [rsp + 0x60], esi
lea rdx, [rsp + 0x60]
mov rcx, rbx
cmove rdx, rsi
call fcn.140001ccb
test eax, eax
je 0x140016669
test ebp, ebp
je 0x14001669f
cmp dword [rsp + 0x60], esi
jne 0x14001669f
mov ecx, 0x80092009
call qword [sym.imp.KERNEL32.dll_SetLastError]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call fcn.140012870
test eax, eax
jne 0x14001669f
test rdi, rdi
je 0x14001669b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1400166df
mov r8d, r14d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
test rdi, rdi
je 0x1400166dc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, ebx
jmp 0x1400166d6
mov ecx, 0x7e
jmp 0x1400166d6
mov ecx, 0xa0
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret

Function at 0x14000190b
Capabilities:
Query environment variable

Disassembly:
jmp 0x14005a79c
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
je 0x14005a823
mov rbp, rax
cmp word [rax], si
je 0x14005a7e5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14005a7cc
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14005a7c8
sub rbp, rbx
add rbp, 2
sar rbp, 1
add rbp, rbp
mov rcx, rbp
call fcn.140001ce4
mov rdi, rax
test rax, rax
je 0x14005a813
mov r8, rbp
mov rdx, rbx
mov rcx, rax
call fcn.140002ae0
mov rsi, rdi
xor ecx, ecx
call fcn.140003bca
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rbx, qword [rsp + 0x30]
mov rax, rsi
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400019fb
Capabilities:
Enumerate pe sections

Disassembly:
jmp 0x140073a30
movsxd r8, dword [rcx + 0x3c]
xor r9d, r9d
add r8, rcx
mov r10, rdx
movzx eax, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rax, 0x18
add rax, r8
test r11d, r11d
je 0x140073a71
mov edx, dword [rax + 0xc]
cmp r10, rdx
jb 0x140073a65
mov ecx, dword [rax + 8]
add ecx, edx
cmp r10, rcx
jb 0x140073a73
inc r9d
add rax, 0x28
cmp r9d, r11d
jb 0x140073a53
xor eax, eax
ret

Function at 0x140001ac3
Capabilities:
Get geographical location

Disassembly:
jmp 0x14005cc1c
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov ebx, r9d
mov rdi, r8
mov esi, edx
lea r9, [0x140083048]
mov rbp, rcx
lea r8, [0x140083040]
lea rdx, str.GetLocaleInfoEx
mov ecx, 0xb
call fcn.14005c028
mov rcx, rbp
test rax, rax
je 0x14005cc72
mov r9d, ebx
mov r8, rdi
mov edx, esi
call qword [case.0x140019d66.0]
jmp 0x14005cc89
xor edx, edx
call fcn.140002540
mov ecx, eax
mov r9d, ebx
mov r8, rdi
mov edx, esi
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140001be5
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x14006da84
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x140095790]
xor rax, rsp
mov qword [rsp + 0x30], rax
xor r11d, r11d
lea r10, [0x140099710]
test r9, r9
lea rdi, [0x14007b2d0]
mov rax, rdx
mov r15, rdx
cmovne r10, r9
test rdx, rdx
lea ebp, [r11 + 1]
cmovne rdi, rdx
mov r14d, ebp
cmovne r14, r8
neg rax
sbb rsi, rsi
and rsi, rcx
test r14, r14
jne 0x14006daed
mov rax, 0xfffffffffffffffe
jmp 0x14006dc41
movzx r8d, word [r10 + 6]
test r8w, r8w
jne 0x14006db5d
mov bl, byte [rdi]
inc rdi
test bl, bl
js 0x14006db19
test rsi, rsi
je 0x14006db0b
movzx ecx, bl
mov dword [rsi], ecx
test bl, bl
setne r11b
mov rax, r11
jmp 0x14006dc41
mov al, bl
and al, 0xe0
cmp al, 0xc0
jne 0x14006db26
mov r9b, 2
jmp 0x14006db42
mov al, bl
and al, 0xf0
cmp al, 0xe0
jne 0x14006db33
mov r9b, 3
jmp 0x14006db42
mov al, bl
and al, 0xf8
cmp al, 0xf0
jne 0x14006dc2d
mov r9b, 4
movzx eax, r9b
mov ecx, 7
sub ecx, eax
mov edx, ebp
shl edx, cl
mov r8b, r9b
sub edx, ebp
movzx eax, bl
and edx, eax
jmp 0x14006db82
mov r9b, byte [r10 + 4]
mov edx, dword [r10]
lea eax, [r9 - 2]
cmp al, 2
ja 0x14006dc2d
cmp r8b, bpl
jb 0x14006dc2d
cmp r8b, r9b
jae 0x14006dc2d
movzx ebp, r8b
cmp rbp, r14
mov ebx, ebp
cmovae rbx, r14
jmp 0x14006dbb1
mov cl, byte [rdi]
inc rdi
mov al, cl
and al, 0xc0
cmp al, 0x80
jne 0x14006dc2d
mov eax, edx
movzx ecx, cl
and ecx, 0x3f
shl eax, 6
mov edx, ecx
or edx, eax
mov rax, rdi
sub rax, r15
cmp rax, rbx
jb 0x14006db91
cmp rbx, rbp
jae 0x14006dbde
movzx eax, r9b
sub r8b, bl
mov word [r10 + 4], ax
movzx eax, r8b
mov word [r10 + 6], ax
mov dword [r10], edx
jmp 0x14006dae1
lea eax, [rdx - 0xd800]
cmp eax, 0x7ff
jbe 0x14006dc2d
cmp edx, 0x110000
jae 0x14006dc2d
movzx eax, r9b
mov dword [rsp + 0x20], 0x80
mov dword [rsp + 0x24], 0x800
mov dword [rsp + 0x28], 0x10000
cmp edx, dword [rsp + rax*4 + 0x18]
jb 0x14006dc2d
test rsi, rsi
je 0x14006dc1c
mov dword [rsi], edx
xor eax, eax
movzx ecx, r8b
neg edx
mov qword [r10], rax
sbb eax, eax
and eax, ecx
jmp 0x14006dc41
xor eax, eax
mov qword [r10], rax
call fcn.14000274d
mov dword [rax], 0x2a
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140003828
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140001e15
Capabilities:
Get session user name

Disassembly:
jmp 0x14000b920
push rbx
sub rsp, 0x20
cmp byte [0x140096ac0], 0
jne 0x14000b974
lea rbx, [0x140096ac0]
mov dword [rsp + 0x30], 0x101
mov rcx, rbx
lea rdx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x14000b96b
mov r9, 0xffffffffffffffff
lea r8, [0x14007bb08]
mov edx, 0x101
mov rcx, rbx
call fcn.140002d15
mov rax, rbx
add rsp, 0x20
pop rbx
ret
lea rax, [0x140096ac0]
add rsp, 0x20
pop rbx
ret
Function at 0x14000204a
Capabilities:
Check if file exists

Disassembly:
jmp 0x140014cd0
mov qword [rsp + 0x20], rbx
push rbp
sub rsp, 0x30
mov rbx, rcx
xor ebp, ebp
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rbx, rbx
je 0x140014f03
xor edx, edx
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rbx + rax*2], dx
jne 0x140014d00
test rax, rax
je 0x140014d34
xor ecx, ecx
movzx r8d, word [rbx + rcx*2]
cmp r8w, 0x5c
je 0x140014f03
cmp r8w, 0x2f
je 0x140014f03
inc edx
mov ecx, edx
cmp rcx, rax
jb 0x140014d10
mov qword [rsp + 0x40], rsi
mov rcx, rbx
mov qword [rsp + 0x48], rdi
call fcn.140003094
mov rsi, rax
test rax, rax
je 0x140014e2e
mov qword [rsp + 0x50], r14
call fcn.140003c29
mov r14, rax
test rax, rax
je 0x140014e1b
mov rcx, rsi
call fcn.14000ef50
test eax, eax
je 0x140014e04
lea rax, str.system32_
mov qword [rsp + 0x20], rax
lea rdi, [rsp + 0x20]
lea rax, str.SystemRoot_system32_
mov qword [rsp + 0x28], rax
nop word [rax + rax]
mov rdx, qword [rdi]
mov rbx, 0xffffffffffffffff
nop word [rax + rax]
inc rbx
cmp word [rdx + rbx*2], bp
jne 0x140014db0
mov r8, rbx
mov rcx, rsi
call fcn.140001762
test eax, eax
je 0x140014dd8
add rdi, 8
lea rax, [rsp + 0x30]
cmp rdi, rax
jb 0x140014da0
jmp 0x140014de7
lea rdx, [rsi + rbx*2]
mov rcx, r14
call fcn.140013550
mov rbp, rax
lea rax, [rsp + 0x30]
cmp rdi, rax
jne 0x140014e12
mov rcx, rsi
call fcn.14000eee0
test eax, eax
je 0x140014e12
mov rbp, rsi
xor esi, esi
jmp 0x140014e12
mov rdx, rsi
mov rcx, r14
call fcn.140013550
mov rbp, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r14, qword [rsp + 0x50]
jmp 0x140014ecf
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7e
jne 0x140014ed8
mov rcx, rbx
call fcn.14000edb0
mov rdi, rax
test rax, rax
je 0x140014ed8
mov ecx, 0x37e4
call fcn.140012450
test eax, eax
je 0x140014e6d
lea rcx, [0x14007bd10]
call fcn.140001ef6
jmp 0x140014e72
call fcn.140003c29
mov rbx, rax
test rax, rax
je 0x140014ec6
mov rdx, rdi
mov rcx, rax
call fcn.140013550
mov rbp, rax
test rax, rax
je 0x140014ebd
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140014e9f
test al, 0x50
je 0x140014ebd
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x140014eb2
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor ebp, ebp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rbp, rbp
je 0x140014ed8
xor ecx, ecx
jmp 0x140014ee5
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140014eeb
lea ecx, [rax + 0x7e]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdi, qword [rsp + 0x48]
mov rax, rbp
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rbp
ret
mov ecx, 0xa0
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x58]
xor eax, eax
add rsp, 0x30
pop rbp
ret
Function at 0x140002270
Capabilities:
Parse pe header

Disassembly:
jmp 0x140073af0
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140073b1a
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x140073b1a
mov ecx, 0x20b
cmp word [rax + 0x18], cx
jne 0x140073b1a
mov eax, 1
ret
xor eax, eax
ret

Function at 0x1400025cc
Capabilities:
Check if file exists
Copy file
Get file size

Disassembly:
jmp 0x14000ac90
mov rax, rsp
push rsi
push rdi
push r14
sub rsp, 0x470
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov rax, qword [0x140095790]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov rdi, rcx
lea rbx, [rcx + 0x120]
mov qword [rsp + 0x28], rbx
test rbx, rbx
je 0x14000ace8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov sil, 1
mov byte [rsp + 0x30], sil
jmp 0x14000aced
movzx esi, byte [rsp + 0x30]
lea rdx, [rsp + 0x20]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14000ae47
cmp qword [rsp + 0x20], 0x100000
jle 0x14000ae47
mov rcx, rdi
call fcn.140003c7e
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x40]
call fcn.140002757
mov r9d, 0x103
lea r8, [rdi + 0x150]
lea edx, [r9 + 1]
lea rcx, [rsp + 0x40]
call fcn.14000172b
mov edx, 0x2e
lea rcx, [rsp + 0x40]
call fcn.1400039bd
test rax, rax
je 0x14000ae3e
lea rdx, str..old
mov rcx, rax
call fcn.14000167c
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x250]
call fcn.140002757
lea r8, [rsp + 0x40]
mov edx, 0x104
lea rcx, [rsp + 0x250]
call fcn.140003049
xor r14d, r14d
nop
lea rcx, [rsp + 0x250]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000adb9
bt eax, 0xa
jb 0x14000add6
mov edx, 0x5c
lea rcx, [rsp + 0x250]
call fcn.1400039bd
test rax, rax
je 0x14000adec
mov word [rax], r14w
jmp 0x14000ada0
lea rdx, [rsp + 0x250]
lea rcx, str.CLogger::ValidatePathForSymLink_:_Failed__s___
call fcn.1400029a5
jmp 0x14000ae3e
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.140001974
test eax, eax
je 0x14000ae3e
mov edx, 0x5c
lea rcx, [rsp + 0x40]
call fcn.1400039bd
test rax, rax
je 0x14000ae3e
xor r8d, r8d
lea rdx, [rsp + 0x40]
lea rcx, [rdi + 0x150]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x14000ae3e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.CLogger::MoveLogFile_:_CopyFile_failed_Error__0x_x_
call fcn.1400029a5
mov rcx, rdi
call fcn.14000185c
nop
test rbx, rbx
je 0x14000ae5a
test sil, sil
je 0x14000ae5a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.140003828
lea r11, [rsp + 0x470]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x14000276b
Capabilities:
Parse pe header

Disassembly:
jmp 0x140049864
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x14004962f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14004962f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14004962f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14004962f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14004962f
cmp dword [rcx + 0x84], 0xe
jbe 0x14004962f
cmp dword [rcx + 0xf8], 0
je 0x14004962f
mov ecx, ebx
call fcn.1400497c0
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.140049328
cmp dword [rbp + 0x20], 0
je 0x14004967c
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400496b4
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x1400495c8

Function at 0x140002829
Capabilities:
Terminate process

Disassembly:
jmp 0x140046e94
sub rsp, 0x28
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x140046eae
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
lea ecx, [r8 + 1]
call fcn.1400018a2
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000417
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]

Function at 0x1400028d8
Capabilities:
Delete file

Disassembly:
jmp 0x14000d430
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x140095790]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rdi, r8
lea rcx, [rsp + 0x20]
mov rbx, rdx
mov r8d, 0x208
xor edx, edx
mov ebp, r9d
xor esi, esi
call fcn.140002757
test rbx, rbx
je 0x14000d524
mov rcx, qword [rdi]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000d524
lea r9d, [rsi + 8]
mov r8d, 0x104
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFinalPathNameByHandleW]
dec eax
cmp eax, 0x102
ja 0x14000d4db
lea edx, [rsi + 0x3a]
lea rcx, [rsp + 0x20]
call fcn.1400039bd
test rax, rax
je 0x14000d4db
lea rcx, [rsp + 0x20]
cmp rax, rcx
jbe 0x14000d4db
lea rdx, [rax - 2]
mov rcx, rbx
call fcn.14000367f
test eax, eax
jne 0x14000d4db
mov esi, 1
mov eax, esi
jmp 0x14000d526
lea rdx, [rsp + 0x20]
lea rcx, str.CLogger::ValidatePathFromHandle_:_Failed__s___
call fcn.1400029a5
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi], 0xffffffffffffffff
cmp ebp, 0xb7
je 0x14000d520
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14000d520
mov rdx, rbx
lea rcx, str.CLogger::ValidatePathFromHandle_:_DeleteFile_Failed__s___
call fcn.1400029a5
mov eax, esi
jmp 0x14000d526
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140003828
mov rbx, qword [rsp + 0x260]
add rsp, 0x240
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400029a5
Capabilities:
Print debug messages

Disassembly:
jmp 0x14000bc90
mov r11, rsp
mov qword [r11 + 8], rcx
mov qword [r11 + 0x10], rdx
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x20], r9
push rbx
push rdi
sub rsp, 0x868
mov rax, qword [0x140095790]
xor rax, rsp
mov qword [rsp + 0x850], rax
mov rbx, rcx
lea rdi, [r11 + 0x10]
call fcn.1400027e8
mov qword [rsp + 0x28], rdi
lea rdx, [rsp + 0x450]
mov r9, rbx
mov qword [rsp + 0x20], 0
mov r8d, 0x1ff
mov rcx, qword [rax]
or rcx, 1
call fcn.140003571
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
movzx ecx, word [rsp + 0x4e]
movzx edx, word [rsp + 0x4c]
movzx r10d, word [rsp + 0x4a]
movzx r9d, word [rsp + 0x48]
movzx r8d, word [rsp + 0x46]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], ecx
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x28], edx
lea rdx, str.__02i:_02i:_02i:_02i:_03i___5d_
mov dword [rsp + 0x20], r10d
call fcn.140001208
lea rax, [rsp + 0x50]
sub rax, 2
nop dword [rax]
cmp word [rax + 2], 0
lea rax, [rax + 2]
jne 0x14000bd50
lea r8, [rsp + 0x450]
xor edx, edx
nop word [rax + rax]
movzx ecx, word [r8 + rdx*2]
mov word [rax + rdx*2], cx
lea rdx, [rdx + 1]
test cx, cx
jne 0x14000bd70
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rsp + 0x850]
xor rcx, rsp
call fcn.140003828
add rsp, 0x868
pop rdi
pop rbx
ret

Function at 0x140002b53
Capabilities:
Get session user name

Disassembly:
jmp 0x14000b9a0
push rbx
sub rsp, 0x20
cmp word [0x1400968b0], 0
jne 0x14000b9f5
lea rbx, [0x1400968b0]
mov dword [rsp + 0x30], 0x101
mov rcx, rbx
lea rdx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x14000b9ec
mov r9, 0xffffffffffffffff
lea r8, [0x14007bb00]
mov edx, 0x101
mov rcx, rbx
call fcn.14000172b
mov rax, rbx
add rsp, 0x20
pop rbx
ret
lea rax, [0x1400968b0]
add rsp, 0x20
pop rbx
ret

Function at 0x140002b71
Capabilities:
Terminate process

Disassembly:
jmp 0x140019ea4
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]

Function at 0x140002bda
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x14001fd7c
push rbx
sub rsp, 0x20
mov rbx, rcx
lea r9, [0x14007fb90]
xor ecx, ecx
lea r8, [0x14007fb88]
lea rdx, str.FlsAlloc
call fcn.14001f7dc
test rax, rax
je 0x14001fdb5
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp qword [case.0x140019d66.0]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x140002fd6
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x14005ca30
push rbx
sub rsp, 0x20
mov ebx, ecx
lea r9, [0x140082f80]
mov ecx, 5
lea r8, [0x140082f78]
lea rdx, str.FlsGetValue
call fcn.14005c028
mov ecx, ebx
test rax, rax
je 0x14005ca6a
add rsp, 0x20
pop rbx
jmp qword [case.0x140019d66.0]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsGetValue]