joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001b1a0
Capabilities:
Get file attributes
Read .ini file

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x58
mov r14, rdx
mov r13, rcx
xor edi, edi
mov qword [rsp + 0x38], rdi
mov rcx, qword [rcx]
sub rcx, 0x18
call fcn.140001230
mov rbx, rax
lea rcx, [rax + 0x18]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov rbp, 0xffffffffffffffff
mov ecx, ebp
lock xadd dword [rbx + 0x10], ecx
sub ecx, 1
jg 0x14001b207
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [r8 + 8]
cmp esi, 0xffffffff
jne 0x14001b258
call fcn.140001e40
mov rcx, rax
test rax, rax
je 0x14001b40a
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [r14], rax
lea rdx, str.Error:_Ini_File_Not_Exist
mov rcx, r14
cmp rdx, 0x10000
jae 0x14001b247
movzx edx, dx
call fcn.140005c20
jmp 0x14001b253
mov r8d, 0x19
call fcn.14000bc00
nop
jmp 0x14001b3f6
mov ecx, 0x208
mov r12d, 1
call fcn.1400436c0
mov rsi, rax
call fcn.140001e40
mov rcx, rax
test rax, rax
je 0x14001b40a
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0xa0], rax
mov rax, qword [r13]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x104
mov r9, rsi
mov r15, qword [rsp + 0xc0]
mov r8, r15
mov rdx, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov rax, qword [r13]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x104
mov r9, rsi
mov r8, r15
mov rdx, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp eax, 0x103
jb 0x14001b399
mov r14, qword [rsp + 0xb8]
mov rdi, qword [rsp + 0xb0]
nop dword [rax + rax]
mov rax, rsi
mov r9, r15
sub r9, rsi
nop dword [rax]
movzx r8d, word [rax]
movzx edx, word [rax + r9]
sub r8d, edx
jne 0x14001b336
add rax, 2
test edx, edx
jne 0x14001b320
test r8d, r8d
je 0x14001b38c
mov rcx, rsi
call fcn.14004331c
inc r12d
imul ebx, r12d, 0x104
mov ecx, ebx
mov eax, 2
mul rcx
cmovo rax, rbp
mov rcx, rax
call fcn.1400436c0
mov rsi, rax
mov rax, qword [r13]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ebx
mov r9, rsi
mov r8, r15
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [rbx - 1]
cmp eax, ecx
jae 0x14001b310
mov rdi, qword [rsp + 0x38]
mov r14, qword [rsp + 0xa8]
test rsi, rsi
je 0x14001b3ab
mov rdi, rbp
inc rdi
cmp word [rsi + rdi*2], 0
jne 0x14001b3a1
mov r8d, edi
mov rdx, rsi
lea rcx, [rsp + 0xa0]
call fcn.14000bc00
mov rcx, rsi
call fcn.14004331c
mov rbx, qword [rsp + 0xa0]
lea rcx, [rbx - 0x18]
call fcn.140001230
add rax, 0x18
mov qword [r14], rax
lock xadd dword [rbx - 8], ebp
sub ebp, 1
jg 0x14001b3f6
mov rcx, qword [rbx - 0x18]
mov rax, qword [rcx]
lea rdx, [rbx - 0x18]
call qword [rax + 8]
mov rax, r14
add rsp, 0x58
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov ecx, 0x80004005
call fcn.140001bd0
int3
Function at 0x14003995c
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x140026d8e
movzx eax, byte [rcx + rdx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x140026d71
mov rax, r8
ret
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x140026d5c

Function at 0x140044078
Capabilities:
Parse pe header

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

Function at 0x1400500c0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x1400500f7
call fcn.14004a488
mov dword [rax], 0x16
call fcn.14004a31c
xor eax, eax
jmp 0x140050185
mov rdx, r9
mov rcx, r8
call fcn.14005005c
mov rbx, rax
test rax, rax
je 0x140050182
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x14004ff88]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x14005016f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14004a3fc
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140050156
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140050165
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.14005b214
jmp 0x140050182
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14005017f
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x140057a04
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140057800
Function at 0x14006176c
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400617f3
mov rsi, rbx
cmp word [rax], bp
je 0x1400617b2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14006179c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140061798
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14005b250
mov rdi, rax
test rax, rax
je 0x1400617e0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140069c50
mov rbp, rdi
xor ecx, ecx
call fcn.14005b214
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400646dc
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.14005aeb4
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x14006477d
cmp ebx, dword [rsp + 0x30]
je 0x140064776
test esi, esi
je 0x140064776
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140064751
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14006475e
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14006473b
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140064762
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14006477f
mov eax, 1
jmp 0x14006477f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400698a0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400698c8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400698c8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140010420
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
xor ecx, ecx
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x14001043a
jmp 0x1400104f5
call qword [sym.imp.USER32.dll_EmptyClipboard]
mov rcx, qword [rsp + 0x50]
call fcn.14003cd90
inc rax
mov rdx, rax
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140010473
call qword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x1400104f5
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x14001049e
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
call qword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x1400104f5
mov rcx, qword [rsp + 0x50]
call fcn.14003b2b0
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x50]
call fcn.14003cd90
inc rax
mov qword [rsp + 0x38], rax
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rdx, qword [rsp + 0x20]
mov ecx, 1
call qword [sym.imp.USER32.dll_SetClipboardData]
call qword [sym.imp.USER32.dll_CloseClipboard]
add rsp, 0x48
ret
Function at 0x1400244c0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [0x140209bc0]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov edx, 8
lea rcx, [rsp + 0x50]
call fcn.140007060
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x88]
mov r8, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x50]
call fcn.140028630
nop
lea rax, [0x140021eb0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x70]
add rax, 8
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x50]
call fcn.140004920
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
mov r8, qword [rsp + 0x48]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov rcx, qword [rsp + 0x70]
mov qword [rcx], rax
mov rax, qword [rsp + 0x70]
cmp qword [rax], 0
je 0x1400245b1
lea rcx, [rsp + 0x50]
call fcn.14003efa0
jmp 0x1400245c8
mov rax, qword [rsp + 0x70]
mov dword [rax + 8], 0
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
nop
lea rcx, [rsp + 0x50]
call fcn.14002ddf0
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14013a580
add rsp, 0x68
ret

Function at 0x1400245f0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword [0x140209bc0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov edx, 8
lea rcx, [rsp + 0x40]
call fcn.140007060
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x40]
call fcn.1400286f0
nop
lea rax, [0x140021ff0]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
add rax, 8
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x40]
call fcn.140004920
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
mov r8, qword [rsp + 0x38]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov rcx, qword [rsp + 0x60]
mov qword [rcx], rax
mov rax, qword [rsp + 0x60]
cmp qword [rax], 0
je 0x140024693
lea rcx, [rsp + 0x40]
call fcn.14003efa0
jmp 0x1400246aa
mov rax, qword [rsp + 0x60]
mov dword [rax + 8], 0
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
nop
lea rcx, [rsp + 0x40]
call fcn.14002de40
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14013a580
add rsp, 0x58
ret
Function at 0x140032730
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
movzx eax, byte [0x14020c500]
test eax, eax
jne 0x140032749
jmp 0x140032800
mov ecx, 0x20
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x140032760
mov byte [rsp + 0x21], 1
jmp 0x140032765
mov byte [rsp + 0x21], 0
movzx eax, byte [rsp + 0x21]
mov byte [rsp + 0x20], al
mov rcx, qword [rsp + 0x40]
call fcn.1400321a0
mov byte [rsp + 0x22], al
mov cx, 0x87
call fcn.14003fe00
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x1400327c1
movzx eax, byte [rsp + 0x22]
test eax, eax
je 0x1400327c1
mov cx, 0x87
call fcn.14003fd70
mov dword [rsp + 0x24], 0x3d09
lea rdx, [rsp + 0x24]
lea rcx, [rsp + 0x28]
call fcn.1400189d0
mov rcx, rax
call fcn.140028880
jmp 0x140032800
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x1400327de
movzx eax, byte [rsp + 0x22]
test eax, eax
jne 0x1400327de
mov cx, 0x87
call fcn.14003fe00
jmp 0x140032800
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x140032800
mov ecx, 0x87
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
test eax, eax
jne 0x140032800
mov cx, 0x87
call fcn.14003fe00
add rsp, 0x38
ret
Function at 0x140035580
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov rax, qword [0x140209bc0]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0xb0]
cmp qword [rax + 0x68], 0
je 0x1400355bd
mov rax, qword [rsp + 0xb0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x1400355c4
mov al, 1
jmp 0x14003571c
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x50], rax
call fcn.140007360
mov dword [rsp + 0x38], eax
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0xb0]
call qword [rsp + 0x50]
mov dword [rsp + 0x3c], eax
call fcn.140007360
mov dword [rsp + 0x40], eax
mov edx, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x40]
call fcn.140007370
movzx eax, al
test eax, eax
je 0x140035619
xor al, al
jmp 0x14003571c
mov qword [rsp + 0x60], 0x20
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0x68]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x90]
mov rcx, qword [rsp + 0xb0]
add rcx, 0x74
lea rdx, [rsp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rsp + 0x70]
mov rdx, rcx
mov rcx, qword [rsp + 0x58]
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]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x140035689
cmp dword [rsp + 0x30], 1
je 0x140035695
cmp dword [rsp + 0x30], 3
je 0x14003570a
jmp 0x14003571a
mov rax, qword [rsp + 0xb0]
mov byte [rax + 0x71], 0
lea rax, [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jbe 0x1400356e1
mov rax, qword [rsp + 0xb0]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x48]
mov edx, 1
lea rcx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp qword [rsp + 0x48], rax
je 0x1400356e1
xor al, al
jmp 0x14003571c
mov rax, qword [rsp + 0xb0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x1400356fb
mov dword [rsp + 0x34], 1
jmp 0x140035703
mov dword [rsp + 0x34], 0
movzx eax, byte [rsp + 0x34]
jmp 0x14003571c
mov rax, qword [rsp + 0xb0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x14003571c
xor al, al
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.14013a580
add rsp, 0xa8
ret
Function at 0x140040e90
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [0x140209bc0]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x90], 0
jg 0x140040ec4
xor eax, eax
jmp 0x1400410c0
mov rax, qword [rsp + 0x80]
cmp qword [rax + 0x68], 0
je 0x140040ef6
mov r8, qword [rsp + 0x90]
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
call 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]
jmp 0x1400410c0
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Gnavail_void_const___ptr64]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jbe 0x140040fa7
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x50]
call fcn.140004ef0
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gptr_void_const___ptr64]
mov r8, qword [rsp + 0x20]
mov rdx, rax
mov rcx, qword [rsp + 0x88]
call fcn.14003bc00
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x88]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int____ptr64]
mov rax, qword [rsp + 0x80]
cmp qword [rax + 0x80], 0
je 0x1400410b0
mov rcx, qword [rsp + 0x80]
call fcn.140038200
mov qword [rsp + 0x48], 0xfff
cmp qword [rsp + 0x50], 0xfff
jbe 0x14004105d
mov rax, qword [rsp + 0x80]
mov r9, qword [rax + 0x80]
mov r8d, 0xfff
mov edx, 1
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x88]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x28], 0xfff
je 0x140041058
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
sub rcx, rax
mov rax, rcx
jmp 0x1400410c0
jmp 0x140040fd3
cmp qword [rsp + 0x50], 0
jbe 0x1400410b0
mov rax, qword [rsp + 0x80]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x50]
mov edx, 1
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14013a580
add rsp, 0x78
ret
Function at 0x1400410e0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x68], 0
je 0x140041119
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call 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]
jmp 0x140041207
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x50], 0
jle 0x1400411af
cmp qword [rsp + 0x20], 0
jle 0x1400411af
mov rax, qword [rsp + 0x20]
cmp qword [rsp + 0x50], rax
jge 0x140041159
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x48]
mov rcx, rax
call fcn.14003bc00
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
cmp qword [rsp + 0x50], 0
jle 0x1400411f7
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x80], 0
je 0x1400411f7
mov rax, qword [rsp + 0x40]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x50]
mov edx, 1
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x28]
sub rcx, rax
mov rax, rcx
add rsp, 0x38
ret

Function at 0x140041790
Capabilities:
Enumerate gui resources

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x58
mov rax, qword [0x140209bc0]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x28], 0
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x30]
call fcn.140045660
lea rdx, [rsp + 0x30]
lea rcx, [0x1400418b0]
call qword [sym.imp.USER32.dll_EnumWindows]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x1400417fb
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xffffffff
jne 0x1400417fb
cmp qword [rsp + 0x30], 0
je 0x1400417fb
mov rax, qword [rsp + 0x30]
jmp 0x1400417fd
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14013a580
add rsp, 0x58
ret
Function at 0x140041e90
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [0x140209bc0]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
xor r8d, r8d
xor edx, edx
lea rcx, [0x1401cea40]
call sub.SHELL32.dll_SHGetKnownFolderPath
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jl 0x140041f18
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.14002a130
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x70]
call fcn.1400472e0
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0x38]
call fcn.140005c10
mov rax, qword [rsp + 0x70]
jmp 0x140041f63
lea rdx, str.Failed_to_retrieve_AppData_folder_path.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140003320
mov qword [rsp + 0x28], rax
lea rdx, [0x140004e50]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
lea rdx, [0x1401aba20]
mov rcx, qword [rsp + 0x70]
call fcn.14002a130
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14013a580
add rsp, 0x68
ret
Function at 0x140043570
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x290
mov rax, qword [0x140209bc0]
xor rax, rsp
mov qword [rsp + 0x280], rax
lea rax, [rsp + 0x40]
mov rdi, rax
xor eax, eax
mov ecx, 0x238
rep stosb byte [rdi], al
mov dword [rsp + 0x40], 0x238
xor edx, edx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0xffffffffffffffff
jne 0x1400435df
mov dword [rsp + 0x28], 0
mov rcx, qword [rsp + 0x2a0]
call fcn.140005c10
mov eax, dword [rsp + 0x28]
jmp 0x14004369f
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_Process32FirstW
lea rdx, [rsp + 0x6c]
mov rcx, qword [rsp + 0x2a0]
call fcn.140048550
test eax, eax
jne 0x14004362a
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x2c], eax
mov rcx, qword [rsp + 0x2a0]
call fcn.140005c10
mov eax, dword [rsp + 0x2c]
jmp 0x14004369f
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x14004367b
lea rdx, [rsp + 0x6c]
mov rcx, qword [rsp + 0x2a0]
call fcn.140048550
test eax, eax
jne 0x140043679
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x30], eax
mov rcx, qword [rsp + 0x2a0]
call fcn.140005c10
mov eax, dword [rsp + 0x30]
jmp 0x14004369f
jmp 0x14004362a
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rsp + 0x34], 0
mov rcx, qword [rsp + 0x2a0]
call fcn.140005c10
mov eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.14013a580
add rsp, 0x290
pop rdi
ret