joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001760
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x100b2d0]
mov dword [ebp - 4], eax
mov eax, dword [0x100b1fc]
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 0x100188d
lea eax, [ebp - 0x10]
push eax
call fcn.010016b4
test eax, eax
jne 0x100187b
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 0x100188d
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 0x100186f
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x7a
jne 0x100186f
push esi
push dword [ebp - 0x18]
push ebx
call dword [sym.imp.KERNEL32.DLL_LocalAlloc]
mov esi, eax
cmp esi, ebx
je 0x100186e
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x18]
push esi
push 2
push dword [ebp - 0x14]
call edi
test eax, eax
je 0x1001867
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 0x1001867
cmp dword [esi], ebx
jbe 0x100185e
lea edi, [esi + 4]
push dword [ebp - 0x1c]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x1001853
inc ebx
add edi, 8
cmp ebx, dword [esi]
jb 0x100183a
jmp 0x100185e
xor eax, eax
inc eax
mov dword [0x100b1fc], 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 0x100188a
cmp dword [ebp - 0x10], ebx
je 0x100188a
mov dword [0x100b1fc], 1
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
pop ebx
call fcn.010064de
leave
ret

Function at 0x10019c3
Capabilities:
Shutdown system

Disassembly:
mov edi, edi
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 0x10019f1
push esi
push 0x10
push esi
push esi
push 0x4f5
jmp 0x1001a46
lea eax, [ebp - 0x10]
push eax
push 0x1001274
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 0x1001a30
push 0x10
push esi
push esi
push 0x4f6
jmp 0x1001a46
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x1001a50
push esi
push 0x10
push esi
push esi
push 0x4f7
push esi
call fcn.01003ebe
xor eax, eax
jmp 0x1001a53
xor eax, eax
inc eax
pop esi
leave
ret
Function at 0x1001cf4
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 [0x100b2d0]
push ebx
xor ebx, ebx
cmp byte [0x100b2e0], bl
mov dword [ebp - 4], eax
je 0x1001e03
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 0x1001e03
push esi
lea eax, [ebp - 0x348]
push eax
lea eax, [ebp - 0x340]
push eax
push ebx
push ebx
mov esi, 0x100b2e0
push esi
push dword [ebp - 0x344]
mov dword [ebp - 0x348], 0x238
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1001df6
push edi
push pe_nt_image_headers32
pop ecx
mov byte [ebp - 0x108], bl
lea edi, [ebp - 0x107]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, 0x104
push edi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
test eax, eax
je 0x1001dae
push 0x1001271
push edi
lea eax, [ebp - 0x108]
push eax
call fcn.010066cf
push 0x100bc44
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x340]
push str.rundll32.exe__sadvpack.dll_DelNodeRunDLL32___s_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
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]
pop edi
push dword [ebp - 0x344]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov ecx, dword [ebp - 4]
pop ebx
call fcn.010064de
leave
ret

Function at 0x1001e53
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x100b2d0]
push esi
push edi
mov dword [ebp - 4], eax
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 0x1001ecc
push 0x10012a4
push esi
lea eax, [ebp - 0x108]
push eax
call fcn.010066cf
lea eax, [ebp - 0x108]
push eax
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.DLL_WritePrivateProfileStringA]
push pe_nt_image_headers32
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.DLL__lopen]
mov esi, eax
cmp esi, 0xffffffff
je 0x1001ecc
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
pop esi
call fcn.010064de
leave
ret
Function at 0x1001edf
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 0x1001f2a
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 0x1001f21
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 0x1001f37
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 0x1001f86
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 0x1001f7d
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 0x1001ff9
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 0x1002019
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
jmp 0x100201c
and eax, 0x10
pop ebp
ret 4

Function at 0x1002251
Capabilities:
Shutdown system

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
test byte [ebp + 8], 2
jne 0x1002266
call fcn.0100221e
cmp eax, 2
jne 0x10022a3
test byte [ebp + 8], 4
jne 0x1002288
push 4
push pe_nt_image_headers32
push 0
push 0x1001271
push 0x522
push 0
call fcn.01003ebe
cmp eax, 6
jne 0x10022a3
cmp word [0x100ba64], 0
jne 0x100229e
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x10022a3
call fcn.010019c3
pop ebp
ret 4
Function at 0x10022ac
Capabilities:
Get common file path
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x100b2d0]
and dword [ebp - 0x10c], 0
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
mov byte [esi], 0
cmp byte [edi], 0x23
mov dword [ebp - 4], eax
jne 0x10023dc
inc edi
movsx eax, byte [edi]
push eax
call dword [sym.imp.USER32.dll_CharUpperA]
push edi
mov edi, dword [sym.imp.USER32.dll_CharNextA]
mov bl, al
call edi
push eax
call edi
cmp bl, 0x53
mov edi, eax
je 0x10023dc
cmp bl, 0x57
je 0x10023d0
push 0x10012b4
lea eax, [ebp - 0x108]
mov ebx, 0x104
push eax
mov dword [ebp - 0x118], ebx
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
push edi
push ebx
lea eax, [ebp - 0x108]
push eax
call fcn.010066cf
lea eax, [ebp - 0x110]
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 0x10023ef
lea eax, [ebp - 0x118]
push eax
push esi
lea eax, [ebp - 0x114]
push eax
push 0
push 0x1001271
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10023c2
cmp dword [ebp - 0x114], 2
jne 0x10023af
push ebx
lea eax, [ebp - 0x108]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsA]
test eax, eax
je 0x10023af
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 0xc]
push esi
call fcn.010021c4
jmp 0x10023b8
cmp dword [ebp - 0x114], 1
jne 0x10023c2
mov dword [ebp - 0x10c], 1
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10023e6
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
jmp 0x10023ef
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
cmp dword [ebp - 0x10c], 0
jne 0x10023f9
push edi
push dword [ebp + 0xc]
push esi
call fcn.010066cf
mov ecx, dword [ebp - 4]
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
call fcn.010064de
leave
ret 0xc
Function at 0x1002410
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 0x1002551
mov dword [ebp - 0xc], ebx
jmp 0x1002439
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.010022ac
test eax, eax
je 0x1002558
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0xc]
call sub.VERSION.dll_GetFileVersionInfoSizeA
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x1002535
push eax
push 0x42
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1002558
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
mov ebx, eax
test ebx, ebx
je 0x1002558
push ebx
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp + 0xc]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x100252a
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x10012e8
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x100252a
cmp dword [ebp - 0x1c], 0
je 0x100252a
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.01002196
push dword [ecx]
mov dword [ebp + edx - 0x28], eax
push dword [ecx - 4]
push edi
push ebx
call fcn.01002196
mov dword [ebp + edx - 0x30], eax
add edx, 4
add ecx, 0x18
cmp edx, 8
jl 0x10024e3
cmp dword [ebp - 0x28], 0
jl 0x100251b
cmp dword [ebp - 0x30], 0
jle 0x1002527
cmp dword [ebp - 0x24], 0
jl 0x1002579
cmp dword [ebp - 0x2c], 0
jg 0x1002579
mov edi, dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
jmp 0x100253e
cmp dword [esi], ebx
jne 0x1002558
cmp dword [esi + 4], ebx
jne 0x1002558
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
add dword [ebp - 0xc], 0x3c
cmp eax, dword [edi + 0x7c]
jl 0x1002437
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 0x1002572
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 0x1002558
Function at 0x1002a96
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 [0x100b2d0]
push edi
mov edi, dword [ebp + 8]
test edi, edi
mov dword [ebp - 4], eax
je 0x1002bda
cmp byte [edi], 0
je 0x1002bda
push esi
push edi
mov esi, 0x104
push esi
lea eax, [ebp - 0x108]
push eax
call fcn.0100160f
push 0x100134c
push esi
lea eax, [ebp - 0x108]
push eax
call fcn.010021e6
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 0x1002bd9
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_lstrcmpA]
push edi
push esi
lea eax, [ebp - 0x108]
push eax
call fcn.0100160f
test byte [ebp - 0x248], 0x10
lea eax, [ebp - 0x21c]
je 0x1002b7d
push 0x1001348
push eax
call ebx
test eax, eax
je 0x1002baa
push 0x1001344
lea eax, [ebp - 0x21c]
push eax
call ebx
test eax, eax
je 0x1002baa
lea eax, [ebp - 0x21c]
push eax
push esi
lea eax, [ebp - 0x108]
push eax
call fcn.010021e6
push 0x1001271
push esi
lea eax, [ebp - 0x108]
push eax
call fcn.010066cf
lea eax, [ebp - 0x108]
push eax
call fcn.01002a96
jmp 0x1002baa
push eax
push esi
lea eax, [ebp - 0x108]
push eax
call fcn.010021e6
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 0x1002b0e
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]
pop edi
call fcn.010064de
leave
ret 4

Function at 0x1002e55
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
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 0x1002ec0
cmp dword [ebp + 0xc], edi
je 0x1002ec0
cmp ebx, edi
je 0x1002ea0
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 0x1002ea4
xor eax, eax
jmp 0x1002ec2
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 0x1002f6b
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 8]
mov cl, byte [edi]
xor ebx, ebx
cmp cl, bl
je 0x1002fda
push esi
lea esi, [edi + 1]
mov al, byte [esi]
cmp al, 0x3a
mov dword [ebp + 8], ebx
jne 0x1002f95
cmp byte [edi + 2], 0x5c
jne 0x1002f95
lea esi, [edi + 3]
jmp 0x1002fd5
cmp cl, 0x5c
jne 0x1002fd5
cmp al, cl
jne 0x1002fd5
lea esi, [edi + 2]
mov dword [ebp + 8], 2
jmp 0x1002fd5
cmp byte [esi], 0x5c
jne 0x1002fcc
cmp byte [esi - 1], 0x3a
je 0x1002fcc
cmp dword [ebp + 8], ebx
je 0x1002fbf
dec dword [ebp + 8]
jmp 0x1002fcc
push ebx
push edi
mov byte [esi], bl
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], bl
jne 0x1002faa
pop esi
pop edi
pop ebx
pop ebp
ret 4

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x100b2d0]
push ebx
push esi
mov esi, dword [0x100bc40]
test esi, esi
mov dword [ebp - 4], eax
mov ebx, esi
je 0x10033a6
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_LocalFree]
cmp dword [0x100c884], 0
jne 0x1003395
cmp dword [0x100c490], 0
jne 0x1003395
push 0x80
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
push dword [ebx]
mov esi, dword [esi + 4]
call edi
push ebx
call edi
test esi, esi
mov ebx, esi
jne 0x100336e
pop edi
xor eax, eax
cmp dword [0x100c880], eax
pop esi
pop ebx
je 0x1003400
cmp dword [0x100c884], eax
jne 0x1003400
cmp dword [0x100c490], eax
jne 0x1003400
push 0x100bc44
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
test byte [0x100c494], 0x20
je 0x10033e9
lea eax, [ebp - 0x108]
push eax
call fcn.01006666
push 0x1001344
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryA]
lea eax, [ebp - 0x108]
push eax
call fcn.01002a96
cmp word [0x100ba64], 1
je 0x1003418
cmp dword [0x100c880], 0
je 0x1003418
call fcn.01001a5b
mov ecx, dword [ebp - 4]
and dword [0x100c880], 0
call fcn.010064de
leave
ret
Function at 0x100342e
Capabilities:
Check if file exists
Create directory
Delete directory
Delete file
Get common file path
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x100b2d0]
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push edi
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x10c], ebx
push ebx
lea eax, [ebp - 0x108]
push 0x1001368
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push dword [ebp - 0x110]
inc ebx
push esi
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 0x10]
push esi
call fcn.010066cf
push esi
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryA]
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
mov edi, dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
je 0x10034af
cmp ebx, 0x190
jl 0x1003458
jmp 0x10034cf
push 0
push esi
call edi
test eax, eax
je 0x10034c8
xor eax, eax
inc eax
mov dword [0x100c880], eax
mov dword [ebp - 0x10c], eax
jmp 0x10034fd
and dword [ebp - 0x10c], 0
push esi
push 0
push 0x1001364
push dword [ebp - 0x110]
call dword [sym.imp.KERNEL32.DLL_GetTempFileNameA]
test eax, eax
je 0x10034fd
push esi
mov dword [ebp - 0x10c], 1
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
push 0
push esi
call edi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10c]
pop edi
pop esi
pop ebx
call fcn.010064de
leave
ret 0xc
Function at 0x1003ac7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x100b2d0]
push ebx
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor edi, edi
push edi
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x18]
push 0x1001350
push eax
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x20], edi
call ebx
add esp, 0xc
push 0xa
lea eax, [ebp - 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
cmp eax, edi
je 0x1003ba0
push esi
jmp 0x1003b1a
xor edi, edi
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov esi, eax
cmp esi, edi
je 0x1003b86
mov eax, dword [esi]
mov dword [ebp - 0x2c], eax
mov eax, dword [esi + 4]
lea edi, [esi + 8]
push edi
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
lea eax, [eax + edi + 1]
push eax
push edi
push dword [ebp - 0x24]
push dword [ebp - 0x2c]
call dword [ebp - 0x28]
test eax, eax
push esi
je 0x1003b95
call dword [sym.imp.KERNEL32.DLL_FreeResource]
inc dword [ebp - 0x20]
push dword [ebp - 0x20]
lea eax, [ebp - 0x18]
push 0x1001350
push eax
call ebx
add esp, 0xc
push 0xa
lea eax, [ebp - 0x18]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
test eax, eax
jne 0x1003b18
jmp 0x1003b9f
mov dword [0x100ba5c], 0x80070714
mov dword [ebp - 0x1c], edi
jmp 0x1003b9f
and dword [ebp - 0x1c], 0
call dword [sym.imp.KERNEL32.DLL_FreeResource]
pop esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x1c]
pop edi
pop ebx
call fcn.010064de
leave
ret 4

Function at 0x1003ccc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x100b2d0]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
push 0x100bc44
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
push esi
push 0x104
lea eax, [ebp - 0x108]
push eax
call fcn.010066cf
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1003d30
test al, 0x10
jne 0x1003d30
push 8
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.DLL_LoadLibraryExA]
jmp 0x1003d37
push esi
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov ecx, dword [ebp - 4]
pop esi
call fcn.010064de
leave
ret 4
Function at 0x10044bd
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
mov esi, eax
add esi, 0x14
push esi
push pe_nt_image_headers32
call dword [sym.imp.KERNEL32.DLL_LocalAlloc]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x1004507
push ebx
push 0x10
push ebx
push ebx
push 0x4b5
push ebx
call fcn.01003ebe
call fcn.01003aa1
mov dword [0x100ba5c], eax
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 4
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
push 0x10013e4
push esi
push edi
call fcn.010066cf
push ebx
push 0x4000080
push 1
push ebx
push ebx
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_LocalFree]
cmp esi, 0xffffffff
je 0x10044f4
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x10044f4
test al, 0x10
je 0x10044f4
xor eax, eax
mov dword [0x100ba5c], ebx
inc eax
jmp 0x1004500
Function at 0x10047b3
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x100b2d0]
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
test eax, eax
jne 0x10047fa
push eax
push 0x10
push eax
push eax
push 0x4f0
push eax
call fcn.01003ebe
call fcn.01003aa1
mov dword [0x100ba5c], eax
xor eax, eax
jmp 0x100480a
push 2
push 2
lea eax, [ebp - 0x108]
push eax
call fcn.0100456a
mov ecx, dword [ebp - 4]
call fcn.010064de
leave
ret