joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140007204
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.140007194
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x140021210]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140020640]
jmp 0x140007240
cmp qword [rbx + 0x18], rdi
je 0x140007247
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140007237
jmp 0x140007261
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbx + 0x10]
lea rcx, [0x140020640]
call fcn.1400123b8
lea rcx, [0x140021210]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ch, 0x82
invalid
xchg edx, eax
mov ebp, 0x3541adec
xor eax, 0x454d771b
rcl dword [rdx*2 - 0x30eafea2], cl
invalid
invalid
sal byte [rsp + riz*4 - 0x2b], cl
and bl, byte [rcx + 0x2e5ca8c6]
invalid
test al, 0x5c
sar byte cs:[rsi - 0x535e8689], cl
xchg ebp, eax
sbb byte [rsi + 0x6ad2ad68], cl
push 0x5e
push 0x5e
movabs eax, dword [0xf61ed30d3b5613fe]
sahf
jns 0x14003f656
invalid
out dx, al
call 0x129e8ce8b
in eax, 0xb4
invalid
mov ch, 0xde
popfq
in al, dx
sal esp, 1
invalid
add byte [rsi], al
cmp eax, 0x46d63cc2
fadd dword [rdx - 0x652c8511]
adc eax, 0x69466f23
and ebp, dword [rdi + 0x46]
invalid
je 0x14003f784
leave
invalid
mov dh, 0x1e
cli
insb byte [rdi], dx
cmp al, 0xeb
invalid
pop rsp
loop str.v_AR
adc edx, dword [rax - 0x6cbc939d]
mov esi, 0x1d74fa9c
adc eax, 0x9ae168cd
mov dl, 0xdd
wait
cmpsb byte [rsi], byte [rdi]
or byte [rbx + 0x2d], bh
out 0x48, al
pushfq
mov dword [rax], edx
scasb al, byte [rdi]
adc qword [r9 - 0xe405d72], r9
retf 0x8ed1
jbe 0x14003f7ff
push r10
mov ebx, dword [rsp + rbx*2 - 0x78627155]
invalid
movabs dword [0xc516416aa4f931af], eax
stosd dword [rdi], eax
adc bh, byte [rdi + 0xcb7d237]
mov ebx, 0x3be226bd
add dword [rsp + rdx*8], 0xfffffff5
invalid
jns 0x14003f7d3
jno 0x14003f843
shr esi, cl
in al, 0x9e
out 0xe9, al
mov ebx, 0xabfa09d4
or eax, 0xe3ed0213
invalid
push 0x43
add eax, 0xcb5bf2b5
sal dword [rsi + rax*4 - 0x760b2822], 1
dec dword es:[rcx - 0x6a532261]
movsd dword [rdi], dword [rsi]
ficomp dword [rdi + rdi]
call [rax - 0x3c]
loope 0x14003f859
mov esi, cs
pop rbx
add edx, ebp
rcr dword [rax + 0x907c10a], cl
invalid
Function at 0x140b0a5b0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x140b0a5bd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x140b0a5cd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140b0a5b5
lea eax, [rcx + 1]
jmp 0x140b0a5db
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x140b0a5ee
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140b0a5d4
sub eax, 3
jb 0x140b0a60e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x140b0a65d
sar eax, 1
movsxd rbp, eax
jb 0x140b0a644
jmp 0x140b0a61c
add ebx, ebx
jne 0x140b0a61a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140b0a644
inc ecx
add ebx, ebx
jne 0x140b0a62a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140b0a644
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140b0a63d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140b0a62c
add ecx, 2
jmp 0x140b0a649
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140b0a572
jmp 0x140b0a5bd
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
sub rsp, 0x28
lea rdi, [rsi + 0xb02000]
mov eax, dword [rdi]
or eax, eax
je 0x140b0a6bd
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xb0fcec]
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 0x140b0a66d
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 0x140b0a6b7
mov qword [rbx], rax
add rbx, 8
jmp 0x140b0a68d
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 0x140b0a701
cmp al, 0xef
ja 0x140b0a6e9
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x140b0a6c9
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x140b0a6d8
mov eax, dword [rdi]
add rdi, 4
jmp 0x140b0a6d8
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.140b0a780], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.140b0a780
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x140b0a770
sub rsp, 0xffffffffffffff80
jmp 0x1400014d0

Function at 0x1400028f0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000293a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000293a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000293a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000293a
cmp dword [rcx + 0x84], 0xe
jbe 0x14000293a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000293c
xor al, al
add rsp, 0x28
ret
Function at 0x14000130b
Capabilities:
Resolve function by parsing pe exports

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
push r15
mov eax, 0x5a4d
mov r11, rdx
cmp word [rcx], ax
jne 0x1400013b9
movsxd rax, dword [rcx + 0x3c]
mov r8d, dword [rax + rcx + 0x88]
test r8d, r8d
je 0x1400013b9
lea rax, [rcx + r8]
xor r10d, r10d
mov ebp, dword [rax + 0x18]
test rbp, rbp
je 0x1400013b9
mov edx, dword [rax + 0x20]
mov r8d, dword [rax + 0x24]
add rdx, rcx
mov r15d, dword [rax + 0x1c]
add r8, rcx
movzx eax, word [r8]
xor r9d, r9d
mov edi, dword [rdx]
add rdi, rcx
lea rbx, [r15 + rax*4]
cmp byte [r11], r9b
je 0x14000139b
mov r14, rdi
mov rax, r11
sub r14, r11
mov sil, byte [r14 + rax]
test sil, sil
je 0x14000139b
cmp byte [rax], sil
jne 0x14000139b
inc rax
inc r9
cmp byte [rax], 0
jne 0x140001382
cmp byte [r9 + r11], 0
jne 0x1400013a9
cmp byte [r9 + rdi], 0
je 0x1400013d4
inc r10
add r8, 2
add rdx, 4
cmp r10, rbp
jb 0x140001364
xor eax, eax
mov rbx, qword [rsp + 0x18]
mov rbp, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
pop r15
pop r14
ret
mov eax, dword [rbx + rcx]
add rax, rcx
jmp 0x1400013bb

Function at 0x1400013dc
Capabilities:
Access peb ldr_data

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
push r15
mov rax, qword gs:[0x60]
mov r15d, 0x20
mov rbp, rcx
mov r8, qword [rax + 0x18]
add r8, r15
mov rdx, qword [r8]
cmp rdx, r8
je 0x1400014b9
xor r14d, r14d
lea rcx, [rdx - 0x10]
test rcx, rcx
je 0x1400014b9
cmp qword [rcx + 0x30], r14
je 0x1400014b9
mov rdi, qword [rcx + 0x60]
test rdi, rdi
je 0x1400014ad
mov rbx, r14
cmp r14w, word [rcx + 0x58]
jae 0x14000149e
mov rsi, rbp
mov r11, rdi
sub rsi, rdi
movzx r10d, word [rsi + r11]
test r10w, r10w
je 0x14000149e
cmp word [r11], r14w
je 0x14000149e
lea eax, [r10 - 0x41]
cmp ax, 0x19
ja 0x140001472
add r10w, r15w
mov word [rsi + r11], r10w
movzx r9d, word [r11]
lea eax, [r9 - 0x41]
cmp ax, 0x19
ja 0x140001488
add r9w, r15w
mov word [r11], r9w
cmp r10w, r9w
jne 0x14000149e
movzx eax, word [rcx + 0x58]
inc rbx
add r11, 2
cmp rbx, rax
jb 0x14000144e
cmp word [rbp + rbx*2], r14w
jne 0x1400014ad
cmp word [rdi + rbx*2], r14w
je 0x1400014d4
mov rdx, qword [rdx]
cmp rdx, r8
jne 0x14000141b
xor eax, eax
mov rbx, qword [rsp + 0x18]
mov rbp, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
pop r15
pop r14
ret
mov rax, qword [rcx + 0x30]
jmp 0x1400014bb
Function at 0x140ba2058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140ba21df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140ba2089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140ba206f
add dl, dl
jne 0x140ba2096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140ba20f6
xor eax, eax
add dl, dl
jne 0x140ba20a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140ba21ad
add dl, dl
jne 0x140ba20b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ba20c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ba20d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ba20dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140ba20ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140ba207e
mov eax, 1
add dl, dl
jne 0x140ba2106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ba2113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140ba20fb
sub eax, ebx
mov ebx, 1
jne 0x140ba214c
mov ecx, 1
add dl, dl
jne 0x140ba212e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140ba213b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140ba2123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140ba207e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140ba2168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140ba2175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140ba215d
cmp eax, 0x7d00
jae 0x140ba219b
cmp eax, 0x500
jb 0x140ba2196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140ba207e
cmp eax, 0x7f
ja 0x140ba219e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140ba207e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140ba21d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x140ba207e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140004c9c
Capabilities:
Parse pe header

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

Function at 0x140009bac
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400099d8

Function at 0x140012910
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140012938
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140012938
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140002347
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
push r15
xor rax, rax
push rax
push rax
push rax
sub rsp, 0x28
push 0x400
pop rcx
add rsp, 0xffffffffffffffe0
call fcn.140005720
add rsp, 0x20
mov qword [rsp + 0x28], rax
push qword [0x14000ec10]
add rsp, 0xfffffffffffffff8
push qword [0x14000ec10]
pop rcx
add rsp, 0xffffffffffffffe0
call fcn.140008320
add rsp, 0x28
lea rcx, [rsp + 0x38]
pop rdx
call fcn.14000a070
push qword [rsp + 0x28]
push 0
movabs rax, 0x14000d00d
push rax
push qword [rsp + 0x48]
pop rcx
pop rdx
pop r8
pop r9
add rsp, 0xffffffffffffffe0
call sub.KERNEL32.dll_GetTempFileNameA
add rsp, 0x20
push qword [0x14000ec10]
add rsp, 0xfffffffffffffff8
push qword [0x14000ec10]
push qword [rsp + 0x40]
pop rcx
pop rdx
add rsp, 0xffffffffffffffe0
call fcn.1400057c0
add rsp, 0x28
lea rcx, [0x14000e704]
pop rdx
call fcn.14000a070
push qword [rsp + 0x28]
pop rcx
add rsp, 0xffffffffffffffe0
call fcn.1400057a0
add rsp, 0x20
push qword [0x14000e704]
pop rcx
add rsp, 0xffffffffffffffe0
call fcn.140008304
add rsp, 0x20
push qword [0x14000e704]
pop rcx
add rsp, 0xffffffffffffffe0
call fcn.1400083b8
add rsp, 0x20
push qword [0x14000ec10]
add rsp, 0xfffffffffffffff8
push qword [0x14000ec10]
pop rcx
add rsp, 0xffffffffffffffe0
call fcn.1400081f0
add rsp, 0x28
lea rcx, [0x14000e6fc]
pop rdx
call fcn.14000a070
push qword [rsp + 0x50]
pop rcx
add rsp, 0xffffffffffffffe0
call fcn.140005840
add rsp, 0x20
mov rax, rax
push rax
xor r15, r15
cmp r15, qword [rsp]
jne 0x1400024b2
mov rcx, qword [0x14000e704]
push qword [0x14000ec10]
add rsp, 0xffffffffffffffe0
call fcn.14000a280
add rsp, 0x20
lea rcx, [0x14000e6fc]
pop rdx
add rsp, 0xffffffffffffffd8
call fcn.14000a070
add rsp, 0x28
mov qword [rsp + 0x40], 2
jmp 0x1400024c8
mov r15, 1
cmp r15, qword [rsp]
jne 0x1400024c8
mov qword [rsp + 0x40], 1
pop rax
mov r15, qword [rsp + 0x50]
add r15, qword [rsp + 0x38]
mov rax, r15
push rax
pop rcx
add rsp, 0xffffffffffffffe0
call fcn.140005840
add rsp, 0x20
mov qword [0x14000e6ec], rax
mov r15, qword [rsp + 0x50]
add r15, qword [rsp + 0x38]
inc r15
mov rax, r15
push rax
pop rcx
add rsp, 0xffffffffffffffe0
call fcn.140005840
add rsp, 0x20
mov qword [0x14000e6f4], rax
mov rax, 1
jmp 0x14000251e
push rax
mov rcx, qword [rsp + 0x38]
sub rsp, 0x20
call fcn.14000a2f0
add rsp, 0x20
pop rax
add rsp, 0x40
pop r15
ret
Function at 0x140002b2c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
xor rax, rax
push rax
push rax
sub rsp, 0x28
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x28]
sub rsp, 0x10
call fcn.14000a320
add rsp, 0x10
push 0xa
push qword [rsp + 0x30]
push qword [rsp + 0x50]
pop rcx
pop rdx
pop r8
add rsp, 0xffffffffffffffe0
call sub.KERNEL32.dll_FindResourceA
add rsp, 0x20
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x140002bbd
push qword [rsp + 0x30]
push qword [rsp + 0x48]
pop rcx
pop rdx
add rsp, 0xffffffffffffffe0
call sub.KERNEL32.dll_LoadResource
add rsp, 0x20
mov qword [0x14000e714], rax
push qword [rsp + 0x30]
push qword [rsp + 0x48]
pop rcx
pop rdx
add rsp, 0xffffffffffffffe0
call sub.KERNEL32.dll_SizeofResource
add rsp, 0x20
mov qword [0x14000e78c], rax
mov rax, qword [rsp + 0x30]
jmp 0x140002bc7
push rax
mov rcx, qword [rsp + 0x30]
sub rsp, 0x20
call fcn.14000a2f0
add rsp, 0x20
pop rax
add rsp, 0x38
ret

Function at 0x140003647
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
push rbp
push r15
mov rdx, 0x14
sub rsp, 8
mov qword [rsp], 0
dec rdx
jne 0x140003660
sub rsp, 0x28
mov rdx, qword [rsp + 0xe0]
lea rcx, [rsp + 0x28]
sub rsp, 0x10
call fcn.14000a320
add rsp, 0x10
mov rdx, qword [rsp + 0xe8]
lea rcx, [rsp + 0x30]
sub rsp, 0x10
call fcn.14000a320
add rsp, 0x10
mov rdx, qword [rsp + 0xf0]
lea rcx, [rsp + 0x38]
sub rsp, 0x10
call fcn.14000a320
add rsp, 0x10
lea rax, [rsp + 0x40]
lea rbp, [rsp + 0x40]
mov dword [rbp], 0x70
mov dword [rbp + 4], 0x140
mov dword [rbp + 0x30], 0
movabs rax, str.open
mov rax, rax
push rax
pop rax
mov qword [rbp + 0x10], rax
mov rax, qword [rsp + 0x28]
mov rax, rax
push rax
pop rax
mov qword [rbp + 0x18], rax
mov rax, qword [rsp + 0x38]
mov rax, rax
push rax
pop rax
mov qword [rbp + 0x20], rax
mov rax, qword [rsp + 0x30]
mov rax, rax
push rax
pop rax
mov qword [rbp + 0x28], rax
lea rax, [rsp + 0x40]
mov rax, rax
push rax
pop rcx
add rsp, 0xffffffffffffffe0
call sub.SHELL32.dll_ShellExecuteExA
add rsp, 0x20
mov qword [rsp + 0xb0], rax
push 0x19
pop rcx
add rsp, 0xffffffffffffffe0
call sub.KERNEL32.dll_Sleep
add rsp, 0x20
lea rax, [rsp + 0xb8]
mov rax, rax
push rax
lea rbp, [rsp + 0x48]
push qword [rbp + 0x68]
pop rcx
pop rdx
add rsp, 0xffffffffffffffe0
call sub.KERNEL32.dll_GetExitCodeProcess
add rsp, 0x20
and rax, rax
je 0x14000378c
mov r15, qword [rsp + 0xb8]
cmp r15, 0x103
je 0x14000378c
jmp 0x14000378e
jmp 0x14000373e
mov rax, 1
jmp 0x14000379a
push rax
mov rcx, qword [rsp + 0x30]
sub rsp, 0x20
call fcn.14000a2f0
add rsp, 0x20
mov rcx, qword [rsp + 0x38]
sub rsp, 0x20
call fcn.14000a2f0
add rsp, 0x20
mov rcx, qword [rsp + 0x40]
sub rsp, 0x20
call fcn.14000a2f0
add rsp, 0x20
pop rax
add rsp, 0xc8
pop r15
pop rbp
ret
Function at 0x140004b5c
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
test ecx, ecx
je 0x140004b81
movsxd rdx, ecx
lea rcx, [0x140004ad8]
call qword [sym.imp.USER32.dll_EnumWindows]
jmp 0x140004bc2
mov rbx, qword [0x14000e838]
test rbx, rbx
je 0x140004bc2
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x140004bba
mov rcx, qword [rbx + 0x18]
mov edx, 1
call qword [sym.imp.USER32.dll_EnableWindow]
lea rdx, [rbx + 0x10]
lea rcx, [0x14000e838]
call fcn.140009100
mov rbx, rdi
test rdi, rdi
jne 0x140004b8d
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140004c44
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [0x14000ec70]
call fcn.140008ac4
xor ebx, ebx
or esi, 0xffffffff
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dl, byte [rax]
test dl, dl
je 0x140004d0a
mov rcx, qword [rsp + 0x30]
mov r10b, 0x20
lea r9d, [rbx + 1]
cmp dl, r10b
jne 0x140004c98
add rax, r9
cmp byte [rax], r10b
je 0x140004c90
mov dl, byte [rax]
mov r8d, r9d
cmp dl, 0x22
jne 0x140004cce
add rax, r9
mov rbx, rax
mov cl, byte [rax]
test cl, cl
je 0x140004cc9
cmp cl, 0x22
je 0x140004cbc
add rax, r9
mov cl, byte [rax]
test cl, cl
jne 0x140004cae
cmp byte [rax], 0
je 0x140004cc9
mov rcx, rax
add rax, r9
jmp 0x140004cf0
mov rcx, rax
jmp 0x140004cf0
test dl, dl
je 0x140004ced
mov rbx, rax
cmp dl, r10b
je 0x140004ce3
add rax, r9
mov dl, byte [rax]
test dl, dl
jne 0x140004cd5
cmp byte [rax], 0
mov rcx, rax
je 0x140004cf0
jmp 0x140004cc4
xor r8d, r8d
cmp dword [rbp], esi
jne 0x140004cfa
test rdi, rdi
jne 0x140004d14
test r8d, r8d
je 0x140004d02
add esi, r9d
mov dl, byte [rax]
xor ebx, ebx
test dl, dl
jne 0x140004c8b
test rdi, rdi
jne 0x140004d26
movsxd rax, esi
jmp 0x140004d29
test rbx, rbx
je 0x140004d26
sub ecx, ebx
mov rax, rbx
mov dword [rdi], ecx
add dword [rbp], r9d
jmp 0x140004d29
and dword [rdi], 0
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x140004e04
Capabilities:
Accept command line arguments

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x14000ec70]
call fcn.140008ac4
xor ecx, ecx
add rsp, 0x28
jmp fcn.140004c44

Function at 0x140004ef8
Capabilities:
Set environment variable

Disassembly:
sub rsp, 0x28
mov rax, rdx
test rcx, rcx
je 0x140004f18
test rax, rax
lea rdx, [0x14000c81c]
cmovne rdx, rax
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
add rsp, 0x28
ret
Function at 0x1400055f8
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x160
lea rcx, [rsp + 0x20]
mov ebx, 0x64
mov dword [rsp + 0x20], 0x94
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x1400056da
mov eax, dword [rsp + 0x30]
sub eax, 1
je 0x1400056b7
cmp eax, 1
jne 0x1400056da
mov eax, dword [rsp + 0x24]
sub eax, 3
je 0x1400056b0
sub eax, 1
je 0x1400056a9
sub eax, 1
je 0x140005684
cmp eax, 1
jne 0x1400056da
lea rcx, [rsp + 0xc0]
lea ebx, [rax + 0x45]
mov dword [rsp + 0xc0], 0x9c
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x1400056da
cmp byte [rsp + 0x15a], 1
je 0x1400056da
mov ebx, 0x4b
jmp 0x1400056da
mov eax, dword [rsp + 0x28]
test eax, eax
je 0x1400056a2
sub eax, 1
je 0x14000569b
cmp eax, 1
jne 0x1400056da
lea ebx, [rax + 0x40]
jmp 0x1400056da
mov ebx, 0x3c
jmp 0x1400056da
mov ebx, 0x32
jmp 0x1400056da
mov ebx, 0x14
jmp 0x1400056da
mov ebx, 5
jmp 0x1400056da
mov eax, dword [rsp + 0x28]
test eax, eax
je 0x1400056d5
cmp eax, 0xa
je 0x1400056ce
cmp eax, 0x5a
jne 0x1400056da
lea ebx, [rax - 0x32]
jmp 0x1400056da
mov ebx, 0x1e
jmp 0x1400056da
mov ebx, 0xa
movsxd rax, ebx
add rsp, 0x160
pop rbx
ret

Function at 0x1400062f4
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov ebx, edx
mov rdx, rcx
mov rcx, qword [0x14000ed90]
call fcn.140008ee4
mov rsi, rax
test rax, rax
je 0x14000636d
mov rcx, qword [rax + 8]
mov rax, qword [rcx + 0x28]
test rax, rax
je 0x140006332
mov edx, ebx
mov rcx, rsi
call rax
jmp 0x14000636d
mov rcx, qword [rsi]
call qword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov edx, ebx
mov ecx, eax
mov edi, eax
call fcn.14000a3e0
lea r8d, [rdi + 1]
mov byte [rax], 0
mov rcx, qword [rsi]
mov rdx, rax
mov rbx, rax
call qword [sym.imp.USER32.dll_GetWindowTextA]
mov rcx, rbx
call sub.msvcrt.dll_strlen
sub edi, eax
mov ecx, edi
call fcn.14000a520
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14000811c
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, 9
call qword [sym.imp.USER32.dll_GetKeyState]
test al, al
jns 0x1400081bb
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
test al, al
js 0x1400081bb
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetKeyState]
test al, al
js 0x1400081bb
mov ecx, 0x12
call qword [sym.imp.USER32.dll_GetKeyState]
test al, al
js 0x1400081bb
call qword [sym.imp.USER32.dll_GetFocus]
lea rdx, [rsp + 0x38]
mov r8d, 5
mov rcx, rax
call qword [sym.imp.USER32.dll_GetClassNameA]
lea rdx, str.Rich
lea rcx, [rsp + 0x38]
mov r8d, 4
call sub.msvcrt.dll_strncmp
test eax, eax
jne 0x1400081bb
call qword [sym.imp.USER32.dll_GetFocus]
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
mov edx, 0x44e
call qword [sym.imp.USER32.dll_SendMessageA]
bt rax, 0xb
jae 0x1400081e6
lea rdx, str.PB_WindowID
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetPropA]
test rax, rax
je 0x1400081e6
mov rcx, qword [0x14000edb0]
lea rdx, [rax - 1]
call fcn.140008ee4
mov rax, qword [rax + 0x10]
jmp 0x1400081e8
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x1400081f0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov edx, ecx
mov esi, 0x104
mov ecx, esi
call fcn.14000a3e0
mov ecx, esi
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
movsxd rbx, eax
test eax, eax
je 0x14000822f
cmp byte [rbx + rdi - 1], 0x5c
je 0x14000822f
mov byte [rbx + rdi], 0x5c
inc ebx
sub esi, ebx
mov ecx, esi
call fcn.14000a520
mov rsi, qword [rsp + 0x38]
movsxd r11, ebx
mov rbx, qword [rsp + 0x30]
mov byte [r11 + rdi], 0
add rsp, 0x20
pop rdi
ret

Function at 0x140008304
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x140008317
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
cdqe
jmp 0x140008319
xor eax, eax
add rsp, 0x28
ret

Function at 0x140008320
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edx, ecx
mov ebx, 0x104
mov ecx, ebx
call fcn.14000a3e0
mov ecx, ebx
mov rdx, rax
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
lea rcx, str.Kernel32.DLL
mov edi, eax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbp, rax
test rax, rax
je 0x140008392
lea rdx, str.GetLongPathNameA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140008389
mov r8d, ebx
mov rdx, rsi
mov rcx, rsi
call rax
mov edi, eax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
sub ebx, edi
mov ecx, ebx
call fcn.14000a520
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
movsxd r11, edi
mov byte [r11 + rsi], 0
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret