joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418340
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], str.getaddrinfo
mov dword [ebp - 0x18], 0x4185c0
mov dword [ebp - 0x14], str.getnameinfo
mov dword [ebp - 0x10], 0x418e00
mov dword [ebp - 0xc], str.freeaddrinfo
mov dword [ebp - 8], fcn.00418550
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
cmp dword [0x46c9f0], 0
je 0x4183a5
mov eax, dword [ebp + 8]
and eax, 0xffff
mov eax, dword [eax*8 + 0x461eec]
jmp 0x41853f
push 0x104
lea ecx, [ebp - 0x238]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x4183c0
jmp 0x41849a
lea edx, [ebp - 0x238]
push edx
lea eax, [ebp - 0x130]
push eax
call fcn.00429bd0
add esp, 8
push str.ws2_32
lea ecx, [ebp - 0x130]
push ecx
call fcn.00429be0
add esp, 8
lea edx, [ebp - 0x130]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x418429
push str.getaddrinfo
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x418429
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x418431
jmp 0x41849a
lea edx, [ebp - 0x238]
push edx
lea eax, [ebp - 0x130]
push eax
call fcn.00429bd0
add esp, 8
push str.wship6
lea ecx, [ebp - 0x130]
push ecx
call fcn.00429be0
add esp, 8
lea edx, [ebp - 0x130]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x41849a
push str.getaddrinfo
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x41849a
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x418525
mov dword [ebp - 0x20], 0
jmp 0x4184b6
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
cmp dword [ebp - 0x20], 3
jge 0x4184f4
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + eax*8 - 0x1c]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x20]
mov dword [ebp + ecx*8 - 0x18], eax
mov edx, dword [ebp - 0x20]
cmp dword [ebp + edx*8 - 0x18], 0
jne 0x4184f2
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 4], 0
jmp 0x4184f4
jmp 0x4184ad
cmp dword [ebp - 4], 0
je 0x418525
mov dword [ebp - 0x20], 0
jmp 0x41850c
mov ecx, dword [ebp - 0x20]
add ecx, 1
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 0x20], 3
jge 0x418525
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + eax*8 - 0x18]
mov dword [edx*8 + 0x461eec], ecx
jmp 0x418503
mov dword [0x46c9f0], 1
mov edx, dword [ebp + 8]
and edx, 0xffff
mov eax, dword [edx*8 + 0x461eec]
mov esp, ebp
pop ebp
ret 4
Function at 0x418c50
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0
mov ecx, dword [ebp - 4]
mov dword [ecx], 0
mov edx, dword [ebp + 0x18]
mov byte [edx], 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x418d1d
mov ecx, dword [ebp - 0xc]
movsx edx, word [ecx + 8]
cmp edx, 2
jne 0x418cf8
mov eax, dword [ebp - 0xc]
movsx ecx, word [eax + 0xa]
cmp ecx, 4
jne 0x418cf8
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0xc]
mov dword [ebp - 8], eax
jmp 0x418cb5
mov ecx, dword [ebp - 8]
add ecx, 4
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
cmp dword [edx], 0
je 0x418cf8
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ecx]
push edx
mov ax, word [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.00418a30
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
cmp dword [edx], 0
jne 0x418ceb
mov eax, 8
jmp 0x418d62
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
add ecx, 0x1c
mov dword [ebp - 4], ecx
jmp 0x418cac
push 0x400
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
call fcn.0042a150
add esp, 0xc
mov edx, dword [ebp + 0x18]
mov byte [edx + 0x400], 0
xor eax, eax
jmp 0x418d62
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
sub eax, 0x2af9
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 3
ja case.default.0x418d3a
mov ecx, dword [ebp - 0x10]
jmp dword [ecx*4 + 0x418d68]
mov eax, 0x2af9
jmp 0x418d62
mov eax, 0x2afa
jmp 0x418d62
mov eax, 0x2afb
jmp 0x418d62
mov eax, 0x2af9
jmp 0x418d62
mov eax, 0x2af9
mov esp, ebp
pop ebp
ret 0x18

Function at 0x4192f4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
add eax, 0x18
push eax
push 0
mov ecx, dword [ebp - 4]
push ecx
push 0x41967c
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [ebp - 4]
mov dword [edx + 0x14], eax
push str._nStart_thread
call fcn.00401000
add esp, 4
mov eax, dword [ebp - 4]
cmp dword [eax + 0x14], 0
jne 0x419337
xor eax, eax
jmp 0x419349
push str._nScreenPrint_Thread_started_successfully_in_the_background...
call fcn.00401000
add esp, 4
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x41934d
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
push str._nIN_CScrPrt::SuspendPolling__
call fcn.00401000
add esp, 4
mov eax, dword [ebp - 8]
cmp dword [eax + 0x14], 0
je 0x4193a0
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [ebp - 4], 0x103
jne 0x4193a0
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push str._nSuspend_thread
call fcn.00401000
add esp, 4
push str._nOUT_CScrPrt::SuspendPolling__
call fcn.00401000
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x4193b1
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
push str._nIN_CScrPrt::ResumePolling__
call fcn.00401000
add esp, 4
mov eax, dword [ebp - 8]
cmp dword [eax + 0x14], 0
je 0x419404
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [ebp - 4], 0x103
jne 0x419404
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push str._nResume_thread
call fcn.00401000
add esp, 4
push str._nOUT_CScrPrt::ResumePolling__
call fcn.00401000
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x419415
Capabilities:
Get common file path
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44cdf2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x220
push edi
mov byte [ebp - 0x200], 0
mov ecx, 0x7c
xor eax, eax
lea edi, [ebp - 0x1ff]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x1f4
lea eax, [ebp - 0x200]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str._setupapi.dll
lea ecx, [ebp - 0x200]
push ecx
call fcn.00429be0
add esp, 8
lea ecx, [ebp - 0x21c]
call fcn.004227da
mov dword [ebp - 4], 0
push 0
lea edx, [ebp - 0x200]
push edx
lea ecx, [ebp - 0x21c]
call fcn.0042289d
test eax, eax
jne 0x4194c4
mov dword [ebp - 0x220], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call fcn.00422817
mov eax, dword [ebp - 0x220]
jmp 0x41966d
lea eax, [ebp - 0x200]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x46ca10], eax
cmp dword [0x46ca10], 0
jne 0x419513
push str.Unable_to_load_setupapi_library.
call fcn.00401000
add esp, 4
mov dword [ebp - 0x224], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call fcn.00422817
mov eax, dword [ebp - 0x224]
jmp 0x41966d
mov dword [0x46c9f8], 0
mov dword [0x46c9fc], 0
mov dword [0x46ca00], 0
mov dword [0x46ca04], 0
mov dword [0x46ca08], 0
mov dword [0x46ca0c], 0
push str.SetupDiGetClassDevsA
mov ecx, dword [0x46ca10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x46c9f8], eax
push str.SetupDiEnumDeviceInterfaces
mov edx, dword [0x46ca10]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x46c9fc], eax
push str.SetupDiOpenDeviceInterfaceA
mov eax, dword [0x46ca10]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x46ca00], eax
push str.SetupDiGetDeviceInterfaceDetailA
mov ecx, dword [0x46ca10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x46ca04], eax
push str.SetupDiOpenDeviceInterfaceRegKey
mov edx, dword [0x46ca10]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x46ca08], eax
push str.SetupDiDestroyDeviceInfoList
mov eax, dword [0x46ca10]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x46ca0c], eax
cmp dword [0x46c9f8], 0
je 0x41960d
cmp dword [0x46c9fc], 0
je 0x41960d
cmp dword [0x46ca00], 0
je 0x41960d
cmp dword [0x46ca04], 0
je 0x41960d
cmp dword [0x46ca0c], 0
je 0x41960d
cmp dword [0x46ca08], 0
jne 0x41964b
mov ecx, dword [0x46ca10]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push str.Failed_to_call_setupapi_library_functions.
call fcn.00401000
add esp, 4
mov dword [ebp - 0x228], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call fcn.00422817
mov eax, dword [ebp - 0x228]
jmp 0x41966d
mov dword [ebp - 0x22c], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call fcn.00422817
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x41bab3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44ceb8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov dword [ebp - 0x14], 0xff
push str.Enter_Get9xResourceLocale_n
call fcn.00401000
add esp, 4
push str.Control_PanelDesktopResourceLocale
lea ecx, [ebp - 0x10]
call fcn.0043d811
mov dword [ebp - 4], 0
lea eax, [ebp - 0x18]
push eax
push 0x20019
push 0
lea ecx, [ebp - 0x10]
call fcn.00404560
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41bb85
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0
push 0
push 0x46ca18
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41bb6e
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp + 8]
push edx
push str.Success_____s__n
call fcn.00401000
add esp, 8
mov dword [ebp - 0x1c], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0043d7a3
mov eax, dword [ebp - 0x1c]
jmp 0x41bbab
push str.RegQueryValue_fail_n
call fcn.00401000
add esp, 4
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.Exit_Get9xResourceLocale_n
call fcn.00401000
add esp, 4
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0043d7a3
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x41bc49
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov dword [ebp - 0x94], 0x94
lea eax, [ebp - 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x41bc71
xor eax, eax
jmp 0x41bcd3
mov ecx, dword [ebp - 0x84]
mov dword [ebp - 0x98], ecx
cmp dword [ebp - 0x98], 1
je 0x41bc91
cmp dword [ebp - 0x98], 2
je 0x41bca8
jmp 0x41bcca
cmp dword [ebp - 0x8c], 0xa
jb 0x41bca1
mov eax, 1
jmp 0x41bcd3
mov eax, 3
jmp 0x41bcd3
cmp dword [ebp - 0x90], 4
jne 0x41bcb8
mov eax, 2
jmp 0x41bcd3
cmp dword [ebp - 0x90], 5
jb 0x41bcc8
mov eax, 2
jmp 0x41bcd3
jmp 0x41bcd1
mov eax, 3
jmp 0x41bcd3
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x41bcd7
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44ced4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov dword [ebp - 0x20], ecx
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], 4
lea eax, [ebp - 0x14]
push eax
push 0x20006
push 0
lea ecx, [ebp + 8]
call fcn.00404560
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41bd82
push 4
lea ecx, [ebp + 0x10]
push ecx
push 4
push 0
lea ecx, [ebp + 0xc]
call fcn.00404560
push eax
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x41bd78
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x18], 1
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.0043d7a3
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0043d7a3
mov eax, dword [ebp - 0x18]
jmp 0x41bda7
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x1c], 0
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.0043d7a3
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0043d7a3
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41bdb7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44cef0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 4], 1
mov dword [ebp - 0x18], 4
mov dword [ebp - 0x1c], 4
lea ecx, [ebp + 8]
call fcn.00404560
push eax
push str._INTO_LoadRegistry__RegKey_is__s
call fcn.00401000
add esp, 8
lea eax, [ebp - 0x14]
push eax
push 0x20019
push 0
lea ecx, [ebp + 8]
call fcn.00404560
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x41bed2
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp + 0x10]
push edx
lea eax, [ebp - 0x18]
push eax
push 0
lea ecx, [ebp + 0xc]
call fcn.00404560
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x41be85
mov edx, dword [ebp + 0x10]
cmp dword [edx], 0
je 0x41be67
mov dword [ebp - 0x30], str.TRUE
jmp 0x41be6e
mov dword [ebp - 0x30], str.FALSE
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push str._Load_Registry_Value___s_is__s
call fcn.00401000
add esp, 0xc
jmp 0x41bec6
mov edx, dword [ebp + 0xc]
push edx
push str._ERROR___s_in_Registry_is_NOT_LOADED_in_memory_variable
call fcn.00401000
add esp, 8
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
mov dword [ebp - 0x20], 0xffffffff
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.0043d7a3
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0043d7a3
mov eax, dword [ebp - 0x20]
jmp 0x41bf1e
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41bef9
mov dword [ebp - 0x24], 0xffffffff
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.0043d7a3
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0043d7a3
mov eax, dword [ebp - 0x24]
jmp 0x41bf1e
mov dword [ebp - 0x28], 0
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.0043d7a3
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0043d7a3
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x420733
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44d508
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x338
push edi
mov dword [ebp - 0x338], ecx
mov byte [ebp - 0x328], 0
mov ecx, 0x7f
xor eax, eax
lea edi, [ebp - 0x327]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x200
lea eax, [ebp - 0x328]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x42078e
xor eax, eax
jmp 0x42087f
call fcn.004045b0
mov dword [ebp - 0x128], eax
mov ecx, dword [ebp - 0x128]
mov edx, dword [ecx + 0xf0]
push edx
lea eax, [ebp - 0x328]
push eax
push str._sTwain_32_sScanMgr.exe
lea ecx, [ebp - 0x328]
push ecx
call fcn.0042a6b4
add esp, 0x10
push ecx
mov ecx, esp
mov dword [ebp - 0x330], esp
lea edx, [ebp - 0x328]
push edx
call fcn.0043d811
mov dword [ebp - 0x33c], eax
lea eax, [ebp - 0x334]
push eax
mov ecx, dword [ebp - 0x128]
call fcn.00409b13
mov dword [ebp - 0x340], eax
mov ecx, dword [ebp - 0x340]
mov dword [ebp - 0x344], ecx
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x344]
push edx
mov ecx, dword [ebp - 0x338]
add ecx, 0x44
call fcn.0043d8dc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x334]
call fcn.0043d7a3
lea eax, [ebp - 0x328]
push eax
push str.string_file_path___s
call fcn.00413e70
add esp, 8
lea ecx, [ebp - 0x124]
push ecx
lea edx, [ebp - 0x328]
push edx
call fcn.0042a24e
add esp, 8
mov dword [ebp - 0x32c], eax
cmp dword [ebp - 0x32c], 0xffffffff
jne 0x42086b
xor eax, eax
jmp 0x42087f
mov eax, dword [ebp - 0x32c]
push eax
call fcn.0042a31b
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x421429
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x20], ecx
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x14]
call fcn.004218d0
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x421480
lea ecx, [ebp - 0x14]
call fcn.00407790
push eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [ebp - 0x14]
push ecx
push 0x4213c9
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_EnumChildWindows]
jmp 0x4214b4
push 0
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [ebp - 0x18], eax
push 1
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x1c]
sub edx, 0x14
push edx
mov eax, dword [ebp - 0x18]
sub eax, 0x28
push eax
lea ecx, [ebp - 0x14]
call fcn.00421980
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x14]
mov dword [ecx], edx
mov eax, dword [ebp - 0x10]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0xc]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 8]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret 4
Function at 0x421a40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x421a98
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x467a24
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x421a8b
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x421a9a
xor eax, eax
pop esi
leave
ret 4
Function at 0x43b9f0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0042a920
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x43babb
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x43babb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x43ba6e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x43ba79
or bh, 8
and edi, 0x8000000
je 0x43ba94
mov eax, dword [0x47025c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x43babb
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43be90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x43bebb
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x43bedf
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x43befa
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20