joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100469c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x654
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor eax, eax
mov ebx, ecx
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call sub.MSVCR120.dll_memset
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call sub.MSVCR120.dll_memset
add esp, 0x18
lea eax, [ebp - 0x654]
push eax
push str.SoftwareHNCSharedCommon11.0
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x10046b63
lea eax, [ebp - 0x620]
mov dword [ebp - 0x620], 0x208
push eax
lea eax, [ebp - 0x61c]
push eax
push 0
push 0
push str.SharedData_Path
push dword [ebp - 0x654]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10046b57
push 0xffffffffffffffff
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.MSVCR120.dll_wcsncpy_s]
add esp, 0x10
push dword [ebp - 0x654]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10046a96
sub ecx, edx
sar ecx, 1
je 0x10046ad4
push esi
lea eax, [ebp - 0x20c]
push 0x5c
push eax
lea esi, [ecx + ecx]
call dword [sym.imp.MSVCR120.dll_wcsrchr]
lea ecx, [ebp + esi - 0x20e]
add esp, 8
cmp eax, ecx
je 0x10046ad3
mov dword [ebp + esi - 0x20c], 0x5c
pop esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push 0x104
push eax
call dword [sym.imp.MSVCR120.dll_wcscpy_s]
push str.FontsFontInfo.dat
lea eax, [ebp - 0x414]
push 0x104
push eax
call dword [sym.imp.MSVCR120.dll_wcscat_s]
lea eax, [ebp - 0x650]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.MSVCR120.dll__wstat64i32]
add esp, 0x20
test eax, eax
jne 0x10046b63
test dword [ebp - 0x64a], 0x4000
jne 0x10046b63
push 0xffffffffffffffff
lea eax, [ebp - 0x20c]
push eax
push 0x104
push ebx
call dword [sym.imp.MSVCR120.dll_wcsncpy_s]
add esp, 0x10
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100944ae
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x654]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop ebx
call fcn.100944ae
mov esp, ebp
pop ebp
ret
Function at 0x10046b80
Capabilities:
Delete file
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov edx, esi
lea ecx, [edx + 2]
jmp 0x10046ba0
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x10046ba0
sub edx, ecx
sar edx, 1
cmp edx, 2
jbe 0x10046bd2
cmp word [esi], 0x5c
jne 0x10046bd2
cmp word [esi + 2], 0x5c
jne 0x10046bd2
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100944ae
mov esp, ebp
pop ebp
ret
push esi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.MSVCR120.dll_wcscpy_s]
lea ecx, [ebp - 0x20c]
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10046bf1
sub ecx, edx
sar ecx, 1
je 0x10046c2f
push edi
lea eax, [ebp - 0x20c]
push 0x5c
push eax
lea edi, [ecx + ecx]
call dword [sym.imp.MSVCR120.dll_wcsrchr]
lea ecx, [ebp + edi - 0x20e]
add esp, 8
cmp eax, ecx
je 0x10046c2e
mov dword [ebp + edi - 0x20c], 0x5c
pop edi
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call dword [sym.imp.MSVCR120.dll_wcschr]
add esp, 8
test eax, eax
je 0x10046bc1
xor ecx, ecx
mov word [eax + 2], cx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x10046bc1
lea eax, [ebp - 0x414]
push eax
push 0
push 0x100c4b40
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x10046bc1
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.100944ae
mov esp, ebp
pop ebp
ret
Function at 0x100474f0
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0
push 0
push 0
push 0
push 0x100
push eax
push 3
lea eax, [ebp - 0xc]
push eax
push esi
call dword [sym.imp.MSVCR120.dll__wsplitpath_s]
push 0
push 0
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x414]
push 0x104
push eax
call dword [sym.imp.MSVCR120.dll__wmakepath_s]
add esp, 0x3c
lea eax, [ebp - 0x61c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 8
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.100944ae
mov esp, ebp
pop ebp
ret 4

Function at 0x10047860
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetFileAttributesW]

Function at 0x100478e0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
or edx, 0xffffffff
test ecx, ecx
je 0x10047995
push esi
mov esi, ecx
lea edx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10047907
push ecx
lea eax, [ebp - 0x20c]
sub esi, edx
push 0x100
push eax
sar esi, 1
call dword [sym.imp.MSVCR120.dll_wcscpy_s]
add esi, esi
add esp, 0xc
cmp esi, 0x208
jae 0x100479ac
xor eax, eax
mov word [ebp + esi - 0x20c], ax
add esi, 2
cmp esi, 0x208
jae 0x100479ac
mov word [ebp + esi - 0x20c], ax
mov dword [ebp - 0x22c], eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x224], eax
mov eax, 0x614
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x22c]
push eax
mov dword [ebp - 0x228], 3
mov dword [ebp - 0x220], 0
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov edx, eax
pop esi
mov ecx, dword [ebp - 4]
xor eax, eax
test edx, edx
sete al
xor ecx, ebp
call fcn.100944ae
mov esp, ebp
pop ebp
ret 4
call fcn.10094838
int3

Function at 0x100479c0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
Function at 0x100479f0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [sym.imp.MSVCR120.dll___argc]
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
cmp edi, dword [eax]
jge 0x10047a5d
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
push 0xffffffffffffffff
push dword [esi + edi*4]
push dword [ebp + 0x10]
push ebx
call dword [sym.imp.MSVCR120.dll_wcsncpy_s]
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop esi
pop edi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100944ae
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop ebx
call fcn.100944ae
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10047ca0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp dword [sym.imp.SHELL32.dll_ShellExecuteW]

Function at 0x10047d70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x10], 0x104
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0x18]
mov edi, dword [ebp + 0xc]
push dword [ebp + 0x14]
jb 0x10047db2
push edi
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100944ae
mov esp, ebp
pop ebp
ret 0x14
lea ecx, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp eax, 1
jne 0x10047def
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0x10]
push edi
call dword [sym.imp.MSVCR120.dll_wcscpy_s]
add esp, 0xc
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100944ae
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop edi
call fcn.100944ae
mov esp, ebp
pop ebp
ret 0x14

Function at 0x10047e10
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp dword [sym.imp.SHELL32.dll_SHGetFileInfoW]

Function at 0x10047ff0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
test edx, edx
je 0x1004807a
mov ecx, edx
push esi
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10048010
sub ecx, esi
sar ecx, 1
pop esi
je 0x1004807a
push 0
push 0
push 0
push 0
push 0
push 0
push 3
lea eax, [ebp - 0xc]
push eax
push edx
call dword [sym.imp.MSVCR120.dll__wsplitpath_s]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x214]
push 0x100c4dc0
push eax
call fcn.10028380
add esp, 0x30
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
xor ecx, ecx
cmp eax, 2
sete cl
mov eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100944ae
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.100944ae
mov esp, ebp
pop ebp
ret 4
Function at 0x10048090
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x220]
mov dword [ebp - 0x218], 0
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x228], xmm0
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x228], 0
push esi
test edx, edx
je 0x1004814a
mov ecx, edx
lea esi, [ecx + 2]
jmp 0x100480e0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100480e0
sub ecx, esi
sar ecx, 1
je 0x1004814a
push 0
push 0
push 0
push 0
push 0
push 0
push 3
lea eax, [ebp - 0xc]
push eax
push edx
call dword [sym.imp.MSVCR120.dll__wsplitpath_s]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x214]
push 0x100c4dc0
push eax
call fcn.10028380
add esp, 0x30
lea eax, [ebp - 0x218]
push 0
push 0
push 0
push 0
push eax
push 0
push 0
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov esi, dword [ebp - 0x218]
jmp 0x1004814c
xor esi, esi
lea ecx, [ebp - 0x228]
call fcn.10010900
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.100944ae
mov esp, ebp
pop ebp
ret 4
Function at 0x10048550
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa34
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
mov ax, word [ebp + 8]
mov ecx, 0xffff
push esi
push edi
mov edi, dword [ebp + 0xc]
cmp ax, cx
jne 0x100486ae
push 0x104
lea eax, [ebp - 0x224]
push eax
push dword [0x100f8578]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0
push 0x100
lea eax, [ebp - 0x82c]
push eax
push 0x100
lea eax, [ebp - 0x62c]
push eax
push 3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.MSVCR120.dll__wsplitpath_s]
add esp, 0x24
lea eax, [ebp - 0x82c]
push 0
push eax
lea eax, [ebp - 0x62c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x224]
push 0x104
push eax
call dword [sym.imp.MSVCR120.dll__wmakepath_s]
mov eax, dword [0x100f9874]
add esp, 0x18
cmp eax, 0xffffffff
jne 0x1004861b
mov edx, 0x104
lea ecx, [ebp - 0xa34]
call fcn.10048750
lea eax, [ebp - 0xa34]
push eax
call sym.HncFoundation.dll_public:_static_unsigned_long_int___cdecl_Hnc::Framework::ToLCID_unsigned_short_int_const__
add esp, 4
mov dword [0x100f9874], eax
movzx esi, ax
lea edx, [ebp - 0x224]
lea eax, [ebp - 0x42c]
mov ecx, esi
push 0x104
push eax
call fcn.10025e50
add esp, 8
test eax, eax
jne 0x100486a9
lea eax, [ebp - 0x42c]
mov esi, 0x400
push 0x104
push eax
lea edx, [ebp - 0x224]
mov ecx, esi
call fcn.10025e50
add esp, 8
test eax, eax
jne 0x100486a9
lea eax, [ebp - 0x42c]
mov esi, 0x409
push 0x104
push eax
lea edx, [ebp - 0x224]
mov ecx, esi
call fcn.10025e50
add esp, 8
test eax, eax
jne 0x100486a9
lea eax, [ebp - 0x42c]
mov esi, 0x412
push 0x104
push eax
lea edx, [ebp - 0x224]
mov ecx, esi
call fcn.10025e50
add esp, 8
movzx eax, si
jmp 0x100486b1
movzx eax, ax
cmp eax, 0x40a
jne 0x100486dc
push 0x100c4e54
push dword [ebp + 0x10]
push edi
call dword [sym.imp.MSVCR120.dll_wcscpy_s]
add esp, 0xc
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.100944ae
mov esp, ebp
pop ebp
ret 0xc
push 4
lea ecx, [ebp - 0x10]
push ecx
push 3
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jg 0x10048713
push 0x100c4e4c
push dword [ebp + 0x10]
push edi
call dword [sym.imp.MSVCR120.dll_wcscpy_s]
add esp, 0xc
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.100944ae
mov esp, ebp
pop ebp
ret 0xc
lea eax, [ebp - 0x10]
push 4
push eax
call dword [sym.imp.MSVCR120.dll__wcsupr_s]
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
push edi
call dword [sym.imp.MSVCR120.dll_wcscpy_s]
mov ecx, dword [ebp - 8]
add esp, 0x14
xor ecx, ebp
pop edi
pop esi
call fcn.100944ae
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10049390
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x43c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x438], eax
mov eax, dword [0x100fe224]
push esi
test eax, eax
jne 0x10049584
push 0x104
lea eax, [esp + 0x34]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0
push 0x100
lea eax, [esp + 0x244]
push eax
push 0
push 0
push 0
lea eax, [esp + 0x4c]
push 0
push eax
call dword [sym.imp.MSVCR120.dll__wsplitpath_s]
push str.SoftwareHNCGlobal_SettingsUser_Locales_
lea eax, [esp + 0x58]
push 0x104
push eax
call dword [sym.imp.MSVCR120.dll_wcscpy_s]
lea eax, [esp + 0x268]
push eax
lea eax, [esp + 0x64]
push 0x104
push eax
call dword [sym.imp.MSVCR120.dll_wcscat_s]
add esp, 0x3c
lea eax, [esp + 0x18]
xorps xmm0, xmm0
movdqa xmmword [esp + 0x10], xmm0
mov dword [esp + 0x14], eax
lea eax, [esp + 0xc]
push eax
push 0x20019
push 0
lea eax, [esp + 0x3c]
mov dword [esp + 0x1c], 0
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [esp + 0x10]
mov esi, eax
call fcn.10010900
test esi, esi
jne 0x100494c8
xorps xmm0, xmm0
mov dword [esp + 0x2c], 4
movdqa xmmword [esp + 0x10], xmm0
lea eax, [esp + 0x18]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x2c]
push eax
push 0x100fe224
lea eax, [esp + 0x30]
mov dword [esp + 0x18], esi
push eax
push esi
push str.CODE
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 0x10]
mov esi, eax
call fcn.10010900
test esi, esi
jne 0x100494b4
cmp dword [esp + 0x28], 4
je 0x100494be
mov dword [0x100fe224], 0
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x100fe224], 0
jne 0x1004957f
xorps xmm0, xmm0
lea eax, [esp + 0x18]
movdqa xmmword [esp + 0x10], xmm0
mov dword [esp + 0x14], eax
lea eax, [esp + 0xc]
push eax
push 0x20019
push 0
push str.SoftwareHNCGlobal_SettingsUser_Locales_
push SysReAllocString
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [esp + 0x10]
mov esi, eax
call fcn.10010900
test esi, esi
jne 0x1004957f
xorps xmm0, xmm0
mov dword [esp + 0x2c], 4
movdqa xmmword [esp + 0x10], xmm0
lea eax, [esp + 0x18]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x2c]
push eax
push 0x100fe224
lea eax, [esp + 0x30]
mov dword [esp + 0x18], esi
push eax
push esi
push str.CODE
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 0x10]
mov esi, eax
call fcn.10010900
test esi, esi
jne 0x1004956b
cmp dword [esp + 0x28], 4
je 0x10049575
mov dword [0x100fe224], 0
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x100fe224]
mov ecx, dword [esp + 0x43c]
pop esi
xor ecx, esp
call fcn.100944ae
mov esp, ebp
pop ebp
ret

Function at 0x100495a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x100495b7
xor eax, eax
pop ebp
ret 4
and eax, 0x10
pop ebp
ret 4
Function at 0x1004ce10
Capabilities:
Encode data using xor
Encrypt data using aes
Encrypt data using rc4 ksa
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov edx, 0x100c55f8
test eax, eax
cmovne edx, eax
mov dword [ebp + 0xc], edx
mov ecx, dword [ecx + 4]
pop ebp
jmp fcn.1006e060

Function at 0x1004ce30
Capabilities:
Encrypt data using aes
Encrypt data using rc4 ksa
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ecx + 4]
pop ebp
jmp fcn.1006ec80

Function at 0x1004ce40
Capabilities:
Encrypt data using aes
Encrypt data using rc4 ksa
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ecx + 4]
pop ebp
jmp fcn.1006ef40
Function at 0x1004d680
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0x40
push 0
push esi
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [esi + 0x44], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x48], 0x67452301
mov dword [esi + 0x4c], 0xefcdab89
mov dword [esi + 0x50], 0x98badcfe
mov dword [esi + 0x54], 0x10325476
pop esi
pop ebp
ret
Function at 0x10050460
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
push 0x100c0eb8
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0xc], ecx
push eax
xor edi, edi
call dword [sym.imp.MSVCR120.dll__wfopen_s]
add esp, 0xc
test eax, eax
jne 0x1005050a
push ebx
push esi
mov esi, dword [sym.imp.MSVCR120.dll_fseek]
push 2
push eax
push dword [ebp - 8]
call esi
push dword [ebp - 8]
call dword [sym.imp.MSVCR120.dll_ftell]
mov ebx, eax
add esp, 0x10
cmp ebx, 0xffffffff
je 0x100504fc
push edi
push edi
push dword [ebp - 8]
call esi
push ebx
call dword [sym.imp.MSVCR120.dll_malloc]
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100504fc
push dword [ebp - 8]
push ebx
push 1
push esi
call dword [sym.imp.MSVCR120.dll_fread]
add esp, 0x10
cmp eax, ebx
jne 0x100504f2
push 0x100c53c4
push eax
mov eax, dword [ebp - 0xc]
push esi
mov eax, dword [eax + 4]
call eax
add esp, 0xc
mov edi, eax
push esi
call dword [sym.imp.MSVCR120.dll_free]
add esp, 4
push dword [ebp - 8]
call dword [sym.imp.MSVCR120.dll_fclose]
add esp, 4
pop esi
pop ebx
mov ecx, dword [ebp - 4]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.100944ae
mov esp, ebp
pop ebp
ret 4

Function at 0x10050520
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
push 0x100c0eb8
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0xc], ecx
push eax
xor edi, edi
call dword [sym.imp.MSVCR120.dll__wfopen_s]
add esp, 0xc
test eax, eax
jne 0x100505ca
push ebx
push esi
mov esi, dword [sym.imp.MSVCR120.dll_fseek]
push 2
push eax
push dword [ebp - 8]
call esi
push dword [ebp - 8]
call dword [sym.imp.MSVCR120.dll_ftell]
mov ebx, eax
add esp, 0x10
cmp ebx, 0xffffffff
je 0x100505bc
push edi
push edi
push dword [ebp - 8]
call esi
push ebx
call dword [sym.imp.MSVCR120.dll_malloc]
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100505bc
push dword [ebp - 8]
push ebx
push 1
push esi
call dword [sym.imp.MSVCR120.dll_fread]
add esp, 0x10
cmp eax, ebx
jne 0x100505b2
push 0x100c53cc
push eax
mov eax, dword [ebp - 0xc]
push esi
mov eax, dword [eax + 4]
call eax
add esp, 0xc
mov edi, eax
push esi
call dword [sym.imp.MSVCR120.dll_free]
add esp, 4
push dword [ebp - 8]
call dword [sym.imp.MSVCR120.dll_fclose]
add esp, 4
pop esi
pop ebx
mov ecx, dword [ebp - 4]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.100944ae
mov esp, ebp
pop ebp
ret 4
Function at 0x100505e0
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x618
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x618], eax
lea eax, [ebp - 0x614]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x10050622
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100944ae
mov esp, ebp
pop ebp
ret 8
push ebx
push esi
push edi
push 0
call dword [sym.imp.MSVCR120.dll__time64]
push eax
call dword [sym.imp.MSVCR120.dll_srand]
mov esi, dword [sym.imp.MSVCR120.dll_rand]
add esp, 8
mov edi, dword [sym.imp.MSVCR120.dll__wmakepath_s]
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea esp, [esp]
call esi
push eax
push str.OOXML
push str._s_04x
lea eax, [ebp - 0x40c]
push 0x104
push eax
call fcn.1004ec50
push 0
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x614]
push eax
push 0
lea eax, [ebp - 0x20c]
push 0x104
push eax
call edi
add esp, 0x2c
lea eax, [ebp - 0x20c]
push eax
call ebx
cmp eax, 0xffffffff
je 0x100506a4
and eax, 0x10
jne 0x10050650
pop edi
lea ecx, [ebp - 0x20c]
pop esi
lea edx, [ecx + 2]
pop ebx
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100506b0
sub ecx, edx
sar ecx, 1
cmp word [ebp + ecx*2 - 0x20e], 0x5c
je 0x100506e4
push 0x100c0618
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.MSVCR120.dll_wcscat_s]
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x104
push dword [ebp - 0x618]
call dword [sym.imp.MSVCR120.dll_wcscpy_s]
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
mov eax, 1
call fcn.100944ae
mov esp, ebp
pop ebp
ret 8
Function at 0x10050780
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x888
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x87c]
push edi
push eax
push esi
mov dword [ebp - 0x884], ecx
mov dword [ebp - 0x888], esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10050917
mov edi, dword [sym.imp.MSVCR120.dll_swprintf_s]
push 0
push 0
push 0
push 0
push 0x104
lea eax, [ebp - 0x21c]
push eax
push 3
lea eax, [ebp - 0x10]
push eax
push esi
call dword [sym.imp.MSVCR120.dll__wsplitpath_s]
add esp, 0x24
test byte [ebp - 0x87c], 0x10
je 0x1005083e
cmp word [ebp - 0x850], 0x2e
je 0x100508fa
lea eax, [ebp - 0x850]
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x100c538c
lea eax, [ebp - 0x424]
push 0x104
push eax
call edi
mov ecx, dword [ebp - 0x884]
lea eax, [ebp - 0x424]
add esp, 0x18
push eax
call sym.HncFoundation.dll_private:_void___thiscall_CHncAppShield::_LockFile_unsigned_short_int_const__
jmp 0x100508fa
lea eax, [ebp - 0x850]
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x10]
push eax
push str._s_s_s
lea eax, [ebp - 0x62c]
push 0x104
push eax
call edi
add esp, 0x18
lea eax, [ebp - 0x62c]
push 0
push 0x80
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, dword [ebp - 0x884]
mov edi, eax
lea eax, [ebp - 0x880]
mov dword [ebp - 0x880], edi
mov ecx, dword [esi + 0x10]
cmp eax, ecx
jae 0x100508d3
mov eax, dword [esi + 0xc]
lea edx, [ebp - 0x880]
cmp eax, edx
ja 0x100508d3
mov edi, edx
sub edi, eax
sar edi, 2
cmp ecx, dword [esi + 0x14]
jne 0x100508c2
push ecx
lea ecx, [esi + 0xc]
call fcn.1002ee90
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x100508ea
mov eax, dword [esi + 0xc]
mov eax, dword [eax + edi*4]
mov dword [ecx], eax
jmp 0x100508ea
cmp ecx, dword [esi + 0x14]
jne 0x100508e1
push ecx
lea ecx, [esi + 0xc]
call fcn.1002ee90
mov eax, dword [esi + 0x10]
test eax, eax
je 0x100508ea
mov dword [eax], edi
add dword [esi + 0x10], 4
mov edi, dword [sym.imp.MSVCR120.dll_swprintf_s]
mov esi, dword [ebp - 0x888]
lea eax, [ebp - 0x87c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x100507c4
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100944ae
mov esp, ebp
pop ebp
ret 4