joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003fbf0
Capabilities:
Get file version info
Query service configuration

Disassembly:
push rbx
push rbp
push rdi
push r13
sub rsp, 0xa8
mov rax, qword [0x140073010]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x40], rdx
mov rbx, rcx
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov r8d, 1
mov rdx, rbx
mov rcx, rax
mov qword [rsp + 0x48], rax
mov rbp, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
lea r9, [rsp + 0x50]
xor r8d, r8d
mov rcx, rax
xor edx, edx
mov r13, rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
jne 0x14003fc68
cmp eax, 0x7a
jne 0x14003fc91
mov ebx, dword [rsp + 0x50]
xor ecx, ecx
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
lea r9, [rsp + 0x50]
mov r8d, ebx
mov rdx, rax
mov rcx, r13
mov rdi, rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
jne 0x14003fcad
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 0xffffffff
jmp 0x14003fdea
xor ebx, ebx
mov qword [rsp + 0x98], r14
mov qword [rsp + 0x90], r15
mov ebp, ebx
mov r14d, ebx
mov r15d, ebx
test rdi, rdi
je 0x14003fd8c
mov qword [rsp + 0xe0], rsi
mov rsi, qword [rdi + 0x10]
test rsi, rsi
je 0x14003fd84
lea rdx, [rsp + 0x68]
mov qword [rsp + 0xa0], r12
mov rcx, rsi
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov r12d, eax
test eax, eax
je 0x14003fd61
mov ecx, r12d
lea edx, [rbx + 1]
call fcn.1400462ec
mov rdi, rax
test rax, rax
je 0x14003fd57
mov r9, rax
mov r8d, r12d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.VERSION.dll_GetFileVersionInfoA]
lea r9, [rsp + 0x6c]
mov rcx, rdi
lea r8, [rsp + 0x58]
lea rdx, [0x14006d030]
call qword [sym.imp.VERSION.dll_VerQueryValueA]
mov rcx, qword [rsp + 0x58]
movzx r14d, word [rcx + 0x12]
movzx r15d, word [rcx + 0x10]
movzx ebp, word [rcx + 0x16]
movzx ebx, word [rcx + 0x14]
mov rcx, rdi
call fcn.1400462d0
jmp 0x14003fd7c
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x58], xmm0
mov ebx, dword [rsp + 0x64]
mov ebp, dword [rsp + 0x60]
mov r15d, dword [rsp + 0x5c]
mov r14d, dword [rsp + 0x58]
mov r12, qword [rsp + 0xa0]
mov rsi, qword [rsp + 0xe0]
mov dword [rsp + 0x30], ebx
lea r8, str._d._d._d._d
mov dword [rsp + 0x28], ebp
lea rcx, [rsp + 0x70]
mov r9d, r14d
mov dword [rsp + 0x20], r15d
mov edx, SafeArrayCopy
call fcn.14003c9d0
lea rcx, [rsp + 0x70]
call fcn.1400463c8
mov rcx, qword [rsp + 0x40]
mov qword [rcx], rax
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov r15, qword [rsp + 0x90]
xor eax, eax
mov r14, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140043fc0
add rsp, 0xa8
pop r13
pop rdi
pop rbp
pop rbx
ret
Function at 0x14003fe10
Capabilities:
Query service configuration
Write file on windows

Disassembly:
push rbx
push rbp
push rdi
push r12
push r14
push r15
sub rsp, 0x48
mov rax, qword [0x140073010]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov r15, rdx
mov r12, r8
lea rdx, str.stop
mov rdi, rcx
call fcn.14003f3e0
mov ecx, 0x7530
call qword [sym.imp.KERNEL32.dll_Sleep]
mov edx, 4
mov rcx, rdi
call fcn.14003f1b0
test eax, eax
jne 0x14003fe6d
lea edx, [rax + 3]
mov rcx, rdi
call fcn.14003f1b0
test eax, eax
je 0x14003fe74
mov ecx, 0x2710
jmp 0x14003fe47
xor edx, edx
mov qword [rsp + 0x40], rsi
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov r8d, 1
mov rdx, rdi
mov rcx, rax
mov r14, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
lea r9, [rsp + 0x28]
xor r8d, r8d
mov rcx, rax
xor edx, edx
mov rbp, rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
jne 0x14003fec5
cmp eax, 0x7a
jne 0x14003feee
mov ebx, dword [rsp + 0x28]
xor ecx, ecx
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
lea r9, [rsp + 0x28]
mov r8d, ebx
mov rdx, rax
mov rcx, rbp
mov rsi, rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
jne 0x14003ff0a
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 0xffffffff
jmp 0x14003ff91
xor ebx, ebx
test rsi, rsi
je 0x14003ff22
mov rcx, qword [rsi + 0x10]
test rcx, rcx
je 0x14003ff22
call fcn.1400463c8
mov rbx, rax
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rbx, rbx
je 0x14003ff80
mov rcx, rbx
call fcn.140046a28
lea r8, [0x14006dcb4]
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.14004cd44
test eax, eax
jne 0x14003ff80
mov r9, qword [rsp + 0x20]
test r9, r9
je 0x14003ff80
mov r8, r12
lea edx, [rax + 1]
mov rcx, r15
call fcn.14004d85c
test rax, rax
je 0x14003ff80
mov rcx, qword [rsp + 0x20]
call fcn.14004c82c
lea rdx, str.start
mov rcx, rdi
call fcn.14003f3e0
xor eax, eax
mov rsi, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140043fc0
add rsp, 0x48
pop r15
pop r14
pop r12
pop rdi
pop rbp
pop rbx
ret
Function at 0x140040940
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0xf0
mov rax, qword [0x140073010]
xor rax, rsp
mov qword [rsp + 0xe0], rax
mov rbx, rcx
lea rdx, [rsp + 0x50]
xor r14d, r14d
lea rcx, str.6VVYqCAosWjD4erSfQbAxjGxy9hE2jtIn8kZ2vkaM
mov qword [rsp + 0x50], r14
call fcn.140036bf0
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp byte [rbx + rax], r14b
jne 0x140040990
mov rdi, qword [rsp + 0x50]
mov rcx, 0xffffffffffffffff
cmp byte [rdi + rcx + 1], r14b
lea rcx, [rcx + 1]
jne 0x1400409a5
lea rbp, [rcx + 4]
mov edx, 1
add rbp, rax
mov rcx, rbp
call fcn.1400462ec
mov rsi, rax
test rax, rax
je 0x140040a0c
mov r8, rdi
mov rdx, rbp
mov rcx, rax
call fcn.140046b08
lea r8, [0x14006da50]
mov rdx, rbp
mov rcx, rsi
call fcn.140046b08
mov r8, rbx
mov rdx, rbp
mov rcx, rsi
call fcn.140046b08
lea r8, [0x14006da3c]
mov rdx, rbp
mov rcx, rsi
call fcn.140046b08
xorps xmm0, xmm0
xor eax, eax
mov qword [rsp + 0xd0], rax
xor r9d, r9d
mov qword [rsp + 0x68], rax
xor r8d, r8d
lea rax, [rsp + 0x58]
mov rdx, rsi
mov qword [rsp + 0x48], rax
xor ecx, ecx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
movups xmmword [rsp + 0x70], xmm0
mov dword [rsp + 0x28], r14d
movups xmmword [rsp + 0xa0], xmm0
mov dword [rsp + 0x20], r14d
movups xmmword [rsp + 0xb0], xmm0
mov dword [rsp + 0x70], 0x68
movups xmmword [rsp + 0x80], xmm0
mov dword [rsp + 0xac], 1
movups xmmword [rsp + 0x90], xmm0
mov word [rsp + 0xb0], r14w
movups xmmword [rsp + 0xc0], xmm0
movups xmmword [rsp + 0x58], xmm0
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x140040ad3
mov rcx, qword [rsp + 0x58]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140040ad8
mov eax, 0xffffffff
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.140043fc0
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140042070
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
lea rbp, [rcx + 2]
mov qword [rsp + 0x20], 4
mov qword [rsp + 0x18], rbp
nop word [rax + rax]
movzx r9d, byte [rbp - 1]
movzx edx, byte [rbp - 2]
movzx ebx, r9b
movzx r8d, byte [rbp]
movzx eax, dl
shr al, 7
add bl, bl
movzx ecx, byte [rbp + 1]
movzx eax, al
imul eax, eax, 0x1b
mov byte [rsp + 0x78], r9b
mov byte [rsp + 0x88], dl
add dl, dl
mov byte [rsp + 0x80], r8b
xor dl, al
mov dword [rsp + 8], eax
movzx eax, dl
movzx esi, dl
shr al, 7
add sil, sil
movzx eax, al
imul eax, eax, 0x1b
xor sil, al
mov dword [rsp + 4], eax
movzx eax, r9b
movzx r9d, r8b
shr al, 7
add r9b, r9b
movzx eax, al
imul r15d, eax, 0x1b
xor bl, r15b
movzx eax, bl
movzx r10d, bl
shr al, 7
add r10b, r10b
movzx eax, al
imul eax, eax, 0x1b
xor r10b, al
mov dword [rsp + 0x10], eax
movzx eax, r8b
shr al, 7
movzx eax, al
imul r12d, eax, 0x1b
xor r9b, r12b
mov dword [rsp + 0xc], r12d
movzx eax, r9b
movzx r8d, r9b
shr al, 7
xor r9b, dl
movzx eax, al
add r8b, r8b
imul ebp, eax, 0x1b
movzx eax, cl
shr al, 7
add cl, cl
movzx eax, al
imul eax, eax, 0x1b
xor r8b, bpl
xor cl, al
mov dword [rsp + 0x14], eax
movzx eax, cl
movzx r13d, cl
shr al, 7
add r13b, r13b
movzx eax, al
imul r14d, eax, 0x1b
xor r13b, r14b
xor r9b, r13b
movzx eax, r13b
shr al, 7
xor r9b, r8b
movzx eax, al
xor r9b, r10b
imul edi, eax, 0x1b
xor r9b, sil
movzx eax, r8b
mov byte [rsp], r9b
shr al, 7
movzx eax, al
imul r11d, eax, 0x1b
movzx eax, r10b
shr al, 7
xor r13b, cl
movzx eax, al
xor r13b, r8b
imul r9d, eax, 0x1b
xor r13b, r10b
mov r12, qword [rsp + 0x18]
xor r13b, bl
movzx ebx, byte [rsp + 0x80]
xor r13b, sil
mov rcx, qword [rsp + 0x18]
movzx eax, sil
shr al, 7
movzx esi, byte [rsp + 0x78]
mov r8d, dword [rsp + 0x10]
movzx r10d, byte [rcx + 1]
movzx eax, al
imul edx, eax, 0x1b
movzx eax, byte [rsp]
xor al, byte [rsp + 0x78]
xor al, byte [rsp + 0x88]
add al, al
xor al, dl
xor al, r9b
xor al, r11b
xor al, dil
xor al, bpl
xor al, r15b
xor al, byte [rsp + 4]
xor al, byte [rsp + 8]
xor al, byte [r12 + 1]
xor al, byte [rsp + 0x80]
xor al, byte [rsp + 0x78]
mov byte [r12 - 2], al
movzx eax, r13b
mov r12d, dword [rsp + 0xc]
xor al, bl
xor al, sil
xor r13b, r10b
add al, al
xor al, dl
xor al, r9b
xor al, r11b
xor al, dil
xor al, r14b
xor al, r12b
xor al, r8b
xor al, r15b
movzx r15d, byte [rsp + 0x88]
xor r13b, r15b
xor al, r10b
add r13b, r13b
xor al, bl
xor r13b, dl
xor al, r15b
mov byte [rcx - 1], al
xor r13b, r9b
mov eax, dword [rsp + 0x14]
xor r13b, r11b
movzx ecx, byte [rsp]
xor r13b, dil
xor cl, r10b
xor r13b, r14b
xor cl, bl
xor r13b, al
add cl, cl
xor r13b, r8b
xor cl, dl
xor cl, r9b
xor cl, r11b
xor cl, dil
xor cl, al
xor cl, bpl
mov rbp, qword [rsp + 0x18]
xor cl, r12b
xor cl, byte [rsp + 4]
xor cl, r10b
xor cl, sil
xor cl, r15b
xor r13b, byte [rsp + 8]
mov byte [rbp], cl
xor r13b, bl
xor r13b, sil
xor r13b, r15b
mov byte [rbp + 1], r13b
add rbp, 4
sub qword [rsp + 0x20], 1
mov qword [rsp + 0x18], rbp
jne 0x1400420a0
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140042610
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov rsi, rdx
mov rbx, rcx
sub rsi, rcx
mov r9d, 4
nop dword [rax]
mov r8d, 4
nop word [rax + rax]
movzx eax, byte [rsi + rcx + 0xe0]
xor byte [rcx], al
inc rcx
sub r8, 1
jne 0x140042650
sub r9, 1
jne 0x140042640
mov bpl, SafeArrayDestroy
lea rdi, [rsi + 0xd0]
lea r14, [0x14006d6e0]
nop word [rax + rax]
movzx eax, byte [rbx + 9]
mov r8, rbx
movzx ecx, byte [rbx + 0xd]
mov r9d, 4
mov byte [rbx + 0xd], al
movzx eax, byte [rbx + 5]
mov byte [rbx + 9], al
movzx eax, byte [rbx + 1]
mov byte [rbx + 5], al
movzx eax, byte [rbx + 0xa]
mov byte [rbx + 1], cl
movzx ecx, byte [rbx + 2]
mov byte [rbx + 2], al
movzx eax, byte [rbx + 0xe]
mov byte [rbx + 0xa], cl
movzx ecx, byte [rbx + 6]
mov byte [rbx + 6], al
movzx eax, byte [rbx + 7]
mov byte [rbx + 0xe], cl
movzx ecx, byte [rbx + 3]
mov byte [rbx + 3], al
movzx eax, byte [rbx + 0xb]
mov byte [rbx + 7], al
movzx eax, byte [rbx + 0xf]
mov byte [rbx + 0xb], al
mov byte [rbx + 0xf], cl
nop dword [rax]
mov rcx, r8
mov edx, 4
nop dword [rax + rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 4]
movzx eax, byte [rax + r14]
mov byte [rcx - 4], al
sub rdx, 1
jne 0x1400426f0
inc r8
sub r9, 1
jne 0x1400426e0
mov rax, rbx
lea r8d, [rdx + 4]
nop word [rax + rax]
mov edx, 4
nop word [rax + rax]
movzx ecx, byte [rdi + rax]
xor byte [rax], cl
inc rax
sub rdx, 1
jne 0x140042730
sub r8, 1
jne 0x140042720
mov rcx, rbx
call fcn.140042070
sub rdi, 0x10
add bpl, 0xff
jne 0x140042680
movzx eax, byte [rbx + 9]
mov r8, rbx
movzx ecx, byte [rbx + 0xd]
mov r9d, 4
mov byte [rbx + 0xd], al
movzx eax, byte [rbx + 5]
mov byte [rbx + 9], al
movzx eax, byte [rbx + 1]
mov byte [rbx + 5], al
movzx eax, byte [rbx + 0xa]
mov byte [rbx + 1], cl
movzx ecx, byte [rbx + 2]
mov byte [rbx + 2], al
movzx eax, byte [rbx + 0xe]
mov byte [rbx + 0xa], cl
movzx ecx, byte [rbx + 6]
mov byte [rbx + 6], al
movzx eax, byte [rbx + 7]
mov byte [rbx + 0xe], cl
movzx ecx, byte [rbx + 3]
mov byte [rbx + 3], al
movzx eax, byte [rbx + 0xb]
mov byte [rbx + 7], al
movzx eax, byte [rbx + 0xf]
mov byte [rbx + 0xb], al
mov byte [rbx + 0xf], cl
nop dword [rax + rax]
mov rcx, r8
mov edx, 4
nop dword [rax + rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 4]
movzx eax, byte [rax + r14]
mov byte [rcx - 4], al
sub rdx, 1
jne 0x1400427d0
inc r8
sub r9, 1
jne 0x1400427c0
lea edx, [r9 + 4]
mov ecx, 4
nop word [rax + rax]
movzx eax, byte [rbx + rsi]
xor byte [rbx], al
inc rbx
sub rcx, 1
jne 0x140042800
sub rdx, 1
jne 0x1400427f2
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x1400518e8
Capabilities:
Parse pe header

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

Function at 0x140053dd4
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140053df4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400526d4
or eax, 0xffffffff
jmp 0x140053df6
xor eax, eax
add rsp, 0x28
ret
Function at 0x14001e5a0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x10090
call fcn.1400482f0
sub rsp, rax
mov rax, qword [0x140060040]
xor rax, rsp
mov qword [rsp + 0x10080], rax
xor ebp, ebp
lea rsi, str.NUITKA_PYTHONPATH
mov word [rsp + 0x80], bp
lea rbx, [rsp + 0x30]
mov word [rsp + 0x30], bp
mov edi, 0x28
mov al, 0x4e
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], bpl
lea rcx, [rsp + 0x24]
call fcn.14003be6c
cmp rax, 1
jne 0x14001e6af
mov rcx, rdi
mov rax, rbx
cmp word [rbx], bp
je 0x14001e630
add rax, 2
dec rcx
cmp word [rax], bp
jne 0x14001e624
cmp rcx, 1
jb 0x14001e6af
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], bp
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x14001e5f1
mov r8d, 0x10000
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x14001e6ab
lea rcx, [rsp + 0x80]
call fcn.14003d3ac
mov rcx, qword [rsp + 0x10080]
xor rcx, rsp
call fcn.14002d430
lea r11, [rsp + 0x10090]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
xor eax, eax
jmp 0x14001e682
call fcn.140030b60
int3

Function at 0x14001e6c0
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x140060040]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor ebp, ebp
lea rsi, str.NUITKA_PYTHONPATH
mov word [rsp + 0x30], bp
lea rbx, [rsp + 0x30]
mov edi, 0x28
mov al, 0x4e
nop dword [rax]
nop word [rax + rax]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], bpl
lea rcx, [rsp + 0x24]
call fcn.14003be6c
cmp rax, 1
jne 0x14001e7a5
mov rcx, rdi
mov rax, rbx
cmp word [rbx], bp
je 0x14001e74c
nop
add rax, 2
dec rcx
cmp word [rax], bp
jne 0x14001e740
cmp rcx, 1
jb 0x14001e7a5
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], bp
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x14001e710
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14002d430
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.140030b60
int3
Function at 0x14002de08
Capabilities:
Parse pe header

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

Function at 0x140030cbc
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 0x140030d2b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140030d2b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140030d2b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140030d2b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140030d2b
cmp dword [rcx + 0x84], 0xe
jbe 0x140030d2b
cmp dword [rcx + 0xf8], 0
je 0x140030d2b
mov ecx, ebx
call fcn.140030ddc
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.140030bb8
nop
cmp dword [rbp + 0x20], 0
je 0x140030d79
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140030d84
int3
xor r8d, r8d
xor edx, edx
jmp 0x140030cbc

Function at 0x140030ec0
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 0x140030d2b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140030d2b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140030d2b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140030d2b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140030d2b
cmp dword [rcx + 0x84], 0xe
jbe 0x140030d2b
cmp dword [rcx + 0xf8], 0
je 0x140030d2b
mov ecx, ebx
call fcn.140030ddc
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.140030bb8
nop
cmp dword [rbp + 0x20], 0
je 0x140030d79
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140030d84
int3
xor r8d, r8d
xor edx, edx
jmp 0x140030cbc
Function at 0x140042028
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 0x1400420af
mov rsi, rbx
cmp word [rax], bp
je 0x14004206e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140042058
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140042054
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14003f9c8
mov rdi, rax
test rax, rax
je 0x14004209c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140048950
mov rbp, rdi
xor ecx, ecx
call fcn.14003da18
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 0x1400447b4
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400447ca
mov al, 1
jmp 0x14004482a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400447db
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140044828
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400427cc
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140044828
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140044828
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140044828
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14004482a
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x140048200
Capabilities:
Parse pe header

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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov edx, 0x47
lea rcx, [entry0]
mov al, byte [rcx + rdx]
xor al, 0x93
add al, 0xd1
xor al, 0x30
mov byte [rcx + rdx], al
inc rdx
cmp rdx, 0x2d9
jl 0x140001068
xor al, 0x24
pop rcx
invalid
Function at 0x1400075b0
Capabilities:
Read clipboard data

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x230
xor ecx, ecx
mov rbx, r8
mov edi, edx
test r8, r8
je 0x1400075cc
mov dword [r8], ecx
lea eax, [rdx - 0xc000]
cmp eax, 0x3fff
ja 0x1400076ab
mov r8d, 0x104
lea rdx, [rsp + 0x20]
mov ecx, edi
call qword [sym.imp.USER32.dll_GetClipboardFormatNameW]
mov r8d, reloc.WSOCK32.dll_inet_ntoa
lea rdx, [0x140102e20]
lea rcx, [rsp + 0x20]
call fcn.1400c53a8
test eax, eax
je 0x140007698
lea rdx, [0x140102e38]
lea rcx, [rsp + 0x20]
call fcn.1400c51bc
test eax, eax
je 0x140007698
lea rdx, [0x140102e50]
lea rcx, [rsp + 0x20]
call fcn.1400c51bc
test eax, eax
je 0x140007698
lea rdx, [0x140102e68]
lea rcx, [rsp + 0x20]
call fcn.1400c51bc
test eax, eax
je 0x140007698
lea rdx, [0x140102e78]
lea rcx, [rsp + 0x20]
call fcn.1400c51bc
test eax, eax
je 0x140007698
lea rdx, [0x140102e98]
lea rcx, [rsp + 0x20]
call fcn.1400c51bc
test eax, eax
je 0x14000768d
lea rdx, [0x140102ec0]
lea rcx, [rsp + 0x20]
call fcn.1400c51bc
test eax, eax
jne 0x1400076b0
test rbx, rbx
je 0x140007698
mov dword [rbx], 1
xor eax, eax
mov rbx, qword [rsp + 0x240]
add rsp, 0x230
pop rdi
ret
mov word [rsp + 0x20], cx
mov ecx, edi
call qword [sym.imp.USER32.dll_GetClipboardData]
mov rbx, qword [rsp + 0x240]
add rsp, 0x230
pop rdi
ret

Function at 0x1400076d0
Capabilities:
Check for time delay via gettickcount
Open clipboard

Disassembly:
sub rsp, 0x28
cmp dword [0x14012cedc], 0
je 0x1400076e7
mov eax, 1
add rsp, 0x28
ret
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [0x14012ab78]
mov ebx, eax
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x140007764
xor edi, edi
nop dword [rax]
mov ecx, dword [0x1401241ec]
cmp ecx, 0xffffffff
je 0x140007734
test ecx, ecx
je 0x140007782
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [0x1401241ec]
add edx, ebx
sub edx, eax
cmp edx, 5
jle 0x140007782
mov edx, 1
mov dword [0x1401241d0], edi
mov ecx, 0x8000012f
call fcn.1400016f0
mov rcx, qword [0x14012ab78]
mov dword [0x1401241d0], 1
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x140007710
mov rbx, qword [rsp + 0x30]
mov eax, 1
mov rdi, qword [rsp + 0x20]
mov dword [0x14012cedc], 1
add rsp, 0x28
ret
mov rbx, qword [rsp + 0x30]
xor eax, eax
mov rdi, qword [rsp + 0x20]
add rsp, 0x28
ret