joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6ac9af
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x6c8044
push 0x6c803c
push str.FlsAlloc
push 0x1f
call fcn.006ac82e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x6ac9e3
push dword [ebp + 8]
mov ecx, esi
call dword [0x6b7308]
call esi
jmp 0x6ac9e9
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x6aca2d
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x6c8054
push 0x6c804c
push str.FlsGetValue
push 0x21
call fcn.006ac82e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x6aca64
push dword [ebp + 8]
mov ecx, esi
call dword [0x6b7308]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x6aca6c
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x6c805c
push 0x6c8054
push str.FlsSetValue
push 0x22
call fcn.006ac82e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x6acaa6
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x6b7308]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x6af1f7
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.006af173
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x6af366
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x6af366
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x6af31b
jg 0x6af253
test eax, eax
je 0x6af311
push 1
push 0x1000
call fcn.006aa207
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x6af276
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x6af308
push 0x8000
push ebx
call fcn.00699d2e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x6af29f
jg 0x6af29a
cmp ecx, 0x1000
jb 0x6af29f
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.006a901f
add esp, 0x10
cmp eax, 0xffffffff
je 0x6af2e4
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x6af29a
jl 0x6af2cb
test ecx, ecx
jne 0x6af28c
push dword [ebp - 0xc]
push ebx
call fcn.00699d2e
push esi
call fcn.006aa264
add esp, 0xc
xor ebx, ebx
jmp 0x6af374
cmp byte [edi + 0x24], 0
je 0x6af2fb
cmp dword [edi + 0x20], 5
jne 0x6af2fb
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x6af306
mov ebx, dword [edi + 0x18]
jmp 0x6af308
xor ebx, ebx
push esi
call fcn.006aa264
pop ecx
jmp 0x6af374
test ecx, ecx
jg 0x6af2dd
jl 0x6af31b
test eax, eax
jae 0x6af2dd
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.006a7905
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x6af33b
cmp byte [edi + 0x1c], 0
je 0x6af2dd
jmp 0x6af36c
push ebx
call fcn.006ab9c1
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x6af2dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x6af374
cmp byte [edi + 0x1c], 0
je 0x6af371
mov ebx, dword [edi + 0x18]
jmp 0x6af374
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.006a7905
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x6b35cd
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x6b3610
call fcn.0069b960
mov dword [eax], 0xf
call fcn.0069b973
mov dword [eax], 0xd
call fcn.00698fef
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0063ff59
leave
ret
test eax, eax
jne 0x6b3617
inc eax
jmp 0x6b3604
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x6b3602
xor eax, eax
cmp ecx, 1
setne al
jmp 0x6b3604

Function at 0x6b67b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x6b67dd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x6b67dd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10016b2
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x100a21c]
push ebx
push esi
xor ebx, ebx
xor esi, esi
cmp eax, 2
push edi
mov byte [ebp - 0x1c], bl
mov byte [ebp - 0x1b], bl
mov byte [ebp - 0x1a], bl
mov byte [ebp - 0x19], bl
mov byte [ebp - 0x18], bl
mov byte [ebp - 0x17], 5
mov dword [ebp - 8], ebx
jne 0x10017e0
lea eax, [ebp - 4]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x10017e0
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
call fcn.0100162a
test eax, eax
jne 0x10017c5
lea eax, [ebp - 0xc]
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push eax
push ebx
push ebx
push 2
push dword [ebp - 4]
call edi
test eax, eax
jne 0x1001740
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1001740
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
cmp esi, ebx
je 0x10017d4
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0xc]
push esi
push 2
push dword [ebp - 4]
call edi
test eax, eax
je 0x10017b8
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
lea eax, [ebp - 0x1c]
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x10017b8
cmp dword [esi], ebx
mov dword [ebp - 0x10], ebx
jbe 0x10017af
lea edi, [esi + 4]
push dword [ebp - 0x14]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x10017a4
inc dword [ebp - 0x10]
add edi, 8
mov eax, dword [ebp - 0x10]
cmp eax, dword [esi]
jb 0x1001786
jmp 0x10017af
push 1
pop eax
mov dword [0x100a21c], eax
mov dword [ebp - 8], eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp esi, ebx
je 0x10017d4
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x10017d4
cmp dword [ebp - 8], ebx
je 0x10017d4
mov dword [0x100a21c], 1
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1001c43
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [ebp - 4]
push esi
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1001c6f
xor esi, esi
push esi
push 0x10
push esi
push esi
push 0x4f5
jmp 0x1001cc6
lea eax, [ebp - 0x10]
xor esi, esi
push eax
push 0x1001320
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push esi
push esi
lea eax, [ebp - 0x14]
push esi
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 0x1001cb0
push 0x10
push esi
push esi
push 0x4f6
jmp 0x1001cc6
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x1001cd0
push esi
push 0x10
push esi
push esi
push 0x4f7
push esi
call fcn.01003dda
xor eax, eax
jmp 0x1001cd3
push 1
pop eax
pop esi
leave
ret

Function at 0x1001cd6
Capabilities:
Shutdown system

Disassembly:
test byte [esp + 4], 2
je 0x1001ce2
push 2
pop eax
jmp 0x1001ce7
call fcn.01001c19
cmp eax, 2
jne 0x1001d2f
test byte [esp + 4], 4
je 0x1001cf8
push 6
pop eax
jmp 0x1001d0f
push 4
push 0x40
push 0
push 0x10012fc
push 0x522
push 0
call fcn.01003dda
cmp eax, 6
jne 0x1001d2f
cmp word [0x100bc04], 0
jne 0x1001d2a
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x1001d2f
call fcn.01001c43
ret 4

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

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp byte [0x100a300], 0
je 0x1001d75
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 0x1001d75
push 0x100a300
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 0x1001f6c
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 [0x100a300], bl
je 0x1002064
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 0x1002064
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0x344]
push eax
push ebx
mov esi, 0x100a300
push ebx
push esi
mov dword [ebp - 8], 0x238
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100205a
mov al, byte [0x10012fc]
push edi
push 0x40
mov byte [ebp - 0x10c], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x10b]
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1002015
lea eax, [ebp - 0x10c]
push 0x10012fc
push eax
call fcn.01005b7d
lea eax, [ebp - 0x10c]
push 0x100ae84
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]
pop edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
leave
ret
Function at 0x1002067
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]
push esi
push edi
test ebx, ebx
je 0x1002190
cmp byte [ebx], 0
je 0x1002190
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x104]
push ebx
push eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x104]
push 0x1001358
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 0x1002190
lea eax, [ebp - 0x104]
push ebx
push eax
call edi
test byte [ebp - 0x244], 0x10
je 0x1002139
lea eax, [ebp - 0x218]
push 0x1001354
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x1002168
lea eax, [ebp - 0x218]
push 0x1001350
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x1002168
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x104]
push eax
call esi
lea eax, [ebp - 0x104]
push 0x10012fc
push eax
call fcn.01005b7d
lea eax, [ebp - 0x104]
push eax
call fcn.01002067
jmp 0x1002168
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x104]
push eax
call esi
lea eax, [ebp - 0x104]
push 0x80
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 0x10020cb
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 0x10021cd
Capabilities:
Get common file path

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

Function at 0x1002240
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 8]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push dword [ebp + 8]
mov dword [ebp - 4], esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1002289
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 0x1002280
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 0x1002291
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 8]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push dword [ebp + 8]
mov dword [ebp - 4], esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10022de
push esi
push esi
push esi
lea eax, [ebp - 4]
push esi
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 0x10022d5
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 0x1002333
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 0x1002350
push 0
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x1002353
and eax, 0x10
ret 4

Function at 0x1002469
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
push ebx
push esi
and byte [eax], 0
push edi
mov edi, dword [ebp + 0x10]
cmp byte [edi], 0x23
jne 0x100257d
movsx eax, byte [edi + 1]
inc 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 0x1002575
cmp bl, 0x57
je 0x1002567
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x10c]
mov ebx, 0x104
push 0x100136c
push eax
mov dword [ebp - 8], ebx
call esi
lea eax, [ebp - 0x10c]
push edi
push eax
call fcn.01005b7d
lea eax, [ebp + 0x10]
push eax
push 0x20019
lea eax, [ebp - 0x10c]
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1002587
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 0xc]
push dword [ebp + 8]
push eax
push 0
push 0x10012fc
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100255c
cmp dword [ebp + 0xc], 2
jne 0x100254f
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x100254f
lea eax, [ebp - 0x10c]
push eax
push dword [ebp + 8]
call esi
jmp 0x1002555
cmp dword [ebp + 0xc], 1
jne 0x100255c
mov dword [ebp - 4], 1
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1002587
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x1002587
push dword [ebp + 0xc]
push dword [ebp + 8]
jmp 0x1002581
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp dword [ebp - 4], 0
jne 0x1002596
push edi
push dword [ebp + 8]
call fcn.01005b7d
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x10025a0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
cmp dword [ebx + 0x7c], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], edi
jle 0x10026e4
mov dword [ebp + 8], edi
jmp 0x10025c7
xor edi, edi
mov ecx, dword [ebp + 8]
mov eax, ebx
add eax, dword [ebx + 0x80]
lea esi, [eax + ecx + 0x84]
mov eax, dword [eax + ecx + 0xbc]
lea eax, [eax + ebx + 0x84]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.01002469
test eax, eax
je 0x10026eb
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0xc]
call sub.VERSION.dll_GetFileVersionInfoSizeA
cmp eax, edi
mov dword [ebp - 0x14], eax
je 0x10026c8
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, edi
mov dword [ebp - 4], eax
je 0x10026eb
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
test edi, edi
je 0x10026eb
push edi
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp + 0xc]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x10026bd
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x10013a0
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x10026bd
xor edi, edi
cmp dword [ebp - 0x1c], edi
je 0x10026bd
add esi, 0x10
push dword [esi - 0xc]
mov eax, dword [ebp - 0xc]
push dword [esi - 0x10]
push dword [eax + 0xc]
push dword [eax + 8]
call fcn.01002734
push dword [esi]
mov dword [ebp + edi - 0x24], eax
mov eax, dword [ebp - 0xc]
push dword [esi - 4]
push dword [eax + 0xc]
push dword [eax + 8]
call fcn.01002734
mov dword [ebp + edi - 0x2c], eax
add edi, 4
add esi, 0x18
cmp edi, 8
jl 0x100266b
cmp dword [ebp - 0x24], 0
jl 0x10026b1
cmp dword [ebp - 0x2c], 0
jle 0x10026bd
cmp dword [ebp - 0x20], 0
jl 0x100270c
cmp dword [ebp - 0x28], 0
jg 0x100270c
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x10026d1
cmp dword [esi], edi
jne 0x10026eb
cmp dword [esi + 4], edi
jne 0x10026eb
inc dword [ebp - 8]
add dword [ebp + 8], 0x3c
mov eax, dword [ebp - 8]
cmp eax, dword [ebx + 0x7c]
jl 0x10025c5
mov dword [ebp - 0x10], 1
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 8]
cmp dword [ebp - 4], 0
mov dword [eax], ecx
je 0x1002702
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret 0x10
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x10026eb
Function at 0x100285d
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
mov al, byte [esi]
cmp al, 0x22
jne 0x1002886
mov al, byte [esi + 1]
inc esi
test al, al
je 0x100287e
cmp al, 0x22
jne 0x1002872
cmp byte [esi], 0x22
jne 0x1002890
inc esi
jmp 0x1002890
cmp al, 0x20
jle 0x1002890
inc esi
cmp byte [esi], 0x20
jg 0x100288a
mov al, byte [esi]
test al, al
je 0x100289d
cmp al, 0x20
jg 0x100289d
inc esi
jmp 0x1002890
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x18], 1
je 0x10028b7
movzx eax, word [ebp - 0x14]
jmp 0x10028ba
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x1002939
Capabilities:
Check mutex on windows
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [0x100b6dc], eax
mov ecx, 0x23f
xor eax, eax
mov edi, 0x100ade0
rep stosd dword es:[edi], eax
mov ecx, 0xcb
mov edi, 0x100aaa0
rep stosd dword es:[edi], eax
push 0x41
mov edi, 0x100b720
pop ecx
mov esi, 0x100adf4
rep stosd dword es:[edi], eax
push 1
xor ebx, ebx
pop edi
mov dword [ebp - 4], ebx
push 0x7f
push esi
push 0x10013dc
mov dword [0x100b08c], edi
call fcn.01003f34
cmp eax, ebx
je 0x1002b58
cmp eax, 0x80
ja 0x1002b58
push ebx
push edi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push eax
mov dword [0x100aa7c], eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 4
push 0x100b6d4
push 0x10013d0
call fcn.01003f34
test eax, eax
je 0x10029f6
test byte [0x100b6d4], 0xc0
je 0x1002a86
lea eax, [ebp - 0x108]
push 0x104
push eax
push 0x10013c0
call fcn.01003f34
test eax, eax
jne 0x1002a15
push ebx
push 0x10
push ebx
push ebx
push 0x4b1
push ebx
call fcn.01003dda
mov dword [0x100b704], 0x80070714
jmp 0x1002b68
lea eax, [ebp - 0x108]
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
cmp eax, ebx
mov dword [0x100aa80], eax
je 0x1002a86
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1002a86
test byte [0x100b6d4], 0x80
je 0x1002a55
push ebx
push 0x10
push ebx
push esi
push 0x54b
push ebx
call fcn.01003dda
jmp 0x1002a6b
push 4
push 0x20
push ebx
push esi
push 0x524
push ebx
call fcn.01003dda
cmp eax, 6
je 0x1002a86
push dword [0x100aa80]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x100b704], 0x800700b7
jmp 0x1002b68
push dword [ebp + 0xc]
mov dword [0x100b824], ebx
call fcn.01005329
test eax, eax
jne 0x1002aa7
push ebx
push 0x10
push ebx
push ebx
push 0x520
jmp 0x1002b62
cmp byte [0x100aaba], bl
je 0x1002abe
push 0x100aaba
call fcn.01002067
jmp 0x1002b68
push 0xa
push 0x10013b4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x1002adf
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
cmp dword [0x100a2f8], ebx
je 0x1002aed
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
cmp dword [0x100aaa4], ebx
jne 0x1002b54
push dword [ebp - 4]
call fcn.0100325c
test eax, eax
je 0x1002b68
mov ax, word [0x100bc04]
cmp ax, di
je 0x1002b12
cmp ax, 2
jne 0x1002b54
test byte [0x100b6d5], 1
je 0x1002b54
test byte [0x100aab8], 1
jne 0x1002b54
call fcn.010016b2
test eax, eax
jne 0x1002b54
push 0x83e
push 0x547
push 0x10017e5
push ebx
push 0x7d6
push dword [0x100b6dc]
call fcn.01005a5b
cmp eax, 0x83d
jne 0x1002b68
mov eax, edi
jmp 0x1002b6a
push ebx
push 0x10
push ebx
push ebx
push 0x4b1
push ebx
call fcn.01003dda
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x1002c71
Capabilities:
Delete file
Set current directory
Set file attributes

Disassembly:
jmp 0x1004ac1
sub esp, 0x104
push ebx
push ebp
push esi
mov esi, dword [0x100ae80]
xor ebp, ebp
push edi
cmp esi, ebp
mov edi, esi
je 0x1004b14
mov ebx, dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [0x100aaa4], ebp
jne 0x1004b04
cmp dword [0x100b6d0], ebp
jne 0x1004b04
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 0x1004adf
cmp dword [0x100aaa0], ebp
je 0x1004b64
cmp dword [0x100aaa4], ebp
jne 0x1004b64
cmp dword [0x100b6d0], ebp
jne 0x1004b64
lea eax, [esp + 0x10]
push 0x100ae84
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
test byte [0x100b6d4], 0x20
je 0x1004b4f
lea eax, [esp + 0x10]
push eax
call fcn.01005bbc
push 0x1001350
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea eax, [esp + 0x10]
push eax
call fcn.01002067
cmp word [0x100bc04], 1
je 0x1004b7b
cmp dword [0x100aaa0], ebp
je 0x1004b7b
call fcn.01001d32
pop edi
mov dword [0x100aaa0], ebp
pop esi
pop ebp
pop ebx
add esp, 0x104
ret