joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000596ac
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], r8
push rdi
sub rsp, 0x20
mov ebx, edx
mov rdi, rcx
lea rdx, [0x1000d1f40]
lea rcx, [0x1000cd5c0]
call fcn.100055238
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.1000051c0
mov r8, qword [rsp + 0x40]
mov qword [0x1000cc788], r8
mov qword [0x1000cc780], r8
mov qword [0x1000cc790], r8
cmp ebx, 0x100
je 0x100059719
mov rcx, qword [rdi + 0x40]
call qword [sym.imp.USER32.dll_SetCapture]
mov rcx, rax
call sub.MFC42u.dll_COleControl::GetBorderStyle
mov edx, dword [0x1000cd67c]
mov ebx, 1
mov eax, edx
neg eax
sbb ecx, ecx
xor esi, esi
neg ecx
add ecx, ebx
mov dword [0x1000cc4c0], ecx
cmp dword [0x1000cd660], esi
je 0x100059745
call fcn.10003aed0
jmp 0x10005975b
cmp edx, esi
jne 0x10005975b
mov edx, dword [0x1000cc490]
lea rcx, [0x1000cd5c0]
call fcn.1000334d4
mov eax, dword [0x1000cc790]
mov rcx, qword [0x1000cd6a8]
mov dword [0x1000cd6b8], esi
sub eax, dword [0x1000cd6a8]
shr rcx, 0x20
mov dword [0x1000cd6bc], esi
mov dword [rsp + 0x48], eax
mov eax, dword [0x1000cc794]
sub eax, ecx
mov rcx, rdi
mov dword [rsp + 0x4c], eax
mov rax, qword [rsp + 0x48]
mov qword [0x1000cd694], rax
call fcn.1000325b4
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
cmp ax, si
jge 0x1000597eb
cmp dword [0x1000cd660], esi
je 0x1000597e2
mov dword [0x1000cd660], esi
mov dword [0x1000cd668], ebx
mov dword [0x1000cd674], ebx
mov rsi, qword [rsp + 0x38]
mov dword [0x1000cc4dc], ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov ecx, ebx
call fcn.100004584
jmp 0x1000597c6
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetKeyState]
cmp ax, si
jge 0x1000597c6
call fcn.1000014a0
cmp dword [0x1000cd668], esi
je 0x10005980f
mov ecx, ebx
call fcn.100004584
mov rcx, qword [rdi + 0x80]
call fcn.10000903c
mov dword [0x1000cd678], ebx
mov dword [0x1000cd660], esi
mov dword [0x1000cd668], ebx
jmp 0x1000597cc

Function at 0x10005ee30
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
movzx eax, word [rcx + 0x3bc]
mov rdi, rcx
test al, 8
je 0x10005eeed
test al, 0x10
jne 0x10005ee73
mov ebx, dword [rcx + 0x6e0]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebx
cmp eax, 0xea60
ja 0x10005ee73
mov eax, 0xfff7
and word [rdi + 0x3bc], ax
jmp 0x10005eeed
cmp dword [rdi + 0x3e0], 0
je 0x10005eeed
test byte [rdi + 0x3bc], 0x10
lea rax, [rdi + 0x6e8]
lea rcx, [rdi + 0x6f0]
cmovne rcx, rax
xor r8d, r8d
mov edx, 0x2010
mov rcx, qword [rcx]
call sub.MFC42u.dll_Ordinal_1499
cmp eax, 1
jne 0x10005eec2
mov eax, 0xffe7
and word [rdi + 0x3bc], ax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rdi + 0x6e0], eax
mov rcx, qword [rdi + 0x40]
mov rcx, qword [rcx + 0x1b0]
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x10005eeed
mov rcx, qword [rdi + 0x40]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rcx + 0x1b0]
call qword [sym.imp.USER32.dll_InvalidateRect]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1000725b8
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
mov rdi, rdx
mov r8, rdx
mov rdx, qword [rdx + 0x18]
lea rcx, [0x1000ac9d0]
call qword [sym.imp.ole32.dll_CoMarshalInterThreadInterfaceInStream]
mov ebx, eax
test eax, eax
je 0x1000725ef
lea rcx, str.CoMarshalInterThreadInterfaceInStream_HRESULT_08x_n
mov edx, eax
call fcn.100071630
jmp 0x100072634
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x100072603
and qword [rdi + 0x18], 0
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rdx, qword [rdi + 0x20]
lea r8, [rdi + 8]
lea rcx, [0x1000ac9c0]
call qword [sym.imp.ole32.dll_CoMarshalInterThreadInterfaceInStream]
mov ebx, eax
test eax, eax
jne 0x1000725df
mov rcx, qword [rdi + 0x20]
test rcx, rcx
je 0x100072632
and qword [rdi + 0x20], 0
mov rax, qword [rcx]
call qword [rax + 0x10]
xor ebx, ebx
test ebx, ebx
je 0x10007263f
mov eax, ebx
jmp 0x100072745
lea rax, [rsp + 0x80]
lea r8, [0x100072758]
mov r9, rdi
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.msvcrt.dll__beginthreadex]
mov qword [rsp + 0x88], rax
test rax, rax
jne 0x1000726ab
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.CreateThread_LastError_08x_n
mov edx, eax
call fcn.100071630
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov eax, 0x80004005
test ecx, ecx
cmovns ecx, eax
mov eax, ecx
jmp 0x100072745
xor ebx, ebx
lea rdi, [0x1000cd6e0]
and dword [rsp + 0x20], 0
lea rcx, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
mov rcx, rdi
test eax, eax
je 0x1000726e2
call sub.MFC42u.dll_COleControl::XPersistStorage::SaveCompleted
mov rcx, rdi
call sub.MFC42u.dll_CPreviewDC::SetMapMode
jmp 0x1000726b4
mov edx, ebx
call fcn.1000027e0
inc ebx
test eax, eax
jne 0x1000726b4
lea rdx, [rsp + 0x88]
lea ecx, [rax + 1]
mov r9d, 0x4ff
or r8d, 0xffffffff
xor ebx, ebx
mov dword [rsp + 0x20], 4
call qword [sym.imp.USER32.dll_MsgWaitForMultipleObjectsEx]
test eax, eax
jne 0x1000726b4
mov rcx, qword [rsp + 0x88]
lea rdx, [rsp + 0x78]
mov dword [rsp + 0x78], 1
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret

Function at 0x100078c34
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, dword [rcx + 0x28]
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x100078c5b
xor eax, eax
cmp ebx, eax
sete al
mov ebx, eax
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x10007f000
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ecx, 0x10
mov rbx, r8
mov rdi, rdx
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x10007f0c8
mov ecx, dword [rdi]
xor r8d, r8d
mov r10d, 0x96e
mov eax, ecx
sub eax, dword [rbx]
cdq
mov r9d, eax
xor r9d, edx
sub r9d, edx
cmp r9d, r8d
je 0x10007f05e
mov eax, dword [rdi + 4]
sub eax, dword [rbx + 4]
cdq
xor eax, edx
sub eax, edx
imul eax, eax, 0x3e8
cdq
idiv r9d
jmp 0x10007f061
mov eax, r10d
cmp eax, r10d
mov r11d, 0x2d
jl 0x10007f072
lea r8d, [r11 + 0x2d]
jmp 0x10007f07b
cmp eax, 0x19e
cmovge r8d, r11d
mov r10d, dword [rdi + 4]
mov eax, r10d
sub eax, dword [rbx + 4]
cdq
xor eax, edx
sub eax, edx
add eax, r9d
cdq
sub eax, edx
sar eax, 1
mov edx, eax
cmp r8d, r11d
je 0x10007f0a9
cmp r8d, 0x5a
je 0x10007f0a5
mov dword [rbx + 4], r10d
jmp 0x10007f0c8
mov dword [rbx], ecx
jmp 0x10007f0c8
cmp dword [rbx], ecx
jge 0x10007f0b3
sub ecx, eax
mov dword [rbx], ecx
jmp 0x10007f0b7
add eax, ecx
mov dword [rbx], eax
mov eax, dword [rdi + 4]
cmp dword [rbx + 4], eax
jge 0x10007f0c3
sub eax, edx
jmp 0x10007f0c5
add eax, edx
mov dword [rbx + 4], eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x100081188
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rax, qword [rdx]
mov rdi, rdx
mov rbx, rcx
cmp rax, qword [rcx + 0x1f8]
je 0x1000811c4
cmp rax, qword [rcx + 0x278]
je 0x1000811c4
cmp rax, qword [rcx + 0x358]
je 0x1000811c4
cmp rax, qword [rcx + 0x438]
jne 0x1000811e1
call fcn.100080ffc
mov rcx, qword [rbx + 0xc0]
mov r9, rdi
xor r8d, r8d
mov edx, 0x407
call qword [sym.imp.USER32.dll_SendMessageW]
mov eax, 0x100
xor esi, esi
cmp dword [rdi + 8], eax
jne 0x10008123e
cmp qword [rdi + 0x10], 9
jne 0x100081214
lea ecx, [rsi + 0x10]
call qword [sym.imp.USER32.dll_GetKeyState]
mov r8d, esi
lea edx, [rsi + 9]
cmp ax, si
mov rcx, rbx
setl r8b
call fcn.1000817c8
jmp 0x100081232
cmp dword [rdi + 8], eax
jne 0x10008123e
cmp qword [rdi + 0x10], 0x1b
jne 0x10008123e
mov rcx, qword [rbx + 0x488]
mov edx, 2
mov rax, qword [rcx]
call qword [rax + 8]
cmp al, sil
je 0x10008123e
mov eax, 1
jmp 0x10008127c
call sub.MFC42u.dll_Ordinal_1471
cmp rax, rsi
je 0x100081259
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0xf8]
mov rcx, rax
jmp 0x10008125c
mov rcx, rsi
cmp rcx, rsi
je 0x100081271
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + 0x130]
cmp eax, esi
jne 0x10008127c
mov rdx, rdi
mov rcx, rbx
call sub.MFC42u.dll_RFX_Long_Bulk
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1000831a8
Capabilities:
Check if file exists
Get common file path
Get file attributes
Get startup folder

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x490
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x1000cc510]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov rsi, rdx
mov rbp, rcx
mov qword [rsp + 0x50], rdx
xor r12d, r12d
mov dword [rsp + 0x20], r12d
mov word [rsp + 0x60], r12w
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x62]
call sub.msvcrt.dll_memset
mov qword [rsi + 0x20], 7
mov qword [rsi + 0x18], r12
lea rbx, [rsi + 8]
mov word [rbx], r12w
xor r8d, r8d
lea rdx, [0x1000a69fc]
mov rcx, rsi
call fcn.100013f9c
mov dword [rsp + 0x20], 1
xor r9d, r9d
lea r8d, [r12 + 0x1a]
lea rdx, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp eax, r12d
je 0x100083367
xor eax, eax
or r13, 0xffffffffffffffff
mov rcx, r13
lea rdi, [rsp + 0x60]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rsp + 0x60]
mov rcx, rsi
call fcn.100013f9c
lea rdx, str.Microsoft_
mov rcx, rsi
call fcn.1000184a0
mov r9, r13
xor r8d, r8d
lea rdx, [rbp + 0x28]
mov rcx, rsi
call fcn.100013a30
lea rdx, [0x1000ae8a8]
mov rcx, rsi
call fcn.1000184a0
cmp qword [rsi + 0x20], 8
jb 0x1000832b0
mov rcx, qword [rbx]
jmp 0x1000832b3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x100083316
cmp qword [rsi + 0x20], 8
jb 0x1000832ca
mov rdx, qword [rbx]
jmp 0x1000832cd
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectory]
cmp eax, r12d
je 0x100083316
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], r12
mov word [rsp + 0x30], r12w
mov r9, r13
xor r8d, r8d
lea rdx, [rsp + 0x28]
mov rcx, rsi
call fcn.100014140
nop
cmp qword [rsp + 0x48], 8
jb 0x100083367
mov rcx, qword [rsp + 0x30]
call sub.MFC42u.dll_CMonthCalCtrl::SetFirstDayOfWeek
jmp 0x100083367
cmp qword [rbp + 0x48], 8
jb 0x100083323
mov rdx, qword [rbp + 0x30]
jmp 0x100083327
lea rdx, [rbp + 0x30]
cmp qword [rsi + 0x20], 8
jb 0x100083331
mov rbx, qword [rbx]
lea r9, [rsp + 0x270]
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
xor r8d, r8d
lea rdx, [0x1000a69fc]
mov rcx, rsi
call fcn.100013f9c
lea rdx, [rsp + 0x270]
mov rcx, rsi
call fcn.1000184a0
mov rax, rsi
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.1000010a0
mov rbx, qword [rsp + 0x4d0]
add rsp, 0x490
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140001ef0
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 0x140001f18
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 0x140001f3e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140001f40
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140001f99
test ecx, ecx
jle 0x140001f79
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 0x140001f99
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140001f99
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 0x140001fc0
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 0x140001fe2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140001ff8
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 0x140002014
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140002016
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140002052
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 0x1400020ee
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000208d
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 0x1400020ce
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 0x1400020ee
cmp rbx, rax
ja 0x1400020a0
test rbx, rbx
je 0x1400020ee
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
Function at 0x140002520
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140082060]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000254d
xor eax, eax
jmp 0x1400026b9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140002587
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140002587
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x1400026b9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1400026ac
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400025ca
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x1400025f5
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1400026b1
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140002664
sub eax, 1
je 0x140002664
cmp eax, 2
jne 0x1400026ac
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1400026b1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140002692
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x1400026ac
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x1400026b1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140066bd0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140002930
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140082060]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140002a03
cmp byte [rcx + 0x71], 0
je 0x140002a03
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + Ordinal_26]
cmp eax, 0xffffffff
je 0x1400029ff
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1400029c4
sub eax, 1
je 0x1400029c8
cmp eax, 2
jne 0x1400029ff
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140066bd0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400029f6
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x1400029ff
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400029ac
xor al, al
jmp 0x1400029ac
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140066bd0
add rsp, 0x60
pop rbx
ret

Function at 0x140003960
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x160
mov rax, qword [0x140082060]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rdi, rcx
xor esi, esi
xor edx, edx
lea ecx, [rsi + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400039ea
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x130
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x1400039ea
nop word [rax + rax]
mov rdx, rdi
lea rcx, [rsp + 0x4c]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x1400039e6
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x1400039c0
jmp 0x1400039ea
mov esi, dword [rsp + 0x28]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140066bd0
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140003a20
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x160
mov rax, qword [0x140082060]
xor rax, rsp
mov qword [rsp + 0x150], rax
xor edx, edx
mov rdi, rcx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140003a9d
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x130
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x140003a94
lea rdx, [rsp + 0x4c]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
mov rcx, rbx
test eax, eax
je 0x140003ac0
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x140003a70
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140066bd0
mov rbx, qword [rsp + 0x178]
add rsp, 0x160
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x140003a9f
Function at 0x14001b670
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 0x14002d7a0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx + 0x718], 0
mov rsi, r9
mov rbp, r8
movsxd rbx, edx
mov rdi, rcx
je 0x14002d7fe
mov dl, 1
call fcn.14001d850
mov rax, qword [rdi + 0x670]
mov r9, rsi
mov r8, rbp
mov qword [rsp + 0x20], rax
mov edx, ebx
mov rcx, rdi
call qword [rdi + 0x718]
xor edx, edx
mov rcx, rdi
mov ebx, eax
call fcn.14001d850
mov eax, ebx
jmp 0x14002d842
cmp ebx, 2
ja 0x14002d840
mov r9, qword [rdi + 0x668]
lea rdx, [0x14006b1a8]
lea rcx, [rbx + rbx*2]
add rcx, rdx
mov edx, 2
lea r8d, [rdx - 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r9, qword [rdi + 0x668]
mov r8d, 1
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x14002d860
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rdi
sub rsp, 0x160
mov rax, qword [0x140082060]
xor rax, rsp
mov qword [rsp + 0x140], rax
cmp byte [rcx + 0xf1e], 0
mov rdi, rcx
jne 0x14002d8a3
cmp qword [rcx + 0x678], 0
je 0x14002d980
mov r8, rdx
mov qword [rsp + 0x158], rbx
mov edx, 0x100
lea r9, [rsp + 0x180]
lea rcx, [rsp + 0x30]
call fcn.14001ba60
lea rax, [rsp + 0x30]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x14002d8d1
mov rcx, qword [rdi + 0x678]
test rcx, rcx
je 0x14002d918
cmp byte [rdi + 0x1597], 0
jne 0x14002d918
lea rdx, [rsp + 0x30]
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rdx]
lea rdx, [rdx + 1]
mov byte [rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x14002d900
mov byte [rdi + 0x1597], 1
cmp byte [rdi + 0xf1e], 0
je 0x14002d978
mov byte [rsp + rbx + 0x30], 0xa
inc rbx
cmp rbx, 0x102
jae 0x14002d9d3
cmp qword [rdi + 0x718], 0
mov byte [rsp + rbx + 0x30], 0
je 0x14002d999
mov dl, 1
mov rcx, rdi
call fcn.14001d850
mov rax, qword [rdi + 0x670]
lea r8, [rsp + 0x30]
mov r9, rbx
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rdi
call qword [rdi + 0x718]
xor edx, edx
mov rcx, rdi
call fcn.14001d850
mov rbx, qword [rsp + 0x158]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140066bd0
add rsp, 0x160
pop rdi
ret
mov r9, qword [rdi + 0x668]
lea rcx, [0x14006b1a8]
mov edx, 2
lea r8d, [rdx - 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r9, qword [rdi + 0x668]
lea rcx, [rsp + 0x30]
mov r8d, 1
mov rdx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jmp 0x14002d978
call fcn.140067578
int3