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

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x4455f3
push esi
call fcn.004486c0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4455ec
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 0x445679
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x445662
mov eax, dword [esi + 8]
test eax, eax
je 0x445617
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 0x44565e
cmp eax, 2
je 0x445662
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44560a
cmp eax, 3
je 0x44563d
cmp eax, 1
jne 0x44560a
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 0x44560a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44560a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004456a0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x445688
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004456a0
add esp, 4
pop esi
ret

Function at 0x4511e0
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 0x451283
test eax, eax
jbe 0x451283
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x451283
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 0x45122e
xor esi, esi
jmp 0x451234
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x45125f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00409410
add esi, eax
push esi
mov ebx, esi
call fcn.00409410
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x451240
pop ebp
test edi, edi
pop edi
jne 0x451283
test ebx, ebx
je 0x451283
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.004594b0
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x4513c5
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 0x4514dd
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4514dd
mov eax, dword [esi + 0x3c]
push eax
call fcn.0046a7a7
mov esi, eax
test esi, esi
je 0x4514dd
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 0x4514dd
mov ecx, esi
call fcn.00451330
cmp edi, eax
jge 0x4514dd
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 0x451463
mov dword [esp + 0x34], 1
jmp 0x4514be
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x4514dd
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.00450910
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 0x4569f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4774b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
push edi
mov edi, ecx
mov dword [esp + 8], 0
lea eax, [esp + 0xc]
mov dword [esp + 0x24], 0
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov esi, dword [esp + 0x30]
test esi, esi
je 0x456a33
mov eax, dword [esi]
jmp 0x456a35
xor eax, eax
mov ecx, dword [edi]
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0x38]
push edx
push eax
push edi
call dword [ecx + 0x74]
test eax, eax
jge 0x456a56
push 0x6fe5e0
push edi
push eax
call fcn.00466311
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov eax, edi
test esi, esi
mov dword [eax], ecx
mov ecx, dword [esp + 0x14]
mov word [esp + 0xc], 0
mov dword [eax + 4], edx
mov edx, dword [esp + 0x18]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
je 0x456ab6
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x456ab6
mov eax, dword [esi]
test eax, eax
je 0x456a9d
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
test eax, eax
je 0x456aad
push eax
call fcn.00468b10
add esp, 4
push esi
call fcn.00468b10
add esp, 4
mov ecx, dword [esp + 0x1c]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
Function at 0x46b14a
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x46b182
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.00469201
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004691d9
jmp 0x46b18e
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x46c83f
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 0x46c881
call fcn.004722ef
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x46c881
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46c878
xor eax, eax
jmp 0x46c889
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046c88f
pop edi
pop esi
pop ebx
ret 4

Function at 0x47281f
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 0x47284d
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47286b
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00472785
jmp 0x47286b
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47286b
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00472785
test edi, edi
mov eax, edi
jne 0x472855
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40350f
Capabilities:
Delete directory
Get common file path
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc40
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push ebx
push esi
xor esi, esi
cmp dword [0x513718], 0x594
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], eax
jne 0x403549
push 0x402ca8
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomW]
mov eax, dword [0x463148]
mov edi, dword [0x46314c]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], esi
call fcn.00403508
mov eax, dword [0x463150]
add dword [ebp - 0x14], 0x23f
mov ebx, dword [0x463154]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 0x20
mov dword [ebp - 0x10], 2
add dword [ebp - 0x10], 3
mov eax, dword [ebp - 0xc]
mov ecx, eax
shl ecx, 4
cmp dword [0x513718], 0xc
mov dword [ebp - 4], ecx
jne 0x4035e6
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x440]
push eax
push esi
push 0x402cc8
push 0x402ce8
push 0x402d08
call dword [sym.imp.KERNEL32.dll_SearchPathA]
push esi
lea eax, [ebp - 0x840]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
lea eax, [ebp - 0x28]
push eax
push esi
lea eax, [ebp - 0x40]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
add dword [ebp - 4], ecx
mov ecx, dword [0x513718]
cmp ecx, 0xfa9
jne 0x403604
mov dword [0x512cb4], 0xedeb2e40
cmp ecx, 0x3eb
jne 0x403612
mov dword [0x512664], esi
mov ecx, dword [ebp - 0x14]
add ecx, eax
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x10]
shr eax, cl
mov dword [0x512cb0], 0xf4ea3dee
add eax, ebx
mov ecx, eax
mov eax, dword [ebp - 0x18]
xor dword [ebp - 4], eax
xor ecx, dword [ebp - 4]
cmp dword [0x513718], 0x213
mov dword [ebp - 0x18], ecx
jne 0x403651
push esi
push 0x402d20
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [ebp - 0x18]
add dword [ebp - 8], 0x64
sub dword [ebp - 8], eax
sub dword [ebp - 8], 0x64
cmp dword [0x513718], 0xc
jne 0x403684
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_PrepareTape]
push esi
lea eax, [ebp - 0xc40]
push eax
push 0x402d78
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
mov eax, dword [ebp - 8]
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
lea edx, [ecx + eax]
mov ecx, dword [ebp - 0x10]
shr eax, cl
add eax, edi
xor eax, edx
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
call fcn.00403501
dec dword [ebp - 0x1c]
jne 0x40357e
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], ecx
mov ecx, dword [ebp - 8]
pop esi
mov dword [eax + 4], ecx
pop ebx
leave
ret 4
Function at 0x4036d4
Capabilities:
Create pipe
Get common file path
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x513718]
mov ecx, dword [0x512668]
sub esp, 0x42c
push esi
shr eax, 3
xor esi, esi
cmp eax, esi
jbe 0x4037c8
push ebx
push edi
mov ebx, ecx
mov dword [ebp - 4], eax
cmp dword [0x513718], 0x959
jne 0x4037b4
lea eax, [ebp - 0x18]
push eax
push esi
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
xor eax, eax
mov word [ebp - 8], ax
lea edi, [ebp - 6]
stosw word es:[edi], ax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 8]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsExA]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push 0x402d4c
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
push esi
call dword [sym.imp.KERNEL32.dll_GetPriorityClass]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
push 0x402e30
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerA]
push esi
push esi
push esi
push esi
push esi
push esi
push 0x402e40
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
lea eax, [ebp - 0x42c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_InitializeSListHead]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push ebx
call fcn.0040350f
add ebx, 8
dec dword [ebp - 4]
jne 0x4036fd
pop edi
pop ebx
pop esi
leave
ret
Function at 0x40389a
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4602d4
call fcn.004601e0
mov eax, 0x1828
call fcn.0040fb00
push ebx
push esi
xor esi, esi
cmp dword [0x513718], 0x5b1
push edi
jne 0x40394e
push esi
lea eax, [ebp - 0x834]
push eax
push esi
push 0x402ecc
push esi
call dword [sym.imp.KERNEL32.dll_FoldStringW]
push esi
call dword [sym.imp.KERNEL32.dll_SetLocalTime]
lea eax, [ebp - 0x34]
call fcn.00403baa
push esi
mov dword [ebp - 4], esi
call fcn.0040473f
call fcn.004046dd
lea ecx, [ebp - 0x18]
mov dword [esp], 0x402f34
call fcn.004033c0
lea ecx, [ebp - 0x18]
call fcn.004033dc
lea ecx, [ebp - 0x18]
call fcn.00403422
lea ecx, [ebp - 0x18]
call fcn.0040343b
push esi
push esi
call fcn.00404c0e
push esi
call fcn.00404bdf
push esi
call fcn.00404bc8
push esi
call fcn.00404d87
add esp, 0x10
mov dword [esp], esi
call fcn.004034e2
fstp st(0)
push esi
call fcn.00404bc8
pop ecx
call fcn.00404ca1
add dword [0x513718], 0x1134b
push dword [0x513718]
push esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [0x512668], eax
call fcn.004037e5
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
call ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp edi, 0x206d47
jg 0x403997
inc edi
cmp edi, 0x4f6a4
jl 0x403977
mov eax, dword [0x513718]
xor ecx, ecx
cmp eax, esi
jbe 0x4039bd
mov edx, dword [0x51371c]
mov dl, byte [edx + ecx + 0x1134b]
mov edi, dword [0x512668]
mov byte [edi + ecx], dl
inc ecx
cmp ecx, eax
jb 0x4039a2
xor edi, edi
lea ecx, [eax + edi]
cmp ecx, 0xe
jne 0x403a0c
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasW]
push esi
lea eax, [ebp - 0x434]
push eax
push esi
push 0x402f48
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
push 0x402f90
push 0x402fac
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push esi
push esi
lea eax, [ebp - 0x1034]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesW]
mov eax, dword [0x513718]
inc edi
cmp edi, 0x39621
jl 0x4039bf
call fcn.004036d4
xor edi, edi
call ebx
cmp edi, 0x26
jne 0x403a28
call fcn.004037cb
inc edi
cmp edi, 0x6753f
jl 0x403a1c
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push 0x7b
pop ebx
cmp dword [0x513718], 0x86
jne 0x403a83
push 0x402fbc
push 0x402fd8
call dword [sym.imp.KERNEL32.dll_SetVolumeLabelA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
push esi
lea eax, [ebp - 0x434]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
push esi
lea eax, [ebp - 0x1034]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
cmp dword [0x513718], 0xf
jne 0x403aab
push esi
push esi
call edi
push esi
lea eax, [ebp - 0x1834]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasW]
push 0x402fe8
push 0x403020
call edi
dec ebx
jne 0x403a3a
push 0x403074
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40547b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x46246c]
jne 0x405485
repz ret
jmp fcn.0040943c

Function at 0x40c38b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00407466
and dword [ebp - 4], 0
cmp dword [0x46428c], 0
mov ebx, eax
jne 0x40c43c
push 0x4022c4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40c4ed
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4022b8
push edi
call esi
test eax, eax
je 0x40c4ed
push eax
call fcn.004073f4
mov dword [esp], 0x4022a8
push edi
mov dword [0x46428c], eax
call esi
push eax
call fcn.004073f4
mov dword [esp], 0x402294
push edi
mov dword [0x464290], eax
call esi
push eax
call fcn.004073f4
mov dword [esp], 0x402278
push edi
mov dword [0x464294], eax
call esi
push eax
call fcn.004073f4
pop ecx
mov dword [0x46429c], eax
test eax, eax
je 0x40c43c
push 0x402260
push edi
call esi
push eax
call fcn.004073f4
pop ecx
mov dword [0x464298], eax
mov eax, dword [0x464298]
cmp eax, ebx
je 0x40c494
cmp dword [0x46429c], ebx
je 0x40c494
push eax
call fcn.0040746f
push dword [0x46429c]
mov esi, eax
call fcn.0040746f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40c494
test edi, edi
je 0x40c494
call esi
test eax, eax
je 0x40c48b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40c48b
test byte [ebp - 0xc], 1
jne 0x40c494
or dword [ebp + 0x10], 0x200000
jmp 0x40c4cd
mov eax, dword [0x464290]
cmp eax, ebx
je 0x40c4cd
push eax
call fcn.0040746f
pop ecx
test eax, eax
je 0x40c4cd
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40c4cd
mov eax, dword [0x464294]
cmp eax, ebx
je 0x40c4cd
push eax
call fcn.0040746f
pop ecx
test eax, eax
je 0x40c4cd
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x46428c]
call fcn.0040746f
pop ecx
test eax, eax
je 0x40c4ed
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40c4ef
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4019b0
Capabilities:
Get common file path
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x412c1b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x518
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x52c]
lea ecx, [esp + 4]
push eax
mov dword [esp + 0x524], 0
call fcn.004120fe
lea ecx, [esp]
push ecx
push 0x419158
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
neg eax
sbb eax, eax
inc eax
mov dword [esp + 8], eax
je 0x401a46
lea edx, [esp + 0x410]
lea eax, [esp + 0xc]
push edx
mov edx, dword [esp + 8]
lea ecx, [esp + 0x410]
push eax
mov eax, dword [esp + 8]
push ecx
push 0
push edx
push eax
mov dword [esp + 0x428], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push ebp
or ecx, 0xffffffff
push esi
mov esi, dword [esp + 0x53c]
test eax, eax
push edi
mov dword [esp + 0x530], ecx
je 0x401a85
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
mov edx, dword [esp + 0x14]
dec ecx
push ecx
mov ecx, dword [esp + 0x420]
push esi
push ecx
push eax
mov eax, dword [esp + 0x20]
push edx
push eax
call ebx
mov ecx, dword [esp + 0x538]
push 1
lea edx, [esp + 0x428]
push ecx
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov eax, dword [esp + 0x18]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x401ae6
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x420]
push eax
mov eax, dword [esp + 0x18]
push ecx
push 0
push edx
push eax
call ebx
mov ecx, dword [esp + 0x10]
push ecx
call ebp
mov dword [esp + 0x18], 0
lea edx, [esp + 0x424]
push esi
push edx
call dword [sym.imp.MSVCRT.dll__mbsicmp]
mov esi, eax
mov eax, dword [esp + 0x20]
add esp, 8
neg esi
sbb esi, esi
inc esi
test eax, eax
je 0x401b40
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x420]
push eax
mov eax, dword [esp + 0x18]
push ecx
push 0
push edx
push eax
call ebx
mov ecx, dword [esp + 0x10]
push ecx
call ebp
mov dword [esp + 0x18], 0
lea ecx, [esp + 0x14]
call fcn.004120e0
mov ecx, dword [esp + 0x528]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x524
ret
Function at 0x404400
Capabilities:
Get file version info

Disassembly:
sub esp, 0x110
push ebx
mov ebx, ecx
push esi
push edi
mov eax, dword [ebx + 0x38]
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [ebx + 0x38], 0
test ebx, ebx
mov word [ebx + 0x3e], 0x4e4
je 0x40442d
lea edi, [ebx + 4]
jmp 0x40442f
xor edi, edi
mov esi, dword [esp + 0x120]
mov ecx, 0xd
xor eax, eax
push esi
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x40445a
test esi, esi
je 0x40445a
pop edi
pop esi
pop ebx
add esp, 0x110
ret 4
lea ecx, [esp + 0x18]
push 0x104
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
ja 0x40447d
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret 4
lea edx, [esp + 0x14]
lea eax, [esp + 0x18]
push edx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
ja 0x4044a0
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret 4
push esi
call sub.MFC42.DLL_operatornew
add esp, 4
lea ecx, [esp + 0x18]
mov dword [ebx + 0x38], eax
push eax
push esi
push 0
push ecx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x4044ca
pop edi
pop esi
pop ebx
add esp, 0x110
ret 4
mov ecx, dword [ebx + 0x38]
lea edx, [esp + 0x10]
lea eax, [esp + 0xc]
push edx
push eax
push 0x419154
push ecx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x4044f2
pop edi
pop esi
pop ebx
add esp, 0x110
ret 4
test ebx, ebx
je 0x4044fb
lea edi, [ebx + 4]
jmp 0x4044fd
xor edi, edi
mov esi, dword [esp + 0xc]
mov ecx, 0xd
lea edx, [esp + 0x10]
lea eax, [esp + 0xc]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 0x38]
push edx
push eax
push 0x4192f0
push ecx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x404534
cmp dword [esp + 0x10], 4
jb 0x404534
mov edx, dword [esp + 0xc]
mov eax, dword [edx]
mov dword [ebx + 0x3c], eax
mov ecx, dword [ebx + 4]
xor eax, eax
cmp ecx, 0xfeef04bd
pop edi
pop esi
pop ebx
sete al
add esp, 0x110
ret 4
Function at 0x404f40
Capabilities:
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x413298
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
mov ebx, ecx
push esi
push edi
xor edi, edi
lea esi, [ebx + 0xc]
cmp esi, edi
mov dword [esp + 0x18], esi
je 0x404f75
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, ebx
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], edi
call fcn.00404c40
test eax, eax
jle 0x405014
mov ebp, dword [esp + 0x38]
mov dword [esp + 0x10], edi
mov esi, dword [esp + 0x3c]
mov ecx, ebx
push esi
call fcn.00404c70
test al, al
je 0x404fa8
cmp esi, edi
jne 0x404ff5
mov esi, dword [ebx + 8]
mov ecx, dword [esp + 0x10]
add esi, ecx
mov eax, dword [esi + 0x18]
test eax, eax
jne 0x404ff5
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov dword [esi + 4], ecx
push edx
lea ecx, [esi + 8]
mov dword [esi], ebx
call fcn.004120fe
mov eax, dword [esp + 0x34]
push 0
push 4
push 0
push 0
push esi
push 0x405080
mov dword [esi + 0x10], ebp
mov dword [esi + 0xc], eax
call sub.MFC42.DLL_AfxBeginThread
mov edi, eax
test edi, edi
jne 0x40503f
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
inc edi
add edx, 0x24
mov ecx, ebx
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], edx
call fcn.00404c40
cmp edi, eax
jl 0x404f94
mov esi, dword [esp + 0x18]
test esi, esi
mov dword [esp + 0x24], 0xffffffff
je 0x405027
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x1c]
or eax, 0xffffffff
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 0x14
mov ecx, dword [edi + 0x2c]
push 0
mov dword [esi + 0x18], ecx
call dword [sym.imp.MSVCRT.dll_time]
add esp, 4
mov dword [esi + 0x14], eax
mov edx, dword [edi + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x24], 0xffffffff
test ecx, ecx
je 0x405072
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov eax, dword [esp + 0x14]
jmp 0x40502a