joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14008c440
Capabilities:
Write clipboard data

Disassembly:
push rbx
push rsi
sub rsp, 0x28
mov rsi, rcx
mov rbx, rdx
lea rcx, [0x140106fe0]
call fcn.1400052f0
test eax, eax
jne 0x14008c47d
lea r8, [0x1400ccf5c]
lea rdx, str.Cant_open_clipboard_for_writing.
lea rcx, [0x1401063b0]
add rsp, 0x28
pop rsi
pop rbx
jmp fcn.140036a60
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x20], r15
call qword [sym.imp.USER32.dll_EmptyClipboard]
lea r14, [rsi + rbx]
xor r12d, r12d
lea rbx, [rsi + 4]
cmp rbx, r14
ja 0x14008c542
mov r15d, dword [rsi]
test r15d, r15d
je 0x14008c542
mov rax, rbx
add rbx, 8
cmp rbx, r14
ja 0x14008c542
mov edi, dword [rax]
mov rsi, rbx
add rbx, rdi
cmp rbx, r14
ja 0x14008c542
mov rdx, r12
test rdi, rdi
mov ecx, 0x42
sete dl
add rdx, rdi
call qword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov rbp, rax
test rax, rax
je 0x14008c600
test rdi, rdi
je 0x14008c529
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_GlobalLock]
test rax, rax
je 0x14008c5a1
mov r8d, edi
mov rdx, rsi
mov rcx, rax
call fcn.1400a71a0
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GlobalUnlock]
mov rsi, rbx
mov rdx, rbp
mov ecx, r15d
call qword [sym.imp.USER32.dll_SetClipboardData]
lea rbx, [rsi + 4]
cmp rbx, r14
jbe 0x14008c4b0
cmp dword [0x14010700c], r12d
je 0x14008c57c
cmp qword [0x140106ff0], r12
je 0x14008c568
mov rcx, qword [0x140106fe0]
call qword [sym.imp.KERNEL32.DLL_GlobalUnlock]
mov qword [0x140106ff0], r12
call qword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x14010700c], r12d
mov qword [0x140106fe0], r12
mov eax, 1
mov r14, qword [rsp + 0x58]
mov r12, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
mov r15, qword [rsp + 0x20]
add rsp, 0x28
pop rsi
pop rbx
ret
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GlobalFree]
cmp dword [0x14010700c], r12d
je 0x14008c5e4
cmp qword [0x140106ff0], r12
je 0x14008c5d0
mov rcx, qword [0x140106fe0]
call qword [sym.imp.KERNEL32.DLL_GlobalUnlock]
mov qword [0x140106ff0], r12
call qword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x14010700c], r12d
mov qword [0x140106fe0], r12
lea r8, [0x1400ccf5c]
lea rdx, [0x1400cd2c8]
lea rcx, [0x1401063b0]
call fcn.140036a60
jmp 0x14008c581
cmp dword [0x14010700c], r12d
je 0x14008c63a
cmp qword [0x140106ff0], r12
je 0x14008c626
mov rcx, qword [0x140106fe0]
call qword [sym.imp.KERNEL32.DLL_GlobalUnlock]
mov qword [0x140106ff0], r12
call qword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x14010700c], r12d
mov qword [0x140106fe0], r12
lea r8, [0x1400ccf5c]
lea rdx, str.Out_of_memory.
lea rcx, [0x1401063b0]
call fcn.140036a60
jmp 0x14008c581
Function at 0x14008cab0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
mov rbx, rdx
movzx ecx, byte [rcx + 0x23]
test ecx, ecx
je 0x14008ccf0
mov qword [rsp + 0x50], rsi
sub ecx, 1
je 0x14008cb46
sub ecx, 1
je 0x14008cb16
cmp ecx, 1
je 0x14008cafa
mov rdx, qword [rdi + 0x28]
mov rcx, rbx
call qword [rdi + reloc.OLEAUT32.dll_SafeArrayGetElement]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
test rbx, rbx
je 0x14008cb04
xor esi, esi
mov word [rdx], si
xor eax, eax
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
call fcn.140004b80
xor esi, esi
mov ecx, 0xffffffff
cmp rax, rcx
cmove rax, rsi
test rbx, rbx
je 0x14008cc89
mov word [rbx + rax*2], si
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov rcx, rdi
call fcn.140001340
cmp dword [0x140102c94], 0
jne 0x14008cc47
cmp qword [rdi + 0x10], 0
jne 0x14008cc47
cmp qword [0x140108990], rdi
jne 0x14008cb74
test rbx, rbx
jne 0x14008cbf3
mov rcx, qword [rdi + 0x28]
lea rdx, [rsp + 0x40]
xor r8d, r8d
call qword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
test eax, eax
je 0x14008cbee
xor esi, esi
mov qword [0x140108990], rsi
test rbx, rbx
je 0x14008cbdc
mov edx, dword [0x140102ca4]
test edx, edx
je 0x14008cbbe
mov r9, qword [rdi + 0x28]
lea r8, str.An_environment_variable_is_being_accessed__see_NoEnv.
lea rcx, [0x1401063b0]
mov qword [rsp + 0x20], rsi
call fcn.140037350
mov rcx, qword [rdi + 0x28]
mov rdx, rbx
call fcn.14008a8d0
mov rsi, qword [rsp + 0x50]
mov eax, eax
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
dec eax
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
test rbx, rbx
je 0x14008cc2e
cmp byte [rdi + 0x23], 0
jne 0x14008cbff
mov rax, qword [rdi + 0x10]
jmp 0x14008cc02
mov rax, rdi
test byte [rax + 0x21], 4
je 0x14008cc10
mov rdx, rdi
call fcn.1400374a0
xor esi, esi
mov word [rbx], si
xor eax, eax
mov qword [0x140108990], rsi
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov rsi, qword [rsp + 0x50]
xor eax, eax
mov qword [0x140108990], rdi
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov r8, qword [rdi + 0x10]
mov qword [rsp + 0x48], rbp
mov rbp, r8
shr rbp, 1
test rbx, rbx
je 0x14008cceb
test r8, r8
jne 0x14008cc99
xor esi, esi
mov rax, rdi
cmp byte [rdi + 0x23], sil
cmove rax, rsi
test byte [rax + 0x21], 4
je 0x14008cc7f
mov rdx, rdi
call fcn.1400374a0
mov word [rbx], si
xor eax, eax
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov rdx, qword [rdi + 8]
cmp rbx, rdx
je 0x14008cceb
cmp r8, 0x186a0
jae 0x14008ccdd
movzx eax, word [rdx]
test ax, ax
je 0x14008ccd3
nop dword [rax]
nop word [rax + rax]
mov word [rbx], ax
lea rdx, [rdx + 2]
movzx eax, word [rdx]
add rbx, 2
test ax, ax
jne 0x14008ccc0
xor esi, esi
mov rax, rbp
mov word [rbx], si
jmp 0x14008cc84
mov rcx, rbx
call fcn.1400a71a0
xor esi, esi
mov word [rbx + rbp*2], si
mov rax, rbp
jmp 0x14008cc84
mov rcx, qword [rdi + 0x10]
call fcn.14008cab0
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x14008dbd0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov rbx, rcx
test r8b, r8b
je 0x14008dbf0
call fcn.140062e60
jmp 0x14008dc00
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x10]
call qword [sym.imp.USER32.dll_PostMessageW]
xor edi, edi
test esi, esi
cmovns edi, esi
test edi, edi
je 0x14008dc5c
call qword [sym.imp.KERNEL32.DLL_GetTickCount]
mov edx, 1
mov ecx, 0x8000012f
mov esi, eax
call fcn.140001700
mov rcx, rbx
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x14008dc5c
add edi, esi
call qword [sym.imp.KERNEL32.DLL_GetTickCount]
mov ecx, edi
sub ecx, eax
cmp ecx, 5
jle 0x14008dc5c
mov edx, 1
mov ecx, 0x8000012f
call fcn.140001700
mov rcx, rbx
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x14008dc31
mov rsi, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14008fd30
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x20], rbx
push r14
sub rsp, 0x20
cmp qword [rcx + 0x10], 0
movzx r14d, dl
mov rbx, rcx
jne 0x14008fd5a
mov eax, 1
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x40], rdi
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov r8, qword [0x1400fda58]
mov rcx, rbx
mov rdx, rax
mov rdi, rax
call fcn.140090300
cmp byte [rbx], 0
mov rbp, rax
je 0x14008fd91
test rax, rax
jne 0x14008fd9a
jmp 0x14008fe32
test rbp, rbp
jne 0x14008fe2d
test rdi, rdi
je 0x14008fe2d
xor r9d, r9d
mov qword [rsp + 0x38], rsi
xor r8d, r8d
mov rcx, rdi
lea edx, [r9 + 0x10]
call qword [sym.imp.USER32.dll_PostMessageW]
call qword [sym.imp.KERNEL32.DLL_GetTickCount]
mov edx, 1
mov ecx, 0x8000012f
mov esi, eax
call fcn.140001700
mov rcx, rdi
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x14008fe0f
nop
call qword [sym.imp.KERNEL32.DLL_GetTickCount]
lea ecx, [rsi + 0x1f4]
sub ecx, eax
cmp ecx, 5
jle 0x14008fe0f
mov edx, 1
mov ecx, 0x8000012f
call fcn.140001700
mov rcx, rdi
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x14008fde0
mov rax, qword [0x1400fda58]
mov rsi, qword [rsp + 0x38]
mov ecx, dword [rax + 0x74]
cmp ecx, 0xffffffff
jle 0x14008fe2d
mov edx, 1
call fcn.140001700
cmp byte [rbx], 0
je 0x14008fe46
xor r9d, r9d
mov r8, rbp
movzx edx, r14b
mov rcx, rbx
call fcn.14008fe70
jmp 0x14008fe52
movzx edx, r14b
mov rcx, rbx
call fcn.140090060
mov rdi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x1400acf30
Capabilities:
Parse pe header

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, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x1400acd04
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test rax, rax
je 0x1400acd04
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400acd04
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400acd04
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400acd04
cmp dword [rcx + 0x84], 0xe
jbe 0x1400acd04
cmp dword [rcx + 0xf8], esi
je 0x1400acd04
mov ecx, r14d
call fcn.1400ace4c
mov ecx, 2
call fcn.1400b6164
nop
cmp byte [0x140100a80], 0
jne 0x1400acdce
mov r15d, 1
mov eax, r15d
xchg dword [0x140100a74], eax
test ebx, ebx
jne 0x1400acd77
mov rdi, qword [0x1400fd018]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x140100a78]
cmp rcx, rax
je 0x1400acd6e
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.140016cd0]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x140100cc0]
jmp 0x1400acd83
cmp ebx, r15d
jne 0x1400acd89
lea rcx, [0x140100cd8]
call fcn.1400b2d80
nop
test ebx, ebx
jne 0x1400acda0
lea rdx, [0x1400c4f68]
lea rcx, [0x1400c4f48]
call fcn.1400b3118
lea rdx, [0x1400c4f78]
lea rcx, [0x1400c4f70]
call fcn.1400b3118
movzx eax, byte [0x140100a80]
test esi, esi
cmove eax, r15d
mov byte [0x140100a80], al
jmp 0x1400acdce
mov ecx, 2
call fcn.1400b61b8
test esi, esi
jne 0x1400acde5
mov ecx, r14d
call fcn.1400ace00
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x1400acc94
Function at 0x140007510
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x14004c120]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov r9d, dword [rcx + 8]
xor ebp, ebp
mov rsi, rdx
mov r8, rdx
mov rdx, qword [rcx]
mov rdi, rcx
lea rcx, [rsp + 0x48]
or r9d, 0x2001f
mov qword [rsp + 0x48], rbp
mov dword [rsp + 0x50], ebp
mov qword [rsp + 0x58], rbp
call fcn.140006000
mov ebx, eax
test eax, eax
jne 0x140007627
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x70]
xor edx, edx
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x40], 0x100
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x140007601
nop dword [rax + rax]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.140007510
mov ebx, eax
test eax, eax
jne 0x140007627
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x70]
xor edx, edx
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x40], 0x100
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x1400075b0
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140007616
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], rbp
mov rdx, rsi
mov rcx, rdi
mov dword [rsp + 0x50], ebp
call fcn.140004520
mov ebx, eax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140007637
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140018f80
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret

Function at 0x140007660
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x1400076d4
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je case.default.0x1400076ef
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je case.default.0x1400076ef
mov rcx, qword [rbx]
mov qword [rsp + 0x28], 0
xor r9d, r9d
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call rax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp dword [rcx + 8], 0
je case.default.0x1400076ef
mov rdx, r8
mov rcx, rsi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov eax, 1
add rsp, 0x30
pop rdi
ret
invalid
cmp dh, ah
ja 0x14007d877
invalid
Function at 0x1400011c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x60
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rsi, r9
mov rax, r8
mov rbx, rcx
mov qword [rsp + 0x38], rcx
xor ebp, ebp
mov dword [rsp + 0x30], ebp
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rbp
mov qword [rcx + 0x18], 7
mov word [rcx], bp
mov dword [rsp + 0x30], 1
cmp qword [r8 + 0x18], 7
jbe 0x140001216
mov rax, qword [r8]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x20], rcx
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000135c
mov dword [rsp + 0x48], ebp
mov rdx, rsi
cmp qword [rsi + 0x18], 7
jbe 0x140001252
mov rdx, qword [rsi]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x4c]
xor r8d, r8d
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140001351
cmp dword [rsp + 0x4c], 1
jne 0x140001351
mov edx, dword [rsp + 0x48]
shr rdx, 1
mov rdi, qword [rbx + 0x10]
cmp rdx, rdi
ja 0x1400012ae
mov qword [rbx + 0x10], rdx
mov rax, rbx
cmp qword [rbx + 0x18], 7
jbe 0x1400012a8
mov rax, qword [rbx]
mov word [rax + rdx*2], bp
jmp 0x1400012f7
mov rcx, rdx
sub rcx, rdi
mov r9, qword [rbx + 0x18]
mov rax, r9
sub rax, rdi
cmp rcx, rax
ja 0x1400012e9
mov qword [rbx + 0x10], rdx
mov r8, rbx
cmp r9, 7
jbe 0x1400012d3
mov r8, qword [rbx]
lea rdi, [r8 + rdi*2]
test rcx, rcx
je 0x1400012e2
movzx eax, bp
rep stosw word [rdi], ax
mov word [r8 + rdx*2], bp
jmp 0x1400012f7
mov r9, rcx
mov rdx, rcx
mov rcx, rbx
call fcn.140002ab0
mov rax, rbx
cmp qword [rbx + 0x18], 7
jbe 0x140001304
mov rax, qword [rbx]
cmp qword [rsi + 0x18], 7
jbe 0x14000130e
mov rsi, qword [rsi]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140001351
mov rax, qword [rbx + 0x10]
dec rax
mov qword [rbx + 0x10], rax
mov rcx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x14000134d
mov rcx, qword [rbx]
mov word [rcx + rax*2], bp
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rbx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140002f10
mov rbx, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
Function at 0x140001180
Capabilities:
Terminate process

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x1400044e0]
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
xor edi, edi
mov rax, qword gs:[0x30]
mov rsi, qword [rax + 8]
jmp 0x1400011c0
cmp rsi, rax
je 0x140001320
mov ecx, 0x3e8
call rbp
mov rax, rdi
lock cmpxchg qword [rbx], rsi
test rax, rax
jne 0x1400011b0
mov rsi, qword [0x1400044f0]
xor edi, edi
mov eax, dword [rsi]
cmp eax, 1
je 0x140001337
mov eax, dword [rsi]
test eax, eax
je 0x1400013a0
mov dword [0x140007008], 1
mov eax, dword [rsi]
cmp eax, 1
je 0x14000134c
test edi, edi
je 0x14000136d
mov rax, qword [0x140004450]
mov rax, qword [rax]
test rax, rax
je 0x140001223
xor r8d, r8d
mov edx, 2
xor ecx, ecx
call rax
call dbg._pei386_runtime_relocator
mov rcx, qword [dbg._gnu_exception_handler]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rdx, qword [0x1400044d0]
lea rcx, [dbg.__mingw_invalidParameterHandler]
mov qword [rdx], rax
call sym._set_invalid_parameter_handler
call dbg._fpreset
mov ebx, dword [0x140007028]
lea edi, [rbx + 1]
movsxd rdi, edi
shl rdi, 3
mov rcx, rdi
call sym.malloc
mov r12, qword [0x140007020]
mov rbp, rax
test ebx, ebx
jle 0x1400013c0
sub rdi, 8
xor ebx, ebx
mov rcx, qword [r12 + rbx]
call sym.strlen
lea rsi, [rax + 1]
mov rcx, rsi
call sym.malloc
mov r8, rsi
mov qword [rbp + rbx], rax
mov rdx, qword [r12 + rbx]
mov rcx, rax
add rbx, 8
call sym.memcpy
cmp rdi, rbx
jne 0x140001280
add rdi, rbp
mov qword [rdi], 0
mov qword [0x140007020], rbp
call dbg.__main
mov rax, qword [0x140004460]
mov r8, qword [0x140007018]
mov ecx, dword [0x140007028]
mov rax, qword [rax]
mov qword [rax], r8
mov rdx, qword [0x140007020]
call dbg.main
mov ecx, dword [0x14000700c]
mov dword [0x140007010], eax
test ecx, ecx
je 0x1400013c8
mov edx, dword [0x140007008]
test edx, edx
je 0x140001380
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rsi, qword [0x1400044f0]
mov edi, 1
mov eax, dword [rsi]
cmp eax, 1
jne 0x1400011e1
mov ecx, 0x1f
call dbg._amsg_exit
mov eax, dword [rsi]
cmp eax, 1
jne 0x140001200
mov rdx, qword [0x140004510]
mov rcx, qword [0x140004500]
call sym._initterm
mov dword [rsi], 2
test edi, edi
jne 0x140001208
xor eax, eax
xchg qword [rbx], rax
jmp 0x140001208
call sym._cexit
mov eax, dword [0x140007010]
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rdx, qword [0x140004530]
mov rcx, qword [0x140004520]
mov dword [rsi], 1
call sym._initterm
jmp 0x1400011f5
mov rdi, rax
jmp 0x1400012b5
mov ecx, eax
call sym.exit
nop
Function at 0x1400015ea
Capabilities:
Create process on windows
Hide graphical window

Disassembly:
push rbp
push rbx
sub rsp, 0xe8
lea rbp, [rsp + 0xe0]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov dword [rbp + 0x38], r9d
mov rax, qword [rbp + 0x20]
mov qword [0x140007030], rax
pxor xmm0, xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movq qword [rbp - 0x10], xmm0
lea rax, [sym.WindowProc_HWND____unsigned_int__unsigned_long_long__long_long_]
mov qword [rbp - 0x48], rax
mov rax, qword [rbp + 0x20]
mov qword [rbp - 0x38], rax
lea rax, str.GETREKT
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x50]
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_RegisterClassW]
call rax
mov ecx, 1
mov rax, qword [sym.imp.USER32.dll_GetSystemMetrics]
call rax
mov ebx, eax
mov ecx, 0
mov rax, qword [sym.imp.USER32.dll_GetSystemMetrics]
call rax
mov qword [rsp + 0x58], 0
mov rdx, qword [rbp + 0x20]
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0x80000000
lea r8, str.GET_REKT_
lea rax, str.GETREKT
mov rdx, rax
mov ecx, 0x80008
mov rax, qword [sym.imp.USER32.dll_CreateWindowExW]
call rax
mov qword [0x140007038], rax
mov rax, qword [0x140007038]
mov edx, 0xa
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_ShowWindow]
call rax
mov rax, qword [0x140007038]
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_UpdateWindow]
call rax
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], 0
mov r9d, 0
lea r8, str.https:__www.youtube.com_watch_vdQw4w9WgXcQ
lea rax, str.open
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.SHELL32.dll_ShellExecuteW]
call rax
jmp 0x140001766
lea rax, [rbp - 0x80]
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_TranslateMessage]
call rax
lea rax, [rbp - 0x80]
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_DispatchMessageA]
call rax
lea rax, [rbp - 0x80]
mov r9d, 0
mov r8d, 0
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_GetMessageA]
call rax
test eax, eax
setne al
test al, al
jne 0x140001746
mov eax, 0
add rsp, 0xe8
pop rbx
pop rbp
ret

Function at 0x140001a70
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 sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call dbg.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x140001ae0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400070a4]
mov rbx, rcx
test esi, esi
jle 0x140001c10
mov rax, qword [0x1400070a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001b2b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001bb5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001b10
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001c32
mov rax, qword [0x1400070a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400070a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001c17
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140001bae
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140001bc0
add dword [0x1400070a4], 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 [0x1400070a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001bae
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140001b38
mov rax, qword [0x1400070a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400021c0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140007100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400070e0]
test rbx, rbx
je 0x14000221c
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 0x140002213
test eax, eax
jne 0x140002213
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400021f8
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 0x140002430
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140002448
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002450
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret