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

Disassembly:
sub esp, 8
mov eax, dword [0x100f101c]
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 0x100081b2
xor al, al
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.1007f947
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 0x1000820d
cmp dword [esp + 4], 0x103
jne 0x1000820d
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 0x10008203
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.1007f947
add esp, 8
ret

Function at 0x10008700
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b1e28
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x100f101c]
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 0x10008743
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 0x1000875f
mov eax, dword [edi]
test eax, eax
je 0x1000875f
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 0x100087c3
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 0x100082a0
push 0
push 0
call fcn.1008437d
mov ecx, dword [esi + 8]
add esp, 0x18
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 8]
cmp dword [eax + 0x10], 0
jne 0x100087f8
mov eax, dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push 0xffffffffffffffff
push ebx
call eax
sub eax, 1
jne 0x100087bb
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esi + 8]
call fcn.10008470
xor bl, bl
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x100087e4
mov eax, dword [edi]
test eax, eax
je 0x100087dd
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 0x10008810
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 0x100087a5
mov bl, 1
jmp 0x100087c5
Function at 0x1000ae20
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x100f101c]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push 1
mov esi, ecx
call fcn.1007f958
mov dword [esi], eax
push 0x118
push 0
mov byte [eax], 0
lea eax, [esp + 0x14]
push eax
call fcn.10081e90
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 0x1000ae7c
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.1007f947
add esp, 0x120
ret
Function at 0x1000f170
Capabilities:
Check os version
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x140
mov eax, dword [0x100f101c]
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.10081e90
add esp, 0xc
mov dword [esi], 0x11c
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1000f2b7
cmp dword [esi + 4], 6
push edi
ja 0x1000f1cb
jne 0x1000f253
cmp dword [esi + 8], 2
jb 0x1000f253
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x1000f253
push 0x10
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x1000f253
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1000f253
movups xmm0, xmmword [0x100d5cf0]
push eax
movups xmmword [esp + 0x128], xmm0
movups xmm0, xmmword [0x100d5d00]
movups xmmword [esp + 0x138], xmm0
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x1000f253
lea eax, [esp + 0x124]
push eax
lea ecx, [edi + 6]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1000f253
cmp word [edi + 2], ax
jbe 0x1000f253
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 0x1000f29e
push 0x118
lea eax, [esp + 0x10]
push 0
push eax
call fcn.10081e90
add esp, 0xc
mov dword [esp + 8], 0x11c
lea eax, [esp + 8]
push eax
call edi
test eax, eax
jne 0x1000f29e
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.1007f947
add esp, 0x140
ret
mov ecx, dword [esp + 0x140]
xor al, al
pop esi
xor ecx, esp
call fcn.1007f947
add esp, 0x140
ret
Function at 0x10010ab0
Capabilities:
Read file on windows

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

Function at 0x10010b20
Capabilities:
Get file size

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

Function at 0x10010c70
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b2ca8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x100f101c]
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 0x10010ca7
xor al, al
jmp 0x10010d0a
and esi, 0xffffb1af
push esi
call fcn.10003830
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x10010cc2
mov al, 1
jmp 0x10010d0a
lea ecx, [ebp - 0x28]
call fcn.10003990
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, ebx
call fcn.100114a0
test al, al
je 0x10010cf7
push esi
lea ecx, [ebp - 0x28]
call fcn.10003830
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x10010cf7
mov bl, 1
jmp 0x10010cf9
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.100038a0
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.1007f947
mov esp, ebp
pop ebp
ret
Function at 0x10010d30
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b2ca8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x100f101c]
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.10003830
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10010dae
lea ecx, [ebp - 0x28]
call fcn.10003990
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, ebx
call fcn.100114a0
test al, al
je 0x10010d9d
lea ecx, [ebp - 0x28]
call fcn.10003830
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.100038a0
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.1007f947
mov esp, ebp
pop ebp
ret

Function at 0x10010fe0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b2cf0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x100f101c]
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.10003830
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call edi
test eax, eax
je 0x10011026
mov al, 1
jmp 0x1001111b
mov ecx, esi
call fcn.10003830
push eax
lea ecx, [ebp - 0x28]
call fcn.10003940
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.10010d30
mov ebx, eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.100038a0
cmp ebx, 0xffffffff
jne 0x10011065
xor al, al
jmp 0x1001111b
mov ecx, esi
call fcn.10003830
push eax
lea ecx, [ebp - 0x28]
call fcn.10003940
mov dword [ebp - 4], 1
xor edx, edx
lea ecx, [ebp - 0x28]
call fcn.10010c70
mov bl, al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.100038a0
test bl, bl
je 0x1001105e
mov ecx, esi
call fcn.10003830
push eax
call edi
test eax, eax
jne 0x1001101f
lea ecx, [ebp - 0x28]
call fcn.10003990
mov dword [ebp - 4], 2
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.100114a0
test al, al
je 0x100110dd
lea ecx, [ebp - 0x28]
call fcn.10003830
push eax
call edi
test eax, eax
je 0x100110dd
mov bl, 1
jmp 0x1001110a
mov ecx, esi
call fcn.10003830
push eax
lea ecx, [ebp - 0x44]
call fcn.10003940
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x44]
mov edx, dword [ebp - 0x2c]
call fcn.10010c70
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x44]
call fcn.100038a0
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.100038a0
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.1007f947
mov esp, ebp
pop ebp
ret
Function at 0x10011140
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x100f101c]
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.10081e90
add esp, 0xc
lea eax, [esp + 0xc]
mov ecx, esi
push eax
push 0
call fcn.10003830
push eax
mov ecx, edi
call fcn.10003830
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x100111d5
xor eax, eax
mov word [esp + 0x216], ax
lea eax, [esp + 0xc]
push eax
call fcn.10003bb0
add esp, 4
mov ecx, ebx
push eax
lea eax, [esp + 0x10]
push eax
call fcn.100039c0
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.1007f947
add esp, 0x210
ret
mov ecx, dword [esp + 0x218]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1007f947
add esp, 0x210
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b2d78
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x100f101c]
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.10008ac0
push edi
call fcn.10003ec0
add esp, 0xc
cmp esi, eax
je 0x100113b9
mov ecx, edi
call fcn.100039b0
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x100113ae
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, esi
call fcn.100039c0
push 0x100d5da8
call fcn.10003bb0
add esp, 4
mov ecx, esi
push eax
push 0x100d5da8
call fcn.100040e0
lea eax, [ebp - 0x50]
push eax
call fcn.10003bb0
add esp, 4
mov ecx, esi
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.100040e0
push 0x100d5dac
call fcn.10003bb0
add esp, 4
mov ecx, esi
push eax
push 0x100d5dac
call fcn.100040e0
mov ecx, ebx
call fcn.100039b0
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x10011416
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, esi
call fcn.100040e0
mov ecx, esi
call fcn.10003830
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call ebx
mov edi, eax
cmp edi, 0xffffffff
jne 0x10011474
lea ecx, [ebp - 0x68]
call fcn.10003990
mov dword [ebp - 4], 0
lea edx, [ebp - 0x68]
mov ecx, esi
call fcn.100114a0
test al, al
je 0x10011462
lea ecx, [ebp - 0x68]
call fcn.10003830
push eax
call ebx
mov edi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.100038a0
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.1007f947
mov esp, ebp
pop ebp
ret
Function at 0x10011580
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b2db6
mov eax, dword fs:[0]
push eax
sub esp, 0x82c
mov eax, dword [0x100f101c]
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 0x10011660
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 0x1001167e
xor ecx, ecx
lea eax, [ebx + 2]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1008023c
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 0x1001164c
cmp eax, ebx
ja 0x1001164c
mov edx, esi
xor ecx, ecx
mov ebx, eax
mov dword [ebp - 0x814], ebx
mov dword [edx + eax*2], ecx
jmp 0x100116ac
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x10011660
push edi
call fcn.1008003c
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.1007f947
mov esp, ebp
pop ebp
ret
lea eax, [ebx + ebx]
cmp eax, 0x800
jae 0x1001177e
xor ecx, ecx
mov word [ebp + eax - 0x810], cx
add eax, 2
cmp eax, 0x800
jae 0x1001177e
mov word [ebp + eax - 0x810], cx
xor ecx, ecx
xor edi, edi
test ebx, ebx
je 0x10011763
mov eax, dword [ebp - 0x814]
mov ebx, 2
mov esi, dword [ebp - 0x820]
nop dword [eax]
cmp word [edx + ebx - 2], 0
jne 0x10011751
cmp ecx, edi
je 0x10011751
lea eax, [edx + ecx*2]
push eax
lea ecx, [ebp - 0x838]
call fcn.10003940
mov byte [ebp - 4], 1
lea eax, [ebp - 0x838]
push eax
call fcn.10003ec0
mov ecx, dword [esi + 4]
add esp, 4
mov dword [ebp - 0x820], eax
cmp dword [esi + 8], ecx
je 0x1001172a
push ecx
push 0x18
call fcn.10002170
add esp, 8
mov ecx, eax
push dword [ebp - 0x820]
call fcn.100040a0
add dword [esi + 4], 0x18
jmp 0x10011733
push eax
push ecx
mov ecx, esi
call fcn.10004f20
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x838]
call fcn.100038a0
mov eax, dword [ebp - 0x814]
lea ecx, [edi + 1]
mov edx, dword [ebp - 0x818]
inc edi
add ebx, 2
cmp edi, eax
jb 0x100116d0
mov esi, dword [ebp - 0x81c]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x10011777
push esi
call fcn.1008003c
add esp, 4
mov al, 1
jmp 0x10011662
call fcn.10080162
int3

Function at 0x10012230
Capabilities:
Get memory capacity

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b31db
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x100f101c]
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.1000ae20
lea ecx, [ebp - 0x114]
mov dword [ebp - 4], 0
call fcn.1000b720
push 0x100
lea eax, [ebp - 0x110]
xor bl, bl
push 0
push eax
call fcn.10081e90
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 0x10014827
cmp word [ebp - 0x110], 0
je 0x10014827
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 0x100147c4
cmp eax, 0xea
jne 0x10014827
mov edi, dword [ebp - 0x118]
test edi, edi
je 0x10014827
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 0x1001480e
test dx, dx
je 0x1001480a
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x1001480e
add ecx, 4
add eax, 4
test dx, dx
jne 0x100147e8
xor eax, eax
jmp 0x10014813
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 0x100147e0
lea ecx, [ebp - 0x114]
call fcn.1000ba20
lea ecx, [ebp - 0x114]
mov dword [ebp - 4], 0xffffffff
call fcn.1000aea0
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.1007f947
mov esp, ebp
pop ebp
ret
Function at 0x10015260
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100f101c]
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 0x1001528a
mov bl, 1
jmp 0x10015295
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
setne bl
push dword [ebp - 8]
push str.IsNetworkAlive:__d._n
call fcn.10011880
add esp, 8
test bl, bl
je 0x100152cb
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.10011880
add esp, 8
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.1007f947
mov esp, ebp
pop ebp
ret

Function at 0x100152e0
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100f101c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x12c
call fcn.10015260
mov bl, al
test bl, bl
jne 0x1001537c
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
nop dword [eax]
mov eax, esi
dec esi
test eax, eax
js 0x1001537c
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 0x10015337
mov bl, 1
jmp 0x10015342
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
setne bl
push dword [ebp - 8]
push str.IsNetworkAlive:__d._n
call fcn.10011880
add esp, 8
test bl, bl
je 0x10015310
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.10011880
add esp, 8
test bl, bl
je 0x10015310
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1007f947
mov esp, ebp
pop ebp
ret
Function at 0x10018670
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.10006a90
add esp, 4
test al, al
je 0x1001869c
cmp dword [edi + 0x14], 8
jb 0x10018691
mov edi, dword [edi]
push 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push esi
call fcn.10006900
add esp, 4
test al, al
je 0x100186bc
cmp dword [esi + 0x14], 8
jb 0x100186b1
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
Function at 0x1001e870
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b47f6
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
mov eax, dword [0x100f101c]
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 - 0xc0]
call fcn.10011b50
push 0x100d2a7c
lea eax, [ebp - 0xc0]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0xa8]
push eax
call fcn.10003cc0
add esp, 0xc
lea eax, [ebp - 0xa8]
mov byte [ebp - 4], 1
push eax
call fcn.10006a90
add esp, 4
test al, al
jne 0x1001e986
mov edx, dword [ebp - 0x94]
cmp edx, 8
jb 0x1001e926
mov ecx, dword [ebp - 0xa8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1001e91c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001eaf8
push edx
push ecx
call fcn.1007fceb
add esp, 8
mov edx, dword [ebp - 0xac]
xor eax, eax
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 7
mov word [ebp - 0xa8], ax
cmp edx, 8
jb 0x1001eaf4
mov ecx, dword [ebp - 0xc0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1001eaea
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001eafd
jmp 0x1001eaea
push 0x80
lea eax, [ebp - 0x90]
push 0
push eax
call fcn.10081e90
add esp, 0xc
lea eax, [ebp - 0xa8]
cmp dword [ebp - 0x94], 8
cmovae eax, dword [ebp - 0xa8]
push eax
push 0x40
lea eax, [ebp - 0x90]
push eax
push 0x100d5934
push str.ServiceTime
push 0x100d2a5c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, 0x100d5934
lea eax, [ebp - 0x90]
nop word [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1001ea06
test dx, dx
je 0x1001ea02
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1001ea06
add eax, 4
add ecx, 4
test dx, dx
jne 0x1001e9e0
xor eax, eax
jmp 0x1001ea0b
sbb eax, eax
or eax, 1
test eax, eax
je 0x1001e8e6
lea eax, [ebp - 0x90]
push eax
call fcn.1009086c
mov esi, dword [ebp - 0x94]
add esp, 4
mov edi, eax
mov ebx, edx
cmp esi, 8
jb 0x1001ea66
mov ecx, dword [ebp - 0xa8]
lea esi, [esi*2 + 2]
mov eax, ecx
cmp esi, 0x1000
jb 0x1001ea5c
mov ecx, dword [ecx - 4]
add esi, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001eaf8
push esi
push ecx
call fcn.1007fceb
add esp, 8
mov edx, dword [ebp - 0xac]
xor eax, eax
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 7
mov word [ebp - 0xa8], ax
cmp edx, 8
jb 0x1001eabf
mov ecx, dword [ebp - 0xc0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1001eab5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001eaf8
push edx
push ecx
call fcn.1007fceb
add esp, 8
push ebx
push edi
call fcn.1002c960
add esp, 8
test al, al
setne 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.1007f947
mov esp, ebp
pop ebp
ret
push edx
push ecx
call fcn.1007fceb
add esp, 8
mov al, 1
jmp 0x1001eace
call fcn.10083a12
call fcn.10083a12
int3