joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10014d30
Capabilities:
Suspend thread
Terminate thread

Disassembly:
sub esp, 8
mov eax, dword [0x1010d03c]
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 0x10014d62
xor al, al
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.10093f25
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 0x10014dbd
cmp dword [esp + 4], 0x103
jne 0x10014dbd
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 0x10014db3
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.10093f25
add esp, 8
ret

Function at 0x10015240
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c7a08
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x1010d03c]
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 0x10015283
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 0x1001529f
mov eax, dword [edi]
test eax, eax
je 0x1001529f
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 0x10015303
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 0x10014de0
push 0
push 0
call fcn.1009deae
mov ecx, dword [esi + 8]
add esp, 0x18
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 8]
cmp dword [eax + 0x10], 0
jne 0x10015338
mov eax, dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push 0xffffffffffffffff
push ebx
call eax
sub eax, 1
jne 0x100152fb
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esi + 8]
call fcn.10014fb0
xor bl, bl
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x10015324
mov eax, dword [edi]
test eax, eax
je 0x1001531d
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 0x10015350
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 0x100152e5
mov bl, 1
jmp 0x10015305
Function at 0x10019430
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x1010d03c]
xor eax, esp
mov dword [esp + 0x114], eax
push esi
mov esi, ecx
mov dword [esp + 4], 0x114
push 0x110
lea eax, [esp + 0xc]
push 0
push eax
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov byte [esi], 0
call fcn.10096b80
add esp, 0xc
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, esi
je 0x100194c7
cmp dword [esp + 8], 6
jb 0x100194c7
mov byte [esi], 1
mov ecx, dword [esp + 0x118]
pop esi
xor ecx, esp
call fcn.10093f25
add esp, 0x118
ret

Function at 0x100194e0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c80b0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x1010d03c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push str.wintrust.dll
lea ecx, [ebp - 0x28]
call fcn.10004900
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
call fcn.1001ad80
mov ecx, eax
call fcn.1001ae40
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.100048a0
push str.crypt32.dll
lea ecx, [ebp - 0x40]
call fcn.10004900
mov dword [ebp - 4], 1
lea eax, [ebp - 0x40]
push eax
call fcn.1001ad80
mov ecx, eax
call fcn.1001ae40
mov esi, eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.100048a0
test ebx, ebx
je 0x100195f5
test esi, esi
je 0x100195f5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptCATAdminCalcHashFromFileHandle
push ebx
call esi
push str.CryptCATAdminAcquireContext
push ebx
mov dword [edi + 4], eax
call esi
push str.CryptCATAdminEnumCatalogFromHash
push ebx
mov dword [edi + 8], eax
call esi
push str.CryptCATCatalogInfoFromContext
push ebx
mov dword [edi + 0xc], eax
call esi
push str.CryptCATAdminReleaseCatalogContext
push ebx
mov dword [edi + 0x10], eax
call esi
push str.CryptCATAdminReleaseContext
push ebx
mov dword [edi + 0x14], eax
call esi
push str.WTHelperProvDataFromStateData
push ebx
mov dword [edi + 0x18], eax
call esi
push str.WTHelperGetProvSignerFromChain
push ebx
mov dword [edi + 0x1c], eax
call esi
push str.WinVerifyTrust
push ebx
mov dword [edi + 0x20], eax
call esi
push str.CertNameToStrW
push dword [ebp - 0x10]
mov dword [edi + 0x24], eax
call esi
mov dword [edi + 0x28], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1001c860
Capabilities:
Check os version
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x140
mov eax, dword [0x1010d03c]
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.10096b80
add esp, 0xc
mov dword [esi], 0x11c
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1001c9a7
cmp dword [esi + 4], 6
push edi
ja 0x1001c8bb
jne 0x1001c943
cmp dword [esi + 8], 2
jb 0x1001c943
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x1001c943
push 0x10
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x1001c943
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1001c943
movups xmm0, xmmword [0x100ede80]
push eax
movups xmmword [esp + 0x128], xmm0
movups xmm0, xmmword [0x100ede90]
movups xmmword [esp + 0x138], xmm0
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x1001c943
lea eax, [esp + 0x124]
push eax
lea ecx, [edi + 6]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1001c943
cmp word [edi + 2], ax
jbe 0x1001c943
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 0x1001c98e
push 0x118
lea eax, [esp + 0x10]
push 0
push eax
call fcn.10096b80
add esp, 0xc
mov dword [esp + 8], 0x11c
lea eax, [esp + 8]
push eax
call edi
test eax, eax
jne 0x1001c98e
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.10093f25
add esp, 0x140
ret
mov ecx, dword [esp + 0x140]
xor al, al
pop esi
xor ecx, esp
call fcn.10093f25
add esp, 0x140
ret
Function at 0x1001fcd0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [ecx]
test eax, eax
je 0x1001fd08
mov edx, dword [esp + 4]
test edx, edx
je 0x1001fd08
cmp dword [eax], 0xffffffff
je 0x1001fd08
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 0x1001fd08
mov al, 1
ret 0xc
xor al, al
ret 0xc

Function at 0x1001fd40
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x1010d03c]
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 0x1001fda3
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x1001fda3
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1001fd7e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1001fda3
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.10093f25
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.10093f25
add esp, 8
ret 4

Function at 0x1001fe90
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c8ca8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x1010d03c]
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 0x1001fec7
xor al, al
jmp 0x1001ff2a
and esi, 0xffffb1af
push esi
call fcn.10004ac0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x1001fee2
mov al, 1
jmp 0x1001ff2a
lea ecx, [ebp - 0x28]
call fcn.10004950
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, ebx
call fcn.100206c0
test al, al
je 0x1001ff17
push esi
lea ecx, [ebp - 0x28]
call fcn.10004ac0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x1001ff17
mov bl, 1
jmp 0x1001ff19
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.100048a0
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.10093f25
mov esp, ebp
pop ebp
ret
Function at 0x1001ff50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c8ca8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x1010d03c]
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.10004ac0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1001ffce
lea ecx, [ebp - 0x28]
call fcn.10004950
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, ebx
call fcn.100206c0
test al, al
je 0x1001ffbd
lea ecx, [ebp - 0x28]
call fcn.10004ac0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.100048a0
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.10093f25
mov esp, ebp
pop ebp
ret

Function at 0x10020200
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c8cf0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x1010d03c]
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.10004ac0
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call edi
test eax, eax
je 0x10020246
mov al, 1
jmp 0x1002033b
mov ecx, esi
call fcn.10004ac0
push eax
lea ecx, [ebp - 0x28]
call fcn.10004900
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.1001ff50
mov ebx, eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.100048a0
cmp ebx, 0xffffffff
jne 0x10020285
xor al, al
jmp 0x1002033b
mov ecx, esi
call fcn.10004ac0
push eax
lea ecx, [ebp - 0x28]
call fcn.10004900
mov dword [ebp - 4], 1
xor edx, edx
lea ecx, [ebp - 0x28]
call fcn.1001fe90
mov bl, al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.100048a0
test bl, bl
je 0x1002027e
mov ecx, esi
call fcn.10004ac0
push eax
call edi
test eax, eax
jne 0x1002023f
lea ecx, [ebp - 0x28]
call fcn.10004950
mov dword [ebp - 4], 2
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.100206c0
test al, al
je 0x100202fd
lea ecx, [ebp - 0x28]
call fcn.10004ac0
push eax
call edi
test eax, eax
je 0x100202fd
mov bl, 1
jmp 0x1002032a
mov ecx, esi
call fcn.10004ac0
push eax
lea ecx, [ebp - 0x44]
call fcn.10004900
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x44]
mov edx, dword [ebp - 0x2c]
call fcn.1001fe90
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x44]
call fcn.100048a0
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.100048a0
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.10093f25
mov esp, ebp
pop ebp
ret
Function at 0x10020360
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x1010d03c]
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.10096b80
add esp, 0xc
lea eax, [esp + 0xc]
mov ecx, esi
push eax
push 0
call fcn.10004ac0
push eax
mov ecx, edi
call fcn.10004ac0
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x100203f5
xor eax, eax
mov word [esp + 0x216], ax
lea eax, [esp + 0xc]
push eax
call fcn.10004cb0
add esp, 4
mov ecx, ebx
push eax
lea eax, [esp + 0x10]
push eax
call fcn.10004af0
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.10093f25
add esp, 0x210
ret
mov ecx, dword [esp + 0x218]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10093f25
add esp, 0x210
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c8d78
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x1010d03c]
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.1000c750
push edi
call fcn.10005450
add esp, 0xc
cmp esi, eax
je 0x100205d9
mov ecx, edi
call fcn.10004ad0
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x100205ce
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, esi
call fcn.10004af0
push 0x100ee0e8
call fcn.10004cb0
add esp, 4
mov ecx, esi
push eax
push 0x100ee0e8
call fcn.10005970
lea eax, [ebp - 0x50]
push eax
call fcn.10004cb0
add esp, 4
mov ecx, esi
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.10005970
push 0x100ee0ec
call fcn.10004cb0
add esp, 4
mov ecx, esi
push eax
push 0x100ee0ec
call fcn.10005970
mov ecx, ebx
call fcn.10004ad0
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x10020636
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, esi
call fcn.10005970
mov ecx, esi
call fcn.10004ac0
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call ebx
mov edi, eax
cmp edi, 0xffffffff
jne 0x10020694
lea ecx, [ebp - 0x68]
call fcn.10004950
mov dword [ebp - 4], 0
lea edx, [ebp - 0x68]
mov ecx, esi
call fcn.100206c0
test al, al
je 0x10020682
lea ecx, [ebp - 0x68]
call fcn.10004ac0
push eax
call ebx
mov edi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.100048a0
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.10093f25
mov esp, ebp
pop ebp
ret
Function at 0x100207a0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c8db6
mov eax, dword fs:[0]
push eax
sub esp, 0x82c
mov eax, dword [0x1010d03c]
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 0x10020880
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 0x1002089e
xor ecx, ecx
lea eax, [ebx + 2]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10094456
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 0x1002086c
cmp eax, ebx
ja 0x1002086c
mov edx, esi
xor ecx, ecx
mov ebx, eax
mov dword [ebp - 0x814], ebx
mov dword [edx + eax*2], ecx
jmp 0x100208cc
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x10020880
push edi
call fcn.10093f36
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.10093f25
mov esp, ebp
pop ebp
ret
lea eax, [ebx + ebx]
cmp eax, 0x800
jae 0x1002099e
xor ecx, ecx
mov word [ebp + eax - 0x810], cx
add eax, 2
cmp eax, 0x800
jae 0x1002099e
mov word [ebp + eax - 0x810], cx
xor ecx, ecx
xor edi, edi
test ebx, ebx
je 0x10020983
mov eax, dword [ebp - 0x814]
mov ebx, 2
mov esi, dword [ebp - 0x820]
nop dword [eax]
cmp word [edx + ebx - 2], 0
jne 0x10020971
cmp ecx, edi
je 0x10020971
lea eax, [edx + ecx*2]
push eax
lea ecx, [ebp - 0x838]
call fcn.10004900
mov byte [ebp - 4], 1
lea eax, [ebp - 0x838]
push eax
call fcn.10005450
mov ecx, dword [esi + 4]
add esp, 4
mov dword [ebp - 0x820], eax
cmp dword [esi + 8], ecx
je 0x1002094a
push ecx
push 0x18
call fcn.10002260
add esp, 8
mov ecx, eax
push dword [ebp - 0x820]
call fcn.10005830
add dword [esi + 4], 0x18
jmp 0x10020953
push eax
push ecx
mov ecx, esi
call fcn.1000c3d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x838]
call fcn.100048a0
mov eax, dword [ebp - 0x814]
lea ecx, [edi + 1]
mov edx, dword [ebp - 0x818]
inc edi
add ebx, 2
cmp edi, eax
jb 0x100208f0
mov esi, dword [ebp - 0x81c]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x10020997
push esi
call fcn.10093f36
add esp, 4
mov al, 1
jmp 0x10020882
call fcn.100948c8
int3
Function at 0x10022030
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x80
push esi
mov dword [esp + 4], 0x10d040e
xor esi, esi
mov dword [esp + 8], 0x80b0f02
mov dword [esp + 0xc], 0xc060a03
mov dword [esp + 0x10], 0x7000905
mov dword [esp + 0x14], 0xe08010f
mov dword [esp + 0x18], 0x4030b06
mov dword [esp + 0x1c], 0xd020709
mov dword [esp + 0x20], 0xa05000c
mov dword [esp + 0x24], 0xe09000a
mov dword [esp + 0x28], 0x50f0306
mov dword [esp + 0x2c], 0x70c0d01
mov dword [esp + 0x30], 0x802040b
mov dword [esp + 0x34], 0x30e0d07
mov dword [esp + 0x38], 0xa090600
mov dword [esp + 0x3c], 0x5080201
mov dword [esp + 0x40], 0xf040c0b
mov dword [esp + 0x44], 0x1040c02
mov dword [esp + 0x48], 0x60b0a07
mov dword [esp + 0x4c], 0xf030508
mov dword [esp + 0x50], 0x90e000d
mov dword [esp + 0x54], 0xf0a010c
mov dword [esp + 0x58], 0x8060209
mov dword [esp + 0x5c], 0x4030d00
mov dword [esp + 0x60], 0xb05070e
mov dword [esp + 0x64], 0xe020b04
mov dword [esp + 0x68], 0xd08000f
mov dword [esp + 0x6c], 0x7090c03
mov dword [esp + 0x70], 0x1060a05
mov dword [esp + 0x74], 0x408020d
mov dword [esp + 0x78], 0x10b0f06
mov dword [esp + 0x7c], 0xe03090a
mov dword [esp + 0x80], 0x70c0005
nop dword [eax]
mov ecx, esi
mov edx, esi
sar ecx, 4
and edx, 0xf
movzx eax, byte [esp + ecx + 4]
shl al, 4
or al, byte [esp + edx + 0x14]
mov byte [esi + 0x10110ae8], al
movzx eax, byte [esp + ecx + 0x24]
shl al, 4
or al, byte [esp + edx + 0x34]
mov byte [esi + 0x101107e8], al
movzx eax, byte [esp + ecx + 0x44]
shl al, 4
or al, byte [esp + edx + 0x54]
mov byte [esi + 0x101109e8], al
movzx eax, byte [esp + ecx + 0x64]
shl al, 4
or al, byte [esp + edx + 0x74]
mov byte [esi + 0x101108e8], al
inc esi
cmp esi, 0x100
jl 0x10022140
pop esi
add esp, 0x80
ret
Function at 0x10024720
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x48
mov eax, dword [0x1010d03c]
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 0x10024758
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.10093f25
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.10093f25
mov esp, ebp
pop ebp
ret
Function at 0x100267a0
Capabilities:
Get session user name
List user accounts for group

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c94eb
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x1010d03c]
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.10010e70
lea ecx, [ebp - 0x114]
mov dword [ebp - 4], 0
call fcn.10011770
push 0x100
lea eax, [ebp - 0x110]
xor bl, bl
push 0
push eax
call fcn.10096b80
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 0x10026907
cmp word [ebp - 0x110], 0
je 0x10026907
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 0x100268a4
cmp eax, 0xea
jne 0x10026907
mov edi, dword [ebp - 0x118]
test edi, edi
je 0x10026907
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 0x100268ee
test dx, dx
je 0x100268ea
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x100268ee
add ecx, 4
add eax, 4
test dx, dx
jne 0x100268c8
xor eax, eax
jmp 0x100268f3
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 0x100268c0
lea ecx, [ebp - 0x114]
call fcn.10011a70
lea ecx, [ebp - 0x114]
mov dword [ebp - 4], 0xffffffff
call fcn.10010ef0
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.10093f25
mov esp, ebp
pop ebp
ret