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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov qword [rbp + 0x20], r8
cmp dword [rbp + 0x18], 3
je 0x1c2c21759
cmp dword [rbp + 0x18], 3
ja 0x1c2c21760
cmp dword [rbp + 0x18], 2
je 0x1c2c2175c
cmp dword [rbp + 0x18], 2
ja 0x1c2c21760
cmp dword [rbp + 0x18], 0
je 0x1c2c2175f
cmp dword [rbp + 0x18], 1
jne 0x1c2c21760
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
lea r8, [sym.source4.c.dll_ThreadFunction]
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
jmp 0x1c2c21760
nop
jmp 0x1c2c21760
nop
jmp 0x1c2c21760
nop
mov eax, 1
add rsp, 0x40
pop rbp
ret

Function at 0x1c2c24bd0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x1c2c24c40
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1c2c2d0c4]
mov rbx, rcx
test esi, esi
jle 0x1c2c24d70
mov rax, qword [0x1c2c2d0c8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1c2c24c8b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1c2c24d15
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1c2c24c70
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x1c2c24d92
mov rax, qword [0x1c2c2d0c8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1c2c2d0c8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1c2c24d77
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1c2c24d0e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1c2c24d20
add dword [0x1c2c2d0c4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1c2c2d0c8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1c2c24d0e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x1c2c24c98
mov rax, qword [0x1c2c2d0c8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1c2c25110
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1c2c2d100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1c2c2d0e0]
test rbx, rbx
je 0x1c2c2516c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x1c2c25163
test rsi, rsi
je 0x1c2c25163
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1c2c25148
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1c2c25380
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1c2c25398
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1c2c253a0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x1c2c253b0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x1c2c253fd
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x1c2c253f4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1c2c253ff
add rax, 0x28
cmp rax, r9
jne 0x1c2c253e0
xor eax, eax
ret

Function at 0x1c2c25400
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x1c2c25490
mov rdx, qword [0x1c2c27390]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x1c2c2547e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1c2c2547e
cmp word [rax + 0x18], 0x20b
jne 0x1c2c2547e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x1c2c25490
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x1c2c25469
add rbx, 0x28
cmp rbx, rdi
je 0x1c2c25490
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x1c2c25460
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x1c2c254a0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1c2c27390]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1c2c254c0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1c2c254c8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1c2c254c0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1c2c2551d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1c2c25514
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1c2c254c0
add rax, 0x28
cmp rax, r9
jne 0x1c2c25500
xor eax, eax
ret

Function at 0x1c2c25520
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1c2c27390]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1c2c2553f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1c2c25548
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1c2c2553f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x1c2c25560
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x1c2c27390]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1c2c25580
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1c2c25588
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1c2c25580
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x1c2c255d0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1c2c255c7
test rcx, rcx
je 0x1c2c25580
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x1c2c255b8
xor eax, eax
ret
Function at 0x1c2c255e0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1c2c27390]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1c2c255ff
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1c2c25608
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x1c2c25620
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1c2c27390]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1c2c25640
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1c2c25648
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1c2c25640
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x1c2c25640
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x1c2c25694
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1c2c256a0
add rdx, 0x28
cmp r9, rdx
jne 0x1c2c25680
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x1c2c256b0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x1c2c27390]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x1c2c256d2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x1c2c256e0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1c2c256d2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x1c2c256d2
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x1c2c256d2
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x1c2c25735
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1c2c25748
add rdx, 0x28
cmp rdx, r10
jne 0x1c2c25720
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1c2c25757
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1c2c25767
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1c2c2573e
test ecx, ecx
jg 0x1c2c25750
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140be3058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140be31df
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 0x140be3089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140be306f
add dl, dl
jne 0x140be3096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140be30f6
xor eax, eax
add dl, dl
jne 0x140be30a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140be31ad
add dl, dl
jne 0x140be30b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140be30c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140be30d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140be30dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140be30ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140be307e
mov eax, 1
add dl, dl
jne 0x140be3106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140be3113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140be30fb
sub eax, ebx
mov ebx, 1
jne 0x140be314c
mov ecx, 1
add dl, dl
jne 0x140be312e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140be313b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140be3123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140be307e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140be3168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140be3175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140be315d
cmp eax, 0x7d00
jae 0x140be319b
cmp eax, 0x500
jb 0x140be3196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140be307e
cmp eax, 0x7f
ja 0x140be319e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140be307e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140be31d2
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 0x140be307e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140002930
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x40
mov rbp, rdx
mov rsi, rcx
xor r13d, r13d
lea r8, [0x140045190]
mov edx, 0x9d
mov rcx, rbp
movaps xmmword [rsp + 0x30], xmm6
mov rbx, r13
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
mov r12, rax
je 0x140002b02
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
mov edi, eax
je 0x140002b02
mov rdx, r12
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
mov rbp, rax
je 0x140002b02
lea ecx, [r13 + 2]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
test rax, rax
mov rbx, rax
je 0x140002b02
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
movsd xmm6, qword [0x1400475a8]
je 0x140002aa5
mov r8, rdi
mov rdx, rbp
mov rcx, rax
call fcn.1400268f0
lea r8, [rsp + 0x20]
xor edx, edx
mov rcx, rbx
mov qword [rsp + 0x20], r13
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
js 0x140002b02
mov rdx, qword [rsp + 0x20]
mov rcx, rsi
call fcn.140003730
test eax, eax
js 0x140002b02
movsd xmm0, qword [0x140055b70]
ucomisd xmm0, xmm6
jp 0x140002a49
jne 0x140002a49
movsd xmm0, qword [0x140055b78]
ucomisd xmm0, xmm6
jp 0x140002a49
je 0x140002a91
mov rbp, qword [rsp + 0x20]
mov ecx, 0x18
call sub.gdiplus.dll_GdipAlloc
test rax, rax
mov rdi, rax
je 0x140002a8a
lea rax, [0x1400458d0]
lea rdx, [rsp + 0x28]
mov rcx, rbp
mov qword [rdi], rax
mov qword [rsp + 0x28], r13
call sub.gdiplus.dll_GdipCreateBitmapFromStream
mov rcx, qword [rsp + 0x28]
mov dword [rdi + 0x10], eax
mov qword [rdi + 8], rcx
jmp 0x140002a8d
mov rdi, r13
mov qword [rsi + 0x48], rdi
mov rcx, qword [rsp + 0x20]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, rsi
call fcn.140002b50
movsd xmm0, qword [0x140055b70]
ucomisd xmm0, xmm6
jp 0x140002ad6
jne 0x140002ad6
movsd xmm0, qword [0x140055b78]
ucomisd xmm0, xmm6
jp 0x140002ad6
je 0x140002afb
mov edx, 7
mov rcx, rsi
call fcn.140002c50
mov rcx, qword [rsi + 0x48]
test rcx, rcx
je 0x140002afb
mov r8, qword [rcx]
mov edx, 1
call qword [r8]
mov qword [rsi + 0x48], r13
mov eax, 1
jmp 0x140002b30
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x140002b17
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rsp + 0x20], r13
test rbx, rbx
je 0x140002b2e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x40
pop r13
pop r12
pop rdi
ret
Function at 0x140004680
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x20
mov eax, r8d
mov rbp, rdx
mov ebx, r8d
shr eax, 4
mov rsi, rcx
mov edx, 6
add ax, 1
mov rcx, rbp
movzx r8d, ax
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
test rax, rax
mov r12, rax
je 0x1400047e2
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1400047e2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
mov rdi, rax
je 0x1400047e2
mov rdx, r12
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rdi
and ebx, 0xf
jbe 0x140004726
nop
cmp rdi, r11
jae 0x1400047e2
add ebx, 0xffffffff
movzx eax, word [rdi]
lea rdi, [rdi + rax*2 + 2]
jne 0x140004710
cmp rdi, r11
jae 0x1400047e2
movzx eax, word [rdi]
test ax, ax
je 0x1400047e2
movzx ebx, ax
mov rax, qword [rsi]
mov ecx, 1
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, ebx
or ecx, eax
jge 0x14000475c
mov edx, ebx
mov rcx, rsi
call fcn.140001fc0
movzx ecx, word [rdi]
lea r8, [rdi + 2]
cmp ecx, 0xffffffff
jne 0x140004779
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r8
repne scasw ax, word [rdi]
not rcx
and ecx, ecx
movsxd r9, ecx
mov rcx, qword [rsi]
lea rdi, [rbx + rbx]
mov rdx, rdi
add r9, r9
call fcn.140024d40
test eax, eax
je 0x1400047b8
cmp eax, 0xc
je 0x1400047b2
cmp eax, 0x16
je 0x1400047ac
cmp eax, 0x22
je 0x1400047ac
cmp eax, 0x50
je 0x1400047b8
call fcn.14001c5a4
int3
call fcn.14001c5a4
int3
call fcn.14001c55c
int3
test ebx, ebx
js 0x1400047d7
mov rcx, qword [rsi]
cmp ebx, dword [rcx - 0xc]
jg 0x1400047d7
mov dword [rcx - 0x10], ebx
mov rcx, qword [rsi]
mov eax, 1
mov word [rdi + rcx], 0
jmp 0x1400047e4
mov ecx, 0x80070057
call fcn.140001fa0
int3
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret

Function at 0x140004800
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x140004833
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
mov rbx, rax
je 0x140004877
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rbx
and edi, 0xf
jbe 0x140004872
cmp rbx, r11
jae 0x140004877
add edi, 0xffffffff
movzx eax, word [rbx]
lea rbx, [rbx + rax*2 + 2]
jne 0x140004860
cmp rbx, r11
jb 0x14000487b
xor eax, eax
jmp 0x140004887
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140004980
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x20
mov eax, r8d
mov rbp, rdx
mov ebx, r8d
shr eax, 4
mov rsi, rcx
mov r8d, 6
add ax, 1
mov rcx, rbp
movzx edx, ax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
mov r12, rax
je 0x140004ae2
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140004ae2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
mov rdi, rax
je 0x140004ae2
mov rdx, r12
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rdi
and ebx, 0xf
jbe 0x140004a26
nop
cmp rdi, r11
jae 0x140004ae2
add ebx, 0xffffffff
movzx eax, word [rdi]
lea rdi, [rdi + rax*2 + 2]
jne 0x140004a10
cmp rdi, r11
jae 0x140004ae2
movzx eax, word [rdi]
test ax, ax
je 0x140004ae2
movzx ebx, ax
mov rax, qword [rsi]
mov ecx, 1
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, ebx
or ecx, eax
jge 0x140004a5c
mov edx, ebx
mov rcx, rsi
call fcn.140001fc0
movzx ecx, word [rdi]
lea r8, [rdi + 2]
cmp ecx, 0xffffffff
jne 0x140004a79
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r8
repne scasw ax, word [rdi]
not rcx
and ecx, ecx
movsxd r9, ecx
mov rcx, qword [rsi]
lea rdi, [rbx + rbx]
mov rdx, rdi
add r9, r9
call fcn.140024d40
test eax, eax
je 0x140004ab8
cmp eax, 0xc
je 0x140004ab2
cmp eax, 0x16
je 0x140004aac
cmp eax, 0x22
je 0x140004aac
cmp eax, 0x50
je 0x140004ab8
call fcn.14001c5a4
int3
call fcn.14001c5a4
int3
call fcn.14001c55c
int3
test ebx, ebx
js 0x140004ad7
mov rcx, qword [rsi]
cmp ebx, dword [rcx - 0xc]
jg 0x140004ad7
mov dword [rcx - 0x10], ebx
mov rcx, qword [rsi]
mov eax, 1
mov word [rdi + rcx], 0
jmp 0x140004ae4
mov ecx, 0x80070057
call fcn.140001fa0
int3
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret
Function at 0x140012150
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov edi, ecx
call fcn.14001a47c
mov rbx, rax
mov rax, qword [rax + 0x78]
test rax, rax
je 0x140012187
mov rcx, qword [rax + 0x40]
test rcx, rcx
je 0x140012187
xor r9d, r9d
xor r8d, r8d
mov edx, 0x401
call qword [sym.imp.USER32.dll_SendMessageW]
test edi, edi
mov rbx, qword [rbx + 0xa0]
je 0x1400121b7
test rbx, rbx
je 0x1400121b7
mov ecx, 1
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x1400121b7
mov rax, qword [rbx]
or rdx, 0xffffffffffffffff
mov rcx, rbx
call qword [rax + 0x2d0]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400156c4
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0xa0], 0
mov rbx, rdx
mov rsi, rcx
jne 0x14001577c
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov r8, qword [rbx]
mov edx, 1
mov ecx, dword [r8 - 0xc]
sub edx, dword [r8 - 8]
movsxd rdi, eax
sub ecx, edi
or edx, ecx
jge 0x140015714
mov edx, edi
mov rcx, rbx
call fcn.140001fc0
test edi, edi
mov rdx, qword [rbx]
js 0x140015771
cmp edi, dword [rdx - 0xc]
jg 0x140015771
mov dword [rdx - 0x10], edi
mov rax, qword [rbx]
lea r8d, [rdi + 1]
and word [rax + rdi*2], 0
mov rcx, qword [rsi + 0x40]
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rcx, qword [rbx]
test rcx, rcx
jne 0x140015745
xor eax, eax
jmp 0x14001574e
call fcn.140025e60
test eax, eax
js 0x140015766
mov rcx, qword [rbx]
cmp eax, dword [rcx - 0xc]
jg 0x140015766
mov dword [rcx - 0x10], eax
movsxd rcx, eax
mov rax, qword [rbx]
and word [rax + rcx*2], 0
jmp 0x14001578c
mov ecx, 0x80070057
call fcn.140001fa0
int3
mov ecx, 0x80070057
call fcn.140001fa0
int3
mov rcx, qword [rcx + 0xa0]
mov rax, qword [rcx]
call qword [rax + 0x118]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1400182c8
Capabilities:
Extract resource via kernel32 functions

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
sub rsp, 0x20
xor edi, edi
xor ebx, ebx
test rdx, rdx
mov rsi, rdx
mov rbp, rcx
je 0x140018330
call fcn.14001a42c
mov r8d, pe_nt_image_headers64
mov rdx, rsi
mov r12, qword [rax + 0x18]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x140018330
mov rdx, rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
mov rbx, rax
je 0x140018352
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
mov rdx, rdi
mov rcx, rbp
call fcn.140017d24
test rdi, rdi
mov esi, eax
je 0x140018350
test rbx, rbx
je 0x140018350
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret
Function at 0x14001928c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
test rdx, 0xffffffffffff0000
mov rbp, r8
mov rdi, rdx
mov rsi, rcx
mov qword [rcx + 0xb0], rdx
jne 0x1400192cb
cmp dword [rcx + 0xa8], 0
jne 0x1400192cb
movzx eax, dx
mov dword [rcx + 0xa8], eax
call fcn.14001a42c
mov r8d, 5
mov rdx, rdi
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rcx, rbx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r9, rbx
mov r8, rbp
mov rdx, rax
mov rcx, rsi
mov rdi, rax
call fcn.140019230
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret