joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140014780
Capabilities:
Decode data using base64 via winapi

Disassembly:
push rbx
push rbp
push r14
sub rsp, 0x40
mov rbp, qword [rcx]
lea rax, [rsp + 0x60]
xor r14d, r14d
mov rbx, rdx
mov qword [rsp + 0x30], r14
xor r9d, r9d
mov qword [rsp + 0x28], r14
xor edx, edx
mov rcx, rbp
mov dword [rsp + 0x60], r14d
lea r8d, [r14 + 1]
mov qword [rsp + 0x20], rax
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
test eax, eax
je 0x1400148a9
mov rdx, qword [rbx]
mov qword [rsp + 0x68], rsi
mov rsi, qword [rbx + 8]
mov rcx, rsi
mov qword [rsp + 0x70], rdi
mov edi, dword [rsp + 0x60]
sub rcx, rdx
cmp rdi, rcx
jae 0x1400147eb
lea rax, [rdx + rdi]
jmp 0x14001481a
jbe 0x14001481e
mov rax, qword [rbx + 0x10]
sub rax, rdx
cmp rdi, rax
jbe 0x140014806
mov rdx, rdi
mov rcx, rbx
call fcn.140015240
jmp 0x14001481e
sub rdi, rcx
xor edx, edx
mov r8, rdi
mov rcx, rsi
call fcn.140047760
lea rax, [rdi + rsi]
mov qword [rbx + 8], rax
mov r9, qword [rbx]
lea rax, [rsp + 0x60]
xor edx, edx
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov rcx, rbp
mov qword [rsp + 0x20], rax
lea r8d, [rdx + 1]
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
mov esi, eax
test eax, eax
je 0x14001489f
mov rbp, qword [rbx + 8]
mov rdx, qword [rbx]
mov rcx, rbp
mov edi, dword [rsp + 0x60]
sub rcx, rdx
cmp rdi, rcx
jae 0x14001486a
lea rcx, [rdx + rdi]
mov qword [rbx + 8], rcx
jmp 0x14001489d
jbe 0x14001489d
mov rax, qword [rbx + 0x10]
sub rax, rdx
cmp rdi, rax
jbe 0x140014885
mov rdx, rdi
mov rcx, rbx
call fcn.140015240
jmp 0x14001489d
sub rdi, rcx
xor edx, edx
mov r8, rdi
mov rcx, rbp
call fcn.140047760
lea rax, [rdi + rbp]
mov qword [rbx + 8], rax
mov eax, esi
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rbp
pop rbx
ret
Function at 0x140014df0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rbp, qword [rdx + 8]
xor ebx, ebx
sub rbp, qword [rdx]
mov r15, rdx
mov r12, qword [r8 + 8]
mov r13, r8
mov qword [rcx], rbx
mov r14, rcx
mov qword [rcx + 8], rbx
mov qword [rcx + 0x10], rbx
mov rdx, qword [rdx + 8]
sub rdx, qword [r15]
je 0x140014e74
movabs rax, 0x7fffffffffffffff
cmp rdx, rax
ja 0x140014eb7
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], rdi
call fcn.140009ab0
mov rdx, qword [r15]
mov rdi, qword [r15 + 8]
mov rsi, qword [r14]
sub rdi, rdx
mov r8, rdi
mov rcx, rsi
call fcn.1400470c0
lea rax, [rdi + rsi]
mov rdi, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x60]
mov qword [r14 + 8], rax
test rbp, rbp
je 0x140014ea1
mov r8, qword [r13]
nop dword [rax]
xor edx, edx
mov rax, rbx
div r12
mov rax, qword [r15]
movzx ecx, byte [rdx + r8]
xor cl, byte [rax + rbx]
mov rax, qword [r14]
mov byte [rbx + rax], cl
inc rbx
cmp rbx, rbp
jb 0x140014e80
mov rbx, qword [rsp + 0x70]
mov rax, r14
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.140006350
int3
Function at 0x140015790
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rbp, rcx
mov dword [rsp + 0x78], 0x105
mov ecx, 0x20a
call fcn.14003789c
mov rbx, rax
test rax, rax
je 0x140015809
nop dword [rax]
lea r9, [rsp + 0x78]
mov r8d, dword [rsp + 0x78]
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
mov esi, eax
test eax, eax
jne 0x14001581c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x140015974
mov rcx, rbx
call fcn.140037888
mov ecx, dword [rsp + 0x78]
add rcx, rcx
call fcn.14003789c
mov rbx, rax
test rax, rax
jne 0x1400157c0
xor eax, eax
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
xor r15d, r15d
mov edi, r15d
movabs r14, 0x5c003a0041
mov qword [rsp + 0x80], r14
lea eax, [rdi + 0x41]
mov word [rsp + 0x80], ax
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jne 0x14001588f
mov rdx, rbp
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_SetVolumeMountPointW]
mov esi, eax
test eax, eax
jne 0x14001589b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea r8, [rsp + 0x80]
mov rdx, rbp
lea rcx, str.____Not_mounted:__s_____s__error:_0x_X_n
call fcn.140001e60
inc edi
cmp edi, 0x1a
jb 0x140015832
jmp 0x140015974
lea r8, [rsp + 0x80]
mov rdx, rbp
lea rcx, str.___Mounted:__s_____s_n
call fcn.140001e60
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x30], xmm1
lea rax, [rsp + 0x80]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], r15w
jne 0x1400158d2
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x20]
call fcn.140002000
nop
mov rdx, qword [0x140062d20]
cmp rdx, qword [0x140062d28]
je 0x140015925
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rsp + 0x30]
movups xmmword [rdx + 0x10], xmm1
mov edx, 7
mov word [rsp + 0x20], r15w
add qword [0x140062d20], 0x20
jmp 0x14001593b
lea r8, [rsp + 0x20]
lea rcx, [0x140062d18]
call fcn.14000c240
mov rdx, qword [rsp + 0x38]
cmp rdx, 7
jbe 0x140015974
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001596f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140015994
call fcn.1400253f4
test rbx, rbx
je 0x140015981
mov rcx, rbx
call fcn.140037888
mov eax, esi
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.140036744
int3
Function at 0x1400159a0
Capabilities:
Enumerate disk volumes
Get disk information

Disassembly:
push rdi
sub rsp, 0x440
mov edx, 0x104
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140015acc
lea rax, [rsp + 0x20]
mov rcx, 0xffffffffffffffff
inc rcx
cmp word [rax + rcx*2], 0
jne 0x1400159d2
dec rcx
cmp word [rsp + 0x20], 0x5c
jne 0x140015ac3
mov qword [rsp + 0x458], rbp
mov qword [rsp + 0x460], rsi
xor esi, esi
mov qword [rsp + 0x450], rbx
nop word [rax + rax]
cmp word [rsp + 0x22], 0x5c
jne 0x140015aab
cmp word [rsp + 0x24], 0x3f
jne 0x140015aab
cmp word [rsp + 0x26], 0x5c
jne 0x140015aab
lea rbx, [rsp + 0x20]
cmp word [rbx + rcx*2], 0x5c
lea rbx, [rbx + rcx*2]
jne 0x140015aab
mov r8d, 0x104
mov word [rbx], si
lea rdx, [rsp + 0x230]
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov word [rbx], 0x5c
test eax, eax
je 0x140015aab
lea rcx, [rsp + 0x20]
call fcn.140015790
mov r8d, 0x104
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextVolumeW]
test eax, eax
je 0x140015aab
lea rax, [rsp + 0x20]
mov rcx, 0xffffffffffffffff
inc rcx
cmp word [rax + rcx*2], si
jne 0x140015a93
dec rcx
cmp word [rsp + 0x20], 0x5c
je 0x140015a10
mov rbx, qword [rsp + 0x450]
mov rbp, qword [rsp + 0x458]
mov rsi, qword [rsp + 0x460]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindVolumeClose]
add rsp, 0x440
pop rdi
ret
Function at 0x140015ae0
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
mov dword [rcx], 0x61707865
mov r10, rcx
mov dword [rcx + 4], 0x3320646e
mov dword [rcx + 8], 0x79622d32
mov dword [rcx + 0xc], 0x6b206574
movzx eax, byte [rdx + 2]
movzx r9d, byte [rdx + 3]
shl r9d, 8
or r9d, eax
movzx eax, byte [rdx + 1]
shl r9d, 8
or r9d, eax
movzx eax, byte [rdx]
shl r9d, 8
or r9d, eax
mov dword [rcx + 0x10], r9d
movzx eax, byte [rdx + 6]
movzx ecx, byte [rdx + 7]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 4]
shl ecx, 8
or ecx, eax
mov dword [r10 + 0x14], ecx
movzx eax, byte [rdx + 0xa]
movzx ecx, byte [rdx + 0xb]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 9]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 8]
shl ecx, 8
or ecx, eax
mov dword [r10 + 0x18], ecx
movzx eax, byte [rdx + 0xe]
movzx ecx, byte [rdx + 0xf]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0xd]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0xc]
shl ecx, 8
or ecx, eax
mov dword [r10 + 0x1c], ecx
movzx eax, byte [rdx + 0x12]
movzx ecx, byte [rdx + 0x13]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0x11]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0x10]
shl ecx, 8
or ecx, eax
mov dword [r10 + 0x20], ecx
movzx eax, byte [rdx + 0x16]
movzx ecx, byte [rdx + 0x17]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0x15]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0x14]
shl ecx, 8
or ecx, eax
mov dword [r10 + 0x24], ecx
movzx eax, byte [rdx + 0x1a]
movzx ecx, byte [rdx + 0x1b]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0x19]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0x18]
shl ecx, 8
or ecx, eax
mov dword [r10 + 0x28], ecx
movzx eax, byte [rdx + 0x1e]
movzx ecx, byte [rdx + 0x1f]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0x1d]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0x1c]
shl ecx, 8
or ecx, eax
xor eax, eax
mov dword [r10 + 0x2c], ecx
mov qword [r10 + 0x30], rax
movzx eax, byte [r8 + 2]
movzx ecx, byte [r8 + 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [r8 + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [r8]
shl ecx, 8
or ecx, eax
mov dword [r10 + 0x38], ecx
movzx eax, byte [r8 + 6]
movzx ecx, byte [r8 + 7]
shl ecx, 8
or ecx, eax
movzx eax, byte [r8 + 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [r8 + 4]
shl ecx, 8
or ecx, eax
mov rax, r10
mov dword [r10 + 0x3c], ecx
ret
Function at 0x140018550
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x40
cmp qword [rcx + 0x18], 7
mov rbx, rcx
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], r14
jbe 0x14001857b
mov rcx, qword [rcx]
lea rsi, [rbx + 0x18]
jmp 0x14001857f
lea rsi, [rcx + 0x18]
xor r15d, r15d
xor r9d, r9d
mov qword [rsp + 0x30], r15
xor r8d, r8d
mov dword [rsp + 0x28], 0x80
mov edx, 0xc0000000
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x14001866a
cmp qword [0x140062db8], 0xf
lea rdx, [0x140062da0]
mov dword [rsp + 0x60], r15d
lea rdi, [rbx + 0x18]
jbe 0x1400185d9
mov rdx, qword [0x140062da0]
mov rdi, rsi
mov r8d, dword [0x140062db0]
lea r9, [rsp + 0x60]
mov rcx, r14
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [rsp + 0x60]
mov rsi, qword [0x140062db0]
test eax, eax
je 0x14001862f
cmp rcx, rsi
jne 0x14001862f
cmp qword [rbx + 0x18], 7
mov rdx, rbx
jbe 0x140018618
mov rdx, qword [rbx]
lea rdi, [rbx + 0x18]
lea rcx, str.___Requirements__Created:__s_n
call fcn.140001e60
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14001868e
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp qword [rdi], 7
mov rdx, rbx
jbe 0x140018648
mov rdx, qword [rbx]
lea rdi, [rbx + 0x18]
mov r9, rbp
mov qword [rsp + 0x20], rsi
mov r8d, eax
lea rcx, str.____Requirements__Can_t_write:__s__error:_0x_X___zu__zu_n
call fcn.140001e60
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14001868e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp qword [rsi], 7
mov rdx, rbx
jbe 0x14001867c
mov rdx, qword [rbx]
mov r8d, eax
lea rcx, str.____Requirements__Can_t_open:__s__error:_0x_X_n
call fcn.140001e60
mov rdi, rsi
mov r14, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x68]
mov rdx, qword [rdi]
cmp rdx, 7
jbe 0x1400186d7
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x1400186d2
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400186fb
mov rcx, r8
call fcn.1400253f4
mov edx, 0x20
mov qword [rbx + 0x10], r15
mov rcx, rbx
mov qword [rdi], 7
mov word [rbx], r15w
add rsp, 0x40
pop r15
pop rdi
pop rbx
jmp fcn.1400253f4
call fcn.140036744
int3
Function at 0x140020230
Capabilities:
Create restart manager session
Enumerate processes that use resource
Move file
Read file on windows
Terminate process
Write file on windows

Disassembly:
mov rcx, qword [rcx + 8]
jmp fcn.140018710

Function at 0x140021ba0
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 8], rcx
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0x90
mov rbx, rcx
xor r15d, r15d
mov dword [rbp - 0x19], r15d
mov qword [rcx], r15
mov qword [rcx + 8], r15
mov qword [rcx + 0x10], r15
mov esi, 1
mov dword [rbp - 0x19], esi
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov r14d, eax
mov edi, r15d
movabs r12, 0x7ffffffffffffffe
bt r14d, edi
jae 0x140021d67
xorps xmm0, xmm0
movups xmmword [rbp - 0x11], xmm0
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov r8d, 2
lea rdx, [0x140057cac]
lea rcx, [rbp - 0x11]
call fcn.140002000
nop
lea rax, [rbp - 0x11]
cmp qword [rbp + 7], 7
cmova rax, qword [rbp - 0x11]
add word [rax], di
lea rcx, [rbp - 0x11]
cmp qword [rbp + 7], 7
cmova rcx, qword [rbp - 0x11]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
lea ecx, [rax - 2]
test ecx, 0xfffffffa
jne 0x140021d2b
cmp eax, 7
je 0x140021d2b
mov rax, r12
mov rcx, qword [rbp - 1]
sub rax, rcx
cmp rax, 4
jb 0x140021d91
lea rax, [rbp - 0x11]
cmp qword [rbp + 7], 7
cmova rax, qword [rbp - 0x11]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 4
lea r9, str.__
lea rcx, [rbp + 0xf]
call fcn.140008ae0
or esi, 2
mov dword [rbp - 0x19], esi
mov rdx, qword [rbp + 7]
cmp rdx, 7
jbe 0x140021cee
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140021ce9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140021d9d
call fcn.1400253f4
movups xmm0, xmmword [rbp + 0xf]
movups xmmword [rbp - 0x11], xmm0
movups xmm1, xmmword [rbp + 0x1f]
movups xmmword [rbp - 1], xmm1
mov rax, qword [rbx + 8]
cmp rax, qword [rbx + 0x10]
je 0x140021d1b
lea rdx, [rbp - 0x11]
mov rcx, rax
call fcn.140002250
add qword [rbx + 8], 0x20
jmp 0x140021d2b
lea r8, [rbp - 0x11]
mov rdx, rax
mov rcx, rbx
call fcn.140023410
nop
mov rdx, qword [rbp + 7]
cmp rdx, 7
jbe 0x140021d67
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x11]
cmp rdx, 0x1000
mov rax, rcx
jb 0x140021d62
mov rcx, qword [rcx - 8]
sub rax, rcx
add rdx, 0x27
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140021d97
call fcn.1400253f4
inc edi
cmp edi, 0x1a
jb 0x140021bf6
mov rax, rbx
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call fcn.1400016e0
nop
call fcn.140036744
nop
call fcn.140036744
int3
Function at 0x140021db0
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
mov qword [rsp + 8], rcx
push rbp
push rdi
push r14
lea rbp, [rsp - 0x780]
sub rsp, 0x880
mov rbx, rcx
xor r14d, r14d
mov dword [rsp + 0x40], r14d
mov qword [rcx], r14
mov qword [rcx + 8], r14
mov qword [rcx + 0x10], r14
mov dword [rsp + 0x40], 1
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, eax
mov edi, r14d
nop dword [rax + rax]
bt esi, edi
jae 0x140021fa2
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x38], r14
mov r8d, 2
lea rdx, [0x140057cac]
lea rcx, [rsp + 0x20]
call fcn.140002000
nop
lea rax, [rsp + 0x20]
cmp qword [rsp + 0x38], 7
cmova rax, qword [rsp + 0x20]
add word [rax], di
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 7
cmova rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 4
jne 0x140021f64
mov dword [rbp + 0x7a8], 0x404
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 7
cmova rcx, qword [rsp + 0x20]
lea r8, [rbp + 0x7a8]
lea rdx, [rsp + 0x70]
call qword [sym.imp.MPR.dll_WNetGetConnectionW]
test eax, eax
jne 0x140021f55
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x60], r14
lea rax, [rsp + 0x70]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140021ec0
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.140002000
nop
mov rdx, qword [rbx + 8]
cmp rdx, qword [rbx + 0x10]
je 0x140021f08
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rsp + 0x58]
movups xmmword [rdx + 0x10], xmm1
mov edx, 7
mov word [rsp + 0x48], r14w
add qword [rbx + 8], 0x20
jmp 0x140021f1a
lea r8, [rsp + 0x48]
mov rcx, rbx
call fcn.14000c240
mov rdx, qword [rsp + 0x60]
cmp rdx, 7
jbe 0x140021f64
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140021f4e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140021fc8
call fcn.1400253f4
jmp 0x140021f64
mov edx, eax
lea rcx, str.____WNetGetConnection_failed_0x_X_n
call fcn.140001e60
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 7
jbe 0x140021fa2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
cmp rdx, 0x1000
mov rax, rcx
jb 0x140021f9d
mov rcx, qword [rcx - 8]
sub rax, rcx
add rdx, 0x27
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140021fce
call fcn.1400253f4
inc edi
cmp edi, 0x1a
jb 0x140021e00
mov rax, rbx
lea r11, [rsp + 0x880]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.140036744
nop
call fcn.140036744
int3
Function at 0x140022610
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x40
mov r14, rcx
xor r12d, r12d
mov rsi, qword [r8]
mov r8, rsi
lea edx, [r12 + 0x65]
lea rcx, str.____Get_resource_with_id__i_and_type__s..._n
call fcn.140001e60
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbx, rax
test rax, rax
je 0x140022796
mov r8, rsi
lea edx, [r12 + 0x65]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
je 0x140022796
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140022796
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbp, rax
test rax, rax
je 0x140022796
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x28], xmm0
mov esi, r12d
mov qword [rsp + 0x38], r12
test eax, eax
je 0x1400226f7
mov edx, ebx
lea rcx, [rsp + 0x28]
call fcn.140009ab0
mov r8d, ebx
xor edx, edx
mov rdi, qword [rsp + 0x28]
mov rcx, rdi
call fcn.140047760
lea r15, [rbx + rdi]
mov qword [rsp + 0x30], r15
mov rsi, qword [rsp + 0x38]
jmp 0x140022701
mov r15, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x28]
sub r15, rdi
mov r8, r15
mov rdx, rbp
mov rcx, rdi
call fcn.1400470c0
mov byte [r14], 1
mov qword [r14 + 8], r12
mov qword [r14 + 0x10], r12
mov qword [r14 + 0x18], r12
test r15, r15
je 0x140022760
movabs rax, 0x7fffffffffffffff
cmp r15, rax
ja 0x1400227e1
mov rdx, r15
lea rcx, [r14 + 8]
call fcn.140009ab0
mov rbx, qword [r14 + 8]
mov r8, r15
mov rdx, rdi
mov rcx, rbx
call fcn.1400470c0
lea rax, [r15 + rbx]
mov qword [r14 + 0x10], rax
test rdi, rdi
je 0x1400227b9
sub rsi, rdi
mov rax, rdi
cmp rsi, 0x1000
jb 0x140022789
add rsi, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400227db
mov rdx, rsi
mov rcx, rdi
call fcn.1400253f4
jmp 0x1400227b9
mov r8, rsi
mov edx, 0x65
lea rcx, str.____Resource_with_id__i_and_type__s_not_found_n
call fcn.140001e60
mov byte [r14], r12b
mov qword [r14 + 8], r12
mov qword [r14 + 0x10], r12
mov qword [r14 + 0x18], r12
mov rax, r14
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r12
ret
call fcn.140036744
nop
call fcn.140006350
nop
int3
Function at 0x1400227f0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0xe0
cmp qword [rcx + 0x18], 7
lea r14, [rcx + 0x18]
mov rbx, rcx
mov rdx, rcx
jbe 0x14002281c
mov rdx, qword [rcx]
lea rcx, str.____Run_sync_command:__s_n
mov qword [rsp + 0xf0], rdi
call fcn.140001e60
xorps xmm0, xmm0
mov dword [rsp + 0x70], 0x68
xor eax, eax
mov rdx, rbx
cmp qword [rbx + 0x18], 7
movups xmmword [rsp + 0x78], xmm0
mov qword [rsp + 0x60], rax
movups xmmword [rsp + 0x88], xmm0
movups xmmword [rsp + 0x98], xmm0
movups xmmword [rsp + 0xa8], xmm0
movups xmmword [rsp + 0xb8], xmm0
movups xmmword [rsp + 0xc8], xmm0
movups xmmword [rsp + 0x50], xmm0
jbe 0x140022887
mov rdx, qword [rbx]
lea rdi, [rbx + 0x18]
jmp 0x14002288a
mov rdi, r14
xor ebp, ebp
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
xor r9d, r9d
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x40], rax
xor ecx, ecx
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 0x200
mov dword [rsp + 0x20], ebp
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x140022938
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp qword [rbx + 0x18], 7
mov rdx, rbx
jbe 0x1400228e1
mov rdx, qword [rbx]
lea rsi, [rbx + 0x18]
jmp 0x1400228e4
mov rsi, rdi
mov r8d, eax
lea rcx, str.____Failed_to_run_sync_command:__s__error_0x_X_n
call fcn.140001e60
mov rdx, qword [r14]
cmp rdx, 7
jbe 0x140022934
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x14002292c
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400229bb
mov rcx, r8
call fcn.1400253f4
mov rdi, rsi
xor al, al
jmp 0x14002298b
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rbx + 0x18]
cmp rdx, 7
jbe 0x140022989
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x140022984
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400229bb
mov rcx, r8
call fcn.1400253f4
mov al, 1
mov word [rbx], bp
lea r11, [rsp + 0xe0]
mov rsi, qword [r11 + 0x28]
mov qword [rdi], 7
mov rdi, qword [rsp + 0xf0]
mov qword [rbx + 0x10], rbp
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsp, r11
pop r14
ret
call fcn.140036744
int3