joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000d5d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140024f14]
test esi, esi
mov rdi, rcx
mov rbp, rdx
mov rbx, r8
jle 0x14000d760
mov rax, qword [0x140024f18]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rdi, rdx
jb 0x14000d61c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rdi, rdx
jb 0x14000d6a5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x14000d600
mov rcx, rdi
call fcn.14000e130
test rax, rax
mov r12, rax
je 0x14000d7b2
mov rax, qword [0x140024f18]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.14000e270
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x140024f18]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000d795
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000d69e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14000d710
add dword [0x140024f14], 1
cmp ebx, 8
jae 0x14000d6d1
test bl, 4
jne 0x14000d770
test ebx, ebx
je 0x14000d6c6
movzx eax, byte [rbp]
test bl, 2
mov byte [rdi], al
jne 0x14000d784
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, ebx
sub ebx, 1
mov rdx, qword [rbp + rax - 8]
cmp ebx, 8
mov qword [rdi + rax - 8], rdx
jb 0x14000d6c6
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, ebx
mov qword [rdi + rdx], rcx
jb 0x14000d6ea
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov r8d, 4
mov eax, 0x40
mov rcx, qword [rsp + 0x20]
cmovne r8d, eax
mov rdx, qword [rsp + 0x38]
add rsi, qword [0x140024f18]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000d69e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000d560
xor esi, esi
jmp 0x14000d627
mov eax, dword [rbp]
mov ebx, ebx
mov dword [rdi], eax
mov eax, dword [rbp + rbx - 4]
mov dword [rdi + rbx - 4], eax
jmp 0x14000d6c6
mov ebx, ebx
movzx eax, word [rbp + rbx - 2]
mov word [rdi + rbx - 2], ax
jmp 0x14000d6c6
mov rax, qword [0x140024f18]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.14000d560
lea rcx, str.Address__p_has_no_image_section
mov rdx, rdi
call fcn.14000d560
nop
nop dword [rax]
nop word cs:[rax + rax]
Function at 0x14000dd80
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x140024f80]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140024f60]
test rbx, rbx
je 0x14000ddd4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x14000ddcb
test rsi, rsi
je 0x14000ddcb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000ddb0
lea rcx, [0x140024f80]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x14000e130
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x140020470]
xor edx, edx
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x14000e19f
mov rcx, r9
call fcn.14000e000
test eax, eax
je 0x14000e19f
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
lea rdx, [r9 + rax + 0x18]
movzx eax, word [r9 + 6]
test eax, eax
je 0x14000e19d
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x14000e194
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x14000e19f
add rdx, 0x28
cmp rdx, r9
jne 0x14000e180
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret
Function at 0x140018460
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x14001c180]
jmp 0x14000ef60

Function at 0x140018470
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x14001c180]
jmp 0x14000ef60

Function at 0x140985058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1409851df
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 0x140985089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14098506f
add dl, dl
jne 0x140985096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409850f6
xor eax, eax
add dl, dl
jne 0x1409850a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409851ad
add dl, dl
jne 0x1409850b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409850c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409850d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409850dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1409850ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14098507e
mov eax, 1
add dl, dl
jne 0x140985106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140985113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1409850fb
sub eax, ebx
mov ebx, 1
jne 0x14098514c
mov ecx, 1
add dl, dl
jne 0x14098512e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14098513b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140985123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14098507e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140985168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140985175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14098515d
cmp eax, 0x7d00
jae 0x14098519b
cmp eax, 0x500
jb 0x140985196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14098507e
cmp eax, 0x7f
ja 0x14098519e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14098507e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1409851d2
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 0x14098507e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x6d7d6d10
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6d7f85e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6d7d6e98
mov rax, qword [0x6d7f85e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6d7d6d5c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6d7d6de5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6d7d6d40
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6d7d6ecd
mov rax, qword [0x6d7f85e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6d7f85e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6d7d6eb0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6d7d6dde
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6d7d6e40
add dword [0x6d7f85e4], 1
cmp edi, 8
jae 0x6d7d6e13
test dil, 4
jne 0x6d7d6e84
test edi, edi
je 0x6d7d6e08
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6d7d6e9f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x6d7d6e08
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x6d7d6e2c
jmp 0x6d7d6e08
add rsi, qword [0x6d7f85e8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6d7d6dde
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x6d7d6e08
xor esi, esi
jmp 0x6d7d6d67
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6d7d6e08
mov rax, qword [0x6d7f85e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x6d7d7620
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6d7f88c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6d7f88a0]
test rbx, rbx
je 0x6d7d7674
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x6d7d766b
test rsi, rsi
je 0x6d7d766b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6d7d7650
lea rcx, [0x6d7f88c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6d7d78b0
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x6d7d78c0
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x6d7d78d0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x6d7d7911
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x6d7d7908
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6d7d7913
add rax, 0x28
cmp rax, r9
jne 0x6d7d78f4
xor eax, eax
ret

Function at 0x6d7d79b0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d7f51f0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6d7d7a1d
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7d7a1d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d7d7a1d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d7d7a14
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d7d7a1f
add rax, 0x28
cmp rax, r9
jne 0x6d7d7a00
xor eax, eax
add rsp, 0x28
ret

Function at 0x6d7d7b20
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d7f51f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6d7d7b40
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7d7b38
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d7d7b9d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d7d7b94
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d7d7ba4
add rax, 0x28
cmp rax, r9
jne 0x6d7d7b80
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6d7d7bc0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6d7f51f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6d7d7c2e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7d7c2e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6d7d7c2e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6d7d7c2e
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x6d7d7c25
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6d7d7c35
add rcx, 0x28
cmp rcx, rax
jne 0x6d7d7c10
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6d7d7c48
jmp 0x6d7d7c2e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6d7d7c56
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6d7d7c2e
test r9d, r9d
jg 0x6d7d7c40
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6d7d7f90
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x14000195c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400019a8
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400019a0
cmp dword [rcx + 0x3c], edx
jl 0x1400019a0
cmp dword [rcx + 0x3c], 0x10000000
jae 0x1400019a0
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 0x1400019a8
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140004ae0
Capabilities:
Check os version

Disassembly:
sub rsp, 0x38
call qword [sym.imp.KERNEL32.dll_GetVersion]
nop dword [rax + rax]
test eax, eax
js 0x140004b47
cmp al, 6
jb 0x140004b47
lea rcx, str.Kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
nop dword [rax + rax]
test rax, rax
je 0x140004b47
lea rdx, str.HeapSetInformation
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
nop dword [rax + rax]
test rax, rax
je 0x140004b47
movabs r10, 0x93b5969b18548370
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [0x14000c660]
add rsp, 0x38
ret
Function at 0x1400097bc
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0xb8
mov rax, qword [0x1400110e0]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov r8d, 0x40
lea rdx, [rsp + 0x20]
lea rcx, str._MSI_TEST
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
nop dword [rax + rax]
test eax, eax
je 0x140009824
movzx eax, word [rsp + 0x20]
lea rdx, [rsp + 0x22]
test eax, eax
je 0x140009822
mov ecx, dword [0x140011bb0]
and eax, 0x1f
bts ecx, eax
movzx eax, word [rdx]
lea rdx, [rdx + 2]
test eax, eax
jne 0x14000980b
mov dword [0x140011bb0], ecx
mov al, 1
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1400014c0
add rsp, 0xb8
ret

Function at 0x14000ad90
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov rdi, rcx
cmp byte [0x1400120da], bl
jne 0x14000ae53
cmp byte [0x140011dc4], bl
je 0x14000ae53
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
je 0x14000ae64
lea rdx, str.GetSystemWow64DirectoryW
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
nop dword [rax + rax]
test rax, rax
jne 0x14000ae06
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
xor edi, edi
jmp 0x14000ae30
movabs r10, 0x9351969e78d6d070
mov edx, 0x105
mov rcx, rdi
call qword [0x14000c660]
mov edi, eax
test eax, eax
jne 0x14000ae32
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop dword [rax + rax]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
mov eax, edi
jmp 0x14000ae64
mov edx, 0x105
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400031d0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
mov r15d, edx
lea r14d, [rdx - 1]
mov rdi, rcx
xor r12d, r12d
nop word [rax + rax]
mov esi, r12d
mov ebp, r12d
test r14d, r14d
je 0x1400033da
mov r8, qword [rdi + 8]
nop dword [rax]
nop word [rax + rax]
lea ecx, [r8 + 0xff]
shl esi, cl
add esi, esi
nop dword [rax + rax]
mov r10, qword [rdi]
mov ecx, dword [r10]
cmp ecx, 0x270
jne 0x140003294
lea rax, [r10 + 8]
mov r9d, ecx
nop word [rax + rax]
mov r8d, dword [rax - 4]
xor r8d, dword [rax]
lea rax, [rax + 4]
btr r8d, 0x1f
xor r8d, dword [rax - 8]
mov ecx, r8d
and cl, 1
neg cl
sbb edx, edx
shr r8d, 1
and edx, 0x9908b0df
xor edx, dword [rax + 0x62c]
xor edx, r8d
mov dword [rax + 0x9b8], edx
sub r9, 1
jne 0x140003250
mov ecx, dword [r10]
jmp 0x140003377
cmp ecx, 0x4e0
jb 0x140003377
lea r11, [r10 + 0x9c4]
mov ebx, 0xe3
mov eax, dword [r11]
nop
mov edx, dword [r11 + 4]
lea r8, [r11 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 + 0x634]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x1400032b0
lea r11, [r10 + 0xd50]
mov ebx, 0x18c
mov eax, dword [r11]
nop dword [rax + rax]
mov edx, eax
lea r8, [r11 + 4]
xor edx, dword [r8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 - 0xd4c]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x140003300
mov edx, dword [r10 + 0x1380]
xor edx, dword [r10 + 4]
btr edx, 0x1f
xor edx, dword [r10 + 0x1380]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x634]
xor ecx, edx
mov dword [r10 + 0x9c0], ecx
mov ecx, r12d
mov dword [r10], r12d
mov eax, ecx
mov edx, dword [r10 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r10], eax
mov ecx, edx
mov eax, dword [r10 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
mov edx, dword [rdi + 0x10]
cmp eax, edx
ja 0x140003230
mov r8, qword [rdi + 8]
or esi, eax
lea ecx, [r8 + 0xff]
shl ebp, cl
add ebp, ebp
or ebp, edx
cmp ebp, r14d
jb 0x140003220
xor edx, edx
mov eax, ebp
div r15d
mov ecx, eax
mov r8d, edx
xor edx, edx
mov eax, esi
div r15d
cmp eax, ecx
jb 0x1400033fa
cmp r8d, r14d
jne 0x140003200
mov rbx, qword [rsp + 0x20]
mov eax, esi
mov rbp, qword [rsp + 0x28]
xor edx, edx
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
div r15d
mov eax, edx
pop r15
pop r14
pop r12
ret
Function at 0x1400038b0
Capabilities:
Create process on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push r14
sub rsp, 0x90
xor eax, eax
xorps xmm0, xmm0
mov dword [rsp + 0x54], eax
xor r14d, r14d
cmp qword [rcx + 0x18], 0x10
movzx esi, r8b
movups xmmword [rsp + 0x60], xmm0
mov rbx, rdx
mov rdi, rcx
movups xmmword [rsp + 0x70], xmm0
mov qword [r11 - 0x18], rax
lea rax, str.runas
mov dword [rsp + 0x20], 0x70
mov dword [rsp + 0x24], 0x40
mov qword [r11 - 0x68], rax
mov rax, rcx
mov qword [r11 - 0x70], r14
jb 0x14000391c
mov rax, qword [rcx]
cmp qword [rdx + 0x18], 0x10
mov qword [rsp + 0x38], rax
mov rax, rbx
jb 0x14000392e
mov rax, qword [rdx]
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x20]
lea rax, [0x1400df138]
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x48], rax
movzx eax, r9b
xor eax, 1
mov qword [rsp + 0x88], r14
mov dword [rsp + 0x50], eax
call qword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov ebp, eax
test eax, eax
je 0x14000398e
test sil, sil
je 0x140003980
mov rcx, qword [rsp + 0x88]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x1400039c4
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x1400039bf
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140003a38
mov rcx, r8
call fcn.1400953e4
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], 0xf
mov byte [rdi], r14b
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x140003a09
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x140003a04
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140003a38
mov rcx, r8
call fcn.1400953e4
lea r11, [rsp + 0x90]
mov qword [rbx + 0x10], r14
mov rsi, qword [r11 + 0x20]
mov eax, ebp
mov rbp, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x28]
mov qword [rbx + 0x18], 0xf
mov byte [rbx], r14b
mov rbx, qword [r11 + 0x10]
mov rsp, r11
pop r14
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3

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

Disassembly:
sub rsp, 0x28
cmp qword [rcx + 0x18], 0x10
jb 0x140003a4e
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140003a64
test al, 0x10
je 0x140003a64
mov al, 1
add rsp, 0x28
ret
xor al, al
add rsp, 0x28
ret
Function at 0x140003a70
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
push r14
lea rbp, [rsp - 0xb0]
sub rsp, 0x1b0
mov rdi, rdx
mov rbx, rcx
xor r14d, r14d
mov dword [rsp + 0x20], r14d
mov qword [rcx], r14
mov qword [rcx + 8], r14
mov qword [rcx + 0x10], r14
mov dword [rsp + 0x20], 1
lea r8, [0x1400df13c]
lea rcx, [rsp + 0x48]
call fcn.1400025d0
nop
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 0x10
cmovae rcx, qword [rsp + 0x48]
lea rdx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140003bcc
test byte [rsp + 0x70], 0x10
jne 0x140003bac
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x40], 0xf
mov byte [rsp + 0x28], 0
lea rax, [rbp - 0x64]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x140003b21
lea rdx, [rbp - 0x64]
lea rcx, [rsp + 0x28]
call fcn.140004420
nop
mov rdx, qword [rbx + 8]
cmp rdx, qword [rbx + 0x10]
je 0x140003b66
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rsp + 0x38]
movups xmmword [rdx + 0x10], xmm1
mov edx, 0xf
mov byte [rsp + 0x28], 0
add qword [rbx + 8], 0x20
jmp 0x140003b78
lea r8, [rsp + 0x28]
mov rcx, rbx
call fcn.1400027b0
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x140003bac
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003ba7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003c07
call fcn.1400953e4
lea rdx, [rsp + 0x70]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x140003af3
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x140003c13
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003c0e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003c0e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.1400953e4
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x60], 0xf
mov byte [rsp + 0x48], 0
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x140003c5c
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140003c57
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140003c86
mov rcx, r8
call fcn.1400953e4
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
mov rax, rbx
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3