joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001c09
Capabilities:
Get common file path
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x2c8]
sub esp, 0x348
mov eax, dword [0x100a2cc]
push ebx
xor ebx, ebx
cmp byte [0x100a2e0], bl
mov dword [ebp + 0x2c4], eax
je 0x1001cfa
lea eax, [ebp - 0x7c]
push eax
push 0x2001f
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1001cfa
push esi
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push ebx
push ebx
mov esi, 0x100a2e0
push esi
push dword [ebp - 0x7c]
mov dword [ebp - 0x80], 0x238
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1001cf0
push edi
push 0x40
pop ecx
mov byte [ebp + 0x1c0], bl
lea edi, [ebp + 0x1c1]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea eax, [ebp + 0x1c0]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
pop edi
je 0x1001cb5
push 0x1001271
lea eax, [ebp + 0x1c0]
push eax
call fcn.01005f34
push 0x100ac44
lea eax, [ebp + 0x1c0]
push eax
lea eax, [ebp - 0x78]
push str.rundll32.exe__sadvpack.dll_DelNodeRunDLL32___s_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x78]
push eax
push 1
push ebx
push esi
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov ecx, dword [ebp + 0x2c4]
pop ebx
call fcn.01005e37
add ebp, 0x2c8
leave
ret
Function at 0x1001d0e
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x1cc]
sub esp, 0x24c
mov eax, dword [0x100a2cc]
push ebx
mov ebx, dword [ebp + 0x1d4]
test ebx, ebx
mov dword [ebp + 0x1c8], eax
je 0x1001e34
cmp byte [ebx], 0
je 0x1001e34
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebx
lea eax, [ebp + 0xc4]
push eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x10012ac
lea eax, [ebp + 0xc4]
push eax
call esi
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0xc4]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x80], eax
je 0x1001e32
push ebx
lea eax, [ebp + 0xc4]
push eax
call edi
test byte [ebp - 0x7c], 0x10
lea eax, [ebp - 0x50]
je 0x1001de4
push 0x10012a8
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x1001e0d
push 0x10012a4
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x1001e0d
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp + 0xc4]
push eax
call esi
push 0x1001271
lea eax, [ebp + 0xc4]
push eax
call fcn.01005f34
lea eax, [ebp + 0xc4]
push eax
call fcn.01001d0e
jmp 0x1001e0d
push eax
lea eax, [ebp + 0xc4]
push eax
call esi
push 0x80
lea eax, [ebp + 0xc4]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp + 0xc4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1001d82
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop edi
pop esi
mov ecx, dword [ebp + 0x1c8]
pop ebx
call fcn.01005e37
add ebp, 0x1cc
leave
ret 4

Function at 0x1001e80
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x88]
sub esp, 0x108
mov eax, dword [0x100a2cc]
push edi
mov dword [ebp + 0x84], eax
push 0x104
lea eax, [ebp - 0x80]
push eax
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x1001ef2
push esi
push 0x10012b0
lea eax, [ebp - 0x80]
push eax
call fcn.01005f34
lea eax, [ebp - 0x80]
push eax
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push 0x40
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll__lopen]
mov esi, eax
cmp esi, 0xffffffff
je 0x1001ef1
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 ecx, dword [ebp + 0x84]
mov eax, edi
pop edi
call fcn.01005e37
add ebp, 0x88
leave
ret
Function at 0x1001f08
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 0x1001f51
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 0x1001f48
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 0x1001f59
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 0x1001fa6
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 0x1001f9d
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 0x1002001
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 0x100201e
push 0
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x1002021
and eax, 0x10
ret 4
Function at 0x1002157
Capabilities:
Get common file path
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x100a2cc]
and dword [ebp - 0x10c], 0
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
mov byte [eax], 0
cmp byte [edi], 0x23
jne 0x1002281
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 0x1002279
cmp bl, 0x57
je 0x100226b
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x10012c0
lea eax, [ebp - 0x108]
mov ebx, 0x104
push eax
mov dword [ebp + 0x10], ebx
call esi
push edi
lea eax, [ebp - 0x108]
push eax
call fcn.01005f34
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 0x1002294
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push 0
push 0x1001271
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100225d
cmp dword [ebp + 0xc], 2
jne 0x100224d
push ebx
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x100224d
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 8]
call esi
jmp 0x1002253
cmp dword [ebp + 0xc], 1
jne 0x100225d
mov dword [ebp - 0x10c], 1
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100228b
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x1002294
push dword [ebp + 0xc]
push dword [ebp + 8]
jmp 0x1002285
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp dword [ebp - 0x10c], 0
jne 0x100229d
push edi
push dword [ebp + 8]
call fcn.01005f34
mov ecx, dword [ebp - 4]
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
call fcn.01005e37
leave
ret 0xc
Function at 0x100276d
Capabilities:
Shutdown system

Disassembly:
test byte [esp + 4], 2
jne 0x100277e
call fcn.01002741
cmp eax, 2
jne 0x10027bc
test byte [esp + 4], 4
jne 0x10027a1
push 4
push 0x40
push 0
push 0x1001271
push 0x522
push 0
call fcn.01003a62
cmp eax, 6
jne 0x10027bc
cmp word [0x100aa64], 0
jne 0x10027b7
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x10027bc
call fcn.01001921
ret 4

Function at 0x10027bf
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 0x10028fe
mov dword [ebp - 0xc], ebx
jmp 0x10027e6
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.01002157
test eax, eax
je 0x1002905
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0xc]
call sub.VERSION.dll_GetFileVersionInfoSizeA
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x10028e2
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1002905
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
je 0x1002905
push ebx
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp + 0xc]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x10028d7
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x100134c
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x10028d7
cmp dword [ebp - 0x1c], 0
je 0x10028d7
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.010022cc
push dword [ecx]
mov dword [ebp + edx - 0x28], eax
push dword [ecx - 4]
push edi
push ebx
call fcn.010022cc
mov dword [ebp + edx - 0x30], eax
add edx, 4
add ecx, 0x18
cmp edx, 8
jl 0x1002890
cmp dword [ebp - 0x28], 0
jl 0x10028c8
cmp dword [ebp - 0x30], 0
jle 0x10028d4
cmp dword [ebp - 0x24], 0
jl 0x1002926
cmp dword [ebp - 0x2c], 0
jg 0x1002926
mov edi, dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x10028eb
cmp dword [esi], ebx
jne 0x1002905
cmp dword [esi + 4], ebx
jne 0x1002905
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
add dword [ebp - 0xc], 0x3c
cmp eax, dword [edi + 0x7c]
jl 0x10027e4
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 0x100291f
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 0x1002905
Function at 0x1002b62
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 0x1002bcb
cmp dword [ebp + 0xc], edi
je 0x1002bcb
cmp ebx, edi
je 0x1002bab
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 0x1002baf
xor eax, eax
jmp 0x1002bcd
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 0x1002c62
Capabilities:
Create directory

Disassembly:
push edi
mov edi, dword [esp + 8]
mov cl, byte [edi]
test cl, cl
je 0x1002cc7
push ebx
push esi
lea esi, [edi + 1]
mov al, byte [esi]
xor ebx, ebx
cmp al, 0x3a
jne 0x1002c85
cmp byte [edi + 2], 0x5c
jne 0x1002c85
lea esi, [edi + 3]
jmp 0x1002cc0
cmp cl, 0x5c
jne 0x1002cc0
cmp al, cl
jne 0x1002cc0
push 2
lea esi, [edi + 2]
pop ebx
jmp 0x1002cc0
cmp byte [esi], 0x5c
jne 0x1002cb7
cmp byte [esi - 1], 0x3a
je 0x1002cb7
test ebx, ebx
je 0x1002ca8
dec ebx
jmp 0x1002cb7
push 0
push edi
mov byte [esi], 0
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 0x1002c96
pop esi
pop ebx
pop edi
ret 4

Function at 0x1002fd7
Capabilities:
Delete file
Set current directory
Set file attributes
Terminate process

Disassembly:
sub esp, 0x108
mov eax, dword [0x100a2cc]
push ebp
push esi
mov esi, dword [0x100ac40]
xor ebp, ebp
cmp esi, ebp
push edi
mov dword [esp + 0x110], eax
mov edi, esi
je 0x1003037
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [0x100b884], ebp
jne 0x1003026
cmp dword [0x100b490], ebp
jne 0x1003026
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 0x1003001
pop ebx
cmp dword [0x100b880], ebp
je 0x1003087
cmp dword [0x100b884], ebp
jne 0x1003087
cmp dword [0x100b490], ebp
jne 0x1003087
push 0x100ac44
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
test byte [0x100b494], 0x20
je 0x1003072
lea eax, [esp + 0xc]
push eax
call fcn.01005f73
push 0x10012a4
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea eax, [esp + 0xc]
push eax
call fcn.01001d0e
cmp word [0x100aa64], 1
je 0x100309e
cmp dword [0x100b880], ebp
je 0x100309e
call fcn.010019b2
mov ecx, dword [esp + 0x110]
pop edi
pop esi
mov dword [0x100b880], ebp
pop ebp
add esp, 0x108
jmp fcn.01005e37
Function at 0x10030b9
Capabilities:
Check if file exists
Create directory
Delete directory
Delete file
Get common file path
Get file attributes

Disassembly:
sub esp, 0x108
mov eax, dword [0x100a2cc]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x11c]
push edi
xor edi, edi
mov dword [esp + 0x114], eax
xor ebp, ebp
push edi
lea eax, [esp + 0x14]
push 0x1001368
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push dword [esp + 0x11c]
inc edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x10]
push eax
push esi
call fcn.01005f34
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
je 0x100316c
cmp edi, 0x190
jl 0x10030da
push esi
push 0
push 0x1001364
push dword [esp + 0x128]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x1003151
xor ebp, ebp
push esi
inc ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push esi
call ebx
mov ecx, dword [esp + 0x114]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
call fcn.01005e37
add esp, 0x108
ret 8
xor ebp, ebp
push ebp
push esi
call ebx
test eax, eax
je 0x1003129
xor eax, eax
inc eax
mov dword [0x100b880], eax
mov ebp, eax
jmp 0x1003151
Function at 0x10036bb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x100a2cc]
push ebx
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
push edi
xor edi, edi
push edi
mov dword [ebp - 4], 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 0x100378c
push esi
jmp 0x1003706
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 0x1003772
mov eax, dword [esi]
mov dword [ebp - 0x28], 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 - 0x28]
call dword [ebp + 8]
test eax, eax
push esi
je 0x1003781
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 0x1003704
jmp 0x100378b
mov dword [0x100aa5c], 0x80070714
mov dword [ebp - 0x1c], edi
jmp 0x100378b
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.01005e37
leave
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x100a2cc]
mov dword [ebp - 4], eax
push 0x100ac44
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call fcn.01005f34
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x10038f0
test al, 0x10
jne 0x10038f0
push 8
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x10038f9
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [ebp - 4]
call fcn.01005e37
leave
ret 4
Function at 0x1004006
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 0x14
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
xor ebp, ebp
cmp esi, ebp
jne 0x1004046
push ebp
push 0x10
push ebp
push ebp
push 0x4b5
push ebp
call fcn.01003a62
call fcn.0100369c
mov dword [0x100aa5c], eax
xor eax, eax
jmp 0x10040ad
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x10013e4
push esi
call fcn.01005f34
push ebp
push 0x4000080
push 1
push ebp
push ebp
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp edi, 0xffffffff
je 0x10040a0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x10040a0
test al, 0x10
je 0x10040a0
xor eax, eax
mov dword [0x100aa5c], ebp
inc eax
jmp 0x10040ac
call fcn.0100369c
mov dword [0x100aa5c], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x10040b3
Capabilities:
Get common file path
Get disk information
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x31c
mov eax, dword [0x100a2cc]
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 4], eax
mov dword [ebp - 0x314], ebx
jne 0x10040da
xor eax, eax
inc eax
jmp 0x10042d2
push esi
lea eax, [ebp - 0x310]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
call esi
test eax, eax
jne 0x100411d
push ebx
push 0x10
push ebx
push ebx
push 0x4bc
push ebx
call fcn.01003a62
call fcn.0100369c
mov dword [0x100aa5c], eax
xor eax, eax
jmp 0x10042d1
push edi
lea eax, [ebp - 0x314]
push eax
push ebx
call fcn.01006279
mov edi, eax
cmp edi, ebx
jne 0x100419a
push 0x7f
mov byte [ebp - 0x20c], bl
xor eax, eax
pop ecx
lea edi, [ebp - 0x20b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.0100369c
push ebx
mov dword [0x100aa5c], eax
push 0x200
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push ebx
push 0x10
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 8]
push 0x4b0
push ebx
call fcn.01003a62
lea eax, [ebp - 0x310]
push eax
call esi
xor eax, eax
jmp 0x10042d0
push ebx
push ebx
lea eax, [ebp - 0x318]
push eax
lea eax, [ebp - 0x31c]
push eax
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x100420e
push 0x7f
mov byte [ebp - 0x20c], bl
pop ecx
lea edi, [ebp - 0x20b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.0100369c
push ebx
mov dword [0x100aa5c], eax
push 0x200
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push ebx
push 0x10
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 8]
push 0x4f9
jmp 0x1004184
lea eax, [ebp - 0x310]
push eax
call esi
push 3
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov ecx, 0x200
xor eax, eax
cmp dword [ebp - 0x314], ecx
je 0x100423e
shl ecx, 1
inc eax
cmp ax, 8
jb 0x100422d
cmp ax, 8
jne 0x1004259
push ebx
push 0x10
push ebx
push ebx
push 0x4c5
push ebx
call fcn.01003a62
jmp 0x1004193
test byte [0x100b494], 8
je 0x1004286
test byte [ebp - 0x317], 0x80
je 0x1004286
mov edx, dword [0x100b498]
movzx eax, ax
mov eax, dword [eax*4 + 0x100bbc0]
mov ecx, edx
shr ecx, 2
shl eax, 1
add ecx, edx
jmp 0x1004296
mov ecx, dword [0x100b498]
movzx eax, ax
mov eax, dword [eax*4 + 0x100bbc0]
mov esi, dword [ebp + 0xc]
and esi, 1
je 0x10042bb
test byte [ebp + 0xc], 2
je 0x10042bb
lea edx, [ecx + eax]
cmp edx, edi
jbe 0x10042c7
lea edx, [ebp - 0xc]
push edx
push ecx
push eax
push dword [ebp + 0x10]
call fcn.01002094
jmp 0x10042d0
cmp esi, ebx
je 0x10042c3
cmp eax, edi
jmp 0x10042a9
cmp ecx, edi
jmp 0x10042a9
xor eax, eax
mov dword [0x100aa5c], ebx
inc eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
pop ebx
call fcn.01005e37
leave
ret 0xc
Function at 0x10042df
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x100a2cc]
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x1004324
push eax
push 0x10
push eax
push eax
push 0x4f0
push eax
call fcn.01003a62
call fcn.0100369c
mov dword [0x100aa5c], eax
xor eax, eax
jmp 0x1004334
push 2
push 2
lea eax, [ebp - 0x108]
push eax
call fcn.010040b3
mov ecx, dword [ebp - 4]
call fcn.01005e37
leave
ret
Function at 0x1004786
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x100a2cc]
push ebx
xor ebx, ebx
push esi
mov dword [ebp - 4], eax
xor esi, esi
inc ebx
xor eax, eax
cmp dword [ebp + 8], esi
je 0x1004891
push edi
lea edi, [ebp - 0x214]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x214]
push eax
push dword [ebp + 0xc]
push esi
push esi
push 0x20
push esi
push esi
push esi
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x1004849
push 0xffffffffffffffff
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp + 0xc]
push eax
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [0x100b888], esi
mov ecx, dword [ebp + 0xc]
jne 0x100481d
mov al, byte [0x100b48c]
test bl, al
je 0x100481d
test al, 2
jne 0x100481d
mov eax, ecx
and eax, 0xff000000
cmp eax, 0xaa000000
jne 0x100481d
mov dword [0x100b48c], ecx
push ecx
call fcn.01002a28
push dword [ebp - 0x210]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x214]
call edi
test byte [0x100b495], 4
je 0x100488e
cmp dword [ebp + 0xc], esi
jge 0x100488e
jmp 0x100488c
call fcn.0100369c
push esi
mov dword [0x100aa5c], eax
push 0x200
lea eax, [ebp - 0x204]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push esi
push 0x10
lea eax, [ebp - 0x204]
push eax
push dword [ebp + 8]
push 0x4c4
push esi
call fcn.01003a62
xor ebx, ebx
mov eax, ebx
pop edi
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.01005e37
leave
ret 8