joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4055a0
Capabilities:
Enumerate threads
Terminate thread

Disassembly:
sub esp, 0x28
mov eax, dword [esp + 0x2c]
push esi
push edi
push eax
xor edi, edi
push 4
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [esp + 0x10], esi
cmp esi, edi
jne 0x4055cd
pop edi
xor eax, eax
pop esi
add esp, 0x28
ret
mov ecx, 0x1c
lea eax, [esp + 0x14]
mov byte [eax], 0
inc eax
sub ecx, 1
jne 0x4055d6
lea ecx, [esp + 0x14]
push ecx
push esi
mov dword [esp + 0x1c], 0x1c
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x40567a
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov edi, edi
mov edx, dword [esp + 0x3c]
cmp dword [esp + 0x28], edx
jne 0x405662
push 0
push 0
lea eax, [esp + 0x2c]
push eax
push 0x405430
push 0
push 0
call edi
mov esi, eax
test esi, esi
je 0x405678
push 0xbb8
push esi
call ebx
cmp eax, 0x102
je 0x40568a
lea ecx, [esp + 0x14]
push ecx
push esi
call ebp
test eax, eax
je 0x40565e
mov eax, 1
cmp dword [esp + 0x14], eax
jne 0x40565e
add dword [esp + 0x10], eax
mov esi, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push edx
push esi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x405610
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
pop ebx
xor eax, eax
cmp eax, dword [esp + 8]
pop edi
sbb eax, eax
neg eax
pop esi
add esp, 0x28
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
xor eax, eax
cmp eax, dword [esp + 0x10]
pop ebp
pop ebx
sbb eax, eax
pop edi
neg eax
pop esi
add esp, 0x28
ret

Function at 0x405710
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
mov edi, eax
call fcn.004054f0
cmp eax, 0xffffffff
jne 0x405728
mov eax, 1
pop edi
pop esi
pop ebx
ret
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x405767
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x405767
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
lea esp, [esp]
call fcn.004054f0
cmp eax, 0xffffffff
je 0x405770
push 0x3e8
call ebx
inc esi
cmp esi, 5
jl 0x405750
mov eax, 2
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
mov eax, 4
pop ebx
ret

Function at 0x405960
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push edi
xor edi, edi
mov dword [esp + 4], edi
cmp edx, edi
je 0x4059cf
mov eax, edx
push esi
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405974
sub eax, esi
je 0x4059ce
cmp ebx, edi
je 0x4059ce
push edi
push edi
push 3
push edi
push 7
push 0x80000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4059ce
push edi
lea eax, [esp + 0xc]
push eax
push 0x40
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4059c7
cmp dword [esp + 8], 0x40
jne 0x4059c7
mov ecx, 0x5a4d
cmp cx, word [ebx]
jne 0x4059c7
mov edi, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, edi
pop edi
add esp, 8
ret
Function at 0x4059e0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x58
mov eax, dword [0x41f050]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push ebp
push esi
mov esi, ecx
xor ebp, ebp
mov dword [esp + 0x10], ebp
test esi, esi
je 0x405a8c
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405a06
sub eax, edx
je 0x405a8c
test edi, edi
je 0x405a8c
lea ebx, [esp + 0x18]
mov edx, esi
call fcn.00405960
test eax, eax
je 0x405a8c
push 0
push 0
push 3
push 0
push 7
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x405a8c
mov eax, dword [esp + 0x54]
push 0
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x405a85
push 0
lea ecx, [esp + 0x14]
push ecx
push 0xf8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405a85
cmp dword [esp + 0x10], 0xf8
jne 0x405a85
cmp dword [edi], 0x4550
jne 0x405a85
mov ebp, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x5c]
pop esi
mov eax, ebp
pop ebp
pop ebx
xor ecx, esp
call fcn.004089ca
add esp, 0x58
ret

Function at 0x405c40
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x3c
mov eax, dword [0x41f050]
xor eax, esp
mov dword [esp + 0x38], eax
push ebp
mov ebp, dword [esp + 0x44]
push esi
xor eax, eax
mov esi, ecx
push edi
mov edi, edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
cmp esi, eax
je 0x405d44
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405c70
sub eax, edx
je 0x405d40
test ebx, ebx
je 0x405d40
mov eax, ebx
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405c90
sub eax, edx
je 0x405d40
push ebx
lea edx, [esp + 0x20]
mov ecx, esi
call fcn.00405aa0
add esp, 4
test eax, eax
je 0x405d40
push 0
push 0
push 3
push 0
push 7
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x405d40
mov eax, dword [esp + 0x30]
push 0
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x405d21
mov eax, dword [esp + 0x24]
push eax
mov dword [edi], eax
call fcn.0040993e
add esp, 4
mov dword [ebp], eax
test eax, eax
je 0x405d21
mov edx, dword [edi]
push 0
lea ecx, [esp + 0x18]
push ecx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405d21
mov eax, dword [esp + 0x14]
cmp eax, dword [edi]
mov edi, 1
je 0x405d25
mov edi, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.004089ca
add esp, 0x3c
ret
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.004089ca
add esp, 0x3c
ret
Function at 0x405ed0
Capabilities:
Check if file exists
Get file attributes
Set file attributes
Timestomp file
Write file on windows

Disassembly:
sub esp, 0x30
push ebx
push ebp
push esi
xor ebx, ebx
push edi
mov esi, eax
xor ebp, ebp
or edi, 0xffffffff
mov dword [esp + 0x20], ebx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
cmp esi, ebx
je 0x40605f
lea edx, [eax + 1]
jmp 0x405f00
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405f00
sub eax, edx
je 0x40605f
mov ebp, dword [esp + 0x44]
cmp ebp, ebx
je 0x406069
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405f20
sub eax, edx
je 0x406069
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.00405d60
add esp, 8
test eax, eax
je 0x406036
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [esp + 0x24], eax
cmp eax, 0xffffffff
je 0x406036
push ebx
push 0x80
push 3
push ebx
push 7
push 0x80000000
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
call esi
mov edi, eax
cmp edi, 0xffffffff
je 0x406036
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x40]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x406036
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push 0x80
push 2
push ebx
push 7
push 0x40000000
push ebp
call esi
mov esi, eax
cmp esi, 0xffffffff
je 0x406036
mov ebp, dword [esp + 0x18]
push ebx
mov ebx, dword [esp + 0x20]
lea edx, [esp + 0x24]
push edx
push ebx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40602b
cmp dword [esp + 0x20], ebx
jne 0x40602b
push ebp
call fcn.0040954d
add esp, 4
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x40]
push edx
push esi
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
je 0x40602b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x44]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x40602b
mov dword [esp + 0x14], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
jmp 0x40603a
mov ebp, dword [esp + 0x18]
cmp ebp, ebx
je 0x406047
push ebp
call fcn.0040954d
add esp, 4
cmp edi, 0xffffffff
je 0x406053
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x30
ret
Function at 0x4089ca
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41f050]
jne 0x4089d4
repz ret
jmp fcn.0040a363

Function at 0x410d73
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.0040aee3
and dword [ebp - 4], 0
cmp dword [0x4d5dc0], 0
mov ebx, eax
jne 0x410e24
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x410ed5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x410ed5
push eax
call fcn.0040ae71
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4d5dc0], eax
call esi
push eax
call fcn.0040ae71
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4d5dc4], eax
call esi
push eax
call fcn.0040ae71
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4d5dc8], eax
call esi
push eax
call fcn.0040ae71
pop ecx
mov dword [0x4d5dd0], eax
test eax, eax
je 0x410e24
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040ae71
pop ecx
mov dword [0x4d5dcc], eax
mov eax, dword [0x4d5dcc]
cmp eax, ebx
je 0x410e7c
cmp dword [0x4d5dd0], ebx
je 0x410e7c
push eax
call fcn.0040aeec
push dword [0x4d5dd0]
mov esi, eax
call fcn.0040aeec
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x410e7c
test edi, edi
je 0x410e7c
call esi
test eax, eax
je 0x410e73
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x410e73
test byte [ebp - 0xc], 1
jne 0x410e7c
or dword [ebp + 0x10], 0x200000
jmp 0x410eb5
mov eax, dword [0x4d5dc4]
cmp eax, ebx
je 0x410eb5
push eax
call fcn.0040aeec
pop ecx
test eax, eax
je 0x410eb5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x410eb5
mov eax, dword [0x4d5dc8]
cmp eax, ebx
je 0x410eb5
push eax
call fcn.0040aeec
pop ecx
test eax, eax
je 0x410eb5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4d5dc0]
call fcn.0040aeec
pop ecx
test eax, eax
je 0x410ed5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x410ed7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4295e0
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
push edx
mov edx, dword [esp + 0x10]
push eax
push ecx
push 0xca62c1d6
push 0x8f1bbcdc
push 0x6ed9eba1
push 0x5a827999
push edx
call fcn.00429990
ret 0x18

Function at 0x429870
Capabilities:
Hash data using sha1

Disassembly:
mov ecx, dword [esp + 4]
mov eax, ecx
and eax, 0xfffffff
imul eax, eax, 8
jo 0x429890
test ecx, 0x10000000
je 0x42988d
or eax, 0x80000000
ret 4
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x4298a0
Capabilities:
Hash data using sha1

Disassembly:
mov ecx, dword [esp + 4]
mov eax, ecx
and eax, 0x3fffffff
imul eax, eax, 2
jo 0x4298ca
test ecx, 0x40000000
je 0x4298bd
or eax, 0x80000000
test ecx, 0x80000000
je 0x4298c7
or al, 1
ret 4
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]

Function at 0x4298d0
Capabilities:
Hash data using sha1

Disassembly:
push esi
mov esi, dword [esp + 8]
mov ecx, esi
mov eax, esi
and ecx, 0x3ffffff
imul ecx, ecx, 0x20
jo 0x42990e
and eax, 0xf8000000
cdq
and edx, 0x7ffffff
add eax, edx
sar eax, 0x1b
and eax, 0x1f
or ecx, eax
test esi, 0x4000000
pop esi
je 0x429909
or ecx, 0x80000000
mov eax, ecx
ret 4
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x429920
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov edx, eax
xor edx, ecx
jge 0x429935
add eax, ecx
jo 0x429946
ret 8
xor eax, 0x80000000
add eax, ecx
jo 0x429946
xor eax, 0x80000000
ret 8
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
nop
nop
nop
nop

Function at 0x429950
Capabilities:
Hash data using sha1

Disassembly:
push ebx
mov ebx, dword [esp + 8]
mov ecx, ebx
mov eax, ebx
and ecx, 1
imul ecx, ecx, 0x40000000
jo 0x429987
and al, 0xfc
cdq
and edx, 3
add eax, edx
sar eax, 2
and eax, 0x3fffffff
or ecx, eax
test bl, 2
pop ebx
je 0x429982
or ecx, 0x80000000
mov eax, ecx
ret 4
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
nop
nop
nop
Function at 0x4018a3
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [str.R_Bi]
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
test 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]
test 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]
test 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
test 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]
test 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]
test eax, eax
jne 0x40198e
inc ebx
add edi, 8
cmp ebx, dword [esi]
jb 0x401975
jmp 0x401999
xor 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
mov esp, ebp
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:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x348
mov eax, dword [str.R_Bi]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x408530], 0
je 0x402382
push esi
lea eax, [ebp - 0x344]
xor esi, esi
push eax
push 0x2001f
push esi
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test 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]
test 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]
test 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:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x254
mov eax, dword [str.R_Bi]
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
mov edx, ebx
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
mov edx, ebx
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
mov esp, ebp
pop ebp
ret

Function at 0x4024e0
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [str.R_Bi]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, 0x104
lea eax, [ebp - 0x108]
push edi
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x40255b
push 0x401200
mov edx, edi
lea ecx, [ebp - 0x108]
call fcn.0040658a
lea eax, [ebp - 0x108]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push 0x40
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll__lopen]
mov edi, eax
cmp edi, 0xffffffff
je 0x40255b
push 2
push esi
push edi
call dword [sym.imp.KERNEL32.dll__llseek]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll__lclose]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00406ce0
mov esp, ebp
pop ebp
ret
Function at 0x40256d
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
movzx eax, cx
xor esi, esi
test ax, ax
je 0x402622
xor 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 str.SystemCurrentControlSetControlSession_Manager
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test 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 fcn.004024e0
mov esi, eax
mov eax, esi
pop esi
mov esp, ebp
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
mov ebp, esp
sub esp, 0x11c
mov eax, dword [str.R_Bi]
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
mov edx, esi
mov dword [ebp - 0x11c], esi
lea ecx, [ebp - 0x108]
call fcn.00401781
push dword [ebp - 0x110]
mov edx, esi
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]
test eax, eax
je 0x40288c
lea eax, [ebp - 0x108]
mov edx, esi
push eax
mov ecx, edi
call fcn.00401680
jmp 0x402897
mov eax, dword [ebp - 0x114]
cmp eax, 1
jne 0x40289a
xor 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]
test ebx, ebx
jne 0x4028d2
push dword [ebp - 0x110]
mov edx, esi
mov ecx, edi
call fcn.0040658a
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.00406ce0
mov esp, ebp
pop ebp
ret 4