joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41024a70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x411490e8
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x411bade8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ebx
push eax
lea ecx, [ebp + 0xc]
push ecx
mov ecx, esi
call fcn.41010e70
mov ecx, dword [esi + 4]
xor eax, eax
test ecx, ecx
setne al
mov dword [ebp - 4], 0
test eax, eax
jne 0x41024ac9
push 0x80004005
call fcn.410011f0
mov eax, dword [ebp + 0xc]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41024af6
test dx, dx
je 0x41024af2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41024af6
add eax, 4
add ecx, 4
test dx, dx
jne 0x41024ad0
xor eax, eax
jmp 0x41024afb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
setne al
test al, al
je 0x41024b26
mov eax, dword [esi]
test eax, eax
je 0x41024b2b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 0x411584dc
lea ecx, [esi + 4]
mov dword [esi], 0
call fcn.410016e0
cmp dword [esi], 0
jne 0x41024b7e
mov edx, dword [ebp + 8]
push 0x20019
push ebx
push edx
mov ecx, esi
call fcn.41010fa0
mov edi, eax
test edi, edi
je 0x41024b7e
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41024b68
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
push ecx
mov ecx, dword [ebp + 0x10]
push edx
mov edx, dword [esi]
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41024bc1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x4102beb0
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41149bf0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x411bade8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp + 8]
push ebx
push str.STEP_1_11:_Get_SID_for_current_user__s_
push 0x1000008
xor esi, esi
push 0x3f9
push str.WinPrinter.cpp
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x1c], esi
call fcn.41002c10
add esp, 0x14
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x14]
push ecx
push esi
lea edx, [ebp - 0x18]
push edx
push esi
push ebx
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x4102bf46
push 0x411a29cc
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], 0x408
call fcn.4112fac9
mov ecx, dword [ebp - 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push ecx
push esi
call edi
mov esi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
call esi
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
test eax, eax
jne 0x4102bf7a
push 0x411a29cc
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x28], 0x40c
call fcn.4112fac9
mov ecx, dword [ebp - 0x14]
lea edx, [ecx + ecx]
push edx
push 8
call edi
push eax
call esi
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
jne 0x4102bfa6
push 0x411a29cc
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x2c], 0x40f
call fcn.4112fac9
lea ecx, [ebp + 8]
push ecx
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x14]
push edx
mov edx, dword [ecx]
push esi
lea eax, [ebp - 0x18]
push eax
push edx
push ebx
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x4102bfdb
push 0x411a29cc
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x30], 0x419
call fcn.4112fac9
push esi
push str.____SID_found_in_Domain___s_
push 0x1000008
push 0x41c
push str.WinPrinter.cpp
call fcn.41002c10
add esp, 0x14
jmp 0x4102c037
test esi, esi
je 0x4102c047
push esi
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4102dcc0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41149c50
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1f6c
call fcn.4112e9d0
mov eax, dword [0x411bade8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x1c]
push str.STEP_4b_11:_CheckIfUserSIDOrLogonSIDExistInDACL...
push 0x1000001
mov dword [ebp - 0x1f68], eax
mov eax, dword [ebp + 0x20]
push 0x706
push str.WinPrinter.cpp
mov dword [ebp - 0x1f64], edi
mov dword [ebp - 0x1f60], ecx
mov dword [ebp - 0x1f6c], edx
mov dword [ebp - 0x1f70], eax
mov dword [ebp - 0x1f5c], 1
call fcn.41002c10
xor esi, esi
add esp, 0x10
mov dword [ebp - 4], esi
cmp dword [edi], esi
jne 0x4102dd60
lea eax, [esi + 1]
jmp 0x4102df15
mov eax, dword [edi]
cmp esi, eax
jae 0x4102df0f
push eax
lea edi, [esi + 1]
push edi
push str.____Get_ACE__d_of__d.
push 0x1000001
push 0x713
push str.WinPrinter.cpp
call fcn.41002c10
mov edx, dword [ebp - 0x1f68]
add esp, 0x18
lea ecx, [ebp - 0x1f58]
push ecx
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
jne 0x4102ddbf
push 0x411a29cc
lea eax, [ebp - 0x1f78]
push eax
mov dword [ebp - 0x1f78], 0x716
call fcn.4112fac9
xor ecx, ecx
push 0x7d0
lea eax, [ebp - 0x1f54]
mov word [ebp - 0xfb4], cx
mov ecx, dword [ebp - 0x1f58]
push eax
xor edx, edx
push ecx
mov dword [ebp - 0x1f74], 0x7d0
mov word [ebp - 0x1f54], dx
call fcn.4102d630
mov eax, dword [ebp - 0x1f58]
add esp, 0xc
cmp byte [eax], 0
jne 0x4102dec8
lea edx, [ebp - 0x1f74]
push edx
lea ecx, [ebp - 0xfb4]
push ecx
add eax, 8
push eax
call fcn.4102db80
lea edx, [ebp - 0x1f54]
push edx
lea eax, [ebp - 0xfb4]
push eax
push str.______User:__s__ACE:__s
push 0x1000001
push 0x727
push str.WinPrinter.cpp
call fcn.41002c10
mov ecx, dword [ebp - 0x1f58]
mov edx, dword [ebp - 0x1f60]
mov esi, dword [sym.imp.ADVAPI32.dll_EqualSid]
add esp, 0x24
add ecx, 8
push ecx
push edx
call esi
test eax, eax
je 0x4102de85
push str._________User_SID_is_already_in_ACL.
push 0x1000001
push 0x72d
push str.WinPrinter.cpp
mov dword [ebx], 1
call fcn.41002c10
add esp, 0x10
mov eax, dword [ebp - 0x1f6c]
test eax, eax
je 0x4102dec8
mov ecx, dword [ebp - 0x1f58]
add ecx, 8
push ecx
push eax
call esi
test eax, eax
je 0x4102dec8
mov edx, dword [ebp - 0x1f70]
push str._________Logon_SID_is_already_in_ACL.
push 0x1000001
push 0x734
push str.WinPrinter.cpp
mov dword [edx], 1
call fcn.41002c10
add esp, 0x10
mov esi, edi
mov edi, dword [ebp - 0x1f64]
jmp 0x4102dd60
mov eax, dword [ebp - 0x1f5c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.4112e1a6
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x41030b50
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x411bade8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
push str.Entering_CAdvanced::GetModuleVersion
push 0x41157f9c
push 0x1000001
push 0x206
push str.WMIProv.cpp
call fcn.41002c10
add esp, 0x14
push 0x104
lea eax, [ebp - 0x20c]
push eax
xor esi, esi
push edi
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x214], esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x41030bbe
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.4112e1a6
mov esp, ebp
pop ebp
ret
push ebx
lea ecx, [ebp - 0x214]
push ecx
lea edx, [ebp - 0x20c]
push edx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
cmp edi, esi
je 0x41030c3c
cmp ebx, esi
je 0x41030c3c
mov eax, dword [ebp - 0x214]
push ebx
push edi
push eax
lea ecx, [ebp - 0x20c]
push ecx
call sub.VERSION.dll_GetFileVersionInfoW
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x210]
push eax
push 0x41158aa4
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x41030c35
mov eax, dword [ebp - 0x210]
movzx esi, byte [eax + 0xa]
movzx ecx, byte [eax + 8]
movzx edx, word [eax + 0xe]
shl esi, 8
or esi, ecx
shl esi, 0x10
or esi, edx
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [ebp - 4]
pop ebx
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.4112e1a6
mov esp, ebp
pop ebp
ret
Function at 0x41031130
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x411bade8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push str.Entering_CTPACWMI::ServiceStop
push 0x41157f9c
push 0x1000001
push 0x65b
push str.WMIProv.cpp
call fcn.41002c10
add esp, 0x14
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x41031192
push 0xf01ff
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x410311a5
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.4112e1a6
mov esp, ebp
pop ebp
ret
push ebx
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push 0x7530
lea ecx, [ebp - 0x20]
push ecx
push 1
push esi
call fcn.41030f40
add esp, 0x10
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, eax
call esi
push edi
call esi
mov ecx, dword [ebp - 4]
neg ebx
sbb eax, eax
pop ebx
neg eax
pop edi
xor ecx, ebp
dec eax
pop esi
call fcn.4112e1a6
mov esp, ebp
pop ebp
ret
Function at 0x41031600
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
push str.Entering_CTPACWMITList::ReadNameTranslationList
push 0x41157f9c
push 0x1000001
push 0x89d
push str.WMIProv.cpp
call fcn.41002c10
add esp, 0x14
lea eax, [ebp - 8]
push eax
push str.SoftwareThinPrintTPAutoConnect
xor edi, edi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 8], 0
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov ecx, dword [ebp + 8]
mov esi, eax
call fcn.41041c83
test esi, esi
jne 0x41031770
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
add dword [ebp - 4], 0x400
test edi, edi
je 0x41031675
push edi
call fcn.4103eec2
add esp, 4
mov eax, dword [ebp - 4]
shr eax, 1
xor ecx, ecx
add eax, 2
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.4103eeb7
mov edi, eax
mov eax, dword [ebp - 4]
add eax, 4
push eax
push 0
push edi
call fcn.4112eb40
mov eax, dword [ebp - 8]
add esp, 0x10
lea ecx, [ebp - 4]
push ecx
push edi
lea edx, [ebp - 0xc]
push edx
push 0
push str.NameTranslation
push eax
call esi
cmp dword [ebp - 4], 0xf0000
jae 0x410316cd
cmp eax, 0xea
je 0x41031661
test eax, eax
jne 0x41031759
cmp dword [ebp - 0xc], 7
jne 0x41031759
mov ecx, edi
cmp word [edi], ax
je 0x4103173b
mov eax, ecx
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x410316e7
sub eax, esi
sar eax, 1
cmp word [ecx + eax*2 + 2], dx
lea esi, [ecx + eax*2 + 2]
je 0x41031713
push ecx
mov ecx, dword [ebp + 8]
call fcn.41041eef
mov ecx, dword [ebp + 8]
push esi
call fcn.41041eef
mov eax, esi
lea edx, [eax + 2]
jmp 0x41031720
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41031720
sub eax, edx
sar eax, 1
cmp word [esi + eax*2 + 2], 0
lea ecx, [esi + eax*2 + 2]
jne 0x410316e2
push edi
call fcn.4103eec2
mov ecx, dword [ebp - 8]
add esp, 4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x41031766
push edi
call fcn.4103eec2
add esp, 4
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41033050
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push str.Entering_CTPACWMITList::WriteNameTranslationList
push 0x41157f9c
push 0x1000001
push 0x8df
push str.WMIProv.cpp
call fcn.41002c10
add esp, 0x14
lea eax, [ebp - 4]
push eax
push str.SoftwareThinPrintTPAutoConnect
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x4103309c
xor eax, eax
mov esp, ebp
pop ebp
ret
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 4]
mov ebx, 2
test eax, eax
je 0x410330bd
mov ecx, dword [eax + 8]
mov eax, dword [eax]
mov edx, dword [ecx - 0xc]
lea ebx, [ebx + edx*2 + 2]
test eax, eax
jne 0x410330ad
push ebx
call fcn.4103eeb7
add esp, 4
mov dword [ebp - 8], eax
test eax, eax
je 0x41033157
push edi
push ebx
push 0
push eax
mov edi, eax
call fcn.4112eb40
mov esi, dword [esi + 4]
add esp, 0xc
test esi, esi
je 0x41033131
mov ecx, dword [esi + 8]
mov edx, edi
lea esp, [esp]
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
test ax, ax
jne 0x410330f0
mov eax, dword [esi + 8]
push eax
push str.Adding_string___s_
push 0x1000001
push 0x900
push str.WMIProv.cpp
call fcn.41002c10
mov ecx, dword [esi + 8]
mov esi, dword [esi]
mov edx, dword [ecx - 0xc]
add esp, 0x14
lea edi, [edi + edx*2 + 2]
test esi, esi
jne 0x410330e7
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 4]
push ebx
push edi
push 7
push 0
push str.NameTranslation
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push edi
mov esi, eax
call fcn.4103eec2
add esp, 4
pop edi
jmp 0x4103315c
mov esi, 8
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
pop esi
sete al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41033180
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4114a058
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x411bade8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push str.Entering_CRegKeyEx::SetValueMultiSZ
push 0x41157f9c
push 0x1000001
push 0x1ed
push str.RegKeyEx.h
mov dword [ebp - 4], 0
call fcn.41002c10
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
add esp, 0x14
push eax
mov eax, dword [esi]
push ecx
push 7
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4103320e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41037380
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
lea eax, [ebp - 4]
push eax
xor ebx, ebx
push str.SystemCurrentControlSetControlProductOptions
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x41037443
mov eax, dword [ebp - 4]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [ebp - 8]
push ecx
push ebx
lea edx, [ebp - 0xc]
push edx
push ebx
push str.ProductSuite
push eax
call esi
test eax, eax
jne 0x41037442
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x41037442
push edi
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x41037441
mov eax, dword [ebp - 4]
lea ecx, [ebp - 8]
push ecx
push edi
lea edx, [ebp - 0xc]
push edx
push ebx
push str.ProductSuite
push eax
call esi
test eax, eax
jne 0x41037437
cmp dword [ebp - 0xc], 7
jne 0x41037437
mov esi, edi
cmp byte [edi], bl
je 0x41037437
mov ebx, dword [ebp + 8]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x41037430
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [esi + eax + 1], 0
lea esi, [esi + eax + 1]
jne 0x41037410
jmp 0x41037437
mov dword [ebp - 0x10], 1
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ebx, dword [ebp - 0x10]
pop edi
pop esi
mov eax, dword [ebp - 4]
test eax, eax
je 0x41037451
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41047324
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x4114e95c
call fcn.4113101a
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x41047349
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x4104739b
call fcn.41040000
push eax
lea ecx, [ebp - 0x10]
call fcn.4103f506
mov ecx, dword [esi + 0x6c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.4112e1b5
push eax
call fcn.41001160
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.410012c0
mov eax, esi
call fcn.411310f2
ret 8

Function at 0x4104890a
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.410485ae
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x41048954
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.4103ff01
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.4103fed2
jmp 0x4104895f
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.410475af
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x41048965
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.41046fee
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x410489a2
call fcn.410485ae
mov dword [esi + 0xc], 1
jmp 0x410489a7
call fcn.410485ae
cmp dword [esi], 0
je 0x410489f0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
jle 0x410489c8
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.4103ff01
jmp 0x410489da
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.4103f6c4
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.4103fed2
jmp 0x41048a14
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x41048a14
push dword [esi]
push dword [ebp + 8]
call fcn.410475af
pop esi
pop ebp
ret 0xc
Function at 0x4104f114
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x4104f15b
call fcn.4104280e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4104f15b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4104f177
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.4104ec14
mov esi, eax
test edi, edi
je 0x4104f175
test ebx, ebx
je 0x4104f175
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4105142f
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x411bade8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x41051464
xor eax, eax
jmp 0x410514b7
lea eax, [ebp - 0x210]
push eax
call fcn.41131124
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x41051495
push 0x41158aa4
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.41130532
add esp, 0xc
test eax, eax
jne 0x41051460
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.41130532
add esp, 0xc
test eax, eax
jne 0x41051460
lea eax, [ebp - 0x210]
push eax
call fcn.4104056e
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.4112e1a6
leave
ret

Function at 0x41053a59
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.4104280e
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41053a92
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.41053696
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x41053af0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x78], ebx
test ebx, 0xffff0000
jne 0x41053b14
cmp dword [edi + 0x74], 0
jne 0x41053b14
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.4104280e
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.41053ab1
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8