joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000d410
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov ebp, dword [rdx + 0xc]
xor ebx, ebx
sub ebp, r8d
je 0x14000d464
mov ebx, 0xffffffff
jl 0x14000d464
mov rsi, r9
mov rdi, rcx
add r8d, dword [rdx + 8]
mov rcx, qword [rcx]
mov edx, r8d
xor r8d, r8d
call fcn.14001b4e8
test eax, eax
jne 0x14000d464
mov eax, dword [rsp + 0x70]
cmp ebp, eax
cmovg ebp, eax
mov r9, qword [rdi]
movsxd r8, ebp
mov edx, 1
mov rcx, rsi
call fcn.1400206ec
mov rbx, rax
mov eax, ebx
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret

Function at 0x14000d470
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x18
movdqa xmmword [rsp], xmm6
movdqa xmm0, xmmword [0x14003a800]
xor eax, eax
movdqa xmm1, xmmword [0x14003a810]
movdqa xmm2, xmmword [0x14003a820]
lea rcx, [0x1400480e0]
movdqa xmm3, xmmword [0x14003a830]
movdqa xmm4, xmm0
psrld xmm4, 1
movdqa xmm5, xmm0
pand xmm5, xmm1
pxor xmm6, xmm6
psubd xmm6, xmm5
pand xmm6, xmm2
pxor xmm6, xmm4
psrld xmm6, 1
pand xmm4, xmm1
pxor xmm5, xmm5
psubd xmm5, xmm4
pand xmm5, xmm2
pxor xmm5, xmm6
psrld xmm5, 1
pand xmm6, xmm1
pxor xmm4, xmm4
psubd xmm4, xmm6
pand xmm4, xmm2
pxor xmm4, xmm5
psrld xmm4, 1
pand xmm5, xmm1
pxor xmm6, xmm6
psubd xmm6, xmm5
pand xmm6, xmm2
pxor xmm6, xmm4
psrld xmm6, 1
pand xmm4, xmm1
pxor xmm5, xmm5
psubd xmm5, xmm4
pand xmm5, xmm2
pxor xmm5, xmm6
psrld xmm5, 1
pand xmm6, xmm1
pxor xmm4, xmm4
psubd xmm4, xmm6
pand xmm4, xmm2
pxor xmm4, xmm5
psrld xmm4, 1
pand xmm5, xmm1
pxor xmm6, xmm6
psubd xmm6, xmm5
pand xmm6, xmm2
pxor xmm6, xmm4
psrld xmm6, 1
pand xmm4, xmm1
pxor xmm5, xmm5
psubd xmm5, xmm4
pand xmm5, xmm2
pxor xmm5, xmm6
movdqa xmmword [rax + rcx], xmm5
paddd xmm0, xmm3
add rax, 0x10
cmp rax, 0x400
jne 0x14000d4a2
movaps xmm6, xmmword [rsp]
add rsp, 0x18
ret

Function at 0x14000d5a0
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x18
movdqa xmmword [rsp], xmm6
movdqa xmm0, xmmword [0x14003a840]
xor eax, eax
movdqa xmm1, xmmword [0x14003a850]
movdqa xmm2, xmmword [0x14003a860]
lea rcx, [0x1400484e0]
movdqa xmm3, xmmword [0x14003a870]
movdqa xmm4, xmm0
psrlq xmm4, 1
movdqa xmm5, xmm0
pand xmm5, xmm1
pxor xmm6, xmm6
psubq xmm6, xmm5
pand xmm6, xmm2
pxor xmm6, xmm4
psrlq xmm6, 1
pand xmm4, xmm1
pxor xmm5, xmm5
psubq xmm5, xmm4
pand xmm5, xmm2
pxor xmm5, xmm6
psrlq xmm5, 1
pand xmm6, xmm1
pxor xmm4, xmm4
psubq xmm4, xmm6
pand xmm4, xmm2
pxor xmm4, xmm5
psrlq xmm4, 1
pand xmm5, xmm1
pxor xmm6, xmm6
psubq xmm6, xmm5
pand xmm6, xmm2
pxor xmm6, xmm4
psrlq xmm6, 1
pand xmm4, xmm1
pxor xmm5, xmm5
psubq xmm5, xmm4
pand xmm5, xmm2
pxor xmm5, xmm6
psrlq xmm5, 1
pand xmm6, xmm1
pxor xmm4, xmm4
psubq xmm4, xmm6
pand xmm4, xmm2
pxor xmm4, xmm5
psrlq xmm4, 1
pand xmm5, xmm1
pxor xmm6, xmm6
psubq xmm6, xmm5
pand xmm6, xmm2
pxor xmm6, xmm4
psrlq xmm6, 1
pand xmm4, xmm1
pxor xmm5, xmm5
psubq xmm5, xmm4
pand xmm5, xmm2
pxor xmm5, xmm6
movdqa xmmword [rax + rcx], xmm5
paddq xmm0, xmm3
add rax, 0x10
cmp rax, 0x800
jne 0x14000d5d2
movaps xmm6, xmmword [rsp]
add rsp, 0x18
ret
Function at 0x14000e130
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
mov r10, rcx
mov rax, qword [r8]
cmp dword [rcx], 4
jne 0x14000e150
sub r9, rax
cmp r9, 5
jae 0x14000e157
xor esi, esi
jmp 0x14000e2cd
add rdx, rax
mov r12d, dword [r10 + 0x10]
add r9, 0xfffffffffffffffc
mov rax, 0xffffffffffffffff
xor esi, esi
lea r15, [0x14003a8e0]
mov r14d, 0xe8
mov cl, byte [rdx + rsi]
and cl, 0xfe
cmp cl, 0xe8
jne 0x14000e194
mov rcx, rsi
sub rcx, rax
cmp rcx, 3
jbe 0x14000e19c
xor r12d, r12d
jmp 0x14000e1d8
mov rcx, rsi
jmp 0x14000e2a1
dec cl
shl r12d, cl
mov eax, r12d
and eax, 7
mov r12d, 0
test eax, eax
je 0x14000e1d8
bt r14d, eax
jb 0x14000e294
movzx ecx, byte [rax + r15]
mov rdi, rsi
sub rdi, rcx
mov cl, byte [rdi + rdx + 4]
inc cl
cmp cl, 1
jbe 0x14000e294
mov r12d, eax
movzx ebx, byte [rdx + rsi + 4]
lea eax, [rbx + 1]
cmp al, 1
jbe 0x14000e1ef
add r12d, r12d
inc r12d
jmp 0x14000e29b
movzx eax, byte [rdx + rsi + 1]
movzx ecx, byte [rdx + rsi + 2]
shl ecx, 8
movzx ebp, byte [rdx + rsi + 3]
shl ebp, 0x10
shl ebx, 0x18
or ebx, eax
or ebx, ecx
or ebx, ebp
mov eax, dword [r10 + 0xc]
add eax, esi
mov r13d, 0xfffffffb
sub r13d, eax
add ebx, r13d
test r12d, r12d
je 0x14000e26a
mov eax, r12d
movzx r11d, byte [rax + r15]
shl r11d, 3
mov eax, 0x18
sub eax, r11d
mov ebp, ebx
mov ecx, eax
shr ebp, cl
inc bpl
cmp bpl, 1
ja 0x14000e26a
neg r11b
mov ebp, 0xffffffff
mov ecx, r11d
shl ebp, cl
xor ebx, ebp
not ebx
add ebx, r13d
mov edi, ebx
mov ecx, eax
shr edi, cl
inc dil
cmp dil, 2
jb 0x14000e254
lea rcx, [rsi + 4]
mov eax, ebx
and eax, 0x1000000
mov ebp, eax
neg ebp
or ebp, eax
mov byte [rdx + rsi + 1], bl
mov byte [rdx + rsi + 2], bh
shr ebx, 0x10
mov byte [rdx + rsi + 3], bl
shr ebp, 0x18
mov byte [rdx + rsi + 4], bpl
jmp 0x14000e29e
lea r12d, [rax + rax]
inc r12d
mov rcx, rsi
mov rax, rsi
mov rsi, rcx
inc rsi
cmp rsi, r9
jb 0x14000e178
mov rdx, rsi
sub rdx, rax
lea ecx, [rdx - 1]
shl r12d, cl
xor eax, eax
cmp rdx, 3
cmovbe eax, r12d
mov dword [r10 + 0x10], eax
mov rax, qword [r8]
add rax, rsi
mov qword [r8], rax
add dword [r10 + 0xc], esi
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1400112a0
Capabilities:
Get token privileges

Disassembly:
push rsi
sub rsp, 0x40
mov rax, qword [0x140045010]
xor rax, rsp
mov qword [rsp + 0x38], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x30]
mov rcx, rax
mov edx, 8
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140011315
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x28]
mov qword [rsp + 0x20], rax
lea rsi, [rsp + 0x2c]
mov edx, 0x12
mov r8, rsi
mov r9d, 4
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
setne al
cmp dword [rsi], 3
sete sil
and sil, al
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140011317
xor esi, esi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140023680
mov eax, esi
add rsp, 0x40
pop rsi
ret
Function at 0x140011b60
Capabilities:
Create directory
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rdi, rcx
mov rax, qword [0x140045010]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea rcx, [0x140034028]
xor esi, esi
lea r9, [rsp + 0x20]
mov edx, 0x8000
xor r8d, r8d
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
js 0x140011bb6
mov rbx, qword [rsp + 0x20]
mov rcx, rbx
call fcn.140013348
cmp rax, 0x105
jb 0x140011bcd
mov rcx, rbx
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140023680
mov eax, esi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
mov r8d, 0x105
mov rcx, rdi
mov rdx, rbx
call fcn.140013508
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea rdx, str.Mozilla_Maintenance_Service
mov rcx, rdi
call fcn.140032820
test eax, eax
je 0x140011bb6
xor esi, esi
mov rcx, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140011c1a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140011bb6
lea rdx, str.UpdateLogs
mov rcx, rdi
call fcn.140032820
test eax, eax
je 0x140011bb6
xor esi, esi
mov rcx, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140011c4f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140011bb6
mov esi, 1
jmp 0x140011bb6
Function at 0x140012350
Capabilities:
Query service status

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov ebx, edx
mov rdi, rcx
mov rax, qword [0x140045010]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor ecx, ecx
xor edx, edx
mov r8d, 5
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test rax, rax
je 0x14001244c
mov r14, rax
mov rcx, rax
mov rdx, rdi
mov r8d, 4
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
test rax, rax
je 0x140012472
mov rdi, rax
mov dword [rsp + 0x3c], 0xcf
imul ebp, ebx, 0x3e8
test ebp, ebp
je 0x14001249c
xor esi, esi
lea r15, [rsp + 0x34]
lea r12, [rsp + 0x38]
mov rbx, qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
mov r13, qword [sym.imp.KERNEL32.dll_Sleep]
mov qword [rsp + 0x20], r15
mov rcx, rdi
xor edx, edx
mov r8, r12
mov r9d, 0x24
call rbx
test eax, eax
je 0x140012403
cmp dword [rsp + 0x3c], 1
jne 0x140012434
jmp 0x1400124bd
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
jle 0x140012420
lea ecx, [rax - 0x425]
cmp ecx, 2
jb 0x140012434
jmp 0x14001250e
cmp eax, 0x79
jle 0x1400124c4
cmp eax, 0x41c
jne 0x1400124ef
mov ecx, 0x32
call r13
add esi, 0x32
cmp esi, ebp
jb 0x1400123de
mov ebx, dword [rsp + 0x3c]
jmp 0x14001252c
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0x429
sete cl
xor ecx, 0xff
cmp eax, 5
mov ebx, 0xfd
cmovne ebx, ecx
jmp 0x14001253d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp edi, 0x7a
jg 0x1400124a6
cmp edi, 5
je 0x1400124da
cmp edi, 6
jne 0x1400124e8
mov ebx, 0xec
jmp 0x14001253d
mov ebx, 0xcf
jmp 0x14001252c
cmp edi, 0x7b
je 0x1400124e1
cmp edi, 0x424
jne 0x1400124e8
mov ebx, 0xee
jmp 0x14001253d
mov ebx, 1
jmp 0x14001252c
cmp eax, 5
je 0x140012500
cmp eax, 6
je 0x140012507
cmp eax, 0x57
jne 0x14001251c
mov ebx, 0xdc
jmp 0x140012528
mov ebx, 0xeb
jmp 0x14001253d
mov ebx, 0xed
jmp 0x14001253d
mov ebx, 0xef
jmp 0x14001253d
cmp eax, 0x7a
je 0x140012523
cmp eax, 0x7c
jne 0x14001251c
mov ebx, 0xdd
jmp 0x140012528
mov ebx, 0xda
jmp 0x140012528
mov ebx, 0xd9
jmp 0x140012528
cmp eax, 0x45b
jne 0x14001251c
mov ebx, 0xde
jmp 0x140012528
mov ebx, 0xdf
jmp 0x140012528
mov ebx, 0xdb
mov dword [rsp + 0x3c], ebx
mov rsi, qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call rsi
mov rcx, r14
call rsi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140023680
mov eax, ebx
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140012560
Capabilities:
Start service

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rbx, rdx
mov ebp, ecx
lea r15d, [rbp + 2]
movsxd rax, r15d
mov ecx, 8
mul rcx
mov rcx, 0xffffffffffffffff
cmovno rcx, rax
call fcn.14001325c
mov rsi, rax
lea rax, str.MozillaMaintenance
mov qword [rsi], rax
lea rax, str.software_update
mov qword [rsi + 8], rax
test ebp, ebp
jle 0x1400125c3
lea rcx, [rsi + 0x10]
mov r8d, ebp
shl r8, 3
mov rdx, rbx
call fcn.140027350
lea rcx, str.MozillaMaintenance
mov edx, 5
call fcn.140012350
cmp eax, 1
jne 0x140012658
xor ecx, ecx
xor edx, edx
mov r8d, 5
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test rax, rax
je 0x140012662
mov rdi, rax
lea rdx, str.MozillaMaintenance
mov rcx, rax
mov r8d, 0x10
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
test rax, rax
je 0x140012669
mov rbx, rax
mov qword [rsp + 0x20], rdi
mov edi, 0xffffff9c
mov r12, qword [sym.imp.ADVAPI32.dll_StartServiceW]
mov r13, qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14, qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rbx
mov edx, r15d
mov r8, rsi
call r12
test eax, eax
jne 0x140012679
call r13
mov ebp, eax
mov ecx, 0x64
call r14
add edi, 0x64
cmp edi, 0x1324
jb 0x14001262e
jmp 0x14001267b
mov ebp, eax
add ebp, 0x4e20
jmp 0x140012693
mov ebp, 0x4269
jmp 0x140012693
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebp, 0x426a
jmp 0x140012693
xor ebp, ebp
mov rdi, qword [rsp + 0x20]
mov r14, qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call r14
mov rcx, rdi
call r14
mov rcx, rsi
call fcn.140013500
mov eax, ebp
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x1400126b0
Capabilities:
Get disk information

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x240
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x140045010]
xor rax, rsp
mov qword [rsp + 0x238], rax
xor ebx, ebx
lea rcx, [rsp + 0x20]
mov r8d, 0x20a
xor edx, edx
call fcn.140015960
mov rcx, rdi
call fcn.140013348
cmp rax, 0x104
ja 0x14001272d
lea rbx, [rsp + 0x20]
mov r8d, 0x104
mov rcx, rbx
mov rdx, rdi
call fcn.140013508
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathStripToRootW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
xor ecx, ecx
cmp eax, 3
sete cl
mov dword [rsi], ecx
mov ebx, 1
mov rcx, qword [rsp + 0x238]
xor rcx, rsp
call fcn.140023680
mov eax, ebx
add rsp, 0x240
pop rbx
pop rdi
pop rsi
ret
Function at 0x140012750
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rsi, rcx
mov rax, qword [0x140045010]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor edi, edi
call fcn.1400112a0
test al, al
je 0x14001283f
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
xor edi, edi
mov rcx, 0xffffffff80000002
xor r8d, r8d
mov r9d, 0x20019
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001283f
mov rcx, qword [rsp + 0x38]
lea rbx, [rsp + 0x44]
mov dword [rbx], 4
mov qword [rsp + 0x28], rbx
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
lea rdx, str.ConsentPromptBehaviorAdmin
xor edi, edi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
test eax, eax
je 0x1400127ee
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14001283f
mov dword [rsp + 0x44], 4
mov qword [rsp + 0x28], rbx
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea rdx, str.PromptOnSecureDesktop
xor edi, edi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x14001283f
mov eax, dword [rsp + 0x30]
xor ecx, ecx
or eax, dword [rsp + 0x34]
sete cl
mov dword [rsi], ecx
mov edi, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140023680
mov eax, edi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret

Function at 0x14001eff8
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14001f018
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14001b124
or eax, 0xffffffff
jmp 0x14001f01a
xor eax, eax
add rsp, 0x28
ret

Function at 0x14001f050
Capabilities:
Delete directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x14001f070
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14001b124
or eax, 0xffffffff
jmp 0x14001f072
xor eax, eax
add rsp, 0x28
ret
Function at 0x1400323f0
Capabilities:
Create process on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0xf8
mov rbx, r9
mov rdi, rcx
mov rax, qword [0x140045010]
xor rax, rsp
mov qword [rsp + 0xf0], rax
lea rsi, [rsp + 0xe8]
mov rcx, rsi
call fcn.140001080
mov rsi, qword [rsi]
test rsi, rsi
je 0x1400324e3
xorps xmm0, xmm0
lea rax, [rsp + 0x80]
movaps xmmword [rax], xmm0
movaps xmmword [rax + 0x10], xmm0
movaps xmmword [rax + 0x50], xmm0
movaps xmmword [rax + 0x40], xmm0
movaps xmmword [rax + 0x30], xmm0
movaps xmmword [rax + 0x20], xmm0
xor ecx, ecx
mov qword [rax + 0x60], rcx
mov dword [rax], 0x68
lea rdx, str.winsta0Default
mov qword [rax + 0x10], rdx
lea rdx, [rsp + 0x60]
mov qword [rdx + 0x10], rcx
movaps xmmword [rdx], xmm0
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x40], rax
movups xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], ecx
mov rcx, rdi
mov rdx, rsi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
test eax, eax
je 0x1400324ef
mov rcx, qword [rsp + 0x60]
test rbx, rbx
je 0x1400324e7
mov qword [rbx], rcx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call fcn.140013500
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.140023680
mov eax, edi
add rsp, 0xf8
pop rbx
pop rdi
pop rsi
pop r14
ret
xor edi, edi
jmp 0x1400324c4
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400324b1
xor r14d, r14d
lea rbx, [rsp + 0x58]
mov qword [rbx], r14
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x28], 0
mov ecx, 0x1300
xor edx, edx
mov r8d, eax
mov r9d, 0x400
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
mov rax, qword [rbx]
test rax, rax
lea rdx, [0x14003db62]
cmovne rdx, rax
call fcn.140032560
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400324bc
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1400324bc

Function at 0x140032760
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push rsi
sub rsp, 0x280
mov rsi, rcx
mov rax, qword [0x140045010]
xor rax, rsp
mov qword [rsp + 0x278], rax
mov rcx, qword [rcx]
cmp rcx, 0xffffffffffffffff
je 0x1400327d4
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x140032806
lea rdx, [rsp + 0x54]
lea rsi, [0x140048ce0]
mov r8d, 0x105
mov rcx, rsi
call fcn.140013508
mov word [0x140048ee8], 0
mov rcx, qword [rsp + 0x278]
xor rcx, rsp
call fcn.140023680
mov rax, rsi
add rsp, 0x280
pop rsi
ret
lea rcx, [rsi + 8]
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rsi], rax
cmp rax, 0xffffffffffffffff
jne 0x140032795
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.1400136f4
cmp esi, 2
je 0x140032816
mov dword [rax], 9
jmp 0x14003281c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x14003281c
call fcn.1400136f4
mov dword [rax], 2
xor esi, esi
jmp 0x1400327b8
Function at 0x401550
Capabilities:
Create pipe
Create process on windows
Create two anonymous pipes

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xf8
xor r9d, r9d
mov rbp, qword [sym.imp.KERNEL32.dll_CreatePipe]
mov rdi, rdx
mov qword [rcx], 0
mov rbx, rcx
mov r13, r8
lea rsi, [rsp + 0x60]
mov qword [rcx + 8], 0
mov qword [rcx + 0x10], 0
mov r8, rsi
mov rcx, rdi
mov qword [rsp + 0x64], 0
lea rdx, [rsp + 0x58]
mov qword [rsi + 0xc], 0
lea r12, [rsp + 0x80]
mov qword [rsp + 0x80], 0
mov qword [rsp + 0x88], 0
mov qword [rsp + 0x90], 0
mov dword [rsi + 0x14], 0
mov dword [rsp + 0x60], 0x18
mov dword [rsp + 0x70], 1
call rbp
test eax, eax
je 0x401700
xor r8d, r8d
mov rcx, qword [rdi]
mov edx, 1
mov rdi, qword [sym.imp.KERNEL32.dll_SetHandleInformation]
call rdi
test eax, eax
je 0x401700
xor r9d, r9d
mov r8, rsi
mov rdx, r13
lea rcx, [rsp + 0x50]
call rbp
test eax, eax
je 0x401700
xor r8d, r8d
mov edx, 1
mov rcx, qword [r13]
call rdi
test eax, eax
je 0x401700
lea rdx, [r12 + 4]
xor eax, eax
mov ecx, 9
mov dword [rsp + 0x80], 0x68
mov rdi, rdx
xor r9d, r9d
xor r8d, r8d
rep stosq qword [rdi], rax
mov rax, qword [rsp + 0x58]
lea rdx, section..rdata
mov dword [rsp + 0xbc], 0x100
mov dword [rdi], 0
mov qword [rsp + 0xe0], rax
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], 0
mov qword [rsp + 0xd0], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x401700
mov rcx, qword [rsp + 0x58]
mov rbx, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rbx
mov rcx, qword [rsp + 0x50]
call rbx
xor eax, eax
add rsp, 0xf8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov eax, 2
add rsp, 0xf8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
Function at 0x4018e0
Capabilities:
Link many functions at runtime

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rcx, str.ws2_32.dll
mov rbx, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
call rbx
test rax, rax
je 0x40191c
lea rdx, str.inet_addr
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [0x00408970], rax
je 0x4019f0
lea rcx, str.iphlpapi.dll
call rbx
test rax, rax
mov rsi, rax
je 0x401980
lea rdx, str.IcmpCreateFile
mov rcx, rax
mov rdi, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rdi
lea rdx, str.IcmpSendEcho
mov rcx, rsi
mov qword [0x00408978], rax
call rdi
cmp qword [0x00408978], 0
mov qword [0x00408980], rax
je 0x401980
test rax, rax
je 0x401980
mov eax, 1
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
lea rcx, str.ICMP.DLL
call rbx
test rax, rax
mov rbx, rax
je 0x4019cd
lea rdx, str.IcmpCreateFile
mov rcx, rax
mov rsi, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rsi
lea rdx, str.IcmpSendEcho
mov rcx, rbx
mov qword [0x00408978], rax
call rsi
cmp qword [0x00408978], 0
mov qword [0x00408980], rax
je 0x4019cd
test rax, rax
jne 0x401969
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.failed_to_load_functions___u_
mov edx, eax
call sub.msvcrt.dll_printf
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
Function at 0x401f20
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x00408624]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x4020a8
mov rax, qword [0x00408628]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x401f6c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x401ff5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x401f50
mov rcx, rbx
call fcn.00402bc0
test rax, rax
mov r12, rax
je 0x4020dd
mov rax, qword [0x00408628]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.00402cf0
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00408628]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x4020c0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x401fee
sub eax, 0x40
and eax, 0xffffffbf
jne 0x402050
add dword [0x00408624], 1
cmp edi, 8
jae 0x402023
test dil, 4
jne 0x402094
test edi, edi
je 0x402018
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x4020af
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x402018
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x40203c
jmp 0x402018
add rsi, qword [0x00408628]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x401fee
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.004035b0
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x402018
xor esi, esi
jmp 0x401f77
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x402018
mov rax, qword [0x00408628]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.004035b0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.004035b0
nop
nop dword [rax]

Function at 0x402830
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00408900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004088e0]
test rbx, rbx
je 0x402884
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x40287b
test rsi, rsi
je 0x40287b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x402860
lea rcx, [0x00408900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x402bc0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x004057a0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x402c2d
mov rcx, r8
call fcn.00402aa0
test eax, eax
je 0x402c2d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x402c2d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x402c24
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x402c2f
add rax, 0x28
cmp rax, r9
jne 0x402c10
xor eax, eax
add rsp, 0x28
ret