joyce8/EMBER2024-capa huggingface dataset:
Function at 0x177130
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push eax
push 0x40
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [ebp + 0xc]
add esp, 0x10
test eax, eax
jne 0x177153
mov eax, 1
jmp 0x17725e
mov edx, dword [ebp + 8]
movzx eax, word [edx]
cmp eax, 0x5a4d
jne 0x177169
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x3c], 0
jne 0x177173
mov eax, 2
jmp 0x17725e
mov edx, dword [ebp + 0x10]
push edx
push 0xf8
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
push ecx
mov edx, dword [ebp + 8]
add edx, 0x40
push edx
call dword [ebp + 0xc]
add esp, 0x10
test eax, eax
jne 0x17719e
mov eax, 1
jmp 0x17725e
mov eax, dword [ebp + 8]
cmp dword [eax + 0x40], 0x4550
jne 0x1771c4
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + 0x58]
cmp edx, 0x10b
jne 0x1771c4
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 0x46]
test ecx, ecx
jne 0x1771ce
mov eax, 2
jmp 0x17725e
mov edx, dword [ebp + 8]
movzx eax, word [edx + 0x46]
imul eax, eax, 0x28
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x140], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x140]
push eax
call fcn.00189610
add esp, 4
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x138], eax
mov edx, dword [ebp + 8]
cmp dword [edx + 0x138], 0
jne 0x17720f
mov eax, 3
jmp 0x17725e
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
mov edx, dword [ebp + 8]
movzx eax, word [edx + 0x54]
lea ecx, [ecx + eax + 0x18]
mov edx, dword [ebp + 8]
mov dword [edx + 0x13c], ecx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x140]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x13c]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x138]
push eax
call dword [ebp + 0xc]
add esp, 0x10
test eax, eax
jne 0x17725c
mov eax, 1
jmp 0x17725e
xor eax, eax
pop ebp
ret

Function at 0x177c00
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
cmp ecx, 0x5a4d
je 0x177c16
xor eax, eax
jmp 0x177c56
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x3c]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp dword [ecx], 0x4550
jne 0x177c3b
mov edx, dword [ebp - 4]
movzx eax, word [edx + 0x18]
cmp eax, 0x10b
je 0x177c3f
xor eax, eax
jmp 0x177c56
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x78]
push ecx
call fcn.00177c60
add esp, 0xc
mov esp, ebp
pop ebp
ret

Function at 0x18a350
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x18a380
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [ebp + 8], 0
jne 0x18a393
xor eax, eax
jmp 0x18a451
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
movzx edx, word [ecx]
cmp edx, 0x5a4d
je 0x18a3ae
xor eax, eax
jmp 0x18a451
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
cmp dword [edx], 0x4550
je 0x18a3cc
xor eax, eax
jmp 0x18a451
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x78]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x1c]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x24]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x20]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x1c], 0
jmp 0x18a40e
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [eax + 0x18]
jae 0x18a44f
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax*4]
push edx
call fcn.00189630
add esp, 8
test eax, eax
jne 0x18a44d
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
movzx edx, word [ecx + eax*2]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + edx*4]
mov eax, ecx
jmp 0x18a451
jmp 0x18a405
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10013297
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push ebx
push esi
mov esi, ecx
push edi
test edx, edx
jne 0x100132b3
push 0x80004005
call dword [sym.imp.PhotoBase.dll_void___stdcall_ATL::BaseAtlThrow_long_int_]
mov ecx, edx
xor ebx, ebx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x100132ba
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push ebx
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x100132e7
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, ecx
push esi
push edi
test edx, edx
jne 0x10013305
push 0x80004005
call dword [sym.imp.PhotoBase.dll_void___stdcall_ATL::BaseAtlThrow_long_int_]
xor eax, eax
mov edi, edx
mov dword [ebp - 4], eax
mov esi, eax
mov ecx, edi
lea eax, [ecx + 2]
mov dword [ebp - 8], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 4]
jne 0x10013316
sub ecx, dword [ebp - 8]
sar ecx, 1
inc ecx
lea edi, [edi + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x1001330e
push esi
push edx
push 7
xor eax, eax
push eax
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10013872
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x224
mov eax, dword [0x1009e9c8]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [esp + 0x14]
push esi
push edi
push eax
mov edi, ecx
xor ecx, ecx
push 0x2001f
push ecx
push ebx
push dword [edi]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x30], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x10013956
cmp dword [esp + 0xc], esi
je 0x100138d8
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xc], eax
test esi, esi
jne 0x10013956
lea ecx, [esp + 0x20]
push ecx
push esi
push esi
push esi
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x3c]
push ecx
push esi
push eax
jmp 0x10013925
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x10]
call fcn.10013872
mov esi, eax
test esi, esi
jne 0x10013956
lea eax, [esp + 0x20]
push eax
push esi
push esi
push esi
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x28]
mov dword [esp + 0x38], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x100138fa
cmp dword [esp + 0xc], 0
je 0x1001394c
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], esi
push ebx
mov ecx, edi
call fcn.10013f79
mov esi, eax
cmp dword [esp + 0xc], 0
je 0x10013967
push dword [esp + 0xc]
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.10084510
mov esp, ebp
pop ebp
ret 4
Function at 0x10015688
Capabilities:
Create thread

Disassembly:
push 0x20
mov eax, 0x10085949
call fcn.100853ff
mov esi, ecx
push 1
xor ebx, ebx
push 4
mov dword [ebp - 4], ebx
call dword [sym.imp.PhotoBase.dll_void____cdecl_BasePrivate::New_unsigned_int__bool_]
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x100156bd
call dword [sym.imp.PhotoBase.dll_public:_static_class_ATL::CAtlStringMgr____stdcall_Base::String::GetBaseStringManager_void_]
push eax
mov ecx, edi
call fcn.10015daa
jmp 0x100156bf
mov edi, ebx
mov dword [ebp - 0x1c], edi
mov byte [ebp - 4], 1
test edi, edi
jne 0x100156d5
push 0x8007000e
call dword [sym.imp.PhotoBase.dll_void___stdcall_Base::Throw_long_int_]
push esi
mov ecx, edi
call fcn.100158a6
call dword [sym.imp.PhotoBase.dll_public:_static_class_ATL::CAtlStringMgr____stdcall_Base::String::GetBaseStringManager_void_]
push eax
lea ecx, [ebp - 0x14]
call fcn.10015daa
mov esi, 0x104
mov byte [ebp - 4], 2
push esi
lea ecx, [ebp - 0x14]
call fcn.10015cd6
push esi
push eax
push 0x10000000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x10015715
call dword [sym.imp.PhotoBase.dll_void___stdcall_Base::ThrowLastError_void_]
mov esi, dword [ebp - 0x14]
mov ecx, esi
call fcn.10012c6e
push eax
lea ecx, [ebp - 0x14]
call fcn.10015d03
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x14], bl
test esi, esi
je 0x10015740
push ebx
mov ecx, esi
mov byte [ebp - 0x14], bl
call fcn.10013ee0
mov dword [ebp - 0x18], eax
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 4
call fcn.10015dfc
cmp dword [ebp - 0x18], 0
jne 0x1001575d
call fcn.100154b3
push eax
jmp 0x100156cf
lea eax, [ebp - 0x20]
push eax
push ebx
push edi
push 0x10015630
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x10015752
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10015795
mov eax, ebx
call fcn.10085364
ret

Function at 0x100159af
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10015a0b
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x100159fd
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x100159f9
cmp esi, ecx
jae 0x100159fd
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x100159e7
cmp esi, ecx
jb 0x10015a01
xor eax, eax
jmp 0x10015a0a
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret 4
Function at 0x1001635c
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1009e9c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x10
pop esi
push 0x400
mov ebx, ecx
mov dword [ebp - 0x28], 1
call dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov edi, eax
lea eax, [ebp - 0x24]
push esi
push eax
push 0x58
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x100163fb
test dword [ebp - 0x16], 0x800
je 0x100163fb
push 2
lea eax, [ebp - 0x28]
push eax
push 0x20001009
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x100163fb
and edi, 0x3ff
cmp di, 0xd
jne 0x100163d2
test bl, 1
je 0x100163f8
cmp dword [ebp - 0x28], 8
jmp 0x100163f6
mov eax, dword [ebp - 0x28]
cmp eax, 1
je 0x100163f8
cmp eax, 6
je 0x100163f8
cmp eax, 0x17
je 0x100163f8
cmp eax, 0xa
je 0x100163f8
cmp eax, 8
je 0x100163f8
cmp eax, 0xb
je 0x100163f8
cmp eax, 0xc
jne 0x100163fb
push 0x20
pop esi
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10084510
mov esp, ebp
pop ebp
ret

Function at 0x1001b609
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1009e9c8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
and dword [edi], 0
cmp byte [esi + 8], 0
je 0x1001b68b
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20c]
push 1
push dword [esi + 4]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x1001b67b
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [edi], eax
neg eax
sbb eax, eax
and eax, 0x7ff8fff2
add eax, 0x8007000e
jmp 0x1001b695
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx eax, ax
or eax, 0x80070000
jmp 0x1001b695
lea ecx, [esi + 0xa]
mov edx, edi
call fcn.10015fda
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10084510
mov esp, ebp
pop ebp
ret 4
Function at 0x1001c4ac
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
cmp edi, 0x3c
jb 0x1001c4cc
push 0x80070057
call dword [sym.imp.PhotoBase.dll_void___stdcall_Base::Throw_long_int_]
mov esi, dword [edi*4 + 0x1000ad20]
mov dword [ebp - 8], esi
call fcn.1001c2c3
cmp dword [eax*4 + 0x1000ad20], esi
je 0x1001c57a
push ecx
push ecx
push 0x20006
push ecx
push ecx
xor eax, eax
lea ecx, [ebp - 0x14]
push 0x1000c548
push SysReAllocString
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
call fcn.10013245
test eax, eax
jle 0x1001c51c
movzx eax, ax
or eax, 0x80070000
test eax, eax
mov esi, dword [ebp - 0x14]
js 0x1001c569
push 4
lea eax, [ebp - 4]
xor ecx, ecx
push eax
push 4
push ecx
push 0x1000c9b0
push esi
cmp dword [edi*4 + 0x1000ad20], ecx
jne 0x1001c544
mov dword [ebp - 4], 1
jmp 0x1001c563
mov dword [ebp - 4], ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 8]
push 4
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 4
push 0
push 0x1000c980
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebx + 0x1c4], edi
test esi, esi
je 0x1001c57a
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x1001dffe
Capabilities:
Check if file exists

Disassembly:
push 4
mov eax, 0x10086ed1
call fcn.10085396
mov edi, dword [ebp + 0xc]
jmp 0x1001e052
call dword [sym.imp.PhotoBase.dll_public:_static_class_ATL::CAtlStringMgr____stdcall_Base::String::GetBaseStringManager_void_]
push eax
lea ecx, [ebp - 0x10]
call fcn.10015daa
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push edi
push dword [ebp + 8]
push 0x1000accc
push eax
call fcn.1001e1df
mov esi, dword [ebp - 0x10]
add esp, 0x10
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1001e062
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.10015dfc
inc edi
cmp edi, 0xffffffff
jne 0x1001e00f
push 0x8000ffff
call dword [sym.imp.PhotoBase.dll_void___stdcall_Base::Throw_long_int_]
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x10]
push eax
call fcn.1001e9fb
lea ecx, [esi - 0x10]
call fcn.10015dfc
mov eax, edi
call fcn.10085364
ret 0xc

Function at 0x1001fe07
Capabilities:
Check os version

Disassembly:
mov edi, edi
push esi
push edi
mov esi, edx
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
mov eax, 0x1000af50
jb 0x1001fe23
mov eax, 0x1000b048
push edi
push eax
push 0x1000b0ec
push esi
call fcn.100317d5
add esp, 0x10
pop edi
pop esi
ret
Function at 0x100204be
Capabilities:
Get disk information

Disassembly:
push 0x150
mov eax, 0x1008723b
call fcn.10085435
mov ebx, edx
mov esi, ecx
mov dword [ebp - 0x150], esi
mov dword [ebp - 0x158], esi
mov dword [ebp - 0x148], ebx
test ebx, ebx
je 0x10020683
xor edi, edi
cmp word [ebx], di
je 0x10020683
push ebx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 5
je 0x1002050b
cmp eax, 2
jne 0x100205ab
test byte [ebp + 8], 1
je 0x100205be
movzx eax, word [ebx]
push eax
push 0x1000b0fc
lea eax, [ebp - 0x24]
push 7
push eax
call dword [sym.imp.msvcrt.dll_swprintf_s]
add esp, 0x10
lea eax, [ebp - 0x24]
push edi
push edi
push 3
push edi
push 7
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x14c], eax
cmp eax, 0xffffffff
je 0x100205be
push edi
lea ecx, [ebp - 0x154]
push ecx
push 0x120
lea ecx, [ebp - 0x144]
push ecx
push edi
push edi
push 0x2d0c00
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x100205b3
cmp dword [ebp - 0x154], edi
jbe 0x100205b3
mov eax, dword [ebp - 0x13c]
test eax, eax
jle 0x100205b3
cmp eax, 3
jle 0x100205a0
cmp eax, 4
jle 0x100205b3
cmp eax, 0xa
jle 0x100205a0
cmp eax, 0xd
jle 0x100205b3
cmp eax, 0x13
jle 0x100205a0
cmp eax, 0x16
jne 0x100205b3
lea ecx, [ebp - 0x14c]
call fcn.1002f5aa
call fcn.10085387
ret 4
lea ecx, [ebp - 0x14c]
call fcn.1002f5aa
mov dword [ebp - 4], edi
mov eax, dword [esi]
push ebx
push esi
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x100a0bc0]
call esi
or dword [ebp - 4], 0xffffffff
jmp 0x100205f6
push edi
push edi
lea eax, [ebp - 0x15c]
mov dword [ebp - 0x15c], edi
push eax
push edi
push edi
push edi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x100205ab
push 1
push 0x14
call dword [sym.imp.PhotoBase.dll_void____cdecl_BasePrivate::New_unsigned_int__bool_]
pop ecx
mov esi, eax
pop ecx
mov dword [ebp - 0x148], esi
mov dword [ebp - 4], 2
test esi, esi
je 0x10020645
push 5
push ebx
mov ecx, esi
call fcn.10020021
mov dword [esi], 0x1000282c
jmp 0x10020647
mov esi, edi
mov dword [ebp - 0x148], esi
test esi, esi
je 0x10020654
inc dword [esi + 4]
mov dword [ebp - 4], 3
test esi, esi
jne 0x1002066a
push 0x8007000e
call dword [sym.imp.PhotoBase.dll_void___stdcall_Base::Throw_long_int_]
push dword [ebp - 0x150]
mov ecx, esi
call fcn.10020160
mov ecx, esi
call fcn.1002f187
jmp 0x100205ab
push 0x80070057
jmp 0x10020664
Function at 0x1002068a
Capabilities:
Get disk information

Disassembly:
push 0x218
mov eax, 0x10087263
call fcn.10085435
mov ebx, ecx
push 0x208
xor edi, edi
mov dword [ebp - 0x224], ebx
lea eax, [ebp - 0x21c]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x21c]
mov esi, 0x103
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x10020737
cmp eax, esi
ja 0x10020737
lea esi, [ebp - 0x21c]
mov dword [ebp - 0x220], esi
cmp word [esi], di
je 0x10020737
push 1
mov edx, esi
mov dword [ebp - 4], edi
mov ecx, ebx
call fcn.100204be
or dword [ebp - 4], 0xffffffff
jmp 0x10020710
lea eax, [ebp - 0x220]
mov dword [ebp - 0x220], edi
push eax
mov edx, 0x105
mov ecx, esi
call fcn.1001eb84
mov eax, dword [ebp - 0x220]
lea esi, [esi + eax*2]
add esi, 2
jmp 0x100206d9
call fcn.10085387
ret

Function at 0x10021635
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x228
mov eax, 0x10087567
call fcn.10085435
mov eax, dword [ebp + 0x10]
mov esi, 0x100065f8
mov ebx, dword [ebp + 8]
mov edi, eax
mov dword [ebp - 0x224], eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor esi, esi
mov edi, 0x80070002
mov dword [ebp - 4], esi
call dword [sym.imp.PhotoBase.dll_public:_static_class_ATL::CAtlStringMgr____stdcall_Base::String::GetBaseStringManager_void_]
push eax
lea ecx, [ebp - 0x220]
call fcn.10015daa
push 0x1000b29c
push ebx
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 1
push 0x1000b270
push eax
call fcn.1001e1df
add esp, 0x10
mov dword [ebp - 0x228], esi
lea eax, [ebp - 0x228]
push eax
push 0x20019
push esi
mov esi, dword [ebp - 0x220]
push esi
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1002170e
mov ebx, dword [ebp - 0x228]
lea eax, [ebp - 0x220]
xor ecx, ecx
mov dword [ebp - 0x220], 0x104
push ecx
push ecx
push ecx
push ecx
push eax
lea eax, [ebp - 0x21c]
push eax
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x10021703
push dword [ebp - 0x224]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
mov edi, eax
test ebx, ebx
je 0x1002170e
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esi - 0x10]
call fcn.10015dfc
jmp 0x1002173c
mov eax, edi
call fcn.10085387
ret 0xc
Function at 0x1002dc4a
Capabilities:
Check mutex on windows
Enumerate gui resources

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x1000b3c8
xor ebx, ebx
push edi
push 1
push ebx
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 0x94], eax
test eax, eax
je 0x1002dc92
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1002dc92
push dword [ebp + 8]
push 0x1002dba0
call dword [sym.imp.USER32.dll_EnumWindows]
test eax, eax
jne 0x1002dc92
mov bl, 1
jmp 0x1002dc9f
push dword [esi + 0x28]
push edi
push dword [esi + 0x28]
call dword [sym.imp.USER32.dll_SetPropW]
pop edi
pop esi
mov al, bl
pop ebx
pop ebp
ret 4
Function at 0x10032669
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], ebx
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100326d6
cmp dword [ebp - 4], 1
je 0x100326ae
cmp dword [ebp - 4], 2
je 0x100326ae
push 0xd
pop eax
jmp 0x100326d6
mov ecx, dword [ebp - 8]
test esi, esi
je 0x100326d0
test ecx, ecx
je 0x100326cb
test cl, 1
jne 0x100326a9
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], bx
je 0x100326d0
jmp 0x100326a9
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1003623b
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x48c
mov eax, dword [0x1009e9c8]
xor eax, esp
mov dword [esp + 0x488], eax
push ebx
push esi
push edi
push 0x21c
lea eax, [esp + 0x274]
mov ebx, edx
push 0
push eax
mov dword [esp + 0x18], ebx
mov esi, ecx
call sub.msvcrt.dll_memset
and dword [ebx], 0
lea ecx, [esp + 0x27c]
add esp, 0xc
mov edi, 0x10e
mov edx, edi
push esi
call fcn.1001b46e
mov esi, eax
cmp esi, 0x8007007a
jne 0x1003629d
add esi, 0x54
test esi, esi
js 0x100363ca
push edi
lea edx, [esp + 0x274]
call fcn.10036195
mov esi, eax
test esi, esi
js 0x100363ca
push 0x1000c080
push ecx
mov edx, edi
lea ecx, [esp + 0x278]
call fcn.1003607a
mov esi, eax
mov dword [esp + 0x1c], esi
test esi, esi
js 0x100363ca
lea eax, [esp + 0x270]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov ebx, eax
test ebx, ebx
je 0x100363c5
push 0x1000c080
push ebx
call dword [sym.imp.SHLWAPI.dll_StrStrW]
mov edi, eax
test edi, edi
je 0x100363c5
push 0x250
lea eax, [esp + 0x24]
sub edi, ebx
push 0
push eax
sar edi, 1
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x274]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x100363ca
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
lea eax, [esp + 0xc]
mov edx, SysReAllocString
push eax
lea ecx, [esp + 0x50]
call fcn.1001eb84
test eax, eax
js 0x100363a8
cmp dword [esp + 0xc], edi
jbe 0x100363a8
lea eax, [esp + 0x10]
xor ecx, ecx
push eax
lea eax, [esp + 0x50]
mov dword [esp + 0x14], ecx
push ecx
lea eax, [eax + edi*2]
mov dword [esp + 0x1c], ecx
push eax
call dword [sym.imp.SHLWAPI.dll_StrToInt64ExW]
test eax, eax
je 0x100363a8
cmp dword [esp + 0x14], 0
jg 0x100363a8
mov eax, dword [esp + 0x10]
jl 0x100363a2
cmp eax, 0xffffffff
ja 0x100363a8
cmp eax, dword [esi]
jbe 0x100363a8
mov dword [esi], eax
lea eax, [esp + 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10036346
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [esp + 0x1c]
jmp 0x100363ca
mov esi, 0x80004005
mov ecx, dword [esp + 0x494]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10084510
mov esp, ebp
pop ebp
ret