joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100017da0
Capabilities:
Get graphical window text

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
sub rsp, 0x440
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x1000730b0]
xor rax, rsp
mov qword [rsp + 0x430], rax
mov ebx, edx
mov rsi, rcx
mov rax, qword [rcx + 0x18]
mov rcx, qword [rax + 0x30]
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov edx, 0xffffffeb
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowLongPtrW]
mov rbp, rax
mov rcx, qword [rsi + 0x18]
mov rdx, qword [rcx + 0x30]
mov rcx, qword [rdx + 8]
mov edx, ebx
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
mov r8d, 0x1f4
lea rdx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_GetWindowTextW]
cmp dword [rsi + 0x2c], 0
je 0x10003343b
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x28]
call fcn.100022450
nop
mov rax, qword [rsi + 0x58]
lea r9, [rsp + 0x28]
mov r8, qword [rbp]
mov rdx, qword [rax]
mov rcx, qword [rsi + 0x20]
call fcn.100017e94
nop
mov rdx, qword [rsp + 0x28]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jle 0x100033532
mov rcx, qword [rsp + 0x430]
xor rcx, rsp
call fcn.100001c30
mov rbx, qword [rsp + 0x470]
add rsp, 0x440
pop rdi
pop rsi
pop rbp
ret
mov rax, qword [rsi + 0x58]
mov r8, qword [rbp]
mov rdx, qword [rax]
mov rcx, qword [rsi + 0x20]
call fcn.100016fc4
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.100041494
nop
mov rax, qword [rsp + 0x20]
lea rdx, [rsp + 0x40]
sub rdx, rax
movzx ecx, word [rax]
cmp cx, word [rax + rdx]
jne 0x100033480
add rax, 2
test cx, cx
jne 0x10003346a
xor eax, eax
jmp 0x100033485
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
setne al
test al, al
je 0x100033508
mov rax, qword [rsi + 0x18]
mov rcx, qword [rax + 0x30]
lea edx, [rbx + 7]
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rdi, rax
mov rcx, qword [rsi + 0x58]
mov r9b, 1
mov r8, qword [rbp]
mov rdx, qword [rcx]
mov rcx, qword [rsi + 0x20]
call fcn.10003cd30
mov rbx, qword [rbp + 8]
mov dl, 1
mov rcx, rsi
call fcn.10001776c
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.100027250
mov rdx, qword [rax]
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x100033508
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x100017e26
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
jmp 0x100017e26
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
jmp 0x100017e6b
Function at 0x100019ed0
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
push rsi
push rdi
push r12
sub rsp, 0x50
xor r12d, r12d
lea rax, [r11 + 0x20]
mov rsi, rdx
mov qword [r11 - 0x28], r12
mov qword [r11 - 0x30], rax
mov qword [r11 - 0x38], r12
mov rdi, r8
mov rbp, rcx
lea rdx, str.SoftwareMicrosoftCalc
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x28], 0x20019
mov qword [r11 + 0x20], r12
mov dword [r11 - 0x48], r12d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov rcx, qword [rsp + 0x88]
cmp eax, r12d
mov ebx, eax
cmovne rcx, r12
mov qword [rsp + 0x88], rcx
cmp rcx, r12
je 0x100019f70
xor r9d, r9d
xor r8d, r8d
mov rdx, rbp
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x88]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbp, qword [rsp + 0x78]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop r12
pop rdi
pop rsi
ret

Function at 0x10001a2a0
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
push rdi
sub rsp, 0x60
xor esi, esi
lea rax, [r11 - 0x18]
mov rdi, r8
mov qword [r11 - 0x28], rsi
mov qword [r11 - 0x30], rax
mov qword [r11 - 0x38], rsi
lea rdx, str.SoftwareMicrosoftCalc
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x28], 0x20006
mov qword [r11 - 0x18], rsi
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov rcx, qword [rsp + 0x50]
cmp eax, esi
mov ebx, eax
cmovne rcx, rsi
mov qword [rsp + 0x50], rcx
cmp rcx, rsi
je 0x10001a334
lea r9d, [rsi + 3]
lea rdx, str.Window_Placement
xor r8d, r8d
mov dword [rsp + 0x28], 0x2c
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x78]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret

Function at 0x10001ac70
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
sub rsp, 0x38
and dword [rsp + 0x58], 0
mov dword [r11 + 0x18], r8d
mov dword [rsp + 0x40], 4
test rcx, rcx
je 0x10001acaf
lea rax, [r11 + 8]
lea r9, [r11 + 0x20]
xor r8d, r8d
mov qword [r11 - 0x10], rax
lea rax, [r11 + 0x18]
mov qword [r11 - 0x18], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r8d, dword [rsp + 0x50]
mov eax, r8d
add rsp, 0x38
ret
Function at 0x10001b9b8
Capabilities:
Terminate process

Disassembly:
xor eax, eax
test esi, esi
sete al
mov esi, eax
mov dword [rsp + 0x20], eax
jmp 0x10001bae0
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rdi
xor edx, edx
lea rcx, [0x100000000]
call fcn.10001d31c
mov dword [0x100073080], eax
cmp dword [0x100073074], 0
jne 0x10003c927
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
nop
jmp 0x10003c927
sub rsp, 0x28
call fcn.10001af28
add rsp, 0x28
jmp 0x10001b9d0
mov qword [rsp + 8], rsi
mov qword [rsp + 0x10], rdi
push r12
sub rsp, 0xb0
and dword [rsp + 0x20], 0
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.DLL_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x100073048], rdi
jne 0x10003c8b9
mov eax, dword [0x1000730ac]
cmp eax, 1
je 0x10003c8d8
mov eax, dword [0x1000730ac]
test eax, eax
jne 0x10003c8ef
mov dword [0x1000730ac], 1
lea r12, [0x100063d98]
lea rdi, [0x100063d80]
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], eax
cmp rdi, r12
jae 0x10001ba74
test eax, eax
jne 0x10001ba74
mov rcx, qword [rdi]
test rcx, rcx
je 0x10001ba69
call rcx
mov dword [rsp + 0x30], eax
add rdi, 8
mov qword [rsp + 0x38], rdi
jmp 0x10001ba52
test eax, eax
jne 0x10003c8e5
mov eax, dword [0x1000730ac]
cmp eax, 1
jne 0x10001baa4
lea rdx, [0x100063d78]
lea rcx, [0x100063ca8]
call sub.msvcrt.dll__initterm
mov dword [0x1000730ac], 2
test esi, esi
jne 0x10001bab1
xor eax, eax
xchg qword [0x100073048], rax
cmp qword [0x100075790], 0
jne 0x10003c8fe
mov rax, qword [sym.imp.msvcrt.dll__acmdln]
mov rdi, qword [rax]
mov qword [rsp + 0x28], rdi
mov esi, dword [rsp + 0x20]
cmp byte [rdi], 0x20
jbe 0x10001bafb
cmp byte [rdi], 0x22
je 0x100018672
movzx ecx, byte [rdi]
call qword [sym.imp.msvcrt.dll__ismbblead]
test eax, eax
jne 0x10003c93e
inc rdi
mov qword [rsp + 0x28], rdi
jmp 0x10001bad2
cmp byte [rdi], 0
je 0x10001bb04
test esi, esi
jne 0x10001bad7
cmp byte [rdi], 0
je 0x100019fe7
cmp byte [rdi], 0x20
ja 0x100019fe7
inc rdi
mov qword [rsp + 0x28], rdi
jmp 0x10001bb04
cmp rax, rdi
jne 0x10003c8c8
mov esi, 1
jmp 0x10001ba14
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x10001ba03
lea ecx, [rax + 0x1e]
call sub.msvcrt.dll__amsg_exit
jmp 0x10001ba7c
mov eax, 0xff
jmp 0x10003c978
mov dword [0x100077e34], 1
jmp 0x10001ba7c
lea rcx, [0x100075790]
call fcn.10005d42c
test eax, eax
je 0x10001babf
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x100075790]
nop
jmp 0x10001babf
cmp dword [0x100077e34], 0
jne 0x10003c93c
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x100073080]
jmp 0x10003c978
inc rdi
mov qword [rsp + 0x28], rdi
jmp 0x10001baf1
lea r11, [rsp + 0xb0]
mov rsi, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop r12
ret
Function at 0x10001e0d0
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x1000730b0]
xor rax, rsp
mov qword [rsp + 0xc0], rax
xor edx, edx
mov rbx, rcx
lea r8d, [rdx + 0x28]
add rcx, r8
call sub.msvcrt.dll_memset
and qword [rbx + 0x50], 0
and dword [rbx + 0x58], 0
and dword [rbx + 0x5c], 0
lea rax, [0x100000000]
mov esi, DllRegisterServer
lea rcx, [rsp + 0x20]
mov r8, rsi
xor edx, edx
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], rax
mov dword [rbx], 0x60
mov byte [rbx + 0x18], 0
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.DLL_GetVersionExA]
cmp dword [rsp + 0x30], 2
mov esi, 1
jne 0x10003c53b
cmp dword [rsp + 0x24], 5
jb 0x10001e16b
jmp 0x10001e167
mov byte [rbx + 0x18], sil
lea rax, [0x100063da0]
lea rcx, [rbx + 0x28]
mov dword [rbx + 0x1c], 0x800
mov qword [rbx + 0x20], rax
call fcn.10001e1c8
movzx ecx, byte [0x100073051]
test eax, eax
mov rax, rbx
cmovs ecx, esi
mov byte [0x100073051], cl
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.100001c30
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
cmp dword [rsp + 0x30], esi
jne 0x10001e16b
cmp dword [rsp + 0x24], 4
ja 0x10001e167
jne 0x10001e16b
cmp dword [rsp + 0x28], 0
ja 0x10001e167
jmp 0x10001e16b

Function at 0x10001e300
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x10001e347
cmp rcx, 0xffffffffffffffff
je 0x10001e347
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x10001e345
cmp dword [rcx + 0x3c], edx
jl 0x10001e345
cmp dword [rcx + 0x3c], 0x10000000
jae 0x10001e345
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x10001e347
mov rax, rdx
add rsp, 0x18
ret
Function at 0x100022c0c
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x70
mov eax, dword [rsp + 0xb0]
and qword [rcx + 8], 0
and dword [rcx + 0x10], 0
and qword [rcx + 0x420], 0
mov ebx, dword [rsp + 0xc8]
mov dword [rcx + 0x14], eax
mov eax, dword [rsp + 0xc0]
mov r12, rdx
mov rsi, rcx
mov qword [rcx + 0x18], r8
mov dword [rcx], ebx
mov dword [rcx + 0x428], eax
lea rdx, [rsp + 0x40]
mov rcx, r8
mov ebp, r9d
mov rdi, r8
call qword [sym.imp.USER32.dll_GetClientRect]
mov edx, 0xffffffec
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowLongW]
mov edx, 0xffffffec
mov rcx, rdi
and eax, 0xffbfdfff
mov r8d, eax
call qword [sym.imp.USER32.dll_SetWindowLongW]
lea rdx, [rsi + 0x20]
mov r8d, 0x200
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowTextW]
call qword [sym.imp.UxTheme.dll_IsThemeActive]
test eax, eax
je 0x10003147c
test ebx, ebx
jne 0x1000260dc
mov edx, dword [r12 + 0xc]
mov ecx, dword [r12 + 8]
mov r9d, 6
sub edx, dword [r12 + 4]
sub ecx, dword [r12]
lea r8d, [r9 + 0x1a]
mov dword [rsp + 0x20], 1
call qword [sym.imp.COMCTL32.dll_ImageList_Create]
xor ecx, ecx
mov qword [rsi + 8], rax
movzx ebx, bp
call qword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
lea r9, [rsp + 0x90]
mov r8d, 2
mov rdx, rbx
mov rcx, rax
call fcn.100007b6c
mov rcx, qword [rsp + 0x90]
lea rdx, [rsp + 0x40]
xor r8d, r8d
call fcn.100022ddc
mov rcx, qword [rsi + 8]
xor r8d, r8d
mov rdx, rax
mov rbx, rax
call qword [sym.imp.COMCTL32.dll_ImageList_Add]
mov r11, qword [rsi + 8]
and dword [rsp + 0x5c], 0
and dword [rsp + 0x64], 0
and dword [rsp + 0x58], 0
and dword [rsp + 0x60], 0
lea r9, [rsp + 0x50]
xor r8d, r8d
mov edx, 0x1602
mov rcx, rdi
mov qword [rsp + 0x50], r11
mov dword [rsp + 0x68], 4
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, rbx
call qword [sym.imp.GDI32.dll_DeleteObject]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x31]
mov rcx, rdi
call qword [sym.imp.USER32.dll_SendMessageW]
lea rdx, [0x100062c88]
mov rcx, rdi
mov qword [rsi + 0x420], rax
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov r8, qword [rsp + 0xb8]
mov r9d, 1
mov rcx, rdi
lea edx, [r9 + 0x2f]
call qword [sym.imp.USER32.dll_SendMessageW]
lea r11, [rsp + 0x70]
mov rax, rsi
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
mov ebx, 0xfffffff0
mov rcx, rdi
mov dword [rsi + 0x10], ebp
mov edx, ebx
call qword [sym.imp.USER32.dll_GetWindowLongPtrW]
mov edx, ebx
mov rcx, rdi
or rax, 0xd
mov r8, rax
call qword [sym.imp.USER32.dll_SetWindowLongPtrW]
lea edx, [rbx - 4]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowLongPtrW]
lea edx, [rbx - 4]
mov rcx, rdi
btr rax, 9
mov r8, rax
call qword [sym.imp.USER32.dll_SetWindowLongPtrW]
mov dword [rsp + 0x30], 0x77
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x100022da3
lea edx, [rax + 0x31]
xor r9d, r9d
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.USER32.dll_SendMessageW]
mov qword [rsi + 0x420], rax
jmp 0x100022da3
Function at 0x1000238e0
Capabilities:
Check http status code

Disassembly:
mov ebx, 0x13
jmp case.0x1000239a8.85
mov ebx, 0x12
jmp case.0x1000239a8.85
mov ebx, 0x16
jmp case.0x1000239a8.85
cmp edi, 0xb5
je 0x100023896
cmp edi, 0xb6
je 0x10002388c
cmp edi, 0x104
jne 0x10002386a
mov ebx, 0x1b
jmp case.0x1000239a8.85
lea edx, [rsi + 1]
mov rcx, qword [rbp]
call fcn.100024704
mov qword [rbp], rsi
jmp 0x100023940
mov ebx, 7
jmp case.0x1000239a8.85
mov ebx, 8
jmp case.0x1000239a8.85
mov ebx, 6
jmp case.0x1000239a8.85
cmp edi, 0x138
jle case.0x1000239a8.85
cmp edi, 0x13c
jg case.0x1000239a8.85
mov ebx, 0x19
jmp case.0x1000239a8.85
mov ebx, 3
jmp case.0x1000239a8.85
mov ebx, 4
jmp case.0x1000239a8.85
mov ebx, 0x1a
jmp case.0x1000239a8.85
jmp case.0x1000239a8.85
mov ebx, 2
jmp case.0x1000239a8.85
mov ebx, 5
jmp case.0x1000239a8.85
mov ebx, 0x18
jmp case.0x1000239a8.85
mov ebx, 0xf
jmp case.0x1000239a8.85
mov rax, rsp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x70
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov r13d, r9d
mov r14d, r8d
mov edi, edx
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov r12, rax
xor esi, esi
cmp rax, rsi
je 0x100023a1c
lea rdx, [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowRect]
mov rbp, qword [rsp + 0xc0]
cmp qword [rbp], rsi
jne 0x100023837
mov ebx, esi
lea eax, [rdi - 0x2bc]
cmp eax, 0x3f
jbe 0x10002384c
lea eax, [rdi - 0x42f]
cmp eax, 5
jbe 0x100023856
lea eax, [rdi - 0x82]
cmp eax, 9
jbe 0x100023a35
mov eax, 0xa8
cmp edi, eax
jg 0x1000247f3
cmp edi, eax
je 0x1000136a2
add edi, 0xffffffb0
cmp edi, 0x49
ja case.0x1000239a8.85
movsxd rax, edi
lea rdx, [0x100000000]
movzx eax, byte [rdx + rax + 0x2cd54]
mov ecx, dword [rdx + rax*4 + 0x2cd20]
add rcx, rdx
jmp rcx
mov ebx, 0xe
jmp case.0x1000239a8.85
mov ecx, 0x430
call fcn.100001c10
mov rdi, rax
mov qword [rsp + 0xa0], rax
cmp rax, rsi
je 0x100023a18
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x60], xmm0
call fcn.100001bd8
movsxd rcx, ebx
mov rdx, qword [rax + rcx*8]
mov ecx, dword [rsp + 0xd0]
mov dword [rsp + 0x38], ecx
mov eax, dword [rsp + 0xc8]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], r13d
mov r9d, r14d
mov r8, r12
lea rdx, [rsp + 0x60]
mov rcx, rdi
call fcn.100022c0c
mov rsi, rax
mov qword [rbp], rsi
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
mov ebx, 9
jmp case.0x1000239a8.85
mov ebx, 0x10
jmp case.0x1000239a8.85
mov ebx, 0xd
jmp case.0x1000239a8.85
mov ebx, 0xa
jmp case.0x1000239a8.85
mov ebx, 0xb
jmp case.0x1000239a8.85
cmp edi, 0x140
jg 0x100024829
cmp edi, 0x13d
jge 0x1000238a0
cmp edi, 0xab
jl case.0x1000239a8.85
cmp edi, 0xb0
jg 0x100016c10
mov ebx, 0x17
jmp case.0x1000239a8.85
cmp edi, 0x141
jl case.0x1000239a8.85
cmp edi, 0x143
jle 0x1000238c3
cmp edi, 0x191
je 0x1000238b9
cmp edi, 0x192
je case.0x1000239a8.81
cmp edi, 0x194
je 0x1000238af
cmp edi, 0x420
je case.0x1000239a8.81
jmp 0x1000238aa
mov ebx, 0x14
jmp case.0x1000239a8.85
mov ebx, 0x11
jmp case.0x1000239a8.85
Function at 0x100025b3c
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbp
push rsi
push rdi
push r12
sub rsp, 0x50
mov eax, dword [0x100073580]
mov ebp, r8d
mov esi, edx
mov rdi, rcx
cmp eax, edx
je 0x100025cc5
cmp eax, 3
je 0x10002df89
mov rax, qword [rcx + 0x5f0]
test rax, rax
je 0x100025b82
cmp qword [rax + 0xb0], 0
jne 0x10002dfbf
cmp dword [0x1000747b4], 0
movabs r12, 0x8001000000010000
jne 0x10002dfe2
mov rcx, rdi
call fcn.100025cf4
mov rcx, qword [0x1000735d0]
mov dword [0x100073580], esi
mov dword [0x100073588], ebp
call qword [sym.imp.USER32.dll_GetParent]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetMenu]
and dword [rsp + 0x20], 0
mov edx, 0x130
lea r8d, [rdx + 3]
lea r9d, [rsi + 0x130]
mov rcx, rax
call qword [sym.imp.USER32.dll_CheckMenuRadioItem]
and qword [rsp + 0x40], 0
lea rax, [rsp + 0x88]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
lea rdx, str.SoftwareMicrosoftCalc
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x28], 0x20006
and dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x100025c67
mov rcx, qword [rsp + 0x88]
lea rax, [rsp + 0x78]
lea rdx, str.layout
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x78], esi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdi, [0x100073460]
xor edx, edx
mov rcx, rdi
call fcn.1000234a8
xor edx, edx
mov rcx, rdi
call fcn.100023a50
mov rcx, rdi
call fcn.100022610
mov rcx, qword [0x1000735f0]
mov edx, reloc.OLEAUT32.dll_DllRegisterServer
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
call qword [sym.imp.USER32.dll_SetFocus]
call fcn.100001bd8
lea rcx, [0x100073a58]
xor edx, edx
call fcn.1000021a0
cmp dword [0x1000747b4], 0
jne 0x10002e036
mov rbp, qword [rsp + 0x70]
add rsp, 0x50
pop r12
pop rdi
pop rsi
ret
mov rcx, qword [rcx + 0xb48]
test rcx, rcx
je 0x100025b82
cmp qword [rcx + 0xb0], 0
je 0x100025b82
mov rax, qword [rcx]
mov edx, 0x2b
call qword [rax + 0x18]
test al, al
jne 0x100025b82
jmp 0x100025cc5
movzx edx, word [rax + 0xd0]
shl edx, 0x10
or rdx, 0x94
call fcn.100029f90
test eax, eax
jne 0x100025b82
jmp 0x100025cc5
mov al, byte [0x1000747b8]
cmp al, 4
jae 0x10002dff4
test al, al
jne 0x100025b99
test qword [0x1000747a0], r12
je 0x100025b99
mov rcx, qword [0x1000747a8]
mov rax, rcx
and rax, r12
cmp rax, rcx
jne 0x100025b99
mov rcx, qword [0x100073280]
lea rdx, [0x100064cb8]
mov r8d, 0x1a
call fcn.10003f210
nop
jmp 0x100025b99
mov al, byte [0x1000747b8]
cmp al, 4
jae 0x10002e048
test al, al
jne 0x100025cc5
test qword [0x1000747a0], r12
je 0x100025cc5
mov rcx, qword [0x1000747a8]
mov rax, rcx
and rax, r12
cmp rax, rcx
jne 0x100025cc5
mov rcx, qword [0x100073280]
lea rdx, [0x100064cc8]
mov r8d, 0x1b
call fcn.10003f210
nop
jmp 0x100025cc5
Function at 0x100025f50
Capabilities:
Get graphical window text

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x440
mov rax, qword [0x1000730b0]
xor rax, rsp
mov qword [rsp + 0x430], rax
mov rbx, rdx
mov rbp, rcx
xor edi, edi
mov rcx, qword [rbx + 0x20]
lea edx, [rdi + 1]
mov rsi, r9
mov r12, r8
call qword [sym.imp.GDI32.dll_SetBkMode]
test rsi, rsi
je 0x100025fa0
mov rcx, qword [rbx + 0x20]
mov rdx, rsi
call qword [sym.imp.GDI32.dll_SelectObject]
mov rdi, rax
mov rcx, qword [rbx + 0x20]
mov edx, 0x5b391e
call qword [sym.imp.GDI32.dll_SetTextColor]
lea r8, [0x100062f20]
lea rcx, [rsp + 0x30]
mov edx, 0x200
call sub.msvcrt.dll_wcscpy_s
mov rcx, qword [rbx]
lea rdx, [rsp + 0x3a]
mov r8d, 0x1fb
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rcx, qword [rbx + 0x20]
lea r9, [rbx + 0x28]
lea rdx, [rsp + 0x30]
or r8d, 0xffffffff
mov dword [rsp + 0x20], 0x24
call qword [sym.imp.USER32.dll_DrawTextW]
test rdi, rdi
je 0x10002600a
mov rcx, qword [rbx + 0x20]
mov rdx, rdi
call qword [sym.imp.GDI32.dll_SelectObject]
xor edx, edx
mov rcx, r12
lea r8d, [rdx + 4]
call qword [sym.imp.USER32.dll_SetWindowLongW]
mov r8d, dword [rsp + 0x490]
cmp r8d, 0xffffffff
je 0x100026032
mov rdx, qword [rbx]
mov rcx, rbp
call fcn.100023ae8
mov eax, 1
mov rcx, qword [rsp + 0x430]
xor rcx, rsp
call fcn.100001c30
add rsp, 0x440
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x100028fec
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
push r14
push r15
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [rcx + 0x18]
mov r8d, 0x17
mov r14, r9
mov ebx, 0x80004005
call qword [sym.imp.KERNEL32.DLL_FindResourceW]
xor esi, esi
mov rbp, rax
cmp rax, rsi
je 0x100031584
mov rcx, qword [rdi + 0x18]
mov rdx, rax
call qword [sym.imp.KERNEL32.DLL_SizeofResource]
mov r12d, eax
shr r12d, 1
je 0x1000290d5
mov rcx, qword [rdi + 0x18]
mov rdx, rbp
call qword [sym.imp.KERNEL32.DLL_LoadResource]
cmp rax, rsi
je 0x100031584
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_LockResource]
mov r13, rax
cmp rax, rsi
je 0x1000290d5
lea ecx, [r12 + 1]
lea eax, [rsi + 2]
lea r15, [rsi - 1]
mov ebx, esi
mul rcx
cmovo rax, r15
mov rcx, rax
call fcn.100001f90
lea rdi, [r12 + r12]
mov rdx, r13
mov r8, rdi
mov rcx, rax
mov rbp, rax
call sub.msvcrt.dll_memcpy
mov word [rdi + rbp], si
cmp rbp, rsi
je 0x1000290bd
xor eax, eax
mov rcx, r15
mov rdi, rbp
repne scasw ax, word [rdi]
not rcx
lea esi, [rcx - 1]
mov r8d, esi
mov rdx, rbp
mov rcx, r14
call fcn.100022360
mov rcx, rbp
call sub.msvcrt.dll_free
jmp 0x1000290d5
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
call qword [sym.imp.KERNEL32.DLL_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
cmp eax, esi
cmovle ebx, eax
jmp 0x1000290d5
Function at 0x100029848
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
push r13
push r14
sub rsp, 0x20
mov r13, rcx
mov r12d, edx
lea rcx, [0x1000755a0]
xor edx, edx
xor ebx, ebx
call fcn.10002784c
lea r14d, [rbx + 1]
mov ebp, r14d
jmp 0x100029884
mov rsi, rax
test rax, rax
je 0x10002cf78
test rbx, rbx
jne 0x10002cf78
mov eax, r12d
lea edx, [rbx + 6]
xor r9d, r9d
shr eax, 4
mov rcx, rsi
add ax, r14w
movzx r8d, ax
call qword [sym.imp.KERNEL32.DLL_FindResourceExW]
mov rbx, rax
test rax, rax
je 0x10002cf62
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_LoadResource]
test rax, rax
je 0x10002cf5b
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_LockResource]
mov rdi, rax
test rax, rax
je 0x10002cf5b
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_SizeofResource]
mov ecx, r12d
mov r11d, eax
add r11, rdi
and ecx, 0xf
jbe 0x10002991c
cmp rdi, r11
jae 0x10002cf5b
add ecx, 0xffffffff
movzx eax, word [rdi]
lea rdi, [rdi + rax*2 + 2]
jne 0x100029906
cmp rdi, r11
jae 0x10002cf5b
movzx eax, word [rdi]
neg ax
sbb rbx, rbx
and rbx, rdi
test rbx, rbx
je 0x10002cf62
test rsi, rsi
je 0x10002cf7f
mov r8d, r12d
mov rdx, rsi
mov rcx, r13
call fcn.100029980
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r13
pop r12
ret
xor ebx, ebx
jmp 0x100029931
lea rcx, [0x1000755a0]
mov edx, ebp
call fcn.10002784c
add ebp, r14d
jmp 0x100029884
xor esi, esi
jmp 0x10002993a
xor eax, eax
jmp 0x100029951