joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18005e110
Capabilities:
Query environment variable

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, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x18005e140
xor eax, eax
jmp 0x18005e203
mov rbp, rbx
cmp word [rax], si
je 0x18005e165
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18005e14c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18005e148
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.18005e030
movsxd r14, eax
test eax, eax
jne 0x18005e1a3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18005e139
mov rcx, r14
call fcn.18005ae14
mov rdi, rax
test rax, rax
jne 0x18005e1bc
xor ecx, ecx
call fcn.180058e6c
jmp 0x18005e198
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.18005e030
test eax, eax
jne 0x18005e1ed
mov rcx, rdi
call fcn.180058e6c
jmp 0x18005e1f7
xor ecx, ecx
call fcn.180058e6c
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x1800628f8
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.1800580e4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1800580e4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x180062a48
cmp rax, 0xffffffffffffffff
je 0x180062a48
xor edi, edi
test rbp, rbp
jle 0x1800629f3
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.180058df4
mov rbx, rax
test rax, rax
jne 0x180062980
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1800629e9
mov edx, 0x8000
mov ecx, r14d
call fcn.18006277c
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.180059fd4
cmp eax, 0xffffffff
je 0x1800629c9
cdqe
sub rbp, rax
test rbp, rbp
jg 0x180062990
mov edx, r15d
mov ecx, r14d
call fcn.18006277c
jmp 0x1800629e9
cmp byte [rsi + 0x38], dil
je 0x1800629e0
cmp dword [rsi + 0x34], 5
jne 0x1800629e0
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1800629e9
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.180058e6c
jmp 0x180062a5c
jns 0x180062a5c
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1800580e4
cmp rax, 0xffffffffffffffff
jne 0x180062a14
cmp byte [rsi + 0x30], dil
je 0x180062a5c
mov edi, dword [rsi + 0x2c]
jmp 0x180062a5c
mov ecx, r14d
call fcn.18005f448
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x180062a5c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x180062a5c
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x180062a55
mov eax, dword [rsi + 0x2c]
jmp 0x180062a5a
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1800580e4
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 0x180064040
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180064068
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x180064068
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140ffe058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140ffe1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140ffe089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140ffe06f
add dl, dl
jne 0x140ffe096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140ffe0f6
xor eax, eax
add dl, dl
jne 0x140ffe0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140ffe1ad
add dl, dl
jne 0x140ffe0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ffe0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ffe0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ffe0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140ffe0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140ffe07e
mov eax, 1
add dl, dl
jne 0x140ffe106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ffe113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140ffe0fb
sub eax, ebx
mov ebx, 1
jne 0x140ffe14c
mov ecx, 1
add dl, dl
jne 0x140ffe12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140ffe13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140ffe123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140ffe07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140ffe168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140ffe175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140ffe15d
cmp eax, 0x7d00
jae 0x140ffe19b
cmp eax, 0x500
jb 0x140ffe196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140ffe07e
cmp eax, 0x7f
ja 0x140ffe19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140ffe07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140ffe1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x140ffe07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001a10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
cmp qword [rsp + 0x30], 0
jne 0x140005df4
jmp 0x140003c30
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x88], rax
jmp 0x140002f40
mov rax, qword [rsp + 0x70]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x100]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp dword [rax], 0x4550
je 0x1400031a6
jmp 0x140005126
cmp qword [rsp + 0x28], 0
jne 0x140008590
jmp 0x140003117
cmp qword [rsp + 0x30], 0
je 0x140005d47
jmp 0x14000503f
mov r9d, 4
mov r8d, 0x3000
mov rdx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax + 0x30]
mov rax, qword [rsp + 0x30]
call qword [rax]
mov qword [rsp + 0x28], rax
jmp 0x140005996
mov eax, dword [rsp + 0xb4]
mov rcx, qword [rsp + 0x38]
mov ecx, dword [rcx + 0x50]
mov edx, eax
call fcn.140004d77
jmp 0x14000283a
test eax, eax
je 0x14000567b
jmp 0x14000418a
add byte [r8], al
jmp 0x140002391
mov rdx, qword [rsp + 0x110]
mov rcx, qword [rsp + 0x58]
call fcn.1400031c9
jmp 0x1400051cf
cmp qword [rsp + 0x20], 0
jne 0x140006b30
jmp 0x140006dc6
mov r9d, 4
mov r8d, 0x3000
mov rdx, qword [rsp + 0x40]
xor ecx, ecx
mov rax, qword [rsp + 0x30]
call qword [rax]
mov qword [rsp + 0x28], rax
invalid
outsb dx, byte [rsi]

Function at 0x14000469f
Capabilities:
Access peb ldr_data
Get process filename

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword gs:[0x60]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov rax, qword [rax + 0x20]
sub rax, 0x10
jmp 0x1400052bb
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x48], 0
jmp 0x140005faf
Function at 0x140007510
Capabilities:
Enumerate pe sections
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov rax, qword [rsp + 0x110]
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xe8
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x88], 0
mov qword [rsp + 0x58], 0
jmp 0x140002492

Function at 0x14000d288
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x168]
sub rsp, 0x250
mov rax, qword [0x1400333e0]
xor rax, rsp
mov qword [rbp + 0x140], rax
mov r14, r8
xor r15d, r15d
mov qword [r8], r15
mov r9d, 0x104
lea rdx, [rsp + 0x30]
lea rax, [rsp + 0x30]
sub rcx, rax
lea rax, [r9 + 0x7ffffefa]
test rax, rax
je 0x14000d2f9
movzx eax, word [rcx + rdx]
test ax, ax
je 0x14000d2f9
mov word [rdx], ax
add rdx, 2
sub r9, 1
jne 0x14000d2d7
lea rax, [rdx - 2]
test r9, r9
cmovne rax, rdx
mov word [rax], r15w
lea r8, [0x14002a5d8]
lea rcx, [rsp + 0x30]
call fcn.14000cd80
lea r8, [rsp + 0x30]
xor edx, edx
mov esi, 0x1f0003
mov ecx, esi
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x14000d436
mov dword [rsp + 0x24], r15d
mov dword [rsp + 0x20], r15d
lea rdx, [rsp + 0x24]
mov rcx, rax
call fcn.14000aad0
mov edi, eax
test eax, eax
jns 0x14000d381
mov rcx, qword [rbp + 0x168]
mov r9d, eax
mov edx, 0xcf
call fcn.14000c8cc
nop
mov rcx, rbx
call fcn.140009b30
nop
mov eax, edi
jmp 0x14000d45c
lea r8, [0x14002a5e0]
lea rcx, [rsp + 0x30]
call fcn.14000cd80
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, esi
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x14000d415
lea rdx, [rsp + 0x20]
mov rcx, rax
call fcn.14000aad0
mov esi, eax
test eax, eax
jns 0x14000d3ed
mov rcx, qword [rbp + 0x168]
mov r9d, eax
mov edx, 0xd7
call fcn.14000c8cc
nop
mov rcx, rdi
call fcn.140009b30
nop
mov rcx, rbx
call fcn.140009b30
nop
mov eax, esi
jmp 0x14000d45c
mov rcx, rdi
call fcn.140009b30
nop
movsxd rcx, dword [rsp + 0x20]
shl rcx, 0x1f
movsxd rax, dword [rsp + 0x24]
or rax, rcx
mov qword [r14], rax
mov rcx, rbx
call fcn.140009b30
nop
jmp 0x14000d447
mov rcx, qword [rbp + 0x168]
mov edx, 0xd5
call fcn.14000c8ac
mov edi, eax
mov rcx, rbx
call fcn.140009b30
nop
jmp 0x14000d37a
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 2
jne 0x14000d44b
xor eax, eax
jmp 0x14000d45c
mov rcx, qword [rbp + 0x168]
mov edx, 0xc9
call fcn.14000c8ac
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.1400017a0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14000e000
Capabilities:
Check for time delay via gettickcount
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x1400333e0]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp dword [0x14003bec8], 0
je 0x14000e171
and dword [rsp + 0x50], 0
mov edi, 4
mov dword [rsp + 0x54], edi
lea rax, [r11 - 0x14]
mov qword [r11 - 0x38], rax
lea rax, [r11 - 0x18]
mov qword [r11 - 0x40], rax
and qword [r11 - 0x48], 0
lea r9d, [rdi + 0xc]
lea r8, str.LeakWaitSeconds
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionVirtualizationVML
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
nop dword [rax + rax]
mov ebx, dword [rsp + 0x50]
lea ecx, [rdi + 0x74]
test eax, eax
cmovne ebx, ecx
mov dword [rsp + 0x50], ebx
cmp ebx, 0xffffffff
je 0x14000e0a3
cmp ebx, edi
jb 0x14000e099
mov edi, ebx
mov eax, 0xfffffed7
cmp ebx, eax
cmova edi, eax
imul ebx, edi, 0x3e8
mov dword [rsp + 0x50], ebx
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
nop dword [rax + rax]
mov esi, eax
lea rcx, [0x14003bed0]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_AcquireSRWLockExclusive]
nop dword [rax + rax]
mov edi, dword [0x14003bec8]
test edi, edi
je 0x14000e15d
mov r8d, ebx
cmp ebx, 0xffffffff
je 0x14000e0f7
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
nop dword [rax + rax]
sub eax, esi
cmp eax, ebx
jae 0x14000e0f4
mov r8d, ebx
sub r8d, eax
jmp 0x14000e0f7
xor r8d, r8d
xor r9d, r9d
lea rdx, [0x14003bed0]
lea rcx, [0x14003bec0]
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_SleepConditionVariableSRW]
nop dword [rax + rax]
mov ecx, dword [0x14003bec8]
test eax, eax
jne 0x14000e137
cmp ecx, edi
jae 0x14000e137
mov ebx, 0xfa0
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
nop dword [rax + rax]
mov esi, eax
jmp 0x14000e13c
cmp ebx, 0xffffffff
je 0x14000e154
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
nop dword [rax + rax]
sub eax, esi
cmp eax, ebx
jae 0x14000e18f
mov ecx, dword [0x14003bec8]
mov edi, ecx
test ecx, ecx
jmp 0x14000e0cc
lea rcx, [0x14003bed0]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseSRWLockExclusive]
nop dword [rax + rax]
nop
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400017a0
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
call fcn.14000a4f8
mov rbx, rax
call fcn.14000f018
mov edi, 0x8006
test eax, eax
je 0x14000e1bd
mov r9, rbx
lea r8, str.Vml::VmSharableObject::WaitUntilAllocatedObjectCountIsZero
lea rdx, str._hs_is_taking_a_long_time___giving_up_on_module:__ws_n
mov ecx, edi
call fcn.14000ef40
call fcn.14000f018
test eax, eax
je 0x14000e1d4
lea rdx, str.Detected_a_leaked_instance___this_leak_should_be_fixed_ASAP___terminating_process_rather_than_waiting_forever_or_risking_crash_during_module_cleanup_due_to_invalid_state._n
mov ecx, edi
call fcn.14000ef40
mov qword [rsp + 0x40], 0x5755414f
mov eax, dword [0x14003bec8]
mov qword [rsp + 0x48], rax
lea r8, [rsp + 0x40]
mov edx, 2
mov ecx, 0xc0000194
call fcn.14000b700
int3
Function at 0x14000eee4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000ef30
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000ef28
cmp dword [rcx + 0x3c], edx
jl 0x14000ef28
cmp dword [rcx + 0x3c], 0x10000000
jae 0x14000ef28
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x14000ef30
mov rax, rdx
add rsp, 0x18
ret

Function at 0x14001190c
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
mov rbx, rdx
mov rcx, qword [rcx - 0x10]
call qword [sym.imp.api_ms_win_core_threadpool_l1_2_0.dll_StartThreadpoolIo]
nop dword [rax + rax]
mov edx, dword [rbx + 0x40]
sub edx, 1
je 0x140011996
cmp edx, 1
jne 0x140011a0b
mov eax, dword [rbx + 0x48]
xor r9d, r9d
and qword [rbx + 0x80], 0
mov rdx, qword [rbx + 0x58]
mov r8d, dword [rbx + 0x50]
mov dword [rbx + 0x78], eax
mov rax, qword [rbx + 0x48]
shr rax, 0x20
mov dword [rbx + 0x7c], eax
lea rax, [rbx + 0x68]
mov rcx, qword [rdi - 8]
mov qword [rsp + 0x20], rax
test rdx, rdx
jne 0x140011988
lea rdx, [rbx + 0x90]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFileGather]
nop dword [rax + rax]
jmp 0x1400119ed
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
nop dword [rax + rax]
jmp 0x1400119ed
mov eax, dword [rbx + 0x48]
xor r9d, r9d
and qword [rbx + 0x80], 0
mov rdx, qword [rbx + 0x58]
mov r8d, dword [rbx + 0x50]
mov dword [rbx + 0x78], eax
mov rax, qword [rbx + 0x48]
shr rax, 0x20
mov dword [rbx + 0x7c], eax
lea rax, [rbx + 0x68]
mov rcx, qword [rdi - 8]
mov qword [rsp + 0x20], rax
test rdx, rdx
jne 0x1400119e1
lea rdx, [rbx + 0x90]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFileScatter]
nop dword [rax + rax]
jmp 0x1400119ed
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
nop dword [rax + rax]
test eax, eax
jne 0x140011a1e
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
je 0x140011a1e
cmp eax, 0x3e5
je 0x140011a1e
mov dword [rbx + 0x54], eax
mov rcx, qword [rbx + 0x88]
call qword [sym.imp.api_ms_win_core_threadpool_l1_2_0.dll_SubmitThreadpoolWork]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140011bf0
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov r14d, r9d
mov r15, r8
mov rsi, rdx
mov rbp, rcx
xor ebx, ebx
xor r9d, r9d
xor r8d, r8d
mov qword [rax - 0x38], rbx
xor edx, edx
mov qword [rax - 0x30], rbx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x140011c56
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ecx, eax
call fcn.140011e78
mov ebx, eax
jmp 0x140011d01
mov rcx, qword [rbp - 8]
or rax, 1
mov qword [rsp + 0x48], rax
xor r9d, r9d
mov dword [rsp + 0x40], esi
lea rax, [rsp + 0x30]
shr rsi, 0x20
mov r8d, r14d
mov rdx, r15
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x44], esi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
nop dword [rax + rax]
test eax, eax
jne 0x140011cf2
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x3e5
jne 0x140011cd9
mov rcx, qword [rbp - 8]
lea r8, [rsp + 0x70]
mov r9d, 1
mov dword [rsp + 0x70], ebx
lea rdx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_io_l1_1_0.dll_GetOverlappedResult]
nop dword [rax + rax]
test eax, eax
jne 0x140011cf2
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
je 0x140011cf2
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ecx, eax
call fcn.140011e78
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
lea r11, [rsp + 0x50]
mov eax, ebx
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x14001c648
Capabilities:
Read file on windows
Write 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 rax, qword [rdx + 0x28]
xor r11d, r11d
mov rbp, rdx
mov r14, rcx
mov r8d, r11d
cmp dword [rdx + 0x78], r11d
jbe 0x14001c6ae
mov r10d, dword [rdx + 0x78]
jmp 0x14001c680
mov rax, qword [rax]
cmp qword [rax + 0x18], r11
je 0x14001c67d
mov edx, dword [rax + 0x20]
lea r9d, [r8 + 1]
mov ecx, r9d
shl rcx, 0xc
cmp rcx, rdx
jne 0x14001c69c
mov rax, qword [rax]
mov r8d, r11d
cmovne r8d, r9d
sub r10, 1
jne 0x14001c680
jmp 0x14001c6ae
mov rax, qword [rax]
cmp qword [rax + 0x18], r11
je 0x14001c6ab
mov rsi, qword [rbp + 0x60]
mov edx, r8d
mov r8d, 0xff4
shl rdx, 0xc
mov qword [rsi + 0x58], r11
mov dword [rsi + 0x60], r11d
mov dword [rsi + 0x40], r11d
mov rbx, qword [rbp + 0x50]
mov rax, qword [rax + 0x18]
mov rdi, qword [rbp + 0x38]
add rax, 8
add rdx, rax
lea rcx, [rbx + 8]
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
mov dword [rbx + 0xffc], edi
lea rdx, [rbp + 8]
mov dword [rbx], 0x61746164
shr rdi, 0x20
mov dword [rbx + 4], edi
mov ecx, dword [rsi + 0x60]
mov rax, qword [rbp + 0x50]
mov qword [rsi + rcx*8 + 0x90], rax
lea rax, [0x140013ab0]
inc dword [rsi + 0x60]
mov qword [rbp + 0x18], rax
lea rax, [0x14001bbe0]
mov qword [rbp + 0x20], rax
mov byte [rbp + 0x14], 1
call fcn.140023314
mov qword [rsi + 0x30], rdx
mov rdx, rsi
mov qword [rsi + 0x20], r14
mov ecx, dword [r14 + 0x468]
mov r8d, dword [rbp + 0x78]
mov r9, qword [r14 + 0x460]
inc r8d
shl r8d, 0xc
add r8d, dword [rbp + 0x4c]
mov eax, r8d
mov dword [rsi + 0x40], 2
sub eax, ecx
mov dword [rsi + 0x50], 0x1000
cmp r8d, ecx
cmovb eax, r8d
add rax, r9
mov qword [rsi + 0x48], rax
inc dword [rbp + 0x78]
mov rcx, qword [r14 + 0x80]
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
jmp fcn.14001190c

Function at 0x14002637c
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub rsp, 0x28
mov rax, qword [rdx + 0x88]
mov qword [rdx + 0xb8], r8
mov qword [r8 + 0x58], rax
lea rax, [0x140024ae0]
mov qword [rdx + 0x10], rax
mov byte [rdx + 0xc], 0
mov rax, qword [rcx]
call fcn.140023314
mov qword [r8 + 0x30], rdx
mov qword [r8 + 0x20], rax
mov rax, qword [rdx + 0xc0]
mov rdx, r8
mov qword [r8 + 0x48], rax
mov dword [r8 + 0x40], 1
mov dword [r8 + 0x50], 0x1000
mov rcx, qword [rcx + 8]
add rsp, 0x28
jmp fcn.14001190c
Function at 0x1400263e4
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
lea rbx, [rdx + 0x38]
mov r9, rdx
mov r11, rbx
xor r10d, r10d
lea rax, [r11]
inc r10d
mov r11, qword [r11]
and qword [rax + 0x88], 0
mov edx, dword [r8 + 0x60]
mov rax, qword [rax + 0x50]
mov qword [r8 + rdx*8 + 0x90], rax
inc dword [r8 + 0x60]
cmp r11, rbx
jne 0x1400263f7
lea rax, [0x140024df0]
mov qword [r9 + 0xc0], r8
mov qword [r9 + 0x10], rax
mov rdx, r9
mov byte [r9 + 0xc], 0
mov rax, qword [rcx]
call fcn.140023314
mov qword [r8 + 0x20], rax
mov rdx, r8
mov qword [r8 + 0x30], r9
mov rax, qword [r9 + 0x58]
shl r10d, 0xc
mov qword [r8 + 0x48], rax
mov dword [r8 + 0x40], 2
mov dword [r8 + 0x50], r10d
mov rcx, qword [rcx + 8]
add rsp, 0x20
pop rbx
jmp fcn.14001190c

Function at 0x140026cf0
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x10
mov eax, dword [0x14003c998]
mov r9, rdx
mov r10d, ecx
mov r11d, 1
test eax, eax
jne 0x140026d30
xor ecx, ecx
mov eax, r11d
cpuid
bt ecx, 0x14
jae 0x140026d25
mov dword [0x14003c998], r11d
not r10d
jmp 0x140026d38
mov eax, 2
mov dword [0x14003c998], eax
not r10d
cmp eax, r11d
jne 0x140026d98
mov ecx, r8d
add rcx, r9
jmp 0x140026d4e
cmp r9, rcx
jae 0x140026d54
crc32 r10d, byte [r9]
add r9, r11
test r9b, 7
jne 0x140026d40
mov eax, r10d
lea rdx, [r9 + 0x20]
jmp 0x140026d7f
crc32 rax, qword [r9]
crc32 rax, qword [r9 + 8]
crc32 rax, qword [r9 + 0x10]
crc32 rax, qword [r9 + 0x18]
mov r9, rdx
add rdx, 0x20
cmp rdx, rcx
jbe 0x140026d5d
jmp 0x140026d8f
crc32 eax, byte [r9]
add r9, r11
cmp r9, rcx
jb 0x140026d86
not eax
jmp 0x140026dcd
test r8d, r8d
je 0x140026dc7
mov edx, r8d
movzx eax, byte [r9]
lea rbx, [0x14002d330]
movzx ecx, r10b
add r9, r11
xor rcx, rax
mov eax, r10d
shr eax, 8
mov r10d, dword [rbx + rcx*4]
xor r10d, eax
sub rdx, r11
jne 0x140026da0
not r10d
mov eax, r10d
add rsp, 0x10
pop rbx
ret

Function at 0x140001a30
Capabilities:
Parse pe header

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