joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400e3ce8
Capabilities:
Parse pe header

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

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je case.default.0x140001f71
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp 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]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x140001f9e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140001fa0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140001ff9
test ecx, ecx
jle 0x140001fd9
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call fcn.140004abf
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140001ff9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140001ff9
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
fstp dword [rcx - 0x23]
or edi, dword [rsi - 0x662d7d7e]
mov edi, 0x9f9e6523
xchg edx, eax
invalid
sub byte [rsi], cl
test byte [rsi + 0x55894321], ah
je 0x14000ccb8
invalid
Function at 0x140002020
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140002042
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x140002051
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140002074
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140002076
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400020b2
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call fcn.140004abf
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14000214e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x1400020ed
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x14000212e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x14000214e
cmp rbx, rax
ja 0x140002100
test rbx, rbx
je 0x14000214e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
invalid
Function at 0x1400025b0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140009040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400025dd
xor eax, eax
jmp 0x140002749
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140002617
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140002617
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140002749
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000273c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000265a
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 0x140002685
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140002741
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.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 0x1400026f4
sub eax, 1
je 0x1400026f4
cmp eax, 2
jne 0x14000273c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140002741
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140002722
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14000273c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140002741
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140003c80
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140002a00
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140009040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140002ad3
cmp byte [rcx + 0x71], 0
je 0x140002ad3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140002acf
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.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 0x140002a94
sub eax, 1
je 0x140002a98
cmp eax, 2
jne 0x140002acf
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140003c80
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140002ac6
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x140002acf
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140002a7c
xor al, al
jmp 0x140002a7c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140003c80
add rsp, 0x60
pop rbx
ret

Function at 0x140004600
Capabilities:
Parse pe header

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

Disassembly:
call fcn.14083d1df
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 0x14083d089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14083d06f
add dl, dl
jne 0x14083d096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14083d0f6
xor eax, eax
add dl, dl
jne 0x14083d0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14083d1ad
add dl, dl
jne 0x14083d0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14083d0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14083d0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14083d0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14083d0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14083d07e
mov eax, 1
add dl, dl
jne 0x14083d106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14083d113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14083d0fb
sub eax, ebx
mov ebx, 1
jne 0x14083d14c
mov ecx, 1
add dl, dl
jne 0x14083d12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14083d13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14083d123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14083d07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14083d168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14083d175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14083d15d
cmp eax, 0x7d00
jae 0x14083d19b
cmp eax, 0x500
jb 0x14083d196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14083d07e
cmp eax, 0x7f
ja 0x14083d19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14083d07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14083d1d2
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 0x14083d07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20

Function at 0x141037780
Capabilities:
Encode data using xor

Disassembly:
jmp 0x14103778a
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x1410377b3
pop rbp
sub rbp, 0x33
sub rbp, 0x1037780
sub rsp, 0x20
jmp 0x1410377d2
mov rax, 0x1037780
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0x51ba6aeb
xor byte [rax], dl
inc rax
dec rcx
jne 0x1410377f1
invalid
jmp 0x141037808
movabs dword [0xebebebd762600262], eax
movabs dword [0xeaa3ebebeae32a6a], eax
add ah, byte [rbx - 0x1417d4d4]
jmp 0x14103780d
xlatb
jmp 0x1410377fb
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140005480]
mov dword [rax], 1
mov rax, qword [0x140005490]
mov dword [rax], 1
mov rax, qword [0x1400054a0]
mov dword [rax], 1
mov rax, qword [0x140005440]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x1400016d0
Capabilities:
Execute command

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
call sym.__main
lea rax, str.powershell_Remove_Item__Path_.__Recurse__Force
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.system
mov eax, 0
add rsp, 0x30
pop rbp
ret

Function at 0x140001a30
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop
Function at 0x140002702
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140009168]
test eax, eax
je 0x14000279a
lea rax, [0x140009140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140009170]
mov qword [rbp - 8], rax
jmp 0x14000277e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140002772
cmp qword [rbp - 0x10], 0
je 0x140002772
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140002738
lea rax, [0x140009140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14000279b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1400028a0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400028c8
mov eax, 0
jmp 0x140002916
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400028f1
mov eax, 0
jmp 0x140002916
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x140002911
mov eax, 0
jmp 0x140002916
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x14000291c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14000299a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140002991
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140002991
mov rax, qword [rbp - 8]
jmp 0x1400029af
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140002964
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x180002020
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x180002095
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x180002095
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x180002085
nop
cmp rbx, rcx
jae 0x180002095
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x180002070
cmp rbx, rcx
jae 0x180002095
cmp word [rbx], 0
je 0x180002095
mov rax, rbx
jmp 0x180002097
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1800028f0
Capabilities:
Print debug messages

Disassembly:
test rcx, rcx
je 0x180002a81
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
mov eax, 0x4150
call fcn.180006170
sub rsp, rax
mov rax, qword [0x18002c1e8]
xor rax, rsp
mov qword [rsp + 0x4130], rax
mov qword [rsp + 0x4148], rsi
mov rbx, rcx
mov qword [rsp + 0x4140], rdi
lea rsi, [rsp + 0x4168]
call fcn.1800020b0
mov qword [rsp + 0x28], rsi
mov r9, rbx
xor r8d, r8d
mov qword [rsp + 0x20], 0
xor edx, edx
mov rdi, rax
mov rcx, qword [rax]
or rcx, 2
call fcn.18000ee10
test eax, eax
mov ecx, 0xffffffff
cmovs eax, ecx
cmp eax, 0x1000
jge 0x1800029ae
mov r9, qword [rsp + 0x4160]
lea rdx, [rsp + 0x30]
mov rcx, qword [rdi]
mov r8d, 0x1000
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], 0
call fcn.18000ee18
jmp 0x180002a17
movaps xmm0, xmmword [0x18001d440]
movaps xmm1, xmmword [0x18001d450]
mov eax, dword [0x18001d4a8]
movaps xmmword [rsp + 0x30], xmm0
movaps xmm0, xmmword [0x18001d460]
movaps xmmword [rsp + 0x50], xmm0
movaps xmm0, xmmword [0x18001d480]
movaps xmmword [rsp + 0x40], xmm1
movaps xmm1, xmmword [0x18001d470]
movaps xmmword [rsp + 0x70], xmm0
movsd xmm0, qword [0x18001d4a0]
movaps xmmword [rsp + 0x60], xmm1
movaps xmm1, xmmword [0x18001d490]
movsd qword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm1
mov dword [rsp + 0x98], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rcx, [rsp + 0x30]
mov edx, 0x1080
mov qword [rsp + 0x28], rcx
lea r9, str.NEPLAUNCHER
lea rcx, [rsp + 0x2030]
mov dword [rsp + 0x20], eax
lea r8, str._s_tid:__8d_t_s_n
call fcn.180002120
lea rcx, [rsp + 0x2030]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rdi, qword [rsp + 0x4140]
mov rsi, qword [rsp + 0x4148]
mov rcx, qword [rsp + 0x4130]
xor rcx, rsp
call fcn.1800061d0
add rsp, 0x4150
pop rbx
ret

Function at 0x180003480
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rcx, qword [rcx + 8]
mov rbx, r8
mov r9, r8
mov qword [rsp + 0x20], 0
mov r8d, 0x1068
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1800034b6
cmp dword [rbx], 0
je 0x1800034b6
mov al, 1
add rsp, 0x30
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
add rsp, 0x30
pop rbx
ret
Function at 0x180003530
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x18002c1e8]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov ebx, r8d
cmp r8d, 0x1068
ja 0x18000358a
mov rcx, qword [rcx + 8]
lea r9, [rsp + 0x30]
xor eax, eax
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x18000358a
cmp ebx, dword [rsp + 0x30]
jne 0x18000358a
mov al, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1800061d0
add rsp, 0x40
pop rbx
ret
xor al, al
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1800061d0
add rsp, 0x40
pop rbx
ret

Function at 0x100403a20
Capabilities:
Encode data using xor

Disassembly:
xor al, 0x6c
xor al, 0x64
xor al, 0x67
xor al, 0x41
xor al, 0x3e
xor al, 0x7d
xor al, 0xa2
xor al, 0x9a
xor al, 0xa3
xor al, 0x88
xor al, 0x9d
xor al, 0xa4
xor al, 0x71
xor al, 0x74
xor al, 0x59
xor al, 0x87
xchg dword [rbp*4 - 0x57cb58cc], esi
xor al, 0x99
xor al, 0xa1
xor al, 0x86
xor al, 0xa3
xor al, 0xa3
movabs dword [0xa73490345934a834], eax
xor al, 0xad
xor al, 0xa7
xor al, 0xa8
xor al, 0x99
cdq
xor al, 0xa1
xor al, 0x67
xor al, 0x66
xor al, 0x90
xor al, 0xa7
xor al, 0x9c
xor al, 0x99
xor al, 0xa0
xor al, 0xa0
xor al, 0x67
xor al, 0x66
xor al, 0x62
Function at 0x4046a0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x40
mov dword [rsp + 0x2c], 0x10
lea r8, [rsp + 0x2c]
mov rbx, rdx
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x4046dc
movzx eax, word [rsp + 0x32]
cmp dword [rsp + 0x2c], 0x10
mov word [rbx + 0x10], ax
mov eax, dword [rsp + 0x34]
setne byte [rbx + 0x12]
mov dword [rbx], eax
add rsp, 0x40
pop rbx
ret

Function at 0x404860
Capabilities:
Encode data using xor

Disassembly:
mov rax, qword [rcx + 0x68]
test rax, rax
je 0x40489a
sub rax, rdx
add rax, qword [rcx + 0x78]
test rdx, rdx
mov rcx, rax
je 0x40489a
xor eax, eax
nop word [rax + rax]
mov r8, rax
and r8d, 3
movzx r8d, byte [rcx + r8 - 4]
xor byte [rcx + rax], r8b
add rax, 1
cmp rdx, rax
jne 0x404880
ret

Function at 0x404960
Capabilities:
Set socket configuration

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rbx, qword [sym.imp.WS2_32.dll_setsockopt]
mov r8d, 1
mov edx, 6
lea rdi, [rsp + 0x3c]
mov rsi, rcx
mov dword [rsp + 0x20], 4
mov rcx, qword [rcx]
mov r9, rdi
mov dword [rsp + 0x3c], 1
call rbx
mov rcx, qword [rsi]
mov dword [rsp + 0x20], 4
mov r9, rdi
mov r8d, 8
mov edx, 0xffff
call rbx
nop
add rsp, 0x40
pop rbx
pop rsi
pop rdi
ret
Function at 0x405310
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x678
test rcx, rcx
mov rdi, rcx
je 0x4054e0
mov edx, 0x360
mov ecx, 1
call sub.msvcrt.dll_calloc
test rax, rax
mov rsi, rax
je 0x405500
lea rbx, [rsp + 0x250]
mov rdx, rdi
mov r8d, 0x208
mov rcx, rbx
call sub.msvcrt.dll_strncpy
mov byte [rsp + 0x457], 0
mov rdx, rbx
mov ecx, dword [rdx]
add rdx, 4
lea eax, [rcx - 0x1010101]
not ecx
and eax, ecx
and eax, 0x80808080
je 0x405366
mov ecx, eax
shr ecx, 0x10
test eax, 0x8080
cmove eax, ecx
lea rcx, [rdx + 2]
mov edi, eax
cmove rdx, rcx
add dil, al
sbb rdx, 3
lea rax, [rdx - 1]
cmp rax, rbx
jbe 0x4053e0
cmp byte [rax - 1], 0x3a
je 0x4053e0
movzx edx, byte [rax]
cmp dl, 0x2f
je 0x4053c0
cmp dl, 0x5c
jne 0x4053e0
nop word [rax + rax]
sub rax, 1
mov byte [rax + 1], 0
cmp rax, rbx
je 0x4053e0
cmp byte [rax - 1], 0x3a
je 0x4053e0
movzx edx, byte [rax]
cmp dl, 0x5c
je 0x4053c0
cmp dl, 0x2f
je 0x4053c0
lea rdi, [rsp + 0x40]
xor edx, edx
mov r8d, 0x208
lea rbp, [rsp + 0x460]
mov rcx, rdi
call sub.msvcrt.dll_memset
xor edx, edx
mov r9d, 0xffffffff
mov r8, rbx
mov ecx, 0xfde9
mov dword [rsp + 0x28], 0x104
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor edx, edx
mov r9d, 0x104
mov r8, rdi
mov ecx, 0xfde9
mov dword [rsp + 0x28], 0x208
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov rdx, rbp
mov rcx, rbx
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x4054b0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4054c0
test al, 0x10
je 0x4054c0
lea rdx, [0x0041428a]
mov rcx, rdi
call sub.msvcrt.dll_wcscat
lea rdx, [rsi + 8]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov byte [rsi + 0x258], 0
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x678
pop rbx
pop rsi
pop rdi
pop rbp
ret
xor eax, eax
mov word [rsp + 0x40], ax
jmp 0x405464
mov rcx, rsi
xor esi, esi
call sub.msvcrt.dll_free
mov rax, rsi
add rsp, 0x678
pop rbx
pop rsi
pop rdi
pop rbp
ret
xor esi, esi
mov ecx, 0xa0
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
add rsp, 0x678
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
add rsp, 0x678
pop rbx
pop rsi
pop rdi
pop rbp
ret