joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400252c0
Capabilities:
Query service status

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 8], rcx
push rdi
sub rsp, 0xd0
mov rax, qword [0x140241cc0]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rsi, rcx
mov r8d, 1
lea rdx, str.ServicesActive
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
mov qword [rsp + 0xb0], rax
test rax, rax
je 0x1400253fd
mov rdx, rsi
cmp qword [rsi + 0x18], 7
jbe 0x140025322
mov rdx, qword [rsi]
mov r8d, 4
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
mov qword [rsp + 0xb8], rax
test rax, rax
je 0x140025428
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x90], xmm0
mov qword [rsp + 0xa0], rax
mov dword [rsp + 0xa8], eax
lea rdx, [rsp + 0x90]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x1400253bb
mov esi, dword [rsp + 0x94]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp esi, 4
sete al
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140144310
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
lea rcx, str.Unable_to_query_status_of_the_service__
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x28], 0x2b
mov r9, rsi
lea r8, [rsp + 0x20]
mov edx, eax
lea rcx, [rsp + 0x70]
call fcn.140058a80
lea rdx, [0x14023da00]
lea rcx, [rsp + 0x70]
call fcn.14015a550
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea r8, str.Unable_to_open_the_service_control_manager_
lea rcx, [rsp + 0x30]
call fcn.140065560
lea rdx, [0x14023da00]
lea rcx, [rsp + 0x30]
call fcn.14015a550
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Unable_to_open_the_service__
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x28], 0x20
mov r9, rsi
lea r8, [rsp + 0x20]
mov edx, eax
lea rcx, [rsp + 0x50]
call fcn.140058a80
lea rdx, [0x14023da00]
lea rcx, [rsp + 0x50]
call fcn.14015a550
int3
Function at 0x14002b790
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword [0x140241cc0]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rcx, qword [0x14024d2d8]
cmp byte [rcx + 0x260], 0
jne 0x14002b819
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x50], rbx
call fcn.14000a7d0
cmp qword [rsp + 0x30], 0
je 0x14002b7f3
cmp qword [rsp + 0x38], 7
lea rcx, [rsp + 0x20]
cmova rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14002b7f3
test al, 0x10
jne 0x14002b7f3
mov bl, 1
jmp 0x14002b7f5
xor bl, bl
lea rcx, [rsp + 0x20]
call fcn.140025f00
movzx eax, bl
mov rbx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140144310
add rsp, 0x58
ret
xor al, al
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140144310
add rsp, 0x58
ret
Function at 0x14002c720
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rcx, qword [0x14024d2d8]
add rcx, 0x68
add rsp, 0x28
jmp fcn.1400252c0
Function at 0x14002fbb0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x140241cc0]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, qword [rsp + 0x80]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edx, 1
mov rcx, rax
mov rdi, rax
lea r8d, [rdx + 0xf]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rsi, rax
test rax, rax
je 0x14002fcce
mov rdx, rax
mov qword [rsp + 0x90], rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbp, rax
test rax, rax
je 0x14002fca3
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x14002fca3
lea r9, [rsp + 0x48]
mov qword [rsp + 0x40], 0
lea r8, [rsp + 0x40]
mov rcx, rbp
lea rdx, [0x140206058]
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x14002fcf9
mov rcx, qword [rsp + 0x40]
mov rax, rbx
mov rbp, qword [rsp + 0x90]
mov r8d, dword [rcx + 0xc]
mov edx, dword [rcx + 8]
mov ecx, edx
shr ecx, 0x10
mov word [rbx], cx
mov ecx, r8d
shr ecx, 0x10
mov word [rbx + 4], cx
mov word [rbx + 2], dx
mov word [rbx + 6], r8w
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140144310
add rsp, 0x60
pop rdi
pop rsi
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea r8, str.Unable_to_load_VERSIONINFO_resource_
lea rcx, [rsp + 0x20]
call fcn.140029f80
lea rdx, [0x14023da00]
lea rcx, [rsp + 0x20]
call fcn.14015a550
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea r8, str.Unable_to_retrieve_VERSIONINFO_resource_
lea rcx, [rsp + 0x20]
call fcn.140029f80
lea rdx, [0x14023da00]
lea rcx, [rsp + 0x20]
call fcn.14015a550
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea r8, str.Unable_to_retrieve_VERSIONINFO_data_
lea rcx, [rsp + 0x20]
call fcn.140029f80
lea rdx, [0x14023da00]
lea rcx, [rsp + 0x20]
call fcn.14015a550
int3
Function at 0x1400321f0
Capabilities:
Move file

Disassembly:
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
sub rsp, 0x118
mov rax, qword [0x140241cc0]
xor rax, rsp
mov qword [rsp + 0x100], rax
lea rcx, [rsp + 0xa0]
call fcn.14009e040
nop
lea rcx, [rsp + 0xa0]
cmp qword [rsp + 0xb8], 7
cmova rcx, qword [rsp + 0xa0]
xor edx, edx
lea r8d, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
lea rax, [rsp + 0xa0]
cmp qword [rsp + 0xb8], 7
cmova rax, qword [rsp + 0xa0]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x28], rax
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0xc0], xmm0
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x78]
call fcn.14009c050
nop
lea rcx, [rsp + 0x78]
cmp qword [rsp + 0x90], 7
cmova rcx, qword [rsp + 0x78]
xor edx, edx
lea r8d, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x90], 7
cmova rax, qword [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x28], rax
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0xc0], xmm0
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0xe0]
call fcn.14009c050
lea rcx, [rsp + 0xe0]
cmp qword [rsp + 0xf8], 7
cmova rcx, qword [rsp + 0xe0]
xor edx, edx
lea r8d, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
lea rcx, [rsp + 0xe0]
call fcn.140025f00
nop
lea rcx, [rsp + 0x78]
call fcn.140025f00
nop
lea rcx, [rsp + 0xa0]
call fcn.140025f00
jmp 0x14003234a
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.140144310
add rsp, 0x118
ret

Function at 0x140032370
Capabilities:
Check if file exists

Disassembly:
mov byte [rsp + 0x10], dl
mov r11, rsp
mov qword [r11 + 8], rcx
push rbx
sub rsp, 0x130
mov rax, qword [0x140241cc0]
xor rax, rsp
mov qword [rsp + 0x120], rax
xor ecx, ecx
mov dword [rsp + 0x50], ecx
lea rax, [0x140205128]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rcx
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [r11 - 0x78], xmm0
lea r8, [r11 - 0x78]
lea rdx, [0x14024d2b0]
lea rcx, [r11 - 0x58]
call fcn.140031d70
nop
mov dword [rsp + 0x50], 3
lea rdx, [rsp + 0xe0]
cmp qword [rsp + 0xf8], 7
cmova rdx, qword [rsp + 0xe0]
mov rcx, 0xffffffff80000002
call fcn.14009fbe0
test al, al
jne 0x14003240d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x14003240d
mov bl, 1
jmp 0x14003240f
xor bl, bl
lea rcx, [rsp + 0xe0]
call fcn.140025f00
test bl, bl
jne 0x14003243d
jmp 0x140032422
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.140144310
add rsp, 0x130
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea r8, str.Unable_to_delete_Overseer_registry_
lea rcx, [rsp + 0x98]
call fcn.140029f80
lea rdx, [0x14023da00]
lea rcx, [rsp + 0x98]
call fcn.14015a550
int3
Function at 0x1400340d0
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0xb0
mov rax, qword [0x140241cc0]
xor rax, rsp
mov qword [rsp + 0xa0], rax
xor ebx, ebx
lea rax, [0x1402066d8]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], socket
movaps xmm0, xmmword [rsp + 0x70]
movdqa xmmword [rsp + 0x50], xmm0
lea r8, [rsp + 0x50]
lea rdx, [0x14024d2b0]
lea rcx, [rsp + 0x80]
call fcn.140031d70
mov qword [rsp + 0x70], rbx
lea rdx, [rsp + 0x80]
cmp qword [rsp + 0x98], 7
cmova rdx, qword [rsp + 0x80]
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 6
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x1400341b0
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14003419c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x14003419c
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov qword [rsp + 0x70], rbx
lea rcx, [rsp + 0x80]
call fcn.140025f00
jmp 0x140034227
xor ecx, ecx
call fcn.1401699b4
mov dword [rsp + 0x60], eax
lea rdx, [0x14024d0b8]
cmp qword [0x14024d0d0], 7
cmova rdx, qword [0x14024d0b8]
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140034214
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x140034214
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov qword [rsp + 0x70], rbx
lea rcx, [rsp + 0x80]
call fcn.140025f00
nop
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140144310
add rsp, 0xb0
pop rbx
ret
Function at 0x14003c0f0
Capabilities:
Get disk size

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x140241cc0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rcx, qword [0x14024d2d8]
lea rdx, [rsp + 0x28]
call fcn.14000b8a0
cmp qword [rsp + 0x38], 0
je 0x14003c14b
cmp qword [rsp + 0x40], 7
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x20]
cmova rcx, qword [rsp + 0x28]
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x14003c14b
mov rbx, qword [rsp + 0x20]
jmp 0x14003c14d
xor ebx, ebx
lea rcx, [rsp + 0x28]
call fcn.140025f00
mov rax, rbx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140144310
add rsp, 0x50
pop rbx
ret
Function at 0x140043200
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x50
mov rax, qword [0x140241cc0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbx, qword [rsp + 0x60]
mov qword [rsp + 0x28], rbx
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x30], xmm0
mov word [rsp + 0x40], ax
mov byte [rsp + 0x42], al
lea r9d, [rax + 0xa]
lea r8, [rsp + 0x30]
lea edx, [rax + 0x59]
mov ecx, 0x800
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jle 0x140043275
cdqe
mov byte [rsp + rax + 0x2f], 0x2d
lea r8, [rsp + 0x30]
add r8, rax
mov edx, 0x5a
mov ecx, 0x800
lea r9d, [rdx - 0x50]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
nop
jmp 0x14004327c
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0
lea rax, [rsp + 0x30]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rax + r8], 0
jne 0x1400432a0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.1400218d0
mov rax, rbx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140144310
add rsp, 0x50
pop rbx
ret

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

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbx
sub rsp, 0x80
mov rdx, rcx
add rdx, 0x158
lea rcx, [rax - 0x68]
call fcn.1400500f0
mov rdx, rax
mov rbx, qword [rsp + 0x98]
mov rcx, rbx
call fcn.14002a100
lea rcx, [rsp + 0x20]
call fcn.140025f00
mov rcx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x1400470b0
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400470c3
test al, 0x10
jne 0x1400470c3
mov al, 1
jmp 0x1400470c5
xor al, al
test al, al
je 0x1400470d2
add rsp, 0x80
pop rbx
ret
lea rax, str.Unable_to_find_file__
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], 0x19
mov r8, rbx
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x60]
call fcn.140029fc0
nop
mov r8, rax
lea rcx, [rsp + 0x40]
call fcn.1400537b0
lea rdx, [0x14023da00]
lea rcx, [rsp + 0x40]
call fcn.14015a550
int3

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

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbx
sub rsp, 0x80
mov rdx, rcx
add rdx, 0x268
lea rcx, [rax - 0x48]
call fcn.140057b70
nop
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.140050290
mov rdx, rax
mov rbx, qword [rsp + 0x98]
mov rcx, rbx
call fcn.14002a100
lea rcx, [rsp + 0x20]
call fcn.140025f00
nop
lea rcx, [rsp + 0x40]
call fcn.140025f00
mov rcx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x140047189
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14004719c
test al, 0x10
jne 0x14004719c
mov al, 1
jmp 0x14004719e
xor al, al
test al, al
je 0x1400471ab
add rsp, 0x80
pop rbx
ret
lea rax, str.Unable_to_find_file__
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], 0x19
mov r8, rbx
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x60]
call fcn.140029fc0
nop
mov r8, rax
lea rcx, [rsp + 0x40]
call fcn.1400537b0
lea rdx, [0x14023da00]
lea rcx, [rsp + 0x40]
call fcn.14015a550
int3
Function at 0x14004f260
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x70
mov rax, qword [0x140241cc0]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rdx, qword [0x14024d2d8]
lea rcx, [rsp + 0x48]
cmp byte [rdx + 0x260], 0
je 0x14004f2e3
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x58], xmm1
xor r8d, r8d
lea rdx, [0x140205128]
call fcn.140025740
nop
mov rdx, qword [0x14024d2d8]
add rdx, 0x268
lea rcx, [rsp + 0x28]
call fcn.140025a50
nop
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x28]
call fcn.14005b030
movzx ebx, al
lea rcx, [rsp + 0x28]
call fcn.140025f00
nop
jmp 0x14004f31c
add rdx, 0x158
lea r8, str.setup_reboot.txt
call fcn.14000bd70
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 7
cmova rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14004f31a
test al, 0x10
jne 0x14004f31a
mov bl, 1
jmp 0x14004f31c
xor bl, bl
lea rcx, [rsp + 0x48]
call fcn.140025f00
movzx eax, bl
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140144310
add rsp, 0x70
pop rbx
ret

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

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rdi
sub rsp, 0xb0
mov rax, qword [0x140241cc0]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov rbx, rcx
mov rdi, rdx
lea rcx, [rsp + 0x20]
call fcn.140057b70
nop
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.1400550b0
nop
lea rcx, [rsp + 0x20]
call fcn.140025f00
cmp qword [rsp + 0x70], 0
je 0x140054419
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 7
cmova rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140054419
test al, 0x10
jne 0x140054419
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.14005b370
jmp 0x140054461
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.140057b70
nop
mov rdx, rax
lea rcx, [rsp + 0x80]
call fcn.140055260
nop
lea rcx, [rsp + 0x40]
call fcn.140025f00
lea rdx, [rsp + 0x80]
mov rcx, rbx
call fcn.14005b370
nop
lea rcx, [rsp + 0x80]
call fcn.140025f00
nop
lea rcx, [rsp + 0x60]
call fcn.140025f00
mov rax, rbx
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140144310
mov rbx, qword [rsp + 0xd0]
add rsp, 0xb0
pop rdi
ret
Function at 0x140061360
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rsi
sub rsp, 8
mov rsi, qword [rsp + 0x30]
xor ecx, ecx
mov ebx, ecx
mov r11d, ecx
mov r10, qword [rsi]
mov rdx, r10
cmp r10, 0x40
jb 0x1400614c5
mov r9, qword [rsp + 0x28]
mov eax, 0x5a4d
cmp word [r9], ax
jne 0x1400614c5
mov qword [rsp], rdi
movsxd rdi, dword [r9 + 0x3c]
test edi, edi
js 0x1400614c1
mov eax, edi
cmp rdx, rax
jb 0x1400614c1
sub rdx, rdi
lea r8, [rdi + r9]
cmp rdx, 4
jb 0x1400614c1
cmp dword [r8], 0x4550
jne 0x1400614c1
sub rdx, 4
cmp rdx, 0x14
jb 0x1400614c1
movzx eax, word [r8 + 4]
sub rdx, 0x14
mov qword [rsp + 0x38], rbp
mov ebp, 0x14c
cmp ax, bp
jne 0x140061434
cmp rdx, 0xe0
jb 0x1400614bc
mov eax, 0x10b
cmp word [r8 + 0x18], ax
jne 0x1400614bc
mov r11d, dword [r8 + 0x9c]
lea edx, [rax - 0x73]
mov eax, dword [r8 + 0x98]
jmp 0x140061470
mov ebp, 0x8664
cmp ax, bp
je 0x140061448
mov ebp, 0xaa64
cmp ax, bp
jne 0x1400614bc
cmp rdx, 0xf0
jb 0x1400614bc
mov eax, 0x20b
cmp word [r8 + 0x18], ax
jne 0x1400614bc
mov eax, dword [r8 + 0xa8]
mov edx, 0xa8
mov r11d, dword [r8 + 0xac]
mov r8d, r11d
lea r11d, [rdi + rdx]
add edi, 0x58
mov ebx, edi
lea rdx, [rax + r8]
cmp rdx, r10
ja 0x1400614bc
cmp rdx, rax
jb 0x1400614bc
test rax, rax
jne 0x140061496
test r8, r8
cmove rax, r10
dec rax
nop dword [rax]
cmp rax, r10
jae 0x1400614b6
cmp byte [rax + r9], 0
jne 0x1400614b6
inc ecx
dec rax
cmp ecx, 8
jl 0x1400614a0
inc rax
mov qword [rsi], rax
mov rbp, qword [rsp + 0x38]
mov rdi, qword [rsp]
mov rax, qword [rsp + 0x20]
mov dword [rax], ebx
mov dword [rax + 4], r11d
add rsp, 8
pop rsi
pop rbx
ret
Function at 0x140062c30
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x18], rbx
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xc0
mov rax, qword [0x140241cc0]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov rdi, qword [rbp + 0x67]
mov esi, dword [rbp + 0x6f]
lea rdx, [rbp + 0x37]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140062d96
mov rbx, qword [rbp + 0x37]
test rbx, rbx
jne 0x140062ca1
xor al, al
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.140144310
mov rbx, qword [rsp + 0xf0]
add rsp, 0xc0
pop rdi
pop rsi
pop rbp
ret
xorps xmm0, xmm0
movups xmmword [rbp - 9], xmm0
movups xmmword [rbp + 7], xmm0
movups xmmword [rbp + 0x17], xmm0
xor eax, eax
mov qword [rbp + 0xf], rax
movdqa xmmword [rbp + 0x27], xmm0
mov byte [rbp + 0x1f], al
mov dword [rbp + 0x17], eax
mov qword [rbp + 7], rax
mov byte [rbp - 1], al
mov qword [rbp - 9], 0xffffffffffffffff
mov rdx, rdi
lea rcx, [rbp - 9]
call fcn.14009ed30
lea rcx, [rbp - 9]
call fcn.14009ee40
nop
test rbx, rbx
js 0x140062d6f
cmp byte [rbp + 0x1f], 0
je 0x140062d40
mov r8d, esi
mov rdx, rbx
mov rbx, qword [rbp + 0x27]
mov rcx, rbx
call fcn.140062b40
movzx edi, al
test rbx, rbx
je 0x140062d18
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, qword [rbp + 7]
test rcx, rcx
je 0x140062d27
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 9]
cmp rcx, 0xffffffffffffffff
je 0x140062d37
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, dil
jmp 0x140062c82
lea rdx, str.Unable_to_retrieve_pointer_of_the_unmapped_view_
lea rcx, [rbp - 0x49]
call fcn.1400219a0
nop
lea rdx, [rbp - 0x49]
lea rcx, [rbp - 0x29]
call fcn.1400535d0
lea rdx, [0x14023da00]
lea rcx, [rbp - 0x29]
call fcn.14015a550
nop
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x49], xmm0
mov qword [rbp - 0x39], rax
lea rcx, [rbp - 0x49]
call fcn.14000c300
lea rdx, [0x14023d798]
lea rcx, [rbp - 0x49]
call fcn.14015a550
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea r8, str.Unable_to_get_file_size_
lea rcx, [rbp - 0x49]
call fcn.140029f80
lea rdx, [0x14023da00]
lea rcx, [rbp - 0x49]
call fcn.14015a550
int3
Function at 0x14006d0c0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
mov qword [rsp + 8], rcx
push rbp
lea rbp, [rsp - 0xc0]
sub rsp, 0x1c0
mov rdi, qword [rbp + 0xd0]
mov rax, qword [rdi]
movsxd rcx, dword [rax + 4]
lea rax, vtable.asw::log::detail::LogModule.2.0
mov qword [rcx + rdi], rax
mov rax, qword [rdi]
movsxd rcx, dword [rax + 8]
lea rax, vtable.asw::log::detail::LogModule.0
mov qword [rcx + rdi], rax
mov rax, qword [rdi]
movsxd rcx, dword [rax + 0xc]
lea rax, vtable.asw::log::detail::LogModule.1.0
mov qword [rcx + rdi], rax
mov rax, qword [rdi]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x20]
mov dword [rcx + rdi - 4], edx
mov rax, qword [rdi]
movsxd rcx, dword [rax + 0xc]
lea edx, [rcx - 0x40]
mov dword [rcx + rdi - 4], edx
mov rcx, qword [rdi + 8]
mov dword [rsp + 0x30], 0x46304536
mov dword [rsp + 0x34], 0x43393742
mov dword [rsp + 0x40], 0x5f676f6c
mov dword [rsp + 0x44], 0x75646f6d
mov dword [rsp + 0x48], 0x656c
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x4c], rax
mov dword [rsp + 0x54], 0x1f
mov rax, qword [rcx]
lea r9, [rsp + 0x40]
mov r8d, 2
lea rdx, [rsp + 0x60]
mov rax, qword [rax + 0x20]
call qword [case.0x1400cd6b1.0]
lea rcx, [rsp + 0x60]
call fcn.14006dcc0
lea rcx, [rsp + 0x60]
call fcn.14006ece0
mov rcx, qword [rdi + 8]
mov dword [rsp + 0x30], 0x46304536
mov dword [rsp + 0x34], 0x43393742
mov dword [rsp + 0x40], 0x5f676f6c
mov dword [rsp + 0x44], 0x75646f6d
mov dword [rsp + 0x48], 0x656c
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x4c], rax
mov dword [rsp + 0x54], 0x20
mov rax, qword [rcx]
lea r9, [rsp + 0x40]
mov r8d, 2
lea rdx, [rsp + 0x60]
mov rax, qword [rax + 0x20]
call qword [case.0x1400cd6b1.0]
lea rcx, [rsp + 0x60]
call fcn.14006dd10
lea rcx, [rsp + 0x60]
call fcn.14006ece0
lea rcx, [rdi + 8]
call fcn.14002a700
nop
lea rax, vtable.asw::mi::IModule.1.0
mov qword [rdi + 0x28], rax
mov rax, qword [rdi + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, vtable.asw::mi::IModule.0
mov qword [rcx + rdi + 0x30], rax
mov dword [rsp + 0x30], 0xffffffff
xor ebx, ebx
mov dword [rsp + 0x34], ebx
mov rdx, qword [rsp + 0x30]
call fcn.14006fb90
lea r11, vtable.asw::mi::IExportable.0
mov qword [rdi + 0x20], r11
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x34], 0xffffffff
mov rdx, qword [rsp + 0x30]
lea r11, [rsp + 0x1c0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
jmp fcn.14006fb90
Function at 0x140070870
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rbp
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rsi
push rdi
push r14
sub rsp, 0xb0
mov rax, qword [0x140241cc0]
xor rax, rsp
mov qword [rsp + 0xa8], rax
mov rsi, rcx
mov rbp, rdx
mov eax, dword [rcx + 0xe0]
cmp dword [rdx], eax
jl 0x140070a0f
call fcn.140071080
lea rax, [0x14020a3bc]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 2
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x40], xmm0
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x88]
mov rcx, rbp
call fcn.140074f80
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
lea rcx, [rsi + 0x80]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rsi + 0xb0]
test rax, rax
je 0x140070914
lock inc dword [rax + 8]
mov r14, qword [rsi + 0xa8]
mov qword [rsp + 0x78], r14
mov rax, qword [rsi + 0xb0]
mov qword [rsp + 0x80], rax
lea rcx, [rsi + 0x80]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
xor eax, eax
mov dword [rsp + 0x70], eax
lea rdx, [rsp + 0x88]
cmp qword [rsp + 0xa0], 0xf
cmova rdx, qword [rsp + 0x88]
lea rdi, [rax - 1]
test r14, r14
je 0x14007096b
mov rcx, qword [r14]
jmp 0x14007096e
mov rcx, rdi
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x70]
mov r8d, dword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140070a37
mov eax, dword [rsi + 0xe4]
cmp dword [rbp], eax
jl 0x1400709b2
mov rax, qword [rsp + 0x78]
test rax, rax
je 0x1400709a8
mov rcx, qword [rax]
jmp 0x1400709ab
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
nop
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x140070a02
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140070a02
mov rbx, qword [rsp + 0x80]
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax]
call qword [case.0x1400cd6b1.0]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x140070a02
mov rcx, qword [rsp + 0x80]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400cd6b1.0]
nop
lea rcx, [rsp + 0x88]
call fcn.140021a40
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.140144310
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov edx, eax
lea rcx, [rsp + 0x50]
call fcn.14006a110
lea rdx, [0x14023da00]
lea rcx, [rsp + 0x50]
call fcn.14015a550
int3