joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140071610
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
add r8d, 0xdeadbeef
mov rdi, rdx
add r8d, edx
mov r11, rcx
mov r10d, r8d
mov ebx, r8d
cmp rdx, 0xc
jbe 0x140071739
mov qword [rsp + 0x10], rsi
lea r9, [rdx - 0xd]
movabs rax, 0xaaaaaaaaaaaaaaab
mul r9
mov rsi, rdx
shr rsi, 3
inc rsi
imul rax, rsi, 0xfffffffffffffff4
add rdi, rax
nop dword [rax]
movzx eax, byte [r11 + 6]
movzx ecx, byte [r11 + 7]
movzx r9d, byte [r11 + 4]
movzx edx, byte [r11 + 8]
add r9d, r10d
shl ecx, 8
add edx, r8d
add ecx, eax
movzx eax, byte [r11 + 5]
shl ecx, 8
add ecx, eax
movzx eax, byte [r11 + 0xa]
shl ecx, 8
add r9d, ecx
movzx ecx, byte [r11 + 0xb]
shl ecx, 8
add ecx, eax
movzx eax, byte [r11 + 9]
shl ecx, 8
add ecx, eax
movzx eax, byte [r11 + 2]
shl ecx, 8
add edx, ecx
movzx ecx, byte [r11 + 3]
shl ecx, 8
mov r8d, edx
add ecx, eax
rol r8d, 4
movzx eax, byte [r11 + 1]
shl ecx, 8
add ecx, eax
movzx eax, byte [r11]
shl ecx, 8
add r11, 0xc
add ecx, eax
sub ecx, edx
add edx, r9d
add ecx, ebx
xor r8d, ecx
sub r9d, r8d
mov eax, r8d
add r8d, edx
rol eax, 6
xor eax, r9d
sub edx, eax
mov ecx, eax
add eax, r8d
rol ecx, 8
xor ecx, edx
sub r8d, ecx
mov ebx, ecx
add ecx, eax
rol ebx, 0x10
xor ebx, r8d
sub eax, ebx
mov r10d, ebx
ror r10d, 0xd
add ebx, ecx
xor r10d, eax
sub ecx, r10d
mov r8d, r10d
rol r8d, 4
add r10d, ebx
xor r8d, ecx
sub rsi, 1
jne 0x140071660
mov rsi, qword [rsp + 0x10]
cmp rdi, 0xc
ja case.default.0x140071754
lea rcx, [0x140000000]
mov eax, dword [rcx + rdi*4 + 0x7182c]
add rax, rcx
jmp rax
movzx eax, byte [r11 + 0xb]
shl eax, 0x18
add r8d, eax
movzx eax, byte [r11 + 0xa]
shl eax, 0x10
add r8d, eax
movzx eax, byte [r11 + 9]
shl eax, 8
add r8d, eax
movzx eax, byte [r11 + 8]
add r8d, eax
movzx eax, byte [r11 + 7]
shl eax, 0x18
add r10d, eax
movzx eax, byte [r11 + 6]
shl eax, 0x10
add r10d, eax
movzx eax, byte [r11 + 5]
shl eax, 8
add r10d, eax
movzx eax, byte [r11 + 4]
add r10d, eax
movzx eax, byte [r11 + 3]
shl eax, 0x18
add ebx, eax
movzx eax, byte [r11 + 2]
shl eax, 0x10
add ebx, eax
movzx eax, byte [r11 + 1]
shl eax, 8
add ebx, eax
movzx eax, byte [r11]
add ebx, eax
xor r8d, r10d
mov eax, r10d
rol eax, 0xe
sub r8d, eax
mov eax, r8d
mov edx, r8d
rol eax, 0xb
xor edx, ebx
sub edx, eax
xor r10d, edx
mov eax, edx
ror eax, 7
sub r10d, eax
xor r8d, r10d
mov eax, r10d
rol eax, 0x10
sub r8d, eax
mov eax, r8d
mov ecx, r8d
rol eax, 4
xor ecx, edx
sub ecx, eax
xor r10d, ecx
mov eax, ecx
rol eax, 0xe
sub r10d, eax
mov eax, r10d
xor r8d, r10d
ror eax, 8
sub r8d, eax
mov rbx, qword [rsp + 0x18]
mov eax, r8d
pop rdi
ret
Function at 0x140072100
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x120
xor r15d, r15d
lea rsi, [rsp + 0x150]
mov ebx, r15d
lea r12, str..._.._third_party_mini_chromium_mini_chromium_base_rand_util.cc
mov dword [rsp + 0x150], ebx
mov edi, 8
mov r14d, 0xffffffff
cmp rdi, r14
mov ebp, edi
mov rcx, rsi
cmova ebp, r14d
mov edx, ebp
call qword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
jne 0x1400721b5
lea rcx, [rsp + 0x20]
or ebx, 1
call fcn.140006da0
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x108], r12
mov qword [rsp + 0x110], r15
mov dword [rsp + 0x118], 0x7d
mov dword [rsp + 0x11c], 4
call fcn.140013280
lea rdx, str.Check_failed:_success
lea rcx, [rsp + 0x20]
call fcn.140006680
mov rcx, rax
lea rdx, [0x1400c20f0]
call fcn.140006680
test bl, 1
je 0x1400721c7
and ebx, 0xfffffffe
lea rcx, [rsp + 0x20]
call fcn.140012fd0
mov eax, ebp
add rsi, rax
sub rdi, rax
jne 0x140072140
mov rax, qword [rsp + 0x150]
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret

Function at 0x140072200
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
test rdx, rdx
je 0x140072309
mov rax, rsp
push rbx
push rsi
push rdi
push r14
sub rsp, 0x128
mov qword [rax + 8], rbp
xor r14d, r14d
mov qword [rax + 0x18], r12
mov ebx, r14d
mov qword [rax - 0x28], r15
lea r12, str..._.._third_party_mini_chromium_mini_chromium_base_rand_util.cc
mov dword [rsp + 0x158], ebx
mov rdi, rdx
mov rsi, rcx
mov r15d, 0xffffffff
nop dword [rax]
nop dword [rax + rax]
cmp rdi, r15
mov ebp, edi
mov rcx, rsi
cmova ebp, r15d
mov edx, ebp
call qword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
jne 0x1400722c5
lea rcx, [rsp + 0x20]
or ebx, 1
call fcn.140006da0
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x108], r12
mov qword [rsp + 0x110], r14
mov dword [rsp + 0x118], 0x7d
mov dword [rsp + 0x11c], 4
call fcn.140013280
lea rdx, str.Check_failed:_success
lea rcx, [rsp + 0x20]
call fcn.140006680
mov rcx, rax
lea rdx, [0x1400c20f0]
call fcn.140006680
test bl, 1
je 0x1400722d7
and ebx, 0xfffffffe
lea rcx, [rsp + 0x20]
call fcn.140012fd0
mov eax, ebp
add rsi, rax
sub rdi, rax
jne 0x140072250
mov r15, qword [rsp + 0x120]
mov r12, qword [rsp + 0x160]
mov rbp, qword [rsp + 0x150]
add rsp, 0x128
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400725f0
Capabilities:
Delete directory

Disassembly:
push rbx
sub rsp, 0x160
mov rax, qword [0x1400e0038]
xor rax, rsp
mov qword [rsp + 0x150], rax
cmp qword [rcx + 0x18], 8
mov rbx, rcx
jb 0x140072618
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x140072744
cmp qword [rbx + 0x18], 8
mov rcx, rbx
jb 0x140072633
mov rcx, qword [rbx]
movdqa xmm1, xmmword [0x1400cd310]
lea r8, [rsp + 0x130]
mov rdx, qword [rbx + 0x10]
xorps xmm0, xmm0
movups xmmword [rsp + 0x130], xmm0
mov byte [rsp + 0x130], 0
movdqu xmmword [rsp + 0x140], xmm1
call fcn.1400111b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rsp + 0x28]
mov ebx, eax
call fcn.140006da0
lea rax, str..._.._util_file_filesystem_win.cc
mov qword [rsp + 0x118], 0
lea rcx, [rsp + 0x28]
mov qword [rsp + 0x110], rax
mov dword [rsp + 0x120], 0x30
mov dword [rsp + 0x124], 2
call fcn.140013280
lea rdx, str.RemoveDirectory
mov dword [rsp + 0x128], ebx
lea rcx, [rsp + 0x28]
call fcn.140006680
cmp qword [rsp + 0x148], 0x10
lea rdx, [rsp + 0x130]
mov r8, qword [rsp + 0x140]
mov rcx, rax
cmovae rdx, qword [rsp + 0x130]
call fcn.140009230
lea rcx, [rsp + 0x28]
call fcn.140013810
mov rdx, qword [rsp + 0x148]
cmp rdx, 0x10
jb 0x140072740
mov rcx, qword [rsp + 0x130]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14007273b
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14007275f
call fcn.1400809f0
xor al, al
jmp 0x140072746
mov al, 1
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1400809d0
add rsp, 0x160
pop rbx
ret
call fcn.140087b78
int3
Function at 0x140072a70
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
lea rbp, [rsp - 0x60]
sub rsp, 0x160
mov rax, qword [0x1400e0038]
xor rax, rsp
mov qword [rbp + 0x50], rax
cmp qword [rcx + 0x18], 8
mov rbx, rcx
jb 0x140072a9d
mov rcx, qword [rcx]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140072c8e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rbx
cmp eax, 0xb7
jne 0x140072baf
mov dl, 1
call fcn.140072e40
test al, al
jne 0x140072c8e
cmp qword [rbx + 0x18], 8
mov rcx, rbx
jb 0x140072add
mov rcx, qword [rbx]
movdqa xmm1, xmmword [0x1400cd310]
lea r8, [rbp + 0x30]
mov rdx, qword [rbx + 0x10]
xorps xmm0, xmm0
movups xmmword [rbp + 0x30], xmm0
mov byte [rbp + 0x30], 0
movdqu xmmword [rbp + 0x40], xmm1
call fcn.1400111b0
lea rcx, [rsp + 0x28]
call fcn.140006da0
lea rax, str..._.._util_file_filesystem_win.cc
mov qword [rbp + 0x18], 0
lea rcx, [rsp + 0x28]
mov qword [rbp + 0x10], rax
mov dword [rbp + 0x20], 0x5d
mov dword [rbp + 0x24], 2
call fcn.140013280
cmp qword [rbp + 0x48], 0x10
lea rdx, [rbp + 0x30]
mov r8, qword [rbp + 0x40]
lea rcx, [rsp + 0x28]
cmovae rdx, qword [rbp + 0x30]
call fcn.140009230
lea rdx, str._not_a_directory
mov rcx, rax
call fcn.140006680
lea rcx, [rsp + 0x28]
call fcn.140012fd0
mov rdx, qword [rbp + 0x48]
cmp rdx, 0x10
jb 0x140072c8a
mov rcx, qword [rbp + 0x30]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140072c85
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140072cb3
jmp 0x140072c85
cmp qword [rbx + 0x18], 8
jb 0x140072bb9
mov rcx, qword [rbx]
movdqa xmm1, xmmword [0x1400cd310]
lea r8, [rbp + 0x30]
mov rdx, qword [rbx + 0x10]
xorps xmm0, xmm0
movups xmmword [rbp + 0x30], xmm0
mov byte [rbp + 0x30], 0
movdqu xmmword [rbp + 0x40], xmm1
call fcn.1400111b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rsp + 0x28]
mov ebx, eax
call fcn.140006da0
lea rax, str..._.._util_file_filesystem_win.cc
mov qword [rbp + 0x18], 0
lea rcx, [rsp + 0x28]
mov qword [rbp + 0x10], rax
mov dword [rbp + 0x20], 0x62
mov dword [rbp + 0x24], 2
call fcn.140013280
lea rdx, str.CreateDirectory
mov dword [rbp + 0x28], ebx
lea rcx, [rsp + 0x28]
call fcn.140006680
cmp qword [rbp + 0x48], 0x10
lea rdx, [rbp + 0x30]
mov r8, qword [rbp + 0x40]
mov rcx, rax
cmovae rdx, qword [rbp + 0x30]
call fcn.140009230
lea rcx, [rsp + 0x28]
call fcn.140013810
mov rdx, qword [rbp + 0x48]
cmp rdx, 0x10
jb 0x140072c8a
mov rcx, qword [rbp + 0x30]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140072c85
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140072cad
call fcn.1400809f0
xor al, al
jmp 0x140072c90
mov al, 1
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.1400809d0
mov rbx, qword [rsp + 0x178]
add rsp, 0x160
pop rbp
ret
call fcn.140087b78
int3
call fcn.140087b78
int3
Function at 0x140072cc0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x160
mov rax, qword [0x1400e0038]
xor rax, rsp
mov qword [rsp + 0x150], rax
cmp qword [rcx + 0x18], 8
mov rbx, rcx
jb 0x140072ce8
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140072e15
cmp qword [rbx + 0x18], 8
mov rcx, rbx
jb 0x140072d04
mov rcx, qword [rbx]
movdqa xmm1, xmmword [0x1400cd310]
lea r8, [rsp + 0x130]
mov rdx, qword [rbx + 0x10]
xorps xmm0, xmm0
movups xmmword [rsp + 0x130], xmm0
mov byte [rsp + 0x130], 0
movdqu xmmword [rsp + 0x140], xmm1
call fcn.1400111b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rsp + 0x28]
mov ebx, eax
call fcn.140006da0
lea rax, str..._.._util_file_filesystem_win.cc
mov qword [rsp + 0x118], 0
lea rcx, [rsp + 0x28]
mov qword [rsp + 0x110], rax
mov dword [rsp + 0x120], 0x75
mov dword [rsp + 0x124], 2
call fcn.140013280
lea rdx, str.GetFileAttributes
mov dword [rsp + 0x128], ebx
lea rcx, [rsp + 0x28]
call fcn.140006680
cmp qword [rsp + 0x148], 0x10
lea rdx, [rsp + 0x130]
mov r8, qword [rsp + 0x140]
mov rcx, rax
cmovae rdx, qword [rsp + 0x130]
call fcn.140009230
lea rcx, [rsp + 0x28]
call fcn.140013810
mov rdx, qword [rsp + 0x148]
cmp rdx, 0x10
jb 0x140072e11
mov rcx, qword [rsp + 0x130]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140072e0c
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140072e36
call fcn.1400809f0
xor al, al
jmp 0x140072e1d
test eax, 0x410
sete al
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1400809d0
add rsp, 0x160
pop rbx
ret
call fcn.140087b78
int3
Function at 0x140072e40
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x160
mov rax, qword [0x1400e0038]
xor rax, rsp
mov qword [rsp + 0x150], rax
cmp qword [rcx + 0x18], 8
movzx edi, dl
mov rbx, rcx
jb 0x140072e6f
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140072f9c
cmp qword [rbx + 0x18], 8
mov rcx, rbx
jb 0x140072e8b
mov rcx, qword [rbx]
movdqa xmm1, xmmword [0x1400cd310]
lea r8, [rsp + 0x130]
mov rdx, qword [rbx + 0x10]
xorps xmm0, xmm0
movups xmmword [rsp + 0x130], xmm0
mov byte [rsp + 0x130], 0
movdqu xmmword [rsp + 0x140], xmm1
call fcn.1400111b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rsp + 0x28]
mov ebx, eax
call fcn.140006da0
lea rax, str..._.._util_file_filesystem_win.cc
mov qword [rsp + 0x118], 0
lea rcx, [rsp + 0x28]
mov qword [rsp + 0x110], rax
mov dword [rsp + 0x120], 0x82
mov dword [rsp + 0x124], 2
call fcn.140013280
lea rdx, str.GetFileAttributes
mov dword [rsp + 0x128], ebx
lea rcx, [rsp + 0x28]
call fcn.140006680
cmp qword [rsp + 0x148], 0x10
lea rdx, [rsp + 0x130]
mov r8, qword [rsp + 0x140]
mov rcx, rax
cmovae rdx, qword [rsp + 0x130]
call fcn.140009230
lea rcx, [rsp + 0x28]
call fcn.140013810
mov rdx, qword [rsp + 0x148]
cmp rdx, 0x10
jb 0x140072fa7
mov rcx, qword [rsp + 0x130]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140072f93
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140072fd1
call fcn.1400809f0
xor al, al
jmp 0x140072fb0
test dil, dil
jne 0x140072fab
bt eax, 0xa
jae 0x140072fab
xor al, al
jmp 0x140072fb0
shr eax, 4
and al, 1
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1400809d0
mov rbx, qword [rsp + 0x178]
add rsp, 0x160
pop rdi
ret
call fcn.140087b78
int3
Function at 0x140072fe0
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push rbx
sub rsp, 0x160
mov rax, qword [0x1400e0038]
xor rax, rsp
mov qword [rsp + 0x150], rax
cmp qword [rcx + 0x18], 8
mov rbx, rcx
jb 0x140073008
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14007302c
and eax, 0x410
cmp eax, 0x410
jne 0x14007302c
mov rcx, rbx
call fcn.1400725f0
jmp 0x140073167
cmp qword [rbx + 0x18], 8
mov rcx, rbx
jb 0x140073039
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140073165
cmp qword [rbx + 0x18], 8
mov rcx, rbx
jb 0x140073054
mov rcx, qword [rbx]
movdqa xmm1, xmmword [0x1400cd310]
lea r8, [rsp + 0x130]
mov rdx, qword [rbx + 0x10]
xorps xmm0, xmm0
movups xmmword [rsp + 0x130], xmm0
mov byte [rsp + 0x130], 0
movdqu xmmword [rsp + 0x140], xmm1
call fcn.1400111b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rsp + 0x28]
mov ebx, eax
call fcn.140006da0
lea rax, str..._.._util_file_filesystem_win.cc
mov qword [rsp + 0x118], 0
lea rcx, [rsp + 0x28]
mov qword [rsp + 0x110], rax
mov dword [rsp + 0x120], ILFree
mov dword [rsp + 0x124], 2
call fcn.140013280
lea rdx, str.DeleteFile
mov dword [rsp + 0x128], ebx
lea rcx, [rsp + 0x28]
call fcn.140006680
cmp qword [rsp + 0x148], 0x10
lea rdx, [rsp + 0x130]
mov r8, qword [rsp + 0x140]
mov rcx, rax
cmovae rdx, qword [rsp + 0x130]
call fcn.140009230
lea rcx, [rsp + 0x28]
call fcn.140013810
mov rdx, qword [rsp + 0x148]
cmp rdx, 0x10
jb 0x140073161
mov rcx, qword [rsp + 0x130]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14007315c
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140073180
call fcn.1400809f0
xor al, al
jmp 0x140073167
mov al, 1
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1400809d0
add rsp, 0x160
pop rbx
ret
call fcn.140087b78
int3
Function at 0x140078b70
Capabilities:
Check os version

Disassembly:
sub rsp, 0x168
mov rax, qword [0x1400e0038]
xor rax, rsp
mov qword [rsp + 0x150], rax
call qword [sym.imp.KERNEL32.dll_GetVersion]
movzx ecx, ax
shr cx, 8
cmp al, 6
jb 0x140078d19
jne 0x140078baa
cmp cx, 1
jbe 0x140078d19
mov rax, qword gs:[0x58]
mov edx, 4
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x1400e4f58], eax
jg 0x140078d46
xor edx, edx
lea rcx, [0x1400e4dd0]
mov r8d, 0x10000000
call qword [0x1400e4f50]
test eax, eax
jne 0x140078d26
mov qword [rsp + 0x160], rbx
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rsp + 0x28]
mov ebx, eax
call fcn.140006da0
lea rax, str..._.._util_win_critical_section_with_debug_info.cc
mov qword [rsp + 0x118], 0
lea rcx, [rsp + 0x28]
mov qword [rsp + 0x110], rax
mov dword [rsp + 0x120], 0x21
mov dword [rsp + 0x124], 2
call fcn.140013280
lea rdx, [0x1400cd1b8]
mov dword [rsp + 0x128], ebx
lea rcx, [rsp + 0x28]
call fcn.140006680
lea rdx, [0x1400c2070]
lea rcx, [rsp + 0x28]
call fcn.140006680
mov edx, dword [rsp + 0x128]
lea rcx, [rsp + 0x130]
mov rbx, rax
call fcn.140012e60
cmp qword [rax + 0x18], 0x10
mov r8, qword [rax + 0x10]
jb 0x140078c8a
mov rax, qword [rax]
mov rdx, rax
mov rcx, rbx
call fcn.140009230
mov rdx, qword [rsp + 0x148]
mov rbx, qword [rsp + 0x160]
cmp rdx, 0x10
jb 0x140078cdc
mov rcx, qword [rsp + 0x130]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140078cd7
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140078d40
call fcn.1400809f0
movdqa xmm0, xmmword [0x1400cd310]
lea rcx, [rsp + 0x28]
movdqu xmmword [rsp + 0x140], xmm0
mov byte [rsp + 0x130], 0
call fcn.140012fd0
xor al, al
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1400809d0
add rsp, 0x168
ret
lea rcx, [0x1400e4dd0]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov al, 1
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1400809d0
add rsp, 0x168
ret
call fcn.140087b78
int3
lea rcx, [0x1400e4f58]
call fcn.140080e34
cmp dword [0x1400e4f58], 0xffffffff
jne 0x140078bca
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
je 0x140078d81
lea rdx, [0x1400cd1da]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x1400e4f58]
mov qword [0x1400e4f50], rax
call fcn.140080dd4
jmp 0x140078bca
Function at 0x1400803ec
Capabilities:
Read file on windows

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, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x14008041a
xor eax, eax
jmp 0x140080500
cmp qword [rcx + 0x68], 0
je 0x14008042b
call fcn.140005bb0
jmp 0x140080500
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140080442
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140080444
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140080476
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.140082e70
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x1400804fa
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x1400804ad
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x1400804d6
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.14009a0b0
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x1400804fa
cmp rsi, rbx
ja 0x1400804b4
test rsi, rsi
je 0x1400804fa
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.14009a0b0
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x1400819f4
Capabilities:
Parse pe header

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

Function at 0x14009dfe4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14009dde0
Function at 0x1400a4e6c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400a4e82
mov al, 1
jmp 0x1400a4ee2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400a4e93
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400a4ee0
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400aa454
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400a4ee0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400a4ee0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400a4ee0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400a4ee2
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x1400a62c8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.1400816f0
sub rsp, rax
mov rax, qword [0x1400e0038]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400a2894
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400a6317
mov rax, rbp
jmp 0x1400a641f
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0xe46c0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400a71a8
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0xe46c0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400a641b
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400a641b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400a71a8
test rax, rax
js 0x1400a641b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400a641b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400a640d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400a640d
cmp byte [rcx], 0xd
jne 0x1400a63f3
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400a6402
cmp byte [rcx + 1], 0xa
jne 0x1400a6402
inc rcx
jmp 0x1400a6402
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xe0430]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400a63d5
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400a641f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400809d0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400a6548
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, [0x1400e46c0]
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 0x1400a659f
cmp word [rdx], r13w
jne 0x1400a659f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400a65a4
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400a66c9
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400a66ea
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400a65dd
mov rdx, r9
mov word [rbx], cx
jmp 0x1400a6604
cmp r9, r8
jae 0x1400a6614
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 0x1400a65be
jmp 0x1400a66c9
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 0x1400a66be
cmp dword [rsp + 0x80], esi
je 0x1400a66be
lea r8, [0x1400e46c0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400a6696
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400a6666
mov word [rbx], r13w
jmp 0x1400a66c6
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 0x1400a6673
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400a66c6
cmp word [rsp + 0x70], r13w
jne 0x1400a66a3
cmp rbx, r14
je 0x1400a6660
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400a71b0
cmp word [rsp + 0x70], r13w
je 0x1400a66c9
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, [0x1400e46c0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400a66c3
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400a66c9