joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407a00
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [0x425100]
mov edi, dword [ebp + 8]
test eax, eax
je 0x407a94
mov esi, dword [eax + 0x30]
test esi, esi
js 0x407ab0
mov ebx, dword [eax + 0x30]
test ebx, ebx
jne 0x407ad0
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
mov ecx, dword [edi + 0xc]
mov dword [ebp - 0x14], eax
test ecx, ecx
jne 0x407a88
lea edx, [ebp - 0x14]
mov eax, edi
call fcn.00407590
cmp eax, 7
jne 0x407b4f
mov eax, dword [0x425100]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x407b26
mov edx, dword [eax + 0x30]
test edx, edx
js 0x407b40
mov edi, dword [eax + 0x30]
test edi, edi
jne 0x407b00
mov dword [eax + 0x28], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ecx, dword [edx + 4]
mov ebp, dword [eax + 0x20]
mov esp, dword [edx + 8]
jmp ecx
lea edx, [ebp - 0x14]
mov eax, edi
call fcn.004077b0
jmp 0x407a45
call fcn.00407e70
mov eax, dword [0x425100]
mov esi, dword [eax + 0x30]
test esi, esi
jns 0x407a20
lea esi, [esi]
call fcn.00407290
mov eax, dword [0x425100]
mov ebx, dword [eax + 0x30]
test ebx, ebx
je 0x407a2b
lea esi, [esi]
lea edi, [edi]
mov ebx, dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
sub esp, 4
jmp 0x407a2e
mov eax, dword [eax + 0x2c]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x407a77
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x407a77
call fcn.00407e70
mov eax, dword [0x425100]
mov edx, dword [eax + 0x30]
test edx, edx
jns 0x407a69
nop
lea esi, [esi]
call fcn.00407290
mov eax, dword [0x425100]
jmp 0x407a69
call sub.msvcrt.dll_abort
lea esi, [esi]
lea edi, [edi]
Function at 0x407b60
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov esi, dword [edi + 0xc]
test esi, esi
je 0x407bf2
mov eax, dword [0x425100]
test eax, eax
je 0x407be6
mov ebx, dword [eax + 0x30]
test ebx, ebx
js 0x407c61
mov ecx, dword [eax + 0x30]
test ecx, ecx
jne 0x407c07
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov eax, edi
call fcn.004077b0
cmp eax, 7
jne 0x407c7f
mov eax, dword [0x425100]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x407c52
mov edx, dword [eax + 0x30]
test edx, edx
js 0x407c70
mov edi, dword [eax + 0x30]
test edi, edi
jne 0x407c33
mov dword [eax + 0x28], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ecx, dword [edx + 4]
mov ebp, dword [eax + 0x20]
mov esp, dword [edx + 8]
jmp ecx
call fcn.00407e70
mov eax, dword [0x425100]
jmp 0x407b82
mov dword [esp], edi
call fcn.00407620
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov ebx, dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
sub esp, 4
jmp 0x407b97
mov eax, dword [eax + 0x2c]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x407bd5
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x407bd5
call fcn.00407e70
mov eax, dword [0x425100]
jmp 0x407bc0
call fcn.00407290
mov eax, dword [0x425100]
jmp 0x407b8d
call fcn.00407290
mov eax, dword [0x425100]
jmp 0x407bcb
call sub.msvcrt.dll_abort
lea esi, [esi]
lea edi, [edi]
Function at 0x408150
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov edx, eax
je 0x408180
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov eax, dword [ebp + 0xc]
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.004084f0
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
leave
ret

Function at 0x805fe0
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x805fe6
pop ebp
sub ebp, 6
sub ebp, 0x405fe0
jmp 0x806044
jmp 0x80604d
mov eax, 0x405fe0
add eax, ebp
add eax, 0x93
mov ecx, 0x632
mov edx, 0x2feb0b96
xor byte [eax], dl
inc eax
dec ecx
jne 0x806064
jmp 0x806077
cld
salc
invalid
Function at 0x1001958
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x100c2c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x100c1f4]
push ebx
xor ebx, ebx
cmp eax, 2
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
mov dword [ebp - 0x10], ebx
jne 0x1001a87
lea eax, [ebp - 0x10]
push eax
call fcn.010018a8
test eax, eax
jne 0x1001a75
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 0x1001a87
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 0x1001a69
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1001a69
push esi
push dword [ebp - 0x18]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
cmp esi, ebx
je 0x1001a68
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x18]
push esi
push 2
push dword [ebp - 0x14]
call edi
test eax, eax
je 0x1001a61
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 0x1001a61
cmp dword [esi], ebx
jbe 0x1001a58
lea edi, [esi + 4]
push dword [ebp - 0x1c]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x1001a4d
inc ebx
add edi, 8
cmp ebx, dword [esi]
jb 0x1001a34
jmp 0x1001a58
xor eax, eax
inc eax
mov dword [0x100c1f4], eax
mov dword [ebp - 0x10], eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
jmp 0x1001a84
cmp dword [ebp - 0x10], ebx
je 0x1001a84
mov dword [0x100c1f4], 1
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.01006b81
leave
ret
Function at 0x1001bc3
Capabilities:
Shutdown system

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push esi
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
xor esi, esi
test eax, eax
jne 0x1001bf9
push esi
push 0x10
push esi
push esi
push 0x4f5
push esi
call fcn.01003828
xor eax, eax
jmp 0x1001c60
lea eax, [ebp - 0x14]
push eax
push 0x10012e4
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push esi
push esi
push esi
lea eax, [ebp - 0x18]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x18], 1
mov dword [ebp - 0xc], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 4]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], esi
push esi
jne 0x1001c45
push 0x10
jmp 0x1052328
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x1001c5d
push esi
push 0x10
push esi
push esi
push 0x4f7
jmp 0x1001bef
xor eax, eax
inc eax
pop esi
leave
ret

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
cmp byte [0x100c600], 0
je 0x1001cad
jmp loc.010500c8
leave
ret

Function at 0x1001cf4
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x100c2c4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, 0x104
push esi
lea eax, [ebp - 0x108]
push eax
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x1001d6f
push 0x10012f8
push esi
lea eax, [ebp - 0x108]
push eax
call fcn.0100745c
lea eax, [ebp - 0x108]
push eax
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push 0x40
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll__lopen]
mov esi, eax
cmp esi, 0xffffffff
je 0x1001d6f
push 2
push edi
push esi
call dword [sym.imp.KERNEL32.dll__llseek]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll__lclose]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.01006b81
leave
ret

Function at 0x1001d84
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 0x1001dcf
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 0x1001dc6
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 0x1001ddc
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 0x1001e2b
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 0x1001e22
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 0x1001e9f
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 0x1001ebf
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x1001ec2
and eax, 0x10
pop ebp
ret 4

Function at 0x100208b
Capabilities:
Shutdown system

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
test byte [ebp + 8], 2
jne fcn.010020a0
call fcn.01002059
jmp loc.01052198
Function at 0x1002346
Capabilities:
Get common file path
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x348
mov eax, dword [0x100c2c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
cmp byte [0x100c600], bl
je 0x1002463
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 0x1002463
push esi
lea eax, [ebp - 0x348]
push eax
lea eax, [ebp - 0x340]
push eax
push ebx
push ebx
mov esi, 0x100c600
push esi
push dword [ebp - 0x344]
mov dword [ebp - 0x348], 0x238
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1002456
push 0x103
lea eax, [ebp - 0x107]
push ebx
push eax
mov byte [ebp - 0x108], bl
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x100240b
push 0x10012e1
push 0x104
lea eax, [ebp - 0x108]
push eax
call fcn.0100745c
push 0x100d2a4
lea eax, [ebp - 0x108]
push eax
push str.rundll32.exe__sadvpack.dll_DelNodeRunDLL32___s_
lea eax, [ebp - 0x340]
push 0x238
push eax
call fcn.01001ffa
add esp, 0x14
lea eax, [ebp - 0x340]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x340]
push eax
push 1
push ebx
push esi
push dword [ebp - 0x344]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x344]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.01006b81
leave
ret

Function at 0x1002475
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x100c2c4]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x10025bb
jmp loc.01050c80
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.01006b81
leave
ret 4
Function at 0x10026cb
Capabilities:
Get common file path
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x100c2c4]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x110], 0
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
mov byte [esi], 0
cmp byte [ebx], 0x23
push edi
jne 0x1002809
inc ebx
movsx eax, byte [ebx]
push eax
call dword [sym.imp.USER32.dll_CharUpperA]
mov edi, dword [sym.imp.USER32.dll_CharNextA]
push ebx
mov byte [ebp - 0x109], al
call edi
push eax
call edi
cmp byte [ebp - 0x109], 0x53
mov ebx, eax
je 0x1002809
cmp byte [ebp - 0x109], 0x57
je 0x10027fd
push 0x1001330
mov edi, 0x104
push edi
lea eax, [ebp - 0x108]
push eax
mov dword [ebp - 0x11c], edi
call fcn.01001f7e
push ebx
push edi
lea eax, [ebp - 0x108]
push eax
call fcn.0100745c
lea eax, [ebp - 0x118]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x108]
jmp loc.010519c8
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x100281c
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp dword [ebp - 0x110], 0
jne 0x1002826
push ebx
push dword [ebp + 0xc]
push esi
call fcn.0100745c
mov ecx, dword [ebp - 4]
pop edi
xor eax, eax
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.01006b81
leave
ret 0xc

Function at 0x100283f
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 0x1002980
mov dword [ebp - 0xc], ebx
jmp 0x1002868
jmp loc.01050fa0
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 0x10029a1
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x10]
leave
ret 0x10
Function at 0x1002edb
Capabilities:
Check os version

Disassembly:
call fcn.01002ec5
cmp eax, 6
jb 0x1002f0e
push 0x10013e0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1002f0e
jmp loc.010512c0
ret

Function at 0x1003181
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 ebx, ebx
push ebx
call esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
cmp edi, dword [ebp + 0x10]
ja 0x10031e8
cmp dword [ebp + 0xc], ebx
je 0x10031e8
cmp edi, ebx
jne 0x10031b5
xor eax, eax
jmp 0x10031e8
push 0xa
push dword [ebp + 8]
push ebx
call esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
cmp esi, ebx
je 0x10031b1
push edi
push esi
push dword [ebp + 0xc]
call sub.msvcrt.dll_memcpy
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x1003223
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 0x1003292
push esi
lea esi, [edi + 1]
mov al, byte [esi]
cmp al, 0x3a
mov dword [ebp + 8], ebx
jne 0x100324d
cmp byte [edi + 2], 0x5c
jne 0x100324d
lea esi, [edi + 3]
jmp 0x100328d
cmp cl, 0x5c
jne 0x100328d
cmp al, cl
jne 0x100328d
lea esi, [edi + 2]
mov dword [ebp + 8], 2
jmp 0x100328d
cmp byte [esi], 0x5c
jne 0x1003284
cmp byte [esi - 1], 0x3a
je 0x1003284
cmp dword [ebp + 8], ebx
je 0x1003277
dec dword [ebp + 8]
jmp 0x1003284
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 0x1003262
pop esi
pop edi
pop ebx
pop ebp
ret 4
Function at 0x1003e8a
Capabilities:
Delete file
Set current directory
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x100c2c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [0x100d2a0]
test esi, esi
mov ebx, esi
je 0x1003eec
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [0x100dee4], 0
jne 0x1003edb
cmp dword [0x100daf0], 0
jne 0x1003edb
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 0x1003eb4
pop edi
xor eax, eax
cmp dword [0x100dee0], eax
pop esi
pop ebx
je 0x1003f4a
cmp dword [0x100dee4], eax
jne 0x1003f4a
cmp dword [0x100daf0], eax
jne 0x1003f4a
push 0x100d2a4
push 0x104
lea eax, [ebp - 0x108]
push eax
call fcn.01001f7e
test byte [0x100daf4], 0x20
je 0x1003f33
lea eax, [ebp - 0x108]
push eax
call fcn.010073f3
push 0x1001320
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea eax, [ebp - 0x108]
push eax
call fcn.01002475
cmp word [0x100d0cc], 1
je 0x1003f62
cmp dword [0x100dee0], 0
je 0x1003f62
call fcn.01001c68
mov ecx, dword [ebp - 4]
and dword [0x100dee0], 0
xor ecx, ebp
call fcn.01006b81
leave
ret

Function at 0x1003f7a
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 [0x100c2c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push edi
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x10c], ebx
push ebx
push 0x1001450
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.01001ffa
add esp, 0x10
push dword [ebp - 0x110]
inc ebx
push dword [ebp + 0x10]
push esi
call fcn.01001f7e
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 0x10]
push esi
call fcn.0100745c
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 0x1004003
cmp ebx, 0x190
jl 0x1003fa6
jmp 0x1004023
push 0
push esi
call edi
test eax, eax
je 0x100401c
xor eax, eax
inc eax
mov dword [0x100dee0], eax
mov dword [ebp - 0x10c], eax
jmp 0x1004051
and dword [ebp - 0x10c], 0
push esi
push 0
push 0x100144c
push dword [ebp - 0x110]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x1004051
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
xor ecx, ebp
pop ebx
call fcn.01006b81
leave
ret 0xc
Function at 0x100406d
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 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x10040b7
push ebx
push 0x10
push ebx
push ebx
push 0x4b5
push ebx
call fcn.01003828
call fcn.01003610
mov dword [0x100d0c4], eax
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 4
push dword [ebp + 8]
push esi
push edi
call fcn.01001f7e
push 0x100145c
push esi
push edi
call fcn.0100745c
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 0x10040a4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x10040a4
test al, 0x10
je 0x10040a4
xor eax, eax
mov dword [0x100d0c4], ebx
inc eax
jmp 0x10040b0
Function at 0x100411a
Capabilities:
Get common file path
Get disk information
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x320
mov eax, dword [0x100c2c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x318], ebx
jne 0x1004149
xor eax, eax
inc eax
jmp 0x100434e
push esi
lea eax, [ebp - 0x310]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push edi
call esi
test eax, eax
jne 0x1004188
push ebx
push 0x10
push ebx
push ebx
push 0x4bc
push ebx
call fcn.01003828
call fcn.01003610
mov dword [0x100d0c4], eax
jmp 0x10042c1
lea eax, [ebp - 0x318]
push eax
push ebx
call fcn.010077e2
cmp eax, ebx
mov dword [ebp - 0x314], eax
jne 0x10041f7
push 0x1ff
lea eax, [ebp - 0x20b]
push ebx
push eax
mov byte [ebp - 0x20c], bl
call sub.msvcrt.dll_memset
add esp, 0xc
call fcn.01003610
push ebx
mov dword [0x100d0c4], 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 edi
push 0x4b0
jmp 0x100426b
push ebx
push ebx
lea eax, [ebp - 0x31c]
push eax
lea eax, [ebp - 0x320]
push eax
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x100427c
push 0x1ff
lea eax, [ebp - 0x20b]
push ebx
push eax
mov byte [ebp - 0x20c], bl
call sub.msvcrt.dll_memset
add esp, 0xc
call fcn.01003610
push ebx
mov dword [0x100d0c4], 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 edi
push 0x4f9
push ebx
call fcn.01003828
lea eax, [ebp - 0x310]
push eax
call esi
jmp 0x10042c1
lea eax, [ebp - 0x310]
push eax
call esi
push 2
push edi
push 6
lea eax, [ebp - 0xc]
push eax
call fcn.01003674
mov ecx, 0x200
xor eax, eax
cmp dword [ebp - 0x318], ecx
je 0x10042ab
add ecx, ecx
inc eax
cmp ax, 8
jb 0x100429a
cmp ax, 8
jne 0x10042c8
push ebx
push 0x10
push ebx
push ebx
push 0x4c5
push ebx
call fcn.01003828
xor eax, eax
jmp 0x100434d
test byte [0x100daf4], 8
je 0x10042f7
test word [ebp - 0x31c], 0x8000
je 0x10042f7
mov edx, dword [0x100daf8]
movzx eax, ax
mov eax, dword [eax*4 + 0x100e220]
mov ecx, edx
shr ecx, 2
add eax, eax
add ecx, edx
jmp 0x1004307
mov ecx, dword [0x100daf8]
movzx eax, ax
mov eax, dword [eax*4 + 0x100e220]
mov esi, dword [ebp + 0xc]
and esi, 1
je 0x1004320
test byte [ebp + 0xc], 2
je 0x1004320
lea edx, [ecx + eax]
cmp edx, dword [ebp - 0x314]
jmp 0x1004332
cmp esi, ebx
je 0x100432c
cmp eax, dword [ebp - 0x314]
jmp 0x1004332
cmp ecx, dword [ebp - 0x314]
jbe 0x1004344
lea edx, [ebp - 0xc]
push edx
push ecx
push eax
push dword [ebp + 0x10]
call fcn.010025f6
jmp 0x100434d
xor eax, eax
mov dword [0x100d0c4], ebx
inc eax
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.01006b81
leave
ret 0xc