joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4065f0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
push esi
push 0x40
xor esi, esi
lea eax, [ebp - 0x6c]
push esi
push eax
call fcn.005149a0
add esp, 0xc
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x70]
push edx
mov edx, dword [ebp + 8]
push esi
push esi
push 0x200
mov eax, 0xc
push esi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x1c]
push ecx
push edx
push esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x70], 0x44
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], 1
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x406685
cmp dword [ebp + 0xc], esi
je 0x406673
mov eax, dword [ebp - 0x2c]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 0x2c]
lea ecx, [ebp - 4]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [ebp - 0x2c]
push ecx
call esi
mov eax, dword [ebp - 4]
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x406690
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
push ebx
push esi
push edi
push 0x40
xor edi, edi
lea eax, [ebp - 0x88]
push edi
push eax
mov esi, ecx
call fcn.005149a0
mov ebx, 1
mov eax, 0xc
add esp, 0xc
mov dword [ebp - 4], edi
mov dword [ebp - 0x8c], 0x44
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], ebx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
cmp dword [ebp + 0x14], ebx
jne 0x4066e9
xor ecx, ecx
mov dword [ebp - 0x60], ebx
mov word [ebp - 0x5c], cx
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x8c]
push eax
mov eax, dword [ebp + 8]
push edi
push edi
push 0x200
push edi
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x10]
push edx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4067d9
cmp dword [ebp + 0xc], edi
je 0x4067b0
mov ebx, dword [sym.imp.USER32.dll_PeekMessageW]
mov eax, dword [esi + 0xd734]
cmp eax, edi
je 0x406781
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x406781
push 1
push edi
push edi
push edi
lea edx, [ebp - 0x48]
push edx
call ebx
test eax, eax
je 0x406781
mov eax, dword [esi + 0xd734]
cmp eax, edi
jne 0x40675b
xor eax, eax
jmp 0x40675e
mov eax, dword [eax + 0x20]
lea ecx, [ebp - 0x48]
push ecx
push eax
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x406781
lea edx, [ebp - 0x48]
push edx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
mov ecx, dword [ebp - 0x2c]
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x40679d
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x406726
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ebx, 1
mov ecx, dword [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [ebp - 0x2c]
push edx
call esi
mov eax, dword [ebp + 0x10]
cmp eax, edi
je 0x4067ce
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0x10
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x406bc0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x5976b8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
push 0x228
lea eax, [ebp - 0x22c]
push 0
push eax
call fcn.005149a0
add esp, 0xc
push 0
push 2
mov dword [ebp - 0x230], 0x22c
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea ecx, [ebp - 0x230]
mov esi, eax
push ecx
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x406c2f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00514990
mov esp, ebp
pop ebp
ret 4
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push edi
lea edx, [ebp - 0x20c]
push edx
call ebx
test eax, eax
je 0x406c90
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x406c74
push edi
lea ecx, [ebp - 0x20c]
push ecx
call ebx
test eax, eax
je 0x406c90
lea edx, [ebp - 0x230]
push edx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x406c55
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00514990
mov esp, ebp
pop ebp
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop ebx
pop edi
xor ecx, ebp
mov eax, 1
pop esi
call fcn.00514990
mov esp, ebp
pop ebp
ret 4

Function at 0x406cc0
Capabilities:
Get common file path
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esi + 0x154]
call fcn.004017d0
mov ecx, dword [esi + 0xd734]
xor ebx, ebx
cmp ecx, ebx
je 0x406ceb
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push 1
call edx
mov dword [esi + 0xd734], ebx
cmp dword [esi + 0x14c], ebx
je 0x406d19
call fcn.00417a8d
mov eax, dword [eax + 4]
mov edi, dword [eax + 0x44]
call fcn.00417a8d
mov dword [eax + 0xc], edi
mov eax, dword [esi + 0x14c]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 0x14c], ebx
mov eax, dword [esi + 0x144]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, ebx
je 0x406d32
push eax
call edi
mov dword [esi + 0x144], ebx
mov eax, dword [esi + 0x148]
cmp eax, ebx
je 0x406d45
push eax
call edi
mov dword [esi + 0x148], ebx
pop edi
mov ecx, esi
pop esi
pop ebx
jmp fcn.00406510
Function at 0x406d50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
mov dword [ebp - 4], ecx
cmp esi, edi
je 0x406dbc
mov ebx, dword [ebp + 0x14]
cmp ebx, edi
je 0x406dbc
mov eax, dword [ebp + 0x10]
cmp eax, edi
je 0x406dbc
mov edx, dword [ebp + 8]
lea ecx, [ebp + 0xc]
push ecx
push 1
push edi
mov dword [ebp + 0x14], eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
xor eax, eax
push edx
mov dword [ebp + 0xc], edi
mov dword [ebp + 0x10], edi
mov word [esi], ax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x406dbc
mov edx, dword [ebp + 0xc]
lea eax, [ebp + 0x14]
push eax
push esi
lea ecx, [ebp + 0x10]
push ecx
push edi
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x406dc7
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp word [esi], di
je 0x406e30
mov eax, dword [ebp + 0x14]
cmp eax, 0x208
jae 0x406e30
mov ecx, dword [ebp + 0x10]
mov edi, 1
cmp ecx, edi
je 0x406dec
cmp ecx, 7
je 0x406dec
cmp ecx, 2
jne 0x406df1
mov edi, 2
sub eax, edi
cmp word [esi + eax*2], 0x5c
lea eax, [esi + eax*2]
jne 0x406e16
mov ecx, dword [ebp - 4]
push eax
push esi
call fcn.00405f60
test eax, eax
je 0x406e16
mov ecx, dword [ebp + 0x14]
sub ecx, edi
xor edx, edx
mov word [esi + ecx*2], dx
mov eax, dword [ebp + 0xc]
push eax
mov esi, 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp + 0xc]
push eax
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x406e50
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52cdc8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x5976b8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x18], edi
call fcn.00416033
lea eax, [ebp - 0x34]
push eax
lea ecx, [esi + 0x154]
mov dword [ebp - 4], edi
call fcn.00402c10
mov ebx, eax
mov dword [ebp - 0x20], ebx
cmp ebx, edi
jbe 0x406f72
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x14]
push edx
push edi
push 0x2001f
push edi
push edi
push edi
push str.SOFTWAREMicrosoftWindowsCurrentVersionSharedDLLs
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, edi
je 0x406efa
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 0xffffffff
call fcn.00416386
mov eax, 0x643
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor esi, esi
cmp ebx, edi
jbe 0x406f68
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
jmp 0x406f10
mov dword [ebp - 0x18], 4
cmp esi, edi
jl 0x406f95
cmp esi, dword [ebp - 0x2c]
jge 0x406f95
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + esi*4]
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x10]
push edx
push edi
push edi
push eax
mov eax, dword [ebp - 0x14]
push eax
call ebx
cmp eax, edi
jne 0x406f62
cmp dword [ebp - 0x10], edi
jbe 0x406f62
dec dword [ebp - 0x10]
cmp esi, dword [ebp - 0x2c]
jge 0x406f95
mov ecx, dword [ebp - 0x30]
mov eax, dword [ecx + esi*4]
push 4
lea edx, [ebp - 0x10]
push edx
push 4
push edi
push eax
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
inc esi
cmp esi, dword [ebp - 0x20]
jb 0x406f10
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 0xffffffff
call fcn.00416386
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0041565f
int3
Function at 0x4076d0
Capabilities:
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52cf28
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x5976b8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ebx, [ecx + 0x154]
lea eax, [ebp - 0x10]
xor esi, esi
push eax
mov ecx, ebx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x18], ebx
call fcn.00401960
mov edi, eax
cmp edi, esi
jbe 0x4077e5
lea ecx, [ebp - 0x34]
call fcn.00416bbc
mov dword [ebp - 4], esi
cmp edi, esi
jbe 0x4077cb
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [ebp - 0x14], edi
mov ecx, dword [ebp - 0x10]
lea edx, [esi + ecx]
push 0
push edx
lea ecx, [ebp - 0x34]
call fcn.00416c88
lea ecx, [ebp - 0x34]
mov edi, eax
call fcn.00416728
test edi, edi
je 0x4077b9
mov eax, dword [ebp - 0x10]
lea ecx, [esi + eax + 0x208]
push 0
push ecx
lea ecx, [ebp - 0x34]
call fcn.00416c88
test eax, eax
je 0x40778f
mov edx, dword [ebp - 0x10]
push 0x20
lea eax, [esi + edx + 0x208]
push eax
call ebx
mov ecx, dword [ebp - 0x10]
lea edx, [esi + ecx + 0x208]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x34]
call fcn.00416728
mov eax, dword [ebp - 0x10]
add eax, esi
lea ecx, [eax + 0x208]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov edx, dword [ebp - 0x10]
push 0x20
lea eax, [esi + edx + 0x208]
push eax
call ebx
add esi, 0x410
dec dword [ebp - 0x14]
jne 0x407737
mov ebx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
push ecx
mov ecx, ebx
call fcn.00402ca0
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 0xffffffff
call fcn.00416bee
lea edx, [ebp - 0x14]
push edx
mov ecx, ebx
call fcn.00403bd0
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407818
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407830
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52cf60
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push esi
mov eax, dword [0x5976b8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x38
lea eax, [ebp - 0x44]
push 0
mov esi, 1
push eax
mov dword [ebp - 4], esi
call fcn.005149a0
mov eax, dword [ebp + 8]
add esp, 0xc
mov dword [ebp - 0x48], 0x3c
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x44], 0x40
cmp dword [eax - 4], esi
jle 0x40789d
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [ebp + 8]
call fcn.004036b0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0xc]
cmp dword [eax - 4], esi
jle 0x4078b7
mov edx, dword [eax - 0xc]
push edx
lea ecx, [ebp + 0xc]
call fcn.004036b0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x40792a
cmp dword [ebp - 0x28], 0x20
jg 0x40792a
mov byte [ebp - 4], al
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4078f0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407916
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 0x10]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407967
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40798d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4084d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x5976b8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, eax
push 0x206
mov esi, ecx
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.005149a0
push edi
push str.RD___s__r_n
lea edx, [ebp - 0x20c]
push 0x104
push edx
call fcn.00515c51
add esp, 0x1c
lea eax, [ebp - 0x218]
push eax
lea ecx, [esi + 0x154]
mov dword [ebp - 0x210], 0
call fcn.00403c60
mov eax, dword [eax]
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov eax, dword [ebp - 0x218]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40857a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, 0xffffffff
jne 0x408593
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00514990
mov esp, ebp
pop ebp
ret 4
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
push 2
push 0
push 0
push esi
call edi
cmp dword [0x5927e8], 0
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
je 0x40860e
push str.ECHO_OFF_r_n
lea ecx, [ebp - 0x214]
call fcn.00408430
mov eax, dword [ebp - 0x214]
mov edx, dword [eax - 0xc]
push 0
lea ecx, [ebp - 0x210]
push ecx
push edx
push eax
push esi
call ebx
push 2
push 0
push 0
push esi
call edi
mov eax, dword [ebp - 0x214]
add eax, 0xfffffff0
mov dword [0x5927e8], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40860e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0
lea ecx, [ebp - 0x210]
push ecx
lea edx, [ebp - 0x20c]
push 0x104
push edx
call fcn.0051611e
add esp, 8
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop ebx
pop edi
xor ecx, ebp
mov eax, 1
pop esi
call fcn.00514990
mov esp, ebp
pop ebp
ret 4
Function at 0x409250
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
mov eax, dword [0x5976b8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push 4
push 0
push esi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x409372
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.005149a0
push esi
lea edx, [ebp - 0x20c]
push 0x104
push edx
call fcn.00515853
add esp, 0x18
push 0x104
lea eax, [ebp - 0x20c]
push eax
mov ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x61a]
push eax
mov word [ebp - 0x61c], dx
call fcn.005149a0
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x412]
push edx
mov word [ebp - 0x414], cx
call fcn.005149a0
add esp, 0x18
push 0x104
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x409321
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00514990
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0x414]
push ecx
push str._swininit.ini
lea edx, [ebp - 0x61c]
push 0x104
push edx
call fcn.00515c51
add esp, 0x10
cmp dword [ebp + 0xc], 0
je 0x409351
push esi
mov ecx, edi
call fcn.004084d0
jmp 0x409372
lea eax, [ebp - 0x61c]
push eax
push 4
push 0x53dc64
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
mov ecx, edi
call fcn.004063e0
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov eax, 1
pop esi
call fcn.00514990
mov esp, ebp
pop ebp
ret 8
Function at 0x40df20
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
xor eax, eax
cmp ecx, 1
jne 0x40df77
mov dword [ebp - 8], eax
lea eax, [ebp + 8]
push eax
push 0
push esi
push 0x40d8a0
mov dword [ebp - 4], ecx
push 0
lea ecx, [ebp - 0xc]
push ecx
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x144], eax
test eax, eax
jne 0x40df6e
mov eax, 0x643
pop esi
mov esp, ebp
pop ebp
ret 4
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
cmp ecx, 2
jne 0x40e00e
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push edi
mov edi, dword [sym.imp.USER32.dll_PeekMessageW]
mov edi, edi
push 1
push 0
push 0
push 0
lea edx, [ebp - 0x28]
push edx
call edi
test eax, eax
je 0x40dfd2
mov eax, dword [esi + 0xd734]
test eax, eax
je 0x40dfaf
mov eax, dword [eax + 0x20]
lea ecx, [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x40dfd2
lea edx, [ebp - 0x28]
push edx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
mov edx, dword [esi + 0x144]
lea ecx, [ebp + 8]
push ecx
push edx
call ebx
cmp dword [ebp + 8], 0x103
jne 0x40dff2
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40df90
mov eax, dword [esi + 0x144]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
pop edi
mov dword [esi + 0x144], 0
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x40e020
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0x5976b8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x114
lea eax, [ebp - 0x118]
mov esi, ecx
push 0
push eax
mov dword [esi], vtable.CRemoveReg.0
call fcn.005149a0
add esp, 0xc
lea ecx, [ebp - 0x118]
push ecx
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x114]
xor edx, edx
cmp dword [ebp - 0x108], 2
sete dl
mov dword [esi + 0xc], edx
cmp eax, 5
ja 0x40e092
jne 0x40e08e
cmp dword [ebp - 0x110], 1
jae 0x40e092
xor ecx, ecx
jmp 0x40e0a6
lea eax, [ebp - 0x13c]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov cx, word [ebp - 0x13c]
movzx eax, cx
test eax, eax
je 0x40e0bc
cmp eax, 6
je 0x40e0bc
cmp eax, 9
je 0x40e0bc
mov ecx, 0xffff
mov word [esi + 0x14], cx
mov ecx, dword [ebp - 4]
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 4], 0
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00514990
mov esp, ebp
pop ebp
ret
Function at 0x40e1c0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
movzx eax, word [ecx + 0x14]
mov edx, 0xf003f
mov dword [ebp - 4], 0
cmp eax, 9
je 0x40e1eb
cmp eax, 6
je 0x40e1eb
test ax, ax
je 0x40e1f6
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10
cmp dword [ebp + 0x14], 0
jne 0x40e1f6
mov edx, 0xf013f
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
push edx
mov edx, dword [ebp + 8]
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40e22d
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x40e22d
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40ebe0
Capabilities:
Create process on windows
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
push ebx
push esi
xor esi, esi
push 0x44
lea eax, [ebp - 0x70]
push esi
push eax
mov ebx, ecx
mov dword [ebp - 4], esi
call fcn.005149a0
add esp, 0xc
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x70]
push edx
mov edx, dword [ebp + 8]
push esi
push esi
push 0x200
mov eax, 0xc
push 1
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x1c]
push ecx
push edx
push esi
mov dword [ebp - 0x70], 0x44
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], 1
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40ecd3
cmp dword [ebp + 0xc], esi
je 0x40ec6b
mov eax, dword [ebp - 0x2c]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 0x2c]
lea ecx, [ebp - 4]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push edi
mov edi, dword [ebp + 0x10]
cmp edi, esi
je 0x40ecc0
mov eax, dword [ebp - 0x24]
mov dword [edi], eax
cmp dword [ebx + 0xc0], esi
je 0x40ecc0
lea ecx, [ebp + 8]
push ecx
push 0xf003f
push esi
push str.SOFTWARECanonIJAppUpdateInstall
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp + 8], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40ecc0
mov edx, dword [ebp + 8]
push 4
push edi
push 4
push esi
push str.ProcessID
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [ebp - 0x2c]
push edx
call esi
pop edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc