joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2fc559640
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc55a720
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc55a042
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc57c108]
test eax, eax
je 0x2fc55a0da
lea rax, [0x2fc57c0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc57c110]
mov qword [rbp - 8], rax
jmp 0x2fc55a0be
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc55a0b2
cmp qword [rbp - 0x10], 0
je 0x2fc55a0b2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc55a078
lea rax, [0x2fc57c0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc55a0db
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc55a1e0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc55a208
mov eax, 0
jmp 0x2fc55a256
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc55a231
mov eax, 0
jmp 0x2fc55a256
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc55a251
mov eax, 0
jmp 0x2fc55a256
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc55a25c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc55a2da
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc55a2d1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc55a2d1
mov rax, qword [rbp - 8]
jmp 0x2fc55a2ef
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc55a2a4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140c12e60
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x140c12e6d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x140c12e7d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140c12e65
lea eax, [rcx + 1]
jmp 0x140c12e8b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x140c12e9e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140c12e84
sub eax, 3
jb 0x140c12ebe
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x140c12f0d
sar eax, 1
movsxd rbp, eax
jb 0x140c12ef4
jmp 0x140c12ecc
add ebx, ebx
jne 0x140c12eca
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140c12ef4
inc ecx
add ebx, ebx
jne 0x140c12eda
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140c12ef4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140c12eed
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140c12edc
add ecx, 2
jmp 0x140c12ef9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140c12e22
jmp 0x140c12e6d
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
sub rsp, 0x28
lea rdi, [rsi + 0xc03000]
mov eax, dword [rdi]
or eax, eax
je 0x140c12f6d
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xc134ec]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x140c12f1d
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x140c12f67
mov qword [rbx], rax
add rbx, 8
jmp 0x140c12f3d
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x140c12fb1
cmp al, 0xef
ja 0x140c12f99
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x140c12f79
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x140c12f88
mov eax, dword [rdi]
add rdi, 4
jmp 0x140c12f88
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
mov byte [fcn.140c13030], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.140c13030
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x140c13020
sub rsp, 0xffffffffffffff80
jmp 0x1400014e0
Function at 0x2fc4d0650
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4d1730
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d1052
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f3108]
test eax, eax
je 0x2fc4d10ea
lea rax, [0x2fc4f30e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f3110]
mov qword [rbp - 8], rax
jmp 0x2fc4d10ce
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4d10c2
cmp qword [rbp - 0x10], 0
je 0x2fc4d10c2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4d1088
lea rax, [0x2fc4f30e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d10eb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d11f0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d1218
mov eax, 0
jmp 0x2fc4d1266
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4d1241
mov eax, 0
jmp 0x2fc4d1266
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d1261
mov eax, 0
jmp 0x2fc4d1266
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x180001b5c
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
mov dword [rax + 0x18], r8d
push rdi
push r14
push r15
sub rsp, 0x40
xor ebx, ebx
mov r8b, 0x5c
mov rbp, rdx
mov rdi, rcx
cmp byte [rdx], r8b
je 0x180001ba0
mov ecx, dword [rcx + 0x70]
lea edx, [rbx + 0x57]
mov ebx, edx
mov r8d, 0xc3b9
call fcn.18000c5ec
jmp 0x180001cbb
lea rcx, [rdx + 1]
cmp byte [rcx], r8b
je 0x180001bbb
mov edx, 0x57
mov r8d, 0xc3b9
mov ebx, edx
mov ecx, dword [rdi + 0x70]
jmp 0x180001b96
inc rcx
or rdx, 0xffffffffffffffff
inc rdx
cmp byte [rcx + rdx], bl
jne 0x180001bc2
call fcn.18000bb88
test rax, rax
je 0x180001ba9
xor r9d, r9d
lea rdx, [rax + 1]
lea rcx, str.pipe_
lea r8d, [r9 + 5]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strnicmp_l]
test eax, eax
jne 0x180001ba9
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r15d, eax
mov r14d, ebx
jmp 0x180001c41
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp eax, 0xe7
jne 0x180001d05
mov esi, 0x1388
mov rcx, rbp
mov edx, esi
sub edx, r14d
call qword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
test eax, eax
je 0x180001cf0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r14d, eax
sub r14d, r15d
cmp r14d, esi
ja 0x180001cd6
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], 0x40000080
xor r8d, r8d
mov edx, 0xc0000000
mov dword [rsp + 0x20], 3
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rdi + 0x30], rax
cmp rax, 0xffffffffffffffff
je 0x180001bfe
xor r9d, r9d
mov dword [rsp + 0x70], 2
xor r8d, r8d
lea rdx, [rsp + 0x70]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
jne 0x180001cbb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rdi + 0x70]
mov r8d, 0xc3b4
mov edx, eax
mov ebx, eax
call fcn.18000c5ec
mov rcx, qword [rdi + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or qword [rdi + 0x30], 0xffffffffffffffff
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
mov ecx, dword [rdi + 0x70]
mov edx, 0xe7
mov r8d, 0xc3dc
call fcn.18000c5ec
mov eax, 0x5b4
jmp 0x180001cbd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov edx, eax
mov r8d, 0xc3dc
jmp 0x180001bb6
mov ecx, dword [rdi + 0x70]
mov r8d, 0xc3dc
mov edx, esi
call fcn.18000c5ec
mov eax, esi
jmp 0x180001cbd
Function at 0x180002274
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rdi, rdx
mov rsi, rcx
lock inc dword [rdx + 0x5c]
mov edx, dword [rdx + 0x58]
xor r9d, r9d
add rdx, qword [rdi + 0x48]
and dword [rdi + 0x10], 0
and dword [rdi + 0x14], 0
and qword [rdi + 0x18], 0
mov rcx, qword [rcx + 0x30]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1800022e9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov ebx, eax
call sym.sni.dll_SNIPacketRelease
cmp ebx, 0x3e5
je 0x180002336
cmp ebx, 0xea
je 0x1800022f1
mov r8d, 0xc3b4
mov edx, ebx
mov ecx, dword [rsi + 0x70]
call fcn.18000c5ec
jmp 0x180002336
mov rcx, rdi
call sym.sni.dll_SNIPacketRelease
mov rcx, qword [rsi + 0x30]
lea r8, [rsp + 0x40]
xor r9d, r9d
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x18000231c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov edx, eax
mov r8d, 0xc3b4
jmp 0x1800022df
mov eax, dword [rsp + 0x40]
test eax, eax
jne 0x180002331
mov ebx, 0xe9
mov r8d, 0xc3b6
jmp 0x1800022dd
xor ebx, ebx
add dword [rdi + 0x50], eax
mov rsi, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x1800023e4
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rdi, rdx
xor ebx, ebx
mov edx, dword [rdx + 0x58]
mov rbp, r8
mov rsi, rcx
add rdx, qword [rdi + 0x48]
mov r8d, dword [rdi + 0x50]
mov qword [rdi + 0x10], rbx
cmp qword [rcx + 0x78], rbx
je 0x180002426
mov edx, 0x139f
mov ecx, 1
mov ebx, edx
jmp 0x18000248c
mov qword [rdi + 0x18], rbx
lock inc dword [rdi + 0x5c]
mov rcx, qword [rcx + 0x30]
xor r9d, r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x180002460
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov ebx, eax
call sym.sni.dll_SNIPacketRelease
cmp ebx, 0x3e5
je 0x180002497
mov edx, ebx
jmp 0x180002489
mov rcx, rdi
call sym.sni.dll_SNIPacketRelease
mov rcx, qword [rsi + 0x30]
xor r9d, r9d
mov r8, rbp
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x180002497
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov edx, eax
mov ecx, dword [rsi + 0x70]
mov r8d, 0xc3b4
call fcn.18000c5ec
mov rbp, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x180003d34
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x450
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov eax, 9
xor ebx, ebx
mov dword [rsp + 0x30], eax
mov r12, r9
mov dword [rsp + 0x34], eax
mov r15, r8
mov byte [rsp + 0x38], bl
mov r14, rdx
mov byte [rsp + 0x138], bl
mov rbp, rcx
mov qword [r11 - 0x50], rbx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [rsp + 0x4b0]
lea r8, [rbp + 0x100]
mov rdx, rbp
lea rcx, [rsp + 0x30]
mov r13d, eax
call fcn.1800036f8
test eax, eax
jne 0x180003eb2
cmp qword [0x1800238b8], rbx
je 0x180003eb2
lea rsi, [rbp + 0x40b]
mov rcx, rsi
lea rdx, [rsp + 0x30]
call fcn.1800049d8
test eax, eax
je 0x180003eb2
lea rdx, [rbp + 0x300]
cmp byte [rdx], bl
je 0x180003e4b
mov ecx, dword [rsp + 0x30]
test ecx, ecx
je 0x180003e1f
sub ecx, 1
je 0x180003e16
sub ecx, 3
je 0x180003e0d
cmp ecx, 3
jne 0x180003eb2
lea r8, [0x18001b940]
jmp 0x180003e26
lea r8, [0x18001b948]
jmp 0x180003e26
lea r8, [0x18001b944]
jmp 0x180003e26
lea r8, str.http
or r9d, 0xffffffff
mov ecx, 0x800
mov dword [rsp + 0x28], r9d
mov qword [rsp + 0x20], rdx
mov edx, 0x20000
call qword [sym.imp.KERNEL32.dll_CompareStringA]
cmp eax, 2
je 0x180003e6c
jmp 0x180003eb2
mov rax, qword [r14]
test rax, rax
je 0x180003eaa
mov ecx, dword [rsp + 0x30]
cmp dword [rax], ecx
je 0x180003e67
mov rax, qword [rax + 0x408]
test rax, rax
jne 0x180003e57
test rax, rax
je 0x180003eaa
or r14d, 0xffffffff
cmp edi, r14d
je 0x180003e8b
call qword [sym.imp.KERNEL32.dll_GetTickCount]
add edi, r13d
sub edi, eax
mov eax, 0xfffffffe
cmp edi, r14d
cmove edi, eax
mov r9, r12
mov dword [rsp + 0x20], edi
lea r8, [rsp + 0x30]
mov rdx, r15
mov rcx, rbp
call fcn.180003bd4
test eax, eax
jne 0x180003eaa
mov bl, 1
jmp 0x180003eb2
mov rcx, rsi
call fcn.180004cc4
mov al, bl
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.180014440
mov rbx, qword [rsp + 0x498]
add rsp, 0x450
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x180005738
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x1c8]
sub rsp, 0x2c0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
xor esi, esi
mov ebx, esi
xor eax, eax
lock cmpxchg qword [0x1800238c0], rsi
jne 0x180005881
lea ecx, [rsi + 0x18]
call fcn.18001446c
mov rdi, rax
test rax, rax
jne 0x180005794
lea ebx, [rsi + 0xe]
jmp 0x18000586f
mov qword [rax], rsi
lea rdx, [rsp + 0x50]
movzx eax, word [0x18001bd60]
mov r9d, 1
movups xmm0, xmmword [str.SoftwareMicrosoftMicrosoft_SQL_Server90]
mov word [rsp + 0x78], ax
xor r8d, r8d
mov al, byte [0x18001bd62]
mov rcx, 0xffffffff80000002
movups xmm1, xmmword [0x18001bd48]
mov byte [rsp + 0x7a], al
lea rax, [rsp + 0x38]
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x20], rax
movsd xmm0, qword [0x18001bd58]
movups xmmword [rsp + 0x60], xmm1
movsd qword [rsp + 0x70], xmm0
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, eax
test eax, eax
jne 0x180005850
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rbp - 0x80]
mov dword [rsp + 0x30], 0x104
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SharedCode
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x38]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x180005850
cmp dword [rsp + 0x34], 1
je 0x1800058ab
mov ebx, ntohs
mov rcx, qword [rdi]
test rcx, rcx
je 0x18000585e
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, 0x18
mov rcx, rdi
call fcn.180014578
test ebx, ebx
je 0x180005881
mov r8d, 0xc3d8
mov edx, ebx
mov ecx, 4
call fcn.18000c5ec
mov eax, ebx
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.180014440
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
mov eax, dword [rsp + 0x30]
cmp rax, 0x105
jae 0x180005987
movsd xmm0, qword [str.instapi.dll]
lea r8, [0x18001b9a0]
mov byte [rbp + rax - 0x80], sil
lea rcx, [rbp + 0x90]
mov eax, dword [0x18001bd80]
xor r9d, r9d
mov dword [rsp + 0x48], eax
mov edx, 0x111
lea rax, [rsp + 0x40]
movsd qword [rsp + 0x40], xmm0
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
call fcn.180001908
test eax, eax
jns 0x180005914
mov ebx, 0x57
jmp 0x180005850
lea rcx, [rbp + 0x90]
mov byte [rbp + 0x1a0], sil
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rdi], rax
test rax, rax
jne 0x18000593d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x180005850
lea rdx, str.GetSvcInstanceIDFromName
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 8], rax
test rax, rax
je 0x180005930
mov rcx, qword [rdi]
lea rdx, str.GetSQLInstanceRegStringByID
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0x10], rax
test rax, rax
je 0x180005930
xor eax, eax
lock cmpxchg qword [0x1800238c0], rdi
jne 0x180005850
xor eax, eax
jmp 0x180005883
call fcn.180014694
int3
Function at 0x18000bb00
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
cmp dword [0x1800239e0], 0x40
jb 0x18000bb2a
mov ebx, 0xa4
mov edx, ebx
mov r8d, 0xc3b4
mov ecx, 9
call fcn.18000c5ec
mov eax, ebx
jmp 0x18000bb81
xor ebx, ebx
lea r8, [0x18000ba70]
mov qword [rsp + 0x28], rbx
xor r9d, r9d
mov edx, 0x1000
mov dword [rsp + 0x20], ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [0x1800239e0]
lea r8, [0x180027a10]
mov qword [r8 + rdx*8], rax
inc edx
mov dword [0x1800239e0], edx
dec edx
cmp qword [r8 + rdx*8], rbx
jne 0x18000bb7f
mov dword [0x1800239e0], edx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov edx, eax
jmp 0x18000bb16
xor eax, eax
add rsp, 0x30
pop rbx
ret

Function at 0x18000bef8
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x140
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x130], rax
xor esi, esi
mov byte [rsp + 0x20], 0
xor ebx, ebx
mov rbp, rcx
mov edi, 0x104
test rcx, rcx
je 0x18000bf65
mov edx, edi
mov rax, rcx
cmp byte [rax], bl
je 0x18000bf49
inc rax
sub rdx, 1
jne 0x18000bf3c
mov rax, rdx
neg rax
sbb eax, eax
not eax
and eax, 0x80070057
test rdx, rdx
je 0x18000bf6a
mov rbx, rdi
sub rbx, rdx
jmp 0x18000bf6a
mov eax, 0x80070057
test eax, eax
js 0x18000c016
lea rax, [rbx - 1]
cmp rax, 0x102
ja 0x18000c00f
mov edx, edi
mov byte [rsp + 0x124], sil
sub edx, ebx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x18000bfa5
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x18000c014
sub rdi, rbx
mov eax, eax
cmp rdi, rax
ja 0x18000bfb6
mov eax, reloc.WS2_32.dll_WSAGetLastError
jmp 0x18000c018
mov al, byte [rsp + 0x20]
mov ebx, 0x105
test al, al
je 0x18000bfe6
cmp al, 0x5c
jne 0x18000bfce
cmp byte [rsp + 0x21], sil
je 0x18000bfe6
lea r8, [0x18001b984]
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.180002988
test eax, eax
js 0x18000c016
mov r8, rbp
lea rcx, [rsp + 0x20]
mov rdx, rbx
call fcn.180002988
test eax, eax
js 0x18000bfaf
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
jne 0x18000c020
jmp 0x18000bf9d
mov eax, 0x57
test eax, eax
je 0x18000c020
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.180014440
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x18000c5ec
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov edi, edx
or edx, 0xffffffff
mov eax, ecx
mov ecx, dword [0x180023040]
mov ebx, r8d
cmp ecx, edx
je 0x18000c63e
cmp dword [0x180023044], edx
je 0x18000c63e
cmp dword [0x180023048], edx
je 0x18000c63e
mov edx, eax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [0x180023044]
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [0x180023048]
mov edx, edi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x180010d7c
Capabilities:
Send data
Send data on socket
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
push rsi
sub rsp, 0x60
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x50], rax
xor r8d, r8d
lea esi, [r8 + 2]
mov edx, esi
mov ecx, esi
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180010e77
lea r9, [rsp + 0x34]
mov dword [rsp + 0x34], 1
mov edx, 0xffff
mov dword [rsp + 0x20], 4
lea r8d, [rsi + 0x1e]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x180010e6e
lea r9, [rsp + 0x38]
mov dword [rsp + 0x38], 0x10000
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 0x1002
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x180010e16
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
or ecx, 0xffffffff
mov word [rsp + 0x40], si
call qword [sym.imp.WS2_32.dll_htonl]
mov ecx, 0x59a
mov dword [rsp + 0x44], eax
call qword [sym.imp.WS2_32.dll_htons]
xor r9d, r9d
mov dword [rsp + 0x28], reloc.WS2_32.dll_recv
mov word [rsp + 0x42], ax
lea rdx, [rsp + 0x30]
lea rax, [rsp + 0x40]
mov byte [rsp + 0x30], sil
mov rcx, rbx
mov qword [rsp + 0x20], rax
lea r8d, [r9 + 1]
call qword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
je 0x180010e6e
mov rax, rbx
jmp 0x180010e7b
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.180014440
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rsi
ret