joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140026aa0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x1400e3040]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov r8, qword [rcx]
mov r9, qword [rcx + 8]
cmp r9, 2
jb 0x140026bd0
cmp word [r8 + 2], 0x3a
jne 0x140026bd0
movzx eax, word [r8]
and eax, 0xffffffdf
add eax, 0xffffffbf
cmp ax, 0x1a
jae 0x140026bd0
mov ebx, 2
xor eax, eax
mov rcx, qword [rsi]
mov rdx, qword [rsi + 8]
cmp rdx, 2
jb 0x140026bd9
cmp word [rcx + 2], 0x3a
jne 0x140026bd9
movzx r10d, word [rcx]
and r10d, 0xffffffdf
add r10d, 0xffffffa5
cmp r10w, 0xffe6
setae r10b
not al
test al, r10b
je 0x140026bd9
cmp r9, rbx
cmovae r9, rbx
lea rdx, [rsp + 0x38]
mov qword [rdx], rcx
mov qword [rdx + 8], 2
lea rcx, [rsp + 0x28]
mov qword [rcx], r8
mov qword [rcx + 8], r9
mov r8d, 1
call fcn.140056570
test al, al
je 0x140026b86
mov rcx, qword [rdi + 8]
sub rcx, rbx
jb 0x140026bfd
mov rax, qword [rsi + 8]
cmp rax, 1
jbe 0x140026bfd
add rax, 0xfffffffffffffffe
cmp rcx, rax
je 0x140026ba7
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
cmp rcx, qword [0x1400e3040]
je 0x140026b9f
call fcn.140065690
int3
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
mov al, 1
test rcx, rcx
je 0x140026b88
add ebx, ebx
add rbx, qword [rdi]
mov rdx, qword [rsi]
xor r8d, r8d
movzx r9d, word [rbx + r8*2]
cmp r9w, word [rdx + r8*2 + 4]
jne 0x140026b86
inc r8
cmp rcx, r8
jne 0x140026bb9
jmp 0x140026b88
mov al, 1
xor ebx, ebx
jmp 0x140026af4
cmp r9, rdx
jne 0x140026b86
mov al, 1
test r9, r9
je 0x140026b88
xor edx, edx
movzx r10d, word [r8 + rdx*2]
cmp r10w, word [rcx + rdx*2]
jne 0x140026b86
inc rdx
cmp r9, rdx
jne 0x140026be7
jmp 0x140026b88
lea rcx, [0x1400c8b41]
call fcn.140093760
int3

Function at 0x140027d30
Capabilities:
Accept command line arguments

Disassembly:
push rsi
push rdi
sub rsp, 0x58
movaps xmmword [rsp + 0x40], xmm6
mov rax, qword [0x1400e3040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, qword [0x1400f4628]
test rdi, rdi
jne 0x140027de2
mov ecx, 0x50
call fcn.140064440
mov rsi, rax
xorps xmm6, xmm6
movups xmmword [rax], xmm6
mov byte [rax + 0x10], 0
mov ecx, 0x18
call fcn.140064440
mov qword [rsi + 0x18], rax
lea rcx, [rax + 0x18]
mov qword [rsi + 0x28], rcx
test rax, rax
je 0x140027e0b
movups xmmword [rax], xmm6
mov qword [rax + 0x10], 0
mov qword [rsi + 0x20], rcx
mov rax, rsi
add rax, 0x38
movups xmmword [rsi + 0x38], xmm6
mov qword [rsi + 0x30], rax
mov qword [rsi + 0x48], 1
mov qword [0x1400f4628], rsi
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov qword [rsp + 0x28], rax
test rax, rax
je 0x140027e0b
mov rcx, rax
call fcn.14007d978
lea rdx, [rsp + 0x28]
mov qword [rdx + 8], rax
mov rcx, rsi
call fcn.140027e10
test rdi, rdi
sete al
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
cmp rcx, qword [0x1400e3040]
je 0x140027dff
call fcn.140065690
int3
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x58
pop rdi
pop rsi
ret
ud2
Function at 0x14002a7e0
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x1400e3040]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x1400f4658]
mov ecx, dword [0x1400f16c8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14002a847
lea rax, [0x1400f4650]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
cmp rcx, qword [0x1400e3040]
je 0x14002a83d
call fcn.140065690
int3
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x1400f4658]
call fcn.1400644cc
cmp dword [0x1400f4658], 0xffffffff
jne 0x14002a81c
lea rsi, [rsp + 0x38]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.140092ce0
mov dword [rsi - 4], 0x11c
lea rsi, [rsp + 0x34]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea rdi, [rsp + 0x30]
mov dword [rdi], 0
mov ecx, dword [rsi + 4]
mov edx, dword [rsi + 8]
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetProductInfo]
mov ecx, 0x88
call fcn.140064440
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x1400f46a0]
mov ecx, dword [0x1400f16c8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14002a907
lea r8, [0x1400f4670]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.14002aa00
mov qword [0x1400f4650], rsi
lea rcx, [0x1400f4658]
call fcn.140064580
jmp 0x14002a81c
lea rcx, [0x1400f46a0]
call fcn.1400644cc
cmp dword [0x1400f46a0], 0xffffffff
jne 0x14002a8d8
xorps xmm0, xmm0
movups xmmword [0x1400f4690], xmm0
movups xmmword [0x1400f4680], xmm0
movups xmmword [0x1400f4670], xmm0
lea rcx, [0x1400f4670]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x1400f46a0]
call fcn.140064580
jmp 0x14002a8d8

Function at 0x14002a950
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1400f46a0]
mov ecx, dword [0x1400f16c8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14002a98b
movzx eax, word [0x1400f4670]
cmp eax, 9
jne 0x14002a9d3
mov eax, 1
add rsp, 0x28
ret
lea rcx, [0x1400f46a0]
call fcn.1400644cc
cmp dword [0x1400f46a0], 0xffffffff
jne 0x14002a975
xorps xmm0, xmm0
movups xmmword [0x1400f4690], xmm0
movups xmmword [0x1400f4680], xmm0
movups xmmword [0x1400f4670], xmm0
lea rcx, [0x1400f4670]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x1400f46a0]
call fcn.140064580
jmp 0x14002a975
test eax, eax
je 0x14002a986
cmp eax, 6
jne 0x14002a9e3
mov eax, 2
jmp 0x14002a986
cmp eax, 0xc
jne 0x14002a9ef
mov eax, 3
jmp 0x14002a986
mov eax, 4
jmp 0x14002a986
Function at 0x14002c250
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
cmp dword [rcx + 0x10], 0
jne 0x14002c33e
cmp qword [rsi], 0
jne 0x14002c33e
cmp dword [rsi + 0x14], 0
jne 0x14002c33e
cmp qword [rsi + 8], 0
jne 0x14002c33e
xor eax, eax
mov r14, qword [rdi]
cmp rax, r14
je 0x14002c2c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14002c310
lea rax, [r14 + 1]
cmp rax, 2
jb 0x14002c2b8
mov qword [rsi], r14
call fcn.140053430
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rdi + 8]
cmp qword [rsi + 8], r14
je 0x14002c2fa
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jae 0x14002c326
lea rax, [r14 + 1]
cmp rax, 2
jb 0x14002c2f2
mov qword [rsi + 8], r14
call fcn.140053430
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [rdi + 0x10]
mov dword [rsi + 0x10], eax
mov eax, dword [rdi + 0x14]
mov dword [rsi + 0x14], eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.140053430
mov rcx, qword [rsi]
call fcn.140053440
mov qword [rsi], 0
jmp 0x14002c2a6
call fcn.140053430
mov rcx, qword [rsi + 8]
call fcn.140053440
mov qword [rsi + 8], 0
jmp 0x14002c2df
mov rcx, rsi
call fcn.1400b0f20
mov rax, qword [rsi]
jmp 0x14002c28a

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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rdi, rcx
mov rax, qword [0x1400e3040]
xor rax, rsp
mov qword [rsp + 0x88], rax
movaps xmm0, xmmword [0x1400c69e0]
lea rsi, [rsp + 0x40]
movaps xmmword [rsi + 0x30], xmm0
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
lea rdx, str.PathExists
lea r8, str....._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x20e
call fcn.140053410
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.140054300
cmp byte [rdi + 0x17], 0
jns 0x14002c5a2
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov rcx, rsi
call fcn.140054390
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
cmp rcx, qword [0x1400e3040]
je 0x14002c5d3
call fcn.140065690
int3
mov eax, ebx
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret
Function at 0x14002c5e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rdi, rcx
mov rax, qword [0x1400e3040]
xor rax, rsp
mov qword [rsp + 0x88], rax
movaps xmm0, xmmword [0x1400c69e0]
lea rsi, [rsp + 0x40]
movaps xmmword [rsi + 0x30], xmm0
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
lea rdx, str.DirectoryExists
lea r8, str....._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x236
call fcn.140053410
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.140054300
cmp byte [rdi + 0x17], 0
jns 0x14002c652
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp eax, 0xffffffff
setne al
and edi, 0x10
shr edi, 4
and dil, al
mov rcx, rsi
call fcn.140054390
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
cmp rcx, qword [0x1400e3040]
je 0x14002c68e
call fcn.140065690
int3
mov eax, edi
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret

Function at 0x14002c6a0
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x278
mov rsi, rcx
mov rax, qword [0x1400e3040]
xor rax, rsp
mov qword [rsp + 0x270], rax
lea rbx, [rsp + 0x60]
mov r8d, 0x20a
mov rcx, rbx
mov dl, 0xaa
call fcn.140092ce0
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
dec edi
cmp edi, 0x102
ja 0x14002c73f
lea r14, [rsp + 0x20]
mov qword [r14], rbx
mov rcx, rbx
call fcn.14007d978
mov qword [r14 + 8], rax
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, r14
call fcn.14004fa00
lea r14, [rsp + 0x48]
mov rcx, rbx
mov rdx, r14
call fcn.140027480
mov rcx, rsi
mov rdx, r14
call fcn.140026a60
mov rcx, r14
call fcn.14004fb40
mov rcx, rbx
call fcn.14004fb40
cmp edi, 0x103
setb al
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
cmp rcx, qword [0x1400e3040]
je 0x14002c762
call fcn.140065690
int3
add rsp, 0x278
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x14002c770
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x280
mov rsi, rcx
mov rax, qword [0x1400e3040]
xor rax, rsp
mov qword [rsp + 0x278], rax
lea rdi, [rsp + 0x70]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.140092ce0
mov qword [rsp + 0x20], rdi
xor ecx, ecx
mov edx, 0x28
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x14002c80f
cmp word [rsp + 0x70], 0
je 0x14002c80f
lea rbx, [rsp + 0x60]
mov qword [rbx], rdi
mov rcx, rdi
call fcn.14007d978
mov qword [rbx + 8], rax
mov rcx, rsi
mov rdx, rbx
call fcn.14004fa00
mov rcx, qword [rsp + 0x278]
xor rcx, rsp
cmp rcx, qword [0x1400e3040]
je 0x14002c801
call fcn.140065690
int3
mov rax, rsi
add rsp, 0x280
pop rbx
pop rdi
pop rsi
ret
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x40]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x1400c69e0]
movaps xmmword [rdi], xmm0
mov rcx, rdi
call fcn.14004f9e0
mov rcx, rdi
call fcn.14002c6a0
test al, al
jne 0x14002c861
lea rax, [0x1400d51ae]
lea rdx, [rsp + 0x30]
mov qword [rdx], rax
mov qword [rdx + 8], 3
mov rcx, rsi
call fcn.14004fa00
jmp 0x14002c86e
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.140026a40
lea rcx, [rsp + 0x40]
call fcn.14004fb40
jmp 0x14002c7e7
Function at 0x140033c20
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
sub rsp, 0x50
mov rsi, r8
mov rax, qword [0x1400e3040]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov eax, 4
lea r9, [rsp + 0x44]
mov dword [r9], eax
lea r8, [rsp + 0x40]
mov dword [r8], eax
lea rax, [rsp + 0x3c]
mov dword [rax], 0
mov rcx, qword [rcx]
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140033c91
mov ecx, dword [rsp + 0x44]
add ecx, 0xfffffffd
mov eax, 0x3f4
cmp ecx, 1
ja 0x140033c91
cmp dword [rsp + 0x40], 4
jne 0x140033c91
mov eax, dword [rsp + 0x3c]
mov dword [rsi], eax
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
cmp rcx, qword [0x1400e3040]
je 0x140033ca8
call fcn.140065690
int3
add rsp, 0x50
pop rsi
ret

Function at 0x140033cb0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1048
call fcn.140065630
sub rsp, rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x1400e3040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea r14, [rsp + 0x840]
mov r8d, 0x800
mov rcx, r14
mov dl, 0xaa
call fcn.140092ce0
lea r9, [rsp + 0x3c]
mov dword [r9], 1
lea rax, [rsp + 0x38]
mov dword [rax], 0x800
mov rcx, qword [rbx]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
mov rdx, rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140033d44
mov eax, dword [rsp + 0x3c]
cmp eax, 1
jne 0x140033d6b
lea rdx, [rsp + 0x840]
mov rcx, rsi
call fcn.140023160
xor eax, eax
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
cmp rcx, qword [0x1400e3040]
je 0x140033d5e
call fcn.140065690
int3
add rsp, 0x1048
pop rbx
pop rdi
pop rsi
pop r14
ret
cmp eax, 2
jne 0x140033db3
lea rdi, [rsp + 0x40]
mov r8d, 0x800
mov rcx, rdi
mov dl, 0xaa
call fcn.140092ce0
lea rcx, [rsp + 0x840]
mov rdx, rdi
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x38], eax
add eax, 0xfffffbff
cmp eax, 0xfffffc00
jb 0x140033dba
lea rdx, [rsp + 0x40]
jmp 0x140033d3a
mov eax, 0x3f4
jmp 0x140033d44
mov eax, 0xea
jmp 0x140033d44
Function at 0x140035730
Capabilities:
Query environment variable

Disassembly:
push rsi
push rdi
push rbx
mov eax, 0x10050
call fcn.140065630
sub rsp, rax
mov rsi, rdx
mov rax, qword [0x1400e3040]
xor rax, rsp
mov qword [rsp + 0x10048], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x30]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x1400c69e0]
movaps xmmword [rdi], xmm0
movups xmm0, xmmword [rcx]
lea rdx, [rsp + 0x20]
movaps xmmword [rdx], xmm0
mov rcx, rdi
call fcn.140055160
test rsi, rsi
je 0x140035816
lea rbx, [rsp + 0x4a]
mov r8d, 0xfffe
mov rcx, rbx
mov dl, 0xaa
call fcn.140092ce0
cmp byte [rsp + 0x47], 0
jns 0x1400357af
mov rdi, qword [rsp + 0x30]
mov rcx, rdi
mov rdx, rbx
mov r8d, 0x7fff
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
setne bl
je 0x1400357de
cmp eax, 0x7fff
jae 0x14003583b
mov edx, eax
lea rcx, [rsp + 0x4a]
mov r8, rsi
call fcn.14002d920
cmp byte [rsp + 0x47], 0
jns 0x1400357ef
mov rcx, qword [rsp + 0x30]
call fcn.14006447c
mov rcx, qword [rsp + 0x10048]
xor rcx, rsp
cmp rcx, qword [0x1400e3040]
je 0x140035809
call fcn.140065690
int3
mov eax, ebx
add rsp, 0x10050
pop rbx
pop rdi
pop rsi
ret
cmp byte [rsp + 0x47], 0
js 0x140035824
lea rcx, [rsp + 0x30]
jmp 0x140035829
mov rcx, qword [rsp + 0x30]
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
setne bl
jmp 0x1400357de
int3

Function at 0x1400366d0
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
test rcx, rcx
je 0x140036747
movabs rax, 0xe69e32f3ad9ea63
cmp qword [0x1400e5620], rax
jne 0x14003674a
mov rsi, rcx
call fcn.14003c6c0
mov edx, 0x570
mov rcx, rax
xor r8d, r8d
call fcn.140037240
mov rdi, rax
mov rcx, rax
mov rdx, rsi
call fcn.140036760
mov ecx, dword [0x1400f6938]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x1400f16c8]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov qword [rax + 0x148], rdi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
int3
int3
Function at 0x14003c5c0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
sub rsp, 0x28
cmp qword [0x1400f7678], 0
jne 0x14003c5fd
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x14003c5f0
mov dword [rdi], eax
mov dword [0x1400f7680], eax
mov qword [0x1400f7678], rsi
cmp eax, 0xffffffff
setne al
add rsp, 0x28
pop rdi
pop rsi
ret
int3
Function at 0x140047550
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x58
movdqa xmmword [rsp + 0x40], xmm10
movdqa xmmword [rsp + 0x30], xmm9
movdqa xmmword [rsp + 0x20], xmm8
movdqa xmmword [rsp + 0x10], xmm7
movdqa xmmword [rsp], xmm6
movdqu xmm4, xmmword [rcx]
movdqu xmm3, xmmword [rcx + 0x10]
movdqu xmm2, xmmword [rcx + 0x20]
movdqu xmm1, xmmword [rcx + 0x30]
movd xmm0, r8d
pxor xmm0, xmm4
add rdx, 0xffffffffffffffc0
add rcx, 0x40
cmp rdx, 0x40
jb 0x14004764e
movabs rax, 0x154442bd4
movq xmm4, rax
movdqa xmm5, xmmword [0x1400c9480]
nop dword [rax]
movdqa xmm6, xmm0
pclmulqdq xmm6, xmm4, 0
movdqa xmm7, xmm3
pclmulqdq xmm7, xmm4, 0
movdqa xmm8, xmm2
pclmulqdq xmm8, xmm4, 0
movdqa xmm9, xmm1
pclmulqdq xmm9, xmm4, 0
pclmulqdq xmm0, xmm5, 0x11
pclmulqdq xmm3, xmm5, 0x11
pclmulqdq xmm2, xmm5, 0x11
pclmulqdq xmm1, xmm5, 0x11
movdqu xmm10, xmmword [rcx]
pxor xmm10, xmm6
pxor xmm0, xmm10
movdqu xmm6, xmmword [rcx + 0x10]
pxor xmm6, xmm7
pxor xmm3, xmm6
movdqu xmm6, xmmword [rcx + 0x20]
pxor xmm6, xmm8
pxor xmm2, xmm6
movdqu xmm6, xmmword [rcx + 0x30]
pxor xmm6, xmm9
pxor xmm1, xmm6
add rdx, 0xffffffffffffffc0
add rcx, 0x40
cmp rdx, 0x3f
ja 0x1400475c0
movabs rax, 0x1751997d0
movq xmm4, rax
movdqa xmm5, xmm0
pclmulqdq xmm5, xmm4, 0
pxor xmm5, xmm3
pmovzxdq xmm3, qword [0x1400c94a0]
pclmulqdq xmm0, xmm3, 0x11
pxor xmm0, xmm5
movdqa xmm5, xmm0
pclmulqdq xmm5, xmm4, 0
pxor xmm5, xmm2
pclmulqdq xmm0, xmm3, 0x11
pxor xmm0, xmm5
movdqa xmm2, xmm0
pclmulqdq xmm2, xmm4, 0
pxor xmm2, xmm1
pclmulqdq xmm0, xmm3, 0x11
pxor xmm0, xmm2
cmp rdx, 0x10
jb 0x1400476de
movdqu xmm1, xmmword [rcx]
movdqa xmm2, xmm0
pclmulqdq xmm2, xmm4, 0
pxor xmm2, xmm1
pclmulqdq xmm0, xmm3, 0x11
pxor xmm0, xmm2
add rcx, 0x10
add rdx, 0xfffffffffffffff0
cmp rdx, 0xf
ja 0x1400476b4
pmovzxdq xmm1, qword [0x1400c94a0]
pclmulqdq xmm1, xmm0, 1
psrldq xmm0, 8
pxor xmm0, xmm1
pxor xmm1, xmm1
pxor xmm2, xmm2
pblendw xmm2, xmm0, 3
psrldq xmm0, 4
movabs rax, 0x163cd6124
movq xmm3, rax
pclmulqdq xmm3, xmm2, 0
pxor xmm3, xmm0
pxor xmm0, xmm0
pblendw xmm0, xmm3, 3
pclmulqdq xmm0, xmmword [0x1400c9490], 0x10
pblendw xmm0, xmm1, 0xfc
movabs rax, 0x1db710641
movq xmm1, rax
pclmulqdq xmm1, xmm0, 0
pxor xmm1, xmm3
pextrd eax, xmm1, 1
movaps xmm6, xmmword [rsp]
movaps xmm7, xmmword [rsp + 0x10]
movaps xmm8, xmmword [rsp + 0x20]
movaps xmm9, xmmword [rsp + 0x30]
movaps xmm10, xmmword [rsp + 0x40]
add rsp, 0x58
ret
Function at 0x14005da90
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
xor eax, eax
test r8d, r8d
sete al
xor r8d, r8d
test edx, edx
sete r8b
xor ecx, ecx
mov edx, r8d
mov r8d, eax
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsi], 0
test rax, rax
je 0x14005db2a
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14005db14
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14005daf1
mov qword [rsi], rdi
call fcn.140053430
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsi]
mov byte [rsi + 8], 0
inc rax
cmp rax, 1
jbe 0x14005db2e
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.140053430
mov rcx, qword [rsi]
call fcn.140053440
mov qword [rsi], 0
jmp 0x14005dadf
mov byte [rsi + 8], 0
int3

Function at 0x140064b5c
Capabilities:
Parse pe header

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

Function at 0x140064eb0
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x14000003c]
lea rsi, [0x140000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x140064f28
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x140064f28
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x140064f28
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x140064f1c
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x140064f3a
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x140064f0a
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x140064f2a

Function at 0x140072f28
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140073070
Function at 0x140073070
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
lea edx, [r8 + 2]
jmp 0x140073070
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1400730df
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400730df
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400730df
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400730df
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400730df
cmp dword [rcx + 0x84], 0xe
jbe 0x1400730df
cmp dword [rcx + 0xf8], 0
je 0x1400730df
mov ecx, ebx
call fcn.140072fa8
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140073204
nop
cmp dword [rbp + 0x20], 0
je 0x14007312d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14007303c
int3
Function at 0x140077118
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
lea r9, [0x1400f2550]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14007716f
cmp word [rdx], r13w
jne 0x14007716f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140077174
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140077299
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400772ba
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400771ad
mov rdx, r9
mov word [rbx], cx
jmp 0x1400771d4
cmp r9, r8
jae 0x1400771e4
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14007718e
jmp 0x140077299
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14007728e
cmp dword [rsp + 0x80], esi
je 0x14007728e
lea r8, [0x1400f2550]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140077266
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140077236
mov word [rbx], r13w
jmp 0x140077296
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x140077243
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140077296
cmp word [rsp + 0x70], r13w
jne 0x140077273
cmp rbx, r14
je 0x140077230
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400857a4
cmp word [rsp + 0x70], r13w
je 0x140077299
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
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
lea r8, [0x1400f2550]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140077293
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140077299