joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f4d6
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 0x40f50d
cmp dword [ebp - 0x110], 6
jb 0x40f50d
push 1
pop eax
leave
ret
xor eax, eax
leave
ret

Function at 0x4115f1
Capabilities:
Parse pe header

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
push edi
cmp eax, 0x400
lea edi, [edx + eax]
jbe 0x411657
cmp word [edx], 0x5a4d
jne 0x411657
mov eax, dword [edx + 0x3c]
lea ecx, [edi - 2]
add eax, edx
cmp eax, ecx
jae 0x411657
cmp eax, edx
jbe 0x411657
cmp word [eax], 0x4550
jne 0x411657
lea ecx, [eax + 0x200]
cmp ecx, edi
jae 0x411657
cmp ecx, edx
jbe 0x411657
and dword [eax + 0x58], 0
and dword [eax + 0x9c], 0
lea ecx, [eax + 0x98]
push esi
add edi, 0xffffffa0
mov esi, dword [ecx]
and dword [ecx], 0
lea eax, [esi + edx - 0x60]
pop esi
cmp eax, edi
jae 0x411657
cmp eax, edx
ja 0x411659
xor eax, eax
pop edi
ret
Function at 0x4116c4
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 0x4116dd
mov dword [eax], esi
and byte [ebp - 0x18], 0
xor eax, eax
lea edi, [ebp - 0x17]
push 0x435b90
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 0x4118aa
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 0x41188e
push edi
call dword [sym.imp.MSVCRT.dll_ftell]
mov ebx, eax
pop ecx
cmp ebx, 0xffffffff
je 0x41188e
push 0
push 0
push edi
call esi
add esp, 0xc
test eax, eax
jne 0x41188e
test ebx, ebx
je 0x41188e
cmp ebx, 0xa00000
ja 0x41188e
test bl, 7
jne 0x41188e
push ebx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
test eax, eax
pop ecx
mov dword [ebp - 4], eax
je 0x41188e
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 0x41188e
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.004115f1
mov esi, eax
add esp, 0xc
test esi, esi
je 0x41189a
mov eax, dword [esi]
cmp eax, dword [esi + 0x5c]
jne 0x41189a
add eax, 0x13fbdbd1
cmp eax, 0x67452301
jne 0x41189a
mov eax, dword [esi + 4]
mov dword [ebp - 8], 1
mov ecx, eax
and ecx, 0xf
je 0x411802
push 0x10
pop edx
sub edx, ecx
add eax, edx
mov ecx, esi
sub ecx, dword [ebp - 4]
cmp eax, ecx
jne 0x41189a
mov ebx, 0x437e7c
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.004173bd
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004115b8
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.0041baf1
mov ecx, dword [ebp + 0xc]
add esp, 0xc
test ecx, ecx
je 0x411884
mov dword [ecx], eax
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [ebp + 8]
test edi, edi
je 0x41189a
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
cmp dword [ebp - 4], 0
pop ebx
je 0x4118aa
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 0x41240b
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 [0x437ea8], ebx
mov word [ebp - 0x208], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
jne 0x412456
xor eax, eax
jmp 0x4124f0
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 0x4124ed
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 0x435df8
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.004124f6
mov esi, eax
cmp esi, ebx
je 0x4124ed
push dword [ebp + 0xc]
push esi
call fcn.00412379
cmp eax, ebx
je 0x4124e6
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 0x413214
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 0x41417c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x18]
call fcn.00414123
cmp dword [ebp + 0x10], 0
pop ecx
je 0x4141d7
cmp dword [ebp + 0x10], eax
jl 0x4141d7
mov ecx, dword [ebp + 0xc]
push esi
xor esi, esi
and word [ecx], 0
cmp dword [ebp + 0x18], esi
jle 0x4141d1
push ebx
mov eax, esi
push 4
cdq
pop ebx
idiv ebx
mov al, byte [edx + 0x42e9d4]
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 0x4141a3
pop ebx
push 1
pop eax
pop esi
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x415132
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 [0x4380e9], bl
jne 0x415153
or byte [0x4380e9], bl
call fcn.0041530b
mov dword [0x4380d0], eax
mov eax, dword [ebp + 8]
cmp eax, 0xc
ja case.0x41515f.8
jmp dword [eax*4 + 0x4152d7]
push dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
and word [esi], 0
push esi
call fcn.004160e0
pop ecx
test eax, eax
pop ecx
je 0x41518b
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4152cc
push dword [ebp + 0x10]
push esi
call fcn.00415346
jmp 0x4151a1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0041c469
pop ecx
pop ecx
jmp 0x4152cc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
jmp 0x4152cc
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x4152cc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0041c469
pop ecx
pop ecx
push str.downlo1
jmp 0x4152c3
push ebx
push 0x1a
push dword [ebp + 0xc]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je case.0x41515f.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 0x41524c
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.0x41515f.8
cmp dword [0x4380d0], 0
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
je 0x415246
push edi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.LocalLow
push edi
call esi
push str.TENCENTQQToolbar
push edi
call esi
jmp 0x4152cc
push ebx
push 0x1c
push dword [ebp + 0xc]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je case.0x41515f.8
push str.TENCENTQQToolbar
jmp 0x4152c3
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 6
call fcn.00415132
add esp, 0xc
push str.btns
jmp 0x4152c3
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 6
call fcn.00415132
add esp, 0xc
push str.dlls
jmp 0x4152c3
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 6
call fcn.00415132
add esp, 0xc
push str.users
jmp 0x4152c3
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 6
call fcn.00415132
add esp, 0xc
push str.config
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov eax, ebx
jmp 0x4152d2
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x41530b
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 0x415342
cmp dword [ebp - 0x110], 6
jb 0x415342
push 1
pop eax
leave
ret
xor eax, eax
leave
ret
Function at 0x4153b3
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.00415132
add esp, 0xc
test eax, eax
pop edi
je 0x415448
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 0x415427
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.0041d0a3
pop ecx
test eax, eax
pop ecx
je 0x415448
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.0041c9b7
pop ecx
push 1
pop eax
leave
ret
xor eax, eax
leave
ret

Function at 0x415a65
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 0x415ada
push dword [ebp + 8]
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.0041596e
add esp, 0xc
test eax, eax
je 0x415ada
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 0x415ade
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.0041596e
add esp, 0xc
test eax, eax
pop edi
jne 0x415b1f
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 0x415c27
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 0x415ca7
test eax, eax
je 0x415ca7
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0041596e
add esp, 0xc
test eax, eax
je 0x415ca7
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 0x415cab
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.0041596e
add esp, 0xc
test eax, eax
pop edi
jne 0x415cec
leave
ret
cmp dword [ebp + 0x10], 0
jne 0x415cf6
xor eax, eax
jmp 0x415d03
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 0x41670e
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 0x418902
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x42a138
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 0x41892d
push esi
push esi
push esi
push 2
mov ecx, ebx
call fcn.0041a228
xor al, al
jmp 0x418a93
mov ecx, ebx
call fcn.00417820
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 0x41896e
push eax
push eax
push eax
push 0xd
jmp 0x41891f
mov edi, 0x438100
mov dword [ebp - 0x10], edi
and dword [ebp - 4], 0
push esi
lea ecx, [ebp - 0x10]
call fcn.0041af6e
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 0x4189d0
xor eax, eax
mov ecx, ebx
push eax
push eax
push eax
push 2
call fcn.0041a228
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x10], edi
je 0x418926
push dword [ebp - 0x10]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x418926
mov eax, dword [ebp - 0x14]
mov ecx, eax
mov edi, eax
and byte [ecx + esi], 0
cmp byte [ecx], 0
je 0x418a3b
mov cl, byte [edi]
cmp cl, 0xa
jne 0x4189f9
mov ecx, edi
sub ecx, eax
inc ecx
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.0041b077
inc edi
jmp 0x418a2d
cmp cl, 0xd
jne 0x418a35
mov ecx, edi
sub ecx, eax
test ecx, ecx
jle 0x418a10
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.0041b077
lea eax, [ebp + 0xb]
push 1
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp + 0xb], 0xa
call fcn.0041b077
cmp byte [edi + 1], 0xa
lea eax, [edi + 1]
jne 0x418a31
inc edi
inc edi
mov eax, edi
jmp 0x418a36
mov edi, eax
jmp 0x418a2d
inc edi
cmp byte [edi], 0
jne 0x4189e0
sub edi, eax
je 0x418a49
push edi
push eax
lea ecx, [ebp - 0x10]
call fcn.0041b077
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 0x418a7b
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x10], 0x438100
jmp 0x4189bc
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x10], 0x438100
je 0x418a91
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 0x41c469
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 0x41c47f
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 0x41d2cf
Capabilities:
Move file

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
test edi, edi
je 0x41d2e0
push edi
call fcn.0041c9b7
pop ecx
mov esi, dword [esp + 0x10]
test esi, esi
je 0x41d2ef
push esi
call fcn.0041c9b7
pop ecx
call fcn.0040f441
test eax, eax
je 0x41d30d
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 0x41d316
push esi
push edi
call fcn.0041d319
pop ecx
pop ecx
pop edi
pop esi
ret
Function at 0x41d8c0
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 0x41d8ed
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x41daea
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
je 0x41d8fd
push dword [ebp + 0xc]
call fcn.0041c9b7
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 0x41daea
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_wcslen]
cmp eax, 4
pop ecx
jb 0x41daea
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 0x436c5c
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 0x41daea
cmp dword [ebp - 4], 0
je 0x41dadc
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 0x41da6a
xor edi, edi
cmp dword [ebp + 0x14], edi
je 0x41da38
lea eax, [ebp - 0x214]
push eax
call fcn.0041c9b7
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x41c]
push eax
call fcn.0041d2cf
add esp, 0xc
jmp 0x41dab7
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 0x41da56
mov dword [ebp - 4], edi
jmp 0x41dab7
cmp dword [ebp + 0x10], edi
je 0x41dab7
lea eax, [ebp - 0x214]
push eax
call fcn.0041c9b7
pop ecx
jmp 0x41dab7
mov edi, dword [sym.imp.MSVCRT.dll__wcsicmp]
lea eax, [ebp - 0x640]
push eax
push 0x435278
call edi
pop ecx
test eax, eax
pop ecx
je 0x41dab7
lea eax, [ebp - 0x640]
push eax
push 0x436c54
call edi
pop ecx
test eax, eax
pop ecx
je 0x41dab7
push dword [ebp + 0x14]
lea eax, [ebp - 0x214]
push dword [ebp + 0x10]
push eax
lea eax, [ebp - 0x41c]
push eax
call fcn.0041d8c0
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 0x41dad2
mov dword [ebp - 8], 1
cmp dword [ebp - 8], 0
je 0x41d98a
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 4]
jmp 0x41daec
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41e394
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 0x41e4ce
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 0x41e4ce
xor eax, eax
jmp 0x41e4e4
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
Function at 0x41e4fe
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov eax, 0x42a5a4
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x214
push ebx
push esi
xor esi, esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], esi
push 0x2001f
lea ecx, [ebp - 0x10]
push dword [ebp + 8]
mov dword [ebp - 4], esi
push dword [ebx]
call fcn.0041e5f6
mov edi, eax
cmp edi, esi
je 0x41e548
cmp dword [ebp - 0x10], esi
je 0x41e541
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x41e5e5
lea eax, [ebp - 0x20]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push eax
push esi
push esi
lea eax, [ebp - 0x14]
push esi
push eax
lea eax, [ebp - 0x220]
mov dword [ebp - 0x14], pe_nt_image_headers32
push eax
push esi
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x41e5b9
lea eax, [ebp - 0x220]
lea ecx, [ebp - 0x10]
push eax
call fcn.0041e4fe
cmp eax, esi
mov dword [ebp - 0x18], eax
jne 0x41e5a6
lea eax, [ebp - 0x20]
mov dword [ebp - 0x14], pe_nt_image_headers32
push eax
push esi
push esi
lea eax, [ebp - 0x14]
push esi
push eax
lea eax, [ebp - 0x220]
push eax
push esi
push dword [ebp - 0x10]
jmp 0x41e56b
cmp dword [ebp - 0x10], esi
je 0x41e5b4
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x18]
jmp 0x41e5e5
cmp dword [ebp - 0x10], esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x41e5cc
push dword [ebp - 0x10]
call edi
mov dword [ebp - 0x10], esi
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp dword [ebp - 0x10], esi
mov ebx, eax
je 0x41e5e3
push dword [ebp - 0x10]
call edi
mov eax, ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4