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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x10222a8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov eax, ecx
mov ecx, dword [ebp + 8]
push 0x2001f
push ecx
push dword [eax]
xor esi, esi
mov dword [ebp - 0x21c], ecx
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x20c], esi
call fcn.01003c5a
mov edi, eax
cmp edi, esi
je 0x100b5d6
lea ecx, [ebp - 0x214]
call fcn.01003be7
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0100f77f
leave
ret 4
mov edi, dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegEnumKeyExW]
jmp 0x100b5f4
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x214]
call fcn.0100b564
cmp eax, esi
jne 0x100b63f
lea eax, [ebp - 0x224]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push dword [ebp - 0x214]
mov dword [ebp - 0x208], 0x100
call edi
test eax, eax
je 0x100b5de
lea ecx, [ebp - 0x214]
call fcn.01003be7
push dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x218]
call fcn.0100ae82
lea ecx, [ebp - 0x214]
mov esi, eax
call fcn.01003be7
mov eax, esi
jmp 0x100b5c6
Function at 0x100caf7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x101cd04
call fcn.0100f9eb
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
xor esi, esi
mov dword [ebp - 0x424], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x418], esi
push 2
push esi
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.API_MS_Win_Core_LibraryLoader_L1_1_0.dll_LoadLibraryExW]
mov dword [ebp - 0x41c], eax
cmp eax, esi
jne 0x100cb50
call fcn.0100ad68
mov esi, eax
jmp 0x100cc59
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x100cb69
call fcn.0100ad68
jmp 0x100cc4b
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.API_MS_Win_Core_LibraryLoader_L1_1_0.dll_LoadResource]
mov dword [ebp - 0x428], eax
cmp eax, esi
je 0x100cb5f
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.API_MS_Win_Core_LibraryLoader_L1_1_0.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
mov dword [ebp - 0x420], edi
cmp eax, edi
jae 0x100cbcf
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x100cbb5
lea ecx, [ebp - 0x418]
call fcn.0100b503
mov esi, 0x8007000e
lea ecx, [ebp - 0x424]
call fcn.0100464a
mov eax, esi
call fcn.0100fa56
ret 0x10
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.0100be55
mov dword [ebp - 4], 1
jmp 0x100cbfd
cmp dword [ebp - 0x418], esi
jne 0x100cc0c
mov esi, 0x8007000e
jmp 0x100cc4d
push edi
push dword [ebp - 0x418]
push edi
push dword [ebp - 0x428]
push esi
push 3
call dword [sym.imp.API_MS_Win_Core_String_L1_1_0.dll_MultiByteToWideChar]
cmp eax, esi
je 0x100cb5f
mov edx, dword [ebp - 0x418]
push dword [ebp + 0x14]
xor ecx, ecx
mov word [edx + eax*2], cx
push dword [ebp - 0x418]
lea ecx, [ebp - 0x430]
call fcn.0100c9ba
mov esi, eax
push dword [ebp - 0x41c]
call dword [sym.imp.API_MS_Win_Core_LibraryLoader_L1_1_0.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x100cbba
lea ecx, [ebp - 0x418]
call fcn.0100b503
jmp 0x100cbba

Function at 0x100ec0f
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x10222a8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call fcn.0100eba4
mov eax, 0x1000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x98]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.API_MS_Win_Core_SysInfo_L1_1_0.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
jne 0x100ec82
cmp dword [ebp - 0x94], 5
jb 0x100eca3
jmp 0x100ec9f
cmp dword [ebp - 0x88], 1
jne 0x100eca3
cmp dword [ebp - 0x94], 4
ja 0x100ec9f
jne 0x100eca3
cmp dword [ebp - 0x90], 0
jbe 0x100eca3
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x1002210
call fcn.01003b33
test eax, eax
jge 0x100ecc4
mov byte [0x1022638], 1
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0100f77f
leave
ret
Function at 0x100f2c0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x10227dc], 0
push esi
jne 0x100f22e
call fcn.0100f125
test eax, eax
je 0x100f271
mov eax, dword [0x10227dc]
cmp eax, 1
jne 0x100f24f
push 0xd
push 0
call dword [sym.imp.API_MS_Win_Core_Heap_L1_1_0.dll_GetProcessHeap]
push eax
call dword [sym.imp.API_MS_Win_Core_Heap_L1_1_0.dll_HeapAlloc]
test eax, eax
je 0x100f271
pop esi
ret
push eax
call dword [0x10227e4]
test eax, eax
jne 0x100f2b9
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.API_MS_Win_Core_Memory_L1_1_0.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x100f275
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x10227dc]
call dword [0x10227e4]
mov edi, eax
test edi, edi
je 0x100f29a
push 0x8000
push 0
push esi
call dword [sym.imp.API_MS_Win_Core_Memory_L1_1_0.dll_VirtualFree]
jmp 0x100f2b6
mov edi, esi
add esi, 0xff0
push edi
push dword [0x10227dc]
call dword [0x10227e0]
add edi, 0x10
cmp edi, esi
jb 0x100f2a2
mov eax, edi
pop edi
pop esi
ret
jmp 0x100f21b
Function at 0x100f654
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x101e7e0
call fcn.0100f6a4
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.API_MS_Win_Core_ProcessThreads_L1_1_0.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x1022bc0
push ebx
push esi
push edi
call dword [sym.imp.API_MS_Win_Core_Interlocked_L1_1_0.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x100f40f
cmp eax, esi
jne 0x100f402
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x100f412
push 0x3e8
call dword [sym.imp.API_MS_Win_Core_Misc_L1_1_0.dll_Sleep]
jmp 0x100f3e9
xor esi, esi
inc esi
mov eax, dword [0x1022bbc]
cmp eax, esi
jne 0x100f425
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x100f454
mov eax, dword [0x1022bbc]
test eax, eax
jne 0x100f44e
mov dword [0x1022bbc], esi
push 0x10014dc
push 0x10014d0
call fcn.0100f34b
pop ecx
pop ecx
test eax, eax
je 0x100f454
jmp 0x100f578
mov dword [0x1022808], esi
mov eax, dword [0x1022bbc]
cmp eax, esi
jne 0x100f478
push 0x10014cc
push 0x10014a4
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x1022bbc], 2
cmp dword [ebp - 0x20], ebx
jne 0x100f485
push ebx
push edi
call dword [sym.imp.API_MS_Win_Core_Interlocked_L1_1_0.dll_InterlockedExchange]
cmp dword [0x1022bcc], ebx
je 0x100f4a6
push 0x1022bcc
call fcn.0100fdc9
pop ecx
test eax, eax
je 0x100f4a6
push ebx
push 2
push ebx
call dword [0x1022bcc]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x100f578
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x100f510
cmp cx, bx
je 0x100f4cb
cmp dword [ebp - 0x1c], ebx
jne 0x100f510
movzx ecx, word [eax]
cmp cx, bx
je 0x100f4e0
cmp cx, 0x20
ja 0x100f4e0
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x100f4cb
test byte [ebp - 0x40], 1
je 0x100f4ec
movzx ecx, word [ebp - 0x3c]
jmp 0x100f4ef
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call main
mov dword [0x1022804], eax
cmp dword [0x10227f8], ebx
jne 0x100f555
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x100f521
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x100f4b5
cmp dword [0x1022808], ebx
jne 0x100f563
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1022804]
jmp 0x100f584
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.0100f6e9
ret
call fcn.0100ff16
jmp 0x100f3ac
Function at 0x1010cfd
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
xor ebx, ebx
push edi
mov esi, ecx
mov edi, 0x1001914
cmp dword [0x102268c], ebx
je 0x1010d3d
mov al, byte [0x1022690]
cmp al, 4
jae 0x1010d26
cmp al, bl
jne 0x1010d3d
push edi
push 0x1001978
push dword [0x1022664]
push dword [0x1022660]
call fcn.010100dd
mov eax, dword [ebp + 8]
mov dword [esi + 0x58], eax
mov al, byte [ebp + 0xc]
mov byte [esi + 0x1c], al
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x28]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov byte [esi + 0x28], al
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov byte [esi + 0x29], al
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
mov byte [esi + 0x2a], al
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x24]
mov dword [esi + 0x2c], eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x38]
push ebx
push ebx
push esi
push 0x1010668
push ebx
push ebx
mov byte [esi + 0x1d], bl
mov dword [esi + 0x20], ebx
call dword [sym.imp.API_MS_Win_Core_ProcessThreads_L1_1_0.dll_CreateThread]
mov dword [esi + 0x24], eax
cmp eax, ebx
jne 0x1010dce
cmp dword [0x102268c], ebx
je 0x1010dc7
mov al, byte [0x1022690]
cmp al, 4
jae 0x1010db0
cmp al, bl
jne 0x1010dc7
push edi
push 0x1001988
push dword [0x1022664]
push dword [0x1022660]
call fcn.010100dd
mov eax, 0x80004005
jmp 0x1010e43
push ebx
push ecx
mov eax, esp
push ebx
push ebx
push 0x10026d0
push ecx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov dword [eax], ebx
mov eax, esp
lea ecx, [ebp - 0x10]
mov dword [eax], ecx
push ebx
lea ecx, [esi + 0x8c]
call fcn.01010ca3
push 0xfa0
lea eax, [esi + 0x68]
push eax
call dword [sym.imp.API_MS_Win_Core_Synch_L1_1_0.dll_InitializeCriticalSectionAndSpinCount]
test eax, eax
je 0x1010dc7
mov byte [esi + 0x80], 1
cmp dword [0x102268c], ebx
je 0x1010e41
mov al, byte [0x1022690]
cmp al, 4
jae 0x1010e2a
cmp al, bl
jne 0x1010e41
push edi
push 0x1001988
push dword [0x1022664]
push dword [0x1022660]
call fcn.010100dd
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x1010f30
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
push esi
lea eax, [ebp + 0xc]
push eax
push esi
push 0x20106
push esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCreateKeyExW]
cmp eax, esi
jne 0x1010f85
push edi
push 4
push dword [ebp + 0x14]
push 4
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegSetValueExW]
push dword [ebp + 0xc]
mov edi, eax
cmp edi, esi
je 0x1010f7e
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
mov eax, edi
jmp 0x1010f84
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
pop edi
pop esi
pop ebp
ret 0x10
Function at 0x1010f8f
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x20119
push 0
push dword [ebp + 0xc]
mov dword [ebp - 8], 4
push dword [ebp + 8]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x1010ff9
push ebx
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x14]
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
mov ebx, eax
test ebx, ebx
jne 0x1010fed
cmp dword [ebp + 0xc], 4
jne 0x1010fed
push dword [ebp - 4]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
jmp 0x1010ff8
push dword [ebp - 4]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
mov eax, ebx
pop ebx
leave
ret 0x10

Function at 0x1011002
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x18]
mov dword [ebp - 4], 4
test esi, esi
jne 0x101101c
push 6
pop eax
jmp 0x101107b
push edi
mov edi, dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x14]
lea eax, [ebp + 0x18]
push eax
push 0
push dword [ebp + 0x10]
push dword [esi]
call edi
test eax, eax
jne 0x1011041
cmp dword [ebp + 0x18], 4
je 0x101107a
push dword [esi]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
push esi
push 0x20119
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
test eax, eax
je 0x1011066
and dword [esi], 0
jmp 0x101107a
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x14]
lea eax, [ebp + 0x18]
push eax
push 0
push dword [ebp + 0x10]
push dword [esi]
call edi
pop edi
pop esi
leave
ret 0x14
Function at 0x10121a5
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x10222a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegGetValueW]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0xc]
xor ecx, ecx
push edi
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x4c], eax
mov edi, 0x80000001
inc ecx
push ecx
push dword [0x10223d4]
lea eax, [ebp - 0x44]
push 0x20
push eax
mov dword [ebp - 0x58], ecx
call fcn.01012102
add esp, 0x10
lea eax, [ebp - 0x50]
push eax
xor ebx, ebx
push ebx
push ebx
push 2
lea eax, [ebp - 0x44]
push eax
push dword [0x10223d0]
push edi
call esi
test eax, eax
jne 0x101224f
mov eax, dword [ebp - 0x50]
shr eax, 1
push eax
push ebx
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov ebx, eax
test ebx, ebx
je 0x101224f
lea eax, [ebp - 0x50]
push eax
push ebx
push 0
push 2
lea eax, [ebp - 0x44]
push eax
push dword [0x10223d0]
push edi
call esi
push ebx
test eax, eax
jne 0x1012249
mov ecx, dword [ebp - 0x4c]
call fcn.010120d3
inc dword [ebp - 0x48]
add dword [ebp - 0x4c], 4
jmp 0x101224f
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [ebp - 0x58]
cmp ecx, 5
jb 0x10121d6
mov ecx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x48]
mov dword [ecx], eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100f77f
leave
ret 8
Function at 0x101255a
Capabilities:
Access the windows event log

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 8], edi
jne 0x1012584
push 0x10028d4
push edi
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov dword [esi + 8], eax
cmp eax, edi
je 0x101262a
cmp dword [esi + 0xc], edi
jne 0x10125d4
push ebx
lea ebx, [esi + 0x60]
push ebx
push 0x20008
call dword [sym.imp.API_MS_Win_Core_ProcessThreads_L1_1_0.dll_GetCurrentProcess]
push eax
call dword [sym.imp.API_MS_Win_Core_ProcessThreads_L1_1_0.dll_OpenProcessToken]
test eax, eax
je 0x10125cd
lea eax, [ebp - 4]
push eax
push 0x50
lea edi, [esi + 0x10]
push edi
push 1
push dword [ebx]
call dword [sym.imp.API_MS_Win_Security_Base_L1_1_0.dll_GetTokenInformation]
test eax, eax
je 0x10125c3
mov eax, dword [edi]
mov dword [esi + 0xc], eax
jmp 0x10125c9
call dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
xor edi, edi
jmp 0x10125d3
call dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
pop ebx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
shr eax, 0x1e
sub eax, edi
je 0x10125ff
dec eax
je 0x10125fa
dec eax
je 0x10125f6
dec eax
xor eax, eax
inc eax
jmp 0x1012601
push 2
jmp 0x10125fc
push 4
pop eax
jmp 0x1012601
xor eax, eax
push edi
lea ecx, [ebp - 0xc]
push ecx
push edi
push 2
push dword [esi + 0xc]
push dword [ebp + 8]
push dword [ebp + 0xc]
push eax
push dword [esi + 8]
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
test eax, eax
je 0x1012624
xor eax, eax
jmp 0x101262f
call dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
mov eax, 0x80004005
pop edi
pop esi
leave
ret 0x10

Function at 0x1012860
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
push edi
test esi, esi
je 0x1012882
cmp dword [ebp + 0x14], 0
je 0x1012882
push dword [ebp + 0x14]
push 0
push esi
call sub.msvcrt.dll_memset
add esp, 0xc
mov edi, dword [ebp + 8]
test edi, edi
je 0x10128c8
mov eax, dword [ebp + 0xc]
test eax, eax
jbe 0x10128c8
test esi, esi
je 0x10128c8
cmp dword [ebp + 0x14], 0x10
jne 0x10128c8
shr eax, 3
mov edx, eax
xor ecx, ecx
test edx, edx
jbe 0x10128c4
push ebx
lea eax, [edi + ecx*8]
mov ebx, dword [eax]
xor dword [esi], ebx
mov ebx, dword [eax + 4]
xor dword [esi + 4], ebx
mov ebx, dword [eax]
add dword [esi + 8], ebx
mov eax, dword [eax + 4]
adc dword [esi + 0xc], eax
inc ecx
cmp ecx, edx
jb 0x10128a6
pop ebx
xor eax, eax
jmp 0x10128cd
mov eax, 0x80070057
pop edi
pop esi
pop ebp
ret 0x10
Function at 0x1012ba3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
cmp edi, ebx
je 0x1012bbd
push edi
call dword [sym.imp.OLEAUT32.dll_VariantClear]
push dword [ebp + 8]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
jbe 0x1012ca3
cmp edi, ebx
je 0x1012ca3
push 0x1002924
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll__wfopen]
pop ecx
pop ecx
mov dword [ebp - 4], eax
cmp eax, ebx
jne 0x1012bf7
mov eax, 0x80004005
jmp 0x1012ca8
push 0x38
lea eax, [ebp - 0x3c]
push ebx
push eax
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x3c]
push eax
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll__wstat64]
mov eax, dword [ebp - 0x24]
add esp, 0x14
cmp dword [ebp - 0x20], ebx
jl 0x1012c22
jg 0x1012bed
cmp eax, 0xffffffff
ja 0x1012bed
push esi
push eax
push ebx
push 0x11
mov dword [ebp + 8], eax
call dword [sym.imp.OLEAUT32.dll_SafeArrayCopyData]
mov esi, eax
test esi, esi
jne 0x1012c3b
mov ebx, 0x8007000e
and dword [ebp + 0xc], 0
test ebx, ebx
jl 0x1012c84
lea eax, [ebp + 0xc]
push eax
push esi
call dword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
mov ebx, eax
test ebx, ebx
jl 0x1012c84
cmp dword [ebp + 0xc], 0
je 0x1012c84
push dword [ebp - 4]
push dword [ebp + 8]
push 1
push dword [ebp + 0xc]
call dword [sym.imp.msvcrt.dll_fread]
add esp, 0x10
mov eax, 0x2011
push esi
mov word [edi], ax
mov dword [edi + 8], esi
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
mov ebx, eax
jmp 0x1012c94
push esi
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetDim]
test ebx, ebx
jl 0x1012c94
mov ebx, 0x8007000e
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_fclose]
pop ecx
mov eax, ebx
pop esi
jmp 0x1012ca8
mov eax, 0x80070057
pop edi
pop ebx
leave
ret 8
Function at 0x1013fdd
Capabilities:
Delete registry value

Disassembly:
push 0x43c
mov eax, 0x101d18f
call fcn.0100f9b0
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
xor esi, esi
mov dword [ebp - 0x444], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x440], esi
mov dword [ebp - 0x43c], esi
mov dword [ebp - 0x438], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x434], esi
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x42c], esi
xor eax, eax
mov edi, 0x206
push edi
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push esi
push eax
call sub.msvcrt.dll_memset
xor eax, eax
push edi
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push esi
push eax
call sub.msvcrt.dll_memset
mov edi, dword [sym.imp.msvcrt.dll__itow]
push 0x10
lea eax, [ebp - 0x420]
push eax
push dword [ebp + 0x14]
call edi
push 0x10
lea eax, [ebp - 0x218]
push eax
push dword [ebp + 8]
call edi
add esp, 0x30
mov dword [ebp - 0x424], esi
mov dword [ebp - 0x448], esi
lea eax, [ebp - 0x424]
push eax
push ebx
mov byte [ebp - 4], 3
call fcn.0101280a
mov edi, eax
cmp edi, esi
jl 0x101415b
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x424]
call fcn.01013f98
mov edi, eax
cmp edi, esi
jl 0x101415b
push 0x20106
lea eax, [ebp - 0x440]
push eax
push dword [ebp - 0x444]
call fcn.01017641
mov edi, eax
cmp edi, esi
jl 0x101415b
push esi
push esi
push 0x2011f
push esi
push esi
lea eax, [ebp - 0x420]
push eax
push dword [ebp - 0x440]
lea ecx, [ebp - 0x434]
call fcn.01003c05
mov ebx, 0x80004005
test eax, eax
je 0x101410e
mov edi, ebx
cmp edi, esi
jl 0x101415b
push dword [ebp - 0x428]
call fcn.010127e0
test eax, eax
jbe 0x101413c
push 1
push dword [ebp - 0x428]
lea ecx, [ebp - 0x434]
push dword [ebp - 0x424]
call fcn.01003c96
jmp 0x1014155
push dword [ebp - 0x424]
push dword [ebp - 0x434]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegDeleteValueW]
cmp eax, 2
jne 0x1014155
xor eax, eax
cmp eax, esi
je 0x101415b
mov edi, ebx
push esi
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
push dword [ebp - 0x424]
call esi
lea ecx, [ebp - 0x434]
call fcn.01003be7
lea ecx, [ebp - 0x440]
call fcn.01003be7
mov eax, edi
call fcn.0100fa42
ret 0x14
Function at 0x1014191
Capabilities:
Delete file
Delete registry value
Query environment variable

Disassembly:
push 0x648
mov eax, 0x101d1e8
call fcn.0100f9b0
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x634], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x63c], eax
mov dword [ebp - 0x654], ebx
mov dword [ebp - 0x650], ebx
mov dword [ebp - 0x64c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x648], ebx
mov dword [ebp - 0x644], ebx
mov dword [ebp - 0x640], ebx
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp - 0x628], ax
lea eax, [ebp - 0x626]
push ebx
push eax
call sub.msvcrt.dll_memset
push 0x10
lea eax, [ebp - 0x628]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.msvcrt.dll__itow]
add esp, 0x18
mov dword [ebp - 0x630], ebx
mov dword [ebp - 0x638], ebx
lea eax, [ebp - 0x630]
push eax
push edi
mov byte [ebp - 4], 3
call fcn.0101280a
cmp eax, ebx
mov dword [ebp - 0x62c], eax
jl 0x10143c8
lea eax, [ebp - 0x638]
push eax
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
call fcn.01013ba1
cmp eax, ebx
mov dword [ebp - 0x62c], eax
jl 0x10143c8
push 0x20106
lea eax, [ebp - 0x654]
push eax
push dword [ebp - 0x634]
call fcn.01017641
cmp eax, ebx
mov dword [ebp - 0x62c], eax
jl 0x10143c8
push ebx
push ebx
push 0x2011f
push ebx
push ebx
lea eax, [ebp - 0x628]
push eax
push dword [ebp - 0x654]
lea ecx, [ebp - 0x648]
call fcn.01003c05
test eax, eax
je 0x10142ae
mov dword [ebp - 0x62c], 0x80004005
cmp dword [ebp - 0x62c], ebx
jl 0x10143c8
cmp byte [ebp + 0x20], bl
je 0x1014349
xor eax, eax
push esi
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x634]
push eax
lea eax, [ebp - 0x420]
push eax
push dword [ebp - 0x630]
mov edi, 0x104
lea ecx, [ebp - 0x648]
mov dword [ebp - 0x634], edi
call fcn.01013b16
test eax, eax
jne 0x1014349
push esi
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push edi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.API_MS_Win_Core_ProcessEnvironment_L1_1_0.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x1014349
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.API_MS_Win_Core_File_L1_1_0.dll_DeleteFileW]
push dword [ebp - 0x63c]
call fcn.010127e0
test eax, eax
jbe 0x1014373
push 2
push dword [ebp - 0x63c]
lea ecx, [ebp - 0x648]
push dword [ebp - 0x630]
call fcn.01003c96
jmp 0x101438c
push dword [ebp - 0x630]
push dword [ebp - 0x648]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegDeleteValueW]
cmp eax, 2
jne 0x101438c
xor eax, eax
cmp eax, ebx
je 0x101439a
mov dword [ebp - 0x62c], 0x80004005
cmp dword [ebp - 0x62c], ebx
jl 0x10143c8
push 1
push dword [ebp - 0x638]
lea ecx, [ebp - 0x648]
push 0x1002a80
call fcn.01003c96
test eax, eax
je 0x10143c8
mov dword [ebp - 0x62c], 0x80004005
push dword [ebp - 0x638]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
push dword [ebp - 0x630]
call esi
lea ecx, [ebp - 0x648]
call fcn.01003be7
lea ecx, [ebp - 0x654]
call fcn.01003be7
mov eax, dword [ebp - 0x62c]
call fcn.0100fa42
ret 0x1c