joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003960
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000bda0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140003980
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140003988
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003980
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400039dd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400039d4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140003980
add rax, 0x28
cmp rax, r9
jne 0x1400039c0
xor eax, eax
ret

Function at 0x1400039e0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000bda0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400039ff
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140003a08
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400039ff
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140003aa0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000bda0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140003abf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140003ac8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140003000
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.140002fc2
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x140003bc0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140003be3
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x140003be3
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140003c91
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x14057c9d0]
mov r8, rcx
mov rcx, r9
call fcn.140003bc0
test eax, eax
je 0x140003cbd
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp fcn.140003be4
xor eax, eax
add rsp, 0x28
ret
Function at 0x140008c84
Capabilities:
Parse pe header

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

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

Disassembly:
sub rsp, 0x38
xor r8d, r8d
lea rdx, [0x180002b80]
lea rcx, str.SvcHostDemo
call qword [sym.imp.ADVAPI32.dll_RegisterServiceCtrlHandlerExW]
mov qword [0x1800076f8], rax
test rax, rax
je 0x180002c10
lea rdx, [0x180007038]
mov dword [0x18000703c], 4
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_SetServiceStatus]
xor eax, eax
lea r8, [0x180002a80]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
add rsp, 0x38
ret
Function at 0x140002c60
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
mov rdi, rdx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x140002c86
mov r8, rdx
mov rdx, qword [rbx]
call fcn.140003ad8
jmp 0x140002cf1
cmp byte [0x140047b60], 0
jne 0x140002cca
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140002cba
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140047b58], rax
jmp 0x140002cc1
mov rax, qword [0x140047b58]
mov byte [0x140047b60], 1
jmp 0x140002cd1
mov rax, qword [0x140047b58]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x140002ceb
mov r8d, dword [rbx + 8]
xor r9d, r9d
call qword [0x140030470]
jmp 0x140002cf1
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140003888
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x1400462c0]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov r9d, dword [rcx + 8]
xor r14d, r14d
mov rsi, rdx
mov qword [rsp + 0x48], r14
mov r8, rdx
mov qword [rsp + 0x40], r14
mov rdx, qword [rcx]
mov rdi, rcx
or r9d, 0x2001f
mov qword [rsp + 0x50], r14
lea rcx, [rsp + 0x40]
call fcn.14000304c
jmp 0x1400038fa
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.140003888
mov ebx, eax
test eax, eax
jne 0x140003963
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x58]
mov qword [rsp + 0x30], r14
lea r8, [rsp + 0x70]
mov qword [rsp + 0x28], r14
xor edx, edx
mov qword [rsp + 0x20], r14
mov dword [rsp + 0x58], 0x100
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x1400038eb
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140003951
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], r14
mov rdx, rsi
mov dword [rsp + 0x48], r14d
mov rcx, rdi
call fcn.140002c60
mov ebx, eax
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140003973
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.140010f90
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140003e48
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x480
mov rax, qword [0x1400462c0]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov r15, r9
mov r14, r8
mov rbx, rdx
xor edi, edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x50], rdi
xor edx, edx
mov r8d, 0x408
lea rcx, [rsp + 0x60]
call fcn.1400129f0
mov qword [rsp + 0x60], rdi
xor edx, edx
lea r8d, [rdi + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x140003ede
xor edx, edx
lea r8d, [rdi + 2]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x140003ede
call fcn.140001fc8
mov ebx, eax
jmp 0x140003fef
mov r8, r15
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x140003eff
call fcn.140001fc8
jmp 0x140003fde
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r14, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140003ef5
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, ebx
jae 0x140003f3a
mov ebx, 0x8007000e
jmp 0x140003fe0
mov ecx, eax
test eax, eax
je 0x140003f6f
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x140004027
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x140003f6f
lfence
lea rcx, [rsp + 0x60]
call fcn.140001cc8
jmp 0x140003f79
lea rax, [rsp + 0x68]
mov qword [rsp + 0x60], rax
jmp 0x140003f8b
cmp qword [rsp + 0x60], rdi
je 0x140003f30
lfence
mov dword [rsp + 0x28], ebx
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8, r14
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x140003ef5
mov ecx, eax
mov rax, qword [rsp + 0x60]
mov word [rax + rcx*2], di
mov r8d, dword [rsp + 0x4d0]
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x50]
call fcn.140003c24
mov ebx, eax
test rsi, rsi
je 0x140003fef
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x68]
cmp qword [rsp + 0x60], rax
je 0x140004006
lea rcx, [rsp + 0x60]
call fcn.140002cfc
nop
mov eax, ebx
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.140010f90
add rsp, 0x480
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
lfence
mov ecx, 0x80070216
call fcn.1400028ec
int3
Function at 0x140004724
Capabilities:
Set registry value

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, 0x30
xor ebx, ebx
mov rdi, r8
mov rbp, rdx
mov r14, rcx
test r8, r8
jne 0x140004752
lea eax, [rbx + 0xd]
jmp 0x140004787
mov rsi, rdi
mov rcx, rsi
call fcn.140018828
inc eax
lea rsi, [rsi + rax*2]
lea ebx, [rbx + rax*2]
cmp eax, 1
jne 0x140004755
mov rcx, qword [r14]
lea r9d, [rax + 6]
mov dword [rsp + 0x28], ebx
xor r8d, r8d
mov rdx, rbp
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x140004854
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x1400462c0]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rcx
xor r9d, r9d
xor ecx, ecx
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x50], rax
test rax, rax
je 0x1400048c5
lea rax, [rsp + 0x30]
mov r9, rbx
mov qword [rsp + 0x28], rax
lea r8, [0x140002e70]
and dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
jne 0x1400048c2
mov rcx, qword [rbx + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rbx + 0x50], rdi
mov rax, rdi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140010f90
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x140004d5c
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp byte [0x140047af8], 0
mov esi, edx
mov rdi, rcx
je 0x140004d7e
or eax, 0xffffffff
jmp 0x140004de9
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov dword [rsp + 0x40], eax
mov ebx, eax
test eax, eax
jns 0x140004dab
cmp eax, 0x80010106
jne 0x140004de7
lea rcx, str.Mscoree.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140004de7
jmp 0x140004daf
mov byte [rdi + 0x62], 1
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea r8, [rsp + 0x40]
mov rcx, rdi
mov rdx, rax
call fcn.1400030f0
cmp al, 1
jne 0x140004dd7
mov edx, esi
mov rcx, rdi
call fcn.1400046b4
mov ebx, eax
jmp 0x140004ddb
mov ebx, dword [rsp + 0x40]
cmp byte [rdi + 0x62], 0
je 0x140004de7
call qword [sym.imp.ole32.dll_CoUninitialize]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov edx, r9d
lea rcx, [0x140047b70]
jmp 0x140004d5c
Function at 0x140004f78
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp byte [0x140047af8], 0
mov esi, edx
mov rdi, rcx
je 0x140004d7e
or eax, 0xffffffff
jmp 0x140004de9
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov dword [rsp + 0x40], eax
mov ebx, eax
test eax, eax
jns 0x140004dab
cmp eax, 0x80010106
jne 0x140004de7
lea rcx, str.Mscoree.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140004de7
jmp 0x140004daf
mov byte [rdi + 0x62], 1
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea r8, [rsp + 0x40]
mov rcx, rdi
mov rdx, rax
call fcn.1400030f0
cmp al, 1
jne 0x140004dd7
mov edx, esi
mov rcx, rdi
call fcn.1400046b4
mov ebx, eax
jmp 0x140004ddb
mov ebx, dword [rsp + 0x40]
cmp byte [rdi + 0x62], 0
je 0x140004de7
call qword [sym.imp.ole32.dll_CoUninitialize]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov edx, r9d
lea rcx, [0x140047b70]
jmp 0x140004d5c

Function at 0x14000db20
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x14000db40
xor eax, eax
jmp 0x14000dc2c
cmp qword [rcx + 0x68], 0
je 0x14000db54
lfence
call fcn.14000dc40
jmp 0x14000dc2c
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14000db6b
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000db6d
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000db9f
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.140013b50
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 0x14000dc23
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x14000dbd6
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 0x14000dbff
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.14001999c
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x14000dc23
cmp rsi, rbx
ja 0x14000dbdd
test rsi, rsi
je 0x14000dc23
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.14001999c
sub rsi, rax
sub rbp, rsi
mov rax, rbp
lfence
add rsp, 0x20
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x1400112a4
Capabilities:
Parse pe header

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

Function at 0x14001b494
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001b290
Function at 0x1400240c4
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.140010f30
sub rsp, rax
mov rax, qword [0x1400462c0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140022a30
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140024113
mov rax, rbp
jmp 0x14002421b
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 + 0x48e70]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400251e4
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x48e70]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140024217
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 0x140024217
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400251e4
test rax, rax
js 0x140024217
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140024217
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140024209
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140024209
cmp byte [rcx], 0xd
jne 0x1400241ef
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400241fe
cmp byte [rcx + 1], 0xa
jne 0x1400241fe
inc rcx
jmp 0x1400241fe
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x46720]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400241d1
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14002421b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140010f90
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 0x14002443c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140024452
mov al, 1
jmp 0x1400244b2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140024463
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400244b0
mov ecx, dword [rcx + 0x18]
nop
call fcn.140026e34
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400244b0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400244b0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400244b0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400244b2
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140024584
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, [0x140048e70]
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 0x1400245db
cmp word [rdx], r13w
jne 0x1400245db
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400245e0
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140024705
mov r11d, SafeArrayGetDim
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140024726
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140024619
mov rdx, r9
mov word [rbx], cx
jmp 0x140024640
cmp r9, r8
jae 0x140024650
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 0x1400245fa
jmp 0x140024705
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 0x1400246fa
cmp dword [rsp + 0x80], esi
je 0x1400246fa
lea r8, [0x140048e70]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400246d2
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400246a2
mov word [rbx], r13w
jmp 0x140024702
mov ecx, SafeArrayGetDim
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 0x1400246af
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140024702
cmp word [rsp + 0x70], r13w
jne 0x1400246df
cmp rbx, r14
je 0x14002469c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400251ec
cmp word [rsp + 0x70], r13w
je 0x140024705
mov ecx, SafeArrayGetDim
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, [0x140048e70]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400246ff
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140024705
Function at 0x140026888
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 0x14002690f
mov rsi, rbx
cmp word [rax], bp
je 0x1400268ce
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400268b8
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400268b4
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140021ba4
mov rdi, rax
test rax, rax
je 0x1400268fc
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140013b50
mov rbp, rdi
xor ecx, ecx
call fcn.14002148c
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 0x140029558
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.140021840
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 0x1400295f9
cmp ebx, dword [rsp + 0x30]
je 0x1400295f2
test esi, esi
je 0x1400295f2
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400295cd
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400295da
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400295b7
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400295de
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400295fb
mov eax, 1
jmp 0x1400295fb
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14002df78
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.1400251ec
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400251ec
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14002e0c8
cmp rax, 0xffffffffffffffff
je 0x14002e0c8
xor edi, edi
test rbp, rbp
jle 0x14002e073
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140021cbc
mov rbx, rax
test rax, rax
jne 0x14002e000
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14002e069
mov edx, 0x8000
mov ecx, r14d
call fcn.14001b510
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.14002393c
cmp eax, 0xffffffff
je 0x14002e049
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14002e010
mov edx, r15d
mov ecx, r14d
call fcn.14001b510
jmp 0x14002e069
cmp byte [rsi + 0x38], dil
je 0x14002e060
cmp dword [rsi + 0x34], 5
jne 0x14002e060
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], SafeArrayGetDim
cmp byte [rsi + 0x30], dil
je 0x14002e069
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14002148c
jmp 0x14002e0dc
jns 0x14002e0dc
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400251ec
cmp rax, 0xffffffffffffffff
jne 0x14002e094
cmp byte [rsi + 0x30], dil
je 0x14002e0dc
mov edi, dword [rsi + 0x2c]
jmp 0x14002e0dc
mov ecx, r14d
call fcn.140026e34
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14002e0dc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, SafeArrayGetDim
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], SafeArrayGetDim
jmp 0x14002e0dc
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14002e0d5
mov eax, dword [rsi + 0x2c]
jmp 0x14002e0da
mov eax, SafeArrayGetElement
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400251ec
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