joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001a814
Capabilities:
Get hostname

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r14
lea rbp, [rax - 0x28]
sub rsp, 0x110
mov rax, qword [0x140035868]
xor rax, rsp
mov qword [rbp], rax
mov rsi, rcx
xor r12d, r12d
mov rcx, qword [rcx + 0x48]
test rcx, rcx
je 0x14001a9a7
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x140022358]
mov rcx, rsi
mov rdi, rax
call fcn.140018b00
mov r14, rax
test rdi, rdi
je 0x14001a9a7
mov eax, 0xd4010c
lea rcx, [rsp + 0x50]
test r14, r14
mov ebx, 0x540108
mov r8d, 0x88
cmove ebx, eax
xor edx, edx
call sub.msvcrt.dll_memset
mov rax, qword [rsi + 8]
lea rcx, [rsp + 0x50]
or dword [rbp - 0x30], 0xffffffff
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x78], ebx
mov dword [rsp + 0x50], 0x88
mov dword [rbp - 0x80], 0x8100
call qword [sym.imp.COMDLG32.dll_PrintDlgExW]
test eax, eax
js 0x14001a9a7
lea ecx, [r12 + 1]
cmp dword [rbp - 0x2c], ecx
jne 0x14001a9a7
mov ebx, dword [rsp + 0x78]
test cl, bl
jne 0x14001a8ec
mov eax, r12d
bt ebx, 0x16
jae 0x14001a8ee
mov eax, ecx
shr ebx, 0x16
not ebx
and ebx, ecx
test eax, eax
cmovne rdi, r14
test rdi, rdi
je 0x14001a9a7
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0x60]
call qword [0x140022358]
test eax, eax
jne 0x14001a92b
mov rdx, qword [rsi + 0x48]
mov r8, rdi
mov rcx, rsi
call fcn.14001b2a0
test eax, eax
je 0x14001a9a7
mov r14d, SafeArrayGetElemsize
lea rcx, [rbp - 0x20]
xor edx, edx
mov dword [rsp + 0x40], r14d
lea r8d, [r14 + 0x10]
call sub.msvcrt.dll_memset
mov r8, qword [rsi + 0x10]
or rsi, 0xffffffffffffffff
mov rax, rsi
inc rax
cmp word [r8 + rax*2], r12w
jne 0x14001a950
lea rcx, [rbp - 0x20]
test rax, rax
jne 0x14001a970
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
jmp 0x14001a97c
mov r9, rsi
mov rdx, r14
call qword [sym.imp.msvcrt.dll_wcsncpy_s]
mov rax, qword [rdi]
lea rcx, [rbp - 0x20]
mov rdx, qword [rsp + 0x70]
mov r9d, esi
mov qword [rsp + 0x28], rcx
mov r8d, ebx
mov rcx, rdi
mov dword [rsp + 0x20], esi
mov rax, qword [rax + 0x90]
call qword [0x140022358]
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.14001c820
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r12
pop rbp
ret
Function at 0x14001bed8
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x10], rdx
push rsi
push rdi
push r14
sub rsp, 0x30
xor esi, esi
and dword [0x14003abb8], esi
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x58]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
lea r14d, [rsi + 1]
test rax, rax
je 0x14001c0a4
mov ecx, dword [rsp + 0x58]
cmp ecx, 2
jl 0x14001c0a4
dec ecx
mov ebp, r14d
cmp ecx, r14d
jl 0x14001c0a4
lea rdi, [rax + 8]
mov rbx, qword [rdi]
mov ecx, 0xfffd
movzx eax, word [rbx]
sub ax, 0x2d
test cx, ax
jne 0x14001c067
add rbx, 2
lea rdx, [0x140028f08]
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x14001c05e
lea rdx, str.help
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x14001c05e
inc ebp
cmp ebp, dword [rsp + 0x58]
jge 0x14001c0a4
lea rdx, [0x140028f20]
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
jne 0x14001bfc5
mov rdx, qword [rdi + 8]
lea rcx, [0x14003abd8]
mov dword [0x1400382c4], r14d
call qword [sym.imp.MFC42u.dll_AfxDeleteObject]
mov eax, 2
jmp 0x14001c045
lea rdx, str.report
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
jne 0x14001bff8
mov rdx, qword [rdi + 8]
lea rcx, [0x14003abd0]
mov dword [0x1400382c4], r14d
call qword [sym.imp.MFC42u.dll_AfxDeleteObject]
mov eax, 4
jmp 0x14001c045
lea rdx, str.computer
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
jne 0x14001c02b
mov rdx, qword [rdi + 8]
lea rcx, [0x14003abc0]
mov dword [0x1400382c8], r14d
call qword [sym.imp.MFC42u.dll_AfxDeleteObject]
mov eax, 8
jmp 0x14001c045
lea rdx, str.category
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__wcsicmp]
neg eax
sbb eax, eax
and eax, 0xfffffff1
add eax, 0x10
or esi, eax
add ebp, r14d
mov eax, dword [rsp + 0x58]
add rdi, 0x10
dec eax
cmp ebp, eax
jle 0x14001bf37
jmp 0x14001c07c
mov dword [0x14003abb8], r14d
jmp 0x14001c0a4
cmp ebp, r14d
jne 0x14001c07c
mov rdx, rbx
lea rcx, [0x14003abc8]
call qword [sym.imp.MFC42u.dll_AfxDeleteObject]
test esi, esi
je 0x14001c0a4
and qword [rsp + 0x28], 0
lea r9, [rsp + 0x20]
mov r8d, r14d
mov dword [rsp + 0x28], esi
mov edx, 0x802
mov dword [rsp + 0x20], r14d
xor ecx, ecx
call qword [sym.imp.ntdll.dll_WinSqmAddToStream]
mov rbx, qword [rsp + 0x50]
mov eax, r14d
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x14001c58c
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x14003abe8], rbx
je 0x14001c5f3
cmp rax, rbx
jne 0x14001c5e6
mov ebx, 1
mov esi, ebx
jmp 0x14001c5f8
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001c5cb
mov ebx, 1
mov eax, dword [0x14003abf0]
cmp eax, ebx
jne 0x14001c610
mov edi, 0x1f
mov ecx, edi
call sub.msvcrt.dll__amsg_exit
jmp 0x14001c67c
mov eax, dword [0x14003abf0]
test eax, eax
jne 0x14001c671
mov dword [0x14003abf0], ebx
lea r15, [0x140022630]
lea rdi, [0x140022618]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x14001c663
test eax, eax
jne 0x14001c667
cmp qword [rdi], r14
je 0x14001c658
mov rax, qword [rdi]
mov rcx, qword [0x140022358]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x14001c63a
test eax, eax
je 0x14001c677
mov eax, 0xff
jmp 0x14001c7d0
mov dword [0x140037d10], ebx
mov edi, 0x1f
mov eax, dword [0x14003abf0]
cmp eax, ebx
jne 0x14001c6a3
lea rdx, [0x140022610]
lea rcx, [0x140022370]
call sub.msvcrt.dll__initterm
mov dword [0x14003abf0], 2
test esi, esi
jne 0x14001c6b1
mov rax, r14
xchg qword [0x14003abe8], rax
cmp qword [0x14003ac08], r14
je 0x14001c6e4
lea rcx, [0x14003ac08]
call fcn.14001ce90
test eax, eax
je 0x14001c6e4
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x14003ac08]
mov r9, qword [0x140022358]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x14001c6fd
mov eax, 0xff
jmp 0x14001c7d0
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
cmp word [rcx], 0x20
ja 0x14001c781
cmp word [rcx], r14w
je 0x14001c716
test edx, edx
jne 0x14001c781
movzx eax, word [rcx]
sub ax, bx
cmp ax, di
ja 0x14001c72c
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x14001c716
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.14001c0bc
mov dword [0x140037d0c], eax
cmp dword [0x140037d30], r14d
jne 0x14001c76a
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140037d10], r14d
jne 0x14001c77f
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140037d0c]
jmp 0x14001c7d0
cmp word [rcx], 0x22
jne 0x14001c795
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x14001c706
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.14001cf10
add rsp, 0x28
jmp 0x14001c58c
Function at 0x14001cda0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14001cdec
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001cde4
cmp dword [rcx + 0x3c], edx
jl 0x14001cde4
cmp dword [rcx + 0x3c], 0x10000000
jae 0x14001cde4
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x14001cdec
mov rax, rdx
add rsp, 0x18
ret
Function at 0x180001000
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
push r14
push r15
sub rsp, 0x98
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rdi, rcx
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
cmp rdi, 0x40000000
jbe 0x18000104f
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x18001bef0]
lea r15, [rdi + 0x40000000]
cmp rcx, r15
cmovbe r15, rcx
sub r15, 0xfff
test rsi, rsi
je 0x18000108d
cmp rsi, r14
jb 0x180001085
cmp rsi, r15
jae 0x180001085
cmp qword [rsi + 8], 0
jne 0x180001257
mov rsi, qword [rsi]
test rsi, rsi
jne 0x180001070
mov qword [rsp + 0xc8], rbx
mov rbx, rdi
mov qword [rsp + 0xd0], rbp
mov qword [rsp + 0x90], r12
mov r12d, 0x40
cmp rdi, r14
jb 0x180001122
nop dword [rax]
nop word [rax + rax]
mov ebp, dword [rsp + 0x78]
mov rax, rbx
xor edx, edx
div rbp
sub rbx, rdx
sub rbx, rbp
cmp rbx, r14
jb 0x180001119
nop word [rax + rax]
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180001119
cmp dword [rsp + 0x40], 0x10000
je 0x18000119b
mov rbx, qword [rsp + 0x28]
cmp rbx, rbp
jb 0x180001119
sub rbx, rbp
cmp rbx, r14
jae 0x1800010e0
test rsi, rsi
jne 0x180001200
cmp rdi, r15
ja 0x18000123f
nop dword [rax + rax]
mov ebp, dword [rsp + 0x78]
xor edx, edx
mov rax, rdi
mov ebx, ebp
div rbp
mov eax, ebp
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r15
ja 0x18000123f
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18000123f
cmp dword [rsp + 0x40], 0x10000
je 0x1800011d1
xor edx, edx
lea edi, [rbp - 1]
add rdi, qword [rsp + 0x38]
add rdi, qword [rsp + 0x20]
mov rax, rdi
div rbx
sub rdi, rdx
cmp rdi, r15
jbe 0x180001152
jmp 0x18000123f
test rbx, rbx
je 0x180001119
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x180001200
cmp rbx, r14
jae 0x1800010c0
jmp 0x180001122
test rdi, rdi
je 0x18000123f
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x180001200
cmp rdi, r15
jbe 0x180001130
jmp 0x18000123f
xor edx, edx
lea rcx, [rsi + 0x40]
mov dword [rsi + 0x10], edx
nop dword [rax]
mov qword [rcx], rdx
mov rax, rcx
mov qword [rsi + 8], rcx
add r12, 0x40
add rcx, 0x40
mov rdx, rax
cmp r12, 0xfc0
jbe 0x180001210
mov rax, qword [0x18001bef0]
mov qword [rsi], rax
mov qword [0x18001bef0], rsi
mov r12, qword [rsp + 0x90]
mov rbp, qword [rsp + 0xd0]
mov rbx, qword [rsp + 0xc8]
mov rax, rsi
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.180003370
add rsp, 0x98
pop r15
pop r14
pop rdi
pop rsi
ret
Function at 0x1800014b0
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor r15d, r15d
mov r14d, edx
mov qword [rcx], r15
mov rbx, rcx
mov qword [rcx + 8], r15
xor edx, edx
mov ecx, 4
mov ebp, r8d
mov edi, r15d
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x18000166a
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x1800015f8
mov edi, 1
cmp dword [rsp + 0x20], 0x10
jb 0x1800015b2
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x1800015b2
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x1800015b2
mov rdx, qword [rbx]
test rdx, rdx
jne 0x180001574
mov rcx, qword [0x18001be98]
mov r8d, 0x200
mov dword [rbx + 8], 0x80
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
mov rdx, rax
test rax, rax
je 0x1800015db
jmp 0x1800015a5
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x1800015a5
mov rcx, qword [0x18001be98]
add eax, eax
mov r9d, eax
mov r8, rdx
shl r9, 2
xor edx, edx
mov dword [rbx + 8], eax
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x1800015db
mov qword [rbx], rax
mov ecx, dword [rbx + 0xc]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
inc dword [rbx + 0xc]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x180001522
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x1800015f8
mov r8, qword [rbx]
mov edi, r15d
test r8, r8
je 0x1800015f8
mov rcx, qword [0x18001be98]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rbx], r15
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x18000166a
cmp qword [rbx], r15
je 0x180001665
mov edi, r15d
cmp dword [rbx + 0xc], r15d
jbe 0x180001665
nop dword [rax]
nop word [rax + rax]
mov r8, qword [rbx]
xor edx, edx
mov eax, edi
mov ecx, 0x5a
mov r8d, dword [r8 + rax*4]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x18000165e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rsi
call fcn.180001300
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [rbx + 0xc]
jb 0x180001620
mov eax, r15d
jmp 0x18000166f
mov eax, 9
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.180003370
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x180001690
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov eax, ecx
lea r9, [rsp + 0x20]
imul rbx, rax, 0x38
mov esi, edx
add rbx, qword [0x18001bee0]
mov r8, qword [rbx]
movzx eax, byte [rbx + 0x20]
and al, 1
movzx ecx, al
lea rdi, [r8 - 5]
cmove rdi, r8
mov r8d, 0x40
lea rbp, [rcx*2 + 5]
mov rcx, rdi
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x180001703
mov eax, 0xa
jmp 0x180001796
test esi, esi
je 0x180001725
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, edi
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x180001748
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x180001748
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x180001741
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x180001748
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
movzx ecx, sil
shl sil, 2
add cl, cl
xor cl, byte [rbx + 0x20]
and cl, 2
xor cl, byte [rbx + 0x20]
xor sil, cl
and sil, 4
xor sil, cl
mov byte [rbx + 0x20], sil
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.180003370
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1800017c0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x30
mov r8d, dword [0x18001beec]
mov esi, ecx
xor ecx, ecx
mov ebx, ecx
test r8d, r8d
je 0x180001807
mov rax, qword [0x18001bee0]
add rax, 0x20
nop word [rax + rax]
movzx edx, byte [rax]
shr edx, 1
and edx, 1
cmp edx, esi
jne 0x180001814
inc ebx
add rax, 0x38
cmp ebx, r8d
jb 0x1800017f0
mov eax, ecx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
cmp ebx, 0xffffffff
je 0x180001807
test esi, esi
mov qword [rsp + 0x48], rdi
mov edx, 0xffffffff
setne cl
mov r8d, ecx
lea rcx, [rsp + 0x20]
call fcn.1800014b0
mov edi, eax
test eax, eax
jne 0x1800018ff
mov r9d, dword [0x18001beec]
cmp ebx, r9d
jae 0x18000188c
nop dword [rax + rax]
mov ecx, ebx
imul rdx, rcx, 0x38
mov rcx, qword [0x18001bee0]
movzx r8d, byte [rdx + rcx + 0x20]
shr r8d, 1
and r8d, 1
cmp r8d, esi
je 0x180001885
mov edx, esi
mov ecx, ebx
call fcn.180001690
mov edi, eax
test eax, eax
jne 0x18000188c
mov r9d, dword [0x18001beec]
inc ebx
cmp ebx, r9d
jb 0x180001850
cmp qword [rsp + 0x20], 0
je 0x1800018fd
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x1800018e9
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
nop dword [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
mov ecx, 0x5a
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x1800018da
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rbp, 1
jne 0x1800018b0
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x18001be98]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
Function at 0x180001c20
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r15
sub rsp, 0x30
xor r15d, r15d
mov esi, edx
mov ebx, r15d
xor eax, eax
mov rdi, rcx
mov ebp, 1
lock cmpxchg dword [0x18001be90], ebp
je 0x180001c77
cmp rbx, 0x20
jae 0x180001c60
xor ecx, ecx
jmp 0x180001c62
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x18001be90], ebp
jne 0x180001c56
cmp qword [0x18001be98], r15
je 0x180001d73
test rdi, rdi
jne 0x180001c97
mov ecx, esi
call fcn.1800017c0
mov edi, eax
jmp 0x180001d78
mov ecx, dword [0x18001beec]
mov ebx, r15d
test ecx, ecx
je 0x180001cbf
mov rdx, qword [0x18001bee0]
mov rax, rdx
nop
cmp rdi, qword [rax]
je 0x180001cc9
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x180001cb0
mov edi, 4
jmp 0x180001d78
cmp ebx, 0xffffffff
je 0x180001cbf
mov eax, ebx
imul rcx, rax, 0x38
movzx eax, byte [rcx + rdx + 0x20]
shr eax, 1
and eax, ebp
cmp eax, esi
je 0x180001d6a
mov r8d, ebp
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.1800014b0
mov edi, eax
test eax, eax
jne 0x180001d78
mov edx, esi
mov ecx, ebx
call fcn.180001690
mov edi, eax
cmp qword [rsp + 0x20], r15
je 0x180001d78
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x180001d54
mov rbx, qword [rsp + 0x20]
mov ebp, eax
nop dword [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
mov ecx, 0x5a
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x180001d4a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rbp, 1
jne 0x180001d20
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x18001be98]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180001d78
neg esi
sbb edi, edi
add edi, 6
jmp 0x180001d78
mov edi, 2
xchg dword [0x18001be90], r15d
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, 0x30
pop r15
ret
Function at 0x180002980
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov ebx, edx
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
test ebx, ebx
je 0x1800029d6
cmp ebx, 1
jne 0x180002a1f
xor eax, eax
lea r8, [0x180002b40]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x1800029d0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
add rsp, 0x30
pop rbx
ret
add rsp, 0x30
pop rbx
ret
mov rcx, qword [0x18001bec0]
test rcx, rcx
je 0x1800029e9
xor edx, edx
call fcn.180001c20
mov rcx, qword [0x18001bea0]
test rcx, rcx
je 0x1800029fb
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [0x18001bea8]
test rcx, rcx
je 0x180002a0d
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [0x18001beb8]
test rcx, rcx
je 0x180002a1f
mov rax, qword [rcx]
call qword [rax + 0x10]
mov eax, 1
add rsp, 0x30
pop rbx
ret

Function at 0x180006c0c
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x180006c7b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180006c7b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x180006c7b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x180006c7b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x180006c7b
cmp dword [rcx + 0x84], 0xe
jbe 0x180006c7b
cmp dword [rcx + 0xf8], 0
je 0x180006c7b
mov ecx, ebx
call fcn.180006d20
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.180006b14
nop
cmp dword [rbp + 0x20], 0
jne 0x180006cdc
call fcn.180008050
cmp eax, 1
jne 0x180006ccc
xor dl, dl
jmp 0x180006cd6
call fcn.18000801c
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x180006ce7
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.180006cf0
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x180006c0c
Function at 0x18000a178
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 0x18000a1a8
xor eax, eax
jmp 0x18000a26b
mov rbp, rbx
cmp word [rax], si
je 0x18000a1cd
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18000a1b4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18000a1b0
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.18000a098
movsxd r14, eax
mov rcx, r14
test eax, eax
jne 0x18000a20e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18000a1a1
call fcn.18000b470
mov rdi, rax
test rax, rax
jne 0x18000a224
xor ecx, ecx
call fcn.180008650
jmp 0x18000a203
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.18000a098
test eax, eax
jne 0x18000a255
mov rcx, rdi
call fcn.180008650
jmp 0x18000a25f
xor ecx, ecx
call fcn.180008650
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 0x18000ed70
Capabilities:
Parse pe header

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