joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413094
Capabilities:
Terminate process

Disassembly:
push 8
mov eax, 0x422f31
call fcn.0042153c
mov edi, ecx
mov ebx, edx
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call dword [0x436ac8]
lea ecx, [ebp - 0x14]
call dword [0x436ac8]
mov byte [ebp - 4], 2
call sub.mfc90u.dll_AfxGetModuleState
mov eax, dword [eax + 8]
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.K9PCUhelper.dll_wchar_t_const____cdecl_GetAppPath_struct_HINSTANCE_____class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t_____]
pop ecx
pop ecx
call sub.mfc90u.dll_AfxGetModuleState
mov esi, dword [eax + 8]
mov eax, 0x105
push eax
push eax
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer_1]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::ReleaseBuffer]
xor esi, esi
cmp edi, esi
jne 0x413127
mov eax, dword [ebx + 0x20]
cmp eax, esi
je 0x413127
push 1
push 0x54
push eax
call sub.mfc90u.dll_AfxIsValidAddress
test eax, eax
je 0x413127
mov eax, dword [ebx + 0x20]
cmp eax, esi
jne 0x413124
xor edi, edi
jmp 0x413127
mov edi, dword [eax + 0x20]
push 1
push dword [ebp - 0x14]
push dword [ebp + 8]
push dword [ebp - 0x10]
push str.runas
push edi
call dword [sym.imp.K9PCUhelper.dll_public:_static_struct_HINSTANCE______cdecl_CMainApp::ShellExecuteW_struct_HWND_____wchar_t_const___wchar_t_const___wchar_t_const___wchar_t_const___int_]
mov ebx, eax
add esp, 0x18
cmp ebx, 0x20
jle 0x413190
cmp byte [ebp + 0xc], 0
je 0x413190
push esi
call dword [sym.imp.USER32.dll_PostQuitMessage]
push edi
call dword [sym.imp.USER32.dll_IsWindow]
push esi
test eax, eax
je 0x41318a
push esi
push 0x12
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [ebp + 8]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov al, 1
jmp 0x4131b1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [ebp + 8]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
cmp ebx, 0x20
setg al
call fcn.004215db
ret 8
Function at 0x4145b3
Capabilities:
Delete file

Disassembly:
push 8
mov eax, 0x422a8e
call fcn.0042156f
and dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call dword [0x436ac8]
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 2
mov esi, dword [sym.imp.K9PCUhelper.dll_enum_PCO_ERROR_CODES___cdecl_STPathAppend_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t____const__]
push eax
call esi
pop ecx
pop ecx
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
call esi
pop ecx
pop ecx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
xor edi, edi
inc edi
lea esi, [ebp + 8]
call fcn.00413bea
mov eax, edi
call fcn.004215db
ret 0x14
Function at 0x41c531
Capabilities:
Get system information on windows

Disassembly:
push ebp
lea ebp, [esp - 0xc8]
sub esp, 0x148
mov eax, dword [0x44c028]
xor eax, ebp
mov dword [ebp + 0xc4], eax
mov eax, dword [ebp + 0xd0]
push edi
push 9
pop ecx
mov dword [ebp - 0x5c], eax
xor eax, eax
push 0x11c
lea edi, [ebp - 0x80]
push eax
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x58]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
lea eax, [ebp - 0x58]
push eax
mov dword [ebp - 0x58], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push str.GetNativeSystemInfo
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
pop edi
test eax, eax
je 0x41c5a7
lea ecx, [ebp - 0x80]
push ecx
call eax
jmp 0x41c5b1
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp - 0x5c]
mov dword [ebx], eax
mov dword [edx], ecx
mov dword [0x4a10d8], eax
movzx eax, byte [ebp + 0xc2]
mov dword [0x4a10e0], eax
mov ax, word [ebp - 0x80]
mov dword [0x4a10dc], ecx
mov ecx, dword [ebp + 0xc4]
mov word [0x4a10e4], ax
xor eax, eax
xor ecx, ebp
inc eax
call fcn.00420e1a
add ebp, 0xc8
leave
ret 4

Function at 0x41c5f9
Capabilities:
Get system information on windows

Disassembly:
push ebp
sub esp, 0x11c
lea ebp, [esp - 4]
mov eax, dword [0x44c028]
xor eax, ebp
mov dword [ebp + 0x11c], eax
push 0x3c
mov eax, 0x421a9a
call fcn.0042156f
mov eax, dword [ebp + 0x128]
and dword [ebp - 4], 0
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x12c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x130]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x134]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x138]
push 9
mov ebx, ecx
pop ecx
mov dword [ebp - 0x18], eax
xor eax, eax
mov esi, 0x11c
push esi
lea edi, [ebp - 0x48]
push eax
rep stosd dword es:[edi], eax
lea eax, [ebp]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
lea eax, [ebp]
push eax
mov dword [ebp], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp + 4]
mov ecx, dword [ebp - 0x24]
mov dword [ebx], eax
mov eax, dword [ebp + 8]
mov dword [ecx], eax
movzx eax, byte [ebp + 0x11a]
mov ecx, dword [ebp - 0x20]
push str.GetNativeSystemInfo
push str.kernel32.dll
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41c6c0
lea ecx, [ebp - 0x48]
push ecx
call eax
jmp 0x41c6ca
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [ebp - 0x48]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx], eax
movzx eax, word [ebp + 0x114]
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
movzx eax, word [ebp + 0x116]
mov ecx, dword [ebp - 0x18]
mov dword [ecx], eax
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x11c]
xor ecx, ebp
call fcn.00420e1a
add ebp, 0x120
leave
ret 0x14
Function at 0x41c80b
Capabilities:
Set registry value

Disassembly:
cmp byte [esp + 8], 0
mov eax, edi
push esi
lea esi, [eax + 2]
je 0x41c830
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x41c818
sub eax, esi
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push edi
push 2
jmp 0x41c846
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x41c830
sub eax, esi
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push edi
push 1
push 0
push dword [esp + 0x18]
push dword [ecx + 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb eax, eax
inc eax
pop esi
ret 8

Function at 0x41c85e
Capabilities:
Query or enumerate registry value

Disassembly:
push 8
mov eax, 0x421a7f
call fcn.0042153c
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
or dword [ebp - 0x10], 0xffffffff
or dword [ebp - 0x14], 0xffffffff
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [edi + 4]
call esi
test eax, eax
jne 0x41c91d
cmp dword [ebp - 0x10], 1
je 0x41c8a0
cmp dword [ebp - 0x10], 2
jne 0x41c91d
mov eax, dword [ebp - 0x14]
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.mfc90u.dll_new__
mov ebx, eax
mov eax, dword [ebp - 0x14]
lea eax, [eax + eax + 1]
push eax
push 0
push ebx
call sub.MSVCR90.dll_memset
add esp, 0x10
lea eax, [ebp - 0x14]
push eax
push ebx
lea eax, [ebp - 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [edi + 4]
call esi
test eax, eax
jne 0x41c911
cmp dword [ebp - 0x10], 1
je 0x41c8f0
cmp dword [ebp - 0x10], 2
jne 0x41c911
push ebx
lea ecx, [ebp + 8]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
mov ecx, dword [ebp + 0xc]
and dword [ebp - 4], 0
push eax
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
lea ecx, [ebp + 8]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
push ebx
call sub.mfc90u.dll_delete__
xor eax, eax
pop ecx
inc eax
jmp 0x41c91f
xor eax, eax
call fcn.004215db
ret 8
Function at 0x41dcc6
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push 0x10
mov eax, 0x4228c9
call fcn.0042156f
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0xc]
mov ecx, dword [eax - 0xc]
xor ebx, ebx
xor edx, edx
cmp ecx, ebx
setne dl
mov dword [ebp - 0x14], ebx
mov edi, edx
cmp edi, ebx
je 0x41dcff
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov dword [ebp - 0x14], ecx
push esi
mov byte [esi + 0x68], bl
call fcn.0041e3ac
mov dword [ebp - 0x18], eax
call fcn.0041dc58
cmp edi, ebx
je 0x41dd66
mov dword [ebp - 4], ebx
mov byte [ebp - 4], 1
cmp byte [esi + 0x68], bl
je 0x41dd44
lea ecx, [esi + 0x90]
mov eax, dword [ecx]
call dword [eax + 0x54]
jmp 0x41dd44
cmp dword [ebp - 0x18], 0
jne 0x41dd66
cmp dword [ebp - 0x14], 0
jne 0x41dd66
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test eax, eax
je 0x41dd66
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x18]
call fcn.004215db
ret 4
Function at 0x41f86d
Capabilities:
Hash data with md5

Disassembly:
push 0x40
lea eax, [esi + 4]
push 0
push eax
mov dword [esi], vtable.CMD5Checksum.0
call sub.MSVCR90.dll_memset
and dword [esi + 0x48], 0
and dword [esi + 0x44], 0
add esp, 0xc
mov dword [esi + 0x4c], 0x67452301
mov dword [esi + 0x50], 0xefcdab89
mov dword [esi + 0x54], 0x98badcfe
mov dword [esi + 0x58], 0x10325476
mov eax, esi
ret

Function at 0x41fbdd
Capabilities:
Encode data using xor

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x44c028]
xor eax, ebp
mov dword [ebp + 0x194], eax
mov eax, dword [ebp + 0x1a0]
push ebx
push esi
push edi
mov dword [ebp - 0x80], eax
xor edi, edi
xor eax, eax
mov esi, 0x100
mov byte [ebp + eax + 0x90], al
inc eax
cmp eax, esi
jb 0x41fc0d
xor eax, eax
xor ecx, ecx
cmp eax, 0x31
jne 0x41fc24
xor eax, eax
mov dl, byte [eax + str._hardwareidentifier_pci_ven__s_hardwareidentifier_]
inc eax
mov byte [ebp + ecx - 0x74], dl
inc ecx
cmp ecx, esi
jb 0x41fc1d
mov dword [ebp - 0x78], edi
mov eax, 0xff
movsx esi, byte [ebp + edi - 0x74]
add esi, dword [ebp - 0x78]
lea ecx, [ebp + edi + 0x90]
mov dl, byte [ecx]
movsx ebx, dl
add ebx, esi
and ebx, eax
mov esi, ebx
mov dword [ebp - 0x78], esi
lea esi, [ebp + esi + 0x90]
mov bl, byte [esi]
inc edi
mov byte [ecx], bl
mov byte [esi], dl
cmp edi, 0x100
jb 0x41fc3c
xor edi, edi
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
cmp dword [ebp + 0x1a4], edi
jbe 0x41fcca
inc edi
and edi, eax
lea ecx, [ebp + edi + 0x90]
mov dl, byte [ecx]
movsx esi, dl
add esi, dword [ebp - 0x78]
and esi, eax
mov dword [ebp - 0x78], esi
lea esi, [ebp + esi + 0x90]
mov bl, byte [esi]
mov byte [ecx], bl
mov ebx, dword [ebp - 0x80]
mov byte [esi], dl
movsx ecx, byte [ecx]
mov esi, dword [ebp - 0x7c]
movsx edx, dl
add ecx, edx
and ecx, eax
mov cl, byte [ebp + ecx + 0x90]
add ebx, esi
xor byte [ebx], cl
inc esi
mov dword [ebp - 0x7c], esi
cmp esi, dword [ebp + 0x1a4]
jb 0x41fc7f
mov ecx, dword [ebp + 0x194]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00420e1a
add ebp, 0x198
leave
ret 8

Function at 0x41ffdd
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
call fcn.0041ff80
test al, al
je 0x42003e
mov eax, dword [ebp + 0x10]
push esi
push dword [eax]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
cmp esi, ebx
je 0x42003d
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
dec eax
push 4
pop ecx
je 0x42001b
dec eax
jne 0x42001e
xor ecx, ecx
inc ecx
jmp 0x42001e
push 2
pop ecx
push ebx
lea eax, [ebp - 4]
push eax
push ebx
push 1
push ebx
push ebx
push ebx
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
test eax, eax
push esi
setne bl
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov al, bl
pop ebx
leave
ret

Function at 0x420e1a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44c028]
jne 0x420e24
repz ret
jmp fcn.004213ae
Function at 0x4037f0
Capabilities:
Create directory
Query environment variable

Disassembly:
mov eax, 0x4004
call fcn.00407860
mov eax, dword [0x42d008]
xor eax, esp
mov dword [esp + 0x4000], eax
mov eax, dword [esp + 0x4008]
push edi
push 0
push eax
push 0
call fcn.00404b30
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x403848
push str.LOADER:_Failed_to_convert_runtime_tmpdir_to_a_wide_string._n
call fcn.00401820
add esp, 4
xor eax, eax
pop edi
mov ecx, dword [esp + 0x4000]
xor ecx, esp
call fcn.0040784a
add esp, 0x4004
ret
push esi
push 0x1000
lea eax, [esp + 0x200c]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsW]
push edi
mov esi, eax
call fcn.004097b3
add esp, 4
test esi, esi
jne 0x403892
push str.LOADER:_Failed_to_expand_environment_variables_in_the_runtime_tmpdir._n
call fcn.00401820
add esp, 4
xor eax, eax
pop esi
pop edi
mov ecx, dword [esp + 0x4000]
xor ecx, esp
call fcn.0040784a
add esp, 0x4004
ret
push 0x1000
lea eax, [esp + 0x200c]
push eax
push 0
call fcn.0040dd38
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4038d5
push str.LOADER:_Failed_to_obtain_the_absolute_path_of_the_runtime_tmpdir._n
call fcn.00401820
add esp, 4
xor eax, eax
pop esi
pop edi
mov ecx, dword [esp + 0x4000]
xor ecx, esp
call fcn.0040784a
add esp, 0x4004
ret
push ebx
push 0x2000
lea eax, [esp + 0x10]
push 0
push eax
call fcn.00408610
push 0x5c
push esi
call fcn.004088a7
mov ebx, dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
mov edi, eax
add esp, 0x14
test edi, edi
je 0x403933
nop
mov ecx, edi
lea eax, [esp + 0xc]
sub ecx, esi
sar ecx, 1
inc ecx
push ecx
push esi
push eax
call fcn.0040e438
add esp, 0xc
lea eax, [esp + 0xc]
push 0
push eax
call ebx
lea eax, [edi + 2]
push 0x5c
push eax
call fcn.004088a7
mov edi, eax
add esp, 8
test edi, edi
jne 0x403900
push 0
push esi
call ebx
mov ecx, dword [esp + 0x400c]
mov eax, esi
pop ebx
pop esi
pop edi
xor ecx, esp
call fcn.0040784a
add esp, 0x4004
ret
Function at 0x403ae0
Capabilities:
Get common file path
Set environment variable

Disassembly:
mov eax, 0x2028
call fcn.00407860
mov eax, dword [0x42d008]
xor eax, esp
mov dword [esp + 0x2024], eax
mov eax, dword [esp + 0x202c]
push ebx
push ebp
mov ebp, dword [esp + 0x2038]
mov dword [esp + 8], eax
push esi
push edi
test ebp, ebp
je 0x403b5b
push 0x42283c
call fcn.00403cb0
push ebp
mov ebx, eax
call fcn.004037f0
mov edi, eax
add esp, 8
test edi, edi
je 0x403b54
push edi
push 0x422840
call fcn.0040ea1c
push edi
mov esi, eax
call fcn.004097b3
add esp, 0xc
test esi, esi
je 0x403b5f
push str.LOADER:_Failed_to_set_the_TMP_environment_variable._n
call fcn.00401820
add esp, 4
xor eax, eax
jmp 0x403c95
mov ebx, dword [esp + 0x10]
lea eax, [esp + 0x34]
push eax
push 0x1000
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
call sub.KERNEL32.DLL_GetCurrentProcessId
push eax
push str._MEI_d
lea eax, [esp + 0x1c]
push 0x10
push eax
call fcn.00404580
add esp, 0x10
xor esi, esi
nop dword [eax + eax]
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x38]
push eax
call fcn.0040fb99
mov edi, eax
push edi
call fcn.004049a0
add esp, 0xc
test eax, eax
je 0x403c1f
push edi
call fcn.004097b3
inc esi
add esp, 4
cmp esi, 5
jl 0x403b90
test ebp, ebp
je 0x403b54
push 0
push 0x42283c
push 0
call fcn.00404b30
test ebx, ebx
je 0x403c04
push 0
push ebx
push 0
mov edi, eax
call fcn.00404b30
mov esi, eax
push esi
push edi
call fcn.0040ea1c
push edi
call fcn.004097b3
push esi
call fcn.004097b3
push ebx
call fcn.004097b3
add esp, 0x2c
xor eax, eax
jmp 0x403c95
add esp, 0xc
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableW]
push esi
call fcn.004097b3
add esp, 4
xor eax, eax
jmp 0x403c95
push 0x1000
push edi
push dword [esp + 0x18]
call fcn.00404bd0
push edi
call fcn.004097b3
add esp, 0x10
test ebp, ebp
je 0x403c90
push 0
push 0x42283c
push 0
call fcn.00404b30
test ebx, ebx
je 0x403c79
push 0
push ebx
push 0
mov edi, eax
call fcn.00404b30
mov esi, eax
push esi
push edi
call fcn.0040ea1c
push edi
call fcn.004097b3
push esi
call fcn.004097b3
push ebx
call fcn.004097b3
add esp, 0x2c
jmp 0x403c90
add esp, 0xc
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableW]
push esi
call fcn.004097b3
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x2034]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040784a
add esp, 0x2028
ret
Function at 0x403cb0
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x4004
call fcn.00407860
mov eax, dword [0x42d008]
xor eax, esp
mov dword [esp + 0x4000], eax
mov eax, dword [esp + 0x4008]
push 0
push eax
push 0
call fcn.00404b30
add esp, 0xc
lea ecx, [esp]
push 0x2000
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
test eax, eax
je 0x403d40
push 0x2000
lea eax, [esp + 0x2004]
push eax
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsW]
push 0
lea eax, [esp + 4]
push eax
push 0
call fcn.00404bd0
add esp, 0xc
test eax, eax
je 0x403d40
cmp byte [eax], 0
je 0x403d40
push eax
call fcn.00411160
add esp, 4
mov ecx, dword [esp + 0x4000]
xor ecx, esp
call fcn.0040784a
add esp, 0x4004
ret
mov ecx, dword [esp + 0x4000]
xor eax, eax
xor ecx, esp
call fcn.0040784a
add esp, 0x4004
ret

Function at 0x404240
Capabilities:
Set environment variable

Disassembly:
push esi
push edi
push 0
push dword [esp + 0x10]
push 0
call fcn.00404b30
add esp, 0xc
mov edi, eax
push 0
push edi
call dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableW]
push edi
mov esi, eax
call fcn.004097b3
add esp, 4
mov eax, esi
pop edi
pop esi
ret

Function at 0x404270
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended

Disassembly:
mov eax, 0x2068
call fcn.00407860
mov eax, dword [0x42d008]
xor eax, esp
mov dword [esp + 0x2064], eax
mov eax, dword [esp + 0x206c]
push 0x1000
push eax
lea eax, [esp + 0x6c]
mov dword [esp + 8], 0
push eax
call fcn.00404b30
push 1
push 0x16
call fcn.0040f62e
push 1
push 2
call fcn.0040f62e
push 1
push 0xf
call fcn.0040f62e
push 1
push 0x15
call fcn.0040f62e
add esp, 0x2c
mov dword [esp + 4], 0xc
lea eax, [esp + 0x20]
mov dword [esp + 8], 0
mov dword [esp + 0xc], 1
push eax
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoW]
mov eax, 1
mov dword [esp + 0x24], 0
push 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x50], 0x101
mov word [esp + 0x54], ax
call fcn.0040a71a
push eax
call fcn.004111b6
push eax
call fcn.0040f146
push 1
mov dword [esp + 0x68], eax
call fcn.0040a71a
push eax
call fcn.004111b6
push eax
call fcn.0040f146
push 2
mov dword [esp + 0x78], eax
call fcn.0040a71a
push eax
call fcn.004111b6
push eax
call fcn.0040f146
add esp, 0x24
mov dword [esp + 0x60], eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x24]
push eax
push 0
push 0
push 0
push 1
push 0
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
push eax
lea eax, [esp + 0x88]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
test eax, eax
je 0x4043c7
push 0xffffffffffffffff
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
lea eax, [esp]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.DLL_GetExitCodeProcess]
mov eax, dword [esp]
mov ecx, dword [esp + 0x2064]
xor ecx, esp
call fcn.0040784a
add esp, 0x2068
ret
push str.Error_creating_child_process__n
push 0x422944
call fcn.00401850
mov ecx, dword [esp + 0x206c]
add esp, 8
xor ecx, esp
or eax, 0xffffffff
call fcn.0040784a
add esp, 0x2068
ret
Function at 0x4049a0
Capabilities:
Create directory

Disassembly:
mov eax, 0x2010
call fcn.00407860
mov eax, dword [0x42d008]
xor eax, esp
mov dword [esp + 0x200c], eax
push esi
push edi
mov edi, dword [esp + 0x201c]
call fcn.00404790
mov esi, eax
mov ecx, str.S_1_3_4
test esi, esi
lea eax, [esp + 0x14]
cmovne ecx, esi
push ecx
push str.D:_A__FA____s_
push 0x1000
push eax
call fcn.00404840
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.DLL_LocalFree]
push 0
lea eax, [esp + 0x10]
mov dword [esp + 0xc], 0xc
push eax
push 1
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], 0
push eax
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
test eax, eax
jne 0x404a32
pop edi
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0x200c]
xor ecx, esp
call fcn.0040784a
add esp, 0x2010
ret
lea eax, [esp + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
mov ecx, dword [esp + 0x2014]
neg eax
pop edi
sbb eax, eax
neg eax
pop esi
xor ecx, esp
dec eax
call fcn.0040784a
add esp, 0x2010
ret
Function at 0x401abf
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x48e104]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
lea ecx, [ebp - 0x208]
push eax
call fcn.004019b6
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x20c], eax
cmp dword [esi], ebx
je 0x401b14
push 4
lea eax, [ebp - 0x20c]
push eax
push 4
push ebx
push dword [ebp - 0x208]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x401b14
mov bl, 1
lea ecx, [ebp - 0x208]
call fcn.00401a2d
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.00420802
mov esp, ebp
pop ebp
ret 8

Function at 0x401b33
Capabilities:
Set registry value

Disassembly:
push 0x40c
mov eax, 0x45a4b0
call fcn.0042087e
mov edi, ecx
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x214]
mov esi, dword [ebp + 8]
push eax
call fcn.004019b6
xor ebx, ebx
lea ecx, [ebp - 0x418]
push esi
mov dword [ebp - 4], ebx
call fcn.004019b6
cmp dword [edi], ebx
je 0x401bab
mov ecx, dword [ebp - 0x214]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x401b74
sub ecx, edx
xor ebx, ebx
sar ecx, 1
inc ebx
lea eax, [ecx*2 + 2]
push eax
push dword [ebp - 0x214]
push ebx
push 0
push dword [ebp - 0x418]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x401bab
xor ebx, ebx
lea ecx, [ebp - 0x418]
call fcn.00401a2d
lea ecx, [ebp - 0x214]
call fcn.00401a2d
mov al, bl
call fcn.00420828
ret 8

Function at 0x401d6f
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x48e104]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
xor ebx, ebx
test eax, eax
je 0x401dad
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
je 0x401dad
xor al, al
jmp 0x401df8
push esi
push 0xd7
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
test eax, eax
je 0x401da9
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x401dc2
push dword [ebp - 8]
sub ecx, edx
push dword [ebp - 0xc]
sar ecx, 1
push dword [ebp - 0x10]
push dword [ebp - 0x14]
lea eax, [esi + ecx*2]
push str.spot__.8X_.8X_.8X_.8X.tmp
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
push esi
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov al, 1
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00420802
mov esp, ebp
pop ebp
ret