joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6113a0
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], edx
mov dword [ebp - 8], ecx
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
lea ecx, [ebp - 0x20]
lea edx, [ebp - 0x38]
mov eax, 1
call fcn.0040d0e0
call fcn.0040f290
push eax
test eax, eax
jne 0x6114c3
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov edx, dword [edx]
call dword [edx + 0x70]
push eax
push 2
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x6113fd
jmp 0x611459
lea eax, [ebp - 0x40]
call fcn.00404c10
mov dword [ebp - 0x40], 0
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov edx, dword [edx]
call dword [edx + 0x70]
push edx
push eax
lea eax, [ebp - 0x40]
call fcn.004ce430
push dword [ebp - 0x40]
lea eax, [ebp - 0x44]
call fcn.00404c10
mov dword [ebp - 0x44], 0
lea edx, [ebp - 0x44]
mov eax, dword [ebp - 0x10]
call fcn.004ce3f0
mov edx, dword [ebp - 0x44]
mov ecx, str._DataSize
mov eax, str.TWin32WidgetSet.ClipboardGetOwnerShip_DataHandle
call fcn.004cdc00
mov eax, dword [ebp - 0xc]
mov byte [eax - 0x10], 0
jmp 0x6114c3
push dword [ebp - 0x10]
call sub.kernel32.dll_GlobalLock
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x50]
lea edx, [ebp - 0x68]
mov eax, 1
call fcn.0040d0e0
call fcn.0040f290
push eax
test eax, eax
jne 0x61149c
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov edx, dword [edx]
call dword [edx + 0x70]
mov ecx, eax
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
mov ebx, dword [ebp - 8]
mov ebx, dword [ebx]
call dword [ebx + pe_nt_image_headers32]
call fcn.0040d3b0
push dword [ebp - 0x10]
call sub.kernel32.dll_GlobalUnlock
pop eax
test eax, eax
je 0x6114b8
dec eax
test eax, eax
je 0x6114b3
call fcn.0040d520
push dword [ebp - 0x10]
push dword [ebp - 4]
call sub.user32.dll_SetClipboardData
call fcn.0040d3b0
lea eax, [ebp - 0x44]
call fcn.00404c10
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x40]
call fcn.00404c10
mov dword [ebp - 0x40], 0
pop eax
test eax, eax
je 0x6114f0
call fcn.0040d520
mov ebx, dword [ebp - 0x70]
leave
ret
Function at 0x632d00
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ebx
mov dword [ebp - 4], esi
cmp byte [0x796be0], 0
je 0x632d24
mov eax, 0x796c30
test eax, eax
setne bl
jmp 0x632e0a
mov eax, str.USER32
push eax
call sub.kernel32.dll_GetModuleHandleA
mov esi, eax
test eax, eax
je 0x632dbb
mov eax, str.GetSystemMetrics
push eax
push esi
call sub.kernel32.dll_GetProcAddress
mov dword [0x796bf0], eax
mov eax, str.MonitorFromWindow
push eax
push esi
call sub.kernel32.dll_GetProcAddress
mov dword [0x796c00], eax
mov eax, str.MonitorFromRect
push eax
push esi
call sub.kernel32.dll_GetProcAddress
mov dword [0x796c10], eax
mov eax, str.MonitorFromPoint
push eax
push esi
call sub.kernel32.dll_GetProcAddress
mov dword [0x796c20], eax
mov eax, str.EnumDisplayMonitors
push eax
push esi
call sub.kernel32.dll_GetProcAddress
mov dword [0x796c40], eax
mov eax, str.GetMonitorInfoA
push eax
push esi
call sub.kernel32.dll_GetProcAddress
mov dword [0x796c30], eax
mov eax, str.EnumDisplayDevicesA
push eax
push esi
call sub.kernel32.dll_GetProcAddress
mov dword [0x796c50], eax
mov byte [0x796be0], 1
mov bl, 1
jmp 0x632e0a
mov dword [0x796bf0], 0
mov dword [0x796c00], 0
mov dword [0x796c10], 0
mov dword [0x796c20], 0
mov dword [0x796c40], 0
mov dword [0x796c30], 0
mov dword [0x796c50], 0
mov byte [0x796be0], 1
mov bl, 0
mov al, bl
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 4]
leave
ret
Function at 0x6a9a70
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
cmp eax, 0xca
jne 0x6a9ab4
mov eax, dword [ebp - 4]
call fcn.006b0b50
mov eax, dword [ebp - 4]
cmp byte [eax + 0x40], 0
je 0x6a9aaa
mov eax, dword [ebp - 4]
mov dword [eax + 0x14], 0xcf
mov byte [ebp - 8], 1
jmp 0x6a9b9b
mov eax, dword [ebp - 4]
mov dword [eax + 0x14], 0xcb
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
cmp eax, 0xcb
jne 0x6a9b73
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x184]
cmp byte [eax + 0x10], 0
je 0x6a9b65
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
test eax, eax
je 0x6a9aef
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 8]
mov edx, dword [edx]
call edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x184]
mov edx, dword [edx]
call edx
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x6a9b0f
mov byte [ebp - 8], 0
jmp 0x6a9b9b
mov eax, dword [ebp - 0xc]
cmp eax, 2
je 0x6a9b65
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
test eax, eax
je 0x6a9ad8
mov eax, dword [ebp - 0xc]
cmp eax, 3
je 0x6a9b31
mov eax, dword [ebp - 0xc]
cmp eax, 1
jne 0x6a9ad8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
inc dword [eax + 4]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
mov eax, dword [edx + 4]
cmp eax, dword [ecx + 8]
jl 0x6a9ad8
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 8]
mov eax, dword [ecx + 0x110]
add dword [edx + 8], eax
jmp 0x6a9ad8
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x70]
mov dword [edx + 0x78], eax
jmp 0x6a9b90
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
cmp eax, 0xcc
je 0x6a9b90
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x14]
mov eax, dword [ebp - 4]
mov dl, 0x14
call fcn.006b3530
mov eax, dword [ebp - 4]
call fcn.006a9ba0
mov byte [ebp - 8], al
mov al, byte [ebp - 8]
leave
ret
Function at 0x6a9ba0
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
cmp eax, 0xcc
je 0x6a9c92
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x174]
mov edx, dword [edx]
call edx
mov eax, dword [ebp - 4]
mov dword [eax + 0x6c], 0
mov eax, dword [ebp - 4]
mov dword [eax + 0x14], 0xcc
jmp 0x6a9c92
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
test eax, eax
je 0x6a9c21
mov eax, dword [ebp - 4]
mov edx, dword [eax + 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x6c]
mov dword [edx + 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
mov dword [edx + 8], eax
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 8]
mov edx, dword [edx]
call edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x6c]
mov dword [ebp - 0xc], eax
push 0
mov eax, dword [ebp - 4]
lea ecx, [eax + 0x6c]
mov eax, dword [ebp - 4]
mov edx, 0
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx + 0x178]
mov ebx, dword [ebx + 4]
call ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x6c]
cmp eax, dword [ebp - 0xc]
jne 0x6a9c59
mov byte [ebp - 8], 0
jmp 0x6a9cc4
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [eax + 0x6c]
cmp eax, dword [edx + 0x54]
jb 0x6a9bec
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x174]
mov edx, dword [edx + 4]
call edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x174]
mov edx, dword [edx]
call edx
mov eax, dword [ebp - 4]
mov dword [eax + 0x6c], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x174]
cmp byte [eax + 8], 0
jne 0x6a9c59
mov eax, dword [ebp - 4]
cmp byte [eax + 0x41], 0
je 0x6a9cb6
mov eax, dword [ebp - 4]
mov dword [eax + 0x14], 0xce
jmp 0x6a9cc0
mov eax, dword [ebp - 4]
mov dword [eax + 0x14], 0xcd
mov byte [ebp - 8], 1
mov al, byte [ebp - 8]
mov ebx, dword [ebp - 0x10]
leave
ret

Function at 0x6c3340
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
call sub.kernel32.dll_GetFileSize
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
jne 0x6c3376
call sub.kernel32.dll_GetLastError
test eax, eax
je 0x6c3376
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0xc], 0xffffffff
jmp 0x6c3382
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
leave
ret
Function at 0x6c3870
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], edx
mov ebx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
test edx, edx
je 0x6c3897
dec edx
je 0x6c389e
dec edx
je 0x6c38a5
dec edx
je 0x6c38b3
dec edx
je 0x6c38ac
jmp 0x6c38b8
mov esi, 0
jmp 0x6c38b8
mov esi, 1
jmp 0x6c38b8
mov esi, 2
jmp 0x6c38b8
mov esi, 4
jmp 0x6c38b8
mov esi, 3
mov edx, dword [ebp - 4]
test edx, edx
jne 0x6c38c4
mov edx, 0x7cbe60
push ebx
push ecx
push esi
push 0
push edx
push dword [eax + 0x10]
call sub.advapi32.dll_RegSetValueExA
test eax, eax
sete al
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
leave
ret 8
Function at 0x6c4100
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
mov eax, dword [ebp - 4]
call fcn.00408320
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x5c], 0
lea ecx, [ebp - 0x3c]
lea edx, [ebp - 0x54]
mov eax, 1
call fcn.0040d0e0
call fcn.0040f290
push eax
test eax, eax
jne 0x6c42c8
mov dword [ebp - 0x20], 0
dec dword [ebp - 0x20]
mov esi, esi
inc dword [ebp - 0x20]
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x20]
mov byte [eax + edx], 0
cmp dword [ebp - 0x20], 0xf
jl 0x6c414c
mov dword [ebp - 0x20], 0
dec dword [ebp - 0x20]
lea esi, [esi]
inc dword [ebp - 0x20]
mov eax, dword [ebp - 0x20]
mov word [ebp + eax*2 - 0x18], 0
cmp dword [ebp - 0x20], 7
jl 0x6c416c
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x5c]
call fcn.00404c10
mov dword [ebp - 0x5c], 0
lea edx, [ebp - 0x5c]
mov eax, dword [ebp - 4]
call fcn.006c3fb0
mov eax, dword [ebp - 0x5c]
call fcn.00408320
lea eax, [ebp - 4]
call fcn.00404c10
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 4], eax
test eax, eax
jne 0x6c4258
jmp 0x6c42c8
mov eax, dword [ebp - 0x1c]
cmp eax, 7
jg 0x6c42c8
lea ecx, [ebp - 0x2c]
lea eax, [ebp - 4]
mov edx, 0x7c2e60
call fcn.006ce390
mov eax, dword [ebp - 0x2c]
mov edx, 0x7c2e9c
call fcn.00408880
test eax, eax
je 0x6c4263
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x6c4204
mov eax, dword [ebp - 0x1c]
mov word [ebp + eax*2 - 0x18], 0
jmp 0x6c4255
lea eax, [ebp - 0x5c]
call fcn.00404c10
mov dword [ebp - 0x5c], 0
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x5c]
mov edx, 0x7c2e78
call fcn.00408350
mov eax, dword [ebp - 0x5c]
mov edx, 0xffffffff
call fcn.00419f60
mov dword [ebp - 0x30], eax
cmp eax, 0xffff
jg 0x6c42c8
mov eax, dword [ebp - 0x30]
test eax, eax
jl 0x6c42c8
mov edx, dword [ebp - 0x1c]
mov ax, word [ebp - 0x30]
mov word [ebp + edx*2 - 0x18], ax
inc dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
test eax, eax
jne 0x6c41c4
mov dword [ebp - 0x20], 0
dec dword [ebp - 0x20]
lea esi, [esi]
inc dword [ebp - 0x20]
mov eax, dword [ebp - 0x20]
movzx eax, word [ebp + eax*2 - 0x18]
mov edx, eax
sar edx, 0x1f
and edx, 0xff
add eax, edx
sar eax, 8
mov byte [ebp - 0x24], al
mov eax, dword [ebp - 0x20]
movzx eax, word [ebp + eax*2 - 0x18]
cdq
mov ecx, 0x100
idiv ecx
mov byte [ebp - 0x28], dl
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x20]
shl eax, 1
mov cl, byte [ebp - 0x24]
mov byte [edx + eax], cl
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x20]
lea eax, [eax*2 + 1]
mov cl, byte [ebp - 0x28]
mov byte [edx + eax], cl
cmp dword [ebp - 0x20], 7
jl 0x6c4270
call fcn.0040d3b0
lea eax, [ebp - 0x5c]
call fcn.00404c10
mov dword [ebp - 0x5c], 0
lea eax, [ebp - 0x2c]
call fcn.00404c10
mov dword [ebp - 0x2c], 0
lea eax, [ebp - 4]
call fcn.00404c10
pop eax
test eax, eax
je 0x6c42fd
call fcn.0040d520
leave
ret
Function at 0x406c7d
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov eax, dword [0x55f6c0]
xor eax, ebp
mov dword [ebp + 0x398], eax
push ebx
xor eax, eax
push 0x40e
mov word [ebp - 0x78], ax
xor ebx, ebx
lea eax, [ebp - 0x76]
push ebx
push eax
call fcn.004ae4c0
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
push dword [ebp + 0x3a4]
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x406ce2
lea eax, [ebp - 0x78]
push eax
mov ecx, esi
call fcn.0040274c
mov bl, 1
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov eax, dword [ebp - 0x7c]
push dword [ebp - 0x80]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp + 0x398]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.004aa923
add ebp, 0x39c
leave
ret 4

Function at 0x407099
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x4070a3
sub eax, ecx
sar eax, 1
je 0x4070c5
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4070c5
mov al, 1
jmp 0x4070c7
xor al, al
leave
ret 4
Function at 0x40ac06
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 0xc]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x40ac0d
sub eax, ecx
sar eax, 1
lea eax, [eax + eax + 1]
push eax
push dword [esp + 0x10]
mov eax, dword [esp + 0xc]
push 1
push 0
push dword [esp + 0x18]
push dword [eax + 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb eax, eax
inc eax
ret 0xc

Function at 0x40ac41
Capabilities:
Query or enumerate registry value

Disassembly:
push 8
mov eax, 0x4cdc14
call fcn.004ae920
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
or dword [ebp - 0x10], 0xffffffff
or dword [ebp - 0x14], 0xffffffff
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [edi + 4]
call esi
test eax, eax
jne 0x40ad10
cmp dword [ebp - 0x10], 1
je 0x40ac87
cmp dword [ebp - 0x10], 2
jne 0x40ad10
mov eax, dword [ebp - 0x14]
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00489d74
mov ebx, eax
mov eax, dword [ebp - 0x14]
lea eax, [eax + eax + 1]
push eax
push 0
push ebx
call fcn.004ae4c0
add esp, 0x10
lea eax, [ebp - 0x14]
push eax
push ebx
lea eax, [ebp - 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [edi + 4]
call esi
test eax, eax
jne 0x40ad08
cmp dword [ebp - 0x10], 1
je 0x40acd7
cmp dword [ebp - 0x10], 2
jne 0x40ad08
push ebx
lea ecx, [ebp + 8]
call fcn.0040253e
mov ecx, dword [ebp + 0xc]
and dword [ebp - 4], 0
push eax
call fcn.0040260d
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00402883
push ebx
call fcn.00489d7f
xor eax, eax
pop ecx
inc eax
jmp 0x40ad12
push ebx
call fcn.00489d7f
jmp 0x40ad02
xor eax, eax
call fcn.004ae9f8
ret 8

Function at 0x40ad1a
Capabilities:
Set registry value

Disassembly:
push 4
push dword [esp + 0xc]
push 4
push 0
push dword [esp + 0x14]
push dword [eax + 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb eax, eax
inc eax
ret 8

Function at 0x40adb1
Capabilities:
Set registry value

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push 3
push 0
push dword [esp + 0x14]
push dword [eax + 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb eax, eax
inc eax
ret 0xc
Function at 0x40b900
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ecx
mov eax, dword [esi + 8]
test eax, eax
je 0x40b9dd
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push ebp
push edi
push 1
push dword [esi + 0x10]
push 0x30
push eax
call ebx
movzx eax, word [esi]
push 5
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
mov ecx, ebp
call fcn.0040b414
xor edi, edi
and dword [esp + 0xc], edi
mov dword [esp + 0x10], eax
mov eax, 0xffff
cmp word [ebp + 2], ax
lea eax, [ebp + 0x10]
je 0x40b964
lea eax, [ebp + 8]
movzx eax, word [eax]
cmp dword [esp + 0xc], eax
jge 0x40b9c6
cmp dword [esp + 0xc], 0
jne 0x40b97b
push 5
push dword [esi + 8]
jmp 0x40b97e
push 2
push edi
call dword [sym.imp.USER32.dll_GetWindow]
mov edi, eax
test edi, edi
je 0x40b9c6
push edi
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
mov ecx, dword [esp + 0x10]
cmp eax, dword [ecx + 0x14]
je 0x40b9a9
push 2
push edi
call dword [sym.imp.USER32.dll_GetWindow]
mov edi, eax
test edi, edi
jne 0x40b98a
test edi, edi
je 0x40b9c6
push 1
push dword [esi + 0x10]
push 0x30
push edi
call ebx
mov eax, dword [esp + 0x10]
call fcn.0040b490
inc dword [esp + 0xc]
jmp 0x40b94f
push dword [esi + 0xc]
call dword [sym.imp.GDI32.dll_DeleteObject]
pop edi
xor eax, eax
pop ebp
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
pop ebx
pop ecx
pop ecx
ret

Function at 0x40ba61
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4cf32a
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x55f6c0]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
lea eax, [esp + 0x18]
mov edi, SysReAllocStringLen
push eax
lea esi, [esp + 0x30]
mov dword [esp + 0x1c], edi
call fcn.0040ab2d
xor ebx, ebx
mov dword [esp + 0x50], ebx
push 0x524e08
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0x2001f
call fcn.0040253e
push ecx
mov byte [esp + 0x54], 1
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.SYSRES
call fcn.0040253e
lea ecx, [esp + 0x18]
call fcn.00406d1b
push 1
push dword [esp + 0x18]
push edi
call fcn.0040ab49
test eax, eax
je 0x40bb2a
xor eax, eax
mov word [esp + 0x1c], ax
lea edi, [esp + 0x1e]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
push 0x10
lea eax, [esp + 0x20]
push eax
push 3
push ebx
push str.LastRestorePointTime
push dword [esp + 0x44]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
call fcn.0040aba7
mov bl, 1
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.00402883
lea esi, [esp + 0x2c]
call fcn.0040aba7
mov ecx, dword [esp + 0x34]
add ecx, 0xfffffff0
call fcn.00402883
mov al, bl
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c871
Capabilities:
Get common file path

Disassembly:
push 0x210
mov eax, 0x4cdb62
call fcn.004ae989
xor edi, edi
lea esi, [ebx + 0x2018]
mov dword [ebx], vtable.CCategory.0
mov dword [ebx + 0x2004], edi
mov dword [ebx + 0x2008], edi
mov dword [ebx + 0x200c], edi
mov dword [ebx + 0x2010], edi
mov dword [ebx + 0x2014], edi
mov dword [ebp - 0x21c], ebx
mov dword [esi], vtable.CArray_class_CProblem___class_CProblem__const_const__.0
mov dword [esi + 4], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0xc], edi
mov dword [esi + 8], edi
lea ecx, [ebx + 0x202c]
mov dword [ebp - 4], edi
call fcn.00402846
push 0x2000
lea eax, [ebx + 4]
push edi
push eax
mov byte [ebp - 4], 1
call fcn.004ae4c0
add esp, 0xc
mov eax, 0x104
push eax
push eax
lea ecx, [ebx + 0x202c]
call fcn.0040298b
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0xffffffffffffffff
lea ecx, [ebx + 0x202c]
call fcn.00411fe7
push 0x5257bc
lea ecx, [ebx + 0x202c]
call fcn.00411baa
cmp dword [0x5687a8], edi
jne 0x40c946
push str.GetSystemWow64DirectoryW
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x5687a8], eax
cmp eax, edi
je 0x40c995
mov eax, dword [0x5687ac]
cmp dword [eax - 0xc], edi
jne 0x40c995
xor eax, eax
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push edi
push eax
call fcn.004ae4c0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [0x5687a8]
test eax, eax
je 0x40c995
lea eax, [ebp - 0x218]
push eax
mov ecx, 0x5687ac
call fcn.0040274c
xor edi, edi
call fcn.0047dd1f
mov eax, ebx
call fcn.004aea0c
ret
Function at 0x40ca62
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x34
mov eax, 0x4cdb26
call fcn.004ae953
mov ecx, dword [ebp + 0xc]
xor ebx, ebx
push 0xffffffffffffffff
push ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x30], ebx
call fcn.00495e7f
lea eax, [ebp - 0x40]
push eax
push ebx
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x30]
push eax
push ebx
push ebx
lea eax, [ebp - 0x24]
push eax
push ebx
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp dword [ebp - 0x24], ebx
jbe 0x40cb8c
push 0x3fc
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
call fcn.00489d74
pop ecx
mov dword [ebp - 0x1c], eax
call fcn.00460c64
mov byte [ebp - 0x15], al
mov dword [ebp - 0x28], ebx
movzx eax, word [ebp - 0x28]
cmp eax, dword [ebp - 0x24]
jae 0x40cb6c
lea ecx, [ebp - 0x40]
push ecx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x2c]
push ecx
push dword [ebp - 0x1c]
mov dword [ebp - 0x2c], 0xff
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, ebx
jne 0x40cb64
cmp byte [ebp - 0x15], bl
je 0x40cb55
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x20]
call fcn.0040253e
lea edi, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.00411b13
mov ebx, edi
call fcn.0040c520
mov ebx, eax
call fcn.0040c56d
push 0x5257d0
xor ecx, ecx
mov esi, edi
call fcn.004077ca
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
test eax, eax
jne 0x40cb4e
call fcn.00402883
xor ebx, ebx
jmp 0x40cb64
call fcn.00402883
xor ebx, ebx
mov ecx, dword [ebp + 0xc]
push dword [ebp - 0x1c]
mov eax, dword [ecx + 8]
push eax
call fcn.004961de
inc dword [ebp - 0x28]
jmp 0x40cacf
or dword [ebp - 4], 0xffffffff
jmp 0x40cb7e
cmp dword [ebp - 0x1c], ebx
je 0x40cb8c
push dword [ebp - 0x1c]
call fcn.00489d7f
pop ecx
mov ecx, dword [ebp + 0xc]
xor eax, eax
cmp dword [ecx + 8], ebx
setne al
call fcn.004ae9f8
ret
Function at 0x40cb9d
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x28
mov eax, 0x4cb22d
call fcn.004ae953
mov ecx, dword [ebp + 0xc]
xor esi, esi
push 0xffffffffffffffff
push esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x18], esi
call fcn.00495e7f
lea eax, [ebp - 0x34]
push eax
push esi
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x18]
push eax
push esi
push esi
lea eax, [ebp - 0x24]
push eax
push esi
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp dword [ebp - 0x18], esi
jbe 0x40cc71
mov ebx, 0x400
push 0x1000
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], esi
call fcn.00489d74
pop ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], esi
movzx edi, word [ebp - 0x1c]
cmp edi, dword [ebp - 0x18]
jae 0x40cc51
push 0x800
push esi
push dword [ebp - 0x14]
call fcn.004ae4c0
add esp, 0xc
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x20], ebx
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, esi
jne 0x40cc4c
mov ecx, dword [ebp + 0xc]
push dword [ebp - 0x14]
mov eax, dword [ecx + 8]
push eax
call fcn.004961de
inc dword [ebp - 0x1c]
jmp 0x40cc07
or dword [ebp - 4], 0xffffffff
jmp 0x40cc63
cmp dword [ebp - 0x14], esi
je 0x40cc71
push dword [ebp - 0x14]
call fcn.00489d7f
pop ecx
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
call fcn.004ae9f8
ret 8