joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140064330
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x40
mov rax, qword [0x1403220a0]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsp + 0x28], eax
mov rcx, qword [rsp + 0x58]
call qword [rsp + 0x60]
movzx eax, al
test eax, eax
je 0x140064370
mov al, 1
jmp 0x140064470
cmp dword [rsp + 0x50], 0
jl 0x140064392
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rsp + 0x28]
mov ecx, dword [rsp + 0x50]
sub ecx, eax
mov eax, ecx
cmp eax, 5
jle 0x140064467
mov edx, 1
mov ecx, 0x8000012f
call fcn.1400070b0
movzx eax, al
test eax, eax
je 0x140064465
mov rax, qword [0x14031a1e8]
movzx eax, byte [rax + 0xc6]
test eax, eax
je 0x140064465
cmp dword [0x140323194], 0
je 0x1400643d7
mov eax, dword [0x140323194]
mov dword [rsp + 0x30], eax
jmp 0x1400643df
mov dword [rsp + 0x30], 0x190
mov eax, dword [rsp + 0x30]
dec eax
mov dword [rsp + 0x2c], eax
movsxd rax, dword [rsp + 0x2c]
lea rcx, [0x140323240]
mov rdx, qword [rsp + 0x20]
cmp qword [rcx + rax*8], rdx
jne 0x140064415
movsxd rax, dword [rsp + 0x2c]
lea rcx, [0x140323ec0]
mov edx, dword [rsp + 0x28]
cmp dword [rcx + rax*4], edx
je 0x140064465
movsxd rax, dword [0x140323194]
lea rcx, [0x140323240]
mov rdx, qword [rsp + 0x20]
mov qword [rcx + rax*8], rdx
movsxd rax, dword [0x140323194]
lea rcx, [0x140323ec0]
mov edx, dword [rsp + 0x28]
mov dword [rcx + rax*4], edx
mov eax, dword [0x140323194]
inc eax
mov dword [0x140323194], eax
cmp dword [0x140323194], 0x190
jl 0x140064465
mov dword [0x140323194], 0
jmp 0x14006446b
xor al, al
jmp 0x140064470
jmp 0x140064359
add rsp, 0x40
pop rdi
ret
Function at 0x14006ab50
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x90
lea rdi, [rsp + 0x30]
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetElement
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xa0]
mov qword [rsp + 0x38], 0
mov byte [rsp + 0x54], 0
cmp qword [rsp + 0xa0], 0
je 0x14006abc9
mov r8, qword [rsp + 0xa0]
lea rdx, [rsp + 0x54]
lea rcx, [rsp + 0x38]
call fcn.1400672d0
mov dword [rsp + 0x64], eax
cmp dword [rsp + 0x64], 1
je 0x14006abc9
mov eax, dword [rsp + 0x64]
jmp 0x14006adb6
cmp qword [rsp + 0xa0], 0
je 0x14006abf0
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0xa0]
call fcn.1400aad00
mov qword [rsp + 0x88], rax
jmp 0x14006abff
lea rax, [0x14027d69c]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0xa8]
call fcn.140036340
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0xb0]
call fcn.140036340
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0xb8]
call fcn.140036340
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x68]
movzx eax, word [rax]
cmp eax, 0x41
je 0x14006ac63
mov rax, qword [rsp + 0x68]
movzx eax, word [rax]
cmp eax, 0x61
jne 0x14006acea
mov rax, qword [rsp + 0x68]
movzx eax, word [rax + 2]
test eax, eax
jne 0x14006acea
mov rax, qword [rsp + 0x70]
movzx eax, word [rax]
test eax, eax
jne 0x14006acea
mov rax, qword [rsp + 0x78]
movzx eax, word [rax]
test eax, eax
jne 0x14006acea
mov rax, qword [rsp + 0x80]
movzx eax, word [rax]
test eax, eax
jne 0x14006acea
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x14006ace5
mov rax, qword [0x14031a1e8]
movzx eax, byte [rax + 0xbf]
test eax, eax
jne 0x14006ace5
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x14006acdc
mov rcx, qword [rsp + 0x38]
call fcn.1401037a0
movzx eax, al
test eax, eax
je 0x14006ace5
mov qword [rsp + 0x38], 0
mov byte [rsp + 0x54], 1
movzx eax, byte [rsp + 0x54]
test eax, eax
je 0x14006ad4b
cmp qword [rsp + 0x38], 0
je 0x14006ad44
mov rax, qword [rsp + 0xc0]
cmp qword [rax + 0x1888], 0
je 0x14006ad26
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rax + 0x1888]
call fcn.140064af0
mov rax, qword [rsp + 0xc0]
mov eax, dword [rax + 0x1854]
inc eax
mov rcx, qword [rsp + 0xc0]
mov dword [rcx + 0x1854], eax
mov eax, 1
jmp 0x14006adb6
mov rax, qword [rsp + 0xc0]
mov byte [rax + 0x1851], 1
mov rax, qword [0x14031a1e8]
add rax, 0x80
mov rcx, qword [rsp + 0x80]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x78]
mov qword [rsp + 0x20], rcx
mov r9, qword [rsp + 0x70]
mov r8, qword [rsp + 0x68]
mov rdx, rax
mov rcx, qword [rsp + 0xc0]
call fcn.140103d00
test eax, eax
je 0x14006adb1
mov rdx, qword [rsp + 0xc0]
lea rcx, [0x140102cd0]
call qword [sym.imp.USER32.dll_EnumWindows]
mov eax, 1
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.140134a00
mov rax, rdi
add rsp, 0x90
pop rdi
ret
Function at 0x140079020
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov eax, dword [reloc.WSOCK32.dll_inet_addr]
add eax, 2
cdqe
imul rax, rax, 0xc8
mov rcx, rax
call fcn.1401a7dd0
mov qword [0x140321808], rax
cmp qword [0x140321808], 0
jne 0x14007905c
xor eax, eax
jmp 0x1400791a6
mov r8d, 0xc8
mov rdx, qword [0x14031a1e8]
mov rcx, qword [0x140321808]
call fcn.140188cc0
mov rax, qword [0x140321808]
mov qword [0x14031a1e8], rax
mov rax, qword [0x14031a1e8]
mov qword [rax + 0x80], 0
mov eax, dword [0x140321544]
inc eax
mov dword [0x140321544], eax
lea r9, [0x14000b690]
mov r8d, 0x4ef6d80
mov edx, recv
mov rcx, qword [0x1403213e8]
call qword [sym.imp.USER32.dll_SetTimer]
mov rax, qword [rsp + 0x40]
cmp qword [rax], 0
jne 0x1400790da
mov dword [rsp + 0x20], 1
jmp 0x140079167
mov rax, qword [0x14031a1e8]
mov byte [rax + 0x7f], 0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [0x14031a1e8]
mov dword [rcx + 0x74], eax
mov rax, qword [0x14031a1e8]
mov dword [rax + 0x70], WSAAsyncSelect
mov rax, qword [rsp + 0x40]
mov byte [rax + 0x78d], 1
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [rsp + 0x40]
mov dword [rcx + 0x7a8], eax
mov rdx, qword [str.Auto_execute]
lea rcx, [0x1403212d0]
call fcn.140019c00
xor r9d, r9d
xor r8d, r8d
mov edx, 1
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax]
call fcn.14007e450
mov dword [rsp + 0x20], eax
lea rcx, [0x1403212d0]
call fcn.140019280
mov rax, qword [rsp + 0x40]
mov byte [rax + 0x78d], 0
mov eax, dword [0x140321544]
dec eax
mov dword [0x140321544], eax
mov rax, qword [0x14031a1e8]
cmp qword [rax + 0x58], 0
je 0x140079196
mov rax, qword [0x14031a1e8]
add rax, 0x58
mov rcx, rax
call fcn.14001fd70
mov rcx, qword [0x14031a1e8]
call fcn.14003f840
mov eax, dword [rsp + 0x20]
add rsp, 0x30
pop rdi
ret
Function at 0x14007d9e0
Capabilities:
Monitor clipboard content

Disassembly:
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
movzx eax, byte [rsp + 0x38]
movzx ecx, byte [0x140325510]
cmp eax, ecx
jne 0x14007da00
jmp 0x14007da30
movzx eax, byte [rsp + 0x38]
test eax, eax
je 0x14007da18
mov rcx, qword [0x1403213e8]
call qword [sym.imp.USER32.dll_AddClipboardFormatListener]
jmp 0x14007da25
mov rcx, qword [0x1403213e8]
call qword [sym.imp.USER32.dll_RemoveClipboardFormatListener]
movzx eax, byte [rsp + 0x38]
mov byte [0x140325510], al
add rsp, 0x20
pop rdi
ret
Function at 0x140089df0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
mov eax, 0x10080
call fcn.1401354c0
sub rsp, rax
lea rdi, [rsp + 0x30]
mov ecx, 0x4014
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x10090]
mov rax, qword [0x14031eae8]
xor rax, rsp
mov qword [rsp + 0x10070], rax
mov rax, qword [rsp + 0x100a8]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x100a0]
lea r8, [0x140287e20]
mov edx, 0x8001
lea rcx, [rsp + 0x40]
call fcn.1400feb20
mov dword [rsp + 0x10054], eax
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rsp + 0x10058], eax
cmp dword [rsp + 0x10058], 0xffffffff
je 0x140089e99
mov eax, dword [rsp + 0x10058]
and eax, 0x10
test eax, eax
jne 0x140089ead
mov rax, qword [rsp + 0x10098]
lea rcx, [0x14028466c]
mov qword [rax], rcx
jmp 0x140089f16
mov eax, dword [rsp + 0x10054]
add eax, 0xfd
cdqe
add rax, 5
mov qword [rsp + 0x10060], rax
mov rcx, qword [rsp + 0x10060]
call fcn.14005e890
mov rcx, qword [rsp + 0x10098]
mov qword [rcx], rax
mov eax, dword [rsp + 0x10054]
inc eax
cdqe
mov r8, rax
lea rdx, [rsp + 0x40]
mov rax, qword [rsp + 0x10098]
mov rcx, qword [rax]
call fcn.14001e9a0
movsxd rax, dword [rsp + 0x10054]
mov rcx, qword [rsp + 0x10098]
mov qword [rcx + 8], rax
mov rcx, rsp
lea rdx, [0x14028afa0]
call fcn.140134a00
mov rcx, qword [rsp + 0x10070]
xor rcx, rsp
call fcn.140135520
add rsp, 0x10080
pop rdi
ret
Function at 0x14009a5a0
Capabilities:
Terminate process

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
cmp dword [rsp + 0x38], 0xfffffffe
je 0x14009a5f1
mov dword [0x140319840], 0
mov rax, qword [0x14031a1e8]
mov byte [rax + 0x7c], 0
mov rax, qword [rsp + 0x30]
add rax, 0x50
mov rcx, rax
call fcn.1400997c0
mov rax, qword [rsp + 0x30]
add rax, 0x20
mov rcx, rax
call fcn.1400996e0
xor r8d, r8d
mov edx, dword [rsp + 0x38]
lea rcx, [0x1403212d0]
call fcn.1400164d0
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.USER32.dll_PostQuitMessage]
mov ecx, dword [rsp + 0x40]
call fcn.14020af70
add rsp, 0x20
pop rdi
ret
Function at 0x1400a1480
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
lea rdi, [rsp + 0x20]
mov ecx, reloc.OLEAUT32.dll_SafeArrayLock
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x80]
cmp qword [rsp + 0x90], 0
jg 0x1400a14bf
xor eax, eax
jmp 0x1400a16a1
mov rax, qword [rsp + 0x80]
cmp qword [rax + 0x68], 0
je 0x1400a14f0
mov r8, qword [rsp + 0x90]
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
call fcn.1400a16c0
jmp 0x1400a16a1
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x80]
call fcn.14009c2c0
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jbe 0x1400a159e
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x28]
call fcn.140070c50
mov rax, qword [rax]
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x80]
call fcn.14009f380
mov r8, qword [rsp + 0x58]
mov rdx, rax
mov rcx, qword [rsp + 0x88]
call fcn.14009e270
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x88]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x28]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov edx, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x80]
call fcn.14009ee80
mov rax, qword [rsp + 0x80]
cmp qword [rax + 0x80], 0
je 0x1400a1691
mov rcx, qword [rsp + 0x80]
call fcn.14009cdc0
mov qword [rsp + 0x60], 0xfff
cmp qword [rsp + 0x28], 0xfff
jbe 0x1400a1653
mov rax, qword [rsp + 0x80]
mov r9, qword [rax + 0x80]
mov r8d, 0xfff
mov edx, 1
mov rcx, qword [rsp + 0x88]
call fcn.140208050
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x88]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x28]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x68], 0xfff
je 0x1400a164e
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
jmp 0x1400a16a1
jmp 0x1400a15ca
cmp qword [rsp + 0x28], 0
jbe 0x1400a1691
mov rax, qword [rsp + 0x80]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x28]
mov edx, 1
mov rcx, qword [rsp + 0x88]
call fcn.140208050
mov rcx, qword [rsp + 0x28]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.140134a00
mov rax, rdi
add rsp, 0x70
pop rdi
ret

Function at 0x1400a54e0
Capabilities:
Check if file exists
Get file attributes
Set current directory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400a5514
mov dword [rsp + 0x20], 1
jmp 0x1400a551c
mov dword [rsp + 0x20], 0
movzx eax, byte [rsp + 0x20]
add rsp, 0x30
pop rdi
ret
Function at 0x1400a5ca0
Capabilities:
Get common file path

Disassembly:
push rdi
mov eax, 0x10050
call fcn.1401354c0
sub rsp, rax
lea rdi, [rsp + 0x20]
mov ecx, 0x400c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x14031eae8]
xor rax, rsp
mov qword [rsp + 0x10040], rax
lea rdx, [rsp + 0x30]
mov ecx, 0x8000
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x1400a5cf2
lea rcx, [rsp + 0x30]
call fcn.1401f7c30
jmp 0x1400a5cf4
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, [0x140290dc0]
call fcn.140134a00
mov rax, rdi
mov rcx, qword [rsp + 0x10040]
xor rcx, rsp
call fcn.140135520
add rsp, 0x10050
pop rdi
ret

Function at 0x1400a6ab0
Capabilities:
Set current directory

Disassembly:
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x1d0
lea rdi, [rsp + 0x50]
mov ecx, 0x60
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1e0]
mov rax, qword [0x14031eae8]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov rax, qword [rsp + 0x1e0]
mov qword [rsp + 0x50], rax
lea rax, [0x14028f8a4]
mov qword [rsp + 0x58], rax
mov byte [rsp + 0x74], 0
lea rdx, [rsp + 0x64]
mov rcx, qword [rsp + 0x1e0]
call fcn.1400a5410
movzx eax, al
test eax, eax
jne 0x1400a6b28
jmp 0x1400a6c0c
movzx eax, byte [rsp + 0x1e8]
test eax, eax
je 0x1400a6b77
movzx eax, byte [rsp + 0x64]
test eax, eax
je 0x1400a6b77
mov r9, qword [rsp + 0x1e0]
lea r8, str._script__s
mov edx, 0x40
lea rcx, [rsp + 0x90]
call fcn.1400feb20
mov rax, qword [0x140322160]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x58], rax
mov byte [rsp + 0x40], 0
mov byte [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov byte [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x50]
lea rcx, [0x1403219f0]
call fcn.140076170
test eax, eax
jne 0x1400a6bf7
mov r9, qword [rsp + 0x1e0]
lea r8, str.Could_not_launch__s
mov edx, 0x40
lea rcx, [rsp + 0x130]
call fcn.1400feb20
mov qword [rsp + 0x20], 0
xorps xmm3, xmm3
xor r8d, r8d
mov edx, reloc.WSOCK32.dll_recv
lea rcx, [rsp + 0x130]
call fcn.140103a20
lea rcx, [0x140321838]
call fcn.140013c50
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov rcx, rsp
lea rdx, reloc.WSOCK32.dll_closesocket
call fcn.140134a00
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140135520
add rsp, 0x1d0
pop rdi
ret
Function at 0x1400a9890
Capabilities:
Log keystrokes via polling

Disassembly:
mov dword [rsp + 0x10], edx
mov byte [rsp + 8], cl
push rdi
sub rsp, 0x30
movzx eax, byte [rsp + 0x40]
test eax, eax
jne 0x1400a98ad
xor al, al
jmp 0x1400a9a00
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
je 0x1400a98de
cmp dword [rsp + 0x20], 2
je 0x1400a98c8
jmp 0x1400a99d8
movzx eax, byte [rsp + 0x40]
mov ecx, eax
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 1
jmp 0x1400a9a00
movzx ecx, byte [rsp + 0x40]
call fcn.140028280
movzx eax, al
test eax, eax
je 0x1400a9959
cmp qword [0x140321520], 0
je 0x1400a992a
movzx eax, byte [rsp + 0x40]
lea rcx, [0x140321420]
movzx eax, byte [rcx + rax]
and eax, 0x80
test eax, eax
je 0x1400a9919
mov byte [rsp + 0x24], 1
jmp 0x1400a991e
mov byte [rsp + 0x24], 0
movzx eax, byte [rsp + 0x24]
jmp 0x1400a9a00
movzx eax, byte [rsp + 0x40]
mov ecx, eax
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
and eax, 0x8000
test eax, eax
je 0x1400a9948
mov byte [rsp + 0x25], 1
jmp 0x1400a994d
mov byte [rsp + 0x25], 0
movzx eax, byte [rsp + 0x25]
jmp 0x1400a9a00
cmp qword [0x140321418], 0
je 0x1400a99ae
xor r8d, r8d
xor edx, edx
movzx ecx, byte [rsp + 0x40]
call fcn.140037fc0
movzx eax, al
test eax, eax
je 0x1400a9980
mov cl, 1
call fcn.140037440
movzx eax, byte [rsp + 0x40]
lea rcx, [0x140321420]
movzx eax, byte [rcx + rax]
and eax, 0x80
test eax, eax
je 0x1400a99a0
mov byte [rsp + 0x26], 1
jmp 0x1400a99a5
mov byte [rsp + 0x26], 0
movzx eax, byte [rsp + 0x26]
jmp 0x1400a9a00
movzx eax, byte [rsp + 0x40]
mov ecx, eax
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
and eax, 0x8000
test eax, eax
je 0x1400a99cc
mov byte [rsp + 0x27], 1
jmp 0x1400a99d1
mov byte [rsp + 0x27], 0
movzx eax, byte [rsp + 0x27]
jmp 0x1400a9a00
movzx eax, byte [rsp + 0x40]
mov ecx, eax
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 0x8000
test eax, eax
je 0x1400a99f6
mov byte [rsp + 0x28], 1
jmp 0x1400a99fb
mov byte [rsp + 0x28], 0
movzx eax, byte [rsp + 0x28]
add rsp, 0x30
pop rdi
ret
Function at 0x1400a9e90
Capabilities:
Set current directory

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
lea rdi, [rsp + 0x20]
mov ecx, reloc.WSOCK32.dll_ioctlsocket
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x60]
mov rax, qword [0x14031eae8]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov eax, 2
imul rax, rax, 0
mov rcx, qword [rsp + 0x60]
movzx eax, word [rcx + rax]
test eax, eax
je 0x1400a9f94
mov eax, 2
imul rax, rax, 1
mov rcx, qword [rsp + 0x60]
movzx eax, word [rcx + rax]
cmp eax, 0x3a
jne 0x1400a9f94
mov eax, 2
imul rax, rax, 2
mov rcx, qword [rsp + 0x60]
movzx eax, word [rcx + rax]
test eax, eax
jne 0x1400a9f94
mov eax, 2
imul rax, rax, 0
mov ecx, 2
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x60]
movzx eax, word [rdx + rax]
mov word [rsp + rcx + 0x28], ax
mov eax, 2
imul rax, rax, 1
mov ecx, 2
imul rcx, rcx, 1
mov rdx, qword [rsp + 0x60]
movzx eax, word [rdx + rax]
mov word [rsp + rcx + 0x28], ax
mov eax, 2
imul rax, rax, 2
mov ecx, 0x5c
mov word [rsp + rax + 0x28], cx
mov eax, 2
imul rax, rax, 3
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 8
jae 0x1400a9f79
jmp 0x1400a9f7e
call fcn.1401357e0
xor eax, eax
mov rcx, qword [rsp + 0x40]
mov word [rsp + rcx + 0x28], ax
lea rax, [rsp + 0x28]
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x1400a9faa
mov eax, 0xa0070000
jmp 0x1400a9fc4
movzx eax, byte [0x14032217c]
test eax, eax
je 0x1400a9fbf
mov rcx, qword [rsp + 0x60]
call fcn.1400ac220
mov eax, 1
mov rdi, rax
mov rcx, rsp
lea rdx, [0x140290d00]
call fcn.140134a00
mov rax, rdi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140135520
add rsp, 0x50
pop rdi
ret

Function at 0x1400ac220
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
push rdi
mov eax, 0x10050
call fcn.1401354c0
sub rsp, rax
lea rdi, [rsp + 0x20]
mov ecx, 0x400c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x10060]
mov rax, qword [0x14031eae8]
xor rax, rsp
mov qword [rsp + 0x10040], rax
lea rdx, [rsp + 0x30]
mov ecx, 0x8000
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x1400ac27f
lea rax, [rsp + 0x30]
mov qword [rsp + 0x10060], rax
cmp qword [rsp + 0x10060], 0
je 0x1400ac2a5
mov r8, 0xffffffffffffffff
mov rdx, qword [rsp + 0x10060]
lea rcx, [0x140321838]
call fcn.140099f50
mov rcx, rsp
lea rdx, [0x140290d60]
call fcn.140134a00
mov rcx, qword [rsp + 0x10040]
xor rcx, rsp
call fcn.140135520
add rsp, 0x10050
pop rdi
ret
Function at 0x1400af080
Capabilities:
Create process on windows

Disassembly:
mov byte [rsp + 0x20], r9b
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x100
lea rdi, [rsp + 0x60]
mov ecx, 0x28
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x110]
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0x68
rep stosb byte [rdi], al
mov dword [rsp + 0x70], WSAGetLastError
mov dword [rsp + 0xac], 1
movzx eax, word [rsp + 0x130]
mov word [rsp + 0xb0], ax
cmp qword [rsp + 0x120], 0
je 0x1400af115
mov rax, qword [rsp + 0x120]
movzx eax, word [rax]
test eax, eax
je 0x1400af115
mov rax, qword [rsp + 0x120]
mov qword [rsp + 0xe8], rax
jmp 0x1400af121
mov qword [rsp + 0xe8], 0
mov rax, qword [rsp + 0x110]
add rax, 0x7c8
mov rcx, rax
call fcn.140013c50
mov qword [rsp + 0xf0], rax
mov rcx, qword [rsp + 0x110]
add rcx, 0x7e0
call fcn.140013c50
mov qword [rsp + 0xf8], rax
mov rcx, qword [rsp + 0x110]
add rcx, 0x7b0
call fcn.140013c50
mov rcx, qword [rsp + 0x138]
mov qword [rsp + 0x50], rcx
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x48], rcx
mov rcx, qword [rsp + 0xe8]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov rcx, qword [rsp + 0x118]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], 0
mov r9d, 1
mov rcx, qword [rsp + 0xf0]
mov r8, rcx
mov rcx, qword [rsp + 0xf8]
mov rdx, rcx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
test eax, eax
je 0x1400af227
mov rax, qword [rsp + 0x140]
mov byte [rax], 1
mov rax, qword [rsp + 0x138]
cmp qword [rax + 8], 0
je 0x1400af20f
mov rax, qword [rsp + 0x138]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x148]
mov rcx, qword [rsp + 0x138]
mov rcx, qword [rcx]
mov qword [rax], rcx
jmp 0x1400af237
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x150]
mov dword [rcx], eax
mov eax, 1
mov edi, eax
mov rcx, rsp
lea rdx, [0x140292bf0]
call fcn.140134a00
mov eax, edi
add rsp, 0x100
pop rdi
ret
Function at 0x1400b2a00
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
je 0x1400b2a35
mov eax, dword [rsp + 0x20]
and eax, 0x10
test eax, eax
je 0x1400b2a35
mov dword [rsp + 0x24], 1
jmp 0x1400b2a3d
mov dword [rsp + 0x24], 0
movzx eax, byte [rsp + 0x24]
add rsp, 0x30
pop rdi
ret

Function at 0x1400b2a50
Capabilities:
Delete directory
Delete file

Disassembly:
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x2c0
lea rdi, [rsp + 0x20]
mov ecx, 0xa8
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x2d0]
mov rax, qword [0x14031eae8]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
mov rax, qword [rsp + 0x2d0]
movzx eax, word [rax]
test eax, eax
jne 0x1400b2aa2
xor al, al
jmp 0x1400b2bbb
movzx eax, byte [rsp + 0x2d8]
test eax, eax
jne 0x1400b2ad0
mov rcx, qword [rsp + 0x2d0]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x1400b2ac9
xor al, al
jmp 0x1400b2bbb
mov al, 1
jmp 0x1400b2bbb
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x2d0]
call fcn.1400b28c0
lea rcx, [rsp + 0x80]
call fcn.1400b2a00
movzx eax, al
test eax, eax
jne 0x1400b2b00
xor al, al
jmp 0x1400b2bbb
lea rcx, [rsp + 0x80]
call fcn.1401ea000
lea rax, [rax + rax + 2]
mov qword [rsp + 0x2a0], rax
cmp qword [rsp + 0x2a0], 0x20c
jae 0x1400b2b2a
jmp 0x1400b2b2f
call fcn.1401357e0
xor eax, eax
mov rcx, qword [rsp + 0x2a0]
mov word [rsp + rcx + 0x80], ax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov dword [rsp + 0x4c], 0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x30], 3
mov eax, 0x614
mov word [rsp + 0x48], ax
lea rcx, [rsp + 0x28]
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
jne 0x1400b2ba8
mov dword [rsp + 0x2a8], 1
jmp 0x1400b2bb3
mov dword [rsp + 0x2a8], 0
movzx eax, byte [rsp + 0x2a8]
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.140134a00
mov rax, rdi
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.140135520
add rsp, 0x2c0
pop rdi
ret