joyce8/EMBER2024-capa huggingface dataset:
Function at 0x613c1430
Capabilities:
Enumerate processes

Disassembly:
push rbp
sub rsp, 0x160
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xf0], rcx
mov dword [rbp + 0xdc], 0
mov edx, 0
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rbp + 0xd0], rax
cmp qword [rbp + 0xd0], 0xffffffffffffffff
jne 0x613c147b
mov eax, 0
jmp 0x613c1509
mov dword [rbp - 0x60], 0x130
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0xd0]
mov rcx, rax
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x613c14b3
mov rax, qword [rbp + 0xd0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 0
jmp 0x613c1509
lea rax, [rbp - 0x60]
add rax, 0x2c
mov rdx, rax
mov rcx, qword [rbp + 0xf0]
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x613c14d9
mov eax, dword [rbp - 0x58]
mov dword [rbp + 0xdc], eax
jmp 0x613c14f0
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0xd0]
mov rcx, rax
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x613c14b3
mov rax, qword [rbp + 0xd0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, dword [rbp + 0xdc]
add rsp, 0x160
pop rbp
ret

Function at 0x613c15a1
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rcx, qword [rbp + 0x10]
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryW]
call rax
mov rcx, qword [rbp + 0x10]
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
je 0x613c162b
mov rdx, qword [rbp + 0x18]
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x14]
lea rax, [rbp - 0x10]
mov r9, rdx
mov r8d, 0x40
mov edx, 0x55d468d
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
mov byte [rbp - 0x20], 0x48
mov byte [rbp - 0x1f], 0x31
mov byte [rbp - 0x1e], 0xc0
movzx eax, word [rbp - 0x20]
mov word [rbp - 0x10], ax
movzx eax, byte [rbp - 0x1e]
mov byte [rbp - 0xe], al
mov eax, 1
add rsp, 0x40
pop rbp
ret
Function at 0x613c1641
Capabilities:
Contain obfuscated stackstrings
Create process on windows
Terminate process

Disassembly:
push rbp
push rdi
push rsi
sub rsp, 0x670
lea rbp, [rsp + 0x80]
lea rdx, section.......
lea rcx, [0x613c4010]
call sym.NETUTILS.dll_ASSnko
lea rdx, [0x613c4015]
lea rcx, [0x613c4010]
call sym.NETUTILS.dll_ASSnko
lea rdx, [rbp + 0x10]
lea rax, section......_1
mov ecx, 0xb7
mov rdi, rdx
mov rsi, rax
rep movsq qword [rdi], qword [rsi]
mov rax, rsi
mov rdx, rdi
mov ecx, dword [rax]
mov dword [rdx], ecx
lea rdx, [rdx + 4]
lea rax, [rax + 4]
movzx ecx, word [rax]
mov word [rdx], cx
lea rdx, [rdx + 2]
lea rax, [rax + 2]
lea rdx, [0x613c4015]
lea rcx, [0x613c4010]
call sym.NETUTILS.dll_ASSnko
movabs rax, 0x4445434f2e626174
mov qword [rbp - 0x10], rax
movabs rax, 0x7374656d33325c4b
mov qword [rbp - 8], rax
movabs rax, 0x646f7773205c7379
mov qword [rbp], rax
mov dword [rbp + 8], 0x5c77696e
mov word [rbp + 0xc], 0x433a
mov byte [rbp + 0xe], 0
lea rax, [rbp - 0x10]
mov rcx, rax
call sym.NETUTILS.dll_revstr
movabs rax, 0x7275655369676874
mov qword [rbp - 0x20], rax
mov dword [rbp - 0x18], 0x5c2e5c54
mov word [rbp - 0x14], 0x5c
lea rax, [rbp - 0x20]
mov rcx, rax
call sym.NETUTILS.dll_revstr
lea rdx, [0x613c4024]
lea rcx, [0x613c4010]
call sym.NETUTILS.dll_ASSnko
lea rax, [rbp - 0x10]
mov edx, 1
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WinExec]
call rax
lea rax, [rbp - 0x20]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
mov r9d, 0
mov r8d, 0
mov edx, 3
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateFileA]
call rax
mov qword [rbp + 0x5e0], rax
lea rdx, [0x613c4033]
lea rcx, [0x613c4010]
call sym.NETUTILS.dll_ASSnko
mov dword [rbp + 0x5ec], 0
jmp 0x613c184e
lea rcx, [rbp + 0x10]
mov eax, dword [rbp + 0x5ec]
cdqe
mov rdx, rax
lea rax, [rdx + rdx]
mov rdx, rax
mov rax, rdx
shl rax, 4
sub rax, rdx
add rax, rcx
mov rcx, rax
call sym.NETUTILS.dll_FindProcessId
mov dword [rbp - 0x24], eax
mov dword [rbp + 0x5dc], 8
mov dword [rbp - 0x34], 0
lea rcx, [rbp - 0x24]
mov rax, qword [rbp + 0x5e0]
mov qword [rsp + 0x38], 0
lea rdx, [rbp - 0x34]
mov qword [rsp + 0x30], rdx
mov edx, dword [rbp + 0x5dc]
mov dword [rsp + 0x28], edx
lea rdx, [rbp - 0x30]
mov qword [rsp + 0x20], rdx
mov r9d, 4
mov r8, rcx
mov edx, 0x22e044
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_DeviceIoControl]
call rax
add dword [rbp + 0x5ec], 1
cmp dword [rbp + 0x5ec], 0x30
jle 0x613c17be
mov rax, qword [rbp + 0x5e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_ExitProcess]
call rax
nop
Function at 0x613c1940
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
movsxd rbp, dword [0x613c7024]
mov rbx, rcx
mov rsi, rdx
mov rdi, r8
test ebp, ebp
jle 0x613c1a5a
mov rax, qword [0x613c7028]
xor r9d, r9d
add rax, 8
mov r10, qword [rax]
cmp rbx, r10
jb 0x613c198e
mov rdx, qword [rax + 8]
mov r11d, dword [rdx + 8]
add r10, r11
cmp rbx, r10
jb 0x613c1a40
add r9d, 1
add rax, 0x18
cmp r9d, ebp
jne 0x613c1972
mov rcx, rbx
call fcn.613c2760
test rax, rax
mov r12, rax
je 0x613c1a92
lea rbp, [rbp + rbp*2]
shl rbp, 3
mov r13, rbp
add r13, qword [0x613c7028]
mov qword [r13 + 0x10], rax
mov dword [r13], 0
call fcn.613c2880
mov edx, dword [r12 + 0xc]
mov r8d, 0x30
add rax, rdx
lea rdx, [rsp + 0x20]
mov qword [r13 + 8], rax
mov rax, qword [0x613c7028]
mov rcx, qword [rax + rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x613c1a75
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x613c1a39
sub eax, 0x40
and eax, 0xffffffbf
je 0x613c1a39
mov r9, rbp
add r9, qword [0x613c7028]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x613c1a61
add dword [0x613c7024], 1
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp 0x613c2cb0
xor ebp, ebp
jmp 0x613c199b
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x613c40c8]
mov edx, eax
call fcn.613c18d0
mov rax, qword [0x613c7028]
mov edx, dword [r12 + 8]
lea rcx, [0x613c4090]
mov r8, qword [rax + rbp + 8]
call fcn.613c18d0
lea rcx, [0x613c4070]
mov rdx, rbx
call fcn.613c18d0
nop
nop word cs:[rax + rax]
jmp qword [sym.imp.msvcrt.dll_memcpy]

Function at 0x613c2670
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x613c26b1
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x613c26a8
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x613c26b3
add rax, 0x28
cmp rax, r9
jne 0x613c2694
xor eax, eax
repz ret

Function at 0x613c2760
Capabilities:
Enumerate pe sections

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, qword [0x613c41e0]
cmp word [rbx], 0x5a4d
je 0x613c2780
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
mov rsi, rcx
mov rcx, rbx
call fcn.613c2630
test eax, eax
je 0x613c2774
sub rsi, rbx
mov rcx, rbx
mov rdx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.613c2670
Function at 0x613c29e0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x613c7900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x613c78e0]
test rbx, rbx
je 0x613c2a34
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x613c2a2b
test rsi, rsi
je 0x613c2a2b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x613c2a10
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x613c7900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax
Function at 0x140025ec0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x60
lea rbp, [rsp + 0x60]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, rcx
call fcn.140001450
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140025f14
mov esi, 1
test al, 0x10
jne 0x140025f16
lea rcx, [rbp - 0x40]
mov qword [rbp - 0x10], rdi
mov rdx, rdi
call fcn.140024af0
lea rcx, [rbp - 0x40]
call fcn.140024ca0
mov esi, eax
mov rdi, qword [rbp - 0x10]
jmp 0x140025f16
xor esi, esi
mov eax, 0x7b139c02
nop dword [rax + rax]
cmp eax, 0x62588fb9
je 0x140025f3d
cmp eax, 0x7b139c02
jne 0x140025f20
mov rcx, rdi
call fcn.14001e550
mov eax, 0x62588fb9
jmp 0x140025f20
mov qword [rbp - 0x18], rdi
mov eax, 0x5f95f0a3
nop word cs:[rax + rax]
cmp eax, 0xd2f157c1
je 0x140025f90
cmp eax, 0x5f95f0a3
jne 0x140025f50
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov eax, 0x6cc402cf
nop dword [rax + rax]
cmp eax, 0xf9882d91
je 0x140025f89
cmp eax, 0x6cc402cf
jne 0x140025f70
mov rax, qword [rbp - 0x20]
mov eax, 0xf9882d91
jmp 0x140025f70
mov eax, 0xd2f157c1
jmp 0x140025f50
mov eax, esi
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret

Function at 0x140026030
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
mov r9, rdx
mov rax, rcx
mov qword [rsp + 0x28], r8
mov dword [rsp + 0x20], 0
xor ecx, ecx
xor edx, edx
mov r8, rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop
add rsp, 0x38
ret
Function at 0x14008079c
Capabilities:
Parse pe header

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

Function at 0x14008aec0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14008aff0

Function at 0x1400924f0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140092518
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140092518
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0xf149a0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0xf149ad
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0xf149bd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0xf149a5
lea eax, [rcx + 1]
jmp 0xf149cb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0xf149de
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0xf149c4
sub eax, 3
jb 0xf149fe
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0xf14a4d
sar eax, 1
movsxd rbp, eax
jb 0xf14a34
jmp 0xf14a0c
add ebx, ebx
jne 0xf14a0a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0xf14a34
inc ecx
add ebx, ebx
jne 0xf14a1a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0xf14a34
call r11
adc ecx, ecx
add ebx, ebx
jne 0xf14a2d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0xf14a1c
add ecx, 2
jmp 0xf14a39
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.00f14962
jmp 0xf149ad
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x43ae00
mov dl, 0xbb
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0xf14a99
cmp rsi, rcx
jae 0xf14aa1
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0xf14a80
cmp al, 0x8f
ja 0xf14a80
cmp byte [rsi - 2], 0xf
je 0xf14a86
sub al, 0xe8
cmp al, 1
ja 0xf14a6a
cmp rsi, rcx
jae 0xf14aa1
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0xf14a70
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0xf14aa1
lodsb al, byte [rsi]
jmp 0xf14a80
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0xb06000]
mov eax, dword [rdi]
or eax, eax
je 0xf14afe
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xb6ed38]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0xf14aae
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0xf14af8
mov qword [rbx], rax
add rbx, 8
jmp 0xf14ace
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0xf14b42
cmp al, 0xef
ja 0xf14b2a
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0xf14b0a
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0xf14b19
mov eax, dword [rdi]
add rdi, 4
jmp 0xf14b19
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0xf14b96
sub rsp, 0xffffffffffffff80
jmp 0x46bec0
Function at 0x14000c43c
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], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x140014c60], rbx
je 0x14000c4a3
cmp rax, rbx
jne 0x14000c496
mov ebx, 1
mov esi, ebx
jmp 0x14000c4a8
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x14000c47b
mov ebx, 1
mov eax, dword [0x140014c68]
cmp eax, ebx
jne 0x14000c4c0
mov edi, 0x1f
mov ecx, edi
call sub.msvcrt.dll__amsg_exit
jmp 0x14000c52c
mov eax, dword [0x140014c68]
test eax, eax
jne 0x14000c521
mov dword [0x140014c68], ebx
lea r15, [0x14000eba0]
lea rdi, [0x14000eb88]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x14000c513
test eax, eax
jne 0x14000c517
cmp qword [rdi], r14
je 0x14000c508
mov rax, qword [rdi]
mov rcx, qword [0x14000eb40]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x14000c4ea
test eax, eax
je 0x14000c527
mov eax, 0xff
jmp 0x14000c682
mov dword [0x1400143e4], ebx
mov edi, 0x1f
mov eax, dword [0x140014c68]
cmp eax, ebx
jne 0x14000c553
lea rdx, [0x14000eb80]
lea rcx, [0x14000eb48]
call sub.msvcrt.dll__initterm
mov dword [0x140014c68], 2
test esi, esi
jne 0x14000c561
mov rax, r14
xchg qword [0x140014c60], rax
cmp qword [0x140014c80], r14
je 0x14000c594
lea rcx, [0x140014c80]
call fcn.14000ca70
test eax, eax
je 0x14000c594
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140014c80]
mov r9, qword [0x14000eb40]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x14000c5ad
mov eax, 0xff
jmp 0x14000c682
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x14000c633
test ax, ax
je 0x14000c5c8
test edx, edx
jne 0x14000c633
sub ax, bx
cmp ax, di
ja 0x14000c5de
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x14000c5c8
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140001878
mov dword [0x1400143e0], eax
cmp dword [0x140014400], r14d
jne 0x14000c61c
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x1400143e4], r14d
jne 0x14000c631
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1400143e0]
jmp 0x14000c682
cmp ax, 0x22
jne 0x14000c647
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x14000c5b6
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.14014c000
add rsp, 0x28
jmp 0x14000c43c
Function at 0x140004884
Capabilities:
Delete directory

Disassembly:
push rbp
push r15
xor rax, rax
push rax
push rax
sub rsp, 0x28
call fcn.140012b50
mov r15, qword [0x140020514]
cmp r15, 1
jne 0x140004953
push qword [0x140020604]
pop rcx
call fcn.14000dd04
mov r15, rax
and r15, r15
jle 0x1400048e9
mov rcx, qword [0x140020604]
call fcn.14000dd0c
mov rcx, qword [0x140020604]
call fcn.14000dd20
or rax, rax
je 0x1400048e9
mov rbp, qword [0x14002060c]
push qword [rbp + 0x10]
pop rcx
call fcn.14000e1bc
jmp 0x1400048c6
push qword [0x1400205f4]
pop rcx
call fcn.14000dd04
mov qword [rsp + 0x28], rax
mov r15, qword [rsp + 0x28]
and r15, r15
jle 0x140004953
push 5
push 0
push 1
push qword [0x1400205f4]
pop rcx
pop rdx
pop r8
pop r9
call fcn.140009060
mov rcx, qword [0x1400205f4]
call fcn.14000dd0c
mov rcx, qword [0x1400205f4]
call fcn.14000dd20
or rax, rax
je 0x140004953
mov rbp, qword [0x1400205fc]
push qword [rbp + 0x14]
pop rcx
call sub.KERNEL32.dll_RemoveDirectoryW
jmp 0x140004930
mov rax, 1
jmp 0x14000495f
add rsp, 0x38
pop r15
pop rbp
ret

Function at 0x140006b38
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rcx
call sub.KERNEL32.dll_GetLastError
mov qword [rsp + 0x38], rax
mov rcx, qword [0x14001f190]
call sub.KERNEL32.dll_TlsGetValue
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x28]
add rsp, 0x48
ret

Function at 0x140007204
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.140007194
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x140021210]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140020640]
jmp 0x140007240
cmp qword [rbx + 0x18], rdi
je 0x140007247
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140007237
jmp 0x140007261
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbx + 0x10]
lea rcx, [0x140020640]
call fcn.1400123b8
lea rcx, [0x140021210]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
invalid
adc eax, 0x16120fff
inc dword [rbx]
or al, 0x17
inc dword [rsp + rcx]
invalid
invalid
adc al, 0x14
adc al, 0xff
adc al, 0x14
adc al, 0xff
adc al, 0x14
adc al, 0xff
adc al, 0x14
adc al, 0xff
adc al, 0x14
adc al, 0xff
adc al, 0x14
adc al, 0xff
adc al, 0x14
adc al, 0xff
adc al, 0x14
adc al, 0xff
adc al, 0x14
adc al, 0xff
adc al, 0x14
adc al, 0xff
adc al, 0x14
adc al, 0xff
adc eax, 0xeff1415
unpckhps xmm7, xmm7
add dword [rsi], eax
invalid
add al, byte [rdi]
invalid
add al, byte [rdi]
invalid
Function at 0x1400043c0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x1400043e8
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x14000440e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140004410
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140004469
test ecx, ecx
jle 0x140004449
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140004469
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140004469
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x140004490
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x1400044b2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x1400044c8
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1400044e4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400044e6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140004522
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x1400045be
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000455d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x14000459e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x1400045be
cmp rbx, rax
ja 0x140004570
test rbx, rbx
je 0x1400045be
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret