joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140013540
Capabilities:
Query environment variable

Disassembly:
push rdi
sub rsp, 0x20
mov rdi, rcx
test rcx, rcx
je 0x1400135c2
xor r8d, r8d
mov qword [rsp + 0x38], rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, eax
test eax, eax
je 0x1400135b5
mov rcx, 0xffffffffffffffff
mov qword [rsp + 0x30], rbx
mov eax, 2
mul rsi
lea rdx, [0x140095504]
cmovo rax, rcx
mov rcx, rax
call fcn.140019494
mov rbx, rax
test rax, rax
je 0x1400135a5
mov r8d, esi
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
xor eax, eax
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
xor eax, eax
add rsp, 0x20
pop rdi
ret

Function at 0x140013900
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x140092560]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov edi, ecx
xor esi, esi
xor edx, edx
lea ecx, [rsi + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001398c
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x238
call fcn.140019dc0
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x238
mov rcx, rbx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x140013983
cmp dword [rsp + 0x28], edi
je 0x14001397f
lea rdx, [rsp + 0x20]
mov rcx, rbx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x140013966
jmp 0x140013983
mov esi, dword [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140018190
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x1400139f0
Capabilities:
Get session user name

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x140013a18
test rdx, rdx
je 0x140013a18
mov dword [rsp + 0x30], edx
lea rdx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
cmp eax, 1
sete al
add rsp, 0x28
ret
xor al, al
add rsp, 0x28
ret

Function at 0x140013a20
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x20
xor bl, bl
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140013a46
test al, 0x10
mov ecx, 1
movzx eax, bl
cmovne eax, ecx
add rsp, 0x20
pop rbx
ret
movzx eax, bl
add rsp, 0x20
pop rbx
ret

Function at 0x140013a50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x20
xor bl, bl
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140013a78
bt eax, 0xa
mov ecx, 1
movzx eax, bl
cmovb eax, ecx
add rsp, 0x20
pop rbx
ret
movzx eax, bl
add rsp, 0x20
pop rbx
ret

Function at 0x140013cd0
Capabilities:
Move file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne al
add rsp, 0x28
ret
Function at 0x140016200
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
cmp dword [rcx + 0x210], 0
mov rbx, rcx
jne 0x140016245
lea rax, str.Directory_listener_has_not_been_configured.
mov r8d, 0xab
mov rcx, qword [rcx + 0x218]
lea rdx, str.C:dvsp4_build_swgcompdev_srcNvContainercommonwindowsDirectoryListenerWin32.cpp
mov r9d, 1
mov qword [rsp + 0x20], rax
call fcn.140014810
xor al, al
add rsp, 0x30
pop rbx
ret
cmp qword [rcx + 0x228], 0
je 0x14001625e
lea rax, str.Directory_listener_is_already_running.
mov r8d, 0xb1
jmp 0x14001621f
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x228], rax
test rax, rax
jne 0x140016290
mov rcx, qword [rbx + 0x218]
lea rax, str.Failed_to_start_directory_listener__no_start_event_.
mov r8d, 0xb8
jmp 0x140016226
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 8], rax
test rax, rax
jne 0x1400162c4
mov rcx, qword [rbx + 0x218]
lea rax, str.Failed_to_start_directory_listener__no_quit_event_.
mov r8d, 0xbf
jmp 0x140016226
xor eax, eax
lea r8, [0x140016570]
mov qword [rsp + 0x28], rax
mov r9, rbx
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0x220], rax
test rax, rax
jne 0x140016308
mov rcx, qword [rbx + 0x218]
lea rax, str.Failed_to_create_directory_listener_thread.
mov r8d, 0xc6
jmp 0x140016226
mov rcx, qword [rbx + 0x228]
mov edx, 0x2710
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbx + 0x218]
lea rdx, str.C:dvsp4_build_swgcompdev_srcNvContainercommonwindowsDirectoryListenerWin32.cpp
test eax, eax
je 0x14001633e
lea rax, str.Failed_to_start_directory_listener_thread.
mov r8d, 0xcc
jmp 0x14001622d
lea rax, str.Directory_listener_thread_started.
mov r9d, 4
mov r8d, 0xd0
mov qword [rsp + 0x20], rax
call fcn.140014810
mov al, 1
add rsp, 0x30
pop rbx
ret
Function at 0x140016e50
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0xf0
mov rax, qword [0x140092560]
xor rax, rsp
mov qword [rsp + 0xe0], rax
movups xmm0, xmmword [str.Unknown]
mov rbp, rdx
movzx r15d, r8b
xor edx, edx
mov r14, rcx
lea rcx, [rsp + 0x70]
movaps xmmword [rsp + 0x60], xmm0
lea r8d, [rdx + 0x70]
call fcn.140019dc0
xor edx, edx
mov rcx, rbp
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test eax, eax
je 0x140016f44
mov ecx, edi
lea rdx, [0x140095504]
call fcn.140019494
mov rbx, rax
test rax, rax
je 0x140016f44
mov r9, rax
mov r8d, edi
xor edx, edx
mov rcx, rbp
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x140016f3c
xor eax, eax
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x58]
mov qword [rsp + 0x58], rax
lea rdx, [0x14007b174]
mov dword [rsp + 0x50], eax
mov rcx, rbx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x140016f3c
mov r8, qword [rsp + 0x58]
movzx ecx, word [r8 + 0xc]
movzx edx, word [r8 + 0xe]
movzx eax, word [r8 + 8]
movzx r9d, word [r8 + 0xa]
lea r8, str._u._u._u._u
mov dword [rsp + 0x30], ecx
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x28], edx
mov edx, 0x40
mov dword [rsp + 0x20], eax
call fcn.14000bc60
mov rcx, rbx
call fcn.1400180f0
call fcn.1400139c0
mov rcx, rbp
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
call fcn.1400139c0
mov rcx, qword [r14]
lea rdx, str.C:dvsp4_build_swgcompdev_srcNvContainercommonwindowsNvcPluginLoadHelperWin32.cpp
mov rsi, rax
mov r9d, 3
lea rax, [rsp + 0x60]
sub esi, ebx
mov dword [rsp + 0x40], esi
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rax
lea r8d, [r9 + 0x4d]
lea rax, str.Loading__ls____ls_at__p_took__lu_microseconds
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rax
call fcn.140014810
test rdi, rdi
je 0x140016fb5
test r15b, r15b
je 0x140016fb5
mov rax, qword [r14 + 8]
test rax, rax
je 0x140016fb5
mov dword [rax + 0x40], esi
mov rax, rdi
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.140018190
mov rbx, qword [rsp + 0x130]
add rsp, 0xf0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140016fe0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x470
mov rax, qword [0x140092560]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
xor edx, edx
mov r8d, 0x200
lea rcx, [rsp + 0x260]
call fcn.140019dc0
mov r8d, 0x100
lea rdx, [rsp + 0x260]
mov rcx, rdi
call fcn.140013620
xor ebp, ebp
lea rdx, [rsp + 0x48]
mov ecx, 0x20019
mov qword [rsp + 0x48], rbp
call fcn.140017bb0
test eax, eax
jne 0x140017168
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x208
call fcn.140019dc0
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea r9d, [rbp + 2]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x40], 0x208
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x260]
lea rdx, str.DllDirectories
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x14001715b
cmp word [rsp + 0x50], bp
je 0x14001715b
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
test eax, eax
je 0x140017105
mov rcx, qword [rbx]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea r9d, [rbp + 3]
lea rax, str.Add_DLL_directory__ls_to_the_search_path
mov r8d, 0x17b
lea rdx, str.C:dvsp4_build_swgcompdev_srcNvContainercommonwindowsNvcPluginLoadHelperWin32.cpp
mov qword [rsp + 0x20], rax
call fcn.140014810
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140017193
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbx]
lea rbp, str.Failed_to_add_DLL_directory__ls_to_the_search_path._Error__u
mov dword [rsp + 0x30], eax
lea rdx, str.C:dvsp4_build_swgcompdev_srcNvContainercommonwindowsNvcPluginLoadHelperWin32.cpp
lea rax, [rsp + 0x50]
mov r9d, 1
mov qword [rsp + 0x28], rax
mov r8d, 0x183
mov qword [rsp + 0x20], rbp
call fcn.140014810
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, [rsp + 0x50]
mov rdx, rbp
mov r9d, eax
mov ecx, 0xd
call fcn.140004f10
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140017193
mov rcx, qword [rbx]
lea rdx, str.C:dvsp4_build_swgcompdev_srcNvContainercommonwindowsNvcPluginLoadHelperWin32.cpp
mov dword [rsp + 0x28], eax
mov r9d, 4
lea rax, str.Use_default_DLL_search_path__result__ld_
mov r8d, 0x18a
mov qword [rsp + 0x20], rax
call fcn.140014810
mov r8, rsi
mov rdx, rdi
mov rcx, rbx
call fcn.1400171e0
xor ecx, ecx
movzx ebx, al
call qword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
movzx eax, bl
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.140018190
mov rbx, qword [rsp + 0x4a8]
add rsp, 0x470
pop rdi
pop rsi
pop rbp
ret
Function at 0x140017bb0
Capabilities:
Accept command line arguments

Disassembly:
push rbp
push r14
sub rsp, 0xc8
mov rax, qword [0x140092560]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rax, qword gs:[0x58]
mov ebp, ecx
mov ecx, dword [0x140095598]
mov r14, rdx
mov edx, 0x390
mov rax, qword [rax + rcx*8]
mov ecx, dword [rdx + rax]
cmp dword [0x140095500], ecx
jg 0x140017caa
jmp 0x140017c70
movzx eax, word [rdx + rcx*2]
inc rcx
cmp ax, word [r12 + rcx*2 - 2]
jne 0x140017c1a
cmp rcx, 5
jne 0x140017c00
jmp 0x140017d4a
xor ecx, ecx
nop dword [rax]
movzx eax, word [rdx + rcx*2]
inc rcx
cmp ax, word [r13 + rcx*2 - 2]
jne 0x140017c3a
cmp rcx, 5
jne 0x140017c20
jmp 0x140017d4a
xor eax, eax
nop dword [rax]
movzx ecx, word [rdx + rax*2]
cmp cx, word [r15 + rax*2]
jne 0x140017d76
movzx ecx, word [rdx + rax*2 + 2]
cmp cx, word [r15 + rax*2 + 2]
jne 0x140017d76
add rax, 2
cmp rax, 0x10
je 0x140017d4a
jmp 0x140017c40
mov rdx, qword [0x1400954f8]
mov r9d, ebp
xor r8d, r8d
mov qword [rsp + 0x20], r14
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140018190
add rsp, 0xc8
pop r14
pop rbp
ret
lea rcx, [0x140095500]
call fcn.140018c18
cmp dword [0x140095500], 0xffffffff
jne 0x140017c70
mov qword [rsp + 0xf0], rbx
mov qword [rsp + 0xc0], rsi
mov dword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x30]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov rsi, rax
test rax, rax
je 0x140017daa
mov r8d, dword [rsp + 0x30]
xor ebx, ebx
test r8d, r8d
jle 0x140017da1
mov qword [rsp + 0xb8], rdi
mov rdi, rax
mov qword [rsp + 0xb0], r12
lea r12, [0x140078050]
mov qword [rsp + 0xa8], r13
lea r13, str._cfg
mov qword [rsp + 0xa0], r15
lea r15, str.__configuration
nop
mov rdx, qword [rdi]
xor ecx, ecx
jmp 0x140017c00
lea eax, [r8 - 1]
cmp ebx, eax
jge 0x140017d76
mov r8, qword [rdi + 8]
lea rcx, [0x1400952f0]
add rdi, 8
inc ebx
or r9, 0xffffffffffffffff
mov edx, 0x104
call fcn.1400513f8
mov r8d, dword [rsp + 0x30]
inc ebx
add rdi, 8
cmp ebx, r8d
jl 0x140017d40
mov r15, qword [rsp + 0xa0]
mov r13, qword [rsp + 0xa8]
mov r12, qword [rsp + 0xb0]
mov rdi, qword [rsp + 0xb8]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
cmp word [0x1400952f0], 0
lea rbx, str.SOFTWARENVIDIA_CorporationNvContainer
mov rsi, qword [rsp + 0xc0]
je 0x140017e2c
movaps xmm0, xmmword [str.SYSTEMCurrentControlSetServices_s]
lea r9, [0x1400952f0]
movaps xmm1, xmmword [0x14007c650]
lea r8, [rsp + 0x40]
movzx eax, word [0x14007c688]
mov edx, 0x104
movaps xmmword [rsp + 0x40], xmm0
mov rcx, rbx
movaps xmm0, xmmword [0x14007c660]
movaps xmmword [rsp + 0x60], xmm0
movsd xmm0, qword [0x14007c680]
movaps xmmword [rsp + 0x50], xmm1
movaps xmm1, xmmword [0x14007c670]
movsd qword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm1
mov word [rsp + 0x88], ax
call fcn.14000bc60
lea rcx, [0x140095500]
mov qword [0x1400954f8], rbx
call fcn.140018bb8
mov rbx, qword [rsp + 0xf0]
jmp 0x140017c70
Function at 0x14001bb64
Capabilities:
Allocate thread local storage

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
lea r9, str.FlsAlloc
xor ecx, ecx
lea r8, [0x14007c9e8]
lea rdx, str.FlsAlloc
call fcn.14001b6e0
mov rbx, rax
test rax, rax
je 0x14001bba4
mov rcx, rax
call fcn.1400198b8
mov rcx, rdi
call rbx
jmp 0x14001bbaa
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14001bc0c
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ebx, ecx
lea r9, str.FlsGetValue
mov ecx, 2
lea r8, [0x14007ca10]
lea rdx, str.FlsGetValue
call fcn.14001b6e0
mov rdi, rax
test rax, rax
je 0x14001bc4d
mov rcx, rax
call fcn.1400198b8
mov ecx, ebx
call rdi
jmp 0x14001bc55
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14001bc60
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, str.FlsSetValue
mov edi, ecx
lea rdx, str.FlsSetValue
mov ecx, 3
lea r8, [0x14007ca28]
call fcn.14001b6e0
mov rsi, rax
test rax, rax
je 0x14001bcac
mov rcx, rax
call fcn.1400198b8
mov rdx, rbx
mov ecx, edi
call rsi
jmp 0x14001bcb7
mov rdx, rbx
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x2da081540
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.2da082340
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.2da082340
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]
Function at 0x2da0815b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x2da089054]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x2da081760
mov rax, qword [0x2da089058]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x2da0815fc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x2da081687
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x2da0815e0
mov rcx, r12
call fcn.2da081e50
mov rbp, rax
test rax, rax
je 0x2da0817bd
mov rax, qword [0x2da089058]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.2da081f80
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x2da089058]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x2da0817a2
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x2da081680
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x2da081710
add dword [0x2da089054], 1
cmp ebx, 8
jae 0x2da0816b8
test bl, 4
jne 0x2da081770
test ebx, ebx
je 0x2da0816a9
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x2da081790
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x2da0816a9
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x2da0816ea
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rdi, qword [0x2da089058]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x2da081680
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.2da081540
xor edi, edi
jmp 0x2da081607
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x2da0816a9
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x2da0816a9
mov rax, qword [0x2da089058]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.2da081540
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.2da081540
nop
nop dword [rax]
Function at 0x2da081ac0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x2da089080]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x2da089060]
test rbx, rbx
je 0x2da081b14
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x2da081b0b
test r12, r12
je 0x2da081b0b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x2da081af0
lea rcx, [0x2da089080]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x2da081e50
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [sym.loader.dll_Ordinal_28]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x2da081ec9
mov rcx, r10
call fcn.2da081d20
test eax, eax
je 0x2da081ec9
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x2da081ec6
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x2da081ebd
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x2da081ec9
add r8, 0x28
cmp r8, r9
jne 0x2da081ea8
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x2da082550
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2da08257c
mov eax, 0
jmp 0x2da0825c4
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2da0825a5
mov eax, 0
jmp 0x2da0825c4
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 0x88]
mov edx, eax
mov rax, qword [rbp + 0x10]
add rdx, rax
mov rax, qword [rbp + 0x18]
mov qword [rax], rdx
mov eax, 1
add rsp, 0x10
pop rbp
ret
Function at 0x140168a60
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r13
push r14
push r15
mov rax, qword gs:[0x30]
xor r10d, r10d
mov rcx, qword [rax + 0x60]
mov rax, qword [rcx + 0x18]
mov rcx, qword [rax + 0x10]
mov rax, qword [rcx]
mov rcx, qword [rax]
mov rbp, qword [rcx + 0x30]
movsxd rax, dword [rbp + 0x3c]
mov ecx, dword [rax + rbp + 0x88]
add rcx, rbp
mov ebx, dword [rcx + 0x1c]
mov r14d, dword [rcx + 0x20]
mov r15d, dword [rcx + 0x24]
mov r13d, dword [rcx + 0x14]
mov r11d, dword [rcx + 0x18]
add rbx, rbp
add r14, rbp
add r15, rbp
test r13d, r13d
je 0x140168b21
nop dword [rax]
mov eax, dword [rbx]
test eax, eax
je 0x140168b15
xor r8d, r8d
mov r12d, eax
test r11d, r11d
je 0x140168b15
mov r9, r14
mov rdx, r15
movzx eax, word [rdx]
cmp eax, r10d
jne 0x140168b05
mov esi, dword [r9]
lea rdi, [0x140168968]
mov ecx, reloc.WS2_32.dll_ntohs
add rsi, rbp
repe cmpsb byte [rsi], byte [rdi]
je 0x140168b40
inc r8d
add rdx, 2
add r9, 4
cmp r8d, r11d
jb 0x140168ae7
inc r10d
add rbx, 4
cmp r10d, r13d
jb 0x140168ad0
xor eax, eax
mov rbx, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
pop r15
pop r14
pop r13
pop r12
ret
lea rax, [r12 + rbp]
jmp 0x140168b23

Function at 0x140168b50
Capabilities:
Access peb ldr_data
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x20
mov r12, rdx
mov r13d, ecx
call fcn.140168a60
mov r8, qword gs:[0x30]
lea rdx, [0x140168978]
mov rsi, rax
mov r9, qword [r8 + 0x60]
mov r8, qword [r9 + 0x18]
mov r9, qword [r8 + 0x10]
mov r8, qword [r9]
mov r9, qword [r8]
mov rbx, qword [r9 + 0x30]
mov rcx, rbx
call rsi
lea rdx, [0x140168988]
mov rcx, rbx
call rsi
lea rdx, [0x1401689a0]
mov rcx, rbx
mov rdi, rax
call rsi
lea rcx, [0x1401689b0]
mov rbp, rax
call rdi
lea rdx, [0x1401689c0]
mov rcx, rax
call rsi
xor ecx, ecx
call rdi
mov edi, dword [0x14016f0a8]
mov edx, dword [0x14016f0b0]
xor ebx, ebx
add rdi, rax
lea r9, [rsp + 0x50]
lea r8d, [rbx + 0x40]
mov rcx, rdi
mov qword [0x14016f098], rax
mov dword [rsp + 0x50], ebx
call rbp
mov rdx, qword [0x14016f0a8]
mov eax, dword [0x14016f0b0]
add rdx, qword [0x14016f098]
test eax, eax
je 0x140168c39
nop word [rax + rax]
movzx eax, byte [0x14016f0b4]
inc ebx
inc rdx
xor byte [rdx - 1], al
mov eax, dword [0x14016f0b0]
cmp ebx, eax
jb 0x140168c20
mov r8d, dword [rsp + 0x50]
lea r9, [rsp + 0x50]
mov edx, eax
mov rcx, rdi
call rbp
mov r11d, dword [0x14016f0a0]
mov rdx, r12
add r11, qword [0x14016f098]
mov ecx, r13d
mov qword [0x14016f088], r11
call r11
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret