joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7ff77f33a550
Capabilities:
Check http status code

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
lea eax, [rdx - 0xc8]
mov rdi, rcx
mov rcx, qword [rcx]
mov esi, r8d
cmp eax, 0x64
jb 0x7ff77f33a585
lea rdx, [0x7ff77f362b90]
call fcn.7ff77f31c4c0
lea eax, [rbx + 0x11]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
cmp edx, 0xc8
je 0x7ff77f33a59c
mov r8d, edx
lea rdx, [0x7ff77f362bb0]
call fcn.7ff77f31c640
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], r14
cmp esi, 0x13
jne 0x7ff77f33a5b8
mov rcx, rdi
call fcn.7ff77f33a490
jmp 0x7ff77f33a6ef
cmp esi, 0x14
jne 0x7ff77f33a6d1
mov rsi, qword [rdi]
mov rbp, rbx
cmp dword [rsi + 0xba0], 2
jne 0x7ff77f33a639
mov rax, qword [rsi + 0x1e0]
mov rdx, qword [rax]
test rdx, rdx
je 0x7ff77f33a639
mov byte [rsp + 0x28], 1
lea r9, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov rcx, rsi
mov qword [rsp + 0x50], rbx
call fcn.7ff77f332040
test eax, eax
jne 0x7ff77f33a6ef
mov rcx, qword [rsp + 0x50]
lea edx, [rax + 0x2f]
call sub.VCRUNTIME140.dll_strrchr
test rax, rax
je 0x7ff77f33a62e
mov rbp, qword [rsp + 0x50]
mov ecx, 1
sub rax, rbp
cmovne rcx, rax
mov byte [rcx + rbp], bl
jmp 0x7ff77f33a639
mov rcx, qword [rsp + 0x50]
call qword [fcn.7ff77f356162]
mov rdx, qword [rsi + 0xc08]
test rdx, rdx
jne 0x7ff77f33a65d
cmp byte [rsi + 0xf0d], bl
lea rax, [0x7ff77f362830]
lea rdx, [0x7ff77f36195c]
cmovne rdx, rax
lea r8, [0x7ff77f367239]
test rbp, rbp
mov r9, r8
lea rax, [0x7ff77f3672a8]
cmovne r9, rbp
lea rcx, [0x7ff77f35d194]
cmovne r8, rax
call fcn.7ff77f30acb0
mov rcx, rbp
mov r14, rax
call qword [fcn.7ff77f356162]
test r14, r14
jne 0x7ff77f33a69c
lea ebx, [r14 + 0x1b]
jmp 0x7ff77f33a6f1
lea rcx, [rdi + 0xa00]
mov r8, r14
lea rdx, [0x7ff77f361a20]
call fcn.7ff77f3506b0
mov rcx, r14
mov esi, eax
call qword [fcn.7ff77f356162]
test esi, esi
je 0x7ff77f33a6c5
mov ebx, esi
jmp 0x7ff77f33a6f1
mov dword [rdi + 0xab8], 0x1f
jmp 0x7ff77f33a6f1
cmp esi, 0x15
jne 0x7ff77f33a6dc
lea r8d, [rsi - 8]
jmp 0x7ff77f33a6e5
cmp esi, 0x16
jne 0x7ff77f33a6f1
lea r8d, [rsi - 8]
mov dl, 1
mov rcx, rdi
call fcn.7ff77f339fc0
mov ebx, eax
mov r14, qword [rsp + 0x60]
mov eax, ebx
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
Function at 0x7ff77f33ffe0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
cmp byte [rcx + 0xf1e], 0
movsxd r10, r9d
je 0x7ff77f340104
cmp r8d, 0xff
jne 0x7ff77f340041
lea eax, [r10 - 0xec]
cmp eax, 0x13
ja 0x7ff77f34002b
lea r8, [0x7ff77f2e0000]
mov r9, qword [r8 + r10*8 + 0x835a0]
mov r8, rdx
lea rdx, [0x7ff77f364028]
add rsp, 0x38
jmp fcn.7ff77f31c640
mov r8, rdx
mov r9d, r10d
lea rdx, [0x7ff77f364038]
add rsp, 0x38
jmp fcn.7ff77f31c640
cmp r8d, 0xfb
jne 0x7ff77f340053
lea r9, [0x7ff77f363fb4]
jmp 0x7ff77f340091
cmp r8d, 0xfc
jne 0x7ff77f340065
lea r9, [0x7ff77f363fbc]
jmp 0x7ff77f340091
cmp r8d, 0xfd
jne 0x7ff77f340077
lea r9, [0x7ff77f363fc4]
jmp 0x7ff77f340091
xor r9d, r9d
lea rax, [0x7ff77f363fc8]
cmp r8d, 0xfe
cmove r9, rax
test r9, r9
je 0x7ff77f3400ed
cmp r10d, 0x27
jg 0x7ff77f3400c4
lea r8, [0x7ff77f2e0000]
mov r8, qword [r8 + r10*8 + 0x83bc0]
test r8, r8
jne 0x7ff77f3400d4
mov r8, rdx
mov dword [rsp + 0x20], r10d
lea rdx, [0x7ff77f364060]
call fcn.7ff77f31c640
add rsp, 0x38
ret
cmp r10d, 0xff
jne 0x7ff77f3400ab
lea r8, [0x7ff77f364044]
mov qword [rsp + 0x20], r8
mov r8, rdx
lea rdx, [0x7ff77f364050]
call fcn.7ff77f31c640
add rsp, 0x38
ret
mov r9d, r8d
mov dword [rsp + 0x20], r10d
mov r8, rdx
lea rdx, [0x7ff77f364070]
call fcn.7ff77f31c640
add rsp, 0x38
ret

Function at 0x7ff77f340450
Capabilities:
Send data
Send data on socket

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbp, qword [rcx]
mov edi, r8d
mov esi, edx
mov byte [rax + 0x10], 0xff
xor r9d, r9d
mov byte [rax + 0x11], sil
mov rbx, rcx
mov byte [rax + 0x12], dil
mov rcx, qword [rcx + 0x4c0]
lea rdx, [rax + 0x10]
lea r8d, [r9 + 3]
call qword [sym.imp.ws2_32.dll_send]
test eax, eax
jns 0x7ff77f3404af
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
lea rdx, [0x7ff77f364080]
mov rcx, rbp
mov r8d, eax
call fcn.7ff77f31c4c0
mov rcx, qword [rbx]
lea rdx, [0x7ff77f36409c]
mov r9d, edi
mov r8d, esi
call fcn.7ff77f33ffe0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x7ff77f340660
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x7ff77f340808
push rbp
push rdi
push r14
sub rsp, 0x20
mov rbp, qword [rcx]
mov r14, rcx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], r15
mov rdi, qword [rbp + 0x1e0]
lea rsi, [rdi + 0x1cb8]
lea rbx, [rdi + 0x1eb8]
mov qword [rbx], rsi
cmp rsi, rbx
jae 0x7ff77f3406c5
lea rax, [rsi + 1]
mov byte [rsi], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x7ff77f3406c5
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x7ff77f3406c5
mov byte [rax], dl
inc qword [rbx]
movzx ecx, word [rdi + 0x1ca8]
call qword [sym.imp.ws2_32.dll_htons]
movzx ecx, word [rdi + 0x1caa]
movzx r15d, ax
mov word [rsp + 0x48], ax
call qword [sym.imp.ws2_32.dll_htons]
mov r9, qword [rbx]
movzx ecx, ax
cmp r9, rbx
jae 0x7ff77f3406fc
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x58]
cmp r9, rbx
jae 0x7ff77f340752
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x7ff77f340752
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x7ff77f340752
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x7ff77f340752
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x7ff77f340752
mov byte [r9], 0xf0
mov r9, qword [rbx]
inc r9
mov qword [rdi + 0x1ec0], r9
lea r8, [rdi + 0x1cba]
sub r9, rsi
mov qword [rbx], rsi
sub r9, 2
mov edx, 0x3e
mov rcx, rbp
call fcn.7ff77f340110
mov rcx, qword [r14 + 0x4c0]
xor r9d, r9d
mov rdx, rsi
lea r8d, [r9 + 3]
call qword [sym.imp.ws2_32.dll_send]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
test eax, eax
jns 0x7ff77f3407b4
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
lea rdx, [0x7ff77f364080]
mov rcx, rbp
mov r8d, eax
call fcn.7ff77f31c4c0
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.7ff77f3404e0
mov rcx, qword [r14 + 0x4c0]
lea rdx, [rdi + 0x1cbf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.ws2_32.dll_send]
test eax, eax
jns 0x7ff77f340800
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
lea rdx, [0x7ff77f364080]
mov rcx, rbp
mov r8d, eax
call fcn.7ff77f31c4c0
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x7ff77f341f70
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x7ff77f37b080]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0xa00]
lea rax, [rsp + 0x30]
mov rdi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
add r8d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ws2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x7ff77f342005
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r8d, dword [rbx + 0x154]
mov qword [rsp + 0xf8], rbp
mov qword [rsp + 0x100], rsi
cmp r8d, 4
jge 0x7ff77f342066
lea rdx, [0x7ff77f364918]
mov rcx, rdi
call fcn.7ff77f31c4c0
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0x100]
mov rbp, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.7ff77f355090
add rsp, 0xd0
pop r14
pop rdi
pop rbx
ret
mov rdx, qword [rbx + 0x168]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rbx + 0xc], ecx
sub ecx, 3
je 0x7ff77f342121
sub ecx, 1
je 0x7ff77f342194
sub ecx, 1
je 0x7ff77f3420d0
cmp ecx, 1
je 0x7ff77f3420b3
lea r8, [0x7ff77f364948]
mov rcx, rdi
lea rdx, [0x7ff77f361a20]
call fcn.7ff77f31c4c0
jmp 0x7ff77f342194
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.7ff77f341ca0
test eax, eax
je 0x7ff77f342194
jmp 0x7ff77f34203a
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbp, eax
lea rsi, [rdx + 4]
movzx eax, byte [rdx + 3]
mov r8, rbp
shl ecx, 8
xor edx, edx
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x7ff77f342194
sub rax, rsi
cmp rax, rbp
jae 0x7ff77f342194
mov r8, rsi
lea rdx, [0x7ff77f364938]
mov rcx, rdi
call fcn.7ff77f31c640
jmp 0x7ff77f342194
cmp r8d, 4
jle 0x7ff77f342194
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x48]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x7ff77f342194
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.7ff77f31c3e0
mov esi, eax
test eax, eax
je 0x7ff77f342173
mov edx, 5
mov rcx, rbx
call fcn.7ff77f342c60
mov eax, esi
jmp 0x7ff77f34203a
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.7ff77f32aec0
mov rcx, r14
call fcn.7ff77f32b1a0
test eax, eax
je 0x7ff77f342038
mov edx, 5
mov rcx, rbx
call fcn.7ff77f342c60
mov eax, 0x2a
jmp 0x7ff77f34203a
Function at 0x7ff77f354f30
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [sub.ucrtbase.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x7ff77f354f72
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x7ff77f354fb9
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + 8]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + 0x10]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x7ff77f355012
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + 8]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + 8]
sub rbp, 1
jne 0x7ff77f354fd0
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x7ff77f355053
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x7ff77f3671aa]
mov r8d, 1
call qword [rbx + 8]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x7ff77f3671ab]
mov r8d, 1
call qword [rbx + 8]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x7ff77f355020
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x7ff77f355eb0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
test rax, rax
je 0x7ff77f355efa
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x7ff77f355efa
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x7ff77f355efa
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x7ff77f355efa
cmp dword [rcx + 0x84], 0xe
jbe 0x7ff77f355efa
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x7ff77f355efc
xor al, al
add rsp, 0x28
ret
Function at 0x1407d9058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1407d91df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1407d9089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407d906f
add dl, dl
jne 0x1407d9096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407d90f6
xor eax, eax
add dl, dl
jne 0x1407d90a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407d91ad
add dl, dl
jne 0x1407d90b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407d90c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407d90d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407d90dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1407d90ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1407d907e
mov eax, 1
add dl, dl
jne 0x1407d9106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407d9113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407d90fb
sub eax, ebx
mov ebx, 1
jne 0x1407d914c
mov ecx, 1
add dl, dl
jne 0x1407d912e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1407d913b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407d9123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407d907e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1407d9168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1407d9175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407d915d
cmp eax, 0x7d00
jae 0x1407d919b
cmp eax, 0x500
jb 0x1407d9196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407d907e
cmp eax, 0x7f
ja 0x1407d919e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407d907e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1407d91d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1407d907e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x13fd1ac6c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x13fd1a9d0
Function at 0x180001394
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov esi, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
mov edx, 0xf
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
xor edi, edi
cmp dword [0x180004490], edi
jbe 0x1800013fe
mov rcx, qword [0x180004288]
mov rcx, qword [rcx + rdi*8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, qword [0x180004288]
mov rcx, qword [rcx + rdi*8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [0x180004490]
jb 0x1800013d2
mov rcx, qword [0x180004288]
call fcn.180002170
and qword [0x180004288], 0
and dword [0x180004490], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
mov edx, esi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_SetThreadPriority]

Function at 0x18000147c
Capabilities:
Resume thread
Suspend thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x4f0
mov ebp, r8d
mov rsi, rdx
mov r8d, ecx
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbx, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x18000152e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov rcx, rbx
cmp eax, 0xffffffff
je 0x180001526
mov dword [rsp + 0x50], 0x100001
xor edi, edi
jmp 0x180001512
cmp qword [rsp + 0x118], rsi
jb 0x18000152e
lea rax, [rsi + rbp]
cmp qword [rsp + 0x118], rax
jae 0x18000152e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp edi, 3
jge 0x180001523
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SuspendThread]
inc edi
mov rcx, rbx
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
jne 0x1800014d3
jmp 0x18000152e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
lea r11, [rsp + 0x4f0]
mov rax, rbx
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x180001704
Capabilities:
Get system information on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push r14
sub rsp, 0x80
xor edi, edi
cmp dword [0x18000425c], 0x40
jae 0x180001832
xorps xmm0, xmm0
lea rbx, [rcx + rdx]
add rcx, r8
mov rbp, 0xfffffffffff80000
cmp rcx, 0xffffffff80000000
movups xmmword [rsp + 0x20], xmm0
lea rax, [rcx + 0x7ff80000]
lea rcx, [r11 - 0x68]
cmovb rbp, rax
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, 0x80000000
lea rsi, [rbx - 0x7fff0000]
cmp rbx, rax
lea r14d, [rdi + 1]
cmovb rsi, r14
cmp rsi, rbp
jae 0x180001832
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180001802
cmp dword [rsp + 0x70], 0x10000
jne 0x1800017f0
mov rax, qword [rsp + 0x68]
cmp rax, 0x78
jb 0x1800017f5
mov edx, dword [rsp + 0x48]
mov ecx, edx
cmp rax, rdx
jb 0x1800017f5
lea eax, [rdx - 1]
mov r8d, 0x3000
xor edx, edx
add rax, rsi
div rcx
mov edx, 0x78
imul rcx, rax
lea r9d, [rdx - 0x58]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdi, rax
test rax, rax
jne 0x180001807
mov rax, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x50]
add rsi, rax
cmp rsi, rbp
jb 0x18000178b
test rdi, rdi
je 0x180001832
lea rdx, [0x180004290]
xor eax, eax
mov rcx, rdx
cmp qword [rcx], 0
je 0x180001827
add eax, r14d
add rcx, 8
cmp eax, 0x40
jb 0x180001813
jmp 0x180001832
add dword [0x18000425c], r14d
mov qword [rdx + rax*8], rdi
lea r11, [rsp + 0x80]
mov rax, rdi
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x180001854
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
lea rbp, [rsp - 0x30]
sub rsp, 0x130
and dword [0x180004258], 0
lea rcx, [rsp + 0x20]
and dword [0x18000425c], 0
mov edx, 0x104
and qword [0x180004288], 0
and dword [0x180004490], 0
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov ebx, eax
lea rdx, str._version.dll
lea rcx, [rsp + 0x20]
mov byte [rsp + rbx + 0x20], 0
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x1800019fb
lea rdx, str._netapi32.dll
mov byte [rsp + rbx + 0x20], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x180001920
lea rdx, str.NetGetJoinInformation
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180001920
lea rdx, [0x180001a64]
mov qword [rbp + 0x40], rax
lea rcx, [rbp + 0x40]
call fcn.180001100
neg eax
sbb rcx, rcx
and rcx, qword [rbp + 0x40]
mov qword [0x180004248], rcx
lea rdx, str.Ntdsapi.dll
mov byte [rsp + rbx + 0x20], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x180001980
lea rdx, str.DsBindW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180001980
lea rdx, [0x180001a0c]
mov qword [rbp + 0x40], rax
lea rcx, [rbp + 0x40]
call fcn.180001100
neg eax
sbb rcx, rcx
and rcx, qword [rbp + 0x40]
mov qword [0x180004250], rcx
lea rdx, str.Shlwapi.dll
mov byte [rsp + rbx + 0x20], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
test rax, rax
je 0x1800019f6
lea rdx, str.IsOS
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x1800019d2
mov edx, 0x1b5
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1800019f6
lea rdx, [0x180001a3c]
mov qword [rbp + 0x40], rax
lea rcx, [rbp + 0x40]
call fcn.180001100
neg eax
sbb rcx, rcx
and rcx, qword [rbp + 0x40]
mov qword [0x180004498], rcx
mov eax, 1
mov rbx, qword [rsp + 0x148]
add rsp, 0x130
pop rbp
ret
Function at 0x140001330
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x150
mov rax, qword [0x140005010]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov r14, r8
mov r15, rdx
mov qword [rsp + 0x98], r8
xorps xmm0, xmm0
movups xmmword [rsp + 0xa0], xmm0
mov qword [rsp + 0xb0], 0
mov qword [rsp + 0xb8], 0xf
mov byte [rsp + 0xa0], 0
lea rdx, [0x1400033a8]
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__popen]
mov rsi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1400015ad
nop dword [rax]
nop word [rax + rax]
mov r8, rsi
mov edx, 0x80
lea rcx, [rsp + 0xc0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgets]
test rax, rax
je 0x140001476
lea rax, [rsp + 0xc0]
mov rbx, 0xffffffffffffffff
nop
inc rbx
cmp byte [rax + rbx], 0
jne 0x1400013f0
mov rcx, qword [rsp + 0xb0]
mov rdx, qword [rsp + 0xb8]
mov rax, rdx
sub rax, rcx
cmp rbx, rax
ja 0x140001454
lea rax, [rbx + rcx]
mov qword [rsp + 0xb0], rax
lea rdi, [rsp + 0xa0]
cmp rdx, 0x10
cmovae rdi, qword [rsp + 0xa0]
add rdi, rcx
mov r8, rbx
lea rdx, [rsp + 0xc0]
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
mov byte [rdi + rbx], 0
jmp 0x1400013c0
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0xc0]
mov rdx, rbx
lea rcx, [rsp + 0xa0]
call fcn.1400019a0
jmp 0x1400013c0
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__pclose]
movsxd rbx, dword [rsp + 0xb0]
lea rcx, [rbx + 1]
call fcn.140001df4
mov rdi, rax
lea rdx, [rsp + 0xa0]
cmp qword [rsp + 0xb8], 0x10
cmovae rdx, qword [rsp + 0xa0]
mov r8, rax
sub r8, rdx
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [rdx]
mov byte [r8 + rdx], cl
lea rdx, [rdx + 1]
test cl, cl
jne 0x1400014c0
lea eax, [rbx + 0x3e8]
movsxd rcx, eax
call fcn.140001df4
mov rbx, rax
movups xmm0, xmmword [r14]
movaps xmmword [rsp + 0x40], xmm0
movups xmm1, xmmword [r14 + 0x10]
movaps xmmword [rsp + 0x50], xmm1
movups xmm0, xmmword [str.8532]
movaps xmmword [rsp + 0x60], xmm0
movups xmm1, xmmword [0x140005098]
movaps xmmword [rsp + 0x70], xmm1
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
mov r9, rdi
lea r8, [rsp + 0x60]
lea rdx, str.microsoft.exe__s___s____s___s
mov rcx, rbx
call fcn.140001060
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WinExec]
nop
mov rdx, qword [rsp + 0xb8]
cmp rdx, 0x10
jb 0x140001584
inc rdx
mov rcx, qword [rsp + 0xa0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000157e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000157e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140001dec
nop
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140001b40
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
lea rcx, [rsp + 0x80]
call fcn.140001280
lea rdx, [0x140003ea8]
lea rcx, [rsp + 0x80]
call sub.VCRUNTIME140.dll__CxxThrowException
int3