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

Disassembly:
lea r12, [rsp - 0x20]
cmp r12, qword [r14 + 0x10]
jbe 0x4b7519
push rbp
mov rbp, rsp
sub rsp, 0x98
mov qword [rsp + 0xb0], rbx
mov qword [rsp + 0xa8], rax
nop
lea rax, [0x004d3cc0]
call fcn.0040c6a0
mov qword [rsp + 0x70], rax
mov qword [rax + 8], 9
lea rcx, [0x004df6ea]
mov qword [rax], rcx
mov byte [rax + 0x10], 1
nop
lea rax, [0x004d3cc0]
call fcn.0040c6a0
mov qword [rsp + 0x68], rax
mov qword [rax + 8], 8
lea rcx, [0x004df47a]
mov qword [rax], rcx
mov byte [rax + 0x10], 1
nop
lea rax, [0x004d3c00]
call fcn.0040c6a0
cmp dword [0x00623070], 0
jne 0x4b7317
mov rcx, qword [rsp + 0x70]
jmp 0x4b7324
call fcn.004613a0
mov rcx, qword [rsp + 0x70]
mov qword [r11], rcx
mov qword [rsp + 0x60], rax
mov qword [rax + 0x18], rcx
mov qword [rax + 8], 0xd
lea rcx, [0x004e0501]
mov qword [rax], rcx
nop
lea rax, [0x004d3c00]
call fcn.0040c6a0
cmp dword [0x00623070], 0
jne 0x4b7360
mov rcx, qword [rsp + 0x68]
jmp 0x4b736d
call fcn.004613a0
mov rcx, qword [rsp + 0x68]
mov qword [r11], rcx
mov qword [rsp + 0x58], rax
mov qword [rax + 0x18], rcx
mov qword [rax + 8], 0xc
lea rcx, [0x004e0081]
mov qword [rax], rcx
mov qword [rsp + 0x40], 0
mov rcx, qword [rsp + 0xb0]
mov qword [rsp + 0x48], rcx
lea rax, [0x004c4680]
call fcn.0040c6a0
mov rcx, qword [rsp + 0xb0]
mov qword [rax + 8], rcx
mov qword [rax + 0x10], 0x3000
mov qword [rax + 0x18], 0x40
mov rbx, rax
mov edi, 4
mov rax, qword [rsp + 0x58]
mov rcx, rdi
call fcn.004b0360
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0xb0]
test rcx, rcx
jbe 0x4b750e
mov rcx, qword [rsp + 0xa8]
mov qword [rsp + 0x90], rcx
lea rax, [0x004c4620]
call fcn.0040c6a0
mov rcx, qword [rsp + 0x50]
mov qword [rax], rcx
mov rcx, qword [rsp + 0x90]
mov qword [rax + 8], rcx
mov rcx, qword [rsp + 0xb0]
mov qword [rax + 0x10], rcx
mov rbx, rax
mov ecx, 3
mov rdi, rcx
mov rax, qword [rsp + 0x60]
nop dword [rax]
call fcn.004b0360
movzx ecx, word [0x00622e04]
mov word [rsp + 0x3e], cx
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x88], rdx
lea rdx, [rsp + 0x48]
mov qword [rsp + 0x80], rdx
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x78], rdx
lea rax, [0x004c46e0]
nop dword [rax]
call fcn.0040c6a0
mov qword [rax], 0xffffffffffffffff
mov rcx, qword [rsp + 0x88]
mov qword [rax + 8], rcx
mov rcx, qword [rsp + 0x80]
mov qword [rax + 0x10], rcx
mov qword [rax + 0x18], 0x20
mov rcx, qword [rsp + 0x78]
mov qword [rax + 0x20], rcx
movzx ecx, word [rsp + 0x3e]
mov word [rsp], cx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], 5
mov qword [rsp + 0x18], 5
call fcn.004aad00
xorps xmm15, xmm15
mov r14, qword [0x00623030]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x50]
xor ebx, ebx
mov rcx, rbx
mov rdi, rcx
mov rsi, rcx
nop dword [rax]
call fcn.0045dde0
add rsp, 0x98
pop rbp
ret
xor eax, eax
mov rcx, rax
call fcn.00461720
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
call fcn.0045f4a0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
nop dword [rax]
jmp fcn.004b7280
Function at 0x140003110
Capabilities:
Get local ipv4 addresses

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rbp, qword [0x140006a30]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rax, qword [rbp]
mov qword [rsp + 0x48], rax
xor eax, eax
lea rsi, [rsp + 0x3c]
xor eax, eax
mov rdi, rcx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
mov dword [rsp + 0x3c], eax
call fcn.1400017a0
cmp eax, 0x6f
je 0x14000315a
xor eax, eax
jmp 0x1400031dc
mov edx, dword [rsp + 0x3c]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
test rax, rax
mov rbx, rax
je 0x140003153
mov qword [rsp + 0x20], rsi
mov r9, rax
xor r8d, r8d
xor edx, edx
lea r12, [rsp + 0x42]
xor ecx, ecx
mov rsi, rbx
call fcn.1400017a0
cmp dword [rsi + 0x58], 6
jne 0x1400031c5
mov eax, dword [rsi + 0x50]
mov r8d, 3
mov rdx, r12
mov rcx, rdi
mov dword [rsp + 0x42], eax
mov ax, word [rsi + 0x54]
mov word [rsp + 0x46], ax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcmp
test eax, eax
jne 0x1400031c5
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov al, 1
jmp 0x1400031dc
mov rsi, qword [rsi + 8]
test rsi, rsi
jne 0x14000318d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140003153
mov rdx, qword [rsp + 0x48]
sub rdx, qword [rbp]
je 0x1400031ec
call fcn.140002870
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x140003290
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push rsi
push rbx
sub rsp, 0x48
mov rbx, qword [0x140006a30]
mov rsi, qword [sym.imp.USER32.dll_GetCursorPos]
mov rax, qword [rbx]
mov qword [rsp + 0x38], rax
xor eax, eax
lea rcx, [rsp + 0x28]
call rsi
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x30]
call rsi
mov edx, dword [rsp + 0x30]
xor eax, eax
cmp dword [rsp + 0x28], edx
jne 0x1400032de
mov eax, dword [rsp + 0x34]
cmp dword [rsp + 0x2c], eax
sete al
mov rdx, qword [rsp + 0x38]
sub rdx, qword [rbx]
je 0x1400032ed
call fcn.140002870
add rsp, 0x48
pop rbx
pop rsi
ret

Function at 0x140003300
Capabilities:
Enumerate processes

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x160
mov rdi, qword [0x140006a30]
xor edx, edx
mov rax, qword [rdi]
mov qword [rsp + 0x158], rax
xor eax, eax
mov rsi, rcx
mov ecx, 2
mov dword [rsp + 0x28], 0x238
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea rbp, [rsp + 0x28]
mov rdx, rbp
mov rcx, rax
mov rbx, rax
call sub.KERNEL32.dll_Process32First
lea r12, [rsp + 0x54]
test eax, eax
jne 0x140003358
xor eax, eax
jmp 0x14000337a
mov rdx, rbp
mov rcx, rbx
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x140003354
mov rdx, rsi
mov rcx, r12
call sub.api_ms_win_crt_string_l1_1_0.dll__stricmp
test eax, eax
jne 0x140003358
mov eax, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x158]
sub rdx, qword [rdi]
je 0x14000338c
call fcn.140002870
add rsp, 0x160
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x1400033a0
Capabilities:
Get system information on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rbx, qword [0x140006a30]
mov rax, qword [rbx]
mov qword [rsp + 0x58], rax
xor eax, eax
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [rsp + 0x48], 1
setbe al
mov rdx, qword [rsp + 0x58]
sub rdx, qword [rbx]
je 0x1400033d8
call fcn.140002870
add rsp, 0x60
pop rbx
ret

Function at 0x1400033e0
Capabilities:
Get local ipv4 addresses

Disassembly:
sub rsp, 0x28
lea rcx, [0x140006090]
call fcn.140003110
test al, al
jne 0x140003454
lea rcx, [0x140006094]
call fcn.140003110
test al, al
jne 0x140003454
lea rcx, [0x140006098]
call fcn.140003110
test al, al
jne 0x140003454
lea rcx, [0x14000609c]
call fcn.140003110
test al, al
jne 0x140003454
lea rcx, [0x1400060a0]
call fcn.140003110
test al, al
jne 0x140003454
lea rcx, [0x1400060a4]
call fcn.140003110
test al, al
jne 0x140003454
lea rcx, [0x1400060a8]
add rsp, 0x28
jmp fcn.140003110
mov al, 1
add rsp, 0x28
ret

Function at 0x140003460
Capabilities:
Get memory capacity

Disassembly:
push rbx
sub rsp, 0x70
mov rbx, qword [0x140006a30]
mov rax, qword [rbx]
mov qword [rsp + 0x68], rax
xor eax, eax
mov dword [rsp + 0x28], 0x40
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
cmp qword [rsp + 0x30], 0x7fffffff
setbe al
mov rdx, qword [rsp + 0x68]
sub rdx, qword [rbx]
je 0x1400034a4
call fcn.140002870
add rsp, 0x70
pop rbx
ret

Function at 0x140003700
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x250
mov rbx, qword [0x140006a30]
lea rsi, section..rdata
mov rax, qword [rbx]
mov qword [rsp + 0x248], rax
xor eax, eax
lea rdi, [rsp + 0x28]
mov r9, rcx
mov ecx, 8
rep movsd dword [rdi], dword [rsi]
lea r10, [rsp + 0x148]
mov r11, rdx
lea rbp, [rsp + 0x48]
mov rdx, rax
mov byte [rax + r10], al
inc rax
and edx, 0x1f
mov dl, byte [rsp + rdx + 0x28]
mov byte [rax + rbp - 1], dl
cmp rax, 0x100
jne 0x14000374b
mov r12, r10
xor esi, esi
xor r13d, r13d
mov edi, 0x100
movzx eax, byte [r12]
movzx edx, byte [rbp + rsi]
inc rsi
add eax, r13d
add eax, edx
cdq
idiv edi
movsxd rcx, edx
mov rdx, r12
inc r12
mov r13, rcx
add rcx, r10
call fcn.140003080
cmp rsi, 0x100
jne 0x140003775
lea rdi, [r9 + r11]
xor ebp, ebp
xor r12d, r12d
cmp rdi, r9
je 0x140003805
lea eax, [rbp + 1]
cdq
idiv esi
movsxd r13, edx
movzx eax, byte [rsp + r13 + 0x148]
lea rcx, [r10 + r13]
mov rbp, r13
add eax, r12d
cdq
idiv esi
movsxd r14, edx
lea rdx, [r10 + r14]
mov r12, r14
call fcn.140003080
mov cl, byte [rsp + r14 + 0x148]
add cl, byte [rsp + r13 + 0x148]
movzx ecx, cl
mov al, byte [rsp + rcx + 0x148]
xor byte [r9], al
inc r9
jmp 0x1400037b0
mov rax, qword [rsp + 0x248]
sub rax, qword [rbx]
je 0x140003817
call fcn.140002870
mov rax, r11
add rsp, 0x250
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
Function at 0x140001180
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x38
mov qword [rsp + 0x30], 0x4e4d04ce
mov rax, qword [rsp + 0x28]
invalid
invalid

Function at 0x1400011a4
Capabilities:
Terminate process

Disassembly:
xor byte [rcx + 0x25], bl
cdq
imul ecx, dword [rax - 0x7f], 0x711975fa
jne 0x1400011c7
jno 0x140001205

Function at 0x1400011f0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rax
cmp eax, 3
jb 0x1400011b9
invalid
jmp 0x1400011c6

Function at 0x1400034f0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x38
lea rax, [fcn.1400034f0]
mov rcx, qword [rsp + 0x28]
mov qword [rsp + 0x18], rcx
mov rdx, qword [rsp + 0x18]
shl rdx, cl
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x30], 0x4ff2a34b
mov qword [rsp + 0x10], rax
jmp 0x14000355b
mov dword [rsp + 0x24], 0xd8b3bf72
mov rax, qword [rsp + 8]
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
je 0x140003598
mov rax, qword [rsp + 0x30]
xor rax, 0xffffffffb00d534b
mov rcx, qword [rsp + 8]
add rcx, rax
and rcx, 0xfffffffffffff000
mov qword [rsp + 0x10], rcx
mov rax, qword [rsp + 0x10]
mov ecx, 0x405892d9
mov edx, 0x27712b95
mov r8d, dword [rsp + 0x24]
mov dword [rsp + 4], ecx
mov ecx, r8d
shr edx, cl
mov dword [rsp + 0x24], edx
mov ecx, dword [rsp + 0x24]
mov edx, dword [rsp + 4]
shr edx, cl
mov dword [rsp + 0x24], edx
cmp word [rax], 0x5a4d
mov qword [rsp + 8], rax
je 0x140003522
jmp 0x14000353c
mov rax, qword [rsp + 8]
add rsp, 0x38
ret
Function at 0x180040df0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180040e18
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x180040e18
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x180041e90
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
lea rcx, [0x180056188]
mov esi, r9d
mov rbp, r8
call fcn.1800144a8
lea rcx, str.8192
mov edi, eax
call fcn.1800144a8
lea rcx, str.4096
mov ebx, eax
call fcn.1800144a8
or ebx, eax
mov edx, esi
mov r8d, ebx
mov r9d, edi
xor ecx, ecx
call qword [0x180092a38]
mov rbx, rax
test rax, rax
je 0x180041fa8
xor ecx, ecx
test esi, esi
je 0x180041fa5
mov r10d, dword [0x180090a80]
mov edi, 2
mov r9d, dword [0x180090a74]
mov edx, dword [0x180090a84]
mov r8d, dword [0x180090a78]
mov r11d, r8d
imul r11d, edx
lea eax, [r10 + r9]
imul eax, r9d
imul r11d, r9d
add eax, eax
sub edi, eax
lea eax, [r10 + 3]
imul eax, dword [0x180090a7c]
inc r11d
imul edi, edx
imul r11d, r9d
sub r11d, eax
lea eax, [rdx - 3]
imul eax, dword [0x180090a70]
add r11d, eax
lea eax, [r8 + 2]
imul eax, r10d
lea r10, str.u1B_S_ARUe47
add r11d, eax
shl r11d, 2
sub r11d, edi
nop
lea r9d, [rdi + rcx]
mov eax, 0x88888889
mul ecx
shr edx, 3
imul eax, edx, 0xf
mov edx, ecx
inc ecx
sub edx, eax
lea eax, [r11 + r9]
movsxd r8, edx
movsxd rdx, eax
movsxd rax, r9d
movzx r8d, byte [r8 + r10]
xor r8b, byte [rdx + rbp]
mov byte [rax + rbx], r8b
cmp ecx, esi
jb 0x180041f70
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180041fd0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
movsxd r9, dword [0x180090a74]
mov r12, rdx
movsxd r15, dword [0x180090a80]
mov r13, rcx
movsxd rcx, dword [0x180090a78]
mov eax, r15d
movsxd rdx, dword [0x180090a70]
mov ebp, ecx
imul eax, edx
mov r10, rdx
movsxd r11, dword [0x180090a84]
mov rbx, rcx
mov rdi, r9
movsxd r8, eax
movsxd rax, dword [0x180090a7c]
mov rsi, rax
imul ebp, eax
mov eax, edx
imul eax, edx
imul eax, ecx
imul eax, r9d
imul eax, dword [0x180090a7c]
movsxd rdx, eax
mov eax, ecx
imul eax, ecx
imul eax, ecx
cdqe
sub rdx, rax
mov eax, r9d
imul eax, r9d
movsxd rcx, eax
lea rax, [r15 + r15]
sub rax, r10
sub rdx, rcx
add rax, r11
sub rdx, r9
add rax, rsi
add rdx, rsi
add rax, r8
add rdx, r10
imul rcx, rax, 0x420
add rdx, r8
shl rdx, 6
movsxd rdx, dword [rdx + r12 + 0x3c]
lea rax, [r12 + rdx]
mov r8d, dword [rcx + rax + 0x88]
mov eax, r15d
imul eax, r15d
movsxd rcx, ebp
add rcx, r11
sub r11, r10
add rcx, r10
add r11, rdi
imul eax, dword [0x180090a70]
imul eax, r9d
cdqe
lea rdx, [rax + rcx*2]
mov eax, dword [0x180090a84]
imul eax, r15d
cdqe
add rdx, rax
mov eax, dword [0x180090a84]
imul eax, dword [0x180090a7c]
movsxd rcx, eax
lea rax, [r12 + r8]
add rdx, rcx
sub rdx, rsi
add rdx, rbx
add rdx, r10
lea r9, [rdx + rdx*4]
mov edx, dword [0x180090a7c]
shl r9, 4
add r9, rax
mov eax, r15d
imul eax, edx
cdqe
lea r11, [rax + r11*2]
mov eax, dword [r9 + 0x20]
add r11, rax
sub r11, rsi
add r11, rbx
mov r8d, dword [0x180090a78]
add r11, r15
mov esi, dword [0x180090a84]
mov r14d, edx
mov eax, dword [r9 + 0x1c]
mov ecx, esi
mov edi, dword [0x180090a74]
add rax, r12
mov qword [rsp + 0x48], rax
add r11, r12
mov eax, dword [r9 + 0x24]
xor r10d, r10d
add rax, r12
imul r14d, edx
mov qword [rsp + 0x40], rax
lea eax, [rbp + 1]
mov ebp, dword [0x180090a70]
imul eax, r8d
sub ecx, eax
lea eax, [rbp + 1]
sub ecx, edi
imul eax, ebp
imul ecx, esi
add ecx, eax
lea eax, [r15 + 1]
imul eax, r8d
add ecx, eax
mov eax, dword [r9 + 0x18]
sub ecx, r14d
lea ebx, [rax + rcx*2]
test ebx, ebx
je 0x1800421f0
add edx, edx
lea eax, [r8 + 1]
imul eax, r8d
mov ecx, esi
imul ecx, edi
imul ecx, edi
add ecx, eax
imul ecx, esi
sub edx, ecx
lea ecx, [rsi + rbp]
imul ecx, r8d
add ecx, 2
add ecx, r14d
imul ecx, ebp
sub edx, ecx
sub edx, edi
lea r9d, [rdx + rdx]
nop dword [rax + rax]
lea eax, [r9 + r10]
mov r8, r13
mov eax, dword [r11 + rax*4]
add rax, r12
sub r8, rax
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x1800421e4
inc rax
test ecx, ecx
jne 0x1800421d1
test edx, edx
je 0x180042207
inc r10d
cmp r10d, ebx
jb 0x1800421c0
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x50]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x48]
movzx ecx, word [rcx + r10*2]
mov eax, dword [rax + rcx*4]
add rax, r12
jmp 0x1800421f2
Function at 0x140001d68
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001db2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001db2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001db2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001db2
cmp dword [rcx + 0x84], 0xe
jbe 0x140001db2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001db4
xor al, al
add rsp, 0x28
ret
Function at 0x14000392c
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x8d8]
sub rsp, 0x9c0
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
mov rax, qword [0x140022010]
xor rax, rsp
mov qword [rbp + 0x8b0], rax
lea rcx, str.Attempting_to_repair_the_framework_n
call fcn.140003708
xor r14d, r14d
mov edi, r14d
mov qword [rbp - 0x80], r14
mov r8d, r14d
mov dword [rsp + 0x60], r14d
lea r15d, [r14 + 1]
mov rbx, qword [0x1400228c0]
test rbx, rbx
jne 0x1400039f3
cmp byte [0x1400228ae], r14b
jne 0x1400039ee
xor edx, edx
lea rcx, str.Wtsapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test rax, rax
je 0x1400039d2
lea rdx, str.WTSEnumerateSessionsW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
mov qword [0x1400228c0], rax
jmp 0x1400039d9
mov rbx, qword [0x1400228c0]
mov byte [0x1400228ae], r15b
test rbx, rbx
jne 0x1400039f3
mov rdi, qword [rbp - 0x80]
mov r8d, dword [rsp + 0x60]
mov eax, r14d
jmp 0x140003a1c
mov rcx, rbx
call qword [fcn.14000e680]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x80]
mov r8d, r15d
xor edx, edx
xor ecx, ecx
call rbx
mov rdi, qword [rbp - 0x80]
mov r8d, dword [rsp + 0x60]
test eax, eax
jne 0x140003a39
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Aborting_repair_due_to_error__u_from_WTSEnumerateSessions_n
mov edx, r14d
test r8d, r8d
je 0x140003a67
mov eax, edx
lea rcx, [rax + rax*2]
cmp dword [rdi + rcx*8 + 0x10], r14d
je 0x140003a58
add edx, r15d
cmp edx, r8d
jb 0x140003a41
jmp 0x140003a67
mov eax, edx
lea rdx, [rax + rax*2]
mov eax, dword [rdi + rdx*8]
mov dword [0x140022044], eax
mov rbx, qword [0x1400228b8]
test rbx, rbx
jne 0x140003ac2
cmp byte [0x1400228ad], r14b
jne 0x140003ad0
xor r8d, r8d
xor edx, edx
lea rcx, str.Wtsapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test rax, rax
je 0x140003aaf
lea rdx, str.WTSFreeMemory
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
mov qword [0x1400228b8], rax
jmp 0x140003ab6
mov rbx, qword [0x1400228b8]
mov byte [0x1400228ad], r15b
test rbx, rbx
je 0x140003ad0
mov rcx, rbx
call qword [fcn.14000e680]
mov rcx, rdi
call rbx
mov qword [rbp - 0x80], r14
mov r12d, 2
or ebx, 0xffffffff
mov edx, dword [0x140022044]
cmp edx, ebx
je 0x140003af0
lea rcx, str.Found_active_session__u_n
jmp 0x140003b4e
lea rcx, str.No_active_session_found.__Waiting..._n
call fcn.140003708
mov rax, qword [0x1400220b0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1400220d0]
mov qword [rsp + 0x70], rax
mov r9d, ebx
xor r8d, r8d
Function at 0x140001ec0
Capabilities:
Accept command line arguments

Disassembly:
push rdi
sub rsp, 0x30
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x20]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [rsp + 0x20], 2
mov rdi, rax
je 0x140001f10
xor r9d, r9d
lea r8, [0x140020430]
lea rdx, str.This_executable_is_part_of_OpenMPT._You_do_not_need_to_run_it_by_yourself.
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov eax, 0xffffffff
add rsp, 0x30
pop rdi
ret
lea rcx, [0x140001b70]
mov qword [rsp + 0x40], rbx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov edx, 2
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
mov rcx, rdi
mov ebx, eax
call fcn.140001f50
test ebx, ebx
mov rbx, qword [rsp + 0x40]
js 0x140001f48
call qword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
add rsp, 0x30
pop rdi
ret
Function at 0x140003800
Capabilities:
Access peb ldr_data

Disassembly:
mov r11, rsp
push rbp
push rdi
sub rsp, 0x78
movaps xmmword [rsp + 0x60], xmm6
mov rax, qword [0x140024010]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rax, qword gs:[0x58]
mov rdi, rcx
mov qword [r11 + 0x10], rbx
xor ebp, ebp
mov ecx, 1
xorps xmm6, xmm6
mov qword [r11 + 0x18], rsi
mov rdx, qword [rax]
mov rax, qword [rdi + 0x20]
mov qword [r11 - 0x58], rax
mov rax, qword [rdi + 0x10]
mov qword [r11 - 0x50], rax
mov rax, qword [rdi + 0x4a0]
mov qword [r11 - 0x48], rax
mov rax, qword [rdi + 0x38]
mov qword [r11 - 0x40], rax
mov byte [rcx + rdx], 1
mov qword [r11 - 0x18], r14
nop dword [rax]
xor r8d, r8d
lea rdx, [rsp + 0x30]
mov r9d, 0xffffffff
lea ecx, [r8 + 4]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x14000396b
mov rcx, qword [rdi + 0x58]
mov r14, rbp
test rcx, rcx
lea rax, [rcx + 4]
mov rcx, rdi
cmovne r14, rax
call fcn.140003750
xor r9d, r9d
movss dword [rsp + 0x28], xmm6
xor r8d, r8d
mov qword [rsp + 0x20], rbp
mov rcx, rdi
lea edx, [r9 + 0x34]
call fcn.140003680
mov rcx, qword [rdi + 0x80]
xchg dword [rcx + 0x832c], eax
mov eax, 1
xchg byte [rdi + 0xb8], al
mov rsi, qword [rdi + 0x78]
test rsi, rsi
je 0x140003927
add rsi, 4
je 0x140003927
cmp dword [rsi], ebp
je 0x140003927
mov rdx, rsi
lea rcx, [rdi + 0x448]
call fcn.140001280
xor r9d, r9d
mov dword [rsi], ebp
mov rax, qword [rdi + 0x448]
xor r8d, r8d
movss dword [rsp + 0x28], xmm6
mov rcx, rdi
mov qword [rsp + 0x20], rax
lea edx, [r9 + 0x19]
call fcn.140003680
mov ecx, dword [r14]
test ecx, ecx
je 0x14000394c
sub ecx, 1
je 0x140003942
cmp ecx, 1
jne 0x140003954
mov rcx, rdi
call fcn.140003c00
jmp 0x140003954
mov rcx, rdi
call fcn.140003b00
jmp 0x140003954
mov rcx, rdi
call fcn.140003a00
mov eax, ebp
xchg byte [rdi + 0xb8], al
mov rcx, qword [rdi + 0x28]
call qword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x140003870
cmp eax, 1
jne 0x140003998
mov rax, qword [rdi + 0x80]
mov edx, ebp
lock xadd dword [rax + 0x8334], edx
mov rcx, rdi
call fcn.140002a90
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x140003870
cmp eax, 2
je 0x1400039c9
cmp eax, 3
je 0x1400039ad
cmp eax, 0xffffffff
jne 0x140003870
jmp 0x1400039c9
movsxd r8, dword [rdi + 0x8c]
xor r9d, r9d
mov rcx, qword [0x140025bd0]
mov edx, 0x13ac
call qword [sym.imp.USER32.dll_PostMessageW]
mov r14, qword [rsp + 0x70]
mov rsi, qword [rsp + 0xa0]
mov rbx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140005f80
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x78
pop rdi
pop rbp
ret

Function at 0x14000c780
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000c4e4
Function at 0x45bdc0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
xor r8d, 0x41435333
cmp edx, 4
jl 0x45bddb
xor dword [rcx], r8d
sub edx, 4
add rcx, 4
cmp edx, 4
jge 0x45bdcc
nop
ret

Function at 0x4cc7b0
Capabilities:
Hide graphical window

Disassembly:
sub rsp, 0x28
mov qword [rcx + 0x6d8], 0
call fcn.00407fd0
mov rcx, rax
xor edx, edx
call sub.user32.dll_ShowWindow
add rsp, 0x28
ret

Function at 0x4cc7e0
Capabilities:
Hide graphical window

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x60
mov rbp, rsp
mov rbx, rcx
mov rsi, rdx
mov qword [rbx + 0x6d8], rsi
mov rcx, qword [rbx + 0x6f0]
xor edx, edx
call fcn.0040a420
mov rcx, rbx
call fcn.00407fd0
mov rcx, rax
xor edx, edx
call sub.user32.dll_ShowWindow
mov rax, qword [0x007ce770]
cmp byte [rax], 0
jne 0x4cc843
mov rcx, rsi
call fcn.00407fd0
mov rcx, rax
call fcn.0040bec0
mov rcx, rax
call fcn.0040bef0
test al, al
jne 0x4cc958
call fcn.005124a0
mov rcx, qword [rax + 0xe0]
mov rdx, rsi
call fcn.004d89d0
mov rcx, qword [rbx + 0x6e8]
mov rdx, rax
call fcn.0040a890
call fcn.0040bf80
mov qword [rbp + 0x48], rax
mov rcx, qword [rbx + 0x6e8]
call fcn.0040aa50
mov qword [rbp + 0x40], rax
mov rcx, rsi
mov rax, qword [rsi]
call qword [rax + 0x258]
lea rcx, [rbp + 0x40]
mov edx, eax
mov rax, qword [rbx + 0x6e8]
mov r8d, dword [rax + 0xc0]
call fcn.00409fd0
mov qword [rbp + 0x40], rax
mov rcx, qword [0x004c7e50]
lea rdx, [rbp + 0x50]
lea r8, [rbp + 0x48]
mov rax, qword [rbx + 0x6d8]
mov rax, qword [rax + 0x7e0]
mov rax, qword [rax + 0x48]
lea r9, [rax + 0x38]
lea rax, [rbp + 0x40]
mov qword [rsp + 0x20], rax
call fcn.004cc060
mov rcx, rbx
lea rdx, [rbp + 0x50]
call fcn.004079d0
mov rax, qword [0x007ced30]
cmp byte [rax], 0
je 0x4cc93f
mov rcx, rbx
call fcn.00407fd0
mov rcx, rax
or rdx, 0xffffffffffffffff
xor r8, r8
xor r9, r9
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x30], 0x53
call sub.user32.dll_SetWindowPos
mov rcx, rbx
mov rsi, qword [rbx]
call qword [rsi + 0x1a0]
mov rcx, rbx
mov rbx, qword [rbx]
call qword [rbx + 0x1b8]
jmp 0x4cc958
call sub.kernel32.dll_GetTickCount
mov dword [rbx + 0x6e0], eax
mov rcx, qword [rbx + 0x6f0]
mov dl, 1
call fcn.0040a420
lea rsp, [rbp + 0x60]
pop rbx
pop rsi
pop rbp
ret

Function at 0x4ccb90
Capabilities:
Log keystrokes via application hook

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x004ca9b8]
mov dl, 1
call fcn.004d2760
mov qword [0x007cf220], rax
call sub.kernel32.dll_GetCurrentThreadId
mov ecx, 2
lea rdx, [0x004cccd0]
xor r8, r8
mov r9d, eax
call sub.user32.dll_SetWindowsHookExW
mov qword [0x007cf218], rax
add rsp, 0x28
ret