joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417790
Capabilities:
Get common file path

Disassembly:
sub esp, 0x128
push ebx
push ebp
push esi
push edi
push pe_nt_image_headers32
pop ecx
pushal
popal
xor eax, eax
lea edi, [esp + 0x35]
mov byte [esp + 0x34], 0
rep stosd dword es:[edi], eax
mov ebp, dword [esp + 0x13c]
xor esi, esi
stosw word es:[edi], ax
test ebp, ebp
stosb byte es:[edi], al
jne 0x4177e4
lea eax, [esp + 0x34]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
test eax, eax
je 0x4178c2
lea ecx, [esp + 0x34]
lea ebp, [esp + 0x34]
or ecx, ecx
je 0x4178c2
cmp byte [ebp], 0
je 0x4178c2
mov ebx, dword [esp + 0x140]
or ebx, ebx
je 0x4178c2
cmp byte [ebx], 0
je 0x4178c2
mov edi, dword [esp + 0x144]
test edi, edi
je 0x4178c2
mov esi, dword [sym.imp.KERNEL32.DLL_lstrlenA]
push ebp
call esi
mov edx, eax
push ebx
mov dword [esp + 0x14], edx
call esi
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x148]
lea eax, [edx + eax + 0x10]
cmp ecx, eax
jle 0x4178b3
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov esi, eax
mov eax, dword [0x4338bc]
cmp esi, eax
jne 0x41785c
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov esi, eax
mov eax, dword [0x4338bc]
cmp esi, eax
je 0x41784b
push ebp
push edi
mov dword [0x4338bc], esi
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
mov ecx, dword [esp + 0x148]
push ecx
push edi
call fcn.0040ce70
add esp, 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_lstrcatA]
push edi
call ebx
push esi
lea edx, [esp + 0x18]
push str._08X.tmp
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x14]
push eax
push edi
call ebx
pop edi
pop esi
pop ebp
pushfd
xor eax, eax
inc eax
popfd
pop ebx
add esp, 0x128
ret 0x10
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x128
ret 0x10
push esi
pop eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x128
ret 0x10

Function at 0x418510
Capabilities:
Copy file

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, ecx
sub ebp, ebp
push edi
lea eax, [esp + 0x10]
push ebp
lea edi, [esi + 0x1574]
push eax
push str.AccumFile
push edi
push reloc.WSOCK32.dll_bind
mov dword [esp + 0x24], ebp
call fcn.0040adb0
mov ecx, dword [esp + 0x24]
push ebp
push ecx
call fcn.0040ca30
mov edx, dword [esp + 0x2c]
push edx
call fcn.0041b272
add esp, 0x20
lea ebx, [esi + 0x1d74]
mov ecx, esi
push 1
push 0x104
push ebx
push 0x42dc24
call fcn.00418a10
or eax, eax
je 0x4185de
push ebx
push str.AccumFile
push edi
push reloc.WSOCK32.dll_bind
call fcn.0040b170
mov eax, dword [esi + 0x1e80]
push eax
push str.UrlSize
push edi
push reloc.WSOCK32.dll_bind
call fcn.0040b1f0
lea ecx, [esi + 0x1e88]
push ecx
push str.UrlTime
push edi
push reloc.WSOCK32.dll_bind
call fcn.0040b170
mov edi, dword [esp + 0x48]
push edi
call fcn.0040ca00
add esp, 0x34
or eax, eax
je 0x4185c8
push ebp
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_CopyFileA]
push 0
push esi
pop ecx
call fcn.004185f0
pop edi
pop esi
pop ebp
nop
nop
push 1
pop eax
pop ebx
pop ecx
ret 4
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
pop ecx
ret 4
Function at 0x418630
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x114
push esi
push edi
mov edi, dword [esp + 0x120]
sub eax, eax
or edi, edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], eax
je 0x4187bb
cmp byte [edi], 0
je 0x4187bb
mov esi, dword [esp + 0x124]
or esi, esi
je 0x4187bb
cmp byte [esi], 0
je 0x4187bb
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.DLL_CreateFileA]
push eax
push 0x80
push 3
push eax
push 1
push bind
push edi
call ebp
push eax
pop ebx
cmp ebx, 0xffffffff
je 0x4187aa
push 0
push ebx
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov edi, dword [esp + 0x134]
cmp edi, 0xffffffff
jne 0x4186b1
push eax
pop edi
jmp 0x4186b9
cmp eax, edi
jne 0x41879c
lea eax, [esp + 0x20]
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
lea ecx, [esp + 0x20]
push ecx
call fcn.0040cf00
lea edx, [esp + 0x24]
push 0
push edx
call fcn.0040cbf0
add esp, 0xc
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
push esi
call ebp
push eax
pop esi
cmp esi, 0xffffffff
je 0x41879c
push 0
push esi
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov ebp, dword [esp + 0x130]
cmp eax, ebp
jne 0x418787
push 0
push 0
push ebp
push esi
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
cmp eax, ebp
jne 0x418787
push edi
call fcn.0041b345
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x418787
lea eax, [esp + 0x18]
push 0
push eax
push edi
push ebp
push ebx
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.DLL_ReadFile]
or eax, eax
je 0x41877e
cmp dword [esp + 0x18], edi
jne 0x41877e
lea ecx, [esp + 0x10]
push 0
push ecx
push edi
push ebp
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
or eax, eax
je 0x41877e
mov eax, dword [esp + 0x10]
xor edx, edx
cmp eax, edi
sete dl
mov dword [esp + 0x14], edx
push ebp
call fcn.0041b272
add esp, 4
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
add dword [eax + 0x1e7c], ecx
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov edi, dword [esp + 0x128]
push 0
push edi
call fcn.0040ca30
mov eax, dword [esp + 0x1c]
add esp, 8
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x114
ret 0x10
Function at 0x41a030
Capabilities:
Persist via run registry key

Disassembly:
sub esp, 0x310
push ebp
push esi
push edi
mov edi, dword [esp + 0x320]
xor esi, esi
mov eax, str.Gator
or edi, edi
mov dword [esp + 0x14], esi
jne 0x41a054
mov eax, str.Offers
push eax
push str.FixSwwApp__s_:
call fcn.0041aa10
add esp, 8
mov ebp, str.Gator
or edi, edi
jne 0x41a070
mov ebp, str.Offers
lea eax, [esp + 0xc]
push 0
push eax
push ebp
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.WSOCK32.dll_bind
mov dword [esp + 0x20], 0
call fcn.0040adb0
mov eax, dword [esp + 0x20]
add esp, 0x14
or eax, eax
je 0x41a26b
push eax
push str.Setting__s__
call fcn.0041aa10
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0040ca00
add esp, 0xc
test eax, eax
jne 0x41a252
push str.File_does_NOT_exist_
call fcn.0041aa10
lea edx, [esp + 0x14]
push 0
push edx
push str.ProgramFilesDir
push str.SoftwareMicrosoftWindowsCurrentVersion
push reloc.WSOCK32.dll_bind
mov dword [esp + 0x28], 0
call fcn.0040adb0
mov eax, dword [esp + 0x28]
add esp, 0x18
test eax, eax
je 0x41a239
push eax
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
lea ecx, [esp + 0x18]
push 0x104
push ecx
call fcn.0040ce70
add esp, 8
mov eax, str.QwertyuioQwert
test edi, edi
jne 0x41a126
mov eax, str.QwertyuioOfferCompanion
mov esi, dword [sym.imp.KERNEL32.DLL_lstrcatA]
lea edx, [esp + 0x18]
push eax
push edx
call esi
lea eax, [esp + 0x18]
push 0x104
push eax
call fcn.0040ce70
add esp, 8
mov eax, str.Gator
test edi, edi
jne 0x41a154
mov eax, str.Offers
lea ecx, [esp + 0x18]
push eax
push ecx
call esi
lea edx, [esp + 0x18]
push str..exe
push edx
call esi
mov eax, dword [esp + 0xc]
push eax
call fcn.0040c920
mov esi, eax
add esp, 4
or esi, esi
jne 0x41a180
mov eax, 0x42fa7c
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.0041bfb0
add esp, 8
test eax, eax
je 0x41a20b
lea edx, [esp + 0x18]
push edx
push str.Correct_path_is___s__
call fcn.0041aa10
lea eax, [esp + 0x20]
push eax
call fcn.0040ca00
add esp, 0xc
test eax, eax
je 0x41a204
pushal
popal
push 0x7f
pop ecx
xor eax, eax
lea edi, [esp + 0x11d]
mov byte [esp + 0x11c], 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x11c]
push 0x200
stosw word es:[edi], ax
push ecx
lea edx, [esp + 0x20]
push 0
push edx
push ebp
stosb byte es:[edi], al
call fcn.00423cc0
add esp, 0x14
or eax, eax
je 0x41a1fd
mov dword [esp + 0x14], 1
push str.Path_FIXED.
jmp 0x41a210
push str.RegistryWriteString___FAILED.
jmp 0x41a210
push str.Correct_exe_not_found.
jmp 0x41a210
push str.VALID__path_is_correct_.
call fcn.0041aac0
add esp, 4
push esi
call fcn.0041b272
mov eax, dword [esp + 0x14]
push eax
call fcn.0041b272
mov eax, dword [esp + 0x1c]
add esp, 8
pop edi
pop esi
pop ebp
add esp, 0x310
ret
push str.Couldnt_locate_PROGFILES_dir.
call fcn.0041aac0
add esp, 4
push esi
pop eax
pop edi
pop esi
pop ebp
add esp, 0x310
ret
push str.VALID__file_exists_.
call fcn.0041aac0
add esp, 4
push esi
pop eax
pop edi
pop esi
pop ebp
add esp, 0x310
ret
push str.SWW_setting_not_present.
call fcn.0041aac0
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
add esp, 0x310
ret
Function at 0x41aca0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x84
push ebx
push ebp
push esi
push edi
push str._tUpdating_directories...
call fcn.0041aac0
mov eax, str.Qwertyuio
add esp, 4
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
pushfd
xor ecx, ecx
inc ecx
popfd
mov eax, str.softwareQwertyuioQwert_statGMTSettings
xor ebx, ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], str.SoftwareMicrosoftWindowsCurrentVersion
mov dword [esp + 0x20], str.ProgramFilesDir
mov byte [esp + 0x2c], 0
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], str.WorkingDir
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], 0x42a2e8
mov byte [esp + 0x40], bl
mov dword [esp + 0x44], str.softwareQwertyuioCMEII
mov dword [esp + 0x48], str.appPath
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], 0x42b4cc
mov byte [esp + 0x54], cl
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], str.GatorExe
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], str.Gator
mov byte [esp + 0x68], bl
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], str.OCExe
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], 0x42e6c8
mov byte [esp + 0x7c], bl
mov dword [esp + 0x80], str.softwareQwertyuioDate_Manager
mov dword [esp + 0x84], str.AppPath
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], 0x42e6a4
mov byte [esp + 0x90], bl
lea esi, [esp + 0x24]
mov dword [esp + 0x14], 6
mov eax, dword [esi + 4]
push eax
push str._t_t_s:
call fcn.0041aa10
mov edi, dword [esi - 4]
mov ebp, dword [esi - 8]
lea ecx, [esp + 0x18]
push ebx
push ecx
push edi
push ebp
push reloc.WSOCK32.dll_bind
mov dword [esp + 0x2c], ebx
call fcn.0040adb0
mov eax, dword [esp + 0x2c]
add esp, 0x1c
cmp eax, ebx
je 0x41aeaa
mov edi, dword [esi]
cmp edi, ebx
je 0x41ae25
mov ebx, dword [sym.imp.KERNEL32.DLL_lstrlenA]
push edi
call ebx
mov edx, dword [esp + 0x10]
mov ebp, eax
push edx
call ebx
lea ebp, [eax + ebp + 0xa]
push ebp
call fcn.0041b345
mov ebx, eax
mov eax, dword [esp + 0x14]
push edi
push eax
push ebp
push ebx
call fcn.0040cf70
add esp, 0x14
or eax, eax
je 0x41ae1c
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0041b272
add esp, 4
mov dword [esp + 0x10], ebx
jmp 0x41ae23
mov edx, dword [esp + 0x10]
mov byte [edx], 0
xor ebx, ebx
mov eax, dword [esp + 0x10]
push eax
call fcn.0040ca00
add esp, 4
test eax, eax
je 0x41ae43
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0040cf00
add esp, 4
mov edx, dword [esp + 0x10]
push edx
push str.dir_is___s_...
call fcn.0041aa10
mov eax, dword [esp + 0x18]
push eax
call fcn.0040c9d0
add esp, 0xc
test eax, eax
je 0x41ae8e
mov cl, byte [esi + 8]
mov edx, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x9c]
push edx
call fcn.0040ec20
test eax, eax
je 0x41ae83
push 0x429578
jmp 0x41ae93
mov dword [esp + 0x18], ebx
push str.FAILED
jmp 0x41ae93
push str.doesnt_exist__OK_.
call fcn.0041aac0
mov eax, dword [esp + 0x14]
add esp, 4
push eax
call fcn.0041b272
add esp, 4
jmp 0x41aeb9
push edi
push ebp
push str.Didnt_find__HKLM_s_____s___OK_
call fcn.0041aac0
add esp, 0xc
mov eax, dword [esp + 0x14]
add esi, 0x14
dec eax
mov dword [esp + 0x14], eax
jne 0x41ad98
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x84
ret
Function at 0x423cc0
Capabilities:
Persist via run registry key

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push esi
push edi
mov edi, dword [esp + 0x24]
push 0x42fa7c
xor esi, esi
push ebp
push edi
mov dword [esp + 0x1c], esi
call fcn.00423e30
mov eax, dword [esp + 0x24]
add esp, 0xc
or eax, eax
je 0x423e14
cmp byte [eax], 0
je 0x423e14
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x423e14
push ebx
call fcn.0040ca00
add esp, 4
test eax, eax
je 0x423dfc
mov edi, dword [esp + 0x20]
or edi, edi
je 0x423d25
push edi
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
mov esi, eax
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
lea eax, [eax + esi + 0xa]
push eax
call fcn.0041b345
push eax
pop esi
add esp, 4
test esi, esi
je 0x423ddf
push ebx
push 0x42b2c8
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
test edi, edi
je 0x423d6f
mov al, byte [edi]
mov ebx, dword [sym.imp.KERNEL32.DLL_lstrcatA]
cmp al, 0x20
je 0x423d6b
push 0x429c84
push esi
call ebx
push edi
push esi
call ebx
mov edi, dword [esp + 0x18]
push esi
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.WSOCK32.dll_bind
call fcn.0040b170
add esp, 0x10
test eax, eax
je 0x423db5
mov ecx, dword [esp + 0x24]
push esi
push edi
push 1
push 1
push ebp
push ecx
call fcn.00423e80
add esp, 0x18
pushfd
xor edi, edi
inc edi
popfd
push esi
call fcn.0041b272
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov edx, dword [esp + 0x24]
push 0
push edi
push 1
push 0
push ebp
push edx
call fcn.00423e80
mov edi, dword [esp + 0x28]
add esp, 0x18
push esi
call fcn.0041b272
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x24]
push str.Failed_to_alloc_path_buf
push ebp
push eax
call fcn.00423e30
mov eax, dword [esp + 0x1c]
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push ebx
push str.Cant_find___s_
push ebp
push edi
call fcn.00423e30
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push str.Invalid_arg_s_
push ebp
push edi
call fcn.00423e30
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x424760
Capabilities:
Persist via run registry key

Disassembly:
sub esp, 0x408
lea eax, [esp + 4]
push 0
push eax
push str.Cache
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push bind
mov dword [esp + 0x18], 0
call fcn.0040adb0
mov eax, dword [esp + 0x18]
add esp, 0x14
test eax, eax
je 0x4247b2
push 0x104
push eax
push 0x43482c
call dword [sym.imp.KERNEL32.DLL_lstrcpynA]
mov ecx, dword [esp + 4]
push ecx
call fcn.0041b272
add esp, 4
mov al, byte [0x434728]
test al, al
jne 0x42485f
lea edx, [esp]
push 0
push edx
push str.ActiveXCache
push str.softwaremicrosoftwindowscurrentversioninternet_settings
push reloc.WSOCK32.dll_bind
mov dword [esp + 0x14], 0
call fcn.0040adb0
add esp, 0x14
or eax, eax
je 0x424852
mov eax, dword [esp]
or eax, eax
je 0x42485f
push eax
lea eax, [esp + 0xc]
push str.found___s_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x14]
push ecx
call fcn.00425280
mov edx, dword [esp + 0x10]
push edx
call fcn.0040c9d0
add esp, 0x14
or eax, eax
je 0x424839
mov eax, dword [esp]
push eax
push 0x434728
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
mov ecx, dword [esp]
push ecx
call fcn.0041b272
jmp 0x42485c
push str.ERROR:_Dir_doesnt_exist.
call fcn.00425280
mov ecx, dword [esp + 4]
add esp, 4
push ecx
call fcn.0041b272
jmp 0x42485c
push str.ERROR:_Unable_to_retrieve_dir.
call fcn.00425280
add esp, 4
mov cl, byte [0x434728]
xor eax, eax
test cl, cl
setne al
add esp, 0x408
ret
Function at 0x403a86
Capabilities:
Copy file
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp byte [esi + 0x22f], bl
jne 0x403c1c
cmp byte [esi + 0x22b], bl
jne 0x403c1c
cmp byte [esi + 0x22e], bl
je 0x403c1c
cmp byte [esi + 0x228], bl
jne 0x403c1c
lea eax, [ebp - 0x270]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x403c1c
lea eax, [ebp - 0x16c]
push eax
push ebx
lea eax, [ebp - 0x270]
push 0x40b380
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x403c1c
lea eax, [ebp - 0x16c]
push ebx
push eax
lea ecx, [esi + 0x240]
call fcn.0040740b
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x403c1c
push edi
push ebx
push 0x4000000
push 3
push ebx
push 1
lea eax, [ebp - 0x16c]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0x10
mov dword [ebp - 8], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x64]
push str.__clone_of_
rep stosd dword es:[edi], eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x68], 0x44
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov edi, dword [sym.imp.OLEAUT32.dll_VariantInit]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x24c]
mov dword [ebp - 0x10], ebx
push eax
mov dword [ebp - 4], eax
call edi
push eax
lea ecx, [ebp - 0x14]
push dword [ebp - 4]
call fcn.0040202e
push 0x40b360
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push eax
mov dword [ebp - 4], eax
call edi
push eax
lea ecx, [ebp - 0x14]
push dword [ebp - 4]
call fcn.0040202e
push dword [ebp - 4]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov esi, dword [esi + 0x234]
push esi
call edi
push eax
push esi
lea ecx, [ebp - 0x14]
call fcn.0040202e
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x14]
push eax
lea eax, [ebp - 0x68]
push eax
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
call fcn.0040740b
push eax
lea eax, [ebp - 0x16c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x10]
call fcn.00401d65
push dword [ebp - 0x14]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [ebp - 0x24]
call fcn.00403c22
cmp dword [ebp - 8], 0xffffffff
pop edi
je 0x403c18
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x403c1e
xor al, al
pop esi
pop ebx
leave
ret
Function at 0x401000
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
push edi
mov esi, eax
call fcn.00402960
mov edi, 0x200
push edi
xor ebx, ebx
lea eax, [esi + 4]
push ebx
push eax
call fcn.0040c310
push edi
lea eax, [esi + 0x204]
push ebx
push eax
call fcn.0040c310
mov edi, 0x80
push edi
lea eax, [esi + 0x408]
push ebx
push eax
call fcn.0040c310
push edi
lea eax, [esi + 0x488]
push ebx
push eax
call fcn.0040c310
push edi
lea eax, [esi + 0x50a]
push ebx
push eax
call fcn.0040c310
add esp, 0x3c
push 8
pop ecx
xor eax, eax
push 8
lea edi, [esi + 0x58c]
rep stosd dword es:[edi], eax
pop ecx
lea edi, [esi + 0x9bc]
rep stosd dword es:[edi], eax
lea eax, [esi + 0x5ac]
push eax
mov edi, 0x104
push edi
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
push edi
lea eax, [esi + 0x7b4]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
pop edi
mov eax, esi
pop esi
pop ebx
ret

Function at 0x401140
Capabilities:
Get common file path
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x19c]
sub esp, 0x21c
mov eax, dword [0x422040]
xor eax, ebp
mov dword [ebp + 0x198], eax
push esi
push edi
xor eax, eax
xor edi, edi
push 0x206
mov word [ebp - 0x70], ax
lea eax, [ebp - 0x6e]
mov esi, ecx
push edi
push eax
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x78], edi
call fcn.0040c310
add esp, 0xc
mov dword [ebp - 0x74], edi
cmp esi, edi
je 0x401239
cmp ebx, edi
je 0x401239
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x401197
sub eax, edx
sar eax, 1
je 0x401239
cmp dword [ebp + 0x1a8], edi
jne 0x4011e2
mov eax, dword [ebp + 0x1a4]
cmp dword [eax], 3
jne 0x4011e2
mov esi, 0x104
push esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
push 0x41dcdc
lea eax, [ebp - 0x70]
push esi
push eax
call fcn.00409047
add esp, 0xc
jmp 0x4011f2
lea eax, [ebp - 0x70]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
push ebx
lea eax, [ebp - 0x70]
push esi
push eax
call fcn.00409047
push 0x41dce0
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.0040918a
add esp, 0x18
cmp dword [ebp - 0x74], edi
je 0x401239
push dword [ebp - 0x74]
xor esi, esi
inc esi
push esi
push 0x200
push dword [ebp - 0x7c]
call fcn.0040947d
push dword [ebp - 0x74]
call fcn.00409511
add esp, 0x14
mov dword [ebp - 0x78], esi
mov ecx, dword [ebp + 0x198]
mov eax, dword [ebp - 0x78]
pop edi
xor ecx, ebp
pop esi
call fcn.00409038
add ebp, 0x19c
leave
ret 8

Function at 0x401255
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, 0x104
push esi
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
push 0x41dcdc
push esi
push dword [esp + 0x10]
call fcn.00409047
add esp, 0xc
pop esi
ret 4
Function at 0x4012e4
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x422040]
xor eax, ebp
mov dword [ebp + 0x190], eax
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x78], ax
lea eax, [ebp - 0x76]
push eax
xor esi, esi
call fcn.0040c310
add esp, 0xc
test edi, edi
je 0x4013aa
and dword [ebp - 0x7c], esi
mov ecx, 0x41dce8
mov eax, ecx
lea esi, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x40132f
sub eax, esi
sar eax, 1
je 0x401353
push 0x41dcec
push ecx
lea eax, [ebp - 0x7c]
push eax
call fcn.0040918a
add esp, 0xc
jmp 0x401387
lea eax, [ebp - 0x78]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
push 0x41dca8
lea eax, [ebp - 0x78]
push esi
push eax
call fcn.00409047
push 0x41dcec
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.0040918a
add esp, 0x18
xor esi, esi
inc esi
cmp dword [ebp - 0x7c], 0
je 0x4013aa
push dword [ebp - 0x7c]
push esi
push 0x200
push edi
call fcn.004096ef
push dword [ebp - 0x7c]
call fcn.00409511
add esp, 0x14
mov ecx, dword [ebp + 0x190]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00409038
add ebp, 0x194
leave
ret

Function at 0x4013c2
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x422040]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0040c310
mov eax, dword [ebp + 8]
add esp, 0xc
cmp dword [eax], 3
lea eax, [ebp - 0x20c]
push eax
jne 0x401409
call fcn.00401255
jmp 0x401414
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
push esi
lea eax, [ebp - 0x20c]
push eax
push str._s_s.exe
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
add esp, 0x10
call fcn.00409038
leave
ret 4
Function at 0x401439
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x2d8
mov eax, dword [0x422040]
xor eax, ebp
mov dword [ebp + 0x74], eax
push edi
xor eax, eax
xor edi, edi
push 0xc6
mov word [ebp - 0x54], ax
lea eax, [ebp - 0x52]
push edi
push eax
mov dword [ebp - 0x260], edi
call fcn.0040c310
xor eax, eax
push 0x206
mov word [ebp - 0x25c], ax
lea eax, [ebp - 0x25a]
push edi
push eax
call fcn.0040c310
push str.Software_
lea eax, [ebp - 0x54]
push 0x64
push eax
call fcn.00409771
push str.Microsoft_
lea eax, [ebp - 0x54]
push 0x64
push eax
call fcn.00409047
push str.Windows_NT_
lea eax, [ebp - 0x54]
push 0x64
push eax
call fcn.00409047
push str.CurrentVersion_
lea eax, [ebp - 0x54]
push 0x64
push eax
call fcn.00409047
add esp, 0x48
push str.Windows
lea eax, [ebp - 0x54]
push 0x64
push eax
call fcn.00409047
push ebx
lea eax, [ebp - 0x25c]
push 0x104
push eax
call fcn.00409771
add esp, 0x18
lea eax, [ebp - 0x260]
push eax
push 3
push edi
lea eax, [ebp - 0x54]
push eax
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401553
lea eax, [ebp - 0x25c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x401515
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x25c]
push eax
push 1
push edi
push 0x41dd7c
push dword [ebp - 0x260]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x401553
push dword [ebp - 0x260]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x74]
xor ecx, ebp
xor eax, eax
pop edi
call fcn.00409038
add ebp, 0x78
leave
ret