joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14009c260
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
push rbp
push rdi
push r12
push r14
push r15
sub rsp, 0x40
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x30], rbx
mov r14, rdx
mov qword [rbp + 0x38], rsi
mov rbx, rcx
mov esi, 1
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14009c354
xor r12d, r12d
xor r9d, r9d
mov qword [rsp + 0x30], r12
xor r8d, r8d
mov dword [rsp + 0x28], r12d
mov edx, 0x40000000
mov rcx, rbx
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x14009c354
mov rbx, 0xffffffffffffffff
nop dword [rax]
cmp word [r14 + rbx*2 + 2], r12w
lea rbx, [rbx + 1]
jne 0x14009c2d0
lea edx, [rbx + 4]
lea eax, [rdx + rdx]
mov ecx, eax
add rax, 0xf
cmp rax, rcx
ja 0x14009c2f7
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.1400de6f0
sub rsp, rax
lea r8, str.__s_
mov r9, r14
lea rdi, [rsp + 0x40]
mov rcx, rdi
call fcn.1400a0ee0
lea ebx, [rbx*2 + 6]
mov qword [rsp + 0x20], r12
mov r8d, ebx
lea r9, [rbp + 0x40]
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14009c342
cmp dword [rbp + 0x40], ebx
je 0x14009c345
mov esi, r12d
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
cmove esi, r12d
mov rbx, qword [rbp + 0x30]
mov eax, esi
mov rsi, qword [rbp + 0x38]
mov rsp, rbp
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x14009ceb0
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
mov dword [r11 + 0x10], 0xff
lea rax, [r11 + 0x20]
xor edx, edx
mov qword [rsp + 0x38], rax
lea r9, [r11 + 0x10]
mov qword [rsp + 0x30], rsi
lea r8, [rsp + 0x40]
mov qword [rsp + 0x28], rsi
mov rdi, rcx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x14009cfbc
nop
mov rax, qword [0x1401241d8]
lea rdx, [rsp + 0x40]
xor r8d, r8d
mov rcx, rdi
mov r9d, dword [rax + 0xb0]
lea rax, [rsp + 0x270]
or r9d, 0x20019
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x14009cfc9
mov rcx, qword [rsp + 0x270]
call fcn.14009ceb0
mov rcx, qword [rsp + 0x270]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x14009cfc9
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, eax
test eax, eax
jne 0x14009cfc9
lea rax, [rsp + 0x278]
mov dword [rsp + 0x268], 0xff
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x268]
mov qword [rsp + 0x30], rsi
lea r8, [rsp + 0x40]
mov qword [rsp + 0x28], rsi
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
jne 0x14009cf00
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 0x14009eab0
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx + 0x40]
lea r9, [rsp + 0x40]
xor eax, eax
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 0x14009eae0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx + 0x40]
lea r9, [rsp + 0x40]
xor eax, eax
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rsp + 0x40]
add rsp, 0x38
ret

Function at 0x14009eb70
Capabilities:
Get file size

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 0x40]
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
xor ecx, ecx
test eax, eax
cmovne rcx, qword [rsp + 0x30]
mov rax, rcx
add rsp, 0x28
ret

Function at 0x1400a2760
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x10020
call fcn.1400de6f0
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 0x1400a27c9
lea rcx, [rbx + 1]
cmp rcx, 0x7fff
ja 0x1400a27c9
lea r8, [rbx*2 + 2]
mov rcx, rdi
lea rdx, [rsp + 0x20]
call fcn.1400e20f0
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 0x1400a6460
Capabilities:
Check for time delay via gettickcount
Terminate process

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
xor edi, edi
mov qword [rsp + 0x60], rbp
xor r9d, r9d
mov ebp, edx
mov rbx, rcx
lea edx, [rdi + 0x10]
test r8b, r8b
je 0x1400a64ee
lea rax, [rsp + 0x78]
xor r8d, r8d
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x1f4
mov dword [rsp + 0x20], 2
call qword [sym.imp.USER32.dll_SendMessageTimeoutW]
test rax, rax
jne 0x1400a64f7
lea rdx, [rsp + 0x70]
mov dword [rsp + 0x70], edi
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov r8d, dword [rsp + 0x70]
test r8d, r8d
je 0x1400a64f7
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
je 0x1400a64f7
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400a64f7
xor r8d, r8d
call qword [sym.imp.USER32.dll_PostMessageW]
test ebp, ebp
cmovns edi, ebp
mov rbp, qword [rsp + 0x60]
test edi, edi
je 0x1400a655b
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, 1
mov ecx, 0x8000012f
mov esi, eax
call fcn.1400016f0
mov rcx, rbx
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1400a655b
add edi, esi
nop dword [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, edi
sub ecx, eax
cmp ecx, 5
jle 0x1400a655b
mov edx, 1
mov ecx, 0x8000012f
call fcn.1400016f0
mov rcx, rbx
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x1400a6530
mov rax, rbx
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400a8400
Capabilities:
Get graphical window text

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0xb8]
test rcx, rcx
je 0x1400a84dd
mov eax, dword [rbx]
test eax, eax
je 0x1400a84dd
mov qword [rsp + 0x38], rsi
xor esi, esi
mov qword [rsp + 0x40], rdi
test al, 1
jne 0x1400a843c
mov rax, qword [rbx + 0x38]
cmp word [rax], si
je 0x1400a845a
mov r8d, 0x7fff
lea rdx, [rbx + 0xc4]
call qword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jne 0x1400a845a
mov word [rbx + 0xc4], si
test byte [rbx], 4
je 0x1400a8473
mov rcx, qword [rbx + 0xb8]
lea rdx, [rbx + 0xc0]
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test byte [rbx], 0x20
je 0x1400a84ae
mov rcx, qword [rbx + 0xb8]
lea rdx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x1400a84ae
movzx r9d, byte [rbx + 0x78]
lea rdx, [rbx + 0x102c4]
mov ecx, dword [rsp + 0x30]
call fcn.140031bb4
test eax, eax
jne 0x1400a84ae
mov word [rbx + 0x102c4], si
test byte [rbx], 8
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
je 0x1400a84dd
mov rcx, qword [rbx + 0xb8]
lea rdx, [rbx + 0x100c2]
mov r8d, 0x101
add rsp, 0x20
pop rbx
jmp qword [sym.imp.USER32.dll_GetClassNameW]
add rsp, 0x20
pop rbx
ret

Function at 0x1400a8990
Capabilities:
Check for foreground window switch
Check for time delay via gettickcount
Get graphical window text
Log keystrokes via polling

Disassembly:
sub rsp, 0x38
cmp qword [0x14012ae58], 0
mov rax, qword [0x1401241d8]
mov byte [rax + 0x7f], 1
je 0x1400a8a68
movzx r8d, byte [0x14012ad79]
mov qword [rsp + 0x30], rbx
movzx eax, r8b
and al, 0xc0
neg al
sbb ecx, ecx
and ecx, 8
mov edx, ecx
or edx, 1
test r8b, 0xc
cmove edx, ecx
mov ecx, edx
or ecx, 4
test r8b, 0x30
cmove ecx, edx
mov r9d, ecx
or r9d, 2
test r8b, 3
cmove r9d, ecx
mov eax, r9d
and al, 2
neg al
sbb al, al
and al, 3
movzx edx, al
movzx eax, dl
or al, 0x30
test r9b, 4
movzx ebx, al
cmove ebx, edx
or bl, 0xcc
not bl
and bl, byte [0x14012ad77]
je 0x1400a8a63
cmp r9d, 8
jne 0x1400a8a46
movzx r8d, word [0x140124b94]
xor r9d, r9d
movzx edx, byte [reloc.OLEAUT32.dll_SafeArrayGetElemsize]
mov dword [rsp + 0x28], 0xffc3d44d
mov byte [rsp + 0x20], 0
lea ecx, [r9 + 2]
call fcn.14001fac0
mov dword [rsp + 0x28], 0xffc3d44d
xor r9d, r9d
xor r8d, r8d
mov byte [rsp + 0x20], 0
movzx edx, bl
xor ecx, ecx
call fcn.140021df0
mov rbx, qword [rsp + 0x30]
mov ecx, 0x4bf
call qword [sym.imp.USER32.dll_GetQueueStatus]
shr eax, 0x10
test ax, ax
je 0x1400a8a8c
mov edx, 1
lea ecx, [rdx - 2]
add rsp, 0x38
jmp fcn.1400016f0
add rsp, 0x38
ret
Function at 0x1400a8e80
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x104f8
call fcn.1400de6f0
sub rsp, rax
xor r9d, r9d
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x30], r9
mov qword [rsp + 0x38], r9
lea rax, [0x140100be0]
mov qword [rsp + 0x58], rax
mov byte [rsp + 0x99], r9b
mov dword [rsp + 0x9c], r9d
xorps xmm0, xmm0
movdqa xmmword [rsp + 0xa0], xmm0
mov qword [rsp + 0xb0], r9
mov dword [rsp + 0xb8], r9d
movdqa xmmword [rsp + 0xd0], xmm0
mov rax, qword [rcx + 0x10]
mov qword [rsp + 0xc0], rax
mov dword [rsp + 0xc8], edx
mov dword [rsp + 0xcc], r8d
lea rdx, [rsp + 0x20]
lea rcx, [0x1400a9680]
call qword [sym.imp.USER32.dll_EnumWindows]
cmp qword [rsp + 0xa0], 0
je 0x1400a8f35
mov rax, qword [0x1401241d8]
mov ecx, dword [rax + 0x90]
cmp ecx, 0xffffffff
jle 0x1400a8f35
mov edx, 1
call fcn.1400016f0
nop
mov rcx, qword [rsp + 0x30]
call fcn.1400c50b8
add rsp, 0x104f8
ret
Function at 0x1400a8f50
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x103f0]
mov eax, 0x104f0
call fcn.1400de6f0
sub rsp, rax
movzx r14d, dl
mov rdi, rcx
cmp qword [rcx + 0x10], 0
jne 0x1400a8f8e
xor eax, eax
jmp 0x1400a9174
mov byte [rcx], 1
xor ebx, ebx
cmp qword [0x14012c628], rdi
je 0x1400a8fa9
mov qword [0x14012c628], rdi
mov dword [0x14012c638], ebx
cmp qword [0x14012c630], rbx
jne 0x1400a8fcc
mov ecx, 0xfa0
call fcn.14009d6e0
test rax, rax
je 0x1400a9191
mov qword [0x14012c630], rax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rsi, rax
mov r8, qword [0x1401241d8]
sub r8, 0xffffffffffffff80
mov rdx, rax
mov rcx, rdi
call fcn.1400a93e0
mov r15, rax
test rax, rax
jne 0x1400a8ffd
mov ecx, ebx
mov dword [0x14012c638], ebx
jmp 0x1400a9003
mov ecx, dword [0x14012c638]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rbx
mov dword [rbp - 0x64], ebx
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x40], rbx
xorps xmm1, xmm1
movdqa xmmword [rbp - 0x30], xmm1
test r14b, r14b
je 0x1400a9032
test r15, r15
mov byte [rbp - 0x67], 0
je 0x1400a9036
mov byte [rbp - 0x67], 1
mov r8, qword [0x14012c630]
mov qword [rbp - 0x50], r8
mov dword [rbp - 0x48], ecx
mov rax, qword [0x1401241d8]
lea rdx, [0x140100be0]
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rdx
mov qword [rsp + 0x70], rdx
test rax, rax
je 0x1400a9076
sub rax, 0xffffffffffffff80
mov qword [rsp + 0x28], rax
jmp 0x1400a907b
mov qword [rsp + 0x28], rbx
mov qword [rbp - 0x78], rdi
mov dword [rsp + 0x20], reloc.WSOCK32.dll_recv
test ecx, ecx
setg dil
nop dword [rax]
test r15, r15
je 0x1400a90c6
mov edx, ebx
test ecx, ecx
jle 0x1400a90af
mov rax, r8
nop
cmp qword [rax], rsi
je 0x1400a90c6
inc edx
add rax, 8
cmp edx, ecx
jl 0x1400a90a0
cmp ecx, 0x1f4
jge 0x1400a90c6
movsxd rax, ecx
mov qword [r8 + rax*8], rsi
inc ecx
mov dword [0x14012c638], ecx
mov dword [rbp - 0x48], ecx
lea rdx, [rsp + 0x20]
lea rcx, [0x1400a7120]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rcx, qword [rbp - 0x60]
test rcx, rcx
jne 0x1400a90fd
test dil, dil
je 0x1400a9167
mov ecx, ebx
mov dword [0x14012c638], ebx
xor dil, dil
mov r8, qword [0x14012c630]
jmp 0x1400a9090
xor edx, edx
call fcn.1400a6130
mov ecx, ebx
mov rbx, qword [rbp - 0x60]
mov r8, qword [0x14012c630]
movsxd rdx, dword [0x14012c638]
test edx, edx
jle 0x1400a912f
mov rax, r8
nop
cmp qword [rax], rbx
je 0x1400a9147
inc ecx
add rax, 8
cmp ecx, edx
jl 0x1400a9120
cmp edx, 0x1f4
jge 0x1400a9147
mov qword [r8 + rdx*8], rbx
inc edx
mov dword [0x14012c638], edx
mov rbx, qword [rbp - 0x60]
mov rax, qword [0x1401241d8]
mov ecx, dword [rax + 0x90]
cmp ecx, 0xffffffff
jle 0x1400a9167
mov edx, 1
call fcn.1400016f0
mov rbx, qword [rbp - 0x60]
mov rcx, qword [rsp + 0x30]
call fcn.1400c50b8
mov rax, rbx
lea r11, [rsp + 0x104f0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.140010e40
int3
Function at 0x1400a91a0
Capabilities:
Enumerate gui resources
Find taskbar

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x104f0
call fcn.1400de6f0
sub rsp, rax
movzx ebp, dl
mov rdi, rcx
mov byte [rcx], 0
xor ebx, ebx
cmp qword [0x14012c628], rcx
je 0x1400a91de
mov qword [0x14012c628], rcx
mov dword [0x14012c638], ebx
cmp qword [0x14012c630], rbx
jne 0x1400a9201
mov ecx, 0xfa0
call fcn.14009d6e0
test rax, rax
je 0x1400a93d9
mov qword [0x14012c630], rax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rsi, rax
mov edx, 4
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindow]
test rax, rax
je 0x1400a9236
nop dword [rax]
mov rsi, rax
mov edx, 4
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindow]
test rax, rax
jne 0x1400a9220
mov r8, qword [0x1401241d8]
sub r8, 0xffffffffffffff80
mov rdx, rsi
mov rcx, rdi
call fcn.1400a93e0
test rax, rax
je 0x1400a925b
mov ecx, ebx
mov dword [0x14012c638], ebx
jmp 0x1400a9261
mov ecx, dword [0x14012c638]
mov dword [rsp + 0x20], ebx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rbx
lea rax, [0x140100be0]
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x9c], ebx
xorps xmm0, xmm0
movdqa xmmword [rsp + 0xa0], xmm0
xorps xmm1, xmm1
movdqa xmmword [rsp + 0xd0], xmm1
test bpl, bpl
je 0x1400a92ab
test ecx, ecx
mov byte [rsp + 0x99], 0
je 0x1400a92b3
mov byte [rsp + 0x99], 1
mov rax, qword [0x14012c630]
mov qword [rsp + 0xb0], rax
mov dword [rsp + 0xb8], ecx
mov rax, qword [rdi + 0x10]
mov qword [rsp + 0xc0], rax
lea rdx, [rsp + 0x20]
lea rcx, [0x1400a9500]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rcx, qword [rsp + 0xa0]
test rcx, rcx
je 0x1400a9362
call qword [sym.imp.USER32.dll_GetLastActivePopup]
mov rcx, rax
xor edx, edx
call fcn.1400a6130
mov rdx, qword [rsp + 0xa0]
mov r8, qword [0x14012c630]
movsxd rcx, dword [0x14012c638]
test ecx, ecx
jle 0x1400a9330
mov rax, r8
cmp qword [rax], rdx
je 0x1400a9344
inc ebx
add rax, 8
cmp ebx, ecx
jl 0x1400a9321
cmp ecx, 0x1f4
jge 0x1400a9344
mov qword [r8 + rcx*8], rdx
inc ecx
mov dword [0x14012c638], ecx
mov rax, qword [0x1401241d8]
mov ecx, dword [rax + 0x90]
cmp ecx, 0xffffffff
jle 0x1400a93b6
mov edx, 1
call fcn.1400016f0
jmp 0x1400a93b6
mov eax, dword [0x14012c638]
test eax, eax
je 0x1400a939c
cmp eax, 1
setg al
mov dword [0x14012c638], ebx
test al, al
je 0x1400a93b6
mov rax, qword [0x14012c630]
mov qword [rax], rsi
mov dword [0x14012c638], 1
xor edx, edx
mov rcx, rdi
call fcn.1400a91a0
jmp 0x1400a93b6
xor edx, edx
lea rcx, str.Shell_TrayWnd
call qword [sym.imp.USER32.dll_FindWindowW]
mov rcx, rax
xor edx, edx
call fcn.1400a6130
nop
mov rcx, qword [rsp + 0x30]
call fcn.1400c50b8
lea r11, [rsp + 0x104f0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.140010e40
int3
Function at 0x1400bec9c
Capabilities:
Parse pe header

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

Function at 0x1400d35cc
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1400d3437
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400d3437
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400d3437
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400d3437
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400d3437
cmp dword [rcx + 0x84], 0xe
jbe 0x1400d3437
cmp dword [rcx + 0xf8], 0
je 0x1400d3437
mov ecx, ebx
call fcn.1400d34e8
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1400d32c4
nop
cmp dword [rbp + 0x20], 0
je 0x1400d3485
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400d3490
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400d33c8
Function at 0x1400d8edc
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400d8f63
mov rsi, rbx
cmp word [rax], bp
je 0x1400d8f22
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400d8f0c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400d8f08
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400d5ad8
mov rdi, rax
test rax, rax
je 0x1400d8f50
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400e20f0
mov rbp, rdi
xor ecx, ecx
call fcn.1400d5a9c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400de620
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400de648
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400de648
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140002e40
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x140002e9d
lea rbx, [0x1400be9b0]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x140002e84
cmp r10, 2
jb 0x140002e84
cmp byte [r9], r8b
jne 0x140002e84
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x140002e60
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x140002edf
lea rbx, [0x1400be9b0]
cmp r8b, 0x23
jne 0x140002ec3
cmp byte [r9], r8b
jne 0x140002ec3
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x140002eb0
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x140003020
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x14000303a
mov qword [r8], 0
lea rdx, [0x1400be518]
call fcn.140002ef0
mov rbx, rax
test rax, rax
jne 0x14000305a
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x140003133
xor edx, edx
mov r8d, 2
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140003133
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x140003133
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140003133
cmp rdi, 0xffffffffffffffff
je 0x140003133
mov rax, qword [0x140191f00]
test rax, rax
je 0x1400030d0
inc dword [rax + 0xf4]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x140003133
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rdi
je 0x140003120
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x140191f00]
test rax, rax
je 0x140003115
dec dword [rax + 0xf4]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14000313c
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x14000312e
mov qword [r14], rdi
mov rax, rsi
jmp 0x14000313e
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x140005f10
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
mov r11, rcx
lea rdi, [0x1400be9b0]
movsxd rcx, dword [rcx + 0xf0]
mov r10d, edx
shr r10d, 0x18
mov r8d, edx
shr r8d, 8
mov r9d, edx
mov rax, qword [r11 + 0xf8]
shr r9d, 0x10
mov ebx, dword [rax + rcx*4 - 4]
not ebx
movzx eax, dl
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, r8b
xor ebx, dword [rdi + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, r9b
xor ebx, dword [rdi + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
xor ebx, dword [rdi + rcx*4]
movzx ecx, bl
xor rcx, r10
shr ebx, 8
xor ebx, dword [rdi + rcx*4]
mov rcx, qword [r11]
not ebx
cmp dword [rcx + 0x3f38], ebx
jne 0x140005fa4
movsxd r8, edx
mov ecx, ebx
mov edx, 4
call fcn.140018760
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140005fc0
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 0x18
movss xmm0, dword [rcx + 0x114]
lea r10, [0x1400be9b0]
mov rax, qword [rcx + 0xf8]
movss xmm1, dword [rcx + 0x118]
movss xmm2, dword [rdx]
movss xmm4, dword [rdx + 8]
subss xmm2, xmm0
movss xmm3, dword [rdx + 4]
subss xmm4, xmm0
movss xmm0, dword [rdx + 0xc]
subss xmm3, xmm1
movsxd rcx, dword [rcx + 0xf0]
subss xmm0, xmm1
movd r8d, xmm2
movss dword [rsp], xmm2
mov r9d, dword [rax + rcx*4 - 4]
movzx eax, byte [rsp]
not r9d
movzx ecx, r9b
xor rcx, rax
shr r9d, 8
mov eax, r8d
movss dword [rsp + 4], xmm3
shr eax, 8
movzx edx, al
mov eax, r8d
xor r9d, dword [r10 + rcx*4]
movzx ecx, r9b
xor rdx, rcx
shr r9d, 8
shr eax, 0x10
movss dword [rsp + 8], xmm4
movss dword [rsp + 0xc], xmm0
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
shr r9d, 8
movzx edx, al
movzx eax, byte [rsp + 4]
xor rdx, rcx
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
shr r9d, 8
mov edx, r8d
shr rdx, 0x18
xor rdx, rcx
movd r8d, xmm3
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
xor rcx, rax
shr r9d, 8
mov eax, r8d
shr eax, 8
movzx edx, al
mov eax, r8d
xor r9d, dword [r10 + rcx*4]
movzx ecx, r9b
xor rdx, rcx
shr r9d, 8
shr eax, 0x10
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
shr r9d, 8
movzx edx, al
movzx eax, byte [rsp + 8]
xor rdx, rcx
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
shr r9d, 8
mov edx, r8d
shr rdx, 0x18
xor rdx, rcx
movd r8d, xmm4
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
xor rcx, rax
shr r9d, 8
mov eax, r8d
xor r9d, dword [r10 + rcx*4]
shr eax, 8
movzx edx, al
movzx ecx, r9b
xor rdx, rcx
shr r9d, 8
mov eax, r8d
shr eax, 0x10
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
shr r9d, 8
movzx edx, al
movzx eax, byte [rsp + 0xc]
xor rdx, rcx
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
shr r9d, 8
mov edx, r8d
shr rdx, 0x18
xor rdx, rcx
movd r8d, xmm0
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
xor rcx, rax
shr r9d, 8
mov eax, r8d
shr eax, 8
movzx edx, al
mov eax, r8d
xor r9d, dword [r10 + rcx*4]
movzx ecx, r9b
xor rdx, rcx
shr r9d, 8
shr eax, 0x10
shr r8, 0x18
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
shr r9d, 8
movzx edx, al
xor rdx, rcx
xor r9d, dword [r10 + rdx*4]
movzx edx, r9b
shr r9d, 8
xor r8, rdx
xor r9d, dword [r10 + r8*4]
not r9d
mov eax, r9d
add rsp, 0x18
ret