joyce8/EMBER2024-capa huggingface dataset:
Function at 0x994cdc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x994d03
call fcn.00937288
mov dword [eax], esi
call fcn.00937275
push 0x16
pop esi
mov dword [eax], esi
call fcn.00937eca
mov eax, esi
jmp 0x994d58
test dword [ebp + 0xc], 0xfffffff9
jne 0x994ce9
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x994d30
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0093729b
pop ecx
call fcn.00937275
mov eax, dword [eax]
jmp 0x994d58
test al, 0x10
jne 0x994d56
test al, 1
je 0x994d56
test byte [ebp + 0xc], 2
je 0x994d56
call fcn.00937288
mov dword [eax], 5
call fcn.00937275
mov dword [eax], 0xd
jmp 0x994d27
xor eax, eax
pop esi
pop ebp
ret

Function at 0x4616a0
Capabilities:
Encode data using xor

Disassembly:
shr dword [ecx - 0xef2de80], 0x7e
dec edi
sbb bh, bl
push eax
lea eax, [ecx + 0x6b]
retf

Function at 0x4ab2c8
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
jns 0x4ab33c
call [ebx + 0x2b00336e]
in al, dx
lahf

Function at 0x4ab2f8
Capabilities:
Encode data using xor

Disassembly:
test byte [edi], ch
mov bl, 0xc7
push cs
inc edi
add dh, cl
enter 0xffffffffffffcacb, 0x2f
jp 0x4ab2da
cld
dec eax
cmp dword [ebx + 0xc], edx
nop
test eax, 0xde22c9a8
mov dl, 0x9a
ret 0x644

Function at 0x4c5f51
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4cd390
cmp edx, dword [eax]
je 0x4c5f73
add eax, 8
inc ecx
cmp eax, 0x4cd420
jl 0x4c5f64
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4cd390]
jne 0x4c60a1
mov eax, dword [0x4d2dc0]
cmp eax, 1
je 0x4c607b
test eax, eax
jne 0x4c5fa4
cmp dword [0x4cd2bc], 1
je 0x4c607b
cmp edx, 0xfc
je 0x4c60a1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4c5fdb
lea eax, [ebp - 0x1a4]
push 0x4cb6b8
push eax
call fcn.004c6930
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004c6dc0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4c601e
lea eax, [ebp - 0x1a4]
push eax
call fcn.004c6dc0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4cb6b4
push edi
call fcn.004c8c90
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4cb698
push eax
call fcn.004c6930
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004c6940
lea eax, [ebp - 0xa0]
push 0x4cb694
push eax
call fcn.004c6940
push dword [esi + 0x4cd394]
lea eax, [ebp - 0xa0]
push eax
call fcn.004c6940
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4cb66c
push eax
call fcn.004c8c04
add esp, 0x2c
pop edi
jmp 0x4c60a1
lea eax, [ebp + 8]
lea esi, [esi + 0x4cd394]
push 0
push eax
push dword [esi]
call fcn.004c6dc0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x401b20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx]
dec eax
cmp eax, 3
ja case.default.0x401b2b
jmp dword [eax*4 + 0x401b54]
pop ebp
jmp fcn.00401570
pop ebp
jmp fcn.004016a0
pop ebp
jmp fcn.00401870
pop ebp
jmp fcn.004019b0
mov eax, 0x1001
pop ebp
ret

Function at 0x401d40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx]
dec eax
push edi
mov edi, edx
cmp eax, 3
ja case.default.0x401d4e
jmp dword [eax*4 + 0x401dc4]
push dword [ebp + 8]
call fcn.00401b70
add esp, 4
pop edi
pop ebp
ret
push dword [ebp + 8]
call fcn.00401c10
add esp, 4
pop edi
pop ebp
ret
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ecx + 0x38]
push esi
lea esi, [ecx + 0x18]
mov dword [eax], ebx
add ecx, 0x3c
mov edx, esi
call fcn.00402720
test ebx, ebx
je 0x401da2
mov ecx, ebx
mov edi, edi
mov al, byte [esi + 0x10]
lea esi, [esi + 1]
xor al, byte [esi - 1]
lea edi, [edi + 1]
mov byte [edi - 1], al
dec ecx
jne 0x401d90
mov eax, dword [ebp + 8]
pop esi
mov dword [eax], ebx
xor eax, eax
pop ebx
pop edi
pop ebp
ret
push dword [ebp + 8]
call fcn.00401ce0
add esp, 4
pop edi
pop ebp
ret
mov eax, 0x1001
pop edi
pop ebp
ret
Function at 0x405930
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x419658
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x25c], edx
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
push 0x228
mov edi, eax
mov dword [ebp - 0x258], 0
lea eax, [ebp - 0x254]
push 0
push eax
call fcn.00411610
add esp, 0xc
mov dword [ebp - 0x14], 7
xor eax, eax
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x28]
mov word [ebp - 0x28], ax
push eax
push 0x41fe3c
call fcn.004051c0
mov dword [ebp - 4], 0
cmp edi, 0xffffffff
je 0x405af5
lea eax, [ebp - 0x258]
mov dword [ebp - 0x258], 0x22c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x405af2
jmp 0x4059f0
push dword [ebp - 0x250]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp word [ebp - 0x234], 0
mov esi, eax
jne 0x405a13
xor ecx, ecx
jmp 0x405a2f
lea ecx, [ebp - 0x234]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405a20
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x28]
call fcn.004051c0
test esi, esi
je 0x405a95
push 0x103
lea eax, [ebp - 0x234]
push eax
push 0
push esi
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
test eax, eax
je 0x405a92
cmp word [ebp - 0x234], 0
jne 0x405a6a
xor ecx, ecx
jmp 0x405a82
lea ecx, [ebp - 0x234]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405a73
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x28]
call fcn.004051c0
push esi
call ebx
push dword [ebp - 0x25c]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push dword [ebp - 0x240]
cmovae eax, dword [ebp - 0x28]
push dword [ebp - 0x250]
push eax
call fcn.00405800
test al, al
je 0x405af2
push 0x22c
lea eax, [ebp - 0x258]
push 0
push eax
call fcn.00411610
add esp, 0xc
mov dword [ebp - 0x258], 0x22c
lea eax, [ebp - 0x258]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x4059f0
push edi
call ebx
cmp dword [ebp - 0x14], 8
jb 0x405b06
push dword [ebp - 0x28]
call fcn.004098d1
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00408e8c
mov esp, ebp
pop ebp
ret
Function at 0x405b30
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push ecx
push 8
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
push 0x424
mov esi, eax
mov dword [ebp - 0x434], 0
lea eax, [ebp - 0x430]
push 0
push eax
call fcn.00411610
add esp, 0xc
cmp esi, 0xffffffff
je 0x405bf4
lea eax, [ebp - 0x434]
mov dword [ebp - 0x434], 0x428
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
je 0x405bed
mov ebx, dword [sym.imp.KERNEL32.dll_Module32NextW]
jmp 0x405ba0
mov edx, dword [edi]
mov ecx, dword [ebp - 0x420]
cmp ecx, edx
ja 0x405bb8
mov eax, dword [ebp - 0x41c]
add eax, ecx
cmp eax, edx
ja 0x405be8
push 0x428
lea eax, [ebp - 0x434]
push 0
push eax
call fcn.00411610
add esp, 0xc
mov dword [ebp - 0x434], 0x428
lea eax, [ebp - 0x434]
push eax
push esi
call ebx
test eax, eax
jne 0x405ba0
jmp 0x405bed
mov eax, dword [edi + 4]
mov dword [eax], ecx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408e8c
mov esp, ebp
pop ebp
ret

Function at 0x405d20
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x419696
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
lea esi, [edi + 8]
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
mov dword [ebp - 4], eax
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], eax
mov dword [edi + 0x28], eax
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 1
test eax, eax
jne 0x405d80
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push edi
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [edi + 4], eax
test eax, eax
je 0x405db5
mov eax, dword [eax]
test eax, eax
je 0x405db5
push 0x41fe9c
push eax
call fcn.0040a031
add esp, 8
test eax, eax
je 0x405db5
mov eax, dword [edi + 4]
mov ecx, esi
push dword [eax]
call fcn.00405020
jmp 0x405e05
lea eax, [ebp - 0x2c]
push 0
push eax
call fcn.00405c10
mov ebx, eax
add esp, 8
cmp esi, ebx
je 0x405df4
cmp dword [esi + 0x14], 8
jb 0x405dd9
push dword [esi]
call fcn.004098d1
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov ecx, esi
push ebx
mov word [esi], ax
call fcn.00405070
cmp dword [ebp - 0x18], 8
jb 0x405e05
push dword [ebp - 0x2c]
call fcn.004098d1
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x406640
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4196d3
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor eax, eax
mov dword [ebp - 0x70], 7
mov dword [ebp - 0x74], 0
mov word [ebp - 0x84], ax
push 0x208
mov dword [ebp - 4], eax
call fcn.00409624
mov esi, eax
add esp, 4
test esi, esi
je 0x4066dc
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
cmp word [esi], 0
jne 0x4066b2
xor ecx, ecx
jmp 0x4066c6
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4066b7
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x84]
call fcn.004051c0
push esi
call fcn.004098aa
add esp, 4
push 0xc
push 0x41feac
lea ecx, [ebp - 0x84]
call fcn.00405650
test edi, edi
je 0x406832
xor eax, eax
xorps xmm0, xmm0
mov word [ebp - 0x54], ax
mov dword [ebp - 0x4a], eax
mov word [ebp - 0x46], ax
lea eax, [ebp - 0x54]
push eax
movq qword [ebp - 0x52], xmm0
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
cmp dword [ebp - 0x70], 8
lea eax, [ebp - 0x84]
push 0x41fe58
cmovae eax, dword [ebp - 0x84]
push eax
lea eax, [ebp - 0x88]
mov dword [ebp - 0x88], 0
push eax
call fcn.00409bc7
add esp, 0xc
test eax, eax
jne 0x406832
mov eax, dword [ebp - 0x88]
test eax, eax
je 0x406832
push 2
push 0
push eax
call fcn.0040a949
push 0x31
lea eax, [ebp - 0x43]
mov byte [ebp - 0x44], 0
push 0
push eax
call fcn.00411610
movzx eax, word [ebp - 0x48]
push eax
movzx eax, word [ebp - 0x4a]
push eax
movzx eax, word [ebp - 0x4c]
push eax
movzx eax, word [ebp - 0x4e]
push eax
movzx eax, word [ebp - 0x52]
push eax
movzx eax, word [ebp - 0x54]
push eax
lea eax, [ebp - 0x44]
push str._d__0.2d__0.2d__0.2d:_0.2d:_0.2d
push eax
call fcn.00408b10
add esp, 0x38
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x6c]
push eax
call fcn.00404760
mov byte [ebp - 4], 1
cmp byte [edi], 0
jne 0x4067be
xor ecx, ecx
jmp 0x4067cc
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4067c3
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x6c]
call fcn.00404830
push 2
push 0x41fe60
lea ecx, [ebp - 0x6c]
call fcn.00404830
push dword [ebp - 0x88]
cmp dword [ebp - 0x58], 0x10
lea eax, [ebp - 0x6c]
push dword [ebp - 0x5c]
cmovae eax, dword [ebp - 0x6c]
push 1
push eax
call fcn.0040a472
push dword [ebp - 0x88]
call fcn.0040aa94
add esp, 0x14
cmp dword [ebp - 0x58], 0x10
jb 0x406820
push dword [ebp - 0x6c]
call fcn.004098d1
add esp, 4
mov dword [ebp - 0x58], 0xf
mov dword [ebp - 0x5c], 0
mov byte [ebp - 0x6c], 0
cmp dword [ebp - 0x70], 8
jb 0x406846
push dword [ebp - 0x84]
call fcn.004098d1
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00408e8c
mov esp, ebp
pop ebp
ret
Function at 0x406ab0
Capabilities:
Create service
Modify service
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x419748
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp word [edx], ax
jne 0x406afa
xor ecx, ecx
jmp 0x406b0f
lea esi, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406b00
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.004051c0
push 0xf003f
push 0
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
je 0x406ba9
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
push 0
cmovae ecx, dword [ebp - 0x28]
push 0
push 0
push 0
push 0
push ecx
push 0
push 3
push 1
push 0xf01ff
push 0x41ff38
push 0x41ff38
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x406c04
call edi
cmp eax, 0x3e5
je 0x406b87
cmp eax, 0x431
jne 0x406ba0
push 0xf01ff
push 0x41ff38
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x406bd6
call edi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call esi
cmp dword [ebp - 0x14], 8
jb 0x406bba
push dword [ebp - 0x28]
call fcn.004098d1
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00408e8c
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0x41ff38
cmovae eax, dword [ebp - 0x28]
push 0
push 0
push 0
push 0
push 0
push eax
push 0
push 3
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
jne 0x406c04
call edi
call fcn.00406870
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x406c1a
call edi
test esi, esi
je 0x406ba0
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
jmp 0x406ba6
Function at 0x406c30
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x406cbe
push esi
push 0xf01ff
push 0x41ff38
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x406c84
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408e8c
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x406cbd
cmp dword [ebp - 0x1c], 1
je 0x406cbd
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x406cbd
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00408e8c
mov esp, ebp
pop ebp
ret

Function at 0x406d90
Capabilities:
Encode data using xor
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x419778
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
push 0
push 0x6950
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00404d30
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 0x6950
cmovae eax, dword [ebp - 0x28]
push 0x484100
push eax
call fcn.0040ee50
add esp, 0xc
mov dword [ebp - 0x18], 0x6950
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
xor edx, edx
mov byte [eax + 0x6950], 0
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x406e38
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
lea ecx, [edx + 0x70]
cmovae eax, dword [ebp - 0x28]
xor byte [eax + edx], cl
inc edx
cmp edx, esi
jb 0x406e22
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push 0
cmovae eax, dword [ebp + 8]
push 0x80
push 2
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x406e99
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x2c]
push 0
push eax
push dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x2c], 0
cmovae ecx, dword [ebp - 0x28]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x18]
jne 0x406e99
mov bl, 1
jmp 0x406e9b
xor bl, bl
cmp dword [ebp - 0x14], 0x10
jb 0x406eac
push dword [ebp - 0x28]
call fcn.004098d1
add esp, 4
cmp dword [ebp + 0x1c], 8
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
jb 0x406ecf
push dword [ebp + 8]
call fcn.004098d1
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00408e8c
mov esp, ebp
pop ebp
ret
Function at 0x406ef0
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4197c2
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov dword [ebp - 4], 0
xor eax, eax
push 0x206
mov dword [ebp - 0x220], 0
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
mov dword [ebp - 0x224], edi
call fcn.00411610
add esp, 0xc
mov dword [edi + 0x14], 7
xor eax, eax
mov dword [edi + 0x10], 0
mov ecx, edi
mov word [edi], ax
push eax
push 0x41fe3c
call fcn.004051c0
mov dword [ebp - 4], 0
push 0
mov dword [ebp - 0x220], 1
mov dword [ebp - 0x21c], 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x21c]
push eax
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
js 0x406ffe
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x21c]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x406ffe
cmp word [ebp - 0x218], 0
jne 0x406fd2
xor ecx, ecx
jmp 0x406fef
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
jmp 0x406fe0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406fe0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
mov ecx, edi
push eax
call fcn.004051c0
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x40700f
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00408e8c
mov esp, ebp
pop ebp
ret

Function at 0x407040
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4070c8
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 1
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push 0
push 0
push 0x10
lea eax, [ebp - 0x14]
mov dword [ebp - 8], 2
push eax
push 0
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x18]
neg eax
sbb esi, esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi + 1]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408e8c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.00408e8c
mov esp, ebp
pop ebp
ret
Function at 0x407480
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
sub esp, 0x18
xor eax, eax
mov ecx, esp
push 0xffffffffffffffff
push eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push 0x48aa50
mov word [ecx], ax
call fcn.004050e0
call fcn.00406d90
add esp, 0x18
mov esi, 0x48aa50
cmp dword [0x48aa64], 8
mov eax, esi
cmovae eax, dword [0x48aa50]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4074e8
cmp dword [0x48aa64], 8
cmovae esi, dword [0x48aa50]
mov ecx, esi
call fcn.00406ab0
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4079d0
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push esi
call fcn.00406c30
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x48aa64], 8
mov esi, 0x48aa50
mov eax, esi
cmovae eax, dword [0x48aa50]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x407a17
cmp dword [0x48aa64], 8
cmovae esi, dword [0x48aa50]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop esi
ret