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

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xffffffffffffffff
lea rax, [0x1c72ff00a]
mov rdx, rax
lea rax, [0x1c748fe80]
mov rcx, rax
call fcn.1c72fe602
mov eax, dword [0x1c742c180]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x1c72ff23a
mov rax, qword [rbp - 0x10]
jmp 0x1c72ff39a
call fcn.1c72fdd65
mov qword [rbp - 0x10], rax
mov rax, qword [0x1c7494040]
test rax, rax
je 0x1c72ff256
cmp qword [rbp - 0x10], 0
jne 0x1c72ff260
mov eax, 0
jmp 0x1c72ff39a
mov rax, qword [rbp - 0x10]
mov dword [rax + 0x44], 1
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rax
mov rdx, qword [rbp - 0x10]
mov dword [rdx + 0x70], eax
mov r9d, 0
mov r8d, 0
mov edx, 1
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateEventA]
call rax
mov rdx, qword [rbp - 0x10]
mov qword [rdx + 0x30], rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x38], 0xffffffffffffffff
mov rax, qword [rbp - 0x10]
lea rcx, [rax + 0x68]
mov rax, qword [rbp - 8]
mov rdx, rax
call fcn.1c72fde89
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xb8], 0
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x28], 0
mov rax, qword [rbp - 0x10]
lea rdi, [rax + 0x28]
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rsi, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call rax
mov rbx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, rdi
mov r8, rsi
mov rdx, rbx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_DuplicateHandle]
call rax
test eax, eax
jne 0x1c72ff33b
call sub.msvcrt.dll_abort
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetThreadPriority]
call rax
mov rdx, qword [rbp - 0x10]
mov dword [rdx + 0xc0], eax
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xbc], 0
mov rax, qword [rbp - 0x10]
movzx edx, byte [rax + 0x40]
and edx, 0xffffffcf
or edx, 0x10
mov byte [rax + 0x40], dl
mov eax, dword [0x1c742c180]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
test eax, eax
jne 0x1c72ff396
call sub.msvcrt.dll_abort
mov rax, qword [rbp - 0x10]
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x1c72ff497
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp - 0x10], 0
mov rax, qword [rbp + 0x10]
mov dword [rbp - 4], eax
call fcn.1c72ff1e7
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov rdx, qword [rbp + 0x10]
mov qword [rax + 8], rdx
mov rax, qword [rbp - 0x18]
mov rax, qword [rax + 0x1d8]
mov rcx, rax
call fcn.1c72ff038
mov rax, qword [rbp - 0x18]
movzx eax, byte [rax + 0x40]
and eax, 0x30
test al, al
jne 0x1c72ff504
mov rax, qword [rbp - 0x18]
add rax, 0xd0
mov edx, 1
mov rcx, rax
mov rax, qword [sym.imp.msvcrt.dll_longjmp]
call rax
mov eax, dword [0x1c742c180]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x1c72ff648
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x1c72ff5a1
mov rax, qword [rbp - 0x10]
mov dword [rax], 0xdeadbeef
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
test rax, rax
je 0x1c72ff55c
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x30], 0
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 8]
mov dword [rbp - 4], eax
mov rax, qword [rbp - 0x10]
mov rcx, rax
call fcn.1c72fdc3e
mov qword [rbp - 0x10], 0
mov eax, dword [0x1c742c180]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
jmp 0x1c72ff648
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 8]
mov dword [rbp - 4], eax
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xbc], 1
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
test rax, rax
je 0x1c72ff5db
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x30], 0
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 0x44]
and eax, 4
test eax, eax
je 0x1c72ff648
mov rax, qword [rbp - 0x10]
mov dword [rax], 0xdeadbeef
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x28], 0
mov rax, qword [rbp - 0x10]
mov rcx, rax
call fcn.1c72fdc3e
mov qword [rbp - 0x10], 0
mov eax, dword [0x1c742c180]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
mov eax, dword [rbp - 4]
mov ecx, eax
mov rax, qword [sym.imp.msvcrt.dll__endthreadex]
call rax
nop
Function at 0x1c7315da0
Capabilities:
Create directory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov rbx, rdx
mov rcx, qword [rcx]
call qword [sym.imp.msvcrt.dll__wmkdir]
test eax, eax
jne 0x1c7315de0
call fcn.1c73c5e90
mov dword [rbx], 0
mov qword [rbx + 8], rax
mov eax, 1
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call qword [sym.imp.msvcrt.dll__errno]
mov edi, dword [rax]
cmp edi, 0x11
je 0x1c7315e08
call fcn.1c73c5ea0
mov dword [rbx], edi
mov qword [rbx + 8], rax
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov rdx, rbx
mov rcx, rsi
call fcn.1c7399d30
cmp al, 2
jne 0x1c7315ded
xor eax, eax
jmp 0x1c7315dfa
Function at 0x1c7398d70
Capabilities:
Get common file path

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
xor r11d, r11d
mov rdi, qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea r12, [rsp + 0x40]
mov rbp, rdx
mov rbx, rcx
mov edx, 0x400
mov qword [rsp + 0x30], r12
lea rsi, [rsp + 0x30]
mov qword [rsp + 0x38], 0
mov word [rsp + 0x40], r11w
nop dword [rax]
xor r8d, r8d
mov rcx, rsi
call fcn.1c73d3d00
mov rdx, qword [rsp + 0x30]
mov ecx, dword [rsp + 0x38]
call rdi
mov edx, eax
cmp qword [rsp + 0x38], rdx
jb 0x1c7398db0
mov qword [rsp + 0x28], rdx
test eax, eax
je 0x1c7398e80
call fcn.1c73c5e90
mov rdx, qword [rsp + 0x28]
xor edi, edi
mov dword [rbp], edi
xor r8d, r8d
mov rcx, rsi
mov qword [rbp + 8], rax
call fcn.1c73d3d00
mov rax, qword [rsp + 0x30]
lea rcx, [rbx + 0x10]
mov rdi, qword [rsp + 0x38]
mov qword [rbx], rcx
cmp rax, r12
je 0x1c7398ef0
mov qword [rbx], rax
mov rax, qword [rsp + 0x40]
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], rdi
lea rdi, [rbx + 0x20]
xor r10d, r10d
mov rcx, rdi
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x38], 0
mov word [rsp + 0x40], r10w
call fcn.1c739ddf0
mov rcx, rbx
call fcn.1c739d0f0
mov rcx, qword [rsp + 0x30]
cmp rcx, r12
je 0x1c7398e68
mov rax, qword [rsp + 0x40]
lea rdx, [rax + rax + 2]
call fcn.1c741da90
mov r9d, dword [rbp]
test r9d, r9d
je 0x1c7398ea0
mov rax, rbx
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.1c73c5e90
mov rdx, qword [rsp + 0x28]
jmp 0x1c7398de8
mov rdx, rbp
mov rcx, rbx
call fcn.1c7399d30
mov r8d, dword [rbp]
test r8d, r8d
jne 0x1c7398f10
cmp al, 2
je 0x1c7398e71
mov rax, qword [rbx]
xor edx, edx
mov qword [rbx + 8], 0
mov rcx, rbx
mov word [rax], dx
call fcn.1c739d0f0
call fcn.1c73c5ea0
mov dword [rbp], 0x14
mov qword [rbp + 8], rax
mov rax, rbx
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov r8, rdi
add r8, 1
je 0x1c7398e20
add r8, r8
mov rdx, r12
call sub.msvcrt.dll_memcpy
jmp 0x1c7398e20
mov rax, qword [rbx]
xor ecx, ecx
mov qword [rbx + 8], 0
mov word [rax], cx
mov rcx, rbx
call fcn.1c739d0f0
mov rax, rbx
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x1c7399b00
Capabilities:
Delete directory
Delete file

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, rcx
mov rbx, rdx
call fcn.1c7396540
test al, al
je 0x1c7399b4e
cmp al, 0xff
je 0x1c7399b60
mov rdx, rbx
mov rcx, rsi
call fcn.1c7399d30
cmp al, 2
je 0x1c7399b78
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1c7399b85
mov eax, dword [rbx]
test eax, eax
jne 0x1c7399b4e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.1c73c5e90
mov dword [rbx], esi
mov qword [rbx + 8], rax
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.1c73c5e90
mov dword [rbx], 0
mov qword [rbx + 8], rax
jmp 0x1c7399b4e
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x1c7399b28
call fcn.1c73c5e90
mov dword [rbx], 0
mov qword [rbx + 8], rax
mov eax, 1
add rsp, 0x28
pop rbx
pop rsi
ret
Function at 0x1c7399bf0
Capabilities:
Move file

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rsi, rdx
mov rbp, rcx
mov rdx, r8
mov rbx, r8
mov rcx, rsi
call fcn.1c7399d30
mov rdi, rax
cmp al, 0xff
je 0x1c7399c50
mov ecx, dword [rbx]
test ecx, ecx
jne 0x1c7399c43
test al, al
jne 0x1c7399c68
mov rdx, qword [rsi]
mov rcx, qword [rbp]
mov r8d, 3
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x1c7399cb0
call fcn.1c73c5e90
mov dword [rbx], 0
mov qword [rbx + 8], rax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.1c73c5e90
mov dword [rbx], 0
mov qword [rbx + 8], rax
jmp 0x1c7399c1d
mov rdx, rbx
mov rcx, rbp
call fcn.1c7399d30
mov edx, dword [rbx]
test edx, edx
jne 0x1c7399c43
cmp dil, 2
je 0x1c7399c98
cmp al, 2
jne 0x1c7399c1d
call fcn.1c73c5ea0
mov dword [rbx], 0x14
mov qword [rbx + 8], rax
jmp 0x1c7399c43
cmp al, 2
je 0x1c7399c1d
call fcn.1c73c5ea0
mov dword [rbx], 0x15
mov qword [rbx + 8], rax
jmp 0x1c7399c43
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdi, qword [sym.imp.msvcrt.dll__errno]
cmp eax, 5
je 0x1c7399ce5
call rdi
mov dword [rax], 5
call fcn.1c73c5ea0
mov rsi, rax
call rdi
mov eax, dword [rax]
mov qword [rbx + 8], rsi
mov dword [rbx], eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
call rdi
mov dword [rax], 0xd
jmp 0x1c7399cca

Function at 0x1c73a1780
Capabilities:
Get disk size

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rbx, qword [rsp + 0x90]
mov rdi, rdx
mov rbp, r8
mov rsi, r9
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
lea rdx, [rsp + 0x28]
lea r9, [rsp + 0x38]
mov qword [rsp + 0x38], 0
lea r8, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x1c73a1818
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x1c73a17da
mov qword [rdi], rax
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x1c73a17e8
mov qword [rbp], rax
mov rax, qword [rsp + 0x28]
test rax, rax
jne 0x1c73a1810
call fcn.1c73c5e90
xor esi, esi
mov dword [rbx], esi
mov qword [rbx + 8], rax
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov qword [rsi], rax
jmp 0x1c73a17f2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.1c73c5e90
mov dword [rbx], esi
mov qword [rbx + 8], rax
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x1c73a6720
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, qword [rdi]
call sub.msvcrt.dll__fileno_1
mov ecx, eax
mov r8d, ebx
mov rdx, rsi
call sub.msvcrt.dll__read
movsxd rbp, eax
cmp eax, 0xffffffff
je 0x1c73a6768
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x1c73a673a
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x1c73e93c0
Capabilities:
Encode data using xor

Disassembly:
mov r11, rdx
mov rax, rcx
mov r10, rdx
and r11, 0xfffffffffffffff8
add r11, rcx
movabs rcx, 0xc6a4a7935bd1e995
imul r10, rcx
xor r10, r8
cmp rax, r11
je 0x1c73e9418
nop word cs:[rax + rax]
mov r9, qword [rax]
add rax, 8
imul r9, rcx
mov r8, r9
shr r8, 0x2f
xor r8, r9
imul r8, rcx
xor r8, r10
mov r10, r8
imul r10, rcx
cmp r11, rax
jne 0x1c73e93f0
and edx, 7
je 0x1c73e944d
sub edx, 1
movsxd rax, edx
xor edx, edx
nop dword [rax]
movzx ecx, byte [r11 + rax]
shl rdx, 8
sub rax, 1
add rdx, rcx
test eax, eax
jns 0x1c73e9428
xor rdx, r10
movabs r10, 0xc6a4a7935bd1e995
imul r10, rdx
movabs rax, 0xc6a4a7935bd1e995
mov rdx, r10
shr rdx, 0x2f
xor rdx, r10
imul rdx, rax
mov rax, rdx
shr rax, 0x2f
xor rax, rdx
ret
Function at 0x1c7426610
Capabilities:
Write file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rbx, rcx
call fcn.1c741dbf0
mov rax, qword [rbx - 0x10]
mov rcx, qword [rbx - 0x40]
mov rbp, qword [rbx - 0x18]
movsxd rsi, dword [rbx - 0x24]
mov qword [rsp + 0x30], rax
mov rdi, qword [rbx - 0x38]
call fcn.1c7308e70
mov rcx, rax
jmp 0x1c7426480
call fcn.1c741dbf0
call fcn.1c741de50
mov rbx, qword [rax]
test byte [rbx + 0x50], 1
je 0x1c7426507
mov rbx, qword [rbx]
lea r12, [rsp + 0x20]
mov rdx, rbp
xor ecx, ecx
mov r8, r12
call fcn.1c7307380
mov rdx, qword [rbx - 0x90]
mov r9, rsi
mov r8, rbx
mov rcx, r12
call fcn.1c7307470
test al, al
jne 0x1c7426525
lea rbx, [0x1c7440f40]
mov r9, rsi
xor r8d, r8d
mov rcx, r12
mov rdx, rbx
call fcn.1c7307470
test al, al
je 0x1c742652a
mov ecx, 8
call fcn.1c741db80
lea r8, [0x1c73acfa0]
mov rdx, rbx
mov rcx, rax
mov rax, qword [0x1c743bc90]
add rax, 0x10
mov qword [rcx], rax
call fcn.1c741e110
add rbx, 0x90
jmp 0x1c7426496
call fcn.1c741e0c0
mov rcx, rdi
call fcn.1c7308e50
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
call sub.msvcrt.dll_abort
mov rcx, rax
call fcn.1c741dbf0
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
call fcn.1c7334fc0
mov ecx, 8
call fcn.1c741db80
lea r8, [0x1c7334c70]
lea rdx, [0x1c743f650]
mov rcx, rax
lea rax, [0x1c7450b30]
mov qword [rcx], rax
call fcn.1c741e110
call fcn.1c7334ff0
mov rcx, qword [0x1c742d880]
mov rbx, rax
call fcn.1c72fcfa2
test eax, eax
je 0x1c74265ac
call fcn.1c7334ff0
mov rcx, rbx
call fcn.1c72ea6d0
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
call fcn.1c7334fc0
call fcn.1c7334ff0
call fcn.1c7335020
nop
call fcn.1c7334fc0
call fcn.1c7334ff0
call fcn.1c7335020
nop
mov ecx, 8
call fcn.1c741db80
lea r8, [fcn.1c73e7dd0]
lea rdx, [0x1c7441ca0]
mov rcx, rax
mov rax, qword [0x1c743bfa0]
add rax, 0x10
mov qword [rcx], rax
call fcn.1c741e110
nop
nop
nop
mov rcx, rax
mov rax, rdx
sub rax, 1
jne 0x1c742668c
call fcn.1c741dbf0
mov rcx, rax
mov rax, qword [rax]
call qword [rax + 0x10]
mov ecx, 2
mov rbx, rax
call rsi
mov r9, rax
mov r8d, 0xb
mov edx, 1
lea rcx, str.__what__:
call sub.msvcrt.dll_fwrite
mov ecx, 2
call rsi
mov rdx, rax
mov rcx, rbx
call sub.msvcrt.dll_fputs
mov ecx, 2
call rsi
mov rdx, rax
mov ecx, 0xa
call sub.msvcrt.dll_fputc
call fcn.1c741dd20
call sub.msvcrt.dll_abort
mov rcx, rdi
call fcn.1c72fada0
call fcn.1c741e0c0
call fcn.1c741dbf0
call fcn.1c741dd20
jmp 0x1c742667a
Function at 0x14003bba0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14003bbad
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14003bbbd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14003bba5
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x14003bbd5
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14003bbc2
sub eax, 3
jb 0x14003bbef
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14003bc26
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x14003bc16
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14003bc14
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14003bc03
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.14003bb62
jmp 0x14003bbad
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x1c400
mov dl, 7
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14003bc76
cmp rsi, rcx
jae 0x14003bc7e
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14003bc5d
cmp al, 0x8f
ja 0x14003bc5d
cmp byte [rsi - 2], 0xf
je 0x14003bc63
sub al, 0xe8
cmp al, 1
ja 0x14003bc47
cmp rsi, rcx
jae 0x14003bc7e
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14003bc4d
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14003bc7e
lodsb al, byte [rsi]
jmp 0x14003bc5d
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x39000]
mov eax, dword [rdi]
or eax, eax
je 0x14003bcdb
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x3b39c]
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 0x14003bc8b
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 0x14003bcd5
mov qword [rbx], rax
add rbx, 8
jmp 0x14003bcab
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 0x14003bd15
cmp al, 0xef
ja 0x14003bd07
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14003bce7
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x14003bcf6
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
mov byte [fcn.14003bd94], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.14003bd94
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14003bd84
sub rsp, 0xffffffffffffff80
jmp 0x1400010f6
Function at 0x140001000
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x178
mov rax, qword [0x14001c248]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov dword [rsp + 0x20], 0
xor edx, edx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0xffffffffffffffff
jne 0x140001043
xor eax, eax
jmp 0x1400010aa
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x140001065
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1400010aa
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x14000109b
lea rdx, [rsp + 0x5c]
mov rcx, qword [rsp + 0x180]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x140001099
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x20], eax
jmp 0x14000109b
jmp 0x140001065
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1400013a0
add rsp, 0x178
ret

Function at 0x1400010d0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x20], 0x20
mov r9d, 0x1000
mov r8, qword [rsp + 0x70]
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x20], 0
mov r9, qword [rsp + 0x70]
mov r8, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9, qword [rsp + 0x48]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x140001198
mov edx, 0x1f4
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x14000119d
mov eax, 0xffffffff
add rsp, 0x58
ret

Function at 0x140005474
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400052a0
Function at 0x140001190
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 8], rcx
mov qword [rsp + 0x20], r9
push rbx
push rsi
push rdi
push r12
sub rsp, 0x48
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov rdi, rdx
mov rbx, rcx
mov dword [rcx + 8], 1
xor esi, esi
mov qword [rcx], rsi
cmp dword [0x140292e30], esi
jne 0x1400011d0
call fcn.1400014c0
cmp dword [0x140292e2c], esi
jne 0x1400011e0
cmp dword [0x140273714], esi
je 0x14000124b
mov ecx, 0x800
call fcn.140056054
mov qword [rbx], rax
test rax, rax
je 0x140001243
xor edx, edx
mov r8d, 0x800
mov rcx, rax
call fcn.14019d7c0
mov r11, qword [rbx]
mov ecx, 0x7ffffffe
mov edx, 0x400
mov r8, rsi
test rdx, rdx
je 0x14000123b
test rcx, rcx
je 0x14000123f
movzx eax, word [rdi]
test ax, ax
je 0x14000123f
mov word [r11], ax
add r11, 2
add rdi, 2
dec rdx
dec rcx
inc r8
jmp 0x140001212
sub r11, 2
mov word [r11], si
cmp dword [0x140292e2c], esi
jne 0x140001260
mov dword [rsp + 0x20], esi
lea rdx, [0x1402651e0]
lea rcx, [rsp + 0x20]
call fcn.14019d534
cmp qword [rsp + 0x80], rsi
jne 0x140001280
lea r8, [0x1402209ac]
mov edx, 1
mov rcx, rbx
call fcn.140001370
jmp 0x1400012ff
mov qword [rsp + 0x30], rsi
lea r12, [rsp + 0x88]
mov ecx, 0x800
call fcn.140056054
mov rdi, rax
test rax, rax
je 0x1400012f1
mov r9, r12
mov r8, qword [rsp + 0x80]
mov edx, 0x3ff
mov rcx, rax
call fcn.140199190
test eax, eax
js 0x1400012e0
cdqe
cmp rax, 0x3ff
ja 0x1400012e0
jne 0x1400012ce
mov word [rdi + 0x7fe], si
mov r8, rdi
mov edx, 1
mov rcx, rbx
call fcn.140001370
jmp 0x1400012e7
mov word [rdi + 0x7fe], si
mov rcx, rdi
call fcn.14005605c
jmp 0x1400012ff
lea rcx, str.____logging_Error__
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
nop
jmp 0x140001306
mov rax, rbx
add rsp, 0x48
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x140001370
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x58
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov ebx, edx
mov r13, rcx
xor r14d, r14d
mov r12d, r14d
mov esi, r14d
mov qword [rsp + 0x38], r14
test edx, edx
je 0x1400013d6
cmp edx, 2
jbe 0x1400013c4
cmp edx, 7
ja 0x1400013d6
cmp dword [0x140292e2c], 2
jne 0x1400013d6
mov ecx, 1
mov r12d, ecx
jmp 0x1400013db
mov ecx, 1
cmp dword [0x140292e2c], 0
cmovne r12d, ecx
jmp 0x1400013db
mov ecx, 1
cmp edx, 3
je 0x14000140e
cmp edx, 4
je 0x1400013fd
jbe 0x14000141c
cmp edx, 6
ja 0x14000141c
mov eax, dword [0x140273714]
and eax, 1
cmp al, 1
jne 0x14000141c
mov esi, ecx
jmp 0x14000141c
mov eax, dword [0x140273714]
and eax, 2
cmp al, 2
jne 0x14000141c
mov esi, ecx
jmp 0x14000141c
movzx eax, byte [0x140273714]
and al, 4
cmp al, 4
cmove esi, ecx
test r12d, r12d
jne 0x14000143b
test esi, esi
jne 0x14000143b
mov dword [rsp + 0x30], r14d
lea rdx, [0x140265238]
lea rcx, [rsp + 0x30]
call fcn.14019d534
test r8, r8
je 0x1400014a3
mov qword [rsp + 0x48], r14
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
mov rdx, qword [r13]
mov ecx, ebx
call fcn.1400016b0
mov rdi, rax
test rax, rax
je 0x1400014a3
test r12d, r12d
je 0x14000148d
mov rcx, rax
cmp dword [0x140292e34], 0
je 0x140001487
mov rdx, qword [rsp + 0x38]
call fcn.140001dd0
jmp 0x14000148d
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test esi, esi
je 0x14000149b
mov rdx, rdi
mov ecx, ebx
call fcn.140001bc0
mov rcx, rdi
call fcn.14005605c
cmp ebx, 2
jne 0x1400014ac
mov dword [r13 + 8], r14d
add rsp, 0x58
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret