joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401426c3
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1401e4928]
jne 0x14013c34a
rol rcx, 0x10
test cx, 0xffff
jne 0x14013c346
repz ret
ror rcx, 0x10
jmp 0x14014261c
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1401f0580]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x1401f0678]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1401426a1
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x1401f0580]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x1401426c3
mov rax, qword [rsp + 0x88]
mov qword [0x1401f0678], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1401f0618], rax
mov rax, qword [0x1401f0678]
mov qword [0x1401f04f0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1401f0600], rax
mov dword [0x1401f04e0], 0xc0000409
mov dword [0x1401f04e4], 1
mov rax, qword [0x1401e4928]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1401e4930]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1401f0578], eax
mov ecx, 1
call fcn.14014e76c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1401abf78]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1401f0578], 0
jne 0x14014274a
mov ecx, 1
call fcn.14014e76c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x14014ec28
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x1401e4928]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.14014473c
xor ebx, ebx
cmp qword [0x1401f15b0], rbx
mov rdi, rax
jne 0x14014ed3b
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x14014ee12
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14014ee12
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, [0x1401adb28]
mov rcx, rsi
mov qword [0x1401f15b0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, [0x1401adb10]
mov rcx, rsi
mov qword [0x1401f15b8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x1401f15c0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x1401f15d0], rax
test rax, rax
je 0x14014ed32
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x1401f15c8], rax
jmp 0x14014ed42
mov rax, qword [0x1401f15c8]
jmp 0x14014ed49
mov rax, qword [0x1401f15c8]
mov r11, qword [0x1401f15d0]
cmp rax, rdi
je 0x14014edb0
cmp r11, rdi
je 0x14014edb0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x1401f15d0]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x14014edb0
test rax, rax
je 0x14014edb0
call rsi
test rax, rax
je 0x14014edaa
lea rcx, [rsp + 0x30]
mov r9d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x14014edaa
test byte [rsp + 0x40], 1
jne 0x14014edb0
bts ebp, 0x15
jmp 0x14014edf0
mov rcx, qword [0x1401f15b8]
cmp rcx, rdi
je 0x14014edf0
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14014edf0
call rax
mov rbx, rax
test rax, rax
je 0x14014edf0
mov rcx, qword [0x1401f15c0]
cmp rcx, rdi
je 0x14014edf0
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14014edf0
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1401f15b0]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14014ee12
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x14014ee14
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14013c330
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140002008
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x1400600c0], 0
je 0x14000202b
mov edx, 1
jmp 0x1400021f2
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
xor ebx, ebx
mov r8, qword [rax + 0x10]
xor eax, eax
mov rdx, qword [r8 + 0x30]
test rdx, rdx
je 0x14000208e
movsxd rcx, dword [rdx + 0x3c]
mov ecx, dword [rdx + rcx + 0x88]
test ecx, ecx
je 0x140002086
lea rax, [rcx + rdx]
mov ecx, dword [rax + 0xc]
add rcx, rdx
mov r9d, dword [rcx]
or r9d, 0x20202020
cmp r9d, 0x6c64746e
jne 0x140002086
mov ecx, dword [rcx + 4]
or ecx, 0x20202020
cmp ecx, 0x6c642e6c
je 0x140002098
mov r8, qword [r8]
mov rbx, rdx
jmp 0x140002040
test rax, rax
jne 0x14000209b
jmp 0x1400021f2
mov rbx, rdx
mov ebp, dword [rax + 0x1c]
mov edi, dword [rax + 0x24]
xor esi, esi
lea r13, [0x1400600c8]
mov edx, dword [rax + 0x18]
mov eax, dword [rax + 0x20]
add rdi, rbx
add rbp, rbx
lea r10d, [rdx - 1]
add rax, rbx
lea r12, [rax + r10*4]
add r10, r10
add r10, rdi
mov ecx, dword [r12]
add rcx, rbx
cmp word [rcx], 0x775a
jne 0x140002103
call fcn.140001f50
mov r11d, esi
inc esi
shl r11, 4
add r11, r13
mov dword [r11], eax
movzx eax, word [r10]
mov eax, dword [rbp + rax*4]
mov dword [r11 + 4], eax
xor eax, eax
mov qword [r11 + 8], rax
cmp esi, 0x1f4
je 0x140002115
sub r12, 4
lea rax, [r10 - 2]
cmp rdi, r10
je 0x140002115
mov r10, rax
jmp 0x1400020c7
mov dword [0x1400600c0], esi
lea ebp, [rsi - 1]
lea r10, [0x1400600c8]
test ebp, ebp
je 0x14000217c
lea rdx, [0x1400600c0]
xor ecx, ecx
lea eax, [rcx + 1]
mov r8d, dword [rdx + 0xc]
mov rcx, rax
shl rax, 4
add rax, r10
mov r9d, dword [rax + 4]
cmp r9d, r8d
jae 0x140002170
mov edi, dword [rdx + 8]
mov r11, qword [rdx + 0x10]
mov r12d, dword [rax]
mov dword [rdx + 0xc], r9d
mov r9, qword [rax + 8]
mov dword [rdx + 8], r12d
mov qword [rdx + 0x10], r9
mov dword [rax], edi
mov dword [rax + 4], r8d
mov qword [rax + 8], r11
add rdx, 0x10
cmp ecx, ebp
jb 0x140002132
dec ebp
jmp 0x140002125
mov eax, dword [0x1400600cc]
mov r13d, dword [0x1400600dc]
xor edi, edi
lea r15, [0x14005c240]
sub r13d, eax
lea r12, [rbx + rax]
mov r14d, edi
cmp edi, r13d
jae 0x140002021
lea rdx, [r12 + rdi]
mov r8d, 3
mov rcx, r15
inc rdi
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x140002199
lea rdi, [0x1400600c0]
test r14d, r14d
je 0x140002021
add rdi, 0x10
cmp esi, ebp
je 0x140002021
mov ecx, dword [rdi - 4]
mov r8d, r13d
mov edx, r14d
inc ebp
add rcx, rbx
call fcn.140001f78
mov qword [rdi], rax
jmp 0x1400021ce
mov eax, edx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1400028e0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r9d, 0x2a
mov r8d, 0x17
mov edx, 0x402
mov ecx, eax
call qword [sym.imp.USER32.dll_PostThreadMessageA]
xor eax, eax
xor r9d, r9d
xor r8d, r8d
or rdx, 0xffffffffffffffff
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x1400029b5
cmp dword [rsp + 0x38], 0x402
jne 0x1400029b5
cmp qword [rsp + 0x40], 0x17
jne 0x1400029b5
cmp qword [rsp + 0x48], 0x2a
jne 0x1400029b5
mov rsi, qword [sym.imp.KERNEL32.dll_GetTickCount]
call rsi
mov ecx, 0x352
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_Sleep]
call rsi
sub eax, 0x258
sub eax, ebx
cmp eax, 0x12b
ja 0x1400029b5
mov r12, qword [0x14005d500]
movsxd rbp, dword [r12 + 4]
lea rsi, [r12 + 0x18]
mov rcx, rbp
call sub.msvcrt.dll_malloc
mov rcx, rbp
lea r8, [r12 + 8]
mov edx, ebp
mov rdi, rax
mov rbx, rax
rep movsb byte [rdi], byte [rsi]
mov rcx, rax
call fcn.1400016ca
mov rcx, rbx
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sub.msvcrt.dll_free
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret

Function at 0x140002c90
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
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.140003ae0
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.140003ae0
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 0x140002d00
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140062094]
mov rbx, rcx
test esi, esi
jle 0x140002e30
mov rax, qword [0x140062098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140002d4b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002dd5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002d30
mov rcx, rbx
call fcn.140003750
mov rdi, rax
test rax, rax
je 0x140002e52
mov rax, qword [0x140062098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140003890
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140062098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002e37
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140002dce
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002de0
add dword [0x140062094], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x140062098]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002dce
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002c90
nop dword [rax]
xor esi, esi
jmp 0x140002d58
mov rax, qword [0x140062098]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002c90
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002c90
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400033c0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140062100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400620e0]
test rbx, rbx
je 0x14000341c
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 0x140003413
test rsi, rsi
je 0x140003413
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400033f8
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 0x141658058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1416581df
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 0x141658089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14165806f
add dl, dl
jne 0x141658096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1416580f6
xor eax, eax
add dl, dl
jne 0x1416580a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1416581ad
add dl, dl
jne 0x1416580b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1416580c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1416580d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1416580dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1416580ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14165807e
mov eax, 1
add dl, dl
jne 0x141658106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141658113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1416580fb
sub eax, ebx
mov ebx, 1
jne 0x14165814c
mov ecx, 1
add dl, dl
jne 0x14165812e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14165813b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141658123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14165807e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141658168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141658175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14165815d
cmp eax, 0x7d00
jae 0x14165819b
cmp eax, 0x500
jb 0x141658196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14165807e
cmp eax, 0x7f
ja 0x14165819e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14165807e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1416581d2
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 0x14165807e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001e40
Capabilities:
Create directory

Disassembly:
push rdi
mov eax, 0x2020
push rsi
push rbx
call fcn.1400040d0
sub rsp, rax
mov eax, dword [0x140022100]
mov rsi, rcx
test eax, eax
je 0x140001ee0
xor ebx, ebx
lea rdi, [0x140020100]
test eax, eax
jg 0x140001e7c
jmp 0x140001e90
add rbx, 1
cmp dword [0x140022100], ebx
jle 0x140001e90
mov rdx, qword [rdi + rbx*8]
mov rcx, rsi
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x140001e70
jmp 0x140001ec7
mov rcx, rsi
call sub.msvcrt.dll_wcslen
cmp rax, 2
jne 0x140001ea5
cmp word [rsi + 2], 0x3a
je 0x140001ec7
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x140001f30
movsxd rbx, dword [0x140022100]
cmp ebx, 0x3ff
jle 0x140001f48
mov eax, 1
add rsp, 0x2020
pop rbx
pop rsi
pop rdi
ret
lea rdi, [rsp + 0x20]
lea rbx, str.HOME
mov r8d, 0x1000
mov rdx, rbx
mov rcx, rdi
call fcn.140001720
test al, al
je 0x140001f6a
movsxd rbx, dword [0x140022100]
mov rcx, rdi
lea rdi, [0x140020100]
call sub.msvcrt.dll__wcsdup
mov qword [rdi + rbx*8], rax
mov eax, dword [0x140022100]
add eax, 1
mov dword [0x140022100], eax
jmp 0x140001e61
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140001eb4
xor eax, eax
jmp 0x140001ecc
mov rcx, rsi
call sub.msvcrt.dll__wcsdup
add dword [0x140022100], 1
mov rdx, rax
lea rax, [0x140020100]
mov qword [rax + rbx*8], rdx
jmp 0x140001ec7
mov rcx, rbx
call fcn.140001da0
nop
nop word cs:[rax + rax]
nop

Function at 0x140002120
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 [0x1400190a0]
test rcx, rcx
je 0x14000215b
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140002180
mov rcx, qword [0x1400190a0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x14001e0e0], 0
jne 0x140002198
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 [0x1400190a0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x14000214e
mov edx, 0x414
lea r12, [rsp + 0x20]
lea rsi, [0x14000c130]
mov qword [rsp + 0x20], 0
lea rdi, [0x14001e100]
movq xmm0, rsi
mov rcx, r12
mov dword [rsp + 0x28], 3
movq xmm6, rdi
mov word [rsp + 0x40], dx
mov rbp, qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebx, 0x14
punpcklqdq xmm6, xmm0
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], rsi
movaps xmmword [rsp + 0x30], xmm6
call rbp
mov r13, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov r14, qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140002264
test al, 0x10
je 0x140002164
mov ecx, 0x64
call r14
mov eax, 0x414
mov qword [rsp + 0x50], rsi
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
movaps xmmword [rsp + 0x30], xmm6
call rbp
sub ebx, 1
je 0x140002164
mov rcx, rdi
call r13
cmp eax, 0xffffffff
jne 0x140002210
jmp 0x140002164
Function at 0x140002db0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.140009d00
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.140009d00
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x140003a82
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400221e8]
test eax, eax
je 0x140003b1a
lea rax, [0x1400221c0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400221f0]
mov qword [rbp - 8], rax
jmp 0x140003afe
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140003af2
cmp qword [rbp - 0x10], 0
je 0x140003af2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140003ab8
lea rax, [0x1400221c0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x140003b1b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140003c20
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140003c48
mov eax, 0
jmp 0x140003c96
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140003c71
mov eax, 0
jmp 0x140003c96
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x140003c91
mov eax, 0
jmp 0x140003c96
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x140004aa0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x48
mov dword [rsp + 0x38], ecx
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r8, [0x140002ca0]
lea r9, [rsp + 0x38]
xor ecx, ecx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
add rsp, 0x48
ret

Function at 0x1400052d0
Capabilities:
Decrypt data using tea

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov r14, rcx
movsxd rsi, edx
add rsi, 0xfffffffffffffff0
mov ecx, 0x10
call fcn.1400022b0
mov rdi, rax
mov rcx, rax
mov rdx, r14
mov r8d, 0x10
call fcn.14000d3f0
mov rcx, rsi
call fcn.1400022b0
mov rbp, rax
lea rdx, [r14 + 0x10]
mov rcx, rax
mov r8d, esi
call fcn.14000d3f0
shr rsi, 3
mov qword [rsp + 0x30], rsi
je 0x1400053ee
mov r11d, dword [rdi]
xor r10d, r10d
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rbp
nop word cs:[rax + rax]
nop dword [rax + rax]
lea r8d, [r10*8]
mov r9d, dword [rbp + r8]
mov ebx, dword [rbp + r8 + 4]
mov r14d, dword [rdi + 4]
mov r13d, dword [rdi + 8]
mov edx, dword [rdi + 0xc]
mov eax, 0xc6ef3720
mov ecx, 0x20
mov edi, r9d
nop word [rax + rax]
mov ebp, edi
shl ebp, 4
add ebp, r13d
lea r15d, [rdi + rax]
mov r12d, edi
shr r12d, 5
add r12d, edx
xor r12d, ebp
xor r12d, r15d
sub ebx, r12d
mov ebp, ebx
shl ebp, 4
add ebp, r11d
lea esi, [rax + rbx]
xor esi, ebp
mov ebp, ebx
shr ebp, 5
add ebp, r14d
xor ebp, esi
sub edi, ebp
add eax, 0x61c88647
add ecx, 0xffffffff
jne 0x140005380
mov rbp, qword [rsp + 0x20]
mov dword [rbp + r8], edi
mov dword [rbp + r8 + 4], ebx
mov rdi, qword [rsp + 0x28]
xor r9d, dword [rdi]
mov dword [rdi], r9d
add r10, 1
mov r11d, r9d
cmp r10, qword [rsp + 0x30]
jne 0x140005350
mov rax, rbp
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14000c3f0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub rsp, 0x38
mov byte [rsp + 0x28], 0
lea rcx, [rsp + 0x29]
mov byte [rsp + 0x29], 0x55
mov byte [rsp + 0x2a], 0x5b
mov byte [rsp + 0x2b], 0x4c
mov byte [rsp + 0x2c], 0x50
mov byte [rsp + 0x2d], 0x5b
mov byte [rsp + 0x2e], 0x52
mov byte [rsp + 0x2f], 0xd
mov byte [rsp + 0x30], 0xc
mov byte [rsp + 0x31], 0x10
mov byte [rsp + 0x32], 0x5a
mov byte [rsp + 0x33], 0x52
mov byte [rsp + 0x34], 0x52
mov byte [rsp + 0x35], 0x3e
mov al, byte [rsp + 0x28]
test al, 1
jne 0x14000c488
xor byte [rsp + 0x29], 0x3e
xor byte [rsp + 0x2a], 0x3e
xor byte [rsp + 0x2b], 0x3e
xor byte [rsp + 0x2c], 0x3e
xor byte [rsp + 0x2d], 0x3e
xor byte [rsp + 0x2e], 0x3e
xor byte [rsp + 0x2f], 0x3e
xor byte [rsp + 0x30], 0x3e
xor byte [rsp + 0x31], 0x3e
xor byte [rsp + 0x32], 0x3e
xor byte [rsp + 0x33], 0x3e
xor byte [rsp + 0x34], 0x3e
xor byte [rsp + 0x35], 0x3e
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [0x140014c38], rax
mov byte [rsp + 0x28], 0
lea rdx, [rsp + 0x29]
mov byte [rsp + 0x29], 0x24
mov byte [rsp + 0x2a], 6
mov byte [rsp + 0x2b], 0x17
mov byte [rsp + 0x2c], 0x33
mov byte [rsp + 0x2d], 0x11
mov byte [rsp + 0x2e], 0xc
mov byte [rsp + 0x2f], 0
mov byte [rsp + 0x30], 0x22
mov byte [rsp + 0x31], 7
mov byte [rsp + 0x32], 7
mov byte [rsp + 0x33], 0x11
mov byte [rsp + 0x34], 6
mov byte [rsp + 0x35], 0x10
mov byte [rsp + 0x36], 0x10
mov byte [rsp + 0x37], 0x63
mov al, byte [rsp + 0x28]
test al, 1
jne 0x14000c53d
xor byte [rsp + 0x29], 0x63
xor byte [rsp + 0x2a], 0x63
xor byte [rsp + 0x2b], 0x63
xor byte [rsp + 0x2c], 0x63
xor byte [rsp + 0x2d], 0x63
xor byte [rsp + 0x2e], 0x63
xor byte [rsp + 0x2f], 0x63
xor byte [rsp + 0x30], 0x63
xor byte [rsp + 0x31], 0x63
xor byte [rsp + 0x32], 0x63
xor byte [rsp + 0x33], 0x63
xor byte [rsp + 0x34], 0x63
xor byte [rsp + 0x35], 0x63
xor byte [rsp + 0x36], 0x63
xor byte [rsp + 0x37], 0x63
mov rcx, qword [0x140014c38]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140014c40], rax
test rax, rax
je 0x14000c565
cmp qword [0x140014c38], 0
je 0x14000c565
add rsp, 0x38
ret
mov ecx, 0xffffffff
call fcn.140011438
int3