joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400d9af0
Capabilities:
Set current directory

Disassembly:
mov r11, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
mov esi, r9d
mov r12d, r8d
mov r13, rdx
mov rbp, rcx
mov edi, 1
xor r14d, r14d
mov qword [r11 + 8], r14
mov qword [r11 - 0x40], rcx
mov rax, qword [rcx + 8]
mov qword [r11 - 0x38], rax
mov r10d, r14d
mov dword [r11 - 0x30], r14d
mov eax, dword [rcx + 0x10]
mov dword [rsp + 0x5c], eax
lea rcx, [r11 - 0x40]
mov qword [rbp + 8], rcx
test eax, eax
jle 0x1400d9c23
lea r15, [0x1401295d4]
nop
cmp r10d, esi
jl 0x1400d9bb9
mov rbx, qword [0x140169c00]
mov rcx, rbx
lea rdx, [0x14016e2e0]
mov r8d, 0x150
call fcn.140109100
mov dword [rbx + 0x3c], r14d
mov qword [0x140171e98], r14
cmp dword [0x14016fa48], 0
je 0x1400d9bb4
mov rax, qword [0x140169c30]
mov rcx, r15
test rax, rax
je 0x1400d9bae
mov rax, qword [rax]
test rax, rax
cmovne rcx, rax
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov r10d, dword [rsp + 0x58]
movsxd rcx, r10d
add rcx, rcx
mov rax, qword [rbp]
mov rcx, qword [rax + rcx*8]
mov dword [rsp + 0x30], r14d
lea rax, [rsp + 0x90]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r12d
mov r9, r13
lea r8, str.call
mov rdx, rcx
call fcn.1400d5720
test eax, eax
je 0x1400d9c20
cmp qword [rsp + 0x90], 0
jne 0x1400d9c19
mov r10d, dword [rsp + 0x58]
inc r10d
mov dword [rsp + 0x58], r10d
cmp r10d, dword [rsp + 0x5c]
jl 0x1400d9b60
jmp 0x1400d9c23
mov edi, 3
jmp 0x1400d9c23
mov edi, r14d
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
mov qword [rcx + 8], rdx
mov eax, edi
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1400db480
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x40
mov rbp, rdx
xor edx, edx
mov rdi, rcx
mov ebx, 1
call fcn.1400e7050
test al, al
jne 0x1400db588
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x78], r13
xor r13d, r13d
mov qword [rsp + 0x30], r13
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rdi
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1400db584
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbp
repne scasw ax, word [rdi]
mov eax, 0x5d
mov qword [rsp + 0x68], r12
not rcx
lea r9, [rsp + 0x70]
lea r8d, [rbx + 3]
dec rcx
lea rdx, [0x140151e90]
mov qword [rsp + 0x20], r13
mov r12d, ecx
lea edi, [rcx + rcx + 2]
mov rcx, rsi
mov word [rbp + r12*2], ax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400db553
cmp dword [rsp + 0x70], 4
jne 0x1400db553
lea r9, [rsp + 0x70]
mov r8d, edi
mov rdx, rbp
mov rcx, rsi
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400db553
cmp dword [rsp + 0x70], edi
je 0x1400db556
mov ebx, r13d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov word [rbp + r12*2], r13w
mov r12, qword [rsp + 0x68]
test eax, eax
cmove ebx, r13d
mov eax, ebx
mov rsi, qword [rsp + 0x60]
mov r13, qword [rsp + 0x78]
add rsp, 0x40
pop rdi
pop rbp
pop rbx
ret
mov eax, ebx
jmp 0x1400db572
mov eax, ebx
add rsp, 0x40
pop rdi
pop rbp
pop rbx
ret
Function at 0x1400dbf30
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov r11, rsp
push rbx
push rsi
push rdi
sub rsp, 0x240
xor esi, esi
lea rax, [r11 + 0x20]
lea r9, [r11 + 0x10]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
lea r8, [rsp + 0x40]
xor edx, edx
mov qword [rsp + 0x28], rsi
mov rdi, rcx
mov qword [rsp + 0x20], rsi
mov dword [r11 + 0x10], 0xff
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x1400dc03c
nop
mov rax, qword [0x140169c00]
lea rdx, [rsp + 0x40]
xor r8d, r8d
mov r9d, dword [rax + 0x110]
lea rax, [rsp + 0x270]
mov rcx, rdi
or r9d, 0x20019
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x1400dc049
mov rcx, qword [rsp + 0x270]
call fcn.1400dbf30
mov rcx, qword [rsp + 0x270]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x1400dc049
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, eax
test eax, eax
jne 0x1400dc049
lea rax, [rsp + 0x278]
lea r9, [rsp + 0x268]
lea r8, [rsp + 0x40]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x268], 0xff
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
jne 0x1400dbf80
xor eax, eax
add rsp, 0x240
pop rdi
pop rsi
pop rbx
ret
mov eax, ebx
add rsp, 0x240
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400dc060
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push rsi
push rdi
push r12
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x70], rbp
mov rsi, r9
mov rdi, r8
mov rbp, rdx
mov r12, rcx
test rdx, rdx
je 0x1400dc1b2
test r8, r8
je 0x1400dc09d
cmp word [r8], 0
jne 0x1400dc0a6
test r9, r9
je 0x1400dc1b2
mov rax, qword [0x140169c00]
mov r9d, dword [rax + 0x110]
or r9d, 0x2001f
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x1400dc1a2
mov rcx, qword [rsp + 0x68]
test rsi, rsi
jne 0x1400dc18c
call fcn.1400dbf30
mov ebx, eax
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x1400dc1a2
mov eax, dword [0x1401764d0]
test al, 1
jne 0x1400dc14d
or eax, 1
mov dword [0x1401764d0], eax
lea rcx, [0x140151e98]
call fcn.1400dd480
mov rbx, rax
lea rcx, str.advapi32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r11, rax
mov qword [0x1401764c8], rax
jmp 0x1400dc154
mov r11, qword [0x1401764c8]
mov rax, qword [0x140169c00]
mov r8d, dword [rax + 0x110]
test r8d, r8d
je 0x1400dc17c
test r11, r11
je 0x1400dc17c
xor r9d, r9d
mov rdx, rdi
mov rcx, rbp
call r11
mov ebx, eax
jmp 0x1400dc1a2
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, eax
jmp 0x1400dc1a2
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ebx, eax
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, 0xffffffff
jne 0x1400dc1b7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r11d, eax
jmp 0x1400dc1ba
mov ebx, 0x57
mov r11d, ebx
mov rax, qword [0x140169c00]
mov dword [rax + 0x40], r11d
test ebx, ebx
setne dl
mov rcx, r12
call fcn.14003ca30
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret
Function at 0x1400deee0
Capabilities:
Clear file content

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rdx, qword [rcx + 0x30]
xor edi, edi
mov rbx, rcx
test rdx, rdx
je 0x1400def1c
sub rdx, qword [rcx + 0x38]
mov eax, dword [rcx + 0xc]
mov r9, qword [rcx]
lea r8d, [rdi + 1]
sub rdx, rax
call qword [r9 + 0x28]
mov qword [rbx + 0x30], rdi
mov dword [rbx + 0xc], edi
mov r8d, dword [rbx + 0xc]
test r8d, r8d
je 0x1400def3b
cmp qword [rbx + 0x30], rdi
jne 0x1400def3b
mov rax, qword [rbx]
mov rdx, qword [rbx + 0x38]
mov rcx, rbx
call qword [rax + 0x20]
mov dword [rbx + 0xc], edi
mov rax, qword [rbx]
mov rcx, rbx
mov word [rbx + 0x2c], di
call qword [rax + 0x30]
mov r9, qword [rbx]
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
mov rdi, rax
call qword [r9 + 0x28]
test al, al
je 0x1400def9c
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x1400def9c
mov rax, qword [rbx]
cmp rsi, rdi
mov rcx, rbx
cmovl rdi, rsi
xor r8d, r8d
mov rdx, rdi
call qword [rax + 0x28]
mov r11, qword [rbx]
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp qword [r11 + gethostname]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
or rax, 0xffffffffffffffff
add rsp, 0x20
pop rdi
ret

Function at 0x1400dfaf0
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx + 0x40]
xor eax, eax
lea r9, [rsp + 0x40]
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x40]
add rsp, 0x38
ret
Function at 0x1400e2a50
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 8
mov r11d, r8d
mov r10, rdx
mov r9d, ecx
test rdx, rdx
jne 0x1400e2a69
xor eax, eax
add rsp, 8
ret
mov qword [rsp], rdi
not r9d
lea rdi, [0x14014b060]
cmp r11d, 8
jb 0x1400e2b61
mov qword [rsp + 0x10], rbx
mov rbx, r11
shr rbx, 3
nop dword [rax]
movzx ecx, byte [r10]
mov eax, r9d
shr r9d, 8
xor rcx, rax
add r10, 8
add r11d, 0xfffffff8
movzx eax, cl
movzx ecx, byte [r10 - 7]
mov edx, dword [rdi + rax*4]
xor edx, r9d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r10 - 6]
mov r8d, dword [rdi + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r10 - 5]
mov edx, dword [rdi + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r10 - 4]
mov r8d, dword [rdi + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r10 - 3]
mov edx, dword [rdi + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r10 - 2]
mov r8d, dword [rdi + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r10 - 1]
mov edx, dword [rdi + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
mov r9d, dword [rdi + rax*4]
xor r9d, edx
dec rbx
jne 0x1400e2a90
mov rbx, qword [rsp + 0x10]
test r11d, r11d
je 0x1400e2b8f
nop word [rax + rax]
movzx ecx, byte [r10]
mov eax, r9d
inc r10
xor rcx, rax
shr eax, 8
movzx edx, cl
mov r9d, dword [rdi + rdx*4]
xor r9d, eax
dec r11d
jne 0x1400e2b70
mov rdi, qword [rsp]
not r9d
mov eax, r9d
add rsp, 8
ret

Function at 0x1400e3380
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rsi, r8
mov rdi, r9
mov rbp, rdx
mov r10, rcx
imul esi, edx
cmp byte [r9], 0
je 0x1400e33d0
mov rdx, rcx
mov rcx, qword [rdi + 8]
lea r9, [rsp + 0x48]
mov r8d, esi
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400e33ca
mov byte [rdi + 0x10], 1
mov eax, dword [rsp + 0x48]
jmp 0x1400e3401
mov edx, dword [r9 + 0x2c]
mov ecx, dword [r9 + 0x28]
mov qword [rsp + 0x40], rbx
lea eax, [rdx + rsi]
cmp eax, ecx
jbe 0x1400e33e8
sub ecx, edx
mov esi, ecx
add rdx, qword [r9 + 0x20]
mov r8d, esi
mov rcx, r10
call fcn.140109100
add dword [rdi + 0x2c], esi
mov rbx, qword [rsp + 0x40]
mov eax, esi
mov rsi, qword [rsp + 0x58]
xor edx, edx
div rbp
mov rbp, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x1400e3420
Capabilities:
Read file on windows

Disassembly:
push rbx
push r12
sub rsp, 0x38
cmp byte [rcx], 0
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x30], rdi
mov edi, 1
mov r12, rdx
mov rbx, rcx
je 0x1400e3470
mov rcx, qword [rcx + 8]
lea r9, [rsp + 0x60]
lea rdx, [rsp + 0x50]
mov r8d, edi
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400e346a
mov byte [rbx + 0x10], dil
mov esi, dword [rsp + 0x60]
jmp 0x1400e34aa
mov qword [rsp + 0x58], rbp
mov ebp, dword [rcx + 0x2c]
mov ecx, dword [rcx + 0x28]
lea eax, [rbp + 1]
cmp eax, ecx
jbe 0x1400e3486
mov edi, ecx
sub edi, ebp
mov rdx, rbp
lea rcx, [rsp + 0x50]
mov r8d, edi
add rdx, qword [rbx + 0x20]
mov esi, edi
call fcn.140109100
lea r11d, [rbp + rdi]
mov rbp, qword [rsp + 0x58]
mov dword [rbx + 0x2c], r11d
mov rdi, qword [rsp + 0x30]
cmp esi, 1
mov rsi, qword [rsp + 0x68]
jne 0x1400e34cc
movzx eax, byte [rsp + 0x50]
mov dword [r12], eax
xor eax, eax
add rsp, 0x38
pop r12
pop rbx
ret
cmp byte [rbx], 0
je 0x1400e34c2
cmp byte [rbx + 0x10], 0
je 0x1400e34c2
or eax, 0xffffffff
add rsp, 0x38
pop r12
pop rbx
ret
Function at 0x1400e4400
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
test rcx, rcx
jne 0x1400e441e
mov eax, 0xffffff9a
add rsp, 0x28
pop rdi
pop rsi
ret
cmp dword [rcx + 0x1c], 0
je 0x1400e4412
cmp qword [rcx + 0x80], 0
je 0x1400e4433
call fcn.1400e49a0
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x58]
mov rcx, rdi
call fcn.1400e4130
test eax, eax
je 0x1400e445a
mov eax, 0xffffff99
add rsp, 0x28
pop rdi
pop rsi
ret
mov ecx, 0xb0
mov qword [rsp + 0x48], rbx
call fcn.1401084ac
mov rbx, rax
test rax, rax
jne 0x1400e4480
lea eax, [rbx - 0x68]
mov rbx, qword [rsp + 0x48]
add rsp, 0x28
pop rdi
pop rsi
ret
mov ecx, 0x4000
mov qword [rsp + 0x20], rbp
call fcn.1401084ac
mov ecx, dword [rsp + 0x40]
xor ebp, ebp
mov dword [rbx + 0x68], ecx
mov ecx, dword [rsp + 0x50]
mov qword [rbx], rax
mov dword [rbx + 0x70], ebp
mov dword [rbx + 0x6c], ecx
test rax, rax
jne 0x1400e44c6
mov rcx, rbx
call fcn.140108f48
mov rbx, qword [rsp + 0x48]
lea eax, [rbp - 0x68]
mov rbp, qword [rsp + 0x20]
add rsp, 0x28
pop rdi
pop rsi
ret
mov dword [rbx + 0x64], ebp
mov eax, dword [rdi + 0x40]
mov ecx, ebp
cmp dword [rdi + 0x38], ecx
mov dword [rbx + 0x78], eax
mov dword [rbx + 0x74], ebp
mov eax, dword [rdi + 0x38]
sete cl
mov dword [rbx + 0x90], eax
mov rax, qword [rdi]
mov qword [rbx + 0x88], rax
mov eax, dword [rdi + 0x10]
mov dword [rbx + 0x24], ebp
mov dword [rbx + 0x94], eax
test ecx, ecx
jne 0x1400e451d
lea rcx, [rbx + 8]
mov qword [rbx + 0x38], rbp
mov qword [rbx + 0x40], rbp
mov qword [rbx + 0x48], rbp
call fcn.1400e2e40
test eax, eax
jne 0x1400e451d
mov dword [rbx + 0x64], 1
mov eax, dword [rdi + 0x44]
mov dword [rbx + 0x7c], eax
mov eax, dword [rdi + 0x48]
mov dword [rbx + 0x80], eax
movzx eax, byte [rdi + 0x34]
and al, 1
mov byte [rbx + 0x98], al
mov eax, dword [rdi + 0x34]
shr eax, 3
test al, 1
je 0x1400e4548
movzx eax, byte [rdi + 0x3d]
jmp 0x1400e454c
movzx eax, byte [rdi + 0x43]
mov byte [rbx + 0xac], al
movzx eax, byte [rbx + 0x98]
mov dword [rbx + 0x9c], 0x12345678
neg al
mov dword [rbx + 0xa0], 0x23456789
mov dword [rbx + 0xa4], 0x34567890
sbb ecx, ecx
and ecx, 0xc
mov dword [rbx + 0xa8], ecx
test rsi, rsi
je 0x1400e45f2
lea r8, [0x14014b060]
movzx eax, byte [rsi]
test al, al
je 0x1400e45f2
mov edx, dword [rbx + 0x9c]
mov ecx, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
mov ecx, dword [r8 + rax*4]
xor ecx, edx
mov edx, dword [rbx + 0xa4]
movzx eax, cl
mov dword [rbx + 0x9c], ecx
movzx ecx, dl
add eax, dword [rbx + 0xa0]
shr edx, 8
imul eax, eax, 0x8088405
inc eax
mov dword [rbx + 0xa0], eax
movzx eax, byte [rbx + 0xa3]
xor rcx, rax
mov eax, dword [r8 + rcx*4]
xor eax, edx
inc rsi
mov dword [rbx + 0xa4], eax
jne 0x1400e4590
mov ecx, dword [rdi + 0x7c]
mov eax, dword [rsp + 0x58]
mov dword [rbx + 0x10], ebp
mov rbp, qword [rsp + 0x20]
lea ecx, [rcx + rax + 0x1e]
xor eax, eax
mov dword [rbx + 0x60], ecx
mov qword [rdi + 0x80], rbx
mov rbx, qword [rsp + 0x48]
add rsp, 0x28
pop rdi
pop rsi
ret
Function at 0x1400e4b50
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push r12
sub rsp, 0x20
cmp qword [rcx], 0
mov ebp, r8d
mov r12, rdx
mov rbx, rcx
jne 0x1400e4c2e
cmp dword [rcx + 8], 0xffffffff
jne 0x1400e4c2e
lea rdx, [rcx + 0x250]
mov ecx, 0x104
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbx + 0x250]
repne scasw ax, word [rdi]
not rcx
movzx eax, word [rbx + rcx*2 + 0x24c]
cmp ax, 0x5c
je 0x1400e4bd9
cmp ax, 0x2f
je 0x1400e4bd9
xor eax, eax
lea rdi, [rbx + 0x250]
or rcx, 0xffffffffffffffff
repne scasw ax, word [rdi]
mov eax, dword [0x14012fb84]
mov dword [rdi - 2], eax
mov ecx, gethostbyname
call fcn.140109b60
xor edi, edi
mov rcx, rax
mov word [rax], pe_nt_image_headers64
mov byte [rax + 0x18], 0
mov qword [rax + 0x20], r12
mov dword [rax + 0x28], ebp
mov dword [rax + 0x2c], edi
mov dword [rax + 0x14], edi
call fcn.1400e3760
mov rsi, qword [rsp + 0x30]
test rax, rax
mov ecx, 0x200
mov qword [rbx], rax
cmove edi, ecx
mov eax, edi
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov eax, 0x1000000
add rsp, 0x20
pop r12
ret

Function at 0x1400e7050
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 0x1400e7138
cmp word [rcx], 0
je 0x1400e7138
lea rdx, [0x140152580]
mov r8d, 4
call fcn.14010a798
mov r8, rbx
test eax, eax
jne 0x1400e7093
lea r8, [rbx + 8]
test r8, r8
je 0x1400e70d0
movzx edx, word [r8]
test dx, dx
je 0x1400e70d0
lea rcx, [0x1401380a4]
mov eax, 0x3f
nop dword [rax]
cmp dx, ax
je 0x1400e70fd
movzx eax, word [rcx + 2]
add rcx, 2
test ax, ax
jne 0x1400e70b0
movzx edx, word [r8 + 2]
add r8, 2
test dx, dx
jne 0x1400e70a1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov r11d, eax
test rdi, rdi
je 0x1400e70e3
mov dword [rdi], eax
xor eax, eax
cmp r11d, 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 0x1400e7138
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
test rdi, rdi
je 0x1400e7125
mov eax, dword [rsp + 0x20]
mov dword [rdi], eax
mov al, 1
mov rbx, qword [rsp + 0x280]
add rsp, 0x270
pop rdi
ret
xor al, al
mov rbx, qword [rsp + 0x280]
add rsp, 0x270
pop rdi
ret

Function at 0x1400e7930
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x10020
call fcn.1401110b0
sub rsp, rax
mov rdi, rdx
lea rdx, [rsp + 0x20]
mov r8d, 0x7fff
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ebx, eax
test eax, eax
je 0x1400e7984
lea r8d, [rax + 1]
lea rdx, [rsp + 0x20]
mov rcx, rdi
add r8, r8
call fcn.140109100
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 0x1400e79a0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rdi, r8
lea rax, [rsp + 0x58]
mov rsi, rdx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdx
mov rdx, rcx
mov rcx, qword [rdi]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x58], 0x208
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rdi]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x1400e7a60
mov ecx, dword [rsp + 0x58]
test ecx, ecx
je 0x1400e7a60
shr ecx, 1
dec ecx
mov dword [rsp + 0x58], ecx
cmp word [rsi + rcx*2], bx
jne 0x1400e7a36
test ecx, ecx
je 0x1400e7a24
nop word [rax + rax]
lea edx, [rcx - 1]
cmp word [rsi + rdx*2], 0
jne 0x1400e7a24
mov ecx, edx
mov dword [rsp + 0x58], edx
test edx, edx
jne 0x1400e7a10
mov eax, ecx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
inc ecx
mov dword [rsp + 0x58], ecx
cmp ecx, 0x104
jae 0x1400e7a60
mov eax, ecx
xor ecx, ecx
mov word [rsi + rax*2], cx
mov eax, dword [rsp + 0x58]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov rbx, qword [rsp + 0x40]
xor ecx, ecx
xor eax, eax
mov word [rsi], cx
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x1400e8280
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
xor ebx, ebx
mov r13d, r9d
mov edi, r8d
mov r12d, edx
mov r15, rcx
mov r14d, ebx
test rcx, rcx
je 0x1400e82be
lea r8d, [rbx + 2]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
jmp 0x1400e82c5
mov rsi, qword [0x14016f850]
test rsi, rsi
je 0x1400e847a
mov qword [rsp + 0x80], rbp
lea rbp, [0x14017123c]
test r12d, r12d
jns 0x1400e82ee
movzx eax, r12w
neg ax
movzx edx, ax
jmp 0x1400e8326
mov eax, 1
test r12d, r12d
lea r9, [rsp + 0x40]
cmovne eax, r12d
lea r8, [0x1400e8260]
mov edx, SafeArrayGetElemsize
mov rcx, rsi
mov dword [rsp + 0x44], ebx
mov qword [rsp + 0x48], rbp
mov dword [rsp + 0x40], eax
call qword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
mov rdx, qword [rsp + 0x48]
cmp rdx, rbp
je 0x1400e8443
mov r8d, SafeArrayGetElemsize
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x1400e8443
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1400e8443
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbp, rax
test rax, rax
je 0x1400e8443
cmp edi, 0xffffffff
cmove edi, r13d
test edi, edi
jne 0x1400e8387
lea ecx, [rdi + 0xb]
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov edi, eax
movzx eax, word [rbp + 4]
lea rcx, [rbp + 6]
cmp eax, 1
jle 0x1400e83d4
lea r8, [rcx + 0xe]
dec eax
mov r9, r8
mov r10d, eax
movzx eax, byte [r8]
movzx edx, byte [rcx]
cmp al, dl
jbe 0x1400e83b7
movzx eax, dl
mov edx, ebx
cmp eax, edi
setl dl
jmp 0x1400e83c1
movzx eax, al
mov edx, ebx
cmp eax, edi
setge dl
test edx, edx
cmovne rcx, r9
add r9, 0xe
add r8, 0xe
dec r10
jne 0x1400e83a0
movzx edx, word [rcx + 0xc]
mov r8d, 3
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
je 0x1400e8443
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1400e8443
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbp, rax
test rax, rax
je 0x1400e8443
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rsp + 0x30], ebx
mov r9d, 0x30000
mov r8d, 1
mov rcx, rbp
mov edx, eax
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.USER32.dll_CreateIconFromResourceEx]
mov r14, rax
mov rcx, qword [rsp + 0xa0]
mov rbp, qword [rsp + 0x80]
test rcx, rcx
je 0x1400e8462
test r14, r14
je 0x1400e8462
mov qword [rcx], rsi
jmp 0x1400e8470
test r15, r15
je 0x1400e8470
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test r14, r14
je 0x1400e847a
mov rax, r14
jmp 0x1400e849c
test r12d, r12d
jle 0x1400e8486
lea ebx, [r12 - 1]
jmp 0x1400e848e
cmp r12d, 0xffffffff
cmovl ebx, r12d
mov r8d, ebx
mov rdx, r15
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ExtractIconW]
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret