joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45866a
Capabilities:
Check for time delay via gettickcount
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, ecx
and dword [edi], 0
cmp dword [ebp + 0xc], 0
jbe 0x458833
jmp 0x45868a
mov edi, dword [ebp + 0x10]
cmp dword [esi + 0x5c], 0x2710
jbe 0x4586a7
cmp dword [esi + 0x54], 0
je 0x4586a7
mov ecx, esi
call fcn.00458840
mov ebx, eax
imul ebx, ebx, 0xf
jmp 0x4586ac
mov ebx, 0x5dc
test ebx, ebx
jne 0x4586b3
push 1
pop ebx
cmp byte [esi + 0x90], 0
je 0x4586c8
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
jmp 0x4586d5
call dword [sym.imp.KERNEL32.dll_GetTickCount]
and dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [edi]
mov ecx, dword [ebp + 0xc]
sub ecx, eax
cmp ecx, ebx
jb 0x4586eb
mov ecx, ebx
lea edx, [ebp - 4]
push edx
push ecx
mov ecx, dword [ebp + 8]
add eax, ecx
push eax
push dword [esi + 4]
call fcn.0045777c
add esp, 0x10
test eax, eax
jne 0x458718
mov eax, dword [esi]
push 0x15f90
mov ecx, esi
call dword [eax]
test al, al
je 0x45883c
cmp byte [esi + 0x90], 0
je 0x458733
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
jmp 0x458741
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edx
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x458833
add dword [edi], ecx
add dword [esi + 0x4c], ecx
add dword [esi + 0x54], ecx
add dword [esi + 0x60], ecx
sub eax, dword [ebp - 0x1c]
sbb edx, dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
or eax, edx
mov dword [ebp - 8], edx
jne 0x458772
and dword [ebp - 8], 0
mov dword [ebp - 0xc], 5
push 0
push 0x3e8
push dword [ebp - 8]
push dword [ebp - 0xc]
call fcn.0045b590
mov edi, dword [esi + 0x8c]
mov ebx, dword [esi + 0x88]
cmp edx, edi
jl 0x4587c7
jg 0x45879a
cmp eax, ebx
jb 0x4587c7
push edi
push ebx
push edx
push eax
call fcn.0045b5d0
add dword [esi + 0x5c], eax
add dword [esi + 0x68], eax
push edi
push ebx
push 0
push eax
call fcn.0045b590
push 0xffffffffffffffff
push 0xfffffc18
push edx
push eax
call fcn.0045b5d0
add dword [ebp - 0xc], eax
adc dword [ebp - 8], edx
push 0
push 0xf4240
push dword [ebp - 8]
push dword [ebp - 0xc]
call fcn.0045b590
push edi
push ebx
push edx
push eax
call fcn.0045b5d0
add dword [esi + 0x58], eax
mov edi, dword [esi + 0x58]
add dword [esi + 0x64], eax
mov ecx, 0x3e8
cmp edi, ecx
jbe 0x45880a
mov eax, edi
xor edx, edx
mov ebx, ecx
div ebx
xor edx, edx
add dword [esi + 0x5c], eax
mov eax, edi
mov edi, ecx
div edi
mov dword [esi + 0x58], edx
mov edi, dword [esi + 0x64]
cmp edi, ecx
jbe 0x458825
mov eax, edi
xor edx, edx
mov ebx, ecx
div ebx
xor edx, edx
add dword [esi + 0x68], eax
mov eax, edi
div ecx
mov dword [esi + 0x64], edx
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
cmp dword [ecx], eax
jb 0x458687
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 0xc
xor al, al
jmp 0x458835
Function at 0x458840
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, ecx
call edi
sub eax, dword [esi + 0x6c]
cmp eax, 0x7530
jbe 0x458878
mov eax, dword [esi + 0x60]
mov ecx, dword [esi + 0x68]
mov dword [esi + 0x54], eax
mov dword [esi + 0x5c], ecx
mov ecx, dword [esi + 0x64]
xor eax, eax
mov dword [esi + 0x60], eax
mov dword [esi + 0x68], eax
mov dword [esi + 0x58], ecx
mov dword [esi + 0x64], eax
call edi
mov dword [esi + 0x6c], eax
mov edi, dword [esi + 0x5c]
test edi, edi
jne 0x458884
mov eax, dword [esi + 0x54]
jmp 0x4588cd
push ebx
push ebp
push 0xa
xor eax, eax
pop ecx
xor ebp, ebp
test eax, eax
jne 0x4588cb
or eax, 0xffffffff
xor edx, edx
div ecx
mov ebx, dword [esi + 0x54]
cmp ebx, eax
jbe 0x4588a9
shr ebx, 1
shr edi, 1
mov dword [esi + 0x54], ebx
mov dword [esi + 0x5c], edi
mov eax, dword [esi + 0x54]
mov edi, dword [esi + 0x5c]
imul eax, ecx
xor edx, edx
div edi
xor edx, edx
imul eax, eax, 0x3e8
div ecx
lea ecx, [ecx + ecx*4]
inc ebp
shl ecx, 1
cmp ebp, 3
jb 0x45888d
pop ebp
pop ebx
pop edi
pop esi
ret

Function at 0x458bc2
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 8]
push ebx
push eax
mov ebx, ecx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [ebp - 4], eax
je 0x458c14
push eax
call fcn.0045a603
pop ecx
mov dword [ebx + 0x40], eax
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x458c14
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x4811b8
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x458c18
xor al, al
jmp 0x458c79
push esi
push edi
mov edi, ebx
lea eax, [ebx + 4]
neg edi
sbb edi, edi
mov esi, dword [ebp - 0xc]
push 0xd
and edi, eax
pop ecx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push str.VarFileInfoTranslation
rep movsd dword es:[edi], dword [esi]
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueA
pop edi
pop esi
test eax, eax
je 0x458c77
mov eax, dword [ebp - 4]
shr eax, 2
mov dword [ebx + 0x3c], eax
shl eax, 2
push eax
call fcn.0045a603
mov dword [ebx + 0x38], eax
xor eax, eax
cmp dword [ebx + 0x3c], eax
pop ecx
jbe 0x458c77
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x38]
mov edx, dword [edx + eax*4]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [ebx + 0x3c]
jb 0x458c65
mov al, 1
pop ebx
leave
ret 4
Function at 0x458d1f
Capabilities:
Delete file
Move file
Read .ini file

Disassembly:
mov eax, 0x469f5f
call fcn.0045a480
sub esp, 0x1dc
and dword [ebp - 0x10], 0
push ebx
push esi
push edi
and dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
call fcn.00448dd8
test al, 0x10
pop ecx
je 0x458e9a
push 1
lea eax, [ebp + 8]
pop edi
push 0x4822a0
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.0042a111
add esp, 0xc
lea ecx, [ebp - 0x1e8]
mov byte [ebp - 4], 1
push ecx
mov ecx, eax
call fcn.0041711a
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
mov dword [ebp - 0x10], esi
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 3
call fcn.0040c1bb
mov ebx, dword [sym.imp.KERNEL32.dll_FindClose]
cmp esi, 0xffffffff
je 0x458e45
test edi, edi
je 0x458e3e
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
lea eax, [ebp - 0x1bc]
push 0x48229c
push eax
call edi
test eax, eax
je 0x458e29
lea eax, [ebp - 0x1bc]
push 0x482298
push eax
call edi
test eax, eax
je 0x458e29
lea eax, [ebp - 0x11]
push 0
push eax
lea eax, [ebp - 0x1bc]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x46bb80
mov dword [ebp - 0x20], 0x46bb78
call fcn.00416eab
sub esp, 0x28
lea ecx, [ebp - 0x40]
mov eax, esp
mov dword [ebp - 0x18], esp
push ecx
lea ecx, [ebp + 8]
push ecx
push eax
mov byte [ebp - 4], 4
call fcn.0042a0a7
add esp, 0xc
call fcn.00458d1f
add esp, 0x28
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call fcn.0040c1bb
lea eax, [ebp - 0x1e8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov edi, eax
jmp 0x458da3
push esi
call ebx
or dword [ebp - 0x10], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0041711a
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x458e74
lea eax, [ebp + 8]
push 1
push eax
lea ecx, [ebp - 0x60]
call fcn.00418feb
lea eax, [ebp - 0x60]
push 0x472ee8
push eax
call fcn.0045a5c9
cmp dword [ebp - 0x10], 0xffffffff
je 0x458e7f
push dword [ebp - 0x10]
call ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0040c1bb
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
lea ecx, [ebp + 8]
call fcn.0041711a
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x458e7f
lea eax, [ebp + 8]
push 1
push eax
lea ecx, [ebp - 0xa8]
call fcn.00418feb
lea eax, [ebp - 0xa8]
push 0x472ee8
push eax
call fcn.0045a5c9
Function at 0x459bc3
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
lea eax, [ebp - 0xc]
push edi
xor ebx, ebx
push eax
push ebx
push 8
mov byte [ebp - 0x1c], bl
mov byte [ebp - 0x1b], bl
mov byte [ebp - 0x1a], bl
mov byte [ebp - 0x19], bl
mov byte [ebp - 0x18], bl
mov byte [ebp - 0x17], 5
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x459c2d
call esi
cmp eax, 0x3f0
jne 0x459c1d
lea eax, [ebp - 0xc]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call esi
cmp eax, 0x78
jne 0x459c29
mov al, 1
jmp 0x459ce8
cmp eax, ebx
je 0x459c9c
lea eax, [ebp - 8]
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push eax
push ebx
push ebx
push 2
push dword [ebp - 0xc]
call edi
test eax, eax
jne 0x459c9c
call esi
cmp eax, 0x7a
jne 0x459c9c
push dword [ebp - 8]
call fcn.0045a603
mov esi, eax
pop ecx
lea eax, [ebp - 8]
cmp esi, ebx
push eax
push dword [ebp - 8]
setne byte [ebp - 0x24]
push esi
push 2
push dword [ebp - 0xc]
call edi
test eax, eax
je 0x459c90
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
lea eax, [ebp - 0x1c]
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x459ca0
cmp byte [ebp - 0x24], bl
je 0x459c9c
push esi
call fcn.00452fcd
pop ecx
xor al, al
jmp 0x459ce8
xor edi, edi
cmp dword [esi], ebx
mov byte [ebp - 1], bl
jbe 0x459cd0
lea eax, [esi + 4]
mov dword [ebp - 0x10], eax
push dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x459ccc
add dword [ebp - 0x10], 8
inc edi
cmp edi, dword [esi]
jb 0x459caf
jmp 0x459cd0
mov byte [ebp - 1], 1
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp byte [ebp - 0x24], bl
je 0x459ce5
push esi
call fcn.00452fcd
pop ecx
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x45e0ec
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4848c0
cmp edx, dword [eax]
je 0x45e10e
add eax, 8
inc ecx
cmp eax, 0x484950
jl 0x45e0ff
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4848c0]
jne 0x45e23c
mov eax, dword [0x49af5c]
cmp eax, 1
je 0x45e216
test eax, eax
jne 0x45e13f
cmp dword [0x484184], 1
je 0x45e216
cmp edx, 0xfc
je 0x45e23c
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x45e176
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0045cbf0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0045ac80
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x45e1b9
lea eax, [ebp - 0x1a4]
push eax
call fcn.0045ac80
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x46d980
push edi
call fcn.0045f4c0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0045cbf0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0045cc00
lea eax, [ebp - 0xa0]
push 0x46d960
push eax
call fcn.0045cc00
push dword [esi + 0x4848c4]
lea eax, [ebp - 0xa0]
push eax
call fcn.0045cc00
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0045faa7
add esp, 0x2c
pop edi
jmp 0x45e23c
lea eax, [ebp + 8]
lea esi, [esi + 0x4848c4]
push 0
push eax
push dword [esi]
call fcn.0045ac80
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x403f64
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
sub esp, 0x120
lea ebp, [esp - 4]
mov eax, dword [0x4247c0]
xor eax, ebp
mov dword [ebp + 0x120], eax
push 0x20
mov eax, 0x41b49d
call fcn.0040d1c5
mov edi, dword [ebp + 0x12c]
mov esi, 0x104
xor ebx, ebx
push esi
lea eax, [ebp + 0x1c]
push ebx
push eax
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], esi
call fcn.0040ca30
add esp, 0xc
push ebx
lea ecx, [ebp]
mov byte [ebp - 0xd], 1
mov dword [ebp + 0x18], 0xf
call fcn.00401434
lea eax, [ebp - 0x20]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0x1c]
push eax
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov dword [ebp - 4], ebx
jmp 0x404042
cmp byte [ebp - 0xd], bl
je 0x403ffc
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp]
call fcn.00401c97
mov byte [ebp - 0xd], bl
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
cmp eax, 1
jne 0x404027
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp]
call fcn.00401c97
inc dword [ebp - 0x14]
lea eax, [ebp - 0x20]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0x1c]
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x18], esi
push dword [ebp - 0x24]
call edi
test eax, eax
je 0x403fdc
mov eax, dword [ebp - 0x14]
cmp dword [0x425ce8], eax
jne 0x404069
cmp dword [ebp + 0x18], 0x10
mov eax, dword [ebp + 4]
jae 0x40405f
lea eax, [ebp + 4]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push ebx
push 1
lea ecx, [ebp]
call fcn.004014e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x120]
xor ecx, ebp
call fcn.0040caaa
add ebp, 0x124
leave
ret 4

Function at 0x404bcb
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8

Function at 0x404c1e
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
test esi, esi
mov ebx, ecx
jne 0x404c34
push 0x80004005
call fcn.00404929
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x404c37
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
ret 8
Function at 0x405741
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x4247c0]
xor eax, ebp
mov dword [ebp + 0x94], eax
mov eax, dword [ebp + 0xa0]
push ebx
push esi
push edi
push 0x2001f
mov ebx, ecx
push eax
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x70], esi
call fcn.00404b96
mov edi, eax
cmp edi, esi
je 0x4057a9
lea ecx, [ebp - 0x70]
call fcn.00404b31
mov eax, edi
mov ecx, dword [ebp + 0x94]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040caaa
add ebp, 0x98
leave
ret 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x4057c1
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x70]
call fcn.00405741
cmp eax, esi
jne 0x4057f4
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x6c]
push eax
push esi
push dword [ebp - 0x70]
mov dword [ebp - 0x74], 0x100
call edi
test eax, eax
je 0x4057b1
lea ecx, [ebp - 0x70]
call fcn.00404b31
push dword [ebp - 0x78]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea ecx, [ebp - 0x70]
mov esi, eax
call fcn.00404b31
mov eax, esi
jmp 0x40578f
Function at 0x407119
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
sub esp, 0x404
lea ebp, [esp - 4]
mov eax, dword [0x4247c0]
xor eax, ebp
mov dword [ebp + 0x404], eax
push 0x20
mov eax, 0x41b737
call fcn.0040d1f8
mov edi, ecx
mov eax, dword [ebp + 0x414]
mov esi, dword [ebp + 0x410]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x418]
mov dword [ebp - 0x14], eax
call dword [0x4246dc]
xor ebx, ebx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], ebx
mov dword [ebp], ebx
cmp esi, ebx
mov byte [ebp - 4], 1
je 0x4071d3
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
push 2
push eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
call fcn.004047e4
add esp, 0xc
test eax, eax
jl 0x4071d3
mov edi, dword [ebp - 0x24]
cmp edi, 0x400
jg 0x4071bb
push edi
call fcn.0040564c
test al, al
pop ecx
je 0x4071bb
mov eax, edi
call fcn.0040df20
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x4071c4
push edi
lea ecx, [ebp - 0x20]
call fcn.004058c0
push dword [ebp - 0x1c]
push edi
push esi
push eax
call fcn.004048c5
cmp eax, ebx
jne 0x407218
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x4071e3
lea ecx, [ebp]
call fcn.004055b6
lea ecx, [ebp - 0x20]
call fcn.004054f0
mov eax, 0x8007000e
lea esp, [ebp - 0x3c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.0040caaa
add ebp, 0x408
leave
ret 0x10
push 2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0x1c], edi
jne 0x407237
call fcn.00404a4d
mov esi, eax
jmp 0x4072fa
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
jne 0x407254
call fcn.00404a4d
jmp 0x4072ef
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x40724a
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
mov dword [ebp - 0x18], esi
jae 0x40729b
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x407287
lea ecx, [ebp]
call fcn.004055b6
mov esi, 0x8007000e
lea ecx, [ebp - 0x20]
call fcn.004054f0
mov eax, esi
jmp 0x4071f0
push eax
lea ecx, [ebp]
mov byte [ebp - 4], 2
call fcn.00406417
mov dword [ebp - 4], 1
jmp 0x4072bc
cmp dword [ebp], ebx
jne 0x4072c8
mov esi, 0x8007000e
jmp 0x4072f1
push esi
push dword [ebp - 0x14]
push esi
push dword [ebp]
call fcn.00404976
mov eax, dword [ebp]
add esp, 0x10
push dword [ebp + 0x41c]
mov byte [eax + esi], bl
push dword [ebp]
lea ecx, [ebp - 0x2c]
call fcn.00406faa
mov esi, eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x40728c
lea ecx, [ebp]
call fcn.004055b6
jmp 0x40728c
Function at 0x4086ae
Capabilities:
Get keyboard layout
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
lea ebp, [esp - 0x94]
sub esp, 0x114
mov eax, dword [0x4247c0]
xor eax, ebp
mov dword [ebp + 0x90], eax
mov eax, dword [ebp + 0x9c]
or dword [ebp - 0x78], 0xffffffff
push ebx
push esi
push edi
mov dword [ebp - 0x80], eax
xor ebx, ebx
mov esi, 0x423d58
mov edi, 0x104
push edi
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.0040ca30
lea eax, [esi + 4]
push eax
push dword [ebp - 0x80]
call fcn.0040e3fc
add esp, 0x14
test eax, eax
je 0x408765
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov eax, dword [esi]
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x7c]
push eax
call fcn.00408689
pop ecx
push 0
push dword [ebp - 0x7c]
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
shl eax, 0x10
lea ecx, [ebx - 0xf]
or eax, 1
cmp ecx, 3
ja 0x408739
or eax, 0x1000000
push edi
lea ecx, [ebp - 0x74]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetKeyNameTextA]
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x80]
call fcn.0040e3fc
test eax, eax
pop ecx
pop ecx
je 0x408765
add esi, 0x18
inc ebx
cmp esi, 0x424388
jl 0x4086e5
jmp 0x408768
mov dword [ebp - 0x78], ebx
mov ecx, dword [ebp + 0x90]
mov eax, dword [ebp - 0x78]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040caaa
add ebp, 0x94
leave
ret

Function at 0x409344
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
xor esi, esi
call fcn.0040116d
test eax, eax
je 0x4093af
lea eax, [ebp - 4]
push eax
push 0x2001f
push esi
push str.SOFTWAREINTELDISPLAYIGFXCUITVWizard
push SysReAllocString
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], 4
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40939c
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push str.TVWizardSupported
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [ebp - 8], esi
setne al
mov esi, eax
mov eax, esi
pop esi
leave
ret
Function at 0x409f06
Capabilities:
Create process on windows

Disassembly:
push 0x78
mov eax, 0x41b88a
call fcn.0040d22e
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 0x2d], bl
mov dword [ebp - 0x14], 0xf
call fcn.00401434
push 0x1c
lea eax, [ebp - 0x2c]
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.0040ca30
add esp, 0xc
push str.igfxcfg.exe
lea ecx, [ebp - 0x2c]
call fcn.00401c97
push 0x10
lea eax, [ebp - 0x40]
push ebx
push eax
call fcn.0040ca30
push 0x44
pop esi
push esi
lea eax, [ebp - 0x84]
push ebx
push eax
call fcn.0040ca30
mov eax, dword [ebp - 0x28]
add esp, 0x18
cmp dword [ebp - 0x14], 0x10
mov dword [ebp - 0x84], esi
jae 0x409f78
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x84]
push ecx
push ebx
push ebx
push 0x4000020
push ebx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x409fad
push dword [ebp - 0x3c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x40]
call esi
mov byte [ebp - 0x2d], 1
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.004014e0
mov al, byte [ebp - 0x2d]
call fcn.0040d278
ret

Function at 0x40a3be
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4247c0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0040a353
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0040ca30
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x40a40d
cmp dword [ebp - 0x1c], 5
jb 0x40a425
jmp 0x40a421
cmp dword [ebp - 0x10], 1
jne 0x40a425
cmp dword [ebp - 0x1c], 4
ja 0x40a421
jne 0x40a425
cmp dword [ebp - 0x18], 0
jbe 0x40a425
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x41ce48
call fcn.00404a02
test eax, eax
jge 0x40a446
mov byte [0x425ca0], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040caaa
add ebp, 0x78
leave
ret

Function at 0x40a74c
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x425e10], 0
push esi
jne 0x40a6bf
call fcn.0040a5ea
test eax, eax
je 0x40a702
mov eax, dword [0x425e10]
cmp eax, 1
jne 0x40a6e0
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x40a702
pop esi
ret
push eax
call dword [0x425e18]
test eax, eax
jne 0x40a74a
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x40a706
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x425e10]
call dword [0x425e18]
mov edi, eax
test edi, edi
je 0x40a72d
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x40a749
lea edi, [esi + 0xff0]
push esi
push dword [0x425e10]
call dword [0x425e14]
add esi, 0x10
cmp esi, edi
jb 0x40a733
mov eax, esi
pop edi
pop esi
ret
jmp 0x40a6ac