joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401574
Capabilities:
Get file version info

Disassembly:
mov eax, 0x458aef
call fcn.00431c64
sub esp, 0x21c
mov eax, dword [0x476b9c]
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x128]
push 0x104
push eax
push ebx
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x128]
push ebx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
cmp edi, ebx
jbe 0x40164e
push edi
call fcn.004497f2
mov esi, eax
pop ecx
cmp esi, ebx
je 0x40164e
push esi
push edi
lea eax, [ebp - 0x128]
push ebx
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x401647
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
push eax
lea eax, [ebp - 0x1c]
push eax
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueA
cmp dword [ebp - 0x14], ebx
je 0x401647
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x24], ebx
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
lea eax, [ebp - 0x228]
push 0x475138
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x228]
push eax
push esi
call sub.VERSION.dll_VerQueryValueA
push dword [ebp - 0x18]
lea ecx, [ebp - 0x10]
call fcn.004493ec
push esi
call fcn.0044981b
pop ecx
mov eax, dword [ebp - 0x10]
cmp dword [eax - 8], ebx
je 0x40167a
push 0x475134
push 0x475130
lea ecx, [ebp - 0x10]
call fcn.00441b11
push 0x478d30
push 0x47512c
lea ecx, [ebp - 0x10]
call fcn.00441b11
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.00448fd8
mov dword [ebp - 0x20], 1
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.00449263
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x402e05
Capabilities:
Get file system object information

Disassembly:
mov eax, 0x458e18
call fcn.00431c64
sub esp, 0x5c8
push ebx
push esi
push edi
mov esi, dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov edi, 0x160
push 0x301
lea eax, [ebp - 0x174]
push edi
push eax
push 0
push dword [ebp + 8]
mov ebx, ecx
call esi
push 0x303
lea eax, [ebp - 0x3d4]
push edi
push eax
push 0
push dword [ebp + 8]
call esi
mov eax, dword [ebp + 0x14]
mov esi, dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
or edi, 0xffffffff
cmp eax, edi
jne 0x402e6c
push dword [ebp - 0x174]
push edi
push dword [ebx + 0x240]
call esi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x18]
cmp eax, edi
jne 0x402e85
push dword [ebp - 0x3d4]
push edi
push dword [ebx + 0x240]
call esi
push dword [ebp - 0x174]
mov esi, dword [sym.imp.USER32.dll_DestroyIcon]
mov dword [ebp + 0x14], eax
call esi
push dword [ebp - 0x3d4]
call esi
lea eax, [ebx + 0x23c]
test eax, eax
je 0x402eab
mov eax, dword [eax + 4]
push eax
push 0
push 0x1109
push dword [ebx + 0x1c]
call dword [sym.imp.USER32.dll_SendMessageA]
push eax
call fcn.00443275
lea eax, [ebp - 0x168]
lea ecx, [ebp - 0x10]
push eax
call fcn.004492d1
and dword [ebp - 4], 0
push 0x475134
lea ecx, [ebp - 0x10]
call fcn.00441e20
cmp eax, edi
je 0x402efe
push dword [ebp + 0x14]
lea eax, [ebp - 0x168]
push dword [ebp - 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
jmp 0x402f7e
lea eax, [ebp - 0x274]
push eax
lea eax, [ebp - 0x4d4]
push eax
lea eax, [ebp - 0x5d4]
push eax
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
call fcn.00431fdb
add esp, 0x14
lea eax, [ebp - 0x168]
lea ecx, [ebp - 0x10]
push eax
call fcn.004493ec
lea eax, [ebp - 0x274]
push eax
call fcn.00431f60
test eax, eax
pop ecx
je 0x402f6f
lea eax, [ebp - 0x274]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 0x18]
push eax
call fcn.004494f8
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.0044939c
and byte [ebp - 4], 0
lea ecx, [ebp + 0x18]
call fcn.00449263
push dword [ebp + 0x14]
push dword [ebp - 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 0x10]
mov ecx, ebx
call fcn.0040346a
lea ecx, [ebp - 0x10]
mov esi, eax
mov dword [ebp - 4], edi
call fcn.00449263
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x14
Function at 0x405452
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
push edi
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocStringLen
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, esi
je 0x4054a5
push esi
push esi
push dword [ebp + 0xc]
mov dword [ebp + 8], esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp + 8]
push esi
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
jmp 0x4054a7
xor eax, eax
pop edi
pop esi
pop ebp
ret

Function at 0x4054ab
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
push edi
push esi
push 0x80
push 3
push esi
push 1
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, esi
je 0x4054fe
push esi
push esi
push dword [ebp + 0xc]
mov dword [ebp + 8], esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp + 8]
push esi
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
jmp 0x405500
xor eax, eax
pop edi
pop esi
pop ebp
ret

Function at 0x405a53
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
push edi
mov esi, ecx
push 0x80
push 3
mov eax, dword [esi]
push edi
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, edi
mov dword [esi + 0x38], eax
je 0x405ac8
lea ecx, [ebp - 4]
mov dword [ebp - 4], edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [ebp - 4], edi
mov ebx, eax
jne 0x405ac8
push edi
push edi
push edi
push 2
push edi
push dword [esi + 0x38]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, edi
mov dword [esi + 0x3c], eax
je 0x405ac8
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
cmp dword [ecx], edi
je 0x405ac8
push 1
pop eax
jmp 0x405aca
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x4073c9
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ecx + 0x2fc]
push esi
xor esi, esi
push edi
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocStringLen
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, esi
je 0x407421
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 4]
push esi
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
jmp 0x407423
xor eax, eax
pop edi
pop esi
leave
ret 0xc
Function at 0x407429
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ecx + 0x2fc]
push esi
xor esi, esi
push edi
push esi
push 0x80
push 3
push esi
push 1
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, esi
je 0x407481
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 4]
push esi
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
jmp 0x407483
xor eax, eax
pop edi
pop esi
leave
ret 0xc

Function at 0x40791e
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
xor esi, esi
push edi
push esi
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebx, eax
cmp ebx, esi
jbe 0x407a0f
push ebx
call fcn.004497f2
mov edi, eax
pop ecx
cmp edi, esi
je 0x407a0f
push edi
push ebx
push esi
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x407a08
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], esi
push eax
lea eax, [ebp - 4]
push eax
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueA
cmp dword [ebp - 0xc], esi
je 0x407a08
mov eax, dword [ebp - 4]
mov dword [ebp + 8], esi
mov dword [ebp - 8], esi
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
lea eax, [ebp - 0x10c]
push str.StringFileInfo_04x_04xProductName
push eax
call esi
add esp, 0x10
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x10c]
push eax
push edi
call sub.VERSION.dll_VerQueryValueA
push dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
call fcn.004493ec
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
lea eax, [ebp - 0x10c]
push str.StringFileInfo_04x_04xCompanyName
push eax
call esi
add esp, 0x10
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x10c]
push eax
push edi
call sub.VERSION.dll_VerQueryValueA
push dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
call fcn.004493ec
push edi
call fcn.0044981b
pop ecx
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x408f8c
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, 0x4599df
call fcn.00431c64
sub esp, 0x11c
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x478], 0xffffffff
lea edi, [esi + 0x478]
jne 0x408fbe
call fcn.004092ea
cmp dword [edi], 0xffffffff
je 0x409124
push dword [esi + 0x444]
lea ebx, [esi + 0x444]
call fcn.00407d45
test eax, eax
pop ecx
je 0x40910a
call fcn.0041954e
mov edi, 0x100
lea eax, [ebp - 0x128]
push edi
push 0
push eax
call fcn.00432460
lea eax, [ebp - 0x128]
add esp, 0xc
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x128]
test eax, eax
mov dword [ebp - 0x1c], edi
je 0x409124
lea eax, [ebp - 0x28]
lea ecx, [esi + 0xe0]
push eax
call fcn.0041f73d
test eax, eax
je 0x409124
mov eax, dword [esi + 0x468]
xor edi, edi
cmp dword [eax + 0x3c], edi
jne 0x40905c
cmp dword [ebp - 0x1c], 4
ja 0x40905c
mov eax, dword [ebp - 0x20]
cmp dword [eax], edi
jne 0x40905c
cmp dword [ebp - 0x18], 0xffffffff
jne 0x40905c
push 0xffffffffffffffff
push 4
push 0xe157
call fcn.0044db1b
cmp eax, 7
je 0x409124
mov eax, dword [esi + 0x468]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
test eax, eax
jl 0x409124
call fcn.00454a78
mov ecx, dword [eax + 4]
call fcn.0044896c
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
mov dword [ebp - 4], edi
call fcn.004092bf
mov eax, dword [esi + 0x468]
push 0x34
add eax, 0x20
push ebx
push eax
call fcn.00432ab0
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
add esp, 0xc
call edi
mov ecx, dword [esi + 0x468]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x28]
push eax
call fcn.0041e83c
mov ebx, eax
call edi
mov edi, eax
call fcn.00454a78
mov ecx, dword [eax + 4]
call fcn.00448996
test ebx, ebx
jl 0x4090f7
mov eax, dword [esi + 0x468]
push 0x34
add eax, 0x20
push eax
lea eax, [esi + 0x444]
push eax
call fcn.00432ab0
sub edi, dword [ebp - 0x10]
add esp, 0xc
mov ecx, esi
push edi
call fcn.00409133
or dword [ebp - 4], 0xffffffff
call fcn.00454a78
mov ecx, dword [eax + 4]
call fcn.00448981
jmp 0x409124
push 0xffffffffffffffff
push 4
push 0xe149
call fcn.0044db1b
cmp eax, 6
jne 0x409124
mov ecx, esi
call fcn.0040954b
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40b82d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov al, byte [0x478d30]
push ebx
push esi
push edi
push 0x3f
mov byte [ebp - 0x108], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x107]
mov dword [ebp - 4], 0x2ee0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x108]
push eax
push str.Process
call fcn.0040b983
push dword [ebp - 4]
call fcn.004497f2
add esp, 0xc
mov edi, eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 4]
push eax
push edi
push 0
lea eax, [ebp - 0x108]
push 0
mov ebx, reloc.OLEAUT32.dll_SysReAllocStringLen
push eax
push ebx
mov dword [ebp - 8], edi
call esi
cmp eax, 0xea
jne 0x40b8d7
add dword [ebp - 4], 0x3e8
push edi
call fcn.0044981b
push dword [ebp - 4]
call fcn.004497f2
pop ecx
mov edi, eax
pop ecx
lea eax, [ebp - 4]
push eax
push edi
push 0
lea eax, [ebp - 0x108]
push 0
push eax
push ebx
call esi
cmp eax, 0xea
je 0x40b8a1
mov dword [ebp - 8], edi
mov esi, dword [edi + 0x18]
lea eax, [ebp - 0x108]
add esi, edi
push eax
push str.ID_Process
mov edi, dword [esi + 8]
and byte [ebp - 0x108], 0
add edi, esi
call fcn.0040b983
xor ebx, ebx
pop ecx
cmp dword [esi + 0x20], ebx
pop ecx
jle 0x40b91c
lea eax, [ebp - 0x108]
push eax
call fcn.00433635
cmp dword [edi + 4], eax
pop ecx
je 0x40b94c
add edi, dword [edi]
inc ebx
cmp ebx, dword [esi + 0x20]
jl 0x40b902
mov edi, dword [ebp + 0xc]
mov eax, dword [esi + 4]
push 1
add eax, esi
mov esi, dword [esi + 0x28]
pop ebx
mov ecx, dword [eax]
add ecx, eax
cmp esi, ebx
mov edx, dword [ecx + edi]
jle 0x40b961
cmp edx, dword [ebp + 8]
je 0x40b951
mov eax, dword [ecx]
add eax, ecx
mov ecx, dword [eax]
add ecx, eax
inc ebx
cmp ebx, esi
mov edx, dword [ecx + edi]
jl 0x40b935
jmp 0x40b961
mov edi, dword [edi + 0x24]
jmp 0x40b91f
mov ecx, dword [eax + 0x10]
add ecx, eax
push ecx
push dword [ebp + 0xc]
call fcn.004336ee
pop ecx
pop ecx
push dword [ebp - 8]
call fcn.0044981b
pop ecx
push reloc.OLEAUT32.dll_SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0xc]
call fcn.004336d1
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40b983
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov al, byte [0x478d30]
push ebx
push esi
push edi
push 0x3f
mov byte [ebp - 0x10c], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x10b]
xor ebx, ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0xc]
xor esi, esi
push eax
push 0x20019
push ebx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionPerflib009
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push ebx
push str.Counter
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 8]
call fcn.004497f2
mov edi, eax
pop ecx
lea eax, [ebp - 8]
push eax
push edi
push ebx
push ebx
push str.Counter
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [ebp - 8], ebx
je 0x40ba64
mov al, byte [edi + esi]
cmp al, bl
je 0x40ba1b
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 4]
inc esi
inc dword [ebp - 4]
mov byte [edx + ecx], al
jmp 0x40ba05
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
inc esi
mov byte [eax + ecx], bl
xor ecx, ecx
mov al, byte [edi + esi]
cmp al, bl
je 0x40ba39
mov byte [ebp + ecx - 0x10c], al
inc esi
inc ecx
jmp 0x40ba27
inc esi
mov byte [ebp + ecx - 0x10c], bl
mov dword [ebp - 4], ebx
cmp byte [edi + esi], bl
jne 0x40ba4a
inc esi
push dword [ebp + 8]
lea eax, [ebp - 0x10c]
push eax
call fcn.00433720
pop ecx
test eax, eax
pop ecx
je 0x40ba64
cmp esi, dword [ebp - 8]
jne 0x40ba05
push edi
call fcn.0044981b
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40ba79
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov al, byte [0x478d30]
push ebx
push esi
push edi
push 0x3f
mov byte [ebp - 0x110], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x10f]
mov dword [ebp - 4], 0x2ee0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x110]
push eax
push str.Process
call fcn.0040b983
push dword [ebp - 4]
call fcn.004497f2
add esp, 0xc
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [ebp - 4]
mov dword [ebp - 8], eax
push ecx
push eax
push 0
lea eax, [ebp - 0x110]
push 0
mov esi, reloc.OLEAUT32.dll_SysReAllocStringLen
push eax
push esi
call edi
mov ebx, 0xea
cmp eax, ebx
jne 0x40bb1e
push dword [ebp - 8]
add dword [ebp - 4], 0x3e8
call fcn.0044981b
push dword [ebp - 4]
call fcn.004497f2
pop ecx
mov dword [ebp - 8], eax
pop ecx
lea ecx, [ebp - 4]
push ecx
push eax
push 0
lea eax, [ebp - 0x110]
push 0
push eax
push esi
call edi
jmp 0x40bae9
mov eax, dword [ebp - 8]
mov esi, dword [eax + 0x18]
add esi, eax
lea eax, [ebp - 0x110]
push eax
push str.ID_Process
mov edi, dword [esi + 8]
and byte [ebp - 0x110], 0
add edi, esi
call fcn.0040b983
xor ebx, ebx
pop ecx
cmp dword [esi + 0x20], ebx
pop ecx
jle 0x40bb66
lea eax, [ebp - 0x110]
push eax
call fcn.00433635
cmp dword [edi + 4], eax
pop ecx
je 0x40bbd1
add edi, dword [edi]
inc ebx
cmp ebx, dword [esi + 0x20]
jl 0x40bb4c
mov ebx, dword [ebp - 0xc]
mov eax, dword [esi + 4]
push 1
add eax, esi
mov edi, dword [eax]
add edi, eax
mov ecx, dword [edi + ebx]
mov dword [ebp - 0xc], ecx
pop ecx
cmp dword [esi + 0x28], ecx
mov dword [ebp - 0x10], ecx
jle 0x40bbb5
mov ecx, dword [eax + 0x10]
push 5
add ecx, eax
push ecx
push 0x4753ec
call fcn.00441502
add esp, 0xc
test eax, eax
je 0x40bbb5
mov eax, dword [edi]
add eax, edi
mov edi, dword [eax]
add edi, eax
inc dword [ebp - 0x10]
mov ecx, dword [edi + ebx]
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [esi + 0x28]
jl 0x40bb83
push dword [ebp - 8]
call fcn.0044981b
pop ecx
push reloc.OLEAUT32.dll_SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret
mov ebx, dword [edi + 0x24]
jmp 0x40bb69

Function at 0x40c138
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
push edi
push 3
pop edi
lea eax, [ebp - 4]
push eax
push 1
push 0
push str.Control_PanelDesktop
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40c1a8
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x80
push eax
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push str.WheelScrollLines
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40c19f
push 0xa
push eax
lea eax, [ebp - 0x8c]
push eax
call fcn.004326fb
add esp, 0xc
mov edi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
leave
ret
Function at 0x414d01
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
lea eax, [ebp + 0xc]
push esi
push eax
push 1
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x414d5a
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x104
push eax
lea eax, [ebp - 0x104]
push eax
push esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x414e76
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
push esi
push edi
xor ebx, ebx
push dword [ebp + 0xc]
push ebx
push ebx
push dword [ebp + 8]
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
mov dword [ebp - 4], eax
ja 0x414f60
lea eax, [ebp - 0x20c]
mov edi, SysReAllocStringLen
push eax
push str..htm
push edi
call fcn.00414d01
add esp, 0xc
test eax, eax
jne 0x414f60
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x20c]
push str._shellopencommand
push eax
call esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.00414d01
add esp, 0xc
test eax, eax
jne 0x414f60
lea eax, [ebp - 0x20c]
push str.__1_
push eax
call fcn.004338a0
mov edi, eax
pop ecx
cmp edi, ebx
pop ecx
jne 0x414f3d
lea eax, [ebp - 0x20c]
push 0x47585c
push eax
call fcn.00433820
mov edi, eax
pop ecx
cmp edi, ebx
pop ecx
jne 0x414f3d
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edi, [ebp + eax - 0x20d]
jmp 0x414f3f
mov byte [edi], bl
push 0x47512c
push edi
call esi
push dword [ebp + 8]
push edi
call esi
push dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41613c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call fcn.00431f60
test eax, eax
pop ecx
jbe 0x41615d
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x41615d
push 1
pop eax
ret
xor eax, eax
ret
Function at 0x4162bc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x45a7f8
call fcn.00431c64
push ecx
push ecx
push ebx
push esi
mov eax, dword [ebp + 8]
and dword [ebp - 4], 0
cmp dword [eax - 8], 0
jne 0x4162de
xor esi, esi
jmp 0x416379
push 1
lea eax, [ebp - 0x10]
pop esi
lea ecx, [ebp + 8]
push esi
push eax
call fcn.00441d0a
mov eax, dword [eax]
push 0x4751c4
push eax
call fcn.004322b7
mov ebx, eax
pop ecx
neg ebx
pop ecx
sbb bl, bl
lea ecx, [ebp - 0x10]
inc bl
call fcn.00449263
test bl, bl
je 0x41633e
mov eax, dword [ebp + 8]
lea ecx, [ebp + 8]
mov eax, dword [eax - 8]
dec eax
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00441d86
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.0044939c
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00449263
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x416379
push 0x5c
lea ecx, [ebp + 8]
call fcn.00441dfe
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
push ecx
lea ecx, [ebp + 8]
call fcn.00441d86
call fcn.004162bc
pop ecx
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esi, eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00449263
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x416650
Capabilities:
Get file size

Disassembly:
push esi
push edi
xor edi, edi
push edi
push 0x82
push 3
push edi
push 1
push SysReAllocStringLen
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x416686
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret

Function at 0x41668b
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x164
and dword [ebp - 4], 0
push 0x400
lea eax, [ebp - 0x164]
push 0x160
push eax
push 0
push dword [ebp + 0xc]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x54]
push eax
call fcn.004492d1
mov eax, dword [ebp + 8]
leave
ret

Function at 0x41679c
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x164
and dword [ebp - 0x164], 0
push ebx
push esi
push edi
push 0x57
xor eax, eax
cmp dword [ebp + 0xc], eax
pop ecx
lea edi, [ebp - 0x160]
mov dword [ebp - 4], 0x100
rep stosd dword es:[edi], eax
je 0x4167cf
mov dword [ebp - 4], 0x101
mov eax, dword [ebp - 4]
mov esi, dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
or ah, 0x10
mov ebx, 0x160
push eax
lea eax, [ebp - 0x164]
push ebx
mov edi, 0xa1
push eax
push edi
push dword [ebp + 8]
call esi
lea eax, [ebp - 0x158]
push eax
call fcn.00431f60
test eax, eax
pop ecx
jbe 0x41682a
push dword [ebp - 0x164]
call dword [sym.imp.USER32.dll_DestroyIcon]
push dword [ebp - 4]
cmp dword [ebp + 0xc], 0
lea eax, [ebp - 0x164]
push ebx
push eax
lea eax, [ebp - 0x158]
push edi
push eax
call esi
mov eax, dword [ebp - 0x164]
pop edi
pop esi
pop ebx
leave
ret