joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43f7e0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43f813
push esi
call fcn.004428d0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43f80c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x43f899
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43f882
mov eax, dword [esi + 8]
test eax, eax
je 0x43f837
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x43f87e
cmp eax, 2
je 0x43f882
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43f82a
cmp eax, 3
je 0x43f85d
cmp eax, 1
jne 0x43f82a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x43f82a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43f82a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043f8c0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43f8a8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043f8c0
add esp, 4
pop esi
ret

Function at 0x44ccf0
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x44cd93
test eax, eax
jbe 0x44cd93
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x44cd93
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x44cd3e
xor esi, esi
jmp 0x44cd44
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x44cd6f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00404f30
add esi, eax
push esi
mov ebx, esi
call fcn.00404f30
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x44cd50
pop ebp
test edi, edi
pop edi
jne 0x44cd93
test ebx, ebx
je 0x44cd93
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.0045b5b0
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x44ced5
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x44cfed
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x44cfed
mov eax, dword [esi + 0x3c]
push eax
call fcn.0046ce85
mov esi, eax
test esi, esi
je 0x44cfed
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x44cfed
mov ecx, esi
call fcn.0044ce40
cmp edi, eax
jge 0x44cfed
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x44cf73
mov dword [esp + 0x34], 1
jmp 0x44cfce
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x44cfed
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.0044c430
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x44f3c0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x44f426
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x44f426
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x44f407
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x44f7b0
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x44f7e8
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x450420
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x450469
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x4508e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47bcd0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00450490
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.00450510
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.00450510
lea ecx, [esi + 0xc]
call fcn.0046b3c1
lea ecx, [esi + 0x10]
call fcn.0046b3c1
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00451aa0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00451aa0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00451aa0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0046b436
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0046b436
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x46d829
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x46d861
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0046b8dd
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0046b8b5
jmp 0x46d86d
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x46ef17
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x46ef59
call fcn.00474ebe
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x46ef59
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46ef50
xor eax, eax
jmp 0x46ef61
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046ef67
pop edi
pop esi
pop ebx
ret 4

Function at 0x4753ee
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x47541c
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47543a
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00475354
jmp 0x47543a
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47543a
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00475354
test edi, edi
mov eax, edi
jne 0x475424
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x43cf6b
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x43ccda
call fcn.0043cf85
xor dword [eax], edx
or esi, esi
inc eax
mov esi, ebx
cmp eax, edi
jne fcn.0043cf6b
and ebx, ebx
add ebx, ebx
ret
Function at 0x4085f2
Capabilities:
Check internet connectivity via wininet
Create http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov dword [ebp - 8], 4
push 0
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
mov ecx, dword [ebp - 0x4c]
and ecx, 0x20
test ecx, ecx
je 0x40861f
mov eax, 4
jmp 0x4086ac
call dword [sym.imp.WINMM.dll_timeGetTime]
push eax
push str.Agent_ld
lea edx, [ebp - 0x48]
push edx
call fcn.0041987b
add esp, 0xc
mov eax, dword [ebp - 0x4c]
and eax, 4
test eax, eax
jne 0x408658
push 0
push 0
push 0
push 4
lea ecx, [ebp - 0x48]
push ecx
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 4], eax
jmp 0x40866d
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x48]
push edx
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4086a2
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.00408330
add esp, 0x18
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x4086a9
mov eax, 4
jmp 0x4086ac
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x409b80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43b749
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x7c
mov dword [ebp - 0x78], 1
mov dword [ebp - 0x10], 0x64
push 0x44c7fc
lea ecx, [ebp - 0x7c]
call fcn.0042d1d7
mov dword [ebp - 4], 0
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x7c]
call fcn.00407370
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x409bfa
mov dword [ebp - 0x84], 0xffffffff
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.0042d169
mov eax, dword [ebp - 0x84]
jmp 0x409c42
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x74]
push edx
lea eax, [ebp - 0x78]
push eax
push 0
push str.AppPath
mov ecx, dword [ebp - 0x80]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [ebp - 0x74]
push edx
mov ecx, dword [ebp + 8]
call fcn.0040b4b0
mov dword [ebp - 0x88], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.0042d169
mov eax, dword [ebp - 0x88]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x409dbc
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43b7ab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14c
push edi
mov dword [ebp - 0x140], 0
mov eax, dword [ebp - 0x140]
mov dword [ebp - 0x13c], eax
mov ecx, dword [ebp + 8]
call fcn.004092d0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x144], 0
mov dword [ebp - 0x138], 0
mov ecx, 0x49
xor eax, eax
lea edi, [ebp - 0x134]
rep stosd dword es:[edi], eax
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x144], eax
cmp dword [ebp - 0x144], 0xffffffff
jne 0x409e3e
xor eax, eax
jmp 0x409fb3
mov dword [ebp - 0x138], 0x128
lea ecx, [ebp - 0x138]
push ecx
mov edx, dword [ebp - 0x144]
push edx
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x409fa0
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x148]
call fcn.0042d1d7
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x148]
call fcn.0042d66b
push str.ftupgrade.exe
lea ecx, [ebp - 0x148]
call fcn.0042b85d
test eax, eax
jl 0x409eb2
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x148]
call fcn.0042d169
jmp 0x409f85
mov dword [ebp - 0x13c], 0
jmp 0x409ecd
mov ecx, dword [ebp - 0x13c]
add ecx, 1
mov dword [ebp - 0x13c], ecx
mov edx, dword [ebp - 0x13c]
cmp edx, dword [ebp - 0x10]
jge 0x409f73
push 0
mov eax, dword [ebp - 0x13c]
push eax
lea ecx, [ebp - 0x150]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004092f0
mov dword [ebp - 0x154], eax
mov edx, dword [ebp - 0x154]
mov dword [ebp - 0x158], edx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x158]
call fcn.00407370
push eax
lea ecx, [ebp - 0x148]
call fcn.0042b86b
xor ecx, ecx
test eax, eax
setge cl
mov byte [ebp - 0x14c], cl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x150]
call fcn.0042d169
mov edx, dword [ebp - 0x14c]
and edx, 0xff
test edx, edx
je 0x409f6e
mov eax, dword [ebp - 0x140]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x130]
mov dword [ecx + eax*4], edx
mov eax, dword [ebp - 0x140]
add eax, 1
mov dword [ebp - 0x140], eax
jmp 0x409ebe
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x148]
call fcn.0042d169
lea ecx, [ebp - 0x138]
push ecx
mov edx, dword [ebp - 0x144]
push edx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x409e63
mov eax, dword [ebp - 0x144]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x140]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x40a006
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43b7be
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x7c
mov dword [ebp - 0x78], 1
mov dword [ebp - 0x10], 0x64
push 0x44c834
lea ecx, [ebp - 0x7c]
call fcn.0042d1d7
mov dword [ebp - 4], 0
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x7c]
call fcn.00407370
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x40a083
mov dword [ebp - 0x84], 0xffffffff
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.0042d169
mov eax, dword [ebp - 0x84]
jmp 0x40a15d
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x74]
push edx
lea eax, [ebp - 0x78]
push eax
push 0
push str.Build
mov ecx, dword [ebp - 0x80]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [ebp - 0x74]
push edx
mov ecx, dword [ebp + 8]
add ecx, 0xc
call fcn.0040b4b0
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x74]
push ecx
lea edx, [ebp - 0x78]
push edx
push 0
push str.Product
mov eax, dword [ebp - 0x80]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [ebp - 0x74]
push ecx
mov ecx, dword [ebp + 8]
add ecx, 4
call fcn.0040b4b0
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x78]
push ecx
push 0
push str.Version
mov edx, dword [ebp - 0x80]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x74]
push eax
mov ecx, dword [ebp + 8]
add ecx, 8
call fcn.0040b4b0
mov dword [ebp - 0x78], 4
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x74]
push edx
lea eax, [ebp - 0x78]
push eax
push 0
push str.ProductID
mov ecx, dword [ebp - 0x80]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 4
lea edx, [ebp - 0x74]
push edx
push 0x4511a8
call fcn.00419c10
add esp, 0xc
mov dword [ebp - 0x88], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.0042d169
mov eax, dword [ebp - 0x88]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x42af90
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.00419b20
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x42b05b
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 0x42b05b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x42b00e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x42b019
or bh, 8
and edi, 0x8000000
je 0x42b034
mov eax, dword [0x454afc]
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 0x42b05b
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 0x42b430
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 0x42b45b
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 0x42b47f
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 0x42b49a
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