joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10009ee5
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
cmp dword [0x10033a64], ebx
jne 0x10009efd
xor eax, eax
inc eax
jmp 0x10009f95
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 8]
push ecx
push 0x28
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x10009f93
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push 3
push dword [ebp - 8]
mov dword [ebp - 4], ebx
call edi
test eax, eax
jne 0x10009f89
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x10009f89
push esi
push dword [ebp - 4]
call fcn.10001029
mov esi, eax
pop ecx
cmp esi, ebx
je 0x10009f88
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push esi
push 3
push dword [ebp - 8]
call edi
test eax, eax
je 0x10009f81
xor ecx, ecx
cmp dword [esi], ebx
jbe 0x10009f71
lea eax, [esi + 0xc]
or dword [eax], 2
inc ecx
add eax, 0xc
cmp ecx, dword [esi]
jb 0x10009f66
push ebx
push ebx
push ebx
push esi
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov ebx, eax
push esi
call fcn.10016394
pop ecx
pop esi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebx
pop ebx
leave
ret

Function at 0x1000a02e
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push 0x44
mov ebx, eax
xor esi, esi
lea eax, [ebp - 0x54]
push esi
push eax
call fcn.100162f0
push 0x10
lea eax, [ebp - 0x10]
push esi
push eax
mov dword [ebp - 0x54], 0x44
call fcn.100162f0
add esp, 0x18
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x1000a08f
push dword [ebp - 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
xor eax, eax
inc eax
pop esi
pop ebx
leave
ret

Function at 0x1000a093
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x100310fc]
xor eax, ebp
mov dword [ebp - 4], eax
push 1
push 0x1a
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x1000a0ff
push 1
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.1000d9ce
add esp, 0xc
test eax, eax
je 0x1000a0ff
push esi
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
mov esi, 0x10033648
push esi
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
push str.reports
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100162d3
leave
ret
Function at 0x1000a37b
Capabilities:
Get file version info
Identify system language via api

Disassembly:
push ebp
lea ebp, [esp - 0x124]
sub esp, 0x1a4
mov eax, dword [0x100310fc]
xor eax, ebp
mov dword [ebp + 0x120], eax
mov eax, dword [ebp + 0x12c]
push 0x104
lea ecx, [ebp - 0x64]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x1000a527
push esi
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x64]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x1000a526
push edi
push esi
call fcn.10001029
mov edi, eax
pop ecx
mov dword [ebp - 0x70], edi
test edi, edi
je 0x1000a525
and dword [ebp - 0x74], 0
push edi
push esi
push dword [ebp - 0x80]
lea eax, [ebp - 0x64]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x1000a519
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x78]
push eax
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x1000a519
push ebx
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov edi, dword [ebp - 0x78]
movzx edx, ax
mov eax, dword [ebp - 0x7c]
or ebx, 0xffffffff
shr eax, 2
xor ecx, ecx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], ebx
test eax, eax
jbe 0x1000a46f
movzx esi, word [edi + ecx*4]
cmp si, dx
jne 0x1000a446
mov dword [ebp - 0x6c], ecx
jmp 0x1000a44e
test si, si
jne 0x1000a44e
mov dword [ebp - 0x68], ecx
inc ecx
cmp ecx, eax
jb 0x1000a438
cmp dword [ebp - 0x6c], ebx
je 0x1000a45d
mov eax, dword [ebp - 0x6c]
jmp 0x1000a471
cmp dword [ebp - 0x68], ebx
je 0x1000a467
mov eax, dword [ebp - 0x68]
jmp 0x1000a471
test eax, eax
jbe 0x1000a46f
xor eax, eax
jmp 0x1000a479
mov eax, ebx
cmp eax, ebx
je 0x1000a518
mov esi, eax
shl esi, 2
lea eax, [esi + edi]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
push str.StringFileInfo_04x_04xProductName
mov edi, 0x80
lea eax, [ebp + 0xa0]
push edi
push eax
call fcn.100165d7
add esp, 0x14
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp + 0xa0]
push eax
push dword [ebp - 0x70]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x1000a518
push dword [ebp - 0x68]
mov dword [ebp - 0x74], 1
call sym.BugTrap.dll_BT_SetAppName
mov eax, dword [ebp - 0x78]
add eax, esi
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
push str.StringFileInfo_04x_04xProductVersion
lea eax, [ebp + 0xa0]
push edi
push eax
call fcn.100165d7
add esp, 0x14
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp + 0xa0]
push eax
push dword [ebp - 0x70]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x1000a511
push dword [ebp - 0x68]
jmp 0x1000a513
push 0
call sym.BugTrap.dll_BT_SetAppVersion
pop ebx
push dword [ebp - 0x70]
call fcn.10016394
mov eax, dword [ebp - 0x74]
pop ecx
pop edi
pop esi
mov ecx, dword [ebp + 0x120]
xor ecx, ebp
call fcn.100162d3
add ebp, 0x124
leave
ret 4
Function at 0x1000a7a3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov esi, eax
mov eax, dword [esi + 0x518]
lea edi, [esi + 0x514]
push edi
push dword [esi + 0x510]
xor ecx, ecx
lea edx, [ebp - 8]
push edx
push ecx
lea ebx, [esi + 0x62c]
mov dword [edi], eax
push ebx
lea eax, [esi + 0x528]
push eax
mov dword [ebp - 0xc], ecx
mov dword [ebx], 0x104
push ecx
jmp 0x1000a96e
cmp eax, 0xea
jne 0x1000a849
mov eax, dword [edi]
add eax, 0x3ff
and eax, 0xfffffc00
push eax
mov dword [ebp - 0x10], eax
call fcn.100161d2
pop ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x1000a945
push dword [esi + 0x510]
call fcn.10019371
mov eax, dword [ebp - 4]
pop ecx
mov ecx, dword [ebp - 0x10]
push edi
push eax
mov dword [esi + 0x510], eax
lea eax, [ebp - 8]
push eax
push 0
push ebx
lea eax, [esi + 0x528]
push eax
push dword [ebp - 0xc]
mov dword [esi + 0x518], ecx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x1000a945
mov ecx, esi
cmp byte [esi + 0x528], al
je 0x1000a889
mov eax, 0x100298c0
call fcn.1000a629
mov dword [ebp - 4], eax
lea eax, [esi + 0x528]
mov ecx, esi
call fcn.1000a629
add dword [ebp - 4], eax
mov eax, 0x100298bc
mov ecx, esi
call fcn.1000a629
add dword [ebp - 4], eax
jmp 0x1000a896
mov eax, 0x100298b8
call fcn.1000a629
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
dec eax
je 0x1000a914
dec eax
je 0x1000a8f7
dec eax
je 0x1000a8e0
dec eax
je 0x1000a8b7
sub eax, 3
je 0x1000a8f7
push dword [ebp - 4]
push dword [edi]
push dword [esi + 0x510]
jmp 0x1000a90f
mov ecx, dword [esi + 0x510]
push dword [ecx]
lea eax, [esi + 0x630]
push str.dword:_08x
push 0x80
push eax
call fcn.100165d7
add esp, 0x10
lea eax, [esi + 0x630]
jmp 0x1000a932
push dword [ebp - 4]
push dword [edi]
push dword [esi + 0x510]
push 0
call fcn.1000a669
add esp, 0x10
jmp 0x1000a939
call fcn.1000a718
test eax, eax
je 0x1000a939
push dword [ebp - 4]
push dword [esi + 0x520]
push dword [esi + 0x51c]
push dword [ebp - 8]
jmp 0x1000a8ed
mov eax, 0x100298c0
mov ecx, esi
call fcn.1000a629
mov eax, dword [esi + 0x510]
mov ecx, esi
call fcn.1000a629
mov eax, 0x100298c0
mov ecx, esi
call fcn.1000a629
mov eax, 0x10029410
mov ecx, esi
call fcn.1000a629
inc dword [ebp - 0xc]
push edi
mov dword [ebx], 0x104
mov eax, dword [esi + 0x518]
mov dword [edi], eax
push dword [esi + 0x510]
lea eax, [ebp - 8]
push eax
push 0
push ebx
lea eax, [esi + 0x528]
push eax
push dword [ebp - 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0x103
jne 0x1000a7e7
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000a987
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
lea ecx, [eax + 1]
mov ebx, 0x104
mov dword [ebp - 8], ecx
cmp ecx, ebx
jae 0x1000aa5a
push edi
mov byte [esi + eax], 0x5c
lea eax, [esi + ecx]
lea ecx, [esi + 0x6b0]
push ecx
mov dword [ebp - 0x10], eax
xor eax, eax
push eax
push eax
push eax
lea edi, [esi + 0x62c]
push edi
lea edx, [esi + 0x528]
push edx
mov dword [ebp - 4], eax
push eax
jmp 0x1000aa3c
test eax, eax
jne 0x1000aa22
lea eax, [esi + 0x528]
push eax
mov eax, ebx
sub eax, dword [ebp - 8]
push eax
push dword [ebp - 0x10]
call fcn.100168b9
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
lea eax, [esi + 0x528]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000aa22
mov eax, dword [edi]
add eax, dword [ebp - 8]
push eax
push dword [ebp - 0xc]
push esi
call fcn.1000aa5d
add esp, 0xc
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 4]
lea eax, [esi + 0x6b0]
push eax
xor eax, eax
push eax
push eax
push eax
push edi
lea eax, [esi + 0x528]
push eax
push dword [ebp - 4]
push dword [ebp + 8]
mov dword [edi], ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
jne 0x1000a9cc
mov eax, dword [ebp - 0x10]
mov byte [eax - 1], 0
pop edi
pop ebx
leave
ret

Function at 0x1000bd73
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [eax]
sub esp, 0x2c
cmp dword [ecx], 0xc00000fd
je 0x1000bdca
push dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push eax
call fcn.10008c52
lea ecx, [ebp - 0x2c]
call fcn.1000b872
lea ecx, [ebp - 0x2c]
call fcn.1000bb6e
test dword [0x10032f0c], 0x200
je 0x1000bdb0
call fcn.1000a02e
mov eax, dword [0x10033014]
dec eax
je 0x1000bdca
dec eax
je 0x1000bdce
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
leave
ret
xor eax, eax
inc eax
leave
ret
Function at 0x1000c365
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x94]
sub esp, 0x114
mov eax, dword [0x100310fc]
xor eax, ebp
mov dword [ebp + 0x90], eax
lea ecx, [ebp - 0x80]
call fcn.10001bc5
cmp dword [0x10032dfc], 0
je 0x1000c39b
push 0
lea ecx, [ebp - 0x80]
call fcn.10001d4a
push ebx
push esi
mov esi, dword [0x10033854]
push edi
call fcn.10006941
mov edi, 0x104
push edi
lea ecx, [ebp - 0x74]
push ecx
push eax
mov ecx, esi
call fcn.100065a3
mov esi, 0x10033750
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x74]
push eax
push esi
mov ebx, 0x10033858
push ebx
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
test byte [0x10032f0c], 1
je 0x1000c41b
push edi
push esi
call fcn.1000d91a
pop ecx
pop ecx
push dword [0x1003395c]
mov ecx, dword [0x10033854]
push esi
call fcn.10008f0f
test eax, eax
je 0x1000c417
mov ecx, dword [0x10033854]
push ebx
push esi
call fcn.100087c5
test eax, eax
je 0x1000c417
xor esi, esi
inc esi
jmp 0x1000c42f
xor esi, esi
jmp 0x1000c42f
push dword [0x1003395c]
mov ecx, dword [0x10033854]
push ebx
call fcn.10008b56
mov esi, eax
lea ecx, [ebp - 0x80]
call fcn.10001d79
mov ecx, dword [ebp + 0x90]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.100162d3
add ebp, 0x94
leave
ret
Function at 0x1000c47f
Capabilities:
Delete file
Get common file path

Disassembly:
push 0x230
push 0x1002e400
call fcn.10019400
mov eax, dword [ebp + 8]
mov dword [ebp - 0x234], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x104
lea eax, [ebp - 0x120]
push eax
push dword [0x10032e00]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
mov edi, str.DBGHELP.DLL
push edi
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [ebp - 0x120]
push eax
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call esi
mov dword [ebp - 0x228], eax
cmp eax, ebx
jne 0x1000c4fd
push edi
call esi
mov dword [ebp - 0x228], eax
cmp dword [ebp - 0x228], ebx
je 0x1000c5eb
push str.MiniDumpWriteDump
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x22c], eax
cmp eax, ebx
je 0x1000c5d6
lea eax, [ebp - 0x224]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push str.BugTrap_1.3.3661.37713.dmp
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x1000c5d6
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x230], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x240], eax
mov eax, dword [ebp - 0x234]
mov dword [ebp - 0x23c], eax
xor eax, eax
inc eax
mov dword [ebp - 0x238], eax
push ebx
push ebx
lea ecx, [ebp - 0x240]
push ecx
push eax
push esi
push dword [ebp - 0x230]
push edi
call dword [ebp - 0x22c]
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebx
jne 0x1000c5d6
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1000c5eb
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
call fcn.10019448
ret
Function at 0x1000d1e8
Capabilities:
Create thread

Disassembly:
xor eax, eax
push eax
push eax
push dword [esp + 0xc]
push fcn.1000d159
push eax
push eax
call fcn.10016f64
add esp, 0x18
ret

Function at 0x1000d30f
Capabilities:
Delete file

Disassembly:
cmp dword [0x10031098], 2
jne 0x1000d2f9
push 0
call fcn.1000c319
pop ecx
ret
call fcn.1000c365
test eax, eax
je 0x1000d30a
push 0
call fcn.1000d200
pop ecx
jmp fcn.1000c451
jmp 0x1000d2e7

Function at 0x1000d73e
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
lea ebp, [esp - 0x2cc]
sub esp, 0x34c
mov eax, dword [0x100310fc]
xor eax, ebp
mov dword [ebp + 0x2c8], eax
push ebx
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineA]
push edi
mov edi, dword [ebp + 0x2d4]
push 0x10028630
push edi
lea eax, [ebp + 0xc0]
push eax
call esi
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp + 0xc0]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1000d80c
test byte [ebp - 0x80], 0x10
lea eax, [ebp - 0x54]
je 0x1000d7da
push 0x1002a0f8
push eax
call fcn.1001959b
pop ecx
pop ecx
test eax, eax
je 0x1000d7f6
lea eax, [ebp - 0x54]
push 0x1002a0f4
push eax
call fcn.1001959b
pop ecx
pop ecx
test eax, eax
je 0x1000d7f6
lea eax, [ebp - 0x54]
push eax
push edi
lea eax, [ebp + 0x1c4]
push eax
call esi
lea eax, [ebp + 0x1c4]
push eax
call fcn.1000d73e
pop ecx
jmp 0x1000d7f2
push eax
push edi
lea eax, [ebp + 0x1c4]
push eax
call esi
lea eax, [ebp + 0x1c4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x1000d805
lea eax, [ebp - 0x80]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1000d78f
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, dword [ebp + 0x2c8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100162d3
add ebp, 0x2cc
leave
ret

Function at 0x1000d82b
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x100310fc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.SHLWAPI.dll_PathSkipRootA]
mov esi, eax
test esi, esi
je 0x1000d8b7
push ebx
sub eax, edi
push eax
push edi
mov edi, 0x104
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.10017898
add esp, 0x10
cmp byte [esi], 0
je 0x1000d8b3
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindNextComponentA]
mov ebx, eax
sub eax, esi
push eax
push esi
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.10019457
add esp, 0x10
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x1000d8ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1000d8c5
cmp byte [ebx], 0
mov esi, ebx
jne 0x1000d86f
xor eax, eax
inc eax
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.100162d3
leave
ret
xor eax, eax
jmp 0x1000d8b6
Function at 0x1000d91a
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x100310fc]
xor eax, ebp
mov dword [ebp + 0x88], eax
push ebx
mov ebx, dword [ebp + 0x94]
push esi
push edi
lea eax, [ebp - 0x7c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashA]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x7c]
push eax
mov edi, str._sTEMP_lu
push edi
push dword [ebp + 0x98]
push ebx
call fcn.100165d7
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x1000d9a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1000d9b4
inc dword [ebp - 0x80]
push dword [ebp - 0x80]
lea eax, [ebp - 0x7c]
push eax
push edi
push dword [ebp + 0x98]
push ebx
call fcn.100165d7
add esp, 0x14
push 0
push ebx
call esi
test eax, eax
je 0x1000d97f
xor eax, eax
inc eax
jmp 0x1000d9b6
xor eax, eax
mov ecx, dword [ebp + 0x88]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100162d3
add ebp, 0x8c
leave
ret

Function at 0x1000db04
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
mov eax, dword [0x100310fc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x314], eax
test esi, esi
je 0x1000db53
cmp byte [esi], 0
je 0x1000db53
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsRootA]
test eax, eax
je 0x1000db53
push esi
push 0x104
push ebx
call fcn.100168b9
xor eax, eax
add esp, 0xc
inc eax
jmp 0x1000dc12
push 1
push 0x1a
lea eax, [ebp - 0x310]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x1000dc12
push edi
push 1
mov edi, 0x104
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.1000d9ce
add esp, 0xc
test eax, eax
je 0x1000dc0f
push edi
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x1000dc0f
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
mov edi, eax
push edi
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionA]
cmp byte [ebp - 0x108], 0
lea eax, [ebp - 0x108]
jne 0x1000dbc9
mov eax, edi
push eax
lea eax, [ebp - 0x310]
push eax
push ebx
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
test esi, esi
je 0x1000dbeb
cmp byte [esi], 0
je 0x1000dbeb
push esi
push ebx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
jmp 0x1000dc0a
mov esi, dword [ebp - 0x314]
test esi, esi
je 0x1000dc0f
cmp byte [esi], 0x2e
jne 0x1000dc0f
push edi
push ebx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push esi
push ebx
call dword [sym.imp.SHLWAPI.dll_PathAddExtensionA]
xor eax, eax
inc eax
jmp 0x1000dc11
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.100162d3
leave
ret
Function at 0x10011174
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x130], 2
jne 0x100111cf
mov eax, dword [esi + 0x128]
test eax, eax
jbe 0x100111c8
and dword [ebp - 4], 0
push 0
lea ecx, [ebp - 4]
push ecx
push eax
push dword [esi + 0x120]
push dword [esi + 0x114]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 4]
mov eax, dword [eax + 4]
lea ecx, [eax + esi + 4]
mov eax, dword [ecx]
call dword [eax + 0x14]
mov dword [esi + 0x118], eax
test eax, eax
je 0x100111c8
xor al, al
jmp 0x100111d1
mov ecx, esi
call fcn.10011108
mov al, 1
pop esi
leave
ret

Function at 0x10011b57
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov eax, dword [ecx]
mov edx, eax
xor edx, dword [esp + 4]
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edi + edx*4]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edi + edx*4]
pop esi
mov dword [ecx + 8], eax
mov eax, dword [esp + 4]
ret
Function at 0x10011bd2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x100310fc]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0xc
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], ebx
jge 0x10011c05
xor eax, eax
jmp 0x10011d06
inc dword [0x10033ca8]
cmp dword [0x10033ca8], 1
jne 0x10011c28
push 0
call fcn.10019a70
xor eax, 0xbb40e64e
push eax
call fcn.10019ac1
pop ecx
pop ecx
push edi
mov ecx, ebx
mov eax, esi
call fcn.10011b9a
add esp, 4
xor esi, esi
call fcn.10019ad3
mov ebx, eax
mov eax, dword [ebp - 0x14]
sar ebx, 7
and ebx, 0xff
call fcn.10011b3a
mov ecx, dword [ebp - 0x14]
push ebx
mov dword [ebp - 0x18], eax
call fcn.10011b57
xor bl, byte [ebp - 0x18]
add esp, 4
mov byte [ebp + esi - 0x10], bl
inc esi
cmp esi, 0xa
jl 0x10011c37
mov eax, dword [ebp - 0x20]
push edi
call fcn.10011b9a
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x10]
add esp, 4
xor esi, esi
sub eax, ecx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
call fcn.10011b3a
mov bl, byte [ebp + esi - 0x10]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
movzx eax, bl
push eax
call fcn.10011b57
xor bl, byte [ebp - 0x18]
mov eax, dword [ebp - 0x20]
add eax, esi
add esp, 4
inc esi
cmp esi, 0xa
mov byte [ebp + eax - 0x10], bl
jl 0x10011c84
mov eax, ecx
call fcn.10011b3a
mov ebx, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
shr ebx, 0x10
mov eax, ebx
and eax, 0xff
push eax
call fcn.10011b57
xor bl, byte [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov byte [eax + esi], bl
mov eax, ecx
inc esi
call fcn.10011b3a
mov ebx, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x14]
shr ebx, 0x18
push ebx
mov dword [ebp - 0x18], eax
call fcn.10011b57
mov eax, dword [ebp - 0x1c]
add esp, 8
xor bl, byte [ebp - 0x18]
mov byte [eax + esi], bl
lea eax, [esi + 1]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100162d3
leave
ret

Function at 0x10012401
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
xor eax, eax
mov dword [ebp - 8], eax
cmp dword [esi + 0x4090], eax
je 0x10012461
cmp dword [esi + 0x6c], eax
jbe 0x10012461
push ebx
mov dword [ebp - 4], 0xffffff78
sub dword [ebp - 4], esi
push edi
lea ebx, [esi + 0x88]
lea edx, [esi + 0x4094]
mov eax, edx
call fcn.10011b3a
mov edi, dword [esi + 0x40a0]
mov dword [ebp - 0xc], eax
movzx eax, byte [ebx]
push eax
mov ecx, edx
call fcn.10011b57
mov al, byte [ebp - 0xc]
xor byte [ebx], al
mov eax, dword [ebp - 4]
add esp, 4
inc ebx
add eax, ebx
cmp eax, dword [esi + 0x6c]
jb 0x1001242b
pop edi
pop ebx
push dword [esi + 0x6c]
lea eax, [esi + 0x88]
push eax
push dword [esi + 0x20]
push dword [esi + 0x1c]
call dword [esi + 8]
add esp, 0x10
cmp eax, dword [esi + 0x6c]
je 0x10012480
or dword [ebp - 8], 0xffffffff
and dword [esi + 0x6c], 0
mov eax, dword [ebp - 8]
leave
ret