joyce8/EMBER2024-capa huggingface dataset:
Function at 0x419180
Capabilities:
Get common file path
Get startup folder
Persist via run registry key
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x429751
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x144
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x14]
call fcn.00419a44
mov esi, dword [esp + 0x164]
push 0
push esi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x160], 0
call fcn.00419b07
test eax, eax
lea ecx, [esp + 0x14]
jne 0x4191d9
call fcn.00419abd
jmp 0x419297
call fcn.00419abd
mov eax, dword [esp + 0x168]
test eax, eax
jne 0x4192f9
push esi
lea ecx, [esp + 0x10]
call fcn.004247dc
mov ebx, 1
lea ecx, [esp + 0x30]
mov byte [esp + 0x158], bl
call fcn.00419a44
push 0
push esi
lea ecx, [esp + 0x38]
mov byte [esp + 0x160], 2
call fcn.00419b07
lea ecx, [esp + 0x30]
mov edi, eax
call fcn.00419abd
test edi, edi
je 0x419276
lea eax, [esp + 0x10]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x419276
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x160]
mov eax, dword [ecx - 8]
push eax
mov eax, dword [esp + 0x14]
push esi
push ebx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4192b2
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x30]
mov byte [esp + 0x158], bl
call fcn.00419a81
lea ecx, [esp + 0xc]
mov byte [esp + 0x158], 0
call fcn.004247b2
lea ecx, [esp + 0x14]
mov dword [esp + 0x158], 0xffffffff
call fcn.00419a81
xor eax, eax
jmp 0x41937d
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x30]
mov byte [esp + 0x158], bl
call fcn.00419a81
lea ecx, [esp + 0xc]
mov byte [esp + 0x158], 0
call fcn.004247b2
lea ecx, [esp + 0x14]
mov dword [esp + 0x158], 0xffffffff
call fcn.00419a81
mov eax, ebx
jmp 0x41937d
push 0
lea eax, [esp + 0x50]
push 7
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov ecx, dword [esp + 0x160]
lea edx, [esp + 0x4c]
push ecx
push edx
lea eax, [esp + 0x54]
push str._s_s.lnk
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [esp + 0x4c]
push ecx
push esi
mov ecx, edi
call fcn.004193f0
test eax, eax
jne 0x419353
lea ecx, [esp + 0x14]
mov dword [esp + 0x158], 0xffffffff
call fcn.00419a81
xor eax, eax
jmp 0x41937d
lea edx, [esp + 0x4c]
mov ecx, edi
push edx
push 0x80000002
call fcn.004193a0
lea ecx, [esp + 0x14]
mov dword [esp + 0x158], 0xffffffff
call fcn.00419a81
mov eax, 1
mov ecx, dword [esp + 0x150]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x150
ret 0xc
Function at 0x4193f0
Capabilities:
Create shortcut via ishelllink

Disassembly:
sub esp, 0x210
lea eax, [esp]
push eax
push 0x42b960
push 1
push 0
push 0x42b950
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x41941e
xor eax, eax
add esp, 0x210
ret 8
mov eax, dword [esp]
mov edx, dword [esp + 0x214]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov eax, dword [esp]
lea edx, [esp + 4]
push edx
push 0x42b970
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jge 0x419452
xor eax, eax
add esp, 0x210
ret 8
mov ecx, dword [esp + 0x218]
lea eax, [esp + 8]
push 0x104
push eax
push 0xffffffffffffffff
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar_1]
mov eax, dword [esp + 4]
lea ecx, [esp + 8]
push 2
push ecx
mov edx, dword [eax]
push eax
call dword [edx + 0x18]
mov eax, dword [esp + 4]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esp]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, 1
add esp, 0x210
ret 8
Function at 0x40f3c0
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x668
mov eax, dword [0x59bc84]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x40f5d3
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40f5d3
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40f3f3
sub ecx, edx
sar ecx, 1
cmp ecx, 3
jbe 0x40f5d3
push ebx
push edi
push 0x208
lea eax, [ebp - 0x20c]
mov edi, 1
push 0
push eax
call fcn.004e3050
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.004e3050
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x414]
add esp, 0x18
push esi
push eax
call ebx
push str..
lea eax, [ebp - 0x414]
push eax
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40f474
test al, 1
je 0x40f474
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x664]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x668], eax
cmp eax, 0xffffffff
je 0x40f5b9
lea ecx, [ebp - 0x664]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x40f5ad
nop dword [eax]
test byte [ebp - 0x664], 0x10
je 0x40f528
cmp word [ebp - 0x638], 0x2e
jne 0x40f4e7
mov ax, word [ebp - 0x636]
test ax, ax
je 0x40f592
cmp ax, 0x2e
jne 0x40f4e7
cmp word [ebp - 0x634], 0
je 0x40f592
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004e3050
add esp, 0xc
lea eax, [ebp - 0x20c]
push esi
push eax
call ebx
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x20c]
push eax
call ebx
lea eax, [ebp - 0x20c]
push eax
call fcn.0040f3c0
add esp, 4
jmp 0x40f590
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004e3050
add esp, 0xc
lea eax, [ebp - 0x20c]
push esi
push eax
call ebx
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x20c]
push eax
call ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40f57f
test al, 1
je 0x40f57f
and eax, 0xfffffffe
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
and edi, eax
lea eax, [ebp - 0x664]
push eax
push dword [ebp - 0x668]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40f4b0
push dword [ebp - 0x668]
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
and eax, edi
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049dec8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.0049dec8
mov esp, ebp
pop ebp
ret
Function at 0x40f5f0
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40f648
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40f648
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x40f628
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40f648
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40f643
test al, 0x10
je 0x40f643
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x40f648
xor eax, eax
pop esi
pop ebp
ret
mov eax, 1
pop esi
pop ebp
ret

Function at 0x40fd30
Capabilities:
Check if file exists
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40fd67
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.delete__s_succ__error_code_d
call fcn.0044d190
add esp, 0xc
mov eax, 1
pop esi
pop ebp
ret
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40fd5f
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x40fdaa
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40fdaa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.delete__s_succ__error_d
call fcn.0044d190
add esp, 0xc
mov eax, 1
pop esi
pop ebp
ret
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor eax, eax
pop esi
pop ebp
ret
Function at 0x4127d0
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x538db6
mov eax, dword fs:[0]
push eax
sub esp, 0x814
mov eax, dword [0x59bc84]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x820]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
call fcn.0042ba90
push esi
push edi
push ebx
lea ecx, [ebp - 0x820]
mov dword [ebp - 4], 0
call fcn.0042be60
test eax, eax
jne 0x412832
xor esi, esi
jmp 0x4128db
call fcn.0040ca70
mov ecx, eax
test ecx, ecx
je 0x412961
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x814], eax
push 0
lea eax, [ebp - 0x814]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x820]
call fcn.0042c060
test eax, eax
je 0x4128b7
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.004e3050
add esp, 0xc
lea eax, [ebp - 0x810]
push str.KB931125.exe
push dword [ebp - 0x814]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x412906
push str.file_KB931125.exe_is_not_exit
call fcn.0044d190
add esp, 4
xor esi, esi
mov edi, dword [ebp - 0x814]
or eax, 0xffffffff
mov byte [ebp - 4], 0
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x4128db
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
lea ecx, [ebp - 0x820]
call fcn.0042bab0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049dec8
mov esp, ebp
pop ebp
ret 0xc
push 0x2710
push 0
push 1
push 0
push 0
push 0x55392c
lea eax, [ebp - 0x810]
push eax
call fcn.0042a9f0
mov esi, eax
test esi, esi
jne 0x412937
push str.run_KB931125.exe_error
call fcn.0044d190
add esp, 4
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4128b9
push 4
push eax
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x4128b9
push 0x80004005
call fcn.0040aab0
int3
Function at 0x435ac0
Capabilities:
Check if file exists
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
cmp dword [edi + 4], 0
je 0x435ad6
mov eax, 1
pop edi
pop ebp
ret 4
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x435b94
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x435b94
push esi
call fcn.00497be0
add esp, 4
test eax, eax
je 0x435b94
cmp dword [edi + 0xc], 0
jne 0x435b67
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi + 0xc], eax
test eax, eax
je 0x435b8b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.HttpInit
push eax
call esi
push str.HttpUninit
push dword [edi + 0xc]
mov dword [edi + 0x10], eax
call esi
push str.zlib_uncompress
push dword [edi + 0xc]
mov dword [edi + 0x14], eax
call esi
push str.zlib_compress
push dword [edi + 0xc]
mov dword [edi + 0x1c], eax
call esi
push str.zlib_compressBound
push dword [edi + 0xc]
mov dword [edi + 0x20], eax
call esi
mov dword [edi + 0x24], eax
mov eax, dword [edi + 0x10]
test eax, eax
je 0x435b67
call eax
mov dword [edi + 0x18], eax
cmp dword [edi + 0x14], 0
je 0x435b8b
cmp dword [edi + 0x10], 0
je 0x435b8b
cmp dword [edi + 0x18], 0
je 0x435b8b
pop esi
mov dword [edi + 4], 1
mov eax, 1
pop edi
pop ebp
ret 4
mov eax, dword [edi + 4]
pop esi
pop edi
pop ebp
ret 4
pop esi
xor eax, eax
pop edi
pop ebp
ret 4

Function at 0x437000
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x437053
push edi
push ebx
call fcn.0042a7f0
mov edi, dword [ebp + 0xc]
push edi
push ebx
push str.call_exe_begin__path__s__cmd__s_
call fcn.0044d190
add esp, 0xc
push dword [ebp + 0x18]
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 1
push edi
push ebx
call fcn.0042a9f0
push dword [ebp + 0x14]
push edi
push ebx
push eax
push str.call_exe_return___d___path__s___cmd__s___sync__d_
call fcn.0044d190
add esp, 0x14
pop edi
pop ebx
pop ebp
ret
Function at 0x438240
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53bc12
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x59bc84]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x424], 0
mov dword [ebp - 0x42c], 1
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
push 0x208
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 0x424], 1
mov dword [ebp - 0x428], 0x104
call fcn.004e3050
add esp, 0xc
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x42c]
push eax
push str.local_m2
push 0x557098
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x43831e
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x438300
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.004125f0
cmp dword [esi + 0x10], 0
jne 0x43839a
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004e3050
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.004aa200
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x438354
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.004125f0
cmp dword [esi + 0x14], 8
mov eax, esi
mov ecx, dword [esi + 0x10]
jb 0x43837f
mov eax, dword [esi]
add ecx, ecx
push ecx
push eax
push 1
push str.local_m2
push 0x557098
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049dec8
mov esp, ebp
pop ebp
ret
Function at 0x43b9e0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2858
call fcn.0049e320
mov eax, dword [0x59bc84]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x804]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
push 0x800
push 0
push eax
call fcn.004e3050
add esp, 0xc
cmp dword [ebp + 0x24], 0
je 0x43ba94
test esi, esi
je 0x43bac9
push 0x1000
lea eax, [ebp - 0x1804]
push 0
push eax
call fcn.004e3050
add esp, 0xc
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
je 0x43ba7d
push 0x800
lea eax, [ebp - 0x1804]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x1804]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push esi
lea eax, [ebp - 0x1804]
push eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea esi, [ebp - 0x1804]
push 0x400
lea eax, [ebp - 0x804]
push esi
push eax
call fcn.005115ca
add esp, 0xc
jmp 0x43bab0
lea ecx, [ebp - 0x804]
sub ecx, esi
nop dword [eax]
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x43baa0
cmp dword [ebp + 0x20], 0
je 0x43badc
lea eax, [ebp - 0x804]
push eax
call fcn.00497be0
add esp, 4
test eax, eax
jne 0x43badc
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049dec8
mov esp, ebp
pop ebp
ret
xorps xmm0, xmm0
mov dword [ebp - 0x2858], 0x44
lea eax, [ebp - 0x2858]
movlpd qword [ebp - 0x2854], xmm0
push eax
movlpd qword [ebp - 0x284c], xmm0
movlpd qword [ebp - 0x2844], xmm0
movlpd qword [ebp - 0x283c], xmm0
movlpd qword [ebp - 0x2834], xmm0
movlpd qword [ebp - 0x282c], xmm0
movlpd qword [ebp - 0x2824], xmm0
movlpd qword [ebp - 0x281c], xmm0
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov ax, word [ebp + 0x14]
xorps xmm0, xmm0
push 0x1000
mov word [ebp - 0x2828], ax
lea eax, [ebp - 0x2804]
push 0
push eax
mov dword [ebp - 0x282c], 1
movups xmmword [ebp - 0x2814], xmm0
call fcn.004e3050
add esp, 0xc
lea eax, [ebp - 0x804]
test edi, edi
je 0x43bb8d
push edi
push eax
lea eax, [ebp - 0x2804]
push 0x556014
push eax
call fcn.004365a0
add esp, 0x10
jmp 0x43bba2
push eax
lea eax, [ebp - 0x2804]
push str.__s_
push eax
call fcn.004365a0
add esp, 0xc
lea eax, [ebp - 0x2814]
push eax
lea eax, [ebp - 0x2858]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x2804]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
test edi, edi
je 0x43bc10
cmp dword [ebp + 0x18], 0
je 0x43bbe6
push dword [ebp + 0x1c]
push dword [ebp - 0x2814]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov eax, dword [ebp + 0x28]
test eax, eax
je 0x43bbfa
push eax
push dword [ebp - 0x2814]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x2810]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x2814]
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049dec8
mov esp, ebp
pop ebp
ret
Function at 0x442ad0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2858
call fcn.0049e320
mov eax, dword [0x59bc84]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x804]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
push 0x800
push 0
push eax
call fcn.004e3050
add esp, 0xc
cmp dword [ebp + 0x24], 0
je 0x442b84
test esi, esi
je 0x442bb9
push 0x1000
lea eax, [ebp - 0x1804]
push 0
push eax
call fcn.004e3050
add esp, 0xc
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
je 0x442b6d
push 0x800
lea eax, [ebp - 0x1804]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x1804]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push esi
lea eax, [ebp - 0x1804]
push eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea esi, [ebp - 0x1804]
push 0x400
lea eax, [ebp - 0x804]
push esi
push eax
call fcn.005115ca
add esp, 0xc
jmp 0x442ba0
lea ecx, [ebp - 0x804]
sub ecx, esi
nop dword [eax]
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x442b90
cmp dword [ebp + 0x20], 0
je 0x442bcc
lea eax, [ebp - 0x804]
push eax
call fcn.00497be0
add esp, 4
test eax, eax
jne 0x442bcc
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049dec8
mov esp, ebp
pop ebp
ret
xorps xmm0, xmm0
mov dword [ebp - 0x2858], 0x44
lea eax, [ebp - 0x2858]
movlpd qword [ebp - 0x2854], xmm0
push eax
movlpd qword [ebp - 0x284c], xmm0
movlpd qword [ebp - 0x2844], xmm0
movlpd qword [ebp - 0x283c], xmm0
movlpd qword [ebp - 0x2834], xmm0
movlpd qword [ebp - 0x282c], xmm0
movlpd qword [ebp - 0x2824], xmm0
movlpd qword [ebp - 0x281c], xmm0
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov ax, word [ebp + 0x14]
xorps xmm0, xmm0
push 0x1000
mov word [ebp - 0x2828], ax
lea eax, [ebp - 0x2804]
push 0
push eax
mov dword [ebp - 0x282c], 1
movups xmmword [ebp - 0x2814], xmm0
call fcn.004e3050
add esp, 0xc
lea eax, [ebp - 0x804]
test edi, edi
je 0x442c7d
push edi
push eax
lea eax, [ebp - 0x2804]
push 0x556014
push eax
call fcn.004365a0
add esp, 0x10
jmp 0x442c92
push eax
lea eax, [ebp - 0x2804]
push str.__s_
push eax
call fcn.004365a0
add esp, 0xc
lea eax, [ebp - 0x2814]
push eax
lea eax, [ebp - 0x2858]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x2804]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
test edi, edi
je 0x442cec
cmp dword [ebp + 0x18], 0
je 0x442cd6
push dword [ebp + 0x1c]
push dword [ebp - 0x2814]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push dword [ebp - 0x2810]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x2814]
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049dec8
mov esp, ebp
pop ebp
ret
Function at 0x403070
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, ecx
lea edi, [ebp + 8]
cmp byte [ecx + 0xb], 0
js 0x4030ce
mov eax, esi
je 0x40309a
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [esi + 0xb], 0
js 0x4030e8
mov word [esi], 0
mov byte [esi + 0xb], 0
cmp esi, edi
je 0x4030b8
cmp byte [esi + 0xb], 0
movzx eax, byte [edi + 0xb]
js 0x4030f8
test al, al
jns 0x4030d8
mov ecx, esi
push dword [edi + 4]
push dword [edi]
call fcn.00410370
cmp byte [edi + 0xb], 0
jns 0x4030c8
push dword [edi]
call fcn.00411790
add esp, 4
pop esi
pop edi
pop ebp
ret 0xc
cmp dword [esi + 4], 0
je 0x40309a
mov eax, dword [esi]
jmp 0x403084
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
movsd xmm0, qword [edi]
movsd qword [esi], xmm0
jmp 0x4030b8
mov eax, dword [esi]
mov word [eax], 0
mov dword [esi + 4], 0
jmp 0x40309a
mov edx, edi
test al, al
jns 0x403103
mov eax, dword [edi + 4]
mov edx, dword [edi]
mov ecx, esi
push eax
push edx
call fcn.004102a0
jmp 0x4030b8
Function at 0x408d30
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov esi, ecx
lea eax, [ebp - 0x18]
mov dword [eax - 4], esp
mov dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x40f6a0
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov ecx, dword [ebp + 0x10]
mov dword fs:[0], eax
test byte [ecx + 4], 1
jne 0x408da1
movzx edi, byte [ebp + 0x18]
mov eax, dword [esi]
mov ebx, dword [eax + 0x18]
mov ecx, ebx
call dword [0x451b2c]
movsx eax, byte [ebp + 0x14]
mov ecx, esi
push edi
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push esi
call ebx
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, esi
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret 0x14
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
lea esi, [ebp - 0x2c]
push esi
call fcn.00410c50
mov dword [ebp - 0x10], 0
mov ecx, esi
push 0x457ef8
call fcn.00411280
mov esi, eax
mov edi, dword [ebp - 0x2c]
cmp edi, 0x457e08
je 0x408df4
xor eax, eax
dec eax
lock xadd dword [edi + 4], eax
test eax, eax
jne 0x408df4
mov eax, dword [edi]
mov ebx, dword [eax + 4]
mov dword [ebp - 0x10], 0xffffffff
mov ecx, ebx
call dword [0x451b2c]
mov ecx, edi
call ebx
xor eax, eax
dec eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov ecx, dword [esi]
mov dl, byte [ebp + 0x18]
xor dl, 1
movzx edx, dl
mov edi, dword [ecx + edx*4 + 0x14]
mov dword [ebp - 0x10], eax
mov ecx, edi
call dword [0x451b2c]
mov ecx, esi
lea eax, [ebp - 0x2c]
push eax
call edi
movzx eax, byte [ebp - 0x21]
mov edx, eax
test al, al
jns 0x408e2f
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
test edx, edx
je 0x408ec8
test al, al
lea eax, [ebp - 0x2c]
cmovns ecx, eax
mov dword [ebp - 0x30], ecx
jmp 0x408ea5
movzx edi, al
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebx]
mov esi, dword [eax + 0x30]
mov dword [ebp - 0x10], 0xffffffff
mov ecx, esi
call dword [0x451b2c]
mov dword [ebp - 0x10], 1
mov ecx, ebx
push edi
call esi
xor ecx, ecx
cmp eax, 0xffffffff
je 0x408e77
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x20], ecx
jmp 0x408e83
mov dword [ebp - 0x20], 0
movzx eax, byte [ebp - 0x21]
mov ecx, dword [ebp - 0x2c]
lea edx, [ebp - 0x2c]
mov esi, eax
test al, al
jns 0x408e98
mov esi, dword [ebp - 0x28]
mov edx, ecx
add edx, esi
mov esi, dword [ebp - 0x30]
inc esi
mov dword [ebp - 0x30], esi
cmp esi, edx
je 0x408ec8
cmp dword [ebp - 0x20], 0
je 0x408e7c
mov eax, dword [ebp - 0x30]
mov al, byte [eax]
mov edx, dword [ebp - 0x20]
mov ecx, dword [edx + 0x18]
cmp ecx, dword [edx + 0x1c]
je 0x408e47
lea edx, [ecx + 1]
mov esi, dword [ebp - 0x20]
mov dword [esi + 0x18], edx
mov byte [ecx], al
jmp 0x408e83
shr al, 7
mov edx, dword [ebp + 8]
mov esi, dword [ebp - 0x20]
mov dword [edx], esi
test al, al
je 0x408ee0
push ecx
call fcn.00411790
add esp, 4
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
jmp 0x408d97