joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000db30
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
push ebx
push esi
push edi
xor esi, esi
push 0x40c
lea eax, [ebp - 0x42c]
push esi
push eax
mov dword [ebp - 0x430], esi
call sub.ntdll.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x430]
push ecx
push 0x104
mov dword [ebp - 0x20], str.AppEvents
mov dword [ebp - 0x1c], str.Console
mov dword [ebp - 0x18], str.Control_Panel
mov dword [ebp - 0x14], str.Environment
mov dword [ebp - 0x10], str.Identities
mov dword [ebp - 0xc], str.Software
mov dword [ebp - 8], str.System
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov edi, eax
shr edi, 2
cmp edi, esi
je 0x1000dc81
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 ebx, dword [sym.imp.KERNEL32.dll_lstrcpynA]
cmp dword [ebp - 0x430], esi
je 0x1000dc17
lea eax, [ebp - 0x430]
push 5
push eax
push 0x1005a8ec
call ebx
push 0x1005a8ec
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
jne 0x1000dc05
mov eax, 0x1005a8ec
mov dword [0x1005a8f8], 0
call fcn.1000d9f0
inc esi
cmp dword [ebp + esi*4 - 0x430], 0
lea eax, [ebp + esi*4 - 0x430]
jne 0x1000dbd7
test edi, edi
jle 0x1000dc81
lea esi, [ebp + edi*4 - 0x430]
cmp dword [esi], 0
je 0x1000dc79
push 5
push esi
push 0x1005a8ec
call ebx
push 0x1005a8ec
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x1000dc79
mov eax, 0x1005a8ec
mov dword [0x1005a8f8], 0
call fcn.1000d9f0
movsx edx, byte [0x1005a8ec]
sub edx, 0x43
mov eax, 0x1005a8ec
mov dword [0x1005a8f4], edx
mov dword [0x1005a8f8], 1
call fcn.1000d9f0
dec edi
sub esi, 4
test edi, edi
jg 0x1000dc22
xor esi, esi
mov eax, str.AppEvents
jmp 0x1000dc90
push eax
push 0x80000001
call fcn.1001faf0
mov eax, dword [ebp + esi*4 - 0x1c]
inc esi
test eax, eax
jne 0x1000dc90
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000dcb0
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 0x1000dd27
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 0x1000dd1c
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 0x10056be8
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 0x1000dd7f
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 0x1000dd76
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 0x10056be8
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 0x1000dd90
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
neg eax
sbb esi, esi
neg esi
add esi, 0x80000001
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 0x102
push 0
push str.softwaremicrosoft
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
pop esi
test eax, eax
jne 0x1000ddfa
mov edx, dword [ebp - 4]
push 4
lea ecx, [ebp - 8]
push ecx
push 4
push eax
push 0x10056be8
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
Function at 0x1000de00
Capabilities:
Delete file
Get common file path
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x103
mov edi, eax
xor esi, esi
lea eax, [ebp - 0x217]
push esi
push eax
mov byte [ebp - 0x218], 0
call sub.ntdll.dll_memset
add esp, 0xc
push 0x103
lea ecx, [ebp - 0x10f]
push esi
push ecx
mov byte [ebp - 0x110], 0
call sub.ntdll.dll_memset
add esp, 0xc
lea edx, [ebp - 0x218]
push edx
push 0x104
mov dword [ebp + 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x110]
push eax
push esi
push esi
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
call fcn.1000f0c0
push 1
push 0
push edi
push ebx
lea edx, [ebp - 0x110]
push edx
push str._topic.php
mov esi, eax
push esi
push 0
call fcn.1000f160
test eax, eax
jne 0x1000debf
push 1
push eax
push edi
push ebx
lea eax, [ebp - 0x110]
push eax
push str._topic.php
push esi
push 1
call fcn.1000f160
test eax, eax
je 0x1000df63
push 0
lea ecx, [ebp - 4]
push ecx
lea eax, [ebp - 0x110]
call fcn.100070d0
mov esi, eax
test esi, esi
je 0x1000df63
push 0
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [ebp - 4], 3
jb 0x1000df32
movzx eax, byte [esi]
sub eax, 0x21
jne 0x1000df21
movzx eax, byte [esi + 1]
sub eax, 0x6f
jne 0x1000df21
movzx eax, byte [esi + 2]
sub eax, 0x6b
jne 0x1000df21
xor ecx, ecx
test eax, eax
sete cl
mov edi, ecx
jmp 0x1000df35
sar eax, 0x1f
xor ecx, ecx
or eax, 1
test eax, eax
sete cl
mov edi, ecx
jmp 0x1000df35
mov edi, dword [ebp + 8]
mov edx, dword [0x10054278]
push esi
push 0
push edx
call dword [sym.imp.KERNEL32.dll_HeapValidate]
test eax, eax
je 0x1000df58
mov eax, dword [0x10054278]
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1000ece0
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.ntdll.dll_memset
add esp, 0xc
test esi, esi
je 0x1000ee18
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 0x1000ee0a
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 0x1000ee0a
lea eax, [ebp - 0x110]
xor edx, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000ed73
sub eax, esi
je 0x1000edad
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 0x1000eda0
sub eax, esi
cmp edx, eax
jb 0x1000ed80
lea eax, [ebp - 0x110]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000edb6
sub eax, edx
xor esi, esi
add eax, 2
je 0x1000edee
mov edx, dword [0x10054278]
lea edi, [eax + 0x13]
and edi, 0xfffffff0
push edi
push 8
push edx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x1000edee
push edi
push 0
push esi
call sub.ntdll.dll_memset
add esp, 0xc
mov edi, esi
test esi, esi
je 0x1000ee0a
lea eax, [ebp - 0x110]
mov ecx, eax
sub esi, ecx
mov edi, edi
mov cl, byte [eax]
mov byte [esi + eax], cl
inc eax
test cl, cl
jne 0x1000ee00
mov eax, dword [ebp - 4]
test eax, eax
je 0x1000ee18
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 0x1000ee30
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push esi
push 0x103
mov esi, eax
lea eax, [ebp - 0x10f]
push 0
push eax
mov byte [ebp - 0x110], 0
call sub.ntdll.dll_memset
xor eax, eax
add esp, 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 8], eax
test esi, esi
je 0x1000ef3c
test edi, edi
je 0x1000ef3c
push 0x104
push esi
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [ebp - 0x110]
xor edx, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000ee93
sub eax, esi
je 0x1000eecd
mov edi, edi
mov al, byte [ebp + edx - 0x110]
not al
mov byte [ebp + edx - 0x110], al
lea eax, [ebp - 0x110]
inc edx
lea esi, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000eec0
sub eax, esi
cmp edx, eax
jb 0x1000eea0
mov edx, dword [ebp + 8]
lea ecx, [ebp - 4]
push ecx
push 0x102
push 0
push str.softwaremicrosoft
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000ef29
lea eax, [ebp - 0x110]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000eef4
mov ecx, dword [ebp - 4]
sub eax, edx
push eax
lea eax, [ebp - 0x110]
push eax
push 1
push 0
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x1000ef29
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov esi, 1
jmp 0x1000ef2c
mov esi, dword [ebp - 8]
mov eax, dword [ebp - 4]
test eax, eax
je 0x1000ef3a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x1000ef50
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 0x1000f09d
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.ntdll.dll_memset
mov esi, dword [ebp + 8]
add esp, 0xc
test esi, esi
je 0x1000f098
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 0x1000f08a
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 0x1000f08a
lea eax, [ebp - 0x114]
xor edx, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000eff3
sub eax, esi
je 0x1000f02d
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 0x1000f020
sub eax, esi
cmp edx, eax
jb 0x1000f000
lea eax, [ebp - 0x114]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000f036
sub eax, edx
xor esi, esi
add eax, 2
je 0x1000f06e
mov ecx, dword [0x10054278]
lea edi, [eax + 0x13]
and edi, 0xfffffff0
push edi
push 8
push ecx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x1000f06e
push edi
push 0
push esi
call sub.ntdll.dll_memset
add esp, 0xc
mov edi, esi
test esi, esi
je 0x1000f08a
lea eax, [ebp - 0x114]
mov edx, eax
sub esi, edx
mov edi, edi
mov cl, byte [eax]
mov byte [esi + eax], cl
inc eax
test cl, cl
jne 0x1000f080
mov eax, dword [ebp - 4]
test eax, eax
je 0x1000f098
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
test edi, edi
jne 0x1000f0b1
mov eax, dword [ebp + 8]
push 0x80000002
call fcn.1000ece0
pop edi
mov esp, ebp
pop ebp
ret 4
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret 4

Function at 0x1000f0c0
Capabilities:
Resolve dns

Disassembly:
push ecx
push esi
push edi
call fcn.10006d00
mov esi, dword [0x10055a64]
mov edi, eax
test edi, edi
je 0x1000f134
test esi, esi
je 0x1000f12c
mov ecx, edi
mov eax, esi
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1000f100
test dl, dl
je 0x1000f0fc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1000f100
add eax, 2
add ecx, 2
test dl, dl
jne 0x1000f0e0
xor eax, eax
jmp 0x1000f105
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1000f134
mov eax, dword [0x10054278]
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapValidate]
test eax, eax
je 0x1000f12c
mov ecx, dword [0x10054278]
push esi
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, edi
mov dword [0x10055a64], esi
call dword [sym.imp.DNSAPI.dll_DnsFlushResolverCache]
test esi, esi
je 0x1000f150
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x1000f150
push 1
call fcn.10006e70
pop edi
mov eax, esi
pop esi
pop ecx
ret
Function at 0x1000f5d0
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
mov dword [ebp - 4], esi
call dword [sym.imp.SensApi.dll_IsNetworkAlive]
test eax, eax
je 0x1000f6c7
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x1000f601
call dword [sym.imp.DNSAPI.dll_DnsFlushResolverCache]
push ebx
push edi
push 0x103
lea ecx, [ebp - 0x107]
push 0
push ecx
mov byte [ebp - 0x108], 0
call sub.ntdll.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpynA]
add esp, 0xc
push 0x104
push str.http:__
lea edx, [ebp - 0x108]
push edx
call esi
mov edi, dword [sym.imp.SHLWAPI.dll_StrNCatA]
push 0x104
push str.www.bing.com
lea eax, [ebp - 0x108]
push eax
call edi
mov ebx, dword [sym.imp.WININET.dll_InternetCheckConnectionA]
push 0
push 1
lea ecx, [ebp - 0x108]
push ecx
call ebx
test eax, eax
jne 0x1000f6bb
push 0x103
push eax
lea edx, [ebp - 0x107]
push edx
mov byte [ebp - 0x108], al
call sub.ntdll.dll_memset
add esp, 0xc
push 0x104
push str.http:__
lea eax, [ebp - 0x108]
push eax
call esi
push 0x104
push str.www.microsoft.com
lea ecx, [ebp - 0x108]
push ecx
call edi
push 0
push 1
lea edx, [ebp - 0x108]
push edx
call ebx
test eax, eax
je 0x1000f6ce
pop edi
pop ebx
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100100f0
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 0x1001016a
call fcn.100039b0
test eax, eax
mov eax, 0x10058448
jne 0x10010147
mov eax, 0x10058344
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 0x10010184
call fcn.100039b0
neg eax
sbb eax, eax
and eax, 0x960
add eax, 0x12c
mov esp, ebp
pop ebp
ret
Function at 0x100121c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
push 0
push 0
push 0x10011500
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x10012203
lea eax, [ebp - 4]
push eax
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x10012203
test byte [ebp - 4], 2
jne 0x10012203
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
call dword [sym.imp.KERNEL32.dll_ExitThread]

Function at 0x10012770
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x10012490
push 0
push 0
mov dword [0x10056088], 1
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetHandleInformation]
mov esi, eax
test esi, esi
je 0x100127c3
lea eax, [ebp - 4]
push eax
push esi
mov dword [ebp - 4], 0
call ebx
test eax, eax
je 0x100127c3
test byte [ebp - 4], 2
jne 0x100127c3
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
push 0
push 0x100125f0
push 0
push 0
call edi
push 0
push 0
push 0
push 0x100126e0
push 0
push 0
mov dword [0x1005608c], eax
call edi
mov esi, eax
test esi, esi
je 0x1001280f
lea ecx, [ebp - 4]
push ecx
push esi
mov dword [ebp - 4], 0
call ebx
test eax, eax
je 0x1001280f
test byte [ebp - 4], 2
jne 0x1001280f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10012820
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, dword [ebp + 0xc]
test edx, edx
jle 0x100128b3
mov ecx, dword [ebp + 8]
push ebx
sub ecx, esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
jmp 0x10012844
mov ecx, dword [ebp - 0xc]
movzx ecx, byte [ecx + esi]
mov byte [ebp - 1], cl
mov cl, byte [eax + 0x100]
movzx edi, cl
movzx edx, byte [edi + eax]
add edi, eax
mov byte [ebp + 0xf], dl
mov dl, byte [eax + 0x101]
add dl, byte [ebp + 0xf]
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 + 0xb], bl
movzx ebx, byte [ebp + 0xf]
mov byte [edi], bl
movzx ebx, byte [ebp + 0xf]
movzx edi, byte [ebp + 0xb]
add edi, ebx
mov bl, byte [ebp - 1]
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 0x10012841
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x100128e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
cmp dword [esi + 0x34], 0
je 0x100129b7
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 0x1001292b
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 0x10012952
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 0x100129b6
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 0x100129c0
Capabilities:
Write file on windows

Disassembly:
cmp dword [esi + 0x2c], 0
je 0x10012a00
mov eax, dword [esi + 0x28]
cmp eax, 0xffffffff
jle 0x10012a00
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 0x10012e00
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 0x10012e16
call fcn.100128e0
cmp dword [esi + 0x2c], 0
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
mov ebx, dword [sym.imp.MSVCRT.dll_fwrite]
je 0x10012e5a
mov eax, dword [esi + 0x28]
cmp eax, 0xffffffff
jle 0x10012e5a
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 0x10012f14
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 0x10012e9b
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 0x10012eba
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 0x10012ed9
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 0x10012ef8
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 0x10012f47
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 [0x100560c0]
add esp, 0xc
cmp eax, ebx
je 0x10012f74
push eax
call edi
add esp, 4
mov dword [0x100560c0], ebx
mov dword [0x100560bc], ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10012f80
Capabilities:
Read file on windows

Disassembly:
push esi
push edi
mov edi, eax
mov esi, ecx
test edi, edi
js 0x10013082
cmp edi, dword [esi + 4]
jge 0x10013082
cmp dword [esi + 0x10], 2
jle 0x10013082
cmp dword [esi + 0x28], edi
je 0x10012fed
call fcn.100129c0
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 0x10013082
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 0x10013082
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 [0x100560bc]
jle 0x1001301a
lea ecx, [eax + eax + 0xa]
mov eax, dword [0x100560c0]
mov dword [0x100560bc], ecx
call fcn.100128c0
mov dword [0x100560c0], 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 [0x100560c0]
add eax, edi
push eax
push ecx
call dword [sym.imp.ntdll.dll_strncpy]
mov edx, dword [esi + 0x18]
mov eax, dword [0x100560c0]
mov ecx, dword [edx + 8]
mov byte [eax + ecx], 0
add esp, 0xc
cmp byte [eax], 0x20
mov esi, eax
mov ecx, eax
jne 0x10013058
inc esi
cmp byte [esi], 0x20
je 0x10013052
mov dl, byte [esi]
test dl, dl
je 0x1001306b
sub esi, eax
mov byte [ecx], dl
mov dl, byte [esi + ecx + 1]
inc ecx
test dl, dl
jne 0x10013060
mov byte [ecx], 0
cmp ecx, eax
je 0x10013084
dec ecx
cmp byte [ecx], 0x20
jne 0x10013084
mov byte [ecx], 0
cmp ecx, eax
jne 0x10013072
pop edi
pop esi
ret
xor eax, eax
pop edi
pop esi
ret