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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov ebp, r8d
mov r15, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rdi + 0x14], eax
je 0x140003e70
nop dword [rax]
mov edx, 1
xchg dword [rdi + 0x10], edx
cmp edx, 1
je 0x140003e60
mov dword [rdi + 0x14], eax
inc dword [rdi + 0x18]
lea rsi, [rdi + 0x80]
mov rax, qword [rsi + 8]
lea r14d, [rbp + 0xe]
test rax, rax
jne 0x140003e8b
xor edx, edx
jmp 0x140003e90
mov edx, dword [rsi + 0x10]
sub edx, eax
add edx, 4
mov rcx, rsi
call fcn.140001670
mov rax, qword [rsi + 0x10]
xor edx, edx
mov dword [rax], r14d
add qword [rsi + 0x10], 4
mov rcx, qword [rsi + 0x10]
mov rax, qword [rsi + 8]
sub ecx, eax
test rax, rax
cmovne edx, ecx
mov rcx, rsi
add edx, 0xa
call fcn.140001670
mov rcx, qword [rsi + 0x10]
lea rdx, [rdi + 0x30]
movsd xmm0, qword [rdx]
mov r9d, 1
mov qword [rsp + 0x20], rdx
mov r8d, ebp
movsd qword [rcx], xmm0
movzx eax, word [rdx + 8]
mov rdx, r15
mov word [rcx + 8], ax
mov rcx, rsi
add qword [rsi + 0x10], 0xa
call fcn.140001500
mov rsi, qword [rdi + 0x88]
test rsi, rsi
jne 0x140003f0a
xor ebp, ebp
jmp 0x140003f6b
mov ebp, dword [rdi + 0x90]
sub ebp, esi
cmp ebp, 0x40000
jl 0x140003f6b
nop word [rax + rax]
xor ebx, ebx
nop dword [rax]
nop word [rax + rax]
mov rcx, qword [rdi + 0xb0]
xor r9d, r9d
mov r8d, 0x40000
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x140003f56
inc ebx
cmp ebx, 0xf
jl 0x140003f30
je 0x140003fa1
add rsi, 0x40000
sub ebp, 0x40000
cmp ebp, 0x40000
jge 0x140003f20
test ebp, ebp
jle 0x140003fa1
xor ebx, ebx
nop dword [rax]
nop word [rax + rax]
mov rcx, qword [rdi + 0xb0]
xor r9d, r9d
mov r8d, ebp
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x140003fa1
inc ebx
cmp ebx, 0xf
jl 0x140003f80
lea rcx, [rdi + 0x80]
mov edx, 0x400
mov rax, qword [rcx + 8]
mov qword [rcx + 0x10], rax
call fcn.140001730
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [rdi + 0x14]
mov eax, 1
jne 0x140003fd7
sub dword [rdi + 0x18], eax
jne 0x140003fd7
mov qword [rdi + 0x10], 0
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x140004080
Capabilities:
Set socket configuration

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x30
mov eax, dword [rcx + 0x21c]
movzx ebx, r8w
mov rbp, rdx
mov rdi, rcx
test eax, eax
jne 0x1400041e6
mov eax, 0x598
mov qword [rsp + 0x50], rsi
xor r8d, r8d
mov qword [rsp + 0x58], r14
xor edx, edx
mov dword [rcx + 0x23c], eax
xor r14d, r14d
mov dword [rcx + 0x8c], r14d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateWaitableTimerW]
lea rcx, [rdi + 0xb8]
mov dword [rdi + 0xd8], 0x598
mov qword [rdi + 0x258], rax
mov eax, dword [rdi + 0x70]
mov dword [rdi + 0xdc], eax
mov eax, dword [rdi + 0x74]
mov dword [rdi + 0xe0], eax
call fcn.140001b50
mov eax, 1
mov dword [rdi + 0x48], 1
mov qword [rdi + 0x4c], 5
mov esi, r14d
mov dword [rdi + 0x54], 1
lock xadd qword [0x14005f7f0], rax
add rax, 1
mov qword [rdi + 0x68], rax
jne 0x140004141
mov eax, 1
lock xadd qword [0x14005f7f0], rax
inc rax
mov qword [rdi + 0x68], rax
mov rcx, qword [rdi + 0x58]
lea r9, [rsp + 0x70]
mov edx, 0xffff
mov dword [rsp + 0x70], 0x40000
mov r8d, 0x1001
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rdi + 0x58]
lea r9, [rsp + 0x70]
mov edx, 0xffff
mov dword [rsp + 0x70], 0x40000
mov r8d, 0x1002
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
movzx r8d, bx
mov rdx, rbp
mov rcx, rdi
call fcn.140004270
test eax, eax
je 0x140004216
lea rax, [rdi + 0x80]
mov r9, rdi
mov qword [rsp + 0x28], rax
lea r8, [0x140004470]
xor edx, edx
mov dword [rsp + 0x20], r14d
xor ecx, ecx
call fcn.140028b20
mov qword [rdi + 0x78], rax
test rax, rax
je 0x1400041fb
mov rcx, qword [rdi + 0x40]
mov esi, 1
call qword [sym.imp.KERNEL32.dll_ResetEvent]
jmp 0x140004210
cmp eax, 0x598
jbe 0x1400040a5
xor eax, eax
add rsp, 0x30
pop rdi
pop rbp
pop rbx
ret
mov ecx, 0x65f
mov dword [rdi + 0x84], 8
call qword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
jne 0x140004259
jmp 0x14000422e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
mov dword [rdi + 0x84], select
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [rdi + 0x48], r14d
mov qword [rdi + 0x4c], 5
mov dword [rdi + 0x54], 1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov ebx, eax
call fcn.140004c50
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rsp + 0x58]
mov eax, esi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
pop rbp
pop rbx
ret
Function at 0x140004270
Capabilities:
Connect socket
Connect udp socket
Create udp socket
Resolve dns
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push r12
push r14
push r15
sub rsp, 0x60
mov r12d, 2
movzx r14d, r8w
mov r15, rdx
mov rbp, rcx
mov edx, r12d
mov ecx, r12d
mov r8d, select
xor esi, esi
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbp + 0x58], rax
cmp rax, 0xffffffffffffffff
je 0x140004452
mov qword [rsp + 0x40], rsi
lea rcx, [rsp + 0xa8]
mov qword [rsp + 0x38], rsi
lea r8, [rsp + 0x90]
mov qword [rsp + 0x30], rcx
mov r9d, 4
mov dword [rsp + 0x28], esi
mov rcx, rax
mov edx, 0x9800000c
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x98], rdi
mov dword [rsp + 0x90], esi
call qword [sym.imp.WS2_32.dll_WSAIoctl]
mov rcx, qword [rbp + 0x58]
lea r9, [rsp + 0x90]
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 0xfffffffb
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rbp + 0x58]
lea r9, [rsp + 0x90]
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 4
call qword [sym.imp.WS2_32.dll_setsockopt]
call qword [sym.imp.WS2_32.dll_WSACreateEvent]
mov rcx, r15
mov qword [rbp + 0x60], rax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov qword [rsp + 0x38], rsi
mov r8, r15
mov qword [rsp + 0x30], rsi
mov r9d, eax
mov dword [rsp + 0x28], esi
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rbx, eax
lea rcx, [rbx + 1]
call fcn.14001df34
mov rcx, r15
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov qword [rsp + 0x38], rsi
mov r8, r15
mov qword [rsp + 0x30], rsi
mov r9d, eax
mov dword [rsp + 0x28], ebx
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov rcx, rdi
mov byte [rbx + rdi], sil
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov edx, 1
mov rcx, rdi
mov rbx, rax
call fcn.14001dec4
mov rdi, qword [rsp + 0x98]
test rbx, rbx
je 0x140004452
movzx ecx, r14w
mov word [rsp + 0x50], r12w
call qword [sym.imp.WS2_32.dll_htons]
mov rdx, qword [rbp + 0x60]
mov r8d, gethostbyname
mov word [rsp + 0x52], ax
mov rax, qword [rbx + 0x18]
mov rcx, qword [rax]
mov eax, dword [rcx]
mov rcx, qword [rbp + 0x58]
mov dword [rsp + 0x54], eax
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
je 0x14000444e
mov rcx, qword [rbp + 0x58]
lea rdx, [rsp + 0x50]
mov r8d, reloc.WS2_32.dll_recv
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x140004449
cmp eax, 0xffffffff
jne 0x14000444e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x14000444e
mov esi, 1
mov eax, esi
jmp 0x140004454
xor eax, eax
mov rbx, qword [rsp + 0xa0]
add rsp, 0x60
pop r15
pop r14
pop r12
pop rsi
pop rbp
ret
Function at 0x140004940
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
nop dword [rax]
mov rdx, qword [rbx + 0xa0]
xor r9d, r9d
mov rcx, qword [rbx + 0x58]
mov r8d, 0x598
call qword [sym.imp.WS2_32.dll_recv]
mov edi, eax
test eax, eax
jle 0x1400049c3
cmp eax, 0x10
je 0x1400049f1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [rbx + 0x244]
lea rcx, [rbx + 0x268]
mov rdx, qword [rbx + 0xa0]
cmp edi, 0x18
jl 0x1400049ab
mov r9, qword [rbx + 0x250]
mov r8d, edi
mov dword [rsp + 0x20], eax
call fcn.140005a80
jmp 0x1400049b9
cmp edi, 0xc
jne 0x140004a38
call fcn.140005d10
cmp eax, 2
jne 0x140004950
jmp 0x140004a43
cmp edi, 0xffffffff
jne 0x140004950
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x140004a78
cmp eax, 0x2744
je 0x140004950
cmp eax, 0x2746
je 0x140004950
jmp 0x140004a53
mov rcx, qword [rbx + 0xa0]
mov rax, qword [rcx]
cmp rax, qword [0x14004abe0]
jne 0x140004a30
mov rax, qword [rcx + 8]
cmp rax, qword [0x14004abe8]
jne 0x140004a30
xor eax, eax
mov dword [rbx + 0x48], 1
mov dword [rbx + 0x54], eax
mov qword [rbx + 0x4c], 5
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, recv
call qword [sym.imp.WS2_32.dll_WSASetLastError]
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ecx, 0x4c7
cmove eax, ecx
mov dword [rbx + 0x48], 1
mov dword [rbx + 0x4c], 4
mov dword [rbx + 0x50], eax
xor eax, eax
mov dword [rbx + 0x54], 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rbx, qword [rsp + 0x40]
mov eax, 1
add rsp, 0x30
pop rdi
ret
Function at 0x140004a90
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rcx
mov qword [rsp + 0x40], rbp
lea rsi, [rcx + 0x1b8]
xor r12d, r12d
nop dword [rax + rax]
mov eax, dword [rbx + 0x218]
mov rdi, r12
test eax, eax
jle 0x140004b2d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rdi, qword [rbx + 0x1e8]
cmp rdi, qword [rbx + 0x1f0]
je 0x140004afc
mov rax, qword [rdi + 8]
mov qword [rbx + 0x1e8], rax
mov qword [rax + 0x10], r12
test rdi, rdi
je 0x140004b1d
jmp 0x140004b0f
test rdi, rdi
je 0x140004b1d
mov qword [rbx + 0x1e8], r12
mov qword [rbx + 0x1f0], r12
mov qword [rdi + 8], r12
mov qword [rdi + 0x10], r12
dec dword [rbx + 0x1e0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rsi, [rbx + 0x1b8]
test rdi, rdi
je 0x140004c01
mov r8d, dword [rdi + 0x30]
xor r9d, r9d
sub r8d, dword [rdi + 0x28]
mov rdx, qword [rdi + 0x28]
mov rcx, qword [rbx + 0x58]
call qword [sym.imp.WS2_32.dll_send]
mov ebp, eax
test eax, eax
jle 0x140004b89
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [rbx + 0x218]
sub ecx, ebp
mov dword [rbx + 0x218], ecx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rdx, rdi
lea rcx, [rbx + 0xb8]
call fcn.140001d50
jmp 0x140004ac0
cmp ebp, 0xffffffff
je 0x140004ba9
mov rdx, rdi
lea rcx, [rbx + 0xb8]
lea rsi, [rbx + 0x1b8]
call fcn.140001d50
jmp 0x140004ac0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x140004c25
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rbx + 0x1e8]
test rax, rax
je 0x140004bdc
mov qword [rax + 0x10], rdi
mov rax, qword [rbx + 0x1e8]
mov qword [rdi + 8], rax
jmp 0x140004beb
mov qword [rdi + 0x10], r12
mov qword [rdi + 8], r12
mov qword [rbx + 0x1f0], rdi
inc dword [rbx + 0x1e0]
mov rcx, rsi
mov qword [rbx + 0x1e8], rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 1
mov rbp, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
mov rdx, rdi
mov dword [rbx + 0x48], 1
lea rcx, [rbx + 0xb8]
mov dword [rbx + 0x4c], 3
mov dword [rbx + 0x50], eax
mov dword [rbx + 0x54], 1
call fcn.140001d50
xor eax, eax
jmp 0x140004c06
Function at 0x140008c30
Capabilities:
Check os version

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x150
mov rsi, rcx
mov ecx, 0x3c
call fcn.14001df34
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r8d, eax
lea rcx, [rsi + 0xcc0]
lea rdx, [0x14004add8]
call qword [sym.imp.USER32.dll_wsprintfW]
mov rcx, rdi
call fcn.140008a40
xor edx, edx
lea rcx, [rsp + 0x34]
mov r8d, 0x118
xor ebx, ebx
call fcn.14003d990
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x30], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x140008df2
cmp dword [rsp + 0x40], 2
jne 0x140008df2
cmp dword [rsp + 0x34], 5
jbe 0x140008df2
mov qword [rsp + 0x178], rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x178]
mov edx, 8
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140008df2
mov rcx, qword [rsp + 0x178]
lea rax, [rsp + 0x170]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x170], ebx
mov edx, 0x19
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x140008d9c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140008d9c
mov edx, dword [rsp + 0x170]
mov ecx, 0x40
mov qword [rsp + 0x180], r14
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r14, rax
test rax, rax
je 0x140008d94
mov r9d, dword [rsp + 0x170]
lea rax, [rsp + 0x170]
mov rcx, qword [rsp + 0x178]
mov r8, r14
mov edx, 0x19
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x140008d8b
mov rcx, qword [r14]
call qword [sym.imp.ADVAPI32.dll_GetSidSubAuthorityCount]
mov rcx, qword [r14]
movzx edx, byte [rax]
dec edx
call qword [sym.imp.ADVAPI32.dll_GetSidSubAuthority]
mov ebx, dword [rax]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r14, qword [rsp + 0x180]
mov rcx, qword [rsp + 0x178]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x140008df2
cmp ebx, 0x1000
je 0x140008de9
cmp ebx, 0x2000
je 0x140008de0
cmp ebx, 0x3000
je 0x140008dd7
cmp ebx, 0x4000
jne 0x140008e09
lea rdx, [0x14004b6b8]
jmp 0x140008df9
lea rdx, [0x14004b6a8]
jmp 0x140008df9
lea rdx, [0x14004b698]
jmp 0x140008df9
lea rdx, [0x14004b688]
jmp 0x140008df9
lea rdx, str.None__s
mov r8, rdi
lea rcx, [rsi + 0xa68]
call qword [sym.imp.USER32.dll_wsprintfW]
mov rcx, rdi
call fcn.14001dec4
mov eax, 1
add rsp, 0x150
pop rdi
pop rsi
pop rbx
ret
Function at 0x140008e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov dword [rsp + 0x20], r9d
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x250
mov rsi, r8
mov rdi, rdx
mov dword [rsp + 0x30], 1
xor ebx, ebx
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x40]
call fcn.14003d990
nop
lea rax, [rsp + 0x260]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rdi
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140008ea3
mov ebx, 0xffffffff
jmp 0x140008f25
mov eax, dword [rsp + 0x30]
sub eax, 1
je 0x140008eb1
sub eax, 1
jne 0x140008f25
mov dword [rsp + 0x278], 0x208
lea rax, [rsp + 0x278]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rsp + 0x260]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140008f25
lea rdx, [0x14004add4]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x140008f0d
mov ebx, 0xffffffff
jmp 0x140008f25
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x280]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ebx, 1
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x260]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x140009300
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
xorps xmm0, xmm0
lea rcx, str.kernel32.dll
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, [0x14004b780]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [rsp + 0x20]
test rax, rax
je 0x140009341
call rax
jmp 0x140009347
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx ecx, word [rsp + 0x20]
mov eax, 6
cmp ax, cx
je 0x140009368
xor eax, eax
mov edx, 9
cmp dx, cx
sete al
add rsp, 0x58
ret
mov eax, 1
add rsp, 0x58
ret

Function at 0x140009380
Capabilities:
Accept command line arguments
Create process on windows
Terminate process

Disassembly:
push rbx
sub rsp, 0x2e0
mov r8d, 0x1fe
lea rdx, [rsp + 0xe0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rcx, [rsp + 0x70]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0xe0]
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x40], rax
mov rdx, rbx
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x20
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ecx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x140009900
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x840
mov rbp, rcx
xor r12d, r12d
mov esi, 1
mov dword [rax + 0x18], r12d
lea rcx, str.wininet.dll
mov dword [rax + 0x20], r12d
movzx r14d, sil
mov rbx, rdx
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rcx, rax
lea rdx, str.InternetOpenW
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor r9d, r9d
mov dword [rsp + 0x20], r12d
xor r8d, r8d
lea rcx, str.MSIE_6.0
xor edx, edx
call rax
mov r15, rax
test rax, rax
je 0x14000999f
lea rdx, str.InternetOpenUrlW
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor r9d, r9d
mov qword [rsp + 0x28], r12
xor r8d, r8d
mov dword [rsp + 0x20], 0x80000000
mov rdx, rbp
mov rcx, r15
call rax
mov rbp, rax
test rax, rax
jne 0x1400099b4
test rdi, rdi
je 0x1400099ad
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor al, al
jmp 0x140009ac6
mov qword [rsp + 0x30], r12
xor r9d, r9d
mov dword [rsp + 0x28], r12d
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140009a8c
mov qword [rsp + 0x880], r13
mov r13d, 0x5a4d
nop word [rax + rax]
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x800
call fcn.14003d990
lea rdx, str.InternetReadFile
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea r9, [rsp + 0x890]
mov r8d, 0x800
lea rdx, [rsp + 0x40]
mov rcx, rbp
call rax
test esi, esi
je 0x140009a46
cmp word [rsp + 0x40], r13w
jne 0x140009a78
mov r8d, dword [rsp + 0x890]
lea r9, [rsp + 0x898]
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x20], r12
mov rcx, rbx
mov esi, r12d
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [rsp + 0x890], r12d
ja 0x140009a00
jmp 0x140009a7b
xor r14b, r14b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r13, qword [rsp + 0x880]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, str.InternetCloseHandle
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
mov rcx, rbp
call rbx
mov rcx, r15
call rbx
test rdi, rdi
je 0x140009ac2
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
movzx eax, r14b
add rsp, 0x840
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14000acf0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rcx
mov edx, 0xffffffff
mov rcx, qword [0x14005e738]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov qword [rsp + 0x30], 0
lea rcx, [0x14005e310]
mov dword [rsp + 0x28], 2
xor r9d, r9d
mov edx, 0x40000000
mov dword [rsp + 0x20], 4
mov r8d, 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14000ada5
mov r9d, 2
mov dword [rsp + 0x58], 0
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea r9, [rsp + 0x58]
mov qword [rsp + 0x20], 0
mov rdx, rdi
mov rcx, rbx
lea r8d, [rax + rax]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x14005e738]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x140010560
Capabilities:
Create process on windows
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0xa00]
sub rsp, 0xb00
mov esi, r8d
lea rcx, [rbp - 0x20]
mov rdi, rdx
mov r8d, 0x208
xor edx, edx
call fcn.14003d990
mov edx, 0x2e
mov rcx, rdi
call fcn.140020180
mov rbx, rax
test rax, rax
je 0x1400107a5
xor edx, edx
lea rcx, [rbp + 0x1f0]
mov r8d, 0x208
call fcn.14003d990
mov edx, 0x20
mov rcx, rbx
call fcn.140020180
mov rcx, rbx
test rax, rax
je 0x1400105fa
call qword [sym.imp.KERNEL32.dll_lstrlenW]
dec eax
movsxd rcx, eax
test eax, eax
jle 0x140010617
cmp word [rbx + rcx*2], 0x20
je 0x140010600
dec eax
dec rcx
test rcx, rcx
jg 0x1400105e7
jmp 0x140010617
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd r9, eax
lea rcx, [rbp + 0x1f0]
mov r8, rbx
mov edx, 0x104
call fcn.140029428
lea rax, [rbp - 0x20]
mov qword [rsp + 0x28], rax
lea r8, [rbp + 0x1f0]
mov dword [rsp + 0x20], 1
call fcn.1400107c0
test eax, eax
je 0x1400107a5
xor edx, edx
lea rcx, [rbp + 0x610]
mov r8d, 0x3e8
call fcn.14003d990
lea r8, [rbp - 0x20]
lea rdx, str._s_shellopencommand
lea rcx, [rbp + 0x610]
call qword [sym.imp.USER32.dll_wsprintfW]
xor edx, edx
lea rcx, [rbp - 0x20]
mov r8d, 0x208
call fcn.14003d990
xor edx, edx
lea rcx, [rbp + 0x400]
mov r8d, 0x208
call fcn.14003d990
lea rax, [rbp + 0x400]
mov qword [rsp + 0x28], rax
lea r8, [rbp + 0x610]
mov dword [rsp + 0x20], 2
call fcn.1400107c0
test eax, eax
je 0x1400107a5
mov r8d, 0x104
lea rdx, [rbp - 0x20]
lea rcx, [rbp + 0x400]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea rdx, [0x14004bf48]
lea rcx, [rbp - 0x20]
call fcn.14001fe80
test rax, rax
jne 0x140010716
lea rdx, [0x14004bf50]
lea rcx, [rbp - 0x20]
call fcn.14001fe80
test rax, rax
jne 0x140010716
lea rdx, [0x14004b578]
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rdx, rdi
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
jmp 0x140010722
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
xorps xmm0, xmm0
mov dword [rsp + 0x50], WSAGetLastError
xor eax, eax
xor ecx, ecx
mov dword [rbp - 0x4c], eax
movups xmmword [rsp + 0x54], xmm0
movups xmmword [rsp + 0x64], xmm0
movups xmmword [rsp + 0x74], xmm0
movups xmmword [rbp - 0x7c], xmm0
movups xmmword [rbp - 0x6c], xmm0
movups xmmword [rbp - 0x5c], xmm0
test esi, esi
je 0x140010761
lea rax, str.WinSta0Default
mov qword [rsp + 0x60], rax
jmp 0x14001076c
mov dword [rbp - 0x74], 1
mov word [rbp - 0x70], cx
lea rax, [rbp - 0x40]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rdx, [rbp - 0x20]
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov al, 1
jmp 0x1400107a7
xor al, al
lea r11, [rsp + 0xb00]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret