joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4027fd
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
push ebx
push esi
push edi
push 0
push 3
mov esi, ecx
push 2
call dword [0x406600]
cmp eax, 0xffffffff
mov dword [esi + 0xc], eax
je 0x4028f0
lea eax, [ebp - 0x144]
push 0x100
push eax
call dword [0x4065fc]
cmp eax, 0xffffffff
je 0x4028f0
lea eax, [ebp - 0x144]
push eax
call dword [0x4065f8]
mov edi, eax
mov eax, dword [ebp + 8]
push eax
mov dword [esi + 0x10], eax
mov word [ebp - 0x1c], 2
call dword [0x4065f4]
mov word [ebp - 0x1a], ax
movsx eax, word [edi + 0xa]
push eax
mov eax, dword [edi + 0xc]
push dword [eax]
lea eax, [ebp - 0x18]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0x1c]
push 0x10
push eax
push dword [esi + 0xc]
call dword [0x4065f0]
cmp eax, 0xffffffff
je 0x4028f0
push 1
mov edi, dword [0x4065ec]
pop ebx
lea eax, [ebp - 4]
push 4
push eax
push 4
push 0xffff
push dword [esi + 0xc]
mov dword [ebp - 4], ebx
call edi
lea eax, [ebp - 4]
push 4
push eax
push 2
push 0
mov dword [ebp - 4], ebx
push dword [esi + 0xc]
call edi
cmp eax, 0xffffffff
je 0x4028f0
xor edi, edi
lea eax, [ebp - 0xc]
push edi
push edi
push eax
lea eax, [ebp - 0x44]
push 0x28
push eax
lea eax, [ebp - 8]
push 4
push eax
push 0x98000001
push dword [esi + 0xc]
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], edi
call dword [0x4065e8]
cmp eax, 0xffffffff
jne 0x4028f8
call dword [0x4065dc]
jmp 0x402929
push edi
push edi
push esi
push 0x402791
push edi
push edi
mov byte [esi + 8], bl
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [esi + 4], eax
jne 0x402927
push dword [esi + 0xc]
and byte [esi + 8], 0
call dword [0x4065e4]
or eax, 0xffffffff
mov dword [esi + 0xc], eax
jmp 0x402929
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x402930
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 4]
and byte [esi + 8], 0
test eax, eax
je 0x402954
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi + 4], 0
mov esi, dword [esi + 0xc]
test esi, esi
je 0x402962
push esi
call dword [0x4065e4]
pop esi
ret
Function at 0x42211b
Capabilities:
Parse pe header

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

Function at 0x4347a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4347cd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4347cd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x401720
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push 0
push eax
push 0
push 0
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 0xcf0000
push str.Best_Application
push str.Clariot
push 0
mov dword [0x4050ff], eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
test esi, esi
jne 0x401767
pop esi
pop ebp
ret
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 1
pop esi
pop ebp
ret

Function at 0x401fad
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x405364]
test eax, eax
je 0x401fc6
call eax
test eax, eax
jne 0x401fc6
push 0xfffffffffffffffe
jmp 0x401fe0
push 1
push 0x405010
push 0x405008
call fcn.00401b91
add esp, 0xc
test eax, eax
je 0x401fe6
push 0xfffffffffffffffd
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push esi
push 0
push 0x405004
push section..data
call fcn.00401b91
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
test esi, esi
jne 0x40200c
mov esi, 0x4049c2
mov cl, 0x20
jmp 0x402015
cmp al, 0x20
ja 0x40201f
inc esi
mov al, byte [esi]
test al, al
jne 0x402010
cmp al, 0x20
jbe 0x402036
mov al, byte [esi]
cmp al, 0x22
jne 0x402028
xor cl, 0x20
inc esi
mov al, byte [esi]
cmp al, cl
ja 0x402021
jmp 0x402036
cmp al, cl
ja 0x40203c
inc esi
mov al, byte [esi]
test al, al
jne 0x402031
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test eax, 0xa0d0a0d
sub eax, 0x54524357
sub eax, 0xa0d0a0d
test byte [ebp - 0x18], 1
je 0x402065
movzx eax, word [ebp - 0x14]
jmp 0x402068
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call fcn.0040209d
pop ecx
pop esi
leave
ret

Function at 0x40209d
Capabilities:
Terminate process

Disassembly:
call fcn.004020e7
push 0
push 0x405018
push 0x405014
call fcn.00401b91
push 0
push 0x405020
push 0x40501c
call fcn.00401b91
add esp, 0x18
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x412869
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x412878
pop dword [ebp - 0x44]
mov eax, 0x412878
sub dword [ebp - 0x44], eax
push 0x40
push 0x1000
push 0x4034e
push 0
mov eax, 0xc7730113
add eax, 0x38ced101
add eax, dword [ebp - 0x44]
call dword [eax]
mov ecx, 0x6951533d
sub ecx, 0x6950ffd1
mov edx, eax
mov edi, 0x80b015be
add edi, 0x7f934a42
add edi, dword [ebp - 0x44]
mov esi, 0x9f83ead5
xor dword [ebp - 0x24], 0xb5d72d40
mov ebx, dword [edi]
xor ebx, esi
add dword [ebp - 0x10], ecx
mov dword [edx], ebx
sub dword [ebp - 0x34], 0x99e62bf2
add edx, 0xed3eef0c
sub edx, 0xed3eef08
add edi, 4
loop 0x4128cc
add eax, 0x14083
xor ebx, ebx
add ebx, eax
add eax, 0x777a8fd8
add eax, 0x8885702d
mov ecx, 0xa68c499f
sub ecx, 0xa64c499f
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x40196b
Capabilities:
Set registry value

Disassembly:
push 4
mov eax, 0x4378a1
call fcn.00425651
lea eax, [ebp - 0x10]
push eax
call fcn.0041310d
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax - 0xc]
add eax, eax
push eax
lea esi, [ebp - 0x10]
call fcn.00415d83
mov edi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push eax
push 1
push str.InstallDir
mov ebx, str.SoftwareAdvancedSystemRepairPro
push ebx
push SysReAllocString
call edi
mov eax, dword [ebp - 0x10]
mov eax, dword [eax - 0xc]
add eax, eax
push eax
call fcn.00415d83
push eax
push 1
push str.InstallDir
push ebx
push reloc.OLEAUT32.dll_SysReAllocString
call edi
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.0040f6db
call fcn.00425729
ret

Function at 0x402055
Capabilities:
Create shortcut via ishelllink

Disassembly:
push 8
mov eax, 0x43609f
call fcn.00425651
mov dword [ebp - 4], 3
lea eax, [ebp - 0x10]
push eax
push 0x4413f4
xor ebx, ebx
push 1
push ebx
push 0x441404
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x4020f7
mov eax, dword [ebp - 0x10]
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0x3c]
mov eax, dword [ebp + 0x10]
cmp dword [eax - 0xc], ebx
je 0x4020b5
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
push ebx
push eax
push ecx
call dword [edx + 0x44]
mov eax, dword [ebp + 0x14]
cmp dword [eax - 0xc], ebx
je 0x4020c7
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x2c]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
lea edx, [ebp - 0x14]
push edx
push 0x441414
push eax
call dword [ecx]
test eax, eax
jl 0x4020f7
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x4020f7
mov ecx, dword [eax]
push 1
push dword [ebp + 0xc]
push eax
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 2
lea ecx, [ebp + 8]
call fcn.0040f6db
mov byte [ebp - 4], 1
lea ecx, [ebp + 0xc]
call fcn.0040f6db
mov byte [ebp - 4], bl
lea ecx, [ebp + 0x10]
call fcn.0040f6db
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x14]
call fcn.0040f6db
call fcn.00425729
ret
Function at 0x404aad
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x404af4
call fcn.0040693d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x404af4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x404b10
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0040b6ca
mov esi, eax
test edi, edi
je 0x404b0e
test ebx, ebx
je 0x404b0e
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x405090
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x435d54
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44dd60]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov ebp, dword [esp + 0x38]
xor ebx, ebx
mov dword [esp + 0x30], ebx
push 0xc
mov dword [esp + 0x18], ebx
call fcn.0040be0e
add esp, 4
mov dword [esp + 0x18], eax
mov ecx, 1
mov dword [esp + 0x30], ecx
cmp eax, ebx
je 0x4050ec
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
jmp 0x4050ee
xor eax, eax
mov byte [esp + 0x30], bl
mov dword [ebp], eax
mov dword [esp + 0x30], ebx
mov eax, dword [esp + 0x40]
push ebx
lea edx, [esp + 0x24]
push edx
push eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x50]
push eax
mov dword [esp + 0x30], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x405194
mov edi, dword [ebp]
cmp esi, dword [edi + 4]
je 0x405155
mov eax, dword [edi]
push esi
push eax
call fcn.00423ea6
mov ecx, dword [edi + 4]
add esp, 8
mov dword [edi], eax
cmp esi, ecx
jbe 0x405152
mov edx, esi
sub edx, ecx
push edx
add ecx, eax
push ebx
push ecx
call fcn.00423ac0
add esp, 0xc
mov dword [edi + 4], esi
mov eax, dword [ebp]
mov edx, dword [esp + 0x3c]
push ebx
lea ecx, [esp + 0x44]
push ecx
mov dword [esp + 0x48], esi
mov eax, dword [eax]
push esi
push eax
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40517b
cmp dword [esp + 0x40], esi
je 0x405194
mov esi, dword [ebp]
cmp dword [esi + 4], ebx
je 0x405194
mov eax, dword [esi]
push ebx
push eax
call fcn.00423ea6
add esp, 8
mov dword [esi], eax
mov dword [esi + 4], ebx
mov eax, ebp
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x408b0c
Capabilities:
Create process on windows

Disassembly:
push 0x54
mov eax, 0x43633f
call fcn.00425651
xor edi, edi
mov dword [ebp - 4], edi
push 0x44
pop esi
push esi
lea eax, [ebp - 0x60]
push edi
push eax
call fcn.00423ac0
xor eax, eax
push 0x10
mov word [ebp - 0x30], ax
lea eax, [ebp - 0x1c]
push edi
push eax
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x34], 1
call fcn.00423ac0
add esp, 0x18
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x60]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
lea esi, [ebp + 8]
call fcn.00415d83
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x408b7c
push dword [ebp - 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x18]
call esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0040f6db
call fcn.00425729
ret

Function at 0x4098a2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44dd60]
jne 0x4098ac
repz ret
jmp fcn.0042879f
Function at 0x40a7a0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x436b1b
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x44dd60]
xor eax, esp
mov dword [esp + 0x264], eax
push esi
push edi
mov eax, dword [0x44dd60]
xor eax, esp
push eax
lea eax, [esp + 0x278]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
and dword [esp + 0x1c], 0
push 0x24c
lea eax, [esp + 0x24]
push 0
push eax
call fcn.00423ac0
lea eax, [esp + 0x20]
push str..
push eax
mov esi, edi
call fcn.0041d775
add esp, 0x14
and dword [esp + 0x280], 0
mov eax, dword [eax]
lea ecx, [esp + 0x1c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x10], eax
or dword [esp + 0x280], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.0040f6db
cmp dword [esp + 0x10], 0xffffffff
je 0x40a920
lea eax, [esp + 0x48]
push 0x441b40
push eax
call fcn.00424586
pop ecx
pop ecx
test eax, eax
je 0x40a8ff
lea eax, [esp + 0x48]
push 0x441b44
push eax
call fcn.00424586
pop ecx
pop ecx
test eax, eax
je 0x40a8ff
lea eax, [esp + 0x18]
push 0x441b4c
push eax
mov esi, edi
call fcn.0041d775
mov dword [esp + 0x288], 1
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x18]
push ecx
mov esi, eax
call fcn.0041d775
add esp, 0x10
mov byte [esp + 0x280], 3
lea ecx, [esp + 0x18]
call fcn.0040f6db
test byte [esp + 0x1c], 0x10
je 0x40a8d5
push dword [ebp + 0xc]
lea eax, [esp + 0x10]
push eax
call fcn.0040a7a0
pop ecx
pop ecx
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 0x80
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
or dword [esp + 0x280], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.0040f6db
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40a842
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [ebp + 0xc], 0
je 0x40a92e
push dword [edi]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [esp + 0x278]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x264]
xor ecx, esp
call fcn.004098a2
mov esp, ebp
pop ebp
ret
Function at 0x40de01
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0x18]
sub eax, dword [ebp + 0x10]
mov ecx, dword [esi + 0x84]
xor edx, edx
div ecx
mov dword [ebp - 8], eax
test edx, edx
je 0x40de20
inc dword [ebp - 8]
mov eax, dword [ebp + 0x1c]
sub eax, dword [ebp + 0x14]
mov ecx, dword [esi + 0x88]
xor edx, edx
div ecx
push ebx
mov ebx, eax
test edx, edx
je 0x40de38
inc ebx
and dword [ebp - 4], 0
cmp dword [ebp - 8], 0
jle 0x40de86
push edi
xor edi, edi
test ebx, ebx
jle 0x40de7a
mov eax, dword [esi + 0x88]
mov ecx, dword [esi + 0x84]
push 0xcc0020
push 0
push 0
push dword [ebp + 0xc]
push eax
imul eax, edi
push ecx
imul ecx, dword [ebp - 4]
push eax
push ecx
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_BitBlt]
inc edi
cmp edi, ebx
jl 0x40de49
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jl 0x40de43
pop edi
pop ebx
leave
ret 0x18

Function at 0x40e58b
Capabilities:
Check if file exists

Disassembly:
push 8
mov eax, 0x437d66
call fcn.00425651
mov edi, dword [ebp + 8]
push edi
call fcn.0040d11f
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x14]
push eax
call fcn.0041322a
pop ecx
mov byte [ebp - 4], 1
call fcn.00405208
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.0040f6db
push dword [edi]
mov byte [ebp - 0xd], bl
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40e5d6
mov byte [ebp - 0xd], 1
mov eax, dword [edi]
push ebx
push ebx
push 4
push ebx
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x40e5f7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0xd], bl
je 0x40e62a
push dword [edi]
call fcn.00406ff3
push ebx
call fcn.0042394e
pop ecx
pop ecx
push eax
push ecx
mov eax, esp
mov dword [ebp - 0x14], esp
push eax
mov ecx, 0x442d88
call fcn.0041310d
mov byte [ebp - 4], 2
push edi
mov byte [ebp - 4], bl
call fcn.0040e9bb
or dword [ebp - 4], 0xffffffff
mov eax, edi
call fcn.00425729
ret 4
Function at 0x40f453
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x44dd60]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x10
mov eax, 0x437830
call fcn.00425651
xor eax, eax
mov dword [ebp - 4], eax
mov edi, ecx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], eax
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
push 0x206
push eax
lea eax, [ebp + 2]
xor ecx, ecx
push eax
mov word [ebp], cx
call fcn.00423ac0
add esp, 0xc
push 0x104
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push edi
lea ecx, [ebp]
call fcn.0041310d
lea eax, [ebp - 0x10]
push 0x441b4c
push eax
mov esi, edi
mov dword [ebp - 0x18], ebx
call fcn.0041d775
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x214]
push ecx
lea ecx, [ebp - 0x14]
push ecx
mov esi, eax
call fcn.00415d31
add esp, 0x10
mov byte [ebp - 4], 3
call fcn.00405208
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.0040f6db
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x10]
call fcn.0040f6db
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x214]
call fcn.0040f6db
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.004098a2
add ebp, 0x20c
leave
ret

Function at 0x40f98b
Capabilities:
Check for time delay via gettickcount
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
push edi
push 0xf01ff
push dword [ebp + 8]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
xor edi, edi
mov dword [ebp - 8], esi
cmp esi, edi
jne 0x40f9bf
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x40fa6a
push edi
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x40f9dc
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push dword [ebp + 0xc]
call esi
jmp 0x40f9b8
lea eax, [ebp - 0xc]
push eax
push 0x24
lea eax, [ebp - 0x30]
push eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
push esi
call edi
test eax, eax
je 0x40f9b8
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebx
call esi
mov ebx, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
jmp 0x40fa4e
mov eax, dword [ebp - 0x18]
push 0xa
xor edx, edx
pop ecx
div ecx
mov ecx, 0x3e8
cmp eax, ecx
jb 0x40fa21
mov ecx, 0x2710
cmp eax, ecx
jbe 0x40fa23
mov eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0xc]
push eax
push 0x24
lea eax, [ebp - 0x30]
push eax
push 0
push dword [ebp - 8]
call edi
test eax, eax
je 0x40fa54
cmp dword [ebp - 0x1c], ebx
ja 0x40f9fb
call esi
sub eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x18]
ja 0x40fa54
cmp dword [ebp - 0x2c], 2
je 0x40fa05
push dword [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push dword [ebp + 0xc]
call esi
mov eax, 0x3e8
pop ebx
pop edi
xor edx, edx
pop esi
leave
ret
Function at 0x410440
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push esi
xor esi, esi
xor ebp, ebp
push edi
test ebx, ebx
jb 0x4104b6
ja 0x410459
cmp esi, dword [esp + 0x20]
jae 0x4104ba
mov ecx, dword [esp + 0x20]
sub ecx, esi
mov eax, ebx
sbb eax, ebp
test eax, eax
ja 0x410475
jb 0x410471
cmp ecx, 0x10000
jae 0x410475
mov edi, ecx
jmp 0x41047a
mov edi, 0x10000
mov ecx, dword [esp + 0x1c]
push 0
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x20]
push edi
lea edx, [esi + ecx]
push edx
push eax
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4104b6
mov eax, dword [esp + 0x10]
cmp eax, edi
jne 0x4104b6
add esi, eax
adc ebp, 0
cmp ebp, ebx
jb 0x410459
ja 0x4104b6
cmp esi, dword [esp + 0x20]
jb 0x410459
cmp esi, dword [esp + 0x20]
jne 0x4104d7
cmp ebp, ebx
jne 0x4104d7
or esi, ebp
je 0x4104cf
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret

Function at 0x410bca
Capabilities:
Delete file

Disassembly:
push 8
mov eax, 0x437eb3
call fcn.00425651
lea eax, [ebp - 0x10]
push eax
call fcn.004056bc
pop ecx
and dword [ebp - 4], 0
push dword [ebp - 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
call edi
lea eax, [ebp - 0x14]
push str._shm
push eax
lea esi, [ebp - 0x10]
call fcn.0041d775
pop ecx
pop ecx
mov byte [ebp - 4], 1
push dword [eax]
call edi
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0040f6db
lea eax, [ebp - 0x14]
push str._wal
push eax
call fcn.0041d775
pop ecx
pop ecx
mov byte [ebp - 4], 2
push dword [eax]
call edi
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0040f6db
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.0040f6db
call fcn.00425729
ret
Function at 0x4119a8
Capabilities:
Delete registry value
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x437fe6
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x44dd60]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor ebx, ebx
xor esi, esi
inc ebx
mov dword [esp + 0x10], esi
cmp dword [ebp + 0xc], esi
je 0x4119e7
mov ecx, dword [ebp + 0xc]
jmp 0x4119fc
lea eax, [esp + 0x18]
push eax
call fcn.00401b8b
pop ecx
mov dword [esp + 0x30], esi
mov ecx, dword [eax]
mov dword [esp + 0x10], ebx
lea eax, [esp + 0x14]
push eax
call fcn.0041310d
mov dword [esp + 0x30], 2
test byte [esp + 0x10], bl
je 0x411a22
and dword [esp + 0x10], 0xfffffffe
lea ecx, [esp + 0x18]
call fcn.0040f6db
cmp byte [ebp + 8], 0
je 0x411acd
push dword [esp + 0x14]
push dword [ebp + 8]
call fcn.00404fab
pop ecx
pop ecx
test al, al
jne 0x411ad8
lea eax, [esp + 0x20]
push eax
mov ecx, 0x441fa4
call fcn.0041310d
mov byte [esp + 0x30], 3
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x20]
push ecx
mov esi, eax
call fcn.00415d31
mov byte [esp + 0x38], 4
lea ecx, [esp + 0x20]
push str.___minimize
push ecx
mov esi, eax
call fcn.0041d775
add esp, 0x10
mov byte [esp + 0x30], 6
lea ecx, [esp + 0x1c]
call fcn.0040f6db
mov byte [esp + 0x30], 7
lea ecx, [esp + 0x20]
call fcn.0040f6db
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx - 0xc]
add eax, eax
push eax
push ecx
push ebx
push 0x441bb4
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov byte [esp + 0x30], 2
lea ecx, [esp + 0x18]
call fcn.0040f6db
jmp 0x411afa
push dword [ebp + 0xc]
push esi
call fcn.00404fab
pop ecx
pop ecx
mov ebx, dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
mov edi, 0x441bb4
push edi
mov esi, str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push esi
push SysReAllocString
call ebx
push edi
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
or dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.0040f6db
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret