joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000c270
Capabilities:
Terminate process
Terminate thread

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x24]
push 0
push eax
mov dword [esi], 0x10093414
call edi
mov ecx, dword [esi + 0x1c]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edx, dword [esi + 0x20]
push 0
push edx
call edi
mov eax, dword [esi + 0x28]
push 0x7d0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esi + 0x28]
push 0
push ecx
call edi
mov eax, dword [esi + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
test eax, eax
je 0x1000c2c3
push eax
call edi
mov eax, dword [esi + 0x10]
test eax, eax
je 0x1000c2cd
push eax
call edi
mov eax, dword [esi + 0x14]
test eax, eax
je 0x1000c2d7
push eax
call edi
mov eax, dword [esi + 0x18]
test eax, eax
je 0x1000c2e1
push eax
call edi
mov edx, dword [esi + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov eax, dword [esi + 0x10]
push eax
call edi
mov ecx, dword [esi + 0x14]
push ecx
call edi
mov edx, dword [esi + 0x18]
push edx
call edi
mov eax, dword [esi + 0x1c]
push eax
call edi
mov ecx, dword [esi + 0x20]
push ecx
call edi
mov edx, dword [esi + 0x28]
push edx
call edi
mov eax, dword [esi + 0x24]
push eax
call edi
mov ecx, esi
call fcn.10008020
pop edi
pop esi
ret

Function at 0x1000c510
Capabilities:
Create thread

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
push esi
push 0
push 0
push 0
push 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x20]
lea ecx, [esp + 8]
push eax
mov eax, dword [esp + 0x20]
push ecx
push 0x1000c480
push edx
push eax
call dword [sym.imp.MSVCRT.dll__beginthreadex]
mov ecx, dword [esp + 0x28]
add esp, 0x18
mov esi, eax
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
add esp, 0x10
ret

Function at 0x1000c580
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
push ebx
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, str.ini.ini
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov edx, dword [esp + 0x118]
mov ecx, ebx
and ecx, 3
lea eax, [esp + 0xc]
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x11c]
push eax
push ecx
push edx
push 0x100d1a60
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
pop edi
pop esi
pop ebx
add esp, 0x104
ret
Function at 0x1000c610
Capabilities:
Get common file path
Read .ini file

Disassembly:
sub esp, 0x104
push ebx
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, str.ini.ini
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov edx, dword [esp + 0x120]
mov ecx, ebx
and ecx, 3
lea eax, [esp + 0xc]
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x124]
push eax
mov eax, dword [esp + 0x120]
push ecx
mov ecx, dword [esp + 0x120]
push edx
push eax
push ecx
push 0x100d1a60
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
pop edi
pop esi
pop ebx
add esp, 0x104
ret

Function at 0x1000c6e0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10093420
push 0x1000d4be
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x130
push ebx
push esi
push edi
push str.user32.dll
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call ebx
mov edi, eax
mov dword [ebp - 0x2c], edi
push str.GetThreadDesktop
push edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call esi
mov dword [ebp - 0x3c], eax
push str.GetUserObjectInformationA
push edi
call esi
mov dword [ebp - 0x20], eax
push str.SetThreadDesktop
push edi
call esi
mov dword [ebp - 0x140], eax
push str.CloseDesktop
push edi
call esi
mov dword [ebp - 0x38], eax
push str.kernel32.dll
call ebx
mov ebx, eax
mov dword [ebp - 0x30], ebx
push str.GetCurrentThreadId
push ebx
call esi
call eax
push eax
call dword [ebp - 0x3c]
mov esi, eax
mov dword [ebp - 0x28], 1
mov dword [ebp - 4], 0
lea eax, [ebp - 0x34]
push eax
push 0x100
lea ecx, [ebp - 0x13c]
push ecx
push 2
mov edx, dword [ebp + 8]
push edx
call dword [ebp - 0x20]
test eax, eax
jne 0x1000c799
mov dword [ebp - 0x28], eax
jmp 0x1000c7b0
mov eax, dword [ebp + 8]
push eax
call dword [ebp - 0x140]
test eax, eax
jne 0x1000c7ac
mov dword [ebp - 0x28], eax
jmp 0x1000c7b0
push esi
call dword [ebp - 0x38]
mov dword [ebp - 4], 0xffffffff
call fcn.1000c7d6
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000c830
Capabilities:
Enumerate processes

Disassembly:
push ebx
push ebp
push esi
push edi
push 0
push 2
call dword [0x100dd984]
push 0x128
mov edi, eax
call sub.MFC42.DLL_operatornew
add esp, 4
mov esi, eax
push esi
push edi
mov dword [esi], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x1000c8aa
mov ebp, dword [esp + 0x14]
lea ebx, [esi + 0x24]
push ebp
push ebx
call fcn.1000c7f0
add esp, 8
test eax, eax
jne 0x1000c888
mov edi, dword [esi + 8]
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x1000c8aa
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x1000c875
push esi
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x1000c893
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x1000ca70
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x414
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push str.wininet.dll
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], ebx
mov ebp, 1
mov byte [esp + 0x17], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push str.InternetOpenA
push esi
call edi
push ebx
push ebx
push ebx
push ebx
push str.MSIE_6.0
call eax
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x1c], ebx
je 0x1000cae2
push str.InternetOpenUrlA
push esi
call edi
mov ecx, dword [esp + 0x428]
push 0
push accept
push 0
push 0
push ecx
push ebx
call eax
mov ebx, eax
test ebx, ebx
jne 0x1000cafa
test esi, esi
je 0x1000caed
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x414
ret
mov edx, dword [esp + 0x42c]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
je 0x1000cb93
push 0x400
lea eax, [esp + 0x28]
push 0
push eax
call dword [0x100dda14]
add esp, 0xc
push str.InternetReadFile
push esi
call edi
lea ecx, [esp + 0x14]
lea edx, [esp + 0x24]
push ecx
push 0x400
push edx
push ebx
call eax
test ebp, ebp
je 0x1000cb5c
cmp word [esp + 0x24], 0x5a4d
jne 0x1000cb83
mov ecx, dword [esp + 0x14]
xor ebp, ebp
lea eax, [esp + 0x20]
push ebp
push eax
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x2c]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x14]
test eax, eax
jbe 0x1000cb88
jmp 0x1000cb20
mov byte [esp + 0x13], 0
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push str.InternetCloseHandle
push esi
call edi
mov edi, eax
push ebx
call edi
mov edx, dword [esp + 0x1c]
push edx
call edi
test esi, esi
je 0x1000cbba
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x414
ret
Function at 0x1000cbd0
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x24
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
push edi
push str.ADVAPI32.dll
mov byte [esp + 0x18], 1
call ebp
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push str.OpenProcessToken
push edi
call esi
push str.AdjustTokenPrivileges
push edi
mov ebx, eax
call esi
push str.LookupPrivilegeValueA
push edi
mov dword [esp + 0x24], eax
call esi
push str.kernel32.dll
mov dword [esp + 0x1c], eax
call ebp
push str.GetCurrentProcess
push eax
mov dword [esp + 0x28], eax
call esi
lea ecx, [esp + 0x10]
push ecx
push 0x28
call eax
push eax
call ebx
test eax, eax
jne 0x1000cc3e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
neg edx
lea eax, [esp + 0x28]
mov dword [esp + 0x24], 1
sbb edx, edx
push eax
and edx, 2
push ecx
push 0
mov dword [esp + 0x3c], edx
call dword [esp + 0x24]
mov eax, dword [esp + 0x10]
push 0
push 0
lea edx, [esp + 0x2c]
push 0x10
push edx
push 0
push eax
call dword [esp + 0x34]
push str.KERNEL32.dll
call ebp
push str.GetLastError
push eax
call esi
call eax
test eax, eax
je 0x1000cc95
mov byte [esp + 0x14], 0
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
je 0x1000ccad
push edi
call esi
mov eax, dword [esp + 0x20]
test eax, eax
je 0x1000ccb8
push eax
call esi
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
and eax, 0xff
pop ebx
add esp, 0x24
ret
Function at 0x1000e570
Capabilities:
Query environment variable

Disassembly:
push ecx
push ebx
push esi
push edi
mov edi, dword [esp + 0x14]
xor ebx, ebx
push edi
mov dword [edi + 4], ebx
call fcn.10010610
push 0x54
push edi
mov dword [esp + 0x18], eax
call fcn.100105a0
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x1000e5b4
push edi
call fcn.1000d2a0
mov eax, dword [edi]
push edi
mov dword [eax + 0x14], 0x36
mov ecx, dword [edi]
mov dword [ecx + 0x18], ebx
mov edx, dword [edi]
call dword [edx]
add esp, 8
mov dword [esi], fcn.1000e6b0
mov dword [esi + 4], fcn.1000e830
mov dword [esi + 8], fcn.1000e920
mov dword [esi + 0xc], fcn.1000e9f0
mov dword [esi + 0x10], 0x1000eaa0
mov dword [esi + 0x14], 0x1000eb10
mov dword [esi + 0x18], 0x1000eb80
mov dword [esi + 0x1c], 0x1000ed80
mov dword [esi + 0x20], 0x1000ef70
mov dword [esi + 0x24], fcn.1000f160
mov dword [esi + 0x28], 0x1000f260
mov dword [esi + 0x30], 0x3b9aca00
mov eax, dword [esp + 0xc]
mov ecx, 2
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x40]
mov dword [eax - 8], ebx
mov dword [eax], ebx
sub eax, 4
dec ecx
jne 0x1000e616
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], 0x54
push str.JPEGMEM
mov dword [edi + 4], esi
call sub.MSVCRT.dll_getenv
add esp, 4
cmp eax, ebx
je 0x1000e6a6
lea ecx, [esp + 0x14]
lea edx, [esp + 0xc]
push ecx
push edx
push str._ld_c
push eax
mov byte [esp + 0x24], 0x78
call sub.MSVCRT.dll_sscanf
add esp, 0x10
test eax, eax
jle 0x1000e6a6
mov al, byte [esp + 0x14]
cmp al, 0x6d
je 0x1000e66f
cmp al, 0x4d
jne 0x1000e693
mov eax, dword [esp + 0xc]
pop edi
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
mov dword [esi + 0x2c], eax
pop esi
pop ebx
pop ecx
ret
mov eax, dword [esp + 0xc]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
mov dword [esi + 0x2c], eax
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x1001e080
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x100d3844]
push esi
cmp eax, 0xffffffff
push edi
jne 0x1001e1c0
call fcn.10022e60
push str.JSIMD_FORCEMMX
mov dword [0x100d3844], eax
call sub.MSVCRT.dll_getenv
add esp, 4
test eax, eax
je 0x1001e0c4
mov esi, eax
mov edi, 0x100d38b0
mov ecx, 2
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x1001e0c4
and dword [0x100d3844], 1
push str.JSIMD_FORCE3DNOW
call sub.MSVCRT.dll_getenv
add esp, 4
test eax, eax
je 0x1001e0ee
mov edi, 0x100d38b0
mov esi, eax
mov ecx, 2
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x1001e0ee
and dword [0x100d3844], 3
push str.JSIMD_FORCESSE
call sub.MSVCRT.dll_getenv
add esp, 4
test eax, eax
je 0x1001e118
mov esi, eax
mov edi, 0x100d38b0
mov ecx, 2
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x1001e118
and dword [0x100d3844], 5
push str.JSIMD_FORCESSE2
call sub.MSVCRT.dll_getenv
add esp, 4
test eax, eax
je 0x1001e142
mov edi, 0x100d38b0
mov esi, eax
mov ecx, 2
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x1001e142
and dword [0x100d3844], 8
push str.JSIMD_FORCEAVX2
call sub.MSVCRT.dll_getenv
add esp, 4
test eax, eax
je 0x1001e16f
mov esi, eax
mov edi, 0x100d38b0
mov ecx, 2
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x1001e16f
and dword [0x100d3844], 0x80
push str.JSIMD_FORCENONE
call sub.MSVCRT.dll_getenv
add esp, 4
test eax, eax
je 0x1001e198
mov edi, 0x100d38b0
mov esi, eax
mov ecx, 2
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x1001e198
mov dword [0x100d3844], edx
push str.JSIMD_NOHUFFENC
call sub.MSVCRT.dll_getenv
add esp, 4
test eax, eax
je 0x1001e1c0
mov esi, eax
mov edi, 0x100d38b0
mov ecx, 2
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x1001e1c0
mov dword [0x100d3848], eax
pop edi
pop esi
ret
Function at 0x10038b10
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
push esi
mov esi, dword [esp + 0x2c]
cmp byte [esi + 2], 1
je 0x10038b28
mov eax, 0xfffffffc
pop esi
add esp, 0x24
ret
mov dword [esi + 4], 0x10305
mov dword [esi + 8], str.xvid_1.3.5
call fcn.10038a30
mov dword [esi + 0xc], eax
lea eax, [esp + 4]
push eax
mov dword [esi + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [esp + 0x18]
xor eax, eax
mov dword [esi + 0x10], ecx
pop esi
add esp, 0x24
ret

Function at 0x10050490
Capabilities:
Enumerate pe sections

Disassembly:
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
push edi
mov edi, 1
sub edi, edx
test eax, eax
jbe 0x1005057c
mov ecx, dword [esp + 0xc]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x14]
xor edx, edx
xor ebx, ebx
mov dl, byte [ecx]
mov bl, byte [esi]
mov ebp, edi
add ebp, edx
xor edx, edx
add ebx, ebp
mov ebp, edi
sar ebx, 1
mov byte [eax], bl
mov dl, byte [ecx + 1]
xor ebx, ebx
add ebp, edx
mov bl, byte [esi + 1]
xor edx, edx
add ebx, ebp
mov ebp, edi
sar ebx, 1
mov byte [eax + 1], bl
mov dl, byte [ecx + 2]
xor ebx, ebx
add ebp, edx
mov bl, byte [esi + 2]
xor edx, edx
add ebx, ebp
mov ebp, edi
sar ebx, 1
mov byte [eax + 2], bl
mov dl, byte [ecx + 3]
xor ebx, ebx
add ebp, edx
mov bl, byte [esi + 3]
xor edx, edx
add ebx, ebp
mov ebp, edi
sar ebx, 1
mov byte [eax + 3], bl
mov dl, byte [ecx + 4]
xor ebx, ebx
add ebp, edx
mov bl, byte [esi + 4]
xor edx, edx
add ebx, ebp
mov ebp, edi
sar ebx, 1
mov byte [eax + 4], bl
mov dl, byte [ecx + 5]
xor ebx, ebx
add ebp, edx
mov bl, byte [esi + 5]
xor edx, edx
add ebx, ebp
mov ebp, edi
sar ebx, 1
mov byte [eax + 5], bl
mov dl, byte [ecx + 6]
xor ebx, ebx
add ebp, edx
mov bl, byte [esi + 6]
xor edx, edx
add ebx, ebp
mov ebp, edi
sar ebx, 1
mov byte [eax + 6], bl
mov dl, byte [ecx + 7]
xor ebx, ebx
add ebp, edx
mov bl, byte [esi + 7]
mov edx, dword [esp + 0x20]
add ebx, ebp
add ecx, edx
sar ebx, 1
mov byte [eax + 7], bl
add eax, edx
add esi, edx
mov edx, dword [esp + 0x24]
dec edx
mov dword [esp + 0x24], edx
jne 0x100504bb
pop esi
pop ebp
pop ebx
pop edi
ret
Function at 0x10061fc0
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x10]
push ebx
lea eax, [eax + eax*2]
push ebp
xor ebp, ebp
push esi
lea eax, [eax + eax*4]
push edi
mov dword [esp + 0x10], ebp
lea ecx, [ecx + eax*2 + 0x20]
mov ax, word [edx]
imul ax, word [esp + 0x24]
cmp ax, 0xf800
mov word [ecx], ax
jge 0x10061ffa
mov eax, 0xfffff800
jmp 0x1006200a
cmp ax, 0x7ff
jle 0x10062007
mov eax, 0x7ff
jmp 0x1006200a
movsx eax, ax
mov edi, edx
mov word [ecx], ax
lea esi, [edx + 0x10]
lea eax, [ecx + 2]
sub edi, ecx
mov dword [esp + 0x20], esi
mov ecx, 7
mov bx, word [edi + eax]
add esi, 0x10
mov word [eax], bx
mov bx, word [esi - 0x10]
mov word [eax + 0xe], bx
add eax, 2
dec ecx
jne 0x10062020
mov edi, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
mov esi, 1
mov ax, word [edi]
sub word [edx], ax
mov eax, dword [esp + 0x1c]
cmp dword [ecx + eax*4 + 0xd4], esi
jne 0x100620a2
mov ebx, edx
lea esi, [edi + 2]
sub ebx, edi
mov edi, 7
mov cx, word [ebx + esi]
add esi, 2
movsx eax, cx
cdq
xor eax, edx
mov dword [esp + 0x18], ecx
sub cx, word [esi - 2]
sub eax, edx
add ebp, eax
movsx eax, cx
cdq
xor eax, edx
mov word [esi - 2], cx
sub eax, edx
mov edx, dword [esp + 0x10]
add edx, eax
dec edi
mov dword [esp + 0x10], edx
jne 0x10062064
pop edi
mov eax, ebp
mov ecx, edx
pop esi
pop ebp
sub eax, ecx
pop ebx
pop ecx
ret
mov ebx, dword [esp + 0x20]
mov dx, word [ebx]
add ebx, 0x10
mov cx, dx
mov dword [esp + 0x18], edx
movsx eax, cx
sub cx, word [edi + esi*2]
cdq
xor eax, edx
mov word [edi + esi*2], cx
sub eax, edx
add ebp, eax
movsx eax, cx
cdq
xor eax, edx
sub eax, edx
mov edx, dword [esp + 0x10]
add edx, eax
inc esi
cmp esi, 8
mov dword [esp + 0x10], edx
jb 0x100620a6
pop edi
mov eax, ebp
mov ecx, edx
pop esi
pop ebp
sub eax, ecx
pop ebx
pop ecx
ret
Function at 0x401a16
Capabilities:
Get number of processors

Disassembly:
mov ecx, 0x5048a8
jmp 0x401a0a
mov eax, 0x4c4adc
call fcn.00493f4c
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.00401b23
mov eax, dword [0x500260]
lea ecx, [esi + 0xa0]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ecx], eax
mov eax, dword [0x500260]
mov dword [esi + 0xa8], eax
push 1
mov dword [esi], 0x4cb9b4
pop eax
mov ebx, 0x5048a4
mov dword [esi + 0x1c], eax
push 0xa
mov dword [esi + 0x20], eax
or dword [esi + 0x28], 0xffffffff
or dword [esi + 0x24], 0xffffffff
pop edx
mov dword [esi + 0x30], edi
push ebx
mov byte [ebp - 4], 2
mov dword [esi + 0x2c], edi
mov dword [esi + 0x34], 2
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], 5
mov dword [esi + 0x60], eax
mov dword [esi + 0x64], edx
mov dword [esi + 0x68], eax
mov dword [esi + 0x6c], edx
mov dword [esi + 0x70], eax
mov dword [esi + 0x74], eax
mov dword [esi + 0x78], 0x3e8
mov dword [esi + 0x7c], eax
mov dword [esi + 0x80], eax
mov dword [esi + 0x84], eax
mov dword [esi + 0x88], edi
mov dword [esi + 0x8c], 0xc0
mov dword [esi + 0x90], 0x6c
mov dword [esi + 0x94], edi
mov dword [esi + 0x98], edi
mov dword [esi + 0x9c], edi
call fcn.004b3ed8
push ebx
lea ecx, [esi + 0xa8]
mov dword [esi + 0xa4], edi
call fcn.004b3ed8
mov ecx, dword [ebp - 0xc]
push 0x64
pop eax
mov dword [esi + 0xb4], edi
mov dword [esi + 0xac], eax
mov dword [esi + 0xb0], eax
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40aad8
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x4c57ec
call fcn.00493f4c
sub esp, 0x22c
push ebx
push esi
mov dword [ebp - 0x2c], ecx
mov esi, 0x504688
push str.DataFile_Types
mov ecx, esi
call fcn.004c265e
xor ebx, ebx
mov dword [ebp - 0x18], eax
cmp eax, ebx
jne 0x40ab0e
xor eax, eax
jmp 0x40ac56
mov eax, dword [0x500260]
push edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x38]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push eax
push ebx
push ebx
lea eax, [ebp - 0x24]
push ebx
push eax
lea eax, [ebp - 0x238]
mov byte [ebp - 4], 2
push eax
push ebx
push dword [ebp - 0x18]
mov dword [ebp - 0x24], pe_nt_image_headers32
mov dword [ebp - 0x20], ebx
call edi
cmp eax, 0x103
je 0x40ac26
lea eax, [ebp - 0x238]
push eax
push str.DataFile_Types
lea eax, [ebp - 0x10]
push 0x4eafc8
push eax
call fcn.004ac9f7
add esp, 0x10
lea eax, [ebp - 0x28]
mov ecx, esi
push ebx
push str.Name
push dword [ebp - 0x10]
push eax
call fcn.004c2710
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.004b3e88
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.004b3d41
push ebx
push str.Extension
push dword [ebp - 0x10]
lea eax, [ebp - 0x30]
mov ecx, esi
push eax
call fcn.004c2710
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.004b3e88
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.004b3d41
push 0xffffffffffffffff
push str.Icon
push dword [ebp - 0x10]
mov ecx, esi
call fcn.004c26a4
mov ecx, dword [ebp - 0x14]
cmp dword [ecx - 8], ebx
je 0x40abff
mov edx, dword [ebp - 0x1c]
cmp dword [edx - 8], ebx
je 0x40abff
cmp eax, 0xffffffff
je 0x40abff
push eax
push edx
push ecx
mov ecx, dword [ebp - 0x2c]
call fcn.0040ad43
lea eax, [ebp - 0x38]
inc dword [ebp - 0x20]
push eax
push ebx
push ebx
lea eax, [ebp - 0x24]
push ebx
push eax
lea eax, [ebp - 0x238]
mov dword [ebp - 0x24], pe_nt_image_headers32
push eax
push dword [ebp - 0x20]
push dword [ebp - 0x18]
jmp 0x40ab4a
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.004b3d41
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.004b3d41
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004b3d41
push 1
pop eax
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40bd92
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2bc
push ebx
push esi
lea eax, [ebp - 4]
push edi
xor ebx, ebx
push eax
mov edi, 0x4cdb38
push ebx
push ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov esi, 0x2b4
lea eax, [ebp - 0x2bc]
push esi
push ebx
push eax
call fcn.00493f70
lea eax, [ebp - 8]
add esp, 0xc
neg eax
sbb eax, eax
lea ecx, [ebp - 4]
and eax, ecx
xor ecx, ecx
cmp dword [ebp + 8], ebx
mov eax, dword [eax]
sete cl
or cx, 0x4008
push ecx
lea ecx, [ebp - 0x2bc]
push esi
push ecx
push ebx
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
lea ecx, [ebp - 8]
mov esi, eax
neg ecx
sbb ecx, ecx
lea eax, [ebp - 4]
and ecx, eax
mov dword [ebp - 8], edi
call fcn.0040c120
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4