joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001440
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov qword [rsp + 0x28], 0
mov r8d, 0xa
mov edx, 0x66
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rsp + 0x38], rax
mov rdx, qword [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
mov r8d, eax
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x50]
call fcn.140001390
add rsp, 0x48
ret

Function at 0x1400014c0
Capabilities:
Get mac address on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov byte [rsp + 0x20], 0
mov dword [rsp + 0x24], 0x2c0
mov ecx, 0x2c0
call fcn.140005c04
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x1400014f4
xor al, al
jmp 0x1400015bd
lea rdx, [rsp + 0x24]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
cmp eax, 0x6f
jne 0x14000152d
mov eax, dword [rsp + 0x24]
mov edx, eax
mov rcx, qword [rsp + 0x30]
call fcn.140005c0c
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x14000152d
xor al, al
jmp 0x1400015bd
lea rdx, [rsp + 0x24]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
test eax, eax
jne 0x1400015b8
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x1400015ae
mov r8d, 3
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x28]
call fcn.140006034
mov rax, qword [rsp + 0x38]
cmp dword [rax + 0x194], 6
jne 0x14000159f
mov rax, qword [rsp + 0x38]
add rax, 0x198
mov r8d, 3
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.140002950
test eax, eax
jne 0x14000159f
mov byte [rsp + 0x20], 1
jmp 0x1400015ae
mov rax, qword [rsp + 0x38]
mov rax, qword [rax]
mov qword [rsp + 0x38], rax
jmp 0x14000154b
mov rcx, qword [rsp + 0x30]
call fcn.140005bf0
movzx eax, byte [rsp + 0x20]
add rsp, 0x48
ret

Function at 0x1400015d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
je 0x140001604
mov eax, dword [rsp + 0x20]
and eax, 0x10
test eax, eax
jne 0x140001604
mov dword [rsp + 0x24], 1
jmp 0x14000160c
mov dword [rsp + 0x24], 0
movzx eax, byte [rsp + 0x24]
add rsp, 0x38
ret

Function at 0x140001620
Capabilities:
Copy file

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x248
mov r8d, 0x104
lea rdx, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov r8d, 1
mov rdx, qword [rsp + 0x250]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x140001666
mov dword [rsp + 0x20], 1
jmp 0x14000166e
mov dword [rsp + 0x20], 0
movzx eax, byte [rsp + 0x20]
add rsp, 0x248
ret
Function at 0x140001a30
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x498
lea rax, str.system32drivers_vmmouse.sys
mov qword [rsp + 0x30], rax
lea rax, [0x1400194e0]
mov qword [rsp + 0x38], rax
lea rax, str.system32drivers_vm3dmp.sys
mov qword [rsp + 0x40], rax
lea rax, str.system32drivers_vmci.sys
mov qword [rsp + 0x48], rax
lea rax, str.system32drivers_vmhgfs.sys
mov qword [rsp + 0x50], rax
lea rax, str.system32drivers_vmmemctl.sys
mov qword [rsp + 0x58], rax
lea rax, str.system32drivers_vmrawdsk.sys
mov qword [rsp + 0x60], rax
lea rax, str.system32drivers_vmusbmouse.sys
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x28], 8
mov edx, 0x104
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov qword [rsp + 0x20], 0
jmp 0x140001ac8
mov rax, qword [rsp + 0x20]
inc rax
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x28]
cmp qword [rsp + 0x20], rax
jae 0x140001b0b
mov rax, qword [rsp + 0x20]
mov r8, qword [rsp + rax*8 + 0x30]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x280]
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
lea rcx, [rsp + 0x280]
call fcn.1400015d0
movzx eax, al
test eax, eax
je 0x140001b09
mov al, 1
jmp 0x140001b0d
jmp 0x140001abb
xor al, al
add rsp, 0x498
ret

Function at 0x140001ca0
Capabilities:
Get common file path
Persist via run registry key
Set registry value

Disassembly:
sub rsp, 0x2c8
mov edx, 0x32
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea r8, [rsp + 0x40]
lea rdx, str._lsccleaner_svc.exe
lea rcx, [rsp + 0xb0]
call fcn.140001db0
lea rcx, [rsp + 0xb0]
call fcn.140001620
lea r8, [rsp + 0x30]
lea rdx, [0x1400198d0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
lea rcx, [rsp + 0xb0]
call fcn.140006218
lea rax, [rax + rax + 2]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, [0x140019930]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r8, [rsp + 0x30]
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionRun
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
lea rcx, [rsp + 0xb0]
call fcn.140006218
lea rax, [rax + rax + 2]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.CCleaner_Update
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x2c8
ret

Function at 0x14000263c
Capabilities:
Parse pe header

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

Function at 0x1400097b8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400095b4
Function at 0x14000ec10
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14000ec40
xor eax, eax
jmp 0x14000ed03
mov rbp, rbx
cmp word [rax], si
je 0x14000ec65
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000ec4c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000ec48
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14000a1a4
movsxd r14, eax
test eax, eax
jne 0x14000eca3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000ec39
mov rcx, r14
call fcn.14000a0c8
mov rdi, rax
test rax, rax
jne 0x14000ecbc
xor ecx, ecx
call fcn.14000a08c
jmp 0x14000ec98
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14000a1a4
test eax, eax
jne 0x14000eced
mov rcx, rdi
call fcn.14000a08c
jmp 0x14000ecf7
xor ecx, ecx
call fcn.14000a08c
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x140014198
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14000bedc
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140014222
cmp byte [rbp - 0x21], r15b
je 0x14001421d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140014258
call fcn.140010028
test eax, eax
jne 0x140014244
cmp byte [rbp - 0x21], r15b
je 0x14001423c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140014258
cmp byte [rbp - 0x21], r15b
je 0x140014255
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14000bd60
test eax, eax
jne 0x1400142f8
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000bedc
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140014297
cmp byte [rbp - 0x21], r15b
je 0x1400142cc
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400142cc
call fcn.140010028
test eax, eax
jne 0x1400142b8
cmp byte [rbp - 0x21], r15b
je 0x1400142b1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400142cc
cmp byte [rbp - 0x21], r15b
je 0x1400142c9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14000bd60
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400142f8
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400142fb
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140014309
mov rcx, rdi
call fcn.14000a08c
cmp byte [rbp + 0x3f], r15b
je 0x140014318
mov rcx, qword [rbp + 0x27]
call fcn.14000a08c
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140017590
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400175b8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400175b8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140004884
Capabilities:
Delete directory

Disassembly:
push rbp
push r15
xor rax, rax
push rax
push rax
sub rsp, 0x28
call fcn.140012b50
mov r15, qword [0x140020504]
cmp r15, 1
jne 0x140004953
push qword [0x1400205f4]
pop rcx
call fcn.14000dd04
mov r15, rax
and r15, r15
jle 0x1400048e9
mov rcx, qword [0x1400205f4]
call fcn.14000dd0c
mov rcx, qword [0x1400205f4]
call fcn.14000dd20
or rax, rax
je 0x1400048e9
mov rbp, qword [0x1400205fc]
push qword [rbp + 0x10]
pop rcx
call fcn.14000e1bc
jmp 0x1400048c6
push qword [0x1400205e4]
pop rcx
call fcn.14000dd04
mov qword [rsp + 0x28], rax
mov r15, qword [rsp + 0x28]
and r15, r15
jle 0x140004953
push 5
push 0
push 1
push qword [0x1400205e4]
pop rcx
pop rdx
pop r8
pop r9
call fcn.140009060
mov rcx, qword [0x1400205e4]
call fcn.14000dd0c
mov rcx, qword [0x1400205e4]
call fcn.14000dd20
or rax, rax
je 0x140004953
mov rbp, qword [0x1400205ec]
push qword [rbp + 0x14]
pop rcx
call sub.KERNEL32.dll_RemoveDirectoryW
jmp 0x140004930
mov rax, 1
jmp 0x14000495f
add rsp, 0x38
pop r15
pop rbp
ret

Function at 0x140006b38
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rcx
call sub.KERNEL32.dll_GetLastError
mov qword [rsp + 0x38], rax
mov rcx, qword [0x14001f180]
call sub.KERNEL32.dll_TlsGetValue
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x28]
add rsp, 0x48
ret

Function at 0x140007204
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.140007194
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x140021200]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140020630]
jmp 0x140007240
cmp qword [rbx + 0x18], rdi
je 0x140007247
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140007237
jmp 0x140007261
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbx + 0x10]
lea rcx, [0x140020630]
call fcn.1400123b8
lea rcx, [0x140021200]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
invalid
invalid
add bh, bh
xchg ebx, eax
xchg ebx, eax
xchg ebx, eax
add eax, 0xbf0200ff
inc dword [rax]
add esi, edi
inc dword [rax]
add esi, ebp
inc dword [rax]
add esi, ecx
int1
int1
inc dword [rax]
add esi, eax
inc dword [rax]
add esi, eax
lock inc dword [rax]
lock inc dword [rax]
add esi, eax
inc dword [rax]
add esi, eax
inc dword [rax]
add esi, eax
inc dword [rax]
add esi, eax
inc dword [rax]
add esi, eax
inc dword [rax]
add byte [rbx], al
lock inc dword [rax]
add byte [rbx], al
lock inc dword [rax]
add esi, eax
inc dword [rax]
add dl, bh
xlatb
inc dword [rax]
add byte [rdi + rdi*8], al
add byte [rax], al
add al, 0xff
add byte [rax], al
add bh, bh
add byte [rcx], al
invalid
Function at 0x140a3d058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140a3d1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140a3d089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a3d06f
add dl, dl
jne 0x140a3d096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a3d0f6
xor eax, eax
add dl, dl
jne 0x140a3d0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a3d1ad
add dl, dl
jne 0x140a3d0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a3d0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a3d0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a3d0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140a3d0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140a3d07e
mov eax, 1
add dl, dl
jne 0x140a3d106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a3d113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a3d0fb
sub eax, ebx
mov ebx, 1
jne 0x140a3d14c
mov ecx, 1
add dl, dl
jne 0x140a3d12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140a3d13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a3d123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a3d07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140a3d168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140a3d175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a3d15d
cmp eax, 0x7d00
jae 0x140a3d19b
cmp eax, 0x500
jb 0x140a3d196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a3d07e
cmp eax, 0x7f
ja 0x140a3d19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a3d07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140a3d1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x140a3d07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400026b0
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 0x14000270d
lea rbx, [0x140037890]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x1400026f4
cmp r10, 2
jb 0x1400026f4
cmp byte [r9], r8b
jne 0x1400026f4
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 0x1400026d0
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x14000274f
lea rbx, [0x140037890]
cmp r8b, 0x23
jne 0x140002733
cmp byte [r9], r8b
jne 0x140002733
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 0x140002720
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x140002910
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 0x14000293f
mov r8d, 0x61c
lea rdx, str.C:Users10643DownloadsTelegram_Desktophwiidhx_hwidimgui.cpp
lea rcx, str.filename__mode
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
test rdi, rdi
je 0x14000294b
mov qword [rdi], 0
lea rdx, [0x1400374a0]
mov rcx, rbx
call fcn.140002760
mov rbx, rax
test rax, rax
jne 0x14000296d
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 0x140002a58
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 0x140002a58
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rsi, eax
cmp esi, 0xffffffff
je 0x140002a58
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 0x140002a58
cmp rsi, 0xffffffffffffffff
je 0x140002a58
mov rax, qword [0x140161e70]
test rax, rax
je 0x1400029e9
inc dword [rax + 0x3b4]
mov rdx, qword [0x140161e60]
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov rbp, rax
test rax, rax
je 0x140002a58
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 0x140002a45
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x140161e70]
test rax, rax
je 0x140002a34
dec dword [rax + 0x3b4]
mov rdx, qword [0x140161e60]
mov rcx, rbp
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
jmp 0x140002a61
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rdi, rdi
je 0x140002a53
mov qword [rdi], rsi
mov rax, rbp
jmp 0x140002a63
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
Function at 0x140004170
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x10], edx
push rdi
sub rsp, 0x20
cmp dword [rcx + 0xd0], 0
mov rbx, rcx
mov edi, edx
jg 0x1400041a6
mov r8d, 0x693
lea rdx, str.C:Users10643DownloadsTelegram_Desktophwiidhx_hwidimgui.h
lea rcx, str.Size___0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
movsxd r8, dword [rbx + 0xd0]
mov rax, qword [rbx + 0xd8]
mov edx, dword [rax + r8*4 - 4]
lea r8, [0x140037890]
not edx
movzx eax, dil
movzx ecx, dl
xor rcx, rax
shr edx, 8
movzx eax, byte [rsp + 0x39]
xor edx, dword [r8 + rcx*4]
movzx ecx, dl
xor rcx, rax
shr edx, 8
movzx eax, byte [rsp + 0x3a]
xor edx, dword [r8 + rcx*4]
movzx ecx, dl
xor rcx, rax
shr edx, 8
movzx eax, byte [rsp + 0x3b]
xor edx, dword [r8 + rcx*4]
movzx ecx, dl
xor rcx, rax
shr edx, 8
mov rax, qword [0x140161e70]
xor edx, dword [r8 + rcx*4]
not edx
cmp dword [rax + 0x1ca8], edx
jne 0x140004220
mov dword [rax + 0x1cac], edx
cmp dword [rax + 0x1ce8], edx
jne 0x14000422f
mov byte [rax + 0x1cec], 1
mov rbx, qword [rsp + 0x30]
mov eax, edx
add rsp, 0x20
pop rdi
ret
Function at 0x14000f720
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, qword [0x140161e70]
mov edi, edx
cmp byte [rbx + 0x1f9d], 0
jne 0x14000f771
cmp byte [rbx + 0x1f9e], 0
jne 0x14000f771
mov r9d, dword [rbx + 0x3040]
lea r8, str.Tooltip__02d
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.1400025a0
test dil, 1
je 0x14000f896
jmp 0x14000f7f9
movss xmm1, dword [rbx + 0x1614]
lea r8, str.Tooltip__02d
movaps xmm0, xmm1
lea rcx, [rsp + 0x20]
mulss xmm0, dword [0x14003d92c]
xor eax, eax
mulss xmm1, dword [0x14003d91c]
addss xmm0, dword [rbx + 0x128]
lea edx, [rax + 0x10]
addss xmm1, dword [rbx + 0x12c]
mov qword [rbx + 0x1d18], rax
mov dword [rbx + 0x1d04], 1
movss dword [rbx + 0x1d10], xmm0
movss dword [rbx + 0x1d14], xmm1
movss xmm0, dword [rbx + 0x16c0]
mulss xmm0, dword [0x14003d89c]
or dword [rbx + 0x1d00], 0x41
movss dword [rbx + 0x1d60], xmm0
mov r9d, dword [rbx + 0x3040]
call fcn.1400025a0
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x14000f850
lea r11, [0x140037890]
nop dword [rax]
cmp r9b, 0x23
jne 0x14000f833
cmp byte [r8], r9b
jne 0x14000f833
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x14000f820
not ecx
call fcn.140008eb0
test rax, rax
je 0x14000f896
cmp byte [rax + 0x96], 0
je 0x14000f896
mov byte [rax + 0x9d], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xb4], 1
lea rcx, [rsp + 0x20]
inc dword [rbx + 0x3040]
mov edx, 0x10
mov r9d, dword [rbx + 0x3040]
call fcn.1400025a0
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20c0347
call fcn.14000b590
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x1400142b0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x30e0], 0
lea rbx, [rcx + 0x30e8]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x140014357
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x14001430a
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.140016320
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.140002df0
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x30e0]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x30f0]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x140161e68]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x14001435f
mov rcx, rbx
call fcn.140002df0
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret