joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800d3070
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, ecx
mov ecx, dword [0x180157b5c]
mov ebx, edi
test ecx, ecx
je 0x1800d31ab
mov rax, qword [0x180157b50]
add rax, 0x20
nop
movzx edx, byte [rax]
shr edx, 1
and edx, 1
cmp edx, esi
jne 0x1800d30c8
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x1800d30a0
mov eax, edi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
cmp ebx, 0xffffffff
je 0x1800d31ab
mov r8d, edi
lea rcx, [rsp + 0x20]
test esi, esi
mov edx, 0xffffffff
setne r8b
call fcn.1800d33f0
mov r8d, dword [0x180157b5c]
cmp ebx, r8d
jae 0x1800d3138
nop word [rax + rax]
mov eax, ebx
imul rcx, rax, 0x38
mov rax, qword [0x180157b50]
movzx edx, byte [rcx + rax + 0x20]
shr edx, 1
and edx, 1
cmp edx, esi
je 0x1800d3131
mov edx, esi
mov ecx, ebx
call fcn.1800d32e0
mov edi, eax
test eax, eax
jne 0x1800d3138
mov r8d, dword [0x180157b5c]
inc ebx
cmp ebx, r8d
jb 0x1800d3100
cmp qword [rsp + 0x20], 0
je 0x1800d31ab
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x1800d3197
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
nop dword [rax]
nop dword [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x1800d3188
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rbp, 1
jne 0x1800d3160
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x180152ba8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x48]
mov eax, edi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x1800d32e0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov eax, ecx
lea r9, [rsp + 0x30]
imul rbx, rax, 0x38
mov esi, edx
add rbx, qword [0x180157b50]
mov r8, qword [rbx]
movzx eax, byte [rbx + 0x20]
and al, 1
movzx ecx, al
lea rdi, [r8 - 5]
cmove rdi, r8
mov r8d, 0x40
lea rbp, [rcx*2 + 5]
mov rcx, rdi
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1800d3344
mov eax, 0xa
jmp 0x1800d33d3
test esi, esi
je 0x1800d3366
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, edi
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x1800d3389
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x1800d3389
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x1800d3382
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x1800d3389
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
and byte [rbx + 0x20], 0xfd
and sil, 1
movzx eax, sil
shl sil, 2
add al, al
or al, byte [rbx + 0x20]
and al, 0xfb
or al, sil
mov byte [rbx + 0x20], al
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1800d33f0
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x180150040]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor esi, esi
mov r14d, edx
mov rbx, rcx
mov qword [rcx], rsi
mov qword [rcx + 8], rsi
xor edx, edx
mov ebp, r8d
lea ecx, [rsi + 4]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1800d351a
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x1800d3511
nop word [rax + rax]
cmp dword [rsp + 0x20], 0x10
jb 0x1800d34f4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x1800d34f4
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x1800d34f4
mov rdx, qword [rbx]
test rdx, rdx
jne 0x1800d34b2
mov dword [rbx + 8], 0x80
mov r8d, 0x200
mov rcx, qword [0x180152ba8]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
mov rdx, rax
test rax, rax
je 0x1800d3511
jmp 0x1800d34e7
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x1800d34e7
mov rcx, qword [0x180152ba8]
lea r9d, [rax + rax]
mov r8, rdx
shl r9, 2
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x1800d3511
mov eax, dword [rbx + 8]
add eax, eax
mov qword [rbx], rdx
mov dword [rbx + 8], eax
mov ecx, dword [rbx + 0xc]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
inc dword [rbx + 0xc]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rdi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x1800d3460
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], rsi
je 0x1800d3573
cmp dword [rbx + 0xc], esi
jbe 0x1800d3573
nop dword [rax]
nop dword [rax + rax]
mov rax, qword [rbx]
xor edx, edx
mov ecx, esi
mov r8d, dword [rax + rcx*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x1800d356c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rdi
call fcn.1800d38f0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [rbx + 0xc]
jb 0x1800d3530
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1800d11c0
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x1800d3aa0
Capabilities:
Resume thread

Disassembly:
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rdi, rcx
je 0x1800d3b0f
mov qword [rsp + 0x30], rbx
xor ebx, ebx
cmp dword [rcx + 0xc], ebx
jbe 0x1800d3af8
mov qword [rsp + 0x38], rsi
mov rax, qword [rdi]
xor edx, edx
mov r8d, dword [rax + rbx*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x1800d3aec
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [rdi + 0xc]
jb 0x1800d3ac0
mov rsi, qword [rsp + 0x38]
mov r8, qword [rdi]
xor edx, edx
mov rcx, qword [0x180152ba8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1800d3bd0
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov rdi, rcx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
cmp rdi, 0x40000000
jbe 0x1800d3c10
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x180157b40]
lea r15, [rdi + 0x40000000]
cmp rcx, r15
cmovbe r15, rcx
sub r15, 0xfff
test rsi, rsi
je 0x1800d3c4e
cmp rsi, r14
jb 0x1800d3c46
cmp rsi, r15
jae 0x1800d3c46
cmp qword [rsi + 8], 0
jne 0x1800d3e17
mov rsi, qword [rsi]
test rsi, rsi
jne 0x1800d3c31
mov qword [rsp + 0xa0], rbx
mov rbx, rdi
mov qword [rsp + 0xa8], rbp
mov qword [rsp + 0xb0], r12
mov r12d, 0x40
cmp rdi, r14
jb 0x1800d3ce2
nop dword [rax]
nop dword [rax + rax]
mov ebp, dword [rsp + 0x48]
mov rax, rbx
xor edx, edx
div rbp
sub rbx, rdx
sub rbx, rbp
cmp rbx, r14
jb 0x1800d3cd9
nop word [rax + rax]
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1800d3cd9
cmp dword [rsp + 0x70], 0x10000
je 0x1800d3d5b
mov rbx, qword [rsp + 0x58]
cmp rbx, rbp
jb 0x1800d3cd9
sub rbx, rbp
cmp rbx, r14
jae 0x1800d3ca0
test rsi, rsi
jne 0x1800d3dc0
cmp rdi, r15
ja 0x1800d3dff
nop dword [rax + rax]
mov ebp, dword [rsp + 0x48]
xor edx, edx
mov rax, rdi
mov ebx, ebp
div rbp
mov eax, ebp
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r15
ja 0x1800d3dff
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1800d3dff
cmp dword [rsp + 0x70], 0x10000
je 0x1800d3d91
xor edx, edx
lea edi, [rbp - 1]
add rdi, qword [rsp + 0x68]
add rdi, qword [rsp + 0x50]
mov rax, rdi
div rbx
sub rdi, rdx
cmp rdi, r15
jbe 0x1800d3d12
jmp 0x1800d3dff
test rbx, rbx
je 0x1800d3cd9
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x1800d3dc0
cmp rbx, r14
jae 0x1800d3c80
jmp 0x1800d3ce2
test rdi, rdi
je 0x1800d3dff
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x1800d3dc0
cmp rdi, r15
jbe 0x1800d3cf0
jmp 0x1800d3dff
xor edx, edx
lea rcx, [rsi + 0x40]
mov dword [rsi + 0x10], edx
nop dword [rax]
mov qword [rcx], rdx
mov rax, rcx
mov qword [rsi + 8], rcx
add r12, 0x40
add rcx, 0x40
mov rdx, rax
cmp r12, 0xfc0
jbe 0x1800d3dd0
mov rax, qword [0x180157b40]
mov qword [rsi], rax
mov qword [0x180157b40], rsi
mov r12, qword [rsp + 0xb0]
mov rbp, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0xa0]
mov rax, rsi
mov rsi, qword [rsp + 0xb8]
add rsp, 0x80
pop r15
pop r14
pop rdi
ret
Function at 0x140002850
Capabilities:
Parse pe header

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

Function at 0x140001d40
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x58], r9
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov ecx, 2
call fcn.140002290
lea rcx, str.Mingw_w64_runtime_failure:_n
mov edx, 0x1b
mov r8d, 1
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 2
call fcn.140002290
mov r8, qword [rsp + 0x28]
mov rcx, rax
mov rdx, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
int3

Function at 0x1400023b0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rax, qword [0x14000a008]
movzx edx, word [rax]
cmp edx, 0x5a4d
jne 0x14000241c
movsxd rdx, dword [rax + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x14000241c
add rax, rdx
movzx edx, word [rax + 0x18]
cmp edx, 0x20b
jne 0x14000241c
movzx edx, word [rax + 6]
test edx, edx
je 0x14000241c
sub rcx, qword [0x14000a008]
movzx r8d, word [rax + 0x14]
add rax, r8
add rax, 0x18
jmp 0x140002408
add rax, 0x28
dec edx
je 0x14000241c
mov r8d, dword [rax + 0xc]
cmp rcx, r8
jb 0x140002400
add r8d, dword [rax + 8]
cmp rcx, r8
jae 0x140002400
jmp 0x14000241e
xor eax, eax
ret

Function at 0x140002420
Capabilities:
Parse pe header

Disassembly:
mov rcx, qword [0x14000a008]
movzx edx, word [rcx]
xor eax, eax
cmp edx, 0x5a4d
jne 0x140002455
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rcx + rdx], 0x4550
jne 0x140002455
movzx r8d, word [rcx + rdx + 0x18]
cmp r8d, 0x20b
jne 0x140002455
movzx eax, word [rcx + rdx + 6]
ret

Function at 0x1400024d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000a008]
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x1400024fc
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x1400024fc
movzx ecx, word [rax + rcx + 0x18]
cmp ecx, 0x20b
je 0x1400024fe
xor eax, eax
ret
Function at 0x140002088
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400020d2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400020d2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400020d2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400020d2
cmp dword [rcx + 0x84], 0xe
jbe 0x1400020d2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400020d4
xor al, al
add rsp, 0x28
ret
Function at 0x140003050
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 0x1400030ad
lea rbx, [0x1400359b0]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x140003094
cmp r10, 2
jb 0x140003094
cmp byte [r9], r8b
jne 0x140003094
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 0x140003070
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x1400030ef
lea rbx, [0x1400359b0]
cmp r8b, 0x23
jne 0x1400030d3
cmp byte [r9], r8b
jne 0x1400030d3
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 0x1400030c0
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x140003230
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x14000324a
mov qword [r8], 0
lea rdx, [0x14003ada0]
call fcn.140003100
mov rbx, rax
test rax, rax
jne 0x14000326a
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 0x140003341
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 0x140003341
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x140003341
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 0x140003341
cmp rdi, 0xffffffffffffffff
je 0x140003341
mov rax, qword [0x140041888]
test rax, rax
je 0x1400032de
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 0x140003341
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 0x14000332e
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x140041888]
test rax, rax
je 0x140003323
dec dword [rax + 0xf4]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14000334a
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x14000333c
mov qword [r14], rdi
mov rax, rsi
jmp 0x14000334c
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 0x140006530
Capabilities:
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x20
movsxd r8, dword [rcx + 0xf0]
lea r11, [0x1400359b0]
mov rax, qword [rcx + 0xf8]
mov r9, rcx
movsxd r10, edx
mov ebx, dword [rax + r8*4 - 4]
not ebx
movzx eax, r10b
movzx r8d, bl
shr ebx, 8
xor r8, rax
mov eax, r10d
shr eax, 8
movzx edx, al
mov eax, r10d
xor ebx, dword [r11 + r8*4]
movzx ecx, bl
xor rdx, rcx
shr ebx, 8
shr eax, 0x10
xor ebx, dword [r11 + rdx*4]
movzx ecx, bl
shr ebx, 8
movzx edx, al
xor rdx, rcx
xor ebx, dword [r11 + rdx*4]
movzx ecx, bl
shr ebx, 8
mov edx, r10d
shr rdx, 0x18
xor rdx, rcx
mov rcx, qword [r9]
xor ebx, dword [r11 + rdx*4]
not ebx
cmp dword [rcx + 0x3f18], ebx
jne 0x1400065c6
mov r8, r10
mov edx, 4
mov ecx, ebx
call fcn.1400193a0
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x1400124d0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x140041040]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x140041888]
mov edi, ecx
cmp byte [rbx + 0x4a75], 0
jne 0x140012531
cmp byte [rbx + 0x4a76], 0
jne 0x140012531
movsx r9d, word [rbx + 0x5b9a]
lea r8, str.Tooltip__02d
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.140002fd0
test dil, 1
je 0x14001265f
jmp 0x1400125ba
movss xmm1, dword [rbx + 0x389c]
lea r8, str.Tooltip__02d
movsx r9d, word [rbx + 0x5b9a]
lea rcx, [rsp + 0x20]
movaps xmm0, xmm1
xor eax, eax
mulss xmm0, dword [0x14003b8ec]
mulss xmm1, dword [0x14003b8e0]
lea edx, [rax + 0x10]
addss xmm0, dword [rbx + 0xe08]
addss xmm1, dword [rbx + 0xe0c]
mov qword [rbx + 0x47c0], rax
mov dword [rbx + 0x47ac], 1
movss dword [rbx + 0x47b8], xmm0
movss dword [rbx + 0x47bc], xmm1
movss xmm0, dword [rbx + 0x38f8]
mulss xmm0, dword [0x14003b878]
or dword [rbx + 0x47a8], 0x41
movss dword [rbx + 0x4808], xmm0
call fcn.140002fd0
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x140012610
lea r11, [0x1400359b0]
nop word [rax + rax]
cmp r9b, 0x23
jne 0x1400125f3
cmp byte [r8], r9b
jne 0x1400125f3
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 0x1400125e0
not ecx
call fcn.140009cb0
test rax, rax
je 0x14001265f
cmp byte [rax + 0xb6], 0
je 0x14001265f
mov byte [rax + 0xbb], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xbd], 1
lea rcx, [rsp + 0x20]
mov byte [rax + 0xd8], 1
mov edx, 0x10
inc word [rbx + 0x5b9a]
movsx r9d, word [rbx + 0x5b9a]
call fcn.140002fd0
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20c0347
call fcn.14000c4e0
mov al, 1
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140033640
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x140017bc0
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 + 0x5c80], 0
lea rbx, [rcx + 0x5c88]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x140017c63
mov ecx, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test ecx, ecx
jns 0x140017c16
mov eax, ecx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, ecx
mov rcx, rbx
test eax, eax
cmovg edx, eax
call fcn.140019e70
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.140003690
mov eax, dword [rbx]
lea rcx, [0x14004187c]
mov r9, qword [rdi + 0x5c80]
test eax, eax
lea edx, [rax - 1]
mov rax, qword [rdi + 0x5c90]
cmove edx, r14d
test rax, rax
movsxd r8, edx
mov edx, 1
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x140017c6b
mov rcx, rbx
call fcn.140003690
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x1400180e0
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x140041888]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x140018143
mov qword [rsp], rbx
lea rbx, [0x1400359b0]
nop dword [rax]
cmp r9b, 0x23
jne 0x140018123
cmp byte [r8], r9b
jne 0x140018123
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rbx + rdx*4]
test r9b, r9b
jne 0x140018110
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5bf8]
xor r8d, r8d
not eax
test ecx, ecx
jle 0x140018177
mov r10, qword [r10 + 0x5c00]
mov r9, rcx
mov edx, r8d
lea rcx, [r10 + 8]
cmp dword [rcx], eax
je 0x14001817e
inc r8d
inc rdx
add rcx, 0x48
cmp rdx, r9
jl 0x140018164
xor eax, eax
add rsp, 8
ret
movsxd rax, r8d
lea rcx, [rax + rax*8]
lea rax, [r10 + rcx*8]
add rsp, 8
ret
Function at 0x14003427c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400342c6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400342c6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400342c6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400342c6
cmp dword [rcx + 0x84], 0xe
jbe 0x1400342c6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400342c8
xor al, al
add rsp, 0x28
ret
Function at 0x401000
Capabilities:
Set console window title

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, 0
mov dword [rbp - 4], eax
movabs rax, 0
mov r10, rax
mov rcx, r10
call fcn.00401140
mov r10, rax
mov rcx, r10
call sub.msvcrt.dll_srand
call fcn.00401268
mov rax, qword [str.gierT_v.4.1]
mov r10, rax
mov rcx, r10
call sub.kernel32.dll_SetConsoleTitleA
mov eax, dword [section..data]
mov r10, rax
mov rcx, r10
call fcn.004011d0
mov dword [rbp - 8], eax
mov eax, dword [rbp - 4]
mov r11, rax
mov eax, dword [section..data]
mov r10, rax
mov rcx, r10
mov rdx, r11
call fcn.00401540
mov dword [rbp - 0xc], eax
mov eax, dword [rbp - 0xc]
mov r11, rax
mov eax, dword [rbp - 8]
mov r10, rax
mov rcx, r10
mov rdx, r11
call fcn.004011f5
cmp eax, 1
jne 0x4010d0
mov eax, 0xa
mov r10, rax
mov rcx, r10
call fcn.004012c4
lea rax, str.____Masz_punkt____
mov r10, rax
mov rcx, r10
call sub.msvcrt.dll_puts
call fcn.004012f6
mov eax, dword [rbp - 4]
add eax, 1
mov dword [rbp - 4], eax
jmp 0x40112f
mov eax, dword [rbp - 0xc]
cmp eax, 0xffffffff
jne 0x40110d
mov eax, 2
mov r10, rax
mov rcx, r10
call fcn.004012c4
lea rax, [0x0040202f]
mov r10, rax
mov rcx, r10
call sub.msvcrt.dll_puts
call fcn.004012f6
mov eax, 0
jmp 0x401134
mov eax, dword [rbp - 4]
mov r11, rax
mov eax, dword [section..data]
mov r10, rax
mov rcx, r10
mov rdx, r11
call fcn.00401540
mov dword [rbp - 0xc], eax
jmp 0x40107b
jmp 0x40104a
leave
ret

Function at 0x40100b
Capabilities:
Set console window title

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, 0
mov dword [rbp - 4], eax
movabs rax, 0
mov r10, rax
mov rcx, r10
call fcn.00401140
mov r10, rax
mov rcx, r10
call sub.msvcrt.dll_srand
call fcn.00401268
mov rax, qword [str.gierT_v.4.1]
mov r10, rax
mov rcx, r10
call sub.kernel32.dll_SetConsoleTitleA
mov eax, dword [section..data]
mov r10, rax
mov rcx, r10
call fcn.004011d0
mov dword [rbp - 8], eax
mov eax, dword [rbp - 4]
mov r11, rax
mov eax, dword [section..data]
mov r10, rax
mov rcx, r10
mov rdx, r11
call fcn.00401540
mov dword [rbp - 0xc], eax
mov eax, dword [rbp - 0xc]
mov r11, rax
mov eax, dword [rbp - 8]
mov r10, rax
mov rcx, r10
mov rdx, r11
call fcn.004011f5
cmp eax, 1
jne 0x4010d0
mov eax, 0xa
mov r10, rax
mov rcx, r10
call fcn.004012c4
lea rax, str.____Masz_punkt____
mov r10, rax
mov rcx, r10
call sub.msvcrt.dll_puts
call fcn.004012f6
mov eax, dword [rbp - 4]
add eax, 1
mov dword [rbp - 4], eax
jmp 0x40112f
mov eax, dword [rbp - 0xc]
cmp eax, 0xffffffff
jne 0x40110d
mov eax, 2
mov r10, rax
mov rcx, r10
call fcn.004012c4
lea rax, [0x0040202f]
mov r10, rax
mov rcx, r10
call sub.msvcrt.dll_puts
call fcn.004012f6
mov eax, 0
jmp 0x401134
mov eax, dword [rbp - 4]
mov r11, rax
mov eax, dword [section..data]
mov r10, rax
mov rcx, r10
mov rdx, r11
call fcn.00401540
mov dword [rbp - 0xc], eax
jmp 0x40107b
jmp 0x40104a
leave
ret
Function at 0x140001950
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x140001983
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x1400019c9
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x1400019c4
nop
cmp rbx, rcx
jae 0x1400019c9
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
dec edi
jne 0x1400019b0
cmp rbx, rcx
jb 0x1400019cd
xor eax, eax
jmp 0x1400019d9
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret