joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400e77f0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [section..data]
mov rdi, rax
test rax, rax
jne 0x1400e7832
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x1400e7879
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x1400e78d2
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x1400e7890
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1400e7913
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x140101542]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x140101543]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400e78e0
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x1400e7938
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.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x1400e7972
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1400e7977
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.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400e79c0
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x1400e79c0
dec r8
sub rdx, 1
jne 0x1400e79a6
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x1400e91bc
Capabilities:
Parse pe header

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

Function at 0x140cd6000
Capabilities:
Decompress data using aplib

Disassembly:
jmp 0x140cd600a
jmp 0x140cd800f
jmp fcn.140952058
Function at 0x13c8110
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x13c811d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x13c812d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x13c8115
lea eax, [rcx + 1]
jmp 0x13c813b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x13c814e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x13c8134
sub eax, 3
jb 0x13c816e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x13c81bd
sar eax, 1
movsxd rbp, eax
jb 0x13c81a4
jmp 0x13c817c
add ebx, ebx
jne 0x13c817a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x13c81a4
inc ecx
add ebx, ebx
jne 0x13c818a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x13c81a4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x13c819d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x13c818c
add ecx, 2
jmp 0x13c81a9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.013c80d2
jmp 0x13c811d
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0xfb2000]
mov eax, dword [rdi]
or eax, eax
je 0x13c8219
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xfc8000]
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 0x13c81c9
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 0x13c8213
mov qword [rbx], rax
add rbx, 8
jmp 0x13c81e9
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x13c825d
cmp al, 0xef
ja 0x13c8245
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x13c8225
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x13c8234
mov eax, dword [rdi]
add rdi, 4
jmp 0x13c8234
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 0x13c82b1
sub rsp, 0xffffffffffffff80
jmp 0x45d0a0
Function at 0x14001137a
Capabilities:
Terminate process

Disassembly:
jmp 0x1400168a0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret

Function at 0x1400113d4
Capabilities:
Set registry value

Disassembly:
jmp 0x140013650
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x148
lea rbp, [rsp + 0x50]
lea rdi, [rsp + 0x50]
mov ecx, 0xe
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x168]
mov rax, qword [0x140022040]
xor rax, rbp
mov qword [rbp + 0xe8], rax
lea rcx, [0x140028107]
call fcn.1400115eb
nop
mov rcx, qword [rbp + 0x110]
call fcn.140011221
mov qword [rsp + 0x40], 0
lea rcx, [rbp + 8]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x1400136fc
xor al, al
jmp 0x140013780
mov rcx, qword [rbp + 0x120]
call fcn.140011122
lea rax, [rax + rax + 2]
mov qword [rbp + 0xd8], rax
mov rcx, qword [rbp + 0x120]
call fcn.140011221
mov qword [rbp + 0xe0], rax
mov rcx, qword [rbp + 0x118]
call fcn.140011221
mov rcx, qword [rbp + 0xd8]
mov dword [rsp + 0x28], ecx
mov rcx, qword [rbp + 0xe0]
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x140013773
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
xor al, al
jmp 0x140013780
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov al, 1
mov rdi, rax
lea rcx, [rbp - 0x50]
lea rdx, [0x14001e150]
call fcn.14001151e
mov rax, rdi
mov rcx, qword [rbp + 0xe8]
xor rcx, rbp
call fcn.140011311
lea rsp, [rbp + 0xf8]
pop rdi
pop rbp
ret

Function at 0x140011451
Capabilities:
Parse pe header

Disassembly:
jmp 0x140017c30
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140017c50
xor al, al
jmp 0x140017cd1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140017c63
xor al, al
jmp 0x140017cd1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140017c8d
xor al, al
jmp 0x140017cd1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140017ca1
xor al, al
jmp 0x140017cd1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140017cb3
xor al, al
jmp 0x140017cd1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140017ccf
xor al, al
jmp 0x140017cd1
mov al, 1
add rsp, 0x38
ret
Function at 0x14001157d
Capabilities:
Create process on windows

Disassembly:
jmp 0x140013810
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1d8
lea rbp, [rsp + 0x50]
lea rdi, [rsp + 0x50]
mov ecx, 0x32
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1f8]
mov rax, qword [0x140022040]
xor rax, rbp
mov qword [rbp + 0x178], rax
lea rcx, [0x140028107]
call fcn.1400115eb
nop
lea rax, [rbp + 0x10]
mov rdi, rax
xor eax, eax
mov ecx, 0x68
rep stosb byte [rdi], al
lea rax, [rbp + 0x98]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
mov dword [rbp + 0x10], 0x68
lea rax, [rbp + 0x98]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x10]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 0x1a0]
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
nop
mov rcx, qword [rbp + 0x98]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rbp + 0xa0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rbp - 0x50]
lea rdx, [0x14001e210]
call fcn.14001151e
mov rcx, qword [rbp + 0x178]
xor rcx, rbp
call fcn.140011311
lea rsp, [rbp + 0x188]
pop rdi
pop rbp
ret

Function at 0x1400159f0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.14001161d
movzx eax, al
test eax, eax
jne 0x140015a10
mov ecx, 7
call fcn.140011528
nop
mov byte [rsp + 0x20], 0
call fcn.14001155f
mov byte [rsp + 0x21], al
cmp dword [0x140022b78], 1
jne 0x140015a34
mov ecx, 7
call fcn.140011528
nop
jmp 0x140015a8c
cmp dword [0x140022b78], 0
jne 0x140015a87
mov dword [0x140022b78], 1
lea rdx, [0x14001d660]
lea rcx, [0x14001d330]
call fcn.1400112f3
test eax, eax
je 0x140015a68
mov eax, 0xff
jmp 0x140015b91
lea rdx, [0x14001d220]
lea rcx, [section..rdata]
call fcn.140011546
mov dword [0x140022b78], 2
jmp 0x140015a8c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.140011514
call fcn.140011479
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140015ae9
mov rcx, qword [rsp + 0x30]
call fcn.14001126c
movzx eax, al
test eax, eax
je 0x140015ae9
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x140029020]
nop
call fcn.1400114b5
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x140015b1d
mov rcx, qword [rsp + 0x38]
call fcn.14001126c
movzx eax, al
test eax, eax
je 0x140015b1d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.1400115cd
nop
call fcn.140015c40
mov dword [rsp + 0x28], eax
call fcn.140011451
movzx eax, al
test eax, eax
jne 0x140015b3c
mov ecx, dword [rsp + 0x28]
call fcn.140011087
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x140015b4b
call fcn.1400115dc
nop
xor edx, edx
mov cl, 1
call fcn.140011249
mov eax, dword [rsp + 0x28]
jmp 0x140015b91
add rsp, 0x68
ret
Function at 0x1400fd730
Capabilities:
Encode data using add xor sub operations

Disassembly:
push rbp
sub rsp, 0x40
lea rbp, [rsp + 0x40]
mov qword [rbp - 0x18], r8
mov qword [rbp - 0x10], rdx
mov qword [rbp - 8], rcx
mov r8, qword [rbp - 8]
mov r9, qword [rbp - 0x10]
mov r10, qword [rbp - 0x18]
mov eax, 0x10
mov qword [rbp - 0x40], rax
call fcn.140131af0
sub rsp, rax
mov rax, qword [rbp - 0x40]
mov rcx, rsp
call fcn.140131af0
sub rsp, rax
mov rax, qword [rbp - 0x40]
mov rdx, rsp
mov qword [rbp - 0x38], rdx
call fcn.140131af0
sub rsp, rax
mov rax, qword [rbp - 0x38]
mov rdx, rsp
mov qword [rcx], r10
mov qword [rax], r9
mov qword [rdx], r8
mov rdx, qword [rdx]
mov qword [rbp - 0x30], rdx
mov rcx, qword [rcx]
movabs rdx, 0x6bff4ac4233db7c2
sub rcx, rdx
add rcx, 1
movabs rdx, 0x6bff4ac4233db7c2
add rcx, rdx
mov qword [rbp - 0x28], rcx
mov rax, qword [rax]
mov qword [rbp - 0x20], rax
mov eax, dword [0x1401429fc]
mov edx, dword [0x140142a00]
mov ecx, eax
xor ecx, edx
xor edx, 0xffffffff
and eax, edx
shl eax, 1
sub eax, ecx
mov edx, eax
xor edx, 0xffffffff
and edx, 0x17341b50
mov ecx, eax
and ecx, 0xe8cbe4af
imul ecx, edx
mov edx, eax
and edx, 0x17341b50
or eax, 0x17341b50
imul eax, edx
add eax, ecx
xor eax, 0x144e7bd1
xor eax, 0xffffffff
or eax, 0xb9976e33
xor eax, 0xffffffff
cmp eax, 0x6ae5154
jb 0x1400fd7c8
mov r8, qword [rbp - 0x28]
mov rdx, qword [rbp - 0x20]
mov rcx, qword [rbp - 0x30]
sub rsp, 0x20
call fcn.1400fe150
nop
mov rsp, rbp
pop rbp
ret
Function at 0x140124080
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
nop
add rsp, 0x28
ret

Function at 0x140131a50
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x30]
ret

Function at 0x140132174
Capabilities:
Parse pe header

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

Disassembly:
sub rsp, 0x28
lea rcx, [0x1400077e5]
call sub.msvcrt.dll_getenv
jmp 0x14000684d
lea rcx, [0x1400077e9]
lea rdx, [0x1400077e1]
mov r8, rax
mov rax, qword [0x140008276]
call rax
mov rsi, rax
lea rdi, [0x1400077e9]
lea r12, [0x140006a7d]
push r12
push rbp
mov rbp, rsp
sub rsp, 0x160
mov rdx, qword [rbp - 0x47]
test ecx, 0x7e46dc5c
je 0x14000689d
mov r11, rax
sub edx, 0x4787
movzx edx, dl
sub eax, edx
add qword [rbp - 0xb4], rax
mov byte [rbp - 0xc5], ah
or edx, dword [rbp - 0x51]
mov qword [rbp - 0x146], r11
mov ecx, dword [rbp - 0x7b]
mov word [rbp - 0x10d], ax
mov rcx, qword [rbp - 0x6b]
sub dword [rbp - 0xa7], ecx
add eax, ecx
mov ecx, dword [rbp - 0xaa]
mov qword [rbp - 0x3e], rcx
cmp ecx, edx
jae 0x1400068e3
mov qword [rbp - 0x97], r8
mov eax, eax
mov dword [rbp - 0x80], eax
sub ecx, edx
add qword [rbp - 0xaf], rax
movzx edx, dx
mov eax, eax
cmp rax, 0xffffffffff501c41
jae 0x14000695a
mov qword [rbp - 0x149], rdx
sub dword [rbp - 0xc4], edx
add dword [rbp - 0x52], ecx
mov dword [rbp - 0x61], eax
mov qword [rbp - 0x10a], rax
sub ecx, dword [rbp - 0xc7]
mov qword [rbp - 0x125], r10
mov rdx, r10
mov eax, dword [rbp - 0x135]
mov edx, dword [rbp - 0x15]
sub ecx, ecx
mov rcx, qword [0x140007007]
and qword [0x140007004], rdx
mov rdx, r9
mov qword [rbp - 0xae], r10
mov edx, ecx
mov qword [rbp - 0xff], rdx
sub qword [rbp - 0x39], rax
mov qword [rbp - 0x69], r9
movzx edx, ax
mov ecx, dword [rbp - 0x89]
add dword [rbp - 0x2c], edx
test ecx, 0x49021e4b
je 0x1400069aa
or qword [rbp - 0x24], rax
mov ecx, dword [rbp - 0xf8]
mov ecx, eax
mov edx, ecx
mov dword [rbp - 0x67], eax
mov r9, r9
mov qword [rbp - 0x6a], r8
mov qword [rbp - 0x146], rcx
add edx, dword [rbp - 0x120]
add r11, 0xae47
mov r10, qword [rbp - 0x30]
mov dword [rbp - 0x131], edx
mov eax, dword [rbp - 0x9a]
movzx edx, dh
mov rax, qword [rbp - 0x9a]
and r10, rdx
mov edx, dword [rbp - 0x9f]
mov ecx, edx
mov rax, qword [rbp - 0x87]
mov dword [rbp - 0x78], edx
sub dword [rbp - 0x4f], edx
mov rcx, qword [rbp - 0xa7]
mov qword [0x14000700d], rax
mov eax, 0x9c08
movzx ecx, byte [rbp - 0xd8]
test qword [0x140007008], rdx
jns 0x140006a1d
mov ecx, 0xb436
mov ecx, edx
mov edx, dword [rbp - 0x130]
mov dword [rbp - 0x107], ecx
mov qword [rbp - 0x9a], r11
mov edx, dword [rbp - 0xa3]
mov dword [0x140007001], ecx
sub rax, 0xb3f4
add ecx, edx
mov dword [rbp - 0x1b], ecx
and dword [rbp - 0xf0], edx
and r10, 0xb8a1
movzx ecx, dl
mov edx, dword [rbp - 0x8a]
mov eax, 0x1eda
sub rax, qword [rbp - 0x15b]
mov eax, dword [rbp - 0x145]
mov dword [rbp - 0xd4], edx
mov dword [rbp - 0xa9], eax
mov eax, ecx
lea eax, [rbp - 0x12b]
mov cl, dh
mov r9, qword [rbp - 0x7c]
cmp rdx, r11
jne 0x140006a74
mov qword [rbp - 0xdf], r10
mov dl, byte [rbp - 0x44]
mov dword [rbp - 0x6d], edx
leave
ret
Function at 0x1400011a0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x2a0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x290], rax
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
xor edx, edx
lea rcx, [rsp + 0x54]
mov r8d, 0x234
mov rbx, rax
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x50], 0x238
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
lea rdi, str.RainbowSix.exe
nop
lea rdx, [rsp + 0x7c]
mov rax, 0xffffffffffffffff
nop dword [rax]
movzx ecx, word [rdx + rax*2 + 2]
cmp cx, word [rdi + rax*2 + 2]
jne 0x140001230
add rax, 2
cmp rax, 0xf
je 0x140001242
movzx ecx, word [rdx + rax*2]
cmp cx, word [rdi + rax*2]
je 0x140001210
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140001200
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
jmp 0x140001250

Function at 0x140001c10
Capabilities:
Parse pe header

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

Disassembly:
invalid
cld
pop r11
jmp 0x1404c25dd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1404c25ed
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1404c25d5
lea eax, [rcx + 1]
jmp 0x1404c25fb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1404c260e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1404c25f4
sub eax, 3
jb 0x1404c262e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1404c267d
sar eax, 1
movsxd rbp, eax
jb 0x1404c2664
jmp 0x1404c263c
add ebx, ebx
jne 0x1404c263a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1404c2664
inc ecx
add ebx, ebx
jne 0x1404c264a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1404c2664
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1404c265d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1404c264c
add ecx, 2
jmp 0x1404c2669
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.1404c2592
jmp 0x1404c25dd
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x2bf400
mov dl, 0x60
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1404c26cd
cmp rsi, rcx
jae 0x1404c26d5
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1404c26b4
cmp al, 0x8f
ja 0x1404c26b4
cmp byte [rsi - 2], 0xf
je 0x1404c26ba
sub al, 0xe8
cmp al, 1
ja 0x1404c269e
cmp rsi, rcx
jae 0x1404c26d5
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1404c26a4
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1404c26d5
lodsb al, byte [rsi]
jmp 0x1404c26b4
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x4bc000]
mov eax, dword [rdi]
or eax, eax
je 0x1404c273e
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x4c21e4]
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 0x1404c26e2
jns 0x1404c2717
movzx rdx, word [rdi]
add rdi, 2
jmp 0x1404c2721
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 0x1404c2738
mov qword [rbx], rax
add rbx, 8
jmp 0x1404c2702
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x1404c2782
cmp al, 0xef
ja 0x1404c276a
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1404c274a
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x1404c2759
mov eax, dword [rdi]
add rdi, 4
jmp 0x1404c2759
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 + 0x257]
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 0x1404c27d6
sub rsp, 0xffffffffffffff80
jmp 0x1402b08d0
Function at 0x1400251cc
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x14000003c]
lea rsi, [0x140000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x140025244
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x140025244
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x140025244
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x140025238
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x140025256
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x140025226
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x140025246

Function at 0x140026ad0
Capabilities:
Parse pe header

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

Function at 0x14002f574
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14002f2d8

Function at 0x1400394c0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400394e8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400394e8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x140f66750
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140f6675a
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x140f66783
pop rbp
sub rbp, 0x33
sub rbp, 0xf66750
sub rsp, 0x20
jmp 0x140f667a2
mov rax, 0xf66750
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0x56765ad4
xor byte [rax], dl
inc rax
dec rcx
jne 0x140f667c1
jmp 0x140f667d8
pushfq
pop rbp
cmp eax, 0xd4e85d5f
invalid