joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180011aa0
Capabilities:
Get memory capacity

Disassembly:
mov qword [rsp + 8], rbx
push rsi
push rdi
push r14
sub rsp, 0xc0
mov rax, qword [0x18027ac80]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rsi, r9
mov rbx, r8
mov r14, rdx
mov rdi, rcx
test rcx, rcx
je 0x180011b8f
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8d, 0x48
lea rdx, [rsp + 0x60]
mov rcx, rax
call sub.KERNEL32.dll_K32GetProcessMemoryInfo
test eax, eax
je 0x180011b8f
mov rdx, qword [rsp + 0x70]
test r14, r14
je 0x180011b6a
xorps xmm0, xmm0
test rdx, rdx
js 0x180011b11
cvtsi2ss xmm0, rdx
jmp 0x180011b29
mov rax, rdx
mov rcx, rdx
shr rcx, 1
and eax, 1
or rcx, rax
cvtsi2ss xmm0, rcx
addss xmm0, xmm0
cvtps2pd xmm1, xmm0
xorps xmm0, xmm0
mulsd xmm1, qword [0x18023a180]
test rdi, rdi
js 0x180011b43
cvtsi2ss xmm0, rdi
jmp 0x180011b5b
mov rax, rdi
mov rcx, rdi
shr rcx, 1
and eax, 1
or rcx, rax
cvtsi2ss xmm0, rcx
addss xmm0, xmm0
cvtps2pd xmm0, xmm0
divsd xmm1, xmm0
cvttsd2si rax, xmm1
mov dword [r14], eax
xor eax, eax
test rbx, rbx
je 0x180011b81
cmp rdx, rdi
jbe 0x180011b7b
mov qword [rbx], rax
jmp 0x180011b81
sub rdi, rdx
mov qword [rbx], rdi
test rsi, rsi
je 0x180011c58
jmp 0x180011c55
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov rdx, qword [rsp + 0x48]
cmp rdx, qword [rsp + 0x28]
jae 0x180011c32
test r14, r14
je 0x180011c21
mov rcx, rdx
xorps xmm0, xmm0
sub rcx, qword [rsp + 0x50]
js 0x180011bcb
cvtsi2ss xmm0, rcx
jmp 0x180011be0
mov rax, rcx
and ecx, 1
shr rax, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
cvtps2pd xmm1, xmm0
xorps xmm0, xmm0
mulsd xmm1, qword [0x18023a180]
test rdx, rdx
js 0x180011bfa
cvtsi2ss xmm0, rdx
jmp 0x180011c12
mov rax, rdx
mov rcx, rdx
shr rcx, 1
and eax, 1
or rcx, rax
cvtsi2ss xmm0, rcx
addss xmm0, xmm0
cvtps2pd xmm0, xmm0
divsd xmm1, xmm0
cvttsd2si rax, xmm1
mov dword [r14], eax
test rbx, rbx
je 0x180011c29
mov qword [rbx], rdx
test rsi, rsi
je 0x180011c58
xor eax, eax
jmp 0x180011c55
test r14, r14
je 0x180011c3e
mov eax, dword [rsp + 0x24]
mov dword [r14], eax
test rbx, rbx
je 0x180011c4b
mov rax, qword [rsp + 0x30]
mov qword [rbx], rax
test rsi, rsi
je 0x180011c58
mov rax, qword [rsp + 0x40]
mov qword [rsi], rax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.180060e20
mov rbx, qword [rsp + 0xe0]
add rsp, 0xc0
pop r14
pop rdi
pop rsi
ret
Function at 0x180011c80
Capabilities:
Get memory capacity

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x1a0
mov rax, qword [0x18027ac80]
xor rax, rsp
mov qword [rsp + 0x190], rax
mov rdi, rcx
test rcx, rcx
je 0x180011cb8
mov byte [rcx], 0
xor ebx, ebx
mov rbp, 0xffffffffffffffff
mov r15d, ebx
mov dword [rsp + 0x30], ebx
mov r14d, ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x30]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_IsProcessInJob]
test eax, eax
je 0x180011d90
cmp dword [rsp + 0x30], ebx
je 0x180011d90
mov r9d, 0x90
mov qword [rsp + 0x20], rbx
lea r8, [rsp + 0x100]
xor ecx, ecx
lea edx, [rbp + 0xa]
call qword [sym.imp.KERNEL32.dll_QueryInformationJobObject]
test eax, eax
je 0x180011d90
mov eax, dword [rsp + 0x110]
mov rdx, rbp
bt eax, 9
mov rcx, rbp
mov rsi, rbp
cmovb rdx, qword [rsp + 0x178]
bt eax, 8
cmovb rcx, qword [rsp + 0x170]
test al, 1
cmovne rsi, qword [rsp + 0x120]
cmp rdx, rbp
jne 0x180011d59
cmp rcx, rbp
jne 0x180011d59
cmp rsi, rbp
je 0x180011d90
cmp rdx, rcx
mov dword [rsp + 0x40], 0x40
cmovb rcx, rdx
cmp rcx, rsi
cmovb rsi, rcx
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov rbp, qword [rsp + 0x48]
mov r15, qword [rsp + 0x68]
cmp rsi, rbp
mov r14, qword [rsp + 0x50]
cmovb rbp, rsi
cmp rbp, 0xffffffffffffffff
mov rsi, rbx
cmovne rsi, rbp
test r15, r15
jne 0x180011dc9
lea rcx, [rsp + 0x80]
mov dword [rsp + 0x80], 0x40
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov r15, qword [rsp + 0xa8]
mov r14, qword [rsp + 0x88]
test rsi, rsi
cmovne r14, rsi
cmp r15, r14
cmovae rbx, rsi
test rbx, rbx
je 0x180011de9
test rdi, rdi
je 0x180011de4
mov byte [rdi], 1
mov rax, rbx
jmp 0x180011e1b
lea rcx, [rsp + 0xc0]
mov dword [rsp + 0xc0], 0x40
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov rax, qword [rsp + 0xc8]
cmp qword [rsp + 0xe8], rax
cmovb rax, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.180060e20
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret

Function at 0x180011e70
Capabilities:
Get memory capacity

Disassembly:
sub rsp, 0x78
mov rax, qword [0x18027ac80]
xor rax, rsp
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.180060e20
add rsp, 0x78
ret
Function at 0x1800120d0
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x50
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x40]
xor ebx, ebx
mov dword [0x180283570], eax
mov eax, dword [rsp + 0x24]
mov dword [0x180283574], eax
mov eax, dword [rsp + 0x48]
mov dword [0x180283578], eax
mov dword [rsp + 0x60], ebx
mov byte [0x18028357d], bl
call fcn.1800132c0
test al, al
je 0x18001213e
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetNumaHighestNodeNumber]
test eax, eax
je 0x18001213e
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x18001213e
inc eax
mov byte [0x18028357d], 1
mov dword [0x180283600], eax
mov byte [0x18028357e], bl
mov word [rsp + 0x60], bx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcessGroupAffinity]
mov edi, 1
test eax, eax
jne 0x18001217b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x18001217b
movzx eax, word [rsp + 0x60]
jmp 0x180012182
mov eax, edi
mov word [rsp + 0x60], ax
cmp ax, di
seta cl
call fcn.1800131b0
test al, al
je 0x1800121ab
call fcn.180011eb0
test al, al
je 0x1800121ab
cmp dword [0x180283604], edi
seta al
mov byte [0x18028357e], al
jmp 0x1800121b2
movzx eax, byte [0x18028357e]
test al, al
je 0x180012200
mov r9d, dword [0x180283608]
test r9, r9
je 0x180012283
lea r8, [0x180283580]
nop dword [rax]
mov rcx, rbx
mov rax, rbx
shr rax, 6
and ecx, 0x3f
lea rdx, [r8 + rax*8]
inc rbx
mov rax, qword [rdx]
bts rax, rcx
mov qword [rdx], rax
cmp rbx, r9
jb 0x1800121d0
mov al, 1
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetProcessAffinityMask]
test eax, eax
je 0x180012283
mov r9, qword [rsp + 0x60]
lea r8, [0x180283580]
nop dword [rax]
test r9, rdi
je 0x180012251
mov rcx, rbx
mov rax, rbx
shr rax, 6
and ecx, 0x3f
lea rdx, [r8 + rax*8]
mov rax, qword [r8 + rax*8]
bts rax, rcx
mov qword [rdx], rax
rol rdi, 1
test r9, rdi
je 0x180012276
lea rdx, [rbx + 1]
mov rax, rdx
and edx, 0x3f
shr rax, 6
lea rcx, [r8 + rax*8]
mov rax, qword [r8 + rax*8]
bts rax, rdx
mov qword [rcx], rax
rol rdi, 1
add rbx, 2
cmp rbx, 0x40
jb 0x180012230
mov rbx, qword [rsp + 0x70]
mov al, 1
add rsp, 0x50
pop rdi
ret
Function at 0x18008e450
Capabilities:
Generate random numbers via winapi

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0xa0]
mov r8d, edx
mov dword [rbp - 0x3c], r8d
mov rdx, rcx
mov qword [rbp - 0x48], rdx
xor ecx, ecx
mov qword [rbp - 0x50], rcx
mov r9d, 2
mov dword [rbp - 0x40], r9d
lea rcx, [rbp - 0x78]
call fcn.180003580
mov r8d, dword [rbp - 0x3c]
mov rdx, qword [rbp - 0x48]
mov rcx, qword [rbp - 0x50]
mov r9d, dword [rbp - 0x40]
call sub.bcrypt.dll_BCryptGenRandom
mov ebx, eax
lea rcx, [rbp - 0x78]
call fcn.1800035d0
test ebx, ebx
jne 0x18008e4c4
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
cmp ebx, 0xc0000017
jne 0x18008e4eb
lea rcx, [0x180166630]
call fcn.1800028f0
mov rbx, rax
mov rcx, rbx
call fcn.1800a06d0
mov rcx, rbx
call fcn.180002e70
lea rcx, [0x180165ea8]
call fcn.1800028f0
mov rbx, rax
mov rcx, rbx
call fcn.18009c4c0
mov rcx, rbx
call fcn.180002e70
int3

Function at 0x18008e970
Capabilities:
Inspect section memory permissions

Disassembly:
push rbp
push rbx
sub rsp, 0x48
lea rbp, [rsp + 0x50]
mov rbx, rcx
mov eax, dword [rbx + 0x38]
cmp eax, 0xffffffff
je 0x18008e98d
add rsp, 0x48
pop rbx
pop rbp
ret
mov dword [rsp + 0x20], 0x10
lea r8, [rbp - 0x10]
lea rdx, [rbp - 0x20]
mov rcx, rbx
mov r9d, 4
call fcn.1800e0230
mov ecx, eax
test ecx, ecx
jne 0x18008ea1a
xor eax, eax
mov ecx, 0x40000000
test byte [rbp - 0x10], 0x30
cmove eax, ecx
mov ecx, eax
or ecx, 0x80000000
test byte [rbp - 0x10], 2
cmovne eax, ecx
mov ecx, eax
or ecx, 0x10000000
test dword [rbp - 0x10], 0x800
cmovne eax, ecx
mov ecx, eax
or ecx, 0x8000000
test byte [rbp - 0x10], 4
cmovne eax, ecx
mov ecx, eax
or ecx, 0x4000000
test dword [rbp - 0x10], 0x1000
cmovne eax, ecx
mov ecx, eax
or ecx, 0x20000000
test byte [rbp - 0x10], 8
cmovne eax, ecx
mov dword [rbx + 0x38], eax
add rsp, 0x48
pop rbx
pop rbp
ret
call fcn.1800e0100
mov ecx, eax
lea rdx, [0x180145d48]
call fcn.1800c6b60
mov rcx, rax
call fcn.180002e70
int3
Function at 0x180092040
Capabilities:
Get session user name

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0xb0]
xor eax, eax
mov qword [rbp - 0x48], rax
mov rbx, rcx
xor ecx, ecx
mov dword [rbp - 0x3c], ecx
jmp 0x180092097
cmp dword [rax + 0xa0], 0xea
jne 0x18009211d
mov edx, dword [rbp - 0x3c]
test edx, edx
jl 0x180092137
mov rbx, qword [rbp + 0x10]
cmp edx, dword [rbx + 0x18]
jbe 0x180092097
sub edx, dword [rbx + 8]
mov rcx, rbx
call fcn.1800c02d0
mov qword [rbp + 0x10], rbx
mov rsi, qword [rbx + 0x10]
lea rdi, [rbp - 0x3c]
mov qword [rbp - 0x48], rsi
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov r8, rdi
mov qword [rbp - 0x54], r8
mov rdx, rsi
mov qword [rbp - 0x5c], rdx
mov ecx, 2
mov dword [rbp - 0x4c], ecx
lea rcx, [rbp - 0x88]
call fcn.180003580
mov r8, qword [rbp - 0x54]
mov rdx, qword [rbp - 0x5c]
mov ecx, dword [rbp - 0x4c]
call sub.Secur32.dll_GetUserNameExW
mov ebx, eax
lea rcx, [rbp - 0x88]
call fcn.1800035d0
movzx ebx, bl
call sub.KERNEL32.dll_GetLastError
mov esi, eax
xor eax, eax
mov qword [rbp - 0x48], rax
call fcn.180001f21
mov dword [rax + 0xa0], esi
test ebx, ebx
je 0x180092068
mov eax, dword [rbp - 0x3c]
mov rbx, qword [rbp + 0x10]
mov dword [rbx + 8], eax
jmp 0x180092126
xor eax, eax
mov rbx, qword [rbp + 0x10]
mov dword [rbx + 8], eax
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call fcn.1800dd570
int3

Function at 0x1800dda10
Capabilities:
Copy file

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x98
lea rbp, [rsp + 0xd0]
xorps xmm4, xmm4
movaps xmmword [rbp - 0x50], xmm4
xor eax, eax
mov qword [rbp - 0x40], rax
mov rbx, r8
mov rsi, r9
mov rdi, qword [rbp + 0x30]
mov qword [rbp - 0x40], rdi
test rdx, rdx
je 0x1800dda51
add rdx, 0xc
jmp 0x1800dda53
xor edx, edx
mov qword [rbp - 0x48], rdx
mov r14, rdx
test rcx, rcx
je 0x1800dda68
add rcx, 0xc
mov r15, rcx
jmp 0x1800dda6b
xor r15d, r15d
mov qword [rbp - 0x50], r15
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov qword [rsp + 0x20], rdi
mov edi, dword [rbp + 0x38]
mov dword [rsp + 0x28], edi
mov rcx, r15
mov qword [rbp - 0x58], rcx
mov rdx, r14
mov qword [rbp - 0x60], rdx
mov r8, rbx
mov qword [rbp - 0x68], r8
mov r9, rsi
mov qword [rbp - 0x70], r9
lea rcx, [rbp - 0x98]
call fcn.180003580
mov rcx, qword [rbp - 0x58]
mov rdx, qword [rbp - 0x60]
mov r8, qword [rbp - 0x68]
mov r9, qword [rbp - 0x70]
call sub.KERNEL32.dll_CopyFileExW
mov ebx, eax
lea rcx, [rbp - 0x98]
call fcn.1800035d0
call sub.KERNEL32.dll_GetLastError
mov esi, eax
xor eax, eax
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rax
test ebx, ebx
setne bl
movzx ebx, bl
call fcn.180001f21
mov dword [rax + 0xa0], esi
movzx eax, bl
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x1800de020
Capabilities:
Delete file

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x90]
xor eax, eax
mov qword [rbp - 0x40], rax
test rcx, rcx
je 0x1800de04c
add rcx, 0xc
mov rbx, rcx
jmp 0x1800de04e
xor ebx, ebx
mov qword [rbp - 0x40], rbx
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rcx, rbx
mov qword [rbp - 0x48], rcx
lea rcx, [rbp - 0x70]
call fcn.180003580
mov rcx, qword [rbp - 0x48]
call sub.KERNEL32.dll_DeleteFileW
mov ebx, eax
lea rcx, [rbp - 0x70]
call fcn.1800035d0
call sub.KERNEL32.dll_GetLastError
mov esi, eax
xor eax, eax
mov qword [rbp - 0x40], rax
test ebx, ebx
setne bl
movzx ebx, bl
call fcn.180001f21
mov dword [rax + 0xa0], esi
movzx eax, bl
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret

Function at 0x1800dec90
Capabilities:
Read file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0xc0]
xor eax, eax
mov qword [rbp - 0x48], rax
mov rbx, rdx
mov esi, r8d
mov rdi, r9
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x48], rcx
lea rdx, [rbp - 0x40]
cmp dword [rcx], ecx
call fcn.1800d0600
mov rcx, qword [rbp - 0x48]
mov r14, qword [rcx + 8]
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov r15, qword [rbp + 0x30]
mov qword [rsp + 0x20], r15
mov rcx, r14
mov qword [rbp - 0x54], rcx
mov rdx, rbx
mov qword [rbp - 0x5c], rdx
mov r8d, esi
mov dword [rbp - 0x4c], r8d
mov r9, rdi
mov qword [rbp - 0x64], r9
lea rcx, [rbp - 0x90]
call fcn.180003580
mov rcx, qword [rbp - 0x54]
mov rdx, qword [rbp - 0x5c]
mov r8d, dword [rbp - 0x4c]
mov r9, qword [rbp - 0x64]
call sub.KERNEL32.dll_ReadFile
mov ebx, eax
lea rcx, [rbp - 0x90]
call fcn.1800035d0
call sub.KERNEL32.dll_GetLastError
mov esi, eax
cmp byte [rbp - 0x40], 0
je 0x1800ded4d
mov rcx, qword [rbp - 0x48]
cmp byte [rcx], cl
xor edx, edx
call fcn.1800d0640
call fcn.180001f21
mov dword [rax + 0xa0], esi
mov eax, ebx
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x1800dedb0
Capabilities:
Read file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0xc0]
xorps xmm4, xmm4
movaps xmmword [rbp - 0x50], xmm4
xor eax, eax
mov qword [rbp - 0x40], rax
mov rsi, rdx
mov edi, r8d
mov rbx, r9
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x48], rcx
lea rdx, [rbp - 0x40]
cmp dword [rcx], ecx
call fcn.1800d0600
nop
mov qword [rbp - 0x50], rbx
mov rcx, qword [rbp - 0x48]
mov r14, qword [rcx + 8]
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov r15, qword [rbp + 0x30]
mov qword [rsp + 0x20], r15
mov rcx, r14
mov qword [rbp - 0x5c], rcx
mov rdx, rsi
mov qword [rbp - 0x64], rdx
mov r8d, edi
mov dword [rbp - 0x54], r8d
mov r9, rbx
mov qword [rbp - 0x6c], r9
lea rcx, [rbp - 0x98]
call fcn.180003580
mov rcx, qword [rbp - 0x5c]
mov rdx, qword [rbp - 0x64]
mov r8d, dword [rbp - 0x54]
mov r9, qword [rbp - 0x6c]
call sub.KERNEL32.dll_ReadFile
mov ebx, eax
lea rcx, [rbp - 0x98]
call fcn.1800035d0
call sub.KERNEL32.dll_GetLastError
mov esi, eax
xor ecx, ecx
mov qword [rbp - 0x50], rcx
cmp byte [rbp - 0x40], 0
je 0x1800dee7f
mov rcx, qword [rbp - 0x48]
cmp byte [rcx], cl
xor edx, edx
call fcn.1800d0640
call fcn.180001f21
mov dword [rax + 0xa0], esi
mov eax, ebx
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret

Function at 0x1800df580
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0xb0]
xor eax, eax
mov qword [rbp - 0x40], rax
mov rbx, rcx
mov rsi, rdx
mov edi, r8d
mov qword [rbp - 0x40], r9
mov r14, r9
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov r15, qword [rbp + 0x30]
mov qword [rsp + 0x20], r15
mov rcx, rbx
mov qword [rbp - 0x4c], rcx
mov rdx, rsi
mov qword [rbp - 0x54], rdx
mov r8d, edi
mov dword [rbp - 0x44], r8d
mov r9, r14
mov qword [rbp - 0x5c], r9
lea rcx, [rbp - 0x88]
call fcn.180003580
mov rcx, qword [rbp - 0x4c]
mov rdx, qword [rbp - 0x54]
mov r8d, dword [rbp - 0x44]
mov r9, qword [rbp - 0x5c]
call sub.KERNEL32.dll_WriteFile
mov ebx, eax
lea rcx, [rbp - 0x88]
call fcn.1800035d0
call sub.KERNEL32.dll_GetLastError
mov esi, eax
xor eax, eax
mov qword [rbp - 0x40], rax
call fcn.180001f21
mov dword [rax + 0xa0], esi
mov eax, ebx
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x140002720
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000276a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000276a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000276a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000276a
cmp dword [rcx + 0x84], 0xe
jbe 0x14000276a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000276c
xor al, al
add rsp, 0x28
ret
Function at 0x1000077b8
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x80
mov r9d, 1
mov rbx, rcx
lea rdx, [0x100005f38]
lea r8d, [r9 + 0x1a]
lea rcx, [rsp + 0x48]
call fcn.100018110
xor edi, edi
xor eax, eax
lea r11, [0x100005940]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x90], rdi
mov dword [rsp + 0x30], edi
mov qword [rsp + 0x20], r11
lea eax, [rdi + 0x22]
cmp rbx, rdi
jne 0x100007828
mov dword [rsp + 0x48], 0x80070057
mov word [rsp + 0x4e], ax
jmp 0x100007919
mov rcx, qword [rbx]
mov dword [rsp + 0x48], edi
mov word [rsp + 0x4c], ax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10000787c
test al, 0x10
je 0x100007851
mov dword [rsp + 0x48], edi
mov eax, 0x2a
jmp 0x100007914
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, edi
jne 0x10000786e
call fcn.100019734
mov dword [rsp + 0x48], eax
mov eax, 0x34
jmp 0x10000781e
mov eax, 0x34
mov dword [rsp + 0x48], edi
mov word [rsp + 0x4c], ax
xor r9d, r9d
lea r8, [rsp + 0x90]
lea rcx, [0x100005e90]
lea edx, [r9 + 1]
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
cmp eax, edi
jne 0x1000078ae
call fcn.100019734
mov dword [rsp + 0x48], eax
mov eax, 0x3f
jmp 0x10000781e
mov rcx, qword [rbx]
mov eax, 0x3f
lea rdx, [rsp + 0x30]
mov word [rsp + 0x4c], ax
mov rax, qword [rsp + 0x90]
mov dword [rsp + 0x48], edi
mov dword [rsp + 0x30], 0x18
mov dword [rsp + 0x40], edi
mov qword [rsp + 0x38], rax
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, edi
jne 0x100007919
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
cmove eax, edi
movzx ecx, ax
or ecx, 0x80070000
cmp eax, edi
cmovle ecx, eax
mov eax, 0x4c
cmp ecx, edi
mov dword [rsp + 0x48], ecx
jl 0x10000781e
mov word [rsp + 0x4c], ax
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov ebx, dword [rsp + 0x48]
lea rcx, [rsp + 0x20]
call fcn.10001ae2c
lea rcx, [rsp + 0x48]
call fcn.100018228
mov eax, ebx
mov rbx, qword [rsp + 0x98]
add rsp, 0x80
pop rdi
ret
Function at 0x100007f24
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r13
sub rsp, 0x70
mov r9d, 1
lea rdx, [0x100005f80]
lea rcx, [rsp + 0x30]
lea r8d, [r9 + 0x54]
call fcn.100018110
and qword [rsp + 0x28], 0
and dword [rsp + 0x98], 0
lea rbx, [0x100005940]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rdx, [rsp + 0x98]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebp, 1
mov rdi, rax
cmp dword [rsp + 0x98], ebp
jbe 0x100007fda
lea rsi, [rax + 8]
lea r13d, [rbp + 0x60]
mov r8, qword [rsi]
lea r9, [0x100005f8c]
lea rdx, [0x100006008]
lea rcx, [rsp + 0x20]
call fcn.10001b920
mov ebx, eax
mov dword [rsp + 0x30], eax
test eax, eax
js 0x100007ffb
inc ebp
add rsi, 8
mov word [rsp + 0x34], r13w
cmp ebp, dword [rsp + 0x98]
jb 0x100007f9b
mov rbx, qword [rsp + 0x20]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RegisterApplicationRestart]
mov ebx, eax
mov dword [rsp + 0x30], eax
test eax, eax
mov eax, 0x63
jns 0x100008003
mov word [rsp + 0x36], ax
jmp 0x100008073
mov word [rsp + 0x36], r13w
jmp 0x100008073
lea rcx, [0x100005fa0]
mov word [rsp + 0x34], ax
call qword [sym.imp.USER32.dll_RegisterWindowMessageW]
mov dword [0x100020afc], eax
test eax, eax
jne 0x100008036
call fcn.100019734
mov ecx, 0x66
mov ebx, eax
mov dword [rsp + 0x30], eax
mov word [rsp + 0x36], cx
jmp 0x100008073
and dword [rsp + 0x30], 0
mov ecx, 0x66
lea edx, [rcx - 0x65]
mov word [rsp + 0x34], cx
mov ecx, eax
call qword [sym.imp.USER32.dll_ChangeWindowMessageFilter]
mov edx, dword [rsp + 0x98]
mov rcx, rdi
call fcn.1000083a0
mov ebx, eax
mov dword [rsp + 0x30], eax
test eax, eax
mov eax, 0x6b
js 0x100007ff4
mov word [rsp + 0x34], ax
test rdi, rdi
je 0x100008085
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov ebx, dword [rsp + 0x30]
lea rcx, [rsp + 0x20]
call fcn.10001ae2c
lea rcx, [rsp + 0x30]
call fcn.100018228
lea r11, [rsp + 0x70]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop rdi
pop rsi
ret
Function at 0x100008604
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
mov rdi, rdx
mov rbx, rcx
lea rdx, [0x1000060a8]
lea rcx, [rsp + 0x38]
mov r9d, 1
mov r8d, 0xc1
call fcn.100018110
and dword [rsp + 0x20], 0
xor eax, eax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rax
test rdi, rdi
je 0x10000864a
and qword [rdi], rax
mov eax, 0xc9
test rbx, rbx
jne 0x100008663
mov ebx, 0x80070057
mov word [rsp + 0x3e], ax
jmp 0x100008722
mov word [rsp + 0x3c], ax
mov eax, 0xca
test rdi, rdi
je 0x100008654
and dword [rsp + 0x38], 0
lea rcx, [0x100005fa0]
mov word [rsp + 0x3c], ax
call qword [sym.imp.USER32.dll_RegisterWindowMessageW]
mov r11d, eax
test eax, eax
jne 0x1000086a7
call fcn.100019734
mov ebx, eax
mov dword [rsp + 0x38], eax
mov eax, 0xcd
mov word [rsp + 0x3e], ax
jmp 0x100008726
and dword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
mov eax, 0xcd
lea rdx, [rsp + 0x20]
lea rcx, [0x100008748]
mov word [rsp + 0x3c], ax
mov dword [rsp + 0x20], r11d
mov qword [rsp + 0x28], rbx
call qword [sym.imp.USER32.dll_EnumWindows]
test eax, eax
jne 0x1000086ff
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov dword [rsp + 0x38], ebx
test ebx, ebx
jns 0x1000086ff
mov eax, 0xd6
jmp 0x1000086a0
mov rax, qword [rsp + 0x30]
test rax, rax
jne 0x100008713
lea ebx, [rax + 1]
mov eax, 0xdb
jmp 0x10000871d
mov qword [rdi], rax
xor ebx, ebx
mov eax, 0xdf
mov word [rsp + 0x3c], ax
mov dword [rsp + 0x38], ebx
lea rcx, [rsp + 0x38]
call fcn.100018228
mov eax, ebx
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret

Function at 0x100008c50
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x60
mov rsi, rdx
mov rbx, rcx
mov edi, r8d
lea rdx, [0x100006108]
lea rcx, [rsp + 0x20]
mov r9d, 1
mov r8d, 0x18a
call fcn.100018110
mov eax, 0x18e
cmp edi, 0xffff
jbe 0x100008ca2
mov ebx, 0x80070057
mov dword [rsp + 0x20], ebx
mov word [rsp + 0x26], ax
jmp 0x100008d02
mov word [rsp + 0x24], ax
mov eax, 0x18f
test rbx, rbx
je 0x100008c92
and dword [rsp + 0x20], 0
xor ecx, ecx
mov word [rsp + 0x24], ax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r8d, edi
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jne 0x100008cfe
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov eax, 0x195
mov dword [rsp + 0x20], ebx
test ebx, ebx
js 0x100008c9b
mov word [rsp + 0x24], ax
jmp 0x100008d02
mov ebx, dword [rsp + 0x20]
lea rcx, [rsp + 0x20]
call fcn.100018228
mov rsi, qword [rsp + 0x78]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret