joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4106d0
Capabilities:
Create directory
Delete file
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x4c8578]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
push 0x104
push edi
push 0
mov dword [ebp - 0x10c], 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push eax
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.00407d30
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionA]
cmp dword [0x50d40c], 1
jne 0x41076d
push esi
call fcn.004543d0
lea ecx, [ebp - 0x10c]
push ecx
push 0x46c7d0
push eax
call fcn.0045438c
push dword [ebp - 0x10c]
call fcn.004543d0
mov edx, esi
add esp, 0x14
sub edx, eax
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [edx + eax - 1], cl
test cl, cl
jne 0x410760
push esi
mov esi, dword [ebp + 0xc]
push esi
push edi
call fcn.00449d78
push 0x46c7d0
push esi
push edi
call fcn.00449dd2
lea eax, [ebp - 0x108]
push eax
push esi
push edi
call fcn.00449dd2
add esp, 0x24
push 0
push edi
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
push 0x46c7d0
push esi
push edi
call fcn.00449dd2
push 0x46cf80
push esi
push edi
call fcn.00449dd2
add esp, 0x18
push edi
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
push 0x46ddac
push 0xf4
push 0
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.DLL_LoadResource]
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
push esi
push 0
mov ebx, eax
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
push 0
push 0x80
push 2
push 0
push 3
push 0xc0000000
push edi
mov dword [ebp - 0x110], eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
test esi, esi
je 0x410832
push 0
lea eax, [ebp - 0x114]
push eax
push dword [ebp - 0x110]
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00443fa5
mov esp, ebp
pop ebp
ret 0xc
Function at 0x410850
Capabilities:
Create directory
Delete file
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x4c8578]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
push 0x46c7d0
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.00449dd2
push 0x46e1d0
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.00449dd2
add esp, 0x18
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
push 0x46ddac
push 0xa0
push 0
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.DLL_LoadResource]
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
push 0
push 0x80
push 2
push 0
push 3
mov ebx, eax
lea eax, [ebp - 0x108]
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
test esi, esi
je 0x410941
push 0
lea eax, [ebp - 0x10c]
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00443fa5
mov esp, ebp
pop ebp
ret
Function at 0x410960
Capabilities:
Create directory
Delete file
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x4c8578]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
push 0x104
push ebx
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push eax
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.00407d30
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionA]
push esi
mov esi, dword [ebp + 0xc]
push esi
push ebx
call fcn.00449d78
push 0x46c7d0
push esi
push ebx
call fcn.00449dd2
lea eax, [ebp - 0x108]
push eax
push esi
push ebx
call fcn.00449dd2
add esp, 0x24
push 0
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
push 0x46c7d0
push esi
push ebx
call fcn.00449dd2
push 0x46e1a0
push esi
push ebx
call fcn.00449dd2
push edi
push esi
push ebx
call fcn.00449dd2
push 0x46e1b0
push esi
push ebx
call fcn.00449dd2
add esp, 0x30
push ebx
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
push 0x46ddac
push 0x74
push 0
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.DLL_LoadResource]
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
push 0
push 0x80
push 2
push 0
push 3
push 0xc0000000
push ebx
mov dword [ebp - 0x10c], eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
test esi, esi
je 0x410a8c
push 0
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 0x10c]
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00443fa5
mov esp, ebp
pop ebp
ret 0x10
Function at 0x410aa0
Capabilities:
Delete file
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x4c8578]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
push 0x104
push ebx
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push eax
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.00407d30
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionA]
push esi
mov esi, dword [ebp + 0xc]
push esi
push ebx
call fcn.00449d78
push 0x46c7d0
push esi
push ebx
call fcn.00449dd2
lea eax, [ebp - 0x108]
push eax
push esi
push ebx
call fcn.00449dd2
push 0x46c7d0
push esi
push ebx
call fcn.00449dd2
push str.SBU.
push esi
push ebx
call fcn.00449dd2
push edi
push esi
push ebx
call fcn.00449dd2
add esp, 0x48
push str..exe
push esi
push ebx
call fcn.00449dd2
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
push 0x46ddac
push 0x92
push 0
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.DLL_LoadResource]
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
push 0
push 0x80
push 2
push 0
push 3
push 0xc0000000
push ebx
mov dword [ebp - 0x10c], eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
test esi, esi
je 0x410bc6
push 0
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 0x10c]
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00443fa5
mov esp, ebp
pop ebp
ret 0x10
Function at 0x411220
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x4c8578]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
xor esi, esi
mov dword [ebp - 0x58], edi
mov eax, dword [edi + 0x2cdf4]
mov byte [eax], 0
cmp byte [ebx], 0
je 0x41134e
nop
xor edx, edx
xor eax, eax
mov cl, byte [esi + ebx]
mov byte [ebp + eax - 0x54], cl
test cl, cl
je 0x411263
inc edx
inc esi
jmp 0x411271
cmp eax, 3
jae 0x411361
mov byte [ebp + eax - 0x54], 0
inc eax
cmp eax, 3
jl 0x411254
test edx, edx
je 0x411344
movups xmm0, xmmword [0x46e460]
movzx eax, byte [0x46e4a0]
movzx ecx, byte [ebp - 0x54]
movzx edi, byte [ebp - 0x53]
movups xmmword [ebp - 0x50], xmm0
mov byte [ebp - 0x10], al
mov eax, ecx
movups xmm0, xmmword [0x46e470]
shr eax, 2
and ecx, 3
shl ecx, 4
movups xmmword [ebp - 0x40], xmm0
movups xmm0, xmmword [0x46e480]
movups xmmword [ebp - 0x30], xmm0
movups xmm0, xmmword [0x46e490]
movups xmmword [ebp - 0x20], xmm0
movzx eax, byte [ebp + eax - 0x50]
mov byte [ebp - 0xc], al
mov eax, edi
shr eax, 4
or eax, ecx
movzx eax, byte [ebp + eax - 0x50]
mov byte [ebp - 0xb], al
cmp edx, 1
jle 0x41130d
mov cl, byte [ebp - 0x52]
and edi, 0xf
movzx eax, cl
shr eax, 6
shl edi, 2
or eax, edi
mov al, byte [ebp + eax - 0x50]
mov byte [ebp - 0xa], al
cmp edx, 2
jle 0x411311
movzx eax, cl
and eax, 0x3f
mov al, byte [ebp + eax - 0x50]
jmp 0x411313
mov byte [ebp - 0xa], 0x3d
mov al, 0x3d
mov ecx, dword [ebp - 0x58]
mov byte [ebp - 9], al
mov byte [ebp - 8], 0
mov edx, dword [ecx + 0x2cdf4]
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x411328
sub ecx, edi
lea eax, [ebp - 0xc]
push 5
push eax
lea eax, [ecx + 6]
push eax
push edx
call fcn.00454896
add esp, 0x10
cmp byte [esi + ebx], 0
jne 0x411250
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00443fa5
mov esp, ebp
pop ebp
ret 4
call fcn.004443c2
int3
Function at 0x411cc0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push 0
push 2
push 4
push 0
push 2
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
test esi, esi
je 0x411cfa
push 0
lea eax, [ebp + 8]
push eax
push 0x64
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop esi
pop ebp
ret 4

Function at 0x411d80
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push ebx
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x411da3
test al, 0x10
je 0x411da3
mov bl, 1
jmp 0x411da5
xor bl, bl
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x411ddb
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x411dd1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411de2
push edx
push ecx
call fcn.00443fd6
add esp, 8
mov al, bl
pop ebx
pop ebp
ret 0x18
call fcn.0044eb30
int3
Function at 0x413230
Capabilities:
Register raw input devices

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x53f3fc]
sub esp, 0xc
push edi
mov edi, ecx
test eax, eax
jne 0x413456
mov ecx, dword [0x502db0]
test ecx, ecx
je 0x413456
push esi
push 0x46fc18
push ecx
call fcn.004403a0
add esp, 8
push 0
push 0x32
push 0x404
push dword [0x503fc4]
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, edi
call fcn.00418120
mov ecx, 0x502da0
call fcn.00407d60
cmp dword [edi + 0x474], 0
je 0x4132be
mov esi, dword [edi + 0xafcc]
push 0x4705a0
push dword [0x50cff4]
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov ecx, eax
test ecx, ecx
je 0x4132be
push esi
lea eax, [edi + 0xa7fc]
push eax
push 1
call ecx
add esp, 0xc
push dword [edi + 0x9990]
mov dword [edi + 0x9980], 0x20
push 0x20
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
push eax
push dword [0x502db0]
call fcn.00440170
add esp, 0x10
mov dword [edi + 0x998c], eax
cmp dword [edi + 0x484], 0
je 0x41343d
mov eax, dword [edi + 0x9990]
push 0xc
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc]
push 1
push eax
mov dword [ebp - 0xc], 0x20001
mov dword [ebp - 8], 0x100
call dword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x413334
push 0x470a48
push dword [0x502db0]
call fcn.004403a0
add esp, 8
push 0x10
push 0x40
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.OLEAUT32.dll_VariantClear]
push 0x470ab4
push dword [0x502db0]
call fcn.004403a0
push 0
push 0x470ac4
push 0x470ad0
push esi
push dword [0x502db0]
call fcn.0043fd90
mov esi, eax
push esi
push 0x470b20
push dword [0x502db0]
call fcn.004403a0
add esp, 0x28
test esi, esi
jle 0x413419
push 0x10
push 0x40
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.OLEAUT32.dll_VariantClear]
push 0
push 0x470b34
push 0x470b44
push esi
push dword [0x502db0]
call fcn.0043fd90
push 0
push 0x470b58
push dword [0x502db0]
call fcn.004403a0
push 0x470a5c
lea esi, [edi + 0x9994]
mov dword [0x51b614], 1
push 0x64
push esi
mov dword [0x51b618], 1
call fcn.00452e14
push 0x470a98
push dword [0x502db0]
call fcn.004403a0
add esp, 0x34
mov ecx, 0x50fb50
push 0
push 0
push 1
push 2
push esi
call fcn.004153d0
jmp 0x41343d
push esi
push 0x470b64
push dword [0x502db0]
call fcn.004403a0
push 0x470aa0
push dword [0x502db0]
call fcn.004403a0
add esp, 0x14
push 0x46fc30
push dword [0x502db0]
call fcn.004403a0
mov eax, dword [0x53f3fc]
add esp, 8
pop esi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x414280
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x4c8578]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push 0x40000002
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x4142eb
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x12c], pe_nt_image_headers32
push eax
push esi
call sub.KERNEL32.DLL_Process32First
test eax, eax
je 0x4142eb
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.004549c7
add esp, 8
test eax, eax
je 0x4142ff
lea ecx, [ebp - 0x12c]
push ecx
push esi
call sub.KERNEL32.DLL_Process32Next
test eax, eax
jne 0x4142c6
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00443fa5
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x124]
xor ecx, ebp
pop edi
pop esi
call fcn.00443fa5
mov esp, ebp
pop ebp
ret 4

Function at 0x4146c0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x4c8578]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x98]
mov dword [ebp - 0x98], 0x94
push eax
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
cmp dword [ebp - 0x88], 2
jne 0x41470f
cmp dword [ebp - 0x94], 5
jb 0x41470f
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00443fa5
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.00443fa5
mov esp, ebp
pop ebp
ret
Function at 0x417860
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4c8578]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 5
lea eax, [ebp - 0x1c]
mov ebx, ecx
push eax
push dword [0x50a1d4]
call fcn.00454128
push 5
lea eax, [ebp - 0xc]
push eax
push dword [0x50add8]
call fcn.00454128
push 5
lea eax, [ebp - 0x14]
push eax
push dword [0x50addc]
call fcn.00454128
add esp, 0x24
lea esi, [ebp - 0xc]
cmp dword [ebx + 0x454], 0
lea ecx, [ebx + 0x2ec4]
lea edx, [ebx + 0xb0d4]
lea eax, [ebx + 0x463c]
push esi
lea esi, [ebp - 0x14]
push esi
lea esi, [ebp - 0x1c]
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea edi, [ebx + 0x3e3c]
push 0x503f78
push 0x503fa0
jne 0x41791c
lea edi, [ebx + 0x1cc0]
push edi
push 0x49608c
push ecx
push edx
push 0x503b78
push str.Mozilla_5.0___s__AppleWebKit_537.36_Chrome_84.0.4147.30_Edg__s__SecureBrowser__s__s__s_s__s__DKM:_s._s._s
push eax
call esi
push edi
push 0x49608c
lea eax, [ebx + 0x3e3c]
push 0x46d23c
push eax
call esi
add esp, 0x40
jmp 0x417940
push 0x49608c
push ecx
push edx
push 0x503b78
push str.Mozilla_5.0___s__AppleWebKit_537.36_Chrome_84.0.4147.30_Edg__s__SecureBrowser__s__s_s__s__DKM:_s._s._s
push eax
call esi
push 0x49608c
push 0x46c878
push edi
call esi
add esp, 0x38
mov edi, dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
push 0
push 0
push 0xffffffffffffffff
push 0x51418c
push 0
push 0xfde9
call edi
mov esi, eax
lea ecx, [esi + esi]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
push esi
push eax
push 0xffffffffffffffff
mov dword [ebx + 0xb0e8], eax
lea eax, [ebx + 0x463c]
push eax
push 0
push 0xfde9
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00443fa5
mov esp, ebp
pop ebp
ret
Function at 0x419240
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x4c8578]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 0x40000002
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x4192ab
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x12c], pe_nt_image_headers32
push eax
push esi
call sub.KERNEL32.DLL_Process32First
test eax, eax
je 0x4192ab
lea eax, [ebp - 0x108]
push 0x46cf80
push eax
call fcn.004549c7
add esp, 8
test eax, eax
je 0x4192bc
lea ecx, [ebp - 0x12c]
push ecx
push esi
call sub.KERNEL32.DLL_Process32Next
test eax, eax
jne 0x419282
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00443fa5
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x124]
test eax, eax
je 0x4192ab
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00443fa5
mov esp, ebp
pop ebp
ret

Function at 0x4192f0
Capabilities:
Delete file
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4c8578]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
mov edi, ecx
push 0x46e590
push 5
push eax
call fcn.00419cf0
add esp, 0x10
cmp dword [edi + 0xbb40], 0
je 0x419374
add edi, 0xbb44
push edi
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
push 0
push 2
push 4
push 0
push 2
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
test esi, esi
je 0x41936a
push 0
lea eax, [ebp - 0x218]
push eax
push 0x64
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea eax, [ebp - 0xc]
push eax
push edi
jmp 0x419414
lea eax, [ebp - 0x214]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
test eax, eax
je 0x419422
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x110]
push 0x104
push eax
call fcn.00449d78
push str.ITSExitCode.log
lea eax, [ebp - 0x110]
push 0x104
push eax
call fcn.00449dd2
add esp, 0x18
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
push 0
push 2
push 4
push 0
push 2
push 0xc0000000
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
test esi, esi
je 0x419409
push 0
lea eax, [ebp - 0x218]
push eax
push 0x64
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x110]
push eax
push dword [0x502db0]
call fcn.004403d0
add esp, 0xc
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00443fa5
mov esp, ebp
pop ebp
ret 4
Function at 0x419440
Capabilities:
Create process on windows
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x49c
mov eax, dword [0x4c8578]
xor eax, ebp
mov dword [ebp - 4], eax
movups xmm0, xmmword [str.cmd__c_mklink__J__]
mov eax, dword [0x4701c8]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x424], eax
mov ax, word [0x4701cc]
movups xmmword [ebp - 0x444], xmm0
push 0x418
movups xmm0, xmmword [0x4701b8]
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push 0
push eax
mov dword [ebp - 0x448], esi
movups xmmword [ebp - 0x434], xmm0
call fcn.00446b20
push 0x40
lea eax, [ebp - 0x498]
mov dword [ebp - 0x49c], 0x44
push 0
push eax
call fcn.00446b20
add esp, 0x18
xorps xmm0, xmm0
cmp word [ebx], 0
movups xmmword [ebp - 0x458], xmm0
je 0x4195f4
cmp word [esi], 0
je 0x4195f4
mov edx, esi
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4194e5
push edi
lea edi, [ebp - 0x444]
sub edx, esi
add edi, 0xfffffffe
nop dword [eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x419500
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x444]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x419523
mov eax, dword [0x4701d0]
mov esi, ebx
mov dword [ecx], eax
mov eax, dword [0x4701d4]
mov dword [ecx + 4], eax
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x419540
lea edi, [ebp - 0x444]
sub ebx, esi
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x419556
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x444]
add edi, 0xfffffffe
nop dword [eax]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x419580
mov eax, dword [0x4701d8]
push dword [ebp - 0x448]
mov dword [edi], eax
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
lea eax, [ebp - 0x458]
push eax
lea eax, [ebp - 0x49c]
push eax
push 0
push 0
push 0x8000000
push 1
push 0
push 0
lea eax, [ebp - 0x444]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
pop edi
test eax, eax
je 0x4195f4
push 0xffffffffffffffff
push dword [ebp - 0x458]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push dword [ebp - 0x458]
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
call esi
push dword [ebp - 0x454]
call esi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00443fa5
mov esp, ebp
pop ebp
ret 8
Function at 0x419610
Capabilities:
Get common file path
Get program files directory
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd4
mov eax, dword [0x4c8578]
xor eax, ebp
mov dword [ebp - 4], eax
push 0xc8
lea eax, [ebp - 0xcc]
push 0
push eax
call fcn.00446b20
add esp, 0xc
mov dword [ebp - 0xd4], 0xc8
cmp word [0x53d760], 0
jne 0x41976f
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0xd0]
push edi
push eax
push 0x20019
push 0
push str.SOFTWAREWOW6432NodeMicrosoftEdgeUpdateClients56EB18F8_B008_4CBD_B6D2_8C97FE7E9062
push reloc.OLEAUT32.dll_SysReAllocString
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4196a0
lea eax, [ebp - 0xd4]
push eax
lea eax, [ebp - 0xcc]
push eax
push 0
push 0
push 0x470294
push dword [ebp - 0xd0]
call edi
test eax, eax
je 0x4196e5
lea eax, [ebp - 0xd0]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftEdgeUpdateClients56EB18F8_B008_4CBD_B6D2_8C97FE7E9062
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x41975a
lea eax, [ebp - 0xd4]
push eax
lea eax, [ebp - 0xcc]
push eax
push 0
push 0
push 0x470294
push dword [ebp - 0xd0]
call edi
test eax, eax
jne 0x41975a
push 0
push 0x2a
push 0x53d760
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov edi, 0x53d760
add edi, 0xfffffffe
nop
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x419700
mov ecx, 0xe
lea edx, [ebp - 0xcc]
mov esi, str.MicrosoftEdgeApplication_
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, edx
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x419722
mov edi, 0x53d760
sub edx, esi
add edi, 0xfffffffe
nop word [eax + eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x419740
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov eax, 0x53d760
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00443fa5
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0x53d760
xor ecx, ebp
call fcn.00443fa5
mov esp, ebp
pop ebp
ret