joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4042f1
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x318
mov eax, dword [0x42b260]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 1
call fcn.004042d7
pop ecx
test eax, eax
jne 0x404459
push edi
lea eax, [ebp - 0x314]
push eax
push 0x426460
push 1
xor edi, edi
push edi
push 0x426480
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
je 0x40434b
xor esi, esi
push 0
call fcn.004042d7
pop ecx
mov eax, esi
pop edi
jmp 0x40445b
mov eax, dword [ebp - 0x314]
push dword [esi + 4]
mov dword [ebp - 0x318], edi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
mov eax, dword [ebp - 0x314]
push dword [esi + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
mov eax, dword [esi + 0xc]
cmp eax, edi
je 0x404383
mov ecx, dword [ebp - 0x314]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x2c]
mov eax, dword [ebp - 0x314]
mov ecx, dword [eax]
lea edx, [ebp - 0x318]
push edx
push 0x426470
push eax
call dword [ecx]
test eax, eax
jne 0x404445
push ebx
push 0x422a10
push edi
call fcn.00410084
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop ecx
pop ecx
push dword [esi]
lea eax, [ebp - 0x108]
push eax
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str..lnk
lea eax, [ebp - 0x108]
push eax
call ebx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea eax, [ebp - 0x108]
push eax
call fcn.00409886
pop ecx
push dword [esi]
lea eax, [ebp - 0x108]
push eax
call edi
push str..lnk
lea eax, [ebp - 0x108]
push eax
call ebx
push 0x104
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x310]
push eax
call fcn.0040ef62
mov eax, dword [ebp - 0x318]
mov ecx, dword [eax]
add esp, 0xc
push 1
lea edx, [ebp - 0x310]
push edx
push eax
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x318]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop ebx
mov eax, dword [ebp - 0x314]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor esi, esi
inc esi
jmp 0x40433b
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040e67e
leave
ret
Function at 0x4045bb
Capabilities:
Delete file
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x15c
mov eax, dword [0x42b260]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
xor esi, esi
push esi
push eax
push dword [0x42d524]
call fcn.00409bb7
add esp, 0xc
test eax, eax
jne 0x4046fd
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x158]
push eax
push dword [0x42d524]
call fcn.0040ad30
add esp, 0x20
test eax, eax
jne 0x4046fd
push dword [0x42d524]
call fcn.0040bd70
pop ecx
test eax, eax
jne 0x4046fd
push ebx
push dword [ebp - 0x13c]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push dword [ebp - 0x13c]
mov ebx, eax
push ebx
push dword [0x42d524]
call fcn.0040b2d0
add esp, 0xc
test eax, eax
js 0x4046e9
push edi
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push str.setlogo.bmp
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
push 0x80
push 2
push esi
push 1
push 0x40000000
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4046dc
push esi
lea eax, [ebp - 0x15c]
push eax
push dword [ebp - 0x13c]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x2010
push esi
push esi
push esi
lea eax, [ebp - 0x108]
push eax
push esi
call dword [sym.imp.USER32.dll_LoadImageA]
mov esi, eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
call fcn.00404544
pop ecx
mov dword [0x42d3d0], eax
pop edi
push dword [0x42d524]
call fcn.0040b560
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop ebx
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040e67e
leave
ret
Function at 0x4047e7
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x42b260]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor esi, esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x108], esi
lea eax, [ebp - 0x104]
cmp ebx, esi
je 0x404820
push ebx
push eax
call fcn.0040e750
pop ecx
pop ecx
jmp 0x40483a
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
push str.CroInfo
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x10c], eax
cmp eax, 0xffffffff
je 0x404916
mov esi, 0x100
push esi
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.0040e8e0
add esp, 0xc
push 0
lea eax, [ebp - 0x110]
push eax
push esi
lea eax, [ebp - 0x104]
push eax
push dword [ebp - 0x10c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x404908
lea eax, [edi + 0xc]
push eax
lea eax, [edi + 8]
push eax
lea eax, [edi + 4]
push eax
push edi
lea eax, [ebp - 0x104]
push str._d__d__d__s
push eax
call fcn.0040f592
add esp, 0x18
cmp eax, 4
jne 0x4048ef
mov dword [ebp - 0x108], 1
jmp 0x404908
test ebx, ebx
jne 0x404908
push ebx
push 0x422924
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call fcn.00406fca
add esp, 0xc
push dword [ebp - 0x10c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40492f
cmp ebx, esi
jne 0x40492f
push esi
push 0x422908
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call fcn.00406fca
add esp, 0xc
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x108]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e67e
leave
ret
Function at 0x404e47
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x42b260]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 3
push esi
push 0x42b1c0
mov dword [ebp - 0x40], esi
call fcn.00409793
push 0x20
push 0
push 0x1036
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
call esi
push 1
push 1
push 1
push 0x10
push 0x10
call dword [sym.imp.COMCTL32.dll_ImageList_Create]
mov edi, dword [sym.imp.USER32.dll_LoadIconA]
push 0x66
push dword [0x42d374]
mov dword [0x42d6c8], eax
call edi
mov ebx, dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
push eax
push 0xffffffffffffffff
push dword [0x42d6c8]
call ebx
push 0x67
push dword [0x42d374]
call edi
push eax
push 0xffffffffffffffff
push dword [0x42d6c8]
call ebx
push dword [0x42d6c8]
push 1
push 0x1003
push dword [ebp - 0x40]
call esi
push 0x422c40
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
and dword [ebp - 0x44], 0
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
mov byte [ebp - 0x39], 0x43
mov dword [ebp - 0x4c], 0x43
mov ebx, 0x102e
mov al, byte [ebp - 0x39]
mov byte [ebp - 0x48], al
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
push 3
pop ecx
cmp eax, ecx
je 0x404f28
cmp eax, 4
jne 0x404fd0
xor ecx, ecx
cmp eax, 4
sete cl
lea eax, [ebp - 0x48]
push ecx
push 0
push dword [ebp - 0x4c]
push eax
push dword [ebp - 0x44]
push dword [ebp - 0x40]
call fcn.0040980a
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00404db7
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x50]
shrd eax, ecx, 0x14
shr ecx, 0x14
push ecx
push eax
lea eax, [ebp - 0x38]
push 0x422c38
push eax
call edi
add esp, 0x34
lea eax, [ebp - 0x38]
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x84]
push eax
push dword [ebp - 0x44]
mov dword [ebp - 0x7c], 1
push ebx
push dword [ebp - 0x40]
call esi
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x58]
shrd eax, ecx, 0x14
shr ecx, 0x14
push ecx
push eax
lea eax, [ebp - 0x38]
push 0x422c38
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x38]
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x84]
push eax
push dword [ebp - 0x44]
mov dword [ebp - 0x7c], 2
push ebx
push dword [ebp - 0x40]
call esi
inc dword [ebp - 0x44]
push 3
pop ecx
inc byte [ebp - 0x39]
inc dword [ebp - 0x4c]
cmp byte [ebp - 0x39], 0x5a
jle 0x404f08
lea eax, [ebp - 0x84]
push eax
push 0
push 0x102b
push dword [ebp - 0x40]
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x78], ecx
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e67e
leave
ret
Function at 0x405478
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x42b260]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x108]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x12c], eax
mov eax, dword [0x42d6c0]
xor ecx, ecx
push edi
mov dword [ebp - 0x114], esi
mov dword [ebp - 0x134], esi
mov dword [ebp - 0x128], 0x422cbc
cmp eax, ecx
jne 0x4054c8
mov dword [ebp - 0x128], 0x422c94
xor ebx, ebx
inc ebx
mov dword [ebp - 0x124], ebx
cmp eax, ecx
je 0x4054df
mov dword [ebp - 0x124], 0x201
cmp dword [0x42d368], 3
mov dword [ebp - 0x120], 0x40514c
mov dword [ebp - 0x118], ecx
je 0x40550a
lea eax, [ebp - 0x10c]
push eax
push 0x11
push ecx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
jmp 0x405510
mov dword [ebp - 0x10c], ecx
mov eax, dword [ebp - 0x10c]
push 0x104
push 0x42d6e0
mov edi, 0x3f0
push edi
push esi
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x11c], ebx
call dword [sym.imp.USER32.dll_GetDlgItemTextA]
mov esi, dword [sym.imp.SHELL32.dll_SHBrowseForFolderA]
jmp 0x405550
cmp dword [0x42d7fc], 0
je 0x405565
mov dword [ebp - 0x11c], ebx
lea eax, [ebp - 0x134]
push eax
call esi
mov dword [ebp - 0x110], eax
test eax, eax
jne 0x405541
jmp 0x405599
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x110]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
lea eax, [ebp - 0x108]
push eax
push edi
push dword [ebp - 0x114]
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
lea eax, [ebp - 0x108]
push eax
call fcn.00406fb7
pop ecx
push dword [ebp - 0x110]
mov eax, dword [0x42d384]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
cmp dword [ebp - 0x10c], 0
pop edi
pop esi
pop ebx
je 0x4055c7
mov eax, dword [0x42d384]
push dword [ebp - 0x10c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e67e
leave
ret

Function at 0x4056ff
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x405745
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
je 0x405729
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryEmptyA]
test eax, eax
jne 0x405745
push 4
push 0x422d08
push dword [ebp + 8]
call fcn.00406fca
sub eax, 6
add esp, 0xc
neg eax
sbb eax, eax
inc eax
pop ebp
ret
xor eax, eax
inc eax
pop ebp
ret
Function at 0x40574a
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x42b260]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push 0x124
mov dword [ebp - 0x238], eax
lea eax, [ebp - 0x22c]
push ebx
push eax
mov dword [ebp - 0x230], ebx
call fcn.0040e8e0
mov eax, dword [0x42c468]
add esp, 0xc
cmp eax, ebx
jne 0x40579d
push str.PSAPI.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x42c468], eax
cmp dword [0x42c464], ebx
jne 0x4057c1
push str.GetModuleFileNameExA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x42c464], eax
cmp eax, ebx
jne 0x4057c1
xor eax, eax
jmp 0x405877
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x234], eax
cmp eax, 0xffffffff
jne 0x4057dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4057ba
lea ecx, [ebp - 0x230]
push ecx
push eax
mov dword [ebp - 0x230], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x4057d4
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push dword [ebp - 0x228]
push ebx
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
cmp edi, ebx
je 0x405846
push 0x104
lea eax, [ebp - 0x108]
push eax
push ebx
push edi
call dword [0x42c464]
push edi
call esi
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x238]
call fcn.0041e8d9
pop ecx
pop ecx
test eax, eax
je 0x405868
lea eax, [ebp - 0x230]
push eax
push dword [ebp - 0x234]
mov dword [ebp - 0x230], 0x128
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4057ff
jmp 0x40586b
xor ebx, ebx
inc ebx
push dword [ebp - 0x234]
call esi
pop edi
mov eax, ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040e67e
leave
ret
Function at 0x405884
Capabilities:
Enumerate services
Query service configuration

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2024
call fcn.00410320
mov eax, dword [0x42b260]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
xor edi, edi
push 0x20005
push edi
push edi
mov dword [ebp - 0x2024], eax
mov dword [ebp - 0x2008], edi
mov dword [ebp - 0x201c], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0x2014], eax
cmp eax, edi
jne 0x4058d1
xor eax, eax
jmp 0x4059e8
push ebx
push esi
mov esi, 0x1000
lea eax, [ebp - 0x201c]
push eax
lea eax, [ebp - 0x200c]
push eax
lea eax, [ebp - 0x2018]
push eax
push esi
lea eax, [ebp - 0x2004]
push eax
push 1
push 0x30
push dword [ebp - 0x2014]
mov dword [ebp - 0x2018], edi
mov dword [ebp - 0x200c], edi
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusA]
mov dword [ebp - 0x2020], eax
cmp eax, edi
jne 0x40592c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x4059d4
mov dword [ebp - 0x2010], edi
cmp dword [ebp - 0x200c], edi
jbe 0x4059c0
lea ebx, [ebp - 0x2004]
cmp dword [ebp - 0x2008], edi
jne 0x4059c0
push 0x80000000
push dword [ebx]
push dword [ebp - 0x2014]
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
je 0x4059a7
lea eax, [ebp - 0x2018]
push eax
push esi
lea eax, [ebp - 0x1004]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
je 0x4059a0
push dword [ebp - 0x2024]
push dword [ebp - 0xff8]
call fcn.00410290
pop ecx
pop ecx
test eax, eax
je 0x4059a0
mov dword [ebp - 0x2008], 1
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
inc dword [ebp - 0x2010]
mov eax, dword [ebp - 0x2010]
add ebx, 0x24
xor edi, edi
cmp eax, dword [ebp - 0x200c]
jb 0x405944
cmp dword [ebp - 0x2020], edi
jne 0x4059d4
cmp dword [ebp - 0x2008], edi
je 0x4058d8
push dword [ebp - 0x2014]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x2008]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0040e67e
leave
ret
Function at 0x405b14
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x42b260]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.0040e750
pop ecx
pop ecx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
cmp dword [0x42d6c0], 0
mov eax, dword [0x42d7f0]
jne 0x405b5f
mov eax, dword [0x42d7f4]
test eax, eax
jne 0x405b6a
xor eax, eax
jmp 0x405c0b
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.0040e760
pop ecx
pop ecx
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x108]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x405b63
call fcn.00410390
mov ebx, esp
push ebx
push esi
push dword [ebp - 0x114]
lea eax, [ebp - 0x108]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x405b63
and dword [ebp - 0x110], 0
and dword [ebp - 0x10c], 0
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x110]
push eax
push str.StringFileInfo041904E3InternalName
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x405b63
mov eax, dword [ebp - 0x10c]
lea ecx, [eax + 1]
cmp dword [ebp + 0x10], ecx
jb 0x405b63
push eax
push dword [ebp - 0x110]
push edi
call fcn.0040e750
mov eax, dword [ebp - 0x10c]
mov byte [edi + eax], 0
xor eax, eax
add esp, 0xc
inc eax
lea esp, [ebp - 0x120]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e67e
leave
ret
Function at 0x405c20
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3d4
mov eax, dword [0x42b260]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x3d0], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x188]
push edi
push eax
call fcn.0040e750
mov esi, dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
pop ecx
pop ecx
lea eax, [ebp - 0x188]
push eax
call esi
lea eax, [ebp - 0x188]
push 0x422e8c
push eax
call fcn.0040e760
pop ecx
pop ecx
lea eax, [ebp - 0x3cc]
push eax
lea eax, [ebp - 0x188]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x3d4], eax
cmp eax, 0xffffffff
je 0x405d9c
test byte [ebp - 0x3cc], 0x10
lea eax, [ebp - 0x3a0]
je 0x405d1d
push 0x422e88
push eax
call fcn.00410200
pop ecx
pop ecx
test eax, eax
je 0x405d60
lea eax, [ebp - 0x3a0]
push 0x422e84
push eax
call fcn.00410200
pop ecx
pop ecx
test eax, eax
je 0x405d60
lea eax, [ebp - 0x28c]
push edi
push eax
call fcn.0040e750
pop ecx
pop ecx
lea eax, [ebp - 0x28c]
push eax
call esi
lea eax, [ebp - 0x3a0]
push eax
lea eax, [ebp - 0x28c]
push eax
call fcn.0040e760
lea eax, [ebp - 0x28c]
push ebx
push eax
call fcn.00405c20
add esp, 0x10
mov dword [ebp - 0x3d0], eax
test eax, eax
jne 0x405d90
jmp 0x405d60
push dword [0x42d7f0]
push eax
call fcn.00410200
pop ecx
pop ecx
test eax, eax
jne 0x405d60
push 0x80
lea eax, [ebp - 0x84]
push eax
push edi
call fcn.00405b14
add esp, 0xc
test eax, eax
je 0x405d60
push dword [0x42d220]
lea eax, [ebp - 0x84]
push eax
call fcn.00410200
pop ecx
pop ecx
test eax, eax
je 0x405d7d
lea eax, [ebp - 0x3cc]
push eax
push dword [ebp - 0x3d4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405c97
jmp 0x405d90
push edi
push ebx
call fcn.0040e750
pop ecx
pop ecx
mov dword [ebp - 0x3d0], 1
push dword [ebp - 0x3d4]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x3d0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e67e
leave
ret
Function at 0x4064cd
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp + 8]
push eax
xor ebx, ebx
lea eax, [ebp - 8]
push eax
mov eax, dword [esi]
push ebx
push 0xf003f
push ebx
push 0x4230b8
push ebx
push dword [esi + 4]
mov dword [ebp - 8], ebx
push dword [eax*4 + 0x42b02c]
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x406511
xor eax, eax
jmp 0x406597
mov eax, dword [esi + 8]
push edi
mov edi, dword [ebp - 8]
cmp eax, ebx
je 0x40652f
lea ecx, [ebp - 4]
push ecx
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x406593
mov edi, dword [ebp - 4]
cmp dword [esi + 0x10], ebx
je 0x40657e
mov eax, dword [esi + 0xc]
cmp eax, 3
jae 0x40657e
cmp eax, 1
jne 0x40654c
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
jmp 0x40654f
push 4
pop eax
mov ecx, dword [esi + 0xc]
cmp ecx, 1
jne 0x40655c
mov edx, dword [esi + 0x14]
jmp 0x40655f
lea edx, [esi + 0x14]
dec ecx
neg ecx
push eax
sbb ecx, ecx
push edx
and ecx, 3
inc ecx
push ecx
push ebx
push dword [esi + 0x10]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x40657e
xor eax, eax
jmp 0x406596
push dword [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
cmp dword [ebp - 4], ebx
je 0x406593
push dword [ebp - 4]
call esi
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40659b
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
lea eax, [ebp + 8]
push eax
mov eax, dword [ebx]
mov edi, 0x20019
push edi
push 0
push dword [ebx + 4]
push dword [eax*4 + 0x42b02c]
call esi
test eax, eax
je 0x4065d6
xor eax, eax
jmp 0x40674f
mov eax, dword [ebx + 8]
test eax, eax
je 0x4065fd
mov ecx, dword [ebp + 8]
lea edx, [ebp + 8]
push edx
push edi
push 0
push eax
push ecx
mov dword [ebp - 0xc], ecx
call esi
test eax, eax
je 0x4065fd
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4065cf
lea eax, [ebp - 4]
push eax
push 0
lea eax, [ebp - 8]
push eax
push 0
push dword [ebx + 0x10]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4065cf
push dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push 0x40
call esi
mov edi, eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 8]
push eax
push 0
push dword [ebx + 0x10]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40664c
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x4065cf
mov eax, dword [ebp - 8]
dec eax
dec eax
je 0x40672b
dec eax
je 0x4066ee
dec eax
je 0x4066d7
sub eax, 3
je 0x40668c
sub eax, 4
jne 0x40674d
push 0x40
push 0x40
call esi
push 0xa
mov esi, eax
push esi
push dword [edi + 4]
push dword [edi]
call fcn.004104d9
add esp, 0x10
jmp 0x406744
mov eax, dword [ebp - 4]
xor ecx, ecx
mov edx, edi
test eax, eax
je 0x4066a3
mov ebx, eax
cmp byte [edx], 0
jne 0x40669f
inc ecx
inc edx
dec ebx
jne 0x406699
lea eax, [ecx + eax + 1]
push eax
push 0x40
call esi
xor ebx, ebx
mov esi, eax
mov edx, edi
cmp dword [ebp - 4], ebx
jbe 0x406744
mov cl, byte [edx]
test cl, cl
je 0x4066c6
mov byte [eax], cl
inc eax
jmp 0x4066ce
mov word [eax], 0xa0d
add eax, 2
inc ebx
inc edx
cmp ebx, dword [ebp - 4]
jb 0x4066bb
jmp 0x406744
push 0x40
push 0x40
call esi
mov esi, eax
push 0xa
push esi
push dword [edi]
call fcn.00410429
add esp, 0xc
jmp 0x406744
mov eax, dword [ebp - 4]
lea eax, [eax + eax + 1]
push eax
push 0x40
call esi
xor esi, esi
mov dword [ebp - 0xc], eax
mov ebx, edi
cmp dword [ebp - 4], esi
jbe 0x40671f
push 0x10
push eax
movzx eax, byte [ebx]
push eax
call fcn.004103ff
add esp, 0xc
inc esi
push 2
inc ebx
pop eax
cmp esi, dword [ebp - 4]
jb 0x406706
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edi, dword [ebp - 0xc]
jmp 0x40674d
mov ebx, 0x10000
push ebx
push 0x40
call esi
push ebx
mov esi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp eax, ebx
jae 0x40674d
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edi, esi
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret