joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400654c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x50
mov rax, qword [rcx + 8]
mov ebp, r8d
mov ecx, 0x3e80000
mov rbx, qword [rax + 0x2f0]
mov rax, qword [rdx + 0x80]
movzx edx, word [rdx + 0x68]
movzx edi, word [rax + 0x18]
mov eax, 0x40000
shl edi, 0x10
cmp edi, eax
cmovl edi, eax
shl edx, 0x10
call fcn.140054150
mov dword [rsp + 0x24], eax
mov ecx, eax
cmp eax, 0x28f
jge 0x140065516
xor eax, eax
add rsp, 0x50
pop rdi
pop rbp
pop rbx
ret
mov eax, dword [rbx + 0x24]
mov qword [rsp + 0x80], rsi
mov esi, dword [rbx + 0x28]
mov qword [rsp + 0x48], r12
mov r12d, dword [rbx + 0x3c]
mov qword [rsp + 0x40], r13
mov r13d, dword [rbx + 0x38]
mov dword [rsp + 0x88], eax
mov eax, dword [rbx + 0x2c]
mov qword [rsp + 0x38], r14
mov r14d, dword [rbx + 0x40]
mov dword [rsp + 0x70], eax
mov eax, dword [rbx + 0x34]
mov qword [rsp + 0x30], r15
mov r15d, dword [rbx + 0x30]
mov dword [rsp + 0x78], eax
mov dword [rsp + 0x20], r12d
test ebp, ebp
jg 0x14006556d
mov ebp, 0x4b0000
jmp 0x14006557b
shl ebp, 0x10
mov edx, ecx
mov ecx, ebp
call fcn.140056730
mov ebp, eax
bsr ecx, ebp
bsr eax, edi
shl r12d, 0x10
add eax, ecx
cmp eax, 0x2e
jl 0x140065591
mov eax, r12d
jmp 0x14006559a
mov edx, edi
mov ecx, ebp
call fcn.140056730
mov r9d, dword [rsp + 0x88]
mov ecx, r9d
shl ecx, 0x10
cmp eax, ecx
jge 0x1400655b6
shl esi, 0x10
mov ecx, esi
jmp 0x1400656a5
mov r8d, dword [rsp + 0x70]
mov edx, r8d
shl edx, 0x10
mov dword [rsp + 0x88], edx
cmp eax, edx
jge 0x140065614
mov ebx, r8d
mov edx, edi
sub ebx, r9d
call fcn.140054150
mov ecx, ebp
sub ecx, eax
test ebx, ebx
je 0x140065604
sub r15d, esi
mov r8d, ebx
mov edx, r15d
call fcn.140056600
shl esi, 0x10
mov edx, edi
mov ecx, esi
mov ebx, eax
call fcn.140054150
add ebx, eax
jmp 0x1400656ae
mov esi, dword [rsp + 0x78]
mov ebx, esi
mov r8d, dword [rsp + 0x70]
shl ebx, 0x10
jmp 0x140065621
mov esi, dword [rsp + 0x78]
mov ebx, esi
shl ebx, 0x10
cmp eax, ebx
jge 0x140065660
mov ecx, dword [rsp + 0x88]
mov r12d, esi
mov edx, edi
sub r12d, r8d
call fcn.140054150
mov ecx, ebp
sub ecx, eax
test r12d, r12d
je 0x140065665
sub r13d, r15d
mov r8d, r12d
mov edx, r13d
call fcn.140056600
shl r15d, 0x10
mov edx, edi
mov ecx, r15d
mov ebx, eax
call fcn.140054150
add ebx, eax
jmp 0x1400656ae
cmp eax, r12d
jge 0x14006569e
mov r15d, dword [rsp + 0x20]
mov edx, edi
mov ecx, ebx
call fcn.140054150
sub ebp, eax
sub r15d, esi
je 0x14006569e
sub r14d, r13d
mov r8d, r15d
mov edx, r14d
mov ecx, ebp
call fcn.140056600
shl r13d, 0x10
mov edx, edi
mov ecx, r13d
mov ebx, eax
call fcn.140054150
add ebx, eax
jmp 0x1400656ae
shl r14d, 0x10
mov ecx, r14d
mov edx, edi
call fcn.140054150
mov ebx, eax
mov edx, dword [rsp + 0x24]
mov ecx, ebx
mov r15, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
mov r13, qword [rsp + 0x40]
mov r12, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x80]
add rsp, 0x50
pop rdi
pop rbp
pop rbx
jmp fcn.140054150
Function at 0x1400b1760
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push r14
sub rsp, 0x250
mov rax, qword [0x1401a9040]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov eax, dword [rcx + 0x58]
lea rbx, [rsp + 0x30]
mov dword [rsp + 0x40], eax
mov ebp, r9d
mov eax, dword [rcx + 0x5c]
mov rsi, rcx
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x290]
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x38], edx
mov dword [rsp + 0x3c], r8d
mov dword [rsp + 0x30], r9d
mov qword [rsp + 0x278], rdi
nop dword [rax]
mov r10d, dword [rbx + 0x14]
mov eax, r10d
mov r14d, dword [rbx + 4]
cmp r10d, r14d
mov r9d, dword [rbx + 0xc]
cmovg eax, r14d
cmp r9d, eax
jl 0x1400b18fc
cmp r10d, r14d
mov eax, r14d
cmovg eax, r10d
cmp r9d, eax
jg 0x1400b18fc
cmp r10d, r14d
jne 0x1400b1800
sub rbx, 0x10
jmp 0x1400b1944
mov edx, dword [rsi + 0x88]
xor r9d, r9d
cmp r10d, r14d
setge r9b
inc r9d
cmp edx, r9d
je 0x1400b1872
mov eax, dword [rsi + 4]
mov ecx, eax
mov r8d, dword [rsi + 8]
neg ecx
cmp r10d, r14d
jge 0x1400b1834
dec eax
add eax, r10d
and eax, ecx
sub eax, r10d
jmp 0x1400b183c
and ecx, r10d
mov eax, r10d
sub eax, ecx
cmp eax, r8d
setge r11b
test edx, edx
je 0x1400b185b
movzx edx, r11b
mov rcx, rsi
call fcn.1400b2910
test al, al
jne 0x1400b1955
movzx r8d, r11b
mov edx, r9d
mov rcx, rsi
call fcn.1400b2f80
test al, al
jne 0x1400b1955
mov edx, dword [rsi + 0x64]
lea r9, [0x1400b32e0]
mov ecx, dword [rsi + 0x60]
mov r8, rbx
cmp r10d, r14d
jge 0x1400b189e
mov dword [rsp + 0x28], edx
mov edx, 2
mov dword [rsp + 0x20], ecx
mov rcx, rsi
call fcn.1400b15e0
jmp 0x1400b18f2
mov eax, dword [rbx + 4]
neg ecx
movzx edi, byte [rsi + 0x6a]
neg eax
mov dword [rbx + 4], eax
neg edx
mov eax, dword [rbx + 0xc]
neg eax
mov dword [rsp + 0x28], ecx
mov dword [rbx + 0xc], eax
mov rcx, rsi
mov eax, dword [rbx + 0x14]
neg eax
mov dword [rsp + 0x20], edx
mov edx, 2
mov dword [rbx + 0x14], eax
call fcn.1400b15e0
test dil, dil
je 0x1400b18ea
cmp byte [rsi + 0x6a], 0
jne 0x1400b18ea
mov rdx, qword [rsi + 0x70]
mov ecx, dword [rdx + 0x20]
neg ecx
mov dword [rdx + 0x20], ecx
mov ecx, dword [rbx + 4]
neg ecx
mov dword [rbx + 4], ecx
test al, al
jne 0x1400b1955
sub rbx, 0x10
jmp 0x1400b1944
mov eax, dword [rbx + 8]
mov ecx, dword [rbx + 0x10]
mov dword [rbx + 0x20], ecx
add ecx, eax
mov dword [rbx + 0x24], r10d
lea edx, [rax + rbp]
mov eax, ecx
sar eax, 1
mov dword [rbx + 0x18], eax
lea eax, [rcx + rdx]
sar eax, 2
lea ecx, [r10 + r9]
mov dword [rbx + 0x10], eax
mov eax, ecx
sar edx, 1
sar eax, 1
mov dword [rbx + 8], edx
lea edx, [r14 + r9]
mov dword [rbx + 0x1c], eax
lea eax, [rcx + rdx]
sar eax, 2
sar edx, 1
mov dword [rbx + 0x14], eax
mov dword [rbx + 0xc], edx
add rbx, 0x10
lea rax, [rsp + 0x30]
cmp rbx, rax
jb 0x1400b1959
mov ebp, dword [rbx]
jmp 0x1400b17c0
mov al, 1
jmp 0x1400b1962
mov dword [rsi + 0x58], ebp
xor al, al
mov dword [rsi + 0x5c], r14d
mov rdi, qword [rsp + 0x278]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400bdae0
mov rbx, qword [rsp + 0x280]
add rsp, 0x250
pop r14
pop rsi
pop rbp
ret
Function at 0x1400b7cb0
Capabilities:
Get file size
Read file on windows
Read file via mapping

Disassembly:
push rbx
push rbp
sub rsp, 0x48
mov rbp, rdx
mov rbx, rcx
test rcx, rcx
jne 0x1400b7ccc
lea eax, [rcx + 0x28]
add rsp, 0x48
pop rbp
pop rbx
ret
mov qword [rsp + 0x68], rsi
xor r9d, r9d
mov qword [rsp + 0x40], r14
mov edx, 0x80000000
xor r14d, r14d
mov rcx, rbp
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
lea r8d, [r14 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400b7d20
mov r14, qword [rsp + 0x40]
lea eax, [rsi + 2]
mov rsi, qword [rsp + 0x68]
add rsp, 0x48
pop rbp
pop rbx
ret
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x78], rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400b7e45
mov rax, qword [rsp + 0x70]
cmp rax, 0x7fffffff
jg 0x1400b7e45
test rax, rax
je 0x1400b7e45
xor r9d, r9d
mov qword [rsp + 0x28], r14
xor edx, edx
mov dword [rsp + 0x20], r14d
mov rcx, rsi
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rdi, rax
test rax, rax
je 0x1400b7e45
mov ecx, dword [rsp + 0x70]
xor r9d, r9d
mov dword [rbx + 8], ecx
xor r8d, r8d
mov rcx, rax
mov dword [rbx + 0xc], r14d
mov qword [rsp + 0x20], r14
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, rdi
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], r14
je 0x1400b7dba
lea rax, [0x1400b7ea0]
jmp 0x1400b7e13
mov rcx, qword [rbx + 0x30]
xor edx, edx
movsxd r8, dword [rbx + 8]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
test rax, rax
je 0x1400b7e45
mov edi, r14d
nop dword [rax + rax]
mov r8d, dword [rbx + 8]
lea r9, [rsp + 0x60]
mov edx, edi
sub r8d, edi
add rdx, qword [rbx]
mov rcx, rsi
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400b7e33
add edi, dword [rsp + 0x60]
cmp edi, dword [rbx + 8]
jne 0x1400b7de0
lea rax, [0x1400b7e70]
mov rcx, rsi
mov qword [rbx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbx]
mov qword [rbx + 0x10], rax
xor eax, eax
mov qword [rbx + 0x18], rbp
mov qword [rbx + 0x20], r14
jmp 0x1400b7e5a
mov rcx, qword [rbx + 0x30]
xor edx, edx
mov r8, qword [rbx]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x51
mov qword [rbx], r14
mov qword [rbx + 8], r14
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x68]
mov r14, qword [rsp + 0x40]
add rsp, 0x48
pop rbp
pop rbx
ret
Function at 0x1400b9430
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r9, rdx
test rdx, rdx
jne 0x1400b943b
xor eax, eax
ret
lea r11, [0x140160960]
not ecx
cmp r8d, 8
jb 0x1400b9511
mov r10d, r8d
shr r10, 3
nop word [rax + rax]
movzx edx, byte [r9]
mov eax, ecx
xor rdx, rax
shr ecx, 8
movzx eax, dl
add r8d, 0xfffffff8
movzx edx, byte [r9 + 1]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 2]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 3]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 4]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 5]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 6]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 7]
add r9, 8
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
sub r10, 1
jne 0x1400b9460
test r8d, r8d
je 0x1400b953d
nop word [rax + rax]
movzx edx, byte [r9]
lea r9, [r9 + 1]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
add r8d, 0xffffffff
jne 0x1400b9520
not ecx
mov eax, ecx
ret
Function at 0x1400be00c
Capabilities:
Parse pe header

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

Function at 0x1400c84c0
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1401a9040]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea rcx, [0x1401879d8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x1400c8527
lea rdx, str.DbgBreakPoint
mov qword [rsp + 0x30], rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x1400c8522
lea r9, [rsp + 0x20]
mov edx, 1
mov r8d, 0x40
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1400c8522
mov byte [rbx], 0xc3
mov rbx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400bdae0
add rsp, 0x38
ret
Function at 0x1400cde20
Capabilities:
Check for debugger via api

Disassembly:
sub rsp, 0x68
mov rax, qword [0x1401a9040]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CheckRemoteDebuggerPresent]
cmp dword [rsp + 0x48], 0
jne 0x1400cde68
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400bdae0
add rsp, 0x68
ret
lea rdx, str.Debugger_Detected.
lea rcx, [rsp + 0x28]
call fcn.140025f80
mov rcx, rax
call fcn.1400d01c0
int3

Function at 0x1400ce010
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x28
lea rcx, str._s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x1400ce023
add rsp, 0x28
ret

Function at 0x1400ce150
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x18]
mov rdx, qword [rcx + 0x10]
mov eax, dword [rdx + 0x30]
add eax, 0x100000
mov dword [rdx + 0x40], eax
xor eax, eax
ret

Function at 0x1400ce240
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x44], 0
je 0x1400ce263
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x5d]
xor byte [rcx + rax], dl
inc rax
cmp rax, 0x43
jb 0x1400ce250
mov byte [rcx + 0x44], 0
mov rax, rcx
ret

Function at 0x1400ce270
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x47], 0
mov r8, rcx
je 0x1400ce2fb
mov r9, 0xfffffffffffffffe
lea rax, [rcx + 2]
sub r9, rcx
nop dword [rax + rax]
lea edx, [r9 + rax]
lea ecx, [rdx + 0x5d]
xor byte [rax - 2], cl
lea rax, [rax + 0xe]
lea ecx, [rdx + 0x5e]
xor byte [rax - 0xf], cl
lea ecx, [rdx + 0x5f]
xor byte [rax - 0xe], cl
lea ecx, [rdx + 0x60]
xor byte [rax - 0xd], cl
lea ecx, [rdx + 0x61]
xor byte [rax - 0xc], cl
lea ecx, [rdx + 0x62]
xor byte [rax - 0xb], cl
lea ecx, [rdx + 0x63]
xor byte [rax - 0xa], cl
lea ecx, [rdx + 0x64]
xor byte [rax - 9], cl
lea ecx, [rdx + 0x65]
xor byte [rax - 8], cl
lea ecx, [rdx + 0x66]
xor byte [rax - 7], cl
lea ecx, [rdx + 0x67]
xor byte [rax - 6], cl
lea ecx, [rdx + 0x68]
xor byte [rax - 5], cl
lea ecx, [rdx + 0x69]
xor byte [rax - 4], cl
add dl, 0x6a
xor byte [rax - 3], dl
lea rcx, [rax + r9]
cmp rcx, 0x46
jb 0x1400ce290
mov byte [r8 + 0x47], 0
mov rax, r8
ret

Function at 0x1400ce300
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0xbf], 0
je 0x1400ce328
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x5d]
xor byte [rcx + rax], dl
inc rax
cmp rax, 0xbe
jb 0x1400ce310
mov byte [rcx + 0xbf], 0
mov rax, rcx
ret
Function at 0x1400cf470
Capabilities:
Create thread
Hide thread from debugger
Terminate process

Disassembly:
push rdi
sub rsp, 0x50
xor eax, eax
mov rdi, rdx
cmp qword [rdx], rax
jne 0x1400cf512
mov r8, rcx
mov qword [rsp + 0x28], rax
xor ecx, ecx
mov qword [rsp + 0x60], rbx
xor r9d, r9d
mov dword [rsp + 0x20], eax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, rax
test rax, rax
je 0x1400cf518
lea rcx, [0x1401879d8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x1400cf4ee
lea rdx, str.NtSetInformationThread
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400cf4ee
xor r9d, r9d
xor r8d, r8d
mov edx, reloc.WS2_32.dll_recvfrom
mov rcx, rbx
call rax
test eax, eax
je 0x1400cf4ee
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov edx, 2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov rcx, qword [rdi]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rax, rbx
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
lea rdx, str.Thread_creation_failed
lea rcx, [rsp + 0x30]
call fcn.140025f80
mov rcx, rax
call fcn.1400d01c0
int3
Function at 0x1400d6dd0
Capabilities:
Resume thread
Suspend thread

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1401a9040]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, rcx
mov rcx, qword [rcx]
test rcx, rcx
je 0x1400d6e48
lea rdx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x1400d6e2e
cmp dword [rsp + 0x48], 0x103
jne 0x1400d6e62
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400bdae0
add rsp, 0x60
pop rbx
ret
lea rdx, str.Failed_to_get_thread_exit_code
lea rcx, [rsp + 0x28]
call fcn.140025f80
mov rcx, rax
call fcn.1400d01c0
int3
lea rdx, str.Thread_handle_is_invalid
lea rcx, [rsp + 0x28]
call fcn.140025f80
mov rcx, rax
call fcn.1400d01c0
int3
lea rdx, str.Failed_to_get_thread_exit_code
lea rcx, [rsp + 0x28]
call fcn.140025f80
mov rcx, rax
call fcn.1400d01c0
int3
Function at 0x1400db160
Capabilities:
Check for debugger via api

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1401a9040]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CheckRemoteDebuggerPresent]
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400bdae0
add rsp, 0x38
ret
Function at 0x1400db1d0
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rdi, rdx
mov ecx, dword [rcx + 0x28]
cmp ecx, 0x40
jae 0x1400db388
lea r8d, [rcx*8]
mov qword [rsp + 0x30], rsi
add qword [rbx], r8
mov byte [rcx + rbx + 0x2c], 0x80
mov eax, dword [rbx + 0x28]
inc eax
mov dword [rbx + 0x28], eax
cmp eax, 0x38
jbe 0x1400db248
cmp eax, 0x40
jae 0x1400db232
nop dword [rax]
nop word [rax + rax]
mov byte [rax + rbx + 0x2c], 0
mov eax, dword [rbx + 0x28]
inc eax
mov dword [rbx + 0x28], eax
cmp eax, 0x40
jb 0x1400db220
lea rsi, [rbx + 0x2c]
mov rcx, rbx
mov rdx, rsi
call fcn.1400db4b0
xor eax, eax
mov dword [rbx + 0x28], eax
jmp 0x1400db250
lea rsi, [rbx + 0x2c]
jae 0x1400db262
nop
mov byte [rax + rbx + 0x2c], 0
mov eax, dword [rbx + 0x28]
inc eax
mov dword [rbx + 0x28], eax
cmp eax, 0x38
jb 0x1400db250
movzx eax, byte [rbx + 7]
mov rdx, rsi
mov byte [rbx + 0x64], al
mov rcx, rbx
movzx eax, byte [rbx + 6]
mov byte [rbx + 0x65], al
movzx eax, byte [rbx + 5]
mov byte [rbx + 0x66], al
movzx eax, byte [rbx + 4]
mov byte [rbx + 0x67], al
movzx eax, byte [rbx + 3]
mov byte [rbx + 0x68], al
movzx eax, byte [rbx + 2]
mov byte [rbx + 0x69], al
movzx eax, byte [rbx + 1]
mov byte [rbx + 0x6a], al
movzx eax, byte [rbx]
mov byte [rbx + 0x6b], al
call fcn.1400db4b0
movzx eax, byte [rbx + 0xb]
mov byte [rdi], al
movzx eax, byte [rbx + 0xa]
mov byte [rdi + 1], al
movzx eax, byte [rbx + 9]
mov byte [rdi + 2], al
movzx eax, byte [rbx + 8]
mov byte [rdi + 3], al
movzx eax, byte [rbx + 0xf]
mov byte [rdi + 4], al
movzx eax, byte [rbx + 0xe]
mov byte [rdi + 5], al
movzx eax, byte [rbx + 0xd]
mov byte [rdi + 6], al
movzx eax, byte [rbx + 0xc]
mov byte [rdi + 7], al
movzx eax, byte [rbx + 0x13]
mov byte [rdi + 8], al
movzx eax, byte [rbx + 0x12]
mov byte [rdi + 9], al
movzx eax, byte [rbx + 0x11]
mov byte [rdi + 0xa], al
movzx eax, byte [rbx + 0x10]
mov byte [rdi + 0xb], al
movzx eax, byte [rbx + 0x17]
mov byte [rdi + 0xc], al
movzx eax, byte [rbx + 0x16]
mov byte [rdi + 0xd], al
movzx eax, byte [rbx + 0x15]
mov byte [rdi + 0xe], al
movzx eax, byte [rbx + 0x14]
mov byte [rdi + 0xf], al
movzx eax, byte [rbx + 0x1b]
mov byte [rdi + 0x10], al
movzx eax, byte [rbx + 0x1a]
mov byte [rdi + 0x11], al
movzx eax, byte [rbx + 0x19]
mov byte [rdi + 0x12], al
movzx eax, byte [rbx + 0x18]
mov byte [rdi + 0x13], al
movzx eax, byte [rbx + 0x1f]
mov byte [rdi + 0x14], al
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 0x15], al
movzx eax, byte [rbx + 0x1d]
mov byte [rdi + 0x16], al
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 0x17], al
movzx eax, byte [rbx + 0x23]
mov byte [rdi + 0x18], al
movzx eax, byte [rbx + 0x22]
mov byte [rdi + 0x19], al
movzx eax, byte [rbx + 0x21]
mov byte [rdi + 0x1a], al
movzx eax, byte [rbx + 0x20]
mov byte [rdi + 0x1b], al
movzx eax, byte [rbx + 0x27]
mov byte [rdi + 0x1c], al
movzx eax, byte [rbx + 0x26]
mov byte [rdi + 0x1d], al
movzx eax, byte [rbx + 0x25]
mov byte [rdi + 0x1e], al
movzx eax, byte [rbx + 0x24]
mov rsi, qword [rsp + 0x30]
mov byte [rdi + 0x1f], al
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400db3a0
Capabilities:
Hash data using sha256

Disassembly:
xor eax, eax
mov qword [rcx + 0x24], 0x5be0cd19
mov qword [rcx], rax
mov dword [rcx + 8], 0x6a09e667
mov dword [rcx + 0xc], 0xbb67ae85
mov dword [rcx + 0x10], 0x3c6ef372
mov dword [rcx + 0x14], 0xa54ff53a
mov dword [rcx + 0x18], 0x510e527f
mov dword [rcx + 0x1c], 0x9b05688c
mov dword [rcx + 0x20], 0x1f83d9ab
ret
Function at 0x1400df5a0
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
cdqe
add rsp, 0x28
ret
Function at 0x1400e5780
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x1400e5862
call fcn.140102e70
test al, al
jne 0x1400e5862
mov qword [rsp + 0x30], rsi
xor esi, esi
mov qword [rsp + 0x38], rdi
mov rdi, 0xffffffffffffffff
inc rdi
cmp byte [rbx + rdi], sil
jne 0x1400e57b2
mov r8, rdi
mov edx, reloc.WLDAP32.dll_Ordinal_46
mov rcx, rbx
call fcn.14010e0d0
test rax, rax
je 0x1400e57f7
sub rax, rbx
mov edx, reloc.WLDAP32.dll_Ordinal_46
mov r8, rax
mov rcx, rbx
call fcn.14010e0d0
mov rsi, rax
test rax, rax
je 0x1400e57f7
inc rsi
mov rcx, rbx
sub rcx, rsi
add rdi, rcx
test rsi, rsi
cmovne rbx, rsi
lea rsi, [rbx + rdi]
mov edi, 0x1505
cmp rbx, rsi
jae 0x1400e582b
nop dword [rax]
movzx ecx, byte [rbx]
call fcn.1400fc3e0
imul rdi, rdi, 0x21
movsx rcx, al
inc rbx
xor rdi, rcx
cmp rbx, rsi
jb 0x1400e5810
mov rsi, qword [rsp + 0x30]
mov rcx, rdi
movabs rax, 0x410410410410411
mul rdi
sub rcx, rdx
shr rcx, 1
add rcx, rdx
shr rcx, 5
imul rcx, rcx, 0x3f
sub rdi, rcx
mov rax, rdi
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x1400ee350
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r15
sub rsp, 0x48
mov rax, qword [rcx]
lea rbp, [rcx + 0x18]
mov r12, qword [rbp]
mov rdi, rdx
mov r15, r8
mov r10, rcx
mov edx, dword [rax + 8]
and edx, 0xa
cmp edx, 0xa
jne 0x1400ee38e
add r12, 0x348
jmp 0x1400ee395
add r12, 0x2d8
cmp edx, 0xa
mov eax, 0x5f8
mov ecx, 0x540
mov esi, 0
cmovne eax, ecx
mov qword [r9], rsi
mov bl, 1
add rax, rdi
je 0x1400ee540
cmp byte [rax + 0x6c], sil
je 0x1400ee540
cmp qword [rdi + 0xca0], rsi
je 0x1400ee540
mov rax, qword [rdi + 0xf8]
mov qword [rsp + 0x88], r13
test rax, rax
je 0x1400ee3f0
test byte [rax + 4], 0x10
lea r13, [rax + 0x118]
jne 0x1400ee3f7
lea r13, [rdi + 0xca8]
cmp qword [rdi + 0x6c0], rsi
jbe 0x1400ee4ef
mov qword [rsp + 0x40], r14
mov r14, rsi
nop dword [rax]
mov rbx, qword [rdi + 0xca0]
add rbx, r14
cmp qword [rbx + 0x18], 0
je 0x1400ee4c9
mov rdx, qword [rbx]
mov rcx, qword [r15]
call fcn.1400fc510
test eax, eax
je 0x1400ee4c9
mov rcx, qword [rbp]
mov rdx, qword [rbx + 8]
cmp byte [rcx + 0x3c0], 0
jne 0x1400ee450
test rdx, rdx
je 0x1400ee465
jmp 0x1400ee4c9
test rdx, rdx
je 0x1400ee4c9
mov rcx, qword [rcx + 0x98]
call fcn.1400fc510
test eax, eax
je 0x1400ee4c9
mov rcx, qword [rbp]
mov eax, dword [rbx + 0x38]
cmp byte [rcx + 0x3c1], 0
jne 0x1400ee47c
cmp eax, 0xffffffff
je 0x1400ee489
jmp 0x1400ee4c9
cmp eax, 0xffffffff
je 0x1400ee4c9
cmp dword [rcx + 0x7d0], eax
jne 0x1400ee4c9
mov eax, dword [rbx + 0x34]
cmp dword [r15 + 0x1c], eax
jne 0x1400ee4c9
mov eax, dword [rbx + 0x3c]
cmp dword [r15 + 0x20], eax
jne 0x1400ee4c9
mov rcx, qword [rcx + 0x3e0]
mov rdx, qword [rbx + 0x10]
mov rcx, qword [rcx]
call fcn.1400fc510
test eax, eax
je 0x1400ee4c9
lea r8, [rbx + 0x40]
mov rdx, r12
mov rcx, rdi
call fcn.1400ef1d0
test al, al
jne 0x1400ee550
inc rsi
add r14, 0xb0
cmp rsi, qword [rdi + 0x6c0]
jb 0x1400ee410
mov bl, 1
mov r10, qword [rsp + 0x80]
mov r14, qword [rsp + 0x40]
mov rax, qword [r10 + 0x18]
lea r9, str.Found
mov ecx, dword [r15 + 0x1c]
lea r8, str._s_cached_session_ID_for__s:___s:_d
mov dword [rsp + 0x30], ecx
test bl, bl
mov rcx, qword [r15]
mov rdx, qword [rax + 0x3e0]
lea rax, [0x140163cd8]
mov qword [rsp + 0x28], rcx
cmovne r9, rax
mov rcx, qword [rdx]
mov rdx, r10
mov qword [rsp + 0x20], rcx
mov rcx, rdi
call fcn.1400f5e50
mov r13, qword [rsp + 0x88]
movzx eax, bl
add rsp, 0x48
pop r15
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
inc dword [r13]
mov eax, dword [r13]
mov rcx, qword [rsp + 0x98]
mov dword [rbx + 0x30], eax
mov rax, qword [rbx + 0x18]
mov qword [rcx], rax
mov rcx, qword [rsp + 0xa0]
test rcx, rcx
je 0x1400ee57e
mov rax, qword [rbx + 0x20]
mov qword [rcx], rax
xor bl, bl
jmp 0x1400ee4e2