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

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x8e0
mov rbp, rsp
mov qword [rbp + 0x40], rcx
mov qword [rbp + 0x48], rdx
mov qword [rbp + 0x58], 0
nop
mov rcx, qword [rbp + 0x40]
mov rdx, qword [rbp + 0x48]
lea r8, [rbp + 0x60]
mov r9d, 0x400
call fcn.00436c00
mov ebx, eax
mov rax, qword [0x008bd540]
cmp byte [rax], 0
je 0x436f86
mov rcx, qword [0x008bd170]
call fcn.0040a940
call fcn.004093b0
mov ecx, 1
xor edx, edx
lea r8, [rbp + 0x60]
mov r9d, ebx
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call sub.kernel32.dll_WideCharToMultiByte_1
mov esi, eax
lea rcx, [rbp + 0x58]
mov rdx, qword [0x00436e10]
mov r8d, 1
movsxd r9, esi
call fcn.00411b70
mov ecx, 1
xor edx, edx
lea r8, [rbp + 0x60]
mov r9d, ebx
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call sub.kernel32.dll_WideCharToMultiByte_1
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle_1
mov rcx, rax
mov rdx, qword [rbp + 0x58]
mov r8d, esi
lea r9, [rbp + 0x54]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile_1
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle_1
mov rcx, rax
lea rdx, [0x0043701c]
mov r8d, 2
lea r9, [rbp + 0x54]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile_1
jmp 0x436fcb
mov rcx, qword [0x008c4278]
call fcn.00412310
mov rcx, rax
mov rax, qword [0x008bd0e8]
mov edx, dword [rax + 8]
lea r8, [rbp + 0x860]
mov r9d, 0x40
call sub.user32.dll_LoadStringW_1
xor ecx, ecx
lea rdx, [rbp + 0x60]
lea r8, [rbp + 0x860]
mov r9d, 0x2010
call sub.user32.dll_MessageBoxW
nop
lea rcx, [rbp + 0x58]
mov rdx, qword [0x00436e10]
call fcn.00411d40
lea rsp, [rbp + 0x8e0]
pop rbx
pop rsi
pop rbp
ret
Function at 0x438b80
Capabilities:
Get file version info

Disassembly:
push rbp
sub rsp, 0x70
mov rbp, rsp
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x28], rbp
mov qword [rbp + 0x80], rcx
mov qword [rbp + 0x88], rdx
mov qword [rbp + 0x90], r8
mov qword [rbp + 0x98], r9
nop
mov byte [rbp + 0x67], 0
lea rcx, [rbp + 0x58]
mov rdx, qword [rbp + 0x80]
call fcn.0040ee80
lea rcx, [rbp + 0x58]
call fcn.0040f050
mov rcx, qword [rbp + 0x58]
call fcn.0040faf0
mov rcx, rax
lea rdx, [rbp + 0x50]
call sub.version.dll_GetFileVersionInfoSizeW
mov dword [rbp + 0x54], eax
cmp dword [rbp + 0x54], 0
je 0x438c90
mov ecx, dword [rbp + 0x54]
call fcn.00409090
mov qword [rbp + 0x68], rax
nop
mov rcx, qword [rbp + 0x58]
call fcn.0040faf0
mov rcx, rax
mov edx, dword [rbp + 0x50]
mov r8d, dword [rbp + 0x54]
mov r9, qword [rbp + 0x68]
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x438c86
mov rcx, qword [rbp + 0x68]
lea rdx, [0x00438ce8]
lea r8, [rbp + 0x48]
lea r9, [rbp + 0x44]
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x438c86
mov rax, qword [rbp + 0x48]
mov eax, dword [rax + 0x10]
mov dword [rbp + 0x40], eax
mov rax, qword [rbp + 0x88]
mov ecx, dword [rbp + 0x40]
shr ecx, 0x10
movzx ecx, cx
mov dword [rax], ecx
mov rax, qword [rbp + 0x90]
mov rcx, qword [rbp + 0x48]
movzx ecx, word [rcx + 0x10]
mov dword [rax], ecx
mov rax, qword [rbp + 0x48]
mov eax, dword [rax + 0x14]
mov dword [rbp + 0x3c], eax
mov rax, qword [rbp + 0x98]
mov ecx, dword [rbp + 0x3c]
shr ecx, 0x10
movzx ecx, cx
mov dword [rax], ecx
mov byte [rbp + 0x67], 1
nop
mov rcx, qword [rbp + 0x68]
call fcn.004090c0
nop
lea rcx, [rbp + 0x58]
call fcn.0040e7d0
movzx rax, byte [rbp + 0x67]
lea rsp, [rbp + 0x70]
pop rbp
ret

Function at 0x43a0d0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r13
push rdi
push rsi
push rbx
sub rsp, 0x240
mov rbp, rsp
mov rbx, rcx
mov rcx, rbx
call fcn.0040efa0
mov r13d, eax
mov ecx, 0xfde9
xor edx, edx
mov r8, rbx
mov r9d, r13d
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
call fcn.00416140
mov esi, eax
cmp esi, 0x104
jbe 0x43a12c
mov ecx, esi
add ecx, ecx
mov ecx, ecx
call fcn.00409090
mov rdi, rax
jmp 0x43a130
lea rdi, [rbp + 0x38]
mov ecx, 0xfde9
xor edx, edx
mov r8, rbx
mov r9d, r13d
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], esi
call fcn.00416140
mov rcx, rdi
call sub.user32.dll_CharUpperW
xor ebx, ebx
xor ecx, ecx
mov edx, esi
sub edx, 1
mov eax, ecx
cmp eax, edx
jg 0x43a187
sub edx, ecx
add edx, 1
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movsxd rcx, eax
movzx ecx, word [rdi + rcx*2]
xor ebx, ecx
add eax, 1
sub edx, 1
test edx, edx
jne 0x43a168
nop
lea rax, [rbp + 0x38]
cmp rdi, rax
je 0x43a199
mov rcx, rdi
call fcn.004090c0
mov eax, ebx
lea rsp, [rbp + 0x240]
pop rbx
pop rsi
pop rdi
pop r13
pop rbp
ret
Function at 0x77db70
Capabilities:
Resume thread

Disassembly:
push rbp
sub rsp, 0x40
mov rbp, rsp
mov qword [rbp + 0x20], rcx
mov byte [rbp + 0x2f], dl
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x38], 0
nop
mov rax, qword [rbp + 0x20]
movzx rax, byte [rax + 0x19]
movzx rcx, byte [rbp + 0x2f]
or al, cl
test al, al
je 0x77dc02
mov rax, qword [rbp + 0x20]
cmp byte [rax + 0x1d], 0
jne 0x77dc02
mov rax, qword [rbp + 0x20]
cmp byte [rax + 0x40], 0
jne 0x77dc02
mov rax, qword [rbp + 0x20]
mov byte [rax + 0x1b], 0
mov byte [rax + 0x19], 0
mov rax, qword [rbp + 0x20]
mov rcx, qword [rax + 0x10]
call sub.kernel32.dll_ResumeThread
cmp eax, 1
je 0x77dc2c
lea rcx, [rbp + 0x38]
mov rdx, qword [0x008bd490]
call fcn.00416070
mov rcx, qword [0x00743f50]
mov dl, 1
mov r8, qword [rbp + 0x38]
call fcn.00437040
mov rcx, rax
call fcn.0040da50
jmp 0x77dc2c
lea rcx, [rbp + 0x30]
mov rdx, qword [0x008bd490]
call fcn.00416070
mov rcx, qword [0x00743f50]
mov dl, 1
mov r8, qword [rbp + 0x30]
call fcn.00437040
mov rcx, rax
call fcn.0040da50
nop
lea rcx, [rbp + 0x30]
mov edx, 2
call fcn.0040e8b0
lea rsp, [rbp + 0x40]
pop rbp
ret

Function at 0x77e7a0
Capabilities:
Suspend thread

Disassembly:
push rbp
sub rsp, 0x40
mov rbp, rsp
mov qword [rbp + 0x28], rbp
mov qword [rbp + 0x50], rcx
mov rax, qword [rbp + 0x50]
movzx rax, byte [rax + 0x1b]
mov byte [rbp + 0x3f], al
nop
mov rax, qword [rbp + 0x50]
mov byte [rax + 0x1b], 1
mov rax, qword [rbp + 0x50]
mov rcx, qword [rax + 0x10]
call sub.kernel32.dll_SuspendThread
mov rcx, qword [rbp + 0x50]
test eax, eax
setge dl
call fcn.0077d9b0
jmp 0x77e7fb
lea rsp, [rbp + 0x40]
pop rbp
ret

Function at 0x77e820
Capabilities:
Resume thread

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
mov rcx, qword [rbx + 0x10]
call sub.kernel32.dll_ResumeThread
mov esi, eax
mov rcx, rbx
test esi, esi
setge dl
call fcn.0077d9b0
cmp esi, 1
jne 0x77e84a
mov byte [rbx + 0x1b], 0
add rsp, 0x28
pop rbx
pop rsi
ret
Function at 0x8152d0
Capabilities:
Encode data using xor

Disassembly:
mov al, 0xb5
mov r8, rcx
xor edx, edx
mov ecx, edx
and ecx, 0x3f
mov r9, r8
shr r9, cl
and r9b, 0xff
xor al, r9b
add edx, 1
cmp edx, 8
jne 0x8152d7
nop
ret

Function at 0x836f30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbp
push rbx
sub rsp, 0x68
mov rbp, rsp
mov qword [rbp + 0x28], 0
mov qword [rbp + 0x80], rcx
mov qword [rbp + 0x88], rdx
mov rcx, qword [rbp + 0x88]
call fcn.0040e980
nop
mov qword [rbp + 0x58], 0
mov rax, qword [rbp + 0x80]
mov rcx, qword [rbp + 0x80]
movsxd rcx, dword [rcx + 0x3c]
lea rax, [rax + rcx]
mov qword [rbp + 0x50], rax
mov rax, qword [rbp + 0x50]
cmp dword [rax + 0x88], 0
je 0x837067
mov rax, qword [rbp + 0x50]
mov eax, dword [rax + 0x88]
mov rcx, qword [rbp + 0x80]
lea rax, [rax + rcx]
mov qword [rbp + 0x48], rax
xor eax, eax
mov rcx, qword [rbp + 0x48]
mov ebx, dword [rcx + 0x18]
sub ebx, 1
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], ebx
jg 0x837066
sub ebx, eax
add ebx, 1
mov rax, qword [rbp + 0x48]
mov eax, dword [rax + 0x20]
mov rcx, qword [rbp + 0x80]
lea rax, [rax + rcx]
movsxd rcx, dword [rbp + 0x44]
mov eax, dword [rax + rcx*4]
mov rcx, qword [rbp + 0x80]
lea rax, [rax + rcx]
mov qword [rbp + 0x38], rax
lea rcx, [rbp + 0x28]
mov rdx, qword [rbp + 0x38]
xor r8, r8
call fcn.0040f2e0
mov rcx, qword [rbp + 0x88]
mov rdx, qword [rbp + 0x28]
call fcn.0040f4c0
test eax, eax
jne 0x837057
mov rax, qword [rbp + 0x48]
mov eax, dword [rax + 0x24]
mov rcx, qword [rbp + 0x80]
lea rax, [rax + rcx]
movsxd rcx, dword [rbp + 0x44]
movzx eax, word [rax + rcx*2]
mov dword [rbp + 0x34], eax
mov rax, qword [rbp + 0x48]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rbp + 0x80]
lea rax, [rax + rcx]
mov ecx, dword [rbp + 0x34]
mov eax, dword [rax + rcx*4]
mov rcx, qword [rbp + 0x80]
lea rax, [rax + rcx]
mov qword [rbp + 0x58], rax
jmp 0x837066
add dword [rbp + 0x44], 1
sub ebx, 1
test ebx, ebx
jne 0x836fc5
nop
nop
lea rcx, [rbp + 0x28]
call fcn.0040e820
lea rcx, [rbp + 0x88]
call fcn.0040e820
mov rax, qword [rbp + 0x58]
lea rsp, [rbp + 0x68]
pop rbx
pop rbp
ret
Function at 0x8370c0
Capabilities:
Check if file exists

Disassembly:
push rbp
push rbx
sub rsp, 0x88
mov rbp, rsp
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x50], 0
mov qword [rbp + 0x58], 0
mov qword [rbp + 0xa0], rcx
nop
lea rcx, [0x008372b0]
call sub.kernel32.dll_GetModuleHandleW_2
mov rbx, rax
lea rcx, [rbp + 0x58]
lea rdx, [0x008372ca]
xor r8, r8
call fcn.0040f2e0
mov rcx, rbx
mov rdx, qword [rbp + 0x58]
call fcn.00836f30
mov qword [0x008b33a0], rax
mov rcx, qword [rbp + 0xa0]
call fcn.0040f750
mov rcx, rax
call qword [0x008b33a0]
mov dword [rbp + 0x78], eax
cmp dword [rbp + 0x78], 0xffffffff
je 0x83724e
mov eax, dword [rbp + 0x78]
test eax, 0x400
je 0x83723d
mov eax, dword [rbp + 0x78]
test eax, 0x10
je 0x837166
mov byte [rbp + 0x7f], 0
jmp 0x837272
lea rcx, [0x008372b0]
call sub.kernel32.dll_GetModuleHandleW_2
mov rbx, rax
lea rcx, [rbp + 0x50]
lea rdx, [0x008372dd]
xor r8, r8
call fcn.0040f2e0
mov rcx, rbx
mov rdx, qword [rbp + 0x50]
call fcn.00836f30
mov qword [0x008b3398], rax
mov rcx, qword [rbp + 0xa0]
call fcn.0040f750
mov rcx, rax
mov edx, 0x80000000
mov r8d, 1
xor r9, r9
mov dword [rsp + 0x20], 3
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
call qword [0x008b3398]
mov qword [rbp + 0x70], rax
call sub.kernel32.dll_GetLastError_2
mov dword [rbp + 0x6c], eax
cmp qword [rbp + 0x70], 0xffffffffffffffff
je 0x837231
lea rcx, [0x008372b0]
call sub.kernel32.dll_GetModuleHandleW_2
mov rbx, rax
lea rcx, [rbp + 0x48]
lea rdx, [0x008372e9]
xor r8, r8
call fcn.0040f2e0
mov rcx, rbx
mov rdx, qword [rbp + 0x48]
call fcn.00836f30
mov qword [0x008b3390], rax
mov rcx, qword [rbp + 0x70]
call qword [0x008b3390]
mov byte [rbp + 0x7f], 1
jmp 0x837272
cmp dword [rbp + 0x6c], 0x20
sete al
mov byte [rbp + 0x7f], al
jmp 0x837272
mov eax, dword [rbp + 0x78]
test eax, 0x10
sete al
mov byte [rbp + 0x7f], al
jmp 0x837272
call sub.kernel32.dll_GetLastError_2
mov dword [rbp + 0x6c], eax
cmp dword [rbp + 0x6c], 2
je 0x837268
cmp dword [rbp + 0x6c], 3
je 0x837268
cmp dword [rbp + 0x6c], 0x7b
jne 0x83726c
xor eax, eax
jmp 0x83726e
mov al, 1
mov byte [rbp + 0x7f], al
nop
lea rcx, [rbp + 0x48]
mov edx, 3
call fcn.0040e8e0
movzx rax, byte [rbp + 0x7f]
lea rsp, [rbp + 0x88]
pop rbx
pop rbp
ret

Function at 0x83b980
Capabilities:
Get disk information

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov qword [rsp + 0x40], rcx
xor ebx, ebx
cmp qword [rsp + 0x40], 0
je 0x83b9f7
mov rcx, qword [rsp + 0x40]
call fcn.0083bd20
test al, al
je 0x83b9f7
mov rcx, qword [rsp + 0x40]
call fcn.0083ba70
mov esi, eax
call sub.kernel32.dll_GetLogicalDrives
mov rcx, qword [rsp + 0x40]
sub esi, 1
movsxd rsi, esi
movzx rcx, word [rcx + rsi*2]
mov edx, ecx
mov r8d, ecx
sub r8w, 0x61
cmp r8w, 0x1a
jae 0x83b9db
mov edx, ecx
and dx, 0xffdf
mov ecx, edx
cmp cx, 0x41
jb 0x83b9f7
cmp cx, 0x5a
ja 0x83b9f7
sub cl, 0x41
shr eax, cl
and eax, 1
cmp eax, 1
sete bl
mov eax, ebx
add rsp, 0x28
pop rbx
pop rsi
ret
Function at 0x86d530
Capabilities:
Hash data with crc32

Disassembly:
push rbp
mov rbp, rsp
and rsp, 0xfffffffffffffff0
sub rsp, 0x40
mov qword [rsp + 0x38], rcx
mov rcx, qword [rsp + 0x38]
mov qword [rcx + 0x40], 0
mov rcx, qword [rsp + 0x38]
mov dword [rcx + 0x64], 0
mov rcx, qword [rsp + 0x38]
mov qword [rcx + 0x28], 0
mov rcx, qword [rsp + 0x38]
call fcn.0086d610
mov dword [rsp + 0x34], 0
cmp dword [rsp + 0x34], 0x100
jae 0x86d609
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x2c], 0
cmp dword [rsp + 0x2c], 8
jge 0x86d5e3
mov eax, dword [rsp + 0x30]
shr eax, 1
mov ecx, dword [rsp + 0x30]
and ecx, 1
sub ecx, 1
xor ecx, 0xffffffff
and ecx, 0xedb88320
xor eax, ecx
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x2c]
add eax, 1
mov dword [rsp + 0x2c], eax
jmp 0x86d59a
mov eax, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x34]
mov rdx, qword [rsp + 0x38]
mov dword [rdx + rcx*4 + 0x8c], eax
mov eax, dword [rsp + 0x34]
add eax, 1
mov dword [rsp + 0x34], eax
jmp 0x86d57c
mov rsp, rbp
pop rbp
ret

Function at 0x870ab0
Capabilities:
Create thread

Disassembly:
push rbp
mov rbp, rsp
and rsp, 0xfffffffffffffff0
sub rsp, 0x60
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x48], r8
mov rcx, qword [rsp + 0x50]
lea rdx, [rsp + 0x44]
mov rax, rsp
mov qword [rax + 0x28], rdx
mov dword [rax + 0x20], 0
xor r9d, r9d
mov qword [rsp + 0x38], rcx
mov ecx, r9d
mov edx, r9d
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x30], r8
mov r8, rax
mov r9, qword [rsp + 0x30]
call sub.msvcrt.dll__beginthreadex
movsxd r8, eax
mov r9, qword [rsp + 0x58]
mov qword [r9], r8
mov r8, qword [rsp + 0x58]
mov rcx, qword [r8]
call fcn.00870970
mov rsp, rbp
pop rbp
ret
Function at 0x87b4e0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
and rsp, 0xfffffffffffffff8
sub rsp, 0x20
mov qword [rsp + 0x18], rcx
mov dword [rsp + 0x14], edx
mov qword [rsp + 8], r8
mov dword [rsp + 4], 0
mov edx, dword [rsp + 0x14]
or edx, 0x100
mov dword [rsp + 0x14], edx
mov eax, dword [rsp + 0x14]
shr eax, 8
mov ecx, eax
mov rdx, qword [rsp + 0x18]
mov eax, dword [rdx + rcx*4]
mov r8d, dword [rsp + 0x14]
shr r8d, 7
and r8d, 1
mov r9d, 0
sub r9d, r8d
and r9d, 0x7ff
xor eax, r9d
shr eax, 4
mov ecx, eax
mov rdx, qword [rsp + 8]
mov eax, dword [rdx + rcx*4]
mov r8d, dword [rsp + 4]
add r8d, eax
mov dword [rsp + 4], r8d
mov eax, dword [rsp + 0x14]
shl eax, 1
mov dword [rsp + 0x14], eax
cmp dword [rsp + 0x14], 0x10000
jb 0x87b513
mov eax, dword [rsp + 4]
mov rsp, rbp
pop rbp
ret
Function at 0x8856a0
Capabilities:
Get system information on windows

Disassembly:
push rbp
sub rsp, 0x30
mov rbp, rsp
mov qword [rbp + 0x28], rbp
cmp byte [0x008bb638], 0
jne 0x885711
mov byte [0x008bb638], 1
nop
call fcn.0087df80
mov byte [0x008bbc60], al
call fcn.0087e120
lea rcx, [0x008c9438]
call sub.kernel32.dll_GetSystemInfo_1
mov eax, dword [0x008c943c]
mov dword [0x008bc574], eax
cmp dword [0x008bc574], 0xa0
jae 0x8856fb
mov dword [0x008bc574], 0xa0
mov byte [0x008bc570], 0
call fcn.00885640
jmp 0x885711
lea rsp, [rbp + 0x30]
pop rbp
ret

Function at 0x8879f0
Capabilities:
Create pipe
Create process on windows
Read file on windows

Disassembly:
push rbp
mov byte [rsp - 0x100], 0
mov byte [rsp - 0x1100], 0
mov byte [rsp - 0x2100], 0
sub rsp, 0x2100
mov rbp, rsp
mov qword [rbp + 0x50], 0
mov qword [rbp + 0x58], rbp
mov qword [rbp + 0x2110], rcx
mov qword [rbp + 0x2118], rdx
nop
mov rcx, qword [rbp + 0x2110]
call fcn.0040e7d0
nop
lea rcx, [rbp + 0x2088]
mov edx, 0x68
xor r8, r8
call fcn.0040a9d0
mov dword [rbp + 0x2088], 0x68
mov dword [rbp + 0x20c4], pe_nt_image_headers64
mov qword [rbp + 0x20f0], 0
mov qword [rbp + 0x2068], 0
lea rcx, [rbp + 0x20f0]
lea rdx, [rbp + 0x2068]
xor r8, r8
xor r9, r9
call sub.kernel32.dll_CreatePipe
test eax, eax
jne 0x887a9c
call fcn.0043a480
nop
mov rax, qword [rbp + 0x2068]
mov qword [rbp + 0x20e0], rax
mov rax, qword [rbp + 0x2068]
mov qword [rbp + 0x20e8], rax
mov ecx, 0xfffffff6
call sub.kernel32.dll_GetStdHandle_1
mov qword [rbp + 0x20d8], rax
lea rcx, [rbp + 0x50]
lea rdx, [0x00887c94]
mov r8, qword [rbp + 0x2118]
call fcn.0040ff30
mov rcx, qword [rbp + 0x50]
call fcn.0040faf0
xor ecx, ecx
mov rdx, rax
xor r8, r8
xor r9, r9
mov dword [rsp + 0x20], 0xffffffff
mov dword [rsp + 0x28], 0x8000000
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
lea rax, [rbp + 0x2088]
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0x2070]
mov qword [rsp + 0x48], rax
call sub.kernel32.dll_CreateProcessW
test eax, eax
jne 0x887b3e
call fcn.0043a480
mov rcx, qword [rbp + 0x2078]
call sub.kernel32.dll_CloseHandle_1
mov rcx, qword [rbp + 0x2068]
call sub.kernel32.dll_CloseHandle_1
mov rcx, qword [0x0073f780]
mov dl, 1
call fcn.0076b5c0
mov qword [rbp + 0x20f8], rax
nop
jmp 0x887b82
mov rcx, qword [rbp + 0x20f8]
lea rdx, [rbp + 0x68]
mov r8d, dword [rbp + 0x64]
call fcn.00769870
mov rcx, qword [rbp + 0x20f0]
lea rdx, [rbp + 0x68]
mov r8d, 0x2000
lea r9, [rbp + 0x64]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_ReadFile
test eax, eax
je 0x887bb0
cmp dword [rbp + 0x64], 0
ja 0x887b6e
mov rcx, qword [rbp + 0x20f8]
mov rdx, qword [rbp + 0x2110]
call fcn.0076b830
nop
mov rcx, qword [rbp + 0x20f8]
call fcn.0040b530
mov rcx, qword [rbp + 0x2070]
or edx, 0xffffffff
call sub.kernel32.dll_WaitForSingleObject
mov rcx, qword [rbp + 0x2070]
call sub.kernel32.dll_CloseHandle_1
nop
mov rcx, qword [rbp + 0x20f0]
call sub.kernel32.dll_CloseHandle_1
jmp 0x887c02
nop
lea rcx, [rbp + 0x50]
call fcn.0040e7d0
mov rax, qword [rbp + 0x2110]
lea rsp, [rbp + 0x2100]
pop rbp
ret
Function at 0x888030
Capabilities:
Get system information on windows

Disassembly:
push rbp
push rbx
sub rsp, 0xb8
mov rbp, rsp
mov qword [rbp + 0x20], 0
mov qword [rbp + 0x28], 0
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x70], 0
mov qword [rbp + 0x48], rbp
mov qword [rbp + 0xd0], rcx
nop
nop
mov rcx, qword [0x0073a898]
mov dl, 1
call fcn.007669d0
mov qword [rbp + 0xa8], rax
nop
lea rcx, [rbp + 0x78]
call sub.kernel32.dll_GetSystemInfo_1
movzx eax, word [rbp + 0x78]
mov dword [rbp + 0x30], eax
mov byte [rbp + 0x38], 0
lea rcx, [rbp + 0x40]
lea rdx, [0x00888308]
lea r8, [rbp + 0x30]
xor r9, r9
call fcn.0042fb70
mov rcx, qword [rbp + 0xa8]
mov rdx, qword [rbp + 0x40]
mov rax, qword [rbp + 0xa8]
mov rax, qword [rax]
call qword [rax + 0x78]
mov eax, dword [rbp + 0x98]
mov dword [rbp + 0x30], eax
mov byte [rbp + 0x38], 0
lea rcx, [rbp + 0x28]
lea rdx, [0x0088834c]
lea r8, [rbp + 0x30]
xor r9, r9
call fcn.0042fb70
mov rcx, qword [rbp + 0xa8]
mov rdx, qword [rbp + 0x28]
mov rax, qword [rbp + 0xa8]
mov rax, qword [rax]
call qword [rax + 0x78]
mov dword [rbp + 0x6c], 0
xor ecx, ecx
lea rdx, [rbp + 0x6c]
call sub.kernel32.dll_GetLogicalProcessorInformation_1
call sub.kernel32.dll_GetLastError_2
cmp eax, 0x7a
jne 0x888181
lea rcx, [rbp + 0x70]
mov rdx, qword [0x00406368]
mov r8d, 1
mov r9d, dword [rbp + 0x6c]
call fcn.00411b70
mov rcx, qword [rbp + 0x70]
lea rdx, [rbp + 0x6c]
call sub.kernel32.dll_GetLogicalProcessorInformation_1
test eax, eax
jne 0x8881b9
mov rcx, qword [rbp + 0xa8]
lea rdx, [0x0088838c]
mov rax, qword [rbp + 0xa8]
mov rax, qword [rax]
call qword [rax + 0x78]
mov rcx, qword [rbp + 0xa8]
mov rdx, qword [rbp + 0xd0]
mov rax, qword [rbp + 0xa8]
mov rbx, qword [rax]
call qword [rbx + 0x38]
jmp 0x888232
mov rcx, qword [rbp + 0xa8]
lea rdx, [0x0088838c]
mov rax, qword [rbp + 0xa8]
mov rax, qword [rax]
call qword [rax + 0x78]
mov rcx, qword [rbp + 0xa8]
mov rdx, qword [rbp + 0xd0]
mov rax, qword [rbp + 0xa8]
mov rbx, qword [rax]
call qword [rbx + 0x38]
jmp 0x888232
mov rax, qword [rbp + 0x70]
mov qword [rbp + 0x60], rax
mov dword [rbp + 0x58], 0
mov dword [rbp + 0x5c], 0
mov eax, dword [rbp + 0x5c]
mov dword [rbp + 0x30], eax
mov byte [rbp + 0x38], 0
lea rcx, [rbp + 0x20]
lea rdx, [0x008883f4]
lea r8, [rbp + 0x30]
xor r9, r9
call fcn.0042fb70
mov rcx, qword [rbp + 0xa8]
mov rdx, qword [rbp + 0x20]
mov rax, qword [rbp + 0xa8]
mov rax, qword [rax]
call qword [rax + 0x78]
mov rcx, qword [rbp + 0xa8]
mov rdx, qword [rbp + 0xd0]
mov rax, qword [rbp + 0xa8]
mov rbx, qword [rax]
call qword [rbx + 0x38]
nop
mov rcx, qword [rbp + 0xa8]
call fcn.0040b530
jmp 0x888249
xor ecx, ecx
mov rdx, qword [rbp + 0x48]
call fcn.00888290
jmp 0x88824a
nop
lea rcx, [rbp + 0x20]
mov edx, 2
call fcn.0040e8b0
lea rcx, [rbp + 0x40]
call fcn.0040e7d0
lea rcx, [rbp + 0x70]
mov rdx, qword [0x00406368]
call fcn.00411d40
mov rax, qword [rbp + 0xd0]
lea rsp, [rbp + 0xb8]
pop rbx
pop rbp
ret
Function at 0x1400035b0
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 0x14000360d
lea rbx, [0x1400c7040]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x1400035f4
cmp r10, 2
jb 0x1400035f4
cmp byte [r9], r8b
jne 0x1400035f4
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 0x1400035d0
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x14000364f
lea rbx, [0x1400c7040]
cmp r8b, 0x23
jne 0x140003633
cmp byte [r9], r8b
jne 0x140003633
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 0x140003620
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x140003810
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
mov rdi, r8
mov rbx, rcx
test rcx, rcx
jne 0x14000383f
mov r8d, 0x780
lea rdx, str.C:UsersAdminOneDriveDesktopWensureglass_loader_greenimgui.cpp
lea rcx, str.filename__mode
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
test rdi, rdi
je 0x14000384b
mov qword [rdi], 0
lea rdx, [0x1400c6888]
mov rcx, rbx
call fcn.140003660
mov rbx, rax
test rax, rax
jne 0x14000386d
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov qword [rsp + 0x30], rbp
mov rcx, rbx
mov qword [rsp + 0x38], rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov ebp, eax
cmp eax, 0xffffffff
je 0x140003944
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140003944
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rsi, eax
cmp esi, 0xffffffff
je 0x140003944
xor r8d, r8d
mov edx, ebp
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140003944
cmp rsi, 0xffffffffffffffff
je 0x140003944
mov rax, qword [0x14015e2d0]
test rax, rax
je 0x1400038e1
inc dword [rax + 0xf4]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbp, rax
test rax, rax
je 0x140003944
mov r9, rbx
mov r8, rsi
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, rsi
je 0x140003931
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x14015e2d0]
test rax, rax
je 0x140003926
dec dword [rax + 0xf4]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14000394d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rdi, rdi
je 0x14000393f
mov qword [rdi], rsi
mov rax, rbp
jmp 0x14000394f
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret