joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4014d8
Capabilities:
Start service

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [esp + 0x14]
mov ebp, str.Main
push str.StartService___s_
push ebp
call fcn.00401ada
add esp, 0xc
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
xor eax, eax
test edi, edi
setne al
mov esi, eax
test esi, esi
je 0x40152c
push edi
call fcn.004015ab
mov esi, eax
neg esi
sbb esi, esi
inc esi
jne 0x401543
push str.Service_Control_Manager_is_locked.
push ebp
call fcn.004018f8
pop ecx
pop ecx
jmp 0x401597
push str.OpenSCManager
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebp
call fcn.00401af2
add esp, 0xc
jmp 0x401597
push 0x10
push dword [esp + 0x18]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
xor eax, eax
test ebx, ebx
setne al
mov esi, eax
test esi, esi
jne 0x401566
push str.OpenService
jmp 0x40157c
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
mov esi, eax
test esi, esi
jne 0x40158c
push str.StartService
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebp
call fcn.00401af2
add esp, 0xc
test ebx, ebx
je 0x401597
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
je 0x4015a2
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x401910
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9e0
push ebx
push esi
lea eax, [ebp - 0x10]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 4]
push eax
mov edi, dword [sym.imp.MSVCRT.dll__snprintf]
movzx eax, word [ebp - 6]
push eax
movzx eax, word [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
movzx eax, word [ebp - 0xe]
push eax
movzx eax, word [ebp - 0x10]
push eax
push str._04d_02d_02d_02d_02d_02d
lea eax, [ebp - 0x50]
push 0x40
push eax
call edi
xor ebx, ebx
add esp, 0x24
cmp dword [ebp + 0xc], ebx
sete al
dec eax
and al, 0xfc
add eax, 0x49
cmp dword [ebp + 0x14], ebx
mov byte [ebp + 0xf], al
jne 0x401987
push 0x400
lea eax, [ebp - 0x5e0]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
jmp 0x4019a2
push dword [ebp + 0x14]
lea eax, [ebp - 0x5e0]
push dword [ebp + 0x10]
push 0x400
push eax
call dword [sym.imp.MSVCRT.dll__vsnprintf]
add esp, 0x10
cmp dword [0x40563c], 0xffffffff
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
je 0x401a37
lea eax, [ebp - 0x5e0]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push dword [ebp + 8]
movsx eax, byte [ebp + 0xf]
push dword [0x405640]
push eax
lea eax, [ebp - 0x50]
push eax
push str._s_t_c_t_s_t_s_t_d_t_s_r_n
lea eax, [ebp - 0x9e0]
push 0x400
push eax
call edi
add esp, 0x24
push 0x64
push dword [0x405638]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 2
push ebx
push ebx
push dword [0x40563c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp + 0x14]
push ebx
push eax
lea eax, [ebp - 0x9e0]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0x9e0]
push eax
push dword [0x40563c]
call esi
push dword [0x405638]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push ebx
push 0x80
push 3
push ebx
push 1
push 0x40000000
push str..mailslotAVITrace
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 0x14], eax
je 0x401ad5
lea eax, [ebp - 0x5e0]
push eax
push dword [ebp + 8]
movsx eax, byte [ebp + 0xf]
push dword [0x405640]
push eax
lea eax, [ebp - 0x50]
push eax
push str._s__c__s___10s__s
lea eax, [ebp - 0x1e0]
push 0x190
push eax
call edi
inc dword [0x405648]
lea eax, [ebp - 0x1e0]
push eax
mov byte [ebp - 0x51], bl
call sub.MSVCRT.dll_strlen
add esp, 0x24
inc eax
mov dword [0x405654], eax
lea eax, [ebp + 0x10]
push ebx
push eax
push 0x10
push 0x405648
push dword [ebp + 0x14]
call esi
lea eax, [ebp + 0x10]
push ebx
push eax
lea eax, [ebp - 0x1e0]
push dword [0x405654]
push eax
push dword [ebp + 0x14]
call esi
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401bb5
Capabilities:
Accept command line arguments
Create directory
Get common file path
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x320
mov eax, dword [ebp + 0xc]
push str.MCAFEE_FRAMEWORK_LOG_MUTEX
push 0
push 0
mov dword [0x405640], eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
cmp eax, 0xffffffff
mov dword [0x405638], eax
je 0x401d04
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov ebx, dword [sym.imp.MSVCRT.dll__mbsstr]
mov esi, str._LOGDIR
push esi
push eax
call ebx
pop ecx
mov dword [ebp + 0xc], eax
test eax, eax
pop ecx
je 0x401c34
mov edi, 0x104
push edi
push esi
call sub.MSVCRT.dll_strlen
add eax, dword [ebp + 0xc]
pop ecx
mov esi, 0x4060ec
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0x4056f8
push esi
call ebx
pop ecx
test eax, eax
pop ecx
je 0x401c7d
and byte [eax], 0
jmp 0x401c7d
lea eax, [ebp - 0x118]
mov edi, 0x104
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x21c]
push edi
push eax
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea eax, [ebp - 0x21c]
push str.NAILogs
push eax
push str._s_s
mov esi, 0x4060ec
push edi
push esi
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x14
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x10
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea eax, [ebp - 0x14]
push eax
push esi
push str._sFrmInst__s.log
lea eax, [ebp - 0x320]
push edi
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x14
lea eax, [ebp - 0x320]
push 0
push 0x80
push 4
push dword [ebp + 0x10]
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0x4060e8
mov dword [0x40563c], eax
push dword [ebp + 8]
call fcn.00401ada
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
push str.START___s_
push dword [ebp + 8]
call fcn.00401ada
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401f37
Capabilities:
Create directory

Disassembly:
push esi
xor esi, esi
push edi
push esi
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x401f63
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
je 0x401f63
cmp esi, 0xb7
je 0x401f91
cmp esi, 5
je 0x401f91
push dword [esp + 0xc]
mov edi, str.Common
push str.CreateDirectory___s_
push edi
call fcn.00401ada
add esp, 0xc
test esi, esi
je 0x401f91
push 0x4060e8
push esi
push edi
call fcn.00401af2
add esp, 0xc
xor eax, eax
jmp 0x401f94
push 1
pop eax
pop edi
pop esi
ret
Function at 0x402015
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push dword [ebp + 0xc]
mov esi, ecx
mov ebx, str.Common
push eax
push str.CreateProcess___s___s_
push ebx
mov dword [esi + 0x10], eax
call fcn.00401ada
xor edi, edi
push 0x44
lea eax, [ebp - 0x44]
push edi
push eax
call sub.MSVCRT.dll_memset
add esp, 0x1c
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], 0x44
push esi
push eax
push edi
push edi
push edi
push edi
push edi
push edi
push dword [ebp + 0xc]
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x402086
push 0x4060e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
call fcn.00401af2
add esp, 0xc
xor eax, eax
jmp 0x402089
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x4020db
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
lea eax, [ebp - 0x104]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x402117
push str.GetTempPath
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Common
call fcn.00401af2
add esp, 0xc
xor eax, eax
leave
ret
lea eax, [ebp - 0x104]
push eax
call fcn.00401f97
test eax, eax
pop ecx
je 0x402113
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push 0
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x402166
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
push str.GetTempFileName___s___s_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Common
call fcn.00401af2
add esp, 0x14
jmp 0x402113
push dword [ebp + 0xc]
call fcn.004021d3
push dword [ebp + 0xc]
call fcn.00401f37
pop ecx
pop ecx
leave
ret

Function at 0x40217a
Capabilities:
Copy file

Disassembly:
push esi
mov esi, str.Common
push dword [esp + 8]
push str.Copy__s
push esi
call fcn.00401ada
push dword [esp + 0x18]
push str._____s
push esi
call fcn.00401ada
add esp, 0x18
push 0
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x4021ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x4060e8
push eax
push esi
call fcn.00401af2
add esp, 0xc
xor eax, eax
pop esi
ret
push 1
pop eax
pop esi
ret

Function at 0x4021d3
Capabilities:
Delete file
Set file attributes

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push edi
mov esi, str.Common
push str.Delete___s_
push esi
call fcn.00401ada
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40221d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x4060e8
push eax
push esi
call fcn.00401af2
add esp, 0xc
xor eax, eax
jmp 0x402220
push 1
pop eax
pop edi
pop esi
ret
Function at 0x402377
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
lea eax, [ebp - 0xc]
xor ebx, ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
lea eax, [ebp - 0x14]
push 1
push eax
mov dword [ebp - 0xc], ebx
mov byte [ebp - 0x14], bl
mov byte [ebp - 0x13], bl
mov byte [ebp - 0x12], bl
mov byte [ebp - 0x11], bl
mov byte [ebp - 0x10], bl
mov byte [ebp - 0xf], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x4023d1
push str.AllocateAndInitializeSid
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Main
call fcn.00401af2
add esp, 0xc
jmp 0x402491
lea eax, [ebp - 8]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x402406
push str.OpenProcessToken
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Main
call fcn.00401af2
add esp, 0xc
jmp 0x402488
push esi
lea eax, [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push edi
push eax
push ebx
push ebx
push 1
push dword [ebp - 8]
mov dword [ebp - 4], ebx
call esi
push dword [ebp - 4]
call dword [sym.imp.MSVCRT.dll_malloc]
mov edi, eax
pop ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push edi
push 1
push dword [ebp - 8]
call esi
test eax, eax
jne 0x402455
push str.GetTokenInformation
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Main
call fcn.00401af2
jmp 0x402472
push dword [ebp - 0xc]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
mov ebx, eax
push ebx
push str.System_d
push str.Main
call fcn.00401ada
add esp, 0xc
push edi
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, ebx
pop ebx
leave
ret

Function at 0x4025d0
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push edi
call fcn.004018e8
test eax, eax
je 0x40264c
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, str.NAIMServInst
xor edi, edi
push esi
push edi
mov dword [0x406218], eax
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
push dword [0x406218]
mov ebx, eax
lea eax, [ebp - 0x108]
push esi
push str._s_error:__d
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [ebp - 0x108]
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
cmp ebx, edi
mov dword [ebp - 4], eax
pop esi
je 0x40264c
lea eax, [ebp - 8]
push edi
push eax
push edi
push 2
push edi
push edi
push edi
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push ebx
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop edi
pop ebx
leave
ret
Function at 0x403384
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x18
push 0
push 0x407270
call sub.MSVCRT.dll_memset
add esp, 0xc
push str.CABINET
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [0x407270], eax
je 0x40347a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.FCICreate
push eax
call esi
push str.FCIAddFile
mov dword [0x407274], eax
push dword [0x407270]
call esi
push str.FCIFlushCabinet
mov dword [0x407278], eax
push dword [0x407270]
call esi
push str.FCIFlushFolder
mov dword [0x40727c], eax
push dword [0x407270]
call esi
push str.FCIDestroy
mov dword [0x407280], eax
push dword [0x407270]
call esi
mov ecx, dword [0x407274]
mov dword [0x407284], eax
test ecx, ecx
je 0x40346e
cmp dword [0x407278], 0
je 0x40346e
cmp dword [0x40727c], 0
je 0x40346e
test eax, eax
je 0x40346e
push dword [ebp + 0x38]
push dword [ebp + 0x34]
push dword [ebp + 0x30]
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call ecx
mov esi, eax
add esp, 0x34
test esi, esi
jne 0x40346a
push dword [0x407270]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
jmp 0x40347c
push dword [0x407270]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
pop esi
pop ebp
ret
Function at 0x4d649c
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x4d64a7
xor eax, eax
ret
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [esp + 0x14]
cmp edi, 8
not esi
jb 0x4d65a3
push ebp
mov ebp, edi
shr ebp, 3
jmp 0x4d64cc
movzx edx, byte [ecx]
xor edx, esi
and edx, 0xff
add ecx, 1
mov eax, esi
shr eax, 8
xor eax, dword [edx*4 + 0x1001ea30]
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x1001ea30]
movzx edx, byte [ecx + 1]
xor edx, eax
and edx, 0xff
add ecx, 1
shr eax, 8
xor eax, dword [edx*4 + 0x1001ea30]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x1001ea30]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x1001ea30]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x1001ea30]
movzx edx, byte [ecx + 1]
add ecx, 1
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x1001ea30]
movzx edx, byte [ecx + 1]
add ecx, 1
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x1001ea30]
add ecx, 1
sub edi, 8
sub ebp, 1
mov esi, eax
jne 0x4d64cc
pop ebp
test edi, edi
je 0x4d65c8
jmp 0x4d65ac
movzx eax, byte [ecx]
xor eax, esi
and eax, 0xff
shr esi, 8
xor esi, dword [eax*4 + 0x1001ea30]
add ecx, 1
sub edi, 1
jne 0x4d65ac
mov eax, esi
pop edi
not eax
pop esi
ret
Function at 0x4e35fc
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x1001b44c
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10023dc8]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov ebp, ecx
mov dword [esp + 0x14], ebp
mov ebx, dword [esp + 0x28]
mov eax, dword [ebx]
mov dword [ebp], eax
mov ecx, dword [ebx + 4]
mov dword [ebp + 4], ecx
mov edx, dword [ebx + 8]
mov dword [ebp + 8], edx
mov eax, dword [ebx + 0xc]
mov dword [ebp + 0xc], eax
push 0xffffffffffffffff
lea ecx, [ebp + 0x10]
xor esi, esi
lea eax, [ebx + 0x10]
push esi
mov edi, 0xf
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], esi
push eax
mov byte [ecx + 4], 0
call fcn.004deb2c
mov ecx, dword [ebx + 0x2c]
mov dword [ebp + 0x2c], ecx
push 0xffffffffffffffff
lea ecx, [ebp + 0x30]
lea eax, [ebx + 0x30]
push esi
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], esi
push eax
mov dword [esp + 0x2c], esi
mov byte [ecx + 4], 0
call fcn.004deb2c
mov edx, dword [ebx + 0x4c]
push 0xffffffffffffffff
lea ecx, [ebp + 0x50]
mov dword [ebp + 0x4c], edx
lea eax, [ebx + 0x50]
push esi
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], esi
push eax
mov byte [esp + 0x2c], 1
mov byte [ecx + 4], 0
call fcn.004deb2c
mov eax, dword [ebx + 0x6c]
mov dword [ebp + 0x6c], eax
mov ecx, dword [ebx + 0x70]
mov dword [ebp + 0x70], ecx
mov edx, dword [ebx + 0x74]
lea esi, [ebx + 0x78]
lea edi, [ebp + 0x78]
mov ecx, 0x18
mov dword [ebp + 0x74], edx
rep movsd dword es:[edi], dword [esi]
push 0xffffffffffffffff
lea ecx, [ebp + 0xd8]
lea eax, [ebx + 0xd8]
push 0
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], 0
push eax
mov byte [esp + 0x2c], 3
mov byte [ecx + 4], 0
call fcn.004deb2c
mov eax, dword [ebx + 0xf4]
mov dword [ebp + 0xf4], eax
mov ecx, dword [ebx + 0xf8]
mov dword [ebp + 0xf8], ecx
mov edx, dword [ebx + 0xfc]
mov dword [ebp + 0xfc], edx
lea esi, [ebx + 0x100]
lea edi, [ebp + 0x100]
mov ecx, 0x18
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 0x160]
mov dword [ebp + 0x160], eax
mov eax, ebp
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
Function at 0x4023d0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov eax, dword [esi]
test eax, eax
je 0x4023e4
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
add esi, 4
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4023f0
sub eax, edx
sar eax, 1
je 0x402408
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x406410
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4227c6
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x42e430]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x424], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x430], 0
push 0x404
xorps xmm0, xmm0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x420]
movq qword [ebp - 0x1c], xmm0
push 0
push eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], 0
call fcn.0040cae0
add esp, 0xc
mov dword [ebp - 0x420], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push esi
mov byte [ebp - 4], 1
call ebx
mov edi, eax
mov dword [ebp - 0x42c], edi
test edi, edi
jne 0x4064d4
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x42c], eax
test edi, edi
jne 0x4064d4
call fcn.00404080
mov esi, eax
jmp 0x4065c1
push dword [ebp - 0x428]
push dword [ebp - 0x424]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x4064f7
call fcn.00404080
jmp 0x4065b4
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x424], ebx
test ebx, ebx
jne 0x406515
call fcn.00404080
jmp 0x4065b4
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x428], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x406536
mov esi, 0x8007000e
jmp 0x4065b6
push eax
lea ecx, [ebp - 0x420]
mov byte [ebp - 4], 2
call fcn.00403aa0
jmp 0x406560
cmp dword [ebp - 0x420], 0
mov dword [ebp - 4], 1
jne 0x406577
mov esi, 0x8007000e
jmp 0x4065b6
push esi
push dword [ebp - 0x420]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x406597
call fcn.00404080
jmp 0x4065b4
mov eax, dword [ebp - 0x420]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x420]
call fcn.00406220
mov esi, eax
test edi, edi
je 0x4065c1
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x41c]
cmp dword [ebp - 0x420], eax
je 0x4065e0
lea ecx, [ebp - 0x420]
call fcn.00404db0
lea ebx, [ebx]
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 - 0x14]
xor ecx, ebp
call fcn.0040ca69
mov esp, ebp
pop ebp
ret 0x10
Function at 0x406f70
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test ebx, ebx
jne 0x406f89
lea eax, [ebx + 0xd]
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push edi
xor esi, esi
mov edx, ebx
nop
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406f95
sub eax, edi
sar eax, 1
lea ecx, [eax + 1]
lea edx, [edx + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x406f90
mov eax, dword [ebp - 4]
push esi
push ebx
push 7
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x407090
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x4070a5
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
jmp 0x4070b0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4070b0
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x4071a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x42e430]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 0
push 0
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x30], eax
test eax, eax
jne 0x4071d7
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ca69
mov esp, ebp
pop ebp
ret
push edi
lea eax, [ebp - 8]
push eax
push 0
push esi
push 0x4056e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
jne 0x407200
push dword [esi + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x30], edi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0040ca69
mov esp, ebp
pop ebp
ret

Function at 0x4078f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x407905
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x407944
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x407940
lea ebx, [ebx]
cmp esi, edx
jae 0x407944
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x407930
cmp esi, edx
jb 0x407949
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret