joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140019c20
Capabilities:
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov byte [rsp + 0x40], 0
mov rdx, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0xa0]
call fcn.140014020
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x140019da1
mov rcx, qword [rsp + 0x58]
call fcn.140013f90
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
cmp dword [rax + 0x28], 0
je 0x140019d85
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x28]
mov rcx, qword [rsp + 0xa8]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
lea rax, [0x140019c00]
lea rcx, [0x140019bc0]
sub rax, rcx
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8d, eax
xor edx, edx
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140019d85
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x44]
mov r9d, eax
lea r8, [0x140019bc0]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0xa0]
call fcn.140014c00
movzx eax, al
test eax, eax
je 0x140019d69
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x68]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
je 0x140019d69
mov byte [rsp + 0x41], 1
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x80], rax
xor edx, edx
mov rcx, qword [rsp + 0x80]
call fcn.14001b290
movzx eax, byte [rsp + 0x40]
add rsp, 0x98
ret

Function at 0x14001bf4c
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x1400a3c48]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x14004c3d0]
mov rbp, rcx
call fcn.140034a38
xor edi, edi
test rax, rax
je 0x140028efa
mov ebx, edi
call fcn.14002a900
mov r14d, dword [rax]
call fcn.14002a900
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.140034984
mov rsi, rax
test rax, rax
je 0x140028e8b
call fcn.14002a900
mov dword [rax], r14d
jmp 0x140028eb5
call fcn.14002a900
cmp dword [rax], 0x22
jne 0x140028ef2
call fcn.14002a900
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.140034984
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x140028ef2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x140028eb9
cmp rax, 3
je 0x140028ed4
mov rcx, rsi
call fcn.140028d70
test al, al
je 0x140028ee5
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x140028ee5
mov dil, 1
mov rcx, rbx
call fcn.140022818
mov al, dil
jmp 0x140028efc
mov rcx, rbx
call fcn.140022818
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14001b8a0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x14002db44
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14002d940
Function at 0x140039a54
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 0x140039a84
xor eax, eax
jmp 0x140039b47
mov rbp, rbx
cmp word [rax], si
je 0x140039aa9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140039a90
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140039a8c
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.140031924
movsxd r14, eax
test eax, eax
jne 0x140039ae7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140039a7d
mov rcx, r14
call fcn.1400318c4
mov rdi, rax
test rax, rax
jne 0x140039b00
xor ecx, ecx
call fcn.140031888
jmp 0x140039adc
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.140031924
test eax, eax
jne 0x140039b31
mov rcx, rdi
call fcn.140031888
jmp 0x140039b3b
xor ecx, ecx
call fcn.140031888
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

Function at 0x140039b64
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 0x140039beb
mov rsi, rbx
cmp word [rax], bp
je 0x140039baa
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140039b94
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140039b90
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400318c4
mov rdi, rax
test rax, rax
je 0x140039bd8
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14001c320
mov rbp, rdi
xor ecx, ecx
call fcn.140031888
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 0x14003cb4c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.140031254
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x14003cbed
cmp ebx, dword [rsp + 0x30]
je 0x14003cbe6
test esi, esi
je 0x14003cbe6
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14003cbc1
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14003cbce
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14003cbab
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14003cbd2
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14003cbef
mov eax, 1
jmp 0x14003cbef
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14003e638
Capabilities:
Get file size

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

Function at 0x14003f1a0
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1400a3c48]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x14003f1ea
call fcn.14002a8e0
mov dword [rax], 0xf
call fcn.14002a900
mov dword [rax], 0xd
call fcn.140021da4
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14001b8a0
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x14003f1f5
lea eax, [rbx + 1]
jmp 0x14003f1d7
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x14003f1d5
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x14003f1d7
Function at 0x1400414ec
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140022504
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140041576
cmp byte [rbp - 0x21], r15b
je 0x140041571
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400415ac
call fcn.140034dc4
test eax, eax
jne 0x140041598
cmp byte [rbp - 0x21], r15b
je 0x140041590
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400415ac
cmp byte [rbp - 0x21], r15b
je 0x1400415a9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1400286bc
test eax, eax
jne 0x14004164c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140022504
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400415eb
cmp byte [rbp - 0x21], r15b
je 0x140041620
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140041620
call fcn.140034dc4
test eax, eax
jne 0x14004160c
cmp byte [rbp - 0x21], r15b
je 0x140041605
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140041620
cmp byte [rbp - 0x21], r15b
je 0x14004161d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1400286bc
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14004164c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14004164f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14004165d
mov rcx, rdi
call fcn.140031888
cmp byte [rbp + 0x3f], r15b
je 0x14004166c
mov rcx, qword [rbp + 0x27]
call fcn.140031888
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140042364
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1400a6df0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1400423bb
cmp word [rdx], r13w
jne 0x1400423bb
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400423c0
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400424e5
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140042506
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400423f9
mov rdx, r9
mov word [rbx], cx
jmp 0x140042420
cmp r9, r8
jae 0x140042430
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1400423da
jmp 0x1400424e5
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400424da
cmp dword [rsp + 0x80], esi
je 0x1400424da
lea r8, [0x1400a6df0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400424b2
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140042482
mov word [rbx], r13w
jmp 0x1400424e2
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14004248f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400424e2
cmp word [rsp + 0x70], r13w
jne 0x1400424bf
cmp rbx, r14
je 0x14004247c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140042254
cmp word [rsp + 0x70], r13w
je 0x1400424e5
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1400a6df0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400424df
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400424e5
Function at 0x140032b38
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x14003290c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003290c
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003290c
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14003290c
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003290c
cmp dword [rcx + 0x84], 0xe
jbe 0x14003290c
cmp dword [rcx + 0xf8], esi
je 0x14003290c
mov ecx, r14d
call fcn.140032a54
mov ecx, 2
call fcn.14002e7d8
nop
cmp byte [0x140070378], 0
jne 0x1400329d6
mov r15d, 1
mov eax, r15d
xchg dword [0x140070368], eax
test ebx, ebx
jne 0x14003297f
mov rdi, qword [0x14006d0e0]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x140070370]
cmp rcx, rax
je 0x140032976
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.14001e660]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x1400705b0]
jmp 0x14003298b
cmp ebx, r15d
jne 0x140032991
lea rcx, [0x1400705c8]
call fcn.1400334a4
nop
test ebx, ebx
jne 0x1400329a8
lea rdx, [0x140049718]
lea rcx, [0x1400496f8]
call fcn.140033818
lea rdx, [0x140049728]
lea rcx, [0x140049720]
call fcn.140033818
movzx eax, byte [0x140070378]
test esi, esi
cmove eax, r15d
mov byte [0x140070378], al
jmp 0x1400329d6
mov ecx, 2
call fcn.14002e838
test esi, esi
jne 0x1400329ed
mov ecx, r14d
call fcn.140032a08
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x14003289c
Function at 0x140001e00
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov dword [rsp + 0x34], r8d
mov qword [rsp + 0x28], rdx
mov rax, rcx
mov rcx, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x58], rcx
mov dword [rsp + 0x64], r8d
call fcn.140001f50
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x48]
call fcn.1400017d0
mov edx, dword [rsp + 0x34]
mov rcx, rax
call qword [sym.imp.kernel32.dll_TerminateProcess]
mov rcx, qword [rsp + 0x38]
mov edx, eax
call fcn.1400015f0
mov rax, qword [rsp + 0x40]
add rsp, 0x68
ret

Function at 0x140002680
Capabilities:
Enumerate gui resources

Disassembly:
sub rsp, 0x68
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x30], rdx
mov rax, rcx
mov rcx, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], rcx
call fcn.140001ee0
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x48]
call fcn.140001730
mov rcx, qword [rsp + 0x30]
mov rdx, rax
call qword [sym.imp.user32.dll_EnumWindows]
mov rcx, qword [rsp + 0x38]
mov edx, eax
call fcn.1400015f0
mov rax, qword [rsp + 0x40]
add rsp, 0x68
ret
Function at 0x14000af80
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3e0], rcx
mov qword [rbp + 0x3c8], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3d0], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor edi, edi
xor ebx, ebx
xor r12d, r12d
cmp r8, 0x201
jae 0x14000b010
jmp 0x14000afff
jae 0x14000b0d0
cmp r8, 0x201
jae 0x14000b010
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x14000b068
sub r8, r12
sub rbx, r12
cmp rbx, r8
jae 0x14000b03f
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.140030aa0
mov rax, qword [rbp + 0x3c8]
mov qword [rbp + 0x3e8], rax
mov rdi, qword [rbp + 0x3d0]
mov eax, 0xffffffff
cmp rdi, rax
mov r12d, 0xffffffff
cmovb r12, rdi
mov qword [rbp + 0x3d8], r12
mov rbx, rdi
mov rsi, r12
mov r13, qword [rbp + 0x3e8]
mov r15, r12
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov ecx, r15d
mov rdx, r13
call qword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov r14d, eax
test eax, eax
jne 0x14000b091
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x14000b138
mov r8d, r14d
cmp r15, r8
jne 0x14000aff0
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14000b15b
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x14000afff
jmp 0x14000b010
cmp rsi, r8
jb 0x14000b175
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.14000de00
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test rdi, rdi
je 0x14000b121
add rdi, rdi
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rdi
call fcn.1400027d0
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3e0]
mov qword [rsi], rax
mov byte [rsi + 0x18], 2
test rdi, rdi
jne 0x14000b109
jmp 0x14000b121
lea rcx, str.internal_error:_entered_unreachable_code_rustc_5680fa18feaa87f3ff04063800aec256c3d4b4belibrary_alloc_src_vecmod.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.140031630
jmp 0x14000b18a
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.140031b80
ud2
Function at 0x14000e800
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
movzx ebp, byte [rdx + 0x38]
xor ebx, ebx
cmp bpl, 1
setne dl
mov eax, 0
sbb eax, eax
mov rsi, rcx
or al, dl
movzx ecx, al
cmp cl, 0xff
je 0x14000e830
test ecx, ecx
jne 0x14000e880
movzx ebx, byte [rdi + 0x3a]
cmp al, 0xff
je 0x14000e83c
test ecx, ecx
jne 0x14000e880
mov rcx, rdi
call fcn.14000e6e0
movzx eax, al
test bpl, bpl
jne 0x14000e887
lea rdx, [rdi + 0x10]
xor ecx, ecx
cmp byte [rdi + 0x10], 6
cmove rdx, rcx
je case.0x14000e873.2
movzx r8d, byte [rdx]
mov ecx, 6
lea r9, [0x14000e9f8]
movsxd r8, dword [r9 + r8*4]
add r8, r9
jmp r8
mov rcx, qword [rdx + 0x10]
add rcx, 4
jmp case.0x14000e873.2
xor eax, eax
test bpl, bpl
je 0x14000e84c
xor ecx, ecx
add rax, rcx
movzx r10d, bl
lea rcx, [rax + r10]
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x14000e9d9
mov r11, qword [rdi]
lea r8, [r11 + rcx]
cmp rdx, rcx
jne 0x14000e8ba
movzx r9d, byte [rdi + 0x10]
xor r10d, r10d
jmp 0x14000e939
movzx r9d, byte [rdi + 0x10]
add rax, r10
sub rax, rdx
inc rax
lea rdi, [rdx + r11]
dec rdi
xor r10d, r10d
cmp r9b, 3
jae 0x14000e900
nop dword [rax + rax]
cmp byte [rdi], 0x5c
je 0x14000e91b
inc rax
dec rdi
cmp rax, 1
jne 0x14000e8e0
jmp 0x14000e939
movzx ebx, byte [rdi]
cmp ebx, 0x2f
je 0x14000e91b
cmp ebx, 0x5c
je 0x14000e91b
inc rax
dec rdi
cmp rax, 1
jne 0x14000e900
jmp 0x14000e939
neg rax
add rcx, rax
inc rcx
cmp rdx, rcx
jb 0x14000e9e7
add r11, rcx
mov r10d, 1
mov r8, r11
sub rdx, rcx
je 0x14000e963
mov al, 9
cmp rdx, 2
je 0x14000e967
cmp rdx, 1
jne 0x14000e977
cmp byte [r8], 0x2e
jne 0x14000e977
xor eax, eax
cmp r9b, 3
setae al
lea eax, [rax + rax*2]
add eax, 7
jmp 0x14000e977
mov al, 0xa
jmp 0x14000e977
cmp byte [r8], 0x2e
jne 0x14000e977
cmp byte [r8 + 1], 0x2e
sete al
xor al, 9
add r10, rdx
mov qword [rsi], r10
mov byte [rsi + 8], al
mov qword [rsi + 0x10], r8
mov qword [rsi + 0x18], rdx
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rcx, r8
add rcx, 8
jmp case.0x14000e873.2
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rcx, r8
add rcx, 2
jmp case.0x14000e873.2
mov ecx, 2
jmp case.0x14000e873.2
lea r8, str.library_std_srcpath.rs
call fcn.140031b00
ud2
lea r8, str.library_std_srcpath.rs
call fcn.140031b00
ud2