joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140216ce0
Capabilities:
Create thread
Get thread local storage value
Resume thread

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rbp, rcx
mov rdi, rdx
mov rsi, r8
mov r12, r9
call fcn.140214ef0
mov rbx, rax
test rax, rax
je 0x140216f14
test rbp, rbp
je 0x140216d1b
mov rax, qword [rax + 0x1d8]
mov qword [rbp], rax
mov r13, qword [sym.imp.KERNEL32.dll_Sleep]
mov dword [rbx + 0x44], 1
mov dword [rbx + 0xbc], 0
mov qword [rbx + 0x28], 0xffffffffffffffff
mov r14, r13
mov qword [rbx + 8], r12
mov r12, qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x10], rsi
xor esi, esi
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call r12
mov qword [rbx + 0x30], rax
test rax, rax
jne 0x140216d90
test esi, esi
jne 0x140216d80
xor ecx, ecx
mov esi, 1
call r14
jmp 0x140216d4f
add esi, 1
mov ecx, 0x14
call r13
cmp esi, 5
jne 0x140216d4f
mov qword [rbx + 0x38], 0xffffffffffffffff
lea r12, [rbx + 0x68]
mov rcx, r12
call fcn.140218cd0
cmp eax, 1
je 0x140216f5f
cmp qword [rbx + 0x30], 0
mov dword [rbx], 0xbab1f00d
mov qword [rbx + 0x68], 0xffffffffffffffff
mov dword [rbx + 0xc0], 0
mov dword [rbx + 0xb8], 0
je 0x140216efd
xor edx, edx
test rdi, rdi
je 0x140216dfd
mov eax, dword [rdi]
mov rsi, qword [rdi + 0x10]
mov dword [rbx + 0x44], eax
test al, 8
jne 0x140216f20
mov eax, dword [rdi + 0x18]
mov dword [rbx + 0xc0], eax
mov edx, esi
lea r8, [0x1402154c0]
mov r9, rbx
xor ecx, ecx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 4
call qword [sym.imp.msvcrt.dll__beginthreadex]
mov rsi, rax
lea rax, [rax - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140216ec8
mov eax, dword [rbx + 0xc0]
mov edx, 0xfffffff1
cmp eax, 0xfffffff2
jge 0x140216ea0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
test byte [rbx + 0x44], 4
jne 0x140216e80
mov qword [rbx + 0x28], rsi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ResumeThread]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rcx, rsi
mov qword [rbx + 0x28], 0
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140216e67
mov edx, 0xfffffffe
cmp eax, 0xffffffff
jl 0x140216e41
mov edx, 2
cmp eax, edx
cmovle edx, eax
cmp eax, 0xf
mov eax, 0xf
cmovge edx, eax
jmp 0x140216e41
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140216ed7
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbx + 0x38]
call fcn.140217e40
mov rcx, r12
call fcn.140218cd0
cmp eax, 1
je 0x140216f5f
mov qword [rbx + 0x68], 0xffffffffffffffff
pxor xmm0, xmm0
movups xmmword [rbx + 0x28], xmm0
test rbp, rbp
je 0x140216f0a
mov qword [rbp], 0
cmp qword [rbx + 0x1d0], 0
je 0x140216f48
mov eax, 0xb
jmp 0x140216e71
call fcn.140215160
mov ecx, dword [0x140268748]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140216f58
mov eax, dword [rax + 0xc0]
jmp 0x140216df5
mov rcx, rbx
call fcn.140214fc0
jmp 0x140216f14
call fcn.140215210
jmp 0x140216f36
call fcn.140214cb0
nop
nop word cs:[rax + rax]
Function at 0x140225410
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, 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.1402336e0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.1402336e0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140225480
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14032ff04]
mov rbx, rcx
test esi, esi
jle 0x1402255b0
mov rax, qword [0x14032ff08]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1402254cb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140225555
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1402254b0
mov rcx, rbx
call fcn.140225ef0
mov rdi, rax
test rax, rax
je 0x1402255d2
mov rax, qword [0x14032ff08]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140226030
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14032ff08]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1402255b7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14022554e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140225560
add dword [0x14032ff04], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14032ff08]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14022554e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140225410
nop dword [rax]
xor esi, esi
jmp 0x1402254d8
mov rax, qword [0x14032ff08]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140225410
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140225410
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140225b60
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14032ff60]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14032ff40]
test rbx, rbx
je 0x140225bbc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x140225bb3
test eax, eax
jne 0x140225bb3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140225b98
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140225ef0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1402efbc0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140225f10
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140225f18
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140225f10
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x140225f6d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140225f64
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140225f10
add rax, 0x28
cmp rax, r9
jne 0x140225f50
xor eax, eax
ret

Function at 0x140225f70
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1402efbc0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x140225f8f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140225f98
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x140225f8f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140226030
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1402efbc0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14022604f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140226058
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140226ca0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov ecx, 2
mov r8d, 0x2d
lea rdx, str._buffer_overflow_detected_:_terminated_n
call sub.msvcrt.dll__write
mov ecx, 0x17
call sub.KERNEL32.dll_IsProcessorFeaturePresent
test eax, eax
je 0x140226cd0
mov ecx, 8
int 0x29
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x140226cf0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov ecx, 2
mov r8d, 0x2c
lea rdx, str._stack_smashing_detected_:_terminated_n
call sub.msvcrt.dll__write
mov ecx, 0x17
call sub.KERNEL32.dll_IsProcessorFeaturePresent
test eax, eax
je 0x140226d20
mov ecx, 2
int 0x29
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x140238b90
Capabilities:
Get socket status

Disassembly:
push rsi
push rbx
sub rsp, 0x488
mov rbx, r8
cmp rcx, 0xffffffffffffffff
je 0x140238c5b
mov qword [rsp + 0x68], rcx
xor eax, eax
mov dword [rsp + 0x60], 1
mov qword [rsp + 0x278], rcx
mov dword [rsp + 0x270], 1
test edx, edx
js 0x140238bff
movsxd rax, edx
mov r8d, edx
imul rax, rax, 0x10624dd3
sar r8d, 0x1f
sar rax, 0x26
sub eax, r8d
mov dword [rsp + 0x58], eax
imul eax, eax, 0x3e8
sub edx, eax
lea rax, [rsp + 0x58]
imul edx, edx, 0x3e8
mov dword [rsp + 0x5c], edx
mov qword [rsp + 0x20], rax
add ecx, 1
lea r8, [rsp + 0x60]
xor edx, edx
lea r9, [rsp + 0x270]
call qword [sym.imp.WS2_32.dll_select]
mov esi, eax
test eax, eax
js 0x140238c40
xor eax, eax
xor ecx, ecx
xor edx, edx
mov dword [rbx], eax
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
mov eax, esi
add rsp, 0x488
pop rbx
pop rsi
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, 2
lea rcx, [0x140268c60]
cmp eax, 1
sbb rdx, 0xffffffffffffffff
jmp 0x140238c28
lea rcx, [rsp + 0x30]
mov edx, 0x2719
mov esi, 0xffffffff
call fcn.140238b20
movdqu xmm0, xmmword [rsp + 0x30]
movups xmmword [rbx], xmm0
mov rax, qword [rsp + 0x40]
mov qword [rbx + 0x10], rax
jmp 0x140238c32

Function at 0x140238c90
Capabilities:
Send data
Send data on socket

Disassembly:
push rsi
push rbx
sub rsp, 0x78
mov rbx, qword [rsp + 0xb0]
mov dword [rsp + 0x20], r9d
lea r9, [rsp + 0x6c]
mov dword [rsp + 0x6c], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
call qword [sym.imp.WS2_32.dll_WSASend]
mov esi, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, 2
lea rcx, [0x140268c60]
cmp eax, 1
mov dword [rbx], eax
sbb rdx, 0xffffffffffffffff
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
cmp eax, 0x40
je 0x140238d48
cmp eax, 0x4d2
je 0x140238d20
test esi, esi
jne 0x140238d60
mov dword [rbx], 0
mov eax, dword [rsp + 0x6c]
mov qword [rbx + 8], 0
mov qword [rbx + 0x10], 0
add rsp, 0x78
pop rbx
pop rsi
ret
lea rcx, [rsp + 0x40]
mov edx, 0x274d
call fcn.140238b20
movdqu xmm0, xmmword [rsp + 0x40]
movups xmmword [rbx], xmm0
mov rax, qword [rsp + 0x50]
mov qword [rbx + 0x10], rax
jmp 0x140238cf9
mov dword [rbx], 0x2746
mov qword [rbx + 0x10], 3
jmp 0x140238cf9
mov eax, 0xffffffff
jmp 0x140238d17
Function at 0x140239ae0
Capabilities:
Set socket configuration

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
mov rbx, qword [rcx]
cmp rbx, 0xffffffffffffffff
jne 0x140239b00
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov dword [rsp + 0x30], 0
mov rsi, qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, rbx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x40], 0
call rsi
test eax, eax
je 0x140239af4
lea rdi, [rsp + 0x30]
lea rbp, [rsp + 0x70]
mov rcx, rdi
call fcn.140001a70
mov edx, 0x2733
mov rcx, rbp
call fcn.140238b20
mov rdx, rbp
mov rcx, rdi
call fcn.14024c2f0
test al, al
jne 0x140239b7d
lea rbp, [rsp + 0x50]
mov edx, 0x4d5
mov rcx, rbp
call fcn.140238b20
mov rdx, rbp
mov rcx, rdi
call fcn.14024c2f0
test al, al
je 0x140239af4
mov rcx, rbx
lea r8, [rsp + 0x2c]
mov edx, 0x8004667e
mov dword [rsp + 0x2c], 0
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rcx, rbx
call rsi
test eax, eax
je 0x140239af4
mov rcx, rdi
call fcn.140001a70
jmp 0x140239af4
Function at 0x140262040
Capabilities:
Create process on windows

Disassembly:
push rdi
sub rsp, 0xe0
call fcn.140225200
lea rdi, [rsp + 0x78]
xor eax, eax
pxor xmm0, xmm0
mov ecx, 0xc
lea rdx, [rsp + 0x70]
mov r8d, 5
xor r9d, r9d
mov qword [rsp + 0x74], 0
mov qword [rsp + 0xd0], 0
rep stosq qword [rdi], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rdx
lea rdx, str.Installer.exe
mov word [rsp + 0xb0], r8w
xor r8d, r8d
movups xmmword [rsp + 0x50], xmm0
mov dword [rsp + 0x70], 0x68
mov qword [rsp + 0x60], 0
mov dword [rsp + 0xac], 1
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
call fcn.140005d90
xor eax, eax
add rsp, 0xe0
pop rdi
ret
Function at 0x18000104c
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x180001094
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
mov qword [0x180038710], rcx
lea r8, [0x1800010a0]
xor r9d, r9d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x180001094
cmp rax, 0xffffffffffffffff
je 0x180001094
mov rcx, rax
add rsp, 0x38
jmp qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add rsp, 0x38
ret

Function at 0x180004ec8
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov edi, dword [rdx + 0x10]
xor ebx, ebx
mov rsi, rcx
add edi, edi
cmp qword [rdx + 0x18], 8
jb 0x180004eeb
mov rdx, qword [rdx]
mov rcx, qword [rcx + 8]
lea r9, [rsp + 0x40]
mov r8d, edi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x180004f1b
cmp edi, dword [rsp + 0x40]
jne 0x180004f1b
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
setne bl
mov rsi, qword [rsp + 0x50]
mov al, bl
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x18000d118
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
cmp qword [0x180038720], rbx
je 0x18000d193
cmp qword [0x180038728], rbx
je 0x18000d193
cmp qword [0x180038730], rbx
je 0x18000d193
cmp qword [0x180038738], rbx
je 0x18000d193
cmp qword [0x180038740], rbx
je 0x18000d193
cmp qword [0x180038748], rbx
je 0x18000d193
cmp qword [0x180038750], rbx
je 0x18000d193
cmp qword [0x180038758], rbx
je 0x18000d193
cmp qword [0x180038760], rbx
je 0x18000d193
cmp qword [0x180038768], rbx
je 0x18000d193
cmp qword [0x180038770], rbx
je 0x18000d193
mov al, 1
jmp 0x18000d311
lea rcx, str.samsrv
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rcx, str.advapi32
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rsi, rax
test rdi, rdi
je 0x18000d2c2
test rax, rax
je 0x18000d2c2
lea rdx, str.SamIConnect
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.SamrOpenDomain
mov rcx, rdi
mov qword [0x180038720], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.SamrOpenUser
mov rcx, rdi
mov qword [0x180038728], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.SamrEnumerateUsersInDomain
mov rcx, rdi
mov qword [0x180038730], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.SamrQueryInformationUser
mov rcx, rdi
mov qword [0x180038738], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.SamIFree_SAMPR_USER_INFO_BUFFER
mov rcx, rdi
mov qword [0x180038740], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.SamIFree_SAMPR_ENUMERATION_BUFFER
mov rcx, rdi
mov qword [0x180038748], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.SamrCloseHandle
mov rcx, rdi
mov qword [0x180038750], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.SamIGetPrivateData
mov rcx, rdi
mov qword [0x180038758], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.SystemFunction025
mov rcx, rsi
mov qword [0x180038760], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.SystemFunction027
mov rcx, rsi
mov qword [0x180038768], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180038770], rax
cmp qword [0x180038720], rbx
je 0x18000d30f
cmp qword [0x180038728], rbx
je 0x18000d30f
cmp qword [0x180038730], rbx
je 0x18000d30f
cmp qword [0x180038738], rbx
je 0x18000d30f
cmp qword [0x180038740], rbx
je 0x18000d30f
cmp qword [0x180038748], rbx
je 0x18000d30f
cmp qword [0x180038750], rbx
je 0x18000d30f
cmp qword [0x180038758], rbx
je 0x18000d30f
mov ebx, 1
mov al, bl
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x180013b98
Capabilities:
Get logon sessions

Disassembly:
lea r8, [0x1800387e0]
jmp fcn.180013ba4
Function at 0x18001a5df
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x180035478]
jne 0x1800155ca
rol rcx, 0x10
test cx, 0xffff
jne 0x1800155c6
repz ret
ror rcx, 0x10
jmp 0x18001a538
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x180037620]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x180037718]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x18001a5bd
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x180037620]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x18001a5df
mov rax, qword [rsp + 0x88]
mov qword [0x180037718], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1800376b8], rax
mov rax, qword [0x180037718]
mov qword [0x180037590], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1800376a0], rax
mov dword [0x180037580], 0xc0000409
mov dword [0x180037584], 1
mov rax, qword [0x180035478]
mov qword [rsp + 0x68], rax
mov rax, qword [0x180035480]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x180037618], eax
mov ecx, 1
call fcn.1800220d8
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x18002a278]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x180037618], 0
jne 0x18001a666
mov ecx, 1
call fcn.1800220d8
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x180023f64
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x180035478]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.18001b250
xor ebx, ebx
cmp qword [0x1800385b0], rbx
mov rdi, rax
jne 0x180024077
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x18002414e
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18002414e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x1800385b0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x1800385b8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x1800385c0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x1800385d0], rax
test rax, rax
je 0x18002406e
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x1800385c8], rax
jmp 0x18002407e
mov rax, qword [0x1800385c8]
jmp 0x180024085
mov rax, qword [0x1800385c8]
mov r11, qword [0x1800385d0]
cmp rax, rdi
je 0x1800240ec
cmp r11, rdi
je 0x1800240ec
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x1800385d0]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x1800240ec
test rax, rax
je 0x1800240ec
call rsi
test rax, rax
je 0x1800240e6
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x1800240e6
test byte [rsp + 0x40], 1
jne 0x1800240ec
bts ebp, 0x15
jmp 0x18002412c
mov rcx, qword [0x1800385b8]
cmp rcx, rdi
je 0x18002412c
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x18002412c
call rax
mov rbx, rax
test rax, rax
je 0x18002412c
mov rcx, qword [0x1800385c0]
cmp rcx, rdi
je 0x18002412c
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x18002412c
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1800385b0]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x18002414e
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x180024150
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1800155b0
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x00404570]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x00404580]
mov dword [rax], 1
mov rax, qword [0x00404590]
mov dword [rax], 1
mov rax, qword [0x00404510]
cmp word [rax], 0x5a4d
jne 0x40105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x4010c0
mov rax, qword [0x00404560]
mov dword [0x00407020], ecx
mov eax, dword [rax]
test eax, eax
je 0x4010b0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x00404630]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x00404610]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x00404490]
cmp dword [rax], 1
je 0x4010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x401110
cmp dx, 0x20b
jne 0x40105a
cmp dword [rax + 0x84], 0xe
jbe 0x40105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x40105a
mov rcx, qword [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x40105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x40105a