joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10018c3
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x10000
push 0
push 0x1001388
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1001907
push esi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret 4

Function at 0x1001bef
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 4], eax
test eax, eax
jne 0x1001c0e
xor bl, bl
jmp 0x1001c6b
push esi
push edi
xor edi, edi
inc edi
cmp dword [ebp + 8], edi
jle 0x1001c5e
mov esi, dword [sym.imp.msvcrt.dll_wcsncmp]
mov eax, dword [ebp - 4]
push 7
lea ebx, [eax + edi*4]
push 0x100141c
push dword [ebx]
call esi
add esp, 0xc
test eax, eax
jne 0x1001c3f
mov byte [0x100501c], 1
jmp 0x1001c58
push 8
push 0x100140c
push dword [ebx]
call esi
add esp, 0xc
test eax, eax
jne 0x1001c72
mov byte [0x100501d], 1
inc edi
cmp edi, dword [ebp + 8]
jl 0x1001c1e
mov bl, 1
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
mov al, bl
pop ebx
leave
ret 4
xor bl, bl
jmp 0x1001c60
Function at 0x1002278
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x20c], esi
mov dword [ebp - 0x208], esi
cmp eax, esi
je 0x10023af
cmp ecx, esi
je 0x10023af
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [ebp - 0x208]
push ecx
push 0x20019
push esi
push 0x1001458
push eax
call ebx
mov edi, eax
cmp edi, esi
jne 0x10023b2
mov dword [ebp - 0x214], esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0x214]
mov dword [ebp - 0x210], 0x100
push dword [ebp - 0x208]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov edi, eax
cmp edi, esi
jne 0x1002331
mov ecx, dword [ebp - 0x218]
lea eax, [ebp - 0x204]
push eax
call fcn.01001de1
inc dword [ebp - 0x214]
cmp edi, esi
je 0x10022eb
lea eax, [ebp - 0x20c]
push eax
push 0x20019
push esi
push 0x1001444
push dword [ebp - 0x21c]
call ebx
mov edi, eax
cmp edi, esi
jne 0x10023b2
xor ebx, ebx
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x204]
push eax
push ebx
push dword [ebp - 0x20c]
mov dword [ebp - 0x210], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov edi, eax
cmp edi, esi
jne 0x100239e
mov ecx, dword [ebp - 0x218]
lea eax, [ebp - 0x204]
push eax
call fcn.01001e00
inc ebx
cmp edi, esi
je 0x100235d
cmp edi, 0x103
jne 0x10023b2
xor edi, edi
jmp 0x10023b2
push 0x57
pop edi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x20c], esi
je 0x10023c8
push dword [ebp - 0x20c]
call ebx
cmp dword [ebp - 0x208], esi
je 0x10023d8
push dword [ebp - 0x208]
call ebx
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01002b9c
leave
ret 8
Function at 0x10026e0
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [0x1005018], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call fcn.01001bef
test al, al
jne 0x100270c
or eax, 0xffffffff
jmp 0x10027bf
call fcn.01001ae9
test eax, eax
jne 0x100271d
cmp byte [0x100501d], bl
je 0x1002704
push esi
push edi
lea eax, [ebp - 4]
push eax
call fcn.010023f0
mov esi, dword [ebp - 4]
cmp eax, 2
je 0x1002734
cmp esi, ebx
jne 0x1002738
cmp esi, ebx
je 0x100277a
mov edi, dword [esi + 8]
cmp edi, ebx
je 0x100277a
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jl 0x100279c
push 1
push 8
call fcn.01001505
test eax, eax
jl 0x100279c
push 2
call sub.DUI70.dll_InitThread
test eax, eax
jl 0x100276e
push esi
push edi
call fcn.010020e0
call sub.DUI70.dll_UnInitThread
push 0x1000000
call sub.DUI70.dll_UnInitProcessPriv
jmp 0x100279c
cmp byte [0x100501c], bl
jne 0x100279c
cmp esi, ebx
jne 0x10027a0
push 0xfffd
push 0x3ed
push ebx
push 0x3e9
push ebx
call fcn.010021c7
cmp esi, ebx
je 0x10027b5
cmp dword [esi + 8], ebx
jne 0x10027ac
push dword [esi]
call fcn.01001910
push 1
mov ecx, esi
call fcn.01001ac3
call dword [sym.imp.ole32.dll_CoUninitialize]
pop edi
xor eax, eax
pop esi
pop ebx
leave
ret 0x10
Function at 0x1002aeb
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x10030d8
call fcn.01002b14
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x1005378
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x10028a2
cmp eax, esi
jne 0x1002895
xor esi, esi
inc esi
mov ebx, esi
jmp 0x10028a5
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100287c
xor esi, esi
inc esi
mov eax, dword [0x1005374]
cmp eax, esi
jne 0x10028b8
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x10028e7
mov eax, dword [0x1005374]
test eax, eax
jne 0x10028e1
mov dword [0x1005374], esi
push 0x10011e0
push 0x10011d4
call fcn.010027e1
pop ecx
pop ecx
test eax, eax
je 0x10028e7
jmp 0x1002a0f
mov dword [0x100503c], esi
mov eax, dword [0x1005374]
cmp eax, esi
jne 0x100290b
push 0x10011d0
push 0x10011c8
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x1005374], 2
test ebx, ebx
jne 0x1002917
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x100537c], 0
je 0x100293b
push 0x100537c
call fcn.01002cb9
pop ecx
test eax, eax
je 0x100293b
push 0
push 2
push 0
call dword [0x100537c]
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x1002997
test al, al
je 0x1002955
cmp dword [ebp - 0x1c], 0
jne 0x1002997
mov al, byte [esi]
test al, al
je 0x1002965
cmp al, 0x20
ja 0x1002965
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1002955
test byte [ebp - 0x3c], 1
je 0x1002971
movzx eax, word [ebp - 0x38]
jmp 0x1002974
push 0xa
pop eax
push eax
push esi
push 0
push 0x1000000
call main
mov dword [0x1005038], eax
cmp dword [0x100502c], 0
jne 0x10029eb
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp al, 0x22
jne 0x10029a6
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
je 0x10029b9
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x1002942
cmp dword [0x100503c], 0
jne 0x10029fa
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1005038]
jmp 0x1002a1b
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.01002b59
ret
call fcn.01002e06
jmp 0x1002842
Function at 0x407fa0
Capabilities:
Modify service

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x24]
xor edx, edx
mov dword [esp], 1
mov dword [esp + 8], 0
lea ecx, [eax + eax*4]
lea ecx, [ecx + ecx*4]
lea ecx, [ecx + ecx*4]
shl ecx, 3
cmp eax, 0xffffffff
mov dword [esp + 4], ecx
setne dl
mov eax, 0x70f87c
lea ecx, [esp + 8]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
push ecx
lea eax, [esp + 4]
push 2
push edx
mov dword [esp + 0x24], eax
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
add esp, 0x1c
ret

Function at 0x408140
Capabilities:
Create http request

Disassembly:
sub esp, 0x50
push esi
push edi
mov ecx, 0xe
mov esi, str.http:__www.iuqerfsodp9ifjaposdfjhgosurijfaewrwergwea.com
lea edi, [esp + 8]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov dword [esp + 0x41], eax
mov dword [esp + 0x45], eax
mov dword [esp + 0x49], eax
mov dword [esp + 0x4d], eax
mov dword [esp + 0x51], eax
mov word [esp + 0x55], ax
push eax
push eax
push eax
push 1
push eax
mov byte [esp + 0x6b], al
call dword [sym.imp.WININET.dll_InternetOpenA]
push 0
push 0x84000000
push 0
lea ecx, [esp + 0x14]
mov esi, eax
push 0
push ecx
push esi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov edi, eax
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
test edi, edi
jmp 0x4081a7
call esi
push 0
call esi
call fcn.00408090
pop edi
xor eax, eax
pop esi
add esp, 0x50
ret 0x10
Function at 0x10018b8
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x100c2c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x100c1f4]
push ebx
xor ebx, ebx
cmp eax, 2
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
mov dword [ebp - 0x10], ebx
jne 0x10019e7
lea eax, [ebp - 0x10]
push eax
call fcn.01001808
test eax, eax
jne 0x10019d5
lea eax, [ebp - 0x14]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x10019e7
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push 2
push dword [ebp - 0x14]
call edi
test eax, eax
jne 0x10019c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x10019c9
push esi
push dword [ebp - 0x18]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
cmp esi, ebx
je 0x10019c8
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x18]
push esi
push 2
push dword [ebp - 0x14]
call edi
test eax, eax
je 0x10019c1
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x10019c1
cmp dword [esi], ebx
jbe 0x10019b8
lea edi, [esi + 4]
push dword [ebp - 0x1c]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x10019ad
inc ebx
add edi, 8
cmp ebx, dword [esi]
jb 0x1001994
jmp 0x10019b8
xor eax, eax
inc eax
mov dword [0x100c1f4], 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 - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
jmp 0x10019e4
cmp dword [ebp - 0x10], ebx
je 0x10019e4
mov dword [0x100c1f4], 1
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.01006b2f
leave
ret
Function at 0x1001b23
Capabilities:
Shutdown system

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push esi
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
xor esi, esi
test eax, eax
jne 0x1001b59
push esi
push 0x10
push esi
push esi
push 0x4f5
push esi
call fcn.010037d6
xor eax, eax
jmp 0x1001bc0
lea eax, [ebp - 0x14]
push eax
push 0x10012e4
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push esi
push esi
push esi
lea eax, [ebp - 0x18]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x18], 1
mov dword [ebp - 0xc], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 4]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], esi
push esi
jne 0x1001ba5
push 0x10
push esi
push esi
push 0x4f6
jmp 0x1001b4f
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x1001bbd
push esi
push 0x10
push esi
push esi
push 0x4f7
jmp 0x1001b4f
xor eax, eax
inc eax
pop esi
leave
ret

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
cmp byte [0x100c600], 0
je 0x1001c0d
lea eax, [ebp - 4]
push eax
push 0x20006
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1001c0d
push 0x100c600
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret

Function at 0x1001c54
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x100c2c4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, 0x104
push esi
lea eax, [ebp - 0x108]
push eax
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x1001ccf
push 0x10012f8
push esi
lea eax, [ebp - 0x108]
push eax
call fcn.010074a0
lea eax, [ebp - 0x108]
push eax
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push 0x40
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll__lopen]
mov esi, eax
cmp esi, 0xffffffff
je 0x1001ccf
push 2
push edi
push esi
call dword [sym.imp.KERNEL32.dll__llseek]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll__lclose]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.01006b2f
leave
ret

Function at 0x1001ce4
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp + 8]
push eax
push 0x20019
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1001d2f
lea eax, [ebp - 4]
push eax
push esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x1001d26
mov dword [ebp - 4], esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
pop esi
leave
ret 8
Function at 0x1001d3c
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp + 8]
push eax
push 0x20019
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1001d8b
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]
test eax, eax
je 0x1001d82
mov dword [ebp - 4], esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
pop esi
leave
ret 4

Function at 0x1001dff
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1001e1f
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x1001e22
and eax, 0x10
pop ebp
ret 4

Function at 0x1001fea
Capabilities:
Shutdown system

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
test byte [ebp + 8], 2
jne 0x1001fff
call fcn.01001fb8
cmp eax, 2
jne 0x100203c
test byte [ebp + 8], 4
jne 0x1002021
push 4
push 0x40
push 0
push 0x10012e1
push 0x522
push 0
call fcn.010037d6
cmp eax, 6
jne 0x100203c
cmp word [0x100d0cc], 0
jne 0x1002037
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x100203c
call fcn.01001b23
pop ebp
ret 4
Function at 0x10022a5
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 [0x100c2c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
cmp byte [0x100c600], bl
je 0x10023c2
lea eax, [ebp - 0x344]
push eax
push 0x2001f
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10023c2
push esi
lea eax, [ebp - 0x348]
push eax
lea eax, [ebp - 0x340]
push eax
push ebx
push ebx
mov esi, 0x100c600
push esi
push dword [ebp - 0x344]
mov dword [ebp - 0x348], 0x238
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10023b5
push 0x103
lea eax, [ebp - 0x107]
push ebx
push eax
mov byte [ebp - 0x108], bl
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x100236a
push 0x10012e1
push 0x104
lea eax, [ebp - 0x108]
push eax
call fcn.010074a0
push 0x100d2a4
lea eax, [ebp - 0x108]
push eax
push str.rundll32.exe__sadvpack.dll_DelNodeRunDLL32___s_
lea eax, [ebp - 0x340]
push 0x238
push eax
call fcn.01001f59
add esp, 0x14
lea eax, [ebp - 0x340]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x340]
push eax
push 1
push ebx
push esi
push dword [ebp - 0x344]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x344]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.01006b2f
leave
ret
Function at 0x10023d4
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x100c2c4]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x100251a
cmp byte [edi], 0
je 0x100251a
push esi
push edi
mov esi, 0x104
push esi
lea eax, [ebp - 0x108]
push eax
call fcn.01001ede
push 0x1001328
push esi
lea eax, [ebp - 0x108]
push eax
call fcn.01001f18
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x24c], eax
je 0x1002519
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpA]
push edi
push esi
lea eax, [ebp - 0x108]
push eax
call fcn.01001ede
test byte [ebp - 0x248], 0x10
lea eax, [ebp - 0x21c]
je 0x10024bd
push 0x1001324
push eax
call ebx
test eax, eax
je 0x10024ea
push 0x1001320
lea eax, [ebp - 0x21c]
push eax
call ebx
test eax, eax
je 0x10024ea
lea eax, [ebp - 0x21c]
push eax
push esi
lea eax, [ebp - 0x108]
push eax
call fcn.01001f18
push 0x10012e1
push esi
lea eax, [ebp - 0x108]
push eax
call fcn.010074a0
lea eax, [ebp - 0x108]
push eax
call fcn.010023d4
jmp 0x10024ea
push eax
push esi
lea eax, [ebp - 0x108]
push eax
call fcn.01001f18
push 0x80
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x248]
push eax
push dword [ebp - 0x24c]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x100244e
push dword [ebp - 0x24c]
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.01006b2f
leave
ret 4
Function at 0x100262a
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 [0x100c2c4]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x110], 0
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
mov byte [esi], 0
cmp byte [ebx], 0x23
push edi
jne 0x1002768
inc ebx
movsx eax, byte [ebx]
push eax
call dword [sym.imp.USER32.dll_CharUpperA]
mov edi, dword [sym.imp.USER32.dll_CharNextA]
push ebx
mov byte [ebp - 0x109], al
call edi
push eax
call edi
cmp byte [ebp - 0x109], 0x53
mov ebx, eax
je 0x1002768
cmp byte [ebp - 0x109], 0x57
je 0x100275c
push 0x1001330
mov edi, 0x104
push edi
lea eax, [ebp - 0x108]
push eax
mov dword [ebp - 0x11c], edi
call fcn.01001ede
push ebx
push edi
lea eax, [ebp - 0x108]
push eax
call fcn.010074a0
lea eax, [ebp - 0x118]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x108]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100277b
lea eax, [ebp - 0x11c]
push eax
push esi
lea eax, [ebp - 0x114]
push eax
push 0
push 0x10012e1
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100274e
cmp dword [ebp - 0x114], 2
jne 0x100273b
push edi
lea eax, [ebp - 0x108]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x100273b
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 0xc]
push esi
call fcn.01001ede
jmp 0x1002744
cmp dword [ebp - 0x114], 1
jne 0x100274e
mov dword [ebp - 0x110], 1
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1002772
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x100277b
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp dword [ebp - 0x110], 0
jne 0x1002785
push ebx
push dword [ebp + 0xc]
push esi
call fcn.010074a0
mov ecx, dword [ebp - 4]
pop edi
xor eax, eax
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.01006b2f
leave
ret 0xc
Function at 0x100279e
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x7c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
jle 0x10028df
mov dword [ebp - 0xc], ebx
jmp 0x10027c7
xor ebx, ebx
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi + 0x80]
add eax, edi
lea esi, [eax + ecx + 0x84]
mov eax, dword [esi + 0x38]
lea eax, [eax + edi + 0x84]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0100262a
test eax, eax
je 0x10028e6
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0xc]
call sub.VERSION.dll_GetFileVersionInfoSizeA
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x10028c3
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x10028e6
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
je 0x10028e6
push ebx
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp + 0xc]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x10028b8
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x1001364
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x10028b8
cmp dword [ebp - 0x1c], 0
je 0x10028b8
mov eax, dword [ebp - 0x20]
mov edi, dword [eax + 0xc]
mov ebx, dword [eax + 8]
lea ecx, [esi + 0x10]
xor edx, edx
push dword [ecx - 0xc]
push dword [ecx - 0x10]
push edi
push ebx
call fcn.01001eb0
push dword [ecx]
mov dword [ebp + edx - 0x28], eax
push dword [ecx - 4]
push edi
push ebx
call fcn.01001eb0
mov dword [ebp + edx - 0x30], eax
add edx, 4
add ecx, 0x18
cmp edx, 8
jl 0x1002871
cmp dword [ebp - 0x28], 0
jl 0x10028a9
cmp dword [ebp - 0x30], 0
jle 0x10028b5
cmp dword [ebp - 0x24], 0
jl 0x1002907
cmp dword [ebp - 0x2c], 0
jg 0x1002907
mov edi, dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x10028cc
cmp dword [esi], ebx
jne 0x10028e6
cmp dword [esi + 4], ebx
jne 0x10028e6
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
add dword [ebp - 0xc], 0x3c
cmp eax, dword [edi + 0x7c]
jl 0x10027c5
mov dword [ebp - 0x10], 1
cmp dword [ebp - 4], 0
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 8]
pop edi
pop esi
mov dword [eax], ecx
pop ebx
je 0x1002900
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x10]
leave
ret 0x10
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x10028e6