joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180110730
Capabilities:
Check os version

Disassembly:
sub rsp, 0x158
mov rax, qword [0x18020d020]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor edx, edx
mov dword [rsp + 0x20], 0x114
mov r8d, 0x110
lea rcx, [rsp + 0x24]
call fcn.18013d3e0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x180110793
cmp dword [rsp + 0x24], 6
jb 0x180110793
mov al, 1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.18011e4d0
add rsp, 0x158
ret
xor al, al
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.18011e4d0
add rsp, 0x158
ret
Function at 0x1801113a0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rbp
push rbx
push rsi
push r14
lea rbp, [rsp - 0x188]
sub rsp, 0x288
mov rax, qword [0x18020d020]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov rcx, qword [rcx]
mov r14, r9
mov rbx, r8
mov rsi, rdx
test rcx, rcx
je 0x180111529
lea rdx, str.RegQueryValueExW
mov qword [rsp + 0x280], rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
je 0x180111521
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x208
call fcn.18013d3e0
cmp qword [rbx + 0x18], 8
mov dword [rsp + 0x30], 0x208
jb 0x180111420
mov rbx, qword [rbx]
lea rax, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
lea rax, [rsp + 0x60]
mov rdx, rbx
mov rcx, rsi
mov qword [rsp + 0x20], rax
call rdi
mov rbx, 0xffffffffffffffff
lea rax, [rsp + 0x60]
mov r8, rbx
inc r8
cmp word [rax + r8*2], 0
jne 0x180111451
lea rcx, [r14 + 0x50]
lea rdx, [rsp + 0x60]
call fcn.180003960
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 0x208
mov qword [rsp + 0x28], rax
lea rdx, str.Profile
lea rax, [rsp + 0x60]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, rsi
call rdi
lea rax, [rsp + 0x60]
nop dword [rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1801114a0
mov r8, rbx
lea rcx, [r14 + 0x70]
lea rdx, [rsp + 0x60]
call fcn.180003960
xor eax, eax
mov dword [rsp + 0x38], 0x65004b
mov word [rsp + 0x54], ax
lea rdx, [rsp + 0x38]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x3c], 0x620079
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], r14
mov rcx, rsi
mov dword [rsp + 0x40], 0x61006f
mov dword [rsp + 0x44], 0x640072
mov dword [rsp + 0x48], 0x61004c
mov dword [rsp + 0x4c], 0x6f0079
mov dword [rsp + 0x50], 0x740075
mov dword [rsp + 0x30], 4
call rdi
mov rdi, qword [rsp + 0x280]
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.18011e4d0
add rsp, 0x288
pop r14
pop rsi
pop rbx
pop rbp
ret
Function at 0x1801126c0
Capabilities:
Check os version

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x160
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x18020d020]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rdi, rcx
xor esi, esi
mov qword [rsp + 0x28], rsi
lea ecx, [rsi + 1]
call fcn.18011e4f4
mov qword [rsp + 0x28], rax
mov byte [rax], sil
xor edx, edx
mov r8d, 0x118
lea rcx, [rsp + 0x34]
call fcn.18013d3e0
mov dword [rsp + 0x30], 0x11c
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x180112740
cmp dword [rsp + 0x34], 6
setae cl
mov rax, qword [rsp + 0x28]
mov byte [rax], cl
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
lea rcx, [rsp + 0x28]
call fcn.180085350
test al, al
je 0x18011276b
lea rcx, [rsp + 0x28]
call fcn.180084290
test al, al
jne 0x18011276b
xor bl, bl
jmp 0x180112805
lea rbx, [rdi + 8]
mov rdx, rbx
xor ecx, ecx
call fcn.18008ed70
test al, al
jne 0x18011278e
mov qword [rbx + 0x10], rsi
cmp qword [rbx + 0x18], 8
jb 0x18011278b
mov rbx, qword [rbx]
mov word [rbx], si
lea rbx, [rdi + 0x28]
mov rdx, rbx
mov ecx, 0x1a
call fcn.18008ed70
test al, al
jne 0x1801127b4
mov qword [rbx + 0x10], rsi
cmp qword [rbx + 0x18], 8
jb 0x1801127b1
mov rbx, qword [rbx]
mov word [rbx], si
lea rbx, [rdi + 0x48]
mov rdx, rbx
mov ecx, 2
call fcn.18008ed70
test al, al
jne 0x1801127da
mov qword [rbx + 0x10], rsi
cmp qword [rbx + 0x18], 8
jb 0x1801127d7
mov rbx, qword [rbx]
mov word [rbx], si
lea rbx, [rdi + 0x68]
mov rdx, rbx
mov ecx, 0xb
call fcn.18008ed70
test al, al
jne 0x180112800
mov qword [rbx + 0x10], rsi
cmp qword [rbx + 0x18], 8
jb 0x1801127fd
mov rbx, qword [rbx]
mov word [rbx], si
mov byte [rdi], 1
mov bl, 1
lea rcx, [rsp + 0x28]
call fcn.1800839f0
movzx eax, bl
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.18011e4d0
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x180112900
Capabilities:
Query environment variable

Disassembly:
mov r11, rsp
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x60
mov qword [r11 - 0x60], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov rax, qword [0x18020d020]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rdi, r8
mov rbp, rdx
mov qword [r11 - 0x58], rdx
xor r15d, r15d
mov dword [r11 - 0x68], r15d
mov rdx, r8
cmp qword [r8 + 0x18], 8
jb 0x180112947
mov rdx, qword [r8]
mov rcx, qword [r8 + 0x10]
test rcx, rcx
je 0x180112963
mov rax, rdx
cmp word [rax], 0x25
je 0x18011299b
add rax, 2
sub rcx, 1
jne 0x180112953
mov rdx, rdi
mov rcx, rbp
call fcn.180027f70
nop
mov dword [rsp + 0x20], 1
mov rax, rbp
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.18011e4d0
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
test rax, rax
je 0x180112963
sub rax, rdx
sar rax, 1
cmp rax, 0xffffffffffffffff
je 0x180112963
mov rdx, rdi
lea rcx, [rsp + 0x38]
call fcn.180027f70
nop
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x1801129c7
mov rcx, qword [rdi]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov r14d, eax
test eax, eax
jne 0x180112a47
mov rdx, rdi
mov rcx, rbp
call fcn.180027f70
mov dword [rsp + 0x20], 1
mov rdx, qword [rsp + 0x50]
cmp rdx, 8
jb 0x180112a2e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180112a29
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180112ae7
call fcn.18011e914
movdqa xmm0, xmmword [0x1801b2820]
movdqu xmmword [rsp + 0x48], xmm0
mov word [rsp + 0x38], r15w
jmp 0x180112977
lea ecx, [rax + 2]
mov eax, 2
mul rcx
mov rbx, 0xffffffffffffffff
cmovo rax, rbx
mov rcx, rax
call fcn.18011e968
mov rsi, rax
cmp qword [rdi + 0x18], 8
jb 0x180112a72
mov rdi, qword [rdi]
lea r8d, [r14 + 1]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x180112aac
cmp eax, r14d
ja 0x180112aac
mov eax, eax
mov word [rsi + rax*2], r15w
inc rbx
cmp word [rsi + rbx*2], 0
jne 0x180112a92
mov r8, rbx
mov rdx, rsi
lea rcx, [rsp + 0x38]
call fcn.180003960
mov rcx, rsi
call fcn.18011e914
movups xmm0, xmmword [rsp + 0x38]
movups xmmword [rbp], xmm0
movups xmm1, xmmword [rsp + 0x48]
movups xmmword [rbp + 0x10], xmm1
movdqa xmm0, xmmword [0x1801b2820]
movdqu xmmword [rsp + 0x48], xmm0
mov word [rsp + 0x38], r15w
mov dword [rsp + 0x20], 1
jmp 0x180112a2e
call fcn.180146ae4
int3
Function at 0x180121e24
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x180121e37
add rsp, 0x48
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edx, ax
lea rcx, [rsp + 0x20]
or edx, 0x80070000
test eax, eax
cmovle edx, eax
call fcn.18012bd28
lea rdx, [0x180209e50]
lea rcx, [rsp + 0x20]
call fcn.18013ce88
int3

Function at 0x18012c6c0
Capabilities:
Set thread local storage value

Disassembly:
mov ecx, dword [0x180212a30]
xor edx, edx
jmp fcn.180121e24

Function at 0x18012d058
Capabilities:
Set thread local storage value

Disassembly:
mov rdx, rcx
mov ecx, dword [0x180212a30]
jmp fcn.180121e24

Function at 0x180138cd0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x180138d8c]
mov r9, qword [r9 + 8]
jmp fcn.180129e84

Function at 0x180138d64
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x180138d9c]
mov r9, qword [r9 + 8]
jmp fcn.180129e84
Function at 0x18015cccc
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x18015cb6c
call fcn.180146c14
mov dword [rax], 0x16
call fcn.180146ac4
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x18015cb54
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x18015cb54
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x18015cb9e
lock or dword [rax + 0x14], 0x10
jmp 0x18015cb54
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x18015cbbb
mov rcx, qword [rbp + 0x10]
call fcn.18015d1b8
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.1801581f8
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.18015d74c
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x18015cc12
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x18015cb54
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x18015cc7e
mov rcx, qword [rbp + 0x10]
call fcn.1801581f8
cmp eax, 0xffffffff
je 0x18015cc65
mov rcx, qword [rbp + 0x10]
call fcn.1801581f8
cmp eax, 0xfffffffe
je 0x18015cc65
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.1801581f8
movsxd rdi, eax
lea rsi, [0x180213140]
mov rcx, rbx
sar rdi, 6
call fcn.1801581f8
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x18015cc6c
lea rax, [0x18020d4c0]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x18015cc7e
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x18015ccb4
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x18015ccb0
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x18015ccb0
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x18015cb57
jmp 0x18015cb24
Function at 0x140001000
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via windows fibers

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x28], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ConvertThreadToFiber]
xor ecx, ecx
mov edx, 0x39f
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
xor r8d, r8d
lea r11, [0x140003060]
xor r9d, r9d
lea r10, [0x140000000]
mov rdx, r11
mov rbx, rax
nop
xor ecx, ecx
lea rdx, [rdx + 1]
cmp r9, 0x11
cmovne rcx, r9
inc r8d
movzx eax, byte [rcx + r10 + 0x3040]
lea r9, [rcx + 1]
xor byte [rdx - 1], al
cmp r8d, 0x39f
jb 0x140001050
xor r9d, r9d
mov r8, r11
xor eax, eax
xor ecx, ecx
lea r8, [r8 + 1]
cmp rax, 0x14
cmovne rcx, rax
inc r9d
movzx eax, byte [rcx + r10 + 0x3400]
xor byte [r8 - 1], al
lea rax, [rcx + 1]
cmp r9d, 0x39f
jb 0x140001082
mov r8d, 0x39f
mov rdx, r11
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
lea r9, [rsp + 0x20]
mov edx, 0x39f
mov r8d, 0x40
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
xor r8d, r8d
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateFiber]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SwitchToFiber]
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140001120
add rsp, 0x30
pop rbx
ret

Function at 0x1400019fc
Capabilities:
Parse pe header

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

Disassembly:
push rsi
push rbx
sub rsp, 0x28
xor r8d, r8d
test rdx, rdx
mov rsi, rcx
mov rbx, rdx
je 0x140001b91
mov rcx, rdx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov r8, rax
mov rcx, rbx
mov r9, rsi
mov edx, 1
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.14000ee48

Function at 0x1400046dd
Capabilities:
Write file on windows

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
lea r12, [0x140084040]
xor ebx, ebx
lea r14, [0x1400152a0]
lea r13, [rsp + 0x20]
mov rsi, rcx
mov rdi, rdx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbp, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rbx, rdi
mov ecx, 1
jl 0x140004763
call rbp
mov r8d, 1
mov edx, 1
lea rcx, [0x1400172cf]
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov ecx, 1
call rbp
mov rcx, rax
call fcn.14000ee48
mov rcx, r12
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rbp
xor r8d, r8d
mov rdx, r13
mov rcx, rax
mov rax, rbx
shl rax, 4
movups xmm0, xmmword [rsi + rax]
movaps xmmword [rsp + 0x20], xmm0
call fcn.1400045b6
mov rcx, r14
call fcn.140009aa0
cmp byte [rax], 0
jne 0x140004795
inc rbx
jmp 0x140004716
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
Function at 0x140007edc
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x140015420], 0
je 0x140007efb
mov edx, 1
jmp 0x14000803a
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
xor edx, edx
mov rcx, qword [rax + 0x10]
xor eax, eax
mov r11, qword [rcx + 0x30]
test r11, r11
je 0x140007f5f
movsxd rdx, dword [r11 + 0x3c]
mov edx, dword [r11 + rdx + 0x88]
test edx, edx
je 0x140007f57
lea rax, [rdx + r11]
mov edx, dword [rax + 0xc]
add rdx, r11
mov r8d, dword [rdx]
or r8d, 0x20202020
cmp r8d, 0x6c64746e
jne 0x140007f57
mov edx, dword [rdx + 4]
or edx, 0x20202020
cmp edx, 0x6c642e6c
je 0x140007f62
mov rcx, qword [rcx]
mov rdx, r11
jmp 0x140007f10
mov r11, rdx
xor edx, edx
test rax, rax
je 0x14000803a
mov ebp, dword [rax + 0x1c]
lea r13, [0x140015424]
xor r10d, r10d
mov esi, dword [rax + 0x24]
mov edx, dword [rax + 0x18]
mov eax, dword [rax + 0x20]
add rbp, r11
add rsi, r11
lea ebx, [rdx - 1]
add rax, r11
lea rdi, [rax + rbx*4]
add rbx, rbx
add rbx, rsi
mov ecx, dword [rdi]
add rcx, r11
cmp word [rcx], 0x775a
jne 0x140007fce
mov eax, r10d
inc r10d
lea r12, [r13 + rax*8]
call fcn.140007eb4
cmp r10d, 0x1f4
mov dword [r12], eax
movzx eax, word [rbx]
mov eax, dword [rbp + rax*4]
mov dword [r12 + 4], eax
je 0x140007fe0
lea rax, [rbx - 2]
sub rdi, 4
cmp rsi, rbx
je 0x140007fe0
mov rbx, rax
jmp 0x140007f99
mov dword [0x140015420], r10d
lea r11, [0x140015424]
dec r10d
test r10d, r10d
je 0x140007ef1
lea rax, [0x140015420]
xor edx, edx
lea ecx, [rdx + 1]
mov r8d, dword [rax + 8]
mov rdx, rcx
lea rcx, [r11 + rcx*8]
mov r9d, dword [rcx + 4]
cmp r9d, r8d
jae 0x14000802c
mov ebx, dword [rax + 4]
mov esi, dword [rcx]
mov dword [rax + 8], r9d
mov dword [rax + 4], esi
mov dword [rcx], ebx
mov dword [rcx + 4], r8d
add rax, 8
cmp edx, r10d
jb 0x140008003
dec r10d
jmp 0x140007ff1
mov eax, edx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret

Function at 0x140008301
Capabilities:
Execute syscall

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, 0x1992691d
call fcn.140008049
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 0x140008343
Capabilities:
Execute syscall

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, 0xf9f18f1
call fcn.140008049
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 0x140008c10
Capabilities:
Write file on windows

Disassembly:
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 sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call fcn.14000eb40
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
nop dword [rax]

Function at 0x140008c80
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140084144]
test esi, esi
mov rbx, rcx
jle 0x140008db0
mov rax, qword [0x140084148]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140008ccb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140008d55
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140008cb0
mov rcx, rbx
call fcn.1400096f0
test rax, rax
mov rdi, rax
je 0x140008dd2
mov rax, qword [0x140084148]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140009830
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140084148]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140008db7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140008d4e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140008d60
add dword [0x140084144], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x140084148]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140008d4e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140008c10
nop dword [rax]
xor esi, esi
jmp 0x140008cd8
mov rax, qword [0x140084148]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call fcn.140008c10
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.140008c10
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x140009340
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400841a0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140084180]
test rbx, rbx
je 0x14000939c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140009393
test rsi, rsi
je 0x140009393
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140009378
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400095b0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400095e8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400095f0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x1400095c0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400095e8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400095f0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x1400095d0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400095e8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400095f0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x1400096f0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14007f500]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140009710
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140009718
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140009710
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000976d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x140009764
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140009710
add rax, 0x28
cmp rax, r9
jne 0x140009750
xor eax, eax
ret

Function at 0x140009770
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14007f500]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000978f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140009798
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000978f
movzx ecx, word [rax + 6]
mov eax, ecx
ret