joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10003730
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x10006d11
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1000d2b0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
xor eax, eax
mov dword [esi], vtable.tinyxml2::XMLPrinter.0
mov byte [esi + 4], al
lea ecx, [esi + 0xc]
mov dword [esp + 0x20], eax
mov dword [esi + 8], ecx
mov dword [esi + 0x34], 0xa
mov dword [esi + 0x38], eax
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x40], edx
mov dl, byte [esp + 0x2c]
mov dword [esi + 0x44], ecx
mov ebx, 1
mov byte [esi + 0x3c], bl
mov dword [esi + 0x48], 0xffffffff
mov byte [esi + 0x4c], bl
mov byte [esi + 0x4d], dl
lea ecx, [esi + 0xd4]
mov dword [esi + 0xd0], ecx
mov dword [esi + 0xe8], 0x14
mov dword [esi + 0xec], eax
mov byte [esp + 0x20], 2
lea eax, [esi + 0x8e]
mov ecx, 0x40
lea ecx, [ecx]
mov byte [eax - 0x40], 0
mov byte [eax], 0
add eax, ebx
sub ecx, ebx
jne 0x100037d0
mov byte [esi + 0x70], bl
mov byte [esi + 0x74], bl
mov byte [esi + 0x75], bl
mov byte [esi + 0x8a], bl
mov byte [esi + 0x8c], bl
mov byte [esi + 0xb4], bl
mov byte [esi + 0xca], bl
mov byte [esi + 0xcc], bl
mov eax, dword [esi + 0xec]
add eax, ebx
cmp eax, dword [esi + 0xe8]
jle 0x1000385b
lea edi, [eax + eax]
push edi
call fcn.1000629e
mov edx, dword [esi + 0xec]
mov ebp, eax
mov eax, dword [esi + 0xd0]
push edx
push eax
push ebp
call sub.MSVCR90.dll_memcpy
mov eax, dword [esi + 0xd0]
lea ecx, [esi + 0xd4]
add esp, 0x10
cmp eax, ecx
je 0x1000384f
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [esi + 0xd0], ebp
mov dword [esi + 0xe8], edi
mov edx, dword [esi + 0xec]
mov eax, dword [esi + 0xd0]
mov byte [edx + eax], 0
add dword [esi + 0xec], ebx
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0xc
Function at 0x10005690
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x10006d9d
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x1000d2b0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov dword [esi], vtable.tinyxml2::XMLDocument.0
mov dword [esp + 0x18], 4
call sym.tinyxml2.dll_public:_void___thiscall_tinyxml2::XMLNode::DeleteChildren_void_
mov eax, dword [esi + 0x40]
xor edi, edi
push eax
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
mov dword [esi + 0x40], edi
lea edi, [esi + 0x128]
add esp, 4
mov ecx, edi
mov dword [edi], vtable.tinyxml2::MemPoolT_44_.0
call fcn.10002520
mov eax, dword [edi + 4]
lea ecx, [edi + 8]
cmp eax, ecx
je 0x1000570c
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [edi], vtable.tinyxml2::MemPool.0
lea edi, [esi + 0xdc]
mov ecx, edi
mov dword [edi], vtable.tinyxml2::MemPoolT_48_.0
call fcn.10002520
mov eax, dword [edi + 4]
lea edx, [edi + 8]
cmp eax, edx
je 0x10005738
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [edi], vtable.tinyxml2::MemPool.0
lea edi, [esi + 0x90]
mov ecx, edi
mov dword [edi], vtable.tinyxml2::MemPoolT_36_.0
call fcn.10002520
mov eax, dword [edi + 4]
lea ecx, [edi + 8]
cmp eax, ecx
je 0x10005764
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [edi], vtable.tinyxml2::MemPool.0
lea edi, [esi + 0x44]
mov ecx, edi
mov dword [edi], vtable.tinyxml2::MemPoolT_52_.0
call fcn.10002520
mov eax, dword [edi + 4]
lea edx, [edi + 8]
cmp eax, edx
je 0x1000578d
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov ecx, esi
mov dword [edi], vtable.tinyxml2::MemPool.0
mov dword [esp + 0x18], 0xffffffff
call sym.tinyxml2.dll_protected_virtual:_void___thiscall_tinyxml2::XMLNode::destructor_void_
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret

Function at 0x100063d0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1000d2b0]
jne 0x100063da
repz ret
jmp fcn.10006826
Function at 0x876058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.008761a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x87607e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x87606a
add dl, dl
jne 0x876089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8760dc
xor eax, eax
add dl, dl
jne 0x876096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x87617d
add dl, dl
jne 0x8760a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8760b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8760bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8760c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x8760d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x876075
mov eax, 1
add dl, dl
jne 0x8760ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8760f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8760e1
sub eax, ebx
mov ebx, 1
jne 0x876128
mov ecx, 1
add dl, dl
jne 0x87610e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x876119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x876105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x876075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x87613f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x87614a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x876136
cmp eax, 0x7d00
jae 0x87616d
cmp eax, 0x500
jb 0x876168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x876075
cmp eax, 0x7f
ja 0x876170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x876075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x87619e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x876075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x1030a058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1030a1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x1030a07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1030a06a
add dl, dl
jne 0x1030a089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1030a0dc
xor eax, eax
add dl, dl
jne 0x1030a096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1030a17d
add dl, dl
jne 0x1030a0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1030a0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1030a0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1030a0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x1030a0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1030a075
mov eax, 1
add dl, dl
jne 0x1030a0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1030a0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1030a0e1
sub eax, ebx
mov ebx, 1
jne 0x1030a128
mov ecx, 1
add dl, dl
jne 0x1030a10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1030a119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1030a105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1030a075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1030a13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1030a14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1030a136
cmp eax, 0x7d00
jae 0x1030a16d
cmp eax, 0x500
jb 0x1030a168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1030a075
cmp eax, 0x7f
ja 0x1030a170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1030a075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1030a19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x1030a075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x403700
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, ecx
push edi
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
test edi, edi
js 0x40377d
mov esi, dword [ebp + 8]
mov ecx, 1
mov edx, dword [esi]
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, edi
or ecx, eax
jge 0x403737
push edi
mov ecx, esi
call fcn.004036a0
mov edx, dword [esi]
push edi
push edx
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov edi, eax
mov ecx, edi
cmp edi, 0xffffffff
jne 0x40375e
mov ecx, dword [esi]
test ecx, ecx
je 0x403762
push dword [ecx - 8]
push ecx
call fcn.00489d9c
add esp, 8
mov ecx, eax
test ecx, ecx
js 0x40377d
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x40377d
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi]
mov word [eax + ecx*2], dx
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 4
push 0x80070057
call fcn.00403bb0
int3
Function at 0x4065b0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x224
mov eax, dword [0x4e706c]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
mov ebx, ecx
mov dword [esp + 8], 0
mov ecx, dword [ebp + 8]
push esi
push edi
mov eax, dword [ebx + 4]
or eax, 0x2001f
mov dword [esp + 0xc], ecx
push eax
push ecx
push dword [ebx]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
call fcn.004064c0
mov esi, eax
test esi, esi
je 0x406631
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x406618
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.0046e70f
mov esp, ebp
pop ebp
ret 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [esp + 0x20]
push eax
push 0
push 0
push 0
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 0x100
push eax
lea eax, [esp + 0x3c]
push eax
push 0
push dword [esp + 0x2c]
call edi
test eax, eax
jne 0x406699
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x14]
call fcn.004065b0
mov esi, eax
test esi, esi
jne 0x4066eb
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], 0x100
push eax
push esi
push esi
push esi
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x2c]
call edi
test eax, eax
je 0x406660
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x4066b2
push eax
call esi
mov dword [esp + 0x10], 0
push dword [esp + 0xc]
mov ecx, ebx
mov dword [esp + 0x18], 0
call fcn.00406740
mov ecx, dword [esp + 0x10]
mov edi, eax
test ecx, ecx
je 0x4066d2
push ecx
call esi
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.0046e70f
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x406618
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x22c]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0046e70f
mov esp, ebp
pop ebp
ret 4
Function at 0x407380
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4af353
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x4e706c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x42c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x20], 0
push 0x404
lea eax, [ebp - 0x424]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], 0
call fcn.00486d70
add esp, 0xc
mov dword [ebp - 0x424], 0
push 0x60
push 0
mov byte [ebp - 4], 1
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x430], esi
test esi, esi
jne 0x407439
push 2
push eax
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x430], eax
test esi, esi
jne 0x407439
call fcn.004057e0
mov edi, eax
jmp 0x407555
push dword [ebp - 0x428]
push dword [ebp - 0x42c]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x40745c
call fcn.004057e0
jmp 0x407548
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x42c], ebx
test ebx, ebx
jne 0x40747a
call fcn.004057e0
jmp 0x407548
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x428], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x40749b
mov edi, 0x8007000e
jmp 0x40754a
mov ecx, 2
mov byte [ebp - 4], 2
mul ecx
test edx, edx
ja 0x407590
jb 0x4074b9
cmp eax, 0xffffffff
ja 0x407590
cmp eax, 0x400
jbe 0x4074ce
push eax
lea ecx, [ebp - 0x424]
call fcn.004057b0
jmp 0x4074f4
lea eax, [ebp - 0x420]
mov dword [ebp - 0x424], eax
jmp 0x4074f4
mov dword [ebp - 4], 1
cmp dword [ebp - 0x424], 0
jne 0x40750b
mov edi, 0x8007000e
jmp 0x40754a
push edi
push dword [ebp - 0x424]
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x40752b
call fcn.004057e0
jmp 0x407548
mov eax, dword [ebp - 0x424]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x424]
call fcn.00407220
mov edi, eax
test esi, esi
je 0x407555
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x420]
cmp dword [ebp - 0x424], eax
je 0x407570
lea ecx, [ebp - 0x424]
call fcn.00405790
nop
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0046e70f
mov esp, ebp
pop ebp
ret 0x10
push 0x80070216
call fcn.00403bb0
int3
Function at 0x4082a0
Capabilities:
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4af498
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x4e706c]
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, dword [ebp + 0x20]
mov dword [ebp - 4], 0
mov eax, esi
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x80], 0
jb 0x4082ed
mov eax, dword [esi]
push 0xf0000000
xor ecx, ecx
mov dword [esi + 0x10], 0
push 1
push ecx
mov word [eax], cx
lea eax, [ebp - 0x7c]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x408429
lea eax, [ebp - 0x80]
push eax
push 0
push 0
push 0x8004
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
push 0
test eax, eax
jne 0x40833e
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x408429
cmp dword [ebp + 0x1c], 8
lea ecx, [ebp + 8]
mov eax, dword [ebp + 0x18]
cmovae ecx, dword [ebp + 8]
add eax, eax
push eax
push ecx
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
push 0
test eax, eax
je 0x408417
lea eax, [ebp - 0x84]
mov dword [ebp - 0x84], 0x14
push eax
lea eax, [ebp - 0x24]
push eax
push 2
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x408415
mov edi, dword [ebp - 0x84]
cmp edi, 0x14
ja 0x408415
push 0x52
lea eax, [ebp - 0x78]
push 0
push eax
call fcn.00486d70
add esp, 0xc
xor edx, edx
test edi, edi
je 0x4083dc
nop dword [eax]
movzx ecx, byte [ebp + edx - 0x24]
mov eax, ecx
and ecx, 0xf
shr eax, 4
movzx eax, word [eax*2 + str.0123456789abcdef]
mov word [ebp + edx*4 - 0x78], ax
movzx eax, word [ecx*2 + str.0123456789abcdef]
mov word [ebp + edx*4 - 0x76], ax
inc edx
cmp edx, edi
jb 0x4083b0
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea edx, [ebp - 0x78]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4083f6
sub edx, ecx
lea eax, [ebp - 0x78]
sar edx, 1
mov ecx, esi
push edx
push eax
call fcn.00407920
mov bl, 1
jmp 0x40842b
push 0
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
xor bl, bl
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x408461
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x408457
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408481
push edx
push ecx
call fcn.0046ec30
add esp, 8
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.0046e70f
mov esp, ebp
pop ebp
ret 0x1c
call fcn.00489b7c
int3
Function at 0x408490
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x4e706c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
mov eax, esi
mov dword [ebp - 8], 7
mov dword [ebp - 0xc], 0
cmp dword [esi + 0x14], 8
jb 0x4084bc
mov eax, dword [esi]
xor ecx, ecx
mov dword [esi + 0x10], 0
mov word [eax], cx
lea eax, [ebp - 0x10]
push eax
push 0x101
push ecx
push str.SoftwareMicrosoftCryptography
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40855a
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 8]
push eax
push 0
push str.MachineGuid
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x408551
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x408551
push edi
push eax
call fcn.0046ee77
mov edi, eax
add esp, 4
test edi, edi
je 0x408550
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 8]
push eax
push 0
push str.MachineGuid
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x408547
mov eax, dword [ebp - 0xc]
mov ecx, esi
shr eax, 1
dec eax
push eax
push edi
call fcn.00407920
push edi
call fcn.0046ec6e
add esp, 4
pop edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0046e70f
mov esp, ebp
pop ebp
ret 4
Function at 0x408570
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4af4c8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x4e706c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, esi
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x34], 0
cmp dword [esi + 0x14], 8
jb 0x4085b6
mov eax, dword [esi]
xor ecx, ecx
mov dword [esi + 0x10], 0
mov word [eax], cx
lea eax, [ebp - 0x38]
push eax
push 0x101
push ecx
push str.HardwareDescriptionSystem
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x408764
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x34]
push eax
push 0
lea eax, [ebp - 0x18]
push eax
push 0
push str.SystemBiosVersion
push dword [ebp - 0x38]
call ebx
test eax, eax
jne 0x40864a
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x40864a
push eax
call fcn.0046ee77
mov edi, eax
add esp, 4
test edi, edi
je 0x40864a
lea eax, [ebp - 0x34]
push eax
push edi
lea eax, [ebp - 0x18]
push eax
push 0
push str.SystemBiosVersion
push dword [ebp - 0x38]
call ebx
test eax, eax
jne 0x408641
mov eax, dword [ebp - 0x34]
mov ecx, esi
shr eax, 1
push eax
push edi
call fcn.00407920
push edi
call fcn.0046ec6e
add esp, 4
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x408654
mov ecx, dword [esi]
mov eax, dword [esi + 0x10]
lea edi, [ecx + eax*2]
mov eax, esi
jb 0x408660
mov eax, dword [esi]
mov edx, edi
xor ecx, ecx
sub edx, eax
inc edx
shr edx, 1
cmp eax, edi
cmova edx, ecx
test edx, edx
je 0x408686
lea edi, [ecx + 0x3a]
cmp word [eax], 0
jne 0x40867e
mov word [eax], di
inc ecx
add eax, 2
cmp ecx, edx
jne 0x408675
lea eax, [ebp - 0x34]
push eax
push 0
lea eax, [ebp - 0x18]
push eax
push 0
push str.SystemBiosDate
push dword [ebp - 0x38]
call ebx
test eax, eax
jne 0x40875b
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x40875b
push eax
call fcn.0046ee77
mov edi, eax
add esp, 4
test edi, edi
je 0x40875b
lea eax, [ebp - 0x34]
push eax
push edi
lea eax, [ebp - 0x18]
push eax
push 0
push str.SystemBiosDate
push dword [ebp - 0x38]
call ebx
test eax, eax
jne 0x408752
mov eax, dword [ebp - 0x34]
xor ecx, ecx
shr eax, 1
dec eax
mov word [ebp - 0x30], cx
push eax
push edi
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
call fcn.00407920
mov dword [ebp - 4], 0
lea eax, [ebp - 0x30]
cmp dword [ebp - 0x1c], 8
mov ecx, esi
push dword [ebp - 0x20]
cmovae eax, dword [ebp - 0x30]
push eax
call fcn.0040c260
mov edx, dword [ebp - 0x1c]
cmp edx, 8
jb 0x408752
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x408748
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408782
push edx
push ecx
call fcn.0046ec30
add esp, 8
push edi
call fcn.0046ec6e
add esp, 4
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0046e70f
mov esp, ebp
pop ebp
ret 4
call fcn.00489b7c
int3
Function at 0x40b350
Capabilities:
Get common file path
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x45c
mov eax, dword [0x4e706c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x420]
push esi
push edi
push 0x208
push 0
push eax
mov dword [ebp - 0x45c], ebx
call fcn.00486d70
add esp, 0xc
test ebx, ebx
je 0x40b547
push 0x204
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00486d70
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x102
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x40b541
push 0
push 0
push 0
push 0
push 0
push 0
push 3
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0048d15e
add esp, 0x24
test eax, eax
jne 0x40b541
lea eax, [ebp - 0xc]
push eax
push 0x4c8fa0
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.0040c790
add esp, 0x10
lea eax, [ebp - 0x420]
push 0
push 0x80
push 3
push 0
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40b541
push 0
lea eax, [ebp - 0x424]
mov dword [ebp - 0x428], 0
push eax
push 8
lea eax, [ebp - 0x458]
mov dword [ebp - 0x430], 0
push eax
push 0xc
lea eax, [ebp - 0x430]
mov dword [ebp - 0x42c], 0
push eax
xorps xmm0, xmm0
mov dword [ebp - 0x424], 0
push 0x2d1400
push ebx
movups xmmword [ebp - 0x458], xmm0
movups xmmword [ebp - 0x448], xmm0
movq qword [ebp - 0x438], xmm0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x40b541
mov edi, dword [ebp - 0x454]
test edi, edi
je 0x40b547
push edi
call fcn.0046ee77
mov esi, eax
add esp, 4
test esi, esi
je 0x40b4c5
push edi
push 0
push esi
call fcn.00486d70
add esp, 0xc
jmp 0x40b4c7
xor esi, esi
push 0
lea eax, [ebp - 0x424]
push eax
push edi
push esi
push 0xc
lea eax, [ebp - 0x430]
push eax
push 0x2d1400
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x40b515
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor edi, edi
test esi, esi
je 0x40b500
push esi
call fcn.0046ec6e
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046e70f
mov esp, ebp
pop ebp
ret 8
test esi, esi
je 0x40b4f1
mov eax, dword [esi + 0x18]
test eax, eax
je 0x40b4f1
add eax, esi
je 0x40b4f1
mov ecx, dword [ebp - 0x45c]
push eax
call fcn.0040b270
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 1
jmp 0x40b4f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046e70f
mov esp, ebp
pop ebp
ret 8