joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10007f40
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bcc28
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x1010001c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
mov ebx, dword [ebp + 8]
test eax, eax
je 0x10007f83
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
push ecx
lea ecx, [ebp - 0x14]
mov word [edi + 4], 0
mov dword [ebp - 0x14], 0
call fcn.1000f130
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
cmp dword [esi], 0
je 0x10007fb0
lea eax, [esi + 8]
mov dword [ebp - 0x18], eax
jmp 0x10007fb7
mov dword [ebp - 0x18], 0
mov ecx, ebx
call fcn.10004080
test eax, eax
je 0x10007fcb
mov ecx, ebx
call fcn.100038a0
jmp 0x10007fcd
xor eax, eax
push eax
push 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ecx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
test eax, eax
jne 0x1000801e
call ecx
cmp eax, 5
jne 0x10008018
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, ebx
call fcn.10004080
test eax, eax
je 0x10008008
mov ecx, ebx
call fcn.100038a0
jmp 0x1000800a
xor eax, eax
push eax
push 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
mov ecx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [edi]
test eax, eax
je 0x1000803c
call ecx
cmp eax, 0xb7
jne 0x10008031
mov byte [edi + 5], 1
mov ecx, dword [edi]
call fcn.1000c850
mov eax, dword [edi]
test eax, eax
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x10008062
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x10008077
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.1008a52b
add esp, 8
mov dword [ebp - 0x14], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1008a187
mov esp, ebp
pop ebp
ret 4
Function at 0x100084d0
Capabilities:
Suspend thread
Terminate thread

Disassembly:
sub esp, 8
mov eax, dword [0x1010001c]
xor eax, esp
mov dword [esp + 4], eax
push esi
push ecx
push 0
push 0x43
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov esi, eax
test esi, esi
jne 0x10008502
xor al, al
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.1008a187
add esp, 8
ret
lea eax, [esp + 4]
mov dword [esp + 4], 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x1000855d
cmp dword [esp + 4], 0x103
jne 0x1000855d
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.RtlFreeUserThreadStack
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x10008553
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
pop edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 8]
mov al, 1
pop esi
xor ecx, esp
call fcn.1008a187
add esp, 8
ret

Function at 0x10008a50
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bcdc8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x1010001c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esi + 8]
test edi, edi
jne 0x10008a93
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
add edi, 0x20
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x10], edi
je 0x10008aaf
mov eax, dword [edi]
test eax, eax
je 0x10008aaf
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov eax, dword [esi + 8]
cmp dword [eax + 4], 0
je 0x10008b13
push 1
lea ebx, [esi + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov eax, dword [esi + 8]
add eax, 0xc
push eax
push 4
push esi
push 0x100085f0
push 0
push 0
call fcn.1008ec1d
mov ecx, dword [esi + 8]
add esp, 0x18
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 8]
cmp dword [eax + 0x10], 0
jne 0x10008b48
mov eax, dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push 0xffffffffffffffff
push ebx
call eax
sub eax, 1
jne 0x10008b0b
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esi + 8]
call fcn.100087c0
xor bl, bl
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x10008b34
mov eax, dword [edi]
test eax, eax
je 0x10008b2d
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x10], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [eax + 8], 1
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x10008b60
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esi + 8]
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x10008af5
mov bl, 1
jmp 0x10008b15
Function at 0x1000b190
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x1010001c]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push 1
mov esi, ecx
call fcn.1008a198
mov dword [esi], eax
push 0x118
push 0
mov byte [eax], 0
lea eax, [esp + 0x14]
push eax
call fcn.1008c730
add esp, 0x10
mov dword [esp + 4], 0x11c
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, esi
je 0x1000b1ec
cmp dword [esp + 8], 6
mov ecx, dword [esi]
setae dl
mov byte [ecx], dl
mov ecx, dword [esp + 0x120]
pop esi
xor ecx, esp
call fcn.1008a187
add esp, 0x120
ret
Function at 0x1000fb30
Capabilities:
Check os version
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x140
mov eax, dword [0x1010001c]
xor eax, esp
mov dword [esp + 0x13c], eax
push esi
mov esi, dword [esp + 0x148]
push 0x118
push 0
lea eax, [esi + 4]
push eax
call fcn.1008c730
add esp, 0xc
mov dword [esi], 0x11c
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1000fc77
cmp dword [esi + 4], 6
push edi
ja 0x1000fb8b
jne 0x1000fc13
cmp dword [esi + 8], 2
jb 0x1000fc13
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x1000fc13
push 0x10
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x1000fc13
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1000fc13
movups xmm0, xmmword [0x100e1f90]
push eax
movups xmmword [esp + 0x128], xmm0
movups xmm0, xmmword [0x100e1fa0]
movups xmmword [esp + 0x138], xmm0
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x1000fc13
lea eax, [esp + 0x124]
push eax
lea ecx, [edi + 6]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1000fc13
cmp word [edi + 2], ax
jbe 0x1000fc13
movzx edx, word [edi + 0x32]
movzx ecx, word [edi + 0x30]
movzx eax, word [edi + 0x36]
mov dword [esi + 4], edx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.RtlGetVersion
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x1000fc5e
push 0x118
lea eax, [esp + 0x10]
push 0
push eax
call fcn.1008c730
add esp, 0xc
mov dword [esp + 8], 0x11c
lea eax, [esp + 8]
push eax
call edi
test eax, eax
jne 0x1000fc5e
mov eax, dword [esp + 0x14]
mov dword [esi + 0xc], eax
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x13c]
xor ecx, esp
call fcn.1008a187
add esp, 0x140
ret
mov ecx, dword [esp + 0x140]
xor al, al
pop esi
xor ecx, esp
call fcn.1008a187
add esp, 0x140
ret
Function at 0x100118e0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [ecx]
test eax, eax
je 0x10011918
mov edx, dword [esp + 4]
test edx, edx
je 0x10011918
cmp dword [eax], 0xffffffff
je 0x10011918
mov eax, dword [esp + 0xc]
push 0
push eax
push dword [esp + 0x10]
mov dword [eax], 0
mov eax, dword [ecx]
push edx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10011918
mov al, 1
ret 0xc
xor al, al
ret 0xc

Function at 0x10011950
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x1010001c]
xor eax, esp
mov dword [esp + 4], eax
mov eax, dword [ecx]
push esi
push edi
mov edi, dword [esp + 0x14]
test eax, eax
je 0x100119b3
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x100119b3
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1001198e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x100119b3
mov eax, dword [esp + 8]
xor ecx, ecx
add ecx, esi
mov dword [edi], ecx
adc eax, 0
mov dword [edi + 4], eax
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.1008a187
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.1008a187
add esp, 8
ret 4

Function at 0x10011aa0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bddb8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x1010001c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov ebx, ecx
cmp esi, 0xffffffff
jne 0x10011ad7
xor al, al
jmp 0x10011b3a
and esi, 0xffffb1af
push esi
call fcn.100038a0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x10011af2
mov al, 1
jmp 0x10011b3a
lea ecx, [ebp - 0x28]
call fcn.10003a00
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, ebx
call fcn.100122d0
test al, al
je 0x10011b27
push esi
lea ecx, [ebp - 0x28]
call fcn.100038a0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x10011b27
mov bl, 1
jmp 0x10011b29
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10003910
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1008a187
mov esp, ebp
pop ebp
ret
Function at 0x10011b60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bddb8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x1010001c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.100038a0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10011bde
lea ecx, [ebp - 0x28]
call fcn.10003a00
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, ebx
call fcn.100122d0
test al, al
je 0x10011bcd
lea ecx, [ebp - 0x28]
call fcn.100038a0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10003910
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1008a187
mov esp, ebp
pop ebp
ret

Function at 0x10011e10
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bde00
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x1010001c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.100038a0
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call edi
test eax, eax
je 0x10011e56
mov al, 1
jmp 0x10011f4b
mov ecx, esi
call fcn.100038a0
push eax
lea ecx, [ebp - 0x28]
call fcn.100039b0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.10011b60
mov ebx, eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10003910
cmp ebx, 0xffffffff
jne 0x10011e95
xor al, al
jmp 0x10011f4b
mov ecx, esi
call fcn.100038a0
push eax
lea ecx, [ebp - 0x28]
call fcn.100039b0
mov dword [ebp - 4], 1
xor edx, edx
lea ecx, [ebp - 0x28]
call fcn.10011aa0
mov bl, al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10003910
test bl, bl
je 0x10011e8e
mov ecx, esi
call fcn.100038a0
push eax
call edi
test eax, eax
jne 0x10011e4f
lea ecx, [ebp - 0x28]
call fcn.10003a00
mov dword [ebp - 4], 2
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.100122d0
test al, al
je 0x10011f0d
lea ecx, [ebp - 0x28]
call fcn.100038a0
push eax
call edi
test eax, eax
je 0x10011f0d
mov bl, 1
jmp 0x10011f3a
mov ecx, esi
call fcn.100038a0
push eax
lea ecx, [ebp - 0x44]
call fcn.100039b0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x44]
mov edx, dword [ebp - 0x2c]
call fcn.10011aa0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x44]
call fcn.10003910
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10003910
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1008a187
mov esp, ebp
pop ebp
ret
Function at 0x10011f70
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x1010001c]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
mov ebx, dword [esp + 0x218]
lea eax, [esp + 4]
push esi
push edi
push 0x20c
push 0
push eax
mov esi, edx
mov edi, ecx
call fcn.1008c730
add esp, 0xc
lea eax, [esp + 0xc]
mov ecx, esi
push eax
push 0
call fcn.100038a0
push eax
mov ecx, edi
call fcn.100038a0
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x10012005
xor eax, eax
mov word [esp + 0x216], ax
lea eax, [esp + 0xc]
push eax
call fcn.10003bf0
add esp, 4
mov ecx, ebx
push eax
lea eax, [esp + 0x10]
push eax
call fcn.10003a30
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.1008a187
add esp, 0x210
ret
mov ecx, dword [esp + 0x218]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1008a187
add esp, 0x210
ret

Function at 0x10012180
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bde88
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x1010001c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov edi, ecx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x50]
mov esi, dword [ebp + 0xc]
cdq
push edx
push eax
call fcn.10008e10
push edi
call fcn.10003f00
add esp, 0xc
cmp esi, eax
je 0x100121e9
mov ecx, edi
call fcn.10003a20
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x100121de
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, esi
call fcn.10003a30
push 0x100e2048
call fcn.10003bf0
add esp, 4
mov ecx, esi
push eax
push 0x100e2048
call fcn.10004120
lea eax, [ebp - 0x50]
push eax
call fcn.10003bf0
add esp, 4
mov ecx, esi
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.10004120
push 0x100e204c
call fcn.10003bf0
add esp, 4
mov ecx, esi
push eax
push 0x100e204c
call fcn.10004120
mov ecx, ebx
call fcn.10003a20
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x10012246
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, esi
call fcn.10004120
mov ecx, esi
call fcn.100038a0
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call ebx
mov edi, eax
cmp edi, 0xffffffff
jne 0x100122a4
lea ecx, [ebp - 0x68]
call fcn.10003a00
mov dword [ebp - 4], 0
lea edx, [ebp - 0x68]
mov ecx, esi
call fcn.100122d0
test al, al
je 0x10012292
lea ecx, [ebp - 0x68]
call fcn.100038a0
push eax
call ebx
mov edi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.10003910
cmp edi, 0xffffffff
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1008a187
mov esp, ebp
pop ebp
ret
Function at 0x100123b0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bdec6
mov eax, dword fs:[0]
push eax
sub esp, 0x82c
mov eax, dword [0x1010001c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x820], ecx
lea eax, [ebp - 0x810]
push eax
push 0x3fe
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov ebx, eax
mov dword [ebp - 0x814], ebx
test ebx, ebx
je 0x10012490
lea edx, [ebp - 0x810]
mov dword [ebp - 0x81c], 0
xor esi, esi
mov dword [ebp - 0x818], edx
mov dword [ebp - 0x81c], esi
mov dword [ebp - 4], esi
cmp ebx, 0x3fe
jbe 0x100124ae
xor ecx, ecx
lea eax, [ebx + 2]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1008aa7c
add esp, 4
mov edi, eax
mov esi, edi
mov dword [ebp - 0x818], edi
mov dword [ebp - 0x81c], esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x1001247c
cmp eax, ebx
ja 0x1001247c
mov edx, esi
xor ecx, ecx
mov ebx, eax
mov dword [ebp - 0x814], ebx
mov dword [edx + eax*2], ecx
jmp 0x100124dc
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x10012490
push edi
call fcn.1008a87c
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1008a187
mov esp, ebp
pop ebp
ret
lea eax, [ebx + ebx]
cmp eax, 0x800
jae 0x100125ae
xor ecx, ecx
mov word [ebp + eax - 0x810], cx
add eax, 2
cmp eax, 0x800
jae 0x100125ae
mov word [ebp + eax - 0x810], cx
xor ecx, ecx
xor edi, edi
test ebx, ebx
je 0x10012593
mov eax, dword [ebp - 0x814]
mov ebx, 2
mov esi, dword [ebp - 0x820]
nop dword [eax]
cmp word [edx + ebx - 2], 0
jne 0x10012581
cmp ecx, edi
je 0x10012581
lea eax, [edx + ecx*2]
push eax
lea ecx, [ebp - 0x838]
call fcn.100039b0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x838]
push eax
call fcn.10003f00
mov ecx, dword [esi + 4]
add esp, 4
mov dword [ebp - 0x820], eax
cmp dword [esi + 8], ecx
je 0x1001255a
push ecx
push 0x18
call fcn.100021e0
add esp, 8
mov ecx, eax
push dword [ebp - 0x820]
call fcn.100040e0
add dword [esi + 4], 0x18
jmp 0x10012563
push eax
push ecx
mov ecx, esi
call fcn.10004f60
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x838]
call fcn.10003910
mov eax, dword [ebp - 0x814]
lea ecx, [edi + 1]
mov edx, dword [ebp - 0x818]
inc edi
add ebx, 2
cmp edi, eax
jb 0x10012500
mov esi, dword [ebp - 0x81c]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x100125a7
push esi
call fcn.1008a87c
add esp, 4
mov al, 1
jmp 0x10012492
call fcn.1008a9a2
int3

Function at 0x10013060
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x48
mov eax, dword [0x1010001c]
xor eax, esp
mov dword [esp + 0x44], eax
lea eax, [esp]
mov dword [esp], 0x40
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
jne 0x10013098
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.1008a187
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
shrd eax, ecx, 0x14
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.1008a187
mov esp, ebp
pop ebp
ret
Function at 0x10015870
Capabilities:
Get session user name
List user accounts for group

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100be2eb
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x1010001c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x114], 0
call fcn.1000b190
lea ecx, [ebp - 0x114]
mov dword [ebp - 4], 0
call fcn.1000ba90
push 0x100
lea eax, [ebp - 0x110]
xor bl, bl
push 0
push eax
call fcn.1008c730
add esp, 0xc
mov dword [ebp - 0x11c], 0x7f
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x100159d7
cmp word [ebp - 0x110], 0
je 0x100159d7
lea eax, [ebp - 0x120]
mov dword [ebp - 0x128], 0
push eax
lea eax, [ebp - 0x124]
mov dword [ebp - 0x118], 0
push eax
lea eax, [ebp - 0x118]
mov dword [ebp - 0x124], 0
push eax
push 0x400
lea eax, [ebp - 0x128]
mov dword [ebp - 0x120], 0
push eax
push 1
push str.Administrators
push 0
call dword [sym.imp.NETAPI32.dll_NetLocalGroupGetMembers]
test eax, eax
je 0x10015974
cmp eax, 0xea
jne 0x100159d7
mov edi, dword [ebp - 0x118]
test edi, edi
je 0x100159d7
mov esi, dword [ebp - 0x128]
add esi, 8
nop word [eax + eax]
mov ecx, dword [esi]
lea eax, [ebp - 0x110]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x100159be
test dx, dx
je 0x100159ba
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x100159be
add ecx, 4
add eax, 4
test dx, dx
jne 0x10015998
xor eax, eax
jmp 0x100159c3
sbb eax, eax
or eax, 1
test eax, eax
movzx ebx, bl
mov eax, 1
cmove ebx, eax
add esi, 0xc
sub edi, eax
jne 0x10015990
lea ecx, [ebp - 0x114]
call fcn.1000bd90
lea ecx, [ebp - 0x114]
mov dword [ebp - 4], 0xffffffff
call fcn.1000b210
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1008a187
mov esp, ebp
pop ebp
ret
Function at 0x10016580
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1010001c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
call dword [sym.imp.SensApi.dll_IsNetworkAlive]
test eax, eax
je 0x100165aa
mov bl, 1
jmp 0x100165b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
setne bl
push dword [ebp - 8]
push str.IsNetworkAlive:__d._n
call fcn.100126b0
add esp, 8
test bl, bl
je 0x100165eb
push 0
lea eax, [ebp - 8]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
push dword [ebp - 8]
cmp eax, 1
push str.InternetGetConnectedState:__d._n
sete bl
call fcn.100126b0
add esp, 8
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.1008a187
mov esp, ebp
pop ebp
ret

Function at 0x10016600
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1010001c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x12c
call fcn.10016580
mov bl, al
test bl, bl
jne 0x1001669c
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
nop dword [eax]
mov eax, esi
dec esi
test eax, eax
js 0x1001669c
push 0x3e8
call edi
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
call dword [sym.imp.SensApi.dll_IsNetworkAlive]
test eax, eax
je 0x10016657
mov bl, 1
jmp 0x10016662
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
setne bl
push dword [ebp - 8]
push str.IsNetworkAlive:__d._n
call fcn.100126b0
add esp, 8
test bl, bl
je 0x10016630
push 0
lea eax, [ebp - 8]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
push dword [ebp - 8]
cmp eax, 1
push str.InternetGetConnectedState:__d._n
sete bl
call fcn.100126b0
add esp, 8
test bl, bl
je 0x10016630
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1008a187
mov esp, ebp
pop ebp
ret
Function at 0x1001a430
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push esi
push edi
mov edi, edx
mov esi, ecx
push edi
call fcn.10006ad0
add esp, 4
test al, al
je 0x1001a45c
cmp dword [edi + 0x14], 8
jb 0x1001a451
mov edi, dword [edi]
push 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push esi
call fcn.10006940
add esp, 4
test al, al
je 0x1001a47c
cmp dword [esi + 0x14], 8
jb 0x1001a471
mov esi, dword [esi]
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop edi
pop esi
mov esp, ebp
pop ebp
ret