joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44f01b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [esi], eax
xor eax, eax
push eax
push eax
push esi
push 0x44eed5
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
pop esi
pop ebp
ret 4

Function at 0x452441
Capabilities:
Hide graphical window

Disassembly:
push 0
push dword [ecx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
ret

Function at 0x4533b1
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x4533bf
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x10]
not eax
mov ecx, 0xff
cmp edi, 8
jb 0x45347a
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4a24b8]
movzx ebx, byte [edx + 1]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4a24b8]
movzx ebx, byte [edx + 2]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4a24b8]
movzx ebx, byte [edx + 3]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4a24b8]
movzx ebx, byte [edx + 4]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4a24b8]
movzx ebx, byte [edx + 5]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4a24b8]
movzx ebx, byte [edx + 6]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4a24b8]
movzx ebx, byte [edx + 7]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4a24b8]
add edx, 8
sub edi, 8
dec esi
jne 0x4533dd
pop ebx
test edi, edi
je 0x453493
movzx esi, byte [edx]
xor esi, eax
and esi, ecx
shr eax, 8
xor eax, dword [esi*4 + 0x4a24b8]
inc edx
dec edi
jne 0x45347e
pop edi
not eax
pop esi
pop ebp
ret

Function at 0x453499
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
movsx edx, byte [ebp + 0xc]
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x4a24b8]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x4a24b8]
pop esi
mov dword [ecx + 8], eax
pop ebp
ret

Function at 0x45397a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x10]
cmp byte [esi], 0
je 0x4539ae
push 0
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4539a9
mov byte [esi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x4539d6
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x4539bf
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0x14]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.00461410
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop esi
pop ebp
ret
Function at 0x454b7b
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4c6260]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test ebx, ebx
je 0x454baf
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x454baf
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx ecx, word [esi]
test cx, cx
je 0x454c59
mov eax, esi
mov edx, esi
cmp cx, 0x2f
je 0x454bcb
cmp cx, 0x5c
jne 0x454bcd
mov eax, edx
add edx, 2
movzx ecx, word [edx]
test cx, cx
jne 0x454bbf
cmp eax, esi
je 0x454c0d
sub eax, esi
push edi
sar eax, 1
lea edi, [eax + eax]
push edi
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.00461410
xor eax, eax
mov word [ebp + edi - 0x414], ax
lea eax, [ebp - 0x414]
push eax
push ebx
call fcn.00454b7b
add esp, 0x14
pop edi
xor eax, eax
mov word [ebp - 0x20c], ax
test ebx, ebx
je 0x454c29
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00463101
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.004630d0
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x454c59
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00461ffa
leave
ret

Function at 0x456492
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x45653d
cmp dword [esi + 4], 0xffffffff
jne 0x45653d
push edi
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push edi
call fcn.00461f93
movzx eax, word [esi + eax*2 + 0x242]
pop ecx
cmp eax, 0x5c
je 0x4564e4
cmp eax, 0x2f
je 0x4564e4
push 0x49bf18
push edi
call fcn.004630d0
pop ecx
pop ecx
cmp dword [ebp + 0x10], 1
pop edi
jne 0x456506
push 1
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x456506
mov eax, 0x2000000
jmp 0x456542
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0045379f
add esp, 0x10
test eax, eax
jne 0x456524
mov eax, dword [ebp + 0x10]
jmp 0x456542
push eax
call fcn.00455f67
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
pop ecx
add eax, 0x200
jmp 0x456542
mov eax, 0x1000000
pop esi
pop ebp
ret 0xc
Function at 0x457f0b
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x457f19
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x10]
not eax
mov ecx, 0xff
cmp edi, 8
jb 0x457fd4
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4a3318]
movzx ebx, byte [edx + 1]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4a3318]
movzx ebx, byte [edx + 2]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4a3318]
movzx ebx, byte [edx + 3]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4a3318]
movzx ebx, byte [edx + 4]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4a3318]
movzx ebx, byte [edx + 5]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4a3318]
movzx ebx, byte [edx + 6]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4a3318]
movzx ebx, byte [edx + 7]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4a3318]
add edx, 8
sub edi, 8
dec esi
jne 0x457f37
pop ebx
test edi, edi
je 0x457fed
movzx esi, byte [edx]
xor esi, eax
and esi, ecx
shr eax, 8
xor eax, dword [esi*4 + 0x4a3318]
inc edx
dec edi
jne 0x457fd8
pop edi
not eax
pop esi
pop ebp
ret

Function at 0x457ff3
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
movsx edx, byte [ebp + 0xc]
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x4a3318]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x4a3318]
pop esi
mov dword [ecx + 8], eax
pop ebp
ret
Function at 0x458586
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
cmp byte [esi + 0x2d], 0
push edi
mov edi, dword [ebp + 0xc]
je 0x4585fb
mov eax, dword [esi + 0x3c]
xor ebx, ebx
cmp eax, ebx
je 0x4585b2
cmp dword [esi + 0x40], edi
jae 0x4585b2
push eax
call fcn.00461b87
pop ecx
mov dword [esi + 0x3c], ebx
cmp dword [esi + 0x3c], ebx
jne 0x4585c7
lea eax, [edi + edi]
push eax
call fcn.0045fbe4
pop ecx
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edi
push edi
push dword [ebp + 8]
push dword [esi + 0x3c]
call fcn.00461410
add esp, 0xc
test edi, edi
je 0x4585f8
mov eax, dword [esi + 0x3c]
movzx eax, byte [ebx + eax]
push eax
lea eax, [esi + 0x30]
push eax
call fcn.00458060
pop ecx
pop ecx
mov ecx, dword [esi + 0x3c]
mov byte [ebx + ecx], al
inc ebx
cmp ebx, edi
jb 0x4585da
mov edx, dword [esi + 0x3c]
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x45862a
mov eax, dword [esi + 0x24]
lea ebx, [eax + edi]
cmp ebx, dword [esi + 0x28]
jb 0x458616
mov dword [esi + 0x14], 0x30000
jmp 0x45864c
push edi
push edx
add eax, ecx
push eax
call fcn.00461410
add esp, 0xc
add dword [esi + 0x24], edi
mov eax, edi
jmp 0x45864e
mov eax, dword [esi + 4]
test eax, eax
je 0x458645
push 0
lea ecx, [ebp + 8]
push ecx
push edi
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp + 8]
jmp 0x45864e
mov dword [esi + 0x14], 0x1000000
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x45893f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov ecx, dword [esi + 0x84]
push edi
test ecx, ecx
je 0x458995
mov eax, dword [esi + 0x8c]
mov edi, dword [esi + 0x88]
cmp eax, edi
jae 0x4589d1
sub edi, eax
cmp edi, dword [ebp + 0xc]
jbe 0x45896a
mov edi, dword [ebp + 0xc]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.00461410
add dword [esi + 0x8c], edi
add dword [esi + 0x74], edi
push edi
push dword [ebp + 8]
push dword [esi + 0x78]
call fcn.00457f0b
add esp, 0x18
mov dword [esi + 0x78], eax
mov eax, edi
jmp 0x4589d3
mov eax, dword [esi + 0x7c]
test eax, eax
je 0x4589ca
push 0
lea ecx, [ebp + 0xc]
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4589d1
mov edi, dword [ebp + 0xc]
add dword [esi + 0x74], edi
push edi
push dword [ebp + 8]
push dword [esi + 0x78]
call fcn.00457f0b
add esp, 0xc
jmp 0x45898e
mov dword [esi + 0x14], 0x1000000
xor eax, eax
pop edi
pop esi
pop ebp
ret 8
Function at 0x45931b
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 7
pop ecx
lea eax, [edi - 1]
cmp ecx, eax
sbb al, al
inc al
push str.bad_pack_level
push eax
push esi
call fcn.00456b7e
xor ebx, ebx
add esp, 0xc
mov dword [esi + 0x6af78], ebx
cmp dword [esi + 0x6af70], ebx
jne 0x459366
mov dword [esi + 0x6af78], 1
mov dword [esi + 0x6af70], 0x10000
push 0x1fffc
lea eax, [esi + 0x4af70]
push ebx
push eax
mov dword [esi + 0x6af6c], ebx
call fcn.00461390
mov eax, edi
movzx ecx, word [eax*8 + 0x4a32ca]
mov dword [esi + 0x6af98], ecx
movzx ecx, word [eax*8 + 0x4a32c8]
mov dword [esi + 0x6af9c], ecx
movzx ecx, word [eax*8 + 0x4a32cc]
mov dword [esi + 0x6afa0], ecx
movzx eax, word [eax*8 + 0x4a32ce]
add esp, 0xc
mov dword [esi + 0x6af94], eax
cmp edi, 2
jg 0x4593c9
mov eax, dword [ebp + 0x10]
or word [eax], 4
jmp 0x4593d5
cmp edi, 8
jl 0x4593d5
mov eax, dword [ebp + 0x10]
or word [eax], 2
push 0x10000
lea edi, [esi + 0x1af70]
push edi
push esi
mov dword [esi + 0x6af84], ebx
mov dword [esi + 0x6af74], ebx
call dword [esi + 0xc]
add esp, 0xc
mov dword [esi + 0x6af90], eax
cmp eax, ebx
je 0x45943c
cmp eax, 0xffffffff
je 0x45943c
mov dword [esi + 0x6af8c], ebx
cmp eax, 0x106
jae 0x459417
push esi
call fcn.00457619
pop ecx
mov dword [esi + 0x6af7c], ebx
xor eax, eax
movzx ecx, byte [edi + eax]
shl ebx, 5
xor ebx, ecx
and ebx, 0x7fff
inc eax
mov dword [esi + 0x6af7c], ebx
cmp eax, 2
jb 0x45941f
jmp 0x45944c
mov dword [esi + 0x6af8c], 1
mov dword [esi + 0x6af90], ebx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x459a9a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x6af80], 2
cmp dword [esi + 0x6af90], ebx
je 0x459cb2
push edi
mov edi, 0x7fff
cmp dword [esi + 0x6af90], 3
jb 0x459b14
mov ecx, dword [esi + 0x6af84]
movzx eax, byte [ecx + esi + 0x1af72]
mov edx, dword [esi + 0x6af7c]
shl edx, 5
xor eax, edx
and eax, edi
mov dword [esi + 0x6af7c], eax
mov eax, dword [esi + eax*4 + 0x4af70]
and ecx, edi
mov dword [esi + ecx*4 + 0x2af70], eax
mov ecx, dword [esi + 0x6af84]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x6af7c]
mov dword [esi + eax*4 + 0x4af70], ecx
cmp dword [ebp - 4], 0
je 0x459b57
mov eax, dword [esi + 0x6af84]
sub eax, dword [ebp - 4]
cmp eax, 0x7efa
ja 0x459b57
mov ecx, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], ecx
jbe 0x459b3e
mov dword [esi + 0x6afa0], ecx
push dword [ebp - 4]
push esi
call fcn.00457452
mov ebx, eax
mov eax, dword [esi + 0x6af90]
pop ecx
pop ecx
cmp ebx, eax
jbe 0x459b57
mov ebx, eax
cmp ebx, 3
jb 0x459c2c
lea eax, [ebx - 3]
push eax
mov eax, dword [esi + 0x6af84]
sub eax, dword [esi + 0x6af88]
push eax
push esi
call fcn.00456f61
sub dword [esi + 0x6af90], ebx
add esp, 0xc
mov dword [ebp + 8], eax
mov eax, dword [esi + 0x6af90]
cmp ebx, dword [esi + 0x6af98]
ja 0x459be9
cmp eax, 3
jb 0x459be9
dec ebx
inc dword [esi + 0x6af84]
mov ecx, dword [esi + 0x6af84]
movzx eax, byte [esi + ecx + 0x1af72]
mov edx, dword [esi + 0x6af7c]
shl edx, 5
xor eax, edx
and eax, edi
mov dword [esi + 0x6af7c], eax
mov eax, dword [esi + eax*4 + 0x4af70]
and ecx, edi
dec ebx
mov dword [esi + ecx*4 + 0x2af70], eax
mov ecx, dword [esi + 0x6af84]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x6af7c]
mov dword [esi + eax*4 + 0x4af70], ecx
jne 0x459b97
jmp 0x459c4f
add dword [esi + 0x6af84], ebx
mov ecx, dword [esi + 0x6af84]
movzx eax, byte [ecx + esi + 0x1af70]
mov dword [esi + 0x6af7c], eax
movzx ecx, byte [ecx + esi + 0x1af71]
shl eax, 5
push str.Call_UPDATE_HASH___MIN_MATCH_3_more_times
xor ecx, eax
and ecx, edi
push 1
push esi
xor ebx, ebx
mov dword [esi + 0x6af7c], ecx
call fcn.00456b7e
add esp, 0xc
jmp 0x459c55
mov eax, dword [esi + 0x6af84]
movzx eax, byte [eax + esi + 0x1af70]
push eax
push 0
push esi
call fcn.00456f61
add esp, 0xc
dec dword [esi + 0x6af90]
mov dword [ebp + 8], eax
inc dword [esi + 0x6af84]
cmp dword [ebp + 8], 0
je 0x459c91
mov eax, dword [esi + 0x6af74]
test eax, eax
js 0x459c6e
lea ecx, [eax + esi + 0x1af70]
jmp 0x459c70
xor ecx, ecx
mov edx, dword [esi + 0x6af84]
push 0
sub edx, eax
push edx
push ecx
push esi
call fcn.004598ee
mov eax, dword [esi + 0x6af84]
add esp, 0x10
mov dword [esi + 0x6af74], eax
cmp dword [esi + 0x6af90], 0x106
jae 0x459ca4
push esi
call fcn.00457619
pop ecx
cmp dword [esi + 0x6af90], 0
jne 0x459ac4
pop edi
mov eax, dword [esi + 0x6af74]
test eax, eax
js 0x459cc5
lea ecx, [eax + esi + 0x1af70]
jmp 0x459cc7
xor ecx, ecx
mov edx, dword [esi + 0x6af84]
push 1
sub edx, eax
push edx
push ecx
push esi
call fcn.004598ee
add esp, 0x10
pop esi
pop ebx
leave
ret
Function at 0x45a939
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push 0x67c
mov eax, 0x4990c0
call fcn.004626c9
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
push 0x208
mov dword [ebp - 0x680], eax
xor ebx, ebx
lea eax, [ebp - 0x420]
push ebx
push eax
call fcn.00461390
push dword [ebp - 0x680]
lea eax, [ebp - 0x420]
push eax
call fcn.00463101
lea eax, [ebp - 0x420]
push 0x49bf34
push eax
call fcn.004630d0
add esp, 0x1c
lea eax, [ebp - 0x670]
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x67c], eax
cmp eax, 0xffffffff
je 0x45ab7d
push 0x208
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.00461390
push dword [ebp - 0x680]
lea eax, [ebp - 0x218]
push eax
call fcn.00463101
lea eax, [ebp - 0x218]
push 0x49bf18
push eax
call fcn.004630d0
lea eax, [ebp - 0x644]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.004630d0
add esp, 0x24
test byte [ebp - 0x670], 0x10
je 0x45aab8
cmp word [ebp - 0x644], 0x2e
je 0x45ab56
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x674]
call fcn.004130cd
push ebx
push edi
lea ecx, [ebp - 0x674]
mov dword [ebp - 4], ebx
call fcn.0041a9f8
mov ecx, dword [ebp - 0x674]
mov ecx, dword [ecx - 8]
sub ecx, eax
push ecx
push eax
lea eax, [ebp - 0x684]
push eax
lea ecx, [ebp - 0x674]
call fcn.0041afb3
push eax
lea ecx, [ebp - 0x674]
mov byte [ebp - 4], 1
call fcn.004119d8
lea ecx, [ebp - 0x684]
mov byte [ebp - 4], bl
call fcn.0040e14c
push ebx
lea ecx, [ebp - 0x674]
call fcn.0040febf
push eax
push dword [esi]
call fcn.0045a885
pop ecx
pop ecx
push 0xffffffffffffffff
lea ecx, [ebp - 0x674]
call fcn.004111f6
push edi
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.0045a939
add esp, 0xc
lea ecx, [ebp - 0x674]
jmp 0x45ab4d
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x678]
call fcn.004130cd
push ebx
push edi
lea ecx, [ebp - 0x678]
mov dword [ebp - 4], 2
call fcn.0041a9f8
mov ecx, dword [ebp - 0x678]
mov ecx, dword [ecx - 8]
sub ecx, eax
push ecx
push eax
lea eax, [ebp - 0x688]
push eax
lea ecx, [ebp - 0x678]
call fcn.0041afb3
push eax
lea ecx, [ebp - 0x678]
mov byte [ebp - 4], 3
call fcn.004119d8
lea ecx, [ebp - 0x688]
mov byte [ebp - 4], 2
call fcn.0040e14c
lea eax, [ebp - 0x218]
push eax
push ebx
lea ecx, [ebp - 0x678]
call fcn.0040febf
push eax
push dword [esi]
call fcn.0045a81b
add esp, 0xc
push 0xffffffffffffffff
lea ecx, [ebp - 0x678]
call fcn.004111f6
lea ecx, [ebp - 0x678]
or dword [ebp - 4], 0xffffffff
call fcn.0040e14c
lea eax, [ebp - 0x670]
push eax
push dword [ebp - 0x67c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x45a9b4
push dword [ebp - 0x67c]
call dword [sym.imp.KERNEL32.dll_FindClose]
call fcn.0046274c
ret
Function at 0x45d071
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2d18
call fcn.00462010
mov eax, dword [0x4c6260]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ebp - 0x2d14], eax
cmp eax, esi
je 0x45d1d1
cmp dword [ebp + 0xc], esi
je 0x45d1d1
push ebx
push edi
mov dword [ebp - 0x2d10], esi
mov dword [ebp - 0x2d0c], esi
mov edi, 0x2710
push dword [ebp - 0x2d0c]
lea eax, [ebp - 0x204]
push 0x4a3d08
push 0x200
push eax
call fcn.0045cb3a
add esp, 0x10
push esi
push esi
push 3
push esi
push 3
push esi
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x45d1b4
push 0xc
lea eax, [ebp - 0x2d08]
push esi
push eax
mov dword [ebp - 0x2d18], esi
call fcn.00461390
push edi
lea eax, [ebp - 0x2cfc]
push esi
push eax
mov dword [ebp - 0x2d08], esi
mov dword [ebp - 0x2d04], esi
call fcn.00461390
add esp, 0x18
push esi
lea eax, [ebp - 0x2d18]
push eax
push edi
lea eax, [ebp - 0x2cfc]
push eax
push 0xc
lea eax, [ebp - 0x2d08]
push eax
push 0x2d1400
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x45d1a5
push 0x3e8
lea eax, [ebp - 0x5ec]
push esi
push eax
call fcn.00461390
lea eax, [ebp - 0x5ec]
push eax
push 1
push dword [ebp - 0x2ce4]
lea eax, [ebp - 0x2cfc]
push eax
call fcn.0045b8ee
add esp, 0x1c
lea eax, [ebp - 0x5ec]
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x2d14]
call fcn.0045c9fc
test eax, eax
jne 0x45d1a5
mov dword [ebp - 0x2d10], 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2d10], esi
jne 0x45d1c7
inc dword [ebp - 0x2d0c]
cmp dword [ebp - 0x2d0c], 0x10
jl 0x45d0b8
mov eax, dword [ebp - 0x2d10]
pop edi
pop ebx
jmp 0x45d1d3
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00461ffa
leave
ret
Function at 0x45d496
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4f8
mov eax, dword [0x4c6260]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
mov dword [ebp - 0x4f8], eax
cmp eax, ebx
je 0x45d649
cmp dword [ebp + 0xc], ebx
je 0x45d649
push 0x64
lea eax, [ebp - 0x68]
push ebx
push eax
call fcn.00461390
add esp, 0xc
lea eax, [ebp - 0x4e0]
push eax
push 8
push ebx
push 0x4adb78
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x45d627
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x4e8]
push eax
lea eax, [ebp - 0x2d4]
push eax
mov dword [ebp - 0x4e4], ebx
push ebx
jmp 0x45d600
lea eax, [ebp - 0x4ec]
push eax
push 1
push ebx
lea eax, [ebp - 0x2d4]
push eax
push dword [ebp - 0x4e0]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x45d5e2
lea eax, [ebp - 0x4f4]
push eax
lea eax, [ebp - 0x4dc]
push eax
lea eax, [ebp - 0x4f0]
push eax
push ebx
push 0x4a3d58
push dword [ebp - 0x4ec]
mov dword [ebp - 0x4f0], 1
mov dword [ebp - 0x4f4], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x45d5d6
push 0x64
lea eax, [ebp - 0xcc]
push ebx
push eax
call fcn.00461390
lea eax, [ebp - 0x4dc]
push 0x64
push eax
lea ecx, [ebp - 0xcc]
call fcn.0045d390
add esp, 0x14
test eax, eax
je 0x45d5d6
cmp byte [ebp - 0x68], bl
je 0x45d5c4
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0xcc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jns 0x45d5d6
lea eax, [ebp - 0xcc]
push eax
push 0x64
lea eax, [ebp - 0x68]
push eax
call fcn.0045c9fc
push dword [ebp - 0x4ec]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0x4e4]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x4e8]
push eax
lea eax, [ebp - 0x2d4]
push eax
push dword [ebp - 0x4e4]
push dword [ebp - 0x4e0]
mov dword [ebp - 0x4e8], 0x104
call esi
test eax, eax
je 0x45d51c
push dword [ebp - 0x4e0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
cmp byte [ebp - 0x68], bl
je 0x45d649
lea eax, [ebp - 0x68]
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x4f8]
call fcn.0045c9fc
xor ecx, ecx
test eax, eax
setns cl
mov eax, ecx
jmp 0x45d64b
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00461ffa
leave
ret
Function at 0x45d820
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50c
mov eax, dword [0x4c6260]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
test ebx, ebx
je 0x45d93a
cmp dword [ebp + 8], 0x20
jb 0x45d93a
mov esi, 0x400
push esi
lea eax, [ebp - 0x504]
push 0
push eax
mov dword [ebp - 0x50c], 1
mov dword [ebp - 0x508], esi
call fcn.00461390
add esp, 0xc
lea eax, [ebp - 0x508]
push eax
lea eax, [ebp - 0x504]
push eax
lea eax, [ebp - 0x50c]
push eax
push 0x4a3d90
push 0x4a3d78
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x45d93a
lea eax, [ebp - 0x504]
push eax
call fcn.004635e0
pop ecx
cmp eax, 0x40
jne 0x45d93a
push edi
push 0x20
lea eax, [ebp - 0x504]
push eax
mov edi, 0x80
push edi
lea eax, [ebp - 0x84]
push eax
call fcn.0045ca31
lea eax, [ebp - 0x4e4]
push eax
push edi
lea eax, [ebp - 0x104]
push eax
call fcn.0045c9fc
push esi
lea eax, [ebp - 0x504]
push 0
push eax
call fcn.00461390
lea eax, [ebp - 0x504]
push esi
push eax
lea ecx, [ebp - 0x84]
call fcn.0045cb6f
add esp, 0x14
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x504]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
pop edi
test eax, eax
jne 0x45d93a
lea eax, [ebp - 0x84]
push eax
push dword [ebp + 8]
push ebx
call fcn.0045c9fc
neg eax
sbb eax, eax
inc eax
jmp 0x45d93c
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00461ffa
leave
ret

Function at 0x45d949
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x188
mov eax, dword [0x4c6260]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, 0x80
push esi
lea eax, [ebp - 0x84]
push 0
push eax
call fcn.00461390
lea eax, [ebp - 0x84]
push esi
push eax
mov ecx, edi
call fcn.0045cb6f
add esp, 0x14
push edi
mov esi, 0x104
push esi
lea eax, [ebp - 0x188]
push eax
call fcn.0045c9fc
lea eax, [ebp - 0x84]
push eax
push esi
lea eax, [ebp - 0x188]
push eax
call fcn.0045ca78
lea eax, [ebp - 0x188]
push eax
call fcn.004635e0
pop ecx
push eax
lea eax, [ebp - 0x188]
push eax
push 1
push 0x4a3d90
push 0x4a3d78
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00461ffa
leave
ret