joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001ac24
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 0x14001ac54
xor eax, eax
jmp 0x14001ad17
mov rbp, rbx
cmp word [rax], si
je 0x14001ac79
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14001ac60
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14001ac5c
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.14001ab44
movsxd r14, eax
mov rcx, r14
test eax, eax
jne 0x14001acba
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14001ac4d
call fcn.140014540
mov rdi, rax
test rax, rax
jne 0x14001acd0
xor ecx, ecx
call fcn.1400144e0
jmp 0x14001acaf
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.14001ab44
test eax, eax
jne 0x14001ad01
mov rcx, rdi
call fcn.1400144e0
jmp 0x14001ad0b
xor ecx, ecx
call fcn.1400144e0
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 0x14001ad34
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 0x14001adbb
mov rsi, rbx
cmp word [rax], bp
je 0x14001ad7a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14001ad64
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14001ad60
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140014540
mov rdi, rax
test rax, rax
je 0x14001ada8
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140024060
mov rbp, rdi
xor ecx, ecx
call fcn.1400144e0
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 0x14001e5b8
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001e5ce
mov al, 1
jmp 0x14001e63a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001e5df
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001e638
mov ecx, dword [rcx + 0x18]
nop
call fcn.14001c040
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001e638
and qword [rsp + 0x38], 0
lea r8, [rsp + 0x38]
mov r9d, 1
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001e638
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001e638
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001e63a
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140020a68
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.1400116e0
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140020af2
cmp byte [rbp - 0x21], r15b
je 0x140020aed
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140020b28
call fcn.140016e00
test eax, eax
jne 0x140020b14
cmp byte [rbp - 0x21], r15b
je 0x140020b0c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140020b28
cmp byte [rbp - 0x21], r15b
je 0x140020b25
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.140017c8c
test eax, eax
jne 0x140020bc8
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400116e0
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140020b67
cmp byte [rbp - 0x21], r15b
je 0x140020b9c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140020b9c
call fcn.140016e00
test eax, eax
jne 0x140020b88
cmp byte [rbp - 0x21], r15b
je 0x140020b81
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140020b9c
cmp byte [rbp - 0x21], r15b
je 0x140020b99
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.140017c8c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140020bc8
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140020bcb
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140020bd9
mov rcx, rdi
call fcn.1400144e0
cmp byte [rbp + 0x3f], r15b
je 0x140020be8
mov rcx, qword [rbp + 0x27]
call fcn.1400144e0
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 0x140021aa0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
xor edi, edi
mov rax, r15
lea rcx, [0x140038670]
and eax, 0x3f
mov r12, r15
sar r12, 6
mov rsi, rdx
lea r9d, [rdi + 0xa]
mov r14, r15
lea rbp, [rax + rax*8]
mov rax, qword [rcx + r12*8]
mov r10, qword [rax + rbp*8 + 0x28]
test r8, r8
je 0x140021af6
cmp word [rdx], r9w
jne 0x140021af6
or byte [rax + rbp*8 + 0x38], 4
jmp 0x140021afb
and byte [rax + rbp*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rax, rsi
mov rbx, rsi
cmp rsi, r8
jae 0x140021c7a
mov r11d, 0xd
lea r13d, [r11 - 0xb]
movzx edx, word [rax]
cmp dx, 0x1a
je 0x140021c45
lea rcx, [rax + 2]
cmp dx, r11w
jne 0x140021b43
cmp rcx, r8
jae 0x140021b63
cmp word [rcx], r9w
jne 0x140021b43
add rax, 4
mov edx, r9d
jmp 0x140021b46
mov rax, rcx
mov word [rbx], dx
mov r9, r13
mov rcx, rbx
mov r9d, 0xa
lea rbx, [rbx + r13]
cmp rax, r8
jb 0x140021b18
jmp 0x140021c7a
lea r9, [rsp + 0x80]
mov word [rsp + 0x70], di
mov r8d, r13d
mov dword [rsp + 0x80], edi
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x20], rdi
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140021c3e
cmp dword [rsp + 0x80], edi
je 0x140021c3e
lea r9, [0x140038670]
mov rax, qword [r9 + r12*8]
test byte [rax + rbp*8 + 0x38], 0x48
mov ebp, 0xa
je 0x140021c18
movzx eax, word [rsp + 0x70]
cmp ax, bp
jne 0x140021bcb
mov word [rbx], bp
jmp 0x140021c77
mov word [rsp + 0x78], ax
mov rdx, r14
mov rax, r14
sar rdx, 6
and eax, 0x3f
mov word [rbx], 0xd
lea r8, [rax + rax*8]
mov rax, qword [r9 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, r13
jl 0x140021be6
mov rax, r14
sar rax, 6
and r14d, 0x3f
mov rax, qword [r9 + rax*8]
lea rcx, [r14 + r14*8]
mov byte [rax + rcx*8 + 0x3c], bpl
jmp 0x140021c77
cmp word [rsp + 0x70], bp
jne 0x140021c24
cmp rbx, rsi
je 0x140021bc3
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140021950
cmp word [rsp + 0x70], bp
je 0x140021c7a
mov word [rbx], 0xd
jmp 0x140021c77
mov rcx, r15
lea r9, [0x140038670]
and ecx, 0x3f
mov rax, r15
sar rax, 6
lea r8, [rcx + rcx*8]
mov rcx, qword [r9 + rax*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x140021c74
or al, r13b
mov byte [rcx + r8*8 + 0x38], al
jmp 0x140021c7a
mov word [rbx], dx
add rbx, r13
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400237f0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140023818
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140023818
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140007b70
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], dl
push rbp
push rsi
push rdi
sub rsp, 0x60
mov rbp, rcx
mov rdi, qword [0x1400632e0]
lea rcx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x140007d9d
lea rcx, [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x140007d9d
mov ecx, 0x50
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
mov r8, qword [0x1400632e0]
xor ebx, ebx
test r8, r8
je 0x140007c31
mov r9d, dword [r8 + 0x12b0]
movsx rdx, word [r8 + 0x2750]
lea rax, [r8 + 0x2754]
lea rax, [rax + rdx*8]
cmp dword [rax], r9d
je 0x140007c26
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x2750], cx
movsx rax, cx
lea rax, [rax*8 + 0x2754]
add rax, r8
mov dword [rax], r9d
mov dword [rax + 4], ebx
inc word [rax + 4]
inc dword [r8 + 0x2748]
mov qword [rsp + 0x20], rsi
lea rax, [rsp + 0x88]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rsi
test rsi, rsi
je 0x140007c65
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm0
movups xmmword [rsi + 0x20], xmm0
movups xmmword [rsi + 0x30], xmm0
movups xmmword [rsi + 0x40], xmm0
jmp 0x140007c68
mov rsi, rbx
mov qword [rdi + 0xa0], rsi
lea rax, [0x1400590f8]
mov qword [rdi + 0x90], rax
or dword [rdi + 0xc], 6
mov qword [rsi], rbp
mov rax, qword [rsp + 0x90]
mov qword [rsi + 0x20], rax
mov rax, qword [rsp + 0x98]
mov qword [rsi + 0x18], rax
mov dword [rsi + 0x28], 9
mov rdi, qword [rdi + 0xa0]
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
shr rax, 0x10
movzx ecx, ax
mov r9d, 4
lea r8, [rdi + 0x2c]
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x140007cd5
mov dword [rdi + 0x2c], ebx
mov rax, qword [0x1400632e0]
mov rcx, qword [rax + 0x1e98]
mov rdx, qword [rcx]
mov rax, qword [rsi]
mov qword [rdx + 0x30], rax
mov qword [rdx + 0x28], rax
mov byte [rsi + 0x31], 1
lea rax, str.xinput1_4.dll
mov qword [rsp + 0x38], rax
lea rax, str.xinput1_3.dll
mov qword [rsp + 0x40], rax
lea rax, str.xinput9_1_0.dll
mov qword [rsp + 0x48], rax
lea rax, str.xinput1_2.dll
mov qword [rsp + 0x50], rax
lea rax, str.xinput1_1.dll
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + rbx*8 + 0x38]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdi, rax
test rax, rax
jne 0x140007d5f
inc rbx
cmp rbx, 5
jl 0x140007d31
mov al, 1
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
mov qword [rsi + 0x38], rdi
lea rdx, str.XInputGetCapabilities
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x40], rax
lea rdx, str.XInputGetState
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x48], rax
mov al, 1
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
xor al, al
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000b030
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 0x14000b08d
lea rbx, [0x140054040]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x14000b074
cmp r10, 2
jb 0x14000b074
cmp byte [r9], r8b
jne 0x14000b074
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 0x14000b050
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x14000b0cf
lea rbx, [0x140054040]
cmp r8b, 0x23
jne 0x14000b0b3
cmp byte [r9], r8b
jne 0x14000b0b3
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 0x14000b0a0
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x14000b280
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
xor r14d, r14d
mov rsi, r8
test r8, r8
je 0x14000b29e
mov qword [r8], r14
lea rdx, [0x14005a880]
call fcn.14000b0e0
mov rbx, rax
test rax, rax
jne 0x14000b2c3
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rbp
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov ebp, eax
cmp eax, 0xffffffff
je 0x14000b3ed
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 0x14000b3ed
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x14000b3ed
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 0x14000b3ed
cmp rdi, 0xffffffffffffffff
je 0x14000b3ed
mov rcx, rdi
call fcn.140010f80
mov rbp, rax
test rax, rax
je 0x14000b3ed
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 0x14000b3da
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov r8, qword [0x1400632e0]
test r8, r8
je 0x14000b3cf
movsx rdx, word [r8 + 0x2750]
lea rcx, [r8 + 0x2754]
mov r9d, dword [r8 + 0x12b0]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x14000b3c4
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x2750], cx
movsx rax, cx
lea rcx, [r8 + 0x2754]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], r14d
inc word [rcx + 6]
inc dword [r8 + 0x274c]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14000b3f6
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rsi, rsi
je 0x14000b3e8
mov qword [rsi], rdi
mov rax, rbp
jmp 0x14000b3f8
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 rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x14001af10
Capabilities:
Hash data with crc32

Disassembly:
mov dword [rsp + 0x10], edx
push rbx
sub rsp, 0x20
movsxd r8, dword [rcx + 0x108]
lea r10, [0x140054040]
mov rax, qword [rcx + 0x110]
mov r9, rcx
mov ebx, dword [rax + r8*4 - 4]
not ebx
movzx eax, dl
movzx r8d, bl
shr ebx, 8
xor r8, rax
movzx eax, byte [rsp + 0x39]
xor ebx, dword [r10 + r8*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, byte [rsp + 0x3a]
xor ebx, dword [r10 + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, byte [rsp + 0x3b]
xor ebx, dword [r10 + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
xor ebx, dword [r10 + rcx*4]
mov rcx, qword [r9]
not ebx
cmp dword [rcx + 0x13c0], ebx
jne 0x14001af9b
movsxd r8, edx
mov ecx, ebx
mov edx, 4
call fcn.140026d70
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x140025540
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 + 0x2628], 0
lea rbx, [rcx + 0x2630]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x1400255e7
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x14002559a
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.1400280b0
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.14000bad0
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x2628]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x2638]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x1400632d8]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x1400255ef
mov rcx, rbx
call fcn.14000bad0
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x140025990
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
mov rbx, qword [0x1400632e0]
xor ebp, ebp
cmp byte [rbx + 0x2568], bpl
jne 0x140025a6f
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x140025a68
lea r8, [rsp + 0x30]
mov qword [rsp + 0x30], rbp
call fcn.14000b280
mov rsi, rax
test rax, rax
je 0x140025a68
mov rdx, qword [rsp + 0x30]
test rdx, rdx
je 0x1400259f4
mov rcx, rax
call fcn.140025bc0
mov r8, qword [0x1400632e0]
test r8, r8
je 0x140025a5f
movsx rdx, word [r8 + 0x2750]
lea rcx, [r8 + 0x2754]
mov r9d, dword [r8 + 0x12b0]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x140025a54
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x2750], cx
movsx rax, cx
lea rcx, [r8 + 0x2754]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], ebp
inc word [rcx + 6]
inc dword [r8 + 0x274c]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov byte [rbx + 0x2568], 1
movss xmm0, dword [rbx + 0x256c]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x140025afe
subss xmm0, dword [rbx + 0x18]
comiss xmm1, xmm0
movss dword [rbx + 0x256c], xmm0
jb 0x140025afe
mov rdi, qword [rbx + 0x20]
test rdi, rdi
je 0x140025af1
mov rax, qword [0x1400632e0]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], rbp
mov dword [rax + 0x256c], ebp
call fcn.140025e20
lea rdx, [0x14005a884]
mov rcx, rdi
mov rsi, rax
call fcn.14000b0e0
mov rdi, rax
test rax, rax
je 0x140025af8
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x140025af8
mov byte [rbx + 0xbc], 1
mov dword [rbx + 0x256c], ebp
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x140025b20
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x1400632e0]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x140025b83
mov qword [rsp], rbx
lea rbx, [0x140054040]
nop dword [rax]
cmp r9b, 0x23
jne 0x140025b63
cmp byte [r8], r9b
jne 0x140025b63
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 0x140025b50
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x2580]
not eax
mov r8, qword [r10 + 0x2588]
lea rdx, [rcx + rcx*8]
lea rcx, [r8 + rdx*8]
cmp r8, rcx
je 0x140025baf
cmp dword [r8 + 8], eax
je 0x140025bb6
add r8, 0x48
cmp r8, rcx
jne 0x140025ba0
xor eax, eax
add rsp, 8
ret
mov rax, r8
add rsp, 8
ret
Function at 0x14003e1f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rdi, qword [0x1400632e0]
mov r10, rcx
mov r9, qword [rcx + 0x188]
movsxd rax, edx
imul rbx, rax, 0x74
add rbx, qword [rcx + 0x18]
mov dword [rcx + 0x74], edx
test dword [rbx], 0x10000
movss xmm2, dword [rbx + 0x38]
je 0x14003e233
addss xmm2, dword [rcx + 0x90]
movaps xmm0, xmm2
lea rsi, [r9 + 0x118]
subss xmm0, dword [r9 + 0x28]
movss dword [rsi], xmm2
movss xmm1, dword [rcx + 0x88]
addss xmm1, dword [rcx + 0x7c]
movss dword [r9 + 0x130], xmm2
subss xmm0, dword [r9 + 0x15c]
movss dword [r9 + 0x120], xmm2
movss dword [r9 + 0x11c], xmm1
movss dword [r9 + 0x160], xmm0
mov eax, dword [rcx + 0x8c]
mov dword [r9 + 0x150], eax
movsx eax, byte [rbx + 0x6e]
mov dword [r9 + 0x170], eax
movss dword [r9 + 0x234], xmm1
mov eax, dword [rbx + 0x38]
mov dword [r9 + 0x230], eax
mov eax, dword [rbx + 0x3c]
mov dword [r9 + 0x238], eax
mov eax, dword [rbx + 0x40]
mov dword [r9 + 0x1d8], eax
movzx eax, byte [rbx + 0x6c]
mov byte [r9 + 0xcf], al
cmp byte [rbx + 0x6c], 0
je 0x14003e2df
xor eax, eax
mov dword [rdi + 0x1d38], eax
mov dword [rdi + 0x1d40], eax
test dword [rcx + 4], 0x100000
je 0x14003e2f0
mov r8d, 2
jmp 0x14003e36a
movups xmm0, xmmword [rbx + 0x24]
mov rax, qword [r9 + 0x2b0]
movss xmm4, dword [rbx + 0x24]
movss xmm3, dword [rbx + 0x28]
movss xmm2, dword [rbx + 0x2c]
movss xmm1, dword [rbx + 0x30]
movups xmmword [r9 + 0x250], xmm0
movss dword [rsp + 0x20], xmm4
movss dword [rsp + 0x24], xmm3
movss dword [rsp + 0x28], xmm2
movss dword [rsp + 0x2c], xmm1
movss dword [rax + 0x60], xmm4
movss dword [rax + 0x64], xmm3
movss dword [rax + 0x68], xmm2
movss dword [rax + 0x6c], xmm1
mov rax, qword [r9 + 0x2b0]
movups xmm0, xmmword [rsp + 0x20]
movsxd rdx, dword [rax + 0x98]
mov rcx, qword [rax + 0xa0]
add rdx, rdx
movups xmmword [rcx + rdx*8 - 0x10], xmm0
movzx r8d, word [rbx + 0x60]
mov rdx, qword [r9 + 0x2b0]
mov rcx, qword [r10 + 0x1a0]
call fcn.140034c30
cmp byte [rdi + 0x2618], 0
je 0x14003e3a8
cmp byte [rbx + 0x6c], 0
jne 0x14003e3a8
xor r8d, r8d
lea rdx, [0x14005aba0]
mov rcx, rsi
call fcn.140025650
mov dword [rdi + 0x2650], 0x7f7fffff
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x14003fde0
Capabilities:
Hash data with crc32

Disassembly:
mov rax, qword [0x1400632e0]
mov rdx, qword [rax + 0x2188]
cmp ecx, 0xffffffff
jne 0x14003fdfa
cmp dword [rdx + 0x74], ecx
cmovne ecx, dword [rdx + 0x74]
cmp ecx, dword [rdx + 0x6c]
mov eax, 0xffffffff
cmove ecx, eax
test byte [rdx + 4], 7
je 0x14003fe77
mov r10d, dword [rdx]
lea r8, [0x14005aba9]
movzx eax, word [rdx + 0x78]
lea r11, [0x140054040]
not r10d
mov word [rdx + 0x224], cx
mov ecx, r10d
mov byte [rdx + 0x23b], 1
mov word [rdx + 0x7a], ax
mov r9b, 0x23
nop dword [rax + rax]
cmp r9b, 0x23
jne 0x14003fe53
cmp byte [r8], r9b
jne 0x14003fe53
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 0x14003fe40
not ecx
jmp fcn.14001feb0
ret
Function at 0x140051640
Capabilities:
Parse pe header

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