joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001bbb0
Capabilities:
Create thread
Get thread local storage value
Resume thread

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rbp, rcx
mov rdi, rdx
mov rsi, r8
mov r12, r9
call fcn.140019e70
mov rbx, rax
test rax, rax
je 0x14001bde4
test rbp, rbp
je 0x14001bbeb
mov rax, qword [rax + 0x1d8]
mov qword [rbp], rax
mov r13, qword [sym.imp.KERNEL32.DLL_Sleep]
mov dword [rbx + 0x44], 1
mov dword [rbx + 0xbc], 0
mov qword [rbx + 0x28], 0xffffffffffffffff
mov r14, r13
mov qword [rbx + 8], r12
mov r12, qword [sym.imp.KERNEL32.DLL_CreateEventA]
mov qword [rbx + 0x10], rsi
xor esi, esi
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call r12
mov qword [rbx + 0x30], rax
test rax, rax
jne 0x14001bc60
test esi, esi
jne 0x14001bc50
xor ecx, ecx
mov esi, 1
call r14
jmp 0x14001bc1f
add esi, 1
mov ecx, 0x14
call r13
cmp esi, 5
jne 0x14001bc1f
mov qword [rbx + 0x38], 0xffffffffffffffff
lea r12, [rbx + 0x68]
mov rcx, r12
call fcn.1400198d0
cmp eax, 1
je 0x14001be2f
cmp qword [rbx + 0x30], 0
mov dword [rbx], 0xbab1f00d
mov qword [rbx + 0x68], 0xffffffffffffffff
mov dword [rbx + 0xc0], 0
mov dword [rbx + 0xb8], 0
je 0x14001bdcd
xor edx, edx
test rdi, rdi
je 0x14001bccd
mov eax, dword [rdi]
mov rsi, qword [rdi + 0x10]
mov dword [rbx + 0x44], eax
test al, 8
jne 0x14001bdf0
mov eax, dword [rdi + 0x18]
mov dword [rbx + 0xc0], eax
mov edx, esi
lea r8, [0x14001a440]
mov r9, rbx
xor ecx, ecx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 4
call qword [sym.imp.msvcrt.dll__beginthreadex]
mov rsi, rax
lea rax, [rax - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14001bd98
mov eax, dword [rbx + 0xc0]
mov edx, 0xfffffff1
cmp eax, 0xfffffff2
jge 0x14001bd70
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_SetThreadPriority]
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.DLL_ResetEvent]
test byte [rbx + 0x44], 4
jne 0x14001bd50
mov qword [rbx + 0x28], rsi
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_ResumeThread]
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_Sleep]
xor eax, eax
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rcx, rsi
mov qword [rbx + 0x28], 0
call qword [sym.imp.KERNEL32.DLL_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x14001bd37
mov edx, 0xfffffffe
cmp eax, 0xffffffff
jl 0x14001bd11
mov edx, 2
cmp eax, edx
cmovle edx, eax
cmp eax, 0xf
mov eax, 0xf
cmovge edx, eax
jmp 0x14001bd11
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001bda7
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
lea rcx, [rbx + 0x38]
call fcn.140019760
mov rcx, r12
call fcn.1400198d0
cmp eax, 1
je 0x14001be2f
mov qword [rbx + 0x68], 0xffffffffffffffff
pxor xmm0, xmm0
movups xmmword [rbx + 0x28], xmm0
test rbp, rbp
je 0x14001bdda
mov qword [rbp], 0
cmp qword [rbx + 0x1d0], 0
je 0x14001be18
mov eax, 0xb
jmp 0x14001bd41
call fcn.14001a0e0
mov ecx, dword [0x1400e0198]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
test rax, rax
je 0x14001be28
mov eax, dword [rax + 0xc0]
jmp 0x14001bcc5
mov rcx, rbx
call fcn.140019f40
jmp 0x14001bde4
call fcn.14001a190
jmp 0x14001be06
call fcn.140019c40
nop
nop word cs:[rax + rax]
Function at 0x14001e2a0
Capabilities:
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xb8
vmovups xmmword [rsp + 0xa0], xmm6
mov rbp, r8
cmp r9, 0x2f
ja 0x14001e2e0
xor eax, eax
vmovups xmm6, xmmword [rsp + 0xa0]
add rsp, 0xb8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov rax, qword [0x1400e4240]
vpxor xmm0, xmm0, xmm0
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x40]
vmovdqu ymmword [rsp + 0x40], ymm0
vmovdqu xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x48], rax
vzeroupper
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x14001e2c1
mov rbx, qword [rsp + 0x38]
test rbx, rbx
je 0x14001e2c3
mov r13, qword [sym.imp.WS2_32.dll_socket]
vpxor xmm6, xmm6, xmm6
jmp 0x14001e34d
mov rbx, qword [rbx + 0x28]
mov edi, 1
xor esi, esi
test rbx, rbx
je 0x14001e3e0
test dil, dil
je 0x14001e3e0
cmp dword [rbx + 4], 2
jne 0x14001e330
movabs rdx, 0x1100000002
cmp qword [rbx + 8], rdx
jne 0x14001e330
mov edx, dword [rbx + 8]
mov r8d, dword [rbx + 0xc]
mov ecx, 2
call r13
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x14001e330
vpxor xmm1, xmm1, xmm1
xor r9d, r9d
mov byte [rsp + 0x70], 0x1b
lea rdx, [rsp + 0x70]
vmovdqu ymmword [rsp + 0x71], ymm1
vmovdqu xmmword [rsp + 0x90], xmm6
mov rcx, qword [rbx + 0x10]
mov r8d, 0x30
mov dword [rsp + 0x28], ecx
mov rsi, qword [rbx + 0x20]
mov rcx, rax
mov qword [rsp + 0x20], rsi
vzeroupper
call qword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
jne 0x14001e3f0
mov edi, 1
xor esi, esi
mov rcx, r12
call qword [sym.imp.WS2_32.dll_closesocket]
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x14001e344
movzx eax, sil
jmp 0x14001e2c3
lea r8, [rsp + 0x34]
mov rdi, qword [rbx + 0x10]
mov rdx, rbp
mov rcx, r12
mov qword [rsp + 0x28], r8
mov r9, qword [rbx + 0x20]
mov r8d, 0x30
mov dword [rsp + 0x34], edi
mov qword [rsp + 0x20], r9
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp eax, 0x30
sete sil
setne dil
jmp 0x14001e3ca
Function at 0x140022de0
Capabilities:
Check for debugger via api
Check for peb beingdebugged flag

Disassembly:
sub rsp, 0x38
call qword [sym.imp.KERNEL32.DLL_IsDebuggerPresent]
test eax, eax
jne 0x140022e38
mov dword [rsp + 0x2c], 0
call qword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
lea rdx, [rsp + 0x2c]
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_CheckRemoteDebuggerPresent]
mov eax, dword [rsp + 0x2c]
test eax, eax
jne 0x140022e38
mov rdx, qword gs:[0x60]
cmp byte [rdx + 2], 0
jne 0x140022e38
call fcn.14001e690
test al, al
jne 0x140022e38
call fcn.14001e4e0
test al, al
jne 0x140022e38
add rsp, 0x38
ret
call fcn.140022e40
nop
nop
nop
Function at 0x140031f00
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x28
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
shr ax, 0xf
add rsp, 0x28
ret

Function at 0x140031f20
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x28
cmp ecx, 1
je 0x140031f70
cmp ecx, 2
je 0x140031f50
xor eax, eax
test ecx, ecx
jne 0x140031f43
mov ecx, 1
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
shr ax, 0xf
add rsp, 0x28
ret
mov ecx, 4
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
shr ax, 0xf
add rsp, 0x28
ret
mov ecx, 2
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
shr ax, 0xf
add rsp, 0x28
ret
Function at 0x1400932e0
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, qword [rdi]
call sub.msvcrt.dll__fileno_1
mov ecx, eax
mov r8d, ebx
mov rdx, rsi
call sub.msvcrt.dll__read
movsxd rbp, eax
cmp eax, 0xffffffff
je 0x140093328
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x1400932fa
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x1400d1b70
Capabilities:
Encode data using xor

Disassembly:
mov r11, rdx
mov rax, rcx
mov r10, rdx
and r11, 0xfffffffffffffff8
add r11, rcx
movabs rcx, 0xc6a4a7935bd1e995
imul r10, rcx
xor r10, r8
cmp rax, r11
je 0x1400d1bc8
nop word cs:[rax + rax]
mov r9, qword [rax]
add rax, 8
imul r9, rcx
mov r8, r9
shr r8, 0x2f
xor r8, r9
imul r8, rcx
xor r8, r10
mov r10, r8
imul r10, rcx
cmp r11, rax
jne 0x1400d1ba0
and edx, 7
je 0x1400d1bfd
sub edx, 1
movsxd rax, edx
xor edx, edx
nop dword [rax]
movzx ecx, byte [r11 + rax]
shl rdx, 8
sub rax, 1
add rdx, rcx
test eax, eax
jns 0x1400d1bd8
xor rdx, r10
movabs r10, 0xc6a4a7935bd1e995
imul r10, rdx
movabs rax, 0xc6a4a7935bd1e995
mov rdx, r10
shr rdx, 0x2f
xor rdx, r10
imul rdx, rax
mov rax, rdx
shr rax, 0x2f
xor rax, rdx
ret
Function at 0x1400dd290
Capabilities:
Write file on windows

Disassembly:
call fcn.1400d9e00
call fcn.1400da050
mov rbx, qword [rax]
test byte [rbx + 0x50], 1
je 0x1400dd207
mov rbx, qword [rbx]
lea r12, [rsp + 0x20]
mov rdx, rbp
xor ecx, ecx
mov r8, r12
call fcn.14001f1d0
mov rdx, qword [rbx - 0x90]
mov r9, rsi
mov r8, rbx
mov rcx, r12
call fcn.14001f2c0
test al, al
jne 0x1400dd225
lea rbx, [0x1400ed610]
mov r9, rsi
xor r8d, r8d
mov rcx, r12
mov rdx, rbx
call fcn.14001f2c0
test al, al
je 0x1400dd22a
mov ecx, 8
call fcn.1400d9d90
lea r8, [0x140099500]
mov rdx, rbx
mov rcx, rax
mov rax, qword [0x1400ea400]
add rax, 0x10
mov qword [rcx], rax
call fcn.1400da310
add rbx, 0x90
jmp 0x1400dd196
call fcn.1400da2c0
mov rcx, rdi
call fcn.14001f630
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
call sub.msvcrt.dll_abort
mov rcx, rax
call fcn.1400d9e00
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, 8
call fcn.1400d9d90
lea r8, [fcn.1400d0600]
lea rdx, [0x1400ee280]
mov rcx, rax
mov rax, qword [0x1400ea6f0]
add rax, 0x10
mov qword [rcx], rax
call fcn.1400da310
nop
nop
nop
mov rcx, rax
mov rax, rdx
sub rax, 1
jne 0x1400dd30c
call fcn.1400d9e00
mov rcx, rax
mov rax, qword [rax]
call qword [rax + 0x10]
mov ecx, 2
mov rbx, rax
call rsi
mov r9, rax
mov r8d, 0xb
mov edx, 1
lea rcx, str.__what__:
call sub.msvcrt.dll_fwrite
mov ecx, 2
call rsi
mov rdx, rax
mov rcx, rbx
call sub.msvcrt.dll_fputs
mov ecx, 2
call rsi
mov rdx, rax
mov ecx, 0xa
call sub.msvcrt.dll_fputc
call fcn.1400d9f30
call sub.msvcrt.dll_abort
mov rcx, rdi
call sub.msvcrt.dll_free
call fcn.1400da2c0
call fcn.1400d9e00
call fcn.1400d9f30
jmp 0x1400dd2fa
Function at 0x140001487
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140153980]
mov dword [rax], 1
mov rax, qword [0x140153990]
mov dword [rax], 1
mov rax, qword [0x1401539a0]
mov dword [rax], 1
mov rax, qword [0x140153910]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014d8
mov eax, 0
jmp 0x140001585
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 0x140001504
mov eax, 0
jmp 0x140001585
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000152a
cmp eax, 0x20b
je 0x140001551
jmp 0x140001580
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000153d
mov eax, 0
jmp 0x140001585
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001585
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000156c
mov eax, 0
jmp 0x140001585
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001585
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x1400b54d0
Capabilities:
Query environment variable

Disassembly:
push r12
mov eax, 0x10020
call fcn.14013acc0
sub rsp, rax
xor eax, eax
mov r8d, 0x10000
lea r12, [rsp + 0x20]
mov word [rsp + 0x20], ax
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x1400b550f
mov rcx, r12
call sub.msvcrt.dll__wcsdup
add rsp, 0x10020
pop r12
ret
Function at 0x140132180
Capabilities:
Encode data using xor
Extract resource via kernel32 functions
Hash data with crc32

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp byte [0x14016b581], 0
mov r12, rcx
mov rdi, rdx
je 0x140132208
lea rdx, [0x140152212]
mov rcx, rdi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x140132320
mov rsi, qword [0x14016b440]
jmp 0x1401321c5
lea rsi, [rdx + rax + 4]
mov rdx, rsi
mov rcx, rdi
call sub.msvcrt.dll_strcmp
mov rcx, rsi
mov ebx, eax
call sub.msvcrt.dll_strlen
lea rdx, [rsi + rax + 1]
mov eax, dword [rdx]
test ebx, ebx
jne 0x1401321c0
movzx r8d, word [rdx + 4]
lea r9, [rdx + 6]
mov rcx, r12
mov rdx, r9
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp fcn.14011fba0
mov r8d, 0xa
mov edx, 3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [0x14016b440], rax
mov rdx, rax
mov r9d, dword [rax]
lea rax, [rax + 4]
mov qword [0x14016b440], rax
mov eax, dword [rdx + 4]
lea rcx, [rdx + 8]
mov qword [0x14016b440], rcx
test eax, eax
je 0x140132308
sub eax, 1
lea r8, [rdx + rax + 9]
mov eax, 0xffffffff
nop word [rax + rax]
movzx edx, byte [rcx]
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
shr eax, 1
and edx, 1
add rcx, 1
neg edx
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor eax, edx
cmp r8, rcx
jne 0x140132270
not eax
cmp r9d, eax
jne 0x140132388
mov byte [0x14016b581], 1
jmp 0x140132198
cmp byte [0x14016b580], 0
jne 0x1401321af
mov rbx, qword [sym.imp.python311.dll_PyDict_New]
call rbx
mov qword [0x14016bc68], rax
call rbx
mov qword [0x14016bc60], rax
call rbx
mov qword [0x14016bc58], rax
call rbx
mov qword [0x14016bc50], rax
call rbx
mov qword [0x14016bc48], rax
call rbx
mov qword [0x14016bc40], rax
call rbx
mov qword [0x14016bc38], rax
call rbx
mov byte [0x14016b580], 1
mov qword [0x14016bc30], rax
jmp 0x1401321af
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x1401399c0
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.140141670
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.140141670
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
Function at 0x14013a672
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14016c128]
test eax, eax
je 0x14013a70a
lea rax, [0x14016c100]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14016c130]
mov qword [rbp - 8], rax
jmp 0x14013a6ee
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 0x14013a6e2
cmp qword [rbp - 0x10], 0
je 0x14013a6e2
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 0x14013a6a8
lea rax, [0x14016c100]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14013a70b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14013a810
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 0x14013a838
mov eax, 0
jmp 0x14013a886
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 0x14013a861
mov eax, 0
jmp 0x14013a886
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 0x14013a881
mov eax, 0
jmp 0x14013a886
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x14013a88c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14013a90a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14013a901
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x14013a901
mov rax, qword [rbp - 8]
jmp 0x14013a91f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x14013a8d4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1eb3b88
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1eb3b92
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x1eb3bbb
pop rbp
sub rbp, 0x33
sub rbp, 0x1ab3b88
sub rsp, 0x20
jmp 0x1eb3bda
mov rax, 0x1ab3b88
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0xffffffffaf2a2350
xor byte [rax], dl
inc rax
dec rcx
jne 0x1eb3bf9
jmp 0x1eb3c10
sbb cl, bl
mov ecx, 0x506cd9db
push rax
push rax
sbb cl, dl
xchg ecx, eax
pop rax
push rcx
push rax
push rax
sbb byte [rcx - 0x47], dl
sbb byte [rdi + 0x50505a90], dl
push rax
sbb byte [rdi + 0x50507892], dl
push rax
sbb byte [rdi - 0x6eaee74e], ah
fcmovnbe st(0), st(1)
pop rsp
push rax
push rax
push rax
sbb byte [rcx - 0x48], dl
add byte [rax], al
sbb al, ch
test al, 0xf7
jns 0x1eb3c98
push rax
push rax
push rax
push rax
sbb cl, ch
rol bl, 0xd1
push rcx
push rax
push rax
push rax
push rax
sbb byte [rcx - 0x47], dl
sbb dl, ch
invalid
push rax
push rax
push rax
sbb byte [rcx - 0x47], dl
mov eax, 0x50505055
mov ecx, 0x505052dd
add bh, byte [rax + 0x5050502d]
or al, byte [rdi]
sbb cl, bl
xchg dword [rax], ebx
invalid
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x14002a9e0]
mov dword [rax], 1
mov rax, qword [0x14002a9f0]
mov dword [rax], 1
mov rax, qword [0x14002aa00]
mov dword [rax], 1
mov rax, qword [0x14002a980]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
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 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x1400034e0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x1400310a8]
test rcx, rcx
je 0x140003530
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140003518
mov rcx, qword [0x1400310a8]
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1400310a8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x1400034ff
add rsp, 0x28
ret
Function at 0x14000f3e0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rdi
push rsi
push rbx
movabs rdx, 0x27d4eb2f165667c5
mov r10, rcx
lea rcx, [rcx + 0x28]
mov r9d, dword [r10 + 0x48]
mov r8, qword [r10 + 0x18]
mov r11, qword [r10]
add r9, rcx
add rdx, r8
cmp r11, 0x1f
jbe 0x14000f4bd
mov rbx, qword [r10 + 0x10]
mov rdx, qword [r10 + 8]
movabs rdi, 0xc2b2ae3d27d4eb4f
mov rax, qword [r10 + 0x20]
mov rsi, rbx
imul rbx, rdi
mov rbp, rdx
rol rdx, 1
rol rsi, 7
imul rbp, rdi
add rdx, rsi
mov rsi, r8
rol rsi, 0xc
imul r8, rdi
add rdx, rsi
mov rsi, rax
rol rbp, 0x1f
rol rsi, 0x12
imul rax, rdi
add rdx, rsi
rol r8, 0x1f
movabs rsi, 0x9e3779b185ebca87
imul rbp, rsi
imul r8, rsi
xor rdx, rbp
mov rbp, rbx
movabs rbx, 0x85ebca77c2b2ae63
imul rdx, rsi
rol rbp, 0x1f
imul rbp, rsi
add rdx, rbx
xor rdx, rbp
imul rdx, rsi
add rdx, rbx
xor r8, rdx
mov rdx, rax
imul r8, rsi
rol rdx, 0x1f
imul rdx, rsi
lea rax, [r8 + rbx]
xor rdx, rax
imul rdx, rsi
add rdx, rbx
lea rsi, [r10 + 0x30]
add rdx, r11
cmp r9, rsi
jb 0x14000f529
movabs rbx, 0xc2b2ae3d27d4eb4f
mov rcx, rsi
movabs r8, 0x9e3779b185ebca87
movabs r11, 0x85ebca77c2b2ae63
nop word [rax + rax]
mov rax, qword [rcx - 8]
add rcx, 8
imul rax, rbx
rol rax, 0x1f
imul rax, r8
xor rax, rdx
rol rax, 0x1b
imul rax, r8
lea rdx, [rax + r11]
cmp r9, rcx
jae 0x14000f4f0
mov rax, r9
sub rax, r10
lea rcx, [rax - 0x30]
and rcx, 0xfffffffffffffff8
add rcx, rsi
lea r8, [rcx + 4]
cmp r9, r8
jb 0x14000f567
mov eax, dword [rcx]
movabs rcx, 0x9e3779b185ebca87
imul rax, rcx
mov rcx, r8
xor rax, rdx
movabs rdx, 0xc2b2ae3d27d4eb4f
rol rax, 0x17
imul rax, rdx
movabs rdx, 0x165667b19e3779f9
add rdx, rax
cmp rcx, r9
jae 0x14000f59e
movabs r10, 0x27d4eb2f165667c5
movabs r8, 0x9e3779b185ebca87
movzx eax, byte [rcx]
add rcx, 1
imul rax, r10
xor rax, rdx
rol rax, 0xb
imul rax, r8
mov rdx, rax
cmp r9, rcx
jne 0x14000f580
mov rax, rdx
shr rax, 0x21
xor rax, rdx
movabs rdx, 0xc2b2ae3d27d4eb4f
imul rax, rdx
mov rdx, rax
shr rdx, 0x1d
xor rax, rdx
movabs rdx, 0x165667b19e3779f9
imul rax, rdx
mov rdx, rax
shr rdx, 0x20
xor rax, rdx
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x14001b7f0
Capabilities:
Create directory

Disassembly:
push rdi
mov eax, 0x2020
push rsi
push rbx
call fcn.14001e010
sub rsp, rax
mov eax, dword [0x1400310a0]
mov rsi, rcx
test eax, eax
je 0x14001b890
xor ebx, ebx
lea rdi, [0x1400400e0]
test eax, eax
jg 0x14001b82c
jmp 0x14001b840
add rbx, 1
cmp dword [0x1400310a0], ebx
jle 0x14001b840
mov rdx, qword [rdi + rbx*8]
mov rcx, rsi
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x14001b820
jmp 0x14001b877
mov rcx, rsi
call sub.msvcrt.dll_wcslen
cmp rax, 2
jne 0x14001b855
cmp word [rsi + 2], 0x3a
je 0x14001b877
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x14001b8e0
movsxd rbx, dword [0x1400310a0]
cmp ebx, 0x3ff
jle 0x14001b8f8
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.14001b060
test al, al
je 0x14001b91a
movsxd rbx, dword [0x1400310a0]
mov rcx, rdi
lea rdi, [0x1400400e0]
call sub.msvcrt.dll__wcsdup
mov qword [rdi + rbx*8], rax
mov eax, dword [0x1400310a0]
add eax, 1
mov dword [0x1400310a0], eax
jmp 0x14001b811
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x14001b864
xor eax, eax
jmp 0x14001b87c
mov rcx, rsi
call sub.msvcrt.dll__wcsdup
add dword [0x1400310a0], 1
mov rdx, rax
lea rax, [0x1400400e0]
mov qword [rax + rbx*8], rdx
jmp 0x14001b877
mov rcx, rbx
call fcn.1400020b0
nop
nop word cs:[rax + rax]
nop