joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800a2f94
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
mov rbp, rcx
cmp edx, 1
jne 0x1800a3132
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
mov r8, qword [rax + 0x30]
movsxd rcx, dword [r8 + 0x3c]
mov r9d, dword [rcx + r8 + 0x88]
add r9, r8
cmp r9, r8
je 0x1800a303c
mov r10d, dword [r9 + 0x18]
test r10d, r10d
je 0x1800a303c
mov r14d, dword [r9 + 0x20]
dec r10d
mov edi, 0x7c327ac9
lea rcx, [r14 + r10*4]
mov r11d, dword [rcx + r8]
add r11, r8
mov bl, byte [r11]
inc r11
test bl, bl
je 0x1800a3037
movsx ecx, bl
sub bl, 0x41
mov edx, ecx
or edx, 0x20
cmp bl, 0x19
mov bl, byte [r11]
cmova edx, ecx
inc r11
xor edx, edi
imul edi, edx, 0x1000193
test bl, bl
jne 0x1800a300c
cmp edi, 0x7c65dff7
je 0x1800a3041
test r10d, r10d
jne 0x1800a2fef
mov rax, qword [rax]
jmp 0x1800a2fca
mov ecx, dword [r9 + 0x24]
add rcx, r8
movzx edx, word [rcx + r10*2]
mov ecx, dword [r9 + 0x1c]
add rcx, r8
mov eax, dword [rcx + rdx*4]
mov rcx, rbp
add rax, r8
call rax
mov rax, qword [0x1800c4a70]
test rax, rax
jne 0x1800a3117
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
mov r8, qword [rax + 0x30]
movsxd rcx, dword [r8 + 0x3c]
mov r9d, dword [rcx + r8 + 0x88]
add r9, r8
cmp r9, r8
je 0x1800a30f2
mov r11d, dword [r9 + 0x18]
test r11d, r11d
je 0x1800a30f2
mov r14d, dword [r9 + 0x20]
dec r11d
mov esi, 0x8cb5b915
lea rcx, [r14 + r11*4]
mov r10d, dword [rcx + r8]
add r10, r8
mov bl, byte [r10]
inc r10
test bl, bl
je 0x1800a30ed
movsx ecx, bl
sub bl, 0x41
mov edx, ecx
or edx, 0x20
cmp bl, 0x19
mov bl, byte [r10]
cmova edx, ecx
inc r10
xor edx, esi
imul esi, edx, 0x1000193
test bl, bl
jne 0x1800a30c2
cmp esi, 0x4f9dafc9
je 0x1800a30f7
test r11d, r11d
jne 0x1800a30a5
mov rax, qword [rax]
jmp 0x1800a3080
mov ecx, dword [r9 + 0x24]
add rcx, r8
movzx edx, word [rcx + r11*2]
mov ecx, dword [r9 + 0x1c]
add rcx, r8
mov eax, dword [rcx + rdx*4]
add rax, r8
mov qword [0x1800c4a70], rax
and qword [rsp + 0x28], 0
lea r8, [0x1800a2f80]
and dword [rsp + 0x20], 0
xor r9d, r9d
xor edx, edx
xor ecx, ecx
call rax
mov rbx, qword [rsp + 0x40]
mov eax, 1
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x1400024b8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140002502
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140002502
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140002502
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140002502
cmp dword [rcx + 0x84], 0xe
jbe 0x140002502
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140002504
xor al, al
add rsp, 0x28
ret
Function at 0x180002350
Capabilities:
Access peb ldr_data
Get kernel32 base address
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r13
push r14
mov rax, qword gs:[0x30]
xor r9d, r9d
mov ebx, ecx
mov rdx, qword [rax + 0x60]
mov rax, qword [rdx + 0x18]
mov rdx, qword [rax + 0x10]
mov rax, qword [rdx]
mov rdi, qword [rax + 0x30]
movsxd rax, dword [rdi + 0x3c]
mov edx, dword [rax + rdi + 0x88]
add rdx, rdi
mov r13d, dword [rdx + 0x1c]
mov esi, dword [rdx + 0x20]
mov r11d, dword [rdx + 0x24]
mov r12d, dword [rdx + 0x14]
mov r14d, dword [rdx + 0x18]
add r13, rdi
add rsi, rdi
add r11, rdi
test r12, r12
je 0x180002422
mov qword [rsp + 0x20], rbp
nop word [rax + rax]
mov eax, dword [r13 + r9*4]
test eax, eax
je 0x18000240e
xor r8d, r8d
mov ebp, eax
test r14d, r14d
je 0x18000240e
movzx eax, word [r11 + r8*2]
cmp rax, r9
jne 0x180002406
mov edx, dword [rsi + r8*4]
xor ecx, ecx
add rdx, rdi
movzx eax, byte [rdx]
test al, al
je 0x180002402
nop dword [rax]
ror ecx, 7
movsx eax, al
inc rdx
add ecx, eax
movzx eax, byte [rdx]
test al, al
jne 0x1800023f0
cmp ebx, ecx
je 0x180002418
inc r8
cmp r8, r14
jb 0x1800023d3
inc r9
cmp r9, r12
jb 0x1800023c0
jmp 0x18000241d
movzx eax, byte [rdi + rbp + 4]
mov rbp, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
pop r14
pop r13
pop r12
ret
Function at 0x1800024e0
Capabilities:
Create thread

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x3c8]
sub rsp, 0x4c0
mov qword [rbp - 0x58], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rdi
mov qword [rbp - 0x68], 0xf
xor ebx, ebx
mov qword [rbp - 0x70], rbx
mov byte [rbp - 0x80], bl
lea r8d, [rbx + 0x22]
lea rdx, [0x18001cc90]
lea rcx, [rbp - 0x80]
call fcn.180001530
nop
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x58]
call fcn.1800021c0
nop
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x30]
call fcn.180001050
nop
mov qword [rbp + 0x3b0], rbx
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, str.Anonymous
repne scasb al, byte [rdi]
not rcx
lea edx, [rcx - 1]
lea rcx, [rbp - 0x50]
call fcn.180005930
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 0x10
cmovae rdx, qword [rsp + 0x30]
mov r8d, dword [rsp + 0x40]
lea rcx, [rbp - 0x50]
call fcn.180005ac0
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 0x10
cmovae rcx, qword [rsp + 0x30]
mov edx, dword [rsp + 0x40]
call fcn.180002440
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdi, rax
mov ecx, 0x14044ae
call fcn.180002350
mov ecx, eax
call fcn.180005b90
mov qword [rbp + 0x3d0], rbx
mov rcx, qword [rsp + 0x40]
mov qword [rbp + 0x3d8], rcx
mov dword [rsp + 0x28], 0x40
mov dword [rsp + 0x20], 0x1000
lea r9, [rbp + 0x3d8]
xor r8d, r8d
lea rdx, [rbp + 0x3d0]
mov rcx, rdi
call fcn.180005ba1
mov ecx, 0x1130814d
call fcn.180002350
mov ecx, eax
call fcn.180005b90
lea r8, [rsp + 0x30]
cmp qword [rsp + 0x48], 0x10
cmovae r8, qword [rsp + 0x30]
mov qword [rsp + 0x20], rbx
mov r9, qword [rsp + 0x40]
mov rdx, qword [rbp + 0x3d0]
mov rcx, rdi
call fcn.180005ba1
mov ecx, 0x93ec9d3d
call fcn.180002350
mov ecx, eax
call fcn.180005b90
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], ebx
xor r9d, r9d
mov r8, qword [rbp + 0x3d0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop
cmp qword [rsp + 0x48], 0x10
jb 0x180002683
mov rcx, qword [rsp + 0x30]
call fcn.1800071d0
mov qword [rsp + 0x48], 0xf
mov qword [rsp + 0x40], rbx
mov byte [rsp + 0x30], 0
cmp qword [rsp + 0x70], 0x10
jb 0x1800026a8
mov rcx, qword [rsp + 0x58]
call fcn.1800071d0
mov qword [rsp + 0x70], 0xf
mov qword [rsp + 0x68], rbx
mov byte [rsp + 0x58], 0
cmp qword [rbp - 0x68], 0x10
jb 0x1800026cb
mov rcx, qword [rbp - 0x80]
call fcn.1800071d0
lea r11, [rsp + 0x4c0]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x180004940
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rdi, rcx
cmp qword [rcx + 0x80], 0
je 0x180004b79
cmp byte [rcx + 0x89], 0
je 0x180004b79
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x180004b4d
mov edx, 0xf
mov qword [rbp - 0x10], rdx
mov byte [rbp - 0x28], 0
xor ecx, ecx
mov qword [rbp - 0x28], rcx
mov qword [rbp - 0x18], 8
lea rax, [rbp - 0x28]
cmp rdx, 0x10
cmovae rax, rcx
mov byte [rax + 8], cl
xor r12d, r12d
mov r9, qword [rbp - 0x10]
mov r10, qword [rbp - 0x28]
nop word [rax + rax]
lea rdx, [rbp - 0x28]
cmp r9, 0x10
cmovae rdx, r10
lea r8, [rbp - 0x28]
cmovae r8, r10
mov rcx, qword [rdi + 0x80]
mov r10, qword [rcx]
mov rax, qword [rbp - 0x18]
lea r9, [rdx + rax]
lea rax, [rbp + 0x20]
mov qword [rsp + 0x20], rax
lea rdx, [rdi + 0x8c]
call qword [r10 + 0x30]
test eax, eax
je 0x180004a18
dec eax
jne 0x180004b17
jmp 0x180004a1f
mov byte [rdi + 0x89], r12b
lea rax, [rbp - 0x28]
mov r10, qword [rbp - 0x28]
mov r9, qword [rbp - 0x10]
cmp r9, 0x10
cmovae rax, r10
mov rbx, qword [rbp + 0x20]
sub rbx, rax
je 0x180004a6d
lea rcx, [rbp - 0x28]
cmp r9, 0x10
cmovae rcx, r10
mov r9, qword [rdi + 0x98]
mov r8, rbx
mov edx, 1
call fcn.180007fb0
cmp rbx, rax
jne 0x180004b3d
mov r9, qword [rbp - 0x10]
mov r10, qword [rbp - 0x28]
cmp byte [rdi + 0x89], r12b
je 0x180004b6b
test rbx, rbx
jne 0x1800049d0
or rax, 0xffffffffffffffff
mov r8, qword [rbp - 0x18]
sub rax, r8
cmp rax, 8
jbe 0x180004b5e
lea rbx, [r8 + 8]
cmp rbx, 0xfffffffffffffffe
ja 0x180004b51
cmp r9, rbx
jae 0x180004ac1
mov rdx, rbx
lea rcx, [rbp - 0x28]
call fcn.180001840
mov r9, qword [rbp - 0x10]
mov r10, qword [rbp - 0x28]
jmp 0x180004ade
test rbx, rbx
jne 0x180004ae7
mov qword [rbp - 0x18], r12
lea rax, [rbp - 0x28]
cmp r9, 0x10
cmovae rax, r10
mov byte [rax], r12b
jmp 0x1800049bb
test rbx, rbx
je 0x1800049d0
lea rcx, [rbp - 0x28]
cmp r9, 0x10
cmovae rcx, r10
mov rax, qword [rbp - 0x18]
xor edx, edx
mov qword [rcx + rax], rdx
mov qword [rbp - 0x18], rbx
lea rax, [rbp - 0x28]
cmp qword [rbp - 0x10], 0x10
cmovae rax, qword [rbp - 0x28]
mov byte [rax + rbx], dl
jmp 0x1800049bb
sub eax, 2
je 0x180004b30
cmp qword [rbp - 0x10], 0x10
jb 0x180004b4d
mov rcx, qword [rbp - 0x28]
call fcn.1800071d0
xor al, al
jmp 0x180004b7b
cmp qword [rbp - 0x10], 0x10
jb 0x180004b79
mov rcx, qword [rbp - 0x28]
jmp 0x180004b74
cmp qword [rbp - 0x10], 0x10
jb 0x180004b4d
mov rcx, qword [rbp - 0x28]
call fcn.1800071d0
xor al, al
jmp 0x180004b7b
lea rcx, str.string_too_long
call fcn.180005bdc
int3
lea rcx, str.string_too_long
call fcn.180005bdc
nop
cmp r9, 0x10
jb 0x180004b79
mov rcx, r10
call fcn.1800071d0
mov al, 1
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rbp
ret
Function at 0x180005930
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push rdi
sub rsp, 0x20
mov edi, edx
mov r11, rcx
test edx, edx
je 0x180005aa5
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x40], rsi
mov r8, rcx
mov eax, r9d
nop dword [rax + rax]
mov dword [r8], eax
inc eax
add r8, 4
cmp eax, 0x100
jl 0x180005960
mov ebx, 2
lea r10, [rcx + 8]
lea rbp, str.Anonymous
lea esi, [rbx + 0x3e]
nop word [rax + rax]
xor edx, edx
lea eax, [rbx - 2]
div edi
movzx r8d, byte [rdx + rbp]
add r8d, dword [r10 - 8]
add r8d, r9d
and r8d, 0x800000ff
jge 0x1800059b9
dec r8d
or r8d, 0xffffff00
inc r8d
movzx ecx, byte [r10 - 8]
movsxd rdx, r8d
mov eax, dword [r11 + rdx*4]
mov dword [r10 - 8], eax
mov dword [r11 + rdx*4], ecx
xor edx, edx
lea eax, [rbx - 1]
div edi
movzx r9d, byte [rdx + rbp]
add r9d, dword [r10 - 4]
add r9d, r8d
and r9d, 0x800000ff
jge 0x1800059f6
dec r9d
or r9d, 0xffffff00
inc r9d
movzx ecx, byte [r10 - 4]
movsxd rdx, r9d
mov eax, dword [r11 + rdx*4]
mov dword [r10 - 4], eax
mov dword [r11 + rdx*4], ecx
xor edx, edx
mov eax, ebx
div edi
movzx r8d, byte [rdx + rbp]
add r8d, r9d
add r8d, dword [r10]
and r8d, 0x800000ff
jge 0x180005a31
dec r8d
or r8d, 0xffffff00
inc r8d
movzx ecx, byte [r10]
movsxd rdx, r8d
mov eax, dword [r11 + rdx*4]
mov dword [r10], eax
mov dword [r11 + rdx*4], ecx
xor edx, edx
lea eax, [rbx + 1]
div edi
movzx r9d, byte [rdx + rbp]
add r9d, dword [r10 + 4]
add r9d, r8d
and r9d, 0x800000ff
jge 0x180005a6c
dec r9d
or r9d, 0xffffff00
inc r9d
movzx ecx, byte [r10 + 4]
movsxd rdx, r9d
add r10, 0x10
mov eax, dword [r11 + rdx*4]
add ebx, 4
dec rsi
mov dword [r10 - 0xc], eax
mov dword [r11 + rdx*4], ecx
jne 0x180005990
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
lea rcx, str.rc4_key_or_len_is_0__return_
add rsp, 0x20
pop rdi
jmp 0x180008124
mov rax, rsp
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], r8
mov qword [rax + 0x20], r9
push rbx
push rdi
sub rsp, 0x28
xor eax, eax
test rcx, rcx
setne al
test eax, eax
jne 0x18000815e
call fcn.18000da9c
mov dword [rax], 0x16
call fcn.18000da34
or eax, 0xffffffff
jmp 0x1800081c8
lea rdi, [rsp + 0x48]
call fcn.180007430
lea rdx, [rax + 0x30]
mov ecx, 1
call fcn.1800075a4
nop
call fcn.180007430
lea rcx, [rax + 0x30]
call fcn.18000f0dc
mov ebx, eax
call fcn.180007430
mov r9, rdi
xor r8d, r8d
mov rdx, qword [rsp + 0x40]
lea rcx, [rax + 0x30]
call fcn.18000f32c
mov edi, eax
call fcn.180007430
lea rdx, [rax + 0x30]
mov ecx, ebx
call fcn.18000f1b0
nop
call fcn.180007430
lea rdx, [rax + 0x30]
mov ecx, 1
call fcn.180007624
mov eax, edi
add rsp, 0x28
pop rdi
pop rbx
ret
Function at 0x180005ac0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov r10, rdx
mov r9, rcx
test r8d, r8d
je 0x180005b7f
mov r11d, r8d
nop word [rax + rax]
mov eax, dword [r9 + 0x400]
inc eax
and eax, 0x800000ff
jge 0x180005af9
dec eax
or eax, 0xffffff00
inc eax
movsxd r8, eax
mov dword [r9 + 0x400], eax
mov eax, dword [r9 + r8*4]
add eax, dword [r9 + 0x404]
and eax, 0x800000ff
jge 0x180005b1e
dec eax
or eax, 0xffffff00
inc eax
mov dword [r9 + 0x404], eax
movzx edx, byte [r9 + r8*4]
cdqe
mov ecx, dword [r9 + rax*4]
mov dword [r9 + r8*4], ecx
movsxd rax, dword [r9 + 0x404]
mov dword [r9 + rax*4], edx
movsxd rax, dword [r9 + 0x404]
movsxd rcx, dword [r9 + 0x400]
mov edx, dword [r9 + rax*4]
add edx, dword [r9 + rcx*4]
and edx, 0x800000ff
jge 0x180005b67
dec edx
or edx, 0xffffff00
inc edx
movsxd rax, edx
inc r10
movzx ecx, byte [r9 + rax*4]
xor byte [r10 - 1], cl
dec r11
jne 0x180005ae0
repz ret

Function at 0x180005ba1
Capabilities:
Execute syscall

Disassembly:
mov r10, rcx
mov eax, dword [section..data]
syscall
ret
Function at 0x1800154f8
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x180024410]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.18000c77c
xor ebx, ebx
cmp qword [0x180025a08], rbx
mov rdi, rax
jne 0x18001560b
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x1800156e2
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1800156e2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x180025a08], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x180025a10], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x180025a18], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x180025a28], rax
test rax, rax
je 0x180015602
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x180025a20], rax
jmp 0x180015612
mov rax, qword [0x180025a20]
jmp 0x180015619
mov rax, qword [0x180025a20]
mov r11, qword [0x180025a28]
cmp rax, rdi
je 0x180015680
cmp r11, rdi
je 0x180015680
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x180025a28]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x180015680
test rax, rax
je 0x180015680
call rsi
test rax, rax
je 0x18001567a
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x18001567a
test byte [rsp + 0x40], 1
jne 0x180015680
bts ebp, 0x15
jmp 0x1800156c0
mov rcx, qword [0x180025a10]
cmp rcx, rdi
je 0x1800156c0
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1800156c0
call rax
mov rbx, rax
test rax, rax
je 0x1800156c0
mov rcx, qword [0x180025a18]
cmp rcx, rdi
je 0x1800156c0
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1800156c0
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x180025a08]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1800156e2
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x1800156e4
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180010c70
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180015b87
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x180024410]
jne 0x180010c8a
rol rcx, 0x10
test cx, 0xffff
jne 0x180010c86
repz ret
ror rcx, 0x10
jmp 0x180015ae0
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x180025ad0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x180025bc8]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x180015b65
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x180025ad0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x180015b87
mov rax, qword [rsp + 0x88]
mov qword [0x180025bc8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x180025b68], rax
mov rax, qword [0x180025bc8]
mov qword [0x180025a40], rax
mov rax, qword [rsp + 0x90]
mov qword [0x180025b50], rax
mov dword [0x180025a30], 0xc0000409
mov dword [0x180025a34], 1
mov rax, qword [0x180024410]
mov qword [rsp + 0x68], rax
mov rax, qword [0x180024418]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x180025ac8], eax
mov ecx, 1
call fcn.1800143c4
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x18001cb88]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x180025ac8], 0
jne 0x180015c0e
mov ecx, 1
call fcn.1800143c4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x140002ec0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, 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.140003ef0
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.140003ef0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140002f30
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400090a4]
mov rbx, rcx
test esi, esi
jle 0x140003060
mov rax, qword [0x1400090a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140002f7b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140003005
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002f60
mov rcx, rbx
call fcn.140003980
mov rdi, rax
test rax, rax
je 0x140003082
mov rax, qword [0x1400090a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140003ac0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400090a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140003067
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140002ffe
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140003010
add dword [0x1400090a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
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 [0x1400090a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002ffe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002ec0
nop dword [rax]
xor esi, esi
jmp 0x140002f88
mov rax, qword [0x1400090a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002ec0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002ec0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400035f0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140009100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400090e0]
test rbx, rbx
je 0x14000364c
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 0x140003643
test rsi, rsi
je 0x140003643
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140003628
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 0x140003980
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140006980]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400039a0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400039a8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400039a0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400039fd
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]
mov rdx, r8
cmp rcx, r8
jb 0x1400039f4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400039a0
add rax, 0x28
cmp rax, r9
jne 0x1400039e0
xor eax, eax
ret

Function at 0x140003a00
Capabilities:
Parse pe header

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

Function at 0x140003ac0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006980]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140003adf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140003ae8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret