joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000a69d
Capabilities:
Check if file exists
Get file attributes
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push closesocket
push dword [ebp + 0xc]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [ebp - 0xc], ebx
je 0x1000a77c
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, 0x19000
cmp eax, ecx
mov dword [ebp - 4], eax
jb 0x1000a6e8
mov dword [ebp - 4], ecx
push dword [ebp - 4]
call fcn.1001b998
cmp eax, edi
pop ecx
mov dword [ebp - 8], eax
je 0x1000a771
push 9
push 8
push edi
push edi
push edi
push edi
push edi
push edi
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.10017470
test eax, eax
jne 0x1000a768
push edi
lea eax, [ebp + 0x10]
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x1000a74f
cmp dword [ebp + 0x10], edi
je 0x1000a75a
push dword [ebp + 0x10]
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.100174b0
mov esi, eax
neg esi
sbb esi, esi
inc esi
je 0x1000a75a
push edi
lea eax, [ebp + 0x10]
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp - 0xc]
mov dword [ebp + 0x10], edi
call ebx
mov esi, eax
cmp esi, edi
jne 0x1000a725
push dword [ebp + 8]
call fcn.100178a0
test eax, eax
je 0x1000a768
xor esi, esi
push dword [ebp - 8]
call fcn.1001b588
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1000a79d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1000a79a
cmp eax, 3
je 0x1000a79a
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1000a79d
xor esi, esi
inc esi
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x1000a7a4
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x710], edi
jne 0x1000a7bf
xor eax, eax
jmp 0x1000a84f
push ebx
push edi
push 0x80
push 2
push edi
push edi
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1000a7e3
xor eax, eax
jmp 0x1000a84e
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esi + 0xc], edi
mov dword [ebp - 8], eax
je 0x1000a822
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push edi
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0xc]
push edi
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push dword [0x1002d14c]
mov dword [ebp - 0xc], 1
push ebx
push dword [ebp - 8]
jmp 0x1000a82d
push edi
push edi
push edi
push dword [0x1002d14c]
push ebx
push eax
push dword [ebp - 4]
call dword [esi + 0x710]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, edi
jne 0x1000a84c
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, esi
pop ebx
pop edi
pop esi
leave
ret 4
Function at 0x1000bc05
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x714], ebx
je 0x1000bcc7
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [ebp + 0xc]
push eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], ebx
call fcn.10008066
test eax, eax
je 0x1000bcc7
push edi
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 8]
sete al
cmp dword [esi + 0xc], ebx
je 0x1000bc5a
cmp al, bl
jne 0x1000bcb3
cmp al, bl
je 0x1000bc71
push str.active
push ebx
push ecx
push dword [ebp + 8]
mov ecx, esi
call fcn.1000ba95
jmp 0x1000bcb3
push ecx
push ebx
push 0x4a
call dword [esi + 0x714]
mov edi, eax
cmp edi, ebx
je 0x1000bcb3
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
test eax, eax
mov eax, str.suspended
jne 0x1000bc96
mov eax, str.running
push eax
push edi
push dword [ebp - 4]
mov ecx, esi
push dword [ebp + 8]
call fcn.1000ba95
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
push dword [ebp - 0xc]
call fcn.100080e0
test eax, eax
jne 0x1000bc48
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x1000c2c3
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x714], ebx
je 0x1000c385
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [ebp + 0xc]
push eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], ebx
call fcn.10008066
test eax, eax
je 0x1000c385
push edi
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 8]
sete al
cmp dword [esi + 0xc], ebx
je 0x1000c318
cmp al, bl
jne 0x1000c371
cmp al, bl
je 0x1000c32f
push str.Active_Thread
push ebx
push ecx
push dword [ebp + 8]
mov ecx, esi
call fcn.1000c226
jmp 0x1000c371
push ecx
push ebx
push 0x4a
call dword [esi + 0x714]
mov edi, eax
cmp edi, ebx
je 0x1000c371
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
test eax, eax
mov eax, str.Suspended_Thread
jne 0x1000c354
mov eax, str.Running_Thread
push eax
push edi
push dword [ebp - 4]
mov ecx, esi
push dword [ebp + 8]
call fcn.1000c226
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
push dword [ebp - 0xc]
call fcn.100080e0
test eax, eax
jne 0x1000c306
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x1000decc
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
cmp dword [0x1002f844], ebx
jne 0x1000dee4
xor eax, eax
inc eax
jmp 0x1000df7c
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 0x1000df7a
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 0x1000df70
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1000df70
push esi
push dword [ebp - 4]
call fcn.1001b998
mov esi, eax
cmp esi, ebx
pop ecx
je 0x1000df6f
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push esi
push 3
push dword [ebp - 8]
call edi
test eax, eax
je 0x1000df68
xor ecx, ecx
cmp dword [esi], ebx
jbe 0x1000df58
lea eax, [esi + 0xc]
or dword [eax], 2
inc ecx
add eax, 0xc
cmp ecx, dword [esi]
jb 0x1000df4d
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.1001b588
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 0x1000dfd2
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1002d4a0]
push 1
mov dword [ebp - 4], eax
push 0x1a
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x1000e03c
push 1
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.10011af1
add esp, 0xc
test eax, eax
je 0x1000e03c
push esi
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
mov esi, 0x1002f508
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]
call fcn.1001b57a
leave
ret
Function at 0x1000e60f
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 0x1000e7d2
cmp eax, 0xea
jne 0x1000e6b5
mov eax, dword [edi]
add eax, 0x3ff
and eax, 0xfffffc00
push eax
mov dword [ebp - 0x10], eax
call fcn.1001ca8f
test eax, eax
pop ecx
mov dword [ebp - 4], eax
je 0x1000e7a9
push dword [esi + 0x510]
call fcn.1001c977
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 0x1000e7a9
cmp byte [esi + 0x528], al
mov ecx, esi
je 0x1000e6f5
mov eax, 0x100277a0
call fcn.1000e4a1
mov dword [ebp - 4], eax
lea eax, [esi + 0x528]
mov ecx, esi
call fcn.1000e4a1
add dword [ebp - 4], eax
mov eax, 0x1002779c
mov ecx, esi
call fcn.1000e4a1
add dword [ebp - 4], eax
jmp 0x1000e702
mov eax, 0x10027798
call fcn.1000e4a1
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
dec eax
je 0x1000e778
dec eax
je 0x1000e75b
dec eax
je 0x1000e744
dec eax
je 0x1000e720
sub eax, 3
je 0x1000e75b
push dword [ebp - 4]
push dword [edi]
push dword [ebp - 8]
jmp 0x1000e74b
mov ecx, dword [esi + 0x510]
push dword [ecx]
lea eax, [esi + 0x630]
push str.dword:_08x
push eax
call fcn.1001b6fa
add esp, 0xc
lea eax, [esi + 0x630]
jmp 0x1000e796
push dword [ebp - 4]
push dword [edi]
push 0
mov eax, dword [esi + 0x510]
call fcn.1000e4df
add esp, 0xc
jmp 0x1000e79d
call fcn.1000e584
test eax, eax
je 0x1000e79d
push dword [ebp - 4]
mov eax, dword [esi + 0x51c]
push dword [esi + 0x520]
push dword [ebp - 8]
jmp 0x1000e751
mov eax, 0x100277a0
mov ecx, esi
call fcn.1000e4a1
mov eax, dword [esi + 0x510]
mov ecx, esi
call fcn.1000e4a1
mov eax, 0x100277a0
mov ecx, esi
call fcn.1000e4a1
mov eax, 0x10027038
mov ecx, esi
call fcn.1000e4a1
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 0x1000e653
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000e7eb
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea ecx, [eax + 1]
mov edx, 0x104
cmp ecx, edx
mov dword [ebp - 0x10], ecx
jae 0x1000e8b6
push ebx
push edi
mov byte [esi + eax], 0x5c
lea eax, [esi + ecx]
xor ebx, ebx
mov dword [ebp - 0xc], eax
lea eax, [esi + 0x6b0]
push eax
push ebx
push ebx
push ebx
lea edi, [esi + 0x62c]
push edi
lea ecx, [esi + 0x528]
push ecx
mov dword [ebp - 4], ebx
mov dword [edi], edx
push ebx
jmp 0x1000e89e
cmp eax, ebx
jne 0x1000e880
lea eax, [esi + 0x528]
push eax
push dword [ebp - 0xc]
call fcn.1001b8a0
pop ecx
pop ecx
lea eax, [ebp - 8]
push eax
push 0x20019
push ebx
lea eax, [esi + 0x528]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000e880
mov eax, dword [edi]
add eax, dword [ebp - 0x10]
push eax
push dword [ebp - 8]
push esi
call fcn.1000e8b8
add esp, 0xc
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 4]
lea eax, [esi + 0x6b0]
push eax
push ebx
push ebx
push ebx
push edi
lea eax, [esi + 0x528]
push eax
push dword [ebp - 4]
mov dword [edi], 0x104
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
jne 0x1000e832
mov eax, dword [ebp - 0xc]
pop edi
mov byte [eax - 1], bl
pop ebx
leave
ret

Function at 0x100100e6
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x94]
sub esp, 0x114
mov eax, dword [0x1002d4a0]
lea ecx, [ebp - 0x80]
mov dword [ebp + 0x90], eax
call fcn.1000376a
cmp dword [0x1002ecb8], 0
je 0x1001011a
push 0
lea ecx, [ebp - 0x80]
call fcn.100038f1
push esi
mov esi, dword [0x1002f83c]
push edi
call fcn.1000ab72
mov edi, 0x104
push edi
lea ecx, [ebp - 0x74]
push ecx
push eax
mov ecx, esi
call fcn.1000a855
mov esi, 0x1002f610
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x74]
push eax
push esi
mov edi, 0x1002f718
push edi
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
test byte [0x1002f81c], 1
je 0x10010197
push esi
call fcn.10011a57
pop ecx
push dword [0x1002f840]
mov ecx, dword [0x1002f83c]
push esi
call fcn.1000ce3a
test eax, eax
je 0x10010193
mov ecx, dword [0x1002f83c]
push edi
push esi
call fcn.1000c708
test eax, eax
je 0x10010193
xor esi, esi
inc esi
jmp 0x100101ab
xor esi, esi
jmp 0x100101ab
push dword [0x1002f840]
mov ecx, dword [0x1002f83c]
push edi
call fcn.1000cd74
mov esi, eax
lea ecx, [ebp - 0x80]
call fcn.10003920
mov ecx, dword [ebp + 0x90]
pop edi
mov eax, esi
pop esi
call fcn.1001b57a
add ebp, 0x94
leave
ret
Function at 0x1001029a
Capabilities:
Delete file
Get common file path

Disassembly:
push 0x238
push 0x10027938
call fcn.1001c560
mov eax, dword [0x1002d4a0]
mov dword [ebp - 0x1c], eax
and dword [ebp - 4], 0
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x104
lea eax, [ebp - 0x120]
push eax
push dword [0x1002ecc0]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
mov ebx, str.DBGHELP.DLL
push ebx
lea eax, [ebp - 0x120]
push eax
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendA]
call esi
lea eax, [ebp - 0x120]
push eax
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call edi
mov dword [ebp - 0x228], eax
test eax, eax
jne 0x10010319
push ebx
call edi
mov dword [ebp - 0x228], eax
cmp dword [ebp - 0x228], 0
je 0x1001041a
push str.MiniDumpWriteDump
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x234], eax
xor edi, edi
cmp eax, edi
je 0x10010405
lea eax, [ebp - 0x224]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push str.BugTrap_1.22826.33101.dmp
lea eax, [ebp - 0x224]
push eax
call esi
push edi
push 0x80
push 2
push edi
push edi
push 0x40000000
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov dword [ebp - 0x248], esi
cmp esi, 0xffffffff
je 0x10010405
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 0x238], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x230], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x244], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x240], eax
xor eax, eax
inc eax
mov dword [ebp - 0x23c], eax
push edi
push edi
lea ecx, [ebp - 0x244]
push ecx
push eax
push esi
push dword [ebp - 0x230]
push dword [ebp - 0x238]
call dword [ebp - 0x234]
mov dword [ebp - 0x22c], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x22c], edi
jne 0x10010405
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 0x1001041a
or dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x1c]
call fcn.1001b57a
call fcn.1001c59b
ret
Function at 0x100114d7
Capabilities:
Create process on windows

Disassembly:
xor eax, eax
cmp byte [0x1002f0e8], al
je 0x100114ef
cmp word [0x1002f504], ax
je 0x100114ef
jmp fcn.10011020
cmp byte [0x1002efe0], al
je 0x100114fc
jmp fcn.10011354
xor eax, eax
ret

Function at 0x10011528
Capabilities:
Delete file

Disassembly:
cmp dword [0x1002d148], 2
jne 0x1001153a
push 0
call fcn.1001009e
pop ecx
ret
call fcn.100100e6
test eax, eax
je 0x100115c0
mov eax, dword [0x1002d148]
dec eax
je 0x10011565
dec eax
dec eax
je 0x1001155c
dec eax
jne 0x100115c0
push 0
call fcn.10011020
pop ecx
jmp 0x100115c0
push 0
call fcn.1001130c
jmp 0x10011559
push edi
xor edi, edi
cmp dword [0x1002f834], edi
je 0x100115bf
test byte [0x1002f81c], 0x10
je 0x10011590
push edi
push 0x10002014
push edi
push 0x65
push dword [0x1002ecc0]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
jmp 0x100115bf
push esi
mov esi, dword [sym.imp.USER32.dll_DialogBoxParamA]
push edi
push 0x100030d6
push edi
push 0x6f
push dword [0x1002ecc0]
call esi
cmp eax, 1
jne 0x100115be
push edi
push 0x10002014
push edi
push 0x65
push dword [0x1002ecc0]
call esi
pop esi
pop edi
jmp fcn.100101ca

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34c
mov eax, dword [0x1002d4a0]
push ebx
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineA]
push edi
mov edi, dword [ebp + 8]
push 0x100265e4
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 0x34c]
push eax
call esi
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x34c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1001196c
test byte [ebp - 0x144], 0x10
lea eax, [ebp - 0x118]
je 0x10011933
push 0x10028008
push eax
call fcn.1001cb71
test eax, eax
pop ecx
pop ecx
je 0x1001194f
lea eax, [ebp - 0x118]
push 0x10028004
push eax
call fcn.1001cb71
test eax, eax
pop ecx
pop ecx
je 0x1001194f
lea eax, [ebp - 0x118]
push eax
push edi
lea eax, [ebp - 0x248]
push eax
call esi
lea eax, [ebp - 0x248]
push eax
call fcn.10011891
pop ecx
jmp 0x1001194b
push eax
push edi
lea eax, [ebp - 0x248]
push eax
call esi
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x10011965
lea eax, [ebp - 0x144]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x100118dc
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.1001b57a
leave
ret
Function at 0x10011980
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1002d4a0]
push esi
push edi
mov edi, dword [ebp + 8]
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.SHLWAPI.dll_PathSkipRootA]
mov esi, eax
test esi, esi
je 0x10011a0d
sub eax, edi
push eax
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.1001c4ca
add esp, 0xc
cmp byte [esi], 0
je 0x100119fe
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindNextComponentA]
mov edi, eax
sub eax, esi
push eax
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.1001caa1
add esp, 0xc
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x100119f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x10011a0d
cmp byte [edi], 0
mov esi, edi
jne 0x100119bb
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.1001b57a
leave
ret
xor eax, eax
jmp 0x10011a01

Function at 0x10011a57
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1002d4a0]
push ebx
push esi
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashA]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
push ebx
lea eax, [ebp - 0x108]
push eax
mov edi, str._sTEMP_lu
push edi
push dword [ebp + 8]
call fcn.1001b6fa
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x10011acf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x10011ae2
inc ebx
push ebx
lea eax, [ebp - 0x108]
push eax
push edi
push dword [ebp + 8]
call fcn.1001b6fa
add esp, 0x10
push 0
push dword [ebp + 8]
call esi
test eax, eax
je 0x10011ab0
xor eax, eax
inc eax
jmp 0x10011ae4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.1001b57a
leave
ret
Function at 0x10011c29
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
mov eax, dword [0x1002d4a0]
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
mov dword [ebp - 4], eax
je 0x10011c65
cmp byte [edi], 0
je 0x10011c65
push edi
call dword [sym.imp.SHLWAPI.dll_PathIsRootA]
test eax, eax
je 0x10011c65
push edi
push dword [ebp + 8]
call fcn.1001b8a0
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x10011d36
push 1
push 0x1a
lea eax, [ebp - 0x310]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x10011d36
push esi
push 1
mov esi, 0x104
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.10011af1
add esp, 0xc
test eax, eax
jne 0x10011ca3
xor eax, eax
jmp 0x10011d35
push esi
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x10011c9c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push eax
mov dword [ebp - 0x314], eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionA]
cmp byte [ebp - 0x108], 0
lea eax, [ebp - 0x108]
jne 0x10011ce6
mov eax, dword [ebp - 0x314]
push ebx
mov ebx, dword [ebp + 8]
push eax
lea eax, [ebp - 0x310]
push eax
push ebx
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
test edi, edi
je 0x10011d0c
cmp byte [edi], 0
je 0x10011d0c
push edi
push ebx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
jmp 0x10011d2d
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x10011d32
cmp byte [esi], 0x2e
jne 0x10011d32
push dword [ebp - 0x314]
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 0x10011d34
xor eax, eax
pop ebx
pop esi
mov ecx, dword [ebp - 4]
pop edi
call fcn.1001b57a
leave
ret
Function at 0x10014c03
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x10014c3e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x10014c25
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x10014c36
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x10014c40
inc edi
add eax, 0x28
cmp edi, esi
jb 0x10014c1b
xor eax, eax
pop edi
pop esi
ret

Function at 0x10016053
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x725], 0x49
mov byte [ebp - 0x724], 0x48
mov byte [ebp - 0x723], 0x5c
mov byte [ebp - 0x722], 0x51
mov byte [ebp - 0x721], 0x6d
mov byte [ebp - 0x720], 0x4f
mov byte [ebp - 0x71f], 0x52
mov byte [ebp - 0x71e], 0x49
mov byte [ebp - 0x71d], 0x58
mov byte [ebp - 0x71c], 0x5e
mov byte [ebp - 0x71b], 0x49
mov byte [ebp - 0x71a], 0x3d
call fcn.10014bc3
js 0x1001606c
invalid
invalid
Function at 0x100172c0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 0xc]
push ebx
push esi
mov esi, dword [edx]
push edi
mov edi, dword [esp + 0x14]
mov ecx, esi
xor ecx, eax
and ecx, 0xff
shr esi, 8
mov ecx, dword [edi + ecx*4]
xor ecx, esi
mov esi, dword [edx + 4]
mov dword [edx], ecx
and ecx, 0xff
add ecx, esi
mov esi, dword [edx + 8]
imul ecx, ecx, 0x8088405
inc ecx
mov ebx, esi
mov dword [edx + 4], ecx
and ebx, 0xff
shr ecx, 0x18
xor ecx, ebx
shr esi, 8
mov ecx, dword [edi + ecx*4]
pop edi
xor ecx, esi
pop esi
mov dword [edx + 8], ecx
pop ebx
ret

Function at 0x100175d0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x4090]
test eax, eax
je 0x1001763b
mov eax, dword [esi + 0x6c]
test eax, eax
jbe 0x1001763b
mov eax, 0xffffff78
push ebx
push ebp
sub eax, esi
push edi
lea ebp, [esi + 0x4094]
lea edi, [esi + 0x88]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x40a0]
push eax
push ebp
call fcn.100172a0
mov edx, dword [esi + 0x40a0]
xor ecx, ecx
mov cl, byte [edi]
mov ebx, eax
push ecx
push edx
push ebp
call fcn.100172c0
mov al, byte [edi]
add esp, 0x14
xor al, bl
mov byte [edi], al
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x6c]
inc edi
add eax, edi
cmp eax, ecx
jb 0x10017600
pop edi
pop ebp
pop ebx
mov ecx, dword [esi + 0x6c]
mov eax, dword [esi + 0x20]
lea edx, [esi + 0x88]
push ecx
mov ecx, dword [esi + 0x1c]
push edx
push eax
push ecx
call dword [esi + 8]
mov ecx, dword [esi + 0x6c]
add esp, 0x10
cmp eax, ecx
je 0x10017667
mov dword [esi + 0x6c], 0
or eax, 0xffffffff
pop esi
ret
mov dword [esi + 0x6c], 0
xor eax, eax
pop esi
ret