joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400217a0
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x1c0]
sub rsp, 0x2c0
xor edi, edi
xor edx, edx
mov esi, edi
mov r15, rcx
call qword [sym.imp.USER32.dll_ActivateKeyboardLayout]
mov r14, rax
test rax, rax
je 0x140021971
movaps xmm0, xmmword [str.SYSTEMCurrentControlSetControlKeyboard_Layouts_]
lea rcx, [rbp - 0x6c]
movaps xmm1, xmmword [0x14011acc0]
mov eax, dword [0x14011ad10]
movaps xmmword [rsp + 0x30], xmm0
movaps xmm0, xmmword [0x14011acd0]
movaps xmmword [rsp + 0x40], xmm1
movaps xmm1, xmmword [0x14011ace0]
movaps xmmword [rsp + 0x50], xmm0
movaps xmm0, xmmword [0x14011acf0]
movaps xmmword [rsp + 0x60], xmm1
movaps xmm1, xmmword [0x14011ad00]
mov dword [rbp - 0x70], eax
movzx eax, word [0x14011ad14]
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rbp - 0x80], xmm1
mov word [rbp - 0x6c], ax
call qword [sym.imp.USER32.dll_GetKeyboardLayoutNameW]
test eax, eax
je 0x140021931
lea rax, [rbp + 0x200]
xor r8d, r8d
lea r9d, [rdi + 1]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x30]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14002192d
mov rcx, qword [rbp + 0x200]
lea rax, [rbp + 0x1f8]
mov qword [rsp + 0x28], rax
lea rdx, str.Layout_File
lea rax, [rbp - 0x50]
mov qword [rsp + 0x2f0], rbx
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp + 0x1f8], 0x208
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rbp + 0x200]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
mov rbx, qword [rsp + 0x2f0]
jne 0x14002192d
mov ecx, dword [rbp + 0x1f8]
test ecx, ecx
je 0x14002192d
shr ecx, 1
mov edx, ecx
dec ecx
mov dword [rbp + 0x1f8], ecx
cmp word [rbp + rcx*2 - 0x50], si
jne 0x140021907
mov edx, ecx
test ecx, ecx
je 0x14002191a
nop dword [rax + rax]
dec ecx
cmp word [rbp + rcx*2 - 0x50], si
jne 0x14002191a
mov dword [rbp + 0x1f8], ecx
mov edx, ecx
test ecx, ecx
jne 0x1400218f0
jmp 0x14002191a
mov dword [rbp + 0x1f8], edx
cmp edx, 0x104
jae 0x14002192d
mov word [rbp + rdx*2 - 0x50], di
test edx, edx
je 0x140021931
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
jmp 0x140021931
mov word [rbp - 0x50], di
cmp r15, r14
je 0x140021941
xor edx, edx
mov rcx, r14
call qword [sym.imp.USER32.dll_ActivateKeyboardLayout]
test rsi, rsi
je 0x140021971
lea rdx, str.KbdLayerDescriptor
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140021968
call rax
mov edi, dword [rax + 0x50]
not edi
and edi, 1
add edi, 3
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, edi
add rsp, 0x2c0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140057a60
Capabilities:
Print debug messages

Disassembly:
test edx, edx
je 0x140057bbb
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
mov eax, 0x4030
call fcn.1400f3640
sub rsp, rax
mov qword [rsp + 0x4050], rbx
mov rbp, r9
mov rbx, qword [rsp + 0x4070]
mov r14, r8
mov qword [rsp + 0x4058], r15
mov esi, edx
mov rdi, rcx
test rbx, rbx
jne 0x140057ac1
mov rbx, qword [rcx + 0x6d0]
test rbx, rbx
jne 0x140057ac1
mov ecx, dword [rcx + 0x288]
movzx eax, word [rdi + 0x28c]
jmp 0x140057ac9
movzx ecx, word [rbx + 2]
movzx eax, word [rbx + 4]
mov r9, qword [0x1401437e0]
lea r8, str._s___d__:___Warning:__s_n
movsxd rcx, ecx
mov r15d, 0x2000
movzx eax, ax
mov edx, r15d
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], eax
mov r9, qword [r9 + rcx*8]
lea rcx, [rsp + 0x30]
call fcn.1400b9a60
cmp word [rbp], 0
movsxd rcx, eax
je 0x140057b25
sub r15d, ecx
lea rax, [rsp + 0x30]
lea rcx, [rax + rcx*2]
mov edx, r15d
mov r9, rbp
lea r8, str._____Specifically:__s_n
call fcn.1400b9a60
mov r15, qword [rsp + 0x4058]
lea rdx, [rsp + 0x30]
cmp esi, 3
jne 0x140057b4b
lea r9, [0x14011d28c]
xor r8d, r8d
mov rcx, rdi
call fcn.140056a40
jmp 0x140057ba0
lea rcx, [0x140140350]
call fcn.14000c830
test al, al
jne 0x140057b66
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp esi, 2
jne 0x140057ba0
test rbx, rbx
jne 0x140057b8c
mov rbx, qword [rdi + 0x6d0]
test rbx, rbx
jne 0x140057b8c
mov r8, rbp
mov rdx, r14
mov rcx, rdi
call fcn.1400570c0
jmp 0x140057ba0
mov r9, rbp
mov r8d, 1
mov rdx, r14
mov rcx, rbx
call fcn.140056c40
mov rbx, qword [rsp + 0x4050]
mov rbp, qword [rsp + 0x4060]
add rsp, 0x4030
pop r14
pop rdi
pop rsi
ret
Function at 0x14005cb90
Capabilities:
Get keyboard layout

Disassembly:
mov qword [rsp + 0x20], rbx
push r12
push r14
push r15
sub rsp, 0x140
movsxd rax, dword [rcx]
movzx r12d, r9b
mov ebx, r8d
mov r15, rdx
mov r14, rcx
cmp eax, 6
ja case.0x14005cbcd.1
lea rcx, [0x140000000]
mov r10d, dword [rcx + rax*4 + 0x5cdbc]
add r10, rcx
jmp r10
lea rax, str.Timeout
jmp 0x14005cc01
lea rax, str.Match
jmp 0x14005cc01
mov qword [rsp + 0x168], rsi
mov rsi, r15
test r15, r15
jne 0x14005cc17
lea rax, str.EndKey
mov rsi, qword [rsp + 0x168]
mov rbx, qword [rsp + 0x178]
add rsp, 0x140
pop r15
pop r14
pop r12
ret
test r12b, r12b
je 0x14005cc2d
movups xmm0, xmmword [str.EndKey:]
lea rsi, [rdx + 0xe]
sub ebx, 7
movups xmmword [rdx], xmm0
movzx eax, word [r14 + 0x6a]
mov qword [rsp + 0x160], rbp
test ax, ax
je 0x14005cc4d
xor ebp, ebp
mov word [rsi], ax
mov word [rsi + 2], bp
jmp 0x14005cd6e
cmp byte [r14 + 0x6d], 0
je 0x14005cce4
xor edx, edx
mov qword [rsp + 0x170], rdi
mov r8d, 0x100
lea rcx, [rsp + 0x40]
call fcn.1400d8190
mov byte [rsp + 0x50], 0x80
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rdx, rax
call fcn.140021730
mov ecx, eax
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
movzx ecx, byte [r14 + 0x66]
xor ebp, ebp
mov ebx, ebp
mov rdi, rax
cmp dword [0x1401425cc], ebx
setne bl
xor edx, edx
call fcn.140022b50
movzx ecx, byte [r14 + 0x66]
lea r8, [rsp + 0x40]
mov qword [rsp + 0x30], rdi
mov r9, rsi
movzx edx, ax
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 2
call qword [sym.imp.USER32.dll_ToUnicodeEx]
mov rdi, qword [rsp + 0x170]
movsxd rcx, eax
mov word [rsi + rcx*2], bp
jmp 0x14005cd6e
xor ebp, ebp
movzx ecx, bp
mov word [rsi], bp
cmp byte [r14 + 0x6c], cl
je 0x14005cd08
movzx ecx, word [r14 + 0x68]
xor r9d, r9d
mov r8d, ebx
mov rdx, rsi
call fcn.140021a40
movzx ecx, word [rsi]
test cx, cx
jne 0x14005cd53
test r12b, r12b
je 0x14005cd1a
mov ecx, ebp
cmp byte [r14 + 0x6c], cl
jne 0x14005cd35
cmp byte [r14 + 0x6c], bpl
mov r8d, ebx
movzx ecx, byte [r14 + 0x66]
mov rdx, rsi
sete r9b
call fcn.140021af0
movzx ecx, word [rsi]
test cx, cx
jne 0x14005cd53
movzx r9d, word [r14 + 0x68]
lea r8, str.sc_03X
mov edx, ebx
mov rcx, rsi
call fcn.1400b9a60
movzx ecx, word [rsi]
lea eax, [rcx - 0x61]
cmp ax, 0x19
ja 0x14005cd6e
cmp word [rsi + 2], bp
jne 0x14005cd6e
test r12b, r12b
je 0x14005cd6e
sub cx, 0x20
mov word [rsi], cx
mov rbp, qword [rsp + 0x160]
lea rax, str.EndKey
test r12b, r12b
cmovne rax, r15
jmp 0x14005cbf9
lea rax, [0x14011d080]
jmp 0x14005cc01
lea rax, str.NewInput
jmp 0x14005cc01
lea rax, str.Stopped
jmp 0x14005cc01
lea rax, [0x140103574]
jmp 0x14005cc01
Function at 0x140064f00
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
push rsi
push rdi
mov eax, 0x2260
call fcn.1400f3640
sub rsp, rax
lea rax, [rsp + 0x2290]
mov r8, rcx
lea rcx, [rsp + 0x1260]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
movzx esi, dl
lea rbx, [rsp + 0x1260]
lea rdi, [0x140103574]
call fcn.140064cb0
test al, al
jne 0x140064f54
add rsp, 0x2260
pop rdi
pop rsi
pop rbx
ret
mov qword [rsp + 0x2298], r15
xor r15d, r15d
test sil, sil
je 0x140065016
mov rsi, qword [rsp + 0x2290]
lea rax, str.AutoHotkey.exe
mov r9, rsi
mov qword [rsp + 0x2280], rbp
lea r8, str.__s_s
mov qword [rsp + 0x2288], r14
mov edx, 0x800
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x260]
call fcn.1400b9a60
movsxd rbp, eax
lea r14d, [rbp + 1]
cmp r14d, 0x800
jg 0x140064fee
lea rcx, [rsp + 0x262]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140064fee
movsxd rax, r14d
lea rbx, [rsp + 0x260]
mov ecx, SafeArrayAllocDescriptor
mov word [rsp + rbp*2 + 0x260], cx
mov word [rsp + rax*2 + 0x260], r15w
jmp 0x140064ffe
cmp rsi, qword [0x1401468a0]
jne 0x140065006
mov rbx, qword [0x140146898]
lea rdi, [rsp + 0x1260]
mov rbp, qword [rsp + 0x2280]
mov r14, qword [rsp + 0x2288]
mov qword [rsp + 0x48], r15
lea rcx, [0x140145cd0]
mov byte [rsp + 0x40], r15b
xor r9d, r9d
mov byte [rsp + 0x38], r15b
mov r8, rdi
mov qword [rsp + 0x30], r15
mov rdx, rbx
mov qword [rsp + 0x28], r15
mov byte [rsp + 0x20], r15b
call fcn.140058480
mov r15, qword [rsp + 0x2298]
test eax, eax
setne al
add rsp, 0x2260
pop rdi
pop rsi
pop rbx
ret
Function at 0x140069570
Capabilities:
Get keyboard layout

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 8], rcx
push rbp
push rdi
push r14
sub rsp, 0x250
mov rbp, qword [0x140144ad0]
xor ecx, ecx
mov rdi, r8
mov rbx, rdx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
xor r8d, r8d
xor edx, edx
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.140021e40
movzx r14d, al
test al, al
jne 0x14006960f
xor r8d, r8d
lea rdx, [rsp + 0x270]
mov rcx, rbx
call fcn.140083fa0
xor r9d, r9d
test eax, eax
jne 0x1400695da
lea rdx, [0x140103574]
jmp 0x14006967c
mov edx, dword [rsp + 0x270]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x30], rcx
lea r8, [rsp + 0x30]
xor edi, edi
mov ecx, eax
mov dword [rsp + 0x40], edi
call fcn.140084390
lea rdx, [rsp + 0x30]
mov rcx, rbp
call fcn.1400bdeb0
jmp 0x140069690
mov qword [rsp + 0x278], rsi
mov ebx, 2
movzx esi, word [rdi]
xor edi, edi
test esi, 0xffffff80
je 0x14006962d
mov eax, edi
jmp 0x140069636
mov edx, ebx
mov ecx, esi
call fcn.1400df350
mov ecx, esi
and ecx, 0xffffffdf
test eax, eax
cmove ecx, esi
mov rsi, qword [rsp + 0x278]
cmp ecx, 0x50
je 0x140069655
cmp ecx, 0x54
cmovne ebx, edi
jmp 0x14006965a
mov ebx, 1
mov edx, ebx
movzx ecx, r14b
call fcn.1400842e0
test al, al
lea rcx, [0x1401233e8]
lea rdx, [0x1401233ec]
cmovne rdx, rcx
xor r9d, r9d
mov r8, 0xffffffffffffffff
mov byte [rsp + 0x20], 1
mov rcx, rbp
call fcn.1400be640
mov rbx, qword [rsp + 0x280]
add rsp, 0x250
pop r14
pop rdi
pop rbp
ret

Function at 0x1400696b0
Capabilities:
Get disk size

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x250
xor r9d, r9d
mov byte [rsp + 0x20], 1
movzx esi, r8b
mov rbx, rdx
mov rdi, rcx
xor edx, edx
mov rcx, qword [0x140144ad0]
lea r8, [r9 - 1]
call fcn.1400be640
test rbx, rbx
je 0x1400697c2
cmp word [rbx], 0
je 0x1400697c2
mov r8d, 0x103
lea rcx, [rsp + 0x40]
mov rdx, rbx
call fcn.1400e5080
xor edx, edx
lea rcx, [rsp + 0x40]
mov word [rsp + 0x246], dx
mov rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], dx
jne 0x140069722
lea rcx, [rax + rax]
cmp word [rsp + rcx + 0x3e], 0x5c
je 0x14006974e
inc rax
cmp rax, 0x104
jae 0x1400697c2
mov dword [rsp + rcx + 0x40], 0x5c
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x268]
lea rdx, [rsp + 0x278]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x1400697c2
mov rbx, qword [rsp + 0x268]
lea rdx, [0x140103654]
mov rcx, qword [0x140142748]
test sil, sil
mov byte [rsp + 0x20], 1
cmovne rbx, qword [rsp + 0x278]
xor r9d, r9d
shr rbx, 0x14
lea r8, [r9 - 1]
call fcn.1400be640
mov rcx, qword [0x140144ad0]
mov r8b, reloc.OLEAUT32.dll_SafeArrayGetElement
mov rdx, rbx
call fcn.1400015d0
mov eax, 1
jmp 0x140069805
mov rax, qword [0x14013dbf0]
lea rdx, [0x140119fac]
test byte [rax + 0x140], 1
jne 0x1400697f3
mov rcx, qword [0x140142748]
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea r8, [r9 - 1]
call fcn.1400be640
jmp 0x140069805
lea r9, [0x140103574]
xor r8d, r8d
mov rcx, rdi
call fcn.140056750
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14006d290
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rdi, r8
mov r15, rdx
mov r12, rcx
mov ebp, 1
test r8, r8
je 0x14006d302
xor r8d, r8d
mov edx, ebp
mov rcx, rdi
call fcn.1400017c0
cmp byte [rdi + 0x23], 0
mov rsi, rax
jne 0x14006d2d5
mov rbx, qword [rdi + 0x10]
jmp 0x14006d2d8
mov rbx, rdi
cmp byte [rbx + 0x23], bpl
jne 0x14006d2f6
test byte [rbx + 0x21], 8
je 0x14006d2ec
mov rcx, rbx
call fcn.140001670
lea r14, [rbx + 0x10]
mov r14, qword [rbx + 0x10]
jmp 0x14006d340
lea r14, [0x1401482e0]
mov r14, qword [r14]
jmp 0x14006d340
lea r8, [rsp + 0x88]
xor ecx, ecx
lea rdx, [rsp + 0x80]
call fcn.1400bdfd0
test eax, eax
jne 0x14006d330
mov rax, qword [0x14013dbf0]
xor ebx, ebx
mov dword [rax + 0x40], ebx
xor eax, eax
jmp 0x14006d3e2
mov rsi, qword [rsp + 0x80]
mov r14, 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, r15
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x14006d3aa
mov dword [rsp + 0x80], ebx
mov ecx, ebx
test rsi, rsi
je 0x14006d3a1
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rbx
mov r8d, r14d
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [rsp + 0x80]
cmp ecx, r14d
mov ebp, ebx
setne bpl
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x14013dbf0]
mov dword [rcx + 0x40], eax
cmp r15, 0xffffffffffffffff
je 0x14006d3c9
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rdi, rdi
jne 0x14006d3d6
mov rcx, rsi
call fcn.1400dc21c
movzx edx, bpl
mov rcx, r12
call fcn.140056820
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret

Function at 0x14006d410
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, rdx
mov rdi, rcx
mov r9, rdx
test rdx, rdx
je 0x14006d472
movzx r8d, word [rdx]
test r8w, r8w
je 0x14006d4b3
mov edx, 0x3f
nop dword [rax + rax]
lea rcx, [0x1401239f8]
movzx eax, dx
nop word [rax + rax]
cmp r8w, ax
je 0x14006d4b3
movzx eax, word [rcx + 2]
add rcx, 2
test ax, ax
jne 0x14006d450
movzx r8d, word [r9 + 2]
add r9, 2
test r8w, r8w
jne 0x14006d440
cmp word [rbx], 0
je 0x14006d4b3
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 [0x14013dbf0]
movzx edx, bl
mov dword [rcx + 0x40], eax
mov rcx, rdi
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
jmp fcn.140056820
xor r9d, r9d
mov qword [rsp + 0x28], 0
lea rax, [0x14006d400]
mov rdx, rbx
mov rcx, rdi
mov qword [rsp + 0x20], rax
lea r8d, [r9 + 1]
call fcn.14006da60
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x1400847d0
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 0x14008482a
mov r8d, esi
xor edx, edx
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r14, rax
test rax, rax
je 0x14008497c
xor edx, edx
mov qword [rsp + 0x250], rbp
mov r9d, 0x104
mov r8, rdi
mov rcx, r14
test bl, bl
je 0x14008484c
call qword [sym.imp.PSAPI.DLL_GetModuleBaseNameW]
jmp 0x140084852
call qword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
mov ebp, eax
test eax, eax
jne 0x140084969
mov rax, qword [0x140124338]
test rax, rax
je 0x140084969
mov r8d, 0x104
mov rdx, rdi
mov rcx, r14
call rax
mov ebp, eax
test eax, eax
je 0x140084969
test bl, bl
je 0x1400848c3
mov edx, 0x5c
mov rcx, rdi
call fcn.1400d796c
test rax, rax
je 0x140084969
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], r15w
jne 0x1400848a5
add r8, r8
lea rdx, [rax + 2]
mov rcx, rdi
call fcn.1400d8380
jmp 0x140084969
mov eax, 0x41
mov dword [rsp + 0x25a], 0x3a
mov word [rsp + 0x258], ax
nop dword [rax + 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 0x140084922
add ebx, 0xfffffffe
lea rcx, [rsp + 0x20]
mov r8d, ebx
mov rdx, rdi
call fcn.1400e5980
test eax, eax
jne 0x140084922
cmp word [rdi + rbx*2], 0x5c
lea rdx, [rdi + rbx*2]
je 0x14008493d
movzx eax, word [rsp + 0x258]
inc ax
mov word [rsp + 0x258], ax
cmp ax, 0x5a
jbe 0x1400848e0
jmp 0x140084969
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 fcn.1400d8380
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 0x140087d10
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 [0x140144ad0]
xor edx, edx
lea r8, [r9 - 1]
call fcn.1400be640
test rbx, rbx
je 0x140087eda
cmp word [rbx], 0
je 0x140087eda
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 0x140087d98
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x14013dbf0]
mov dl, 1
mov dword [rcx + 0x40], eax
mov rcx, rdi
call fcn.140056820
mov rsi, qword [rsp + 0x140]
add rsp, 0x148
pop rdi
pop rbx
ret
mov rcx, rsi
mov qword [rsp + 0x160], rbp
call fcn.1400dc214
mov r9, rax
mov r8d, esi
xor edx, edx
mov rcx, rbx
mov rbp, rax
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x140087e82
lea r9, [rsp + 0x170]
mov rcx, rbp
lea r8, [rsp + 0x178]
lea rdx, [0x14011aff8]
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x140087e82
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.1400b9a60
mov rcx, rbp
call fcn.1400dc21c
mov rax, qword [0x14013dbf0]
xor edx, edx
mov rcx, rdi
mov dword [rax + 0x40], 0
call fcn.140056820
mov rcx, qword [0x140144ad0]
lea rdx, [rsp + 0x40]
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea r8, [r9 - 1]
call fcn.1400be640
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 [0x14013dbf0]
mov dword [rcx + 0x40], eax
mov rcx, rbp
call fcn.1400dc21c
mov rax, qword [0x14013dbf0]
lea rdx, [0x140119fac]
test byte [rax + 0x140], 1
jne 0x140087ec6
mov rcx, qword [0x140142748]
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea r8, [r9 - 1]
jmp 0x140087e63
lea r9, [0x140103574]
xor r8d, r8d
mov rcx, rdi
call fcn.140056750
jmp 0x140087e68
mov rax, qword [0x14013dbf0]
mov dl, 1
mov rcx, rdi
mov dword [rax + 0x40], 0x57
call fcn.140056820
add rsp, 0x148
pop rdi
pop rbx
ret
Function at 0x1400ba9e0
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x270
mov rdi, rdx
mov rbx, rcx
test rcx, rcx
je 0x1400baad2
cmp word [rcx], 0
je 0x1400baad2
mov r8d, 4
lea rdx, [0x140126b98]
call fcn.1400e5980
mov r8, rbx
test eax, eax
jne 0x1400baa23
lea r8, [rbx + 8]
test r8, r8
je 0x1400baa70
movzx edx, word [r8]
test dx, dx
je 0x1400baa70
mov r9d, 0x3f
nop word [rax + rax]
lea rcx, [0x1401239f8]
movzx eax, r9w
nop dword [rax + rax]
cmp dx, ax
je 0x1400baa97
movzx eax, word [rcx + 2]
add rcx, 2
test ax, ax
jne 0x1400baa50
movzx edx, word [r8 + 2]
add r8, 2
test dx, dx
jne 0x1400baa40
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test rdi, rdi
je 0x1400baa80
mov dword [rdi], eax
cmp eax, 0xffffffff
setne al
mov rbx, qword [rsp + 0x280]
add rsp, 0x270
pop rdi
ret
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
je 0x1400baad2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
test rdi, rdi
je 0x1400baabf
mov eax, dword [rsp + 0x20]
mov dword [rdi], eax
mov al, 1
mov rbx, qword [rsp + 0x280]
add rsp, 0x270
pop rdi
ret
mov rbx, qword [rsp + 0x280]
xor al, al
add rsp, 0x270
pop rdi
ret

Function at 0x1400bb260
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x10020
call fcn.1400f3640
sub rsp, rax
mov rdi, rdx
lea rcx, str.ComSpec
lea rdx, [rsp + 0x20]
mov r8d, 0x7fff
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ebx, eax
test eax, eax
je 0x1400bb2bb
lea r8d, [rax + 1]
mov rcx, rdi
add r8, r8
lea rdx, [rsp + 0x20]
call fcn.1400d8380
mov eax, ebx
mov rbx, qword [rsp + 0x10030]
add rsp, 0x10020
pop rdi
ret
xor eax, eax
mov word [rdi], ax
mov eax, ebx
mov rbx, qword [rsp + 0x10030]
add rsp, 0x10020
pop rdi
ret
Function at 0x1400bd440
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x10], edx
push rdi
sub rsp, 0x860
mov rdi, r8
mov rsi, rcx
mov r8d, 0x800
lea rcx, [rsp + 0x60]
xor edx, edx
movzx ebp, r9b
call fcn.1400d8190
mov r9d, reloc.OLEAUT32.dll_SafeArrayGetElement
mov dword [rsp + 0x20], 0xf0000000
xor r8d, r8d
lea rcx, [rsp + 0x50]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x1400bd65c
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x8004
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x1400bd65c
xor ebx, ebx
test rdi, rdi
je 0x1400bd510
cmp qword [rdi], rbx
je 0x1400bd510
mov edx, ebx
lea r9, [0x14013f4e0]
mov r8d, ebx
lea r10, [0x140127ac0]
mov rax, rdi
cmp rdi, r9
jne 0x1400bd4f5
lea eax, [rdx + rdx*4]
lea rax, [r10 + rax*2]
jmp 0x1400bd4f8
mov rax, qword [rax]
movzx eax, word [rax]
inc edx
mov word [rsp + r8*2 + 0x60], ax
mov r8d, edx
cmp qword [rdi + rdx*8], rbx
lea rax, [rdi + rdx*8]
jne 0x1400bd4e7
lea rcx, [rsp + 0x60]
mov rax, 0xffffffffffffffff
nop dword [rax]
cmp word [rcx + rax*2 + 2], bx
lea rax, [rax + 1]
jne 0x1400bd520
mov rcx, qword [rsp + 0x40]
lea r8d, [rax + rax]
xor r9d, r9d
lea rdx, [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x1400bd65c
lea rax, [rsp + 0x60]
mov ecx, SafeArrayAllocDescriptor
nop dword [rax]
nop dword [rax + rax]
mov qword [rax], rbx
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbx
lea rax, [rax + 0x40]
mov qword [rax - 0x28], rbx
mov qword [rax - 0x20], rbx
mov qword [rax - 0x18], rbx
mov qword [rax - 0x10], rbx
mov qword [rax - 8], rbx
sub rcx, 1
jne 0x1400bd560
mov r9d, dword [rsp + 0x890]
cmp r9d, 0x80
jne 0x1400bd5a1
mov ebx, 0x660e
jmp 0x1400bd5b1
cmp r9d, 0xc0
setne bl
add ebx, 0x660f
mov r8, qword [rsp + 0x40]
lea rax, [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
mov edx, ebx
shl r9d, 0x10
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
je 0x1400bd65c
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
test eax, eax
je 0x1400bd65c
mov rcx, qword [rsp + 0x48]
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 1]
test bpl, bpl
je 0x1400bd623
mov eax, dword [rsp + 0x878]
add eax, 0x10
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x878]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
call qword [0x1401427b8]
jmp 0x1400bd63b
lea rax, [rsp + 0x878]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
call qword [0x1401427b0]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rsp + 0x50]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [rsp + 0x878]
jmp 0x1400bd65e
xor eax, eax
lea r11, [rsp + 0x860]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret