joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140076340
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rdi, r8
mov r14, rdx
mov r15, rcx
test r8, r8
je 0x1400763a9
xor r8d, r8d
mov rcx, rdi
lea edx, [r8 + 1]
call fcn.140001740
cmp byte [rdi + 0x23], 0
mov rsi, rax
jne 0x14007637c
mov rbx, qword [rdi + 0x10]
jmp 0x14007637f
mov rbx, rdi
cmp byte [rbx + 0x23], 1
jne 0x14007639d
test byte [rbx + 0x21], 8
je 0x140076393
mov rcx, rbx
call fcn.1400015e0
mov rbp, qword [rbx + 0x10]
add rbx, 0x10
jmp 0x1400763f3
lea rbx, [0x14012d5d0]
mov rbp, qword [rbx]
jmp 0x1400763f3
lea r8, [rsp + 0x88]
xor ecx, ecx
lea rdx, [rsp + 0x80]
call fcn.1400d2cd0
test eax, eax
jne 0x1400763e3
mov rax, qword [0x140124200]
xor ebx, ebx
mov dword [rax + 0x40], ebx
xor eax, eax
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x88]
xor ebx, ebx
xor r9d, r9d
mov qword [rsp + 0x30], rbx
xor r8d, r8d
mov dword [rsp + 0x28], ebx
mov edx, 0x40000000
mov rcx, r14
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x140076474
mov dword [rsp + 0x80], ebx
mov ecx, ebx
test rsi, rsi
je 0x140076454
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rbx
mov r8d, ebp
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [rsp + 0x80]
cmp ecx, ebp
setne bl
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x140124200]
mov dword [rcx + 0x40], eax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140076489
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x140124200]
mov ebx, 1
mov dword [rcx + 0x40], eax
test rdi, rdi
jne 0x140076497
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
movzx edx, bl
mov rcx, r15
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
jmp fcn.14005f550

Function at 0x1400764d0
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
movzx r8d, word [rdx]
mov rbx, rdx
mov rdi, rcx
mov r9, rdx
test r8w, r8w
je 0x14007656d
test rdx, rdx
je 0x140076532
mov edx, 0x3f
nop dword [rax + rax]
lea rcx, [0x140110228]
movzx eax, dx
nop word [rax + rax]
cmp r8w, ax
je 0x14007656d
movzx eax, word [rcx + 2]
add rcx, 2
test ax, ax
jne 0x140076510
movzx r8d, word [r9 + 2]
add r9, 2
test r8w, r8w
jne 0x140076500
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
sete bl
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x140124200]
movzx edx, bl
mov dword [rcx + 0x40], eax
mov rcx, rdi
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
jmp fcn.14005f550
xor r9d, r9d
mov qword [rsp + 0x28], 0
lea rax, [0x1400764c0]
mov rdx, rbx
mov rcx, rdi
mov qword [rsp + 0x20], rax
lea r8d, [r9 + 1]
call fcn.140076b80
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x1400765a0
Capabilities:
Copy file
Extract resource via kernel32 functions
Set current directory
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
mov eax, 0x10050
call fcn.1400ed080
sub rsp, rax
mov rbp, rcx
mov rdi, r8
mov rcx, r9
mov rbx, rdx
call fcn.14001dda0
cmp eax, 1
sete sil
cmp qword [0x140127b10], 0
je 0x140076769
test sil, sil
jne 0x140076601
mov rcx, rdi
call fcn.140096d30
test al, al
je 0x140076601
mov dl, 1
jmp 0x1400767d3
xor r14d, r14d
xor r9d, r9d
mov qword [rsp + 0x30], r14
xor r8d, r8d
mov dword [rsp + 0x28], r14d
mov edx, 0x40000000
mov rcx, rdi
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1400765fa
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rbx + r8*2], r14w
jne 0x140076640
cmp r8, 0x104
lea rcx, [rsp + 0x50]
mov eax, 0x103
mov rdx, rbx
cmovae r8, rax
lea r8, [r8*2 + 2]
call sub.VCRUNTIME140.dll_memcpy
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsupr]
mov r8d, 0xa
lea rdx, [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
je 0x14007675b
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14007675b
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x14007675b
cmp dword [rax], 0x4034b50
jne 0x140076726
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
xor r9d, r9d
lea rdx, [rsp + 0x48]
mov r8d, eax
mov rcx, rbx
call fcn.1400d25d0
test eax, eax
je 0x140076726
mov rdx, qword [rsp + 0x48]
lea r9, [rsp + 0x40]
mov r8d, eax
mov qword [rsp + 0x20], r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0x48]
test eax, eax
setne dil
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400767cb
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], r14
mov r8d, eax
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
mov rcx, rsi
setne dil
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400767cb
xor dil, dil
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400767cb
xor r9d, r9d
lea r8, [rsp + 0x50]
mov edx, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov rcx, qword [0x14012bb78]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
movzx r8d, sil
lea rdx, [rsp + 0x50]
xor r8d, 1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
lea rcx, [0x1400ef7d4]
mov rax, qword [0x140126a10]
setne dil
test rax, rax
je 0x1400767c5
mov rax, qword [rax]
test rax, rax
cmovne rcx, rax
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
xor dil, 1
movzx edx, dil
mov rcx, rbp
call fcn.14005f550
lea r11, [rsp + 0x10050]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x140076800
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x130
xor r9d, r9d
mov byte [rsp + 0x20], 1
mov rbx, rdx
mov rdi, rcx
mov rcx, qword [0x140129dc0]
xor edx, edx
lea r8, [r9 - 1]
call fcn.1400d3520
test rbx, rbx
je 0x140076959
cmp word [rbx], 0
je 0x140076959
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x140076865
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x140124200]
mov dword [rcx + 0x40], eax
jmp 0x140076967
mov rax, qword [0x140124200]
xor edx, edx
mov qword [rsp + 0x140], rsi
mov rcx, rdi
xor esi, esi
mov dword [rax + 0x40], esi
call fcn.14005f550
mov ecx, ebx
and ecx, 1
je 0x140076894
mov eax, 0x52
mov word [rsp + 0x30], ax
test bl, 0x20
je 0x1400768a5
mov edx, 0x41
mov word [rsp + rcx*2 + 0x30], dx
inc ecx
test bl, 4
je 0x1400768b6
mov edx, 0x53
mov word [rsp + rcx*2 + 0x30], dx
inc ecx
test bl, 2
je 0x1400768c7
mov edx, 0x48
mov word [rsp + rcx*2 + 0x30], dx
inc ecx
test bl, bl
jns 0x1400768d7
mov edx, 0x4e
mov word [rsp + rcx*2 + 0x30], dx
inc ecx
test bl, 0x10
je 0x1400768e8
mov edx, 0x44
mov word [rsp + rcx*2 + 0x30], dx
inc ecx
bt ebx, 0xc
jae 0x1400768fa
mov edx, 0x4f
mov word [rsp + rcx*2 + 0x30], dx
inc ecx
bt ebx, 0xb
jae 0x14007690c
mov edx, 0x43
mov word [rsp + rcx*2 + 0x30], dx
inc ecx
bt ebx, 8
jae 0x14007691e
mov edx, 0x54
mov word [rsp + rcx*2 + 0x30], dx
inc ecx
xor r9d, r9d
mov word [rsp + rcx*2 + 0x30], si
mov rcx, qword [0x140129dc0]
lea rdx, [rsp + 0x30]
mov byte [rsp + 0x20], 1
lea r8, [r9 - 1]
call fcn.1400d3520
mov rsi, qword [rsp + 0x140]
mov rbx, qword [rsp + 0x148]
add rsp, 0x130
pop rdi
ret
mov rax, qword [0x140124200]
mov dword [rax + 0x40], 0x57
mov dl, 1
mov rcx, rdi
call fcn.14005f550
mov rbx, qword [rsp + 0x148]
add rsp, 0x130
pop rdi
ret
Function at 0x140076990
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rdi, rdx
xor esi, esi
xor edx, edx
mov r10d, 0xffffffff
mov ebp, r9d
mov dword [rsp + 0x68], r10d
mov r14, r8
mov dword [rsp + 0x6c], edx
movzx eax, word [rdi]
mov r15, rcx
test ax, ax
je 0x140076aad
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x70], r12
lea r12, [0x140000000]
nop dword [rax + rax]
movzx ebx, ax
test ebx, 0xffffff80
je 0x1400769ef
xor eax, eax
jmp 0x140076a05
mov edx, 2
mov ecx, ebx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__isctype]
mov edx, dword [rsp + 0x6c]
mov r10d, dword [rsp + 0x68]
mov ecx, ebx
and ecx, 0xffffffdf
test eax, eax
cmove ecx, ebx
add ecx, 0xffffffd5
cmp ecx, 0x33
ja case.0x140076a2e.51
movsxd rax, ecx
movzx eax, byte [r12 + rax + 0x76b0c]
mov ecx, dword [r12 + rax*4 + 0x76ae8]
add rcx, r12
jmp rcx
movzx esi, word [rdi]
jmp case.0x140076a2e.51
mov ecx, 1
jmp 0x140076a64
mov ecx, SafeArrayAllocDescriptor
jmp 0x140076a64
mov ecx, 4
jmp 0x140076a64
mov ecx, 2
jmp 0x140076a64
mov ecx, 0x80
jmp 0x140076a64
mov ecx, 0x1000
jmp 0x140076a64
mov ecx, 0x100
cmp esi, 0x2b
je 0x140076a80
cmp esi, 0x2d
je 0x140076a77
cmp esi, 0x5e
jne case.0x140076a2e.51
xor edx, ecx
jmp 0x140076a8e
not ecx
and r10d, ecx
and edx, ecx
jmp 0x140076a89
mov eax, ecx
not eax
and r10d, eax
or edx, ecx
mov dword [rsp + 0x68], r10d
mov dword [rsp + 0x6c], edx
movzx eax, word [rdi + 2]
add rdi, 2
test ax, ax
jne 0x1400769e0
mov r12, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x60]
movzx r9d, byte [rsp + 0x80]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov r8d, ebp
lea rax, [0x140076b40]
mov rdx, r14
mov rcx, r15
mov qword [rsp + 0x20], rax
call fcn.140076b80
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140077490
Capabilities:
Get file size

Disassembly:
push rbp
push rdi
push r14
sub rsp, 0x290
xor r9d, r9d
mov byte [rsp + 0x20], 1
mov r14, r8
mov rdi, rdx
mov rbp, rcx
xor edx, edx
mov rcx, qword [0x140129dc0]
lea r8, [r9 - 1]
call fcn.1400d3520
test rdi, rdi
je 0x14007764d
cmp word [rdi], 0
je 0x14007764d
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x2b0], rbx
mov edx, 0x80
mov dword [rsp + 0x28], 0
mov rcx, rdi
mov qword [rsp + 0x2c0], rsi
lea r8d, [r9 + 7]
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140077543
lea rdx, [rsp + 0x2b8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x140077543
mov rcx, qword [rsp + 0x2b8]
jmp 0x1400775ad
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
jne 0x14007758d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x140124200]
mov dl, 1
mov dword [rcx + 0x40], eax
mov rcx, rbp
call fcn.14005f550
mov rbx, qword [rsp + 0x2b0]
mov rsi, qword [rsp + 0x2c0]
add rsp, 0x290
pop r14
pop rdi
pop rbp
ret
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [rsp + 0x5c]
mov eax, dword [rsp + 0x60]
shl rcx, 0x20
or rcx, rax
mov qword [rsp + 0x2b8], rcx
movzx ebx, word [r14]
test ebx, 0xffffff80
je 0x1400775bd
xor eax, eax
jmp 0x1400775d2
mov edx, 2
mov ecx, ebx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__isctype]
mov rcx, qword [rsp + 0x2b8]
mov edx, ebx
and edx, 0xffffffdf
test eax, eax
cmove edx, ebx
cmp edx, 0x4b
je 0x1400775fa
cmp edx, 0x4d
jne 0x140077614
mov rax, rcx
cqo
and edx, 0xfffff
add rax, rdx
sar rax, 0x14
jmp 0x14007760c
mov rax, rcx
cqo
and edx, 0x3ff
add rax, rdx
sar rax, 0xa
mov qword [rsp + 0x2b8], rax
mov rax, qword [0x140124200]
xor edx, edx
mov rcx, rbp
mov dword [rax + 0x40], 0
call fcn.14005f550
mov rdx, qword [rsp + 0x2b8]
mov r8b, reloc.OLEAUT32.dll_SafeArrayGetElement
mov rcx, qword [0x140129dc0]
call fcn.140001540
mov eax, 1
jmp 0x140077571
mov rax, qword [0x140124200]
mov dl, 1
mov rcx, rbp
mov dword [rax + 0x40], 0x57
call fcn.14005f550
add rsp, 0x290
pop r14
pop rdi
pop rbp
ret
Function at 0x140079700
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x240
movzx ebp, word [rdx + 4]
xor r14d, r14d
mov rsi, rdx
mov rdi, rcx
mov ebx, 2
test ebp, 0xffffff80
je 0x140079734
mov eax, r14d
jmp 0x14007973e
mov edx, ebx
mov ecx, ebp
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__isctype]
mov ecx, ebp
and ecx, 0xffffffdf
test eax, eax
cmove ecx, ebp
sub ecx, 0x41
je 0x14007980c
sub ecx, 3
je 0x140079802
sub ecx, 0xb
je 0x1400797bd
sub ecx, 1
je 0x1400797bd
cmp ecx, 3
jne 0x1400797b4
movzx ebp, word [rsi + 0xe]
test ebp, 0xffffff80
je 0x14007977a
mov eax, r14d
jmp 0x140079784
mov edx, ebx
mov ecx, ebp
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__isctype]
movzx ecx, bp
mov edx, 0xffdf
and cx, dx
test eax, eax
cmove cx, bp
cmp cx, 0x4d
jne 0x1400797aa
cmp word [rsi + 0x16], r14w
mov ebx, reloc.WSOCK32.dll_inet_ntoa
lea eax, [rbx + 0xb]
jmp 0x14007981b
mov ebx, 7
lea eax, [rbx + 0x11]
jmp 0x140079816
mov ebx, dword [rsp + 0x260]
jmp 0x14007981e
movzx ebp, word [rsi + 0x12]
test ebp, 0xffffff80
je 0x1400797ce
mov eax, r14d
jmp 0x1400797d8
mov edx, ebx
mov ecx, ebp
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__isctype]
movzx ecx, bp
mov edx, 0xffdf
and cx, dx
test eax, eax
cmove cx, bp
cmp cx, 0x53
jne 0x1400797fb
cmp word [rsi + 0x14], r14w
mov eax, reloc.WSOCK32.dll_socket
jmp 0x14007981b
mov ebx, 0x26
jmp 0x14007981e
mov ebx, reloc.WSOCK32.dll_recv
lea eax, [rbx + 9]
jmp 0x140079816
mov ebx, DispGetParam
mov eax, reloc.OLEAUT32.dll_SafeArrayAllocDescriptor
cmp word [rsi + 0x12], r14w
cmovne ebx, eax
lea rax, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, ebx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x140079842
mov word [rsp + 0x30], r14w
test rdi, rdi
je 0x140079870
lea rax, [rsp + 0x30]
sub rdi, rax
lea rcx, [rsp + 0x30]
nop dword [rax]
nop dword [rax + rax]
movzx eax, word [rcx]
mov word [rdi + rcx], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x140079860
lea rcx, [rsp + 0x30]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rcx + rax*2], r14w
jne 0x140079880
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140092920
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x20
movzx ebx, cl
test cl, cl
jne 0x140092935
xor al, al
add rsp, 0x20
pop rbx
ret
sub edx, 1
je 0x140092960
mov ecx, ebx
cmp edx, 1
je 0x140092952
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
add rsp, 0x20
pop rbx
ret
call qword [sym.imp.USER32.dll_GetKeyState]
and al, 1
add rsp, 0x20
pop rbx
ret
lea eax, [rbx - 1]
cmp al, 5
ja 0x14009296c
cmp bl, 3
jne 0x140092973
lea eax, [rbx + 0x66]
cmp al, 5
ja 0x140092990
cmp qword [0x140127a88], 0
jne 0x1400929b2
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and al, 1
add rsp, 0x20
pop rbx
ret
cmp qword [0x140127a90], 0
je 0x14009297d
xor edx, edx
xor r8d, r8d
movzx ecx, bl
call fcn.140023480
test al, al
je 0x1400929b2
mov cl, 1
call fcn.140023220
lea rcx, [0x1401288d0]
movzx eax, byte [rbx + rcx]
shr al, 7
add rsp, 0x20
pop rbx
ret

Function at 0x140092e20
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x230
mov rdi, rdx
mov esi, ecx
mov r8d, ecx
xor r15d, r15d
mov word [rdx], r15w
mov ecx, 0x410
xor edx, edx
movzx ebx, r9b
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r14, rax
test rax, rax
jne 0x140092e7a
mov r8d, esi
xor edx, edx
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r14, rax
test rax, rax
je 0x140092fcd
xor edx, edx
mov qword [rsp + 0x250], rbp
mov r9d, 0x104
mov r8, rdi
mov rcx, r14
test bl, bl
je 0x140092e9c
call qword [sym.imp.PSAPI.DLL_GetModuleBaseNameW]
jmp 0x140092ea2
call qword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
mov ebp, eax
test eax, eax
jne 0x140092fba
mov rax, qword [0x14010e5e8]
test rax, rax
je 0x140092fba
mov r8d, 0x104
mov rdx, rdi
mov rcx, r14
call rax
mov ebp, eax
test eax, eax
je 0x140092fba
test bl, bl
je 0x140092f14
mov edx, 0x5c
mov rcx, rdi
call qword [sym.imp.VCRUNTIME140.dll_wcsrchr]
test rax, rax
je 0x140092fba
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], r15w
jne 0x140092ef6
add r8, r8
lea rdx, [rax + 2]
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
jmp 0x140092fba
mov eax, 0x41
mov dword [rsp + 0x25a], 0x3a
mov word [rsp + 0x258], ax
nop dword [rax]
mov r8d, 0x104
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x258]
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov ebx, eax
cmp eax, 2
jbe 0x140092f73
add ebx, 0xfffffffe
lea rcx, [rsp + 0x20]
mov r8d, ebx
mov rdx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncmp]
test eax, eax
jne 0x140092f73
cmp word [rdi + rbx*2], 0x5c
lea rdx, [rdi + rbx*2]
je 0x140092f8e
movzx eax, word [rsp + 0x258]
inc ax
mov word [rsp + 0x258], ax
cmp ax, 0x5a
jbe 0x140092f30
jmp 0x140092fba
movzx eax, word [rsp + 0x258]
lea rcx, [rdi + 4]
mov word [rdi], ax
sub ebp, ebx
movzx eax, word [rsp + 0x25a]
mov word [rdi + 2], ax
lea r8d, [rbp + 1]
add r8, r8
call sub.VCRUNTIME140.dll_memmove
add ebp, 2
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebp
mov rbp, qword [rsp + 0x250]
lea r11, [rsp + 0x230]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x140095e80
Capabilities:
Get keyboard layout

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, 0x250
mov rbp, rcx
mov rbx, r9
xor ecx, ecx
mov r14, r8
mov rsi, rdx
xor dil, dil
call qword [sym.imp.ole32.dll_CoInitialize]
xor edx, edx
lea rax, [rsp + 0x30]
lea r9, [0x1400ef5f0]
mov qword [rsp + 0x20], rax
lea rcx, [0x1400ef600]
lea r8d, [rdx + 1]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x140096061
mov rcx, qword [rsp + 0x30]
mov rdx, rsi
mov rax, qword [rcx]
call qword [rax + 0xa0]
cmp word [rbx], 0
je 0x140095f05
mov rcx, qword [rsp + 0x30]
mov rdx, rbx
mov rax, qword [rcx]
call qword [rax + 0x48]
mov rdx, qword [rsp + 0x280]
cmp word [rdx], 0
je 0x140095f1e
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + 0x58]
mov rdx, qword [rsp + 0x288]
cmp word [rdx], 0
je 0x140095f37
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + reloc.WSOCK32.dll_getservbyport]
mov rcx, qword [rsp + 0x2a0]
xor ebx, ebx
cmp word [rcx], bx
je 0x140095f50
call fcn.14001dda0
mov r8d, eax
jmp 0x140095f53
mov r8d, ebx
mov rdx, qword [rsp + 0x290]
cmp word [rdx], bx
je 0x140095f77
mov rcx, qword [rsp + 0x30]
test r8d, r8d
setg bl
sub r8d, ebx
mov rax, qword [rcx]
call qword [rax + 0x88]
mov rbx, qword [rsp + 0x298]
cmp word [rbx], 0
je 0x140095fba
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
xor r8d, r8d
xor edx, edx
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.140023fb0
test al, al
je 0x140095fba
mov rcx, qword [rsp + 0x30]
movzx edx, al
mov eax, 0x600
or dx, ax
mov r8, qword [rcx]
call qword [r8 + 0x68]
mov rcx, qword [rsp + 0x2a8]
cmp word [rcx], 0
je 0x140095fdf
mov rax, qword [rsp + 0x30]
mov rbx, qword [rax]
call fcn.14001dda0
mov rcx, qword [rsp + 0x30]
mov edx, eax
call qword [rbx + 0x78]
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x38]
lea rdx, [0x1400ef610]
mov rax, qword [rcx]
call qword [rax]
test eax, eax
js 0x140096056
xor r9d, r9d
lea r8, [rsp + 0x40]
mov edx, 0x104
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov rcx, qword [rsp + 0x38]
lea rdx, [rsp + 0x40]
mov r8d, 1
mov rax, qword [rcx]
call qword [rax + 0x30]
test eax, eax
js 0x14009604b
mov rcx, qword [0x140127a38]
lea rdx, [0x1400ef8b4]
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea r8, [r9 - 1]
call fcn.1400d3520
mov dil, 1
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rcx]
call qword [rdx + reloc.WSOCK32.dll_recv]
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rcx]
call qword [rdx + reloc.WSOCK32.dll_recv]
call qword [sym.imp.ole32.dll_CoUninitialize]
test dil, dil
je 0x140096073
mov eax, 1
jmp 0x14009607d
mov dl, 1
mov rcx, rbp
call fcn.14005f550
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x1400960a0
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x270
mov rax, rdx
mov rbx, rcx
test rdx, rdx
je 0x140096177
cmp word [rdx], 0
je 0x140096177
lea r9, [rsp + 0x288]
mov edx, 0x104
lea r8, [rsp + 0x60]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov rcx, 0xffffffffffffffff
lea rdx, [rsp + 0x60]
mov rax, rcx
nop dword [rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x1400960f0
xor edx, edx
test rax, rax
je 0x14009610e
cmp word [rsp + rax*2 + 0x5e], 0x5c
jne 0x14009610e
mov word [rsp + rax*2 + 0x5e], dx
lea rax, [rsp + 0x60]
cmp word [rax + rcx*2 + 2], dx
lea rcx, [rcx + 1]
jne 0x140096113
lea rax, [rsp + 0x60]
mov word [rsp + rcx*2 + 0x62], dx
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x20]
mov eax, 0x4054
mov dword [rsp + 0x44], edx
xorps xmm0, xmm0
mov word [rsp + 0x40], ax
movdqu xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x20], rdx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x28], 3
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
mov rcx, rbx
setne dl
call fcn.14005f550
add rsp, 0x270
pop rbx
ret
mov dl, 1
call fcn.14005f550
add rsp, 0x270
pop rbx
ret
Function at 0x140096190
Capabilities:
Get file version info

Disassembly:
push rbx
push rdi
sub rsp, 0x148
xor r9d, r9d
mov byte [rsp + 0x20], 1
mov rbx, rdx
mov rdi, rcx
mov rcx, qword [0x140129dc0]
xor edx, edx
lea r8, [r9 - 1]
call fcn.1400d3520
test rbx, rbx
je 0x140096329
cmp word [rbx], 0
je 0x140096329
lea rdx, [rsp + 0x168]
mov qword [rsp + 0x140], rsi
mov rcx, rbx
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test eax, eax
jne 0x140096218
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x140124200]
mov dl, 1
mov dword [rcx + 0x40], eax
mov rcx, rdi
call fcn.14005f550
mov rsi, qword [rsp + 0x140]
add rsp, 0x148
pop rdi
pop rbx
ret
mov rcx, rsi
mov qword [rsp + 0x160], rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r8d, esi
xor edx, edx
mov r9, rax
mov rcx, rbx
mov rbp, rax
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x140096304
lea r9, [rsp + 0x170]
mov rcx, rbp
lea r8, [rsp + 0x178]
lea rdx, [0x140107260]
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x140096304
mov rax, qword [rsp + 0x178]
lea r8, str._u._u._u._u
mov edx, dword [rax + 0xc]
mov r9d, dword [rax + 8]
movzx ecx, dx
mov dword [rsp + 0x30], ecx
lea rcx, [rsp + 0x40]
shr edx, 0x10
mov dword [rsp + 0x28], edx
mov edx, 0x80
movzx eax, r9w
shr r9d, 0x10
mov dword [rsp + 0x20], eax
call fcn.1400ce4e0
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [0x140124200]
xor edx, edx
mov rcx, rdi
mov dword [rax + 0x40], 0
call fcn.14005f550
mov rcx, qword [0x140129dc0]
lea rdx, [rsp + 0x40]
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea r8, [r9 - 1]
call fcn.1400d3520
mov rbp, qword [rsp + 0x160]
mov rsi, qword [rsp + 0x140]
add rsp, 0x148
pop rdi
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x140124200]
mov dword [rcx + 0x40], eax
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov dl, 1
mov rcx, rdi
call fcn.14005f550
jmp 0x1400962ea
mov rax, qword [0x140124200]
mov dl, 1
mov rcx, rdi
mov dword [rax + 0x40], 0x57
call fcn.14005f550
add rsp, 0x148
pop rdi
pop rbx
ret