joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14005c2b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x50
mov rax, qword [rcx + 8]
mov ebp, r8d
mov ecx, 0x3e80000
mov rbx, qword [rax + 0x2f0]
mov rax, qword [rdx + 0x80]
movzx edx, word [rdx + 0x68]
movzx edi, word [rax + 0x18]
mov eax, 0x40000
shl edi, 0x10
cmp edi, eax
cmovl edi, eax
shl edx, 0x10
call fcn.14004af40
mov dword [rsp + 0x24], eax
mov ecx, eax
cmp eax, 0x28f
jge 0x14005c306
xor eax, eax
add rsp, 0x50
pop rdi
pop rbp
pop rbx
ret
mov eax, dword [rbx + 0x24]
mov qword [rsp + 0x80], rsi
mov esi, dword [rbx + 0x28]
mov qword [rsp + 0x48], r12
mov r12d, dword [rbx + 0x3c]
mov qword [rsp + 0x40], r13
mov r13d, dword [rbx + 0x38]
mov dword [rsp + 0x88], eax
mov eax, dword [rbx + 0x2c]
mov qword [rsp + 0x38], r14
mov r14d, dword [rbx + 0x40]
mov dword [rsp + 0x70], eax
mov eax, dword [rbx + 0x34]
mov qword [rsp + 0x30], r15
mov r15d, dword [rbx + 0x30]
mov dword [rsp + 0x78], eax
mov dword [rsp + 0x20], r12d
test ebp, ebp
jg 0x14005c35d
mov ebp, 0x4b0000
jmp 0x14005c36b
shl ebp, 0x10
mov edx, ecx
mov ecx, ebp
call fcn.14004d520
mov ebp, eax
bsr ecx, ebp
bsr eax, edi
shl r12d, 0x10
add eax, ecx
cmp eax, 0x2e
jl 0x14005c381
mov eax, r12d
jmp 0x14005c38a
mov edx, edi
mov ecx, ebp
call fcn.14004d520
mov r9d, dword [rsp + 0x88]
mov ecx, r9d
shl ecx, 0x10
cmp eax, ecx
jge 0x14005c3a6
shl esi, 0x10
mov ecx, esi
jmp 0x14005c495
mov r8d, dword [rsp + 0x70]
mov edx, r8d
shl edx, 0x10
mov dword [rsp + 0x88], edx
cmp eax, edx
jge 0x14005c404
mov ebx, r8d
mov edx, edi
sub ebx, r9d
call fcn.14004af40
mov ecx, ebp
sub ecx, eax
test ebx, ebx
je 0x14005c3f4
sub r15d, esi
mov r8d, ebx
mov edx, r15d
call fcn.14004d3f0
shl esi, 0x10
mov edx, edi
mov ecx, esi
mov ebx, eax
call fcn.14004af40
add ebx, eax
jmp 0x14005c49e
mov esi, dword [rsp + 0x78]
mov ebx, esi
mov r8d, dword [rsp + 0x70]
shl ebx, 0x10
jmp 0x14005c411
mov esi, dword [rsp + 0x78]
mov ebx, esi
shl ebx, 0x10
cmp eax, ebx
jge 0x14005c450
mov ecx, dword [rsp + 0x88]
mov r12d, esi
mov edx, edi
sub r12d, r8d
call fcn.14004af40
mov ecx, ebp
sub ecx, eax
test r12d, r12d
je 0x14005c455
sub r13d, r15d
mov r8d, r12d
mov edx, r13d
call fcn.14004d3f0
shl r15d, 0x10
mov edx, edi
mov ecx, r15d
mov ebx, eax
call fcn.14004af40
add ebx, eax
jmp 0x14005c49e
cmp eax, r12d
jge 0x14005c48e
mov r15d, dword [rsp + 0x20]
mov edx, edi
mov ecx, ebx
call fcn.14004af40
sub ebp, eax
sub r15d, esi
je 0x14005c48e
sub r14d, r13d
mov r8d, r15d
mov edx, r14d
mov ecx, ebp
call fcn.14004d3f0
shl r13d, 0x10
mov edx, edi
mov ecx, r13d
mov ebx, eax
call fcn.14004af40
add ebx, eax
jmp 0x14005c49e
shl r14d, 0x10
mov ecx, r14d
mov edx, edi
call fcn.14004af40
mov ebx, eax
mov edx, dword [rsp + 0x24]
mov ecx, ebx
mov r15, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
mov r13, qword [rsp + 0x40]
mov r12, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x80]
add rsp, 0x50
pop rdi
pop rbp
pop rbx
jmp fcn.14004af40
Function at 0x1400a8550
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push r14
sub rsp, 0x250
mov rax, qword [0x1400f0040]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov eax, dword [rcx + 0x58]
lea rbx, [rsp + 0x30]
mov dword [rsp + 0x40], eax
mov ebp, r9d
mov eax, dword [rcx + 0x5c]
mov rsi, rcx
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x290]
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x38], edx
mov dword [rsp + 0x3c], r8d
mov dword [rsp + 0x30], r9d
mov qword [rsp + 0x278], rdi
nop dword [rax]
mov r10d, dword [rbx + 0x14]
mov eax, r10d
mov r14d, dword [rbx + 4]
cmp r10d, r14d
mov r9d, dword [rbx + 0xc]
cmovg eax, r14d
cmp r9d, eax
jl 0x1400a86ec
cmp r10d, r14d
mov eax, r14d
cmovg eax, r10d
cmp r9d, eax
jg 0x1400a86ec
cmp r10d, r14d
jne 0x1400a85f0
sub rbx, 0x10
jmp 0x1400a8734
mov edx, dword [rsi + 0x88]
xor r9d, r9d
cmp r10d, r14d
setge r9b
inc r9d
cmp edx, r9d
je 0x1400a8662
mov eax, dword [rsi + 4]
mov ecx, eax
mov r8d, dword [rsi + 8]
neg ecx
cmp r10d, r14d
jge 0x1400a8624
dec eax
add eax, r10d
and eax, ecx
sub eax, r10d
jmp 0x1400a862c
and ecx, r10d
mov eax, r10d
sub eax, ecx
cmp eax, r8d
setge r11b
test edx, edx
je 0x1400a864b
movzx edx, r11b
mov rcx, rsi
call fcn.1400a9700
test al, al
jne 0x1400a8745
movzx r8d, r11b
mov edx, r9d
mov rcx, rsi
call fcn.1400a9d70
test al, al
jne 0x1400a8745
mov edx, dword [rsi + 0x64]
lea r9, [0x1400aa0d0]
mov ecx, dword [rsi + 0x60]
mov r8, rbx
cmp r10d, r14d
jge 0x1400a868e
mov dword [rsp + 0x28], edx
mov edx, 2
mov dword [rsp + 0x20], ecx
mov rcx, rsi
call fcn.1400a83d0
jmp 0x1400a86e2
mov eax, dword [rbx + 4]
neg ecx
movzx edi, byte [rsi + 0x6a]
neg eax
mov dword [rbx + 4], eax
neg edx
mov eax, dword [rbx + 0xc]
neg eax
mov dword [rsp + 0x28], ecx
mov dword [rbx + 0xc], eax
mov rcx, rsi
mov eax, dword [rbx + 0x14]
neg eax
mov dword [rsp + 0x20], edx
mov edx, 2
mov dword [rbx + 0x14], eax
call fcn.1400a83d0
test dil, dil
je 0x1400a86da
cmp byte [rsi + 0x6a], 0
jne 0x1400a86da
mov rdx, qword [rsi + 0x70]
mov ecx, dword [rdx + 0x20]
neg ecx
mov dword [rdx + 0x20], ecx
mov ecx, dword [rbx + 4]
neg ecx
mov dword [rbx + 4], ecx
test al, al
jne 0x1400a8745
sub rbx, 0x10
jmp 0x1400a8734
mov eax, dword [rbx + 8]
mov ecx, dword [rbx + 0x10]
mov dword [rbx + 0x20], ecx
add ecx, eax
mov dword [rbx + 0x24], r10d
lea edx, [rax + rbp]
mov eax, ecx
sar eax, 1
mov dword [rbx + 0x18], eax
lea eax, [rcx + rdx]
sar eax, 2
lea ecx, [r10 + r9]
mov dword [rbx + 0x10], eax
mov eax, ecx
sar edx, 1
sar eax, 1
mov dword [rbx + 8], edx
lea edx, [r14 + r9]
mov dword [rbx + 0x1c], eax
lea eax, [rcx + rdx]
sar eax, 2
sar edx, 1
mov dword [rbx + 0x14], eax
mov dword [rbx + 0xc], edx
add rbx, 0x10
lea rax, [rsp + 0x30]
cmp rbx, rax
jb 0x1400a8749
mov ebp, dword [rbx]
jmp 0x1400a85b0
mov al, 1
jmp 0x1400a8752
mov dword [rsi + 0x58], ebp
xor al, al
mov dword [rsi + 0x5c], r14d
mov rdi, qword [rsp + 0x278]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400b4870
mov rbx, qword [rsp + 0x280]
add rsp, 0x250
pop r14
pop rsi
pop rbp
ret
Function at 0x1400aeaa0
Capabilities:
Get file size
Read file on windows
Read file via mapping

Disassembly:
push rbx
push rbp
sub rsp, 0x48
mov rbp, rdx
mov rbx, rcx
test rcx, rcx
jne 0x1400aeabc
lea eax, [rcx + 0x28]
add rsp, 0x48
pop rbp
pop rbx
ret
mov qword [rsp + 0x68], rsi
xor r9d, r9d
mov qword [rsp + 0x40], r14
mov edx, 0x80000000
xor r14d, r14d
mov rcx, rbp
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
lea r8d, [r14 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400aeb10
mov r14, qword [rsp + 0x40]
lea eax, [rsi + 2]
mov rsi, qword [rsp + 0x68]
add rsp, 0x48
pop rbp
pop rbx
ret
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x78], rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400aec35
mov rax, qword [rsp + 0x70]
cmp rax, 0x7fffffff
jg 0x1400aec35
test rax, rax
je 0x1400aec35
xor r9d, r9d
mov qword [rsp + 0x28], r14
xor edx, edx
mov dword [rsp + 0x20], r14d
mov rcx, rsi
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rdi, rax
test rax, rax
je 0x1400aec35
mov ecx, dword [rsp + 0x70]
xor r9d, r9d
mov dword [rbx + 8], ecx
xor r8d, r8d
mov rcx, rax
mov dword [rbx + 0xc], r14d
mov qword [rsp + 0x20], r14
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, rdi
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], r14
je 0x1400aebaa
lea rax, [0x1400aec90]
jmp 0x1400aec03
mov rcx, qword [rbx + 0x30]
xor edx, edx
movsxd r8, dword [rbx + 8]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
test rax, rax
je 0x1400aec35
mov edi, r14d
nop dword [rax + rax]
mov r8d, dword [rbx + 8]
lea r9, [rsp + 0x60]
mov edx, edi
sub r8d, edi
add rdx, qword [rbx]
mov rcx, rsi
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400aec23
add edi, dword [rsp + 0x60]
cmp edi, dword [rbx + 8]
jne 0x1400aebd0
lea rax, [0x1400aec60]
mov rcx, rsi
mov qword [rbx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbx]
mov qword [rbx + 0x10], rax
xor eax, eax
mov qword [rbx + 0x18], rbp
mov qword [rbx + 0x20], r14
jmp 0x1400aec4a
mov rcx, qword [rbx + 0x30]
xor edx, edx
mov r8, qword [rbx]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x51
mov qword [rbx], r14
mov qword [rbx + 8], r14
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x68]
mov r14, qword [rsp + 0x40]
add rsp, 0x48
pop rbp
pop rbx
ret
Function at 0x1400b0220
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r9, rdx
test rdx, rdx
jne 0x1400b022b
xor eax, eax
ret
lea r11, [0x1400d3020]
not ecx
cmp r8d, 8
jb 0x1400b0301
mov r10d, r8d
shr r10, 3
nop word [rax + rax]
movzx edx, byte [r9]
mov eax, ecx
xor rdx, rax
shr ecx, 8
movzx eax, dl
add r8d, 0xfffffff8
movzx edx, byte [r9 + 1]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 2]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 3]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 4]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 5]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 6]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 7]
add r9, 8
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
sub r10, 1
jne 0x1400b0250
test r8d, r8d
je 0x1400b032d
nop word [rax + rax]
movzx edx, byte [r9]
lea r9, [r9 + 1]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
add r8d, 0xffffffff
jne 0x1400b0310
not ecx
mov eax, ecx
ret
Function at 0x1400b4d9c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400b4de6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400b4de6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400b4de6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400b4de6
cmp dword [rcx + 0x84], 0xe
jbe 0x1400b4de6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400b4de8
xor al, al
add rsp, 0x28
ret
Function at 0x180001950
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x180
mov dword [rsp + 0x170], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov byte [rsp + 0x60], 0
lea rdi, [rsp + 0x61]
xor eax, eax
mov ecx, 0x103
rep stosb byte [rdi], al
mov dword [rsp + 0x174], 0
mov dword [rsp + 0x50], 0
cmp qword [rsp + 0x190], 0
jne 0x1800019cf
mov dword [rsp + 0x170], 0x57
xor eax, eax
test eax, eax
jne 0x1800019c4
jmp 0x180001b9f
mov eax, dword [rsp + 0x1a8]
add rax, 8
mov dword [rsp + 0x50], eax
mov ecx, dword [rsp + 0x50]
call fcn.18004e9d4
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x180001a0a
mov dword [rsp + 0x170], 6
xor eax, eax
test eax, eax
jne 0x1800019ff
jmp 0x180001b9f
mov r8d, 4
lea rdx, [rsp + 0x198]
mov rcx, qword [rsp + 0x40]
call fcn.18004e6a0
mov rcx, qword [rsp + 0x40]
add rcx, 4
mov r8d, 4
lea rdx, [rsp + 0x1a8]
call fcn.18004e6a0
mov r8d, dword [rsp + 0x1a8]
mov rcx, qword [rsp + 0x40]
add rcx, 8
mov rdx, qword [rsp + 0x1a0]
call fcn.18004e6a0
mov edx, 0xffffffff
mov rcx, qword [0x180073c68]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x180001a88
mov dword [rsp + 0x170], 6
xor eax, eax
test eax, eax
jne 0x180001a7d
jmp 0x180001b9f
mov rax, qword [rsp + 0x190]
mov r9d, dword [rax + 0x188]
lea r8, str..pipe_08X
mov edx, 0x104
lea rcx, [rsp + 0x60]
call fcn.18004e5d4
xor eax, eax
test eax, eax
jne 0x180001aad
xor eax, eax
cmp eax, 1
je 0x180001b4c
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0xffffffffffffffff
je 0x180001afc
jmp 0x180001b4c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
je 0x180001b1e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x170], eax
xor eax, eax
test eax, eax
jne 0x180001b16
jmp 0x180001b4c
mov edx, 0x4e20
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
test eax, eax
jne 0x180001b47
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x170], eax
xor eax, eax
test eax, eax
jne 0x180001b3f
jmp 0x180001b4c
jmp 0x180001ab3
cmp dword [rsp + 0x170], 0
jne 0x180001b95
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x174]
mov r8d, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x180001b95
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x170], eax
xor eax, eax
test eax, eax
jne 0x180001b8d
jmp 0x180001b9f
xor eax, eax
test eax, eax
jne 0x1800019ae
cmp qword [rsp + 0x48], 0
je 0x180001bbb
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x48], 0
cmp qword [rsp + 0x40], 0
je 0x180001bcd
mov rcx, qword [rsp + 0x40]
call fcn.18004e594
mov rcx, qword [0x180073c68]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [rsp + 0x170]
add rsp, 0x180
pop rdi
ret
Function at 0x180001c50
Capabilities:
Migrate process to active window station

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x48
mov dword [rsp + 0x38], 5
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
cmp dword [rsp + 0x50], 0
je 0x180001d01
mov r8d, 0x37f
xor edx, edx
lea rcx, str.WinSta0
call qword [sym.imp.USER32.dll_OpenWindowStationA]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x180001cc8
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
test eax, eax
je 0x180001cc8
mov r8d, 0x37f
xor edx, edx
lea rcx, str.WinSta0
call qword [sym.imp.USER32.dll_OpenWindowStationA]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x180001ce0
mov dword [rsp + 0x38], 6
xor eax, eax
test eax, eax
jne 0x180001cd8
jmp 0x180001d45
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.USER32.dll_SetProcessWindowStation]
test eax, eax
jne 0x180001d01
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x38], eax
xor eax, eax
test eax, eax
jne 0x180001cf9
jmp 0x180001d45
mov r8d, 0x2000000
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_OpenInputDesktop]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x180001d30
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x38], eax
xor eax, eax
test eax, eax
jne 0x180001d28
jmp 0x180001d45
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.USER32.dll_SetThreadDesktop]
xor eax, eax
test eax, eax
jne 0x180001c7b
mov rax, qword [rsp + 0x30]
add rsp, 0x48
ret
Function at 0x180001d50
Capabilities:
Create process on windows
Create process suspended

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x6f0
mov dword [rsp + 0x6e0], 0
mov qword [rsp + 0x468], 0
mov dword [rsp + 0x670], 0
lea rdi, [rsp + 0x678]
xor eax, eax
mov ecx, 0x60
rep stosb byte [rdi], al
mov qword [rsp + 0x450], 0
lea rdi, [rsp + 0x458]
xor eax, eax
mov ecx, reloc.WS2_32.dll_recv
rep stosb byte [rdi], al
mov byte [rsp + 0x470], 0
lea rdi, [rsp + 0x471]
xor eax, eax
mov ecx, 0xff
rep stosb byte [rdi], al
mov byte [rsp + 0x570], 0
lea rdi, [rsp + 0x571]
xor eax, eax
mov ecx, 0xff
rep stosb byte [rdi], al
mov byte [rsp + 0x50], 0
lea rdi, [rsp + 0x51]
xor eax, eax
mov ecx, 0x3ff
rep stosb byte [rdi], al
xor eax, eax
test eax, eax
jne 0x180001df2
mov r8d, 0x400
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.18004eaa0
call qword [sym.imp.USER32.dll_GetProcessWindowStation]
mov qword [rsp + 0x20], 0
mov r9d, 0x100
lea r8, [rsp + 0x470]
mov edx, 2
mov rcx, rax
call qword [sym.imp.USER32.dll_GetUserObjectInformationA]
mov qword [rsp + 0x20], 0
mov r9d, 0x100
lea r8, [rsp + 0x570]
mov edx, 2
mov rcx, qword [rsp + 0x700]
call qword [sym.imp.USER32.dll_GetUserObjectInformationA]
lea rdx, [rsp + 0x570]
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0x470]
lea r8, str._s_s
mov edx, 0x3ff
lea rcx, [rsp + 0x50]
call fcn.18004e5d4
mov r8d, 0x18
xor edx, edx
lea rcx, [rsp + 0x450]
call fcn.18004eaa0
mov r8d, 0x68
xor edx, edx
lea rcx, [rsp + 0x670]
call fcn.18004eaa0
mov dword [rsp + 0x670], 0x68
mov dword [rsp + 0x6ac], 0x11
mov eax, 1
mov word [rsp + 0x6b0], ax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x680], rax
lea rax, str.Metasploit_Courtesy_Shell__TM_
mov qword [rsp + 0x688], rax
mov dword [rsp + 0x6a8], 0x17
lea rax, [rsp + 0x450]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x670]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], reloc.WS2_32.dll_recv
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, str.cmd.exe
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x180001f6b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x6e0], eax
xor eax, eax
test eax, eax
jne 0x180001f60
jmp 0x180001ff3
mov rcx, qword [rsp + 0x458]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x450]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, str.Metasploit_Courtesy_Shell__TM_
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowA]
mov qword [rsp + 0x468], rax
cmp qword [rsp + 0x468], 0
jne 0x180001fb6
jmp 0x180001ff3
mov dword [rsp + 0x30], 3
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, 0xffffffffffffffff
mov rcx, qword [rsp + 0x468]
call qword [sym.imp.USER32.dll_SetWindowPos]
xor eax, eax
test eax, eax
jne 0x180001df2
add rsp, 0x6f0
pop rdi
ret
Function at 0x18000f9e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x44], 0
mov rcx, qword [rsp + 0x60]
mov eax, dword [rsp + 0x88]
mov dword [rcx + 0xe4], eax
mov rcx, qword [rsp + 0x60]
mov eax, dword [rsp + 0x90]
mov dword [rcx + 0xe8], eax
mov rdx, qword [rsp + 0x80]
mov rax, qword [rsp + 0x80]
mov ecx, dword [rax]
mov eax, dword [rdx + 8]
sub eax, ecx
mov dword [rsp + 0x3c], eax
mov rdx, qword [rsp + 0x80]
mov rax, qword [rsp + 0x80]
mov ecx, dword [rax + 4]
mov eax, dword [rdx + 0xc]
sub eax, ecx
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 8]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x80]
mov eax, dword [rax]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 4]
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0xc]
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x3c]
shl eax, 1
cmp eax, 0x2000
jle 0x18000fab7
mov eax, dword [rsp + 0x3c]
shl eax, 1
mov dword [rsp + 0x4c], eax
jmp 0x18000fabf
mov dword [rsp + 0x4c], 0x2000
mov eax, dword [rsp + 0x4c]
cdq
idiv dword [rsp + 0x3c]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jle 0x18000fb92
mov eax, dword [rsp + 0x34]
cmp dword [rsp + 0x38], eax
jge 0x18000faf3
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x48], eax
jmp 0x18000fafb
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x48], eax
mov ecx, dword [rsp + 0x48]
mov eax, dword [rsp + 0x24]
add eax, ecx
mov dword [rsp + 0x2c], eax
mov rax, qword [rsp + 0x60]
mov rax, qword [rax]
lea r9, [rsp + 0x20]
mov r8, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call qword [rax + 0x48]
mov dword [rsp + 0x44], eax
mov ecx, dword [rsp + 0x44]
mov eax, dword [rsp + 0x30]
add eax, ecx
mov dword [rsp + 0x30], eax
mov ecx, dword [rsp + 0x48]
mov eax, dword [rsp + 0x34]
sub eax, ecx
mov dword [rsp + 0x34], eax
mov ecx, dword [rsp + 0x48]
mov eax, dword [rsp + 0x24]
add eax, ecx
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x34], 0
jle 0x18000fb8d
cmp dword [rsp + 0x44], 0
jle 0x18000fb8d
mov r8d, dword [rsp + 0x44]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
call fcn.18004dd00
mov r11, qword [rsp + 0x60]
mov ecx, dword [r11 + 0x60]
add ecx, dword [rsp + 0x44]
mov rax, qword [rsp + 0x60]
mov dword [rax + 0x60], ecx
jmp 0x18000fad4
mov rax, qword [rsp + 0x60]
mov ecx, dword [rax + 0x60]
add ecx, dword [rsp + 0x44]
mov rax, qword [rsp + 0x60]
mov dword [rax + 0x60], ecx
mov eax, dword [rsp + 0x44]
add rsp, 0x58
ret
Function at 0x180012d30
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
sub rsp, 0xb0
mov qword [rsp + 0x98], 0xfffffffffffffffe
mov ecx, dword [0x1800744f0]
mov eax, dword [0x1800744f0]
add eax, 1
mov dword [0x1800744f0], eax
test ecx, ecx
je 0x180012d69
jmp 0x180012f95
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1800744d8], eax
cmp dword [0x1800744d8], 0xffffffff
jne 0x180012daf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x88], eax
mov eax, dword [rsp + 0x88]
mov dword [rsp + 0x4c], eax
mov eax, dword [rsp + 0x4c]
mov dword [rsp + 0x48], eax
lea rdx, [0x18006e010]
lea rcx, [rsp + 0x48]
call fcn.18005017c
mov ecx, 0x28
call fcn.18004f1fc
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x180012dda
mov rcx, qword [rsp + 0x58]
call fcn.180012790
mov qword [rsp + 0xa0], rax
jmp 0x180012de6
mov qword [rsp + 0xa0], 0
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [0x1800744e0], rax
mov ecx, 0x98
call fcn.18004f1fc
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
je 0x180012e32
mov r8d, 1
xor edx, edx
mov rcx, qword [rsp + 0x68]
call fcn.180013100
mov qword [rsp + 0xa8], rax
jmp 0x180012e3e
mov qword [rsp + 0xa8], 0
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x30], 1
mov rsi, qword [rsp + 0x40]
add rsi, 0x60
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, rsi
mov r8, rdi
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x180012ee1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x8c], eax
mov eax, dword [rsp + 0x8c]
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x74]
mov dword [rsp + 0x70], eax
lea rdx, [0x18006e010]
lea rcx, [rsp + 0x70]
call fcn.18005017c
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r11d, eax
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x68], r11d
mov rdx, qword [rsp + 0x40]
mov ecx, dword [0x1800744d8]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x180012f39
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x90], eax
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x7c], eax
mov eax, dword [rsp + 0x7c]
mov dword [rsp + 0x78], eax
lea rdx, [0x18006e010]
lea rcx, [rsp + 0x78]
call fcn.18005017c
mov ecx, 1
call fcn.180013850
mov edx, eax
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx + 0x60]
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
jne 0x180012f95
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x94], eax
mov eax, dword [rsp + 0x94]
mov dword [rsp + 0x84], eax
mov eax, dword [rsp + 0x84]
mov dword [rsp + 0x80], eax
lea rdx, [0x18006e010]
lea rcx, [rsp + 0x80]
call fcn.18005017c
mov rax, qword [rsp + 0xd0]
add rsp, 0xb0
pop rdi
pop rsi
pop rbx
ret