joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400ebdc0
Capabilities:
Get user security identifier

Disassembly:
push rsi
push r14
push r15
sub rsp, 0x60
movzx eax, word [rcx]
mov r14, r9
mov word [rsp + 0x38], ax
mov rsi, r8
add ax, 2
mov r15, rdx
cmp qword [rcx], 0xfffe
mov word [rsp + 0x3a], ax
mov rax, qword [rcx + 8]
mov qword [rsp + 0x40], rax
jbe 0x1400ebe05
mov eax, 0xc0000106
add rsp, 0x60
pop r15
pop r14
pop rsi
ret
mov qword [rsp + 0x90], rbp
mov qword [rsp + 0x50], r12
call fcn.1400eb960
xor r12d, r12d
lea rcx, [rsp + 0x80]
mov qword [rsp + 0x28], rcx
lea r9, [rsp + 0x38]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x20], rcx
xor edx, edx
mov rcx, rax
mov qword [rsp + 0x80], r12
lea r8d, [r12 + 1]
call qword [sym.imp.ADVAPI32.dll_LsaLookupNames2]
mov rcx, qword [rsp + 0x80]
mov ebp, eax
test eax, eax
js 0x1400ebf74
mov edx, dword [rcx]
sub edx, 7
cmp edx, 1
jbe 0x1400ebf6f
mov qword [rsp + 0x88], rbx
mov qword [rsp + 0x58], rdi
test r15, r15
je 0x1400ebecb
mov rcx, qword [rcx + 8]
call qword [sym.imp.ntdll.dll_RtlLengthSid]
mov rcx, qword [0x140196670]
lea edx, [r12 + 4]
mov r8d, eax
mov ebx, eax
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdx, qword [rsp + 0x80]
mov r8d, ebx
mov rcx, rax
mov rdi, rax
mov rdx, qword [rdx + 8]
call fcn.14010e700
mov rcx, qword [rsp + 0x80]
mov qword [r15], rdi
test rsi, rsi
je 0x1400ebf56
movsxd rax, dword [rcx + 0x10]
test eax, eax
js 0x1400ebf46
lea rdx, [rax + rax*2]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
lea rax, [rcx + rdx*8]
movzx ecx, word [rcx + rdx*8]
test cx, cx
jne 0x1400ebf03
call sym.ProcessHacker.exe_PhReferenceEmptyString
mov rbx, rax
mov qword [rsi], rax
jmp 0x1400ebf4e
mov rdx, qword [0x140196800]
mov r15, qword [rax + 8]
movzx edi, cx
lea rcx, [rdi + 0x12]
call sym.ProcessHacker.exe_PhCreateObject
mov rbx, rax
mov qword [rax], rdi
add rax, 0x10
mov qword [rbx + 8], rax
mov word [rax + rdi], r12w
test r15, r15
je 0x1400ebf41
mov rcx, qword [rbx + 8]
mov r8d, edi
mov rdx, r15
call fcn.14010e700
mov qword [rsi], rbx
jmp 0x1400ebf4e
call sym.ProcessHacker.exe_PhReferenceEmptyString
mov qword [rsi], rax
mov rcx, qword [rsp + 0x80]
mov rdi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x88]
test r14, r14
je 0x1400ebf74
mov eax, dword [rcx]
mov dword [r14], eax
jmp 0x1400ebf74
mov ebp, 0xc0000073
mov rax, qword [rsp + 0x30]
mov r12, qword [rsp + 0x50]
test rax, rax
je 0x1400ebf94
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_LsaFreeMemory]
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x1400ebf9f
call qword [sym.imp.ADVAPI32.dll_LsaFreeMemory]
mov eax, ebp
mov rbp, qword [rsp + 0x90]
add rsp, 0x60
pop r15
pop r14
pop rsi
ret
Function at 0x1400f22b0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push rdi
push r15
sub rsp, 0x28
mov rdi, rdx
mov r15, rcx
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x1400f241d
lea rcx, str.BinaryData
mov qword [rsp + 0x48], rbp
call qword [sym.imp.USER32.dll_RegisterClipboardFormatW]
mov ecx, eax
call qword [sym.imp.USER32.dll_GetClipboardData]
mov rbp, rax
test rax, rax
jne 0x1400f2303
lea ecx, [rax + 1]
call qword [sym.imp.USER32.dll_GetClipboardData]
mov rbp, rax
test rax, rax
je 0x1400f2412
mov qword [rsp + 0x40], rbx
mov rcx, rbp
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rcx, rbp
mov r12, rax
call qword [sym.imp.KERNEL32.dll_GlobalSize]
mov ecx, dword [rdi + 0x1c]
mov rsi, rax
mov r9d, dword [rdi + 0x20]
mov ebx, ecx
mov r14d, dword [rdi + 0x14]
cmp ecx, r9d
jle 0x1400f234d
mov ebx, r9d
mov dword [rdi + 0x20], ecx
mov dword [rdi + 0x1c], ebx
mov r9d, ecx
cmp byte [rdi + 0x30], 0
je 0x1400f23ae
cmp ebx, 0xffffffff
jne 0x1400f237b
cmp dword [rdi + 0x18], 3
mov ebx, r14d
jne 0x1400f2368
lea ebx, [r14 + 1]
mov dword [rdi + 0x14], ebx
mov r9d, esi
mov r8d, ebx
mov rdx, rdi
mov rcx, r15
call fcn.1400f2520
jmp 0x1400f23cd
mov r8d, ebx
mov rdx, rdi
mov rcx, r15
call fcn.1400f2430
mov r9d, esi
mov r8d, ebx
mov rdx, rdi
mov rcx, r15
call fcn.1400f2520
or r9d, 0xffffffff
mov rdx, rdi
or r8d, r9d
mov rcx, r15
call fcn.1400f1f00
jmp 0x1400f23cd
cmp ebx, 0xffffffff
jne 0x1400f23c3
cmp dword [rdi + 0x18], 3
mov ebx, r14d
jne 0x1400f23c3
lea ebx, [r14 + 1]
mov dword [rdi + 0x14], ebx
mov eax, dword [rdi + 8]
sub eax, ebx
cmp esi, eax
cmova esi, eax
mov ecx, ebx
mov rdx, r12
add rcx, qword [rdi]
mov r8d, esi
call fcn.14010e700
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov r9d, 0x105
mov dword [rdi + 0x14], r14d
xor r8d, r8d
xor edx, edx
mov rcx, r15
call qword [sym.imp.USER32.dll_RedrawWindow]
mov r14, qword [rsp + 0x20]
mov r12, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rbp, qword [rsp + 0x48]
add rsp, 0x28
pop r15
pop rdi
ret
Function at 0x1400f58c0
Capabilities:
Capture screenshot

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0xb0
mov rbx, rdx
xor r8d, r8d
lea rdx, [rsp + 0x50]
mov rdi, rcx
call qword [sym.imp.USER32.dll_GetUpdateRect]
test eax, eax
je 0x1400f5ace
mov eax, dword [rsp + 0x5c]
or eax, dword [rsp + 0x54]
or eax, dword [rsp + 0x58]
or eax, dword [rsp + 0x50]
je 0x1400f5ace
cmp dword [rbx + 0x240], 0
mov qword [rsp + 0xc0], rsi
jg 0x1400f597e
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.GDI32.dll_CreateRectRgn]
xor r8d, r8d
mov rcx, rdi
mov rdx, rax
mov rsi, rax
call qword [sym.imp.USER32.dll_GetUpdateRgn]
mov rcx, qword [rbx + 0x248]
test rcx, rcx
jne 0x1400f5947
mov qword [rbx + 0x248], rsi
jmp 0x1400f5962
mov r9d, 2
mov r8, rsi
mov rdx, rcx
call qword [sym.imp.GDI32.dll_CombineRgn]
mov rcx, rsi
call qword [sym.imp.GDI32.dll_DeleteObject]
lea rdx, [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.USER32.dll_BeginPaint]
test rax, rax
je 0x1400f5ac6
jmp 0x1400f5ab8
test dword [rbx + 0x40], 0x200000
je 0x1400f5a33
cmp qword [rbx + 0x200], 0
jne 0x1400f5a33
mov rcx, qword [rbx]
call qword [sym.imp.USER32.dll_GetDC]
mov rsi, rax
test rax, rax
je 0x1400f5a33
mov rcx, rax
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov qword [rbx + 0x200], rax
test rax, rax
je 0x1400f5a33
movups xmm0, xmmword [rbx + 0x68]
mov rcx, rsi
movups xmmword [rbx + 0x218], xmm0
mov edx, dword [rbx + 0x220]
mov r8d, dword [rbx + 0x224]
inc edx
call qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov qword [rbx + 0x210], rax
test rax, rax
jne 0x1400f5a0c
mov rcx, qword [rbx + 0x200]
call qword [sym.imp.GDI32.dll_DeleteDC]
mov qword [rbx + 0x200], 0
jmp 0x1400f5a33
mov rcx, qword [rbx]
mov rdx, rsi
call qword [sym.imp.USER32.dll_ReleaseDC]
mov rdx, qword [rbx + 0x210]
mov rcx, qword [rbx + 0x200]
call qword [sym.imp.GDI32.dll_SelectObject]
mov qword [rbx + 0x208], rax
lea rdx, [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.USER32.dll_BeginPaint]
mov rsi, rax
test rax, rax
je 0x1400f5ac6
movups xmm0, xmmword [rsp + 0x6c]
mov r8, qword [rbx + 0x200]
lea r9, [rsp + 0x50]
mov rdx, rbx
movups xmmword [rsp + 0x50], xmm0
test r8, r8
je 0x1400f5ab0
call fcn.1400fb690
mov ecx, dword [rsp + 0x5c]
mov r8d, dword [rsp + 0x54]
sub ecx, r8d
mov edx, dword [rsp + 0x50]
mov rax, qword [rbx + 0x200]
mov r9d, dword [rsp + 0x58]
mov dword [rsp + 0x40], 0xcc0020
sub r9d, edx
mov dword [rsp + 0x38], r8d
mov dword [rsp + 0x30], edx
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ecx
mov rcx, rsi
call qword [sym.imp.GDI32.dll_BitBlt]
jmp 0x1400f5ab8
mov r8, rsi
call fcn.1400fb690
lea rdx, [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.USER32.dll_EndPaint]
mov rsi, qword [rsp + 0xc0]
mov rbx, qword [rsp + 0xc8]
add rsp, 0xb0
pop rdi
ret
Function at 0x1400fe9e0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov qword [rcx + 8], rdx
mov qword [rcx + 0x10], r8
mov r8d, 0x40
call fcn.1400fed50
nop
mov eax, 0x5a4d
cmp word [rdi], ax
je 0x1400fea2b
mov eax, 0xc000012f
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov eax, dword [rdi + 0x3c]
test eax, eax
jne 0x1400fea47
mov eax, 0xc000007b
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
cmp eax, 0x10000000
jae 0x1400fea32
cmp rax, rsi
jae 0x1400fea32
lea rdx, [rax + rdi]
mov qword [rbx + 0x18], rdx
mov r8d, 0x18
mov rcx, rbx
call fcn.1400fed50
mov rdx, qword [rbx + 0x18]
movzx eax, word [rdx + 6]
lea rcx, [rax + rax*4]
movzx eax, word [rdx + 0x14]
lea rcx, [rcx + 3]
lea r8, [rax + rcx*8]
mov rcx, rbx
call fcn.1400fed50
nop
mov rcx, qword [rbx + 0x18]
cmp dword [rcx], 0x4550
jne 0x1400fea32
movzx eax, word [rcx + 0x18]
mov word [rbx + 0x30], ax
mov edx, 0x10b
cmp ax, dx
je 0x1400feab2
mov edx, 0x20b
cmp ax, dx
jne 0x1400fea32
movzx eax, word [rcx + 6]
mov dword [rbx + 0x20], eax
movzx eax, word [rcx + 0x14]
add rcx, 0x18
add rcx, rax
mov qword [rbx + 0x28], rcx
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400feb60
Capabilities:
Get file attributes
Map section object

Disassembly:
mov qword [rsp + 0x10], rdx
push rbx
push rsi
push r12
push r14
push r15
sub rsp, 0x90
xor r12d, r12d
xor sil, sil
mov qword [rsp + 0x50], r12
mov r15, r9
movzx r14d, r8b
mov rbx, rdx
test rcx, rcx
jne 0x1400feba8
test rdx, rdx
jne 0x1400fec01
mov eax, 0xc0000030
add rsp, 0x90
pop r15
pop r14
pop r12
pop rsi
pop rbx
ret
test rdx, rdx
jne 0x1400fec01
mov r8d, r12d
mov dword [rsp + 0x30], 0x60
mov eax, 0x106
mov dword [rsp + 0x28], 1
mov rdx, rcx
mov dword [rsp + 0x20], 1
test r14b, r14b
lea rcx, [rsp + 0xc8]
cmove r8d, eax
xor r9d, r9d
or r8d, 0x100081
call sym.ProcessHacker.exe_PhCreateFileWin32
test eax, eax
js 0x1400fed33
mov rbx, qword [rsp + 0xc8]
mov sil, 1
mov r9d, 0x18
mov qword [rsp + 0xd8], rdi
lea r8, [rsp + 0x78]
mov dword [rsp + 0x20], 5
lea rdx, [rsp + 0x68]
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov ecx, eax
mov edi, eax
test eax, eax
js 0x1400fec42
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0xc0], rax
test ecx, ecx
js 0x1400fed0b
mov qword [rsp + 0xd0], rbp
lea r9, [rsp + 0xc0]
mov eax, 2
mov qword [rsp + 0x30], rbx
test r14b, r14b
mov dword [rsp + 0x28], 0x8000000
mov ebp, 4
lea rcx, [rsp + 0x50]
cmovne ebp, eax
mov edx, 0xf001f
xor r8d, r8d
mov dword [rsp + 0x20], ebp
call qword [sym.imp.ntdll.dll_NtCreateSection]
mov edi, eax
test eax, eax
js 0x1400fed03
mov rax, qword [rsp + 0xc0]
lea r8, [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
xor r9d, r9d
mov dword [rsp + 0x48], ebp
or rdx, 0xffffffffffffffff
mov dword [rsp + 0x40], r12d
mov dword [rsp + 0x38], 1
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
mov qword [rsp + 0x58], r12
call qword [sym.imp.ntdll.dll_NtMapViewOfSection]
mov edi, eax
test eax, eax
js 0x1400fed03
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0xe0]
mov qword [r15], rax
mov rax, qword [rsp + 0xc0]
mov qword [rcx], rax
mov rbp, qword [rsp + 0xd0]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400fed1b
call qword [sym.imp.ntdll.dll_NtClose]
test sil, sil
je 0x1400fed29
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtClose]
mov eax, edi
mov rdi, qword [rsp + 0xd8]
add rsp, 0x90
pop r15
pop r14
pop r12
pop rsi
pop rbx
ret
Function at 0x1400fef00
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x170
mov rdi, r9
mov qword [r9], rdx
mov rsi, r8
mov qword [rsp + 0x20], 0
mov r9d, 0x40
lea r8, [rsp + 0x30]
mov rbx, rdx
mov rbp, rcx
call rsi
test eax, eax
js 0x1400fefee
mov eax, 0x5a4d
cmp word [rsp + 0x30], ax
je 0x1400fef5a
mov eax, 0xc000012f
jmp 0x1400fefee
mov ecx, dword [rsp + 0x6c]
lea eax, [rcx - 1]
cmp eax, 0xffffffe
ja 0x1400ff06f
mov qword [rsp + 0x180], r14
lea r8, [rsp + 0x70]
lea r14, [rbx + rcx]
mov qword [rsp + 0x20], 0
mov rdx, r14
mov r9d, 0xf8
mov rcx, rbp
call rsi
test eax, eax
js 0x1400fefe6
cmp dword [rsp + 0x70], 0x4550
jne 0x1400fefe1
movzx eax, word [rsp + 0x88]
mov ecx, 0x10b
mov word [rdi + 0x20], ax
sub ax, cx
mov ecx, 0xfeff
test cx, ax
jne 0x1400fefe1
movzx eax, word [rsp + 0x76]
mov dword [rdi + 0x10], eax
lea edx, [rax + rax*4]
movzx eax, word [rsp + 0x84]
lea edx, [rdx + 3]
lea edx, [rax + rdx*8]
cmp edx, 0x100000
jbe 0x1400ff007
mov eax, 0xc000007b
mov r14, qword [rsp + 0x180]
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
mov rcx, qword [0x140196670]
mov ebx, edx
mov r8d, edx
mov edx, 4
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r9d, ebx
mov qword [rsp + 0x20], 0
mov r8, rax
mov qword [rdi + 8], rax
mov rdx, r14
mov rcx, rbp
call rsi
mov rcx, qword [rdi + 8]
mov ebx, eax
test eax, eax
jns 0x1400ff059
mov r8, rcx
xor edx, edx
mov rcx, qword [0x140196670]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, ebx
jmp 0x1400fefe6
movzx eax, word [rcx + 0x14]
add rcx, 0x18
add rcx, rax
mov qword [rdi + 0x18], rcx
xor eax, eax
jmp 0x1400fefe6
mov eax, 0xc000007b
jmp 0x1400fefee
Function at 0x140105530
Capabilities:
Hash data using sha1

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x70
mov edi, dword [rcx + 0x30]
mov eax, 0x38
mov r8d, edi
mov rsi, rdx
and r8d, 0x3f
mov rbp, rcx
sub eax, r8d
lea rcx, [rsp + 0x21]
mov ebx, 0x78
sub ebx, r8d
cmp r8d, 0x38
cmovb ebx, eax
xor edx, edx
lea eax, [rbx - 1]
movsxd r8, eax
call fcn.14010ed90
mov ecx, dword [rbp + 0x2c]
lea rdx, [rsp + 0x20]
shl ecx, 3
lea r8d, [rbx + 8]
movsxd rax, ebx
add rdx, rax
mov byte [rsp + 0x20], 0x80
mov eax, edi
shr eax, 0x1d
or ecx, eax
lea eax, [rdi*8]
bswap ecx
mov dword [rdx], ecx
mov rcx, rbp
bswap eax
mov dword [rdx + 4], eax
lea rdx, [rsp + 0x20]
call fcn.140105440
mov ecx, dword [rbp + 0x18]
mov edx, ecx
and edx, 0xff0000
mov eax, ecx
shr eax, 0x10
or edx, eax
mov eax, ecx
shr edx, 8
and ecx, 0xff00
shl eax, 0x10
or eax, ecx
shl eax, 8
or edx, eax
mov dword [rsi], edx
mov ecx, dword [rbp + 0x1c]
mov edx, ecx
shl edx, 0x10
mov eax, ecx
and eax, 0xff00
shr ecx, 8
or edx, eax
and ecx, 0xff00
movzx eax, byte [rbp + 0x1f]
shl edx, 8
or edx, ecx
or edx, eax
mov dword [rsi + 4], edx
mov ecx, dword [rbp + 0x20]
mov edx, ecx
shl edx, 0x10
mov eax, ecx
and eax, 0xff00
shr ecx, 8
or edx, eax
and ecx, 0xff00
movzx eax, byte [rbp + 0x23]
shl edx, 8
or edx, ecx
or edx, eax
mov dword [rsi + 8], edx
mov ecx, dword [rbp + 0x24]
mov edx, ecx
and edx, 0xff00
mov eax, ecx
shl eax, 0x10
or edx, eax
shl edx, 8
movzx eax, byte [rbp + 0x27]
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
shr ecx, 8
and ecx, 0xff00
or edx, ecx
or edx, eax
mov dword [rsi + 0xc], edx
mov ecx, dword [rbp + 0x28]
mov eax, ecx
and eax, 0xff00
mov edx, ecx
shl edx, 0x10
or edx, eax
shr ecx, 8
movzx eax, byte [rbp + 0x2b]
and ecx, 0xff00
shl edx, 8
or edx, eax
or edx, ecx
mov dword [rsi + 0x10], edx
xor eax, eax
mov rsi, qword [r11 + 0x20]
mov qword [rbp + 0x2c], rax
mov dword [rbp + 0x18], 0x67452301
mov dword [rbp + 0x1c], 0xefcdab89
mov dword [rbp + 0x20], 0x98badcfe
mov dword [rbp + 0x24], 0x10325476
mov dword [rbp + 0x28], 0xc3d2e1f0
mov rbp, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x1401060a0
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x2088
call fcn.14012b380
sub rsp, rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x60], rdx
mov qword [rsp + 0x68], rax
lea rdx, [rsp + 0x60]
lea rax, [rsp + 0x2078]
mov qword [rsp + 0x70], rax
lea rax, [0x140190b00]
mov qword [rsp + 0x28], rax
call fcn.140108660
test eax, eax
jns 0x1401060ee
or eax, 0xffffffff
add rsp, 0x2088
ret
mov rax, qword [rsp + 0x68]
jle 0x14010611f
cmp rax, qword [rsp + 0x70]
jb 0x14010610f
lea rcx, [rsp + 0x60]
call fcn.1401066d0
test eax, eax
js 0x1401060e3
mov rax, qword [rsp + 0x68]
mov byte [rax], 0xa
mov rax, qword [rsp + 0x68]
inc rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x2080], rbx
lea rcx, [rsp + 0x78]
xor ebx, ebx
cmp rax, rcx
je 0x140106179
mov qword [rsp + 0x40], rbx
lea rcx, [rsp + 0x60]
sub eax, ecx
mov qword [rsp + 0x38], rbx
mov rcx, qword [rsp + 0x60]
sub eax, 0x18
mov dword [rsp + 0x30], eax
xor r9d, r9d
lea rax, [rsp + 0x78]
xor r8d, r8d
mov qword [rsp + 0x28], rax
xor edx, edx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtWriteFile]
test eax, eax
setns bl
dec ebx
mov eax, ebx
mov rbx, qword [rsp + 0x2080]
add rsp, 0x2088
ret

Function at 0x140106640
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rbx, rcx
test rcx, rcx
jne 0x140106657
or eax, 0xffffffff
add rsp, 0x60
pop rbx
ret
xor eax, eax
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x40], rax
lea rdi, [rcx + 0x18]
mov rcx, qword [rcx]
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov dword [rsp + 0x30], 0x2000
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rdi
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtReadFile]
test eax, eax
js 0x1401066a2
mov rax, qword [rsp + 0x58]
test rax, rax
jne 0x1401066b0
or eax, 0xffffffff
mov rdi, qword [rsp + 0x70]
add rsp, 0x60
pop rbx
ret
add rax, 0x18
mov qword [rbx + 8], rdi
mov rdi, qword [rsp + 0x70]
add rax, rbx
mov qword [rbx + 0x10], rax
xor eax, eax
add rsp, 0x60
pop rbx
ret

Function at 0x1401066d0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rbx, rcx
test rcx, rcx
jne 0x1401066e7
lea eax, [rcx + 1]
add rsp, 0x60
pop rbx
ret
mov rax, qword [rcx + 8]
mov qword [rsp + 0x70], rdi
lea rdi, [rcx + 0x18]
cmp rax, rdi
je 0x140106744
xor ecx, ecx
sub eax, ebx
mov qword [rsp + 0x40], rcx
sub eax, 0x18
mov qword [rsp + 0x38], rcx
xor r9d, r9d
mov rcx, qword [rbx]
xor r8d, r8d
mov dword [rsp + 0x30], eax
xor edx, edx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtWriteFile]
test eax, eax
jns 0x140106740
or eax, 0xffffffff
mov rdi, qword [rsp + 0x70]
add rsp, 0x60
pop rbx
ret
mov qword [rbx + 8], rdi
xor eax, eax
mov rdi, qword [rsp + 0x70]
add rsp, 0x60
pop rbx
ret
Function at 0x14010d264
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x80
mov rdi, rdx
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x14010d292
lea ecx, [rax + 0x19]
int 0x29
test byte [rsp + 0x44], 0x44
je 0x14010d2ec
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r9d, dword [rsp + 0x54]
xor edx, edx
lea ecx, [r9 - 1]
mov eax, ecx
lea r8, [r9 - 1]
and eax, edi
and ecx, ebx
add eax, ecx
not r8
dec rax
and r8, rbx
add rax, r9
div r9
xor edx, edx
mov rcx, rax
mov rax, rdi
div r9
add rcx, rax
mov eax, ecx
test ecx, ecx
je 0x14010d2ec
lock or dword [r8], 0
add r8, r9
sub rax, 1
jne 0x14010d2de
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rdi
ret

Function at 0x14010d300
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
movsxd r8, dword [0x14000003c]
lea rdi, [0x140000000]
add r8, rdi
mov r11, rdx
mov rbx, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x14010d373
mov r9d, dword [r8 + 0xf0]
xor edx, edx
test r9d, r9d
je 0x14010d373
movzx eax, word [r8 + 0x14]
lea rcx, [r8 + 0x18]
movzx r10d, word [r8 + 6]
add rcx, rax
mov r9d, dword [r9 + rdi + 0xc]
test r10d, r10d
je 0x14010d373
mov eax, dword [rcx + 0xc]
cmp r9d, eax
jb 0x14010d368
mov r8d, dword [rcx + 8]
add eax, r8d
cmp r9d, eax
jb 0x14010d380
inc edx
add rcx, 0x28
cmp edx, r10d
jb 0x14010d354
xor eax, eax
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
ret
mov dword [rbx], r8d
mov eax, dword [rcx + 0x24]
mov dword [r11], eax
mov eax, dword [rcx + 0xc]
add rax, rdi
jmp 0x14010d375

Function at 0x14010f2e0
Capabilities:
Allocate thread local storage

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
lea r9, str.FlsAlloc
xor ecx, ecx
lea r8, [0x1401330c0]
lea rdx, str.FlsAlloc
call fcn.14010f108
mov rbx, rax
test rax, rax
je 0x14010f320
mov rcx, rax
call fcn.14010e0ec
mov rcx, rdi
call rbx
jmp 0x14010f326
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14010f388
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, str.FlsSetValue
mov edi, ecx
lea rdx, str.FlsSetValue
mov ecx, 3
lea r8, [0x1401330f8]
call fcn.14010f108
mov rsi, rax
test rax, rax
je 0x14010f3d4
mov rcx, rax
call fcn.14010e0ec
mov rdx, rbx
mov ecx, edi
call rsi
jmp 0x14010f3df
mov rdx, rbx
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14011afa8
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rdx, rcx
test rcx, rcx
jne 0x14011af85
call fcn.14011d694
mov dword [rax], 0x16
call fcn.14011d574
or eax, 0xffffffff
jmp 0x14011afa2
sub dword [rcx + 0x10], 1
jns 0x14011af94
add rsp, 0x28
jmp 0x1401255e4
mov rax, qword [rcx]
movzx ecx, byte [rax]
inc rax
mov qword [rdx], rax
mov eax, ecx
add rsp, 0x28
ret
jmp 0x14011af64
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rdi, rcx
test rcx, rcx
jne 0x14012562c
call fcn.14011d694
mov dword [rax], 0x16
call fcn.14011d574
or esi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, esi
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140125611
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x140125611
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x140125650
lock or dword [rcx + 0x14], 0x10
jmp 0x140125611
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x140125664
call fcn.1401284c8
mov rbx, qword [rdi + 8]
mov rcx, rdi
mov qword [rdi], rbx
call fcn.14011e768
mov r8d, dword [rdi + 0x20]
mov ecx, eax
mov rdx, rbx
call fcn.140129d58
mov dword [rdi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
ja 0x1401256a3
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rdi + 0x14], eax
and dword [rdi + 0x10], 0
jmp 0x140125611
mov eax, dword [rdi + 0x14]
or esi, 0xffffffff
test al, 6
jne 0x140125709
mov rcx, rdi
call fcn.14011e768
cmp eax, esi
je 0x1401256f4
mov rcx, rdi
call fcn.14011e768
cmp eax, 0xfffffffe
je 0x1401256f4
mov rcx, rdi
call fcn.14011e768
movsxd rbx, eax
lea r14, [0x140191400]
mov rcx, rdi
sar rbx, 6
call fcn.14011e768
mov rdx, qword [r14 + rbx*8]
and eax, 0x3f
shl rax, 6
add rdx, rax
jmp 0x1401256fb
lea rdx, [0x14018a2e0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x140125709
lock or dword [rdi + 0x14], 0x20
cmp dword [rdi + 0x20], 0x200
jne 0x14012572d
mov eax, dword [rdi + 0x14]
shr eax, 6
test al, 1
je 0x14012572d
mov eax, dword [rdi + 0x14]
shr eax, 8
test al, 1
jne 0x14012572d
mov dword [rdi + 0x20], 0x1000
add dword [rdi + 0x10], esi
mov rax, qword [rdi]
movzx esi, byte [rax]
inc rax
mov qword [rdi], rax
jmp 0x140125614