joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140008c38
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword gs:[0x60]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x140008cce
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x48]
mov word [rsp + 0x20], ax
movzx eax, word [rsp + 0x20]
test eax, eax
jne 0x140008c84
xor eax, eax
jmp 0x140008cd0
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x50]
mov qword [rsp + 0x38], rax
movzx eax, word [rsp + 0x20]
mov edx, eax
mov rcx, qword [rsp + 0x38]
call fcn.140008cd8
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x50]
mov eax, dword [rax]
cmp dword [rsp + 0x24], eax
jne 0x140008cbf
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x20]
jmp 0x140008cd0
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
jmp 0x140008c61
xor eax, eax
add rsp, 0x48
ret

Function at 0x140008cd8
Capabilities:
Encrypt data using rc4 prga
Hash data using jshash

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x18
cmp qword [rsp + 0x20], 0
jne 0x140008cf4
mov eax, 0xffffffff
jmp 0x140008d6e
mov dword [rsp + 4], 0x4e67c6a7
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
mov word [rsp], ax
movzx eax, word [rsp]
cmp eax, 0x61
jl 0x140008d21
movzx eax, word [rsp]
sub eax, 0x20
mov word [rsp + 2], ax
jmp 0x140008d2a
movzx eax, word [rsp]
mov word [rsp + 2], ax
movzx eax, word [rsp + 2]
mov dword [rsp + 8], eax
mov rax, qword [rsp + 0x20]
add rax, 2
mov qword [rsp + 0x20], rax
cmp dword [rsp + 8], 0
je 0x140008d6a
mov eax, dword [rsp + 4]
shl eax, 5
add eax, dword [rsp + 8]
mov ecx, dword [rsp + 4]
shr ecx, 2
add eax, ecx
mov ecx, dword [rsp + 4]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 4], eax
jmp 0x140008cfc
mov eax, dword [rsp + 4]
add rsp, 0x18
ret
Function at 0x1400196b0
Capabilities:
Generate random numbers via winapi
Get common file path
Read file on windows
Write file on windows

Disassembly:
mov rax, rsp
push rbx
push rbp
sub rsp, 0x368
xor ebp, ebp
xor ecx, ecx
mov dword [rax + 8], ebp
mov rbx, qword [rsp + 0x380]
mov rdx, rbx
mov dword [rax + 0x10], ebp
lea r9d, [rbp + 2]
lea r8d, [rbp + 8]
call sub.bcrypt.dll_BCryptGenRandom
lea rdx, [rsp + 0x40]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x1400198b6
mov eax, ebp
nop dword [rax + rax]
movzx ecx, byte [rsp + rax + 0x40]
mov byte [rsp + rax + 0x150], cl
lea rax, [rax + 1]
test cl, cl
jne 0x140019700
lea rdx, [rsp + 0x150]
dec rdx
nop
cmp byte [rdx + 1], bpl
lea rdx, [rdx + 1]
jne 0x140019720
movsd xmm0, qword [str.results.tmp]
mov ecx, 0x104
mov eax, dword [0x14001d0d8]
movsd qword [rdx], xmm0
mov dword [rdx + 8], eax
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x1400198b6
mov qword [rsp + 0x30], rbp
lea rcx, [rsp + 0x150]
mov dword [rsp + 0x28], 0x100
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 2
mov edx, 0x40000000
mov qword [rsp + 0x390], rsi
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1400198ae
mov qword [rsp + 0x360], rdi
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r9d, 2
mov r8d, ebx
mov rdx, rax
xor ecx, ecx
mov rdi, rax
call sub.bcrypt.dll_BCryptGenRandom
lea r9, [rsp + 0x380]
mov qword [rsp + 0x20], rbp
mov r8d, ebx
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400198a6
mov eax, dword [rsp + 0x380]
cmp rax, rbx
jne 0x1400198a6
mov r8, rbx
xor edx, edx
mov rcx, rdi
call fcn.14001b300
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x30], rbp
lea rcx, [rsp + 0x150]
mov dword [rsp + 0x28], 0x4000100
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 3
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1400198a6
lea r9, [rsp + 0x388]
mov qword [rsp + 0x20], rbp
mov r8d, ebx
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400198a6
mov ecx, dword [rsp + 0x388]
cmp rcx, rbx
jne 0x1400198a6
mov r8, rbx
xor edx, edx
mov rcx, rdi
call fcn.14001b300
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x360]
mov rsi, qword [rsp + 0x390]
add rsp, 0x368
pop rbp
pop rbx
ret
Function at 0x140019900
Capabilities:
Encode data using xor
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xf0
mov edi, edx
mov r8, rcx
test rcx, rcx
je 0x140019a51
test edx, edx
je 0x140019a51
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140019a51
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x140019a51
movups xmm0, xmmword [rax + 0x18]
lea rcx, [rsp]
xor r9d, r9d
movups xmm1, xmmword [rax + 0x28]
movups xmmword [rcx], xmm0
movups xmm0, xmmword [rax + 0x38]
movups xmmword [rcx + 0x10], xmm1
movups xmm1, xmmword [rax + 0x48]
movups xmmword [rcx + 0x20], xmm0
movups xmm0, xmmword [rax + 0x58]
movups xmmword [rcx + 0x30], xmm1
movups xmm1, xmmword [rax + 0x68]
movups xmmword [rcx + 0x40], xmm0
movups xmm0, xmmword [rax + 0x78]
movups xmmword [rcx + 0x50], xmm1
movups xmmword [rcx + 0x60], xmm0
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [rax + 0x88]
sub rax, 0xffffffffffffff68
movups xmmword [rcx - 0x10], xmm0
movups xmm1, xmmword [rax]
movups xmm0, xmmword [rax + 0x10]
movups xmmword [rcx], xmm1
movups xmm1, xmmword [rax + 0x20]
movups xmmword [rcx + 0x10], xmm0
movups xmm0, xmmword [rax + 0x30]
movups xmmword [rcx + 0x20], xmm1
movups xmm1, xmmword [rax + 0x40]
movups xmmword [rcx + 0x30], xmm0
movups xmm0, xmmword [rax + 0x50]
movups xmmword [rcx + 0x40], xmm1
movups xmm1, xmmword [rax + 0x60]
movups xmmword [rcx + 0x50], xmm0
movups xmmword [rcx + 0x60], xmm1
mov eax, dword [rsp + 0x70]
add rax, r8
mov r10d, dword [rax + 0x20]
mov ebp, dword [rax + 0x1c]
add r10, r8
mov r11d, dword [rax + 0x24]
add rbp, r8
mov esi, dword [rax + 0x14]
add r11, r8
test esi, esi
je 0x140019a51
nop dword [rax]
movzx eax, word [r11]
mov edx, dword [r10]
add rdx, r8
mov ebx, dword [rbp + rax*4]
mov eax, 0x47362036
add rbx, r8
movzx ecx, byte [rdx]
test cl, cl
je 0x140019a3d
nop dword [rax]
movsx ecx, cl
lea rdx, [rdx + 1]
xor ecx, eax
imul eax, ecx, 0x5bd1e995
mov ecx, eax
shr ecx, 0xf
xor eax, ecx
movzx ecx, byte [rdx]
test cl, cl
jne 0x140019a20
cmp edi, eax
je 0x140019a6c
inc r9d
add r11, 2
add r10, 4
cmp r9d, esi
jb 0x140019a00
xor eax, eax
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
mov rax, rbx
jmp 0x140019a53
Function at 0x140019a80
Capabilities:
Access peb ldr_data
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x110
mov edi, ecx
test ecx, ecx
je 0x140019b6d
mov rax, qword gs:[0x60]
mov rdx, qword [rax + 0x18]
mov r10, qword [rdx + 0x20]
test r10, r10
je 0x140019b6d
mov esi, 0x104
nop dword [rax + rax]
movzx eax, word [r10 + 0x48]
test ax, ax
je 0x140019b6d
cmp ax, si
jae 0x140019b6d
mov r11, qword [r10 + 0x50]
xor r9d, r9d
cmp word [r11], r9w
je 0x140019b1c
xor ebx, ebx
xor eax, eax
nop dword [rax + rax]
movzx r8d, byte [rax + r11]
lea eax, [r8 - 0x20]
movzx ecx, al
lea edx, [r8 - 0x61]
cmp dl, 0x19
cmova ecx, r8d
inc r9d
mov byte [rsp + rbx], cl
mov ebx, r9d
lea rax, [r9 + r9]
cmp word [rax + r11], 0
jne 0x140019af0
mov byte [rsp + r9], 0
lea rdx, [rsp]
movzx ecx, byte [rsp]
mov eax, 0x47362036
test cl, cl
je 0x140019b5d
nop dword [rax]
nop word [rax + rax]
movsx ecx, cl
lea rdx, [rdx + 1]
xor ecx, eax
imul eax, ecx, 0x5bd1e995
mov ecx, eax
shr ecx, 0xf
xor eax, ecx
movzx ecx, byte [rdx]
test cl, cl
jne 0x140019b40
cmp eax, edi
je 0x140019b84
mov r10, qword [r10]
test r10, r10
jne 0x140019ac0
xor eax, eax
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
mov rax, qword [r10 + 0x20]
jmp 0x140019b6f
Function at 0x14001ace0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r12
push r13
push r14
push r15
sub rsp, 0x48
mov r8, qword [rcx]
mov r14, rcx
movabs rcx, 0xffffffff00000000
movzx eax, word [r8 + 0x14]
mov r12, qword [r8 + 0x30]
mov r9d, dword [r14 + 0x68]
and r12, rcx
dec r9
mov r11d, dword [rax + r8 + 0x20]
not r9
mov ecx, dword [rax + r8 + 0x28]
or r11, r12
and r9, r11
mov qword [rsp + 0x20], r11
mov qword [rsp + 0x28], r9
test ecx, ecx
jne 0x14001ad48
mov edx, dword [rax + r8 + 0x3c]
test dl, 0x40
je 0x14001ad40
mov ecx, dword [r8 + 0x20]
jmp 0x14001ad48
test dl, dl
jns 0x14001ad48
mov ecx, dword [r8 + 0x24]
mov edx, dword [rax + r8 + 0x3c]
mov r13d, 1
mov r15d, r13d
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x80], rbp
mov r10d, ecx
mov qword [rsp + 0x88], rsi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x30], r10
mov dword [rsp + 0x38], edx
mov dword [rsp + 0x3c], 0
cmp r13w, word [r8 + 6]
jae 0x14001ae49
lea rdi, [r8 + 0x64]
add rdi, rax
nop word [rax + rax]
mov esi, dword [rdi - 0x1c]
mov ebx, dword [r14 + 0x68]
or rsi, r12
mov eax, dword [rdi - 0x14]
neg rbx
and rbx, rsi
test eax, eax
jne 0x14001adcc
mov ecx, dword [rdi]
test cl, 0x40
je 0x14001adc4
mov eax, dword [r8 + 0x20]
jmp 0x14001adcc
test cl, cl
jns 0x14001adcc
mov eax, dword [r8 + 0x24]
mov ebp, eax
cmp r9, rbx
je 0x14001ae10
lea rax, [r10 + r11]
cmp rax, rbx
ja 0x14001ae10
lea rdx, [rsp + 0x20]
mov rcx, r14
call fcn.14001ac20
test eax, eax
je 0x14001aeec
mov edx, dword [rdi]
mov r11, rsi
mov r8, qword [r14]
mov r9, rbx
mov qword [rsp + 0x20], rsi
mov r10d, ebp
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x30], rbp
jmp 0x14001ae30
mov ecx, dword [rdi]
mov eax, ecx
and eax, edx
or edx, ecx
bt eax, 0x19
jb 0x14001ae22
btr edx, 0x19
mov r10, rbp
sub r10, r11
add r10, rsi
mov qword [rsp + 0x30], r10
movzx eax, word [r8 + 6]
inc r15d
add rdi, 0x28
mov dword [rsp + 0x38], edx
cmp r15d, eax
jl 0x14001ada0
test r10, r10
je 0x14001ae6d
bt edx, 0x19
jae 0x14001ae97
cmp r11, r9
jne 0x14001ae6d
mov r9, qword [r14 + 0x58]
mov r8d, 0x4000
mov rdx, r10
mov rcx, r11
call qword [r14 + 0x30]
mov eax, r13d
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x88]
mov rbp, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x78]
add rsp, 0x48
pop r15
pop r14
pop r13
pop r12
ret
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x70]
mov rax, rcx
shr rcx, 0x1e
shr rax, 0x1d
and ecx, r13d
and eax, r13d
lea rcx, [rcx + rax*2]
mov eax, edx
shr rax, 0x1f
lea rcx, [rax + rcx*2]
lea rax, section..data
mov eax, dword [rax + rcx*4]
mov r8d, eax
bts r8d, 9
mov rcx, r11
and edx, 0x4000000
mov rdx, r10
cmove r8d, eax
call qword [0x140037080]
test eax, eax
jne 0x14001ae6d
xor eax, eax
jmp 0x14001ae70
Function at 0x14001bc80
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
test rax, rax
jne 0x14001bcc3
lea ecx, [rax + 1]
call qword [sym.imp.KERNEL32.dll_ExitProcess]
test rsi, rsi
je 0x14001bda3
test rbx, rbx
je 0x14001bd31
cmp rbp, rsi
jae 0x14001bd03
test rbx, rbx
je 0x14001bd31
mov r8, rsi
mov rcx, rbp
sub r8, rbp
mov rdx, rbx
nop word [rax + rax]
movzx eax, byte [r8 + rcx]
mov byte [rcx], al
lea rcx, [rcx + 1]
sub rdx, 1
jne 0x14001bcf0
jmp 0x14001bd31
jbe 0x14001bd31
lea rcx, [rbx - 1]
mov r8, rsi
add rcx, rbp
mov rdx, rbx
sub r8, rbp
nop word [rax + rax]
movzx eax, byte [rcx + r8]
mov byte [rcx], al
lea rcx, [rcx - 1]
sub rdx, 1
jne 0x14001bd20
test rdi, rdi
je 0x14001be00
test rbx, rbx
je 0x14001be00
cmp rsi, rdi
jae 0x14001bd72
test rbx, rbx
je 0x14001bdad
mov rdx, rdi
mov rcx, rbx
sub rdx, rsi
nop word [rax + rax]
movzx eax, byte [rdx + rsi]
mov byte [rsi], al
lea rsi, [rsi + 1]
sub rcx, 1
jne 0x14001bd60
jmp 0x14001bdad
jbe 0x14001bdad
lea rcx, [rbx - 1]
mov r8, rdi
add rcx, rsi
mov rdx, rbx
sub r8, rsi
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rcx + r8]
mov byte [rcx], al
lea rcx, [rcx - 1]
sub rdx, 1
jne 0x14001bd90
jmp 0x14001bdad
test rdi, rdi
je 0x14001be00
test rbx, rbx
je 0x14001be00
cmp rdi, rbp
jae 0x14001bdd2
test rbx, rbx
je 0x14001be00
mov rcx, rbp
sub rcx, rdi
nop dword [rax]
movzx eax, byte [rcx + rdi]
mov byte [rdi], al
lea rdi, [rdi + 1]
sub rbx, 1
jne 0x14001bdc0
jmp 0x14001be00
jbe 0x14001be00
test rbx, rbx
je 0x14001be00
lea rcx, [rbx - 1]
mov rdx, rbp
add rcx, rdi
sub rdx, rdi
nop word [rax + rax]
movzx eax, byte [rcx + rdx]
mov byte [rcx], al
lea rcx, [rcx - 1]
sub rbx, 1
jne 0x14001bdf0
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbp
xor edx, edx
mov rcx, rax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_HeapFree]
Function at 0x14001be30
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
movsxd r12, dword [rsp + 0x80]
mov rdi, rdx
movsxd r14, r9d
mov rbp, r12
imul rbp, rdx
mov r13, rcx
lea r15d, [r14 - 1]
add rbp, rcx
mov qword [rsp + 0x60], rbp
cmp r14d, r12d
jge 0x14001c05b
movsxd rsi, r15d
mov rbx, r14
imul rsi, rdi
imul rbx, rdi
add rsi, rcx
add rbx, rcx
nop word [rax + rax]
movsxd rcx, r14d
mov rdx, rbp
imul rcx, rdi
add rcx, r13
call r8
test eax, eax
jg 0x14001c03a
inc r15d
add rsi, rdi
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
test rax, rax
je 0x14001c04f
test rsi, rsi
je 0x14001bfb3
test rdi, rdi
je 0x14001bf41
cmp rax, rsi
jae 0x14001bf13
test rdi, rdi
je 0x14001bf41
mov r8, rsi
mov rcx, rax
sub r8, rax
mov rdx, rdi
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rcx + r8]
mov byte [rcx], al
lea rcx, [rcx + 1]
sub rdx, 1
jne 0x14001bf00
jmp 0x14001bf41
jbe 0x14001bf41
lea rcx, [rdi - 1]
mov r8, rsi
add rcx, rbp
mov rdx, rdi
sub r8, rbp
nop word [rax + rax]
movzx eax, byte [rcx + r8]
mov byte [rcx], al
lea rcx, [rcx - 1]
sub rdx, 1
jne 0x14001bf30
test rbx, rbx
je 0x14001c021
test rdi, rdi
je 0x14001c021
cmp rsi, rbx
jae 0x14001bf83
test rdi, rdi
je 0x14001bfbd
mov r8, rbx
mov rcx, rsi
sub r8, rsi
mov rdx, rdi
nop dword [rax]
movzx eax, byte [rcx + r8]
mov byte [rcx], al
lea rcx, [rcx + 1]
sub rdx, 1
jne 0x14001bf70
jmp 0x14001bfbd
jbe 0x14001bfbd
lea rcx, [rdi - 1]
mov r8, rbx
add rcx, rsi
mov rdx, rdi
sub r8, rsi
nop word [rax + rax]
movzx eax, byte [rcx + r8]
mov byte [rcx], al
lea rcx, [rcx - 1]
sub rdx, 1
jne 0x14001bfa0
jmp 0x14001bfbd
test rbx, rbx
je 0x14001c021
test rdi, rdi
je 0x14001c021
cmp rbx, rbp
jae 0x14001bff3
test rdi, rdi
je 0x14001c021
mov r8, rbp
mov rcx, rbx
sub r8, rbx
mov rdx, rdi
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rcx + r8]
mov byte [rcx], al
lea rcx, [rcx + 1]
sub rdx, 1
jne 0x14001bfe0
jmp 0x14001c021
jbe 0x14001c021
test rdi, rdi
je 0x14001c021
lea rcx, [rdi - 1]
mov r8, rbp
add rcx, rbx
mov rdx, rdi
sub r8, rbx
nop word [rax + rax]
movzx eax, byte [rcx + r8]
mov byte [rcx], al
lea rcx, [rcx - 1]
sub rdx, 1
jne 0x14001c010
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbp
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbp, qword [rsp + 0x60]
inc r14d
add rbx, rdi
cmp r14d, r12d
jge 0x14001c05b
mov r8, qword [rsp + 0x70]
jmp 0x14001be90
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_ExitProcess]
lea eax, [r15 + 1]
mov r8, rdi
movsxd rbx, eax
mov rdx, rbp
mov rcx, rbx
imul rcx, rdi
add rcx, r13
call fcn.14001bc80
mov rax, rbx
mov rbx, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001c220
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0xb0
lea rdx, [0x14001d0f0]
lea rcx, str._i__.rdata_var_:_0x_x__n
call fcn.14001ba90
lea rdx, [section..text]
lea rcx, str._i__.text_var_:_0x_x__n
call fcn.14001ba90
lea rax, [rsp + 0xc0]
xor ebx, ebx
mov qword [rsp + 0x28], rax
lea r8, [0x14001c1c0]
xor r9d, r9d
mov dword [rsp + 0x20], ebx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rax, [rsp + 0xc0]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea r8, [0x14001c200]
xor edx, edx
mov dword [rsp + 0x20], ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
mov edx, 0xffffffff
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rdx, [rsp + 0xc8]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [rsp + 0xc8], 0
jne 0x14001c3e2
xor r9d, r9d
lea r8, str.test2
lea rdx, str.test
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
lea rcx, [0x1400357a1]
call fcn.14001b6b0
mov r8d, eax
lea r9, str.Test
lea rdx, [0x1400357a1]
lea rcx, [rsp + 0x40]
call fcn.14001c3f0
lea rcx, [rsp + 0x40]
call fcn.14001c560
test al, al
je 0x14001c3e2
call fcn.140019ba0
test eax, eax
je 0x14001c3e2
lea r9, [rsp + 0xd0]
lea r8, [rsp + 0xd8]
lea rdx, [0x1400357a1]
lea rcx, [rsp + 0x40]
call fcn.14001c570
test eax, eax
jne 0x14001c3e2
mov rdx, qword [rsp + 0xd0]
mov rcx, qword [rsp + 0xd8]
call fcn.140019ce0
test rax, rax
je 0x14001c3e2
lea rdx, [0x1400357a1]
mov rcx, rax
call fcn.14001a420
test rax, rax
je 0x14001c3d4
call rax
mov rcx, rax
mov rbx, rax
call fcn.14001b480
mov r9, rax
lea rdx, [0x1400357a1]
lea rax, [rsp + 0x30]
mov r8, rbx
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x40]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
call fcn.14001c680
test eax, eax
jne 0x14001c3d4
add rsp, 0xb0
pop rbx
ret
mov eax, 2
add rsp, 0xb0
pop rbx
ret
mov eax, 1
add rsp, 0xb0
pop rbx
ret
Function at 0x140008de0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x14010e080]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor edx, edx
mov dword [rsp + 0x20], 0x238
mov rdi, rcx
xor sil, sil
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rcx, rax
lea rdx, [rsp + 0x20]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140008e79
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x140008e79
nop dword [rax]
nop dword [rax + rax]
mov rdx, rdi
lea rcx, [rsp + 0x4c]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x140008e76
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140008e50
jmp 0x140008e79
mov sil, 1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, sil
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1400ddaa0
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14000a000
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14010e080]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000a02d
xor eax, eax
jmp 0x14000a199
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x14000a067
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x14000a067
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 0x14000a199
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000a18c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000a0aa
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 0x14000a0d5
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 0x14000a191
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 0x14000a144
sub eax, 1
je 0x14000a144
cmp eax, 2
jne 0x14000a18c
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 0x14000a191
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x14000a172
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 0x14000a18c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x14000a191
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400ddaa0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x14000b8b0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14010e080]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14000b983
cmp byte [rcx + 0x71], 0
je 0x14000b983
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + Ordinal_26]
cmp eax, 0xffffffff
je 0x14000b97f
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 0x14000b944
sub eax, 1
je 0x14000b948
cmp eax, 2
jne 0x14000b97f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400ddaa0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14000b976
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 0x14000b97f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000b92c
xor al, al
jmp 0x14000b92c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400ddaa0
add rsp, 0x60
pop rbx
ret