joyce8/EMBER2024-capa huggingface dataset:
Function at 0x464860
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c24ad
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x4f4f98]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea ecx, [edi + 0x140]
mov dword [edi], vtable.SystemStatus.0
call fcn.00462fc0
lea esi, [edi + 8]
xorps xmm0, xmm0
push 0x110
movups xmmword [esi], xmm0
lea eax, [edi + 0x30]
push 0
movups xmmword [esi + 0x10], xmm0
push eax
mov dword [esi + 0x20], 0
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [edi + 0x2c], 0x114
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword fs:[0x2c]
mov ecx, dword [0x512438]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x510ac8]
cmp eax, dword [ecx + 4]
jg 0x464a07
movzx eax, word [0x510ac6]
mov ecx, dword [0x510ac4]
mov dword [edi + 0x30], eax
movzx eax, ch
mov dword [edi + 0x34], eax
movzx eax, cl
test cl, cl
je 0x4649e3
push 0
push 0xa
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.004b7b80
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x28]
push 0x4d8718
push eax
call fcn.0045ecf0
add esp, 0x1c
cmp dword [eax + 0x14], 8
jb 0x464945
mov eax, dword [eax]
push 0x80
push eax
lea eax, [edi + 0x40]
push 0x80
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
mov edx, dword [ebp - 0x14]
add esp, 0x10
cmp edx, 8
jb 0x464993
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x464989
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4649d3
push edx
push ecx
call fcn.004be864
add esp, 8
mov edx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 8
jb 0x4649e3
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4649d9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4649d9
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004be864
add esp, 8
mov dword [edi + 0x3c], 2
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bee1d
mov esp, ebp
pop ebp
ret
push 0x510ac8
call fcn.004bed2f
add esp, 4
cmp dword [0x510ac8], 0xffffffff
jne 0x4648f2
call fcn.004b49f0
push 0x510ac8
mov dword [0x510ac4], eax
call fcn.004bece5
add esp, 4
jmp 0x4648f2
Function at 0x469980
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c34b6
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x4f4f98]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push str.__r_n_
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__21]
push 0xffffffffffffffff
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x40]
call fcn.004630a0
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x40]
push 0x8000
push 0xa
mov dword [ebp - 0x20], 0xa
call dword [eax + 0x1c]
cmp dword [esi + 0x82c], 0
jne 0x469a63
mov edi, 0x64
mov eax, dword [esi]
mov ecx, esi
push 0
call dword [eax + 0x38]
test eax, eax
jne 0x469a63
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x469a58
cmp dword [ebp - 0x20], ecx
jg 0x469a58
mov ebx, dword [ebp - 0x2c]
cmp ebx, 0x64
jge 0x469a58
mov eax, edi
cdq
idiv ecx
cmp eax, ebx
je 0x469a58
mov dword [ebp - 0x2c], eax
cmp eax, 0x64
jle 0x469a46
xor ecx, ecx
sub eax, 0x64
cmp eax, 0x64
jle 0x469a43
inc ecx
cmp ecx, 3
jl 0x469a35
mov dword [ebp - 0x2c], eax
call fcn.0046b460
test eax, eax
je 0x469a58
mov eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x40]
call dword [eax + 0x3c]
add edi, 0x64
cmp edi, 0xc8
jl 0x469a01
add dword [esi + 0x82c], 0xffffffff
jns 0x469a78
mov eax, dword [esi + 0x828]
mov dword [esi + 0x82c], eax
mov eax, dword [esi]
mov ecx, esi
push 0
call dword [eax + 0x38]
test eax, eax
jne 0x469a96
mov eax, dword [esi]
mov ecx, esi
push 0
call dword [eax + 0x38]
test eax, eax
je 0x469b38
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x44]
mov dword [esi + 0xc], eax
mov edi, 0x64
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x3c]
test eax, eax
jne 0x469b0e
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x469b03
cmp dword [ebp - 0x20], ecx
jg 0x469b03
mov ebx, dword [ebp - 0x2c]
cmp ebx, 0x64
jge 0x469b03
mov eax, edi
cdq
idiv ecx
mov ecx, eax
cmp ecx, ebx
je 0x469b03
mov dword [ebp - 0x2c], ecx
cmp ecx, 0x64
jle 0x469af1
xor eax, eax
nop dword [eax]
sub ecx, 0x64
cmp ecx, 0x64
jle 0x469aee
inc eax
cmp eax, 3
jl 0x469ae0
mov dword [ebp - 0x2c], ecx
call fcn.0046b460
test eax, eax
je 0x469b03
mov eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x40]
call dword [eax + 0x3c]
add edi, 0x64
cmp edi, 0x258
jl 0x469aa5
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x3c]
test eax, eax
je 0x469b38
cmp dword [esi + 0x18], 0
jne 0x469b31
cmp dword [esi + 0x1c], 0
jne 0x469b31
cmp dword [esi + 0x20], 0
jne 0x469b31
cmp dword [esi + 0x24], 0
je 0x469b38
mov esi, 1
jmp 0x469b3a
xor esi, esi
lea ecx, [ebp - 0x40]
call fcn.00465740
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46d720
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, ecx
cmp dword [eax + 0x18], 8
lea edx, [eax + 4]
jb 0x46d730
mov edx, dword [edx]
mov ecx, dword [ebp + 8]
mov eax, dword [eax + 0x1c]
not ecx
and eax, ecx
push eax
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop ebp
ret 4
Function at 0x471d50
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c51b7
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4f4f98]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0xc]
xor esi, esi
test eax, eax
jle 0x471e4e
nop word [eax + eax]
cmp dword [edi + 0x20], 0
je 0x471e4e
test esi, esi
js 0x471e71
cmp esi, eax
jge 0x471e71
mov eax, dword [edi + 8]
lea ebx, [esi*4]
add eax, ebx
lea ecx, [ebp - 0x10]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__22]
mov dword [ebp - 4], 0
cmp esi, dword [edi + 0x20]
jge 0x471e71
mov eax, dword [edi + 0x1c]
lea ecx, [ebp - 0x14]
add eax, ebx
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__22]
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 1
cmp dword [eax - 0xc], 0
je 0x471e29
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
je 0x471e29
lea eax, [ebp - 0x10]
push 0
push eax
call fcn.00476ab0
add esp, 8
test eax, eax
je 0x471e29
push 0
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x471e29
cmp esi, dword [edi + 0xc]
jge 0x471e71
mov ecx, dword [edi + 8]
add ecx, ebx
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::Empty]
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov eax, dword [edi + 0xc]
inc esi
cmp esi, eax
jl 0x471d90
push 0xffffffffffffffff
push 0
lea ecx, [edi + 0x18]
call sub.mfc140u.dll_CStringArray::SetSize
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call sub.mfc140u.dll_AfxThrowInvalidArgException
int3
Function at 0x472950
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c5422
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4f4f98]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x472a78
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x472a78
push eax
lea ecx, [ebp + 0xc]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__21]
mov eax, dword [edi]
lea ecx, [ebp + 0xc]
push 0
push 2
push ecx
push dword [ebp + 8]
mov ecx, edi
mov dword [ebp - 4], 0
call dword [eax + 0x50]
lea ecx, [ebp + 0xc]
mov dword [edi + 0x10], eax
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
cmp dword [edi + 0x10], 0
je 0x472a78
push 0x4d5da0
lea ecx, [edi + 0xc]
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::operator]
push ebx
push dword [edi + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edx, dword [edi]
mov ecx, edi
mov esi, eax
call dword [edx + 0x58]
test esi, esi
je 0x472a8e
lea eax, [edi + 8]
push eax
lea eax, [ebp - 0x14]
push 0x4dccac
push eax
call fcn.00466380
push 0x4dcc18
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 1
push eax
call fcn.004662e0
push ebx
push eax
lea eax, [ebp + 8]
mov byte [ebp - 4], 2
push eax
call fcn.004662e0
push 0x4dcc14
push eax
lea eax, [ebp + 0x10]
mov byte [ebp - 4], 3
push eax
call fcn.004662e0
add esp, 0x30
push eax
lea ecx, [edi + 0x1c]
mov byte [ebp - 4], 4
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__18]
lea ecx, [ebp + 0x10]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp + 8]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x472ab0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c5472
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4f4f98]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x472bd6
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x472bd6
push eax
lea ecx, [ebp + 0xc]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__21]
mov eax, dword [edi]
lea ecx, [ebp + 0xc]
push 0
push 2
push ecx
push dword [ebp + 8]
mov ecx, edi
mov dword [ebp - 4], 0
call dword [eax + 0x50]
lea ecx, [ebp + 0xc]
mov dword [edi + 0x10], eax
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
cmp dword [edi + 0x10], 0
je 0x472bd6
push ebx
lea ecx, [edi + 0xc]
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::operator]
push dword [edi + 0xc]
push dword [edi + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edx, dword [edi]
mov ecx, edi
mov esi, eax
call dword [edx + 0x58]
test esi, esi
je 0x472bec
lea eax, [edi + 8]
push eax
lea eax, [ebp - 0x14]
push 0x4dcc90
push eax
call fcn.00466380
push 0x4dcc18
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 1
push eax
call fcn.004662e0
push ebx
push eax
lea eax, [ebp + 8]
mov byte [ebp - 4], 2
push eax
call fcn.004662e0
push 0x4dcc14
push eax
lea eax, [ebp + 0x10]
mov byte [ebp - 4], 3
push eax
call fcn.004662e0
add esp, 0x30
push eax
lea ecx, [edi + 0x1c]
mov byte [ebp - 4], 4
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__18]
lea ecx, [ebp + 0x10]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp + 8]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x47ac20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c6896
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4f4f98]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], 0
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
push eax
push 0x104
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 1
call fcn.004b3a40
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x28]
cmovae edx, dword [ebp - 0x28]
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x47acc4
sub eax, edi
mov ecx, esi
sar eax, 1
push eax
push edx
call fcn.004b3de0
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x47ad18
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47ad0e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x47ad0e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004be864
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bee1d
mov esp, ebp
pop ebp
ret
Function at 0x47cf80
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c6da3
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x4f4f98]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x47cfbf
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 4]
mov eax, dword [edi]
lea ecx, [ebp + 8]
push ecx
mov ecx, edi
call dword [eax + 8]
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
cmp dword [eax - 0xc], 0
jne 0x47cfe1
xor esi, esi
jmp 0x47d0b0
push 2
push 1
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp + 8]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__23]
push 0x4d7538
mov ecx, eax
mov byte [ebp - 4], 1
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__14]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0
mov esi, eax
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
test esi, esi
jne 0x47d038
push 3
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp + 8]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__1]
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__18]
lea ecx, [ebp - 0x10]
jmp 0x47d099
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
call fcn.0047cd80
add esp, 8
mov esi, eax
mov ecx, esi
mov byte [ebp - 4], 4
call dword [sym.imp.mfc140u.dll_Ordinal_5921]
push eax
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc140u.dll_Ordinal_285]
mov eax, dword [esi]
push 1
push 0x4d6bf0
mov dword [ebp - 0x14], 1
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::Concatenate]
add esp, 0x14
lea eax, [ebp - 0x10]
lea ecx, [ebp + 8]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__18]
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [edi + 0xc], eax
mov esi, 1
lea ecx, [ebp + 8]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x480180
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c7987
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4f4f98]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__21]
mov eax, dword [edi]
lea ecx, [ebp + 0xc]
push 0
push 1
push ecx
push dword [ebp + 8]
mov ecx, edi
mov dword [ebp - 4], 0
call dword [eax + 0x50]
lea ecx, [ebp + 0xc]
mov dword [edi + 0x10], eax
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
cmp dword [edi + 0x10], 0
je 0x480246
push dword [ebp + 0x10]
lea ecx, [ebp + 8]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__21]
mov eax, dword [edi]
lea ecx, [ebp + 8]
push 4
push ecx
mov ecx, edi
mov dword [ebp - 4], 1
call dword [eax + 0x54]
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
mov esi, eax
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
cmp esi, 4
jne 0x480246
lea eax, [edi + 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [edi + 0x14]
push eax
push 0
push dword [edi + 0xc]
push dword [edi + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [edi]
mov ecx, edi
mov esi, eax
call dword [edx + 0x58]
mov eax, dword [ebp - 0x10]
test esi, esi
je 0x480249
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x488760
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c9230
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4f4f98]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push dword [ebp + 0x10]
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__21]
mov eax, dword [edi]
lea ecx, [ebp - 0x10]
push 0
push 1
push ecx
push dword [ebp + 0xc]
mov ecx, edi
mov dword [ebp - 4], 0
call dword [eax + 0x50]
lea ecx, [ebp - 0x10]
mov dword [edi + 0x10], eax
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
cmp dword [edi + 0x10], 0
je 0x48887a
push dword [ebp + 0x14]
lea ecx, [ebp + 0xc]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__21]
mov eax, dword [edi]
lea ecx, [ebp + 0xc]
push 1
push ecx
mov ecx, edi
mov dword [ebp - 4], 1
call dword [eax + 0x54]
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
mov esi, eax
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
cmp esi, 1
jne 0x48887a
lea ecx, [ebp + 0x10]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
mov esi, dword [edi + 0xc]
lea eax, [edi + 0x18]
push eax
mov eax, dword [eax]
lea ecx, [ebp + 0x10]
shr eax, 1
push eax
mov dword [ebp - 4], 2
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
push eax
lea eax, [edi + 0x14]
push eax
push 0
push esi
push dword [edi + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0xffffffffffffffff
lea ecx, [ebp + 0x10]
mov esi, eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::ReleaseBuffer]
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x58]
mov ecx, dword [ebp + 8]
test esi, esi
je 0x488865
push dword [ebp + 0x18]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__21]
lea ecx, [ebp + 0x10]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
jmp 0x488886
lea eax, [ebp + 0x10]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__22]
lea ecx, [ebp + 0x10]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
jmp 0x488886
push dword [ebp + 0x18]
mov ecx, dword [ebp + 8]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__21]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x14
Function at 0x489c00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c9861
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x4f4f98]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], 0
mov edi, dword [ebp + 8]
mov ecx, edi
call dword [sym.imp.mfc140u.dll_Ordinal_296]
push 0x104
mov ecx, edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 1
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0xffffffffffffffff
mov ecx, edi
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::ReleaseBuffer]
mov ebx, dword [edi]
lea ecx, [ebp - 0x10]
push ebx
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__21]
push 0x104
push 0x104
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 1
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
mov esi, eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::ReleaseBuffer]
lea ecx, [ebp - 0x18]
test esi, esi
jne 0x489cb6
push ebx
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__21]
jmp 0x489cc0
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__22]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], 3
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 2
push eax
mov ecx, edi
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__18]
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret