joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f6cf
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [ebp + 0xc]
push esi
xor esi, esi
push edi
cmp eax, esi
mov dword [ebp - 8], esi
je 0x40f6e8
mov dword [eax], esi
and byte [ebp - 0x18], 0
xor eax, eax
lea edi, [ebp - 0x17]
push 0x436938
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push dword [ebp + 8]
mov dword [ebp - 4], esi
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call dword [sym.imp.MSVCRT.dll__wfopen]
mov edi, eax
pop ecx
cmp edi, esi
pop ecx
je 0x40f8b5
push ebx
push 2
push esi
mov esi, dword [sym.imp.MSVCRT.dll_fseek]
push edi
call esi
add esp, 0xc
test eax, eax
jne 0x40f899
push edi
call dword [sym.imp.MSVCRT.dll_ftell]
mov ebx, eax
pop ecx
cmp ebx, 0xffffffff
je 0x40f899
push 0
push 0
push edi
call esi
add esp, 0xc
test eax, eax
jne 0x40f899
test ebx, ebx
je 0x40f899
cmp ebx, 0xa00000
ja 0x40f899
test bl, 7
jne 0x40f899
push ebx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
test eax, eax
pop ecx
mov dword [ebp - 4], eax
je 0x40f899
push ebx
push 0
push eax
call sub.MSVCRT.dll_memset
push edi
push 1
push ebx
push dword [ebp - 4]
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x1c
cmp eax, 1
jne 0x40f899
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
and byte [ebp - 0xa0], 0
push 0x18
pop ecx
xor eax, eax
lea edi, [ebp - 0x9f]
and dword [ebp + 8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
push dword [ebp - 4]
stosb byte es:[edi], al
call fcn.0040f5fc
mov esi, eax
add esp, 0xc
test esi, esi
je 0x40f8a5
mov eax, dword [esi]
cmp eax, dword [esi + 0x5c]
jne 0x40f8a5
add eax, 0x13fbdbd1
cmp eax, 0x67452301
jne 0x40f8a5
mov eax, dword [esi + 4]
mov dword [ebp - 8], 1
mov ecx, eax
and ecx, 0xf
je 0x40f80d
push 0x10
pop edx
sub edx, ecx
add eax, edx
mov ecx, esi
sub ecx, dword [ebp - 4]
cmp eax, ecx
jne 0x40f8a5
mov ebx, 0x438f14
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
and byte [ebp - 0x3c], 0
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x3b]
rep stosd dword es:[edi], eax
push dword [esi + 4]
lea eax, [ebp - 0x18]
push dword [ebp - 4]
push eax
call fcn.00417dad
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0040f5c3
add esi, 8
push 0x54
lea eax, [ebp - 0xa0]
push esi
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0x20
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0xa0]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.0041c0d8
mov ecx, dword [ebp + 0xc]
add esp, 0xc
test ecx, ecx
je 0x40f88f
mov dword [ecx], eax
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [ebp + 8]
test edi, edi
je 0x40f8a5
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
cmp dword [ebp - 4], 0
pop ebx
je 0x40f8b5
push dword [ebp - 4]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret
Function at 0x40ff72
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x42a663
call sub.MSVCRT.dll__EH_prolog
push ecx
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x10], esi
mov dword [esi + 0x14], edi
push 1
lea eax, [esi + 0x4c]
pop ebx
mov dword [ebp - 4], edi
push 0x21
push edi
push eax
mov dword [esi], 0x42f750
mov dword [esi + 4], 0x42f72c
mov dword [esi + 8], 0x42f6f0
mov dword [esi + 0xc], 0x42f6a8
mov dword [esi + 0x10], 0x42f680
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x18], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x48], edi
call sub.MSVCRT.dll_memset
add esp, 0xc
mov ecx, esi
push 0x28
push 0x50
call fcn.004114cf
push edi
call dword [sym.imp.GDI32.dll_GetStockObject]
push edi
mov dword [esi + 0x70], eax
mov dword [esi + 0x74], edi
mov dword [esi + 0x78], edi
mov dword [esi + 0x7c], edi
mov dword [esi + 0x80], edi
mov dword [esi + 0x84], ebx
call dword [sym.imp.ole32.dll_OleInitialize]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x41167a
Capabilities:
Set global application hook

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_SetWindowsHookExW]
cmp dword [esi + 0x20], 0
jne 0x4116a8
mov dword [0x438f3c], esi
call ebx
push eax
push 0
push 0x411195
push 3
call edi
mov dword [esi + 0x20], eax
cmp dword [esi + 0x24], 0
jne 0x4116c5
mov dword [0x438f3c], esi
call ebx
push eax
push 0
push 0x411271
push 4
call edi
mov dword [esi + 0x24], eax
pop edi
pop esi
pop ebx
ret
Function at 0x412af9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x18]
call fcn.00412aa0
cmp dword [ebp + 0x10], 0
pop ecx
je 0x412b54
cmp dword [ebp + 0x10], eax
jl 0x412b54
mov ecx, dword [ebp + 0xc]
push esi
xor esi, esi
and word [ecx], 0
cmp dword [ebp + 0x18], esi
jle 0x412b4e
push ebx
mov eax, esi
push 4
cdq
pop ebx
idiv ebx
mov al, byte [edx + 0x42f7c8]
mov edx, dword [ebp + 0x14]
add al, byte [ebp + 8]
xor al, byte [esi + edx]
xor al, 0x80
movzx ax, al
mov word [ecx], ax
and word [ecx + 2], 0
inc esi
inc ecx
inc ecx
cmp esi, dword [ebp + 0x18]
jl 0x412b20
pop ebx
push 1
pop eax
pop esi
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x412f78
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push ebx
mov edx, 0x81
push edi
xor ebx, ebx
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x40e]
mov word [ebp - 0x410], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x206]
cmp dword [0x438f58], ebx
mov word [ebp - 0x208], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
jne 0x412fc3
xor eax, eax
jmp 0x41305d
push esi
mov esi, 0x104
lea eax, [ebp - 0x410]
push esi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x41305a
lea eax, [ebp - 0x208]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x208]
push 0x436ea8
push eax
call esi
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea eax, [ebp - 0x208]
push eax
call esi
push 1
lea eax, [ebp - 0x208]
push ebx
push eax
call fcn.00413063
mov esi, eax
cmp esi, ebx
je 0x41305a
push dword [ebp + 0xc]
push esi
call fcn.00412ee6
cmp eax, ebx
je 0x413053
lea ecx, [ebp + 8]
push ecx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, ebx
pop esi
pop edi
pop ebx
leave
ret 0x10

Function at 0x413d81
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x415b22
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 1
pop ebx
test byte [0x439191], bl
jne 0x415b43
or byte [0x439191], bl
call fcn.00415cfb
mov dword [0x439178], eax
mov eax, dword [ebp + 8]
cmp eax, 0xc
ja case.0x415b4f.8
jmp dword [eax*4 + 0x415cc7]
push dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
and word [esi], 0
push esi
call fcn.00416ad0
pop ecx
test eax, eax
pop ecx
je 0x415b7b
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x415cbc
push dword [ebp + 0x10]
push esi
call fcn.00415d36
jmp 0x415b91
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0041ce53
pop ecx
pop ecx
jmp 0x415cbc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
jmp 0x415cbc
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x415cbc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0041ce53
pop ecx
pop ecx
push str.downlo1
jmp 0x415cb3
push ebx
push 0x1a
push dword [ebp + 0xc]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je case.0x415b4f.8
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.LocalVirtualStoreProgram_Files
push dword [ebp + 0xc]
call esi
push str.TENCENTQQToolbar
push dword [ebp + 0xc]
jmp 0x415c3c
mov edi, dword [ebp + 0xc]
push ebx
push 0x1a
push edi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je case.0x415b4f.8
cmp dword [0x439178], 0
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
je 0x415c36
push edi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.LocalLow
push edi
call esi
push str.TENCENTQQToolbar
push edi
call esi
jmp 0x415cbc
push ebx
push 0x1c
push dword [ebp + 0xc]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je case.0x415b4f.8
push str.TENCENTQQToolbar
jmp 0x415cb3
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 6
call fcn.00415b22
add esp, 0xc
push str.btns
jmp 0x415cb3
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 6
call fcn.00415b22
add esp, 0xc
push str.dlls
jmp 0x415cb3
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 6
call fcn.00415b22
add esp, 0xc
push str.users
jmp 0x415cb3
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 6
call fcn.00415b22
add esp, 0xc
push str.config
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov eax, ebx
jmp 0x415cc2
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x415cfb
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
lea eax, [ebp - 0x114]
mov dword [ebp - 0x114], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x104], 2
jne 0x415d32
cmp dword [ebp - 0x110], 6
jb 0x415d32
push 1
pop eax
leave
ret
xor eax, eax
leave
ret
Function at 0x415da3
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
and word [ebp - 0x208], 0
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x206]
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x208]
push eax
push 6
call fcn.00415b22
add esp, 0xc
test eax, eax
pop edi
je 0x415e38
lea eax, [ebp - 0x208]
push str.Update
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x415e17
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.0041da8d
pop ecx
test eax, eax
pop ecx
je 0x415e38
push dword [ebp + 0xc]
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push dword [ebp + 8]
call fcn.0041d3a1
pop ecx
push 1
pop eax
leave
ret
xor eax, eax
leave
ret

Function at 0x416455
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
and word [ebp - 0x210], 0
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x20e]
cmp dword [ebp + 0x10], 0
rep stosd dword es:[edi], eax
push 4
stosw word es:[edi], ax
pop eax
pop edi
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
je 0x4164ca
push dword [ebp + 8]
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.0041635e
add esp, 0xc
test eax, eax
je 0x4164ca
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push dword [ebp + 0x10]
push eax
lea eax, [ebp - 0x210]
push dword [ebp + 0xc]
push eax
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
neg eax
sbb eax, eax
inc eax
leave
ret
xor eax, eax
leave
ret

Function at 0x4164ce
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
and word [ebp - 0x208], 0
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x206]
push dword [ebp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x208]
push 0x104
push eax
call fcn.0041635e
add esp, 0xc
test eax, eax
pop edi
jne 0x41650f
leave
ret
lea eax, [ebp + 0x10]
push 4
push eax
push 4
push dword [ebp + 0xc]
lea eax, [ebp - 0x208]
push eax
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
neg eax
sbb eax, eax
inc eax
leave
ret

Function at 0x416617
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
and word [ebp - 0x20c], 0
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x20a]
cmp dword [ebp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 4], 1
pop edi
lea ecx, [eax + eax]
mov dword [ebp + 0x14], ecx
je 0x416697
test eax, eax
je 0x416697
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0041635e
add esp, 0xc
test eax, eax
je 0x416697
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp - 4]
push dword [ebp + 0x10]
push eax
lea eax, [ebp - 0x20c]
push dword [ebp + 0xc]
push eax
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
neg eax
sbb eax, eax
inc eax
leave
ret
xor eax, eax
leave
ret
Function at 0x41669b
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
and word [ebp - 0x208], 0
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x206]
push dword [ebp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x208]
push 0x104
push eax
call fcn.0041635e
add esp, 0xc
test eax, eax
pop edi
jne 0x4166dc
leave
ret
cmp dword [ebp + 0x10], 0
jne 0x4166e6
xor eax, eax
jmp 0x4166f3
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x208]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
push eax
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
neg eax
sbb eax, eax
inc eax
leave
ret

Function at 0x4170fe
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0x5c
push 0
push esi
call sub.MSVCRT.dll_memset
and dword [esi + 0x10], 0
and dword [esi + 0x14], 0
add esp, 0xc
and dword [esi + 0x58], 0
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
pop esi
pop ebp
ret
Function at 0x4192f2
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x42ab14
call sub.MSVCRT.dll__EH_prolog
push ecx
push ecx
push ebx
push esi
xor esi, esi
push edi
cmp dword [ebp + 8], esi
mov ebx, ecx
jne 0x41931d
push esi
push esi
push esi
push 2
mov ecx, ebx
call fcn.0041ac18
xor al, al
jmp 0x419483
mov ecx, ebx
call fcn.00418210
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
or dword [ebx + 8], 0xffffffff
or dword [ebx + 4], 0xffffffff
push 2
push esi
push dword [ebp + 8]
call edi
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_ftell]
push 0
push 0
push dword [ebp + 8]
mov esi, eax
call edi
xor eax, eax
add esp, 0x1c
cmp esi, eax
jne 0x41935e
push eax
push eax
push eax
push 0xd
jmp 0x41930f
mov edi, 0x4391a8
mov dword [ebp - 0x10], edi
and dword [ebp - 4], 0
push esi
lea ecx, [ebp - 0x10]
call fcn.0041b95e
lea eax, [esi + 1]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
push dword [ebp + 8]
and byte [eax], 0
mov dword [ebp - 0x14], eax
push 1
push esi
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x14
cmp eax, 1
je 0x4193c0
xor eax, eax
mov ecx, ebx
push eax
push eax
push eax
push 2
call fcn.0041ac18
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x10], edi
je 0x419316
push dword [ebp - 0x10]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x419316
mov eax, dword [ebp - 0x14]
mov ecx, eax
mov edi, eax
and byte [ecx + esi], 0
cmp byte [ecx], 0
je 0x41942b
mov cl, byte [edi]
cmp cl, 0xa
jne 0x4193e9
mov ecx, edi
sub ecx, eax
inc ecx
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.0041ba67
inc edi
jmp 0x41941d
cmp cl, 0xd
jne 0x419425
mov ecx, edi
sub ecx, eax
test ecx, ecx
jle 0x419400
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.0041ba67
lea eax, [ebp + 0xb]
push 1
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp + 0xb], 0xa
call fcn.0041ba67
cmp byte [edi + 1], 0xa
lea eax, [edi + 1]
jne 0x419421
inc edi
inc edi
mov eax, edi
jmp 0x419426
mov edi, eax
jmp 0x41941d
inc edi
cmp byte [edi], 0
jne 0x4193d0
sub edi, eax
je 0x419439
push edi
push eax
lea ecx, [ebp - 0x10]
call fcn.0041ba67
push dword [ebp - 0x14]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebx]
pop ecx
push dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
add ecx, 8
push 0
push ecx
mov ecx, ebx
call dword [eax + 8]
cmp byte [ebx + 0x2c], 0
je 0x41946b
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x10], 0x4391a8
jmp 0x4193ac
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x10], 0x4391a8
je 0x419481
push dword [ebp - 0x10]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x41ce53
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, dword [esp + 8]
push dword [esp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x41ce69
pop esi
ret
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveBlanksW]
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 1
pop eax
pop esi
ret
Function at 0x41dcb9
Capabilities:
Move file

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
test edi, edi
je 0x41dcca
push edi
call fcn.0041d3a1
pop ecx
mov esi, dword [esp + 0x10]
test esi, esi
je 0x41dcd9
push esi
call fcn.0041d3a1
pop ecx
call fcn.0040d44c
test eax, eax
je 0x41dcf7
xor eax, eax
test esi, esi
setne al
add eax, 4
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x41dd00
push esi
push edi
call fcn.0041dd03
pop ecx
pop ecx
pop edi
pop esi
ret
Function at 0x41e2aa
Capabilities:
Check if file exists
Copy file
Create directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x874
push ebx
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push edi
push dword [ebp + 0xc]
call esi
test eax, eax
jne 0x41e2d7
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x41e4d4
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
je 0x41e2e7
push dword [ebp + 0xc]
call fcn.0041d3a1
pop ecx
push dword [ebp + 8]
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x872]
mov word [ebp - 0x874], bx
mov dword [ebp - 8], ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 4], 1
call esi
test eax, eax
je 0x41e4d4
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_wcslen]
cmp eax, 4
pop ecx
jb 0x41e4d4
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpynW]
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x874]
push eax
call esi
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x874]
push 0x437d0c
push eax
call ebx
lea eax, [ebp - 0x66c]
push eax
lea eax, [ebp - 0x874]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
je 0x41e4d4
cmp dword [ebp - 4], 0
je 0x41e4c6
and word [ebp - 0x41c], 0
mov edx, 0x81
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x41a]
and word [ebp - 0x214], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x212]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, 0x104
lea eax, [ebp - 0x41c]
push edi
push dword [ebp + 8]
push eax
call esi
lea eax, [ebp - 0x640]
push eax
lea eax, [ebp - 0x41c]
push eax
call ebx
push edi
lea eax, [ebp - 0x214]
push dword [ebp + 0xc]
push eax
call esi
lea eax, [ebp - 0x640]
push eax
lea eax, [ebp - 0x214]
push eax
call ebx
test byte [ebp - 0x66c], 0x10
jne 0x41e454
xor edi, edi
cmp dword [ebp + 0x14], edi
je 0x41e422
lea eax, [ebp - 0x214]
push eax
call fcn.0041d3a1
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x41c]
push eax
call fcn.0041dcb9
add esp, 0xc
jmp 0x41e4a1
lea eax, [ebp - 0x214]
push edi
push eax
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x41e440
mov dword [ebp - 4], edi
jmp 0x41e4a1
cmp dword [ebp + 0x10], edi
je 0x41e4a1
lea eax, [ebp - 0x214]
push eax
call fcn.0041d3a1
pop ecx
jmp 0x41e4a1
mov edi, dword [sym.imp.MSVCRT.dll__wcsicmp]
lea eax, [ebp - 0x640]
push eax
push 0x436020
call edi
pop ecx
test eax, eax
pop ecx
je 0x41e4a1
lea eax, [ebp - 0x640]
push eax
push 0x437d04
call edi
pop ecx
test eax, eax
pop ecx
je 0x41e4a1
push dword [ebp + 0x14]
lea eax, [ebp - 0x214]
push dword [ebp + 0x10]
push eax
lea eax, [ebp - 0x41c]
push eax
call fcn.0041e2aa
add esp, 0x10
mov dword [ebp - 4], eax
lea eax, [ebp - 0x66c]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41e4bc
mov dword [ebp - 8], 1
cmp dword [ebp - 8], 0
je 0x41e374
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 4]
jmp 0x41e4d6
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41ed7e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x674
push ebx
push esi
mov edx, 0x81
push edi
xor ebx, ebx
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x262]
mov word [ebp - 0x264], bx
mov word [ebp - 0x46c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x46a]
mov word [ebp - 0x674], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x672]
push 0x13
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, 0x208
pop ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor eax, eax
lea edi, [ebp - 0x5a]
mov word [ebp - 0x5c], bx
mov esi, dword [sym.imp.MSVCRT.dll__snwprintf]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 1
movzx ecx, byte [eax + 0xf]
push ecx
movzx ecx, byte [eax + 0xe]
push ecx
movzx ecx, byte [eax + 0xd]
push ecx
movzx ecx, byte [eax + 0xc]
push ecx
movzx ecx, byte [eax + 0xb]
push ecx
movzx ecx, byte [eax + 0xa]
push ecx
movzx ecx, byte [eax + 9]
push ecx
movzx ecx, byte [eax + 8]
push ecx
movzx ecx, word [eax + 6]
push ecx
movzx ecx, word [eax + 4]
push ecx
push dword [eax]
lea eax, [ebp - 0x5c]
push str._08lX__04X__04X__02X_02X__02X_02X_02X_02X_02X_02X
push 0x27
push eax
call esi
lea eax, [ebp - 0x5c]
mov edi, 0x103
push eax
push str.CLSID_sInprocServer32
lea eax, [ebp - 0x46c]
push edi
push eax
call esi
add esp, 0x48
lea eax, [ebp - 0x5c]
push eax
push str.CLSID_sLocalServer32
lea eax, [ebp - 0x674]
push edi
push eax
call esi
add esp, 0x10
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x264]
mov esi, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x46c]
push ebx
mov edi, SysReAllocString
push eax
push edi
call esi
test eax, eax
je 0x41eeb8
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x674]
push ebx
push eax
push edi
call esi
test eax, eax
je 0x41eeb8
xor eax, eax
jmp 0x41eece
push dword [ebp + 0x10]
lea eax, [ebp - 0x264]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret