joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140035b38
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x140035b6a
call fcn.14002aa48
mov dword [rax], 0x16
call fcn.14002a8d4
jmp 0x140035c89
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140035c89
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x140035c89
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x140035b99
lock or dword [rcx + 0x14], 0x10
jmp 0x140035c89
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x140035bad
call fcn.140036cfc
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.14003240c
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.140037d34
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x140035c77
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x140035c42
mov rcx, rsi
call fcn.14003240c
cmp eax, edi
je 0x140035c2d
mov rcx, rsi
call fcn.14003240c
cmp eax, 0xfffffffe
je 0x140035c2d
mov rcx, rsi
call fcn.14003240c
movsxd rbx, eax
lea r14, [0x14008c480]
mov rcx, rsi
sar rbx, 6
call fcn.14003240c
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x140035c34
lea rdx, [0x14005a440]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x140035c42
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x140035c66
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x140035c66
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x140035c66
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x140035c8c
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x140035ca4
Capabilities:
Read file on windows

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, 0x20
mov rbx, rcx
test rcx, rcx
jne 0x1400359c6
call fcn.14002aa48
mov dword [rax], 0x16
call fcn.14002a8d4
jmp 0x140035b16
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140035b16
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x140035b16
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1400359f5
lock or dword [rcx + 0x14], 0x10
jmp 0x140035b16
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x140035a09
call fcn.140036cfc
mov ebp, dword [rbx + 0x10]
cmp ebp, 1
jne 0x140035a19
mov rax, qword [rbx]
mov r14b, byte [rax]
jmp 0x140035a1c
xor r14b, r14b
mov rsi, qword [rbx + 8]
mov rcx, rbx
mov edi, dword [rbx + 0x20]
mov qword [rbx], rsi
call fcn.14003240c
mov r8d, edi
mov rdx, rsi
mov ecx, eax
call fcn.140037d34
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x140035b04
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x140035aaf
mov rcx, rbx
call fcn.14003240c
cmp eax, 0xffffffff
je 0x140035a9a
mov rcx, rbx
call fcn.14003240c
cmp eax, 0xfffffffe
je 0x140035a9a
mov rcx, rbx
call fcn.14003240c
movsxd rdi, eax
lea rsi, [0x14008c480]
mov rcx, rbx
sar rdi, 6
call fcn.14003240c
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [rsi + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x140035aa1
lea rdx, [0x14005a440]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x140035aaf
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x140035ad3
mov eax, dword [rbx + 0x14]
shr eax, 6
test al, 1
je 0x140035ad3
mov eax, dword [rbx + 0x14]
shr eax, 8
test al, 1
jne 0x140035ad3
mov dword [rbx + 0x20], 0x1000
mov rdx, qword [rbx]
cmp ebp, 1
jne 0x140035af1
movzx ecx, byte [rdx]
dec dword [rbx + 0x10]
shl cx, 8
movzx eax, r14b
or cx, ax
inc rdx
jmp 0x140035afc
movzx ecx, word [rdx]
add dword [rbx + 0x10], 0xfffffffe
add rdx, 2
mov qword [rbx], rdx
movzx eax, cx
jmp 0x140035b1b
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rbx + 0x14], eax
and dword [rbx + 0x10], 0
mov eax, 0xffff
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
jmp 0x140035990
Function at 0x140036a7c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140020320
sub rsp, rax
mov rax, qword [0x14005a078]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14003240c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140036acb
mov rax, rbp
jmp 0x140036bd3
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x8c480]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14003850c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x8c480]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140036bcf
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140036bcf
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14003850c
test rax, rax
js 0x140036bcf
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140036bcf
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140036bc1
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140036bc1
cmp byte [rcx], 0xd
jne 0x140036ba7
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140036bb6
cmp byte [rcx + 1], 0xa
jne 0x140036bb6
inc rcx
jmp 0x140036bb6
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x5a490]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140036b89
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140036bd3
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14001fa30
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140037888
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x14008c480]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x1400378e6
cmp word [rdx], r12w
jne 0x1400378e6
or byte [rax + r8*8 + 0x38], cl
jmp 0x1400378ec
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x140037a47
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x140037a22
lea r9, [rcx + 2]
cmp ax, r13w
je 0x140037925
mov rcx, r9
jmp 0x140037948
cmp r9, rdx
jae 0x14003795f
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x140037909
jmp 0x140037a47
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140037a1c
cmp dword [rsp + 0x80], edi
je 0x140037a1c
mov rdx, r14
lea r11, [0x14008c480]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x1400379f5
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x1400379c8
mov word [rbx], r12w
jmp 0x140037a43
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x1400379d1
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x140037a43
cmp word [rsp + 0x70], r12w
jne 0x140037a02
cmp rbx, rsi
je 0x1400379c2
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.140038514
cmp word [rsp + 0x70], r12w
je 0x140037a47
mov word [rbx], r13w
jmp 0x140037a43
lea r11, [0x14008c480]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x140037a3f
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x140037a47
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400020b0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
mov eax, dword [rcx + 0x48]
lea rbx, [rcx + 0x28]
mov rsi, qword [rcx]
lea r11, [rcx + 0x28]
add rbx, rax
mov rdi, rcx
movabs rbp, 0x9e3779b185ebca87
movabs r15, 0x27d4eb2f165667c5
movabs r14, 0xc2b2ae3d27d4eb4f
movabs r12, 0x7a1435883d4d519d
cmp rsi, 0x20
jb 0x1400021ab
mov rcx, qword [rcx + 8]
mov r8, qword [rdi + 0x18]
mov r9, qword [rdi + 0x20]
mov rax, r8
mov rdx, qword [rdi + 0x10]
mov r10, r9
rol r10, 0x12
rol rax, 0xc
add r10, rax
mov rax, rdx
rol rax, 7
add r10, rax
mov rax, rcx
rol rax, 1
add r10, rax
movabs rax, 0x85ebca77c2b2ae63
imul rcx, r14
imul rdx, r14
imul r8, r14
imul r9, r14
rol rcx, 0x1f
imul rcx, rbp
rol rdx, 0x1f
xor r10, rcx
rol r8, 0x1f
imul r10, rbp
imul rdx, rbp
imul r8, rbp
sub r10, r12
rol r9, 0x1f
xor r10, rdx
imul r10, rbp
imul r9, rbp
sub r10, r12
xor r10, r8
imul r10, rbp
sub r10, r12
xor r10, r9
imul r10, rbp
add rax, r10
add rax, rsi
jmp 0x1400021b3
lea rax, [rsi + r15]
add rax, qword [rcx + 0x18]
lea rdx, [rdi + 0x30]
cmp rdx, rbx
ja 0x1400021ea
nop dword [rax]
mov rcx, qword [r11]
add rdx, 8
imul rcx, r14
add r11, 8
rol rcx, 0x1f
imul rcx, rbp
xor rax, rcx
rol rax, 0x1b
imul rax, rbp
sub rax, r12
cmp rdx, rbx
jbe 0x1400021c0
lea rdx, [r11 + 4]
movabs r8, 0x165667b19e3779f9
cmp rdx, rbx
ja 0x140002215
mov ecx, dword [r11]
mov r11, rdx
imul rcx, rbp
xor rax, rcx
rol rax, 0x17
imul rax, r14
add rax, r8
cmp r11, rbx
jae 0x14000223b
nop word [rax + rax]
movzx ecx, byte [r11]
inc r11
imul rcx, r15
xor rax, rcx
rol rax, 0xb
imul rax, rbp
cmp r11, rbx
jb 0x140002220
mov rbx, qword [rsp + 0x20]
mov rcx, rax
mov rbp, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
shr rcx, 0x21
xor rcx, rax
imul rcx, r14
mov rdx, rcx
shr rdx, 0x1d
xor rdx, rcx
imul rdx, r8
mov rax, rdx
shr rax, 0x20
xor rax, rdx
pop r15
pop r14
pop r12
ret

Function at 0x14000a350
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x14002d008]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, r8
lea rax, [rsp + 0x30]
mov rbx, rcx
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor ecx, ecx
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x14000a395
xor al, al
jmp 0x14000a3e2
cmp word [rbx], 0
je 0x14000a3ad
nop dword [rax + rax]
add rbx, 2
dec rdi
cmp word [rbx], 0
jne 0x14000a3a0
cmp word [rsp + 0x30], 0
je 0x14000a3db
lea rcx, [rsp + 0x30]
sub rcx, rbx
nop dword [rax]
cmp rdi, 1
jb 0x14000a403
movzx eax, word [rcx + rbx]
dec rdi
mov word [rbx], ax
add rbx, 2
cmp word [rcx + rbx], 0
jne 0x14000a3c0
xor eax, eax
mov word [rbx], ax
mov al, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14000b560
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop rdi
ret
call fcn.14000f634
int3
Function at 0x14000abe0
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x2030
call fcn.14001f7e0
sub rsp, rax
mov rax, qword [0x14002d008]
xor rax, rsp
mov qword [rsp + 0x2020], rax
mov r11d, dword [0x14002ed90]
lea rsi, [0x140033dc0]
mov rdi, rcx
test r11d, r11d
jne 0x14000ac59
mov r8d, 0x1000
lea rdx, str._HOME_
lea rcx, [rsp + 0x20]
call fcn.14000a410
test al, al
je 0x14000ad3f
lea rcx, [rsp + 0x20]
call fcn.140013d30
movsxd r11, dword [0x14002ed90]
mov qword [rsi + r11*8], rax
inc r11d
mov dword [0x14002ed90], r11d
xor r9d, r9d
test r11d, r11d
jle 0x14000ac94
mov r10, rsi
mov r8, qword [r10]
mov rax, rdi
sub r8, rdi
nop dword [rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x14000ac84
add rax, 2
test ecx, ecx
jne 0x14000ac70
test edx, edx
je 0x14000acb7
inc r9d
add r10, 8
cmp r9d, r11d
jl 0x14000ac64
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rdi + rax*2], 0
jne 0x14000aca0
cmp rax, 2
jne 0x14000acbb
cmp word [rdi + 2], 0x3a
jne 0x14000acbb
mov al, 1
jmp 0x14000ad1e
xor edx, edx
mov qword [rsp + 0x2048], rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne bl
test eax, eax
jne 0x14000ace8
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14000ace8
mov bl, 1
jmp 0x14000acec
test bl, bl
je 0x14000ad13
cmp dword [0x14002ed90], 0x400
jge 0x14000ad13
mov rcx, rdi
call fcn.140013d30
movsxd rdx, dword [0x14002ed90]
mov qword [rsi + rdx*8], rax
inc edx
mov dword [0x14002ed90], edx
movzx eax, bl
mov rbx, qword [rsp + 0x2048]
mov rcx, qword [rsp + 0x2020]
xor rcx, rsp
call fcn.14000b560
mov rsi, qword [rsp + 0x2050]
add rsp, 0x2030
pop rdi
ret
lea rcx, str._HOME_
call fcn.14000aa30
int3
Function at 0x14000ae60
Capabilities:
Check if file exists
Delete file
Get file attributes
Terminate process

Disassembly:
sub rsp, 0x68
mov rcx, qword [0x14002ed98]
test rcx, rcx
je 0x14000ae9b
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000ae8e
mov rcx, qword [0x14002ed98]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [0x14002ed98]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x14003ddf0], 0
je 0x14000af8e
mov qword [rsp + 0x70], rbx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x78], rbp
lea rbp, [0x1400298d0]
mov qword [rsp + 0x80], rsi
lea rsi, [0x1400315c0]
mov qword [rsp + 0x88], rdi
xor edi, edi
mov qword [rsp + 0x60], r14
mov r14d, 0x414
mov word [rsp + 0x40], r14w
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebx, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000af6f
test al, 0x10
je 0x14000af6f
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov word [rsp + 0x40], r14w
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
inc ebx
cmp ebx, 0x14
jl 0x14000af15
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
mov r14, qword [rsp + 0x60]
add rsp, 0x68
ret
Function at 0x14000be34
Capabilities:
Parse pe header

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

Function at 0x14000f628
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 0x14000f493
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000f493
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000f493
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000f493
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000f493
cmp dword [rcx + 0x84], 0xe
jbe 0x14000f493
cmp dword [rcx + 0xf8], 0
je 0x14000f493
mov ecx, ebx
call fcn.14000f544
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.14000f320
nop
cmp dword [rbp + 0x20], 0
je 0x14000f4e1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000f4ec
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000f424
Function at 0x140018c14
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 0x140018c9b
mov rsi, rbx
cmp word [rax], bp
je 0x140018c5a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140018c44
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140018c40
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140016444
mov rdi, rax
test rax, rax
je 0x140018c88
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14000d400
mov rbp, rdi
xor ecx, ecx
call fcn.140015468
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 0x14001b264
Capabilities:
Get file size

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

Function at 0x14001f6f0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001f718
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14001f718
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140004950
Capabilities:
Set current directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x20
mov rbx, qword [0x140111488]
movzx r12d, r9b
movzx edi, r8b
movzx esi, dl
mov ebp, ecx
test r8b, r8b
je 0x140004997
inc dword [0x140116948]
add rbx, 0x150
mov qword [0x140111488], rbx
lea rdx, [0x140115240]
mov rcx, rbx
mov r8d, 0x150
call fcn.1400c9d20
mov dword [rbx + 0x3c], ebp
test dil, dil
je 0x1400049c2
lea rcx, [0x1401181e0]
xor edx, edx
call fcn.14001f2a0
xor edi, edi
cmp dword [0x140116994], edi
mov qword [0x140118d98], rdi
je 0x1400049f6
mov rax, qword [0x140112e30]
lea rcx, [0x1400e14ec]
test rax, rax
je 0x1400049f0
mov rax, qword [rax]
test rax, rax
cmovne rcx, rax
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test sil, sil
jne 0x140004a82
cmp byte [rbx + 0x12e], dil
jne 0x140004a2a
cmp r12b, 0x65
sete dil
mov byte [rbx + 0x12e], dil
test dil, dil
je 0x140004a2a
mov qword [rbx], 0xffffffffffffffff
mov dword [rbx + 0x34], 0xffffffff
cmp dword [0x140118da4], 0
je 0x140004a3c
cmp dword [0x140118da0], 0
jne 0x140004a45
cmp byte [rbx + 0x12e], 0
je 0x140004a82
cmp byte [rbx + 0x12e], 0
mov byte [rbx + 0x12c], 0
jne 0x140004a82
cmp dword [0x140118da4], 0
jge 0x140004a6a
mov dword [rbx + 0x120], 0xffffffff
jmp 0x140004a82
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbx + 0x11c], eax
mov eax, dword [0x140118da4]
mov dword [rbx + 0x120], eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret

Function at 0x1400060a0
Capabilities:
Write clipboard data

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x20
cmp qword [0x140118e48], 0
mov rbx, rdx
mov rsi, rcx
je 0x1400060c7
xor eax, eax
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret
mov qword [rsp + 0x30], rdi
test rcx, rcx
je 0x140006137
mov eax, 0xffffffff
cmp rdx, rax
jne 0x1400060f0
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
lea rbx, [rcx - 1]
mov ebx, ebx
test rbx, rbx
je 0x140006137
lea rdx, [rbx + 1]
lea rcx, [0x140118e30]
call fcn.140006160
test rax, rax
jne 0x14000611a
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret
mov rdi, qword [0x140118e48]
mov r8, rbx
mov rdx, rsi
mov rcx, rdi
call fcn.1400cc234
xor r11d, r11d
mov word [rdi + rbx*2], r11w
lea rcx, [0x140118e30]
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
jmp fcn.140006220
Function at 0x1400064a0
Capabilities:
Read clipboard data

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x230
mov edi, ecx
xor ecx, ecx
mov rbx, rdx
test rdx, rdx
je 0x1400064bb
mov dword [rdx], ecx
lea eax, [rdi - 0xc000]
cmp eax, 0x3fff
ja 0x14000659a
lea rdx, [rsp + 0x20]
mov r8d, 0x104
mov ecx, edi
call qword [sym.imp.USER32.dll_GetClipboardFormatNameW]
lea rdx, str.Link_Source
lea rcx, [rsp + 0x20]
mov r8d, reloc.WSOCK32.dll_inet_ntoa
call fcn.1400c9294
test eax, eax
je 0x140006587
lea rdx, str.ObjectLink
lea rcx, [rsp + 0x20]
call fcn.1400c903c
test eax, eax
je 0x140006587
lea rdx, str.OwnerLink
lea rcx, [rsp + 0x20]
call fcn.1400c903c
test eax, eax
je 0x140006587
lea rdx, str.Native
lea rcx, [rsp + 0x20]
call fcn.1400c903c
test eax, eax
je 0x140006587
lea rdx, str.Embed_Source
lea rcx, [rsp + 0x20]
call fcn.1400c903c
test eax, eax
je 0x140006587
lea rdx, str.MSDEVColumnSelect
lea rcx, [rsp + 0x20]
call fcn.1400c903c
test eax, eax
je 0x14000657c
lea rdx, str.MSDEVLineSelect
lea rcx, [rsp + 0x20]
call fcn.1400c903c
test eax, eax
jne 0x14000659f
test rbx, rbx
je 0x140006587
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 0x1400065c0
Capabilities:
Check for time delay via gettickcount
Open clipboard

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [rcx + 0x2c], 0
mov rbx, rcx
je 0x1400065da
mov eax, 1
add rsp, 0x20
pop rbx
ret
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rdi
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [0x1401167a8]
mov edi, eax
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x140006654
xor esi, esi
nop
mov ecx, dword [0x140111450]
cmp ecx, 0xffffffff
je 0x140006624
test ecx, ecx
je 0x140006670
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [0x140111450]
add edx, edi
sub edx, eax
cmp edx, 5
jle 0x140006670
mov edx, 1
mov ecx, 0x8000012f
mov dword [0x140111454], esi
call fcn.140001a70
mov rcx, qword [0x1401167a8]
mov dword [0x140111454], 1
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x140006600
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov dword [rbx + 0x2c], 1
mov eax, 1
add rsp, 0x20
pop rbx
ret
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
xor eax, eax
add rsp, 0x20
pop rbx
ret