joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1007ca20
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x28
mov eax, dword [0x100c4014]
xor eax, esp
mov dword [esp + 0x24], eax
push esi
mov esi, ecx
mov ecx, 0x100c758a
push edi
call fcn.10085165
cmp dword [esi + 0x38], 0
je 0x1007cad8
cmp byte [esi + 0x3d], 0
je 0x1007cad8
mov eax, dword [esi]
mov ecx, esi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x1007ca89
mov ecx, dword [esi + 0x38]
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x1007ca9c
sub eax, 1
je 0x1007caa0
sub eax, 2
je 0x1007cad8
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.100826ce
add esp, 0x28
ret
mov byte [esi + 0x3d], 0
mov edi, dword [esp + 8]
lea eax, [esp + 0xc]
sub edi, eax
je 0x1007cac0
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x1007ca89
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.100826ce
add esp, 0x28
ret
mov ecx, dword [esp + 0x2c]
mov al, 1
pop edi
pop esi
xor ecx, esp
call fcn.100826ce
add esp, 0x28
ret
Function at 0x4010c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x81c
mov eax, dword [0x428024]
xor eax, ebp
mov dword [ebp - 0xc], eax
push 0x41a264
push 0x81
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4010f5
xor al, al
jmp 0x40119f
mov dword [0x428ef0], 0
mov eax, dword [ebp - 4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [0x428ef4], eax
mov dword [ebp - 0x814], str.4jkJ
push 0x400
lea ecx, [ebp - 0x810]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [ebp - 8], 0
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x818], eax
cmp dword [ebp - 0x818], 0
jne 0x40115d
xor al, al
jmp 0x40119f
mov ecx, dword [ebp - 0x818]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x81c], eax
cmp dword [ebp - 0x81c], 0
jne 0x40117d
xor al, al
jmp 0x40119f
mov edx, dword [ebp - 0x81c]
push edx
call fcn.00401010
add esp, 4
mov dword [ebp - 0x81c], eax
mov eax, dword [ebp - 0x81c]
mov dword [0x428ef8], eax
mov al, 1
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00401c61
mov esp, ebp
pop ebp
ret
Function at 0x4015a0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x419310
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x428024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
push str.START
call fcn.00401000
add esp, 4
call fcn.004010c0
cmp dword [0x428ef8], 0
je 0x40167d
push str.LEIDO
call fcn.00401000
add esp, 4
mov eax, dword [0x428ef8]
push eax
call fcn.004011b0
add esp, 4
mov byte [ebp - 0x19], al
movzx ecx, byte [ebp - 0x19]
test ecx, ecx
je 0x401667
push str.SUMBITINMEMORY
call fcn.00401000
add esp, 4
mov edx, dword [0x428ee4]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x401651
push str.NORUN
call fcn.00401000
add esp, 4
mov eax, 0x12c
jmp 0x4016b9
push 0x4237e4
call fcn.00401000
add esp, 4
mov eax, 0x1388
jmp 0x4016b9
push str.NOTSUMBITMEMORY
call fcn.00401000
add esp, 4
mov eax, 0xc8
jmp 0x4016b9
push str.NOTREAD
call fcn.00401000
add esp, 4
mov eax, 0x64
jmp 0x4016b9
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401c61
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x428024]
jne 0x401c6b
repz ret
jmp fcn.00403f22
Function at 0x40775d
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.00405440
and dword [ebp - 4], 0
cmp dword [0x42992c], 0
mov ebx, eax
jne 0x40780e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4078bf
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4078bf
push eax
call fcn.004053ce
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x42992c], eax
call esi
push eax
call fcn.004053ce
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x429930], eax
call esi
push eax
call fcn.004053ce
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x429934], eax
call esi
push eax
call fcn.004053ce
pop ecx
mov dword [0x42993c], eax
test eax, eax
je 0x40780e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004053ce
pop ecx
mov dword [0x429938], eax
mov eax, dword [0x429938]
cmp eax, ebx
je 0x407866
cmp dword [0x42993c], ebx
je 0x407866
push eax
call fcn.00405449
push dword [0x42993c]
mov esi, eax
call fcn.00405449
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x407866
test edi, edi
je 0x407866
call esi
test eax, eax
je 0x40785d
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40785d
test byte [ebp - 0xc], 1
jne 0x407866
or dword [ebp + 0x10], 0x200000
jmp 0x40789f
mov eax, dword [0x429930]
cmp eax, ebx
je 0x40789f
push eax
call fcn.00405449
pop ecx
test eax, eax
je 0x40789f
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40789f
mov eax, dword [0x429934]
cmp eax, ebx
je 0x40789f
push eax
call fcn.00405449
pop ecx
test eax, eax
je 0x40789f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42992c]
call fcn.00405449
pop ecx
test eax, eax
je 0x4078bf
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4078c1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40ba30
Capabilities:
Accept command line arguments

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x6c
call fcn.00405060
call sub.kernel32.dll_GetCommandLineA
mov ebx, eax
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call sub.kernel32.dll_GetStartupInfoA
sub esp, 4
test ebx, ebx
jne 0x40ba66
jmp 0x40baa5
add ebx, 1
movzx eax, byte [ebx]
cmp al, 9
je 0x40ba63
cmp al, 0x20
je 0x40ba63
cmp al, 0x22
jne 0x40ba89
jmp 0x40baf4
cmp al, 0x20
lea esi, [esi]
je 0x40ba90
test al, al
je 0x40baa5
add ebx, 1
movzx eax, byte [ebx]
cmp al, 9
jne 0x40ba77
movzx eax, byte [ebx]
cmp al, 0x20
jne 0x40bb0a
add ebx, 1
movzx eax, byte [ebx]
cmp al, 9
je 0x40ba97
cmp al, 0x20
je 0x40ba97
test byte [ebp - 0x30], 1
mov esi, 0xa
je 0x40bab4
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call sub.kernel32.dll_GetModuleHandleA
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00401803
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret
cmp al, 0x22
je 0x40bafe
add ebx, 1
movzx eax, byte [ebx]
test al, al
jne 0x40baf0
cmp al, 0x22
sete al
movzx eax, al
add ebx, eax
jmp 0x40ba90
cmp al, 9
je 0x40ba97
jmp 0x40baa5

Function at 0x4032a0
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x405076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x405258], eax
mov dword [0x4051e0], 0x402b80
mov dword [0x4051dc], 2
jmp 0x4032d0
mov dword [0x4051e4], 0
mov dword [0x4051e8], 0
mov dword [0x4051d8], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x4051ec], eax
mov dword [0x405200], 0x404080
mov dword [0x4051f8], 0xf
mov dword [0x40506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x4051f0], eax
mov dword [0x405204], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x4051f4], eax
push 0x4051d8
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x40506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x405250], eax
push 5
push dword [0x405250]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x405250]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x4033a3
push 0
push 0
push 0
push 0x405208
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x4033d0
push 0x405208
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x405208
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x4033a3
mov eax, dword [0x405210]
jmp 0x4033dd
call 0x402474
ret
Function at 0x4018a3
Capabilities:
Compare security identifiers

Disassembly:
push eax
pop eax
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x408004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x408128]
push ebx
push edi
push 2
xor ebx, ebx
mov word [ebp - 8], 0x500
pop edi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
cmp eax, edi
jne 0x4019c9
lea ecx, [ebp - 0x10]
call fcn.004017ee
or eax, eax
jne 0x4019b8
lea eax, [ebp - 0x18]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
or eax, eax
je 0x4019c9
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push edi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
or eax, eax
jne 0x4019aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4019aa
push esi
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
or esi, esi
je 0x4019a9
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
push esi
push edi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
or eax, eax
je 0x4019a2
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push edi
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x4019a2
cmp dword [esi], ebx
jbe 0x401999
lea edi, [esi + 4]
push dword [ebp - 0x1c]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
or eax, eax
jne 0x40198e
inc ebx
add edi, 8
cmp ebx, dword [esi]
jb 0x401975
jmp 0x401999
sub eax, eax
inc eax
mov dword [0x408128], eax
mov dword [ebp - 0x10], eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
jmp 0x4019c9
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4019c9
mov dword [0x408128], 1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00406ce0
push ebp
pop esp
pop ebp
ret
Function at 0x401f90
Capabilities:
Shutdown system

Disassembly:
mov edi, edi
push ebp
push esp
pop ebp
sub esp, 0x18
mov eax, dword [0x408004]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
xor edi, edi
test eax, eax
jne 0x401f23
mov edx, 0x4f5
push edi
push 0x10
push edi
push edi
sub ecx, ecx
call fcn.004044b9
sub eax, eax
jmp 0x401f81
push esi
lea eax, [ebp - 0x10]
push eax
push 0x4011c4
push edi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push edi
push edi
push edi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 1
push eax
push edi
push dword [ebp - 0x18]
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 0x18]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or esi, esi
pop esi
push edi
jne 0x401f6b
mov edx, 0x4f6
jmp 0x401f14
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x401f7e
mov edx, 0x4f7
jmp 0x401f13
sub eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00406ce0
mov esp, ebp
pop ebp
ret
pushal
popal
push ebx
push ecx
pop ebx
test bl, 2
jne 0x401fa4
call fcn.00401ea7
cmp eax, 2
jne 0x401fd9
test bl, 4
jne 0x401fc5
push 4
push 0x40
push 0
push 0x401140
mov edx, 0x522
xor ecx, ecx
call fcn.004044b9
cmp eax, 6
jne 0x401fd9
cmp word [0x409a40], 0
jne 0x401fdb
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
pop ebx
ret
pop ebx
jmp 0x401ee2

Function at 0x401fe1
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
pushal
popal
push ebp
mov ebp, esp
push ecx
cmp byte [0x408530], 0
je 0x402026
lea eax, [ebp - 4]
push eax
push 0x20006
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
or eax, eax
jne 0x402026
push 0x408530
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
pop esp
pop ebp
ret
Function at 0x402267
Capabilities:
Get common file path
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebx
pop ebx
push ebp
mov ebp, esp
sub esp, 0x348
mov eax, dword [0x408004]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x408530], 0
je 0x402382
push esi
lea eax, [ebp - 0x344]
sub esi, esi
push eax
push 0x2001f
push esi
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
or eax, eax
jne 0x402381
push ebx
lea eax, [ebp - 0x348]
mov ebx, 0x238
push eax
lea eax, [ebp - 0x340]
mov dword [ebp - 0x348], ebx
push eax
push esi
push esi
push 0x408530
push dword [ebp - 0x344]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
or eax, eax
jne 0x402374
push edi
mov edi, 0x104
lea eax, [ebp - 0x108]
push edi
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x108]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
or eax, eax
je 0x402321
push 0x401140
mov edx, edi
lea ecx, [ebp - 0x108]
call fcn.0040658a
push 0x4091e4
lea eax, [ebp - 0x108]
push eax
push str.rundll32.exe__sadvpack.dll_DelNodeRunDLL32___s_
lea eax, [ebp - 0x340]
push ebx
push eax
call fcn.0040171e
add esp, 0x14
lea ecx, [ebp - 0x340]
lea edx, [ecx + 1]
pop edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40234c
sub ecx, edx
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0x340]
push eax
push 1
push esi
push 0x408530
push dword [ebp - 0x344]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x344]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406ce0
mov esp, ebp
pop ebp
ret
Function at 0x402390
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push esi
pop esi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x254
mov eax, dword [0x408004]
xor eax, esp
mov dword [esp + 0x250], eax
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x4024cb
cmp byte [esi], 0
je 0x4024cb
mov ebx, 0x104
lea ecx, [esp + 0x150]
push esi
push ebx
pop edx
call fcn.00401680
push 0x4011f4
mov edx, ebx
lea ecx, [esp + 0x154]
call fcn.004016b3
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4024cb
push esi
push ebx
pop edx
lea ecx, [esp + 0x154]
call fcn.00401680
test byte [esp + 0x10], 0x10
lea eax, [esp + 0x3c]
je 0x402479
push 0x4011f8
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x4024a9
push 0x4011fc
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x4024a9
lea eax, [esp + 0x3c]
mov edx, ebx
push eax
lea ecx, [esp + 0x154]
call fcn.004016b3
push 0x401140
mov edx, ebx
lea ecx, [esp + 0x154]
call fcn.0040658a
lea ecx, [esp + 0x150]
call fcn.00402390
jmp 0x4024a9
push eax
mov edx, ebx
lea ecx, [esp + 0x154]
call fcn.004016b3
push 0x80
lea eax, [esp + 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [esp + 0x150]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x402407
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, dword [esp + 0x25c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00406ce0
push ebp
pop esp
pop ebp
ret

Function at 0x40256d
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
pushal
popal
push ebp
push esp
pop ebp
push ecx
push ecx
push esi
movzx eax, cx
sub esi, esi
test ax, ax
je 0x402622
sub edx, edx
inc edx
cmp ax, dx
je 0x4025e8
jbe 0x402629
cmp cx, 3
ja 0x402629
lea eax, [ebp - 8]
mov dword [ebp - 4], esi
push eax
push 0x20019
push esi
push 0x40800c
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
or eax, eax
jne 0x4025e3
lea eax, [ebp - 4]
push eax
push esi
push esi
push esi
push str.PendingFileRenameOperations
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 8]
neg eax
sbb eax, eax
not eax
and dword [ebp - 4], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 4]
jmp 0x402629
lea eax, [ebp - 8]
mov dword [ebp - 4], esi
push eax
push 0x20019
push esi
push str.SystemCurrentControlSetControlSession_ManagerFileRenameOperations
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4025e3
push esi
push esi
push esi
push esi
lea eax, [ebp - 4]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
jmp 0x4025d1
call 0x4024e0
push eax
pop esi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x402630
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x408004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x104
lea eax, [ebp - 0x108]
push ecx
pop esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x40266f
push eax
push 0x10
push eax
push eax
mov edx, 0x4f0
xor ecx, ecx
call fcn.004044b9
mov cl, byte [esi]
sub eax, eax
cmp cl, byte [ebp - 0x108]
mov ecx, dword [ebp - 4]
sete al
xor ecx, ebp
pop esi
call fcn.00406ce0
push ebp
pop esp
pop ebp
ret

Function at 0x402773
Capabilities:
Get common file path
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
push esp
pop ebp
sub esp, 0x11c
mov eax, dword [0x408004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, ecx
mov dword [ebp - 0x110], esi
mov byte [edi], bl
cmp byte [esi], 0x23
jne 0x4028b2
inc esi
movsx eax, byte [esi]
push eax
call dword [sym.imp.USER32.dll_CharUpperA]
push esi
mov byte [ebp - 0x109], al
call dword [sym.imp.USER32.dll_CharNextA]
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [ebp - 0x110], eax
mov esi, 0x104
mov al, byte [ebp - 0x109]
cmp al, 0x53
je 0x4028b7
cmp al, 0x57
je 0x4028a8
push ecx
push 0x401210
push ecx
push esi
pop edx
mov dword [ebp - 0x11c], esi
lea ecx, [ebp - 0x108]
call fcn.00401781
push dword [ebp - 0x110]
push esi
pop edx
lea ecx, [ebp - 0x108]
call fcn.0040658a
lea eax, [ebp - 0x118]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x108]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4028c3
lea eax, [ebp - 0x11c]
push eax
push edi
lea eax, [ebp - 0x114]
push eax
push ebx
push 0x401140
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40289a
mov eax, dword [ebp - 0x114]
cmp eax, 2
jne 0x402892
push esi
lea eax, [ebp - 0x108]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
or eax, eax
je 0x40288c
lea eax, [ebp - 0x108]
push esi
pop edx
push eax
mov ecx, edi
call fcn.00401680
jmp 0x402897
mov eax, dword [ebp - 0x114]
cmp eax, 1
jne 0x40289a
sub ebx, ebx
inc ebx
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4028bf
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x4028c3
mov esi, 0x104
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
or ebx, ebx
jne 0x4028d2
push dword [ebp - 0x110]
mov edx, esi
push edi
pop ecx
call fcn.0040658a
mov ecx, dword [ebp - 4]
sub eax, eax
pop edi
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.00406ce0
push ebp
pop esp
pop ebp
ret 4
Function at 0x4028e8
Capabilities:
Get file version info

Disassembly:
push edi
pop edi
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
mov dword [ebp - 8], edx
push ecx
pop edx
push esi
sub esi, esi
mov dword [ebp - 0xc], edx
mov ebx, esi
push edi
push esi
pop edi
mov dword [ebp - 0x10], ebx
cmp dword [edx + 0x7c], esi
jle 0x402a62
mov eax, esi
mov dword [ebp - 4], esi
mov ecx, dword [edx + 0x80]
add eax, edx
add edx, 0x84
mov dword [ebp - 0x14], ecx
mov eax, dword [eax + ecx + 0xbc]
mov ecx, dword [ebp - 8]
add eax, edx
push eax
call fcn.00402773
or eax, eax
je 0x402a65
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x402a2c
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x402a65
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x402a65
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp - 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
or eax, eax
je 0x402a20
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
push 0x401244
push dword [ebp - 0x20]
call dword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x402a20
cmp dword [ebp - 0x24], 0
je 0x402a20
mov eax, dword [ebp - 0x28]
push esi
pop ebx
mov ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
add ecx, 0x94
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0xc]
add eax, ecx
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x20], eax
push eax
pop esi
push dword [esi - 0xc]
push dword [esi - 0x10]
call fcn.00402a89
push dword [esi]
mov dword [ebp + ebx - 0x34], eax
push dword [esi - 4]
call fcn.00402a89
mov dword [ebp + ebx - 0x3c], eax
lea esi, [esi + 0x18]
add ebx, 4
cmp ebx, 8
jl 0x4029df
mov ebx, dword [ebp - 0x10]
sub esi, esi
cmp dword [ebp - 0x34], esi
jl 0x402a16
cmp dword [ebp - 0x3c], esi
jle 0x402a20
cmp dword [ebp - 0x30], esi
jl 0x402a80
cmp dword [ebp - 0x38], esi
jg 0x402a80
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edx, dword [ebp - 0xc]
jmp 0x402a4c
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
add eax, edx
mov ecx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x10]
cmp dword [eax + ecx + 0x84], esi
jne 0x402a65
cmp dword [eax + ecx + 0x88], esi
jne 0x402a65
mov eax, dword [ebp - 4]
inc ebx
add eax, 0x3c
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], eax
cmp ebx, dword [edx + 0x7c]
jl 0x402912
xor esi, esi
inc esi
mov ecx, dword [ebp + 0xc]
mov dword [ecx], ebx
or edi, edi
je 0x402a75
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
push esi
pop eax
pop esi
pop ebx
push ebp
pop esp
pop ebp
ret 8
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x402a65