joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400fa090
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x1401a0e38]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x1400fa0d4
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x1400fa13a
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x1400fa171
test eax, eax
js 0x1400fa14b
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x1400fa164
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.1400f2890
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.1400e9850
mov ecx, 7
int 0x29
ud2
Function at 0x1400fd270
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rdi, rdx
cmp qword [rdx], 0
jne 0x1400fd3c5
mov rsi, rcx
mov rbx, qword [rdi + 0x18]
mov rax, qword [rbx + 8]
test rax, rax
jne 0x1400fd2a8
mov rdx, qword [rbx + 0x10]
lea rax, [rdx + 0xf]
cmp rax, 0xf
jbe 0x1400fd388
xor eax, eax
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
je 0x1400fd3a7
sub rax, rdx
add rdx, qword [rbx]
mov r8, qword [rdi + 0x10]
mov ecx, 0xffffffff
cmp rax, rcx
cmovae rax, rcx
mov dword [rsp + 0x2c], 0
mov rcx, qword [rdi + 0x20]
mov qword [rsp + 0x20], r8
lea r9, [rsp + 0x2c]
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400fd309
mov ecx, dword [rsp + 0x2c]
mov eax, 2
test rcx, rcx
je 0x1400fd33b
mov qword [rdi], rax
mov qword [rdi + 8], rcx
mov byte [rsi + 1], 1
jmp 0x1400fd33f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rax
shl rcx, 0x20
or rcx, 2
mov qword [rsp + 0x40], rcx
cmp eax, 0x3e5
je 0x1400fd343
cmp eax, 0x6d
jne 0x1400fd36e
mov qword [rsp + 0x30], 1
lea rax, [rsp + 0x38]
jmp 0x1400fd348
mov byte [rsi + 1], 0
xor eax, eax
jmp 0x1400fd374
lea rax, [rsp + 0x30]
mov qword [rax], 0
lea rcx, [rsp + 0x40]
call fcn.1400e9240
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
test rax, rax
je 0x1400fd37e
cmp rax, 1
je 0x1400fd2f2
mov qword [rsi + 8], rcx
mov al, 1
mov byte [rsi], al
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
mov eax, 1
jmp 0x1400fd2fc
mov r8d, 0x10
mov rcx, rbx
call fcn.14011a5f0
mov rax, qword [rbx + 8]
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
jne 0x1400fd2b5
mov r8d, 1
mov rcx, rbx
mov rdx, rax
call fcn.14011a5f0
mov rax, qword [rbx + 8]
mov rdx, qword [rbx + 0x10]
jmp 0x1400fd2b5
mov qword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.14011a4e0
ud2
Function at 0x1401020e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
sub rsp, 0x88
movdqa xmmword [rsp + 0x70], xmm6
mov rsi, rcx
lea rcx, [rsp + 0x40]
call fcn.140103f50
mov rcx, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x40]

Function at 0x140103050
Capabilities:
Generate random numbers via winapi

Disassembly:
sub rsp, 0x38
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x10
mov r9d, 2
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
js 0x140103088
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
add rsp, 0x38
ret
call fcn.1401030a0
nop
add rsp, 0x38
ret

Function at 0x1401030a0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
mov edx, 0x10
call qword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
je 0x1401030e3
mov rax, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
add rsp, 0x80
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
lea rax, [0x1400f09a0]
mov qword [rbp - 0x28], rax
lea rax, str.fallback_RNG_broken:
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 1
mov qword [rbp - 0x40], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 1
lea rdx, str.library_std_src_syswindows_rand.rs
lea rcx, [rbp - 0x60]
call fcn.14011b620
ud2

Function at 0x140103740
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
in al, dx
push rax
Function at 0x140113090
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14011310a
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x140113100
cmp r11, r10
ja 0x1401131a3
cmp r10, rdx
ja 0x1401131b7
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x140113102
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x1401130e0
jmp 0x140113177
ja 0x14011310a
mov r11, r10
cmp rax, r8
jne 0x1401130b2
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14011317b
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x140113150
mov r8, r10
sub ecx, r9d
jns 0x14011316e
jmp 0x14011317d
cmp r10, rdx
je 0x140113189
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14011317d
xor al, 1
cmp r8, rdx
jne 0x140113130
jmp 0x14011317d
xor eax, eax
jmp 0x14011317d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x1401a3e29]
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.14011b6d0
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14011bbe0
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14011bb60
ud2

Function at 0x140114e04
Capabilities:
Parse pe header

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

Disassembly:
call fcn.1427731df
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 0x142773089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14277306f
add dl, dl
jne 0x142773096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1427730f6
xor eax, eax
add dl, dl
jne 0x1427730a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1427731ad
add dl, dl
jne 0x1427730b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1427730c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1427730d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1427730dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1427730ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14277307e
mov eax, 1
add dl, dl
jne 0x142773106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x142773113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1427730fb
sub eax, ebx
mov ebx, 1
jne 0x14277314c
mov ecx, 1
add dl, dl
jne 0x14277312e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14277313b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x142773123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14277307e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x142773168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x142773175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14277315d
cmp eax, 0x7d00
jae 0x14277319b
cmp eax, 0x500
jb 0x142773196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14277307e
cmp eax, 0x7f
ja 0x14277319e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14277307e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1427731d2
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 0x14277307e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400fdaa0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x1400fdaad
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1400fdabd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1400fdaa5
lea eax, [rcx + 1]
jmp 0x1400fdacb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1400fdade
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1400fdac4
sub eax, 3
jb 0x1400fdafe
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1400fdb4d
sar eax, 1
movsxd rbp, eax
jb 0x1400fdb34
jmp 0x1400fdb0c
add ebx, ebx
jne 0x1400fdb0a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1400fdb34
inc ecx
add ebx, ebx
jne 0x1400fdb1a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1400fdb34
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1400fdb2d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1400fdb1c
add ecx, 2
jmp 0x1400fdb39
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.1400fda62
jmp 0x1400fdaad
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0xa4c00
mov dl, 0x1c
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1400fdb9d
cmp rsi, rcx
jae 0x1400fdba5
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1400fdb84
cmp al, 0x8f
ja 0x1400fdb84
cmp byte [rsi - 2], 0xf
je 0x1400fdb8a
sub al, 0xe8
cmp al, 1
ja 0x1400fdb6e
cmp rsi, rcx
jae 0x1400fdba5
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1400fdb74
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1400fdba5
lodsb al, byte [rsi]
jmp 0x1400fdb84
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0xfa000]
mov eax, dword [rdi]
or eax, eax
je 0x1400fdc02
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x1099c8]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x1400fdbb2
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x1400fdbfc
mov qword [rbx], rax
add rbx, 8
jmp 0x1400fdbd2
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x1400fdc3c
cmp al, 0xef
ja 0x1400fdc2e
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1400fdc0e
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x1400fdc1d
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x25f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1400fdc90
sub rsp, 0xffffffffffffff80
jmp 0x1400504c0
Function at 0x140007e80
Capabilities:
Check if file exists
Delete file
Move file
Terminate process

Disassembly:
sub rsp, 0x28
call sub.msvcrt.dll_puts
mov ecx, 2
call fcn.140014a00
nop
nop word cs:[rax + rax]
nop

Function at 0x140007ea0
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file
Terminate process

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x70
movaps xmmword [rsp + 0x60], xmm6
mov rcx, qword [0x14002a040]
test rcx, rcx
je 0x140007edb
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140007f00
mov rcx, qword [0x14002a040]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x14002b060], 0
jne 0x140007f18
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x70
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rcx, qword [0x14002a040]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x140007ece
lea r12, [rsp + 0x20]
mov edx, 0x414
mov rbp, qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov qword [rsp + 0x20], 0
lea rsi, [0x14001c37a]
mov dword [rsp + 0x28], 3
mov rcx, r12
mov ebx, 0x14
lea rdi, [0x14002b080]
movq xmm0, rsi
mov word [rsp + 0x40], dx
movq xmm6, rdi
mov dword [rsp + 0x44], 0
punpcklqdq xmm6, xmm0
mov qword [rsp + 0x50], rsi
movaps xmmword [rsp + 0x30], xmm6
mov qword [rsp + 0x48], 0
call rbp
mov r13, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov r14, qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140007fe4
test al, 0x10
je 0x140007ee4
mov ecx, 0x64
call r14
mov eax, 0x414
movaps xmmword [rsp + 0x30], xmm6
mov rcx, r12
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 3
mov word [rsp + 0x40], ax
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], rsi
call rbp
sub ebx, 1
je 0x140007ee4
mov rcx, rdi
call r13
cmp eax, 0xffffffff
jne 0x140007f90
jmp 0x140007ee4
Function at 0x14000ef50
Capabilities:
Create directory

Disassembly:
push rdi
mov eax, 0x2020
push rsi
push rbx
call fcn.140014e20
sub rsp, rax
mov eax, dword [0x14002f080]
test eax, eax
mov rsi, rcx
je 0x14000eff0
lea rdi, [0x14002d080]
xor ebx, ebx
test eax, eax
jg 0x14000ef8c
jmp 0x14000efa0
add rbx, 1
cmp dword [0x14002f080], ebx
jle 0x14000efa0
mov rdx, qword [rdi + rbx*8]
mov rcx, rsi
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x14000ef80
jmp 0x14000efd7
mov rcx, rsi
call sub.msvcrt.dll_wcslen
cmp rax, 2
jne 0x14000efb5
cmp word [rsi + 2], 0x3a
je 0x14000efd7
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x14000f040
movsxd rbx, dword [0x14002f080]
cmp ebx, 0x3ff
jle 0x14000f058
mov eax, 1
add rsp, 0x2020
pop rbx
pop rsi
pop rdi
ret
lea rdi, [rsp + 0x20]
mov r8d, 0x1000
lea rbx, str._HOME_
mov rcx, rdi
mov rdx, rbx
call fcn.140007690
test al, al
je 0x14000f07a
movsxd rbx, dword [0x14002f080]
mov rcx, rdi
call sub.msvcrt.dll__wcsdup
lea rdi, [0x14002d080]
mov qword [rdi + rbx*8], rax
mov eax, dword [0x14002f080]
add eax, 1
mov dword [0x14002f080], eax
jmp 0x14000ef71
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x14000efc4
xor eax, eax
jmp 0x14000efdc
mov rcx, rsi
call sub.msvcrt.dll__wcsdup
add dword [0x14002f080], 1
mov rdx, rax
lea rax, [0x14002d080]
mov qword [rax + rbx*8], rdx
jmp 0x14000efd7
mov rcx, rbx
call fcn.140007de0
nop
nop word cs:[rax + rax]
nop
Function at 0x140014060
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 fcn.140019e40
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140019e40
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x1400140d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14002f144]
test esi, esi
mov rbx, rcx
jle 0x140014200
mov rax, qword [0x14002f148]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14001411b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400141a5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140014100
mov rcx, rbx
call fcn.140014b40
test rax, rax
mov rdi, rax
je 0x140014222
mov rax, qword [0x14002f148]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140014c80
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14002f148]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140014207
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14001419e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400141b0
add dword [0x14002f144], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x14002f148]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14001419e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140014060
nop dword [rax]
xor esi, esi
jmp 0x140014128
mov rax, qword [0x14002f148]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call fcn.140014060
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.140014060
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140014790
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14002f1a0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14002f180]
test rbx, rbx
je 0x1400147ec
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x1400147e3
test rsi, rsi
je 0x1400147e3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400147c8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140014a00
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140014a38
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140014a40
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140014a10
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140014a38
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140014a40
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140014a20
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140014a38
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140014a40
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140014b40
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14001d9f0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140014b60
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140014b68
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140014b60
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x140014bbd
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]
cmp rcx, r8
mov rdx, r8
jb 0x140014bb4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140014b60
add rax, 0x28
cmp rax, r9
jne 0x140014ba0
xor eax, eax
ret

Function at 0x140014bc0
Capabilities:
Parse pe header

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

Function at 0x140014c80
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14001d9f0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140014c9f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140014ca8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140011082
Capabilities:
Encrypt data using xtea

Disassembly:
jmp 0x140011fb0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x188
lea rbp, [rsp + 0x20]
lea rcx, [0x1400240a2]
call fcn.1400113c0
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rbp + 0x180]
mov eax, dword [rcx + rax]
mov dword [rbp + 4], eax
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rbp + 0x180]
mov eax, dword [rcx + rax]
mov dword [rbp + 0x24], eax
mov dword [rbp + 0x44], 0xc6ef3720
mov dword [rbp + 0x64], 0x9e3779b9
mov dword [rbp + 0x84], 0
jmp 0x140012028
mov eax, dword [rbp + 0x84]
inc eax
mov dword [rbp + 0x84], eax
cmp dword [rbp + 0x84], 0x20
jge 0x1400120b6
mov eax, dword [rbp + 4]
shl eax, 4
mov ecx, dword [rbp + 4]
shr ecx, 5
xor eax, ecx
add eax, dword [rbp + 4]
mov ecx, dword [rbp + 0x44]
shr ecx, 0xb
and ecx, 3
mov ecx, ecx
mov rdx, qword [rbp + 0x188]
mov ecx, dword [rdx + rcx*4]
mov edx, dword [rbp + 0x44]
add edx, ecx
mov ecx, edx
xor eax, ecx
mov ecx, dword [rbp + 0x24]
sub ecx, eax
mov eax, ecx
mov dword [rbp + 0x24], eax
mov eax, dword [rbp + 0x64]
mov ecx, dword [rbp + 0x44]
sub ecx, eax
mov eax, ecx
mov dword [rbp + 0x44], eax
mov eax, dword [rbp + 0x24]
shl eax, 4
mov ecx, dword [rbp + 0x24]
shr ecx, 5
xor eax, ecx
add eax, dword [rbp + 0x24]
mov ecx, dword [rbp + 0x44]
and ecx, 3
mov ecx, ecx
mov rdx, qword [rbp + 0x188]
mov ecx, dword [rdx + rcx*4]
mov edx, dword [rbp + 0x44]
add edx, ecx
mov ecx, edx
xor eax, ecx
mov ecx, dword [rbp + 4]
sub ecx, eax
mov eax, ecx
mov dword [rbp + 4], eax
jmp 0x14001201a
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rbp + 0x180]
mov edx, dword [rbp + 4]
mov dword [rcx + rax], edx
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rbp + 0x180]
mov edx, dword [rbp + 0x24]
mov dword [rcx + rax], edx
lea rsp, [rbp + 0x168]
pop rdi
pop rbp
ret

Function at 0x1400110e1
Capabilities:
Allocate or change rwx memory
Enumerate gui resources
Execute shellcode via windows callback function

Disassembly:
jmp 0x140011f00
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rcx, [0x1400240a2]
call fcn.1400113c0
mov r9d, 0x40
mov r8d, 0x1000
mov edx, 8
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbp + 8], rax
movsxd rax, dword [rbp + 0x108]
mov r8, rax
mov rdx, qword [rbp + 0x100]
mov rcx, qword [rbp + 8]
call fcn.1400113fc
call qword [sym.imp.USER32.dll_GetProcessWindowStation]
xor r8d, r8d
mov rdx, qword [rbp + 8]
mov rcx, rax
call qword [sym.imp.USER32.dll_EnumDesktopsA]
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret