joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140005440
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 0x140005473
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 0x1400054b6
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rbx
and edi, 0xf
jbe 0x1400054b1
cmp rbx, r11
jae 0x1400054b6
dec edi
movzx eax, word [rbx]
lea rbx, [rbx + rax*2 + 2]
jne 0x1400054a0
cmp rbx, r11
jb 0x1400054ba
xor eax, eax
jmp 0x1400054c6
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 0x140014950
Capabilities:
Check os version
Get system information on windows

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x1b0
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1402526c8]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
mov rbx, rcx
xor esi, esi
mov dword [rsp + 0x3c], esi
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rax, str.64_bit
lea r8, str.32_bit
cmp word [rsp + 0x50], 9
cmove r8, rax
lea rcx, [rbx + 0x90]
lea rdx, [0x140208740]
call fcn.140006220
mov dword [rsp + 0x34], esi
mov dword [rsp + 0x38], esi
mov eax, 0x20
mov word [rsp + 0x30], ax
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x34]
mov rcx, rbx
call fcn.140014b80
test eax, eax
jns 0x1400149f4
mov eax, 0x80004005
jmp 0x140014b51
movzx ecx, word [rsp + 0x30]
call fcn.14017f718
movsx edx, al
mov word [rsp + 0x30], dx
mov r8d, dword [rsp + 0x34]
mov ecx, r8d
shl ecx, 8
mov r9d, dword [rsp + 0x38]
add ecx, r9d
shl ecx, 8
mov dword [rbx + 0x15c], ecx
lea eax, [rdx - 0x61]
cmp ax, 0x19
ja 0x140014a38
movzx eax, dx
lea ecx, [rax + rcx - 0x60]
mov dword [rbx + 0x15c], ecx
lea rcx, [rbx + 0xe8]
cmp dx, 0x20
jne 0x140014a53
lea rdx, str._d._d
call fcn.140006220
jmp 0x140014a66
movzx eax, dx
mov dword [rsp + 0x20], eax
lea rdx, str._d._d_c
call fcn.140006220
mov eax, dword [rbx + 0x164]
mov dword [rbx + 0x158], eax
mov dword [rsp + 0x80], 0x114
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp eax, 1
sete al
test al, al
je 0x140014b47
cmp dword [rsp + 0x90], 2
jne 0x140014b47
cmp dword [rsp + 0x84], 6
jne 0x140014b47
mov dword [rbx + 0x158], esi
cmp dword [rbx + 0x160], 9
ja 0x140014afd
lea rcx, [rbx + 0x118]
mov r8d, 3
lea rdx, [rsp + 0x40]
call fcn.140016d70
nop
mov esi, 1
mov dword [rsp + 0x3c], esi
lea rdx, [0x140208768]
mov rcx, qword [rax]
call fcn.14017ed24
test eax, eax
je 0x140014afd
xor dil, dil
jmp 0x140014b00
mov dil, 1
test sil, 1
je 0x140014b26
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140014b26
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test dil, dil
je 0x140014b47
cmp byte [rbx + 0x169], 0
je 0x140014b47
cmp byte [rbx + 0x168], 0
je 0x140014b47
mov dword [rbx + 0x158], 1
mov rcx, rbx
call fcn.1400158d0
xor eax, eax
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.14017e0f0
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140020bb0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, rdx
mov rbx, rcx
xor r8d, r8d
mov rcx, rbp
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
xor edi, edi
mov esi, eax
test eax, eax
jne 0x140020bea
mov rcx, rbx
call fcn.1400014d0
jmp 0x140020c57
jns 0x140020bf7
mov ecx, 0x80070057
call fcn.140001900
int3
mov rax, qword [rbx]
mov ecx, 1
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, esi
or ecx, eax
jge 0x140020c15
mov edx, esi
mov rcx, rbx
call fcn.140001650
mov rdx, qword [rbx]
mov r8d, esi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov rcx, qword [rbx]
test rcx, rcx
jne 0x140020c30
mov eax, edi
jmp 0x140020c3d
movsxd rdx, dword [rcx - 0xc]
call fcn.14017e6a4
test eax, eax
js 0x140020c6e
mov rcx, qword [rbx]
cmp eax, dword [rcx - 0xc]
jg 0x140020c6e
mov dword [rcx - 0x10], eax
mov rcx, qword [rbx]
movsxd rdx, eax
mov word [rcx + rdx*2], di
mov edi, 1
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov eax, edi
add rsp, 0x20
pop rdi
ret
mov ecx, 0x80070057
call fcn.140001900
int3

Function at 0x140021130
Capabilities:
Inspect load icon resource

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov rdi, rcx
xor r8d, r8d
lea edx, [r8 + 0x65]
call fcn.14002f21c
nop
lea rax, vtable.CsendminidmpDlg.0
mov qword [rdi], rax
lea rcx, [rdi + 0x120]
call fcn.1400062e0
nop
lea rcx, [rdi + 0x2a0]
call fcn.1400062e0
nop
lea rcx, [rdi + 0x420]
call fcn.1400062e0
nop
lea rcx, [rdi + 0x5a0]
call fcn.140001960
nop
lea rcx, [rdi + 0x790]
call fcn.140032538
lea r11, vtable.CEdit.0
mov qword [rdi + 0x790], r11
lea rcx, [rdi + 0x868]
call fcn.140005700
nop
lea rcx, [rdi + 0xaa0]
call fcn.140005700
nop
lea rcx, [rdi + 0xcd8]
call fcn.140005700
nop
call fcn.14002dca4
mov r11, rax
xor ebx, ebx
mov ecx, ebx
test rax, rax
setne cl
test ecx, ecx
jne 0x1400211f8
mov ecx, 0x80004005
call fcn.140001900
int3
mov rax, qword [rax]
mov rcx, r11
call qword [rax + 0x18]
add rax, 0x18
mov qword [rdi + 0xf18], rax
call fcn.14003f3fc
call fcn.14003f3fc
mov edx, 1
mov rcx, qword [rax + 0x18]
call qword [sym.imp.USER32.dll_LoadIconW]
mov qword [rdi + 0x118], rax
mov word [rdi + 0xf10], 0
mov byte [rdi + 0xf12], 0
mov word [rdi + 0xf20], 0
mov qword [rdi + 0xf28], rbx
mov ecx, 0x170
call fcn.14002b218
mov qword [rsp + 0x48], rax
test rax, rax
je 0x14002126a
mov rcx, rax
call fcn.14000cfd0
jmp 0x14002126d
mov rax, rbx
mov qword [rdi + 0xf40], rax
mov ecx, 0x28
call fcn.14002b218
mov qword [rsp + 0x48], rax
test rax, rax
je 0x140021299
mov rdx, qword [rdi + 0xf40]
mov rcx, rax
call fcn.1400241e0
jmp 0x14002129c
mov rax, rbx
mov qword [rdi + 0xf30], rax
mov qword [rdi + 0xf38], rbx
mov dword [rdi + 0xf24], 0xffffffff
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x1400258e0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push r12
sub rsp, 0x60
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rbp, r9
mov rax, rdx
mov rdi, rcx
xor r12d, r12d
mov dword [rsp + 0x40], r12d
mov rbx, qword [rsp + 0x90]
test rbx, rbx
jne 0x14002592c
lea rdx, [0x14020515c]
jmp 0x140025a83
mov rdx, r8
mov rcx, rax
call fcn.140025680
mov rsi, rax
test rax, rax
je 0x140025a7d
lea rax, [rsp + 0x90]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r12
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0xffff
mov r8, rbp
xor edx, edx
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_SHRegGetValueW]
test eax, eax
jne 0x140025a74
call fcn.14002dca4
mov r11, rax
mov ecx, r12d
test rax, rax
setne cl
test ecx, ecx
jne 0x14002599b
mov ecx, 0x80004005
call fcn.140001900
int3
mov rax, qword [rax]
mov rcx, r11
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x48], rbx
mov edx, dword [rsp + 0x90]
shr edx, 1
jns 0x1400259c3
mov ecx, 0x80070057
call fcn.140001900
int3
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edx
or eax, ecx
jge 0x1400259e3
lea rcx, [rsp + 0x48]
call fcn.140001650
mov rbx, qword [rsp + 0x48]
lea rax, [rsp + 0x90]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rbx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0xffff
mov r8, rbp
xor edx, edx
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_SHRegGetValueW]
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call fcn.14017e6a4
test eax, eax
js 0x140025a69
cmp eax, dword [rbx - 0xc]
jg 0x140025a69
mov dword [rbx - 0x10], eax
cdqe
mov word [rbx + rax*2], r12w
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rbx - 0x18]
call fcn.140001840
add rax, 0x18
mov qword [rdi], rax
or eax, 0xffffffff
lock xadd dword [rbx - 8], eax
dec eax
test eax, eax
jg 0x140025a88
mov rcx, qword [rbx - 0x18]
mov rax, qword [rcx]
lea rdx, [rbx - 0x18]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x140025a88
mov ecx, 0x80070057
call fcn.140001900
nop
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rbx
mov rcx, rdi
call fcn.140005640
mov rax, rdi
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret
Function at 0x140025ed0
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov dword [r11 + 0x18], r8d
push rbx
sub rsp, 0x50
mov rbx, rdx
test rcx, rcx
je 0x140025f8b
test rdx, rdx
je 0x140025f8b
lea rax, [r11 + 8]
mov qword [r11 + 0x10], rdi
xor edi, edi
mov qword [r11 - 0x18], rax
lea rax, [r11 + 0x20]
mov rdx, rcx
mov qword [r11 - 0x20], rax
mov qword [r11 - 0x28], rdi
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], edi
mov qword [r11 + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x140025f42
xor eax, eax
mov rdi, qword [rsp + 0x68]
add rsp, 0x50
pop rbx
ret
mov rcx, qword [rsp + 0x78]
lea rax, [rsp + 0x70]
mov r9d, 4
xor r8d, r8d
mov rdx, rbx
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x78]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
sete dil
mov eax, edi
mov rdi, qword [rsp + 0x68]
add rsp, 0x50
pop rbx
ret
xor eax, eax
add rsp, 0x50
pop rbx
ret
Function at 0x140028910
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor ebp, ebp
mov rbx, rcx
mov dword [rcx + 0x6afc8], 2
mov esi, ebp
mov edi, ebp
cmp dword [rcx + 0x6afd8], ebp
je 0x140028b3c
cmp dword [rbx + 0x6afd8], 3
jb 0x1400289a1
mov r8d, dword [rbx + 0x6afcc]
lea eax, [r8 + 2]
movzx edx, byte [rax + rbx + 0x1afb8]
mov eax, dword [rbx + 0x6afc4]
shl eax, 5
xor edx, eax
and edx, 0x7fff
and r8d, 0x7fff
mov eax, edx
mov dword [rbx + 0x6afc4], eax
mov esi, dword [rbx + rdx*4 + 0x4afb8]
mov dword [rbx + r8*4 + 0x2afb8], esi
mov ecx, dword [rbx + 0x6afc4]
mov eax, dword [rbx + 0x6afcc]
mov dword [rbx + rcx*4 + 0x4afb8], eax
test esi, esi
je 0x1400289df
mov eax, dword [rbx + 0x6afcc]
sub eax, esi
cmp eax, 0x7efa
ja 0x1400289df
mov eax, dword [rbx + 0x6afd8]
cmp dword [rbx + 0x6afe8], eax
jbe 0x1400289c8
mov dword [rbx + 0x6afe8], eax
mov edx, esi
mov rcx, rbx
call fcn.1400285c0
mov ecx, dword [rbx + 0x6afd8]
cmp eax, ecx
mov edi, eax
cmova edi, ecx
mov rcx, rbx
cmp edi, 3
jb 0x140028aba
mov edx, dword [rbx + 0x6afcc]
lea r8d, [rdi - 3]
sub edx, dword [rbx + 0x6afd0]
call fcn.140027bf0
sub dword [rbx + 0x6afd8], edi
mov r11d, eax
cmp edi, dword [rbx + 0x6afe0]
ja 0x140028a81
cmp dword [rbx + 0x6afd8], 3
jb 0x140028a81
dec edi
nop dword [rax]
inc dword [rbx + 0x6afcc]
mov r8d, dword [rbx + 0x6afcc]
lea eax, [r8 + 2]
and r8d, 0x7fff
movzx edx, byte [rax + rbx + 0x1afb8]
mov eax, dword [rbx + 0x6afc4]
shl eax, 5
xor edx, eax
and edx, 0x7fff
dec edi
mov eax, edx
mov dword [rbx + 0x6afc4], eax
mov esi, dword [rbx + rdx*4 + 0x4afb8]
mov dword [rbx + r8*4 + 0x2afb8], esi
mov ecx, dword [rbx + 0x6afc4]
mov eax, dword [rbx + 0x6afcc]
mov dword [rbx + rcx*4 + 0x4afb8], eax
jne 0x140028a20
jmp 0x140028ad9
add dword [rbx + 0x6afcc], edi
mov ecx, dword [rbx + 0x6afcc]
mov edi, ebp
movzx edx, byte [rcx + rbx + 0x1afb8]
lea eax, [rcx + 1]
mov dword [rbx + 0x6afc4], edx
movzx eax, byte [rax + rbx + 0x1afb8]
shl edx, 5
xor eax, edx
and eax, 0x7fff
mov dword [rbx + 0x6afc4], eax
jmp 0x140028adf
mov eax, dword [rbx + 0x6afcc]
xor edx, edx
movzx r8d, byte [rax + rbx + 0x1afb8]
call fcn.140027bf0
dec dword [rbx + 0x6afd8]
mov r11d, eax
inc dword [rbx + 0x6afcc]
test r11d, r11d
je 0x140028b1c
mov ecx, dword [rbx + 0x6afbc]
lea rdx, [rcx + rbx + 0x1afb8]
test ecx, ecx
jns 0x140028af9
mov rdx, rbp
mov r8d, dword [rbx + 0x6afcc]
xor r9d, r9d
sub r8d, ecx
mov rcx, rbx
call fcn.140027990
mov r11d, dword [rbx + 0x6afcc]
mov dword [rbx + 0x6afbc], r11d
cmp dword [rbx + 0x6afd8], 0x106
jae 0x140028b30
mov rcx, rbx
call fcn.1400287a0
cmp dword [rbx + 0x6afd8], ebp
jne 0x140028943
mov ecx, dword [rbx + 0x6afbc]
test ecx, ecx
js 0x140028b4e
lea rbp, [rcx + rbx + 0x1afb8]
mov r8d, dword [rbx + 0x6afcc]
mov r9d, 1
mov rdx, rbp
sub r8d, ecx
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp fcn.140027990
Function at 0x140029bf0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 8
mov r11, r8
mov r10, rdx
mov r9d, ecx
test rdx, rdx
jne 0x140029c09
xor eax, eax
add rsp, 8
ret
mov qword [rsp], rdi
not r9d
lea rdi, [0x14020b170]
cmp r8, 8
jb 0x140029d0d
mov qword [rsp + 0x10], rbx
mov rbx, r8
shr rbx, 3
mov rax, rbx
imul rax, rax, 0xfffffffffffffff8
add r11, rax
nop word [rax + rax]
movzx ecx, byte [r10]
mov eax, r9d
shr r9d, 8
xor rcx, rax
add r10, 8
movzx eax, cl
movzx ecx, byte [r10 - 7]
mov edx, dword [rdi + rax*4]
xor edx, r9d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r10 - 6]
mov r8d, dword [rdi + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r10 - 5]
mov edx, dword [rdi + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r10 - 4]
mov r8d, dword [rdi + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r10 - 3]
mov edx, dword [rdi + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r10 - 2]
mov r8d, dword [rdi + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r10 - 1]
mov edx, dword [rdi + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
mov r9d, dword [rdi + rax*4]
xor r9d, edx
dec rbx
jne 0x140029c40
mov rbx, qword [rsp + 0x10]
test r11, r11
je 0x140029d3f
nop word [rax + rax]
movzx ecx, byte [r10]
mov eax, r9d
inc r10
xor rcx, rax
shr eax, 8
movzx edx, cl
mov r9d, dword [rdi + rdx*4]
xor r9d, eax
dec r11
jne 0x140029d20
mov rdi, qword [rsp]
not r9d
mov eax, r9d
add rsp, 8
ret
Function at 0x140029f20
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
cmp byte [rcx + 0x41], 0
mov edi, r8d
mov rsi, rdx
mov rbx, rcx
je 0x14002a024
mov rcx, qword [rcx + 0x50]
mov qword [rsp + 0x48], rbp
test rcx, rcx
je 0x140029f62
cmp dword [rbx + 0x58], edi
jae 0x140029f62
call fcn.14002b264
mov qword [rbx + 0x50], 0
cmp qword [rbx + 0x50], 0
jne 0x140029f78
lea ecx, [rdi + rdi]
call fcn.14002b25c
mov dword [rbx + 0x58], edi
mov qword [rbx + 0x50], rax
mov rcx, qword [rbx + 0x50]
mov r8, rdi
mov rdx, rsi
mov rbp, rdi
call fcn.14017eea0
test edi, edi
je 0x14002a01b
xor r11d, r11d
lea rsi, [0x14020b170]
nop dword [rax]
mov rax, qword [rbx + 0x50]
mov edx, dword [rbx + 0x44]
mov r8d, dword [rbx + 0x4c]
movsx r10, byte [r11 + rax]
mov ecx, edx
shr edx, 8
xor rcx, r10
mov r9d, r8d
inc r11
movzx eax, cl
and r9d, 0xfffd
mov ecx, dword [rsi + rax*4]
or r9d, 2
xor ecx, edx
mov dword [rbx + 0x44], ecx
movzx eax, cl
movzx ecx, r8b
add eax, dword [rbx + 0x48]
shr r8d, 8
imul eax, eax, 0x8088405
inc eax
mov dword [rbx + 0x48], eax
movzx eax, byte [rbx + 0x4b]
xor rcx, rax
mov eax, dword [rsi + rcx*4]
mov ecx, r9d
xor ecx, 1
xor eax, r8d
mov dword [rbx + 0x4c], eax
mov rax, qword [rbx + 0x50]
imul ecx, r9d
shr ecx, 8
xor cl, r10b
dec rbp
mov byte [r11 + rax - 1], cl
jne 0x140029fa0
mov rsi, qword [rbx + 0x50]
mov rbp, qword [rsp + 0x48]
mov rdx, qword [rbx + 0x30]
test rdx, rdx
je 0x14002a074
mov ecx, dword [rbx + 0x38]
lea eax, [rcx + rdi]
cmp eax, dword [rbx + 0x3c]
jb 0x14002a051
mov dword [rbx + 0x24], 0x30000
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
add rcx, rdx
mov r8, rdi
mov rdx, rsi
call fcn.14017eea0
add dword [rbx + 0x38], edi
mov eax, edi
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14002a0ab
lea r9, [rsp + 0x40]
mov r8d, edi
mov rdx, rsi
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rsp + 0x40]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov rsi, qword [rsp + 0x58]
mov dword [rbx + 0x24], 0x1000000
mov rbx, qword [rsp + 0x50]
xor eax, eax
add rsp, 0x30
pop rdi
ret
Function at 0x14002a4a0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rdi, rcx
mov rcx, qword [rcx + 0xa8]
mov rsi, rdx
test rcx, rcx
je 0x14002a52c
mov eax, dword [rdi + 0xb4]
mov qword [rsp + 0x48], rbp
mov ebp, dword [rdi + 0xb0]
cmp eax, ebp
jb 0x14002a4ed
xor eax, eax
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
sub ebp, eax
lea rdx, [rcx + rax]
mov rcx, rsi
cmp ebp, r8d
cmova ebp, r8d
mov r8d, ebp
call fcn.14017eea0
mov ecx, dword [rdi + 0x90]
add dword [rdi + 0xb4], ebp
add dword [rdi + 0x8c], ebp
mov r8d, ebp
mov rdx, rsi
call fcn.140029bf0
mov dword [rdi + 0x90], eax
mov eax, ebp
jmp 0x14002a4d8
mov rcx, qword [rdi + 0x98]
test rcx, rcx
je 0x14002a583
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14002a58a
mov ebx, dword [rsp + 0x40]
mov ecx, dword [rdi + 0x90]
mov rdx, rsi
add dword [rdi + 0x8c], ebx
mov r8d, ebx
call fcn.140029bf0
mov dword [rdi + 0x90], eax
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov dword [rdi + 0x24], 0x1000000
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
xor eax, eax
add rsp, 0x30
pop rdi
ret
Function at 0x14002d748
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 0x14002d786
mov r8d, esi
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x14002d83a
call fcn.14002dca4
mov r11, rax
xor ecx, ecx
test rax, rax
setne cl
test ecx, ecx
jne 0x14002d7a5
mov ecx, 0x80004005
call fcn.140001900
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.140180a60
test eax, eax
je 0x14002d80d
cmp eax, 0xc
je 0x14002d807
cmp eax, 0x16
je 0x14002d801
cmp eax, 0x22
je 0x14002d801
cmp eax, 0x50
je 0x14002d80d
call fcn.14002eedc
int3
call fcn.14002eedc
int3
call fcn.14002ee94
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 0x14002d838
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

Function at 0x14002ff78
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.14003f3fc
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 0x14002ffd4
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.14002fa08
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 0x140030068
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, dx
jmp method.CDialog.virtual_712
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 0x1400300a7
cmp dword [rcx + 0xd8], 0
jne 0x1400300a7
movzx eax, dx
mov dword [rcx + 0xd8], eax
call fcn.14003f3fc
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.14003000c
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 0x140030ba8
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.140056090
mov rsi, rax
test rax, rax
je 0x140030c24
mov rcx, rax
call qword [sym.imp.USER32.dll_GetDlgCtrlID]
mov edi, eax
test rbx, rbx
je 0x140030c1f
cmp dword [rbx], 0x40
jb 0x140030c1f
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 0x140030c1f
or dword [rbx + 4], 0x80000002
mov rax, rdi
jmp 0x140030c28
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 0x140038754
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 0x1400387bc
call fcn.14003f3fc
mov r8d, 0xf0
mov rdx, rsi
mov r12, qword [rax + 0x18]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x1400387bc
mov rdx, rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
test rax, rax
je 0x1400387de
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
mov rdx, rdi
mov rcx, rbp
call fcn.140038140
mov esi, eax
test rdi, rdi
je 0x1400387dc
test rbx, rbx
je 0x1400387dc
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