joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400082d0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x48], rbx
mov rdi, rcx
lea rax, [0x140061678]
mov qword [rcx], rax
mov rcx, qword [rcx + 0x38]
test rcx, rcx
je 0x140008304
call qword [sym.imp.USER32.dll_DestroyIcon]
mov rcx, qword [rdi + 0x30]
test rcx, rcx
je 0x140008313
call qword [sym.imp.USER32.dll_DestroyIcon]
mov rbx, qword [rdi + 0x10]
test rbx, rbx
je 0x1400083b9
mov ecx, dword [0x14008003c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400083a3
mov ecx, dword [0x14008003c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp qword [rax], rbx
jne 0x14000836b
mov ecx, dword [0x14008003c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
mov rdx, qword [rax + 8]
mov ecx, dword [0x14008003c]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, rbx
call fcn.140034ee0
jmp 0x1400083a3
mov ecx, dword [0x14008003c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r11, rax
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x1400083a3
cmp qword [rcx], rbx
je 0x140008396
mov r11, rcx
mov rcx, qword [rcx + 8]
test rcx, rcx
jne 0x140008383
jmp 0x1400083a3
mov rax, qword [rcx + 8]
mov qword [r11 + 8], rax
call fcn.140034ee0
xor edx, edx
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.USER32.dll_EndDialog]
mov r11, qword [rdi]
mov rcx, rdi
call qword [r11 + reloc.WS2_32.dll_htonl]
mov rbx, qword [rdi + 0x40]
test rbx, rbx
je 0x1400083d3
mov rcx, rbx
call fcn.14000c7c0
mov rcx, rbx
call fcn.140034ee0
nop
mov rcx, rdi
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp fcn.140007320

Function at 0x14000b850
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov rdi, rcx
lea rax, [0x140061bf8]
mov qword [rcx], rax
lea rax, [0x140061be0]
mov qword [rcx + 0x50], rax
mov rcx, qword [rcx + 0x230]
call qword [sym.imp.USER32.dll_DestroyIcon]
lea rcx, [rdi + 0x208]
call fcn.140007320
nop
lea rcx, [rdi + 0x1e0]
call fcn.140007320
nop
lea rcx, [rdi + 0x1b8]
call fcn.140007320
nop
lea rcx, [rdi + 0x190]
call fcn.140007320
nop
lea rcx, [rdi + 0x168]
call fcn.140007320
nop
lea rcx, [rdi + 0x140]
call fcn.140007320
nop
lea rcx, [rdi + 0x118]
call fcn.140007320
nop
lea rcx, [rdi + 0xf0]
call fcn.140007320
nop
lea rbx, [rdi + 0x58]
mov qword [rsp + 0x58], rbx
mov rcx, qword [rbx + 0x60]
call fcn.1400361f0
lea rcx, [rbx + 0x28]
call fcn.140009ed0
nop
lea rcx, [rbx + 0x10]
call fcn.14000b640
nop
lea rax, [0x140061880]
mov qword [rbx + 8], rax
lea rax, [0x140060d80]
mov qword [rbx], rax
lea rax, [0x140061868]
mov qword [rdi + 0x50], rax
mov rcx, rdi
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
jmp fcn.1400082d0
Function at 0x14000c540
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
push r12
sub rsp, 0x50
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rbp
mov rdi, r9
mov ebx, r8d
mov rbp, rdx
mov rsi, rcx
xor r12d, r12d
mov qword [rsp + 0x40], r12
mov dword [rsp + 0x48], r12d
call fcn.14002ecf0
mov r10, qword [rax + 0x20]
or r8d, 0xffffffff
mov rdx, qword [r10 + 0x20]
lea rcx, [rsp + 0x40]
call fcn.1400134b0
test rdi, rdi
je 0x14000c5a9
mov r8, rdi
lea rdx, str.:__s
lea rcx, [rsp + 0x40]
call fcn.140013810
or ebx, 0x50000
mov rdi, qword [rsp + 0x90]
test rdi, rdi
je 0x14000c5f7
mov rdx, rdi
mov ecx, dword [0x1400800a8]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r9d, eax
xor r8d, r8d
lea rdx, [0x14000c430]
lea ecx, [r8 + 5]
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
mov rdx, rax
mov ecx, dword [0x1400800a4]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [rsp + 0x20], r12d
or r9d, 0xffffffff
mov r8d, 0xfde9
mov rdx, rbp
lea rcx, [rsp + 0x30]
call fcn.140012a60
nop
mov dword [rsp + 0x20], r12d
or r9d, 0xffffffff
mov r8d, 0xfde9
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x88]
call fcn.140012a60
nop
mov ebp, dword [rsp + 0x98]
test ebp, ebp
je 0x14000c6af
mov eax, dword [0x1400800a0]
test al, 1
jne 0x14000c67e
or eax, 1
mov dword [0x1400800a0], eax
xor r9d, r9d
lea r8, str.MessageBoxTimeoutW
lea rdx, str.user32
lea rcx, [0x140080090]
call fcn.14001a920
lea rcx, [0x14005f3c0]
call fcn.140036380
nop
cmp qword [0x140080090], 0
je 0x14000c6af
mov dword [rsp + 0x28], ebp
mov word [rsp + 0x20], 0
mov r9d, ebx
mov r8, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x30]
mov rcx, rsi
call fcn.14000c300
mov ebx, eax
jmp 0x14000c6ca
mov r9d, ebx
mov r8, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.USER32.dll_MessageBoxW]
mov ebx, eax
test rdi, rdi
je 0x14000c704
mov ecx, dword [0x1400800a4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14000c704
mov ecx, dword [0x1400800a4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rcx, rax
call qword [sym.imp.USER32.dll_UnhookWindowsHookEx]
xor edx, edx
mov ecx, dword [0x1400800a4]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov rcx, qword [rsp + 0x88]
call fcn.140034ee0
nop
mov rcx, qword [rsp + 0x30]
call fcn.140034ee0
nop
mov rcx, qword [rsp + 0x40]
call fcn.140034ee0
mov eax, ebx
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x50
pop r12
pop rdi
pop rsi
ret
Function at 0x14001ceb0
Capabilities:
Get session user name

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x490
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov rax, qword [0x14007e3c0]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov rdi, rcx
mov qword [rsp + 0x50], rcx
xor esi, esi
mov qword [rcx], rsi
mov dword [rsp + 0x40], 0x101
lea rdx, [rsp + 0x40]
lea rcx, [r11 - 0x228]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x14001cf69
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov byte [rsp + 0x60], sil
or r9d, 0xffffffff
lea r8, str.GetUserName_failed
mov edx, 0x100
lea rcx, [rsp + 0x60]
call fcn.14001a500
mov edx, ebx
lea rcx, [rsp + 0x60]
call fcn.14001ac20
lea rcx, [rsp + 0x164]
lea rdx, [rsp + 0x60]
mov r8d, 0x104
call fcn.1400374a0
lea rdx, [0x14007a800]
lea rcx, [rsp + 0x164]
call fcn.140035840
int3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], esi
or r9d, 0xffffffff
mov r8d, 0xfde9
lea rdx, [rsp + 0x270]
lea rcx, [rsp + 0x48]
call fcn.140012c10
mov rbx, qword [rsp + 0x48]
mov qword [rsp + 0x48], rsi
mov rcx, qword [rdi]
call fcn.140034ee0
mov qword [rdi], rbx
mov rcx, qword [rsp + 0x48]
call fcn.1400361f0
nop
mov rax, rdi
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.1400353d0
lea r11, [rsp + 0x490]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14001d000
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x240
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x260], rbx
mov rdi, rcx
mov qword [rcx], 0
mov byte [rcx + 8], 0
mov eax, dword [0x140080298]
test al, 1
jne 0x14001d069
or eax, 1
mov dword [0x140080298], eax
xor r9d, r9d
lea r8, str.WTSQueryUserToken
lea rdx, str.wtsapi32
lea rcx, [0x140080288]
call fcn.14001a920
lea rcx, [0x14005f640]
call fcn.140036380
nop
call fcn.14001fc20
test al, al
je 0x14001d158
cmp byte [0x1400804ad], 0
je 0x14001d0ce
lea rdx, str.legacy_shellIconClass
lea rcx, [0x1400802a0]
call fcn.140013bd0
nop
lea rcx, [rsp + 0x258]
call fcn.14001ceb0
mov qword [rdi], 0xffffffffffffffff
mov rcx, qword [rsp + 0x258]
call fcn.140034ee0
nop
jmp 0x14001d0bf
cmp qword [rdi], 0
setne al
mov byte [rdi + 8], al
jmp 0x14001d1e3
mov rax, qword [0x140080288]
test rax, rax
je 0x14001d12d
mov rdx, rdi
or ecx, 0xffffffff
call rax
test eax, eax
jne 0x14001d111
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3f0
je 0x14001d111
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.WTSQueryUserToken_fail__d
lea rcx, [0x1400802a0]
call fcn.140013bd0
jmp 0x14001d12d
lea rdx, str.WTSQueryUserToken_OK
lea rcx, [0x1400802a0]
call fcn.140013bd0
mov byte [rdi + 8], 1
jmp 0x14001d1e3
movsxd rbx, edi
call qword [sym.imp.USER32.dll_GetProcessWindowStation]
mov rcx, rax
mov r8, rbx
lea rdx, [0x14001cce0]
call qword [sym.imp.USER32.dll_EnumDesktopsW]
cmp qword [rdi], 0
setne al
mov byte [rdi + 8], al
jmp 0x14001d1e3
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov r8, rdi
mov edx, 0x10000000
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x14001d1df
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0x78
je 0x14001d1d8
mov byte [rsp + 0x30], 0
or r9d, 0xffffffff
lea r8, str.OpenProcessToken_failed
mov edx, 0x100
lea rcx, [rsp + 0x30]
call fcn.14001a500
mov edx, ebx
lea rcx, [rsp + 0x30]
call fcn.14001ac20
lea rcx, [rsp + 0x134]
lea rdx, [rsp + 0x30]
mov r8d, 0x104
call fcn.1400374a0
lea rdx, [0x14007a800]
lea rcx, [rsp + 0x134]
call fcn.140035840
int3
mov qword [rdi], 0xffffffffffffffff
mov byte [rdi + 8], 1
mov rax, rdi
mov rbx, qword [rsp + 0x260]
add rsp, 0x240
pop rdi
ret
Function at 0x14001d4c0
Capabilities:
Set registry value

Disassembly:
push rdi
sub rsp, 0x250
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x260], rbx
mov rax, r8
mov rdi, rdx
mov rbx, rcx
mov dword [rsp + 0x20], 0
or r9d, 0xffffffff
mov r8d, 0xfde9
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140012a60
nop
mov dword [rsp + 0x20], 0
or r9d, 0xffffffff
mov r8d, 0xfde9
mov rdx, rdi
lea rcx, [rsp + 0x278]
call fcn.140012a60
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdx, qword [rsp + 0x30]
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea eax, [rcx + rcx]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdx
mov r9d, 1
xor r8d, r8d
mov rdx, qword [rsp + 0x278]
mov rcx, qword [rbx]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
mov rcx, qword [rsp + 0x278]
call fcn.1400361f0
test edi, edi
je 0x14001d5ca
mov byte [rsp + 0x40], 0
or r9d, 0xffffffff
lea r8, str.setString
mov edx, 0x100
lea rcx, [rsp + 0x40]
call fcn.14001a500
mov edx, edi
lea rcx, [rsp + 0x40]
call fcn.14001ac20
lea rcx, [rsp + 0x144]
lea rdx, [rsp + 0x40]
mov r8d, 0x104
call fcn.1400374a0
lea rdx, [0x14007a800]
lea rcx, [rsp + 0x144]
call fcn.140035840
nop
mov rcx, qword [rsp + 0x30]
call fcn.1400361f0
mov rbx, qword [rsp + 0x260]
add rsp, 0x250
pop rdi
ret

Function at 0x14001d610
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x18], r8d
push rbx
sub rsp, 0x240
mov rbx, rcx
lea rcx, [rsp + 0x268]
or r9d, 0xffffffff
mov r8d, 0xfde9
mov dword [rsp + 0x20], 0
call fcn.140012a60
mov rdx, qword [rsp + 0x268]
mov rcx, qword [rbx]
lea rax, [rsp + 0x260]
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x268]
mov ebx, eax
call fcn.1400361f0
test ebx, ebx
je 0x14001d6d9
lea r8, str.setInt
lea rcx, [rsp + 0x30]
or r9d, 0xffffffff
mov edx, 0x100
mov byte [rsp + 0x30], 0
call fcn.14001a500
lea rcx, [rsp + 0x30]
mov edx, ebx
call fcn.14001ac20
lea rcx, [rsp + 0x134]
lea rdx, [rsp + 0x30]
mov r8d, 0x104
call fcn.1400374a0
lea rdx, [0x14007a800]
lea rcx, [rsp + 0x134]
call fcn.140035840
int3
add rsp, 0x240
pop rbx
ret

Function at 0x14001d6f0
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x240
xor eax, eax
test r8b, r8b
mov rbx, rcx
setne al
lea rcx, [r11 + 0x20]
mov r8d, 0xfde9
or r9d, 0xffffffff
mov dword [r11 + 0x18], eax
mov dword [rsp + 0x20], 0
call fcn.140012a60
mov rdx, qword [rsp + 0x268]
mov rcx, qword [rbx]
lea rax, [rsp + 0x260]
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x268]
mov ebx, eax
call fcn.1400361f0
test ebx, ebx
je 0x14001d7bf
lea r8, str.setInt
lea rcx, [rsp + 0x30]
or r9d, 0xffffffff
mov edx, 0x100
mov byte [rsp + 0x30], 0
call fcn.14001a500
lea rcx, [rsp + 0x30]
mov edx, ebx
call fcn.14001ac20
lea rcx, [rsp + 0x134]
lea rdx, [rsp + 0x30]
mov r8d, 0x104
call fcn.1400374a0
lea rdx, [0x14007a800]
lea rcx, [rsp + 0x134]
call fcn.140035840
int3
add rsp, 0x240
pop rbx
ret
Function at 0x14001d850
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x280
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov r12d, edx
mov rbp, rcx
xor r13d, r13d
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x48], r13
lea rax, [rax + 0x18]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov ebx, eax
test eax, eax
je 0x14001d912
mov byte [rsp + 0x70], r13b
or r9d, 0xffffffff
lea r8, str.RegQueryInfoKey
mov edx, 0x100
lea rcx, [rsp + 0x70]
call fcn.14001a500
mov edx, ebx
lea rcx, [rsp + 0x70]
call fcn.14001ac20
lea rcx, [rsp + 0x174]
lea rdx, [rsp + 0x70]
mov r8d, 0x104
call fcn.1400374a0
lea rdx, [0x14007a800]
lea rcx, [rsp + 0x174]
call fcn.140035840
int3
or rsi, 0xffffffffffffffff
mov eax, dword [rsp + 0x2c0]
add eax, 1
mov dword [rsp + 0x2c0], eax
je 0x14001d945
movsxd rcx, eax
mov eax, 2
mul rcx
cmovo rax, rsi
mov rcx, rax
call fcn.140037b30
mov rdi, rax
jmp 0x14001d948
mov rdi, r13
xor ecx, ecx
call fcn.1400361f0
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x2c0]
mov r8, rdi
mov edx, r12d
mov rcx, qword [rbp]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov ebx, eax
cmp eax, 0x103
jne 0x14001d998
mov rcx, rdi
call fcn.1400361f0
xor eax, eax
jmp 0x14001da54
test eax, eax
je 0x14001d9f3
mov byte [rsp + 0x70], 0
mov r9d, esi
lea r8, str.RegEnumValue
mov edx, 0x100
lea rcx, [rsp + 0x70]
call fcn.14001a500
mov edx, ebx
lea rcx, [rsp + 0x70]
call fcn.14001ac20
lea rcx, [rsp + 0x174]
lea rdx, [rsp + 0x70]
mov r8d, 0x104
call fcn.1400374a0
lea rdx, [0x14007a800]
lea rcx, [rsp + 0x174]
call fcn.140035840
int3
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], r13d
mov r9d, esi
mov r8d, 0xfde9
mov rdx, rdi
lea rcx, [rsp + 0x2c8]
call fcn.140012c10
mov rbx, qword [rsp + 0x2c8]
mov qword [rsp + 0x2c8], r13
mov rcx, qword [rbp + 0x10]
call fcn.140034ee0
mov qword [rbp + 0x10], rbx
mov rcx, qword [rsp + 0x2c8]
call fcn.1400361f0
mov rbx, qword [rbp + 0x10]
mov rcx, rdi
call fcn.1400361f0
mov rax, rbx
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001f220
Capabilities:
Get file version info

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rbx
push rsi
push rdi
sub rsp, 0x260
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rbx, rdx
mov rsi, rcx
xor edi, edi
mov qword [rcx], rdi
mov qword [rcx + 8], rdi
mov qword [rcx + 0x18], rdi
mov qword [rax + 0x20], rdi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rax + 0x20]
call fcn.140022370
nop
test rbx, rbx
cmove rbx, qword [rsp + 0x298]
mov dword [rsp + 0x20], edi
or r9d, 0xffffffff
mov r8d, 0xfde9
mov rdx, rbx
lea rcx, [rsp + 0x290]
call fcn.140012a60
nop
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [rdi + 1]
mov rcx, qword [rsp + 0x290]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x40], rax
cmp rax, 0xffffffffffffffff
jne 0x14001f328
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov byte [rsp + 0x50], dil
or r9d, 0xffffffff
lea r8, str.Failed_to_open_file
mov edx, 0x100
lea rcx, [rsp + 0x50]
call fcn.14001a500
mov edx, ebx
lea rcx, [rsp + 0x50]
call fcn.14001ac20
lea rcx, [rsp + 0x154]
lea rdx, [rsp + 0x50]
mov r8d, 0x104
call fcn.1400374a0
lea rdx, [0x14007a800]
lea rcx, [rsp + 0x154]
call fcn.140035840
nop
test rax, rax
je 0x14001f336
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x288]
mov rcx, qword [rsp + 0x290]
call sub.VERSION.dll_GetFileVersionInfoSizeW
movsxd rdi, eax
test eax, eax
jne 0x14001f3b2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov byte [rsp + 0x50], 0
or r9d, 0xffffffff
lea r8, str.GetVersionInfoSize_failed
mov edx, 0x100
lea rcx, [rsp + 0x50]
call fcn.14001a500
mov edx, ebx
lea rcx, [rsp + 0x50]
call fcn.14001ac20
lea rcx, [rsp + 0x154]
lea rdx, [rsp + 0x50]
mov r8d, 0x104
call fcn.1400374a0
lea rdx, [0x14007a800]
lea rcx, [rsp + 0x154]
call fcn.140035840
int3
mov rcx, rdi
call fcn.1400357a0
mov rbx, rax
mov rcx, qword [rsi]
call fcn.140034ee0
mov qword [rsi], rbx
mov r9, rbx
mov r8d, edi
mov edx, dword [rsp + 0x288]
mov rcx, qword [rsp + 0x290]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x14001f446
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov byte [rsp + 0x50], 0
or r9d, 0xffffffff
lea r8, str.GetVersionInfo_failed
mov edx, 0x100
lea rcx, [rsp + 0x50]
call fcn.14001a500
mov edx, ebx
lea rcx, [rsp + 0x50]
call fcn.14001ac20
lea rcx, [rsp + 0x154]
lea rdx, [rsp + 0x50]
mov r8d, 0x104
call fcn.1400374a0
lea rdx, [0x14007a800]
lea rcx, [rsp + 0x154]
call fcn.140035840
nop
mov rcx, qword [rsp + 0x290]
call fcn.140034ee0
nop
mov rcx, qword [rsp + 0x298]
call fcn.140034ee0
nop
mov rax, rsi
add rsp, 0x260
pop rdi
pop rsi
pop rbx
ret
Function at 0x14001fc20
Capabilities:
Compare security identifiers

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x240
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
cmp byte [0x1400804d9], 0
jne 0x14001fdad
cmp byte [0x1400804ac], 0
je 0x14001fd89
xor edi, edi
mov qword [rax + 0x18], rdi
mov dword [rsp + 0x20], edi
mov ebx, 1
lea r9d, [rdi + 0x12]
mov r8d, ebx
lea rdx, [0x1400649dc]
lea rcx, [rax + 0x18]
call fcn.14001f9e0
nop
mov qword [rsp + 0x250], rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x250]
mov edx, 0x2000000
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x14001fd01
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov byte [rsp + 0x38], dil
or r9d, 0xffffffff
lea r8, [0x140064aa0]
mov edx, 0x100
lea rcx, [rsp + 0x38]
call fcn.14001a500
mov edx, ebx
lea rcx, [rsp + 0x38]
call fcn.14001ac20
lea rcx, [rsp + 0x13c]
lea rdx, [rsp + 0x38]
mov r8d, 0x104
call fcn.1400374a0
lea rdx, [0x14007a800]
lea rcx, [rsp + 0x13c]
call fcn.140035840
int3
mov rdx, rdi
mov qword [rsp + 0x258], rdx
mov rax, qword [rsp + 0x250]
test rax, rax
je 0x14001fd31
mov rdx, rax
lea rcx, [rsp + 0x258]
call fcn.14001fac0
mov rdx, qword [rsp + 0x258]
mov rcx, qword [rsp + 0x260]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
movzx ecx, byte [0x1400804d8]
test eax, eax
cmovne ecx, ebx
mov byte [0x1400804d8], cl
mov rcx, qword [rsp + 0x258]
call fcn.1400361f0
nop
mov rcx, qword [rsp + 0x250]
test rcx, rcx
je 0x14001fd72
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x250], rdi
mov rcx, qword [rsp + 0x260]
call fcn.1400361f0
jmp 0x14001fda6
movzx eax, byte [0x1400804d8]
mov ebx, 1
cmp qword [0x1400804b0], 0
cmovne eax, ebx
mov byte [0x1400804d8], al
mov byte [0x1400804d9], 1
mov al, byte [0x1400804d8]
mov rbx, qword [rsp + 0x268]
add rsp, 0x240
pop rdi
ret
Function at 0x140027560
Capabilities:
Resolve dns

Disassembly:
push rbp
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rax, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
movzx r13d, r9w
mov qword [rbp], 0
mov r14d, r8d
mov r15d, edx
mov byte [rax], 0
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
mov r12, rax
je 0x140027695
cmp word [rax + 0x10], 2
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], rdi
jne 0x140027657
cmp word [rax + 0x12], 4
jne 0x140027657
mov rdi, qword [rax + 0x18]
mov rcx, qword [rdi]
test rcx, rcx
je 0x140027657
nop
nop
nop
mov esi, dword [rcx]
mov edx, gethostbyname
lea ecx, [rdx - 0x2f]
call fcn.14003ac40
test rax, rax
mov rbx, rax
je 0x14002763d
mov edx, reloc.WS2_32.dll_recv
lea ecx, [rdx - 0xf]
call fcn.14003ac40
test rax, rax
jne 0x140027615
mov rcx, rbx
call fcn.14003ad30
xor ebx, ebx
jmp 0x14002763d
mov word [rax], 2
mov word [rax + 2], r13w
mov dword [rax + 4], esi
mov dword [rbx + 4], 2
mov dword [rbx + 8], r15d
mov dword [rbx + 0xc], r14d
mov qword [rbx + reloc.WS2_32.dll_recv], 0x10
mov qword [rbx + 0x20], rax
test rbx, rbx
mov qword [rbp], rbx
je 0x14002768e
mov rcx, qword [rdi + 8]
add rdi, 8
lea rbp, [rbx + 0x28]
test rcx, rcx
jne 0x1400275e0
mov r8, qword [r12]
mov rcx, qword [rsp + 0x70]
mov r9d, 0x400
lea edx, [r9 + 1]
call fcn.14003ad80
xor eax, eax
mov rsi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov eax, 8
jmp 0x140027671
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2af9
je 0x1400276ac
sub eax, 1
je 0x1400276d2
sub eax, 1
je 0x1400276bf
mov eax, 0x2af9
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov eax, 0x2afb
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov eax, 0x2afa
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x140028070
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
sub rsp, 0x280
mov rax, qword [0x14007e3c0]
xor rax, rsp
mov qword [rsp + 0x270], rax
cmp dword [0x140080568], 0
lea rax, [0x140027a20]
lea rbx, str.getaddrinfo
mov qword [rsp + 0x28], rax
lea rax, str.getnameinfo
movzx ebp, cx
mov qword [rsp + 0x30], rax
lea rax, [0x140027dd0]
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x38], rax
lea rax, str.freeaddrinfo
mov qword [rsp + 0x40], rax
lea rax, [0x1400279c0]
mov qword [rsp + 0x48], rax
jne 0x14002823f
lea rcx, [rsp + 0x160]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x140028235
lea r8, [rsp + 0x160]
lea rcx, [rsp + 0x50]
mov edx, 0x10c
mov qword [rsp + 0x290], rsi
call fcn.14003aac0
lea r8, str.ws2_32
lea rcx, [rsp + 0x50]
mov edx, 0x10c
call fcn.14003aea0
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rsi, rax
je 0x140028164
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x1400281c4
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea r8, [rsp + 0x160]
lea rcx, [rsp + 0x50]
mov edx, 0x10c
call fcn.14003aac0
lea r8, str.wship6
lea rcx, [rsp + 0x50]
mov edx, 0x10c
call fcn.14003aea0
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rsi, rax
je 0x14002822d
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x1400281c4
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x14002822d
mov qword [rsp + 0x298], rdi
lea rbx, [rsp + 0x28]
xor edi, edi
mov rdx, qword [rbx - 8]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [rbx], rax
je 0x14002821c
add rdi, 1
add rbx, 0x10
cmp rdi, 3
jl 0x1400281d3
mov rax, qword [rsp + 0x28]
mov qword [0x14007ddd8], rax
mov rax, qword [rsp + 0x38]
mov qword [0x14007dde8], rax
mov rax, qword [rsp + 0x48]
mov qword [0x14007ddf8], rax
jmp 0x140028225
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rdi, qword [rsp + 0x298]
mov rsi, qword [rsp + 0x290]
mov dword [0x140080568], 1
movzx eax, bp
lea rcx, str.getaddrinfo
add rax, rax
mov rax, qword [rcx + rax*8 + 8]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1400353d0
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x280
pop rbp
ret