joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4542d0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5021d2
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x54e938]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xor eax, eax
xor ebx, ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], eax
mov byte [esi + 0x58], bl
mov dword [esi + 8], ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov eax, dword [0x50ff0c]
mov dword [esi + 0x2c], eax
mov ecx, dword [0x50ff10]
mov dword [esi + 0x30], ecx
mov edx, dword [0x50ff14]
mov dword [esi + 0x34], edx
mov eax, dword [0x50ff18]
mov dword [esi + 0x38], eax
mov dword [esi + 0x5c], 0xffffffff
mov dword [esi + 0x60], ebx
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x80], ebx
mov dword [esi + 0x84], ebx
mov dword [esi + 0x8c], ebx
mov dword [esi + 0x90], ebx
mov dword [esi + 0x94], ebx
mov dword [esi + 0x98], ebx
xor ecx, ecx
mov dword [esi + 0xb0], 7
mov dword [esi + 0xac], ebx
mov word [esi + 0x9c], cx
lea edx, [esi + 0x64]
push edx
mov byte [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x60], eax
cmp eax, ebx
jne 0x4543d0
lea ecx, [ebp - 0x20]
call fcn.004e0f91
push 0x53d2dc
lea eax, [ebp - 0x20]
push eax
call fcn.004e1169
push esi
call fcn.00420c30
mov ecx, eax
call fcn.00453c50
mov dword [esi + 0x5c], eax
cmp eax, ebx
jge 0x4543fa
lea ecx, [ebp - 0x20]
call fcn.004e0f91
push 0x53d2dc
lea ecx, [ebp - 0x20]
push ecx
call fcn.004e1169
push 0x551c20
push 0x10010
call fcn.004186bb
mov edi, eax
add esp, 8
cmp edi, ebx
je 0x454437
push 0x10000
lea edx, [edi + 8]
push ebx
push edx
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 0x10008], ebx
mov dword [edi + 0x1000c], ebx
call fcn.004e15a0
add esp, 0xc
jmp 0x454439
xor edi, edi
mov dword [ebp - 0x14], edi
mov byte [ebp - 4], 5
cmp edi, ebx
je 0x454450
push 0x41
push edi
push esi
call fcn.004562c0
add esp, 0xc
push edi
call fcn.00406ec9
add esp, 4
mov eax, esi
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 0x457540
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5025ee
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x54e938]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.004e032e
mov dword [ebp - 4], 0
push 4
call fcn.004051ca
mov edi, eax
add esp, 4
mov dword [ebp - 0x18], edi
mov byte [ebp - 4], 1
test edi, edi
je 0x4575cf
call fcn.004dff22
mov dword [edi], eax
call fcn.004dfce1
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.004dfc16
mov byte [ebp - 4], 2
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x4575c1
inc eax
mov dword [ebx + 4], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.004dfc3e
jmp 0x4575d1
xor edi, edi
mov byte [ebp - 4], 0
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov dword [ebp - 4], 0xffffffff
mov eax, esi
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 0x458cd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x502a29
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x54e938]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x34], edi
mov dword [ebp - 4], 1
cmp dword [edi], 0
jne 0x458e0b
lea esi, [edi + 8]
push 0x5103c8
push esi
call fcn.004461c0
add esp, 8
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
call fcn.00458c70
mov byte [ebp - 4], 2
push 0
push 0
call fcn.0040e980
mov eax, dword [0x551374]
add esp, 8
mov esi, 0x10
test eax, eax
je 0x458de4
cmp eax, 2
je 0x458de4
cmp dword [0x551398], 0
jne 0x458d70
mov ecx, dword [0x55139c]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x458d7b
mov ecx, dword [0x551394]
call fcn.0040ec60
mov byte [ebp - 4], 3
call fcn.004589e0
test al, al
je 0x458dbd
mov edx, dword [0x55137c]
push 2
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], esi
jae 0x458da6
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
push 0
lea ecx, [ebp - 0x30]
push ecx
push edx
push eax
mov eax, dword [0x55137c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov byte [ebp - 4], 2
cmp dword [0x551398], 0
jne 0x458dd9
mov ecx, dword [0x55139c]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x458de4
mov ecx, dword [0x551394]
call fcn.0040ece0
mov byte [ebp - 4], 1
cmp dword [ebp - 0x18], esi
jb 0x458df9
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00406ec9
add esp, 4
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
mov byte [ebp - 4], 0
mov eax, dword [edi + 0xac]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xffffffff
lea ecx, [edi + 8]
call fcn.00457a20
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401316
mov esp, ebp
pop ebp
ret
Function at 0x45a3b0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 8
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
push esi
push 0x20019
push 0
push eax
push ecx
mov dword [esi], 0
mov dword [esi + 4], 0xffffffff
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x45a407
push eax
push eax
push eax
push eax
push eax
push eax
push eax
lea edx, [ebp + 0xc]
push edx
push eax
push eax
push eax
mov dword [ebp + 0xc], eax
mov eax, dword [esi]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov ecx, dword [esi]
test eax, eax
je 0x45a41c
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov word [esi + 8], ax
mov dword [esi], 0
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
dec eax
mov dword [esi + 4], eax
test ecx, ecx
je 0x45a450
test eax, eax
js 0x45a450
lea edx, [ebp - 8]
push edx
push 0
push 0
push 0
lea edx, [ebp + 0xc]
push edx
lea edx, [esi + 8]
push edx
push eax
push ecx
mov dword [ebp + 0xc], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x45a456
xor eax, eax
mov word [esi + 8], ax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x45a6a0
Capabilities:
Create process on windows
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5036c8
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push esi
push edi
mov eax, dword [0x54e938]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
push 0x44
lea eax, [ebp - 0x64]
push edi
push eax
mov dword [ebp - 0x10], edi
call fcn.004e15a0
mov esi, dword [ebp + 0xc]
add esp, 0xc
cmp byte [esi + 8], 0
mov dword [ebp - 0x64], 0x44
je 0x45a6f3
mov dword [ebp - 0x5c], 0x50d97c
xor ecx, ecx
cmp byte [esi + 1], cl
mov dword [ebp - 0x38], 1
setne cl
xor ebx, ebx
dec ecx
and ecx, 5
mov word [ebp - 0x34], cx
cmp dword [esi + 0xc], edi
je 0x45a716
mov ebx, 0x1000004
lea ecx, [ebp - 0x20]
call fcn.004135c0
mov dword [ebp - 4], edi
cmp dword [esi + 4], edi
jne 0x45a79e
mov edi, dword [ebp + 8]
cmp dword [edi + 0x14], 8
jb 0x45a731
mov edi, dword [edi]
lea ecx, [ebp - 0x20]
call fcn.0042f960
push eax
movzx eax, byte [esi + 2]
lea edx, [ebp - 0x64]
push edx
push 0
push 0
push ebx
push eax
push 0
push 0
push edi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x45a79e
mov eax, dword [esi + 0xc]
xor edi, edi
cmp eax, edi
je 0x45a7cb
mov ecx, dword [ebp - 0x20]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
jne 0x45a7c1
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x20]
push 1
push eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
setne al
test al, al
je 0x45a79b
push 0xea60
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x45a79e
mov dword [ebp - 4], edi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00432f90
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
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp byte [esi], 0
je 0x45a7dc
mov eax, dword [ebp - 0x20]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, dword [ebp + 0x10]
cmp esi, edi
je 0x45a7ed
lea ecx, [ebp - 0x20]
call fcn.00438e20
mov dword [esi], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00432f90
mov al, 1
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 0x45b410
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50398b
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x54e938]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
cmp byte [esi], 0
je 0x45b45d
cmp dword [esi + 0x14], 0
je 0x45b45d
cmp dword [esi + 0x18], 8
lea eax, [esi + 4]
jb 0x45b456
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov dword [ebp - 4], 0xffffffff
cmp dword [esi + 0x18], 8
jb 0x45b476
mov eax, dword [esi + 4]
push eax
call fcn.00406ec9
add esp, 4
xor ecx, ecx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
mov word [esi + 4], cx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x45b4a0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
push 0
push 0
push 0x5513b4
call esi
test eax, eax
jne 0x45b4f2
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x45b4dc
push str.advapi32.dll
call fcn.004297a0
add esp, 4
test eax, eax
je 0x45b4f2
push str.SystemFunction036
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
push eax
push 0x5513b4
call esi
mov eax, dword [0x5513b4]
mov dword [ebp - 8], 0
pop esi
test eax, eax
je 0x45b50f
push 4
lea ecx, [ebp - 8]
push ecx
call eax
test al, al
jne 0x45b536
lea edx, [ebp - 4]
push edx
mov dword [ebp - 4], 0
call fcn.00410990
add esp, 4
test eax, eax
jne 0x45b52d
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
call fcn.004e31f8
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x45b540
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x54e938]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
push 0
push 0x5513b8
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
jne 0x45b698
push 0x11c
push eax
mov byte [ebp - 0x121], al
lea eax, [ebp - 0x120]
push eax
call fcn.004e15a0
add esp, 0xc
lea ecx, [ebp - 0x120]
push ecx
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x45b67e
mov eax, dword [ebp - 0x11c]
cmp eax, 6
jne 0x45b5c4
mov eax, dword [ebp - 0x118]
test eax, eax
jne 0x45b5ca
cmp word [ebp - 0xc], ax
ja 0x45b5ca
jmp 0x45b67e
jbe 0x45b67e
push str.bcrypt.dll
call fcn.004297a0
add esp, 4
test eax, eax
je 0x45b67e
push 0x5105a8
call fcn.004297a0
add esp, 4
test eax, eax
je 0x45b67e
push esi
push edi
push 0
push str.Microsoft_Primitive_Provider
push str.ECDH_P256
lea edx, [ebp - 0x12c]
push edx
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x128], 0
call sub.ncrypt.dll_BCryptOpenAlgorithmProvider
mov edi, eax
mov eax, dword [ebp - 0x12c]
test eax, eax
je 0x45b636
push 0
push eax
call sub.ncrypt.dll_BCryptCloseAlgorithmProvider
push 0
push str.Microsoft_Software_Key_Storage_Provider
lea eax, [ebp - 0x128]
push eax
call sub.ncrypt.dll_NCryptOpenStorageProvider
mov esi, eax
mov eax, dword [ebp - 0x128]
test eax, eax
je 0x45b661
push eax
call sub.ncrypt.dll_NCryptFreeObject
mov eax, dword [ebp - 0x128]
test edi, edi
jne 0x45b67c
test esi, esi
jne 0x45b67c
cmp dword [ebp - 0x12c], esi
je 0x45b67c
test eax, eax
je 0x45b67c
mov byte [ebp - 0x121], 1
pop edi
pop esi
xor ecx, ecx
cmp byte [ebp - 0x121], cl
push 0
sete cl
inc ecx
push ecx
push 0x5513b8
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [0x5513b8], 1
sete al
xor ecx, ebp
call fcn.00401316
mov esp, ebp
pop ebp
ret

Function at 0x45ba40
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], 0
test edi, edi
je 0x45ba68
call fcn.004076a0
cmp eax, 1
jl 0x45ba68
mov dword [ebp - 4], 0x10000
jmp 0x45ba6a
xor edi, edi
push 8
call fcn.004051ca
mov edx, dword [ebp - 4]
mov ebx, dword [ebp + 0x10]
add esp, 4
push 0
mov esi, eax
mov eax, dword [ebp + 0xc]
push edx
push esi
push 0x45ba10
test ebx, ebx
push edi
setne cl
push 0
mov dword [esi], eax
mov byte [esi + 4], cl
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x45bab1
push esi
call fcn.00406ec9
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x45bac0
pop edi
mov dword [ebx], eax
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45e670
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
xor al, al
test esi, esi
je 0x45e6d8
push ebx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x45e6d7
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
push esi
call edi
test eax, eax
je 0x45e6bc
push 0
push 0x4d49a0
push ebx
call dword [sym.imp.USER32.dll_EnumThreadWindows]
push 0
push 0
push 0x12
push ebx
call dword [sym.imp.USER32.dll_PostThreadMessageW]
push 0x1388
push esi
call edi
test eax, eax
jne 0x45e6c3
pop edi
pop ebx
mov al, 1
pop esi
pop ebp
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0xffffffffffffffff
push esi
call edi
test eax, eax
sete al
pop edi
pop ebx
pop esi
pop ebp
ret

Function at 0x45edd0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x54e938]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x214]
push ecx
xor ebx, ebx
push esi
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x45eec3
cmp eax, ebx
jne 0x45ee20
cmp dword [ebp - 0x214], ebx
je 0x45eec3
push ebx
push 1
push ebx
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
cmp esi, ebx
je 0x45eec3
push edi
push 1
push ebx
push ebx
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
cmp edi, ebx
je 0x45eebb
push 0x208
lea eax, [ebp - 0x20e]
xor edx, edx
push ebx
push eax
mov word [ebp - 0x210], dx
call fcn.004e15a0
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x210]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call sub.PSAPI.DLL_GetMappedFileNameW
test eax, eax
je 0x45eeb4
lea eax, [ebp - 0x210]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45ee90
mov ecx, dword [ebp - 0x218]
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x210]
push edx
call fcn.00406300
mov bl, 1
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00401316
mov esp, ebp
pop ebp
ret
Function at 0x45f650
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x54e938]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x218], eax
test edi, edi
je 0x45f77b
cmp word [edi], 0x5c
jne 0x45f77b
cmp word [edi + 2], 0x5c
jne 0x45f77b
mov ecx, dword [0x512f44]
mov dx, word [0x512f48]
push ebx
mov dword [ebp - 0xc], ecx
mov word [ebp - 8], dx
mov ebx, 0x43
push esi
lea eax, [ebp - 0xc]
push eax
mov word [ebp - 0xc], bx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 4
jne 0x45f72e
lea ecx, [ebp - 0x21c]
push ecx
lea edx, [ebp - 0x214]
push edx
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0x21c], 0x104
call sub.MPR.dll_WNetGetConnectionW
test eax, eax
jne 0x45f72e
lea eax, [ebp - 0x214]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45f6f0
sub eax, edx
sar eax, 1
mov esi, eax
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45f706
sub eax, edx
sar eax, 1
cmp eax, esi
jbe 0x45f72e
push esi
lea ecx, [ebp - 0x214]
push ecx
push edi
call fcn.0041799b
add esp, 0xc
test eax, eax
je 0x45f74c
inc ebx
cmp bx, 0x5a
jbe 0x45f6a8
pop esi
pop ebx
xor al, al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401316
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x218]
lea edx, [ebp - 0xc]
push edx
mov ecx, ebx
call fcn.00418650
lea eax, [edi + esi*2]
push eax
mov ecx, ebx
call fcn.00429a40
pop esi
pop ebx
mov al, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401316
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
pop edi
call fcn.00401316
mov esp, ebp
pop ebp
ret
Function at 0x45f790
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [eax + 0x14], 8
mov byte [ebp - 1], 0
mov dword [ebp - 8], edi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
jb 0x45f7b8
mov eax, dword [eax]
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 8]
push ecx
push 0x20019
push edi
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x45f85b
mov esi, dword [ebp + 0x14]
cmp dword [esi + 0x14], 8
mov dword [ebp + 0x10], edi
jb 0x45f7e5
mov eax, dword [esi]
jmp 0x45f7e7
mov eax, esi
mov edx, dword [ebp - 8]
lea ecx, [ebp + 0x10]
push ecx
push edi
push edi
push edi
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, edi
je 0x45f802
cmp eax, 0x7a
jne 0x45f849
mov eax, dword [ebp + 0x10]
cmp eax, edi
jbe 0x45f849
shr eax, 1
push edi
add eax, 2
push eax
lea ecx, [ebp - 0x18]
call fcn.0045b770
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
sub eax, ebx
sar eax, 1
add eax, eax
cmp dword [esi + 0x14], 8
mov dword [ebp + 0x10], eax
jb 0x45f82f
mov esi, dword [esi]
mov edx, dword [ebp - 8]
lea ecx, [ebp + 0x10]
push ecx
push ebx
push edi
push edi
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x45f849
mov byte [ebp - 1], 1
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 1], 0
mov edx, ebx
jne 0x45f860
mov edx, 0x50d97c
mov esi, dword [ebp + 8]
mov dword [esi + 0x10], edi
xor ecx, ecx
mov eax, edx
mov dword [esi + 0x14], 7
mov word [esi], cx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45f877
sub eax, edi
sar eax, 1
push eax
push edx
mov ecx, esi
call fcn.00406300
test ebx, ebx
je 0x45f89c
push ebx
call fcn.00406ec9
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x464c10
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 4], ebx
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
call fcn.00433080
test al, al
je 0x464c65
mov eax, dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x1388
push eax
call edi
mov eax, dword [esi]
lea ecx, [ebp - 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x464c54
cmp dword [ebp - 4], 0x103
jne 0x464c65
mov edx, dword [esi]
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esi]
push 0xffffffffffffffff
push eax
call edi
mov edi, dword [esi + 0x20]
cmp edi, ebx
je 0x464c7f
mov ecx, edi
call fcn.00465d40
push edi
call fcn.00406ec9
add esp, 4
mov dword [esi + 0x20], ebx
mov eax, dword [esi + 0x2c]
cmp eax, ebx
je 0x464c92
push eax
call fcn.00402d0e
add esp, 4
mov dword [esi + 0x2c], ebx
mov edi, dword [esi + 0x20]
cmp edi, ebx
je 0x464ca9
mov ecx, edi
call fcn.00465d40
push edi
call fcn.00406ec9
add esp, 4
mov eax, dword [esi + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, ebx
je 0x464cd2
cmp eax, 0xffffffff
je 0x464cd2
call fcn.00416c40
mov eax, dword [esi + 0x18]
push eax
call edi
test eax, eax
jne 0x464ccf
call fcn.0040c5c0
mov dword [esi + 0x18], ebx
mov eax, dword [esi + 0x14]
cmp eax, ebx
je 0x464cf5
cmp eax, 0xffffffff
je 0x464cf5
call fcn.00416c40
mov eax, dword [esi + 0x14]
push eax
call edi
test eax, eax
jne 0x464cf2
call fcn.0040c5c0
mov dword [esi + 0x14], ebx
mov eax, dword [esi + 0x10]
cmp eax, ebx
je 0x464d18
cmp eax, 0xffffffff
je 0x464d18
call fcn.00416c40
mov eax, dword [esi + 0x10]
push eax
call edi
test eax, eax
jne 0x464d15
call fcn.0040c5c0
mov dword [esi + 0x10], ebx
mov ecx, esi
call fcn.00432f90
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret