joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4196a0
Capabilities:
Get disk information

Disassembly:
push ecx
push esi
push edi
push 0x4576d8
push eax
call fcn.00440469
mov esi, eax
mov edi, esi
add esp, 8
add edi, 0xfffffffe
jmp 0x4196c0
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4196c0
mov ecx, dword [0x4576d8]
push ebx
push esi
push str.szDeviceName:__s__szProcessPath:__s_n
mov dword [edi], ecx
call fcn.00404c20
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
jne 0x419701
push ebx
call fcn.00406e10
add esp, 4
neg eax
sbb eax, eax
inc eax
pop edi
pop esi
pop ecx
ret
pop edi
xor eax, eax
pop esi
pop ecx
ret

Function at 0x41a940
Capabilities:
Create thread

Disassembly:
push esi
mov esi, dword [0x496740]
push 0x457f98
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 4], eax
test eax, eax
je 0x41a9c5
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.FilterSendMessage
push eax
call edi
mov dword [esi + 0xc], eax
mov eax, dword [esi + 4]
push str.FilterConnectCommunicationPort
push eax
call edi
mov ecx, dword [esi + 4]
push str.FilterGetMessage
push ecx
mov dword [esi + 0x10], eax
call edi
cmp dword [esi + 0xc], 0
mov dword [esi + 8], eax
pop edi
je 0x41a9c5
cmp dword [esi + 0x10], 0
je 0x41a9c5
test eax, eax
je 0x41a9c5
call fcn.0041a9d0
test al, al
je 0x41a9c5
push ebx
mov ebx, esi
call fcn.0041aa10
push 0
push 0
push esi
push 0x41ac00
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
pop ebx
setne al
pop esi
ret
xor al, al
pop esi
ret
Function at 0x41aa10
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x684
mov eax, dword [0x48e050]
xor eax, esp
mov dword [esp + 0x680], eax
push esi
push edi
xor edi, edi
push 0x470
lea eax, [esp + 0x14]
push edi
push eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
call fcn.004416b0
push 0x1000
call fcn.0043e793
mov esi, eax
add esp, 0x10
cmp esi, edi
jne 0x41aa6c
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x680]
xor ecx, esp
call fcn.0043e4c7
add esp, 0x684
ret
push 0x1000
push edi
push esi
call fcn.004416b0
push 0x208
lea ecx, [esp + 0x490]
push edi
push ecx
mov dword [esi], edi
mov dword [esi + 4], 3
call fcn.004416b0
push str.___
lea edx, [esp + 0x49c]
push 0x104
push edx
call fcn.0043efc3
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
add esp, 0x24
push 0x104
lea eax, [esp + 0x48c]
push eax
push str._ALLUSERSPROFILE_
call edi
lea ecx, [esp + 0x480]
push ecx
lea edx, [esi + 0x10]
push 0x104
push edx
mov dword [esi + 0xc], 0
call fcn.0043efc3
push 0x208
lea eax, [esp + 0x490]
push 0
push eax
call fcn.004416b0
push str.___
lea ecx, [esp + 0x49c]
push 0x104
push ecx
call fcn.0043efc3
add esp, 0x24
push 0x104
lea edx, [esp + 0x48c]
push edx
push str._TEMP_
call edi
lea eax, [esp + 0x480]
push eax
lea ecx, [esi + 0x21c]
push 0x104
push ecx
mov dword [esi + 0x218], 3
call fcn.0043efc3
push 0x208
lea edx, [esp + 0x490]
push 0
push edx
call fcn.004416b0
push str.___
lea eax, [esp + 0x49c]
push 0x104
push eax
call fcn.0043efc3
add esp, 0x24
push 0x104
lea ecx, [esp + 0x48c]
push ecx
push str._USERPROFILE_
call edi
lea edx, [esp + 0x480]
push edx
lea eax, [esi + 0x428]
push 0x104
push eax
mov dword [esi + 0x424], 1
call fcn.0043efc3
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea ecx, [esp + 8]
mov dword [esi + 8], eax
push ecx
mov eax, dword [ebx]
mov ecx, dword [ebx + 0xc]
push 0x474
lea edx, [esp + 0x14]
push edx
push 0x474
push esi
push eax
call ecx
mov ecx, dword [esp + 0x688]
and eax, 0x80000000
cmp eax, 0x80000000
pop edi
setne al
pop esi
xor ecx, esp
call fcn.0043e4c7
add esp, 0x684
ret
Function at 0x41acd0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x40c
mov eax, dword [0x48e050]
xor eax, esp
mov dword [esp + 0x408], eax
push edi
lea eax, [esp + 4]
push eax
push 1
xor edi, edi
push edi
push str.SOFTWAREBkav
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x1c], 0x200
mov dword [esi + 0x1400], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41aeb5
mov eax, dword [esp + 4]
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x10]
push edx
push edi
push edi
push str.szBkavDir
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41aea4
push 0x1ff
lea ecx, [esp + 0x10]
push ecx
lea edi, [esi + 0x400]
push 0x200
push edi
call fcn.0043e9ba
push 0x1ff
push str.AppLog_
push 0x200
push edi
call fcn.0043e4d6
push 0x1ff
push str.SrRpt.log
push 0x200
push edi
call fcn.0043e4d6
push 0x1ff
lea edx, [esp + 0x40]
push edx
push 0x200
push esi
call fcn.0043e9ba
add esp, 0x40
push 0x1ff
push str.AppLog_
push 0x200
push esi
call fcn.0043e4d6
push 0x1ff
push str.BkavFwRpt.log
push 0x200
push esi
call fcn.0043e4d6
push 0x1ff
lea eax, [esp + 0x30]
push eax
lea edi, [esi + 0x800]
push 0x200
push edi
call fcn.0043e9ba
push 0x1ff
push str.AppLog_
push 0x200
push edi
call fcn.0043e4d6
add esp, 0x40
push 0x1ff
push str.AkRpt.log
push 0x200
push edi
call fcn.0043e4d6
push 0x1ff
lea ecx, [esp + 0x20]
push ecx
lea edi, [esi + 0xc00]
push 0x200
push edi
call fcn.0043e9ba
push 0x1ff
push str.AppLog_
push 0x200
push edi
call fcn.0043e4d6
push 0x1ff
push str.BcRpt.log
push 0x200
push edi
call fcn.0043e4d6
add esp, 0x40
push 0x1ff
lea edx, [esp + 0x10]
push edx
lea edi, [esi + 0x1000]
push 0x200
push edi
call fcn.0043e9ba
push 0x1ff
push str.AppLog_
push 0x200
push edi
call fcn.0043e4d6
push 0x1ff
push str.ErrorRpt.log
push 0x200
push edi
call fcn.0043e4d6
add esp, 0x30
mov dword [esi + 0x1400], 1
jmp 0x41aeaa
mov dword [esi + 0x1400], edi
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x40c]
pop edi
xor ecx, esp
mov eax, esi
call fcn.0043e4c7
add esp, 0x40c
ret
Function at 0x41aed0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4531a8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48e050]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov edi, ecx
xor esi, esi
mov dword [esp + 0x18], esi
cmp edi, esi
jne 0x41af14
mov esi, dword [esp + 0x2c]
push esi
call fcn.0041bbd0
mov eax, esi
jmp 0x41b010
mov eax, dword [0x491d10]
mov edx, dword [eax + 0xc]
mov ecx, 0x491d10
call edx
lea ebp, [eax + 0x10]
mov dword [esp + 0x14], ebp
lea ebx, [edi + 0xa]
push ebx
mov dword [esp + 0x28], esi
call fcn.0043e739
mov esi, eax
add esp, 4
test esi, esi
jne 0x41af75
mov esi, dword [esp + 0x2c]
push esi
call fcn.0041bbd0
mov dword [esp + 0x24], 0xffffffff
lea eax, [ebp - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41af6e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
jmp 0x41b010
push ebx
push 0
push esi
call fcn.004416b0
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
add esp, 0xc
xor ebx, ebx
lea esp, [esp]
mov eax, 0xa000
cmp edi, 0xa000
ja 0x41af9f
mov eax, edi
push 0
lea ecx, [esp + 0x1c]
push ecx
push eax
mov eax, dword [esp + 0x3c]
lea edx, [ebx + esi]
push edx
push eax
call ebp
test eax, eax
je 0x41b026
mov eax, dword [esp + 0x18]
sub edi, eax
add ebx, eax
test edi, edi
jne 0x41af90
mov edx, esi
lea ebx, [esp + 0x14]
call fcn.0041bca0
push esi
call fcn.0043efb8
mov esi, dword [esp + 0x18]
add esi, 0xfffffff0
add esp, 4
mov eax, esi
call fcn.0041c2f0
mov edi, dword [esp + 0x2c]
add eax, 0x10
mov dword [edi], eax
mov dword [esp + 0x24], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41b00e
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, edi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
push esi
call fcn.0043efb8
mov esi, dword [esp + 0x30]
add esp, 4
push esi
call fcn.0041bbd0
mov dword [esp + 0x24], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
jmp 0x41af55
Function at 0x41b050
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x453178
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x48e050]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48e050]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov eax, dword [0x491d10]
mov ebp, dword [esp + 0x50]
mov esi, ecx
mov edi, edx
mov edx, dword [eax + 0xc]
mov ecx, 0x491d10
call edx
lea ebx, [eax + 0x10]
mov dword [esp + 0x14], ebx
push edi
push esi
mov dword [esp + 0x50], 0
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
jne 0x41b0d1
lea eax, [ebx - 0x10]
mov dword [esp + 0x48], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x41b22d
mov ecx, edi
lea edi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x41b0d6
sub ecx, edi
sub ecx, esi
push 0
add ecx, eax
push 0
mov esi, ecx
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
or edi, 0xffffffff
cmp eax, edi
jne 0x41b10c
lea eax, [ebx - 0x10]
mov dword [esp + 0x48], edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
jmp 0x41b22b
xor eax, eax
push eax
lea ecx, [esp + 0x24]
push ecx
push 0xc
lea edx, [esp + 0x30]
push edx
push ebp
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov word [esp + 0x4c], ax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41b21c
cmp dword [esp + 0x20], 0xc
jne 0x41b21c
push 0xa
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x2c]
push ecx
call fcn.0044076e
mov edx, dword [esp + 0x24]
add esp, 0xc
cmp byte [edx], 0x26
je 0x41b179
lea eax, [esp + 0x14]
call fcn.0041bc80
jmp 0x41b239
mov ecx, dword [esp + 0x54]
add eax, ecx
push eax
push 0x480e60
lea edi, [esp + 0x1c]
call fcn.0041c5c0
mov edx, dword [esp + 0x1c]
add esp, 8
cmp dword [edx - 0xc], 0xc
jge 0x41b16b
call fcn.0041bce0
mov ecx, dword [esp + 0x14]
mov eax, 0xc
sub eax, dword [ecx - 0xc]
test eax, eax
jle 0x41b1cb
mov edi, eax
push 0x480e64
lea edx, [esp + 0x18]
push edx
mov edx, 1
call fcn.0041c480
sub edi, 1
jne 0x41b1b2
push 0
push 0
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x41b16b
mov eax, dword [esp + 0x14]
mov edi, dword [eax - 0xc]
push 0
lea ecx, [esp + 0x20]
push ecx
push edi
lea esi, [esp + 0x20]
call fcn.0041bf80
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41b16b
cmp dword [esp + 0x1c], edi
jne 0x41b16b
mov eax, esi
call fcn.0041bc80
mov eax, 1
jmp 0x41b23b
lea eax, [ebx - 0x10]
mov dword [esp + 0x48], edi
lea edx, [eax + 0xc]
lock xadd dword [edx], edi
dec edi
test edi, edi
jg 0x41b239
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0043e4c7
add esp, 0x38
ret 8
Function at 0x41b260
Capabilities:
Get file size
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4537b8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
mov eax, dword [0x48e050]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x30]
test edi, edi
je 0x41b3d6
cmp edi, 0xffffffff
je 0x41b3d6
test ebp, ebp
je 0x41b3d6
mov eax, dword [0x491d10]
mov edx, dword [eax + 0xc]
mov ecx, 0x491d10
call edx
lea ebx, [eax + 0x10]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x28], 0
mov eax, dword [0x491d10]
mov edx, dword [eax + 0xc]
mov ecx, 0x491d10
call edx
lea esi, [eax + 0x10]
mov dword [esp + 0x30], esi
lea eax, [esp + 0x14]
push eax
push edi
mov byte [esp + 0x30], 1
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [esp + 0x14], 0
ja 0x41b391
cmp eax, 0xa00000
ja 0x41b391
push edi
lea ecx, [esp + 0x1c]
push ecx
mov ecx, eax
call fcn.0041aed0
lea ebx, [esp + 0x10]
mov byte [esp + 0x28], 2
call fcn.0041c100
lea eax, [esp + 0x18]
mov byte [esp + 0x28], 1
call fcn.0041bc80
mov edx, dword [esp + 0x10]
push edx
push edi
lea edx, [esp + 0x38]
mov ecx, ebp
call fcn.0041b3f0
push 2
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x41b36a
mov eax, dword [esp + 0x30]
mov eax, dword [eax - 0xc]
push 0
lea ecx, [esp + 0x20]
push ecx
push eax
lea esi, [esp + 0x3c]
call fcn.0041bf80
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [esp + 0x30]
call fcn.0041bc80
lea eax, [esp + 0x10]
call fcn.0041bc80
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 4
lea eax, [esi - 0x10]
mov byte [esp + 0x28], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41b3b2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov dword [esp + 0x28], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41b3d6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 4
Function at 0x41b750
Capabilities:
Check mutex on windows

Disassembly:
push 0xffffffffffffffff
push 0x453bb8
mov eax, dword fs:[0]
push eax
push ecx
push ebp
push esi
push edi
mov eax, dword [0x48e050]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x24]
test ebx, ebx
je 0x41b8d4
test ebp, ebp
je 0x41b8d4
mov eax, dword [0x491d10]
mov edx, dword [eax + 0xc]
mov ecx, 0x491d10
call edx
lea esi, [eax + 0x10]
mov dword [esp + 0x24], esi
push ebx
mov dword [esp + 0x20], 0
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
test eax, eax
je 0x41b8b0
mov ecx, eax
lea edi, [ecx + 2]
lea ebx, [ebx]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x41b7c0
sub ecx, edi
sar ecx, 1
je 0x41b8b0
push eax
lea eax, [esp + 0x28]
push str.Local_s
push eax
call fcn.0041c5e0
mov edi, dword [esp + 0x30]
add esp, 0xc
push edi
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov esi, eax
test esi, esi
je 0x41b805
cmp esi, 0xffffffff
jne 0x41b81b
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
test esi, esi
je 0x41b892
cmp esi, 0xffffffff
je 0x41b892
push 0x7d0
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x41b88b
push eax
push 0x80
push 4
push eax
push 1
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x41b884
test edi, edi
je 0x41b884
push ebp
call fcn.0041b260
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call edi
lea ecx, [esp + 0x24]
call fcn.004014d0
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x10
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x24]
call fcn.004014d0
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x10
ret 4
lea eax, [esi - 0x10]
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41b8d4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x10
ret 4
Function at 0x41c700
Capabilities:
Encode data using base64

Disassembly:
push ecx
mov ecx, dword [esp + 0xc]
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dl, 3
imul dl
mov dl, cl
sub dl, al
push ebx
movsx eax, dl
mov dword [esp + 4], eax
mov ebx, ecx
sub ebx, eax
dec ecx
mov eax, 0x55555556
imul ecx
mov eax, edx
push ebp
mov ebp, dword [esp + 0x10]
shr eax, 0x1f
add eax, edx
push edi
lea ecx, [eax*4 + 5]
push ecx
push 0
push esi
call fcn.004416b0
add esp, 0xc
xor eax, eax
xor edi, edi
test ebx, ebx
jle 0x41c7cf
jmp 0x41c760
movzx edx, byte [edi + ebp]
movzx ecx, byte [edi + ebp + 1]
shl edx, 8
or ecx, edx
inc edi
movzx edx, byte [edi + ebp + 1]
shl ecx, 8
or ecx, edx
inc edi
mov dl, cl
and dl, 0x3f
movsx edx, dl
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789._]
mov byte [esi + eax + 3], dl
add eax, 4
sar ecx, 6
mov dl, cl
and dl, 0x3f
movsx edx, dl
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789._]
sar ecx, 6
mov byte [esi + eax - 2], dl
movsx edx, cl
and edx, 0x3f
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789._]
sar ecx, 6
and ecx, 0x3f
mov byte [esi + eax - 3], dl
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789._]
inc edi
cmp edi, ebx
mov byte [esi + eax - 4], cl
jl 0x41c760
mov ecx, dword [esp + 0xc]
sub ecx, 1
je 0x41c83e
sub ecx, 1
jne 0x41c877
mov edx, dword [esp + 0x18]
movzx ecx, byte [edx + ebp - 2]
movzx edx, byte [edx + ebp - 1]
shl ecx, 8
or ecx, edx
mov edx, ecx
sar edx, 0xa
and edx, 0x3f
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789._]
mov byte [eax + esi], dl
mov edx, ecx
and cl, 0xf
sar edx, 4
add cl, cl
and edx, 0x3f
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789._]
mov byte [eax + esi + 1], dl
add cl, cl
inc eax
movsx ecx, cl
movzx edx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789._]
inc eax
mov byte [eax + esi], dl
inc eax
pop edi
mov byte [eax + esi], 0x3d
inc eax
pop ebp
mov byte [eax + esi], 0
pop ebx
pop ecx
ret
mov ecx, dword [esp + 0x18]
movzx edx, byte [ecx + ebp - 1]
shr edx, 2
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789._]
mov byte [eax + esi], dl
movzx ecx, byte [ecx + ebp - 1]
and cl, 3
shl cl, 4
movsx edx, cl
movzx ecx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789._]
inc eax
mov byte [eax + esi], cl
inc eax
mov byte [eax + esi], 0x3d
inc eax
mov byte [eax + esi], 0x3d
inc eax
pop edi
pop ebp
mov byte [eax + esi], 0
pop ebx
pop ecx
ret
Function at 0x41ca70
Capabilities:
Enumerate disk volumes
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x453b7b
mov eax, dword fs:[0]
push eax
sub esp, 0x43c
mov eax, dword [0x48e050]
xor eax, esp
mov dword [esp + 0x438], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48e050]
xor eax, esp
push eax
lea eax, [esp + 0x450]
mov dword fs:[0], eax
push 0x104
lea eax, [esp + 0x248]
push eax
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
jne 0x41cad0
xor eax, eax
jmp 0x41cbe7
mov ebp, dword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
xor edi, edi
lea ecx, [esp + 0x38]
push ecx
push 0x104
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x250]
push eax
call ebp
lea ecx, [esp + 0x244]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp word [esp + 0x3c], di
je 0x41cbbb
cmp eax, 3
jne 0x41cbbb
lea eax, [esp + 0x3c]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x41cb20
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0x3a], 0x5c
je 0x41cb4e
push 0x4576d8
lea edx, [esp + 0x40]
push 0x104
push edx
call fcn.0043f083
add esp, 0xc
xor eax, eax
mov word [esp + 0x20], ax
lea eax, [esp + 0x3c]
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], edi
lea edx, [eax + 2]
jmp 0x41cb70
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x41cb70
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x40]
lea esi, [esp + 0x20]
call fcn.00419db0
mov ecx, esi
push ecx
mov dword [esp + 0x45c], edi
call fcn.0041de90
mov dword [esp + 0x458], 0xffffffff
cmp dword [esp + 0x34], 8
jb 0x41cbbb
mov edx, dword [esp + 0x20]
push edx
call fcn.0043e4bc
add esp, 4
mov esi, dword [esp + 0x18]
push 0x104
lea eax, [esp + 0x248]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
test eax, eax
jne 0x41cad8
push esi
call dword [sym.imp.KERNEL32.dll_FindVolumeClose]
mov eax, 1
mov ecx, dword [esp + 0x450]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x438]
xor ecx, esp
call fcn.0043e4c7
add esp, 0x448
ret
Function at 0x41d680
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x428]
sub esp, 0x428
push 0xfffffffffffffffe
push 0x489da0
push 0x441f50
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x48e050]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x424], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x34], esi
mov ebx, edx
mov dword [ebp - 0x30], ebx
xor eax, eax
mov word [ebp + 0x208], ax
push 0x21a
xor edi, edi
push edi
lea ecx, [ebp + 0x20a]
push ecx
call fcn.004416b0
xor edx, edx
mov word [ebp], dx
push 0x206
push edi
lea eax, [ebp + 2]
push eax
call fcn.004416b0
add esp, 0x18
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x1c], edi
cmp esi, edi
je 0x41d8c1
cmp ebx, edi
je 0x41d8c1
lea esp, [esp]
mov dword [ebp - 0x20], 0x104
push edi
push edi
push edi
push edi
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp]
push edx
mov eax, dword [ebp - 0x28]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, edi
jne 0x41d891
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x1c]
push ecx
push 0x20019
push edi
lea edx, [ebp]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41d896
push 0x21c
push edi
lea eax, [ebp + 0x208]
push eax
call fcn.004416b0
add esp, 0xc
mov dword [ebp - 0x20], 0x21c
mov dword [ebp - 0x24], 1
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp + 0x208]
push edx
lea eax, [ebp - 0x24]
push eax
push edi
push str.Path
mov ecx, dword [ebp - 0x1c]
push ecx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
call ebx
test eax, eax
jne 0x41d7cf
cmp word [ebp + 0x208], di
je 0x41d7cf
push 0x457780
lea edx, [ebp + 0x208]
push edx
call fcn.0043ec25
add esp, 8
test eax, eax
jne 0x41d832
push 0x21c
push edi
lea eax, [ebp + 0x208]
push eax
call fcn.004416b0
add esp, 0xc
mov dword [ebp - 0x20], 0x21c
mov dword [ebp - 0x24], 1
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp + 0x208]
push edx
lea eax, [ebp - 0x24]
push eax
push edi
push edi
mov ecx, dword [ebp - 0x1c]
push ecx
call ebx
test eax, eax
jne 0x41d896
cmp word [ebp + 0x208], di
je 0x41d896
push 0x457780
lea edx, [ebp + 0x208]
push edx
call fcn.0043ec25
add esp, 8
test eax, eax
je 0x41d896
lea ebx, [ebp + 0x208]
call fcn.0041da70
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x41d842
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp + 0x208]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.0043f6d2
add esp, 0xc
test eax, eax
jne 0x41d896
mov eax, dword [ebp - 0x1c]
cmp eax, edi
je 0x41d877
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2c], 1
push 0xfffffffffffffffe
lea edx, [ebp - 0x10]
push edx
push 0x48e050
call fcn.00448450
add esp, 0xc
mov eax, dword [ebp - 0x2c]
jmp 0x41d8c3
mov dword [ebp - 4], 0xfffffffe
call fcn.0041d8af
inc dword [ebp - 0x28]
jmp 0x41d720
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x424]
xor ecx, ebp
call fcn.0043e4c7
add ebp, 0x428
mov esp, ebp
pop ebp
ret