joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1015381
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
lea eax, [ebp - 0x14]
push 0x100c104
push eax
call dword [sym.imp.NTDLL.DLL_RtlInitUnicodeString]
push 0
call dword [sym.imp.RPCRT4.DLL_RpcImpersonateClient]
test eax, eax
jne 0x10153ca
lea eax, [ebp - 4]
push eax
push 1
pop esi
push esi
push 8
push 0xfffffffffffffffe
call dword [sym.imp.NTDLL.DLL_NtOpenThreadToken]
mov edi, eax
test edi, edi
jge 0x10153cf
call dword [sym.imp.ADVAPI32.DLL_RevertToSelf]
push edi
call dword [sym.imp.NTDLL.DLL_RtlNtStatusToDosError]
pop edi
pop esi
pop ebx
leave
ret
mov eax, 0x13
cdq
mov edi, eax
lea eax, [ebp - 0xc]
push eax
mov ebx, edx
push dword [0x10212b0]
push dword [ebp - 4]
call sub.ADVAPI32.DLL_CheckTokenMembership
test eax, eax
je 0x1015476
cmp dword [ebp - 0xc], 0
je 0x1015403
mov eax, 0x18
cdq
mov edi, eax
mov ebx, edx
lea eax, [ebp - 8]
and dword [ebp - 0x18], 0
push eax
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x28], esi
push dword [ebp - 4]
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.NTDLL.DLL_NtPrivilegeCheck]
mov esi, eax
test esi, esi
jge 0x1015432
cmp esi, 0xc0000061
jne 0x101544c
push dword [ebp - 8]
lea eax, [ebp - 0x28]
push eax
push 0
push dword [ebp - 4]
lea eax, [ebp - 0x14]
push 0
push eax
call dword [sym.imp.NTDLL.DLL_NtPrivilegeObjectAuditAlarm]
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.NTDLL.DLL_NtClose]
call dword [sym.imp.ADVAPI32.DLL_RevertToSelf]
test esi, esi
jge 0x1015465
push esi
jmp 0x10153c4
mov al, byte [ebp - 8]
neg al
sbb eax, eax
and al, 0xfb
add eax, 5
jmp 0x10153ca
call dword [sym.imp.ADVAPI32.DLL_RevertToSelf]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x10153ca
Function at 0x1017164
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
lea eax, [ebp - 4]
push eax
push 0x2000000
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.DLL_OpenProcessToken]
test eax, eax
je 0x1017246
push esi
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x44]
xor esi, esi
push eax
lea eax, [ebp - 0x28]
push 0x1c
push eax
push esi
mov dword [ebp - 0x28], 1
push dword [ebp - 4]
mov dword [ebp - 0x24], 0x14
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], 2
call dword [sym.imp.ADVAPI32.DLL_AdjustTokenPrivileges]
mov ebx, dword [sym.imp.KERNEL32.DLL_CloseHandle]
test eax, eax
je 0x101723f
push dword [ebp + 8]
push esi
push 0x1f0fff
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
cmp eax, esi
mov dword [ebp + 8], eax
je 0x101722e
push edi
push 0x100c4ac
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
cmp eax, esi
je 0x1017228
push 0x100c49c
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
lea ecx, [ebp - 0xc]
push ecx
push 4
push esi
push eax
push 0x8000
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateRemoteThread]
mov edi, eax
cmp edi, esi
je 0x1017228
push 2
push edi
call dword [sym.imp.KERNEL32.DLL_SetThreadPriority]
push edi
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
push edi
call ebx
push dword [ebp + 8]
call ebx
pop edi
push esi
push esi
lea eax, [ebp - 0x44]
push esi
push eax
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.DLL_AdjustTokenPrivileges]
push dword [ebp - 4]
call ebx
pop ebx
pop esi
leave
ret 4

Function at 0x1017c75
Capabilities:
Create thread
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 8
push 0x40
call dword [sym.imp.KERNEL32.DLL_LocalAlloc]
mov esi, eax
xor edi, edi
cmp esi, edi
je 0x1017cd8
xor eax, eax
cmp dword [ebp + 8], edi
push 0x11
mov dword [esi + 4], 3
setne al
inc eax
inc eax
mov dword [esi], eax
call dword [sym.imp.USER32.DLL_GetKeyState]
test ax, ax
jge 0x1017cb1
or byte [esi + 7], 0x80
cmp dword [ebp + 0xc], edi
je 0x1017cba
or byte [esi + 7], 0x40
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x1017c44
push edi
push edi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
cmp eax, edi
je 0x1017cde
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
leave
ret 8
push esi
call dword [sym.imp.KERNEL32.DLL_LocalFree]
jmp 0x1017cd8
Function at 0x1018784
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_SetErrorMode]
push edi
push 0x8001
call esi
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push 0x100c5a0
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10187cd
push dword [ebp - 4]
call esi
mov eax, 0xc0000034
pop edi
pop esi
leave
ret
lea eax, [ebp - 8]
push 0
push eax
push 0x10
push 0x1021200
push edi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x1018805
cmp dword [ebp - 8], 0x10
jne 0x1018805
push dword [ebp - 4]
mov dword [0x10211ec], 1
call esi
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
jmp 0x10187c9
push dword [ebp - 4]
call esi
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, 0xc0000102
jmp 0x10187c9

Function at 0x1018f05
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0x20006
push 0
push 0x1008dc0
push 0x80000002
call dword [sym.imp.ADVAPI32.DLL_RegOpenKeyExW]
test eax, eax
jne 0x1018f53
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.DLL_wcslen]
pop ecx
shl eax, 1
push eax
push dword [ebp + 8]
push 1
push 0
push 0x100c6b0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.DLL_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
leave
ret 4

Function at 0x10193fa
Capabilities:
Create thread

Disassembly:
push esi
push edi
xor edi, edi
cmp dword [0x1021220], edi
je 0x101944c
push 0xc
push edi
call dword [sym.imp.KERNEL32.DLL_LocalAlloc]
mov esi, eax
cmp esi, edi
je 0x101944c
mov ecx, dword [esp + 0xc]
lea eax, [ecx + 0x58]
push eax
push edi
push esi
push 0x101911e
push edi
mov dword [eax], edi
push edi
mov dword [esi], ecx
call dword [sym.imp.KERNEL32.DLL_CreateThread]
cmp eax, edi
mov dword [esi + 4], eax
je 0x101944c
push 8
push 0xffffffffffffffff
push esi
push 0x10193df
add esi, 8
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_RegisterWaitForSingleObject]
pop edi
pop esi
ret 4
Function at 0x101a742
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov ebx, 0x10211b0
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov esi, dword [ebp + 8]
xor edi, edi
cmp dword [0x1022e7c], edi
jne 0x101a7a7
push 1
push esi
push edi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.DLL_CreateIoCompletionPort]
cmp eax, edi
mov dword [0x1022e7c], eax
je 0x101a7a7
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0x101a4dc
push edi
push edi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
cmp eax, edi
mov dword [0x1022e78], eax
jne 0x101a7a7
push dword [0x1022e7c]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [0x1022e7c], edi
cmp dword [0x1022e7c], edi
je 0x101a7f5
mov eax, dword [0x10211a0]
mov dword [esi + 4], 0x10211a0
mov dword [esi], eax
push 8
mov dword [eax + 4], esi
mov eax, dword [0x1022e7c]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 7
mov dword [0x10211a0], esi
push dword [esi + 0x18]
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.DLL_SetInformationJobObject]
test eax, eax
jne 0x101a805
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov dword [ecx], eax
mov dword [eax + 4], ecx
mov dword [esi + 4], edi
mov dword [esi], edi
push ebx
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4
inc dword [esi + 0x10]
push 1
pop edi
jmp 0x101a7f5
Function at 0x101a917
Capabilities:
Create process on windows
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
push esi
push edi
push 0x11
pop ecx
xor eax, eax
lea edi, [ebp - 0x64]
push 1
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x10]
pop edi
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0x20]
xor esi, esi
cmp dword [ebp + 0xc], edi
mov dword [ebp - 4], esi
mov dword [ebp - 0x64], 0x44
mov word [ebp - 0x34], 2
mov dword [ebp - 0x38], eax
je 0x101aa5f
cmp dword [ebp + 0xc], esi
jne 0x101a981
mov edi, dword [ebp + 8]
push esi
mov eax, dword [edi + 8]
add eax, 0x28
push eax
call fcn.0100a927
mov ebx, eax
mov eax, dword [edi + 8]
cmp ebx, esi
mov eax, dword [eax + 0x28]
mov dword [ebp + 0x10], eax
jne 0x101a9cc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x20
lea eax, [ebp + 0x20]
push eax
push 0xf01ff
push 0xffffffffffffffff
call dword [sym.imp.NTDLL.DLL_NtOpenProcessToken]
mov ebx, eax
cmp ebx, esi
jl 0x101a978
mov eax, dword [0x1021118]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp - 0x10]
push esi
push eax
push edi
push dword [ebp + 0x20]
mov dword [ebp - 8], esi
call dword [sym.imp.NTDLL.DLL_NtFilterToken]
push dword [ebp + 0x20]
mov ebx, eax
call dword [sym.imp.NTDLL.DLL_NtClose]
cmp ebx, esi
jl 0x101a978
mov ebx, dword [ebp - 4]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebp + 0x1c]
push esi
or ax, 0x404
push dword [ebp + 0x14]
push eax
push esi
push esi
push esi
push dword [ebp + 0x18]
push esi
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.DLL_CreateProcessAsUserW]
cmp ebx, esi
mov dword [ebp + 0xc], eax
je 0x101aa54
push ebx
call fcn.0100a9e8
cmp dword [ebp + 0xc], esi
je 0x101aa4c
mov ebx, 0x10211b0
push ebx
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
push dword [ebp - 0x20]
mov edi, dword [ebp + 0x24]
push dword [edi + 0x18]
call dword [sym.imp.KERNEL32.DLL_AssignProcessToJobObject]
test eax, eax
je 0x101aa85
push dword [ebp - 0x1c]
or dword [edi + 0x14], 8
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
test byte [edi + 0x14], 0x10
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
je 0x101aa95
mov eax, dword [ebp - 0x20]
mov dword [edi + 0x1c], eax
push ebx
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
push dword [ebp - 0x1c]
call esi
mov eax, dword [ebp + 0xc]
jmp 0x101a97a
push dword [ebp + 0x10]
call dword [sym.imp.NTDLL.DLL_NtClose]
jmp 0x101a9fd
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x64]
push eax
push esi
push dword [ebp + 0x14]
push 0x404
push esi
push esi
push esi
push dword [ebp + 0x18]
push esi
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
mov dword [ebp + 0xc], eax
jmp 0x101a9fd
push 5
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
mov dword [ebp + 0xc], esi
jmp 0x101aa2e
push dword [ebp - 0x20]
call esi
jmp 0x101aa40
Function at 0x101ae91
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
xor esi, esi
xor ebx, ebx
cmp dword [ebp + 8], esi
push edi
mov dword [ebp - 4], 1
je 0x101af34
push esi
push esi
push esi
push 0x192
push dword [0x1021588]
call dword [sym.imp.USER32.DLL_CreateDialogParamW]
mov ebx, eax
cmp ebx, esi
je 0x101af34
lea eax, [ebp - 0x18]
push eax
push ebx
call dword [sym.imp.USER32.DLL_GetWindowRect]
mov edi, dword [sym.imp.USER32.DLL_GetSystemMetrics]
push 0x41
push esi
push esi
push 0x11
call edi
mov ecx, dword [ebp - 0x14]
sub ecx, dword [ebp - 0xc]
add eax, ecx
cdq
sub eax, edx
sar eax, 1
push eax
push 0x10
call edi
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 0x10]
add eax, ecx
cdq
sub eax, edx
sar eax, 1
push eax
push 0xffffffffffffffff
push ebx
call dword [sym.imp.USER32.DLL_SetWindowPos]
mov edi, dword [sym.imp.USER32.DLL_PeekMessageW]
push 1
push esi
push esi
lea eax, [ebp - 0x34]
push ebx
push eax
call edi
test eax, eax
je 0x101af34
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.DLL_DispatchMessageW]
push 1
push esi
push esi
lea eax, [ebp - 0x34]
push ebx
push eax
jmp 0x101af19
push 4
push esi
push esi
call dword [sym.imp.ADVAPI32.DLL_OpenSCManagerW]
cmp eax, esi
mov dword [ebp - 8], eax
je 0x101af8d
push 0x10
push 0x100c948
push eax
call dword [sym.imp.ADVAPI32.DLL_OpenServiceW]
mov edi, dword [sym.imp.ADVAPI32.DLL_CloseServiceHandle]
cmp eax, esi
mov dword [ebp + 8], eax
je 0x101af88
push esi
push esi
push eax
call dword [sym.imp.ADVAPI32.DLL_StartServiceW]
push dword [ebp + 8]
call edi
push dword [ebp - 8]
call edi
cmp ebx, esi
je 0x101af7e
push ebx
call dword [sym.imp.USER32.DLL_DestroyWindow]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4
mov dword [ebp - 4], esi
jmp 0x101af6e
mov dword [ebp - 4], esi
jmp 0x101af73
Function at 0x101af92
Capabilities:
Check for time delay via gettickcount
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
push ebx
push esi
xor esi, esi
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_CreateFileW]
push esi
push 0x120080
push 3
push esi
push esi
mov ebx, 0x100c968
push 0xc0000000
push ebx
call edi
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x101afca
cmp dword [ebp + 8], esi
je 0x101b03d
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
cmp dword [ebp - 4], 0xffffffff
jne 0x101b046
mov ecx, dword [ebp + 8]
add eax, ecx
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
cmp dword [ebp + 8], eax
jbe 0x101b037
push 0xff
push 0x3e8
push 1
push esi
push esi
call dword [sym.imp.USER32.DLL_MsgWaitForMultipleObjects]
push esi
push 0x120080
push 3
push esi
push esi
push 0xc0000000
push ebx
call edi
mov dword [ebp - 4], eax
push 1
push esi
push esi
lea eax, [ebp - 0x28]
push esi
push eax
call dword [sym.imp.USER32.DLL_PeekMessageW]
test eax, eax
je 0x101b031
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.DLL_DispatchMessageW]
jmp 0x101b012
cmp dword [ebp - 4], 0xffffffff
je 0x101afde
cmp dword [ebp - 4], 0xffffffff
jne 0x101b046
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
mov edi, dword [sym.imp.MSVCRT.DLL_wcscpy]
lea eax, [ebp - 0xa8]
push 0x1008f0c
push eax
call edi
pop ecx
lea eax, [ebp - 0xa8]
pop ecx
push eax
call dword [sym.imp.MSVCRT.DLL_wcslen]
inc eax
pop ecx
mov dword [ebp - 0xac], eax
push 0x100c958
lea eax, [ebp + eax*2 - 0xa8]
push eax
call edi
pop ecx
lea eax, [ebp - 8]
pop ecx
mov dword [ebp - 8], 2
push esi
push esi
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_SetNamedPipeHandleState]
lea eax, [ebp - 0xc]
push esi
push eax
push 4
push 0x1022e74
lea eax, [ebp - 0xac]
push 0x84
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_TransactNamedPipe]
test eax, eax
jne 0x101b0c3
mov dword [0x1022e74], esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [0x1022e74]
jmp 0x101b03f
Function at 0x101b286
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [ebp + 0x10]
push ebx
xor ebx, ebx
push esi
cmp dword [eax + 4], 0x1c
push edi
mov dword [ebp - 4], ebx
jb 0x101b39e
mov esi, dword [eax + 8]
cmp dword [esi], 0xdde1dde1
jne 0x101b39e
push 1
pop edi
cmp dword [esi + 4], edi
jne 0x101b39e
mov eax, dword [esi + 8]
dec eax
je 0x101b34f
dec eax
jne 0x101b346
push edi
lea eax, [ebp + 0x10]
push 0xffffffffffffffff
push eax
lea eax, [esi + 0x18]
push 0xffffffffffffffff
push eax
push ebx
call dword [sym.imp.USER32.DLL_MBToWCSEx]
test eax, eax
je 0x101b39e
lea eax, [ebp - 8]
add esi, 0xc
push eax
push esi
push dword [ebp + 0x10]
call fcn.0101b5b2
test eax, eax
je 0x101b34a
mov eax, dword [ebp - 8]
shr eax, 0x1e
and eax, edi
mov dword [ebp - 4], eax
mov eax, dword fs:[0x18]
push dword [ebp + 0x10]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call dword [sym.imp.NTDLL.DLL_RtlFreeHeap]
mov ebx, edi
mov eax, dword [0x1021634]
mov dword [ebp - 0x14], 4
mov dword [ebp - 0x18], eax
lea eax, [ebp - 4]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
push dword [0x1022e74]
push 0x4a
push dword [ebp + 0xc]
call dword [sym.imp.USER32.DLL_SendMessageW]
mov eax, ebx
jmp 0x101b3a0
mov dword [ebp - 4], ebx
jmp 0x101b304
push edi
mov edi, dword [sym.imp.USER32.DLL_MBToWCSEx]
lea eax, [ebp + 0x10]
push 0xffffffffffffffff
push eax
lea eax, [esi + 0x18]
push 0xffffffffffffffff
push eax
push ebx
call edi
test eax, eax
je 0x101b39e
push 1
lea eax, [ebp - 0xc]
push 0xffffffffffffffff
push eax
push 0xffffffffffffffff
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
lea eax, [eax + esi + 0x19]
push eax
push ebx
call edi
test eax, eax
jne 0x101b3a7
mov eax, dword fs:[0x18]
push dword [ebp + 0x10]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call dword [sym.imp.NTDLL.DLL_RtlFreeHeap]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
lea eax, [ebp - 8]
add esi, 0xc
push eax
push esi
push dword [ebp + 0x10]
call fcn.0101b5b2
test eax, eax
je 0x101b44c
test byte [ebp - 5], 0x80
je 0x101b44c
push 0x11
xor eax, eax
pop ecx
lea edi, [ebp - 0x6c]
push 1
rep stosd dword es:[edi], eax
pop esi
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x6c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
mov dword [ebp - 0x6c], 0x44
push dword [ebp - 0xc]
mov dword [ebp - 0x64], 0x100c988
mov dword [ebp - 0x40], esi
mov word [ebp - 0x3c], si
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
cmp eax, ebx
je 0x101b44c
push dword [ebp - 0x28]
mov edi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
call edi
push dword [ebp - 0x24]
call edi
mov dword [ebp - 4], esi
mov eax, dword fs:[0x18]
push dword [ebp - 0xc]
mov eax, dword [eax + 0x30]
mov esi, dword [sym.imp.NTDLL.DLL_RtlFreeHeap]
push ebx
push dword [eax + 0x18]
call esi
mov eax, dword fs:[0x18]
push dword [ebp + 0x10]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call esi
push 1
pop ebx
jmp 0x101b31c
mov dword [ebp - 4], ebx
jmp 0x101b41a
Function at 0x101badc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
mov eax, 0x1022b8c
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
add eax, 0x10
cmp eax, 0x1022bdc
jb 0x101bae9
or dword [ebp - 0x14], 0xffffffff
push 1
push 5
push 0x1022b80
push dword [0x1022e4c]
lea eax, [ebp - 0x14]
mov dword [0x1022bbc], eax
call fcn.0101ca18
cmp byte [0x1022e44], 0
je 0x101bb64
cmp dword [ebp - 0x14], 0xffffffff
je 0x101bb64
mov eax, dword [ebp - 8]
mov ecx, dword [0x1022e54]
sub eax, dword [0x1022e4c]
push 1
push 0x1022c28
sar eax, 1
lea esi, [ecx + eax*2]
mov eax, dword [ebp - 4]
push esi
mov di, word [esi + eax*2]
and word [esi + eax*2], 0
push dword [0x1022c30]
lea eax, [esi + eax*2]
call fcn.0101c628
mov eax, dword [ebp - 4]
mov word [esi + eax*2], di
pop edi
pop esi
leave
ret 4
Function at 0x101c508
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov ax, word [0x1022e58]
push esi
test ax, ax
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], 0x208
jne 0x101c582
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x100cb18
push 0x80000002
call dword [sym.imp.ADVAPI32.DLL_RegOpenKeyExW]
test eax, eax
jne 0x101c58f
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x100cb00
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.DLL_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
test esi, esi
jne 0x101c58f
mov ax, word [ebp - 0x214]
mov word [0x1022e58], ax
mov ecx, dword [ebp + 8]
mov word [ecx], ax
mov al, 1
pop esi
leave
ret 4
xor al, al
jmp 0x101c58a
Function at 0x101c8cf
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
movzx eax, word [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp + 8], eax
lea eax, [eax + eax + 0x12]
push edi
xor ebx, ebx
push eax
push ebx
mov dword [esi + 4], ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
call dword [sym.imp.NTDLL.DLL_RtlAllocateHeap]
mov edi, eax
cmp edi, ebx
je 0x101c928
cmp byte [ebp + 0x1c], bl
je 0x101c93a
mov eax, dword [ebp + 8]
lea eax, [eax + eax + 2]
push eax
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.NTDLL.DLL_RtlAllocateHeap]
cmp eax, ebx
mov dword [ebp - 0xc], eax
jne 0x101c931
push edi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.NTDLL.DLL_RtlFreeHeap]
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0x18
mov eax, dword [ebp + 0x10]
add eax, eax
mov word [ebp - 0xe], ax
push dword [ebp + 0x18]
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.NTDLL.DLL_RtlInitUnicodeString]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push dword [ebp - 4]
push edi
push 2
push eax
push dword [ebp + 0x14]
call dword [sym.imp.NTDLL.DLL_NtQueryValueKey]
cmp eax, ebx
jge 0x101c99f
cmp byte [ebp + 0x1c], bl
je 0x101c98b
push edi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.NTDLL.DLL_RtlFreeHeap]
mov eax, dword [ebp - 0xc]
mov word [ebp - 0x10], bx
mov word [eax], bx
mov eax, dword [ebp - 0x10]
mov dword [esi], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 4], eax
mov al, 1
jmp 0x101c92a
mov word [edi], bx
mov dword [esi + 4], edi
mov eax, dword [ebp + 0x10]
mov word [esi], bx
add eax, eax
mov word [esi + 2], ax
jmp 0x101c987
cmp byte [ebp + 0x1c], bl
je 0x101c9fb
lea eax, [edi + 0xc]
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.NTDLL.DLL_RtlInitUnicodeString]
lea eax, [ebp - 0x10]
push ebx
push eax
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.NTDLL.DLL_RtlExpandEnvironmentStrings_U]
push edi
push ebx
push dword [ebp + 0xc]
mov dword [ebp + 0x1c], eax
call dword [sym.imp.NTDLL.DLL_RtlFreeHeap]
cmp dword [ebp + 0x1c], ebx
jge 0x101c9ec
mov eax, dword [ebp - 0xc]
mov word [eax], bx
mov word [ebp - 0x10], bx
mov eax, dword [ebp - 0x10]
mov dword [esi], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 4], eax
jmp 0x101c987
movzx eax, word [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
shr eax, 1
mov word [ecx + eax*2], bx
jmp 0x101c9df
mov ebx, dword [edi + 8]
lea eax, [edi + 0xc]
push ebx
push eax
push edi
call dword [sym.imp.MSVCRT.DLL_memmove]
add esp, 0xc
mov dword [esi + 4], edi
add ebx, 0xfffffffe
jmp 0x101c991
Function at 0x101cc89
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push esi
push 4
lea eax, [ebp - 0x48]
mov esi, dword [sym.imp.NTDLL.DLL_NtQueryInformationFile]
push 0x28
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call esi
test eax, eax
jl 0x101ccde
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x38]
push 5
push 0x18
mov dword [eax], ecx
mov ecx, dword [ebp - 0x34]
mov dword [eax + 4], ecx
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call esi
test eax, eax
jl 0x101ccde
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x14]
mov dword [eax + 4], ecx
xor eax, eax
pop esi
leave
ret 0xc

Function at 0x101d309
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
ret 4