joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403e80
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x46b040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push ecx
push 0x46bad8
push 0xfffffffffffffffd
mov edx, 0x20119
lea ecx, [ebp - 0x2c]
xor edi, edi
call fcn.00410cc0
test eax, eax
js 0x403ed1
mov ecx, dword [ebp - 0x2c]
lea edx, [ebp - 0x34]
mov dword [ebp - 0x34], 0x1e
mov dword [ebp - 0x30], str.InstallLocation
call fcn.00412ac0
push dword [ebp - 0x2c]
mov edi, eax
call dword [sym.imp.ntdll.dll_NtClose]
test edi, edi
je 0x403eda
cmp dword [edi], 0
jne 0x403f50
lea eax, ds:[ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [ebp - 0x28], 9
mov eax, 0x46bcfc
mov ecx, 0x46bcf4
cmovne ecx, eax
call fcn.00412040
mov edi, eax
test edi, edi
je 0x403f09
cmp dword [edi], 0
jne 0x403f50
mov ecx, str.C:Program_FilesSystemInformer_
call fcn.004069e0
mov edx, dword [0x46ccf8]
mov esi, eax
add esi, esi
lea ecx, [esi + 0xa]
call fcn.004060e0
mov edi, eax
xor ecx, ecx
lea eax, [edi + 8]
push esi
push str.C:Program_FilesSystemInformer_
mov dword [edi + 4], eax
mov dword [edi], esi
mov word [eax + esi], cx
push dword [edi + 4]
call fcn.00423850
add esp, 0xc
test edi, edi
je 0x403fda
mov ecx, dword [edi]
test ecx, ecx
je 0x403fda
mov dword [ebp - 0x34], 2
mov dword [ebp - 0x30], 0x46411c
cmp ecx, 2
jb 0x403f90
mov eax, dword [edi + 4]
lea edx, [ebp - 0x34]
add ecx, 0xfffffffe
mov dword [ebp - 0x3c], 2
add eax, ecx
lea ecx, [ebp - 0x3c]
push 1
mov dword [ebp - 0x38], eax
call fcn.00406ae0
test al, al
jne 0x403fda
lea edx, [ebp - 0x3c]
mov dword [ebp - 0x3c], 2
mov ecx, edi
mov dword [ebp - 0x38], 0x46411c
call fcn.004070c0
mov esi, eax
test esi, esi
je 0x403fb2
lock inc dword [esi - 4]
lea ecx, ds:[edi - 8]
or edx, 0xffffffff
lock xadd dword [ecx + 4], edx
dec edx
jne 0x403fc8
call fcn.004061c0
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00420701
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00420701
mov esp, ebp
pop ebp
ret
Function at 0x404160
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x46b040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov bl, 1
push edi
mov dword [ebp - 0x50], esi
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x40418e
cmp dword [eax], 0
je 0x40418e
mov eax, dword [eax + 4]
jmp 0x404193
mov eax, str.KSystemInformer
push eax
mov edx, 0x24
lea ecx, [ebp - 0x48]
call fcn.00415540
test eax, eax
js 0x4042b3
mov edi, dword [ebp - 0x48]
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x4c]
push eax
push 0x24
lea eax, [ebp - 0x28]
mov dword [ebp - 0x4c], 0
push eax
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x404208
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.00414f40
jmp 0x404200
test eax, eax
js 0x4042ac
cmp dword [ebp - 0x24], 1
je 0x4042ac
mov esi, 0x3c
lea eax, ds:[ebp - 0x44]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x404230
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x4c]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x40427c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.00414f40
test eax, eax
js 0x404282
cmp dword [ebp - 0x24], 1
je 0x4042a9
lea edx, [ebp - 0x58]
mov dword [ebp - 0x58], 0xff676980
mov dword [ebp - 0x54], 0xffffffff
call fcn.00413660
jmp 0x4042a0
sub esi, 1
jne 0x404217
mov esi, dword [ebp - 0x50]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x4042c4
cmp dword [eax], 0
je 0x4042c4
mov eax, dword [eax + 4]
jmp 0x4042c9
mov eax, str.KSystemInformer
push eax
mov edx, 0x10000
lea ecx, [ebp - 0x48]
call fcn.00415540
test eax, eax
js 0x404329
mov esi, dword ds:[ebp - 0x48]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x404322
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.00414f40
test eax, eax
jns 0x404322
mov ecx, eax
xor bl, bl
and ecx, 0xfff0000
cmp ecx, 0x70000
jne 0x404312
movzx eax, ax
jmp 0x40431c
push eax
lfence
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosErrorNoTeb]
mov ecx, dword [ebp - 0x50]
mov dword [ecx + 0x28], eax
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00420701
mov esp, ebp
pop ebp
ret
Function at 0x404340
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x46b040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
sub esp, 0xc
mov esi, ecx
push 0x46bac8
push ecx
lea ecx, [ebp - 8]
call fcn.00410c20
test eax, eax
js 0x4043c6
mov ecx, dword [esi + 0x18]
mov edx, str.SystemInformer.exe
call fcn.004055a0
mov esi, eax
test esi, esi
je 0x4043b9
mov ecx, dword ds:[esi]
lea eax, [ebp - 0x10]
add ecx, 2
mov dword [ebp - 0x10], 0
push ecx
push dword [esi + 4]
mov dword [ebp - 0xc], 0
push 1
push 0
push eax
push dword [ebp - 8]
call dword [sym.imp.ntdll.dll_NtSetValueKey]
lea ecx, [esi - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4043b9
call fcn.004061c0
push dword ds:[ebp - 8]
call dword [sym.imp.ntdll.dll_NtClose]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00420701
mov esp, ebp
pop ebp
ret
Function at 0x4053a0
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [0x46b040]
xor eax, esp
mov dword [esp + 0x40], eax
push esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x10], 0x12
mov dword [esp + 0x14], str.SiMutant_
mov dword [esp + 8], 0x12
cmp dword [esi], 0x12
mov eax, dword [esi + 4]
mov dword [esp + 0xc], eax
jb 0x4053ef
push 1
lea edx, [esp + 0x14]
lea ecx, [esp + 0xc]
call fcn.00406ae0
test al, al
jne 0x40546d
cmp dword [esi], 0x1c
mov eax, dword [esi + 4]
mov dword [esp + 8], 0x1c
mov dword [esp + 0xc], str.SiSetupMutant_
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0x1c
jb 0x405429
push 1
lea edx, [esp + 0xc]
lea ecx, [esp + 0x14]
call fcn.00406ae0
test al, al
jne 0x40546d
cmp dword [esi], 0x1e
mov eax, dword [esi + 4]
mov dword [esp + 8], 0x1e
mov dword [esp + 0xc], str.SiViewerMutant_
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0x1e
jb 0x405570
push 1
lea edx, [esp + 0xc]
lea ecx, [esp + 0x14]
call fcn.00406ae0
test al, al
je 0x405570
movzx eax, word [esi]
mov word [esp + 0x3c], ax
add eax, 2
cmp dword [esi], 0xfffe
mov word [esp + 0x3e], ax
mov eax, dword [esi + 4]
mov dword [esp + 0x40], eax
ja 0x405570
mov dword [esp + 0x24], 0x18
call fcn.00413320
mov dword [esp + 0x28], eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x24]
push eax
push 1
lea eax, [esp + 0x20]
mov dword [esp + 0x38], 0x40
push eax
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
call dword [sym.imp.ntdll.dll_NtOpenMutant]
test eax, eax
js 0x405570
push 0
push 8
lea eax, [esp + 0x24]
push eax
push 1
push dword [esp + 0x28]
call dword [sym.imp.ntdll.dll_NtQueryMutant]
test eax, eax
js 0x405566
mov eax, dword fs:[0x18]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0
cmp ecx, dword [eax + 0x20]
je 0x405566
push ecx
mov edx, 0x1001
lea ecx, [esp + 0x14]
call fcn.0040f460
mov edx, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x20]
call fcn.00414d60
test eax, eax
je 0x405546
push 0
push 0x1388
push 1
push 0
push 0
push 0x12
push eax
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x405566
push 1
push eax
call dword [sym.imp.ntdll.dll_NtTerminateProcess]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x405566
push eax
call dword [sym.imp.ntdll.dll_NtClose]
push dword [esp + 0x18]
call dword [sym.imp.ntdll.dll_NtClose]
mov ecx, dword [esp + 0x44]
mov al, 1
pop esi
xor ecx, esp
call fcn.00420701
mov esp, ebp
pop ebp
ret 0xc
Function at 0x405660
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x46b040]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x30], edx
xor bl, bl
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edi
test ecx, ecx
je 0x40568c
mov ecx, dword [ecx + 4]
jmp 0x40568e
xor ecx, ecx
sub esp, 8
lea edx, [ebp - 0x24]
call fcn.00410600
lea esp, [esp]
test eax, eax
js 0x405759
push 0
push 0
push 0x60
push 5
push 7
push 0x80
lea eax, [ebp - 0x24]
mov dword [ebp - 0x48], 0x18
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x50]
mov dword [ebp - 0x44], edi
push eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0x3c], 0x40
push eax
push 0x120116
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x38], edi
push eax
mov dword [ebp - 0x34], edi
call dword [sym.imp.ntdll.dll_NtCreateFile]
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
test ecx, ecx
je 0x405718
push ecx
mov ecx, dword fs:[0x18]
push 0
mov ecx, dword [ecx + 0x30]
push dword [ecx + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
test eax, eax
cmovns edi, dword [ebp - 0x2c]
mov esi, edi
js 0x40574e
push 0
push 0
push dword [ebp + 8]
lea eax, [ebp - 0x1c]
push dword [ebp - 0x30]
push eax
push 0
push 0
push 0
push edi
call dword [sym.imp.ntdll.dll_NtWriteFile]
lea ecx, [ecx]
test eax, eax
js 0x40574e
mov eax, dword [ebp + 8]
cmp dword [ebp - 0x18], eax
jne 0x40574e
mov bl, 1
test esi, esi
je 0x405759
push esi
call dword [sym.imp.ntdll.dll_NtClose]
mov ecx, dword [ebp - 8]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00420701
mov esp, ebp
pop ebp
ret 4
Function at 0x405780
Capabilities:
Get file attributes
Hash data using sha256
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x115c
call fcn.0043d730
mov eax, dword [0x46b040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor al, al
mov dword [ebp - 0x1140], edx
mov byte [ebp - 0x1131], al
mov dword [ebp - 0x1138], 0
push esi
push edi
test ecx, ecx
je 0x4057bb
mov edx, dword [ecx + 4]
jmp 0x4057bd
xor edx, edx
push ecx
push 0x60
push 1
push 7
push 0x80
push 0
push 0x120089
lea ecx, [ebp - 0x1138]
call fcn.00410e60
mov ebx, dword [ebp - 0x1138]
test eax, eax
js 0x4058fa
push 5
push 0x18
lea eax, [ebp - 0x1028]
push eax
lea eax, [ebp - 0x113c]
push eax
push ebx
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
test eax, eax
js 0x4058fa
mov esi, dword [ebp - 0x1020]
mov eax, esi
mov edi, dword [ebp - 0x101c]
or eax, edi
mov dword [ebp - 0x1130], 3
mov dword [ebp - 0x112c], 0
mov dword [ebp - 0x1128], 0
mov dword [ebp - 0x1124], 0x6a09e667
mov dword [ebp - 0x1120], 0xbb67ae85
mov dword [ebp - 0x111c], 0x3c6ef372
mov dword [ebp - 0x1118], 0xa54ff53a
mov dword [ebp - 0x1114], 0x510e527f
mov dword [ebp - 0x1110], 0x9b05688c
mov dword [ebp - 0x110c], 0x1f83d9ab
mov dword [ebp - 0x1108], 0x5be0cd19
je 0x4058de
mov edi, edi
push 0
push 0
push 0x1000
lea eax, [ebp - 0x1008]
push eax
lea eax, [ebp - 0x1010]
push eax
push 0
push 0
push 0
push ebx
call dword [sym.imp.ntdll.dll_NtReadFile]
test eax, eax
js 0x4058fa
push dword [ebp - 0x100c]
lea edx, [ebp - 0x1008]
lea ecx, [ebp - 0x1130]
call fcn.00412ce0
sub esi, dword [ebp - 0x100c]
mov eax, esi
sbb edi, 0
or eax, edi
jne 0x405890
mov edx, dword [ebp - 0x1140]
lea ecx, [ebp - 0x1130]
sub esp, 8
call fcn.00412d80
mov byte [ebp - 0x1131], al
jmp 0x405900
mov al, byte [ebp - 0x1131]
test ebx, ebx
je 0x405911
push ebx
call dword [sym.imp.ntdll.dll_NtClose]
mov al, byte [ebp - 0x1131]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00420701
mov esp, ebp
pop ebp
ret
Function at 0x4064a0
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x46bae0], 0xffffffff
push esi
push edi
mov edi, ecx
mov ecx, dword [0x46ce74]
jae 0x4064ca
cmp ecx, 0x40
jae 0x4064ca
lfence
mov eax, dword fs:[0x18]
mov esi, dword [eax + ecx*4 + 0xe10]
jmp 0x4064d3
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test edi, edi
jne 0x4064dc
pop edi
xor eax, eax
pop esi
ret
mov eax, dword ds:[esi]
cmp eax, 0x40
jae 0x4064f0
mov dword [esi + eax*4 + 4], edi
mov eax, edi
inc dword [esi]
pop edi
pop esi
ret
mov ecx, dword [esi + 0x10c]
test ecx, ecx
jne 0x40651f
push 0x100
push 4
push dword [0x46cd04]
mov dword [esi + 0x108], 0x40
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ecx, eax
mov dword [esi + 0x10c], ecx
mov eax, dword [esi + 0x108]
cmp dword [esi + 0x104], eax
jne 0x406564
add eax, eax
mov dword [esi + 0x108], eax
shl eax, 2
push eax
test ecx, ecx
jne 0x40654d
push 4
push dword [0x46cd04]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
jmp 0x40655c
push ecx
push 4
push dword [0x46cd04]
call dword [sym.imp.ntdll.dll_RtlReAllocateHeap]
mov ecx, eax
mov dword [esi + 0x10c], ecx
mov eax, dword [esi + 0x104]
mov dword [ecx + eax*4], edi
mov eax, edi
inc dword [esi + 0x104]
pop edi
pop esi
ret

Function at 0x406800
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x46b040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x1c]
lea ecx, [ebp - 0x24]
push esi
mov dword [ebp - 0xc], ecx
lea ecx, [ebp - 0x18]
push ecx
push 0
push 0
push 0
push 0
push eax
push 0x406780
push 0xffffffffffffffff
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x24], 0
push eax
push 0x1fffff
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x20], 0
push eax
mov dword [ebp - 0x3c], 0x18
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0x14
mov dword [ebp - 0x14], 0x10003
mov dword [ebp - 0x10], 8
mov dword [ebp - 8], 0
call dword [sym.imp.ntdll.dll_NtCreateThreadEx]
mov esi, eax
test esi, esi
js 0x4068ad
mov eax, dword ds:[ebp - 0x1c]
test eax, eax
je 0x4068ab
push eax
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00420701
mov esp, ebp
pop ebp
ret 0x20
Function at 0x407ba0
Capabilities:
Allocate thread local storage

Disassembly:
cmp dword [0x46bae0], 0xffffffff
push ebx
push esi
push edi
jae 0x407cbf
mov esi, dword fs:[0x18]
mov eax, dword fs:[0x18]
mov ebx, dword [esi + 0x30]
mov eax, dword [eax + 0x30]
push dword [eax + 0x1c]
call dword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
push 0
push 1
push dword [ebx + 0x40]
call dword [sym.imp.ntdll.dll_RtlFindClearBitsAndSet]
mov edi, eax
cmp edi, 0xffffffff
jne 0x407c5c
jmp 0x407bf0
cmp dword [esi + 0xf94], 0
jne 0x407c7f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push dword [eax + 0x1c]
call dword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
mov eax, dword fs:[0x18]
push 0x2000
push 8
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [esi + 0xf94], eax
test eax, eax
je 0x407cbf
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push dword [eax + 0x1c]
call dword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
push 0
push 1
push dword [ebx + 0x40]
call dword [sym.imp.ntdll.dll_RtlFindClearBitsAndSet]
mov edi, eax
cmp edi, 0xffffffff
je 0x407bf0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push dword [eax + 0x1c]
call dword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
mov dword [esi + edi*4 + 0xe10], 0
mov eax, edi
pop edi
pop esi
pop ebx
ret
push 0
push 1
push dword [ebx + 0x150]
call dword [sym.imp.ntdll.dll_RtlFindClearBitsAndSet]
mov ecx, dword fs:[0x18]
mov edi, eax
mov ecx, dword [ecx + 0x30]
push dword [ecx + 0x1c]
call dword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
cmp edi, 0xffffffff
je 0x407cbf
mov ecx, dword [esi + 0xf94]
lea eax, [edi + 0x40]
mov dword [ecx + edi*4], 0
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp dword [sym.imp.KERNEL32.dll_TlsAlloc]
Function at 0x40a690
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 4
jb 0x40a6fb
push edi
mov edi, esi
shr edi, 2
movzx eax, byte [edx]
sub esi, 4
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x465ee0]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x465ee0]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x465ee0]
movzx eax, byte [edx + 3]
add edx, 4
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x465ee0]
sub edi, 1
jne 0x40a6a4
pop edi
test esi, esi
je 0x40a71a
nop
movzx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x465ee0]
sub esi, 1
jne 0x40a700
not ecx
mov eax, ecx
pop esi
pop ebp
ret 4
Function at 0x40f660
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push 0x100
push 4
push dword [0x46cd04]
mov dword [ebp - 0xc], edx
mov esi, ecx
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push 0
mov edi, eax
mov dword [ebp - 0x18], esi
push 0xc
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x1000000
push eax
push 0x58
mov dword [ebp - 0x10], edi
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov esi, eax
cmp esi, 0xc0000004
jne 0x40f6e9
push edi
push 0
push dword [0x46cd04]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
movzx eax, word [ebp - 0x12]
push eax
push 4
push dword [0x46cd04]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push 0
mov edi, eax
lea eax, [ebp - 0x18]
push 0xc
push eax
push 0x58
mov dword [ebp - 0x10], edi
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov esi, eax
test esi, esi
jns 0x40f6f2
lfence
jmp 0x40f771
mov ax, word [ebp - 0x14]
test ax, ax
jne 0x40f716
push edi
push 0
push dword [0x46cd04]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, 0xc0000001
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lfence
test ax, ax
jne 0x40f729
mov edi, edi
call fcn.00406fc0
mov ebx, eax
jmp 0x40f76c
mov ecx, dword ds:[ebp - 0x10]
mov edx, dword [0x46ccf8]
movzx eax, ax
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
lea ecx, [eax + 0xa]
call fcn.004060e0
mov ecx, dword [ebp - 4]
mov ebx, eax
lea eax, [ebx + 8]
xor edx, edx
mov dword [ebx + 4], eax
mov dword [ebx], ecx
mov word [eax + ecx], dx
mov eax, dword [ebp - 8]
test eax, eax
je 0x40f76c
push ecx
push eax
push dword [ebx + 4]
call fcn.00423850
add esp, 0xc
mov eax, dword [ebp - 0xc]
mov dword [eax], ebx
push edi
push 0
push dword [0x46cd04]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40f8c0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
cmp dword [0x46bae0], 0x6a
push esi
push edi
mov edi, ecx
jb 0x40f8f5
push 0x40
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x13
push eax
lea eax, [ebp - 0x10]
push eax
push edi
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
test eax, eax
jns 0x40f990
push 0xd
push 1
lea eax, [ebp - 1]
push eax
lea eax, [ebp - 0x10]
push eax
lfence
push edi
mov byte [ebp - 1], 1
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
mov esi, eax
test esi, esi
jns 0x40f98e
push 0
push 0
push 0x1000
push 1
push 4
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x18]
push 0
push eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0xc], 0
push eax
push 0x10000
lea eax, [ebp - 8]
mov dword [ebp - 0x30], 0x18
push eax
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x24], 0x40
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
call dword [sym.imp.ntdll.dll_NtCreateFile]
cmp eax, 0xc0000043
je 0x40f98e
test eax, eax
js 0x40f98e
push dword ds:[ebp - 8]
call dword [sym.imp.ntdll.dll_NtClose]
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40fb00
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov ebx, 0x400
mov byte [ebp - 0x10], 1
push ebx
push 4
push dword [0x46cd04]
mov esi, ecx
mov dword [ebp - 4], esi
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
push dword ds:[ebp - 0x10]
lea eax, [ebp - 0x18]
push 0
push 0
push 1
push ebx
push edi
push eax
push 0
push 0
push 0
push esi
call dword [sym.imp.ntdll.dll_NtQueryDirectoryFile]
mov esi, eax
cmp esi, 0x103
jne 0x40fb65
push 0
push 0
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
mov esi, eax
test esi, esi
cmovns esi, dword [ebp - 0x18]
cmp esi, 0x80000005
je 0x40fb75
cmp esi, 0xc0000004
jne 0x40fb9c
push edi
push 0
push dword [0x46cd04]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
add ebx, ebx
push ebx
push 4
push dword [0x46cd04]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, dword [ebp - 4]
jmp 0x40fb26
lea esp, [esp]
cmp esi, 0x80000006
je 0x40fc0e
test esi, esi
js 0x40fc10
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push edi
push dword [ebp - 4]
lfence
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], edi
call dword [0x44026c]
call dword [ebp + 8]
test al, al
je 0x40fc10
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
test eax, eax
je 0x40fc02
mov ecx, dword [ebp - 8]
push dword [ebp + 0xc]
add ecx, eax
mov dword [ebp - 8], ecx
lea eax, [ecx + edi]
mov ecx, dword [ebp + 8]
push eax
push dword [ebp - 4]
mov dword [ebp - 0xc], eax
call dword [0x44026c]
call dword [ebp + 8]
test al, al
jne 0x40fbd0
mov edi, edi
jmp 0x40fc10
mov esi, dword [ebp - 4]
mov byte [ebp - 0x10], 0
jmp 0x40fb28
xor esi, esi
push edi
push 0
push dword [0x46cd04]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x410d60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 8], ecx
push ebx
mov ebx, 0x10
push esi
push edi
test edx, edx
je 0x410da5
mov esi, dword [edx]
movzx eax, si
test esi, esi
je 0x410da5
mov word [ebp - 0x10], ax
add eax, 2
mov word [ebp - 0xe], ax
mov eax, dword [edx + 4]
mov dword [ebp - 0xc], eax
cmp esi, 0xfffe
jbe 0x410db3
mov eax, 0xc0000106
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
push 0x100
push 4
push dword [0x46cd04]
mov dword [ebp - 4], 0x100
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
nop
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x10]
push edi
push 2
push eax
push dword [ebp - 8]
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
mov esi, eax
test esi, esi
jns 0x410e1e
push edi
push 0
cmp esi, 0x80000005
jne 0x410e2e
push dword [0x46cd04]
mov edi, edi
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
push dword [ebp - 4]
push 4
push dword [0x46cd04]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
sub ebx, 1
jne 0x410dd0
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lfence
push dword [0x46cd04]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8