joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140072db0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rax, qword [rcx]
mov rbx, rcx
xor esi, esi
xor ecx, ecx
mov word [rax], si
call qword [fcn.14010cd98]
cmp eax, esi
je 0x140072e0a
lea ecx, [rsi + 0xd]
call qword [sym.imp.USER32.DLL_GetClipboardData]
mov rdi, rax
cmp rax, rsi
je 0x140072e04
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_GlobalLock]
mov rcx, rbx
mov rdx, rax
call fcn.14006ad18
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_GlobalUnlock]
call qword [sym.imp.USER32.DLL_CloseClipboard]
mov rsi, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140073df4
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x50
movzx eax, word [rsp + 0xb0]
mov rbx, rcx
mov r13, rdx
mov dword [rsp + 0xa8], eax
dec eax
lea rcx, [rsp + 0x38]
movsxd r14, eax
mov edx, 0xa0000
movsxd rbp, r9d
not r14
mov rdi, r8
call fcn.14005f7a0
mov rax, qword [rsp + 0x38]
and dword [rsp + 0xa0], 0
mov qword [rsp + 0x48], rdi
add rax, 0x20000
and rax, 0xfffffffffffe0000
cmp dword [rsp + 0xb0], 0
mov qword [rsp + 0x30], rax
jne 0x140073e6d
xor ebp, ebp
xor r15d, r15d
jmp 0x140073e81
movzx ecx, word [rsp + 0xb0]
lea rax, [rdi + rbp]
cqo
idiv rcx
mov r15, rdx
test rdi, rdi
jle 0x140073f8a
mov ecx, 0x10000000
test ebp, ebp
jne 0x140073e9f
movsxd rax, r15d
cmp rdi, rax
jle 0x140073e9f
xor al, al
jmp 0x140073ea1
mov al, 1
cmp rdi, rcx
mov esi, edi
mov rdx, r13
cmovg esi, ecx
mov r8d, esi
test al, al
je 0x140073f42
mov esi, dword [rsp + 0xa8]
mov rcx, rbx
sub esi, ebp
mov eax, esi
cmp rax, rdi
cmovg esi, edi
xor edx, edx
lea r8d, [rdx + 1]
call fcn.140058ca4
mov r8d, dword [rsp + 0xa8]
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x90]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0xa0]
mov rbx, rax
call qword [sym.imp.KERNEL32.DLL_ReadFile]
mov rax, qword [rsp + 0x30]
movsxd rcx, ebp
mov r8d, esi
mov rdx, r13
add rcx, rax
mov qword [rsp + 0x40], rax
call fcn.14001c8fc
mov rdx, rbx
mov rbx, qword [rsp + 0x90]
mov rcx, rbx
xor r8d, r8d
call fcn.140058ca4
mov r8d, dword [rsp + 0xa8]
mov rdx, qword [rsp + 0x40]
jmp 0x140073f52
cmp dword [rsp + 0xb0], 0
je 0x140073f52
and esi, r14d
mov r8d, esi
and dword [rsp + 0xa0], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0xa0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_WriteFile]
mov r11d, esi
xor ebp, ebp
sub rdi, r11
add r13, r11
mov ecx, 0x10000000
test rdi, rdi
jg 0x140073e8f
lea rcx, [rsp + 0x38]
call fcn.140057768
mov rax, qword [rsp + 0x48]
add rsp, 0x50
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140075fe8
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r14d, r8d
mov rbx, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.DLL_GetEnvironmentStringsW]
xor r15d, r15d
mov rdi, rax
cmp rax, r15
je 0x1400760f2
cmp rbx, r15
mov r12, rbp
cmovne r12, rbx
mov rbx, rax
cmp word [rax], r15w
je 0x1400760e9
mov rsi, rbx
jmp 0x140076044
cmp ax, 0x3d
je 0x140076051
add rbx, 2
movzx eax, word [rbx]
cmp ax, r15w
jne 0x14007603e
mov rdx, rsi
cmp r14d, r15d
je 0x140076079
or qword [rsp + 0x20], 0xffffffffffffffff
mov rax, rbx
lea r8, [rbx + 2]
sub rax, rsi
mov rcx, rbp
sar rax, 1
mov r9d, eax
call fcn.14001d6c8
jmp 0x1400760d5
mov r13, rbx
lea rcx, [rsp + 0x78]
sub r13, rsi
sar r13, 1
mov r8, r13
call fcn.14006acbc
mov rdx, qword [rsp + 0x78]
or r9d, 0xffffffff
xor r8d, r8d
mov rcx, r12
mov qword [rsp + 0x20], r15
call fcn.140017c8c
cmp rax, r15
jne 0x1400760c5
or qword [rsp + 0x20], 0xffffffffffffffff
lea r8, [rbx + 2]
mov r9d, r13d
mov rdx, rsi
mov rcx, rbp
call fcn.14001d6c8
lea rcx, [rsp + 0x78]
call fcn.140057768
jmp 0x1400760d5
add rbx, 2
cmp word [rbx], r15w
jne 0x1400760d1
add rbx, 2
cmp word [rbx], r15w
jne 0x140076039
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsW]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x14007642c
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov ebx, edx
movzx esi, cx
call fcn.14006a410
xor edx, edx
mov edi, eax
cmp ebx, edx
jge 0x1400764bc
lea ecx, [rdx + 0x20]
lea eax, [rdx + 0x2a]
mov word [rsp + 0x26], si
mov word [rsp + 0x22], ax
lea eax, [rdx + 0x2c]
mov word [rsp + 0x20], cx
mov word [rsp + 0x24], cx
lea ecx, [rdx + 0x3a]
mov word [rsp + 0x2a], ax
lea eax, [rdx + 0x5c]
mov word [rsp + 0x28], cx
mov word [rsp + 0x52], cx
lea rcx, [rsp + 0x50]
mov word [rsp + 0x2c], dx
mov word [rsp + 0x50], si
mov word [rsp + 0x54], ax
mov word [rsp + 0x56], dx
call qword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
cmp eax, 1
je 0x1400764a8
cmp edi, 2
je 0x1400764bc
lea rdx, [rsp + 0x20]
lea rcx, [0x14012d0c0]
xor r8d, r8d
call fcn.140070d50
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140077810
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x60
xor r12d, r12d
xor edi, edi
mov r13, r9
mov rbp, rdx
mov rbx, rcx
test rcx, rcx
jne 0x140077906
test rdx, rdx
jne 0x14007784c
mov eax, 0x80070057
jmp 0x140077a8f
cmp dword [0x14012d7d4], edi
jle 0x140077a8c
and qword [rsp + 0x30], rdi
and dword [rsp + 0x90], edi
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rbp
mov dword [rsp + 0x28], 0x8000080
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.DLL_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1400778a4
call qword [sym.imp.KERNEL32.DLL_GetLastError]
lea ecx, [rbx + 2]
test eax, eax
cmove eax, ecx
jmp 0x140077a8f
mov r8d, dword [0x14012d7d4]
mov rdx, qword [0x14012e010]
and qword [rsp + 0x20], rdi
lea r9, [rsp + 0x90]
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov r8, qword [0x14012e010]
and dword [0x14012d7d4], edi
test r8, r8
je 0x140077a8c
mov rcx, qword [0x14012d2d8]
add r8, 0xfffffffffffffff8
xor edx, edx
call qword [sym.imp.KERNEL32.DLL_HeapFree]
and qword [0x14012e010], rdi
jmp 0x140077a8c
xor edx, edx
test r8, r8
je 0x140077a44
mov rcx, r8
call fcn.14001e2a0
mov rdi, rax
test rax, rax
jne 0x14007792b
mov eax, 1
jmp 0x140077a8f
mov eax, dword [rbx + 8]
sub eax, dword [rbx]
movsxd r14, eax
mov eax, dword [rbx + 0xc]
sub eax, dword [rbx + 4]
movsxd r12, eax
test r14, r14
jle 0x140077a2b
test eax, eax
jle 0x140077a2b
and dword [rsp + 0x90], 0
and dword [rsp + 0x40], 0
lea rdx, [rsp + 0x90]
mov rcx, rdi
call qword [0x14012cdf0]
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [0x14012cdf8]
mov r11d, dword [rsp + 0x90]
cmp r14, r11
jne 0x140077993
mov eax, dword [rsp + 0x40]
cmp r12, rax
je 0x140077a2b
and qword [rsp + 0x50], 0
and qword [rsp + 0x58], 0
lea rdx, [rsp + 0x50]
mov r8, r13
mov rcx, rbx
call fcn.14005eebc
mov rsi, rax
test rax, rax
je 0x140077921
mov rbx, qword [rsp + 0x50]
and qword [rsp + 0x48], 0
lea rdx, [rsp + 0x48]
mov rcx, rbx
call qword [0x14012ce08]
mov rcx, qword [rsp + 0x48]
mov edx, 2
call qword [0x14012ce18]
mov rcx, qword [rsp + 0x48]
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r14d
call qword [0x14012cd80]
mov rdx, qword [rsp + 0x58]
mov rcx, rbx
call qword [sym.imp.GDI32.DLL_SelectObject]
mov rcx, rbx
call qword [sym.imp.GDI32.DLL_DeleteDC]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140077a5c
call qword [0x14012ce10]
jmp 0x140077a5c
mov r9, r13
mov r8d, 1
mov rdx, rbp
mov rcx, rdi
call fcn.14007738c
mov r12d, eax
jmp 0x140077a7e
lea r8, [0x140117c98]
call fcn.14005eebc
mov rsi, rax
test rax, rax
je 0x140077921
mov r9, r13
xor r8d, r8d
mov rdx, rbp
mov rcx, rsi
call fcn.14007738c
mov r12d, eax
test rsi, rsi
je 0x140077a7e
mov rcx, rsi
call qword [sym.imp.GDI32.DLL_DeleteObject]
test rdi, rdi
je 0x140077a8c
mov rcx, rdi
call qword [fcn.14012cd78]
mov eax, r12d
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x140093e40
Capabilities:
Query or enumerate registry key

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x10], rdx
push rbp
push rsi
push rdi
sub rsp, 0x80
xor ebx, ebx
lea rax, [r11 + 0x20]
xor r9d, r9d
mov qword [r11 - 0x40], rbx
mov qword [r11 - 0x48], rbx
mov qword [r11 - 0x50], rbx
mov qword [r11 - 0x58], rbx
mov qword [r11 - 0x60], rbx
mov qword [r11 - 0x68], rbx
mov qword [r11 - 0x70], rax
lea rax, [r11 - 0x38]
xor r8d, r8d
xor edx, edx
mov rbp, rcx
mov dword [rsp + 0x60], ebx
mov qword [r11 - 0x78], rax
mov dword [r11 + 0x20], ebx
call qword [sym.imp.ADVAPI32.DLL_RegQueryInfoKeyW]
mov edi, eax
cmp eax, ebx
jne 0x140093ff9
mov eax, dword [rsp + 0xb8]
lea rcx, [rsp + 0x78]
lea edx, [rax*4 + 8]
call fcn.14005fa8c
cmp dword [rsp + 0x60], ebx
mov esi, ebx
jle 0x140093fed
mov rbx, qword [rsp + 0x78]
xor ecx, ecx
mov eax, dword [rsp + 0xb8]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x28], rcx
shl eax, 2
mov dword [rsp + 0x64], eax
mov qword [rsp + 0x20], rcx
mov word [rbx], cx
lea r9, [rsp + 0x64]
mov rcx, rbp
mov r8, rbx
mov edx, esi
call qword [sym.imp.ADVAPI32.DLL_RegEnumKeyExW]
xor ecx, ecx
mov edi, eax
cmp eax, ecx
jne 0x140093fe1
cmp word [rbx], cx
je 0x140093fe1
mov rax, qword [rsp + 0xb0]
lea rcx, [rsp + 0x68]
mov rdx, qword [rax]
call fcn.14006ac98
lea rdx, [0x14010dc14]
lea rcx, [rsp + 0x68]
call fcn.14005fb54
lea rcx, [rsp + 0x68]
mov rdx, rbx
call fcn.14005fb54
mov rax, qword [rsp + 0xa8]
and qword [rsp + 0x30], 0
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
xor r9d, r9d
lea eax, [r9 + 4]
mov r8d, eax
mov edx, eax
call qword [sym.imp.ADVAPI32.DLL_SetNamedSecurityInfoW]
lea r11, [rsp + 0x70]
mov r9d, 0xf003f
xor r8d, r8d
mov rdx, rbx
mov rcx, rbp
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.DLL_RegOpenKeyExW]
mov rcx, qword [rsp + 0x70]
mov edi, eax
test rcx, rcx
je 0x140093fd5
mov rdx, qword [rsp + 0xa8]
lea r8, [rsp + 0x68]
call fcn.140093e40
mov rcx, qword [rsp + 0x70]
mov edi, eax
test rcx, rcx
je 0x140093fd5
call qword [sym.imp.ADVAPI32.DLL_RegCloseKey]
lea rcx, [rsp + 0x68]
call fcn.140057768
xor ecx, ecx
inc esi
cmp esi, dword [rsp + 0x60]
jl 0x140093ed1
lea rcx, [rsp + 0x78]
call fcn.140057768
mov eax, edi
mov rbx, qword [rsp + 0xa0]
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400ba140
Capabilities:
Create thread

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 r12
push r13
push r14
sub rsp, 0x430
mov esi, dword [rsp + 0x488]
mov rdi, rcx
mov rcx, rdx
mov r13d, esi
movsxd r12, r9d
mov rbp, rdx
and r13d, 1
and esi, 2
call qword [sym.imp.KERNEL32.DLL_lstrlenW]
mov ebx, eax
mov eax, 0xb4
lea rcx, [rsp + 0x58]
cmp ebx, eax
mov r8d, 0x3d0
cmovg ebx, eax
xor r14d, r14d
xor edx, edx
mov qword [rsp + 0x50], r14
call fcn.1400f3900
mov ecx, dword [rsp + 0x478]
mov rax, qword [rsp + 0x470]
mov dword [rsp + 0x354], ecx
mov ecx, 0x40000000
mov qword [rsp + 0x3e8], rax
mov eax, r14d
cmp esi, r14d
cmovne eax, ecx
movsxd rbx, ebx
lea rcx, [rsp + 0x19c]
mov dword [rsp + 0x32c], eax
mov rax, qword [rsp + 0x480]
lea r8, [rbx + rbx]
mov rdx, rbp
mov byte [rsp + 0x158], pe_nt_image_headers64
mov byte [rsp + 0x400], r14b
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x198], r12d
mov qword [rsp + 0x338], rdi
call fcn.14001c8fc
lea rcx, [0x14012dc08]
mov word [rsp + rbx*2 + 0x19c], r14w
call qword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
lea r11, [0x14012c9d0]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x28], r11
lea r8, [0x1400b98a8]
mov edx, 0x20000
xor ecx, ecx
mov dword [rsp + 0x20], 0x10000
call qword [sym.imp.KERNEL32.DLL_CreateThread]
mov rbx, rax
cmp rax, r14
je 0x1400ba29e
mov edi, 0x270f
cmp dword [rsp + 0x198], r12d
jne 0x1400ba29e
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_Sleep]
sub edi, 1
jns 0x1400ba270
jmp 0x1400ba294
mov ecx, 1
call qword [sym.imp.KERNEL32.DLL_Sleep]
cmp dword [rsp + 0x198], r12d
je 0x1400ba289
lea rcx, [0x14012dc08]
call qword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x38], 1
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], r14
cmp r13d, r14d
je 0x1400ba2e4
cmp rbx, r14
je 0x1400ba2f2
lea r9, [rsp + 0x30]
lea rcx, [0x14012d0c0]
mov rdx, r12
xor r8d, r8d
call fcn.14001ec3c
cmp rbx, r14
je 0x1400ba2f2
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
movzx eax, byte [rsp + 0x32c]
lea r11, [rsp + 0x430]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
ret
Function at 0x1400d6ec4
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x70
mov rbx, r9
mov sil, r8b
mov bpl, dl
mov rdi, rcx
test rcx, rcx
jne 0x1400d6ef0
xor eax, eax
jmp 0x1400d6f85
call qword [sym.imp.KERNEL32.DLL_lstrlenW]
and dword [rsp + 0x58], 0
movsx ecx, bpl
mov dword [rsp + 0x3c], eax
movsx eax, sil
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0xa0]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0xa8]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x48], eax
mov rax, qword [rsp + 0xb0]
mov dword [rsp + 0x38], ecx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x60], rax
test rbx, rbx
je 0x1400d6f6e
lea r8, [rsp + 0x20]
lea rdx, [0x14006ee70]
mov rcx, rbx
call qword [sym.imp.USER32.DLL_EnumChildWindows]
jmp 0x1400d6f80
lea rdx, [rsp + 0x20]
lea rcx, [0x14006ee70]
call qword [sym.imp.USER32.DLL_EnumWindows]
mov rax, qword [rsp + 0x28]
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x1400d6f9c
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
xor ebp, ebp
bt r8d, 0x1d
mov r15, r9
mov esi, r8d
mov r14, rcx
jae 0x1400d6fd6
mov rbp, qword [rsp + 0x80]
xor edi, edi
jmp 0x1400d6fde
mov rdi, qword [rsp + 0x80]
lea r13, [rdx + r9]
mov ebx, r8d
and esi, 0x1fffffff
mov r12, r13
shr r12, 0x20
and ebx, 0xc0000000
je 0x1400d7027
xor edx, edx
mov r8, rdi
lea ecx, [rdx + 4]
call qword [sym.imp.KERNEL32.DLL_OpenFileMappingW]
test rax, rax
jne 0x1400d7018
test ebx, ebx
jns 0x1400d7027
xor eax, eax
jmp 0x1400d70c4
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
bt ebx, 0x1e
jb 0x1400d7011
mov r9d, r12d
mov r8d, esi
xor edx, edx
mov rcx, r14
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], r13d
call qword [sym.imp.KERNEL32.DLL_CreateFileMappingW]
mov rdi, rax
test rax, rax
je 0x1400d7011
test ebx, ebx
je 0x1400d7076
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, 0xb7
test ebx, ebx
jns 0x1400d7061
cmp eax, ecx
jne 0x1400d706b
bt ebx, 0x1e
jae 0x1400d7076
cmp eax, ecx
jne 0x1400d7076
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x1400d7011
mov edx, esi
mov ecx, 1
mov r8, r15
and edx, 4
shr r8, 0x20
mov r9d, r15d
or edx, 8
shr edx, 1
cmp esi, 8
cmove edx, ecx
and qword [rsp + 0x20], 0
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov rbx, rax
call qword [sym.imp.KERNEL32.DLL_GetLastError]
test rbp, rbp
je 0x1400d70b8
mov qword [rbp], rdi
jmp 0x1400d70c1
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov rax, rbx
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1400d759c
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor ebx, ebx
mov rcx, qword [0x14012d2d8]
xor edx, edx
mov r8d, 0x408
call qword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov rdi, rax
cmp rax, rbx
jne 0x1400d75d4
mov ecx, 2
call fcn.14005f5d4
cmp eax, 4
je 0x1400d75a8
lea rcx, [rdi + 8]
mov dword [rdi + 4], 0xaa55
mov qword [rdi], 0x400
mov qword [0x14012e170], rcx
mov eax, ebx
mov edx, 8
test al, 1
je 0x1400d7601
shr eax, 1
xor eax, 0xedb88320
jmp 0x1400d7603
shr eax, 1
sub rdx, 1
jne 0x1400d75f4
inc ebx
mov dword [rcx], eax
add rcx, 4
cmp ebx, 0x100
jl 0x1400d75ed
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400d7624
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov r10, qword [0x14012e170]
mov rdi, r8
mov rsi, rdx
mov rbp, rcx
test r10, r10
jne 0x1400d7659
call fcn.1400d759c
mov r10, qword [0x14012e170]
mov r9b, dil
or ebx, 0xffffffff
xor r8d, r8d
and r9b, 7
je 0x1400d767d
movsx rax, r9b
sub rdi, rax
lea r8, [rdi - 0x18]
cmp qword [r8], 0
je 0x1400d767d
mov ebx, dword [r8 + 8]
test rsi, rsi
je 0x1400d76a0
movzx eax, byte [rbp]
movzx ecx, bl
inc rbp
xor rcx, rax
mov eax, ebx
mov ebx, dword [r10 + rcx*4]
shr eax, 8
xor ebx, eax
sub rsi, 1
jne 0x1400d7682
test r9b, 2
je 0x1400d76b5
mov eax, ebx
mov qword [r8], 1
mov qword [r8 + 8], rax
jmp 0x1400d76cf
not ebx
test rdi, rdi
je 0x1400d76cf
lea rdx, [0x14011b770]
mov r8d, ebx
mov rcx, rdi
call qword [sym.imp.USER32.DLL_wsprintfA]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400d807c
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
call qword [sym.imp.USER32.DLL_GetWindowTextLengthW]
lea r8d, [rax + 2]
mov rcx, rdi
mov ebx, eax
movsxd rdx, r8d
call fcn.14005fb18
mov r11, qword [rdi]
xor eax, eax
mov word [r11], ax
mov rdx, qword [rdi]
lea r8d, [rbx + 1]
mov rcx, rsi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.USER32.DLL_GetWindowTextW]

Function at 0x1400d8a78
Capabilities:
Enumerate gui resources

Disassembly:
push rbx
sub rsp, 0x20
and qword [rcx + 0x18], 0
mov rbx, rcx
call qword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
lea rcx, [0x1400d89e8]
mov rdx, rbx
mov dword [rbx + 0x10], eax
call qword [sym.imp.USER32.DLL_EnumWindows]
mov rax, qword [rbx + 0x18]
add rsp, 0x20
pop rbx
ret
Function at 0x1400d8de8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub rsp, 0x38
cmp dword [0x14012d7d0], 0
je 0x1400d8dff
cmp qword [0x14012e1b8], 0
jne 0x1400d8e5a
mov rcx, qword [0x14012ca58]
mov edx, 0x271b
mov r8d, 5
call qword [sym.imp.KERNEL32.DLL_FindResourceW]
mov rcx, qword [0x14012ca58]
mov rdx, rax
call qword [sym.imp.KERNEL32.DLL_LoadResource]
test rax, rax
je 0x1400d8e5a
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_LockResource]
test rax, rax
je 0x1400d8e5a
mov rcx, qword [0x14012ca58]
and qword [rsp + 0x20], 0
lea r9, [0x1400d8d90]
xor r8d, r8d
mov rdx, rax
call qword [sym.imp.USER32.DLL_DialogBoxIndirectParamW]
add rsp, 0x38
ret

Function at 0x1400d8f30
Capabilities:
Get file size

Disassembly:
sub rsp, 0x28
or qword [rsp + 0x38], 0xffffffffffffffff
lea rdx, [rsp + 0x3c]
call qword [sym.imp.KERNEL32.DLL_GetFileSize]
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x38]
add rsp, 0x28
ret

Function at 0x1400d9514
Capabilities:
Get token membership

Disassembly:
mov rax, rsp
sub rsp, 0x68
mov byte [rax + 0x10], 0
mov byte [rax + 0x11], 0
mov byte [rax + 0x12], 0
mov byte [rax + 0x13], 0
mov byte [rax + 0x14], 0
mov byte [rax + 0x15], 5
lea rax, [rax + 0x18]
lea rcx, [rsp + 0x78]
mov r9d, 0x220
mov qword [rsp + 0x50], rax
and dword [rsp + 0x48], 0
and dword [rsp + 0x40], 0
and dword [rsp + 0x38], 0
and dword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
mov r8d, 0x20
mov dl, 2
call qword [sym.imp.ADVAPI32.DLL_AllocateAndInitializeSid]
mov dword [rsp + 0x70], eax
test eax, eax
je 0x1400d95ae
mov rdx, qword [rsp + 0x80]
lea r8, [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.DLL_CheckTokenMembership]
neg eax
sbb ecx, ecx
and ecx, dword [rsp + 0x70]
mov dword [rsp + 0x70], ecx
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.DLL_FreeSid]
mov eax, dword [rsp + 0x70]
add rsp, 0x68
ret
Function at 0x1400ee2b8
Capabilities:
Encode data using xor

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 r12
sub rsp, 0x20
xor r12d, r12d
mov r9, rdx
mov rbx, rcx
cmp rdx, r12
je 0x1400ee3d4
cmp dword [rdx], r12d
jge 0x1400ee309
cmp dword [rdx + 4], r12d
jge 0x1400ee309
cmp dword [rdx + 8], r12d
jge 0x1400ee309
cmp dword [rdx + 0xc], r12d
jge 0x1400ee309
or eax, 0xffffffff
mov word [rcx + 0x9a], ax
jmp 0x1400ee3d4
mov r10d, r12d
mov eax, r10d
cdq
sub eax, edx
sar eax, 1
movsxd r8, eax
mov eax, r10d
inc r10d
cdq
and eax, 1
xor eax, edx
sub eax, edx
movsxd rcx, eax
mov eax, dword [r9]
add r9, 4
cmp r10d, 4
lea rdx, [rcx + r8*2 + 0x22]
mov dword [rbx + rdx*4], eax
jl 0x1400ee30c
lea rdi, [rbx + 0x78]
mov esi, 2
mov rcx, qword [rdi]
cmp rcx, r12
je 0x1400ee354
call qword [sym.imp.GDI32.DLL_DeleteObject]
mov qword [rdi], r12
add rdi, 8
sub rsi, 1
jne 0x1400ee346
mov ecx, dword [rbx + 0x8c]
cmp ecx, r12d
jl 0x1400ee376
call qword [sym.imp.GDI32.DLL_CreateSolidBrush]
mov qword [rbx + 0x78], rax
mov ecx, dword [rbx + 0x94]
cmp ecx, r12d
jl 0x1400ee38e
call qword [sym.imp.GDI32.DLL_CreateSolidBrush]
mov qword [rbx + 0x80], rax
cmp word [rbx + 0x9a], r12w
jge 0x1400ee3a0
mov word [rbx + 0x9a], r12w
mov eax, dword [rbx + 0x94]
cmp eax, r12d
jl 0x1400ee3d4
cmp eax, dword [rbx + 0x8c]
jne 0x1400ee3d4
mov eax, dword [rbx + 0x88]
cmp dword [rbx + 0x90], eax
jne 0x1400ee3d4
mov al, byte [rbx + 0xa4]
cmp al, r12b
jle 0x1400ee3d4
or al, 0x80
mov byte [rbx + 0xa4], al
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret

Function at 0x1400f2bb0
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x20
mov eax, 0xffdf
and cx, ax
mov eax, 0x41
cmp ax, cx
je 0x1400f2bd9
mov eax, 0x42
cmp ax, cx
je 0x1400f2bd9
mov eax, 0xfffffffe
jmp 0x1400f2c02
mov word [rsp + 0x38], cx
mov eax, 0x3a
lea rcx, [rsp + 0x38]
xor ebx, ebx
mov word [rsp + 0x3a], ax
mov word [rsp + 0x3c], bx
call qword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
cmp eax, 2
setne bl
mov eax, ebx
add rsp, 0x20
pop rbx
ret

Function at 0x1400f2cd8
Capabilities:
Create process on windows

Disassembly:
mov r11, rsp
sub rsp, 0x78
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov rax, qword [rsp + 0xc8]
mov qword [r11 - 0x30], rax
mov rax, qword [rsp + 0xc0]
mov qword [r11 - 0x38], rax
mov rax, qword [rsp + 0xb8]
mov qword [r11 - 0x40], rax
mov rax, qword [rsp + 0xb0]
mov qword [r11 - 0x48], rax
mov eax, dword [rsp + 0xa8]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.DLL_CreateProcessW]
mov dword [rsp + 0x50], eax
jmp 0x1400f2d3e
add rsp, 0x78
ret