joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6cb390
Capabilities:
Hide graphical window from taskbar

Disassembly:
push rbp
push rbx
sub rsp, 0x48
mov rbp, rsp
mov qword [rbp + 0x20], rcx
mov byte [rbp + 0x2f], dl
mov qword [rbp + 0x38], 0
nop
movzx rax, byte [rbp + 0x2f]
mov rcx, qword [rbp + 0x20]
cmp al, byte [rcx + 0x16b]
je 0x6cb5db
movzx rax, byte [rbp + 0x2f]
mov rcx, qword [rbp + 0x20]
mov byte [rcx + 0x16b], al
mov rax, qword [rbp + 0x20]
cmp qword [rax + 0x88], 0
je 0x6cb514
mov rax, qword [rbp + 0x20]
mov rcx, qword [rax + 0x88]
call fcn.005d27c0
test al, al
je 0x6cb514
mov rax, qword [rbp + 0x20]
mov rax, qword [rax + 0x88]
movzx rax, word [rax + 0x34]
test ax, 0x10
jne 0x6cb514
mov rax, qword [rbp + 0x20]
mov rax, qword [rax + 0x88]
movzx rax, word [rax + 0x34]
test ax, 2
jne 0x6cb514
movzx rax, byte [rbp + 0x2f]
test al, al
je 0x6cb47b
mov rax, qword [rbp + 0x20]
mov rcx, qword [rax + 0x2a8]
xor rdx, rdx
xor r8, r8
call fcn.006b5500
mov rax, qword [rbp + 0x20]
mov rcx, qword [rax + 0x88]
call fcn.005d21b0
mov rcx, rax
mov dl, 1
mov rax, qword [rbp + 0x20]
mov rax, qword [rax + 0x88]
movzx r8, byte [rax + 0x99]
call fcn.006b5500
jmp 0x6cb4f8
call sub.user32.dll_GetForegroundWindow
mov rbx, rax
mov rax, qword [rbp + 0x20]
mov rcx, qword [rax + 0x88]
call fcn.005d21b0
cmp rbx, rax
sete bl
mov rax, qword [rbp + 0x20]
mov rcx, qword [rax + 0x88]
call fcn.005d21b0
mov rcx, rax
xor rdx, rdx
mov rax, qword [rbp + 0x20]
mov rax, qword [rax + 0x88]
movzx r8, byte [rax + 0x99]
call fcn.006b5500
mov rax, qword [rbp + 0x20]
mov rcx, qword [rax + 0x2a8]
mov dl, 1
mov r8b, 1
call fcn.006b5500
test bl, bl
je 0x6cb4f8
mov rax, qword [rbp + 0x20]
mov rcx, qword [rax + 0x88]
call fcn.005d21b0
mov rcx, rax
call sub.user32.dll_SetForegroundWindow
mov rax, qword [rbp + 0x20]
mov rcx, qword [rax + 0x88]
mov edx, 0xb033
xor r8, r8
xor r9, r9
call fcn.005c5be0
movzx rax, byte [rbp + 0x2f]
test al, al
je 0x6cb56d
mov rax, qword [rbp + 0x20]
mov rax, qword [rax + 0x2a8]
mov ecx, 0xffffffec
mov edx, ecx
mov rcx, rax
call sub.user32.dll_GetWindowLongPtrW
mov rcx, qword [rbp + 0x20]
mov rcx, qword [rcx + 0x2a8]
mov edx, 0xffffffec
or rax, 0x80
mov r8, rax
call sub.user32.dll_SetWindowLongPtrW
mov rax, qword [rbp + 0x20]
mov rcx, qword [rax + 0x2a8]
xor rdx, rdx
call sub.user32.dll_SetWindowTextW
jmp 0x6cb5db
mov rax, qword [rbp + 0x20]
mov rax, qword [rax + 0x2a8]
mov ecx, 0xffffffec
mov edx, ecx
mov rcx, rax
call sub.user32.dll_GetWindowLongPtrW
mov rcx, qword [rbp + 0x20]
mov rcx, qword [rcx + 0x2a8]
mov edx, 0xffffffec
and rax, 0xffffffffffffff7f
mov r8, rax
call sub.user32.dll_SetWindowLongPtrW
mov rax, qword [rbp + 0x20]
mov rbx, qword [rax + 0x2a8]
lea rcx, [rbp + 0x38]
mov rax, qword [rbp + 0x20]
mov rdx, qword [rax + 0xf0]
call fcn.0040e6f0
mov rcx, qword [rbp + 0x38]
call fcn.0040f400
mov rcx, rbx
mov rdx, rax
call sub.user32.dll_SetWindowTextW
nop
lea rcx, [rbp + 0x38]
call fcn.0040e020
lea rsp, [rbp + 0x48]
pop rbx
pop rbp
ret
Function at 0x6d3e30
Capabilities:
Hide graphical window

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rbx, rcx
cmp qword [rbx + 0xc0], 0
jne 0x6d3ee6
mov rcx, qword [rbx + 0x10]
call fcn.005d21b0
mov rcx, qword [0x005ee330]
mov dl, 1
mov r8, rax
call fcn.005c8e10
mov qword [rbx + 0xc0], rax
mov rsi, qword [rbx + 0xc0]
mov rcx, rsi
xor rdx, rdx
call fcn.006013d0
lea rax, [rsi + 0x498]
mov qword [rax + 8], rbx
lea rcx, [0x006d34a0]
mov qword [rax], rcx
mov rcx, qword [rbx + 0xc0]
call fcn.005d21b0
mov rsi, rax
mov ecx, 3
call sub.user32.dll_GetSystemMetrics
mov rcx, rsi
xor rdx, rdx
xor r8, r8
xor r9, r9
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x30], 8
call sub.user32.dll_SetWindowPos
mov rcx, qword [rbx + 0xc0]
call fcn.005d21b0
mov rcx, rax
xor rdx, rdx
call sub.user32.dll_ShowWindow
cmp qword [rbx + 0xe0], 0
jne 0x6d3f91
mov rcx, qword [rbx + 0x10]
call fcn.005d21b0
mov rcx, qword [0x005ee330]
mov dl, 1
mov r8, rax
call fcn.005c8e10
mov qword [rbx + 0xe0], rax
mov rsi, qword [rbx + 0xe0]
mov rcx, rsi
mov dl, 1
call fcn.006013d0
lea rax, [rsi + 0x498]
mov qword [rax + 8], rbx
lea rcx, [0x006d3500]
mov qword [rax], rcx
mov rcx, qword [rbx + 0xe0]
call fcn.005d21b0
mov rsi, rax
mov ecx, 2
call sub.user32.dll_GetSystemMetrics
mov rcx, rsi
xor rdx, rdx
xor r8, r8
xor r9, r9
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x30], 8
call sub.user32.dll_SetWindowPos
mov rcx, qword [rbx + 0xe0]
call fcn.005d21b0
mov rcx, rax
xor rdx, rdx
call sub.user32.dll_ShowWindow
cmp qword [rbx + 0xd0], 0
jne 0x6d402d
mov rcx, qword [rbx + 0x10]
call fcn.005d21b0
mov rcx, qword [0x005ef2f0]
mov dl, 1
mov r8, rax
call fcn.005c8e10
mov qword [rbx + 0xd0], rax
mov rax, qword [rbx + 0xd0]
mov byte [rax + 0x468], 1
mov rcx, qword [rbx + 0xd0]
call fcn.005d21b0
mov rsi, rax
mov ecx, 2
call sub.user32.dll_GetSystemMetrics
mov edi, eax
mov ecx, 3
call sub.user32.dll_GetSystemMetrics
mov rcx, rsi
xor rdx, rdx
xor r8, r8
xor r9, r9
mov dword [rsp + 0x20], edi
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x30], 8
call sub.user32.dll_SetWindowPos
mov rcx, qword [rbx + 0xd0]
call fcn.005d21b0
mov rcx, rax
xor rdx, rdx
call sub.user32.dll_ShowWindow
add rsp, 0x40
pop rbx
pop rsi
pop rdi
ret

Function at 0x738560
Capabilities:
Hash data with crc32

Disassembly:
xor rcx, rcx
mov eax, ecx
xor rdx, rdx
mov r8d, eax
and r8d, 1
test r8b, r8b
je 0x73857f
shr eax, 1
xor eax, 0xedb88320
jmp 0x738582
shr eax, 1
add edx, 1
cmp edx, 8
jne 0x738568
nop
lea rdx, [0x007b5348]
movsxd r8, ecx
mov dword [rdx + r8*4], eax
add ecx, 1
cmp ecx, 0x100
jne 0x738563
nop
mov byte [0x007b5748], 1
ret
Function at 0x7385b0
Capabilities:
Encode data using xor

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, rdx
mov esi, r8d
mov edi, ecx
cmp byte [0x007b5748], 0
jne 0x7385cd
call fcn.00738560
xor rax, rax
mov ecx, esi
sub ecx, 1
cmp eax, ecx
jg 0x73860d
add ecx, 1
lea rdx, [0x007b5348]
movsxd r8, eax
movzx r8, byte [rbx + r8]
mov r9d, edi
xor r9d, r8d
and r9d, 0xff
mov r9d, r9d
shr edi, 8
mov edx, dword [rdx + r9*4]
xor edx, edi
mov edi, edx
add eax, 1
cmp eax, ecx
jne 0x7385dc
nop
mov eax, edi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
Function at 0x180002560
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x78]
sub rax, 0x10000
mov rcx, rax
call fcn.1800027b0
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x18000267a
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x1800025c4
mov rax, qword [0x180022008]
cmp qword [rsp + 0x20], rax
ja 0x1800025c4
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x180002586
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.180008df0
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x1800025f5
jmp 0x18000267a
cmp dword [rsp + 0x50], 0x10000
jne 0x18000265d
cmp qword [rsp + 0x48], 0x10000
jb 0x18000265d
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualAlloc
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18000263b
mov rax, qword [rsp + 0x28]
jmp 0x18000267c
call fcn.18000220c
cmp eax, 0x677
jne 0x18000264b
xor eax, eax
jmp 0x18000267c
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x180002675
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.1800027b0
mov qword [rsp + 0x20], rax
jmp 0x180002586
xor eax, eax
add rsp, 0x68
ret

Function at 0x180002690
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rcx, qword [rsp + 0x70]
call fcn.1800027f0
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x1800027a6
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x1800026eb
mov rax, qword [0x180022008]
cmp qword [rsp + 0x20], rax
ja 0x1800026eb
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x1800026ad
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.180008df0
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x18000271c
jmp 0x1800027a6
cmp dword [rsp + 0x50], 0x10000
jne 0x180002784
cmp qword [rsp + 0x48], 0x10000
jb 0x180002784
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualAlloc
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180002762
mov rax, qword [rsp + 0x28]
jmp 0x1800027a8
call fcn.18000220c
cmp eax, 0x677
jne 0x180002772
xor eax, eax
jmp 0x1800027a8
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x1800027a1
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.1800027f0
mov qword [rsp + 0x20], rax
jmp 0x1800026ad
xor eax, eax
add rsp, 0x68
ret
Function at 0x180002840
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.180002dd0
mov qword [rsp + 0x28], 0
cmp qword [0x180022ba0], 0
jne 0x180002888
cmp qword [0x180022b98], 0
je 0x180002888
mov rax, qword [0x180022b98]
mov qword [0x180022ba0], rax
cmp qword [0x180022ba0], 0
je 0x18000292e
mov rax, qword [0x180022ba0]
cmp qword [rax + 0x10], 0
je 0x18000292e
mov rax, qword [0x180022ba0]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18000292e
mov rax, qword [0x180022ba0]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18000292e
mov rax, qword [0x180022ba0]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x1800028f4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x1800028fb
xor eax, eax
jmp 0x180002aa9
mov rax, qword [0x180022ba0]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x48]
mov qword [rax + 0x10], rcx
mov r8d, 0x60
mov edx, 0xcc
mov rcx, qword [rsp + 0x28]
call fcn.180008df0
mov rax, qword [rsp + 0x28]
jmp 0x180002aa9
mov rax, qword [0x180022b98]
mov qword [0x180022ba0], rax
jmp 0x180002950
mov rax, qword [0x180022ba0]
mov rax, qword [rax + 8]
mov qword [0x180022ba0], rax
cmp qword [0x180022ba0], 0
je 0x18000299d
cmp qword [0x180022ba0], 0
je 0x18000299b
mov rax, qword [0x180022ba0]
cmp qword [rax + 0x10], 0
je 0x18000299b
mov rax, qword [0x180022ba0]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18000299b
mov rax, qword [0x180022ba0]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18000299b
jmp 0x1800028cc
jmp 0x18000293e
mov rcx, qword [rsp + 0x60]
call fcn.180004e20
and eax, 0xffff
mov eax, eax
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.180002ab0
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x180002aa7
mov rax, qword [rsp + 0x48]
mov qword [0x180022ba0], rax
mov rax, qword [0x180022ba0]
mov dword [rax], 0x52727464
mov rax, qword [0x180022ba0]
mov qword [rax + 0x10], 0
mov rax, qword [0x180022ba0]
mov rcx, qword [0x180022b98]
mov qword [rax + 8], rcx
mov rax, qword [0x180022ba0]
mov qword [0x180022b98], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x180022ba0]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x180002a58
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x180002a92
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
mov qword [rcx + rax + 0x48], rdx
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
jmp 0x180002a4e
mov rax, qword [0x180022ba0]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x1800028cc
xor eax, eax
add rsp, 0x58
ret
Function at 0x1800037c0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov r8d, 0x30
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x80]
call sub.KERNEL32.dll_VirtualQuery
nop
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x180003807
xor al, al
jmp 0x1800038a9
mov rax, qword [rsp + 0x28]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0x4550
je 0x180003831
xor al, al
jmp 0x1800038a9
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0x88], rax
jb 0x1800038a1
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov ecx, 8
imul rcx, rcx, 0xc
mov rdx, qword [rsp + 0x30]
mov ecx, dword [rdx + rcx + 0x8c]
add rax, rcx
cmp qword [rsp + 0x88], rax
jae 0x1800038a1
mov al, 1
jmp 0x1800038a9
jmp 0x1800038a7
xor al, al
add rsp, 0x78
ret

Function at 0x1800046c0
Capabilities:
Resume thread

Disassembly:
sub rsp, 0x68
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x180022bb0], eax
je 0x1800046db
mov eax, 0x10dd
jmp 0x180004800
mov rax, qword [0x180022bc8]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180004785
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x20]
movzx eax, byte [rax + 0x3e]
lea r9, [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov r8d, dword [rcx + 0x28]
mov edx, eax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x18]
call fcn.180002206
mov rax, qword [rsp + 0x28]
cmp dword [rax + 8], 0
jne 0x180004750
mov rax, qword [rsp + 0x28]
cmp qword [rax + 0x20], 0
je 0x180004750
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x20]
call fcn.180002f10
mov rax, qword [rsp + 0x28]
mov qword [rax + 0x20], 0
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, 0x30
mov rcx, qword [rsp + 0x38]
call fcn.180006c94
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
jmp 0x1800046e7
mov qword [0x180022bc8], 0
call fcn.180003970
mov rax, qword [0x180022bc0]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1800047e9
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
call sub.KERNEL32.dll_ResumeThread
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x48], rax
mov edx, 0x10
mov rcx, qword [rsp + 0x48]
call fcn.180006c94
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
jmp 0x1800047a1
mov qword [0x180022bc0], 0
mov dword [0x180022bb0], 0
xor eax, eax
add rsp, 0x68
ret
Function at 0x180004d30
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
cmp dword [0x180022bb4], 0
je 0x180004d4d
mov eax, dword [0x180022bb4]
jmp 0x180004e13
call sub.KERNEL32.dll_GetCurrentThread
cmp qword [rsp + 0x50], rax
jne 0x180004d60
xor eax, eax
jmp 0x180004e13
mov ecx, 0x10
call fcn.1800068d8
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x180004dce
mov dword [rsp + 0x20], 8
cmp qword [rsp + 0x28], 0
je 0x180004db3
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, 0x10
mov rcx, qword [rsp + 0x38]
call fcn.180006c94
mov qword [rsp + 0x28], 0
mov eax, dword [rsp + 0x20]
mov dword [0x180022bb4], eax
mov qword [0x180022bb8], 0
mov eax, dword [rsp + 0x20]
jmp 0x180004e13
mov rcx, qword [rsp + 0x50]
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x180004de8
call fcn.18000220c
mov dword [rsp + 0x20], eax
jmp 0x180004d89
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x28]
mov rcx, qword [0x180022bc0]
mov qword [rax], rcx
mov rax, qword [rsp + 0x28]
mov qword [0x180022bc0], rax
xor eax, eax
add rsp, 0x48
ret
Function at 0x1800062d0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x80], 0
jne 0x1800062fd
xor ecx, ecx
call sub.KERNEL32.dll_GetModuleHandleW
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x18000631d
mov ecx, 0xc1
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x180006496
mov rax, qword [rsp + 0x40]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp dword [rax], 0x4550
je 0x180006354
mov ecx, 0xbf
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x180006496
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 0x14]
test eax, eax
jne 0x180006372
mov ecx, 0xc0
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x180006496
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x38]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x20], 0
jmp 0x18000639e
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 6]
cmp dword [rsp + 0x20], eax
jae 0x18000647a
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
lea rdx, str..detour
mov rcx, rax
call fcn.18000cf70
test eax, eax
jne 0x180006475
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x48]
cmp dword [rcx + rax + 0xc], 0
je 0x180006403
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x48]
cmp dword [rcx + rax + 0x10], 0
jne 0x180006405
jmp 0x18000647a
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x48]
mov eax, dword [rcx + rax + 0xc]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax]
cmp rax, 0x40
jb 0x18000644b
mov rax, qword [rsp + 0x28]
cmp dword [rax + 4], 0x727444
je 0x18000644d
jmp 0x18000647a
mov rax, qword [rsp + 0x28]
cmp dword [rax + 8], 0
jne 0x180006467
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x28]
mov ecx, dword [rcx]
mov dword [rax + 8], ecx
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x28]
jmp 0x180006496
jmp 0x180006394
mov ecx, 0xc0
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x180006496
add rsp, 0x78
ret
Function at 0x1800064a0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rax, qword [rsp + 0x90]
add rax, 0x10000
mov qword [rsp + 0x30], rax
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x48]
call fcn.180008df0
jmp 0x1800064e8
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov r8d, 0x30
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
ja 0x180006507
jmp 0x1800065ab
cmp dword [rsp + 0x68], 0x1000
jne 0x18000652c
mov eax, dword [rsp + 0x6c]
and eax, 0xff
cmp eax, 1
je 0x18000652c
mov eax, dword [rsp + 0x6c]
and eax, 0x100
test eax, eax
je 0x18000652e
jmp 0x1800064d3
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
jne 0x180006564
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x3c]
cmp rax, qword [rsp + 0x60]
ja 0x180006564
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x3c]
cmp rax, 0x40
jae 0x180006569
jmp 0x1800064d3
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp dword [rax], 0x4550
jne 0x1800064d3
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x20]
jmp 0x1800065ad
xor eax, eax
add rsp, 0x88
ret
Function at 0x180010f00
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 0x180010f30
xor eax, eax
jmp 0x180010ff3
mov rbp, rbx
cmp word [rax], si
je 0x180010f55
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180010f3c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180010f38
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.180010e50
movsxd r14, eax
test eax, eax
jne 0x180010f93
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180010f29
mov rcx, r14
call fcn.18000eca8
mov rdi, rax
test rax, rax
jne 0x180010fac
xor ecx, ecx
call fcn.18000e3ec
jmp 0x180010f88
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.180010e50
test eax, eax
jne 0x180010fdd
mov rcx, rdi
call fcn.18000e3ec
jmp 0x180010fe7
xor ecx, ecx
call fcn.18000e3ec
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x10000124c
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
call fcn.100001180
add rsp, 0x28
jmp 0x100001270
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r12
push r13
sub rsp, 0xb0
xor ebx, ebx
mov dword [rsp + 0x20], ebx
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
mov r12d, ebx
xor eax, eax
lock cmpxchg qword [section..data], rdi
jne 0x10000169f
mov eax, dword [0x100003014]
cmp eax, 1
je 0x1000016bf
mov eax, dword [0x100003014]
cmp eax, ebx
jne 0x1000016d6
mov dword [0x100003014], 1
lea r13, [0x100002168]
lea rdi, [0x100002150]
mov qword [rsp + 0x30], rdi
mov eax, ebx
mov dword [rsp + 0x24], ebx
cmp rdi, r13
jae 0x10000131c
cmp eax, ebx
jne 0x10000131c
mov rcx, qword [rdi]
cmp rcx, rbx
je 0x100001311
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x1000012fa
cmp eax, ebx
jne 0x1000016cc
mov eax, dword [0x100003014]
cmp eax, 1
jne 0x10000134c
lea rdx, [0x100002148]
lea rcx, [0x100002138]
call fcn.100171000
mov dword [0x100003014], 2
cmp r12d, ebx
jne 0x10000135b
mov rax, rbx
xchg qword [section..data], rax
cmp qword [0x1000035d8], rbx
jne 0x1000016e5
mov rcx, qword [sym.imp.msvcrt.dll__wcmdln]
cmp qword [rcx], rbx
je 0x10000170e
mov rcx, qword [rcx]
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [rcx], 0x20
jbe 0x1000013ab
cmp word [rcx], 0x22
je 0x100001741
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x100001390
cmp word [rcx], bx
je 0x1000013b4
cmp edx, ebx
jne 0x100001396
cmp word [rcx], bx
je 0x1000013ca
cmp word [rcx], 0x20
ja 0x1000013ca
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x1000013b4
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x100000000]
call fcn.100001400
nop
jmp 0x100001715
cmp rax, rdi
jne 0x1000016af
mov r12d, 1
jmp 0x1000012ba
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1000012a9
lea ecx, [rax + 0x1e]
call sub.msvcrt.dll__amsg_exit
jmp 0x100001324
mov eax, 0xff
jmp 0x100001780
mov dword [0x1000036e4], 1
jmp 0x100001324
lea rcx, [0x1000035d8]
call fcn.1000018fc
cmp eax, ebx
je 0x100001368
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x1000035d8]
nop
jmp 0x100001368
mov eax, 0xff
jmp 0x100001780
mov dword [0x1000036e0], eax
cmp dword [0x100003008], ebx
jne 0x10000172b
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x1000036e4], ebx
jne 0x10000173f
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1000036e0]
jmp 0x100001780
mov eax, ebx
cmp edx, ebx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
jmp 0x1000013a0
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r12, qword [r11 + 0x20]
mov rsp, r11
pop r13
ret