joyce8/EMBER2024-capa huggingface dataset:
Function at 0x57b410
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x18], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004052c8
xor eax, eax
push ebp
push 0x57b57a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00404e08
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.004052d8
mov edi, eax
push edi
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x57b551
mov eax, ebx
call fcn.00402bac
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x57b54a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
push ebx
mov eax, dword [ebp - 8]
push eax
push edi
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x57b534
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x57b588
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
cmp dword [ebp - 0x10], 0
je 0x57b4d9
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
call fcn.004085d0
mov edx, dword [ebp - 0x10]
mov dx, word [edx]
call fcn.004085c4
lea ecx, [ebp - 0x18]
mov edx, 8
call fcn.0040a52c
mov eax, esi
call fcn.00404e08
push 0x57b5ac
push dword [ebp - 0x18]
push 0x57b5c8
lea eax, [ebp - 0x11c]
mov edx, 3
call fcn.00405198
mov edx, dword [ebp - 0x11c]
lea eax, [ebp - 0x118]
call fcn.0040ae64
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x118]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x57b534
mov edx, esi
mov eax, dword [ebp - 0x10]
call fcn.0040affc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x57b551
mov eax, dword [ebp - 0xc]
call fcn.00402bdc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x57b581
lea eax, [ebp - 0x11c]
call fcn.00404e08
lea eax, [ebp - 0x18]
call fcn.00404e08
lea eax, [ebp - 4]
call fcn.00404e08
ret
Function at 0x580ac5
Capabilities:
Read file via mapping

Disassembly:
push 0x580b60
push 0
push 0xf001f
call sub.kernel32.dll_OpenFileMappingA
mov dword [0x5896cc], eax
cmp dword [0x5896cc], 0
jne 0x580b30
push 0x580b60
push 4
push 0
push 4
push 0
push 0xffffffffffffffff
call sub.kernel32.dll_CreateFileMappingA
mov dword [0x5896cc], eax
push 0
push 0
push 0
push 6
mov eax, dword [0x5896cc]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [0x5896d0], eax
cmp dword [0x5896d0], 0
jne 0x580b25
mov eax, dword [0x5896cc]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
mov eax, dword [0x5896d0]
xor edx, edx
mov dword [eax], edx
jmp 0x580b5c
push 0
push 0
push 0
push 6
mov eax, dword [0x5896cc]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [0x5896d0], eax
cmp dword [0x5896d0], 0
jne 0x580b5c
mov eax, dword [0x5896cc]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
Function at 0x44db20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x443015
lea edi, [esi - 0x42015]
push edi
jmp 0x44db3a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x44db41
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x44db30
mov eax, 1
add ebx, ebx
jne 0x44db53
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x44db64
jne 0x44db83
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x44db83
dec eax
add ebx, ebx
jne 0x44db70
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x44db48
add ebx, ebx
jne 0x44db7f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x44dbd5
xor ecx, ecx
sub eax, 3
jb 0x44db9b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x44dc0a
sar eax, 1
mov ebp, eax
jmp 0x44dba6
add ebx, ebx
jne 0x44dba6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x44db74
inc ecx
add ebx, ebx
jne 0x44dbb4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x44db74
add ebx, ebx
jne 0x44dbc1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x44dbb6
jne 0x44dbd2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x44dbb6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x44dbf4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x44dbe6
jmp 0x44db36
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x44dbf4
add edi, ecx
jmp 0x44db36
pop esi
mov edi, esi
mov ecx, 0x1c57
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x44dc12
cmp byte [edi], 5
jne 0x44dc12
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 0x44dc17
lea edi, [esi + 0x4b000]
mov eax, dword [edi]
or eax, eax
je 0x44dc8f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x4d740]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x4d77c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x44dc44
mov ecx, edi
jns 0x44dc73
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 + 0x4d784]
or eax, eax
je 0x44dc89
mov dword [ebx], eax
add ebx, 4
jmp 0x44dc61
call dword [esi + 0x4d780]
mov ebp, dword [esi + 0x4d788]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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 0x44dcc3
sub esp, 0xffffff80
jmp 0x4016fc
Function at 0x71a6c7
Capabilities:
Execute anti-debugging instructions

Disassembly:
push 0xf07096dc
jmp 0x71a6fc
lea esp, [esp + 2]
mov dword [esp + 0xc], esi
mov dword [esp + 8], edi
jmp 0x71a6d9
lea esp, [esp + 8]
pushfd
jmp 0x71a1de

Function at 0x7262e9
Capabilities:
Encode data using xor

Disassembly:
mov eax, ecx
jmp 0x70ca0f
xor ecx, ecx
cmp dword [esp + 4], ecx
jbe 0x70ca29
push esi
movzx esi, byte [ecx + edx]
rol eax, 7
xor eax, esi
inc ecx
cmp ecx, dword [esp + 8]
jb 0x70ca18
pop esi
jmp 0x70ca34
ret 4
jmp 0x70ca02

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x10016c3
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100a1f4]
push ebx
xor ebx, ebx
cmp eax, 2
mov byte [ebp - 0x18], bl
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], bl
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], bl
mov byte [ebp - 0x13], 5
mov dword [ebp - 4], ebx
jne 0x10017e6
lea eax, [ebp - 4]
push eax
call fcn.0100162e
test eax, eax
jne 0x10017d4
lea eax, [ebp - 0xc]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x10017e6
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push 2
push dword [ebp - 0xc]
call edi
test eax, eax
jne 0x10017c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x10017c8
push esi
push dword [ebp - 8]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
cmp esi, ebx
je 0x10017c7
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push esi
push 2
push dword [ebp - 0xc]
call edi
test eax, eax
je 0x10017c0
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x10017c0
cmp dword [esi], ebx
jbe 0x10017b7
lea edi, [esi + 4]
push dword [ebp - 0x10]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x10017ac
inc ebx
add edi, 8
cmp ebx, dword [esi]
jb 0x1001793
jmp 0x10017b7
xor eax, eax
inc eax
mov dword [0x100a1f4], eax
mov dword [ebp - 4], eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
jmp 0x10017e3
cmp dword [ebp - 4], ebx
je 0x10017e3
mov dword [0x100a1f4], 1
mov eax, dword [ebp - 4]
pop ebx
leave
ret

Function at 0x10018ed
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
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 0x1001919
push esi
push 0x10
push esi
push esi
push 0x4f5
jmp 0x100196e
lea eax, [ebp - 0x10]
push eax
push 0x1001254
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push esi
push esi
push esi
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
push esi
jne 0x1001958
push 0x10
push esi
push esi
push 0x4f6
jmp 0x100196e
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x1001978
push esi
push 0x10
push esi
push esi
push 0x4f7
push esi
call fcn.01003943
xor eax, eax
jmp 0x100197b
xor eax, eax
inc eax
pop esi
leave
ret
Function at 0x1001bc3
Capabilities:
Get common file path
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x344
push ebx
xor ebx, ebx
cmp byte [0x100a2e0], bl
je 0x1001cb4
lea eax, [ebp - 4]
push eax
push 0x2001f
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1001cb4
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x344]
push eax
push ebx
push ebx
mov esi, 0x100a2e0
push esi
push dword [ebp - 4]
mov dword [ebp - 8], 0x238
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1001caa
push edi
push 0x40
pop ecx
mov byte [ebp - 0x10c], bl
lea edi, [ebp - 0x10b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
pop edi
je 0x1001c66
push 0x1001251
lea eax, [ebp - 0x10c]
push eax
call fcn.01005c3d
push 0x100ac44
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x344]
push str.rundll32.exe__sadvpack.dll_DelNodeRunDLL32___s_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x344]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x344]
push eax
push 1
push ebx
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
leave
ret
Function at 0x1001cb7
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x1001ddc
cmp byte [ebx], 0
je 0x1001ddc
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebx
lea eax, [ebp - 0x104]
push eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x100128c
lea eax, [ebp - 0x104]
push eax
call esi
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x1001dda
push ebx
lea eax, [ebp - 0x104]
push eax
call edi
test byte [ebp - 0x244], 0x10
lea eax, [ebp - 0x218]
je 0x1001d89
push 0x1001288
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x1001db2
push 0x1001284
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x1001db2
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x104]
push eax
call esi
push 0x1001251
lea eax, [ebp - 0x104]
push eax
call fcn.01005c3d
lea eax, [ebp - 0x104]
push eax
call fcn.01001cb7
jmp 0x1001db2
push eax
lea eax, [ebp - 0x104]
push eax
call esi
push 0x80
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x244]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1001d1b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x1001e17
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push edi
push 0x104
lea eax, [ebp - 0x104]
push eax
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x1001e85
push esi
push 0x1001290
lea eax, [ebp - 0x104]
push eax
call fcn.01005c3d
lea eax, [ebp - 0x104]
push eax
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push 0x40
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll__lopen]
mov esi, eax
cmp esi, 0xffffffff
je 0x1001e84
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]
pop esi
mov eax, edi
pop edi
leave
ret

Function at 0x1001e8a
Capabilities:
Query or enumerate registry value

Disassembly:
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 0x1001ed3
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 0x1001eca
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 0x1001edb
Capabilities:
Query or enumerate registry key

Disassembly:
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 0x1001f28
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 0x1001f1f
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 0x1001f83
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1001fa0
push 0
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x1001fa3
and eax, 0x10
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [ebp + 8]
and dword [ebp - 4], 0
and byte [eax], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
cmp byte [edi], 0x23
jne 0x10021cc
inc edi
movsx eax, byte [edi]
push eax
call dword [sym.imp.USER32.dll_CharUpperA]
mov esi, dword [sym.imp.USER32.dll_CharNextA]
push edi
mov bl, al
call esi
push eax
call esi
cmp bl, 0x53
mov edi, eax
je 0x10021c4
cmp bl, 0x57
je 0x10021b6
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x10012a0
lea eax, [ebp - 0x10c]
mov ebx, 0x104
push eax
mov dword [ebp - 8], ebx
call esi
push edi
lea eax, [ebp - 0x10c]
push eax
call fcn.01005c3d
lea eax, [ebp + 0x10]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x10c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10021dc
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push 0
push 0x1001251
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10021ab
cmp dword [ebp + 0xc], 2
jne 0x100219e
push ebx
lea eax, [ebp - 0x10c]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x100219e
lea eax, [ebp - 0x10c]
push eax
push dword [ebp + 8]
call esi
jmp 0x10021a4
cmp dword [ebp + 0xc], 1
jne 0x10021ab
mov dword [ebp - 4], 1
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10021d6
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x10021dc
push dword [ebp + 0xc]
push dword [ebp + 8]
jmp 0x10021d0
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp dword [ebp - 4], 0
jne 0x10021e5
push edi
push dword [ebp + 8]
call fcn.01005c3d
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret 0xc
Function at 0x1002677
Capabilities:
Shutdown system

Disassembly:
test byte [esp + 4], 2
jne 0x1002688
call fcn.0100264b
cmp eax, 2
jne 0x10026c6
test byte [esp + 4], 4
jne 0x10026ab
push 4
push 0x40
push 0
push 0x1001251
push 0x522
push 0
call fcn.01003943
cmp eax, 6
jne 0x10026c6
cmp word [0x100aa64], 0
jne 0x10026c1
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x10026c6
call fcn.010018ed
ret 4

Function at 0x10026c9
Capabilities:
Get file version info

Disassembly:
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 0x1002805
mov dword [ebp - 0xc], 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.010020b9
test eax, eax
je 0x100281c
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0xc]
call sub.VERSION.dll_GetFileVersionInfoSizeA
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x10027e9
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x100281c
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
je 0x100281a
push ebx
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp + 0xc]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x10027dc
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x100132c
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x10027dc
cmp dword [ebp - 0x1c], 0
je 0x10027dc
mov eax, dword [ebp - 0x20]
mov edi, dword [eax + 0xc]
mov ebx, dword [eax + 8]
lea ecx, [esi + 0x10]
xor esi, esi
xor edx, edx
push dword [ecx - 0xc]
push dword [ecx - 0x10]
push edi
push ebx
call fcn.0100220c
push dword [ecx]
mov dword [ebp + edx - 0x28], eax
push dword [ecx - 4]
push edi
push ebx
call fcn.0100220c
mov dword [ebp + edx - 0x30], eax
add edx, 4
add ecx, 0x18
cmp edx, 8
jl 0x1002798
cmp dword [ebp - 0x28], esi
jl 0x10027ce
cmp dword [ebp - 0x30], esi
jle 0x100280a
cmp dword [ebp - 0x24], esi
jl 0x10027d9
cmp dword [ebp - 0x2c], 0
jle 0x100280a
mov edi, dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
xor ebx, ebx
jmp 0x10027f2
cmp dword [esi], ebx
jne 0x100281c
cmp dword [esi + 4], ebx
jne 0x100281c
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
add dword [ebp - 0xc], 0x3c
cmp eax, dword [edi + 0x7c]
jl 0x10026ec
mov dword [ebp - 8], ebx
jmp 0x100281c
push dword [ebp - 4]
mov dword [ebp - 0x10], 1
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
xor ebx, ebx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 8]
cmp dword [ebp - 4], ebx
pop edi
pop esi
mov dword [eax], ecx
pop ebx
je 0x1002835
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x10]
leave
ret 0x10
Function at 0x1002a6d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceA]
push edi
push 0xa
push dword [ebp + 8]
xor edi, edi
push edi
call esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
cmp ebx, dword [ebp + 0x10]
ja 0x1002ad6
cmp dword [ebp + 0xc], edi
je 0x1002ad6
cmp ebx, edi
je 0x1002ab6
push 0xa
push dword [ebp + 8]
push edi
call esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, edi
jne 0x1002aba
xor eax, eax
jmp 0x1002ad8
mov edi, dword [ebp + 0xc]
mov ecx, ebx
mov edx, ecx
shr ecx, 2
mov esi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x1002b6d
Capabilities:
Create directory

Disassembly:
push edi
mov edi, dword [esp + 8]
mov cl, byte [edi]
test cl, cl
je 0x1002bd2
push ebx
push esi
lea esi, [edi + 1]
mov al, byte [esi]
xor ebx, ebx
cmp al, 0x3a
jne 0x1002b90
cmp byte [edi + 2], 0x5c
jne 0x1002b90
lea esi, [edi + 3]
jmp 0x1002bcb
cmp cl, 0x5c
jne 0x1002bcb
cmp al, cl
jne 0x1002bcb
push 2
lea esi, [edi + 2]
pop ebx
jmp 0x1002bcb
cmp byte [esi], 0x5c
jne 0x1002bc2
cmp byte [esi - 1], 0x3a
je 0x1002bc2
test ebx, ebx
je 0x1002bb3
dec ebx
jmp 0x1002bc2
and byte [esi], 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov byte [esi], 0x5c
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
cmp byte [esi], 0
jne 0x1002ba1
pop esi
pop ebx
pop edi
ret 4

Function at 0x1002ee8
Capabilities:
Delete file
Set current directory
Set file attributes

Disassembly:
sub esp, 0x104
push ebp
push esi
mov esi, dword [0x100ac40]
xor ebp, ebp
cmp esi, ebp
push edi
mov edi, esi
je 0x1002f3c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [0x100b884], ebp
jne 0x1002f2b
cmp dword [0x100b490], ebp
jne 0x1002f2b
push 0x80
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [edi]
mov esi, dword [esi + 4]
call ebx
push edi
call ebx
cmp esi, ebp
mov edi, esi
jne 0x1002f06
pop ebx
cmp dword [0x100b880], ebp
je 0x1002f8c
cmp dword [0x100b884], ebp
jne 0x1002f8c
cmp dword [0x100b490], ebp
jne 0x1002f8c
push 0x100ac44
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
test byte [0x100b494], 0x20
je 0x1002f77
lea eax, [esp + 0xc]
push eax
call fcn.01005c7c
push 0x1001284
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea eax, [esp + 0xc]
push eax
call fcn.01001cb7
cmp word [0x100aa64], 1
je 0x1002fa3
cmp dword [0x100b880], ebp
je 0x1002fa3
call fcn.0100197e
pop edi
pop esi
mov dword [0x100b880], ebp
pop ebp
add esp, 0x104
ret