joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140126470
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14012647d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14012648d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140126475
lea eax, [rcx + 1]
jmp 0x14012649b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1401264ae
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140126494
sub eax, 3
jb 0x1401264ce
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14012651d
sar eax, 1
movsxd rbp, eax
jb 0x140126504
jmp 0x1401264dc
add ebx, ebx
jne 0x1401264da
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140126504
inc ecx
add ebx, ebx
jne 0x1401264ea
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140126504
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1401264fd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1401264ec
add ecx, 2
jmp 0x140126509
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140126432
jmp 0x14012647d
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0xc8200
mov dl, 0x13
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14012656d
cmp rsi, rcx
jae 0x140126575
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140126554
cmp al, 0x8f
ja 0x140126554
cmp byte [rsi - 2], 0xf
je 0x14012655a
sub al, 0xe8
cmp al, 1
ja 0x14012653e
cmp rsi, rcx
jae 0x140126575
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140126544
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x140126575
lodsb al, byte [rsi]
jmp 0x140126554
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x122000]
mov eax, dword [rdi]
or eax, eax
je 0x1401265d2
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x1264ec]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x140126582
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x1401265cc
mov qword [rbx], rax
add rbx, 8
jmp 0x1401265a2
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x14012660c
cmp al, 0xef
ja 0x1401265fe
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1401265de
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x1401265ed
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
mov byte [fcn.14012668b], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.14012668b
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14012667b
sub rsp, 0xffffffffffffff80
jmp 0x1400014e0
Function at 0x140126440
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14012644d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14012645d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140126445
lea eax, [rcx + 1]
jmp 0x14012646b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14012647e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140126464
sub eax, 3
jb 0x14012649e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1401264ed
sar eax, 1
movsxd rbp, eax
jb 0x1401264d4
jmp 0x1401264ac
add ebx, ebx
jne 0x1401264aa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1401264d4
inc ecx
add ebx, ebx
jne 0x1401264ba
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1401264d4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1401264cd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1401264bc
add ecx, 2
jmp 0x1401264d9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140126402
jmp 0x14012644d
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0xc8200
mov dl, 0x13
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14012653d
cmp rsi, rcx
jae 0x140126545
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140126524
cmp al, 0x8f
ja 0x140126524
cmp byte [rsi - 2], 0xf
je 0x14012652a
sub al, 0xe8
cmp al, 1
ja 0x14012650e
cmp rsi, rcx
jae 0x140126545
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140126514
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x140126545
lodsb al, byte [rsi]
jmp 0x140126524
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x122000]
mov eax, dword [rdi]
or eax, eax
je 0x1401265a2
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x1264ec]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x140126552
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14012659c
mov qword [rbx], rax
add rbx, 8
jmp 0x140126572
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x1401265dc
cmp al, 0xef
ja 0x1401265ce
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1401265ae
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x1401265bd
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
mov byte [fcn.14012665b], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.14012665b
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14012664b
sub rsp, 0xffffffffffffff80
jmp 0x1400014e0
Function at 0x140001ab0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x60
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor esi, esi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rsi
mov rbx, r8
mov qword [rsp + 0x38], rax
mov rdi, rdx
mov qword [rsp + 0x30], rsi
lea rdx, str.SOFTWAREZombsRoyaleio
mov dword [rsp + 0x28], 0xf003f
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], esi
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x140001ba5
mov rdx, qword [rdi + 0x18]
cmp rdx, 0xf
jbe 0x140001b52
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x140001b4d
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140001ca5
mov rcx, r8
call fcn.140002c9c
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], 0xf
mov byte [rdi], sil
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x140001b9b
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x140001b96
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140001ca5
mov rcx, r8
call fcn.140002c9c
mov eax, 1
jmp 0x140001c76
cmp qword [rbx + 0x18], 0xf
mov rax, rbx
mov ecx, dword [rbx + 0x10]
jbe 0x140001bb5
mov rax, qword [rbx]
cmp qword [rdi + 0x18], 0xf
mov rdx, rdi
jbe 0x140001bc2
mov rdx, qword [rdi]
mov dword [rsp + 0x28], ecx
mov r9d, 1
mov rcx, qword [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x50]
test eax, eax
je 0x140001bf3
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140001b18
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rdi + 0x18]
cmp rdx, 0xf
jbe 0x140001c2f
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x140001c2a
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140001ca5
mov rcx, r8
call fcn.140002c9c
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], 0xf
mov byte [rdi], sil
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x140001c74
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x140001c6f
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140001ca5
mov rcx, r8
call fcn.140002c9c
xor eax, eax
mov byte [rbx], sil
mov qword [rbx + 0x18], 0xf
mov qword [rbx + 0x10], rsi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140002b00
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x140001cb0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
sub rsp, 0x70
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rsi, r8
mov qword [rsp + 0x38], rcx
mov rbx, rcx
lea rax, [rsp + 0x38]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000001
lea rdx, str.SOFTWAREZombsRoyaleio
mov r9d, 0x20019
xor ebp, ebp
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
xor r8d, r8d
test eax, eax
je 0x140001d24
xorps xmm0, xmm0
lea rdx, [0x140004528]
movups xmmword [rbx], xmm0
mov qword [rbx + 0x18], rbp
mov rcx, rbx
mov qword [rbx + 0x10], rbp
call fcn.140002720
jmp 0x140001e1c
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
xor r9d, r9d
mov rdx, rsi
mov qword [rsp + 0x20], rbp
mov dword [rsp + 0x34], ebp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x140001d5c
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor r8d, r8d
jmp 0x140001d02
mov ecx, dword [rsp + 0x34]
mov qword [rsp + 0x98], rdi
call fcn.140002ce8
mov rcx, qword [rsp + 0x38]
mov rdi, rax
lea rax, [rsp + 0x34]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, rsi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x140001dcc
mov rcx, rdi
call fcn.140002c9c
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xorps xmm0, xmm0
lea rdx, [0x140004528]
movups xmmword [rbx], xmm0
xor r8d, r8d
mov qword [rbx + 0x10], rbp
mov rcx, rbx
mov qword [rbx + 0x18], rbp
call fcn.140002720
jmp 0x140001e14
mov r8d, dword [rsp + 0x34]
lea rcx, [rsp + 0x40]
xorps xmm0, xmm0
mov qword [rsp + 0x50], rbp
mov rdx, rdi
mov qword [rsp + 0x58], rbp
movups xmmword [rsp + 0x40], xmm0
call fcn.140002720
mov rcx, rdi
call fcn.140002c9c
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movups xmm0, xmmword [rsp + 0x40]
movups xmm1, xmmword [rsp + 0x50]
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm1
mov rdi, qword [rsp + 0x98]
mov rax, rbx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140002b00
add rsp, 0x70
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400034b4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400034fe
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400034fe
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400034fe
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400034fe
cmp dword [rcx + 0x84], 0xe
jbe 0x1400034fe
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140003500
xor al, al
add rsp, 0x28
ret
Function at 0x140027db0
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.14001b754
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001b754
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140027f00
cmp rax, 0xffffffffffffffff
je 0x140027f00
xor edi, edi
test rbp, rbp
jle 0x140027eab
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001dd40
mov rbx, rax
test rax, rax
jne 0x140027e38
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140027ea1
mov edx, 0x8000
mov ecx, r14d
call fcn.1400158f8
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.14001c430
cmp eax, 0xffffffff
je 0x140027e81
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140027e48
mov edx, r15d
mov ecx, r14d
call fcn.1400158f8
jmp 0x140027ea1
cmp byte [rsi + 0x38], dil
je 0x140027e98
cmp dword [rsi + 0x34], 5
jne 0x140027e98
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140027ea1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140019e18
jmp 0x140027f14
jns 0x140027f14
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001b754
cmp rax, 0xffffffffffffffff
jne 0x140027ecc
cmp byte [rsi + 0x30], dil
je 0x140027f14
mov edi, dword [rsi + 0x2c]
jmp 0x140027f14
mov ecx, r14d
call fcn.140016ef8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140027f14
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 0x140027f14
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140027f0d
mov eax, dword [rsi + 0x2c]
jmp 0x140027f12
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001b754
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 0x141fafdb7
Capabilities:
Encode data using xor

Disassembly:
mov rcx, qword [rsp + rsi*2 - 0x10a]
mov qword [rsp + rsi*2 - 0x11a], r13
pop r8
mov rsi, qword [rsp + r13*8 - 0x470]
push r13
mov r14, qword [rsp + r13*4 - 0x21c]
mov qword [rsp + r13 - 0x79], rax
mov rdx, qword [rsp + r13*2 - 0xf2]
inc r9
mov rax, qword [rsp + r13*8 - 0x450]
pop r9
add r9w, r9w
lea r12, [r13*2 - 0x5cd003eb]
mov r13, qword [rsp + r13*2 - 0xea]
movsx r11d, r9w
shr r9b, 0xe1
mov qword [rsp + r9 - 0xf9], 0x506bbb8
mov r12, qword [rsp + r9 - 0xd1]
mov qword [rsp + r9 - 0xe1], r11
ror r9d, 0xa8
rol r11d, 0xdb
mov r11, qword [rsp + r9 - 0x10ffffb9]
mov r8, qword [rsp + r9*2 - 0x21ffffb2]
pop r9
mov qword [rsp + r9 - 0x61], 0xffffffff999d073e
mov r9, qword [rsp + r9 - 0x41]
call fcn.141fcea46
add byte [rax], al
add byte [rax], al
add byte [rax], al
mov ah, 0xfb
add dword [r8], eax
add byte [rax], al
invalid
Function at 0x4015a8
Capabilities:
Get file size
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
xor r9d, r9d
mov r8d, 1
xor edi, edi
mov r12, rcx
mov qword [rsp + 0x30], 0
mov rcx, rdx
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
mov rbp, rax
je 0x401669
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401606
xor edi, edi
jmp 0x401660
lea edx, [rbx + 1]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
test rax, rax
mov rsi, rax
je 0x401602
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x4c]
mov r8d, ebx
mov rdx, rax
mov rcx, rbp
xor edi, edi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401657
xor edi, edi
mov byte [rsi + rbx], 0
mov rdx, rsi
mov rcx, r12
call qword [sym.imp.USER32.dll_SetWindowTextA]
test eax, eax
setne dil
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x401676
Capabilities:
Get graphical window text
Write file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x60
xor r9d, r9d
xor r8d, r8d
xor ebx, ebx
mov r12, rcx
mov qword [rsp + 0x30], 0
mov rcx, rdx
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 2
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
mov rdi, rax
je 0x401735
mov rcx, r12
call qword [sym.imp.USER32.dll_GetWindowTextLengthA]
test eax, eax
mov ebp, eax
jne 0x4016ce
xor ebx, ebx
jmp 0x40172c
lea edx, [rax + 1]
mov ecx, 0x40
mov dword [rsp + 0x4c], edx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
test rax, rax
mov rsi, rax
je 0x4016ca
mov r8d, dword [rsp + 0x4c]
mov rdx, rax
mov rcx, r12
xor ebx, ebx
call qword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x401723
xor ebx, ebx
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x5c]
mov r8d, ebp
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne bl
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
add rsp, 0x60
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x416590
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 [0x0048e134]
mov rbx, rcx
mov rsi, rdx
mov rdi, r8
test ebp, ebp
jle 0x4166aa
mov rax, qword [0x0048e138]
xor r9d, r9d
add rax, 8
mov r10, qword [rax]
cmp rbx, r10
jb 0x4165de
mov rdx, qword [rax + 8]
mov r11d, dword [rdx + 8]
add r10, r11
cmp rbx, r10
jb 0x416690
add r9d, 1
add rax, 0x18
cmp r9d, ebp
jne 0x4165c2
mov rcx, rbx
call fcn.004173d0
test rax, rax
mov r12, rax
je 0x4166e2
lea rbp, [rbp + rbp*2]
shl rbp, 3
mov r13, rbp
add r13, qword [0x0048e138]
mov qword [r13 + 0x10], rax
mov dword [r13], 0
call fcn.004174f0
mov edx, dword [r12 + 0xc]
mov r8d, 0x30
add rax, rdx
lea rdx, [rsp + 0x20]
mov qword [r13 + 8], rax
mov rax, qword [0x0048e138]
mov rcx, qword [rax + rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x4166c5
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x416689
sub eax, 0x40
and eax, 0xffffffbf
je 0x416689
mov r9, rbp
add r9, qword [0x0048e138]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x4166b1
add dword [0x0048e134], 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 sub.msvcrt.dll_memcpy
xor ebp, ebp
jmp 0x4165eb
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00416520
mov rax, qword [0x0048e138]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbp + 8]
call fcn.00416520
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.00416520
nop
nop word cs:[rax + rax]

Function at 0x4172e0
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 0x417321
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 0x417318
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x417323
add rax, 0x28
cmp rax, r9
jne 0x417304
xor eax, eax
repz ret

Function at 0x4173d0
Capabilities:
Enumerate pe sections

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, qword [0x0047a580]
cmp word [rbx], 0x5a4d
je 0x4173f0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
mov rsi, rcx
mov rcx, rbx
call fcn.004172a0
test eax, eax
je 0x4173e4
sub rsi, rbx
mov rcx, rbx
mov rdx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.004172e0
Function at 0x417640
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x0048ea80]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x0048ea60]
test rbx, rbx
je 0x417694
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x41768b
test rsi, rsi
je 0x41768b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x417670
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x0048ea80]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax

Function at 0x417df0
Capabilities:
Check mutex on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x80]
mov rdi, rcx
movsxd r12, edx
mov r13, r8
call sub.msvcrt.dll_strlen
mov rsi, rax
lea ebx, [rax + 0xf]
lea eax, [rax + 0x52]
cdqe
add rax, 0xf
and rax, 0xfffffffffffffff0
call fcn.00417fb0
sub rsp, rax
movsxd r14, esi
movabs rax, 0x656d68732d636367
lea r15, [rsp + 0x20]
lea rcx, [rsp + 0x2f]
mov r8, r14
mov rdx, rdi
mov qword [rsp + 0x20], rax
mov eax, 0x326d
mov dword [rsp + 0x28], 0x64742d6d
mov word [rsp + 0x2c], ax
movsxd rbx, ebx
mov byte [rsp + 0x2e], 0x2d
call sub.msvcrt.dll_memcpy
lea rax, [r15 + r14 + 0x10]
lea r14d, [rsi + 0x50]
movabs rdx, 0x6161616161616161
xor ecx, ecx
mov r8, r15
mov qword [rax], rdx
mov qword [rax + 8], rdx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], rdx
mov qword [rax + 0x20], rdx
mov qword [rax + 0x28], rdx
mov qword [rax + 0x30], rdx
mov qword [rax + 0x38], rdx
movsxd rax, r14d
xor edx, edx
mov byte [rsp + rax + 0x20], 0
mov byte [rsp + rbx + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov byte [rsp + rbx + 0x20], 0x2d
mov rdi, rax
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x417ed9
int3
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x417f78
mov rcx, r12
call sub.msvcrt.dll_malloc
lea r9d, [rsi + 0x10]
mov rbx, rax
mov r10d, 0x40
bt rbx, r10
jae 0x417f14
mov r11d, r14d
sub r11d, r10d
movsxd r11, r11d
mov byte [r15 + r11], 0x41
sub r10d, 1
jne 0x417f00
mov dword [rbp - 0x54], r9d
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
mov r9d, dword [rbp - 0x54]
je 0x417f75
lea r8d, [rsi + 0x51]
movzx ecx, ax
mov rdx, r15
call fcn.00417d70
cmp rax, rbx
mov rsi, rax
je 0x417f90
mov rcx, rbx
call fcn.00421e50
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rsi
lea rsp, [rbp - 0x48]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
int3
lea r9d, [rsi + 0x10]
lea r8d, [rsi + 0x51]
movzx ecx, ax
mov rdx, r15
call fcn.00417d70
mov rsi, rax
jmp 0x417f4f
xor edx, edx
mov r8, r12
mov rcx, rbx
call sub.msvcrt.dll_memset
test r13, r13
je 0x417f4f
mov rcx, rbx
call r13
jmp 0x417f4f