joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405e03
Capabilities:
Check os version
Enumerate gui resources
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x308
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_EnumWindows]
xor ebx, ebx
push edi
push ebx
mov edi, ecx
push 0x405f41
mov dword [0x441884], ebx
call esi
push ebx
push edi
lea ecx, [ebp - 0x308]
call fcn.0040265d
cmp dword [0x441884], ebx
je 0x405e5b
push 1
push 0xb1
lea ecx, [ebp - 0x308]
call fcn.00403560
cmp eax, 3
jne 0x405e5b
push ebx
push 0x405fbb
call esi
push 0x26
xor eax, eax
pop ecx
lea edi, [ebp - 0x9c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xa0]
mov dword [ebp - 0xa0], 0x9c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x405f2f
cmp dword [ebp - 0x90], 2
jne 0x405f2f
cmp dword [ebp - 0x9c], 6
jb 0x405f2f
push ebx
push 0xf
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x405f2f
push 0x49
xor eax, eax
pop ecx
lea edi, [ebp - 0x1c4]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x1c8]
mov esi, 0x128
push eax
mov dword [ebp - 0x1c8], esi
push dword [ebp - 4]
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x405f2f
lea eax, [ebp - 0x1a4]
push eax
push str.ieuser.exe
call dword [sym.imp.MSVCRT.dll__stricmp]
pop ecx
test eax, eax
pop ecx
jne 0x405f18
push dword [ebp - 0x1c0]
push ebx
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
cmp edi, ebx
je 0x405f18
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x1c8]
mov dword [ebp - 0x1c8], esi
push eax
push dword [ebp - 4]
call sub.KERNEL32.dll_Process32Next
jmp 0x405ed8
lea ecx, [ebp - 0x308]
call fcn.0040270c
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x408f61
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push 0x441880
lea ecx, [ebp - 0x14]
call fcn.004146d0
lea eax, [ebp - 0xc]
xor esi, esi
push eax
push 0x20019
push esi
push str.http_shellopencommand
push SysReAllocStringLen
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x408ff5
push ebx
lea eax, [ebp - 4]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push esi
push esi
push esi
push esi
mov dword [ebp - 4], esi
push dword [ebp - 0xc]
call edi
test eax, eax
jne 0x408fea
cmp dword [ebp - 4], 1
jbe 0x408fea
push dword [ebp - 4]
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
pop ecx
cmp ebx, esi
je 0x408fea
lea eax, [ebp - 4]
push eax
push ebx
push esi
push esi
push esi
push dword [ebp - 0xc]
call edi
test eax, eax
jne 0x408fe3
push ebx
lea ecx, [ebp - 0x14]
call fcn.004147e0
push ebx
call fcn.00434ff2
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
lea ecx, [ebp - 0x14]
call fcn.00414740
test eax, eax
jbe 0x40907c
push esi
lea ecx, [ebp - 0x14]
call fcn.00414ce0
push eax
call dword [sym.imp.MSVCRT.dll__strlwr]
pop ecx
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.00414d20
push str..exe
lea ecx, [ebp - 0x14]
call fcn.004150a0
cmp eax, esi
jl 0x40904f
add eax, 4
lea ecx, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push esi
push eax
call fcn.00414fa0
push eax
lea ecx, [ebp - 0x14]
call fcn.00414770
lea ecx, [ebp - 8]
call fcn.004146c0
push 0x22
lea ecx, [ebp - 0x14]
call fcn.00414d80
cmp eax, esi
jl 0x40907c
inc eax
lea ecx, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
call fcn.00414f70
push eax
lea ecx, [ebp - 0x14]
call fcn.00414770
lea ecx, [ebp - 8]
call fcn.004146c0
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
call fcn.00414640
lea ecx, [ebp - 0x14]
call fcn.004146c0
mov eax, dword [ebp + 8]
pop esi
leave
ret
Function at 0x40b697
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x24]
cmp eax, 5
je 0x40b79f
cmp eax, 6
je 0x40b79f
lea eax, [esi + 0x38]
push str.RUP_
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00414850
lea eax, [ebp - 0xc]
push str.control.dll
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00414850
add esp, 0x18
cmp byte [eax + 7], 0xff
jne 0x40b6e6
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea ecx, [ebp - 0x14]
mov dword [esi + 0x28], eax
call fcn.004146c0
lea ecx, [ebp - 0xc]
call fcn.004146c0
mov eax, dword [esi + 0x28]
xor ebx, ebx
cmp eax, ebx
je 0x40b746
push str.DllRegisterServer
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x40b746
call eax
mov edi, eax
cmp edi, ebx
jge 0x40b746
push str.actionerrorvaluexml_invalid
lea ecx, [ebp - 0xc]
call fcn.004146d0
lea eax, [ebp - 0xc]
push ebx
push eax
mov ecx, esi
call fcn.00405549
lea ecx, [ebp - 0xc]
call fcn.004146c0
mov eax, edi
jmp 0x40b7a1
push 1
lea eax, [ebp - 4]
pop edi
mov dword [ebp - 4], ebx
push eax
push ebx
push esi
push 0x4093f5
push ebx
push ebx
mov dword [esi + 0x425], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x40b779
mov eax, 0x80004005
mov dword [esi + 0x118], eax
jmp 0x40b7a1
mov ecx, esi
mov dword [esi + 0x37c], edi
call fcn.0040b7a6
add esi, 0x118
cmp eax, ebx
mov dword [esi], eax
jl 0x40b7a1
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi]
jmp 0x40b7a1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40b8fe
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18c
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x24], 1
jne 0x40ba3c
mov ecx, dword [esi + 0x36c]
lea edi, [esi + 0x36c]
xor ebx, ebx
cmp ecx, ebx
je 0x40b92f
call fcn.00402788
mov dword [edi], ebx
mov eax, dword [esi + 0x118]
cmp eax, ebx
jge 0x40ba3c
cmp eax, 0x8000aaa3
je 0x40ba3c
cmp dword [esi + 0x374], ebx
jne 0x40ba3c
push ebx
push esi
lea ecx, [ebp - 0x18c]
call fcn.0040265d
push 4
push 0xad
lea ecx, [ebp - 0x18c]
call fcn.00403560
cmp eax, 7
jne 0x40ba31
push str.actionbackup_download
lea ecx, [ebp - 8]
call fcn.004146d0
lea eax, [ebp - 8]
push ebx
push eax
mov ecx, esi
call fcn.00405549
lea ecx, [ebp - 8]
call fcn.004146c0
lea eax, [ebp - 0x10]
push eax
call fcn.00408f61
pop ecx
lea ebx, [esi + 0x48]
lea eax, [ebp - 8]
push ebx
push eax
mov ecx, esi
call fcn.00406c40
push eax
mov ecx, ebx
call fcn.00414770
lea ecx, [ebp - 8]
call fcn.004146c0
push 0xe
xor eax, eax
pop ecx
lea edi, [ebp - 0x48]
rep stosd dword es:[edi], eax
and dword [ebp - 0x44], eax
cmp byte [ebp - 9], 0xff
mov dword [ebp - 0x4c], 0x3c
mov dword [ebp - 0x48], 0x40
mov dword [ebp - 0x40], str.open
lea eax, [ebp - 0x10]
jne 0x40b9f4
mov eax, dword [ebp - 0x10]
cmp byte [ebx + 7], 0xff
mov dword [ebp - 0x3c], eax
je 0x40ba02
mov dword [ebp - 0x38], ebx
jmp 0x40ba07
mov eax, dword [ebx]
mov dword [ebp - 0x38], eax
and dword [ebp - 0x34], 0
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x30], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x40ba29
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x10]
call fcn.004146c0
lea ecx, [ebp - 0x18c]
call fcn.0040270c
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret

Function at 0x40c831
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x10], 0
and dword [eax + 0x14], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x410f36
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, ecx
cmp dword [esi + 0x429], 0
jne 0x410ff1
push ebx
push edi
push dword [esi + 0x37c]
lea eax, [ebp - 0xc]
lea ecx, [esi + 0x84]
push 0x2c
push eax
call fcn.00414910
lea eax, [ebp - 0xc]
lea ecx, [esi + 0x408]
push eax
call fcn.0040bb61
mov edi, eax
lea ebx, [esi + 0x8c]
mov ecx, ebx
lea eax, [edi + 0x20]
push eax
call fcn.00414770
push str.actionpageviewvalueprogress
lea ecx, [ebp - 0x14]
call fcn.004146d0
lea eax, [ebp - 0x14]
push 0x18
push eax
mov ecx, esi
call fcn.00405549
lea ecx, [ebp - 0x14]
call fcn.004146c0
add edi, 0x28
mov ecx, ebx
push edi
call fcn.00414770
push 0x441880
lea ecx, [esi + 0x94]
call fcn.004147e0
lea eax, [ebp - 4]
xor edi, edi
push eax
push edi
push esi
push 0x4097b2
push edi
push edi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
pop edi
pop ebx
je 0x410fe9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0xc]
call fcn.004146c0
pop esi
leave
ret
Function at 0x413460
Capabilities:
Set registry value

Disassembly:
mov ecx, dword [esp + 0xc]
push esi
mov esi, ecx
cmp byte [ecx + 7], 0xff
jne 0x41346f
mov esi, dword [ecx]
call fcn.00414740
push eax
push esi
push 1
push dword [esp + 0x18]
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
neg eax
sbb eax, eax
pop esi
inc eax
ret

Function at 0x41348d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
push ebx
push esi
lea eax, [ebp - 8]
mov esi, 0x2000000
xor ebx, ebx
push eax
push esi
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x413586
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push 1
push 2
push ebx
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x41357d
push edi
mov esi, str.S_1_16_8192
lea edi, [ebp - 0x34]
xor eax, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x34]
push eax
call fcn.0041358c
mov esi, eax
pop ecx
cmp esi, ebx
je 0x413573
xor eax, eax
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
push esi
mov dword [ebp - 0xc], 0x20
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
add eax, 8
push eax
lea eax, [ebp - 0x10]
push eax
push 0x19
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
je 0x41356c
push 0x10
xor eax, eax
pop ecx
lea edi, [ebp - 0x74]
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x20], ebx
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x1c]
mov ecx, dword [ebp + 8]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x78]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00414ce0
push eax
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
mov ecx, dword [ebp + 8]
push 0xffffffffffffffff
mov ebx, eax
call fcn.00414d20
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop esi
pop ebx
leave
ret
Function at 0x413763
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push ebx
push esi
lea eax, [ebp - 0x18]
push edi
push eax
xor ebx, ebx
push dword [ebp + 8]
mov dword [ebp - 0x18], ebx
xor esi, esi
call sub.VERSION.dll_GetFileVersionInfoSizeA
cmp ax, bx
jbe 0x4138ab
movzx edi, ax
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
mov dword [ebp - 8], eax
je 0x4138ab
push eax
push edi
push dword [ebp - 0x18]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jle 0x4138a2
lea eax, [ebp + 8]
mov dword [ebp + 8], ebx
push eax
lea eax, [ebp - 0x20]
push eax
push str.VarFileInfoTranslation
push dword [ebp - 8]
mov dword [ebp - 0x20], ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4138a2
mov al, byte [0x441880]
push 0x3f
mov byte [ebp - 0x120], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x11f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp - 0x20]
mov dword [ebp - 4], ebx
mov dword [ebp + 8], ebx
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
lea eax, [ebp - 0x120]
push str.StringFileInfo_04x_04xProductVersion
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 8]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4138a2
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x10], ebx
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push str._d._d._d._d
push dword [ebp - 4]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.MSVCRT.dll_sscanf]
mov esi, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
mov eax, 0xff
add esp, 0x18
and esi, eax
shl ecx, 8
or esi, ecx
mov ecx, dword [ebp - 0x14]
shl esi, 8
and ecx, eax
mov eax, dword [ebp - 0x1c]
or esi, ecx
and eax, 0xfff
shl esi, 0xc
or esi, eax
cmp dword [ebp + 0xc], ebx
je 0x4138a2
push dword [ebp + 8]
push dword [ebp - 4]
push dword [ebp + 0xc]
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
push dword [ebp - 8]
call fcn.00434ff2
pop ecx
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4138b2
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x348
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
call sub.MSVCRT.dll_strlen
cmp byte [eax + ebx - 1], 0x5c
pop ecx
lea eax, [ebp - 0x208]
push ebx
push eax
je 0x413901
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x208]
push 0x43ffb0
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x104]
push ebx
push eax
call sub.MSVCRT.dll_strcpy
push 0x43fe58
jmp 0x413929
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x208]
push 0x43ffac
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x104]
push ebx
push eax
call sub.MSVCRT.dll_strcpy
push 0x441880
lea eax, [ebp - 0x104]
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x20
lea eax, [ebp - 0x348]
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x413a4c
push 1
lea eax, [ebp - 0x104]
pop esi
push eax
lea eax, [ebp - 0x208]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
lea eax, [ebp - 0x348]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x413a1d
lea eax, [ebp - 0x31c]
push eax
call fcn.00413a50
test eax, eax
pop ecx
jne 0x413a2a
lea eax, [ebp - 0x31c]
push eax
lea eax, [ebp - 0x104]
push eax
call sub.MSVCRT.dll_strcat
test byte [ebp - 0x348], 0x10
pop ecx
pop ecx
je 0x4139dc
lea eax, [ebp - 0x104]
push eax
call fcn.004138b2
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x104]
push eax
call sub.MSVCRT.dll_strcpy
add esp, 0xc
jmp 0x413a2a
test byte [ebp - 0x348], 1
je 0x4139f9
lea eax, [ebp - 0x104]
push 0x80
push eax
call dword [sym.imp.MSVCRT.dll__chmod]
pop ecx
pop ecx
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x104]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
jmp 0x413a2a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x413a45
xor esi, esi
test esi, esi
jne 0x41396f
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop edi
pop esi
pop ebx
leave
ret
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x413a40
Function at 0x413a7f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
push esi
push edi
push 0x441880
lea ecx, [ebp - 0xc]
call fcn.004146d0
mov ecx, dword [ebp + 0xc]
xor esi, esi
push esi
call fcn.00414ce0
mov ecx, dword [ebp + 0xc]
mov edi, eax
mov dword [ebp - 0x20], edi
call fcn.00414740
test eax, eax
jbe 0x413c4b
push ebx
mov ecx, dword [ebp + 0xc]
call fcn.00414740
sub eax, 5
cmp esi, eax
jae 0x413c14
mov ebx, str._app:
push 5
lea eax, [esi + edi]
push ebx
push eax
call dword [sym.imp.MSVCRT.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x413c14
push 0x441880
lea ecx, [ebp - 0x18]
call fcn.004146d0
push ebx
call sub.MSVCRT.dll_strlen
pop ecx
add esi, eax
mov ecx, dword [ebp + 0xc]
call fcn.00414740
cmp esi, eax
jae 0x413b36
mov al, byte [esi + edi]
cmp al, 0x25
je 0x413b36
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00414f30
add esp, 0xc
lea ecx, [ebp - 0x18]
push eax
call fcn.00414770
lea ecx, [ebp - 0x40]
call fcn.004146c0
inc esi
jmp 0x413afe
and dword [ebp - 4], 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x28]
push str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths_
push eax
call fcn.00414890
add esp, 0xc
cmp byte [eax + 7], 0xff
jne 0x413b57
mov eax, dword [eax]
lea ecx, [ebp - 4]
push ecx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov ebx, eax
lea ecx, [ebp - 0x28]
neg ebx
sbb bl, bl
inc bl
call fcn.004146c0
test bl, bl
je 0x413c0f
mov al, byte [0x441880]
push 0x40
mov byte [ebp - 0x144], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x143]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x10]
and dword [ebp - 0x1c], 0
push eax
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
mov dword [ebp - 0x10], 0x104
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
dec eax
test eax, eax
jle 0x413be4
cmp byte [ebp + eax - 0x144], 0x5c
jne 0x413bcd
and byte [ebp + eax - 0x144], 0
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00414850
add esp, 0xc
lea ecx, [ebp - 0xc]
push eax
call fcn.00414770
lea ecx, [ebp - 0x30]
call fcn.004146c0
mov edi, dword [ebp - 0x20]
lea ecx, [ebp - 0x18]
jmp 0x413c34
mov al, byte [esi + edi]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.00414f30
add esp, 0xc
lea ecx, [ebp - 0xc]
push eax
call fcn.00414770
lea ecx, [ebp - 0x38]
call fcn.004146c0
mov ecx, dword [ebp + 0xc]
inc esi
call fcn.00414740
cmp esi, eax
jb 0x413ab8
pop ebx
mov ecx, dword [ebp + 0xc]
push 0xffffffffffffffff
call fcn.00414d20
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00414640
lea ecx, [ebp - 0xc]
call fcn.004146c0
mov eax, dword [ebp + 8]
pop edi
pop esi
leave
ret
Function at 0x413de2
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
push edi
push ebx
push 0x80
push 3
push ebx
push 3
push 0x81
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x413e2b
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
mov dword [ebp - 8], eax
jne 0x413e32
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x413edb
lea ecx, [ebp - 4]
push ebx
push ecx
push esi
push eax
push edi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], esi
mov dword [ebp + 8], ebx
jne 0x413ecf
mov edi, str.RNFeatures
push edi
push dword [ebp - 8]
call dword [sym.imp.MSVCRT.dll_strstr]
mov esi, eax
pop ecx
cmp esi, ebx
pop ecx
je 0x413ecf
push edi
call sub.MSVCRT.dll_strlen
add esi, eax
pop ecx
je 0x413ecf
mov al, byte [esi]
cmp al, bl
je 0x413e89
cmp al, 0xd
je 0x413e86
cmp al, 0xa
je 0x413e86
cmp al, 0x20
jne 0x413e89
inc esi
jne 0x413e74
cmp esi, ebx
je 0x413ecf
mov edi, dword [sym.imp.MSVCRT.dll__strnicmp]
mov al, byte [esi]
cmp al, bl
je 0x413ecf
cmp al, 0xd
je 0x413ecf
cmp al, 0xa
je 0x413ecf
push 6
push str.ZK101
push esi
call edi
add esp, 0xc
test eax, eax
je 0x413ec8
push 6
push str.ZK111
push esi
call edi
add esp, 0xc
test eax, eax
je 0x413ec8
inc esi
jne 0x413e93
jmp 0x413ecf
mov dword [ebp + 8], 1
push dword [ebp - 8]
call fcn.00434ff2
mov eax, dword [ebp + 8]
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x413ee0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ebx, ebx
push edi
push ebx
push 0x80
push 3
push ebx
push 3
push 0x81
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x413f28
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
mov dword [ebp - 4], eax
jne 0x413f2f
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x413fbd
lea ecx, [ebp + 8]
push ebx
push ecx
push esi
push eax
push edi
mov dword [ebp + 8], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 8], esi
jne 0x413fb2
mov esi, str.RNFeatures
push esi
push dword [ebp - 4]
call dword [sym.imp.MSVCRT.dll_strstr]
mov edi, eax
pop ecx
cmp edi, ebx
pop ecx
je 0x413fb2
push esi
call sub.MSVCRT.dll_strlen
add edi, eax
pop ecx
je 0x413fb2
mov al, byte [edi]
cmp al, bl
je 0x413f83
cmp al, 0xd
je 0x413f80
cmp al, 0xa
je 0x413f80
cmp al, 0x20
jne 0x413f83
inc edi
jne 0x413f6e
cmp edi, ebx
je 0x413fb2
mov al, byte [edi]
cmp al, bl
je 0x413fb2
cmp al, 0xd
je 0x413fb2
cmp al, 0xa
je 0x413fb2
push 6
push str.ZK121
push edi
call dword [sym.imp.MSVCRT.dll__strnicmp]
add esp, 0xc
test eax, eax
je 0x413faf
inc edi
jne 0x413f87
jmp 0x413fb2
push 1
pop ebx
push dword [ebp - 4]
call fcn.00434ff2
pop ecx
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x413fc2
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44c
mov al, byte [0x441880]
push ebx
push esi
push edi
push 0x40
mov byte [ebp - 0x104], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x103]
push dword [ebp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x104]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x104]
push eax
call sub.MSVCRT.dll_strlen
add esp, 0xc
cmp byte [ebp + eax - 0x105], 0x5c
je 0x414024
lea eax, [ebp - 0x104]
push 0x43fe58
push eax
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
mov al, byte [0x441880]
push 0x40
mov byte [ebp - 0x348], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x347]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
stosb byte es:[edi], al
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x348]
push str._s.
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x348]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x414126
test byte [ebp - 0x244], 0x10
je 0x4140a5
cmp byte [ebp - 0x218], 0x2e
je 0x414105
push dword [ebp + 0xc]
lea eax, [ebp - 0x218]
push eax
call fcn.00413fc2
pop ecx
test eax, eax
pop ecx
jne 0x414121
jmp 0x414105
lea eax, [ebp - 0x218]
push str._real
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
pop ecx
test eax, eax
pop ecx
je 0x414105
mov al, byte [0x441880]
push 0x40
mov byte [ebp - 0x44c], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x44b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x44c]
push str._s_s
push eax
call esi
lea eax, [ebp - 0x44c]
push eax
call dword [ebp + 0xc]
add esp, 0x14
test eax, eax
jne 0x41411a
lea eax, [ebp - 0x244]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jmp 0x414076
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push 1
pop eax
jmp 0x41412f
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret