joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14013ef30
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x140176280]
xor rax, rsp
mov qword [rbp - 0x10], rax
xor r8d, r8d
mov word [rbp - 0x28], 0x534e
mov dword [rbp - 0x17], 0x29616c
mov dword [rbp - 0x1c], 0x697a6f4d
mov word [rbp - 0x25], 0x5f53
mov dword [rbp - 0x21], 0x20637465
mov qword [rcx + 0x10], r8
mov word [rbp - 0x23], 0x6e49
mov byte [rbp - 0x1d], 0x28
mov byte [rbp - 0x26], 0x49
mov byte [rbp - 0x18], 0x6c
mov qword [rcx + 0x18], 0xf
mov byte [rcx], r8b
mov rbx, rcx
mov dword [rbp - 0x30], r8d
cmp byte [rbp - 0x28], r8b
je 0x14013efaf
lea rax, [rbp - 0x28]
or r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x14013efa5
lea rdx, [rbp - 0x28]
call fcn.14001e920
mov rax, rbx
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400596e0
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rbp
ret

Function at 0x14013f130
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x140176280]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rsi, rcx
lea rcx, [rbp - 0x40]
mov r14d, edx
xor ebx, ebx
mov dword [rbp - 0x3d], 0x33697061
mov dword [rbp - 0x37], 0x6c6c64
mov word [rbp - 0x3f], 0x7664
mov word [rbp - 0x39], 0x2e32
mov byte [rbp - 0x40], 0x41
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdi, rax
test rax, rax
je 0x14013f1f8
lea rdx, [rbp - 0x30]
mov rcx, rax
mov dword [rbp - 0x17], 0x726f74
mov dword [rbp - 0x30], 0x74696e49
mov word [rbp - 0x2b], 0x6c61
mov dword [rbp - 0x28], 0x6553657a
mov word [rbp - 0x1e], 0x6544
mov word [rbp - 0x21], 0x7469
mov word [rbp - 0x24], 0x7563
mov dword [rbp - 0x1b], 0x70697263
mov byte [rbp - 0x22], 0x72
mov byte [rbp - 0x1f], 0x79
mov byte [rbp - 0x1c], 0x73
mov byte [rbp - 0x29], 0x69
mov byte [rbp - 0x2c], 0x69
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14013f1ef
mov edx, r14d
mov rcx, rsi
call rax
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, ebx
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400596e0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret

Function at 0x140140070
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x140176280]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, rdx
mov rbx, rcx
mov dword [rsp + 0x21], 0x65747379
mov dword [rsp + 0x26], 0x656d6954
mov word [rsp + 0x2f], 0x5465
mov dword [rsp + 0x2a], 0x69466f54
mov dword [rsp + 0x31], 0x656d69
mov byte [rsp + 0x20], 0x53
mov byte [rsp + 0x2e], 0x6c
mov byte [rsp + 0x25], 0x6d
call fcn.140130370
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1401400e5
mov rdx, rdi
mov rcx, rbx
call rax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400596e0
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x1401401a0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x140176280]
xor rax, rsp
mov qword [rbp - 8], rax
mov rsi, rcx
lea rcx, [rbp - 0x30]
mov r14, rdx
xor ebx, ebx
mov dword [rbp - 0x2d], 0x33697061
mov dword [rbp - 0x27], 0x6c6c64
mov word [rbp - 0x2f], 0x7664
mov word [rbp - 0x29], 0x2e32
mov byte [rbp - 0x30], 0x41
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdi, rax
test rax, rax
je 0x140140259
lea rdx, [rbp - 0x20]
mov rcx, rax
mov dword [rbp - 0xd], 0x416469
mov dword [rbp - 0x1e], 0x7265766e
mov dword [rbp - 0x16], 0x74536f54
mov word [rbp - 0x19], 0x6953
mov word [rbp - 0x12], 0x6972
mov word [rbp - 0xf], 0x5367
mov byte [rbp - 0x1a], 0x74
mov byte [rbp - 0x17], 0x64
mov word [rbp - 0x20], 0x6f43
mov byte [rbp - 0x10], 0x6e
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140140250
mov rdx, r14
mov rcx, rsi
call rax
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400596e0
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret

Function at 0x1401403d0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x140176280]
xor rax, rsp
mov qword [rbp - 8], rax
mov esi, ecx
lea rcx, [rbp - 0x30]
mov r14, rdx
xor ebx, ebx
mov dword [rbp - 0x2b], 0x2e323369
mov word [rbp - 0x30], 0x7457
mov dword [rbp - 0x27], 0x6c6c64
mov word [rbp - 0x2d], 0x7061
mov byte [rbp - 0x2e], 0x73
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdi, rax
test rax, rax
je 0x14014047c
lea rdx, [rbp - 0x20]
mov rcx, rax
mov word [rbp - 0x14], 0x6f54
mov dword [rbp - 0x1e], 0x65755153
mov word [rbp - 0x20], 0x5457
mov dword [rbp - 0x12], 0x6e656b
mov word [rbp - 0x17], 0x6573
mov word [rbp - 0x1a], 0x7972
mov byte [rbp - 0x15], 0x72
mov byte [rbp - 0x18], 0x55
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140140473
mov rdx, r14
mov ecx, esi
call rax
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400596e0
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x4023d0
Capabilities:
Write file on windows

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
test rdx, rdx
jle 0x402450
mov rsi, qword [fcn.0041f440]
mov rbx, rcx
lea rdi, [rcx + rdx*8]
nop dword [rax]
mov r12, qword [rbx]
mov ecx, 1
add rbx, 8
call rsi
xor r8d, r8d
mov rcx, rax
mov rdx, r12
call fcn.004022b0
cmp rdi, rbx
jne 0x4023f0
mov ecx, 1
call rsi
mov r8d, 1
mov edx, 1
lea rcx, [0x0042313c]
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 1
call rsi
mov rcx, rax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp sub.msvcrt.dll_fflush
mov rsi, qword [fcn.0041f440]
jmp 0x402411

Function at 0x402560
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
sub rsp, 0x28
xor r8d, r8d
mov r13, rcx
mov r12, rdx
test rdx, rdx
je 0x402581
mov rcx, rdx
call sub.msvcrt.dll_strlen
mov r8, rax
mov rcx, r12
mov r9, r13
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rcx, r13
add rsp, 0x28
pop r12
pop r13
jmp sub.msvcrt.dll_fflush

Function at 0x4025b0
Capabilities:
Write file on windows

Disassembly:
push r12
sub rsp, 0x20
mov ecx, 2
call qword [fcn.0041f440]
mov r8d, 0x4b
mov edx, 1
lea rcx, str._GC__cannot_register_thread_local_variable__too_many_thread_local_variables
mov r12, rax
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rcx, r12
call sub.msvcrt.dll_fflush
mov ecx, 1
call sub.msvcrt.dll_exit
nop
nop word cs:[rax + rax]
nop dword [rax]
ret
Function at 0x40ec10
Capabilities:
Write file on windows

Disassembly:
push rbp
push r12
push rsi
push rbx
mov rbp, rsp
sub rsp, 0x148
cmp qword [0x0043af00], 0
mov qword [rbp + 0x28], rcx
mov qword [rbp + 0x30], rdx
mov byte [rbp - 0x119], 1
je 0x40ed07
mov rax, qword [0x004311e0]
lea rcx, [rbp - 0x108]
mov rdx, rbp
mov qword [rbp - 0x118], rax
lea rax, [rbp - 0x118]
mov qword [0x004311e0], rax
call sub.msvcrt.dll__setjmp
cdqe
mov qword [rbp - 0x110], rax
test rax, rax
jne 0x40ed28
xor r12d, r12d
cmp qword [rbp + 0x28], 0
je 0x40ecd8
mov rcx, qword [rbp + 0x28]
mov esi, 7
call sub.msvcrt.dll_strlen
lea r8, [0x00438280]
lea rcx, [0x00420020]
cmp rax, 7
mov rbx, rax
cmovge rsi, rax
lea rdx, [rsi + 0x11]
call fcn.0040bb60
movq xmm0, rbx
movq xmm1, rsi
mov rdx, qword [rbp + 0x28]
punpcklqdq xmm0, xmm1
lea rcx, [rax + 0x10]
lea r8, [rbx + 1]
mov r12, rax
movups xmmword [rax], xmm0
call sub.msvcrt.dll_memcpy
mov rcx, r12
call qword [0x0043af00]
mov rax, qword [0x004311e0]
cmp qword [rbp - 0x110], 0
mov byte [rbp - 0x119], 0
mov rax, qword [rax]
mov qword [0x004311e0], rax
jne 0x40ed9f
movzx eax, byte [rbp - 0x119]
test al, al
jne 0x40edb8
add rsp, 0x148
pop rbx
pop rsi
pop r12
pop rbp
ret
mov rax, qword [0x004311e0]
mov rax, qword [rax]
mov qword [rbp - 0x110], 0
mov qword [0x004311e0], rax
mov rax, qword [0x0043ae58]
mov rbx, qword [rax + 0x28]
test rbx, rbx
je 0x40ed65
add qword [rbx - 0x10], 8
mov rax, qword [0x0043ae58]
test rax, rax
je 0x40ed8a
mov rsi, qword [rax - 0x10]
lea r8, [rax - 0x10]
lea rdx, [rsi - 8]
mov qword [rax - 0x10], rdx
cmp rdx, 7
ja 0x40ed8a
mov rdx, r8
lea rcx, [0x00438298]
call fcn.00407170
cmp qword [rbp - 0x110], 0
mov qword [0x0043ae58], rbx
je 0x40ed07
mov rcx, qword [0x0043ae58]
test rcx, rcx
je 0x40ede8
call fcn.0040f1d0
jmp 0x40ed07
mov ecx, 2
call qword [fcn.0041f440]
mov rcx, qword [rbp + 0x28]
mov r8, qword [rbp + 0x30]
mov edx, 1
mov r12, rax
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rcx, r12
call sub.msvcrt.dll_fflush
jmp 0x40ed16
call fcn.0040f620
nop
nop
Function at 0x412610
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rdx
call fcn.0040fb60
test rax, rax
je 0x4127c1
mov r10, qword [rax]
test r10, r10
jle 0x4127c1
mov rdx, rbx
mov r9, rbx
lea rcx, [r10 - 1]
mov r11, rbx
sar rdx, 8
sar r9, 0x10
sar r11, 0x18
cmp rcx, 0xe
jbe 0x4127c7
movd xmm1, r9d
movd xmm0, edx
mov r8, r10
mov rcx, rax
punpcklbw xmm1, xmm1
punpcklbw xmm0, xmm0
and r8, 0xfffffffffffffff0
punpcklwd xmm1, xmm1
punpcklwd xmm0, xmm0
add r8, rax
pshufd xmm2, xmm1, 0
pshufd xmm1, xmm0, 0
movd xmm0, ebx
punpcklbw xmm0, xmm0
pxor xmm1, xmm2
punpcklwd xmm0, xmm0
pshufd xmm2, xmm0, 0
movd xmm0, r11d
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
pshufd xmm0, xmm0, 0
pxor xmm0, xmm2
pxor xmm1, xmm0
nop dword [rax]
movdqu xmm0, xmmword [rcx + 0x10]
add rcx, 0x10
pxor xmm0, xmm1
movups xmmword [rcx], xmm0
cmp rcx, r8
jne 0x4126b8
mov rcx, r10
and rcx, 0xfffffffffffffff0
test r10b, 0xf
je 0x4127c1
xor edx, r9d
lea r8, [rcx + 1]
xor edx, ebx
xor edx, r11d
xor byte [rax + rcx + 0x10], dl
cmp r10, r8
jle 0x4127c1
xor byte [rax + r8 + 0x10], dl
lea r8, [rcx + 2]
cmp r10, r8
jle 0x4127c1
xor byte [rax + r8 + 0x10], dl
lea r8, [rcx + 3]
cmp r10, r8
jle 0x4127c1
xor byte [rax + r8 + 0x10], dl
lea r8, [rcx + 4]
cmp r10, r8
jle 0x4127c1
xor byte [rax + r8 + 0x10], dl
lea r8, [rcx + 5]
cmp r10, r8
jle 0x4127c1
xor byte [rax + r8 + 0x10], dl
lea r8, [rcx + 6]
cmp r10, r8
jle 0x4127c1
xor byte [rax + r8 + 0x10], dl
lea r8, [rcx + 7]
cmp r10, r8
jle 0x4127c1
xor byte [rax + r8 + 0x10], dl
lea r8, [rcx + 8]
cmp r10, r8
jle 0x4127c1
xor byte [rax + r8 + 0x10], dl
lea r8, [rcx + 9]
cmp r10, r8
jle 0x4127c1
xor byte [rax + r8 + 0x10], dl
lea r8, [rcx + 0xa]
cmp r10, r8
jle 0x4127c1
xor byte [rax + r8 + 0x10], dl
lea r8, [rcx + 0xb]
cmp r10, r8
jle 0x4127c1
xor byte [rax + r8 + 0x10], dl
lea r8, [rcx + 0xc]
cmp r10, r8
jle 0x4127c1
xor byte [rax + r8 + 0x10], dl
lea r8, [rcx + 0xd]
cmp r10, r8
jle 0x4127c1
add rcx, 0xe
xor byte [rax + r8 + 0x10], dl
cmp r10, rcx
jle 0x4127c1
xor byte [rax + rcx + 0x10], dl
add rsp, 0x20
pop rbx
ret
xor ecx, ecx
jmp 0x4126de
Function at 0x417880
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
test rcx, rcx
je 0x4178f2
mov r8, qword [0x004439d0]
mov r9, qword [0x004439d8]
cmp rcx, 0xffffffffffffffff
je 0x417900
mov rax, 0xffffffffffffffff
xor edx, edx
div rcx
not rdx
nop dword [rax + rax]
lea rax, [r8 + r9]
xor r9, r8
ror r8, 9
mov r10, r9
xor r8, r9
ror r9, 0x1c
shl r10, 0xe
xor r8, r10
cmp rax, rdx
ja 0x4178b0
add rcx, 1
movq xmm0, r8
movq xmm1, r9
xor edx, edx
div rcx
punpcklqdq xmm0, xmm1
movups xmmword [0x004439d0], xmm0
mov r8, rdx
mov rax, r8
ret
mov rax, r8
mov rdx, r8
add r8, r9
xor rax, r9
ror rdx, 9
mov rcx, rax
xor rdx, rax
ror rax, 0x1c
shl rcx, 0xe
mov qword [0x004439d8], rax
mov rax, r8
xor rdx, rcx
mov qword [0x004439d0], rdx
ret
Function at 0x417950
Capabilities:
Access peb ldr_data
Get ntdll base address
Populate syswhispers2 syscall list
Resolve function by parsing pe exports

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov r8, qword [rax + 0x10]
mov rcx, qword [r8 + 0x30]
test rcx, rcx
je 0x417b7e
xor r10d, r10d
nop dword [rax]
mov rdx, rcx
movsxd rcx, dword [rcx + 0x3c]
mov eax, dword [rdx + rcx + 0x88]
test eax, eax
je 0x4179bf
lea r10, [rdx + rax]
mov ecx, dword [r10 + 0xc]
add rcx, rdx
mov r9d, dword [rcx]
or r9d, 0x20202020
cmp r9d, 0x6c64746e
jne 0x4179bf
mov eax, dword [rcx + 4]
or eax, 0x20202020
cmp eax, 0x6c642e6c
je 0x4179d4
mov r8, qword [r8]
mov rcx, qword [r8 + 0x30]
test rcx, rcx
jne 0x417980
test r10, r10
je 0x417b7e
mov eax, dword [r10 + 0x18]
mov edi, dword [r10 + 0x24]
xor r9d, r9d
lea r12, [0x004200a8]
mov ebp, dword [r10 + 0x1c]
lea ecx, [rax - 1]
mov eax, dword [r10 + 0x20]
add rdi, rdx
add rbp, rdx
lea rbx, [rdi + rcx*2]
add rax, rdx
lea rsi, [rax + rcx*4]
jmp 0x417a1c
sub rsi, 4
lea rax, [rbx - 2]
cmp rdi, rbx
je 0x417ab0
mov rbx, rax
mov eax, dword [rsi]
add rax, rdx
cmp word [rax], 0x775a
jne 0x417a08
mov r13d, r9d
shl r13, 4
add r13, r12
cmp byte [rax], 0
je 0x417b73
cmp byte [rax + 1], 0
mov r8d, 0xe81f7a60
je 0x417a76
mov ecx, 1
mov r10d, 1
nop word [rax + rax]
mov r11d, r8d
movzx ecx, word [rax + rcx]
add r10d, 1
ror r11d, 8
add ecx, r11d
xor r8d, ecx
mov ecx, r10d
cmp byte [rax + rcx], 0
jne 0x417a58
mov dword [r13], r8d
movzx eax, word [rbx]
add r9d, 1
mov eax, dword [rbp + rax*4]
mov qword [r13 + 8], 0
mov dword [r13 + 4], eax
cmp r9d, 0x1f4
jne 0x417a08
mov dword [0x004200a0], 0x1f4
jmp 0x417ac1
mov dword [0x004200a0], r9d
cmp r9d, 1
je 0x417b48
xor ebx, ebx
sub r9d, 1
lea r11, [0x004200a8]
nop
mov r10d, dword [0x004200ac]
xor edx, edx
cmp ebx, r9d
je 0x417b40
nop
lea eax, [rdx + 1]
mov rcx, rax
shl rax, 4
add rax, r11
mov r8d, dword [rax + 4]
cmp r8d, r10d
jae 0x417b60
mov edi, dword [rax]
shl rdx, 4
add rdx, r11
mov r9d, dword [rdx]
mov r8, qword [rdx + 8]
mov dword [rdx], edi
mov esi, dword [rax + 4]
mov dword [rdx + 4], esi
mov rdi, qword [rax + 8]
mov qword [rdx + 8], rdi
mov dword [rax], r9d
mov r9d, dword [0x004200a0]
mov dword [rax + 4], r10d
sub r9d, 1
mov qword [rax + 8], r8
mov eax, r9d
sub eax, ebx
cmp eax, ecx
jbe 0x417b40
mov edx, ecx
jmp 0x417ae0
add ebx, 1
cmp ebx, r9d
jb 0x417ad0
mov eax, 1
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov eax, r9d
sub eax, ebx
cmp ecx, eax
jae 0x417b40
mov r10d, r8d
mov edx, ecx
jmp 0x417ae0
mov r8d, 0x6778958f
jmp 0x417a76
xor eax, eax
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
Function at 0x417d30
Capabilities:
Execute syscall

Disassembly:
mov qword [rsp + 8], rcx
nop
nop
nop
mov qword [rsp + 0x10], rdx
nop
nop
nop
nop
mov qword [rsp + 0x18], r8
nop
nop
nop
mov qword [rsp + 0x20], r9
nop
nop
nop
nop
nop
sub rsp, 0x28
nop
nop
nop
mov ecx, 0x37953903
nop
nop
call fcn.00417bf0
nop
nop
nop
nop
nop
add rsp, 0x28
nop
nop
nop
mov rcx, qword [rsp + 8]
nop
nop
nop
mov rdx, qword [rsp + 0x10]
nop
nop
nop
nop
nop
mov r8, qword [rsp + 0x18]
nop
nop
mov r9, qword [rsp + 0x20]
nop
nop
nop
nop
mov r10, rcx
nop
nop
nop
nop
nop
nop
nop
syscall
nop
nop
nop
nop
ret

Function at 0x417db0
Capabilities:
Execute syscall

Disassembly:
mov qword [rsp + 8], rcx
nop
nop
nop
nop
nop
mov qword [rsp + 0x10], rdx
nop
nop
mov qword [rsp + 0x18], r8
nop
nop
nop
nop
mov qword [rsp + 0x20], r9
sub rsp, 0x28
nop
nop
nop
nop
nop
mov ecx, 0xd951b1b
nop
nop
call fcn.00417bf0
nop
add rsp, 0x28
nop
nop
nop
nop
mov rcx, qword [rsp + 8]
nop
mov rdx, qword [rsp + 0x10]
nop
mov r8, qword [rsp + 0x18]
nop
mov r9, qword [rsp + 0x20]
nop
mov r10, rcx
nop
nop
nop
syscall
ret

Function at 0x417e10
Capabilities:
Execute syscall

Disassembly:
mov qword [rsp + 8], rcx
nop
nop
nop
mov qword [rsp + 0x10], rdx
nop
mov qword [rsp + 0x18], r8
nop
nop
nop
mov qword [rsp + 0x20], r9
sub rsp, 0x28
nop
nop
nop
mov ecx, 0x8d149393
nop
nop
call fcn.00417bf0
nop
add rsp, 0x28
nop
nop
mov rcx, qword [rsp + 8]
nop
nop
nop
nop
mov rdx, qword [rsp + 0x10]
nop
nop
nop
nop
nop
mov r8, qword [rsp + 0x18]
nop
mov r9, qword [rsp + 0x20]
nop
mov r10, rcx
nop
syscall
ret

Function at 0x417e70
Capabilities:
Execute syscall

Disassembly:
mov qword [rsp + 8], rcx
nop
mov qword [rsp + 0x10], rdx
nop
mov qword [rsp + 0x18], r8
nop
mov qword [rsp + 0x20], r9
nop
sub rsp, 0x28
mov ecx, 0x123fda68
nop
call fcn.00417bf0
nop
add rsp, 0x28
mov rcx, qword [rsp + 8]
nop
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
nop
mov r9, qword [rsp + 0x20]
nop
mov r10, rcx
nop
nop
syscall
nop
nop
ret

Function at 0x417ec0
Capabilities:
Execute syscall

Disassembly:
mov qword [rsp + 8], rcx
nop
nop
nop
nop
mov qword [rsp + 0x10], rdx
nop
nop
nop
mov qword [rsp + 0x18], r8
nop
nop
nop
nop
mov qword [rsp + 0x20], r9
sub rsp, 0x28
nop
nop
nop
nop
nop
mov ecx, 0x3e9d1f51
nop
nop
nop
call fcn.00417bf0
add rsp, 0x28
nop
nop
nop
nop
mov rcx, qword [rsp + 8]
nop
mov rdx, qword [rsp + 0x10]
nop
nop
nop
nop
nop
mov r8, qword [rsp + 0x18]
nop
nop
nop
mov r9, qword [rsp + 0x20]
nop
nop
nop
nop
nop
nop
nop
mov r10, rcx
nop
nop
nop
nop
nop
nop
nop
nop
syscall
nop
nop
ret
Function at 0x418c10
Capabilities:
Access peb ldr_data

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
lea rsi, [0x00428820]
mov r12, rcx
mov ebp, edx
lea rcx, [0x00428860]
mov edx, 0x2fbdeece
call fcn.004180a0
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov r13, qword [rax + 0x20]
lea rdi, [rax + 0x20]
movzx eax, word [r12]
mov rdx, r12
test ax, ax
je 0x418c80
nop dword [rax]
lea ecx, [rax - 0x41]
cmp cx, 0x19
ja 0x418dc0
add eax, 0x20
add rdx, 2
mov word [rdx - 2], ax
movzx eax, word [rdx]
test ax, ax
jne 0x418c60
mov r10, qword [r13 + 0x50]
movzx ebx, word [r10]
test bx, bx
je 0x418de2
mov rax, r10
nop dword [rax]
lea edx, [rbx - 0x41]
cmp dx, 0x19
ja 0x418df0
add ebx, 0x20
add rax, 2
mov word [rax - 2], bx
movzx ebx, word [rax]
test bx, bx
jne 0x418c98
movzx r14d, word [r12]
movzx ebx, word [r10]
test r14w, r14w
je 0x418d13
mov edx, r14d
xor ecx, ecx
nop dword [rax]
movzx eax, word [r10 + rcx]
test ax, ax
je 0x418d13
lea r9d, [rdx - 0x41]
lea r8d, [rdx + 0x20]
cmp r9w, 0x1a
lea r9d, [rax - 0x41]
cmovb edx, r8d
lea r8d, [rax + 0x20]
cmp r9w, 0x1a
cmovb eax, r8d
cmp dx, ax
jne 0x418e10
add rcx, 2
movzx edx, word [r12 + rcx]
test dx, dx
jne 0x418cd0
mov edx, 0x4cdd234e
mov rcx, rsi
call fcn.004180a0
cmp r14w, bx
je 0x418e22
mov r13, qword [r13]
cmp rdi, r13
jne 0x418c50
test ebp, ebp
je 0x418e35
lea rbx, [rsp + 0x30]
mov edx, 0x4422a6ee
lea rcx, [0x004286c0]
call fcn.004180a0
mov rdx, r12
mov rcx, rbx
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x28], 0
call qword [0x00443de0]
mov r8, rbx
lea r9, [rsp + 0x28]
xor edx, edx
xor ecx, ecx
call qword [0x00443cf0]
mov edx, 0x308cc8aa
lea rcx, [0x00428680]
mov ebx, eax
call fcn.004180a0
test ebx, ebx
mov eax, 0
cmove rax, qword [rsp + 0x28]
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
movzx eax, word [rdx + 2]
add rdx, 2
test ax, ax
jne 0x418c60
mov r10, qword [r13 + 0x50]
movzx ebx, word [r10]
test bx, bx
jne 0x418c91
movzx r14d, word [r12]
jmp 0x418d13
movzx ebx, word [rax + 2]
add rax, 2
test bx, bx
jne 0x418c98
jmp 0x418cb8
mov edx, 0x4cdd234e
mov rcx, rsi
call fcn.004180a0
jmp 0x418d2a
mov rax, qword [r13 + 0x20]
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov edx, 0x4e1e93ca
lea rcx, [0x004287e0]
call fcn.004180a0
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
Function at 0x41e270
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.0041f440
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.0041f440
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x41e2e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x00430d94]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x41e488
mov rax, qword [0x00430d98]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x41e32c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x41e3b7
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x41e310
mov rcx, r12
call fcn.0041f040
mov rbp, rax
test rax, rax
je 0x41e4c2
mov rax, qword [0x00430d98]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.0041f170
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00430d98]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x41e4d1
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x41e3b0
sub eax, 4
and eax, 0xfffffffb
jne 0x41e440
add dword [0x00430d94], 1
cmp ebx, 8
jae 0x41e3e8
test bl, 4
jne 0x41e490
test ebx, ebx
je 0x41e3d9
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x41e4b0
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x41e3d9
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x41e41a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
add rdi, qword [0x00430d98]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x41e3b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.0041e270
nop dword [rax]
xor edi, edi
jmp 0x41e337
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x41e3d9
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x41e3d9
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.0041e270
mov rax, qword [0x00430d98]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.0041e270
nop
nop dword [rax]
Function at 0x41ecb0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00431080]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x00431060]
test rbx, rbx
je 0x41ed04
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x41ecfb
test r12, r12
je 0x41ecfb
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x41ece0
lea rcx, [0x00431080]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x41f040
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x00429d00]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x41f0b9
mov rcx, r10
call fcn.0041ef10
test eax, eax
je 0x41f0b9
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x41f0b6
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x41f0ad
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x41f0b9
add r8, 0x28
cmp r8, r9
jne 0x41f098
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret