joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140020140
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 esi, esi
mov edi, eax
test eax, eax
jne 0x14002017a
mov rcx, rbx
call fcn.1400014d0
jmp 0x1400201dc
js 0x1400201f3
mov rax, qword [rbx]
mov ecx, 1
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, edi
or ecx, eax
jge 0x14002019a
mov edx, edi
mov rcx, rbx
call fcn.140001650
mov rdx, qword [rbx]
mov r8d, edi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov rcx, qword [rbx]
test rcx, rcx
jne 0x1400201b5
mov eax, esi
jmp 0x1400201c2
movsxd rdx, dword [rcx - 0xc]
call fcn.1401af460
test eax, eax
js 0x1400201fe
mov rcx, qword [rbx]
cmp eax, dword [rcx - 0xc]
jg 0x1400201fe
mov dword [rcx - 0x10], eax
mov rcx, qword [rbx]
movsxd rdx, eax
mov word [rcx + rdx*2], si
mov esi, 1
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov eax, esi
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov ecx, 0x80070057
call fcn.140001910
int3
mov ecx, 0x80070057
call fcn.140001910
int3

Function at 0x140020640
Capabilities:
Inspect load icon resource

Disassembly:
mov qword [rsp + 0x10], rdx
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.14002e1c8
nop
lea rax, vtable.CsendminidmpDlg.0
mov qword [rdi], rax
lea rcx, [rdi + 0x120]
call fcn.140005e20
nop
lea rcx, [rdi + 0x2a0]
call fcn.140005e20
nop
lea rcx, [rdi + 0x420]
call fcn.140005e20
nop
lea rcx, [rdi + 0x5a0]
call fcn.140001970
nop
lea rcx, [rdi + 0x790]
call fcn.14002f684
lea rax, vtable.CEdit.0
mov qword [rdi + 0x790], rax
lea rcx, [rdi + 0x868]
call fcn.140005280
nop
lea rcx, [rdi + 0xaa0]
call fcn.140005280
nop
lea rcx, [rdi + 0xcd8]
call fcn.140005280
nop
call fcn.14002d140
mov rdx, rax
xor ebx, ebx
mov ecx, ebx
test rax, rax
setne cl
test ecx, ecx
jne 0x14002070d
mov ecx, 0x80004005
call fcn.140001910
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
add rax, 0x18
mov qword [rdi + 0xf18], rax
call fcn.14003da88
call fcn.14003da88
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, 0x180
call fcn.14002a398
mov qword [rsp + 0x48], rax
test rax, rax
je 0x14002077f
mov rcx, rax
call fcn.14000bc40
jmp 0x140020782
mov rax, rbx
mov qword [rdi + 0xf40], rax
mov ecx, 0x28
call fcn.14002a398
mov qword [rsp + 0x48], rax
test rax, rax
je 0x1400207ae
mov rdx, qword [rdi + 0xf40]
mov rcx, rax
call fcn.1400234e0
jmp 0x1400207b1
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 0x140022c60
Capabilities:
Create process on windows

Disassembly:
push rdi
sub rsp, 0x1c0
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x1d8], rbx
mov rdi, rcx
mov rcx, qword [rcx + 0xf30]
test rcx, rcx
jne 0x140022c9a
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x2f8]
jmp 0x140022e98
lea rdx, [rsp + 0x1e8]
call fcn.1400235c0
nop
lea rdx, [rsp + 0x1d0]
mov rcx, qword [rdi + 0xf30]
call fcn.1400235f0
nop
mov rax, qword [rdi + 0xf30]
cmp dword [rax + 8], 0
jl 0x140022e18
mov rbx, qword [rsp + 0x1e8]
cmp dword [rbx - 0x10], 0
je 0x140022e18
lea rdx, str.followup
mov rcx, rbx
call fcn.1401afe38
test eax, eax
jne 0x140022d1e
lea r8, [rdi + 0xf12]
xor edx, edx
mov rcx, rdi
call fcn.1400229e0
mov byte [rdi + 0xf10], al
test al, al
je 0x140022e5f
mov byte [rdi + 0xf11], 1
jmp 0x140022e5f
lea rdx, str.followup2
mov rcx, rbx
call fcn.1401afe38
test eax, eax
jne 0x140022d77
mov byte [rdi + 0xf12], al
lea r8, [rdi + 0xf12]
mov dl, 1
mov rcx, rdi
call fcn.1400229e0
mov byte [rdi + 0xf10], al
test al, al
je 0x140022e5f
mov byte [rdi + 0xf11], 1
cmp byte [rdi + 0xf12], 0
je 0x140022e5f
mov rcx, rdi
call fcn.140022bd0
jmp 0x140022e5f
lea rdx, str.resendbig
mov rcx, rbx
call fcn.1401afe38
test eax, eax
jne 0x140022dc2
lea rcx, [rsp + 0x40]
call fcn.14000bc40
nop
mov r9b, 1
lea r8, [rsp + 0x1d0]
lea rdx, [rsp + 0x1e8]
lea rcx, [rsp + 0x40]
call fcn.140012d60
nop
lea rcx, [rsp + 0x40]
call fcn.14000ce30
jmp 0x140022e5f
lea rdx, str.browser
mov rcx, rbx
call fcn.1401afe38
test eax, eax
jne 0x140022df1
call fcn.14003da88
mov rcx, qword [rax + 8]
cmp byte [rcx + 0x388], 0
je 0x140022e52
mov r8, qword [rsp + 0x1d0]
jmp 0x140022e28
lea rdx, str.showresponse
mov rcx, rbx
call fcn.1401afe38
test eax, eax
jne 0x140022e5f
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x1d0]
call fcn.14003eb88
jmp 0x140022e5f
call fcn.14003da88
mov rcx, qword [rax + 8]
mov r8, qword [rcx + 0x398]
cmp dword [r8 - 0x10], 0
je 0x140022e52
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x2f8]
nop
mov rdx, qword [rsp + 0x1d0]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140022e7c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x1e8]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140022e98
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
mov rbx, qword [rsp + 0x1d8]
add rsp, 0x1c0
pop rdi
ret
Function at 0x140024c70
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push r14
sub rsp, 0x60
mov qword [rax - 0x18], 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 r14d, r14d
mov dword [rsp + 0x44], r14d
mov rbx, qword [rsp + 0x90]
test rbx, rbx
jne 0x140024cbb
lea rdx, [0x14024561c]
jmp 0x140024e0b
mov rdx, r8
mov rcx, rax
call fcn.140024a40
mov rsi, rax
test rax, rax
je 0x140024e05
lea rax, [rsp + 0x90]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r14
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 0x140024dfc
call fcn.14002d140
mov rdx, rax
mov ecx, r14d
test rax, rax
setne cl
test ecx, ecx
jne 0x140024d2a
mov ecx, 0x80004005
call fcn.140001910
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x48], rbx
mov edx, dword [rsp + 0x90]
shr edx, 1
jns 0x140024d52
mov ecx, 0x80070057
call fcn.140001910
int3
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edx
or eax, ecx
jge 0x140024d72
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.1401af460
test eax, eax
js 0x140024df1
cmp eax, dword [rbx - 0xc]
jg 0x140024df1
mov dword [rbx - 0x10], eax
cdqe
mov word [rbx + rax*2], r14w
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rbx - 0x18]
call fcn.140001860
add rax, 0x18
mov qword [rdi], rax
lock add dword [rbx - 8], 0xffffffff
jg 0x140024e10
mov rcx, qword [rbx - 0x18]
mov rax, qword [rcx]
lea rdx, [rbx - 0x18]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x140024e10
mov ecx, 0x80070057
call fcn.140001910
nop
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rbx
mov rcx, rdi
call fcn.1400051d0
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 r14
ret
Function at 0x1400251f0
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov dword [r11 + 0x20], r9d
mov qword [r11 + 8], rcx
push rbx
sub rsp, 0x50
mov rbx, r8
test rdx, rdx
je 0x1400252ac
test rbx, rbx
je 0x1400252ac
lea rax, [r11 + 8]
mov qword [r11 + 0x18], rdi
xor edi, edi
mov qword [r11 - 0x18], rax
lea rax, [r11 + 0x10]
xor r9d, r9d
mov qword [r11 - 0x20], rax
mov qword [r11 - 0x28], rdi
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x28], 0x20006
mov qword [r11 + 0x10], rdi
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x140025263
xor eax, eax
mov rdi, qword [rsp + 0x70]
add rsp, 0x50
pop rbx
ret
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x78]
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 + 0x68]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
sete dil
mov eax, edi
mov rdi, qword [rsp + 0x70]
add rsp, 0x50
pop rbx
ret
xor eax, eax
add rsp, 0x50
pop rbx
ret
Function at 0x140027c10
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 0x140027e3e
cmp dword [rbx + 0x6afd8], 3
jb 0x140027ca1
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 0x140027cdf
mov eax, dword [rbx + 0x6afcc]
sub eax, esi
cmp eax, 0x7efa
ja 0x140027cdf
mov eax, dword [rbx + 0x6afd8]
cmp dword [rbx + 0x6afe8], eax
jbe 0x140027cc8
mov dword [rbx + 0x6afe8], eax
mov edx, esi
mov rcx, rbx
call fcn.1400278b0
mov ecx, dword [rbx + 0x6afd8]
cmp eax, ecx
mov edi, eax
cmova edi, ecx
mov rcx, rbx
cmp edi, 3
jb 0x140027dba
mov edx, dword [rbx + 0x6afcc]
lea r8d, [rdi - 3]
sub edx, dword [rbx + 0x6afd0]
call fcn.140026f30
sub dword [rbx + 0x6afd8], edi
mov r9d, eax
cmp edi, dword [rbx + 0x6afe0]
ja 0x140027d81
cmp dword [rbx + 0x6afd8], 3
jb 0x140027d81
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
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
dec edi
jne 0x140027d20
jmp 0x140027dd9
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 0x140027ddf
mov eax, dword [rbx + 0x6afcc]
xor edx, edx
movzx r8d, byte [rax + rbx + 0x1afb8]
call fcn.140026f30
dec dword [rbx + 0x6afd8]
mov r9d, eax
inc dword [rbx + 0x6afcc]
test r9d, r9d
je 0x140027e1e
mov ecx, dword [rbx + 0x6afbc]
test ecx, ecx
js 0x140027dfa
lea rdx, [rbx + 0x1afb8]
add rdx, rcx
jmp 0x140027dfd
mov rdx, rbp
mov r8d, dword [rbx + 0x6afcc]
xor r9d, r9d
sub r8d, ecx
mov rcx, rbx
call fcn.140026cd0
mov eax, dword [rbx + 0x6afcc]
mov dword [rbx + 0x6afbc], eax
cmp dword [rbx + 0x6afd8], 0x106
jae 0x140027e32
mov rcx, rbx
call fcn.140027aa0
cmp dword [rbx + 0x6afd8], ebp
jne 0x140027c43
mov ecx, dword [rbx + 0x6afbc]
test ecx, ecx
js 0x140027e52
lea rbp, [rbx + 0x1afb8]
add rbp, rcx
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.140026cd0
Function at 0x140028eb0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 8
mov r10, r8
mov r9, rdx
test rdx, rdx
jne 0x140028ec6
xor eax, eax
add rsp, 8
ret
mov qword [rsp], rbx
not ecx
lea rbx, [0x14024b6e0]
cmp r8, 8
jb 0x140028fb3
mov r11, r8
shr r11, 3
mov rax, r11
imul rax, rax, 0xfffffffffffffff8
add r10, rax
nop
movzx edx, byte [r9]
mov eax, ecx
shr ecx, 8
xor rdx, rax
add r9, 8
movzx eax, dl
mov edx, dword [rbx + rax*4]
xor edx, ecx
movzx ecx, byte [r9 - 7]
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 - 6]
mov r8d, dword [rbx + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 - 5]
mov edx, dword [rbx + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 - 4]
mov r8d, dword [rbx + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 - 3]
mov edx, dword [rbx + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 - 2]
mov r8d, dword [rbx + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 - 1]
mov edx, dword [rbx + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
mov ecx, dword [rbx + rax*4]
xor ecx, edx
dec r11
jne 0x140028ef0
test r10, r10
je 0x140028fdf
nop dword [rax + rax]
movzx edx, byte [r9]
mov eax, ecx
lea r9, [r9 + 1]
xor rdx, rax
shr eax, 8
movzx r8d, dl
mov ecx, dword [rbx + r8*4]
xor ecx, eax
dec r10
jne 0x140028fc0
mov rbx, qword [rsp]
not ecx
mov eax, ecx
add rsp, 8
ret
Function at 0x1400291d0
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 0x1400292d5
mov rcx, qword [rcx + 0x50]
mov qword [rsp + 0x48], rbp
test rcx, rcx
je 0x140029212
cmp dword [rbx + 0x58], edi
jae 0x140029212
call fcn.14002a3dc
mov qword [rbx + 0x50], 0
cmp qword [rbx + 0x50], 0
jne 0x140029228
lea ecx, [rdi + rdi]
call fcn.14002a3e4
mov dword [rbx + 0x58], edi
mov qword [rbx + 0x50], rax
mov rcx, qword [rbx + 0x50]
mov r9, rdi
mov r8, rsi
mov rdx, rdi
mov rbp, rdi
call fcn.1401aef30
test edi, edi
je 0x1400292cc
xor r11d, r11d
lea rsi, [0x14024b6e0]
nop
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
lea r11, [r11 + 1]
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
mov byte [r11 + rax - 1], cl
dec rbp
jne 0x140029250
mov rsi, qword [rbx + 0x50]
mov rbp, qword [rsp + 0x48]
mov r8, qword [rbx + 0x30]
test r8, r8
je 0x140029328
mov ecx, dword [rbx + 0x38]
lea eax, [rcx + rdi]
cmp eax, dword [rbx + 0x3c]
jb 0x140029302
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, r8
mov rdx, rdi
mov r9, rdi
mov r8, rsi
call fcn.1401aef30
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 0x14002935f
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 0x140029750
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rdi
sub rsp, 0x30
mov rdi, rcx
mov rcx, qword [rcx + 0xa8]
mov rbp, rdx
test rcx, rcx
je 0x1400297de
mov eax, dword [rdi + 0xb4]
mov qword [rsp + 0x48], rsi
mov esi, dword [rdi + 0xb0]
cmp eax, esi
jb 0x14002979d
xor eax, eax
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
sub esi, eax
cmp esi, r8d
cmova esi, r8d
lea r8, [rcx + rax]
mov rcx, rbp
mov r9d, esi
mov edx, esi
call fcn.1401aef30
mov ecx, dword [rdi + 0x90]
add dword [rdi + 0xb4], esi
add dword [rdi + 0x8c], esi
mov r8d, esi
mov rdx, rbp
call fcn.140028eb0
mov dword [rdi + 0x90], eax
mov eax, esi
jmp 0x140029788
mov rcx, qword [rdi + 0x98]
test rcx, rcx
je 0x140029835
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14002983c
mov ebx, dword [rsp + 0x40]
mov ecx, dword [rdi + 0x90]
mov rdx, rbp
add dword [rdi + 0x8c], ebx
mov r8d, ebx
call fcn.140028eb0
mov dword [rdi + 0x90], eax
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov dword [rdi + 0x24], 0x1000000
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
xor eax, eax
add rsp, 0x30
pop rdi
ret
Function at 0x14002c5f8
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 rbx, rdx
mov rdi, rcx
cmp qword [rcx + 0xc8], 0
jne 0x14002c636
mov r8d, esi
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x14002c6ee
call fcn.14002d140
mov rdx, rax
xor ecx, ecx
test rax, rax
setne cl
test ecx, ecx
jne 0x14002c655
mov ecx, 0x80004005
call fcn.140001910
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x40], rax
mov rcx, qword [rdi + 0xc8]
mov rax, qword [rcx]
lea rdx, [rsp + 0x40]
call qword [rax + 0x118]
mov rdx, rsi
or rdi, 0xffffffffffffffff
mov r9, rdi
mov r8, qword [rsp + 0x40]
mov rcx, rbx
call fcn.1401af068
test eax, eax
je 0x14002c6bd
cmp eax, 0xc
je 0x14002c6b7
cmp eax, 0x16
je 0x14002c6b1
cmp eax, 0x22
je 0x14002c6b1
cmp eax, 0x50
je 0x14002c6bd
call fcn.14002dec4
int3
call fcn.14002dec4
int3
call fcn.14002df3c
int3
test rbx, rbx
je 0x14002c6cd
mov rcx, rbx
call fcn.1401b151c
mov rbx, rax
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov ecx, edi
lock xadd dword [rdx + 0x10], ecx
add ecx, edi
test ecx, ecx
jg 0x14002c6ec
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, ebx
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x14002e4d8
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 0x14002e517
cmp dword [rcx + 0xd8], 0
jne 0x14002e517
movzx eax, dx
mov dword [rcx + 0xd8], eax
call fcn.14003da88
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.14002e874
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 0x14002e574
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 r14
push r15
sub rsp, 0x20
mov r14, r8
mov rbx, rdx
mov r15, rcx
xor edi, edi
call fcn.14003da88
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 0x14002e5d0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
mov r9, rbp
mov r8, r14
mov rdx, rdi
mov rcx, r15
call fcn.14002e608
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 r15
pop r14
pop rdi
ret

Function at 0x14002f160
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x40
mov rdi, r9
mov rsi, r8
mov r14, rdx
mov r15, rcx
and qword [rax - 0x10], 0
and qword [rax - 0x18], 0
xor ebx, ebx
mov eax, dword [0x14029b648]
test eax, eax
je 0x14002f1b2
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x14029b648]
test eax, eax
jne 0x14002f1bb
call fcn.14002f2b0
test eax, eax
je 0x14002f1d7
lea rdx, [rsp + 0x30]
mov rcx, qword [0x140292858]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne ebx, ecx
test ebx, ebx
jne 0x14002f1df
xor eax, eax
jmp 0x14002f237
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9, rdi
mov r8, rsi
mov rdx, r14
mov rcx, r15
call qword [sym.imp.USER32.dll_CreateDialogIndirectParamW]
mov rsi, rax
mov qword [rsp + 0x38], rax
xor ebx, ebx
test rax, rax
sete bl
test ebx, ebx
je 0x14002f219
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x14002f21b
xor edi, edi
mov rdx, qword [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x14002f234
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
mov r14, qword [rsp + 0x68]
add rsp, 0x40
pop r15
ret