joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180020470
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov r14, r8
movzx edx, dx
mov rsi, rcx
mov r8d, 5
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rcx, qword [rsi + 8]
mov rdx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rcx, qword [rsi + 8]
mov rdx, rbx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, eax
mov ecx, 0x40
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rcx, rax
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov r8d, ebx
mov rdx, rdi
mov rcx, rax
mov qword [r14], rax
call fcn.18003afc0
mov rcx, qword [r14]
mov eax, 0xffff
cmp word [rcx + 2], ax
jne 0x180020508
bts dword [rcx + 8], 0x16
jmp 0x18002050d
bts dword [rcx + 4], 0x16
mov rbx, qword [rsp + 0x30]
mov rax, rsi
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x1800355a0
Capabilities:
Query environment variable

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, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1800355d0
xor eax, eax
jmp 0x180035693
mov rbp, rbx
cmp word [rax], si
je 0x1800355f5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1800355dc
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1800355d8
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1800354f0
movsxd r14, eax
test eax, eax
jne 0x180035633
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1800355c9
mov rcx, r14
call fcn.1800315e0
mov rdi, rax
test rax, rax
jne 0x18003564c
xor ecx, ecx
call fcn.180030d9c
jmp 0x180035628
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1800354f0
test eax, eax
jne 0x18003567d
mov rcx, rdi
call fcn.180030d9c
jmp 0x180035687
xor ecx, ecx
call fcn.180030d9c
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x18003ac90
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x18003acb8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x18003acb8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140c6b058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140c6b1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140c6b089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140c6b06f
add dl, dl
jne 0x140c6b096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140c6b0f6
xor eax, eax
add dl, dl
jne 0x140c6b0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140c6b1ad
add dl, dl
jne 0x140c6b0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c6b0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c6b0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c6b0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140c6b0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140c6b07e
mov eax, 1
add dl, dl
jne 0x140c6b106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c6b113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140c6b0fb
sub eax, ebx
mov ebx, 1
jne 0x140c6b14c
mov ecx, 1
add dl, dl
jne 0x140c6b12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140c6b13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140c6b123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140c6b07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140c6b168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140c6b175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140c6b15d
cmp eax, 0x7d00
jae 0x140c6b19b
cmp eax, 0x500
jb 0x140c6b196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140c6b07e
cmp eax, 0x7f
ja 0x140c6b19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140c6b07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140c6b1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x140c6b07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x100005d48
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x1d0
mov rax, qword [0x100013110]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov rbx, rcx
test rcx, rcx
jne 0x100005d80
xor eax, eax
jmp 0x100005ef6
lea rdx, [rsp + 0x20]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x100005dd1
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, 0x9c
call fcn.100008cb8
mov rcx, qword [sym.imp.msvcrt.dll__iob]
add rcx, 0x60
mov rdx, rax
call fcn.10000a170
mov rcx, qword [sym.imp.msvcrt.dll__iob]
add rcx, 0x60
call fcn.100008a54
jmp 0x100005d79
mov rcx, rbx
call fcn.10000b228
test eax, eax
je 0x100005e3c
mov esi, 0x7d0
mov rcx, rsi
call fcn.10000ff8a
mov rbp, rax
test rax, rax
je 0x100005e5d
lea r8, [0x100013190]
mov rdi, rax
xor eax, eax
mov rcx, rsi
rep stosb byte [rdi], al
mov r9, rbp
mov rdx, rbx
mov ecx, 0x3e8
call fcn.100005f28
neg rax
sbb rdi, rdi
and rdi, rbp
je 0x100005e68
mov r8d, 0x100
mov rdx, rdi
mov rcx, rbx
call fcn.100009ec8
mov rcx, rdi
call fcn.10000ff7e
jmp 0x100005eeb
mov rcx, rbx
call fcn.10000b12c
test eax, eax
je 0x100005eb1
mov esi, 0x7d0
mov rcx, rsi
call fcn.10000ff8a
mov rbp, rax
test rax, rax
jne 0x100005ea5
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_SetLastError]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, 0x9c
call fcn.100008cb8
mov rcx, qword [sym.imp.msvcrt.dll__iob]
add rcx, 0x60
mov rdx, rax
call fcn.10000a170
mov rcx, qword [sym.imp.msvcrt.dll__iob]
add rcx, 0x60
call fcn.100008a54
jmp 0x100005eeb
lea r8, [0x100013180]
jmp 0x100005df9
mov ecx, 0x9c
call fcn.100008cb8
mov rcx, qword [sym.imp.msvcrt.dll__iob]
add rcx, 0x60
mov rdx, rax
call fcn.10000a170
mov ecx, 0xa4
call fcn.100008cb8
mov rcx, qword [sym.imp.msvcrt.dll__iob]
add rcx, 0x60
mov rdx, rax
call fcn.10000a170
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 1
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.10000ff20
lea r11, [rsp + 0x1d0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x100006040
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x38
mov rcx, qword [0x100014408]
lea rax, [rsp + 0x40]
mov r9d, 4
mov dword [rsp + 0x28], r9d
lea rdx, [0x1000017d8]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x100006089
mov rcx, qword [0x100014408]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x10000608b
mov al, 1
add rsp, 0x38
ret
Function at 0x100006388
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x60
xor ebx, ebx
lea rax, [rsp + 0x20]
mov qword [0x1000143d0], rax
mov qword [rsp + 0x70], rbx
lea edi, [rbx + 0x40]
lea r9, [rsp + 0x70]
mov r8d, edi
mov rdx, rax
mov ecx, 0x11
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x100006444
mov rax, qword [rsp + 0x70]
cmp rax, rdi
jbe 0x100006448
mov rcx, qword [0x1000143d0]
lea rdx, [rsp + 0x20]
cmp rcx, rdx
je 0x1000063f3
xor edx, edx
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, qword [rsp + 0x70]
lea rdi, [rax + 0x1000]
mov r9d, 4
mov r8d, 0x1000
mov rdx, rdi
xor ecx, ecx
mov qword [rsp + 0x78], rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
cmp rax, rbx
jne 0x100006420
mov rax, rbx
jmp 0x100006432
lea rcx, [rsp + 0x78]
mov rdx, rax
call fcn.100006504
mov rdi, qword [rsp + 0x78]
mov qword [0x1000143d0], rax
cmp rax, rbx
jne 0x1000063a8
jmp 0x100006467
cmp eax, ebx
jge 0x10000646e
mov rcx, qword [0x1000143d0]
lea rax, [rsp + 0x20]
cmp rcx, rax
je 0x100006467
xor edx, edx
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x1000064ee
mov r8, qword [0x1000143d0]
lea rdi, [0x1000137b0]
mov rdx, r8
cmp dword [rdx + 0xc], 0x80
jae 0x100006499
mov eax, dword [rdx + 0xc]
movdqu xmm0, xmmword [rdx + 0x30]
lea rcx, [rax + rax*2]
movdqu xmmword [rdi + rcx*8], xmm0
mov eax, dword [rdx]
cmp eax, ebx
je 0x1000064a5
lea rdx, [r8 + rax]
jmp 0x10000647f
lea rdx, [0x100001800]
lea rcx, [0x100013798]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov eax, 0x81
movdqu xmm0, xmmword [0x100013798]
cmp bx, word [rdi]
jne 0x1000064cf
movdqu xmmword [rdi], xmm0
add rdi, 0x18
sub rax, 1
jne 0x1000064c6
call fcn.10000654c
cmp al, bl
je 0x100006467
call fcn.1000066a8
cmp al, bl
setne bl
mov eax, ebx
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
Function at 0x10000654c
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push rbx
sub rsp, 0x60
and qword [rsp + 0x70], 0
lea rax, [rsp + 0x20]
mov ebx, 0x38
mov qword [0x1000143c8], rax
lea r9, [rsp + 0x70]
mov r8d, ebx
mov rdx, rax
mov ecx, 0x40
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x100006605
mov rax, qword [rsp + 0x70]
cmp rax, rbx
jbe 0x100006609
mov rcx, qword [0x1000143c8]
lea rdx, [rsp + 0x20]
cmp rcx, rdx
je 0x1000065b4
xor edx, edx
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, qword [rsp + 0x70]
lea rbx, [rax + 0x1000]
mov r9d, 4
mov r8d, 0x1000
mov rdx, rbx
xor ecx, ecx
mov qword [rsp + 0x78], rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x1000065ee
lea rcx, [rsp + 0x78]
mov rdx, rax
call fcn.100006504
mov rbx, qword [rsp + 0x78]
mov qword [0x1000143c8], rax
test rax, rax
jne 0x100006569
xor al, al
jmp 0x10000669a
test eax, eax
jns 0x10000662a
mov rcx, qword [0x1000143c8]
lea rax, [rsp + 0x20]
cmp rcx, rax
je 0x1000065fe
xor edx, edx
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x1000065fe
mov r9, qword [0x1000143d0]
mov r10, qword [0x1000143c8]
mov rdx, r9
movzx ecx, word [rdx + 0x32]
add rcx, qword [rdx + 0x38]
cmp dword [rcx + 0x20], 0
je 0x100006680
xor r11d, r11d
lea r8, [r10 + 0x10]
cmp qword [r10], r11
jbe 0x100006680
mov ebx, dword [r8 + 0x20]
inc r11d
test bl, bl
js 0x100006674
mov rax, qword [rcx + 8]
cmp qword [r8], rax
jne 0x100006674
bts ebx, 7
mov qword [r8], rcx
mov dword [r8 + 0x20], ebx
mov eax, r11d
add r8, 0x28
cmp rax, qword [r10]
jb 0x100006655
mov eax, dword [rcx]
test eax, eax
je 0x10000668c
lea rcx, [r9 + rax]
jmp 0x100006643
mov eax, dword [rdx]
test eax, eax
je 0x100006698
lea rdx, [r9 + rax]
jmp 0x10000663b
mov al, 1
add rsp, 0x60
pop rbx
ret
Function at 0x1000066a8
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x20
lea rbp, [0x1000143d8]
mov ebx, 0x10000
mov edi, 4
mov qword [0x1000143e0], rbp
mov qword [0x1000143d8], rbp
jmp 0x10000670e
xor r9d, r9d
mov r8d, ebx
mov rdx, rax
lea ecx, [r9 + 5]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x10000675c
mov rcx, qword [0x1000137a8]
xor edx, edx
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
test eax, eax
je 0x10000674a
add rbx, rbx
mov r9d, edi
mov r8d, 0x1000
mov rdx, rbx
xor ecx, ecx
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x10000673e
lea rcx, [rsp + 0x30]
mov rdx, rax
call fcn.100006504
mov rbx, qword [rsp + 0x30]
mov qword [0x1000137a8], rax
test rax, rax
jne 0x1000066d8
xor al, al
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
test eax, eax
js 0x10000674a
mov rbx, qword [0x1000137a8]
xor edi, edi
mov rcx, qword gs:[0x30]
mov r8d, dword [rbx + 4]
mov edx, 8
mov rcx, qword [rcx + 0x60]
lea r8, [r8*8 + 0x20]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r11, rax
test rax, rax
je 0x10000674a
xor edx, edx
mov qword [rax + 8], rax
mov qword [rax], rax
mov qword [rax + 0x10], rbx
lea rcx, [rbx + 0x100]
cmp dword [rbx + 4], edx
jbe 0x1000067c8
add rax, 0x18
mov qword [rax], rcx
inc edx
add rcx, 0x50
add rax, 8
cmp edx, dword [rbx + 4]
jb 0x1000067b6
mov rax, qword [0x1000143e0]
mov qword [r11], rbp
mov qword [r11 + 8], rax
mov qword [rax], r11
mov qword [0x1000143e0], r11
cmp dword [rbx], 0
je 0x1000067f5
add edi, dword [rbx]
mov ebx, edi
add rbx, qword [0x1000137a8]
jmp 0x100006769
mov al, 1
jmp 0x10000674c
Function at 0x1000099f4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x30
mov rax, qword [0x100013110]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov eax, dword [0x1000019ac]
mov rdi, rcx
lea rcx, [rsp + 0x20]
mov dword [rcx], eax
movzx eax, word [0x1000019b0]
xor r13d, r13d
mov rbp, rdx
mov rsi, r13
mov word [rcx + 4], ax
cmp rdi, r13
je 0x100009af0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, r13d
je 0x100009af0
cmp rbp, r13
je 0x100009a65
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, r13d
jne 0x100009a6a
lea rbp, [rsp + 0x20]
mov rbx, rdi
cmp word [rdi], r13w
je 0x100009a8e
movzx edx, word [rbx]
mov rcx, rbp
call qword [sym.imp.SHLWAPI.dll_StrChrW]
cmp rax, r13
je 0x100009a8e
add rbx, 2
cmp word [rbx], r13w
jne 0x100009a73
movzx eax, word [rbx]
mov r12, rbx
cmp ax, r13w
je 0x100009ace
movzx edx, ax
mov rcx, rbp
call qword [sym.imp.SHLWAPI.dll_StrChrW]
cmp rax, r13
je 0x100009ab5
cmp rsi, r13
jne 0x100009ab8
mov rsi, rbx
jmp 0x100009ab8
mov rsi, r13
add rbx, 2
mov ax, word [rbx]
cmp ax, r13w
jne 0x100009a9a
cmp rsi, r13
je 0x100009ace
mov word [rsi], r13w
cmp r12, rdi
jbe 0x100009aeb
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rdx, r12
mov rcx, rdi
lea r8d, [rax + 1]
call fcn.100009ec8
mov rax, rdi
jmp 0x100009af7
lea rax, [0x1000015a4]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.10000ff20
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x10000ae18
Capabilities:
Get token membership

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x100013110]
xor rax, rsp
mov qword [rsp + 0x78], rax
xor edi, edi
lea rax, [r11 - 0x20]
lea rcx, [r11 - 0x18]
mov qword [r11 - 0x38], rax
mov dword [rsp + 0x48], edi
mov dword [rsp + 0x40], edi
mov dword [rsp + 0x38], edi
mov dword [rsp + 0x30], edi
lea r8d, [rdi + 0x20]
mov r9d, 0x220
mov dl, 2
mov dword [rsp + 0x28], edi
mov qword [r11 - 0x20], rdi
mov dword [rsp + 0x60], edi
mov byte [rsp + 0x70], dil
mov dword [rsp + 0x20], edi
mov byte [rsp + 0x71], dil
mov byte [rsp + 0x72], dil
mov byte [rsp + 0x73], dil
mov byte [rsp + 0x74], dil
mov byte [rsp + 0x75], 5
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov ebx, eax
cmp eax, 1
jne 0x10000aec4
mov rdx, qword [rsp + 0x68]
lea r8, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
cmp eax, ebx
jne 0x10000aeb7
cmp dword [rsp + 0x60], ebx
je 0x10000aeb9
mov ebx, edi
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, ebx
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.10000ff20
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rdi
ret
Function at 0x10000af54
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x20
mov rsi, rcx
xor ebx, ebx
xor ecx, ecx
mov dword [rsp + 0x40], ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp rsi, rbx
je 0x10000b10d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, ebx
je 0x10000b10d
lea ebp, [rbx + 4]
lea r8, [rsp + 0x40]
xor edx, edx
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x10000afb7
xor eax, eax
jmp 0x10000b112
mov r8d, dword [rsp + 0x40]
mov edi, 1
xor edx, edx
lea ecx, [rdi + 0xd]
mov r9d, edi
call fcn.100008498
mov r12, rax
cmp rax, rbx
jne 0x10000afeb
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x10000afb0
lea ecx, [rdi + 7]
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10000afb0
lea r8, [rsp + 0x40]
mov rdx, rax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
cmp eax, ebx
je 0x10000afb0
xor r9d, r9d
mov r8d, edi
mov rdx, rsi
mov rcx, r12
call fcn.10000a08c
cmp eax, ebx
jne 0x10000b01b
mov eax, edi
jmp 0x10000b112
mov rcx, rsi
call fcn.10000b228
xor edx, edx
mov dword [rsp + 0x40], ebx
lea r8, [rsp + 0x40]
cmp eax, edi
jne 0x10000b0b1
xor r9d, r9d
mov rcx, rsi
call fcn.10000b4c4
cmp eax, ebx
je 0x10000afb0
mov r8d, dword [rsp + 0x40]
xor edx, edx
mov r9d, edi
lea ecx, [rdx + 0xf]
call fcn.100008498
mov rbp, rax
cmp rax, rbx
je 0x10000afb0
lea r8, [rsp + 0x40]
xor r9d, r9d
mov rdx, rax
mov rcx, rsi
call fcn.10000b4c4
cmp eax, ebx
je 0x10000afb0
xor r9d, r9d
mov r8d, edi
mov rdx, rbp
mov rcx, r12
call fcn.10000a08c
cmp eax, ebx
je 0x10000b014
lea rdx, [0x1000019d0]
mov r8d, edi
xor r9d, r9d
mov rcx, rbp
call fcn.10000a08c
cmp eax, ebx
sete bl
mov eax, ebx
jmp 0x10000b112
mov r12d, 7
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x10000afb0
mov r8d, dword [rsp + 0x40]
xor edx, edx
mov r9d, edi
lea ecx, [rdx + 0xe]
call fcn.100008498
mov rbp, rax
cmp rax, rbx
je 0x10000afb0
lea r8, [rsp + 0x40]
mov rdx, rax
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
cmp eax, ebx
je 0x10000afb0
mov rdx, rsi
jmp 0x10000b09a
mov eax, 1
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r12
pop rdi
pop rsi
ret
Function at 0x10000b4c4
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0xa80
mov rax, qword [0x100013110]
xor rax, rsp
mov qword [rsp + 0xa70], rax
xor ebx, ebx
mov rsi, r8
mov rdi, rcx
mov rbp, rdx
lea rcx, [rsp + 0x4c]
lea r8d, [rbx + 0x2c]
xor edx, edx
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x48], ebx
call sub.msvcrt.dll_memset
mov word [rsp + 0xa62], bx
cmp rdi, rbx
je 0x10000b64a
cmp rsi, rbx
je 0x10000b64a
cmp dword [rsi], ebx
je 0x10000b539
cmp dword [rsi], 2
jb 0x10000b64a
cmp rbp, rbx
je 0x10000b64a
cmp dword [0x10001491c], ebx
jne 0x10000b56f
lea rdx, [rsp + 0x80]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, ebx
je 0x10000b565
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
jmp 0x10000b659
mov dword [0x10001491c], 1
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x48]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_GetAddrInfoW]
cmp eax, ebx
jne 0x10000b65f
mov rdi, qword [rsp + 0x40]
jmp 0x10000b5ec
mov word [rsp + 0x260], bx
mov edx, dword [rdi + 0x10]
mov rcx, qword [rdi + 0x20]
lea rax, [rsp + 0x220]
mov dword [rsp + 0x30], 4
lea r8, [rsp + 0x260]
mov r9d, 0x401
mov dword [rsp + 0x28], 0x20
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_GetNameInfoW]
cmp eax, ebx
je 0x10000b5f3
cmp eax, 0x2afc
jne 0x10000b5e8
cmp word [rsp + 0x260], bx
jne 0x10000b5f3
mov rdi, qword [rdi + 0x28]
cmp rdi, rbx
jne 0x10000b593
jmp 0x10000b63b
lea rdx, [0x100001a20]
lea rcx, [rsp + 0x260]
call qword [sym.imp.msvcrt.dll_wcstok]
mov rdi, rax
cmp rax, rbx
je 0x10000b61b
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
lea eax, [rbx + 1]
cmp dword [rsi], eax
jae 0x10000b62b
mov dword [rsi], eax
mov ebx, 1
jmp 0x10000b63b
mov r8d, dword [rsi]
mov rdx, rdi
mov rcx, rbp
call fcn.100009ec8
mov ebx, eax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_FreeAddrInfoW]
mov eax, ebx
jmp 0x10000b661
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x10000b65f
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rcx, qword [rsp + 0xa70]
xor rcx, rsp
call fcn.10000ff20
mov rbx, qword [rsp + 0xab8]
add rsp, 0xa80
pop rdi
pop rsi
pop rbp
ret
Function at 0x100010128
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x100010175
cmp rcx, 0xffffffffffffffff
je 0x100010175
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x10001016d
cmp dword [rcx + 0x3c], edx
jl 0x10001016d
cmp dword [rcx + 0x3c], 0x10000000
jae 0x10001016d
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x100010175
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140004830
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je case.default.0x140004851
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x14000487e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140004880
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1400048d9
test ecx, ecx
jle 0x1400048b9
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x1400048d9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400048d9
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
cmp edx, dword [rbp + rdi*2 + 0x69ac48a2]
fld st(3)
scasb al, byte [rdi]
mov gs, word [rbp + 0x3d9d6b3c]
xchg esp, eax
mov esi, dword [rdx - 0x1dfebb9f]