joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2c9914987
Capabilities:
Query environment variable

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x660
mov rdi, rcx
mov rbx, rdx
lea rdx, [rsp + 0x450]
mov r8d, 0x104
mov rcx, qword [0x2c9922108]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rbp, [rsp + 0x240]
mov r8d, 0x104
mov rdx, rbp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea rcx, [0x2c991e7a0]
call fcn.2c9915bf5
mov rbx, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
mov rcx, rbx
call fcn.2c9915c7c
lea rcx, [0x2c991e7bf]
call fcn.2c9915b70
mov rbx, rax
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
mov rcx, rbx
call fcn.2c9915c7c
mov rdx, rbp
mov ecx, 0
call rsi
test eax, eax
je 0x2c9914a42
mov ebx, 0
cmp eax, 0xb7
je 0x2c9914a42
mov eax, ebx
add rsp, 0x660
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rcx, [0x2c991e7e0]
call fcn.2c9915bf5
mov rbx, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
mov rcx, rbx
call fcn.2c9915c7c
lea rcx, [0x2c991e801]
call fcn.2c9915b70
mov rbx, rax
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbp, rax
mov rcx, rbx
call fcn.2c9915c7c
lea rcx, [0x2c991e813]
call fcn.2c9915bf5
mov rbx, rax
lea rcx, [0x2c991e830]
call fcn.2c9915bf5
mov rsi, rax
lea rcx, [rsp + 0x240]
lea rdx, [0x2c991e84e]
call sub.msvcrt.dll_wcscat
cmp dword [0x2c9922100], 0
mov rdx, rbx
cmovne rdx, rsi
lea r12, [rsp + 0x240]
mov rcx, r12
call sub.msvcrt.dll_wcscat
mov rcx, rsi
call fcn.2c9915c7c
mov rcx, rbx
call fcn.2c9915c7c
lea rcx, [rsp + 0x450]
mov r8d, 0
mov rdx, r12
call rbp
mov ebx, eax
test eax, eax
je 0x2c9914a32
lea rcx, [0x2c991e852]
call fcn.2c9915bf5
mov rsi, rax
cmp dword [0x2c9922100], 0
je 0x2c9914b96
lea rcx, [0x2c991e85f]
call fcn.2c9915bf5
mov rbx, rax
lea r12, [rsp + 0x30]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x240]
lea r8, str.__ls___ls__ls
mov edx, 0x104
mov rcx, r12
call fcn.2c9912710
mov rcx, rbx
call fcn.2c9915c7c
lea rcx, [0x2c991e890]
call fcn.2c9915bf5
mov rbp, rax
mov r8, r12
mov rdx, rax
mov rcx, rdi
call fcn.2c9915eba
mov ebx, eax
mov rcx, rbp
call fcn.2c9915c7c
mov rcx, rsi
call fcn.2c9915c7c
jmp 0x2c9914a32
lea rdx, [rsp + 0x240]
mov r8, rax
mov rcx, rdi
call fcn.2c9915eba
mov ebx, eax
jmp 0x2c9914b89
Function at 0x2c9914c8b
Capabilities:
Check mutex on windows

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov r12, rcx
lea rcx, [0x2c991d020]
call fcn.2c9915bf5
mov rsi, rax
mov ecx, 0
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r8, rsi
mov edx, 0
mov ecx, 0
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rdi, rax
test rax, rax
je 0x2c9914ce5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x2c9914cfb
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call fcn.2c9915c7c
nop
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
call qword [sym.imp.KERNEL32.dll_GetTickCount]
and eax, 0x89
mov ebp, eax
je 0x2c9914cdc
mov ebx, 0
mov r13, qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0x64
call r13
add ebx, 1
cmp ebp, ebx
jne 0x2c9914d16
mov rdx, rsi
mov rcx, r12
call fcn.2c9914c4a
jmp 0x2c9914cdc

Function at 0x2c9915130
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push rbx
mov r9, rcx
mov rbx, rdx
mov byte [rcx], 0
mov byte [rcx + 1], 0
mov eax, 0
mov byte [r9 + rax + 2], al
add rax, 1
cmp rax, 0x100
jne 0x2c9915143
mov r10d, 0
mov ecx, 0
movzx r11d, byte [r9 + rcx + 2]
mov rax, rcx
mov edx, 0
div r8
mov eax, r11d
add al, byte [rbx + rdx]
add r10d, eax
movzx eax, r10b
movzx edx, byte [r9 + rax + 2]
mov byte [r9 + rcx + 2], dl
mov byte [r9 + rax + 2], r11b
add rcx, 1
cmp rcx, 0x100
jne 0x2c991515f
pop rbx
ret

Function at 0x2c991519c
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push rsi
push rbx
mov rbx, rdx
test r9, r9
je 0x2c99151f8
mov r11d, 0
movzx eax, byte [rcx]
add eax, 1
mov byte [rcx], al
movzx eax, al
movzx edx, byte [rcx + rax + 2]
mov r10d, edx
add r10b, byte [rcx + 1]
mov byte [rcx + 1], r10b
movzx r10d, r10b
movzx esi, byte [rcx + r10 + 2]
mov byte [rcx + rax + 2], sil
mov byte [rcx + r10 + 2], dl
add dl, byte [rcx + rax + 2]
movzx edx, dl
movzx eax, byte [rcx + rdx + 2]
xor al, byte [rbx + r11]
mov byte [r8 + r11], al
add r11, 1
cmp r9, r11
jne 0x2c99151ac
pop rbx
pop rsi
ret
Function at 0x2c9915cb0
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x2c9922240], 0
jne 0x2c9915d31
cmp qword [0x2c9922238], 0
je 0x2c9915d37
cmp qword [0x2c9922230], 0
je 0x2c9915d63
cmp qword [0x2c9922228], 0
je 0x2c9915d96
cmp qword [0x2c9922220], 0
je 0x2c9915dc2
cmp qword [0x2c9922218], 0
je 0x2c9915df5
cmp qword [0x2c9922210], 0
je 0x2c9915e28
cmp qword [0x2c9922208], 0
je 0x2c9915e5b
cmp qword [0x2c9922200], 0
je 0x2c9915e87
add dword [0x2c9922240], 1
add rsp, 0x20
pop rbx
ret
lea rcx, [0x2c991ec50]
call fcn.2c9915bf5
mov rbx, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x2c9922238], rax
mov rcx, rbx
call fcn.2c9915c7c
jmp 0x2c9915cc8
lea rcx, [0x2c991ec71]
call fcn.2c9915b70
mov rbx, rax
mov rdx, rax
mov rcx, qword [0x2c9922238]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x2c9922230], rax
mov rcx, rbx
call fcn.2c9915c7c
jmp 0x2c9915cd6
lea rcx, [0x2c991ec86]
call fcn.2c9915bf5
mov rbx, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x2c9922228], rax
mov rcx, rbx
call fcn.2c9915c7c
jmp 0x2c9915ce4
lea rcx, [0x2c991eca1]
call fcn.2c9915b70
mov rbx, rax
mov rdx, rax
mov rcx, qword [0x2c9922228]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x2c9922220], rax
mov rcx, rbx
call fcn.2c9915c7c
jmp 0x2c9915cf2
lea rcx, [0x2c991ecb8]
call fcn.2c9915b70
mov rbx, rax
mov rdx, rax
mov rcx, qword [0x2c9922228]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x2c9922218], rax
mov rcx, rbx
call fcn.2c9915c7c
jmp 0x2c9915d00
lea rcx, [0x2c991ecd1]
call fcn.2c9915b70
mov rbx, rax
mov rdx, rax
mov rcx, qword [0x2c9922228]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x2c9922210], rax
mov rcx, rbx
call fcn.2c9915c7c
jmp 0x2c9915d0e
lea rcx, [0x2c991ece8]
call fcn.2c9915bf5
mov rbx, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x2c9922208], rax
mov rcx, rbx
call fcn.2c9915c7c
jmp 0x2c9915d1c
lea rcx, [0x2c991ed07]
call fcn.2c9915b70
mov rbx, rax
mov rdx, rax
mov rcx, qword [0x2c9922208]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x2c9922200], rax
mov rcx, rbx
call fcn.2c9915c7c
jmp 0x2c9915d2a

Function at 0x2c99164c0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, 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 fcn.2c991c380
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.2c991c380
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]
Function at 0x2c9916530
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x2c9922294]
mov r12, rcx
test ebx, ebx
jle 0x2c9916660
mov rax, qword [0x2c9922298]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x2c991657c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x2c9916603
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x2c9916560
mov rcx, r12
call fcn.2c9916cb0
mov rsi, rax
test rax, rax
je 0x2c9916682
mov rax, qword [0x2c9922298]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.2c9916de0
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x2c9922298]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x2c9916667
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x2c99165fc
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x2c9916610
add dword [0x2c9922294], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x2c9922298]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x2c99165fc
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.2c99164c0
nop dword [rax]
xor ebx, ebx
jmp 0x2c9916587
mov rax, qword [0x2c9922298]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.2c99164c0
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.2c99164c0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x2c9916920
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x2c99222c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x2c99222a0]
test rbx, rbx
je 0x2c9916974
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x2c991696b
test r12, r12
je 0x2c991696b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x2c9916950
lea rcx, [0x2c99222c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x2c9916cb0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x2c991f2e0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x2c9916cd0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x2c9916cd8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x2c9916cd0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x2c9916d25
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x2c9916d1c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x2c9916cd0
add rax, 0x28
cmp rax, r9
jne 0x2c9916d08
xor eax, eax
ret

Function at 0x2c9916d30
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x2c991f2e0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x2c9916d50
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x2c9916d58
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x2c9916d50
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x2c9916de0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x2c991f2e0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x2c9916e00
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x2c9916e08
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret
Function at 0x180652058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1806521df
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 0x180652089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18065206f
add dl, dl
jne 0x180652096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1806520f6
xor eax, eax
add dl, dl
jne 0x1806520a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1806521ad
add dl, dl
jne 0x1806520b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1806520c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1806520d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1806520dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1806520ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x18065207e
mov eax, 1
add dl, dl
jne 0x180652106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180652113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1806520fb
sub eax, ebx
mov ebx, 1
jne 0x18065214c
mov ecx, 1
add dl, dl
jne 0x18065212e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18065213b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180652123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18065207e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x180652168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x180652175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18065215d
cmp eax, 0x7d00
jae 0x18065219b
cmp eax, 0x500
jb 0x180652196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18065207e
cmp eax, 0x7f
ja 0x18065219e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18065207e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1806521d2
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 0x18065207e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001080
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x38
mov rbx, rdx
lea rbp, [rsp + 0x70]
mov rsi, rcx
call fcn.140001010
mov qword [rsp + 0x28], rbp
lea rdx, [rsi + 0x20]
xor ebp, ebp
mov r9, rbx
mov r8d, 0x400
mov qword [rsp + 0x20], rbp
mov rcx, qword [rax]
call fcn.14000ca2c
lea r9, [rsi + 0x20]
mov edx, 0x27ff
lea r8, str._Dumper_:__s_n
lea rcx, [0x14002bdd0]
call fcn.140001020
lea rcx, [0x14002bdd0]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [rsi + 0x10], ebp
je 0x14000119d
cmp dword [rsi], ebp
jne 0x140001119
call qword [sym.imp.KERNEL32.dll_AllocConsole]
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rsi + 8], rax
mov dword [rsi], 1
mov rcx, qword [rsi + 8]
mov edx, 0xc
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov rcx, qword [rsi + 8]
lea rdx, str._Dumper_:
xor r9d, r9d
mov qword [rsp + 0x20], rbp
lea r8d, [r9 + 0xb]
call qword [sym.imp.KERNEL32.dll_WriteConsoleA]
mov rcx, qword [rsi + 8]
mov edx, 0xf
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rsi + r8 + 0x20], bpl
jne 0x140001160
mov rcx, qword [rsi + 8]
lea rdx, [rsi + 0x20]
xor r9d, r9d
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_WriteConsoleA]
mov rcx, qword [rsi + 8]
lea rdx, [0x14002667c]
xor r9d, r9d
mov qword [rsp + 0x20], rbp
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_WriteConsoleA]
add rsp, 0x38
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400011b0
Capabilities:
Print debug messages
Terminate process

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x48
mov qword [rsp + 0x38], rsi
lea r8, [rsp + 0x60]
mov qword [rsp + 0x30], rdi
mov rdi, rcx
add rcx, 0x20
call fcn.140001300
lea r9, [rdi + 0x20]
mov edx, 0x27ff
lea r8, str._Dumper_:__s_n
lea rcx, [0x14002bdd0]
call fcn.140001020
lea rcx, [0x14002bdd0]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [rdi + 0x10], 0
je 0x1400012cb
cmp dword [rdi], 0
mov qword [rsp + 0x40], rbx
jne 0x140001236
call qword [sym.imp.KERNEL32.dll_AllocConsole]
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rdi + 8], rax
mov dword [rdi], 1
mov rcx, qword [rdi + 8]
mov edx, 0xc
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov rcx, qword [rdi + 8]
lea rdx, str._Dumper_:
xor r9d, r9d
mov qword [rsp + 0x20], 0
lea r8d, [r9 + 0xb]
call qword [sym.imp.KERNEL32.dll_WriteConsoleA]
mov rcx, qword [rdi + 8]
mov edx, 0xf
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rdi + r8 + 0x20], 0
jne 0x140001280
mov rcx, qword [rdi + 8]
lea rdx, [rdi + 0x20]
xor r9d, r9d
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteConsoleA]
mov rcx, qword [rdi + 8]
lea rdx, [0x14002667c]
xor r9d, r9d
mov qword [rsp + 0x20], 0
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_WriteConsoleA]
mov rbx, qword [rsp + 0x40]
mov ecx, 0xbb8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rax, qword [rdi + 0x18]
mov rdi, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
test rax, rax
je 0x1400012eb
call rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x1400017e0
Capabilities:
Enumerate processes

Disassembly:
push rbp
push r14
push r15
sub rsp, 0x290
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x270], rbx
mov qword [rbp + 0x280], rsi
mov qword [rbp + 0x288], rdi
mov rax, qword [0x14002a040]
xor rax, rbp
mov qword [rbp + 0x240], rax
mov rdi, rdx
mov dword [rbp], 0x238
xor edx, edx
lea ecx, [rdx + 0xf]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rcx, rax
lea rdx, [rbp]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
xor r14d, r14d
movabs r15, 0xffffffffffffff0
nop word [rax + rax]
lea rcx, [rbp + 0x2c]
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], r14w
jne 0x140001860
lea edx, [rax + 1]
cmp edx, 0x3fffffff
jg 0x1400018da
cdqe
lea rax, [rax*2 + 2]
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x14000188b
mov rcx, r15
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.14001c150
sub rsp, rcx
lea rbx, [rsp + 0x40]
test rbx, rbx
je 0x1400018da
lea eax, [rdx + rdx]
mov qword [rsp + 0x38], r14
xor edx, edx
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], eax
lea r8, [rbp + 0x2c]
mov r9d, 0xffffffff
mov byte [rbx], r14b
mov qword [rsp + 0x20], rbx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
cmove rbx, r14
jmp 0x1400018dd
mov rbx, r14
cmp qword [rdi + 0x18], 0xf
mov rdx, rdi
jbe 0x1400018ea
mov rdx, qword [rdi]
sub rdx, rbx
nop dword [rax]
movzx ecx, byte [rbx]
movzx eax, byte [rbx + rdx]
sub ecx, eax
jne 0x140001902
inc rbx
test eax, eax
jne 0x1400018f0
test ecx, ecx
mov rcx, rsi
je 0x140001962
lea rdx, [rbp]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140001850
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rdi + 0x18]
cmp rdx, 0xf
jbe 0x14000195e
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x140001959
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400019e3
mov rcx, r8
call fcn.140004394
xor eax, eax
jmp 0x1400019a3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rdi + 0x18]
mov ebx, dword [rbp + 8]
cmp rdx, 0xf
jbe 0x1400019a1
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x14000199c
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400019e3
mov rcx, r8
call fcn.140004394
mov eax, ebx
mov byte [rdi], r14b
mov qword [rdi + 0x18], 0xf
mov qword [rdi + 0x10], r14
mov rcx, qword [rbp + 0x240]
xor rcx, rbp
call fcn.1400040f0
mov rbx, qword [rbp + 0x270]
mov rsi, qword [rbp + 0x280]
mov rdi, qword [rbp + 0x288]
lea rsp, [rbp + 0x250]
pop r15
pop r14
pop rbp
ret
call fcn.14000d02c
int3
Function at 0x1400019f0
Capabilities:
Enumerate process modules

Disassembly:
push rbp
push r14
push r15
sub rsp, 0x490
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x470], rbx
mov qword [rbp + 0x480], rsi
mov qword [rbp + 0x488], rdi
mov rax, qword [0x14002a040]
xor rax, rbp
mov qword [rbp + 0x440], rax
mov rdi, rdx
mov dword [rbp], 0x438
mov edx, dword [0x14002aa80]
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rcx, rax
lea rdx, [rbp]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_Module32FirstW]
xor r14d, r14d
movabs r15, 0xffffffffffffff0
lea rcx, [rbp + 0x30]
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], r14w
jne 0x140001a70
lea edx, [rax + 1]
cmp edx, 0x3fffffff
jg 0x140001aea
cdqe
lea rax, [rax*2 + 2]
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x140001a9b
mov rcx, r15
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.14001c150
sub rsp, rcx
lea rbx, [rsp + 0x40]
test rbx, rbx
je 0x140001aea
lea eax, [rdx + rdx]
mov qword [rsp + 0x38], r14
xor edx, edx
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], eax
lea r8, [rbp + 0x30]
mov r9d, 0xffffffff
mov byte [rbx], r14b
mov qword [rsp + 0x20], rbx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
cmove rbx, r14
jmp 0x140001aed
mov rbx, r14
cmp qword [rdi + 0x18], 0xf
mov rdx, rdi
jbe 0x140001afa
mov rdx, qword [rdi]
sub rdx, rbx
nop dword [rax]
movzx ecx, byte [rbx]
movzx eax, byte [rbx + rdx]
sub ecx, eax
jne 0x140001b12
inc rbx
test eax, eax
jne 0x140001b00
test ecx, ecx
mov rcx, rsi
je 0x140001b72
lea rdx, [rbp]
call qword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x140001a60
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rdi + 0x18]
cmp rdx, 0xf
jbe 0x140001b6e
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x140001b69
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140001bf5
mov rcx, r8
call fcn.140004394
xor eax, eax
jmp 0x140001bb5
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rdi + 0x18]
mov rbx, qword [rbp + 0x28]
cmp rdx, 0xf
jbe 0x140001bb2
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x140001bad
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140001bf5
mov rcx, r8
call fcn.140004394
mov rax, rbx
mov byte [rdi], r14b
mov qword [rdi + 0x18], 0xf
mov qword [rdi + 0x10], r14
mov rcx, qword [rbp + 0x440]
xor rcx, rbp
call fcn.1400040f0
mov rbx, qword [rbp + 0x470]
mov rsi, qword [rbp + 0x480]
mov rdi, qword [rbp + 0x488]
lea rsp, [rbp + 0x450]
pop r15
pop r14
pop rbp
ret
call fcn.14000d02c
int3

Function at 0x140004c3c
Capabilities:
Parse pe header

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

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000d8d8
Function at 0x140013854
Capabilities:
Query environment variable

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
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x140013884
xor eax, eax
jmp 0x140013947
mov rbp, rbx
cmp word [rax], si
je 0x1400138a9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140013890
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14001388c
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140013774
movsxd r14, eax
test eax, eax
jne 0x1400138e7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14001387d
mov rcx, r14
call fcn.14000ecb8
mov rdi, rax
test rax, rax
jne 0x140013900
xor ecx, ecx
call fcn.14000ec7c
jmp 0x1400138dc
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140013774
test eax, eax
jne 0x140013931
mov rcx, rdi
call fcn.14000ec7c
jmp 0x14001393b
xor ecx, ecx
call fcn.14000ec7c
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret