joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800228a8
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x18008f100]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.180019cd8
xor ebx, ebx
cmp qword [0x1800a27d8], rbx
mov rdi, rax
jne 0x1800229bb
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x180022a92
lea rdx, [0x1800640d0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180022a92
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x1800a27d8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x1800a27e0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, [0x180064088]
mov rcx, rsi
mov qword [0x1800a27e8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x1800a27f8], rax
test rax, rax
je 0x1800229b2
lea rdx, [0x180064070]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x1800a27f0], rax
jmp 0x1800229c2
mov rax, qword [0x1800a27f0]
jmp 0x1800229c9
mov rax, qword [0x1800a27f0]
mov r11, qword [0x1800a27f8]
cmp rax, rdi
je 0x180022a30
cmp r11, rdi
je 0x180022a30
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x1800a27f8]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x180022a30
test rax, rax
je 0x180022a30
call rsi
test rax, rax
je 0x180022a2a
lea rcx, [rsp + 0x30]
mov r9d, reloc.WS2_32.dll_inet_ntoa
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x180022a2a
test byte [rsp + 0x40], 1
jne 0x180022a30
bts ebp, 0x15
jmp 0x180022a70
mov rcx, qword [0x1800a27e0]
cmp rcx, rdi
je 0x180022a70
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x180022a70
call rax
mov rbx, rax
test rax, rax
je 0x180022a70
mov rcx, qword [0x1800a27e8]
cmp rcx, rdi
je 0x180022a70
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x180022a70
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1800a27d8]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x180022a92
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x180022a94
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180013880
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180027f00
Capabilities:
Get user security identifier

Disassembly:
push rbx
push rbp
push rsi
sub rsp, 0x40
xor ebx, ebx
lea rax, [rsp + 0x78]
mov rsi, rdx
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x68]
mov qword [rdx], rbx
mov rbp, rcx
mov rdx, rcx
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x70]
xor r8d, r8d
xor ecx, ecx
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x70], ebx
mov dword [rsp + 0x68], ebx
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x180027f60
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x180027f60
xor eax, eax
add rsp, 0x40
pop rsi
pop rbp
pop rbx
ret
mov ecx, dword [rsp + 0x70]
mov qword [rsp + 0x60], rdi
call fcn.180013c3c
mov ecx, dword [rsp + 0x68]
mov qword [rsi], rax
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.180013c3c
mov r8, qword [rsi]
mov rdi, rax
test r8, r8
je 0x180027fcb
test rax, rax
je 0x180027fdc
lea rax, [rsp + 0x78]
lea r9, [rsp + 0x70]
mov rdx, rbp
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x68]
xor ecx, ecx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov ebx, eax
test rdi, rdi
je 0x180027fd8
mov rcx, rdi
call fcn.180013b68
test ebx, ebx
jne 0x180027fe9
mov rcx, qword [rsi]
test rcx, rcx
je 0x180027fe9
call fcn.180013b68
mov eax, ebx
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop rsi
pop rbp
pop rbx
ret

Function at 0x180029ba0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 8
mov r11d, r8d
mov r10, rdx
mov r9d, ecx
test rdx, rdx
jne 0x180029bb9
xor eax, eax
add rsp, 8
ret
mov qword [rsp], rdi
not r9d
lea rdi, [0x1800641b0]
cmp r11d, 8
jb 0x180029cb1
mov qword [rsp + 0x10], rbx
mov rbx, r11
shr rbx, 3
nop dword [rax]
movzx ecx, byte [r10]
mov eax, r9d
shr r9d, 8
xor rcx, rax
add r10, 8
add r11d, 0xfffffff8
movzx eax, cl
movzx ecx, byte [r10 - 7]
mov edx, dword [rdi + rax*4]
xor edx, r9d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r10 - 6]
mov r8d, dword [rdi + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r10 - 5]
mov edx, dword [rdi + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r10 - 4]
mov r8d, dword [rdi + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r10 - 3]
mov edx, dword [rdi + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r10 - 2]
mov r8d, dword [rdi + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r10 - 1]
mov edx, dword [rdi + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
mov r9d, dword [rdi + rax*4]
xor r9d, edx
dec rbx
jne 0x180029be0
mov rbx, qword [rsp + 0x10]
test r11d, r11d
je 0x180029cdf
nop word [rax + rax]
movzx ecx, byte [r10]
mov eax, r9d
inc r10
xor rcx, rax
shr eax, 8
movzx edx, cl
mov r9d, dword [rdi + rdx*4]
xor r9d, eax
dec r11d
jne 0x180029cc0
mov rdi, qword [rsp]
not r9d
mov eax, r9d
add rsp, 8
ret
Function at 0x18002a090
Capabilities:
Create process on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x408
mov rax, qword [0x18008f100]
xor rax, rsp
mov qword [rsp + 0x3f0], rax
mov rdi, qword [rsp + 0x470]
xor r15d, r15d
mov rbp, rcx
mov rbx, r8
mov r14, rdx
lea rcx, [rsp + 0xe1]
mov r12d, r15d
xor edx, edx
mov r8d, 0x103
mov rsi, r9
mov r13d, r15d
mov byte [rsp + 0xe0], r12b
call fcn.180015150
test r14, r14
je 0x18002a11b
lea r8, [rsp + 0xe0]
mov r9d, 0x103
or edx, 0xffffffff
mov rcx, r14
mov dword [rsp + 0x20], r15d
call fcn.180010e00
lea r13, [rsp + 0xe0]
lea rcx, [rsp + 0x1f1]
xor edx, edx
mov r8d, 0x1f3
mov byte [rsp + 0x1f0], r12b
call fcn.180015150
test rbx, rbx
je 0x18002a163
lea r8, [rsp + 0x1f0]
mov r9d, 0xf9
or edx, 0xffffffff
mov rcx, rbx
mov dword [rsp + 0x20], r15d
call fcn.180010f60
lea r12, [rsp + 0x1f0]
xor edx, edx
lea rcx, [rsp + 0x78]
mov dword [rsp + 0x70], WSAGetLastError
lea r8d, [rdx + 0x60]
call fcn.180015150
xor eax, eax
xor r9d, r9d
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov rdx, r12
mov rcx, r13
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r15d
mov qword [rsp + 0x50], r15
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ebx, eax
test eax, eax
je 0x18002a204
test rsi, rsi
je 0x18002a1d7
mov ecx, dword [rsp + 0x60]
mov dword [rsi], ecx
mov rcx, qword [rsp + 0x50]
test rdi, rdi
je 0x18002a1f1
mov qword [rdi], rcx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18002a20d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18002a20d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 8], eax
mov eax, ebx
mov rcx, qword [rsp + 0x3f0]
xor rcx, rsp
call fcn.180013880
add rsp, 0x408
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x18002b120
Capabilities:
Create process on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x6f8
mov rax, qword [0x18008f100]
xor rax, rsp
mov qword [rsp + 0x6e0], rax
mov rsi, qword [rsp + 0x760]
mov rdi, qword [rsp + 0x768]
xor r15d, r15d
mov r13, r8
mov r12, rcx
mov r14, rdx
lea r8d, [r15 + 0x60]
lea rcx, [rsp + 0x78]
xor edx, edx
mov rbx, r9
mov ebp, r15d
mov dword [rsp + 0x70], WSAGetLastError
call fcn.180015150
xor eax, eax
lea rcx, [rsp + 0x2f2]
xor edx, edx
mov r8d, 0x3e6
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov word [rsp + 0x2f0], r15w
call fcn.180015150
test r13, r13
je 0x18002b1da
lea r8, [rsp + 0x2f0]
mov r9d, 0x1f4
or edx, 0xffffffff
mov rcx, r13
mov dword [rsp + 0x20], r15d
call fcn.180010f50
lea rbp, [rsp + 0x2f0]
lea rcx, [rsp + 0xe2]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0xe0], r15w
call fcn.180015150
test rbx, rbx
je 0x18002b22b
lea r8, [rsp + 0xe0]
mov r9d, 0x104
or edx, 0xffffffff
mov rcx, rbx
mov dword [rsp + 0x20], r15d
call fcn.180010f50
lea r11, [rsp + 0xe0]
mov qword [rsp + 0x80], r11
lea rax, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov rdx, rbp
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov rcx, r14
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r15d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebx, eax
test eax, eax
je 0x18002b2a3
test rsi, rsi
je 0x18002b276
mov ecx, dword [rsp + 0x60]
mov dword [rsi], ecx
mov rcx, qword [rsp + 0x50]
test rdi, rdi
je 0x18002b290
mov qword [rdi], rcx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18002b2ae
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18002b2ae
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r12 + 8], eax
mov eax, ebx
mov rcx, qword [rsp + 0x6e0]
xor rcx, rsp
call fcn.180013880
add rsp, 0x6f8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x18002d150
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rax, rdx
mov rbx, rcx
test rdx, rdx
jne 0x18002d16e
mov dword [rcx + 8], 0x57
add rsp, 0x20
pop rbx
ret
mov edx, r8d
mov rcx, rax
mov qword [rsp + 0x30], rdi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, eax
test eax, eax
jne 0x18002d18e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 8], eax
mov eax, edi
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
Function at 0x18002d1a0
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov edi, edx
mov rbx, rcx
call fcn.18003c880
mov r11, qword [0x1800a34a0]
test r11, r11
jne 0x18002d1cd
xor eax, eax
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
xor edx, edx
mov r8d, edi
mov qword [rsp + 0x30], rsi
lea ecx, [rdx + 2]
call r11
mov rsi, rax
test rax, rax
jne 0x18002d200
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rsi, qword [rsp + 0x30]
mov dword [rbx + 8], eax
xor eax, eax
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov edi, eax
cmp eax, 0xffffffff
jne 0x18002d219
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 8], eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
xor eax, eax
cmp edi, 0xffffffff
setne al
add rsp, 0x20
pop rdi
ret

Function at 0x18002d240
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov edi, edx
mov rbx, rcx
call fcn.18003c880
mov r11, qword [0x1800a34a0]
test r11, r11
jne 0x18002d26d
xor eax, eax
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
xor edx, edx
mov r8d, edi
mov qword [rsp + 0x30], rsi
lea ecx, [rdx + 2]
call r11
mov rsi, rax
test rax, rax
jne 0x18002d2a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rsi, qword [rsp + 0x30]
mov dword [rbx + 8], eax
xor eax, eax
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov edi, eax
cmp eax, 0xffffffff
jne 0x18002d2b9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 8], eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
xor eax, eax
cmp edi, 0xffffffff
setne al
add rsp, 0x20
pop rdi
ret

Function at 0x18002d2e0
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov esi, edx
mov rbx, rcx
call fcn.18003c880
mov r11, qword [0x1800a34a0]
test r11, r11
je 0x18002d324
xor edx, edx
mov r8d, esi
lea ecx, [rdx + 1]
call r11
mov rsi, rax
test rax, rax
jne 0x18002d336
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 8], eax
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov edx, edi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov edi, eax
test eax, eax
jne 0x18002d350
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 8], eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov eax, edi
add rsp, 0x20
pop rdi
ret
Function at 0x18002d3b0
Capabilities:
Get session user name

Disassembly:
push rbx
sub rsp, 0x250
mov rax, qword [0x18008f100]
xor rax, rsp
mov qword [rsp + 0x240], rax
xor eax, eax
mov rbx, rdx
lea rcx, [rsp + 0x32]
mov dword [rsp + 0x20], eax
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x30], ax
call fcn.180015150
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x20], 0x104
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.1800105a0
mov rax, rbx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.180013880
add rsp, 0x250
pop rbx
ret

Function at 0x18002d500
Capabilities:
Suspend thread

Disassembly:
push r12
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], rdi
mov ebx, edx
mov r12, rcx
call fcn.18003c880
cmp qword [0x1800a34a0], 0
je 0x18002d566
lea rcx, [rsp + 0x28]
call fcn.18002b910
nop
mov rax, qword [r12]
lea r8, [rsp + 0x28]
mov edx, ebx
mov rcx, r12
call qword [rax + 0xc8]
mov ebp, eax
test eax, eax
jne 0x18002d56a
lea rcx, [rsp + 0x28]
call fcn.180011810
xor eax, eax
jmp 0x18002d5d9
xor edi, edi
xor esi, esi
cmp dword [rsp + 0x30], esi
jle 0x18002d5cd
nop word [rax + rax]
mov rax, qword [rsp + 0x28]
mov r8d, dword [rax + rsi*4]
xor edx, edx
lea ecx, [rdx + 2]
call qword [0x1800a34a0]
mov rbx, rax
test rsi, rsi
jne 0x18002d5a1
test rax, rax
je 0x18002d5c0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
inc rsi
cmp edi, dword [rsp + 0x30]
jge 0x18002d5cd
jmp 0x18002d580
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r12 + 8], eax
xor ebp, ebp
lea rcx, [rsp + 0x28]
call fcn.180011810
mov eax, ebp
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r12
ret
Function at 0x18002d600
Capabilities:
Resume thread

Disassembly:
push r12
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], rdi
mov ebx, edx
mov r12, rcx
call fcn.18003c880
cmp qword [0x1800a34a0], 0
je 0x18002d666
lea rcx, [rsp + 0x28]
call fcn.18002b910
nop
mov rax, qword [r12]
lea r8, [rsp + 0x28]
mov edx, ebx
mov rcx, r12
call qword [rax + 0xc8]
mov ebp, eax
test eax, eax
jne 0x18002d66a
lea rcx, [rsp + 0x28]
call fcn.180011810
xor eax, eax
jmp 0x18002d6d9
xor edi, edi
xor esi, esi
cmp dword [rsp + 0x30], esi
jle 0x18002d6cd
nop word [rax + rax]
mov rax, qword [rsp + 0x28]
mov r8d, dword [rax + rsi*4]
xor edx, edx
lea ecx, [rdx + 2]
call qword [0x1800a34a0]
mov rbx, rax
test rsi, rsi
jne 0x18002d6a1
test rax, rax
je 0x18002d6c0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
inc rsi
cmp edi, dword [rsp + 0x30]
jge 0x18002d6cd
jmp 0x18002d680
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r12 + 8], eax
xor ebp, ebp
lea rcx, [rsp + 0x28]
call fcn.180011810
mov eax, ebp
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r12
ret
Function at 0x180035300
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x18008f100]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
cmp dword [0x1800a2948], 0
jne 0x180035373
xor eax, eax
lea rcx, [rsp + 0x22]
xor edx, edx
mov r8d, 0x196
mov word [rsp + 0x20], ax
call fcn.180015150
lea rdx, [rsp + 0x20]
mov ecx, 0x101
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x180035369
xor eax, eax
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.180013880
add rsp, 0x1d8
ret
mov dword [0x1800a2948], 1
mov eax, 1
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.180013880
add rsp, 0x1d8
ret

Function at 0x180035cf0
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x18008f100]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rdi, rdx
mov rsi, rcx
call fcn.180013390
test eax, eax
je 0x180035d2c
mov dword [0x1800a2954], 0x32
xor eax, eax
jmp 0x180035dcf
xor eax, eax
mov qword [rsp + 0x90], rbx
xor ebx, ebx
lea rcx, [rsp + 0x20]
lea r9d, [rbx + 4]
lea r8d, [rbx + 1]
mov rdx, rsi
mov dword [0x1800a2954], ebx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x68], eax
call fcn.180035b90
lea rcx, [rsp + 0x20]
call fcn.180035c30
test rax, rax
je 0x180035da7
lea rcx, [rsp + 0x20]
call fcn.180035c30
lea rdx, [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov ebx, eax
test eax, eax
jne 0x180035d9f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
jmp 0x180035dab
mov eax, dword [rsp + 0x54]
mov dword [rdi], eax
jmp 0x180035dbb
mov eax, dword [rsp + 0x20]
test eax, eax
jne 0x180035db5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x1800a2954], eax
lea rcx, [rsp + 0x20]
call fcn.180035c90
mov eax, ebx
mov rbx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.180013880
mov rsi, qword [rsp + 0xa0]
add rsp, 0x80
pop rdi
ret
Function at 0x180037590
Capabilities:
Check for time delay via gettickcount

Disassembly:
push rdi
push r12
push r13
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x70], rsi
mov rbp, rdx
mov rdi, rcx
xor r12d, r12d
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r13d, eax
cmp dword [rdi + 0x140], r12d
je 0x18003761a
lea rdx, [rdi + 0xf0]
lea r8d, [r12 + 1]
lea rcx, [rsp + 0x28]
call fcn.180011c90
nop
or r8d, 0xffffffff
xor edx, edx
lea rcx, [rdi + 0x128]
call fcn.1800113c0
lea rdx, [rdi + 0xd8]
lea rcx, [rdi + 0x128]
call fcn.180011520
mov dword [rdi + 0x140], r12d
lea rcx, [rsp + 0x28]
call fcn.180011cd0
cmp qword [rbp + 0x30], 0
je 0x180037630
mov rcx, qword [rbp + 0x30]
mov rax, qword [rcx]
mov rdx, rbp
call qword [rax + 0x30]
jmp 0x180037668
mov ebx, r12d
cmp dword [rdi + 0x130], ebx
jle 0x180037676
mov rsi, r12
nop
mov rax, qword [rdi + 0x128]
mov rcx, qword [rsi + rax]
mov rax, qword [rcx]
mov rdx, rbp
call qword [rax + 0x30]
test eax, eax
jne 0x180037668
inc ebx
add rsi, 8
cmp ebx, dword [rdi + 0x130]
jl 0x180037640
jmp 0x180037676
mov rcx, rbp
call fcn.180037d40
mov r12d, 1
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, r13d
cmp dword [rdi + 0x148], eax
jae 0x180037696
mov dword [rdi + 0x148], eax
mov ecx, dword [rbp + 0x18]
mov dword [rdi + 0x14c], ecx
mov eax, r12d
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r13
pop r12
pop rdi
ret

Function at 0x180038400
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x48]
test rcx, rcx
je 0x180038418
mov rax, qword [rcx]
call qword [rax + 0x28]
mov rcx, rbx
mov dword [rbx + 0x44], 0
add rsp, 0x20
pop rbx
jmp fcn.180012b40

Function at 0x180039ec0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x18008f100]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbx, rcx
mov rbp, r8
mov esi, edx
lea rcx, [rsp + 0x22]
xor edi, edi
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x20], di
call fcn.180015150
lea rcx, [rsp + 0x20]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x180039f3f
lea edx, [rdi + 0x5c]
lea rcx, [rsp + 0x20]
call fcn.1800138a0
test rax, rax
je 0x180039f2b
mov word [rax], di
lea r8, [rsp + 0x20]
mov r9, rbp
mov edx, esi
mov rcx, rbx
call fcn.180039e10
jmp 0x180039f45
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [0x1800a2db8], eax
test eax, eax
je 0x180039f5b
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test ebx, ebx
sete dil
mov eax, edi
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.180013880
mov rbx, qword [rsp + 0x278]
add rsp, 0x240
pop rdi
pop rsi
pop rbp
ret
Function at 0x18003a750
Capabilities:
Get file size
Read file via mapping

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rbx, rcx
xor r13d, r13d
mov ebp, r13d
cmp dword [rcx + 0x30], ebp
je 0x18003a77e
call fcn.180028570
mov rbp, rax
mov edx, 0xc0000000
mov eax, 0x80000000
cmp dword [rbx + 0x28], r13d
cmovne edx, eax
mov dword [rsp + 0x90], r13d
mov esi, r13d
mov rcx, qword [rbx + 0x38]
cmp dword [rcx - 8], r13d
je 0x18003a802
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
mov r9, rbp
mov r8d, 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbx + 8], rax
cmp rax, 0xffffffffffffffff
je 0x18003a7e5
lea rdx, [rsp + 0x90]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp qword [rbx + 8], 0xffffffffffffffff
je 0x18003a959
cmp dword [rsp + 0x90], r13d
jne 0x18003a802
test esi, esi
je 0x18003a959
mov r14d, 4
mov r12d, r14d
mov eax, 2
cmp dword [rbx + 0x28], r13d
cmovne r12d, eax
lea rdx, [rbx + 0x40]
lea rcx, [rsp + 0x98]
call fcn.1800104e0
nop
cmp dword [rbx + 0x2c], 0
je 0x18003a868
mov rax, qword [rbx + 0x40]
cmp dword [rax - 8], 0
je 0x18003a868
call fcn.180013410
test eax, eax
je 0x18003a868
lea rdx, str.Global_
lea rcx, [rsp + 0x98]
call fcn.18000f8c0
lea rdx, [rbx + 0x40]
lea rcx, [rsp + 0x98]
call fcn.18000fa80
mov rax, qword [rsp + 0x98]
cmp dword [rax - 8], 0
cmove rax, r13
mov qword [rsp + 0x28], rax
mov eax, dword [rbx + 0x20]
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8d, r12d
mov rdx, rbp
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [rbx + 0x10], rax
test rax, rax
je 0x18003a94c
mov edx, 6
cmp dword [rbx + 0x28], 0
cmovne edx, r14d
mov ecx, dword [rbx + 0x20]
mov qword [rsp + 0x20], rcx
mov r9d, dword [rbx + 0x24]
xor r8d, r8d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rbx + 0x18], rax
test rax, rax
je 0x18003a94a
cmp dword [rbx + 0x20], 0
jne 0x18003a936
cmp qword [rbx + 8], 0xffffffffffffffff
je 0x18003a936
mov dword [rsp + 0xa0], esi
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0xa4], eax
mov eax, dword [rbx + 0x24]
mov dword [rsp + 0xa8], eax
mov dword [rsp + 0xac], r13d
mov rcx, qword [rsp + 0xa0]
sub rcx, qword [rsp + 0xa8]
mov qword [rsp + 0xa0], rcx
shr rcx, 0x20
mov edx, dword [rsp + 0xa0]
or r8d, 0xffffffff
test ecx, ecx
cmovg edx, r8d
mov dword [rbx + 0x20], edx
lea rcx, [rsp + 0x98]
call fcn.18000f740
mov eax, 1
jmp 0x18003a95c
jmp 0x18003a94c
lea rcx, [rsp + 0x98]
call fcn.18000f740
mov eax, r13d
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x18003ad90
Capabilities:
Acquire debug privileges

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1800a2dbc]
test eax, eax
jne 0x18003adbe
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, str.SeDebugPrivilege
mov r8d, 1
mov ecx, eax
call fcn.1800288d0
mov dword [0x1800a2dbc], eax
add rsp, 0x28
ret