joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10141410
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push ebx
push esi
push edi
lea edi, [ebp - 0x40]
mov ecx, 0x10
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x10174880]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, 0x1017e536
call fcn.1006eba8
push 0
push 4
call fcn.1006daa5
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x1014159b
mov dword [ebp - 0x30], 0x1c
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.1006d96a
test eax, eax
je 0x10141588
cmp dword [ebp - 0x30], 0x10
jb 0x1014156c
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp esi, esp
call fcn.1006e306
cmp dword [ebp - 0x24], eax
jne 0x1014156c
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp esi, esp
call fcn.1006e306
cmp dword [ebp - 0x28], eax
je 0x1014156c
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x101414f3
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0x80
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
shl ecx, 2
mov esi, esp
push ecx
push 0
mov edx, dword [0x1017b4ac]
push edx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp esi, esp
call fcn.1006e306
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x101414f1
jmp 0x10141588
jmp 0x1014154c
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 8]
cmp edx, dword [ecx + 4]
jb 0x1014154c
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
shl ecx, 1
shl ecx, 2
mov esi, esp
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
push 0
mov ecx, dword [0x1017b4ac]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
cmp esi, esp
call fcn.1006e306
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x10141536
jmp 0x10141588
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
shl ecx, 1
mov edx, dword [ebp + 8]
mov dword [edx + 4], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x3c]
mov dword [eax], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov edx, dword [ebp - 0x28]
mov dword [eax + ecx*4], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
add ecx, 1
mov edx, dword [ebp + 8]
mov dword [edx + 8], ecx
mov dword [ebp - 0x30], 0x1c
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.1006d0d7
test eax, eax
jne 0x10141471
mov esi, esp
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.1006e306
push edx
mov ecx, ebp
push eax
lea edx, [0x101415cc]
call fcn.1006dfc3
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006db54
add esp, 0x100
cmp ebp, esp
call fcn.1006e306
mov esp, ebp
pop ebp
ret
Function at 0x10141870
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd8
push ebx
push esi
push edi
lea edi, [ebp - 0x18]
mov ecx, 6
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov ecx, 0x1017e536
call fcn.1006eba8
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0
mov eax, dword [ebp + 8]
push eax
call fcn.10141410
add esp, 4
mov eax, dword [ebp + 8]
cmp dword [eax], 0
je 0x1014194b
mov dword [ebp - 8], 0
jmp 0x101418dc
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
cmp ecx, dword [eax + 8]
jae 0x1014194b
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov esi, esp
mov edx, dword [ebp - 8]
mov eax, dword [ecx + edx*4]
push eax
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
cmp esi, esp
call fcn.1006e306
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x10141949
mov esi, esp
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp esi, esp
call fcn.1006e306
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call fcn.10142650
add esp, 0xc
mov esi, esp
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.1006e306
jmp 0x101418d3
pop edi
pop esi
pop ebx
add esp, 0xd8
cmp ebp, esp
call fcn.1006e306
mov esp, ebp
pop ebp
ret

Function at 0x10142a00
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd8
push ebx
push esi
push edi
lea edi, [ebp - 0x18]
mov ecx, 6
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov ecx, 0x1017e536
call fcn.1006eba8
mov eax, dword [ebp + 8]
cmp dword [eax], 0
je 0x10142abc
mov dword [ebp - 8], 0
jmp 0x10142a43
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
cmp ecx, dword [eax + 8]
jae 0x10142a9e
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov esi, esp
mov edx, dword [ebp - 8]
mov eax, dword [ecx + edx*4]
push eax
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
cmp esi, esp
call fcn.1006e306
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x10142a9c
mov esi, esp
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp esi, esp
call fcn.1006e306
mov esi, esp
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.1006e306
jmp 0x10142a3a
mov esi, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
push 0
mov edx, dword [0x1017b4ac]
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp esi, esp
call fcn.1006e306
pop edi
pop esi
pop ebx
add esp, 0xd8
cmp ebp, esp
call fcn.1006e306
mov esp, ebp
pop ebp
ret
Function at 0x101431f0
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
push ebx
push esi
push edi
lea edi, [ebp - 0xc]
mov ecx, 3
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov ecx, 0x1017e5fa
call fcn.1006eba8
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp + 8]
movzx eax, byte [edx + ecx]
test eax, eax
je 0x10143258
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp + 8]
movzx eax, byte [edx + ecx]
cmp eax, 0x90
je 0x10143258
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp + 8]
movzx eax, byte [edx + ecx]
cmp eax, 0xcc
je 0x10143258
xor eax, eax
jmp 0x10143299
mov dword [ebp - 8], 1
jmp 0x1014326a
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0xc]
jae 0x10143294
mov eax, dword [ebp + 8]
add eax, dword [ebp - 8]
movzx ecx, byte [eax]
mov edx, 1
imul eax, edx, 0
mov edx, dword [ebp + 8]
movzx eax, byte [edx + eax]
cmp ecx, eax
je 0x10143292
xor eax, eax
jmp 0x10143299
jmp 0x10143261
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0xcc
cmp ebp, esp
call fcn.1006e306
mov esp, ebp
pop ebp
ret

Function at 0x40177f
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4017be
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4017be
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4017be
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4017be
cmp dword [ecx + 0x74], 0xe
jbe 0x4017be
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x412170
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41219d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41219d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401000
Capabilities:
Check if file exists
Get common file path

Disassembly:
sub esp, 0x43c
mov eax, dword [0x4417c0]
xor eax, esp
mov dword [esp + 0x438], eax
push esi
push edi
xor eax, eax
push 0x21a
push eax
lea ecx, [esp + 0x22e]
push ecx
mov word [esp + 0x230], ax
call fcn.0041a230
xor edx, edx
push 0x21a
push edx
lea eax, [esp + 0x1e]
push eax
mov word [esp + 0x20], dx
call fcn.0041a230
mov esi, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
add esp, 0x18
push 0x104
lea ecx, [esp + 0xc]
push ecx
call esi
push str._system32drivers_
lea edx, [esp + 0xc]
push 0x104
push edx
call fcn.0041af85
push str.BkavAutoFlt.sys
lea eax, [esp + 0x18]
push 0x104
push eax
call fcn.0041af85
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x18
lea ecx, [esp + 8]
push ecx
call edi
test eax, eax
jne 0x4010b4
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x438]
xor ecx, esp
call fcn.0041a7bc
add esp, 0x43c
ret
push 0x104
lea edx, [esp + 0xc]
push edx
call esi
push str._system32drivers_
lea eax, [esp + 0xc]
push 0x104
push eax
call fcn.0041af85
push str.BkavAutoFlt.inf
lea ecx, [esp + 0x18]
push 0x104
push ecx
call fcn.0041af85
add esp, 0x18
lea edx, [esp + 8]
push edx
call edi
test eax, eax
je 0x40109b
push 0x104
lea eax, [esp + 0xc]
push eax
call esi
push str._system32drivers_
lea ecx, [esp + 0xc]
push 0x104
push ecx
call fcn.0041af85
push str.DefaultInstall_128
lea edx, [esp + 0x234]
push 0x104
push edx
call fcn.0041af16
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x240]
push 0x104
push ecx
call fcn.0041af85
push str.BkavAutoFlt.inf
lea edx, [esp + 0x24c]
push 0x104
push edx
call fcn.0041af85
add esp, 0x30
push 0
lea eax, [esp + 0x228]
push eax
push 0
push 0
call sub.SETUPAPI.dll_InstallHinfSectionW
mov ecx, dword [esp + 0x440]
pop edi
pop esi
xor ecx, esp
mov al, 1
call fcn.0041a7bc
add esp, 0x43c
ret

Function at 0x4011d0
Capabilities:
Delete registry value

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0xf003f
push 0
push str.SYSTEMCurrentControlSetServicesBkavAuto
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4011f4
xor al, al
pop ecx
ret
mov ecx, dword [esp]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push 0x433610
push ecx
call esi
mov edx, dword [esp + 4]
push 0x433604
push edx
call esi
mov eax, dword [esp + 4]
push 0x4335f8
push eax
call esi
mov ecx, dword [esp + 4]
push 0x4335e0
push ecx
call esi
mov edx, dword [esp + 4]
push 0x4335c4
push edx
call esi
mov eax, dword [esp + 4]
push 0x4335b8
push eax
call esi
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
pop esi
pop ecx
ret
Function at 0x401470
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x104
mov eax, dword [0x4417c0]
xor eax, esp
mov dword [esp + 0x100], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
push edi
push str.Start_LoadCache__
mov esi, ecx
call ebx
lea edi, [esi + 0x228]
push 0
add esi, 0x124
push esi
mov ecx, edi
call fcn.00414640
test eax, eax
je 0x4014e6
mov eax, dword [edi]
push eax
lea ecx, [esp + 0x10]
push str.LoadCache___cache_finish_success__nCachedFiles___d
push ecx
call fcn.0041b156
add esp, 0xc
lea edx, [esp + 0xc]
push edx
call ebx
mov eax, dword [edi]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x100]
xor ecx, esp
call fcn.0041a7bc
add esp, 0x104
ret
push str.LoadCache___error
call ebx
mov ecx, dword [esp + 0x10c]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0041a7bc
add esp, 0x104
ret

Function at 0x401fd0
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401ff9
xor eax, eax
pop esi
ret
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret

Function at 0x402283
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x808
mov eax, dword [0x4417c0]
xor eax, esp
mov dword [esp + 0x804], eax
push esi
push 0
push 0
call fcn.00406bc0
push eax
lea eax, [esp + 0x14]
push str._sScanEngine.dat
push eax
call fcn.0041b156
push 0x5d20
push 0
push 0x442bc0
call fcn.0041a230
add esp, 0x20
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov dword [esp + 4], 0
cmp esi, 0xffffffff
je 0x4022fb
push 0
lea edx, [esp + 8]
push edx
push 0x5d20
push 0x442bc0
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 4], 0x5d20
je 0x4022fb
push 0x5d20
push 0
push 0x442bc0
call fcn.0041a230
add esp, 0xc
mov ecx, dword [esp + 0x808]
pop esi
xor ecx, esp
call fcn.0041a7bc
add esp, 0x808
ret

Function at 0x402320
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x808
mov eax, dword [0x4417c0]
xor eax, esp
mov dword [esp + 0x804], eax
push esi
push 0
push 0
call fcn.00406bc0
push eax
lea eax, [esp + 0x14]
push str._sScanEngine.dat
push eax
call fcn.0041b156
add esp, 0x14
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x402394
push 0
lea edx, [esp + 8]
push edx
push 0x5d20
push 0x442bc0
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x808]
pop esi
xor ecx, esp
call fcn.0041a7bc
add esp, 0x808
ret
Function at 0x402b70
Capabilities:
Delete file

Disassembly:
push ebx
push edi
mov ebx, ecx
push 0x104
lea edi, [ebx + 0x20]
push 0
push edi
call fcn.0041a230
push 0x104
push edi
call fcn.00406bc0
add esp, 0x14
test eax, eax
jne 0x402b9b
pop edi
pop ebx
ret 4
push esi
call fcn.00402490
push 0x103
push edi
lea esi, [ebx + 0x124]
push 0x104
push esi
call fcn.0041b368
mov eax, esi
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402bc0
sub eax, edx
mov ecx, 0x104
sub ecx, eax
lea eax, [ecx - 1]
push eax
push str.CacheScan.db
push ecx
push esi
call fcn.0041b34b
add esp, 0x10
cmp dword [esp + 0x10], 1
jne 0x402c1b
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x402c14
pop esi
pop edi
xor eax, eax
pop ebx
ret 4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [ebx + 4]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, ebx
call fcn.00401470
push esi
mov dword [ebx + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop edi
mov eax, 1
pop ebx
ret 4
Function at 0x402dc0
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1004
call fcn.0041bfd0
mov eax, dword [0x4417c0]
xor eax, esp
mov dword [esp + 0x1000], eax
push esi
mov esi, dword [esp + 0x100c]
push edi
lea eax, [esp + 8]
push 0x800
push eax
mov byte [esp + 0x10], 0
call fcn.00406bc0
lea edi, [esp + 0x10]
add esp, 8
dec edi
lea ecx, [ecx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402e00
mov cx, word [0x433b50]
lea eax, [esp + 8]
mov word [edi], cx
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402e20
sub eax, edx
push eax
lea edx, [esp + 0xc]
push edx
push esi
call fcn.0041b8ea
add esp, 0xc
test eax, eax
jne 0x402e46
mov eax, 1
jmp 0x402f9e
lea eax, [esp + 8]
push 0x800
push eax
mov byte [esp + 0x10], 0
call fcn.00402d70
push 0x800
lea ecx, [esp + 0x14]
push str.BluPro_
push ecx
call fcn.0041c136
lea eax, [esp + 0x1c]
add esp, 0x14
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402e78
sub eax, edx
push eax
lea edx, [esp + 0xc]
push edx
push esi
call fcn.0041b8ea
add esp, 0xc
test eax, eax
je 0x402e3c
push 0x800
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x402f9c
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x80c]
push str._s_system32Bkav2009Service.exe
push edx
call fcn.0041b156
lea eax, [esp + 0x814]
push esi
push eax
call fcn.0041b6a8
add esp, 0x14
test eax, eax
je 0x402e3c
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x80c]
push str._s_system32BkavService.exe
push edx
call fcn.0041b156
lea eax, [esp + 0x814]
push esi
push eax
call fcn.0041b6a8
add esp, 0x14
test eax, eax
je 0x402e3c
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x80c]
push str._s_system32EnterpriseUpdateService.exe
push edx
call fcn.0041b156
lea eax, [esp + 0x814]
push esi
push eax
call fcn.0041b6a8
add esp, 0x14
test eax, eax
je 0x402e3c
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x80c]
push str._s_system32BluProService.exe
push edx
call fcn.0041b156
lea eax, [esp + 0x814]
push esi
push eax
call fcn.0041b6a8
add esp, 0x14
test eax, eax
je 0x402e3c
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x80c]
push str._s_system32BkavFirewallService.exe
push edx
call fcn.0041b156
lea eax, [esp + 0x814]
push esi
push eax
call fcn.0041b6a8
add esp, 0x14
test eax, eax
je 0x402e3c
xor eax, eax
mov ecx, dword [esp + 0x1008]
pop edi
pop esi
xor ecx, esp
call fcn.0041a7bc
add esp, 0x1004
ret 4

Function at 0x4032f0
Capabilities:
Check mutex on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
test eax, eax
jne 0x403301
xor eax, eax
pop esi
ret 4
mov dword [esi + 8], eax
cmp word [eax + 0xca], 0
je 0x4032fb
cmp word [eax], 0
je 0x4032fb
xor ecx, ecx
mov word [eax + 0x2d2], cx
mov edx, dword [esi + 8]
xor eax, eax
mov word [edx + 0x4dc], ax
mov ecx, dword [esi + 8]
xor edx, edx
mov word [ecx + 0xc8], dx
mov eax, dword [esi + 8]
push eax
push edx
push edx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 4], eax
test eax, eax
je 0x4032fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0xb7
sete cl
pop esi
mov eax, ecx
ret 4
Function at 0x403360
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x43c238
push 0x41c330
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4417c0]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x24], edi
cmp dword [edi + 8], 0
je 0x403403
mov dword [ebp - 0x1c], 1
push 0x1388
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x403403
mov dword [ebp - 4], eax
mov esi, dword [ebp + 8]
imul esi, esi, 0x2c
mov ecx, dword [edi + 8]
mov dl, byte [ebp + 0xc]
mov byte [esi + ecx + 0x508], dl
push eax
push 0x80
push 3
push eax
push eax
push 0x40000000
mov eax, dword [edi + 8]
add eax, 0xca
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x403419
push 0xfffffffffffffffe
lea ecx, [ebp - 0x10]
push ecx
push 0x4417c0
call fcn.0041c4bc
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [ebp - 0x1c], 1
push 0
push 0
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea edx, [ebp - 0x20]
push edx
push 0x2c
mov eax, dword [edi + 8]
lea ecx, [esi + eax + 0x4f0]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40344d
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], 0x2c
je 0x40345a
mov dword [ebp - 0x1c], 0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xfffffffe
call fcn.00403487
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4039f0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
sub esp, 0x218
mov eax, dword [0x4417c0]
xor eax, esp
mov dword [esp + 0x214], eax
push ebp
mov ebp, dword [esp + 0x220]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 8]
push ecx
push 0
push 0xf003f
push 0
push 0x433fb5
push 0
push str.SystemCurrentControlSetServicesSysLib
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x403a52
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.0041a7bc
add esp, 0x218
ret
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push str.SysLib
call edi
mov edx, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
inc eax
push eax
push str.SysLib
push 1
push 0
push str.DisplayName
push edx
call esi
mov ecx, dword [esp + 0xc]
push 4
lea eax, [esp + 0x14]
push eax
push 4
push 0
push str.ErrorControl
push ecx
mov dword [esp + 0x28], 1
call esi
push str.Filter
call edi
mov edx, dword [esp + 0xc]
inc eax
push eax
push str.Filter
push 1
push 0
push str.Group
push edx
call esi
mov ecx, dword [esp + 0xc]
push 4
lea eax, [esp + 0x14]
push eax
push 4
push 0
push str.Start
push ecx
mov dword [esp + 0x28], 1
call esi
mov eax, dword [esp + 0xc]
push 4
lea edx, [esp + 0x14]
push edx
push 4
push 0
push str.Type
push eax
mov dword [esp + 0x28], 1
call esi
push str.SystemRootSystem32Drivers_
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x104
lea edx, [esp + 0x1c]
push edx
call edi
lea eax, [esp + eax + 0x1c]
push eax
push ebp
call fcn.00414a20
add esp, 0xc
test eax, eax
jne 0x403b3f
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.0041a7bc
add esp, 0x218
ret
lea ecx, [esp + 0x18]
push ecx
call edi
inc eax
push eax
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push edx
push 2
push 0
push str.ImagePath
push eax
call esi
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x220]
pop edi
pop esi
pop ebp
xor ecx, esp
mov eax, 1
call fcn.0041a7bc
add esp, 0x218
ret
Function at 0x403be0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
sub esp, 0x21c
mov eax, dword [0x4417c0]
xor eax, esp
mov dword [esp + 0x218], eax
mov eax, dword [esp + 0x220]
push ebp
mov ebp, dword [esp + 0x228]
push esi
mov esi, dword [ebp + 0x164c]
push edi
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
push esi
lea ecx, [esp + 0x20]
push str.SystemCurrentControlSetServicesSysLib_u
push ecx
mov dword [esp + 0x20], eax
call edi
add esp, 0xc
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x10]
push eax
push 0
push 0xf003f
push 0
push 0x433fb5
push 0
lea ecx, [esp + 0x38]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x403c6d
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.0041a7bc
add esp, 0x21c
ret
push ebx
push esi
lea edx, [esp + 0x24]
push str.SysLib_u
push edx
call edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
add esp, 0xc
lea eax, [esp + 0x20]
push eax
call edi
mov edx, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, 1
add eax, ebx
push eax
lea ecx, [esp + 0x24]
push ecx
push ebx
push 0
push str.DisplayName
push edx
call esi
mov ecx, dword [esp + 0x10]
push 4
lea eax, [esp + 0x18]
push eax
push 4
push 0
push str.ErrorControl
push ecx
mov dword [esp + 0x2c], ebx
call esi
push str.Filter
call edi
mov edx, dword [esp + 0x10]
add eax, ebx
push eax
push str.Filter
push ebx
push 0
push str.Group
push edx
call esi
mov ecx, dword [esp + 0x10]
push 4
lea eax, [esp + 0x18]
push eax
push 4
push 0
push str.Start
push ecx
mov dword [esp + 0x2c], ebx
call esi
mov eax, dword [esp + 0x10]
push 4
lea edx, [esp + 0x18]
push edx
push 4
push 0
push str.Type
push eax
mov dword [esp + 0x2c], ebx
call esi
push str.SystemRootSystem32Drivers_
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x104
lea edx, [esp + 0x24]
push edx
call edi
mov ecx, dword [esp + 0x1c]
lea eax, [esp + eax + 0x24]
push eax
push ecx
call fcn.00414a20
add esp, 0xc
test eax, eax
je 0x403d80
lea edx, [esp + 0x20]
push edx
call edi
mov ecx, dword [esp + 0x10]
add eax, ebx
push eax
lea eax, [esp + 0x24]
push eax
push 2
push 0
push str.ImagePath
push ecx
call esi
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add dword [ebp + 0x164c], ebx
mov eax, ebx
mov ecx, dword [esp + 0x228]
pop ebx
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0041a7bc
add esp, 0x21c
ret