joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100020808
Capabilities:
Get file version info

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x90
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rsi
mov rdi, rcx
mov dword [rax + 0x10], 1
lea rdx, [rax + 0x10]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test eax, eax
jne 0x1000208a1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x10003fbf8]
test byte [rcx + 0x4c], 1
je 0x100020877
mov edx, 0x44
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
lea r9, [0x1000026c8]
lea r8, [0x100001f18]
mov rcx, qword [rcx + 0x40]
call fcn.100019018
movzx edx, bx
or edx, 0x80070000
test ebx, ebx
cmovle edx, ebx
lea rcx, [rsp + 0x58]
call fcn.100010ca4
lea rdx, [0x10003a5b0]
lea rcx, [rsp + 0x58]
call sub.msvcrt.dll__CxxThrowException
int3
mov rcx, rsi
call fcn.100010980
mov rbx, rax
mov qword [rsp + 0xb0], rax
mov r9, rax
mov r8d, esi
xor edx, edx
mov rcx, rdi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x10002092c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x10003fbf8]
test byte [rcx + 0x4c], 1
je 0x100020902
mov edx, 0x45
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
lea r9, [0x1000026c8]
lea r8, [0x100001f18]
mov rcx, qword [rcx + 0x40]
call fcn.100019018
movzx edx, bx
or edx, 0x80070000
test ebx, ebx
cmovle edx, ebx
lea rcx, [rsp + 0x58]
call fcn.100010ca4
lea rdx, [0x10003a5b0]
lea rcx, [rsp + 0x58]
call sub.msvcrt.dll__CxxThrowException
int3
mov rdx, rbx
lea rcx, [rsp + 0x58]
call fcn.10002be30
mov esi, eax
test eax, eax
jns 0x10002098f
mov rcx, qword [0x10003fbf8]
test byte [rcx + 0x4c], 1
je 0x100020971
mov edx, 0x46
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
lea r9, [0x1000026c8]
lea r8, [0x100001f18]
mov rcx, qword [rcx + 0x40]
call fcn.100019018
mov edx, esi
lea rcx, [rsp + 0x58]
call fcn.100010ca4
lea rdx, [0x10003a5b0]
lea rcx, [rsp + 0x58]
call sub.msvcrt.dll__CxxThrowException
int3
mov eax, dword [rsp + 0x60]
shl rax, 0x20
mov esi, dword [rsp + 0x64]
add rsi, rax
mov rcx, qword [0x10003fbf8]
test byte [rcx + 0x4c], 4
je 0x1000209f9
mov r10, rsi
shr r10, 0x20
movzx eax, si
mov r9d, esi
shr r9d, 0x10
movzx r8d, r10w
shr r10d, 0x10
mov edx, 0x47
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x38], r9d
mov dword [rsp + 0x30], r8d
mov dword [rsp + 0x28], r10d
mov qword [rsp + 0x20], rdi
lea r9, [0x1000026c8]
lea r8, [0x100001f18]
mov rcx, qword [rcx + 0x40]
call fcn.10001c9cc
nop
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_free]
mov rax, rsi
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x100025844
Capabilities:
Read file via mapping

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r13
sub rsp, 0x50
and qword [rax - 0x30], 0
mov esi, 0x48
mov rdi, rcx
or r13, 0xffffffffffffffff
lea r8d, [rsi - 0x44]
xor r9d, r9d
xor edx, edx
mov rcx, r13
mov dword [rax - 0x38], esi
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rbx, rax
test rax, rax
jne 0x100025903
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov r10, qword [0x10003fbf8]
test byte [r10 + 0x4c], 1
je 0x1000258f1
lea rdx, [0x1000026c8]
mov dword [rsp + 0x68], eax
xor eax, eax
and qword [rsp + 0x40], rax
mov rdi, rdx
mov qword [rsp + 0x38], 4
mov rcx, r13
lea r8, [0x100001ed8]
repne scasb al, byte [rdi]
lea rax, [rsp + 0x68]
lea edi, [rsi - 0x3d]
not rcx
mov qword [rsp + 0x30], rax
movzx r9d, di
mov qword [rsp + 0x28], rcx
mov rcx, qword [r10 + 0x40]
mov qword [rsp + 0x20], rdx
lea edx, [rsi - 0x1d]
call sub.ADVAPI32.dll_TraceMessage
movzx eax, bx
or eax, 0x80070000
test ebx, ebx
cmovle eax, ebx
jmp 0x1000259c6
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
lea edx, [r9 + 6]
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rdi], rax
test rax, rax
jne 0x1000259ac
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov r10, qword [0x10003fbf8]
test byte [r10 + 0x4c], 1
je 0x100025991
lea rdx, [0x1000026c8]
mov dword [rsp + 0x68], eax
xor eax, eax
and qword [rsp + 0x40], rax
mov rdi, rdx
mov qword [rsp + 0x38], 4
mov rcx, r13
lea r8, [0x100001ed8]
repne scasb al, byte [rdi]
lea edi, [rax + 0xc]
lea rax, [rsp + 0x68]
not rcx
mov qword [rsp + 0x30], rax
movzx r9d, di
mov qword [rsp + 0x28], rcx
mov rcx, qword [r10 + 0x40]
mov qword [rsp + 0x20], rdx
lea edx, [rdi + 0x1f]
call sub.ADVAPI32.dll_TraceMessage
movzx edi, si
mov rcx, rbx
or edi, 0x80070000
test esi, esi
cmovle edi, esi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x1000259c6
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x1000259c0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rdi + 8], 0
mov qword [rdi + 8], rbx
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r13
ret
Function at 0x10002a3e4
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov ebx, dword [rdx]
mov r10, r8
mov rdi, rdx
cmp rbx, qword [rdx]
je 0x10002a405
mov eax, 0x80070057
jmp 0x10002a488
and qword [rdx], 0
and dword [rsp + 0x48], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, ebx
mov rdx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10002a472
call fcn.10002aa1c
mov ebx, eax
cmp eax, 0x80070026
jne 0x10002a43d
and qword [rdi], 0
jmp 0x10002a486
mov rcx, qword [0x100040318]
lea rax, [0x100040318]
cmp rcx, rax
je 0x10002a46e
test byte [rcx + 0x1c], 1
je 0x10002a46e
mov rcx, qword [rcx + 0x10]
lea r8, [0x100001e88]
mov edx, 0x28
mov r9d, ebx
call fcn.100029e74
mov eax, ebx
jmp 0x10002a488
cmp dword [rsp + 0x48], ebx
jbe 0x10002a47f
mov eax, 0x8000ffff
jmp 0x10002a488
mov eax, dword [rsp + 0x48]
mov qword [rdi], rax
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x10002a508
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov ebx, dword [rdx]
mov rdi, r8
mov rsi, rdx
mov r8d, ebx
mov rdx, rdi
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor edx, edx
mov r11d, eax
cmp eax, edx
jne 0x10002a57c
call fcn.10002aa1c
mov ebx, eax
mov rcx, qword [0x100040318]
lea rax, [0x100040318]
cmp rcx, rax
je 0x10002a578
test byte [rcx + 0x1c], 1
je 0x10002a578
mov rcx, qword [rcx + 0x10]
lea r8, [0x100001e88]
mov edx, 0x36
mov r9, rbp
mov dword [rsp + 0x20], ebx
call fcn.100029ddc
mov eax, ebx
jmp 0x10002a59e
cmp r11d, ebx
ja 0x10002a592
lea eax, [r11 - 1]
cmp word [rdi + rax*2], dx
je 0x10002a599
mov eax, 0x8000ffff
jmp 0x10002a59e
cmp ebx, edx
jbe 0x10002a599
mov word [rdi], dx
mov qword [rsi], r11
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
mov rcx, rdx
mov rdi, rdx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10002a7d0
call fcn.10002aa1c
mov ebx, eax
cmp eax, 0x80070002
je 0x10002a7d4
cmp eax, 0x80070003
je 0x10002a7d4
mov rcx, qword [0x100040318]
lea rax, [0x100040318]
cmp rcx, rax
je 0x10002a7cc
test byte [rcx + 0x1c], 1
je 0x10002a7cc
mov rcx, qword [rcx + 0x10]
lea r8, [0x100001e88]
mov edx, 0x3c
mov r9, rdi
mov dword [rsp + 0x20], ebx
call fcn.100029ddc
mov eax, ebx
jmp 0x10002a7d4
mov dword [rbx], eax
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x10002ba98
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rsi, qword [rdx]
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rsi
mov ebx, 0x2db39507
repne scasw ax, word [rdi]
mov rdi, rax
not rcx
sub rcx, 1
mov rbp, rcx
je 0x10002bb1a
movzx ecx, word [rsi + rdi*2]
call qword [sym.imp.msvcrt.dll_towlower]
xor edx, edx
mov word [rsp + 0x38], ax
movzx ecx, byte [rsp + rdx + 0x38]
shl rbx, 4
movabs r8, 0xf000000000000000
add rcx, rbx
inc rdx
mov rax, rcx
and rax, r8
mov rbx, rax
shr rbx, 0x38
xor rbx, rax
xor rbx, rcx
cmp rdx, 2
jb 0x10002bae0
inc rdi
cmp rdi, rbp
jb 0x10002bacf
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x10002cd90
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x280
mov rax, qword [0x10003c108]
xor rax, rsp
mov qword [rsp + 0x270], rax
and qword [rcx], 0
mov rdi, rcx
lea rdx, [rsp + 0x60]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x10002ce3a
call fcn.10002aa1c
mov ebx, eax
mov r10, qword [0x10003fbf8]
test byte [r10 + 0x4c], 1
je 0x10002ce36
mov dword [rsp + 0x50], eax
xor eax, eax
or rcx, 0xffffffffffffffff
and qword [rsp + 0x40], rax
lea edx, [rax + 0x1d]
lea r8, [0x1000026c8]
mov rdi, r8
mov qword [rsp + 0x38], 4
movzx r9d, dx
repne scasb al, byte [rdi]
lea rax, [rsp + 0x50]
mov edx, 0x2b
not rcx
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rcx
mov rcx, qword [r10 + 0x40]
mov qword [rsp + 0x20], r8
lea r8, [0x100001e18]
call sub.ADVAPI32.dll_TraceMessage
mov eax, ebx
jmp 0x10002ce58
and qword [rdi], 0
lea rcx, [rsp + 0x60]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rdi], rax
neg rax
sbb eax, eax
not eax
and eax, 0x8007000e
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.10002d830
mov rbx, qword [rsp + 0x298]
add rsp, 0x280
pop rdi
ret
Function at 0x10002d428
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x10003c108]
xor rax, rsp
mov qword [rsp + 0xc0], rax
xor edx, edx
mov rbx, rcx
lea r8d, [rdx + 0x28]
add rcx, r8
call sub.msvcrt.dll_memset
and qword [rbx + 0x50], 0
and dword [rbx + 0x58], 0
and dword [rbx + 0x5c], 0
lea rax, [0x100000000]
mov esi, DllRegisterServer
lea rcx, [rsp + 0x20]
mov r8, rsi
xor edx, edx
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], rax
mov dword [rbx], 0x60
mov byte [rbx + 0x18], 0
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [rsp + 0x30], 2
mov esi, 1
jne 0x10002d4bb
cmp dword [rsp + 0x24], 5
jb 0x10002d4d5
jmp 0x10002d4d1
cmp dword [rsp + 0x30], esi
jne 0x10002d4d5
cmp dword [rsp + 0x24], 4
ja 0x10002d4d1
jne 0x10002d4d5
cmp dword [rsp + 0x28], 0
jbe 0x10002d4d5
mov byte [rbx + 0x18], sil
lea rax, [0x1000016e0]
lea rcx, [rbx + 0x28]
mov dword [rbx + 0x1c], 0x800
mov qword [rbx + 0x20], rax
call fcn.10000c178
movzx ecx, byte [0x100040d44]
test eax, eax
mov rax, rbx
cmovs ecx, esi
mov byte [0x100040d44], cl
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.10002d830
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x10002d580
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rsi
mov qword [rsp + 0x10], rdi
mov qword [rsp + 0x18], r12
push r13
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
xor r12d, r12d
xor eax, eax
lock cmpxchg qword [0x100040fa8], rdi
je 0x10002d5ce
cmp rax, rdi
jne 0x10002d5c1
mov edi, 1
mov r12d, edi
jmp 0x10002d5d3
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10002d5a5
mov edi, 1
mov eax, dword [0x100040fa4]
cmp eax, edi
jne 0x10002d5e9
mov ecx, 0x1f
call fcn.10016a000
jmp 0x10002d646
mov eax, dword [0x100040fa4]
test eax, eax
jne 0x10002d640
mov dword [0x100040fa4], edi
lea r13, [0x1000016a8]
lea rsi, [0x100001690]
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], eax
cmp rsi, r13
jae 0x10002d632
test eax, eax
jne 0x10002d632
mov rcx, qword [rsi]
test rcx, rcx
je 0x10002d627
call rcx
mov dword [rsp + 0x20], eax
add rsi, 8
mov qword [rsp + 0x28], rsi
jmp 0x10002d610
test eax, eax
je 0x10002d646
mov eax, 0xff
jmp 0x10002d718
mov dword [0x1000407ac], edi
mov eax, dword [0x100040fa4]
cmp eax, edi
jne 0x10002d66d
lea rdx, [0x100001688]
lea rcx, [0x100001628]
call sub.msvcrt.dll__initterm
mov dword [0x100040fa4], 2
test r12d, r12d
jne 0x10002d67b
xor eax, eax
xchg qword [0x100040fa8], rax
cmp qword [0x100040fc0], 0
je 0x10002d6a4
lea rcx, [0x100040fc0]
call fcn.10002dc6c
test eax, eax
je 0x10002d6a4
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x100040fc0]
mov r8, qword [0x100040790]
mov rdx, qword [0x100040798]
mov ecx, dword [0x100040788]
call fcn.100010a84
mov dword [0x1000407a8], eax
cmp dword [0x10004078c], 0
jne 0x10002d6d4
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x1000407ac], 0
jne 0x10002d6e9
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1000407a8]
jmp 0x10002d718
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
mov r12, qword [rsp + 0x50]
add rsp, 0x30
pop r13
ret
sub rsp, 0x28
call fcn.10002dd74
add rsp, 0x28
jmp 0x10002d580
Function at 0x10002d830
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x10003c108]
jne 0x10002d84b
rol rcx, 0x10
test cx, 0xffff
jne 0x10002d847
ret 0
ror rcx, 0x10
jmp 0x10002de30
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x100040860]
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
mov r11, qword [0x100040958]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.ntdll.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x10002deb5
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, [0x100040860]
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.ntdll.dll_RtlVirtualUnwind
jmp 0x10002ded7
mov rax, qword [rsp + 0x88]
mov qword [0x100040958], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1000408f8], rax
mov rax, qword [0x100040958]
mov qword [0x1000407d0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1000408e0], rax
mov dword [0x1000407c0], 0xc0000409
mov dword [0x1000407c4], 1
mov rax, qword [0x10003c108]
mov qword [rsp + 0x68], rax
mov rax, qword [0x10003c110]
mov qword [rsp + 0x70], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x100001770]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
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 0x10002dccc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x10002dd19
cmp rcx, 0xffffffffffffffff
je 0x10002dd19
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x10002dd11
cmp dword [rcx + 0x3c], edx
jl 0x10002dd11
cmp dword [rcx + 0x3c], 0x10000000
jae 0x10002dd11
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 0x10002dd19
mov rax, rdx
add rsp, 0x18
ret

Function at 0x10002df88
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x530
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.ntdll.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x10002dff3
and qword [rsp + 0x38], 0
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x50]
mov r9, rax
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov r8, rbx
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlVirtualUnwind]
jmp 0x10002e013
mov rax, qword [rsp + 0x538]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x538]
mov qword [rsp + 0xf8], rax
lea rcx, [0x100001780]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add rsp, 0x530
pop rbx
ret
Function at 0x140001070
Capabilities:
Execute command

Disassembly:
sub rsp, 0x28
lea rcx, str.start_chrome.exe_https:__fr.pornhub.com_
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, str.Amuse_toi_bien___
call fcn.140001010
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getchar]
xor eax, eax
add rsp, 0x28
ret

Function at 0x140001970
Capabilities:
Parse pe header

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

Disassembly:
sub rsp, 0x68
mov rax, qword [0x140022008]
xor rax, rsp
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x30]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x140001117
xor al, al
jmp 0x1400011a9
lea r8, [rsp + 0x38]
lea rdx, [0x14001f690]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x14000113e
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x1400011a9
mov dword [rsp + 0x40], 1
mov eax, 0xc
imul rax, rax, 0
mov rcx, qword [rsp + 0x38]
mov qword [rsp + rax + 0x44], rcx
mov eax, 0xc
imul rax, rax, 0
mov dword [rsp + rax + 0x4c], 2
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0x10
lea r8, [rsp + 0x40]
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x1400011a7
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x1400011a9
mov al, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140001830
add rsp, 0x68
ret

Function at 0x1400011c0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x290
mov rax, qword [0x140022008]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov dword [rsp + 0x20], 0
lea rax, [0x14001f6b4]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov rdi, rax
xor eax, eax
mov ecx, 0x238
rep stosb byte [rdi], al
mov dword [rsp + 0x40], 0x238
mov edx, dword [rsp + 0x20]
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140001287
mov rdx, qword [rsp + 0x2a0]
mov rcx, qword [rsp + 0x30]
call fcn.14000598c
test eax, eax
je 0x14000126e
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x20], eax
jmp 0x140001234
mov r8d, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x2a0]
lea rcx, str.___Got__ls_PID:__d_n
call fcn.140001060
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140001830
add rsp, 0x290
pop rdi
ret
Function at 0x140002224
Capabilities:
Parse pe header

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

Function at 0x1400088f0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400086ec
Function at 0x14000dc90
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 0x14000dcc0
xor eax, eax
jmp 0x14000dd83
mov rbp, rbx
cmp word [rax], si
je 0x14000dce5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000dccc
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000dcc8
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.14000dbb0
movsxd r14, eax
test eax, eax
jne 0x14000dd23
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000dcb9
mov rcx, r14
call fcn.14000ac90
mov rdi, rax
test rax, rax
jne 0x14000dd3c
xor ecx, ecx
call fcn.140009774
jmp 0x14000dd18
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.14000dbb0
test eax, eax
jne 0x14000dd6d
mov rcx, rdi
call fcn.140009774
jmp 0x14000dd77
xor ecx, ecx
call fcn.140009774
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 0x14001212c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140012142
mov al, 1
jmp 0x1400121a2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140012153
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400121a0
mov ecx, dword [rcx + 0x18]
nop
call fcn.14000e5b0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400121a0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400121a0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400121a0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400121a2
xor al, al
add rsp, 0x20
pop rbx
ret