joyce8/EMBER2024-capa huggingface dataset:
Function at 0x824200
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x6ce00d
lea edi, [esi - 0x2cd00d]
push edi
or ebp, 0xffffffff
jmp 0x824222
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x824229
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x824218
mov eax, 1
add ebx, ebx
jne 0x82423b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x824230
jne 0x82424c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x824230
xor ecx, ecx
sub eax, 3
jb 0x824260
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x8242d2
mov ebp, eax
add ebx, ebx
jne 0x82426b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x824278
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x82429c
inc ecx
add ebx, ebx
jne 0x824288
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x82427d
jne 0x824299
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x82427d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x8242bc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x8242ad
jmp 0x82421e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x8242bc
add edi, ecx
jmp 0x82421e
pop esi
mov edi, esi
mov ecx, 0x11bcb
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x8242da
cmp byte [edi], 0x9a
jne 0x8242da
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x8242df
lea edi, [esi + 0x420000]
mov eax, dword [edi]
or eax, eax
je 0x82434e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x4c7bec]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x4c7d2c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x82430c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x4c7d30]
or eax, eax
je 0x824348
mov dword [ebx], eax
add ebx, 4
jmp 0x824329
call dword [esi + 0x4c7d40]
mov ebp, dword [esi + 0x4c7d34]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x197]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x824382
sub esp, 0xffffff80
jmp 0x688ef4
Function at 0x4dbed0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x87000]
push edi
jmp 0x4dbeea
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4dbef1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4dbee0
mov eax, 1
add ebx, ebx
jne 0x4dbf03
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4dbf14
jne 0x4dbf33
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4dbf33
dec eax
add ebx, ebx
jne 0x4dbf20
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4dbef8
add ebx, ebx
jne 0x4dbf2f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4dbf85
xor ecx, ecx
sub eax, 3
jb 0x4dbf4b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4dbfba
sar eax, 1
mov ebp, eax
jmp 0x4dbf56
add ebx, ebx
jne 0x4dbf56
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4dbf24
inc ecx
add ebx, ebx
jne 0x4dbf64
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4dbf24
add ebx, ebx
jne 0x4dbf71
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4dbf66
jne 0x4dbf82
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4dbf66
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4dbfa4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4dbf96
jmp 0x4dbee6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4dbfa4
add edi, ecx
jmp 0x4dbee6
pop esi
mov edi, esi
mov ecx, 0x3ed9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4dbfc2
cmp byte [edi], 0x11
jne 0x4dbfc2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4dbfc7
lea edi, [esi + 0xd4000]
mov eax, dword [edi]
or eax, eax
je 0x4dc03f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xdf3d8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xdf554]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4dbff4
mov ecx, edi
jns 0x4dc023
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xdf558]
or eax, eax
je 0x4dc039
mov dword [ebx], eax
add ebx, 4
jmp 0x4dc011
call dword [esi + 0xdf568]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4dc070
cmp al, 0xef
ja 0x4dc063
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x4dc045
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4dc052
mov ebp, dword [esi + 0xdf55c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4dc0a4
sub esp, 0xffffff80
jmp 0x425f74
Function at 0x50e000
Capabilities:
Packed with generic packer

Disassembly:
pushf
pushal
call 0x50e0d2
add eax, dword [eax]
add al, 0
add eax, 0x7000600
add byte [eax], cl
add byte [ecx], cl
add byte [edx], cl
add byte [ebx], cl
add byte [0x11000f00], cl
add byte [ebx], dl
add byte [edi], dl
add byte [ebx], bl
add byte [edi], bl
add byte [ebx], ah
add byte [ebx], ch
add byte [ebx], dh
add byte [ebx], bh
add byte [ebx], al
push ebx
add byte [ebx], ah
jae 0x50e038
add dword [eax], 0xffffffa3
add bl, al
add bl, ah
add byte [edx], al
add dword [eax], eax
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [ecx], al
add dword [ecx], eax
add dword [edx], eax
add al, byte [edx]
add al, byte [ebx]
add eax, dword [ebx]
add eax, dword [esp + eax]
add al, 4
add eax, 0x50505
jo 0x50e0d5
add dword [eax], eax
add al, byte [eax]
add eax, dword [eax]
add al, 0
add eax, 0x9000700
add byte [0x19001100], cl
add byte [ecx], ah
add byte [ecx], dh
add byte [ecx], al
popal
add byte [ecx + 0x100c100], al
add dword [ecx + 0x1020101], eax
add eax, dword [ecx]
add al, 1
push es
add dword [eax], ecx
add dword [ecx + eax], ecx
adc byte [ecx], al
sbb byte [ecx], al
and byte [ecx], al
xor byte [ecx], al
inc eax
add dword [eax], esp
add byte [eax], al
add byte [ecx], al
add dword [edx], eax
add al, byte [ebx]
add eax, dword [esp + eax]
add eax, 0x7060605
pop es
or byte [eax], cl
or dword [ecx], ecx
or cl, byte [edx]
or ecx, dword [ebx]
or al, 0xc
or eax, 0x1211100d
add byte [eax], cl
pop es
or dword [esi], eax
or al, byte [0x30c040b]
or eax, 0xf010e02
pop eax
sub al, 8
push eax
mov ecx, eax
mov edx, eax
add ecx, 0xd268
add edx, 0x15dc
mov dword [eax], esp
mov esp, ecx
push eax
sub dword [esp], 0x10e000
push dword [eax]
push eax
add byte [esp], 8
push eax
add byte [esp], 0x46
push eax
add byte [esp], 0x65
push eax
add byte [esp], 0xa1
push eax
add byte [esp], 0xbf
cmp dword [edx], 0
je 0x50f5bd
test dword [edx], 0x80000000
je 0x50e139
std
mov ecx, dword [edx]
and ecx, 0x7fffffff
mov esi, dword [esp + 0x18]
mov edi, esi
add esi, dword [edx + 4]
add edi, dword [edx + 8]
rep movsd dword es:[edi], dword [esi]
add edx, 0xc
cld
push edx
push dword [edx]
mov ebx, dword [edx + 8]
add ebx, dword [esp + 0x20]
push ebx
mov ebx, dword [edx + 4]
add ebx, dword [esp + 0x24]
push ebx
call fcn.0050e19b
test eax, eax
je 0x50e174
mov edi, dword [esp + 4]
add esp, 0xc
pop edx
mov ecx, dword [edx + 0xc]
sar ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, dword [edx + 0xc]
and ecx, 3
rep stosb byte es:[edi], al
add edx, 0x10
jmp 0x50e10d
mov esp, dword [esp + 0x24]
add esp, 0x26
ret
mov esp, dword [esp + 0x14]
pop esi
mov edi, esi
add esi, 0x15d7
push 5
pop ecx
rep movsb byte es:[edi], byte [esi]
popal
popf
jmp 0x47e6d0
Function at 0x10018f8
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 0x1001a27
lea eax, [ebp - 0x10]
push eax
call fcn.01001848
test eax, eax
jne 0x1001a15
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 0x1001a27
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 0x1001a09
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1001a09
push esi
push dword [ebp - 0x18]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
cmp esi, ebx
je 0x1001a08
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x18]
push esi
push 2
push dword [ebp - 0x14]
call edi
test eax, eax
je 0x1001a01
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 0x1001a01
cmp dword [esi], ebx
jbe 0x10019f8
lea edi, [esi + 4]
push dword [ebp - 0x1c]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x10019ed
inc ebx
add edi, 8
cmp ebx, dword [esi]
jb 0x10019d4
jmp 0x10019f8
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 0x1001a24
cmp dword [ebp - 0x10], ebx
je 0x1001a24
mov dword [0x100c1f4], 1
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.01006b69
leave
ret
Function at 0x1001b63
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 0x1001b99
push esi
push 0x10
push esi
push esi
push 0x4f5
push esi
call fcn.01003816
xor eax, eax
jmp 0x1001c00
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 0x1001be5
push 0x10
push esi
push esi
push 0x4f6
jmp 0x1001b8f
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x1001bfd
push esi
push 0x10
push esi
push esi
push 0x4f7
jmp 0x1001b8f
xor eax, eax
inc eax
pop esi
leave
ret

Function at 0x1001c08
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 0x1001c4d
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 0x1001c4d
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 0x1001c94
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 0x1001d0f
push 0x10012f8
push esi
lea eax, [ebp - 0x108]
push eax
call fcn.010074d0
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 0x1001d0f
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.01006b69
leave
ret

Function at 0x1001d24
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 0x1001d6f
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 0x1001d66
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 0x1001d7c
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 0x1001dcb
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 0x1001dc2
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 0x1001e3f
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 0x1001e5f
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x1001e62
and eax, 0x10
pop ebp
ret 4

Function at 0x100202a
Capabilities:
Shutdown system

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
test byte [ebp + 8], 2
jne 0x100203f
call fcn.01001ff8
cmp eax, 2
jne 0x100207c
test byte [ebp + 8], 4
jne 0x1002061
push 4
push 0x40
push 0
push 0x10012e1
push 0x522
push 0
call fcn.01003816
cmp eax, 6
jne 0x100207c
cmp word [0x100d0cc], 0
jne 0x1002077
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x100207c
call fcn.01001b63
pop ebp
ret 4
Function at 0x10022e5
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 0x1002402
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 0x1002402
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 0x10023f5
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 0x10023aa
push 0x10012e1
push 0x104
lea eax, [ebp - 0x108]
push eax
call fcn.010074d0
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.01001f99
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.01006b69
leave
ret
Function at 0x1002414
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 0x100255a
cmp byte [edi], 0
je 0x100255a
push esi
push edi
mov esi, 0x104
push esi
lea eax, [ebp - 0x108]
push eax
call fcn.01001f1e
push 0x1001328
push esi
lea eax, [ebp - 0x108]
push eax
call fcn.01001f58
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 0x1002559
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpA]
push edi
push esi
lea eax, [ebp - 0x108]
push eax
call fcn.01001f1e
test byte [ebp - 0x248], 0x10
lea eax, [ebp - 0x21c]
je 0x10024fd
push 0x1001324
push eax
call ebx
test eax, eax
je 0x100252a
push 0x1001320
lea eax, [ebp - 0x21c]
push eax
call ebx
test eax, eax
je 0x100252a
lea eax, [ebp - 0x21c]
push eax
push esi
lea eax, [ebp - 0x108]
push eax
call fcn.01001f58
push 0x10012e1
push esi
lea eax, [ebp - 0x108]
push eax
call fcn.010074d0
lea eax, [ebp - 0x108]
push eax
call fcn.01002414
jmp 0x100252a
push eax
push esi
lea eax, [ebp - 0x108]
push eax
call fcn.01001f58
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 0x100248e
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.01006b69
leave
ret 4
Function at 0x100266a
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 0x10027a8
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 0x10027a8
cmp byte [ebp - 0x109], 0x57
je 0x100279c
push 0x1001330
mov edi, 0x104
push edi
lea eax, [ebp - 0x108]
push eax
mov dword [ebp - 0x11c], edi
call fcn.01001f1e
push ebx
push edi
lea eax, [ebp - 0x108]
push eax
call fcn.010074d0
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 0x10027bb
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 0x100278e
cmp dword [ebp - 0x114], 2
jne 0x100277b
push edi
lea eax, [ebp - 0x108]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x100277b
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 0xc]
push esi
call fcn.01001f1e
jmp 0x1002784
cmp dword [ebp - 0x114], 1
jne 0x100278e
mov dword [ebp - 0x110], 1
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10027b2
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x10027bb
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp dword [ebp - 0x110], 0
jne 0x10027c5
push ebx
push dword [ebp + 0xc]
push esi
call fcn.010074d0
mov ecx, dword [ebp - 4]
pop edi
xor eax, eax
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.01006b69
leave
ret 0xc
Function at 0x10027de
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 0x100291f
mov dword [ebp - 0xc], ebx
jmp 0x1002807
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.0100266a
test eax, eax
je 0x1002926
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0xc]
call sub.VERSION.dll_GetFileVersionInfoSizeA
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x1002903
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1002926
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
je 0x1002926
push ebx
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp + 0xc]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x10028f8
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 0x10028f8
cmp dword [ebp - 0x1c], 0
je 0x10028f8
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.01001ef0
push dword [ecx]
mov dword [ebp + edx - 0x28], eax
push dword [ecx - 4]
push edi
push ebx
call fcn.01001ef0
mov dword [ebp + edx - 0x30], eax
add edx, 4
add ecx, 0x18
cmp edx, 8
jl 0x10028b1
cmp dword [ebp - 0x28], 0
jl 0x10028e9
cmp dword [ebp - 0x30], 0
jle 0x10028f5
cmp dword [ebp - 0x24], 0
jl 0x1002947
cmp dword [ebp - 0x2c], 0
jg 0x1002947
mov edi, dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x100290c
cmp dword [esi], ebx
jne 0x1002926
cmp dword [esi + 4], ebx
jne 0x1002926
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
add dword [ebp - 0xc], 0x3c
cmp eax, dword [edi + 0x7c]
jl 0x1002805
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 0x1002940
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 0x1002926