joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180047b10
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x180075040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x180047be3
cmp byte [rcx + 0x71], 0
je 0x180047be3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x180047bdf
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_APP.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 0x180047ba4
sub eax, 1
je 0x180047ba8
cmp eax, 2
jne 0x180047bdf
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180058d60
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x180047bd6
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 0x180047bdf
cmp byte [rbx + 0x71], 0
sete al
jmp 0x180047b8c
xor al, al
jmp 0x180047b8c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180058d60
add rsp, 0x60
pop rbx
ret

Function at 0x180059ba0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoEx]
test eax, eax
jne 0x180059bda
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x180059bdf
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x180059c28
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x18005d920]
cmp byte [rcx + rax], 0
je 0x180059c28
dec r8
sub rdx, 1
jne 0x180059c0e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140778c00
Capabilities:
Encode data using xor

Disassembly:
mov rax, qword gs:[0x60]
movabs r11, 0x778c70
movabs r10, 0x778c74
mov r9, qword [rax + 0x10]
xor eax, eax
movsxd rcx, dword [r9 + 0x3c]
movsxd r11, dword [r9 + r11]
add rcx, r9
mov r10d, dword [r9 + r10]
movzx r8d, word [rcx + 0x14]
add r8, rcx
cmp dword [r8 + 0x20], eax
jbe 0x140778c66
mov edx, eax
nop dword [rax]
nop word [rax + rax]
mov ecx, dword [r8 + 0x24]
inc eax
add rcx, rdx
inc rdx
xor byte [rcx + r9], r10b
cmp eax, dword [r8 + 0x20]
jb 0x140778c50
lea rax, [r9 + r11]
jmp rax
Function at 0x180001020
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x108
mov rax, qword [0x180003008]
xor rax, rsp
mov qword [rsp + 0xf8], rax
cmp edx, 1
jne 0x180001113
lea rcx, str.api_ms_win_core_reflection_l1_1_0.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
xorps xmm0, xmm0
lea rdx, [rsp + 0xe0]
xor eax, eax
xor r9d, r9d
mov qword [rsp + 0xd0], rax
xor r8d, r8d
mov qword [rsp + 0x60], rax
xor ecx, ecx
movzx eax, word [0x1800021e8]
mov word [rsp + 0xf0], ax
movzx eax, byte [0x1800021ea]
mov byte [rsp + 0xf2], al
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
movups xmmword [rsp + 0x70], xmm0
mov dword [rsp + 0x28], eax
movups xmmword [rsp + 0x80], xmm0
mov dword [rsp + 0x20], eax
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0xa0], xmm0
movups xmmword [rsp + 0xb0], xmm0
movups xmmword [rsp + 0xc0], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmm0, xmmword [str.tronbot_sniper.dat]
movups xmmword [rsp + 0xe0], xmm0
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov rcx, qword [rsp + 0xf8]
xor rcx, rsp
call fcn.180001140
add rsp, 0x108
ret
Function at 0x14001b200
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14001b20d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14001b21d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14001b205
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x14001b235
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14001b222
sub eax, 3
jb 0x14001b24f
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14001b286
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x14001b276
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14001b274
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14001b263
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.14001b1c2
jmp 0x14001b20d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x1800
mov dl, 1
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14001b2d2
cmp rsi, rcx
jae 0x14001b2da
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14001b2b9
cmp al, 0x8f
ja 0x14001b2b9
cmp byte [rsi - 2], 0xf
je 0x14001b2bf
sub al, 0xe8
cmp al, 1
ja 0x14001b2a3
cmp rsi, rcx
jae 0x14001b2da
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14001b2a9
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14001b2da
lodsb al, byte [rsi]
jmp 0x14001b2b9
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x19000]
mov eax, dword [rdi]
or eax, eax
je 0x14001b337
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x2d278]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14001b2e7
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14001b331
mov qword [rbx], rax
add rbx, 8
jmp 0x14001b307
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14001b38f
sub rsp, 0xffffffffffffff80
jmp section.UPX0
Function at 0x18002b7bc
Capabilities:
Parse pe header

Disassembly:
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x18002b7bc
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x18002b82b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18002b82b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x18002b82b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x18002b82b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18002b82b
cmp dword [rcx + 0x84], 0xe
jbe 0x18002b82b
cmp dword [rcx + 0xf8], 0
je 0x18002b82b
mov ecx, ebx
call fcn.18002b6f4
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.18002b950
nop
cmp dword [rbp + 0x20], 0
je 0x18002b879
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.18002b788
int3

Function at 0x18002e050
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x18002e078
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x18002e078
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x180034170
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 0x1800341a0
xor eax, eax
jmp 0x180034263
mov rbp, rbx
cmp word [rax], si
je 0x1800341c5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1800341ac
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1800341a8
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.180034090
movsxd r14, eax
test eax, eax
jne 0x180034203
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180034199
mov rcx, r14
call fcn.180031ff0
mov rdi, rax
test rax, rax
jne 0x18003421c
xor ecx, ecx
call fcn.180031590
jmp 0x1800341f8
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.180034090
test eax, eax
jne 0x18003424d
mov rcx, rdi
call fcn.180031590
jmp 0x180034257
xor ecx, ecx
call fcn.180031590
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
Function at 0x1411ad058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1411ad1df
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 0x1411ad089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1411ad06f
add dl, dl
jne 0x1411ad096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1411ad0f6
xor eax, eax
add dl, dl
jne 0x1411ad0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1411ad1ad
add dl, dl
jne 0x1411ad0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1411ad0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1411ad0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1411ad0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1411ad0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1411ad07e
mov eax, 1
add dl, dl
jne 0x1411ad106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1411ad113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1411ad0fb
sub eax, ebx
mov ebx, 1
jne 0x1411ad14c
mov ecx, 1
add dl, dl
jne 0x1411ad12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1411ad13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1411ad123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1411ad07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1411ad168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1411ad175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1411ad15d
cmp eax, 0x7d00
jae 0x1411ad19b
cmp eax, 0x500
jb 0x1411ad196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1411ad07e
cmp eax, 0x7f
ja 0x1411ad19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1411ad07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1411ad1d2
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 0x1411ad07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140007d80
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file
Terminate process

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x70
movaps xmmword [rsp + 0x60], xmm6
mov rcx, qword [0x1400420c0]
test rcx, rcx
je 0x140007dbb
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140007de0
mov rcx, qword [0x1400420c0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x1400430e0], 0
jne 0x140007df8
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x70
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rcx, qword [0x1400420c0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x140007dae
mov edx, 0x414
lea r12, [rsp + 0x20]
lea rsi, [0x14001e3da]
mov qword [rsp + 0x20], 0
lea rdi, [0x140043100]
movq xmm0, rsi
mov rcx, r12
mov dword [rsp + 0x28], 3
movq xmm6, rdi
mov word [rsp + 0x40], dx
mov rbp, qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebx, 0x14
punpcklqdq xmm6, xmm0
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], rsi
movaps xmmword [rsp + 0x30], xmm6
call rbp
mov r13, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov r14, qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140007ec4
test al, 0x10
je 0x140007dc4
mov ecx, 0x64
call r14
mov eax, 0x414
mov qword [rsp + 0x50], rsi
mov rcx, r12
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 3
mov word [rsp + 0x40], ax
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x48], 0
movaps xmmword [rsp + 0x30], xmm6
call rbp
sub ebx, 1
je 0x140007dc4
mov rcx, rdi
call r13
cmp eax, 0xffffffff
jne 0x140007e70
jmp 0x140007dc4

Function at 0x14000e530
Capabilities:
Create directory

Disassembly:
push rdi
mov eax, 0x2020
push rsi
push rbx
call fcn.1400159f0
sub rsp, rax
mov eax, dword [0x140047100]
mov rsi, rcx
test eax, eax
je 0x14000e5d0
xor ebx, ebx
lea rdi, [0x140045100]
test eax, eax
jg 0x14000e56c
jmp 0x14000e580
add rbx, 1
cmp dword [0x140047100], ebx
jle 0x14000e580
mov rdx, qword [rdi + rbx*8]
mov rcx, rsi
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x14000e560
jmp 0x14000e5b7
mov rcx, rsi
call sub.msvcrt.dll_wcslen
cmp rax, 2
jne 0x14000e595
cmp word [rsi + 2], 0x3a
je 0x14000e5b7
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x14000e620
movsxd rbx, dword [0x140047100]
cmp ebx, 0x3ff
jle 0x14000e638
mov eax, 1
add rsp, 0x2020
pop rbx
pop rsi
pop rdi
ret
lea rdi, [rsp + 0x20]
lea rbx, str.HOME
mov r8d, 0x1000
mov rdx, rbx
mov rcx, rdi
call fcn.140007540
test al, al
je 0x14000e65a
movsxd rbx, dword [0x140047100]
mov rcx, rdi
lea rdi, [0x140045100]
call sub.msvcrt.dll__wcsdup
mov qword [rdi + rbx*8], rax
mov eax, dword [0x140047100]
add eax, 1
mov dword [0x140047100], eax
jmp 0x14000e551
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x14000e5a4
xor eax, eax
jmp 0x14000e5bc
mov rcx, rsi
call sub.msvcrt.dll__wcsdup
add dword [0x140047100], 1
mov rdx, rax
lea rax, [0x140045100]
mov qword [rax + rbx*8], rdx
jmp 0x14000e5b7
mov rcx, rbx
call fcn.140007cc0
nop
nop word cs:[rax + rax]
nop
Function at 0x140001f20
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rax, rdx
mov rdi, rcx
mov rcx, rax
lea rdx, [0x140040018]
call fcn.1400115fc
mov rsi, rax
test rax, rax
jne 0x140001f61
lea rcx, str.Failed_to_open_file
call fcn.140011af0
mov rax, rdi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
xor edx, edx
mov qword [rsp + 0x30], rbx
mov rcx, rsi
lea r8d, [rdx + 2]
call fcn.140011e84
mov rcx, rsi
call fcn.14001145c
mov rcx, rsi
movsxd rbx, eax
call fcn.14001518c
mov rcx, rbx
call fcn.140015e7c
mov qword [rdi], rax
test rax, rax
jne 0x140001fbe
lea rcx, str.Failed_to_allocate_buffer
call fcn.140011af0
mov rcx, rsi
call fcn.14001191c
mov rbx, qword [rsp + 0x30]
mov rax, rdi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov r9, rsi
mov r8, rbx
mov edx, 1
mov rcx, rax
call fcn.140015998
cmp rax, rbx
je 0x140001fa3
lea rcx, str.Failed_to_read_file
call fcn.140011af0
mov rcx, rsi
call fcn.14001191c
mov rcx, qword [rdi]
call fcn.14001562c
mov rbx, qword [rsp + 0x30]
mov rax, rdi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140002010
Capabilities:
Enumerate pe sections

Disassembly:
push r12
push r14
sub rsp, 0x38
mov rax, qword [rcx]
mov r12, rcx
movsxd r14, dword [rax + 0x3c]
add r14, rax
jne 0x14000204a
lea ecx, [r14 + 2]
call fcn.140011728
mov rcx, rax
lea rdx, str.Failed_to_get_NT_Headers_n
call fcn.140001150
xor eax, eax
add rsp, 0x38
pop r14
pop r12
ret
movzx eax, word [r14 + 0x14]
lea rdx, [r14 + 0x18]
movzx r9d, word [r14 + 6]
add rdx, rax
mov qword [rsp + 0x58], rbp
xor ebp, ebp
mov qword [rsp + 0x30], rdi
mov r8d, ebp
cmp bp, r9w
jae 0x14000218f
lea rdi, str..reloc
nop dword [rax + rax]
mov rax, rbp
movzx ecx, byte [rdx + rax]
inc rax
cmp cl, byte [rdi + rax - 1]
jne 0x14000217f
cmp rax, 7
jne 0x140002083
add dword [rdx + 8], 0x1000
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x28], r13
movsxd r13, dword [rdx + 0x10]
mov qword [rsp + 0x20], r15
lea eax, [r13 + 0x1000]
mov dword [rdx + 0x10], eax
add dword [r14 + 0x50], 0x1000
mov ecx, dword [r14 + 0x50]
call fcn.140015e7c
mov rbx, qword [r12]
mov rcx, rax
mov r8d, dword [r14 + 0x54]
mov rdx, rbx
mov r15, rax
call fcn.14000c7a0
movzx eax, word [r14 + 0x14]
lea rsi, [r14 + 0x18]
add rsi, rax
xor eax, eax
cmp ax, word [r14 + 6]
jae 0x1400021d6
nop dword [rax]
nop word [rax + rax]
mov rcx, rax
movzx eax, byte [rsi + rcx]
inc rcx
cmp al, byte [rdi + rcx - 1]
jne 0x1400021a4
cmp rcx, 7
jne 0x140002113
mov ecx, 0x1000
call fcn.140015e7c
mov edx, 0xcc
mov r8d, 0x1000
mov rcx, rax
mov rdi, rax
call fcn.14000ce70
mov ecx, dword [rsi + 0x14]
mov r8, r13
mov rdx, qword [r12]
add rdx, rcx
add rcx, r15
call fcn.14000c7a0
mov ecx, dword [rsi + 0x14]
mov r8d, 0x1000
add rcx, r13
mov rdx, rdi
add rcx, r15
call fcn.14000c7a0
lea rdi, str..reloc
jmp 0x1400021ba
add rdx, 0x28
inc r8d
cmp r8d, r9d
jl 0x140002080
mov rbp, qword [rsp + 0x58]
xor eax, eax
mov rdi, qword [rsp + 0x30]
add rsp, 0x38
pop r14
pop r12
ret
mov ecx, dword [rsi + 0x14]
mov rdx, qword [r12]
mov r8d, dword [rsi + 0x10]
add rdx, rcx
add rcx, r15
call fcn.14000c7a0
movzx ecx, word [r14 + 6]
add rsi, 0x28
inc ebp
mov eax, 0
cmp ebp, ecx
jl 0x140002110
mov rbx, qword [r12]
mov rcx, rbx
call fcn.14001562c
mov rsi, qword [rsp + 0x60]
mov eax, r13d
mov r13, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x30]
mov qword [r12], r15
mov r15, qword [rsp + 0x20]
add rsp, 0x38
pop r14
pop r12
ret
Function at 0x140002210
Capabilities:
Encode data using xor

Disassembly:
push r12
push r15
sub rsp, 0x28
mov rax, qword [rcx]
mov r15d, r8d
mov r12, rcx
movsxd r9, dword [rax + 0x3c]
add r9, rax
jne 0x14000224d
lea ecx, [r9 + 2]
call fcn.140011728
mov rcx, rax
lea rdx, str.Failed_to_get_NT_Headers_n
call fcn.140001150
xor al, al
add rsp, 0x28
pop r15
pop r12
ret
movzx eax, word [r9 + 0x14]
movzx r8d, word [r9 + 6]
mov qword [rsp + 0x40], rbx
lea rbx, [r9 + 0x18]
mov qword [rsp + 0x50], rsi
add rbx, rax
xor esi, esi
mov edx, esi
test r8d, r8d
je 0x1400023e1
lea r9, [0x1400400e8]
nop dword [rax]
mov rax, rsi
movzx ecx, byte [rbx + rax]
inc rax
cmp cl, byte [r9 + rax - 1]
jne 0x1400023d2
cmp rax, 6
jne 0x140002283
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x58], rdi
movsxd rdi, dword [rbx + 0x10]
mov rcx, rdi
mov qword [rsp + 0x20], r14
mov r14, rdi
call fcn.140015e7c
mov ebx, dword [rbx + 0x14]
mov r8, rdi
add rbx, qword [r12]
mov rcx, rax
mov rdx, rbx
mov rbp, rax
call fcn.14000c7a0
test edi, edi
jle 0x140002370
cmp edi, 0x40
jb 0x140002370
movsx eax, r15b
movd xmm2, eax
mov eax, edi
punpcklbw xmm2, xmm2
punpcklwd xmm2, xmm2
pshufd xmm2, xmm2, 0
and eax, 0x8000003f
jge 0x140002307
dec eax
or eax, 0xffffffc0
inc eax
sub edi, eax
lea rcx, [rbp + 0x20]
mov rdx, 0xffffffffffffffe0
movsxd r8, edi
sub rdx, rbp
nop word [rax + rax]
movdqu xmm0, xmmword [rcx - 0x20]
lea rcx, [rcx + 0x40]
add esi, 0x40
movdqa xmm1, xmm2
lea rax, [rdx + rcx]
pxor xmm0, xmm2
movdqu xmmword [rcx - 0x60], xmm0
movdqu xmm0, xmmword [rcx - 0x50]
pxor xmm1, xmm0
movdqu xmmword [rcx - 0x50], xmm1
movdqa xmm1, xmm2
movdqu xmm0, xmmword [rcx - 0x40]
pxor xmm1, xmm0
movdqu xmmword [rcx - 0x40], xmm1
movdqu xmm0, xmmword [rcx - 0x30]
pxor xmm0, xmm2
movdqu xmmword [rcx - 0x30], xmm0
cmp rax, r8
jl 0x140002320
mov rdi, qword [rsp + 0x58]
movsxd r8, esi
cmp r8, r14
jge 0x14000239d
mov rdx, r14
lea rax, [r8 + rbp]
sub rdx, r8
nop word [rax + rax]
xor byte [rax], r15b
lea rax, [rax + 1]
sub rdx, 1
jne 0x140002390
mov r8, r14
mov rdx, rbp
mov rcx, rbx
call fcn.14000c7a0
mov rcx, rbp
call fcn.14001562c
mov r14, qword [rsp + 0x20]
mov al, 1
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x28
pop r15
pop r12
ret
add rbx, 0x28
inc edx
cmp edx, r8d
jl 0x140002280
mov rbx, qword [rsp + 0x40]
xor al, al
mov rsi, qword [rsp + 0x50]
add rsp, 0x28
pop r15
pop r12
ret
Function at 0x1400027f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
push r14
push r15
sub rsp, 0x30
mov rax, qword [0x140046030]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rdx, qword [rcx]
mov r14, rcx
movsxd rax, dword [rdx + 0x3c]
lea r15, [rax + rdx]
lea rbp, [rax + rdx]
mov eax, dword [r15 + 0x50]
test eax, eax
jne 0x14000282a
xor eax, eax
jmp 0x1400028cc
xor ecx, ecx
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rsi
mov rdx, rax
mov r8d, 0x3000
mov qword [rsp + 0x68], rdi
lea r9d, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdx, qword [r14]
mov r8d, 0x1000
mov rcx, rax
mov rsi, rax
call fcn.14000c7a0
movzx ebx, word [rbp + 0x14]
xor edi, edi
add rbx, 0x2c
cmp word [rbp + 6], di
je 0x1400028a2
add rbx, rbp
nop word [rax + rax]
mov edx, dword [rbx]
mov ecx, dword [rbx - 8]
add rdx, qword [r14]
add rcx, rsi
mov r8d, dword [rbx - 4]
call fcn.14000c7a0
movzx eax, word [rbp + 6]
lea rbx, [rbx + 0x28]
inc edi
cmp edi, eax
jne 0x140002880
mov edx, dword [r15 + 0x50]
lea r9, [rsp + 0x20]
mov r8d, 0x40
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rdi, qword [rsp + 0x68]
mov rax, rsi
mov rsi, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14000a910
add rsp, 0x30
pop r15
pop r14
pop rbp
ret

Function at 0x1400028f0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x160
mov rax, qword [0x140046030]
xor rax, rsp
mov qword [rsp + 0x150], rax
xor edx, edx
mov dword [rsp + 0x20], 0x130
mov rdi, rcx
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_Process32First]
test eax, eax
je 0x140002979
nop word [rax + rax]
lea rcx, [rsp + 0x4c]
mov r8, rdi
sub r8, rcx
nop dword [rax + rax]
movzx edx, byte [rcx]
movzx eax, byte [rcx + r8]
sub edx, eax
jne 0x140002963
inc rcx
test eax, eax
jne 0x140002950
mov rcx, rbx
test edx, edx
je 0x1400029a5
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x140002940
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14000a910
mov rbx, qword [rsp + 0x170]
add rsp, 0x160
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x28]
jmp 0x140002984