joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140011de0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call fcn.140010be0
mov ecx, dword [0x1400241c8]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
test rax, rax
je 0x140011e20
test ebx, ebx
jle 0x140011e10
lock add dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
lock sub dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
call fcn.140010c90
test rax, rax
jne 0x140011dfd
add rsp, 0x20
pop rbx
ret

Function at 0x140011f10
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.140010be0
mov ecx, dword [0x1400241c8]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140011f88
test byte [rbx + 0x40], 0xc
jne 0x140011f3f
mov eax, dword [0x140030d28]
test eax, eax
jne 0x140011f50
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.14000ff00
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x140011f73
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x140011f73
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x140011f9c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.1400101d0
call fcn.140010c90
mov rbx, rax
test rax, rax
jne 0x140011f2f
add rsp, 0x28
pop rbx
pop rsi
ret
and eax, 0xfffffff3
mov rcx, qword [rbx + 0x30]
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x140011fba
call qword [sym.imp.KERNEL32.DLL_ResetEvent]
mov rcx, rsi
call fcn.1400101d0
call fcn.140011e30
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x140012040
call fcn.140013870
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x140012078
call fcn.140010be0
mov ecx, dword [0x1400241c8]
mov edi, esi
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1400120d0
test esi, esi
je 0x140012056
call fcn.140011f10
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x1400120b0
mov edx, edi
call fcn.140013940
call fcn.140011f10
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140010be0
mov ecx, dword [0x1400241c8]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
test rax, rax
je 0x1400120c0
call fcn.140011f10
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_Sleep]
call fcn.140011f10
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140010be0
mov ecx, dword [0x1400241c8]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x140012015
call fcn.140010c90
mov rbx, rax
jmp 0x140012015
mov ecx, edi
call qword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x14001202e
call fcn.140010c90
jmp 0x140012056
call fcn.140010c90
mov rbx, rax
jmp 0x140012011
Function at 0x140011fd0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.140010be0
mov ecx, dword [0x1400241c8]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140011f88
test byte [rbx + 0x40], 0xc
jne 0x140011f3f
mov eax, dword [0x140030d28]
test eax, eax
jne 0x140011f50
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.14000ff00
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x140011f73
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x140011f73
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x140011f9c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.1400101d0
call fcn.140010c90
mov rbx, rax
test rax, rax
jne 0x140011f2f
add rsp, 0x28
pop rbx
pop rsi
ret
and eax, 0xfffffff3
mov rcx, qword [rbx + 0x30]
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x140011fba
call qword [sym.imp.KERNEL32.DLL_ResetEvent]
mov rcx, rsi
call fcn.1400101d0
call fcn.140011e30
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x140012040
call fcn.140013870
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x140012078
call fcn.140010be0
mov ecx, dword [0x1400241c8]
mov edi, esi
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1400120d0
test esi, esi
je 0x140012056
call fcn.140011f10
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x1400120b0
mov edx, edi
call fcn.140013940
call fcn.140011f10
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140010be0
mov ecx, dword [0x1400241c8]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
test rax, rax
je 0x1400120c0
call fcn.140011f10
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_Sleep]
call fcn.140011f10
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140010be0
mov ecx, dword [0x1400241c8]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x140012015
call fcn.140010c90
mov rbx, rax
jmp 0x140012015
mov ecx, edi
call qword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x14001202e
call fcn.140010c90
jmp 0x140012056
call fcn.140010c90
mov rbx, rax
jmp 0x140012011

Function at 0x1400120e0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
call fcn.140010be0
mov ecx, dword [0x1400241c8]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140012150
test esi, esi
je 0x140012130
call fcn.140011f10
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140012160
mov edx, esi
call fcn.140013940
call fcn.140011f10
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.140011f10
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_Sleep]
call fcn.140011f10
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.140010c90
mov rbx, rax
jmp 0x140012101
mov ecx, esi
call qword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x14001211a
Function at 0x140013c40
Capabilities:
Terminate process

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
lea rdi, [0x1400241d8]
mov rbx, rcx
mov rcx, rdi
mov esi, edx
call fcn.140014890
mov rax, qword [rbx]
cmp dword [rax], 0xbab1f0ed
jne 0x140013c89
mov rax, qword [rbx]
mov eax, dword [rax + 4]
test eax, eax
jle 0x140013c89
mov rax, qword [rbx]
mov rcx, rdi
sub dword [rax + 4], 1
call fcn.1400148d0
mov eax, esi
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov dword [rsp + 0x20], 0x28
lea r9, str..._mingw_w64_mingw_w64_libraries_winpthreads_src_rwlock.c
lea r8, str.___rwlock_t__rwl___valid__LIFE_RWLOCK______rwlock_t__rwl___busy___0_
mov rcx, rax
lea rdx, str.Assertion_failed:___s___file__s__line__d_n
call fcn.14000f970
mov ecx, 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop
nop word cs:[rax + rax]
nop
push rbx
sub rsp, 0x20
mov eax, dword [rcx + 0x10]
neg eax
mov dword [rcx + 0xc], eax
mov rbx, rcx
lea rcx, [rcx + 0x20]
mov dword [rcx - 0x10], 0
call fcn.1400101d0
lea rcx, [rbx + 0x18]
add rsp, 0x20
pop rbx
jmp fcn.1400101d0

Function at 0x1400140e0
Capabilities:
Terminate process

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
call fcn.140013f10
test eax, eax
je 0x140014108
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rsi, qword [rbx]
lea rdi, [rsi + 0x18]
mov rcx, rdi
call fcn.14000ff00
test eax, eax
jne 0x140014131
lock add dword [rsi + 0xc], 1
cmp dword [rsi + 0xc], 0x7fffffff
je 0x140014148
mov rcx, rdi
call fcn.1400101d0
mov edx, eax
mov rcx, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.140013c40
lea r12, [rsi + 0x20]
mov rcx, r12
call fcn.14000ff00
mov ebp, eax
test eax, eax
je 0x140014170
mov rcx, rdi
call fcn.1400101d0
mov edx, ebp
jmp 0x140014133
mov eax, dword [rsi + 0x10]
sub dword [rsi + 0xc], eax
mov rcx, r12
mov dword [rsi + 0x10], 0
call fcn.1400101d0
mov rcx, rdi
mov esi, eax
call fcn.1400101d0
test esi, esi
mov edx, esi
cmove edx, eax
jmp 0x140014133

Function at 0x140014410
Capabilities:
Terminate process

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rbx, rcx
call fcn.140013bd0
test eax, eax
jne 0x140014490
mov rsi, qword [rbx]
mov edx, dword [rsi + 8]
test edx, edx
je 0x140014460
lock sub dword [rsi + 8], 1
lea rcx, [rsi + 0x20]
call fcn.1400101d0
lea rcx, [rsi + 0x18]
mov edi, eax
call fcn.1400101d0
test edi, edi
cmove edi, eax
mov edx, edi
mov rcx, rbx
add rsp, 0x30
pop rbx
pop rsi
pop rdi
jmp fcn.140013c40
lea rdi, [rsi + 0x20]
mov rcx, rdi
call fcn.14000ff00
mov edx, eax
test eax, eax
jne 0x14001444d
lock add dword [rsi + 0x10], 1
mov eax, dword [rsi + 0x10]
test eax, eax
je 0x1400144a0
mov rcx, rdi
call fcn.1400101d0
mov edx, eax
jmp 0x14001444d
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
lea rcx, [rsi + 0x28]
call fcn.140015200
mov rcx, rdi
mov dword [rsp + 0x2c], eax
call fcn.1400101d0
mov edx, dword [rsp + 0x2c]
test edx, edx
cmove edx, eax
jmp 0x14001444d
Function at 0x14001dfe0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 0x28
movups xmmword [rsp], xmm6
movups xmmword [rsp + 0x10], xmm7
movdqu xmm3, xmmword [0x1400250b0]
pxor xmm7, xmm7
movdqu xmm4, xmmword [0x1400250c0]
movdqu xmm5, xmmword [0x1400250d0]
movdqu xmm6, xmmword [0x1400250e0]
mov rdx, rcx
lea rcx, [rcx + 0x380]
mov rax, rdx
nop
movdqu xmm0, xmmword [rax]
movdqu xmm1, xmmword [rax + 4]
add rax, 0x10
movdqu xmm2, xmmword [rax + 0x624]
pand xmm1, xmm4
pand xmm0, xmm3
por xmm0, xmm1
movdqa xmm1, xmm0
pand xmm0, xmm5
psrld xmm1, 1
pxor xmm1, xmm2
movdqa xmm2, xmm7
psubd xmm2, xmm0
pand xmm2, xmm6
movdqa xmm0, xmm2
pxor xmm0, xmm1
movups xmmword [rax - 0x10], xmm0
cmp rcx, rax
jne 0x14001e020
movq xmm0, qword [rdx + 0x380]
mov eax, dword [rdx + 0x388]
movq xmm1, qword [0x1400250b0]
mov ecx, dword [rdx + 0x38c]
movq xmm2, qword [0x1400250c0]
and eax, 0x80000000
pand xmm0, xmm1
and ecx, 0x7fffffff
movq xmm1, qword [rdx + 0x384]
or eax, ecx
pand xmm1, xmm2
mov ecx, eax
and eax, 1
por xmm0, xmm1
neg eax
shr ecx, 1
xor ecx, dword [rdx + 0x9bc]
movdqa xmm2, xmm0
and eax, 0x9908b0df
movq xmm1, qword [rdx + 0x9b4]
psrld xmm2, 1
xor eax, ecx
lea rcx, [rdx + 0x9bc]
pxor xmm1, xmm2
mov dword [rdx + 0x388], eax
movq xmm2, qword [0x1400250d0]
lea rax, [rdx + 0x38c]
pand xmm0, xmm2
pxor xmm2, xmm2
psubd xmm2, xmm0
movq xmm0, qword [0x1400250e0]
pand xmm0, xmm2
pxor xmm2, xmm2
pxor xmm1, xmm0
movq qword [rdx + 0x380], xmm1
movdqu xmm0, xmmword [rax]
movdqu xmm1, xmmword [rax + 4]
add rax, 0x10
movdqu xmm7, xmmword [rax - 0x39c]
pand xmm1, xmm4
pand xmm0, xmm3
por xmm0, xmm1
movdqa xmm1, xmm0
pand xmm0, xmm5
psrld xmm1, 1
pxor xmm1, xmm7
movdqa xmm7, xmm2
psubd xmm7, xmm0
pand xmm7, xmm6
movdqa xmm0, xmm7
pxor xmm0, xmm1
movups xmmword [rax - 0x10], xmm0
cmp rcx, rax
jne 0x14001e123
mov eax, dword [rdx + 0x9bc]
mov ecx, dword [rdx]
mov qword [rdx + 0x9c0], 0
movups xmm6, xmmword [rsp]
movups xmm7, xmmword [rsp + 0x10]
and ecx, 0x7fffffff
and eax, 0x80000000
or eax, ecx
mov ecx, eax
and eax, 1
neg eax
shr ecx, 1
xor ecx, dword [rdx + 0x630]
and eax, 0x9908b0df
xor eax, ecx
mov dword [rdx + 0x9bc], eax
add rsp, 0x28
ret
Function at 0x1400028f0
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 0x140002923
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]
mov rbx, rax
test rax, rax
je 0x140002966
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rbx
and edi, 0xf
jbe 0x140002961
cmp rbx, r11
jae 0x140002966
dec edi
movzx eax, word [rbx]
lea rbx, [rbx + rax*2 + 2]
jne 0x140002950
cmp rbx, r11
jb 0x14000296a
xor eax, eax
jmp 0x140002976
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 0x1400138f0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push rbp
sub rsp, 0x30
lea rbp, [rsp + 0x20]
mov qword [rbp + 0x20], rbx
mov qword [rbp + 0x28], rsi
mov qword [rbp + 0x30], rdi
mov qword [rbp + 0x38], r12
mov rax, qword [0x140248210]
xor rax, rbp
mov qword [rbp + 8], rax
mov rdi, rdx
mov rbx, rcx
test rdx, rdx
je 0x140013a2f
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x140013a2f
call fcn.140032348
mov rcx, qword [rax + 8]
call fcn.140030040
mov rcx, qword [rbx + 0x40]
xor esi, esi
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x140013a22
call qword [sym.imp.USER32.dll_EmptyClipboard]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, 0x2002
inc eax
movsxd rdx, eax
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov r12, rax
test rax, rax
je 0x140013a1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x1400139a8
mov eax, esi
jmp 0x1400139e6
lea r8d, [rax + rax]
cdqe
add rax, rax
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x1400139c4
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1401804d0
sub rsp, rcx
mov r9d, 3
lea rcx, [rsp + 0x20]
mov rdx, rdi
call fcn.140009fc0
sub rbx, rax
nop dword [rax]
movzx ecx, byte [rax]
inc rax
mov byte [rbx + rax - 1], cl
test cl, cl
jne 0x1400139f0
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rdx, r12
mov ecx, 1
call qword [sym.imp.USER32.dll_SetClipboardData]
test rax, rax
setne sil
call qword [sym.imp.USER32.dll_CloseClipboard]
lea rcx, [rbp]
call fcn.140013ae0
mov eax, esi
jmp 0x140013a31
xor eax, eax
mov rcx, qword [rbp + 8]
xor rcx, rbp
call fcn.14017cd40
mov rbx, qword [rbp + 0x20]
mov rsi, qword [rbp + 0x28]
mov rdi, qword [rbp + 0x30]
mov r12, qword [rbp + 0x38]
lea rsp, [rbp + 0x10]
pop rbp
ret

Function at 0x140013a60
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x20
mov rcx, qword [rcx + 0x40]
mov rsi, rdx
xor ebx, ebx
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x140013ac5
lea ecx, [rbx + 1]
mov qword [rsp + 0x30], rdi
call qword [sym.imp.USER32.dll_GetClipboardData]
mov rdi, rax
test rax, rax
je 0x140013aba
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x140013aba
mov rdx, rax
mov rcx, rsi
call fcn.1400014d0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ebx, 1
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rdi, qword [rsp + 0x30]
mov eax, ebx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret
Function at 0x140019190
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
push r13
push r14
push r15
sub rsp, 0x48
mov r8, qword [rcx]
mov r11d, dword [rcx + 0x24]
mov rbp, rcx
movzx eax, word [r8 + 0x14]
mov r15, qword [r8 + 0x30]
dec r11d
mov r10d, dword [rax + r8 + 0x20]
lea r9, [rax + r8 + 0x18]
movabs rax, 0xffffffff00000000
and r15, rax
mov eax, dword [r9 + 0x10]
not r11d
or r10, r15
and r11, r10
mov qword [rsp + 0x20], r10
mov qword [rsp + 0x28], r11
test eax, eax
jne 0x1400191fb
mov ecx, dword [r9 + 0x24]
test cl, 0x40
je 0x1400191f3
mov eax, dword [r8 + 0x20]
jmp 0x1400191fb
test cl, cl
jns 0x1400191fb
mov eax, dword [r8 + 0x24]
mov ecx, dword [r9 + 0x24]
mov qword [rsp + 0x70], rbx
mov edx, eax
mov eax, 1
xor r14d, r14d
mov qword [rsp + 0x78], rsi
mov qword [rsp + 0x80], rdi
mov dword [rsp + 0x38], ecx
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x40], r12
mov dword [rsp + 0x3c], r14d
mov r13d, eax
cmp ax, word [r8 + 6]
jae 0x1400192ec
lea rbx, [r9 + 0x4c]
mov edi, dword [rbp + 0x24]
mov r12d, dword [rbx - 0x1c]
mov esi, dword [rbx - 0x14]
dec edi
or r12, r15
not edi
and rdi, r12
test esi, esi
jne 0x14001926c
mov eax, dword [rbx]
test al, 0x40
je 0x140019264
mov esi, dword [r8 + 0x20]
jmp 0x14001926c
test al, al
jns 0x14001926c
mov esi, dword [r8 + 0x24]
cmp r11, rdi
je 0x1400192a5
lea rax, [rdx + r10]
cmp rax, rdi
ja 0x1400192a5
lea rdx, [rsp + 0x20]
mov rcx, rbp
call fcn.140019090
test eax, eax
je 0x140019329
mov ecx, dword [rbx]
mov r10, r12
mov qword [rsp + 0x20], r12
mov r11, rdi
mov qword [rsp + 0x28], rdi
mov edx, esi
jmp 0x1400192c5
mov eax, dword [rbx]
bt eax, 0x19
jae 0x1400192b7
bt ecx, 0x19
jae 0x1400192b7
or ecx, eax
jmp 0x1400192bd
or ecx, eax
btr ecx, 0x19
mov edx, esi
sub rdx, r10
add rdx, r12
mov r8, qword [rbp]
inc r13d
add rbx, 0x28
movzx eax, word [r8 + 6]
mov dword [rsp + 0x38], ecx
mov qword [rsp + 0x30], rdx
cmp r13d, eax
jl 0x140019240
mov eax, 1
lea rdx, [rsp + 0x20]
mov rcx, rbp
mov dword [rsp + 0x3c], eax
call fcn.140019090
test eax, eax
setne r14b
mov eax, r14d
mov r12, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x80]
mov rsi, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
add rsp, 0x48
pop r15
pop r14
pop r13
pop rbp
ret
xor eax, eax
jmp 0x140019306
Function at 0x140023f80
Capabilities:
Create process on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rdx
test rcx, rcx
je 0x140023f92
mov rcx, qword [rcx + 0x40]
mov r8, qword [rdx]
lea rdx, str.open
xor r9d, r9d
mov dword [rsp + 0x28], 5
mov qword [rsp + 0x20], 0
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov rdx, qword [rbx]
sub rdx, 0x18
cmp eax, 0x20
jg 0x140023fe1
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140023fd9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
add rsp, 0x30
pop rbx
ret
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140023ff8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, 1
add rsp, 0x30
pop rbx
ret
Function at 0x140025c98
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, 0x20
mov r12, r8
mov rbx, rdx
mov r13, rcx
xor edi, edi
call fcn.140032348
lea r8d, [rdi + 5]
mov rbp, qword [rax + 0x18]
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rcx, rbp
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
test rax, rax
je 0x140025cf4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
mov r9, rbp
mov r8, r12
mov rdx, rdi
mov rcx, r13
call fcn.140025728
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret

Function at 0x140025d88
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
mov rbp, r8
mov rdi, rdx
mov rsi, rcx
mov qword [rcx + 0xe0], rdx
test rdx, 0xffffffffffff0000
jne 0x140025dc7
cmp dword [rcx + 0xd8], 0
jne 0x140025dc7
movzx eax, dx
mov dword [rcx + 0xd8], eax
call fcn.140032348
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.140025d2c
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

Function at 0x14002793c
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, rcx
mov rcx, qword [rcx + 0x40]
mov rbx, r8
call fcn.140059258
mov rsi, rax
test rax, rax
je 0x1400279b8
mov rcx, rax
call qword [sym.imp.USER32.dll_GetDlgCtrlID]
mov edi, eax
test rbx, rbx
je 0x1400279b3
cmp dword [rbx], 0x40
jb 0x1400279b3
mov rcx, qword [rbp + 0x40]
or dword [rbx + 4], 1
or qword [rbx + 0x30], 0xffffffffffffffff
mov qword [rbx + 8], rcx
xor r9d, r9d
xor r8d, r8d
mov edx, 0x87
mov rcx, rsi
mov qword [rbx + 0x10], rsi
call qword [sym.imp.USER32.dll_SendMessageW]
bt rax, 0xd
jb 0x1400279b3
or dword [rbx + 4], 0x80000002
mov rax, rdi
jmp 0x1400279bc
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14002f480
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
mov rsi, rdx
mov rbp, rcx
test rdx, rdx
je 0x14002f4e8
call fcn.140032348
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 0x14002f4e8
mov rdx, rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
test rax, rax
je 0x14002f50a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
mov rdx, rdi
mov rcx, rbp
call fcn.14002ee6c
mov esi, eax
test rdi, rdi
je 0x14002f508
test rbx, rbx
je 0x14002f508
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 0x14002fa78
Capabilities:
Get graphical window text

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rsi
movsxd rsi, r8d
mov rdi, rdx
mov rbx, rcx
cmp qword [rcx + 0xc8], 0
jne 0x14002fab6
mov r8d, esi
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x14002fb6a
call fcn.140025ea4
mov r11, rax
xor ecx, ecx
test rax, rax
setne cl
test ecx, ecx
jne 0x14002fad5
mov ecx, 0x80004005
call fcn.140001600
int3
mov rax, qword [rax]
mov rcx, r11
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x40], rax
mov rcx, qword [rbx + 0xc8]
mov rax, qword [rcx]
lea rdx, [rsp + 0x40]
call qword [rax + 0x118]
mov rdx, rsi
or rsi, 0xffffffffffffffff
mov r9, rsi
mov r8, qword [rsp + 0x40]
mov rcx, rdi
call fcn.14017f0a8
test eax, eax
je 0x14002fb3d
cmp eax, 0xc
je 0x14002fb37
cmp eax, 0x16
je 0x14002fb31
cmp eax, 0x22
je 0x14002fb31
cmp eax, 0x50
je 0x14002fb3d
call fcn.140026d70
int3
call fcn.140026d70
int3
call fcn.140026d28
int3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov ecx, esi
lock xadd dword [rdx + 0x10], ecx
add ecx, esi
test ecx, ecx
jg 0x14002fb68
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, ebx
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret