joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400a9420
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rbx, rcx
mov rdi, r8
mov rcx, qword [rcx]
mov rsi, rdx
test rcx, rcx
je 0x1400a94e0
xor edx, edx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
xor r9d, r9d
mov qword [rsp + 0x20], rdx
xor r8d, r8d
mov dword [rsp + 0x40], edx
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400a94fd
mov ecx, dword [rsp + 0x40]
mov qword [rsp + 0x48], rbp
call fcn.1400b5c60
mov rcx, qword [rbx]
mov rbp, rax
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, rsi
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [rsp + 0x40]
mov rcx, rbp
call fcn.1400b0780
mov rcx, qword [rdi]
mov rbx, rax
test rcx, rcx
je 0x1400a94be
call fcn.1400b0810
mov rcx, rbp
mov qword [rdi], rbx
call fcn.1400b56bc
mov rbp, qword [rsp + 0x48]
mov al, 1
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1400a94fd
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
jmp fcn.1400a8c70
mov rbx, qword [rsp + 0x50]
xor al, al
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x1400a9510
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov dword [rsp + 0x20], r9d
push rdi
sub rsp, 0x30
mov rsi, r8
mov rax, qword [rcx]
test rax, rax
je 0x1400a9562
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], r8
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
sete al
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rcx + 8]
test rcx, rcx
je 0x1400a95d9
xor edi, edi
mov qword [rsp + 0x40], rdi
lea r8, [rsp + 0x40]
call fcn.1400a8c70
mov rbx, qword [rsp + 0x40]
test al, al
je 0x1400a95b4
test rbx, rbx
je 0x1400a959e
mov rcx, rbx
call fcn.1400b0840
mov edi, eax
mov rcx, rbx
call fcn.1400b06e0
jmp 0x1400a95a1
mov rax, rdi
mov r8d, edi
mov rdx, rax
mov rcx, rsi
call fcn.1400b9c80
mov dil, 1
jmp 0x1400a95b7
xor dil, dil
test rbx, rbx
je 0x1400a95c5
mov rcx, rbx
call fcn.1400b0810
nop
movzx eax, dil
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
xor al, al
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x1400aa030
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
cmp qword [rcx], 0
mov rdi, r9
mov r15d, r8d
mov r14, rdx
mov rsi, rcx
je 0x1400aa0a1
mov rcx, qword [r9]
xor ebx, ebx
test rcx, rcx
je 0x1400aa06d
call fcn.1400b0840
mov ebp, eax
jmp 0x1400aa06f
mov ebp, ebx
mov rcx, qword [rdi]
test rcx, rcx
je 0x1400aa07f
call fcn.1400b06e0
mov rbx, rax
mov rcx, qword [rsi]
mov r9d, r15d
mov dword [rsp + 0x28], ebp
xor r8d, r8d
mov rdx, r14
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete al
jmp 0x1400aa0e3
cmp qword [rcx + 8], 0
je 0x1400aa0e1
mov rcx, qword [r9]
xor ebx, ebx
test rcx, rcx
je 0x1400aa0bb
call fcn.1400b0840
mov ebp, eax
jmp 0x1400aa0bd
mov ebp, ebx
mov rcx, qword [rdi]
test rcx, rcx
je 0x1400aa0cd
call fcn.1400b06e0
mov rbx, rax
mov rcx, qword [rsi + 8]
mov r9d, ebp
mov r8, rbx
mov rdx, r14
call fcn.1400a8d80
jmp 0x1400aa0e3
xor al, al
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret

Function at 0x1400aa100
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x18], r8d
sub rsp, 0x38
mov rax, qword [rcx]
test rax, rax
je 0x1400aa13f
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rcx
mov r9d, 4
mov rcx, rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete al
add rsp, 0x38
ret
mov rcx, qword [rcx + 8]
test rcx, rcx
je 0x1400aa15d
mov r9d, 4
lea r8, [rsp + 0x50]
call fcn.1400a8d80
add rsp, 0x38
ret
xor al, al
add rsp, 0x38
ret
Function at 0x1400ab790
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rax, qword [rcx]
mov rsi, rcx
mov dil, 1
mov rbx, qword [rax]
cmp rbx, rax
je 0x1400ab829
mov qword [rsp + 0x30], rbp
xor ebp, ebp
lea rcx, [rbx + 0x20]
call fcn.1400b0200
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
movzx edi, dil
mov rax, qword [rbx + 0x10]
cmove edi, ebp
cmp byte [rax + 0x19], bpl
je 0x1400ab7fe
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], bpl
jne 0x1400ab7f9
cmp rbx, qword [rax + 0x10]
jne 0x1400ab7f9
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], bpl
je 0x1400ab7e6
mov rbx, rax
jmp 0x1400ab81f
mov rdx, qword [rax]
mov rbx, rax
cmp byte [rdx + 0x19], bpl
jne 0x1400ab81f
nop word [rax + rax]
mov rcx, qword [rdx]
mov rbx, rdx
mov rdx, rcx
cmp byte [rcx + 0x19], bpl
je 0x1400ab810
cmp rbx, qword [rsi]
jne 0x1400ab7b7
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
movzx eax, dil
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400ac700
Capabilities:
Get system information on windows
Read file via mapping

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x60
mov rdi, rcx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x58]
neg eax
movsxd rbx, eax
and rbx, qword [rdi + 0x258]
mov rax, qword [rdi + 0x3d0]
cmp rax, rbx
jb 0x1400ac775
mov rcx, qword [rdi + 0x3c8]
sub rax, rbx
mov esi, eax
mov r8, rbx
shr r8, 0x20
mov r9d, ebx
mov edx, 4
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rdi + 0x630], rax
mov rdx, rax
test rax, rax
jne 0x1400ac787
mov qword [rdi + 0x638], rax
xor al, al
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
mov rcx, qword [rdi + 0x258]
mov rax, rcx
sub rax, rbx
add rdx, rax
mov rax, rcx
sub rax, rbx
mov qword [rdi + 0x638], rdx
cmp rsi, rax
jb 0x1400ac775
sub rbx, rcx
lea rcx, [rdi + 0x570]
add rsi, rbx
mov r8, rsi
call fcn.14008ca90
mov rcx, qword [rdi + 0x260]
mov r9, qword [rdi + 0x258]
mov rax, rcx
sub rax, r9
cmp rsi, rax
jb 0x1400ac775
mov rdx, qword [rdi + 0x638]
mov r8, r9
sub r8, rcx
sub rdx, r9
add rdx, rcx
add r8, rsi
lea rcx, [rdi + 0x508]
call fcn.1400258c0
mov rcx, qword [rdi + 0x268]
mov r8, qword [rdi + 0x258]
mov rax, rcx
sub rax, r8
cmp rsi, rax
jb 0x1400ac775
mov rdx, qword [rdi + 0x638]
sub rdx, r8
add rdx, rcx
lea rcx, [rdi + 0x5d0]
call fcn.14005a6e0
mov rbx, qword [rsp + 0x70]
mov al, 1
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x1400b2940
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x830
mov rax, qword [0x14013d0a8]
xor rax, rsp
mov qword [rsp + 0x820], rax
mov rdi, rcx
xor ebx, ebx
lea rcx, [0x140143cd8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp qword [0x140143bf8], rbx
je 0x1400b29d1
cmp qword [0x140143c10], rbx
je 0x1400b29d1
mov ecx, 0x12237
call qword [0x140143c20]
mov rax, qword [0x140143bf8]
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call rax
cmp qword [0x140143ca8], 0
mov ebx, eax
je 0x1400b29d1
mov r8d, 0x400
lea rdx, [rsp + 0x20]
lea rcx, str.TEMP
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [0x140143ca8]
lea rcx, [0x140143cd8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test ebx, ebx
setne al
mov rcx, qword [rsp + 0x820]
xor rcx, rsp
call fcn.1400b5660
mov rbx, qword [rsp + 0x848]
add rsp, 0x830
pop rdi
ret
Function at 0x1400b3f00
Capabilities:
Get common file path

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x290
mov rax, qword [0x14013d0a8]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rbx, rcx
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
mov rsi, r8
mov rdi, rdx
call qword [sym.imp.SHELL32.dll_SHGetMalloc]
lea r8, [rsp + 0x28]
xor edx, edx
mov rcx, rbx
call sub.SHELL32.dll_SHGetSpecialFolderLocation
test eax, eax
js 0x1400b3fdf
mov rax, qword [rsp + 0x28]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x48], rdi
mov dword [rsp + 0x50], SafeArrayLock
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
call qword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
mov rdi, rax
test rax, rax
je 0x1400b3fcf
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov rcx, qword [rsp + 0x20]
mov rdx, rdi
mov ebx, eax
mov r8, qword [rcx]
call qword [r8 + 0x28]
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
mov r8, qword [rcx]
call qword [r8 + 0x28]
movzx eax, bl
jmp 0x1400b3fe1
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
mov rax, qword [rcx]
call qword [rax + 0x28]
xor al, al
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.1400b5660
add rsp, 0x290
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400b4df0
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r12
push r14
push r15
sub rsp, 0x30
mov r12, rdx
mov r14, r9
lea rdx, [rsp + 0x20]
mov r15, r8
mov rbp, rcx
xor bl, bl
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test eax, eax
je 0x1400b4eab
mov ecx, esi
mov qword [rsp + 0x50], rdi
call fcn.1400c5a8c
mov r9, rax
mov r8d, esi
xor edx, edx
mov rcx, rbp
mov rdi, rax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x1400b4e9e
lea rdx, [0x14010e890]
mov rcx, rdi
call fcn.1400b4f60
mov rdx, rax
mov rcx, r14
call fcn.1400b01a0
lea rdx, [0x1400f93e0]
mov rcx, rdi
call fcn.1400b4f60
mov rdx, rax
mov rcx, r15
call fcn.1400b01a0
lea rdx, [0x1400f7260]
mov rcx, rdi
call fcn.1400b4f60
mov rdx, rax
mov rcx, r12
call fcn.1400b01a0
mov bl, 1
mov rcx, rdi
call fcn.1400c5a78
mov rdi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
movzx eax, bl
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r12
ret

Function at 0x1400b6738
Capabilities:
Parse pe header

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

Function at 0x1400c5d9c
Capabilities:
Parse pe header

Disassembly:
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 0x1400c5c07
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400c5c07
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400c5c07
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400c5c07
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400c5c07
cmp dword [rcx + 0x84], 0xe
jbe 0x1400c5c07
cmp dword [rcx + 0xf8], 0
je 0x1400c5c07
mov ecx, ebx
call fcn.1400c5cb8
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.1400c5a94
nop
cmp dword [rbp + 0x20], 0
je 0x1400c5c55
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400c5c60
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400c5b98
Function at 0x1400d37a0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x1400d37d7
call fcn.1400c63ec
mov dword [rax], SafeArrayUnaccessData
call fcn.1400beca0
xor eax, eax
jmp 0x1400d3865
mov rdx, r9
mov rcx, r8
call fcn.1400d373c
mov rbx, rax
test rax, rax
je 0x1400d3862
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1400d3668]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1400d384f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400c6360
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400d3836
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400d3845
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1400d79a4
jmp 0x1400d3862
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400d385f
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1400dcefc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400dcf12
mov al, 1
jmp 0x1400dcf72
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400dcf23
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400dcf70
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400defbc
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400dcf70
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400dcf70
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400dcf70
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400dcf72
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400de65c
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 0x1400de6e3
mov rsi, rbx
cmp word [rax], bp
je 0x1400de6a2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400de68c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400de688
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400d79e0
mov rdi, rax
test rax, rax
je 0x1400de6d0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400b9c80
mov rbp, rdi
xor ecx, ecx
call fcn.1400d79a4
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 0x1400e1660
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.1400d7478
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x1400e1701
cmp ebx, dword [rsp + 0x30]
je 0x1400e16fa
test esi, esi
je 0x1400e16fa
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400e16d5
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400e16e2
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400e16bf
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400e16e6
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400e1703
mov eax, 1
jmp 0x1400e1703
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400e5160
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, [0x140144f00]
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 0x1400e51b7
cmp word [rdx], r13w
jne 0x1400e51b7
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400e51bc
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400e52e1
mov r11d, reloc.WS2_32.dll_listen
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400e5302
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400e51f5
mov rdx, r9
mov word [rbx], cx
jmp 0x1400e521c
cmp r9, r8
jae 0x1400e522c
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 0x1400e51d6
jmp 0x1400e52e1
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 0x1400e52d6
cmp dword [rsp + 0x80], esi
je 0x1400e52d6
lea r8, [0x140144f00]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400e52ae
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400e527e
mov word [rbx], r13w
jmp 0x1400e52de
mov ecx, reloc.WS2_32.dll_listen
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 0x1400e528b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400e52de
cmp word [rsp + 0x70], r13w
jne 0x1400e52bb
cmp rbx, r14
je 0x1400e5278
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400e50bc
cmp word [rsp + 0x70], r13w
je 0x1400e52e1
mov ecx, reloc.WS2_32.dll_listen
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, [0x140144f00]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400e52db
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400e52e1
Function at 0x1400e6bcc
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1400e50bc
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400e50bc
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400e6d1c
cmp rax, 0xffffffffffffffff
je 0x1400e6d1c
xor edi, edi
test rbp, rbp
jle 0x1400e6cc7
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400d90b0
mov rbx, rax
test rax, rax
jne 0x1400e6c54
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400e6cbd
mov edx, 0x8000
mov ecx, r14d
call fcn.1400d4ae8
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1400dca00
cmp eax, 0xffffffff
je 0x1400e6c9d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400e6c64
mov edx, r15d
mov ecx, r14d
call fcn.1400d4ae8
jmp 0x1400e6cbd
cmp byte [rsi + 0x38], dil
je 0x1400e6cb4
cmp dword [rsi + 0x34], 5
jne 0x1400e6cb4
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x1400e6cbd
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400d79a4
jmp 0x1400e6d30
jns 0x1400e6d30
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400e50bc
cmp rax, 0xffffffffffffffff
jne 0x1400e6ce8
cmp byte [rsi + 0x30], dil
je 0x1400e6d30
mov edi, dword [rsi + 0x2c]
jmp 0x1400e6d30
mov ecx, r14d
call fcn.1400defbc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400e6d30
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, reloc.WS2_32.dll_listen
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
jmp 0x1400e6d30
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400e6d29
mov eax, dword [rsi + 0x2c]
jmp 0x1400e6d2e
mov eax, SafeArrayUnaccessData
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400e50bc
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x1400e7280
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400e72a8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400e72a8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001480
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140014d80]
mov dword [rax], 1
mov rax, qword [0x140014d90]
mov dword [rax], 1
mov rax, qword [0x140014da0]
mov dword [rax], 1
mov rax, qword [0x140014d70]
mov dword [rax], 1
mov rax, qword [0x140014c00]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014de
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x14000150a
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x140001530
cmp eax, 0x20b
je 0x140001557
jmp 0x140001586
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x140001543
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x140001572
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x1400030d0
Capabilities:
Write file on windows

Disassembly:
push r12
sub rsp, 0x20
mov rax, qword [0x14001bb78]
test rax, rax
je 0x1400030e4
call rax
mov ecx, 2
call qword [fcn.140012870]
mov r8d, 0xe
mov edx, 1
lea rcx, str.out_of_memory_n
mov r12, rax
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rcx, r12
call fcn.140012160
mov ecx, 1
call sub.msvcrt.dll_exit
nop
nop
sub rsp, 0x28
xor ecx, ecx
mov r9d, 4
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x140003142
add rsp, 0x28
ret
call fcn.1400030d0
nop
nop dword [rax + rax]
mov r9d, 4
mov r8d, 0x3000
xor ecx, ecx
jmp qword [sym.imp.KERNEL32.dll_VirtualAlloc]