joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001c130
Capabilities:
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x20
movsxd r8, dword [rcx + 0x100]
lea r11, [0x14004a4a0]
mov rax, qword [rcx + 0x108]
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 + 0x4054], ebx
jne 0x14001c1c6
mov r8, r10
mov edx, 4
mov ecx, ebx
call fcn.14002f660
mov eax, ebx
add rsp, 0x20
pop rbx
ret

Function at 0x14001c1d0
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 0x18
mov rax, qword [rcx + 0x108]
lea r9, [0x14004a4a0]
movss xmm2, dword [rcx + 0x120]
movss xmm3, dword [rcx + 0x124]
movsxd rcx, dword [rcx + 0x100]
movss xmm0, dword [rdx]
movss xmm1, dword [rdx + 4]
subss xmm0, xmm2
subss xmm1, xmm3
mov r8d, dword [rax + rcx*4 - 4]
not r8d
movzx ecx, r8b
shr r8d, 8
movss dword [rsp], xmm0
movzx eax, byte [rsp]
xor rcx, rax
movss xmm0, dword [rdx + 8]
movzx eax, byte [rsp + 1]
subss xmm0, xmm2
movss dword [rsp + 4], xmm1
movss xmm1, dword [rdx + 0xc]
xor r8d, dword [r9 + rcx*4]
subss xmm1, xmm3
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 2]
movss dword [rsp + 8], xmm0
movss dword [rsp + 0xc], xmm1
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 3]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 4]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 5]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 6]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 7]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 8]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 9]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0xa]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0xb]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0xc]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0xd]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0xe]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
xor r8d, dword [r9 + rcx*4]
movzx ecx, byte [rsp + 0xf]
movzx edx, r8b
shr r8d, 8
xor rdx, rcx
xor r8d, dword [r9 + rdx*4]
not r8d
mov eax, r8d
add rsp, 0x18
ret
Function at 0x14001fa50
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x50
movaps xmmword [rsp + 0x40], xmm6
mov rax, qword [0x14005b028]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, qword [0x14005bdd8]
mov r14d, edx
mov r15d, dword [rsp + 0x90]
mov r10, rcx
mov r9d, r15d
and r9d, 0x40000000
mov rbx, qword [rdi + 0x4008]
mov eax, dword [rbx + 0x14]
and eax, 4
or eax, 0x1000103
or r15d, eax
neg r9d
mov r9d, dword [rdi + 0x49b8]
sbb eax, eax
bts r9d, 8
and eax, 2
mov dword [rdi + 0x49b8], r9d
mov dword [rdi + 0x49f0], eax
cmp qword [rbx + 0x1b8], 0
jne 0x14001faec
cmp qword [rdi + 0x4da8], 0
lea rax, [rbx + 0x260]
je 0x14001faf3
lea rax, [rbx + 0x230]
movss xmm2, dword [rax]
lea rcx, [rsp + 0x30]
movss xmm3, dword [rax + 4]
subss xmm3, dword [rbx + 0x114]
subss xmm2, dword [rbx + 0x110]
mov rdx, qword [r8]
call fcn.140028570
movsd xmm0, qword [rsp + 0x30]
or r9d, 2
movsd qword [rdi + 0x49d8], xmm0
mov dword [rdi + 0x49b8], r9d
mov dword [rdi + 0x49c0], 1
test r10, r10
je 0x14001fb6a
movsxd rdx, dword [rbx + 0x100]
mov rcx, qword [rbx + 0x108]
mov eax, dword [rbx + 0x10]
cmp dword [rcx + rdx*4 - 4], eax
jne 0x14001fb6a
mov r9, qword [rbx + 8]
lea r8, str._s__s
mov qword [rsp + 0x20], r10
jmp 0x14001fb9e
mov r9, qword [rbx + 8]
test r10, r10
je 0x14001fb92
mov dword [rsp + 0x28], r14d
lea r8, str._s__s__08X
xor edx, edx
mov qword [rsp + 0x20], r10
lea rcx, [rsp + 0x30]
call fcn.1400186f0
jmp 0x14001fbaa
mov dword [rsp + 0x20], r14d
lea r8, str._s__08X
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.1400186f0
movss xmm6, dword [rdi + 0x3920]
mov r8d, r15d
mov rcx, qword [rsp + 0x30]
xor edx, edx
mov dword [rdi + 0x3920], 0
call fcn.140022b20
mov rsi, qword [rdi + 0x4008]
movzx ebp, al
movss dword [rdi + 0x3920], xmm6
cmp word [rsi + 0xcc], 1
mov dword [rsi + 0x88], r14d
jne 0x14001fbfb
movsd xmm0, qword [rsi + 0x28]
movsd qword [rbx + 0x110], xmm0
mov r9d, r14d
lea rdx, [0x14004f3e9]
not r9d
lea r10, [0x14004a4a0]
mov ebx, r9d
mov r8b, 0x23
cmp r8b, 0x23
jne 0x14001fc28
cmp byte [rdx], r8b
jne 0x14001fc28
cmp byte [rdx + 1], r8b
cmove ebx, r9d
movzx ecx, bl
movzx eax, r8b
movzx r8d, byte [rdx]
xor rcx, rax
shr ebx, 8
inc rdx
xor ebx, dword [r10 + rcx*4]
test r8b, r8b
jne 0x14001fc15
not ebx
cmp dword [rdi + 0x406c], ebx
jne 0x14001fc58
xor edx, edx
xor ecx, ecx
call fcn.14001c390
cmp dword [rdi + 0x4ae8], r14d
jne 0x14001fca5
bt r15d, 0x17
jb 0x14001fca5
cmp word [rsi + 0x16c], 0
jne 0x14001fc7b
cmp byte [rsi + 0x172], 0
je 0x14001fca5
xor edx, edx
mov rcx, rsi
call fcn.1400250f0
xor edx, edx
mov rcx, rsi
call fcn.14002a700
mov rdx, rsi
mov ecx, ebx
call fcn.14001c390
mov eax, dword [rdi + 0x4b0c]
mov dword [rdi + 0x4090], eax
movzx eax, bpl
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140045a70
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop r15
pop r14
pop rdi
ret
Function at 0x140028d30
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x14005b028]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x14005bdd8]
mov edi, ecx
cmp byte [rbx + 0x4cf1], 0
jne 0x140028d91
cmp byte [rbx + 0x4cf2], 0
jne 0x140028d91
movsx r9d, word [rbx + 0x6628]
lea r8, str.Tooltip__02d
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.140018670
test dil, 2
je 0x140028ebf
jmp 0x140028e1a
movss xmm1, dword [rbx + 0x39c4]
lea r8, str.Tooltip__02d
movsx r9d, word [rbx + 0x6628]
lea rcx, [rsp + 0x20]
movaps xmm0, xmm1
xor eax, eax
mulss xmm0, dword [0x140051000]
mulss xmm1, dword [0x140050ff8]
lea edx, [rax + 0x10]
addss xmm0, dword [rbx + 0xe48]
addss xmm1, dword [rbx + 0xe4c]
mov qword [rbx + 0x49d0], rax
mov dword [rbx + 0x49bc], 1
movss dword [rbx + 0x49c8], xmm0
movss dword [rbx + 0x49cc], xmm1
movss xmm0, dword [rbx + 0x3a20]
mulss xmm0, dword [0x140050f80]
or dword [rbx + 0x49b8], 0x41
movss dword [rbx + 0x4a18], xmm0
call fcn.140018670
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x140028e70
lea r11, [0x14004a4a0]
nop word [rax + rax]
cmp r9b, 0x23
jne 0x140028e53
cmp byte [r8], r9b
jne 0x140028e53
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 0x140028e40
not ecx
call fcn.14001ffc0
test rax, rax
je 0x140028ebf
cmp byte [rax + 0xbe], 0
je 0x140028ebf
mov byte [rax + 0xc3], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xc5], 1
lea rcx, [rsp + 0x20]
mov byte [rax + 0xe4], 1
mov edx, 0x10
inc word [rbx + 0x6628]
movsx r9d, word [rbx + 0x6628]
call fcn.140018670
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x2030347
call fcn.140022b20
mov al, 1
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140045a70
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x14002dfd0
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 + 0x6780], 0
lea rbx, [rcx + 0x6788]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x14002e077
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x14002e02a
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.140030620
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.140018ec0
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x6780]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x6790]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x14005bdd0]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x14002e07f
mov rcx, rbx
call fcn.140018ec0
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x14002e3a0
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 [0x14005bdd8]
xor ebp, ebp
cmp byte [rbx + 0x66d8], bpl
jne 0x14002e47f
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x14002e478
lea r8, [rsp + 0x30]
mov qword [rsp + 0x30], rbp
call fcn.140018a00
mov rsi, rax
test rax, rax
je 0x14002e478
mov rdx, qword [rsp + 0x30]
test rdx, rdx
je 0x14002e404
mov rcx, rax
call fcn.14002e5d0
mov r8, qword [0x14005bdd8]
test r8, r8
je 0x14002e46f
movsx rdx, word [r8 + 0x6838]
lea rcx, [r8 + 0x683c]
mov r9d, dword [r8 + 0x3f60]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x14002e464
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 + 0x6838], cx
movsx rax, cx
lea rcx, [r8 + 0x683c]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], ebp
inc word [rcx + 6]
inc dword [r8 + 0x6834]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov byte [rbx + 0x66d8], 1
movss xmm0, dword [rbx + 0x66dc]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x14002e50e
subss xmm0, dword [rbx + 0x18]
comiss xmm1, xmm0
movss dword [rbx + 0x66dc], xmm0
jb 0x14002e50e
mov rdi, qword [rbx + 0x20]
test rdi, rdi
je 0x14002e501
mov rax, qword [0x14005bdd8]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], rbp
mov dword [rax + 0x66dc], ebp
call fcn.14002e830
lea rdx, [0x14004ff14]
mov rcx, rdi
mov rsi, rax
call fcn.140018910
mov rdi, rax
test rax, rax
je 0x14002e508
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 0x14002e508
mov byte [rbx + 0xd0], 1
mov dword [rbx + 0x66dc], ebp
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x14002e530
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x14005bdd8]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x14002e593
mov qword [rsp], rbx
lea rbx, [0x14004a4a0]
nop dword [rax]
cmp r9b, 0x23
jne 0x14002e573
cmp byte [r8], r9b
jne 0x14002e573
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 0x14002e560
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x66f0]
not eax
mov r8, qword [r10 + 0x66f8]
lea rdx, [rcx + rcx*8]
lea rcx, [r8 + rdx*8]
cmp r8, rcx
je 0x14002e5bf
cmp dword [r8 + 8], eax
je 0x14002e5c6
add r8, 0x48
cmp r8, rcx
jne 0x14002e5b0
xor eax, eax
add rsp, 8
ret
mov rax, r8
add rsp, 8
ret
Function at 0x14003adf0
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x70
mov rax, qword [0x14005b028]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rsi, qword [0x14005bdd8]
mov rbp, rcx
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x14003b00e
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x14003b00e
mov qword [rsp + 0x80], rbx
mov ecx, 0x50
mov qword [rsp + 0x88], rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r8, qword [0x14005bdd8]
xor ebx, ebx
mov rdi, rax
test r8, r8
je 0x14003aec4
movsx rdx, word [r8 + 0x6838]
lea rax, [r8 + 0x683c]
mov r9d, dword [r8 + 0x3f60]
lea rax, [rax + rdx*8]
cmp dword [rax], r9d
je 0x14003aeb9
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 + 0x6838], cx
movsx rax, cx
lea rax, [rax*8 + 0x683c]
add rax, r8
mov dword [rax], r9d
mov dword [rax + 4], ebx
inc word [rax + 4]
inc dword [r8 + 0x6830]
test rdi, rdi
je 0x14003aee1
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
movups xmmword [rdi + 0x10], xmm0
movups xmmword [rdi + 0x20], xmm0
movups xmmword [rdi + 0x30], xmm0
movups xmmword [rdi + 0x40], xmm0
jmp 0x14003aee4
mov rdi, rbx
or dword [rsi + 0xc], 6
lea rax, [0x140050698]
mov qword [rsi + 0x80], rax
mov qword [rsi + 0x90], rdi
mov qword [rdi], rbp
mov rax, qword [rsp + 0x58]
mov qword [rdi + 0x20], rax
mov rax, qword [rsp + 0x60]
mov qword [rdi + 0x18], rax
mov dword [rdi + 0x28], 9
test r8, r8
je 0x14003af27
mov rsi, qword [r8 + 0x90]
jmp 0x14003af2a
mov rsi, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
shr rax, 0x10
mov r9d, 4
movzx ecx, ax
lea r8, [rsi + 0x2c]
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x14003af55
mov dword [rsi + 0x2c], ebx
mov rax, qword [0x14005bdd8]
mov rcx, qword [rax + 0x4ad0]
mov rax, qword [rcx]
mov qword [rax + 0x28], rbp
lea rax, str.xinput1_4.dll
mov qword [rsp + 0x30], rax
lea rax, str.xinput1_3.dll
mov qword [rsp + 0x38], rax
lea rax, str.xinput9_1_0.dll
mov qword [rsp + 0x40], rax
lea rax, str.xinput1_2.dll
mov qword [rsp + 0x48], rax
lea rax, str.xinput1_1.dll
mov qword [rsp + 0x50], rax
mov byte [rdi + 0x31], 1
nop word [rax + rax]
mov rcx, qword [rsp + rbx*8 + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
jne 0x14003afce
inc rbx
cmp rbx, 5
jl 0x14003afb0
jmp 0x14003affa
lea rdx, str.XInputGetCapabilities
mov qword [rdi + 0x38], rsi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.XInputGetState
mov rcx, rsi
mov qword [rdi + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0x48], rax
mov rdi, qword [rsp + 0x88]
mov al, 1
mov rbx, qword [rsp + 0x80]
jmp 0x14003b010
xor al, al
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140045a70
mov rbp, qword [rsp + 0x90]
add rsp, 0x70
pop rsi
ret
Function at 0x140042050
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
xor ebx, ebx
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], rbx
mov r14, rcx
mov qword [rsp + 0x38], rbx
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], bl
jne 0x140042080
lea rcx, [rsp + 0x20]
call fcn.140006b30
mov rsi, qword [rsp + 0x38]
lea rcx, [rsp + 0x20]
mov rdi, qword [rsp + 0x20]
cmp rsi, 0x10
mov rdx, qword [rsp + 0x30]
movabs r9, 0xcbf29ce484222325
cmovae rcx, rdi
test rdx, rdx
je 0x1400420e3
movabs r8, 0x100000001b3
nop dword [rax + rax]
movzx eax, byte [rbx + rcx]
inc rbx
xor r9, rax
imul r9, r8
cmp rbx, rdx
jb 0x1400420d0
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x40]
lea rcx, [r14 + 0x20]
call fcn.140042f40
mov rbx, qword [rax + 8]
test rbx, rbx
jne 0x140042103
mov rbx, qword [r14 + 0x28]
cmp rsi, 0x10
jb 0x14004213d
lea rdx, [rsi + 1]
mov rax, rdi
cmp rdx, 0x1000
jb 0x140042135
mov rdi, qword [rdi - 8]
add rdx, 0x27
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140042135
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rdi
call fcn.140045a90
cmp rbx, qword [r14 + 0x28]
je 0x140042149
mov rax, qword [rbx + 0x30]
jmp 0x14004214b
xor eax, eax
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 0x140045200
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140045284
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400499e0]
cmp byte [rcx + rax], 0
je 0x140045284
dec r8
sub rdx, 1
jne 0x14004526a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x105
call fcn.14004529c
mov ebx, eax
test eax, eax
jne 0x1400458a4
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x140045907
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400458fe
test al, 0x10
je 0x1400458fe
bt eax, 0xa
jae 0x1400458f7
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.140045918
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x1400458f3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x1400458f3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
test edi, edi
jne 0x1400458fe
and dword [rsp + 0x3c], 0
jmp 0x140045903
or dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400466d4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14004671e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14004671e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14004671e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14004671e
cmp dword [rcx + 0x84], 0xe
jbe 0x14004671e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140046720
xor al, al
add rsp, 0x28
ret
Function at 0x100401300
Capabilities:
Terminate process
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, qword [0x10040d010]
call sub.msys_2.0.dll___getreent
lea r9, str.__e_names____o_dir____R_name____v_n_____V____w_n_____1aCDcfGgIKLNrsTtUx__source_file_n
mov r8, rbx
lea rdx, str.Usage:__s__s_n
mov rcx, qword [rax + 0x18]
call sub.msys_2.0.dll_fprintf
call sub.msys_2.0.dll___getreent
mov r8d, 0x64e
mov edx, 1
lea rcx, str.Options:_n___0_________format_translation_output_all_capabilities_on_one_line_n___1_________format_translation_output_one_capability_per_line_n___a_________retain_commented_out_capabilities__sets__x_also__n___C_________translate_entries_to_termcap_source_form_n___D_________print_list_of_tics_database_locations__first_must_be_writable__n___c_________check_only__validate_input_without_compiling_or_translating_n___e_names___translate_compile_only_entries_named_by_comma_separated_list_n___f_________format_complex_strings_for_readability_n___G_________format__number_to__char_n___g_________format__char_to__number_n___I_________translate_entries_to_terminfo_source_form_n___K_________translate_entries_to_termcap_source_form_with_BSD_syntax_n___L_________translate_entries_to_full_terminfo_source_form_n___N_________disable_smart_defaults_for_source_translation_n___o_dir_____set_output_directory_for_compiled_entry_writes_n___Q_n_______dump_compiled_description_n___q____brief_listing__removes_headers_n___R_name____restrict_translation_to_given_terminfo_termcap_version_n___r_________force_resolution_of_all_use_entries_in_source_translation_n___s_________print_summary_statistics_n___T_________remove_size_restrictions_on_compiled_description_n___t_________suppress_commented_out_capabilities_n___U_________suppress_post_processing_of_entries_n___V_________print_version_n___W_________wrap_long_strings_according_to__w_n__option_n___v_n_______set_verbosity_level_n___w_n_______set_format_width_for_translation_output_n___x_________treat_unknown_capabilities_as_user_defined_n_nParameters:_n___file______file_to_translate_or_compile_n
mov r9, qword [rax + 0x18]
call sub.msys_2.0.dll_fwrite
mov ecx, 1
call sub.msys_2.0.dll_exit
nop
nop word cs:[rax + rax]

Function at 0x100401fc0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
call sub.msys_2.0.dll_perror
mov ecx, 1
call sub.msys_2.0.dll_exit
nop
nop word cs:[rax + rax]
nop

Function at 0x100401fe0
Capabilities:
Get file attributes

Disassembly:
push r13
push r12
sub rsp, 0x28
mov r12, rcx
jmp 0x100401ff4
add r12, 1
call sub.msys_2.0.dll___locale_ctype_ptr
movzx edx, byte [r12]
mov r8, rax
test byte [rdx + r8 + 1], 8
jne 0x100401ff0
test dl, dl
je 0x100402060
mov rcx, r12
call sub.msys_2.0.dll_strdup
mov r13, rax
test rax, rax
je 0x10040206f
mov rcx, rax
call sub.msys_2.0.dll_strlen
sub rax, 1
mov r12, rax
jne 0x10040203c
jmp 0x10040204e
mov byte [r13 + r12], 0
sub r12, 1
je 0x10040204e
call sub.msys_2.0.dll___locale_ctype_ptr
movzx edx, byte [r13 + r12]
test byte [rdx + rax + 1], 8
jne 0x100402030
mov rax, r13
add rsp, 0x28
pop r12
pop r13
ret
xor r13d, r13d
mov rax, r13
add rsp, 0x28
pop r12
pop r13
ret
lea rcx, str.strdup
call fcn.100401fc0
nop
nop dword [rax]
Function at 0x100402080
Capabilities:
Get file attributes

Disassembly:
push r13
push r12
push rsi
push rbx
sub rsp, 0xa8
call sub.msys_2.0.dll_strdup
lea r13, [rsp + 0x20]
mov rdx, r13
mov rcx, rax
mov r12, rax
call sub.msys_2.0.dll_stat
test eax, eax
js 0x1004020e6
mov eax, dword [rsp + 0x30]
and eax, 0xf000
cmp eax, 0x4000
jne 0x1004020ca
mov edx, 7
mov rcx, r12
call sub.msys_2.0.dll_access
test eax, eax
je 0x1004020d5
mov rcx, r12
xor r12d, r12d
call sub.msys_2.0.dll_free
mov rax, r12
add rsp, 0xa8
pop rbx
pop rsi
pop r12
pop r13
ret
mov rcx, r12
call qword [sym.imp.msys_ncursesw6.dll__nc_pathlast]
test eax, eax
je 0x1004020ca
mov eax, eax
mov rdx, r13
mov rcx, r12
lea rbx, [r12 + rax]
movzx esi, byte [rbx]
mov byte [rbx], 0
call sub.msys_2.0.dll_stat
test eax, eax
js 0x1004020ca
mov eax, dword [rsp + 0x30]
and eax, 0xf000
cmp eax, 0x4000
jne 0x1004020ca
mov edx, 7
mov rcx, r12
call sub.msys_2.0.dll_access
test eax, eax
jne 0x1004020ca
mov byte [rbx], sil
jmp 0x1004020d5

Function at 0x1004021a0
Capabilities:
Terminate process

Disassembly:
push r15
mov eax, 0x1028
push r14
push r13
push r12
call fcn.10040aca0
sub rsp, rax
mov r14, r8
lea rax, [rsp + 0x20]
test r8, r8
mov r12, rcx
cmove r14, rax
mov r15, rdx
test rcx, rcx
je 0x100402298
mov rcx, r14
call fcn.100402140
mov r13, rax
test rax, rax
je 0x10040228c
and word [r12 + 0x10], 0xff9f
jmp 0x100402200
test al, 0x40
jne 0x100402258
test ecx, ecx
je 0x100402260
mov rdx, r13
call sub.msys_2.0.dll_fputc
mov rcx, r12
call sub.msys_2.0.dll_fgetc
mov ecx, eax
movzx eax, word [r12 + 0x10]
test al, 0x20
je 0x1004021f0
mov rcx, r12
call sub.msys_2.0.dll_fclose
lea rdx, [0x10040e37d]
mov rcx, r14
call sub.msys_2.0.dll_fopen
mov rcx, r13
mov r12, rax
call sub.msys_2.0.dll_fclose
mov rcx, r14
call sub.msys_2.0.dll_strdup
mov qword [0x100417038], rax
mov rax, r12
add rsp, 0x1028
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, r15
call fcn.100401fc0
mov r12, qword [0x10040d010]
call sub.msys_2.0.dll___getreent
mov r9, r15
lea rdx, str._s:__s_is_not_a_text_file_n
mov rcx, qword [rax + 0x18]
mov r8, r12
call sub.msys_2.0.dll_fprintf
mov ecx, 1
call sub.msys_2.0.dll_exit
lea rcx, str.copy_input__target_
call fcn.100401fc0
lea rcx, str.copy_input__source_
call fcn.100401fc0
nop
nop word cs:[rax + rax]