joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000ef40
Capabilities:
Check os version
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x140
mov eax, dword [0x100fc03c]
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.1008bb90
add esp, 0xc
mov dword [esi], 0x11c
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1000f087
cmp dword [esi + 4], 6
push edi
ja 0x1000ef9b
jne 0x1000f023
cmp dword [esi + 8], 2
jb 0x1000f023
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x1000f023
push 0x10
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x1000f023
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1000f023
movups xmm0, xmmword [0x100df700]
push eax
movups xmmword [esp + 0x128], xmm0
movups xmm0, xmmword [0x100df710]
movups xmmword [esp + 0x138], xmm0
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x1000f023
lea eax, [esp + 0x124]
push eax
lea ecx, [edi + 6]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1000f023
cmp word [edi + 2], ax
jbe 0x1000f023
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 0x1000f06e
push 0x118
lea eax, [esp + 0x10]
push 0
push eax
call fcn.1008bb90
add esp, 0xc
mov dword [esp + 8], 0x11c
lea eax, [esp + 8]
push eax
call edi
test eax, eax
jne 0x1000f06e
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.10088f98
add esp, 0x140
ret
mov ecx, dword [esp + 0x140]
xor al, al
pop esi
xor ecx, esp
call fcn.10088f98
add esp, 0x140
ret
Function at 0x100159f0
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x100fc03c]
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.1008bb90
add esp, 0xc
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, esi
je 0x10015a87
cmp dword [esp + 8], 6
jb 0x10015a87
mov byte [esi], 1
mov ecx, dword [esp + 0x118]
pop esi
xor ecx, esp
call fcn.10088f98
add esp, 0x118
ret

Function at 0x10015aa0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bb9a0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x100fc03c]
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.10002d70
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
call fcn.10011630
mov ecx, eax
call fcn.100116f0
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10002d10
push str.crypt32.dll
lea ecx, [ebp - 0x40]
call fcn.10002d70
mov dword [ebp - 4], 1
lea eax, [ebp - 0x40]
push eax
call fcn.10011630
mov ecx, eax
call fcn.100116f0
mov esi, eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.10002d10
test ebx, ebx
je 0x10015bb5
test esi, esi
je 0x10015bb5
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 0x10018590
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bbcf6
mov eax, dword fs:[0]
push eax
sub esp, 0x82c
mov eax, dword [0x100fc03c]
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 0x10018670
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 0x1001868e
xor ecx, ecx
lea eax, [ebx + 2]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10088fec
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 0x1001865c
cmp eax, ebx
ja 0x1001865c
mov edx, esi
xor ecx, ecx
mov ebx, eax
mov dword [ebp - 0x814], ebx
mov dword [edx + eax*2], ecx
jmp 0x100186bc
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x10018670
push edi
call fcn.10088fa9
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.10088f98
mov esp, ebp
pop ebp
ret
lea eax, [ebx + ebx]
cmp eax, 0x800
jae 0x1001878e
xor ecx, ecx
mov word [ebp + eax - 0x810], cx
add eax, 2
cmp eax, 0x800
jae 0x1001878e
mov word [ebp + eax - 0x810], cx
xor ecx, ecx
xor edi, edi
test ebx, ebx
je 0x10018773
mov eax, dword [ebp - 0x814]
mov ebx, 2
mov esi, dword [ebp - 0x820]
nop dword [eax]
cmp word [edx + ebx - 2], 0
jne 0x10018761
cmp ecx, edi
je 0x10018761
lea eax, [edx + ecx*2]
push eax
lea ecx, [ebp - 0x838]
call fcn.10002d70
mov byte [ebp - 4], 1
lea eax, [ebp - 0x838]
push eax
call fcn.10003210
mov ecx, dword [esi + 4]
add esp, 4
mov dword [ebp - 0x820], eax
cmp dword [esi + 8], ecx
je 0x1001873a
push ecx
push 0x18
call fcn.10002190
add esp, 8
mov ecx, eax
push dword [ebp - 0x820]
call fcn.10003520
add dword [esi + 4], 0x18
jmp 0x10018743
push eax
push ecx
mov ecx, esi
call fcn.10009e70
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x838]
call fcn.10002d10
mov eax, dword [ebp - 0x814]
lea ecx, [edi + 1]
mov edx, dword [ebp - 0x818]
inc edi
add ebx, 2
cmp edi, eax
jb 0x100186e0
mov esi, dword [ebp - 0x81c]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x10018787
push esi
call fcn.10088fa9
add esp, 4
mov al, 1
jmp 0x10018672
call fcn.100897bc
int3
Function at 0x10019940
Capabilities:
Read file on windows

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

Function at 0x100199b0
Capabilities:
Get file size

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

Function at 0x10019b00
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bbff8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x100fc03c]
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 0x10019b37
xor al, al
jmp 0x10019b9a
and esi, 0xffffb1af
push esi
call fcn.10002cb0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x10019b52
mov al, 1
jmp 0x10019b9a
lea ecx, [ebp - 0x28]
call fcn.10003560
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, ebx
call fcn.1001a330
test al, al
je 0x10019b87
push esi
lea ecx, [ebp - 0x28]
call fcn.10002cb0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x10019b87
mov bl, 1
jmp 0x10019b89
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10002d10
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.10088f98
mov esp, ebp
pop ebp
ret
Function at 0x10019bc0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bbff8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x100fc03c]
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.10002cb0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10019c3e
lea ecx, [ebp - 0x28]
call fcn.10003560
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, ebx
call fcn.1001a330
test al, al
je 0x10019c2d
lea ecx, [ebp - 0x28]
call fcn.10002cb0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10002d10
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.10088f98
mov esp, ebp
pop ebp
ret

Function at 0x10019e70
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bc040
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x100fc03c]
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.10002cb0
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call edi
test eax, eax
je 0x10019eb6
mov al, 1
jmp 0x10019fab
mov ecx, esi
call fcn.10002cb0
push eax
lea ecx, [ebp - 0x28]
call fcn.10002d70
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.10019bc0
mov ebx, eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10002d10
cmp ebx, 0xffffffff
jne 0x10019ef5
xor al, al
jmp 0x10019fab
mov ecx, esi
call fcn.10002cb0
push eax
lea ecx, [ebp - 0x28]
call fcn.10002d70
mov dword [ebp - 4], 1
xor edx, edx
lea ecx, [ebp - 0x28]
call fcn.10019b00
mov bl, al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10002d10
test bl, bl
je 0x10019eee
mov ecx, esi
call fcn.10002cb0
push eax
call edi
test eax, eax
jne 0x10019eaf
lea ecx, [ebp - 0x28]
call fcn.10003560
mov dword [ebp - 4], 2
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.1001a330
test al, al
je 0x10019f6d
lea ecx, [ebp - 0x28]
call fcn.10002cb0
push eax
call edi
test eax, eax
je 0x10019f6d
mov bl, 1
jmp 0x10019f9a
mov ecx, esi
call fcn.10002cb0
push eax
lea ecx, [ebp - 0x44]
call fcn.10002d70
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x44]
mov edx, dword [ebp - 0x2c]
call fcn.10019b00
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x44]
call fcn.10002d10
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10002d10
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.10088f98
mov esp, ebp
pop ebp
ret
Function at 0x10019fd0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x100fc03c]
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.1008bb90
add esp, 0xc
lea eax, [esp + 0xc]
mov ecx, esi
push eax
push 0
call fcn.10002cb0
push eax
mov ecx, edi
call fcn.10002cb0
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x1001a065
xor eax, eax
mov word [esp + 0x216], ax
lea eax, [esp + 0xc]
push eax
call fcn.10003080
add esp, 4
mov ecx, ebx
push eax
lea eax, [esp + 0x10]
push eax
call fcn.10002eb0
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.10088f98
add esp, 0x210
ret
mov ecx, dword [esp + 0x218]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10088f98
add esp, 0x210
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bc0c8
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x100fc03c]
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.1000f140
push edi
call fcn.10003210
add esp, 0xc
cmp esi, eax
je 0x1001a249
mov ecx, edi
call fcn.10002ea0
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x1001a23e
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, esi
call fcn.10002eb0
push 0x100dfba8
call fcn.10003080
add esp, 4
mov ecx, esi
push eax
push 0x100dfba8
call fcn.10002ff0
lea eax, [ebp - 0x50]
push eax
call fcn.10003080
add esp, 4
mov ecx, esi
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.10002ff0
push 0x100dfbac
call fcn.10003080
add esp, 4
mov ecx, esi
push eax
push 0x100dfbac
call fcn.10002ff0
mov ecx, ebx
call fcn.10002ea0
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x1001a2a6
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, esi
call fcn.10002ff0
mov ecx, esi
call fcn.10002cb0
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call ebx
mov edi, eax
cmp edi, 0xffffffff
jne 0x1001a304
lea ecx, [ebp - 0x68]
call fcn.10003560
mov dword [ebp - 4], 0
lea edx, [ebp - 0x68]
mov ecx, esi
call fcn.1001a330
test al, al
je 0x1001a2f2
lea ecx, [ebp - 0x68]
call fcn.10002cb0
push eax
call ebx
mov edi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.10002d10
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.10088f98
mov esp, ebp
pop ebp
ret
Function at 0x1001bb20
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 + 0x100fefd8], al
movzx eax, byte [esp + ecx + 0x24]
shl al, 4
or al, byte [esp + edx + 0x34]
mov byte [esi + 0x100fecd8], al
movzx eax, byte [esp + ecx + 0x44]
shl al, 4
or al, byte [esp + edx + 0x54]
mov byte [esi + 0x100feed8], al
movzx eax, byte [esp + ecx + 0x64]
shl al, 4
or al, byte [esp + edx + 0x74]
mov byte [esi + 0x100fedd8], al
inc esi
cmp esi, 0x100
jl 0x1001bc30
pop esi
add esp, 0x80
ret
Function at 0x1001e220
Capabilities:
Get memory capacity

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bc7fb
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x100fc03c]
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.100061a0
lea ecx, [ebp - 0x114]
mov dword [ebp - 4], 0
call fcn.10006ac0
push 0x100
lea eax, [ebp - 0x110]
xor bl, bl
push 0
push eax
call fcn.1008bb90
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 0x10020b17
cmp word [ebp - 0x110], 0
je 0x10020b17
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 0x10020ab4
cmp eax, 0xea
jne 0x10020b17
mov edi, dword [ebp - 0x118]
test edi, edi
je 0x10020b17
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 0x10020afe
test dx, dx
je 0x10020afa
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x10020afe
add ecx, 4
add eax, 4
test dx, dx
jne 0x10020ad8
xor eax, eax
jmp 0x10020b03
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 0x10020ad0
lea ecx, [ebp - 0x114]
call fcn.10006dc0
lea ecx, [ebp - 0x114]
mov dword [ebp - 4], 0xffffffff
call fcn.10006220
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.10088f98
mov esp, ebp
pop ebp
ret
Function at 0x10021550
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100fc03c]
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 0x1002157a
mov bl, 1
jmp 0x10021585
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
setne bl
push dword [ebp - 8]
push str.IsNetworkAlive:__d._n
call fcn.1001d940
add esp, 8
test bl, bl
je 0x100215bb
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.1001d940
add esp, 8
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.10088f98
mov esp, ebp
pop ebp
ret

Function at 0x100215d0
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100fc03c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x12c
call fcn.10021550
mov bl, al
test bl, bl
jne 0x1002166c
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
nop dword [eax]
mov eax, esi
dec esi
test eax, eax
js 0x1002166c
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 0x10021627
mov bl, 1
jmp 0x10021632
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
setne bl
push dword [ebp - 8]
push str.IsNetworkAlive:__d._n
call fcn.1001d940
add esp, 8
test bl, bl
je 0x10021600
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.1001d940
add esp, 8
test bl, bl
je 0x10021600
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10088f98
mov esp, ebp
pop ebp
ret