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

Disassembly:
mov eax, 0x4113f0
call fcn.00408d00
sub esp, 0x208
push esi
push edi
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x214]
push eax
mov esi, ecx
call dword [sym.imp.MSVCRT.dll_wcsncpy]
add esp, 0xc
push dword [ebp + 0xc]
lea eax, [ebp - 0x214]
xor edi, edi
push eax
mov word [ebp - 0xe], di
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp dword [ebp + 0x10], edi
jne 0x40b236
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40b2dd
mov dword [ebp + 8], edi
mov dword [ebp - 4], edi
push 0xf003f
push 0x403380
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp + 8]
call fcn.004082e0
test eax, eax
jne 0x40b22a
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp + 8]
call fcn.0040a9d8
test eax, eax
jne 0x40b22a
cmp dword [ebp + 0xc], 1
jbe 0x40b22a
lea eax, [ebp - 0x214]
push eax
push 0x4032c8
push 0x4032a8
push dword [esi]
call fcn.00408f88
add esp, 0x10
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004082c9
jmp 0x40b2dd
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004082c9
mov dword [ebp + 8], edi
mov dword [ebp - 4], 1
push 0x403290
lea ecx, [ebp + 8]
call fcn.00409fa5
test eax, eax
je 0x40b2b6
push 0x403284
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x40b2a8
lea ecx, [ebp - 0x214]
push ecx
push dword [ebp + 0x10]
call eax
cmp eax, edi
jl 0x40b2a0
cmp dword [ebp + 0x10], edi
mov eax, 0x40326c
jne 0x40b282
mov eax, 0x403250
lea ecx, [ebp - 0x214]
push ecx
push eax
push 0x403244
push 0x4032a8
push dword [esi]
call fcn.00408f88
add esp, 0x14
jmp 0x40b2d1
push eax
push 0x4031f0
jmp 0x40b2c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x403158
jmp 0x40b2c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4030d8
push 0x4032a8
push dword [esi]
call fcn.00408f6d
add esp, 0x10
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0040cbed
mov ecx, dword [ebp - 0xc]
pop edi
xor eax, eax
pop esi
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x40b2ef
Capabilities:
Delete registry value

Disassembly:
mov eax, 0x411404
call fcn.00408d00
sub esp, 0x210
push ebx
push esi
xor ebx, ebx
push edi
mov esi, ecx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
or dword [ebp - 0x14], 0xffffffff
push 0x104
push dword [ebp + 0x10]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.MSVCRT.dll_wcsncpy]
add esp, 0xc
push dword [ebp + 0x14]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0xf003f
push 0x403380
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x10]
call fcn.004082e0
test eax, eax
lea eax, [ebp - 0x21c]
mov edi, 0x403574
push eax
jne 0x40b3eb
lea eax, [ebp + 0x10]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040a9d8
test eax, eax
jne 0x40b3d5
cmp dword [ebp + 0x10], 1
ja 0x40b39a
lea eax, [ebp - 0x21c]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea eax, [ebp - 0x21c]
push eax
mov dword [ebp - 0x14], ebx
push 0x403534
jmp 0x40b3e1
dec dword [ebp + 0x10]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x21c]
push eax
push dword [ebp + 0x10]
lea ecx, [ebp - 0x10]
call fcn.0040aa04
test eax, eax
je 0x40b3fb
lea eax, [ebp - 0x21c]
push eax
push dword [ebp + 0x10]
push 0x4034e8
push edi
push dword [esi]
call fcn.00408f6d
add esp, 0x14
jmp 0x40b3fb
lea eax, [ebp - 0x21c]
push eax
push 0x4034a0
push edi
push dword [esi]
call fcn.00408f88
jmp 0x40b3f8
push 0x403450
push edi
push dword [esi]
call fcn.00408f6d
add esp, 0x10
cmp dword [ebp + 0x18], ebx
je 0x40b43d
cmp dword [ebp - 0x14], ebx
jne 0x40b43d
push dword [esi]
lea eax, [ebp - 0x21c]
push eax
call fcn.0040c073
cmp eax, ebx
lea eax, [ebp - 0x21c]
push eax
je 0x40b42d
push 0x403418
push edi
push dword [esi]
call fcn.00408f88
jmp 0x40b43a
push 0x4033ec
push edi
push dword [esi]
call fcn.00408f6d
add esp, 0x10
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004082c9
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x18
Function at 0x40b90a
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
push ebx
push esi
push edi
mov esi, 0x104
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.MSVCRT.dll_wcsncpy]
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
mov edi, dword [sym.imp.MSVCRT.dll_wcsncat]
mov ecx, esi
sub ecx, eax
push ecx
lea eax, [ebp - 0x220]
push 0x403888
push eax
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExW]
and word [ebp - 0x1a], 0
and dword [ebp - 4], 0
add esp, 0x1c
push 1
lea eax, [ebp - 0x220]
push eax
push dword [ebp + 8]
call ebx
test eax, eax
jne 0x40b9fb
cmp dword [ebp - 4], 5
jge 0x40b9f7
lea eax, [ebp - 0x220]
push eax
push dword [ebp + 8]
push 0x403858
push 0x403838
push dword [ebp + 0xc]
call fcn.00408f6d
inc dword [ebp - 4]
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.MSVCRT.dll_wcsncpy]
push esi
lea eax, [ebp - 0x220]
push 0x403888
push eax
call edi
push 0xa
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 4]
call dword [sym.imp.MSVCRT.dll__itow]
push esi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x220]
push eax
call edi
add esp, 0x44
push 1
lea eax, [ebp - 0x220]
push eax
push dword [ebp + 8]
call ebx
test eax, eax
je 0x40b97a
cmp dword [ebp - 4], 5
jl 0x40b9fb
xor eax, eax
jmp 0x40ba2b
push 4
push 0
lea eax, [ebp - 0x220]
push eax
call ebx
test eax, eax
jne 0x40ba28
lea eax, [ebp - 0x220]
push eax
push 0x403780
push 0x403838
push dword [ebp + 0xc]
call fcn.00408f88
add esp, 0x10
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40ba32
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x464
push ebx
push esi
push edi
push dword [ebp + 0x10]
lea eax, [ebp - 0x464]
push dword [ebp + 0xc]
xor ebx, ebx
push dword [ebp + 8]
mov dword [ebp - 0xc], ebx
push 0x4039b8
push 0x208
push eax
mov dword [ebp - 0x10], ebx
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x18
push 0x11
pop ecx
xor eax, eax
lea edi, [ebp - 0x54]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x464]
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push ebx
mov word [ebp - 0x56], bx
mov dword [ebp - 0x54], 0x44
mov dword [ebp - 0x28], 1
mov word [ebp - 0x24], bx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40bb40
xor esi, esi
cmp dword [ebp + 0x14], ebx
je 0x40bb24
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp + 0x10]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x40bb09
mov eax, dword [ebp + 0x10]
cmp eax, ebx
mov esi, eax
jle 0x40bae9
and esi, 0xffff
or esi, 0x80070000
cmp eax, ebx
je 0x40bb24
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0x403970
push 0x403954
push dword [ebp + 0x18]
call fcn.00408f6d
add esp, 0x18
jmp 0x40bb24
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0x403908
push 0x403954
push dword [ebp + 0x18]
call fcn.00408f6d
add esp, 0x14
cmp dword [ebp - 0xc], ebx
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x40bb34
push dword [ebp - 0xc]
call edi
cmp dword [ebp - 0x10], ebx
je 0x40bb7e
push dword [ebp - 0x10]
call edi
jmp 0x40bb7e
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x40bb52
call esi
mov esi, eax
jmp 0x40bb62
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0x4038b0
push 0x403954
push dword [ebp + 0x18]
call fcn.00408f6d
add esp, 0x18
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x14
Function at 0x40bc60
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x664
mov eax, dword [ebp + 8]
test eax, eax
je 0x40bd84
cmp word [eax], 0
je 0x40bd84
push ebx
push esi
mov esi, dword [sym.imp.MSVCRT.dll_wcsncpy]
push edi
mov ebx, 0x104
push ebx
push eax
lea eax, [ebp - 0x664]
push eax
call esi
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
and word [ebp - 0x45e], 0
add esp, 0xc
push 0x4039dc
lea eax, [ebp - 0x664]
push eax
call edi
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x664]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x40bd6f
push 0x4039d8
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x40bd57
push 0x4039d0
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x40bd57
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0x45c]
push eax
call esi
and word [ebp - 0x256], 0
add esp, 0xc
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x45c]
push eax
call edi
test byte [ebp - 0x254], 0x10
je 0x40bd44
push dword [ebp + 0xc]
lea eax, [ebp - 0x45c]
push eax
call fcn.0040bc60
jmp 0x40bd57
cmp dword [ebp + 0xc], 0
je 0x40bd57
lea eax, [ebp - 0x45c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40bcd6
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x40be4a
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40be5d
xor eax, eax
jmp 0x40be79
mov ecx, dword [esp + 8]
test ecx, eax
je 0x40be76
not ecx
and ecx, eax
push ecx
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x40be79
xor eax, eax
inc eax
ret 8

Function at 0x40c073
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40c088
xor eax, eax
inc eax
jmp 0x40c0b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x40c09e
cmp eax, 3
je 0x40c09e
pop ebp
jmp fcn.0040b90a
push dword [ebp + 8]
push 0x403a08
push 0x403838
push dword [ebp + 0xc]
call fcn.00408f6d
add esp, 0x10
xor eax, eax
pop ebp
ret 8

Function at 0x40c0bc
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x40c0f8
mov edx, dword [esi + 0xc]
mov ecx, dword [esi]
shl edx, 1
push edx
push eax
push 7
push 0
push 0x403af0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x40c0fc
push 0x403a98
push 0x403a74
push dword [esi + 8]
call fcn.00408f6d
add esp, 0xc
xor eax, eax
pop esi
ret
xor eax, eax
inc eax
pop esi
ret
Function at 0x40c13d
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x41142c
call fcn.00408d00
sub esp, 0xc
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x18], esi
mov dword [esi], edi
mov dword [ebp - 4], edi
mov eax, dword [ebp + 8]
push 0xf003f
push 0x403b28
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esi + 4], edi
mov dword [esi + 8], eax
mov dword [esi + 0xc], edi
call fcn.004082e0
test eax, eax
jne 0x40c1eb
mov eax, dword [esi]
lea ecx, [ebp - 0x10]
push ecx
push edi
lea ecx, [ebp - 0x14]
push ecx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, 0x403af0
push ebx
push eax
call edi
test eax, eax
jne 0x40c1eb
cmp dword [ebp - 0x10], eax
jbe 0x40c1eb
cmp dword [ebp - 0x14], 7
jne 0x40c1eb
push dword [ebp - 0x10]
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp + 8], eax
push dword [ebp + 8]
mov eax, dword [esi]
lea ecx, [ebp - 0x14]
push ecx
push 0
push ebx
push eax
call edi
test eax, eax
jne 0x40c1dc
mov eax, dword [ebp + 8]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x10]
shr eax, 1
and dword [ebp + 8], 0
mov dword [esi + 0xc], eax
cmp dword [ebp + 8], 0
je 0x40c1eb
push dword [ebp + 8]
call fcn.00408d06
pop ecx
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x40cf69
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4010
call fcn.00408e30
push ebx
push esi
push edi
lea eax, [ebp - 0x4010]
mov esi, ecx
push eax
mov dword [ebp - 0x10], esi
call fcn.0040ce77
test eax, eax
jl 0x40d0d2
lea eax, [ebp - 2]
push eax
lea eax, [ebp - 0x4010]
push eax
call fcn.0040c5e6
test eax, eax
jne 0x40cfb0
mov eax, 0x80020009
jmp 0x40d0d2
mov ecx, esi
call fcn.0040c6fa
lea eax, [ebp - 0x2010]
push eax
mov ecx, esi
call fcn.0040ce77
test eax, eax
jl 0x40d0d2
movzx eax, word [ebp - 2]
sub eax, 8
je 0x40d0af
sub eax, 9
je 0x40d00f
dec eax
dec eax
jne 0x40d0c1
lea eax, [ebp - 0xc]
push eax
push 0
push 0
lea eax, [ebp - 0x2010]
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push dword [ebp - 0xc]
call fcn.0040aa04
jmp 0x40d0c1
lea eax, [ebp - 0x2010]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test al, 1
mov dword [ebp - 8], eax
jne 0x40d054
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
mov eax, ebx
add eax, 3
and eax, 0xfffffffc
call fcn.00408e30
mov ecx, ebx
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, esp
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
xor edi, edi
cmp esp, edi
mov dword [ebp - 4], esp
jne 0x40d05b
mov eax, 0x80004005
jmp 0x40d0d2
cmp dword [ebp - 8], edi
jle 0x40d096
mov ecx, dword [ebp - 4]
mov eax, edi
cdq
sub eax, edx
sar eax, 1
lea esi, [eax + ecx]
xor eax, eax
mov ax, word [ebp + edi*2 - 0x2010]
push eax
call fcn.0040ce40
mov ecx, edi
and ecx, 1
shl ecx, 2
mov edx, ecx
push 4
pop ecx
sub ecx, edx
shl al, cl
or byte [esi], al
inc edi
cmp edi, dword [ebp - 8]
jl 0x40d060
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push ebx
push dword [ebp - 4]
push 3
push 0
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x40d0c1
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x2010]
push eax
call fcn.00408315
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x10]
call fcn.0040ce77
test eax, eax
jl 0x40d0d2
xor eax, eax
lea esp, [ebp - 0x401c]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x40d375
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov eax, 0x4114d0
call fcn.00408d00
sub esp, 0x210
push ebx
push esi
xor esi, esi
mov ebx, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], esi
push 0x2001f
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
push dword [ebx]
call fcn.004082e0
cmp eax, esi
jne 0x40d3f7
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x40d3c0
lea eax, [ebp - 0x21c]
push eax
call fcn.0040d375
cmp eax, esi
jne 0x40d3f6
lea eax, [ebp - 0x1c]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x21c]
push eax
push esi
push dword [ebp - 0x10]
mov dword [ebp - 0x14], 0x100
call edi
test eax, eax
lea ecx, [ebp - 0x10]
je 0x40d3b0
call fcn.004082c9
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
mov esi, eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004082c9
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x40e520
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4115c4
call fcn.00408d00
sub esp, 0x220
push ebx
push esi
xor ebx, ebx
push edi
mov edi, ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
push 0x20019
push 0x4044a8
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x1c]
call fcn.004082e0
test eax, eax
mov esi, 0x104
jne 0x40e580
lea eax, [ebp - 0x14]
push eax
push 0x404488
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x14], 0x208
call fcn.0040c03b
test eax, eax
je 0x40e5b8
push esi
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x22c]
push 0x5c
push eax
call dword [sym.imp.MSVCRT.dll_wcschr]
cmp eax, ebx
pop ecx
pop ecx
je 0x40e5b8
mov word [eax], bx
push 0x404d94
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ebx, [edi + 0xdb4]
cmp word [ebx], 0
jne 0x40e5e2
push esi
lea eax, [ebp - 0x22c]
push eax
push ebx
call dword [sym.imp.MSVCRT.dll_wcsncpy]
add esp, 0xc
push 0x404d74
push ebx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
and dword [ebp - 0x14], 0
push 0x404d64
lea ecx, [ebp - 0x10]
call fcn.0040979d
mov byte [ebp - 4], 1
xor eax, eax
cmp dword [ebp - 0x10], eax
je 0x40e671
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
lea ecx, [ebp - 0x18]
push ecx
push eax
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
call ebx
push dword [ebp - 0x18]
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
test eax, eax
pop ecx
mov dword [ebp - 0x20], eax
je 0x40e671
lea ecx, [ebp - 0x24]
push ecx
push dword [ebp - 0x18]
push eax
push dword [ebp - 0x10]
call ebx
test eax, eax
je 0x40e662
mov eax, dword [ebp - 0x20]
push esi
push dword [eax + 0xc]
lea ebx, [edi + 0x11c4]
push ebx
call dword [sym.imp.MSVCRT.dll_wcsncpy]
push 0x5c
push ebx
call dword [sym.imp.MSVCRT.dll_wcsrchr]
add esp, 0x14
test eax, eax
je 0x40e662
and word [eax], 0
mov dword [ebp - 0x14], 1
push dword [ebp - 0x20]
call fcn.00408d06
cmp dword [ebp - 0x14], 0
pop ecx
jne 0x40e698
mov eax, dword [0x414250]
test eax, eax
push esi
lea ebx, [edi + 0x11c4]
push ebx
je 0x40e686
call eax
jmp 0x40e68c
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0x404d54
push ebx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push esi
add edi, 0xfbc
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0040970e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004082c9
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40e6cd
Capabilities:
Delete registry value

Disassembly:
mov eax, 0x4114d0
call fcn.00408d00
push ecx
push esi
xor esi, esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], esi
cmp dword [ebp + 0xc], esi
lea ecx, [ebp - 0x10]
je 0x40e717
push esi
push esi
push 0xf003f
push esi
push esi
push 0x404ec0
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0040c98d
cmp eax, esi
jne 0x40e73b
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
push 1
call fcn.0040aa04
jmp 0x40e737
push 0xf003f
push 0x404ec0
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004082e0
push dword [ebp + 8]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, esi
je 0x40e74e
push 0x404e20
push 0x404dd0
push edi
call fcn.00408f6d
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004082c9
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 8

Function at 0x40ee4b
Capabilities:
Delete registry value

Disassembly:
mov eax, 0x41161a
call fcn.00408d00
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x14], esi
call fcn.00409660
xor edi, edi
mov dword [ebp - 4], edi
xor ebx, ebx
inc ebx
push 0xa
lea ecx, [esi + 0x13d0]
mov dword [esi + 0xda8], ebx
mov dword [esi + 0xdac], edi
mov dword [esi + 0xdb0], edi
mov dword [esi + 0x13cc], edi
call fcn.0040ebeb
mov byte [ebp - 4], bl
or dword [esi + 0x1400], 0xffffffff
push 0x104
lea eax, [esi + 0xba0]
push 0x405660
push eax
mov dword [esi], 0x404bdc
mov dword [esi + 0x20c], 0x404bd8
mov word [esi + 0xdb4], di
mov word [esi + 0xfbc], di
call dword [sym.imp.MSVCRT.dll_wcsncpy]
add esp, 0xc
mov ecx, esi
call fcn.0040e520
mov ecx, esi
call fcn.0040e3a3
mov dword [ebp - 0x10], edi
mov byte [ebp - 4], 2
push 0xf003f
push 0x404c60
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x10]
call fcn.004082e0
test eax, eax
jne 0x40ef2a
mov edi, 0x404fd8
push edi
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040a9d8
test eax, eax
jne 0x40ef2a
push edi
push dword [ebp - 0x10]
mov dword [esi + 0xdb0], ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x10]
call fcn.004082c9
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40f14f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 0xc], 0
push ebx
push esi
push edi
push 2
push 0
push dword [ebp + 8]
mov dword [ebp - 8], ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
test ebx, ebx
mov dword [ebp - 4], ebx
jne 0x40f19f
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x40f18a
call esi
mov esi, eax
jmp 0x40f267
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x40f267
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x40f1c0
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x40f1e5
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x40f1d3
call esi
jmp 0x40f25c
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x40f25e
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
cmp byte [ebx + esi], 0
mov edi, esi
je 0x40f224
lea edi, [ebx + 1]
mov eax, edi
add eax, 3
and eax, 0xfffffffc
call fcn.00408e30
mov ecx, edi
mov edx, ecx
mov eax, esp
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
and byte [eax + ebx], 0
mov dword [ebp + 8], eax
mov edi, esp
test edi, edi
jne 0x40f22c
xor eax, eax
jmp 0x40f250
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and eax, 0xfffffffc
call fcn.00408e30
mov eax, esp
push 0
push esi
push edi
push eax
call fcn.0040c5c0
push dword [ebp + 0x14]
lea ecx, [ebp - 0xc]
push eax
call fcn.0040ed52
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x4106dd
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 0xc]
test edi, edi
je 0x41070c
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [ecx]
mov edx, eax
shr edx, 0x18
mov edx, dword [edx*4 + 0x414e68]
shl eax, 8
xor edx, eax
mov dword [ecx], edx
movzx eax, byte [esi]
xor eax, edx
inc esi
dec edi
mov dword [ecx], eax
jne 0x4106eb
pop esi
pop edi
ret 8

Function at 0x410d3f
Capabilities:
Create directory
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
mov esi, dword [ebp + 0xc]
jne 0x410d8d
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x50
mov dword [esi], eax
je 0x410d6f
cmp eax, 0xb7
jne 0x410d89
test ebx, ebx
je 0x410d8d
push dword [ebx + 4]
push 4
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
jne 0x410d8d
call edi
mov dword [esi], eax
xor eax, eax
jmp 0x410dab
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or eax, 0x2000
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
and dword [esi], 0
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
pop ebp
ret 0xc