joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001c8bc
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 0x14001c8ec
xor eax, eax
jmp 0x14001c9af
mov rbp, rbx
cmp word [rax], si
je 0x14001c911
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14001c8f8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14001c8f4
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.14001c7dc
movsxd r14, eax
test eax, eax
jne 0x14001c94f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14001c8e5
mov rcx, r14
call fcn.140019c48
mov rdi, rax
test rax, rax
jne 0x14001c968
xor ecx, ecx
call fcn.140019558
jmp 0x14001c944
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.14001c7dc
test eax, eax
jne 0x14001c999
mov rcx, rdi
call fcn.140019558
jmp 0x14001c9a3
xor ecx, ecx
call fcn.140019558
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 0x14001c9cc
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14001ca53
mov rsi, rbx
cmp word [rax], bp
je 0x14001ca12
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14001c9fc
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14001c9f8
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140019c48
mov rdi, rax
test rax, rax
je 0x14001ca40
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14002ba90
mov rbp, rdi
xor ecx, ecx
call fcn.140019558
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140020188
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14002019e
mov al, 1
jmp 0x1400201fe
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400201af
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400201fc
mov ecx, dword [rcx + 0x18]
nop
call fcn.14001e400
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400201fc
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400201fc
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400201fc
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400201fe
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140020b60
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x14003d5e0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x140020bb7
cmp word [rdx], r13w
jne 0x140020bb7
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140020bbc
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140020ce1
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140020d02
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140020bf5
mov rdx, r9
mov word [rbx], cx
jmp 0x140020c1c
cmp r9, r8
jae 0x140020c2c
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x140020bd6
jmp 0x140020ce1
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140020cd6
cmp dword [rsp + 0x80], esi
je 0x140020cd6
lea r8, [0x14003d5e0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140020cae
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140020c7e
mov word [rbx], r13w
jmp 0x140020cde
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x140020c8b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140020cde
cmp word [rsp + 0x70], r13w
jne 0x140020cbb
cmp rbx, r14
je 0x140020c78
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140020f24
cmp word [rsp + 0x70], r13w
je 0x140020ce1
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x14003d5e0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140020cdb
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140020ce1
Function at 0x140027470
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140014908
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400274fa
cmp byte [rbp - 0x21], r15b
je 0x1400274f5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140027530
call fcn.140017924
test eax, eax
jne 0x14002751c
cmp byte [rbp - 0x21], r15b
je 0x140027514
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140027530
cmp byte [rbp - 0x21], r15b
je 0x14002752d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140016aa0
test eax, eax
jne 0x1400275d0
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140014908
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14002756f
cmp byte [rbp - 0x21], r15b
je 0x1400275a4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400275a4
call fcn.140017924
test eax, eax
jne 0x140027590
cmp byte [rbp - 0x21], r15b
je 0x140027589
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400275a4
cmp byte [rbp - 0x21], r15b
je 0x1400275a1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140016aa0
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400275d0
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400275d3
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400275e1
mov rcx, rdi
call fcn.140019558
cmp byte [rbp + 0x3f], r15b
je 0x1400275f0
mov rcx, qword [rbp + 0x27]
call fcn.140019558
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14002a558
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.140020f24
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140020f24
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14002a6a8
cmp rax, 0xffffffffffffffff
je 0x14002a6a8
xor edi, edi
test rbp, rbp
jle 0x14002a653
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140019ad8
mov rbx, rax
test rax, rax
jne 0x14002a5e0
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14002a649
mov edx, 0x8000
mov ecx, r14d
call fcn.1400145c0
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.14001f48c
cmp eax, 0xffffffff
je 0x14002a629
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14002a5f0
mov edx, r15d
mov ecx, r14d
call fcn.1400145c0
jmp 0x14002a649
cmp byte [rsi + 0x38], dil
je 0x14002a640
cmp dword [rsi + 0x34], 5
jne 0x14002a640
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14002a649
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140019558
jmp 0x14002a6bc
jns 0x14002a6bc
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140020f24
cmp rax, 0xffffffffffffffff
jne 0x14002a674
cmp byte [rsi + 0x30], dil
je 0x14002a6bc
mov edi, dword [rsi + 0x2c]
jmp 0x14002a6bc
mov ecx, r14d
call fcn.14001e400
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14002a6bc
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 0x14002a6bc
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14002a6b5
mov eax, dword [rsi + 0x2c]
jmp 0x14002a6ba
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140020f24
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 0x18003107c
Capabilities:
Parse pe header

Disassembly:
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x18003107c
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1800310eb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1800310eb
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1800310eb
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1800310eb
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1800310eb
cmp dword [rcx + 0x84], 0xe
jbe 0x1800310eb
cmp dword [rcx + 0xf8], 0
je 0x1800310eb
mov ecx, ebx
call fcn.180030fb4
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.180031210
nop
cmp dword [rbp + 0x20], 0
je 0x180031139
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.180031048
int3

Function at 0x180031ef0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180031f18
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x180031f18
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1800362a8
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 0x1800362d8
xor eax, eax
jmp 0x18003639b
mov rbp, rbx
cmp word [rax], si
je 0x1800362fd
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1800362e4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1800362e0
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.1800361c8
movsxd r14, eax
test eax, eax
jne 0x18003633b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1800362d1
mov rcx, r14
call fcn.1800363b8
mov rdi, rax
test rax, rax
jne 0x180036354
xor ecx, ecx
call fcn.180033e4c
jmp 0x180036330
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.1800361c8
test eax, eax
jne 0x180036385
mov rcx, rdi
call fcn.180033e4c
jmp 0x18003638f
xor ecx, ecx
call fcn.180033e4c
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 0x180002840
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x180002873
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x1800028b6
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rbx
and edi, 0xf
jbe 0x1800028b1
cmp rbx, r11
jae 0x1800028b6
dec edi
movzx eax, word [rbx]
lea rbx, [rbx + rax*2 + 2]
jne 0x1800028a0
cmp rbx, r11
jb 0x1800028ba
xor eax, eax
jmp 0x1800028c6
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
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 0x180002f20
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x250
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov rax, qword [0x18002f0d0]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov r13, rcx
xor r14d, r14d
mov dword [rsp + 0x20], r14d
mov word [rsp + 0x30], r14w
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x32]
call fcn.1800055b0
mov edx, 0x104
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x20], rbx
lea rcx, [rsp + 0x30]
lea rax, [rsp + 0x30]
or rbp, 0xffffffffffffffff
test rax, 0xffffffffffff0000
jne 0x180002fe7
movzx edi, cx
xor edx, edx
mov ecx, edi
call fcn.180002750
test rax, rax
je 0x1800030d8
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.1800017e0
mov rbx, qword [rsp + 0x20]
jmp 0x1800030d8
xor eax, eax
mov rcx, rbp
lea rdi, [rsp + 0x30]
repne scasw ax, word [rdi]
not rcx
dec rcx
mov rdi, rcx
test ecx, ecx
jne 0x18000305d
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x1800030d8
cmp dword [rdx + 0x10], eax
jge 0x180003033
cmp dword [rbx - 0xc], eax
jge 0x180003026
mov ecx, 0x80070057
call fcn.180002930
int3
mov dword [rbx - 0x10], r14d
mov word [rbx], r14w
jmp 0x1800030d8
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x180003049
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x20], rbx
jmp 0x1800030d8
mov r12d, dword [rbx - 0x10]
lea rsi, [rsp + 0x30]
sub rsi, rbx
sar rsi, 1
test ecx, ecx
jns 0x18000307b
mov ecx, 0x80070057
call fcn.180002930
int3
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x18000309d
mov edx, edi
lea rcx, [rsp + 0x20]
call fcn.180001d10
mov rbx, qword [rsp + 0x20]
movsxd rax, edi
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
add rdx, rdx
cmp rsi, r12
lea r12, [rax + rax]
mov r9, r12
ja 0x1800030c1
lea r8, [rbx + rsi*2]
call fcn.180005074
jmp 0x1800030cb
lea r8, [rsp + 0x30]
call fcn.180004d84
cmp edi, dword [rbx - 0xc]
jg 0x18000310a
mov dword [rbx - 0x10], edi
mov word [r12 + rbx], r14w
lea r8, str.migwiz
lea rdx, [rsp + 0x20]
mov rcx, r13
call fcn.180001630
nop
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], ebp
dec ebp
test ebp, ebp
jg 0x180003105
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rax, r13
jmp 0x180003115
mov ecx, 0x80070057
call fcn.180002930
nop
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.180004800
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x1800036a0
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0xa0
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rbx, rcx
lea rcx, [rax + 0x10]
call fcn.180002f20
nop
lea r8, str.migwiz.exe
mov rdx, rax
lea rcx, [rsp + 0xb0]
call fcn.180001630
nop
mov rdx, qword [rsp + 0xb8]
add rdx, 0xffffffffffffffe8
or edi, 0xffffffff
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x180003702
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
xor edx, edx
lea r8d, [rdx + 0x6c]
lea rcx, [rsp + 0x34]
call fcn.1800055b0
mov dword [rsp + 0x30], 0x70
mov dword [rsp + 0x34], 0x40
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x48], rax
mov rax, qword [rbx]
mov qword [rsp + 0x50], rax
xor eax, eax
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x60], eax
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x1800037a4
mov rcx, qword [rsp + 0x98]
test rcx, rcx
je 0x1800037a4
mov edx, 0x2710
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, eax
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
sete bl
mov rax, qword [rsp + 0xb0]
lea rdx, [rax - 0x18]
lock xadd dword [rdx + 0x10], edi
dec edi
test edi, edi
jg 0x18000379f
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
movzx eax, bl
jmp 0x1800037c6
mov rax, qword [rsp + 0xb0]
lea rdx, [rax - 0x18]
lock xadd dword [rdx + 0x10], edi
dec edi
test edi, edi
jg 0x1800037c4
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
xor al, al
mov rbx, qword [rsp + 0xc0]
add rsp, 0xa0
pop rdi
ret
Function at 0x18000585f
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x18002f0d0]
jne 0x18000481a
rol rcx, 0x10
test cx, 0xffff
jne 0x180004816
repz ret
ror rcx, 0x10
jmp 0x1800057b8
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x180031060]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x180031158]
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 0x18000583d
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, [0x180031060]
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 0x18000585f
mov rax, qword [rsp + 0x88]
mov qword [0x180031158], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1800310f8], rax
mov rax, qword [0x180031158]
mov qword [0x180030fd0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1800310e0], rax
mov dword [0x180030fc0], 0xc0000409
mov dword [0x180030fc4], 1
mov rax, qword [0x18002f0d0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x18002f0d8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x180031058], eax
mov ecx, 1
call fcn.1800090e4
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1800237f0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x180031058], 0
jne 0x1800058e6
mov ecx, 1
call fcn.1800090e4
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 0x18000cf5c
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 [0x18002f0d0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.1800080cc
xor ebx, ebx
cmp qword [0x180032000], rbx
mov rdi, rax
jne 0x18000d06f
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x18000d146
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18000d146
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x180032000], 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 [0x180032008], 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 [0x180032010], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x180032020], rax
test rax, rax
je 0x18000d066
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 [0x180032018], rax
jmp 0x18000d076
mov rax, qword [0x180032018]
jmp 0x18000d07d
mov rax, qword [0x180032018]
mov r11, qword [0x180032020]
cmp rax, rdi
je 0x18000d0e4
cmp r11, rdi
je 0x18000d0e4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x180032020]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x18000d0e4
test rax, rax
je 0x18000d0e4
call rsi
test rax, rax
je 0x18000d0de
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 0x18000d0de
test byte [rsp + 0x40], 1
jne 0x18000d0e4
bts ebp, 0x15
jmp 0x18000d124
mov rcx, qword [0x180032008]
cmp rcx, rdi
je 0x18000d124
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x18000d124
call rax
mov rbx, rax
test rax, rax
je 0x18000d124
mov rcx, qword [0x180032010]
cmp rcx, rdi
je 0x18000d124
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x18000d124
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x180032000]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x18000d146
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x18000d148
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180004800
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x18000fe30
Capabilities:
Copy file

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rcx, qword [rsp + 0x50]
call fcn.180001700
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x48]
call fcn.180001700
xor r8d, r8d
mov rcx, qword [rsp + 0x20]
mov rdx, rcx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CopyFileW]
cmp eax, 1
jne 0x18000fe7f
mov dword [rsp + 0x28], 1
jmp 0x18000fe87
mov dword [rsp + 0x28], 0
movzx eax, byte [rsp + 0x28]
add rsp, 0x38
ret