joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140053928
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x28
cmp byte [0x1400acd80], 1
jne 0x140053940
mov al, byte [0x1400acd81]
jmp 0x140053aba
mov byte [0x1400acd80], 1
lea rcx, str.advapi32.dll
call fcn.14004f95d
mov qword [0x1400acd88], rax
test rax, rax
je 0x140053ab2
lea rdx, str.GetSecurityInfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400acd90], rax
test rax, rax
je 0x140053ab2
mov rcx, qword [0x1400acd88]
test rcx, rcx
je 0x140053a73
lea rdx, str.SetSecurityInfo
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400acd98], rax
test rax, rax
je 0x140053ab2
mov rcx, qword [0x1400acd88]
test rcx, rcx
je 0x140053a80
lea rdx, str.OpenProcessToken
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400acda0], rax
test rax, rax
je 0x140053ab2
mov rcx, qword [0x1400acd88]
test rcx, rcx
je 0x140053a8d
lea rdx, str.GetTokenInformation
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400acda8], rax
test rax, rax
je 0x140053ab2
mov rcx, qword [0x1400acd88]
test rcx, rcx
je 0x140053a9a
lea rdx, [0x140094707]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400acdb0], rax
test rax, rax
je 0x140053ab2
mov rcx, qword [0x1400acd88]
test rcx, rcx
je 0x140053aa7
lea rdx, [0x140094aac]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400acdb8], rax
test rax, rax
je 0x140053ab2
mov rcx, qword [0x1400acd88]
test rcx, rcx
je 0x140053abf
lea rdx, str.SetEntriesInAclA
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
jmp 0x140053ac1
mov qword [0x1400acd98], 0
jmp 0x140053ab2
mov qword [0x1400acda0], 0
jmp 0x140053ab2
mov qword [0x1400acda8], 0
jmp 0x140053ab2
mov qword [0x1400acdb0], 0
jmp 0x140053ab2
mov qword [0x1400acdb8], 0
xor eax, eax
mov byte [0x1400acd81], al
add rsp, 0x28
ret
xor eax, eax
mov qword [0x1400acdc0], rax
test rax, rax
setne al
jmp 0x140053ab4

Function at 0x1400542d4
Capabilities:
Set current directory

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rax, qword [0x1400ab520]
xor rax, rsp
mov qword [rsp + 0x40], rax
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x1400542f7
xor esi, esi
jmp 0x14005435d
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdi, [rsp + 0x38]
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov ecx, 0x1300
xor edx, edx
mov r8d, eax
mov r9d, 0x400
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov rsi, qword [rdi]
lea rdx, [0x14009f376]
mov rcx, rsi
call fcn.1400691d0
lea rcx, [0x140093bc5]
mov edx, eax
mov r8, rsi
call fcn.14004b6ab
mov rsi, rax
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400575f0
mov rax, rsi
add rsp, 0x48
pop rdi
pop rsi
ret
Function at 0x140054374
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov ecx, 0x100
mov edx, 1
xor r8d, r8d
call fcn.1400087f8
mov rsi, rax
mov ecx, 0x100
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edi, eax
cmp eax, 0x101
jb 0x1400543b9
mov edx, edi
mov r8d, 1
mov rcx, rsi
call fcn.140008831
mov rsi, rax
mov ecx, edi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov rax, rsi
add rsp, 0x28
pop rdi
pop rsi
ret

Function at 0x1400543ce
Capabilities:
Get file size

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
mov r15, r9
mov r14, r8
mov rsi, rdx
mov rax, qword [0x1400ab520]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor edi, edi
mov edx, 0x80000000
mov r8d, 1
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
je 0x1400544df
mov rbx, rax
mov ecx, 1
mov edx, 8
xor r8d, r8d
call fcn.1400087f8
mov rdi, rax
mov qword [rax], rbx
test rsi, rsi
je 0x14005446d
lea r12, [rsp + 0x48]
mov rcx, rbx
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [r12]
shl rcx, 0x20
mov eax, eax
or rax, rcx
mov qword [rsi], rax
mov rsi, qword [rsp + 0xb0]
mov rax, r14
or rax, r15
je 0x1400544d4
lea r8, [rsp + 0x48]
lea r9, [rsp + 0x40]
mov rcx, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileTime]
test r15, r15
je 0x1400544b3
movabs rax, 0xd6bf94d5e57a42bd
mul qword [rsp + 0x48]
shr rdx, 0x17
add edx, 0x49ef6f00
mov dword [r15], edx
test r14, r14
je 0x1400544d4
movabs rax, 0xd6bf94d5e57a42bd
mul qword [rsp + 0x40]
shr rdx, 0x17
add edx, 0x49ef6f00
mov dword [r14], edx
test rsi, rsi
je 0x1400544df
mov dword [rsi], 0xffffffff
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400575f0
mov rax, rdi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret

Function at 0x1400544fd
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rax, qword [0x1400ab520]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rcx, qword [rcx]
mov qword [rsp + 0x20], 0
lea rsi, [rsp + 0x2c]
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
xor edi, edi
cmp eax, 1
sbb edi, edi
or edi, dword [rsi]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400575f0
mov eax, edi
add rsp, 0x38
pop rdi
pop rsi
ret
Function at 0x1400545c6
Capabilities:
Get file size

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, rdx
mov rax, qword [0x1400ab520]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor edi, edi
mov edx, 0x40000000
mov r8d, 1
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
je 0x140054656
mov rbx, rax
mov ecx, 1
mov edx, 8
xor r8d, r8d
call fcn.1400087f8
mov rdi, rax
mov qword [rax], rbx
test rsi, rsi
je 0x140054656
lea r14, [rsp + 0x3c]
mov rcx, rbx
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [r14]
shl rcx, 0x20
mov eax, eax
or rax, rcx
mov qword [rsi], rax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400575f0
mov rax, rdi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x140054670
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rax, qword [0x1400ab520]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rcx, qword [rcx]
mov qword [rsp + 0x20], 0
lea rsi, [rsp + 0x2c]
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor edi, edi
cmp eax, 1
sbb edi, edi
or edi, dword [rsi]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400575f0
mov eax, edi
add rsp, 0x38
pop rdi
pop rsi
ret

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

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140054799
and eax, 0x10
cmp eax, 1
mov eax, 2
sbb eax, 0
jmp 0x14005479b
xor eax, eax
add rsp, 0x28
ret

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

Disassembly:
push rsi
push rdi
sub rsp, 0x168
mov rdi, rcx
mov rax, qword [0x1400ab520]
xor rax, rsp
mov qword [rsp + 0x160], rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, 1
cmp eax, 0xffffffff
jne 0x1400549b8
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp rax, 0xffffffffffffffff
je 0x1400549b6
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
mov esi, 2
jmp 0x1400549b8
xor esi, esi
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1400575f0
mov eax, esi
add rsp, 0x168
pop rdi
pop rsi
ret

Function at 0x140054c39
Capabilities:
Create directory

Disassembly:
sub rsp, 0x28
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
setne al
add rsp, 0x28
ret
Function at 0x140054d3b
Capabilities:
Check for time delay via gettickcount

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x258
mov rax, qword [0x1400ab520]
xor rax, rsp
mov qword [rsp + 0x250], rax
cmp qword [0x1400ac608], 0
je 0x140054dbe
lea rsi, [rsp + 0x40]
mov qword [rsi], 0xffffffffffffffff
mov dword [rsi + 8], 0
lea rcx, [0x140054d28]
lea rdx, [0x140054d13]
mov r8, rsi
call fcn.14004cb98
mov r14d, dword [rsi + 8]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400575f0
mov eax, r14d
add rsp, 0x258
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebp, eax
call fcn.140054185
mov r14d, 0xffffffff
cmp rax, 0xffffffffffffffff
je 0x140054d97
mov rdi, rax
mov rcx, rax
call fcn.140052142
test al, al
je 0x140054df3
mov edx, 2
mov rcx, rdi
call fcn.140051b84
lea rbx, [rsp + 0x3c]
xor r15d, r15d
mov r12, qword [sym.imp.KERNEL32.dll_GetTickCount]
lea r13, [rsp + 0x30]
lea rsi, [rsp + 0x40]
mov ecx, ebp
mov rdx, rbx
call fcn.140049f77
test al, al
je 0x140054e61
call r12
mov ecx, dword [rsp + 0x3c]
mov edx, ecx
sub ecx, eax
sub eax, ebp
sub edx, ebp
cmp eax, edx
cmova ecx, r15d
movsxd rax, ecx
imul rcx, rax, 0x10624dd3
mov rdx, rcx
shr rdx, 0x3f
sar rcx, 0x26
add ecx, edx
mov dword [rsp + 0x30], ecx
imul ecx, ecx, 0x3e8
sub eax, ecx
imul eax, eax, 0x3e8
mov dword [rsp + 0x34], eax
mov rax, r13
jmp 0x140054e63
xor eax, eax
mov qword [rsp + 0x48], rdi
mov dword [rsp + 0x40], 1
mov qword [rsp + 0x20], rax
mov ecx, 1
mov rdx, rsi
xor r8d, r8d
xor r9d, r9d
call qword [0x1400ac610]
test eax, eax
js 0x140054d97
jne 0x140054e9c
mov ebp, dword [rsp + 0x3c]
jmp 0x140054e0c
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, 1
mov rcx, rdi
call fcn.140051b84
xor r14d, r14d
jmp 0x140054d97
Function at 0x140054eb7
Capabilities:
Create thread

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x68
mov ebx, edx
mov rsi, rcx
mov rax, qword [0x1400ab520]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov ecx, 1
call fcn.140059294
mov rcx, rsi
mov rdx, rax
call fcn.140067710
mov ecx, 1
call fcn.140059294
mov rcx, rax
call fcn.140066fb0
call fcn.140054185
cmp rax, 0xffffffffffffffff
sete al
test al, bl
jne 0x140054faa
cmp qword [0x1400ac608], 0
je 0x140054faa
xor ecx, ecx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateEventA]
lea r9, [rsp + 0x40]
mov qword [r9], rax
mov qword [r9 + 8], 0
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
lea r8, [0x140055038]
xor ecx, ecx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x140055009
mov r14, rax
lea rdi, [0x140054d28]
lea rbx, [0x140054d13]
lea rsi, [rsp + 0x50]
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], 0
mov rcx, rdi
mov rdx, rbx
mov r8, rsi
call fcn.14004cb98
cmp dword [rsp + 0x58], 0
js 0x140054fbe
je 0x140054f7f
jmp 0x140054fd7
xor ecx, ecx
call fcn.140059294
mov rcx, rax
call fcn.14004bc6a
mov rsi, rax
jmp 0x140054fef
lea rcx, str.ret___0
lea rdx, str..._windows_winsftp.c
mov r8d, 0x26e
call fcn.140065644
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r14
call rsi
mov rcx, qword [rsp + 0x40]
call rsi
mov rsi, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400575f0
mov rax, rsi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r14
ret
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 2
call fcn.140059294
lea rdx, str.Unable_to_create_command_input_thread_n
mov rcx, rax
call fcn.140009135
mov ecx, 1
call fcn.14004ced8
int3
Function at 0x1400554e7
Capabilities:
Query or enumerate registry value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rax, qword [0x1400ab520]
xor rax, rsp
mov qword [rsp + 0x38], rax
test rcx, rcx
je 0x1400555bf
mov rdi, rdx
mov rbx, rcx
mov rcx, qword [rcx]
lea r15, [rsp + 0x30]
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], 0
xor esi, esi
lea r9, [rsp + 0x34]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1400555c1
cmp dword [rsp + 0x34], 1
jne 0x1400555c1
mov r14d, dword [rsp + 0x30]
inc r14d
mov edx, 1
mov rcx, r14
xor r8d, r8d
call fcn.1400087f8
mov rsi, rax
mov rcx, qword [rbx]
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
mov rdx, rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1400555b7
cmp dword [rsp + 0x34], 1
jne 0x1400555b7
mov eax, dword [rsp + 0x30]
cmp eax, r14d
jb 0x1400555af
lea rcx, str.size___allocsize
lea rdx, str..._windows_winstore.c
mov r8d, 0x92
call fcn.140065644
mov eax, dword [rsp + 0x30]
mov eax, eax
mov byte [rsi + rax], 0
jmp 0x1400555c1
mov rcx, rsi
call fcn.140008872
xor esi, esi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400575f0
mov rax, rsi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x1400555dd
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
sub rsp, 0x50
mov esi, r8d
mov rax, qword [0x1400ab520]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x3c], 4
test rcx, rcx
je 0x140055640
mov rcx, qword [rcx]
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x44]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140055640
mov eax, dword [rsp + 0x3c]
xor eax, 4
mov ecx, dword [rsp + 0x44]
xor ecx, 4
or ecx, eax
jne 0x140055640
mov esi, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400575f0
mov eax, esi
add rsp, 0x50
pop rsi
ret
Function at 0x140055adb
Capabilities:
Set registry value

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x40
mov r14, r9
mov rbx, r8
mov ebp, edx
mov rdi, rcx
mov rax, qword [0x1400ab520]
xor rax, rsp
mov qword [rsp + 0x38], rax
call fcn.14004bab7
mov rsi, rax
lea rdx, str._s__d:
mov rcx, rax
mov r8, rbx
mov r9d, ebp
call fcn.14004bbc6
mov rcx, rdi
mov rdx, rsi
call fcn.14004fcc0
lea rdx, str.SoftwareSimonTathamPuTTYSshHostKeys
lea r8, [rsp + 0x30]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x140055b79
mov rcx, r14
call fcn.140069a20
inc eax
mov rdx, qword [rsi]
mov rcx, qword [rsp + 0x30]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r14
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rsi
call fcn.14004bb34
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400575f0
nop
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret

Function at 0x140055b9a
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x440
mov rsi, rcx
mov rax, qword [0x1400ab520]
xor rax, rsp
mov qword [rsp + 0x438], rax
mov ecx, 1
call fcn.140055c64
cmp rax, 0xffffffffffffffff
je 0x140055c44
mov rdi, rax
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0x30]
lea r9, [rsp + 0x2c]
mov rcx, rax
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140055c3b
mov edx, dword [rsp + 0x2c]
test edx, edx
je 0x140055c3b
lea rbx, [rsp + 0x30]
lea r14, [rsp + 0x2c]
mov r15, qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rbx
call rsi
mov qword [rsp + 0x20], 0
mov rcx, rdi
mov rdx, rbx
mov r8d, 0x400
mov r9, r14
call r15
test eax, eax
je 0x140055c3b
mov edx, dword [rsp + 0x2c]
test edx, edx
jne 0x140055c0f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x438]
xor rcx, rsp
call fcn.1400575f0
nop
add rsp, 0x440
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140055f36
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov esi, edx
mov rdi, rcx
mov rax, qword [0x1400ab520]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov ecx, 2
call fcn.140055c64
cmp rax, 0xffffffffffffffff
je 0x140055f8a
mov rbx, rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
mov rcx, rax
mov rdx, rdi
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400575f0
nop
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret

Function at 0x140055fa0
Capabilities:
Check if file exists
Delete file

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, r8
mov rdi, rcx
test edx, edx
je 0x140055fff
xor eax, eax
xor ecx, ecx
cmp edx, 2
setne al
sete cl
lea r8d, [rax + rax*2]
mov eax, 0x40000000
mov edx, 0x80000000
cmove edx, eax
mov eax, ecx
shl eax, 7
xor ecx, 3
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
mov qword [rsp + 0x30], 0
mov rcx, rdi
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsi], rax
cmp rax, 0xffffffffffffffff
setne al
jmp 0x14005603f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x140056036
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140056036
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14004fa76
lea rcx, str.Unable_to_delete__s:__s
mov rdx, rdi
mov r8, rax
call fcn.140004095
mov qword [rsi], 0xffffffffffffffff
xor eax, eax
add rsp, 0x38
pop rdi
pop rsi
ret

Function at 0x140062aa8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140062be0
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 0x140062c47
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140062c47
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140062c47
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140062c47
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140062c47
cmp dword [rcx + 0x84], 0xe
jbe 0x140062c47
cmp dword [rcx + 0xf8], 0
je 0x140062c47
mov ecx, ebx
call fcn.140062b2c
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.140062d74
cmp dword [rbp + 0x20], 0
je 0x140062c94
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140062b88
int3
Function at 0x140069a20
Capabilities:
Encode data using xor

Disassembly:
mov rax, rcx
neg rcx
test rax, 7
je 0x140069a3d
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x140069a98
test al, 7
jne 0x140069a30
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x140069a51
mov rdx, qword [rax - 8]
test dl, dl
je 0x140069ac2
test dh, dh
je 0x140069abc
shr rdx, 0x10
test dl, dl
je 0x140069ab6
test dh, dh
je 0x140069ab0
shr rdx, 0x10
test dl, dl
je 0x140069aaa
test dh, dh
je 0x140069aa4
shr edx, 0x10
test dl, dl
je 0x140069a9e
test dh, dh
jne 0x140069a51
lea rax, [rax + rcx - 1]
ret
lea rax, [rax + rcx - 2]
ret
lea rax, [rax + rcx - 3]
ret
lea rax, [rax + rcx - 4]
ret
lea rax, [rax + rcx - 5]
ret
lea rax, [rax + rcx - 6]
ret
lea rax, [rax + rcx - 7]
ret
lea rax, [rax + rcx - 8]
ret
Function at 0x2fc4cf310
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 sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4d03f0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4cfd12
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f2108]
test eax, eax
je 0x2fc4cfdaa
lea rax, [0x2fc4f20e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f2110]
mov qword [rbp - 8], rax
jmp 0x2fc4cfd8e
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 0x2fc4cfd82
cmp qword [rbp - 0x10], 0
je 0x2fc4cfd82
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 0x2fc4cfd48
lea rax, [0x2fc4f20e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4cfdab
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4cfeb0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4cfed8
mov eax, 0
jmp 0x2fc4cff26
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 0x2fc4cff01
mov eax, 0
jmp 0x2fc4cff26
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4cff21
mov eax, 0
jmp 0x2fc4cff26
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4cff2c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4cffaa
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4cffa1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4cffa1
mov rax, qword [rbp - 8]
jmp 0x2fc4cffbf
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4cff74
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x416aa0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x416c2b
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.00435220
xorps xmm15, xmm15
mov r14, qword [0x0062f220]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
jne 0x416b05
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x416b14
add rsp, 0x48
pop rbp
ret
sub rcx, rbx
add rax, rbx
mov rbx, rcx
test rbx, rbx
jbe 0x416b33
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x416b43
cmp rbx, 0x1000
jae 0x416b0b
jmp 0x416bad
add rsp, 0x48
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
cmp rbx, 0x1000
jae 0x416b55
xor edx, edx
jmp 0x416ba4
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.00435220
xorps xmm15, xmm15
mov r14, qword [0x0062f220]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
sete al
mov rcx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x38]
mov edx, eax
mov rax, qword [rsp + 0x40]
test dl, dl
jne 0x416b39
jmp 0x416b28
call fcn.0046a160
xorps xmm15, xmm15
mov r14, qword [0x0062f220]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call fcn.00439660
lea rax, [0x004e5330]
mov ebx, 0x18
nop dword [rax]
call fcn.00439ee0
mov rax, qword [rsp + 0x38]
call fcn.00439c20
lea rax, [0x004e57d8]
mov ebx, 0x19
nop dword [rax + rax]
call fcn.00439ee0
mov rax, qword [rsp + 0x30]
call fcn.00439c20
call fcn.004398a0
call fcn.004396c0
lea rax, [0x004e7d93]
mov ebx, 0x21
call fcn.00437bc0
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.00466a20
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00416aa0