joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000bcf5
Capabilities:
Connect pipe
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 0x10]
push ebx
add eax, 0x10
push esi
push edi
mov dword [ebp - 4], eax
xor esi, esi
xor eax, eax
mov dword [ebp - 0x18], esi
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor ebx, ebx
push 8
stosd dword es:[edi], eax
pop edi
cmp dword [ebp + 0x14], esi
je 0x1000bdbe
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
inc ebx
add dword [ebp - 4], ebx
push dword [ebp - 4]
push esi
push dword [0x1002c0e0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x1000bde0
mov eax, dword [0x1002c1dc]
mov edi, dword [ebp + 0x10]
mov dword [esi + 4], eax
movzx eax, word [ebp + 8]
mov dword [esi], eax
lea eax, [ebx + edi]
mov dword [esi + 8], eax
mov dword [esi + 0xc], ebx
test ebx, ebx
je 0x1000bd79
push ebx
push dword [ebp + 0x14]
lea eax, [esi + 0x10]
push eax
call sub.ntdll.dll_memcpy
add esp, 0xc
cmp dword [ebp + 0xc], 0
je 0x1000bd94
test edi, edi
je 0x1000bd94
push edi
push dword [ebp + 0xc]
lea eax, [esi + ebx + 0x10]
push eax
call sub.ntdll.dll_memcpy
add esp, 0xc
push 1
lea eax, [ebp - 8]
push eax
push 0x10
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 4]
push esi
push dword [0x1002c194]
call dword [sym.imp.KERNEL32.dll_CallNamedPipeA]
test eax, eax
jne 0x1000bdcf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x1000bdd1
cmp dword [ebp + 8], 0x119
jne 0x1000bd31
xor eax, eax
jmp 0x1000bde2
xor edi, edi
push esi
push 0
push dword [0x1002c0e0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x1000be5b
Capabilities:
Create pipe
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0x1002c238
xor edi, edi
push edi
mov eax, pe_nt_image_headers32
push eax
push eax
push 0xff
push 4
push 0x40000003
push dword [0x1002c194]
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov esi, eax
cmp esi, 0xffffffff
je 0x1000bebe
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x1000bb3f
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
je 0x1000bead
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
jmp 0x1000bec6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1000bec6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, edi
pop edi
pop esi
leave
ret 4
Function at 0x1000c6e4
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 8]
mov dword [esp + 0xc], 1
cmp dword [edi + 0x28], ebx
jne 0x1000c70c
mov eax, dword [edi + 0x34]
test al, 0x40
je 0x1000c886
mov eax, dword [edi + 0x34]
test al, 1
je 0x1000c83c
mov eax, dword [edi + 0x34]
test al, 6
jne 0x1000c79c
mov eax, dword [edi + 0x34]
test al, 0x40
jne 0x1000c794
or dword [esp + 0xc], 0xffffffff
cmp dword [edi + 0x28], ebx
je 0x1000c7ad
mov ecx, dword [edi + 0x28]
mov eax, dword [edi + 4]
mov edx, dword [eax]
lea esi, [esp + 0xc]
push esi
mov esi, dword [edi + 0x24]
sub esi, ecx
add esi, dword [edi + 0x20]
push ecx
push esi
push eax
call dword [edx + 0x10]
mov esi, dword [ebp + 8]
mov eax, dword [esi + 4]
push ebx
push 0x4000
push dword [edi + 0x20]
push dword [esi]
call dword [eax + 4]
add esp, 0x10
cmp eax, ebx
mov dword [edi + 0x24], eax
jle 0x1000c76d
mov dword [edi + 0x28], eax
jmp 0x1000c78d
je 0x1000c784
mov eax, dword [0x1002bacc]
cmp eax, 0xffffffff
je 0x1000c787
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, ebx
je 0x1000c787
mov dword [edi + 0x2c], ebx
mov dword [edi + 0x24], ebx
mov dword [edi + 0x28], ebx
cmp dword [edi + 0x28], ebx
jne 0x1000c72f
jmp 0x1000c7a7
mov dword [edi + 0x2c], ebx
mov dword [edi + 0x28], ebx
jmp 0x1000c7a7
push edi
push esi
call fcn.1000c062
mov dword [esp + 0xc], eax
cmp dword [esp + 0xc], ebx
jge 0x1000c7b8
mov eax, dword [edi + 0x34]
test al, 0x40
je 0x1000c886
mov eax, dword [edi + 0xc]
cmp eax, ebx
je 0x1000c7d9
push eax
push dword [edi + 4]
call fcn.1000b670
cmp eax, 0xe8
jne 0x1000c7d9
or dword [esp + 0xc], 0xffffffff
jmp 0x1000c886
mov eax, dword [edi + 0x30]
push dword [edi + 0x38]
not eax
mov ebx, pe_nt_image_headers32
and eax, ebx
push eax
mov eax, dword [esi + 0x10]
mov esi, dword [edi + 0x40]
and eax, 0x80
push eax
push dword [edi + 0x18]
push dword [edi + 8]
push dword [edi + 4]
call fcn.10005bd2
mov dword [edi + 0x30], eax
or dword [edi + 0x30], ebx
mov eax, dword [edi + 4]
call fcn.10001468
test eax, eax
jne 0x1000c81a
cmp dword [edi + 0x2c], eax
jne 0x1000c820
push edi
call fcn.1000c2c8
mov eax, dword [edi + 0x30]
test al, 1
jne 0x1000c834
mov eax, dword [edi + 0x34]
test al, 2
jne 0x1000c886
cmp dword [edi + 0x2c], 0
jne 0x1000c886
push edi
call fcn.1000c2c8
jmp 0x1000c886
mov esi, dword [edi + 0x24]
mov eax, dword [edi + 0x28]
add esi, dword [edi + 0x20]
mov ebx, dword [edi]
mov ecx, ebx
mov dword [esp + 0x10], eax
sub esi, eax
call fcn.100080a2
mov edx, dword [ebx]
xor ecx, ecx
push ecx
push 2
mov dword [esp + 0x1c], eax
push ecx
xor eax, eax
push eax
push ebx
call dword [edx + 0x14]
mov eax, dword [ebx]
push 0
push dword [esp + 0x14]
push esi
push ebx
call dword [eax + 0x10]
mov eax, dword [ebx]
xor esi, esi
push esi
push esi
push esi
push dword [esp + 0x20]
push ebx
call dword [eax + 0x14]
mov dword [edi + 0x28], esi
mov eax, dword [esp + 0xc]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1000da7c
Capabilities:
Access pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
push dword [ebp + 8]
xor ebx, ebx
xor eax, eax
mov dword [esp + 0x18], ebx
call fcn.10012581
mov esi, eax
mov dword [esp + 0x18], esi
cmp esi, ebx
je 0x1000db21
mov dword [esp + 0x10], 0x57
push 0x20
push esi
call dword [sym.imp.SHLWAPI.dll_StrChrA]
mov edi, eax
cmp edi, ebx
je 0x1000dabc
mov byte [edi], bl
inc edi
push str.__t_r_n
push esi
call dword [sym.imp.SHLWAPI.dll_StrTrimA]
cmp byte [esi], bl
je 0x1000db08
push 1
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x1c]
push eax
mov eax, esi
call fcn.10003ba7
mov dword [esp + 0x10], eax
cmp eax, ebx
jne 0x1000db08
push dword [esp + 0x14]
call dword [sym.imp.ntdll.dll_RtlImageNtHeader]
cmp eax, ebx
je 0x1000db00
mov ecx, 0x14c
cmp word [eax + 4], cx
je 0x1000db0e
mov dword [esp + 0x10], 0xb
mov esi, edi
cmp edi, ebx
jne 0x1000daaa
push dword [esp + 0x18]
push ebx
push dword [0x1002c0e0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1000db29
mov dword [esp + 0x10], 8
cmp dword [esp + 0x10], ebx
jne 0x1000db97
push ebx
call fcn.10010432
mov edi, eax
cmp edi, ebx
je 0x1000db8f
push dword [esp + 0x1c]
xor eax, eax
push dword [esp + 0x18]
mov ecx, edi
push ebx
call fcn.10001962
mov dword [esp + 0x10], eax
cmp eax, ebx
jne 0x1000db7f
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push dword [0x1002c1f4]
mov esi, eax
inc esi
push esi
mov edx, edi
call fcn.10013bae
push 3
push esi
push edi
push 0x1002d202
call fcn.10003d51
mov dword [esp + 0x10], eax
push edi
push ebx
push dword [0x1002c0e0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1000db97
mov dword [esp + 0x10], 8
cmp dword [esp + 0x14], ebx
je 0x1000dbae
push dword [esp + 0x14]
push ebx
push dword [0x1002c0e0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x1000de9f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 8]
xor eax, eax
xor edi, edi
call fcn.10012581
mov esi, eax
cmp esi, edi
je 0x1000deee
lea eax, [ebp + 8]
push eax
push edi
push esi
push 0x1000de0b
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
je 0x1000ded6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1000def1
push esi
push edi
push dword [0x1002c0e0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x1000def1
push 8
pop edi
mov eax, edi
pop edi
pop esi
pop ebp
ret 4
Function at 0x1000e254
Capabilities:
Link many functions at runtime
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20410
call sub.ntdll.dll__chkstk
push ebx
xor ebx, ebx
xor eax, eax
cmp dword [ebp + 8], ebx
je 0x1000e38d
push esi
push edi
push 0xfffc
mov word [ebp - 0x10208], ax
lea eax, [ebp - 0x10206]
push ebx
push eax
call sub.ntdll.dll_memset
add esp, 0xc
push 0x7fff
lea eax, [ebp - 0x10208]
push eax
mov edi, 0x1002642c
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push dword [ebp + 8]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x10208]
push eax
lea eax, [ebp - 0x20410]
push str._ws__ws
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x20410]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push str.nss3.dll
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push str._ws_ws
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
cmp edi, ebx
je 0x1000e354
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NSS_Init
push edi
call esi
push str.NSS_Shutdown
push edi
mov dword [0x1002c464], eax
call esi
push str.PK11_GetInternalKeySlot
push edi
mov dword [0x1002c46c], eax
call esi
push str.PK11_FreeSlot
push edi
mov dword [0x1002c458], eax
call esi
push str.PK11_Authenticate
push edi
mov dword [0x1002c460], eax
call esi
push str.PK11SDR_Decrypt
push edi
mov dword [0x1002c468], eax
call esi
mov dword [0x1002c45c], eax
pop edi
pop esi
cmp dword [0x1002c464], ebx
je 0x1000e38b
cmp dword [0x1002c46c], ebx
je 0x1000e38b
cmp dword [0x1002c458], ebx
je 0x1000e38b
cmp dword [0x1002c468], ebx
je 0x1000e38b
cmp dword [0x1002c45c], ebx
je 0x1000e38b
cmp dword [0x1002c460], ebx
je 0x1000e38b
xor eax, eax
inc eax
jmp 0x1000e38d
xor eax, eax
pop ebx
leave
ret 4
Function at 0x1000e392
Capabilities:
Decode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1fbc
call sub.ntdll.dll__chkstk
push ebx
push esi
mov eax, 0x1fa0
push eax
mov dword [ebp - 4], eax
xor ebx, ebx
lea eax, [ebp - 0x1fbc]
push ebx
push eax
mov esi, 0x10026407
call sub.ntdll.dll_memset
add esp, 0xc
push ebx
push ebx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x1fbc]
push eax
push 1
push dword [ebp + 8]
call sub.ntdll.dll_strlen
pop ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
je 0x1000e477
push edi
call dword [0x1002c458]
mov edi, eax
cmp edi, ebx
je 0x1000e471
push ebx
push 1
push edi
call dword [0x1002c468]
add esp, 0xc
test eax, eax
jne 0x1000e462
lea eax, [ebp - 0x1fbc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
push ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
call dword [0x1002c45c]
add esp, 0xc
test eax, eax
jne 0x1000e45b
push dword [ebp - 8]
lea eax, [ebp - 0x1fbc]
push dword [ebp - 0xc]
push eax
call sub.ntdll.dll_memcpy
mov eax, dword [ebp - 8]
add esp, 0xc
mov byte [ebp + eax - 0x1fbc], bl
lea esi, [ebp - 0x1fbc]
jmp 0x1000e467
mov esi, str.Error_on_decryption_
jmp 0x1000e467
mov esi, str.Error_on_authenticate_
push edi
call dword [0x1002c460]
pop ecx
jmp 0x1000e476
mov esi, str.Get_Internal_Slot_error_
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x1000e71d
Capabilities:
Enumerate files on windows
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x888
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push edi
mov edi, 0x104
push edi
lea eax, [ebp - 0x884]
push eax
push str._PROGRAMFILES_
mov dword [ebp - 8], 2
call esi
lea eax, [ebp - 0x884]
push str.Mozilla_Thunderbird
push eax
call sub.ntdll.dll_wcscat
pop ecx
pop ecx
lea eax, [ebp - 0x884]
push eax
call fcn.1000e254
test eax, eax
je 0x1000e864
push edi
lea eax, [ebp - 0x67c]
push eax
push str._USERPROFILE_
call esi
lea eax, [ebp - 0x67c]
push str.AppDataRoamingThunderbirdProfiles
push eax
call sub.ntdll.dll_wcscat
pop ecx
pop ecx
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x67c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
test byte [ebp - 0x26c], 0x10
je 0x1000e84e
mov esi, str..default
lea edi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x1c]
push eax
movsw word es:[edi], word [esi]
call sub.ntdll.dll_wcslen
pop ecx
mov esi, eax
push esi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x240]
push eax
call sub.ntdll.dll_wcslen
sub eax, esi
pop ecx
lea eax, [ebp + eax*2 - 0x240]
push eax
call sub.ntdll.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x1000e84e
lea eax, [ebp - 0x67c]
push eax
lea eax, [ebp - 0x474]
push eax
call sub.ntdll.dll_wcscpy
lea eax, [ebp - 0x474]
push eax
call sub.ntdll.dll_wcslen
xor ecx, ecx
mov word [ebp + eax*2 - 0x476], cx
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x474]
push eax
call sub.ntdll.dll_wcscat
add esp, 0x14
push dword [ebp + 8]
lea eax, [ebp - 0x474]
push eax
call fcn.1000e47f
test eax, eax
je 0x1000e84e
and dword [ebp - 8], 0
lea eax, [ebp - 0x26c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1000e7a9
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x1000e86e
Capabilities:
Accept command line arguments
Terminate process
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
xor esi, esi
push edi
mov dword [esp + 0x14], esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [esp + 0x14]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [esp + 0x14], 3
mov edi, eax
jne 0x1000e99e
push str.CBmWzIJQqV
push dword [edi + 4]
call sub.ntdll.dll_wcscmp
pop ecx
pop ecx
test eax, eax
jne 0x1000e99e
lea eax, [esp + 0x18]
push eax
call fcn.10012cbf
test eax, eax
je 0x1000e997
lea eax, [esp + 0xc]
push eax
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x1000e984
push dword [esp + 0xc]
call fcn.1000e71d
test eax, eax
jne 0x1000e97a
push esi
push 0x80
push 2
push esi
push 3
push 0xc0000000
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1000e97a
mov eax, dword [esp + 0xc]
call fcn.10001468
mov dword [esp + 0x10], eax
cmp eax, esi
je 0x1000e96c
push eax
call fcn.100012ea
mov edi, eax
cmp edi, esi
je 0x1000e96c
mov eax, dword [esp + 0xc]
mov edx, dword [eax]
push esi
push esi
push esi
xor ecx, ecx
push ecx
push eax
mov dword [esp + 0x38], esi
call dword [edx + 0x14]
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push dword [esp + 0x14]
push edi
push eax
call dword [ecx + 0xc]
push esi
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x18]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call fcn.100012ff
push ebx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [esp + 0x18], esi
je 0x1000e991
cmp dword [esp + 0x18], 1
jne 0x1000e997
call dword [sym.imp.ole32.dll_CoUninitialize]
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000f084
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
lea eax, [ebp - 8]
push eax
push str.SoftwareMicrosoftWABDLLPath
xor edi, edi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, eax
cmp esi, edi
jne 0x1000f157
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
push ebx
lea eax, [ebp - 4]
push eax
push edi
push edi
push dword [ebp - 8]
call esi
cmp dword [ebp - 4], edi
je 0x1000f14a
push dword [ebp - 4]
call fcn.100012ea
mov ebx, eax
mov dword [ebp - 0xc], ebx
cmp ebx, edi
je 0x1000f14a
lea eax, [ebp - 4]
push eax
push ebx
push edi
push dword [ebp - 8]
call esi
mov esi, eax
cmp esi, edi
jne 0x1000f140
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
cmp ebx, edi
je 0x1000f138
push 0x1002e2be
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x1000f128
push edi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call eax
test eax, eax
jne 0x1000f11e
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x1000f140
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1000f12b
push 0x7f
pop esi
cmp esi, edi
je 0x1000f140
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1000f140
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push dword [ebp - 0xc]
call fcn.100012ff
jmp 0x1000f14d
push 8
pop esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
pop edi
mov eax, esi
pop esi
leave
ret 0xc
Function at 0x1000f3c7
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push edi
push 0x57
pop ebx
xor eax, eax
push 6
pop ecx
lea edi, [ebp - 0x28]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x2c], eax
cmp edx, 0x129803f0
je 0x1000f43c
cmp edx, 0x132e03f0
je 0x1000f42c
cmp edx, 0x13c403f0
je 0x1000f41c
cmp edx, 0x142803f0
jne 0x1000f5c0
mov dword [ebp + 0x10], 0x1002e2aa
mov dword [ebp - 0x14], 0x19
jmp 0x1000f44a
mov dword [ebp + 0x10], 0x1002e2af
mov dword [ebp - 0x14], 0x6e
jmp 0x1000f44a
mov dword [ebp + 0x10], 0x1002e2a1
mov dword [ebp - 0x14], 0x50
jmp 0x1000f44a
mov dword [ebp + 0x10], 0x1002e2b4
mov dword [ebp - 0x14], 0x8f
mov edi, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push 0x1002e330
push edi
push esi
call fcn.1000f36c
mov dword [ebp - 0x24], eax
test eax, eax
je 0x1000f5bf
push 0x1002e337
push edi
push esi
call fcn.1000f36c
push 0x1002e350
push edi
push esi
mov dword [ebp - 0x20], eax
call fcn.1000f36c
push 0x1002e34b
push edi
push esi
mov dword [ebp - 0x18], eax
call fcn.1000f36c
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
test esi, esi
je 0x1000f4e3
push esi
call edi
lea eax, [eax + eax + 6]
push eax
call fcn.100012ea
mov ebx, eax
test ebx, ebx
je 0x1000f4d8
push 0x1002e570
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x14]
push eax
push 1
push ebx
call dword [sym.imp.SHLWAPI.dll_StrToIntExW]
push ebx
call fcn.100012ff
push esi
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
jmp 0x1000f4e9
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push 0x1002e341
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.1000f36c
mov ebx, eax
test ebx, ebx
je 0x1000f587
push ebx
call edi
cmp eax, 1
jbe 0x1000f587
shr eax, 1
push eax
mov dword [ebp - 0x10], eax
call fcn.100012ea
xor edi, edi
mov dword [ebp - 0xc], eax
cmp eax, edi
je 0x1000f584
mov ecx, ebx
call fcn.100123d4
test eax, eax
je 0x1000f57c
lea eax, [ebp - 8]
push eax
push edi
push edi
push edi
push dword [ebp + 0x18]
lea eax, [ebp - 0x10]
push edi
push eax
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x1000f57c
mov eax, dword [ebp - 8]
add eax, 2
push eax
call fcn.100012ea
mov dword [ebp - 0x1c], eax
cmp eax, edi
je 0x1000f573
push dword [ebp - 8]
push dword [ebp - 4]
push eax
call sub.ntdll.dll_memcpy
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
shr eax, 1
add esp, 0xc
xor ecx, ecx
mov word [edx + eax*2], cx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0xc]
call fcn.100012ff
push ebx
call esi
push dword [ebp + 0x10]
lea eax, [ebp - 0x2c]
push dword [ebp + 8]
call fcn.1000e9e0
xor edi, edi
mov ebx, eax
cmp dword [ebp - 0x1c], edi
je 0x1000f5a6
push dword [ebp - 0x1c]
call fcn.100012ff
cmp dword [ebp - 0x18], edi
je 0x1000f5b0
push dword [ebp - 0x18]
call esi
cmp dword [ebp - 0x20], edi
je 0x1000f5ba
push dword [ebp - 0x20]
call esi
push dword [ebp - 0x24]
call esi
pop esi
pop edi
mov eax, ebx
pop ebx
leave
ret 0x14
Function at 0x1000faa6
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 0x208
call fcn.100012ea
xor ebx, ebx
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], ebx
cmp eax, ebx
jne 0x1000facd
push 8
pop eax
jmp 0x1000fb9a
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0xc]
push ecx
push eax
push ebx
push dword [ebp + 8]
mov edi, 0x104
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], edi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
lea esi, [edi - 1]
jmp 0x1000fb30
cmp eax, ebx
jne 0x1000fb13
push 0x1002e780
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
push eax
push 0x1002e780
push dword [ebp - 8]
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
je 0x1000fb36
inc dword [ebp - 4]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
mov dword [ebp - 0xc], edi
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, esi
jne 0x1000faf0
jmp 0x1000fb41
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1000f7a9
push edi
push dword [ebp - 8]
mov dword [ebp - 4], ebx
push ebx
jmp 0x1000fb83
lea eax, [ebp - 0x10]
push eax
push 0x20019
push ebx
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000fb70
push dword [ebp + 0xc]
push dword [ebp - 0x10]
call fcn.1000faa6
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 4]
push edi
push dword [ebp - 8]
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
cmp eax, esi
jne 0x1000fb4b
push dword [ebp - 8]
call fcn.100012ff
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x1000fcd7
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp + 8]
xor edi, edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x1000fd56
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, ebx
jne 0x1000fd18
mov esi, 0xe8
jmp 0x1000fd5e
lea eax, [esi + 1]
push eax
call fcn.100012ea
mov edi, eax
cmp edi, ebx
je 0x1000fd56
push ebx
lea eax, [ebp - 4]
push eax
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000fd56
cmp esi, dword [ebp - 4]
je 0x1000fd45
push 0x1e
pop esi
jmp 0x1000fd5e
mov eax, dword [ebp + 0xc]
mov byte [esi + edi], bl
mov dword [eax], edi
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
xor esi, esi
jmp 0x1000fd5e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp dword [ebp + 8], 0xffffffff
je 0x1000fd6d
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebx
je 0x1000fd7b
cmp esi, ebx
je 0x1000fd7b
push edi
call fcn.100012ff
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc