joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10013f90
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x62c
mov eax, dword [0x1005a690]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.MSVCR110.dll_wcschr]
push esi
mov esi, ecx
push 0x25
push esi
mov dword [ebp - 0x62c], esi
call ebx
add esp, 8
test eax, eax
jne 0x10013fd2
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003e328
mov esp, ebp
pop ebp
ret
add eax, 2
push 0x25
push eax
call ebx
add esp, 8
test eax, eax
je 0x10013fbf
xor eax, eax
mov word [ebp - 0x210], ax
mov eax, esi
push edi
cmp word [eax], 0
lea edi, [ebp - 0x210]
je 0x10014095
lea ecx, [ecx]
movzx eax, word [esi]
cmp eax, 0x25
je 0x10014013
mov word [edi], ax
add edi, 2
add esi, 2
jmp 0x1001408b
lea eax, [esi + 2]
push 0x25
push eax
call ebx
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x100140d7
mov ecx, ebx
sub ecx, esi
sar ecx, 1
push ecx
lea eax, [esi + 2]
push eax
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push 0x104
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x10014082
push ecx
lea eax, [ebp - 0x41c]
push eax
push ecx
mov edx, 0x82
mov ecx, edi
call fcn.10001700
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [edi + eax*2]
lea esi, [ebx + 2]
mov ebx, dword [sym.imp.MSVCR110.dll_wcschr]
cmp word [esi], 0
jne 0x10014000
xor eax, eax
mov word [edi], ax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x100140c4
push ecx
lea eax, [ebp - 0x210]
push eax
push ecx
mov ecx, dword [ebp - 0x62c]
mov edx, 0x82
call fcn.10001700
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003e328
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
or eax, 0xffffffff
pop ebx
call fcn.1003e328
mov esp, ebp
pop ebp
ret

Function at 0x10014360
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1005a690]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [edx + 0x14], 8
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 8], ecx
jb 0x10014380
mov edx, dword [edx]
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [esi + 0x10], 0
mov edi, eax
jne 0x100143c0
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x100143a9
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003e328
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x14], 8
jb 0x100143c8
mov esi, dword [esi]
push 0
push 0
push 0
push 0
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 8]
mov esi, eax
test ecx, ecx
je 0x100143ea
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor eax, eax
test esi, esi
sete al
pop edi
xor ecx, ebp
pop esi
call fcn.1003e328
mov esp, ebp
pop ebp
ret
Function at 0x10014960
Capabilities:
Check if file exists
Delete file
Move file
Set file attributes

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x14], 8
jb 0x1001496d
mov eax, dword [esi]
jmp 0x1001496f
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100149f2
cmp dword [esi + 0x14], 8
jb 0x10014984
mov eax, dword [esi]
jmp 0x10014986
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push 0x10049fac
push eax
call dword [sym.imp.MSVCR110.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x100149a7
mov ecx, esi
call fcn.100275f0
cmp dword [esi + 0x14], 8
jb 0x100149b1
mov eax, dword [esi]
jmp 0x100149b3
mov eax, esi
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esi + 0x14], 8
jb 0x100149c9
mov eax, dword [esi]
jmp 0x100149cb
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x100149f2
cmp dword [esi + 0x14], 8
jb 0x100149de
mov esi, dword [esi]
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
neg eax
sbb eax, eax
add eax, 2
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x10017930
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
xor ecx, ecx
cmp esi, edi
je 0x10017960
mov edx, ecx
mov eax, ecx
shr eax, 2
shl edx, 6
add edx, eax
movzx eax, word [esi]
add eax, 0x9e3779b9
add eax, edx
add esi, 2
xor ecx, eax
cmp esi, edi
jne 0x10017941
mov eax, 0x4e25
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 0x1e
imul eax, eax, 0x7fffd8ee
sub ecx, eax
pop edi
lea eax, [ecx + 0x2710]
pop esi
pop ebp
ret
Function at 0x10018530
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x8c], 0
lea eax, [edi + 0x8c]
je 0x100185f8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ecx, edi
call fcn.10018840
push dword [edi + 0x44]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [edi + 0x48]
test ecx, ecx
je 0x100185ef
call fcn.10029740
mov esi, dword [edi + 0x48]
lea eax, [esp + 0x10]
push 0x10017c70
push eax
call fcn.10018d40
mov eax, esp
lea edx, [esp + 0x18]
lea ecx, [esp + 0x20]
mov dword [eax], 0x1e8480
mov dword [eax + 4], 0
call fcn.10018c80
mov edx, dword [eax]
mov dword [esp + 0x10], edx
mov eax, dword [eax + 4]
add esp, 8
mov dword [esp + 0xc], eax
lea eax, [esp + 8]
push eax
mov ecx, esi
call fcn.1002a180
test al, al
jne 0x100185d7
mov ecx, dword [edi + 0x48]
call fcn.10029b30
push 0xff
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov esi, dword [edi + 0x48]
test esi, esi
je 0x100185ef
mov ecx, esi
call fcn.10028f50
push esi
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
push dword [edi + 0x44]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1001b3e0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1005a690]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
xor ecx, ecx
mov eax, 0x104
mov edx, 2
xor bl, bl
mul edx
seto cl
mov dword [ebp - 8], 0x104
neg ecx
or ecx, eax
push ecx
call fcn.100289eb
add esp, 4
mov esi, eax
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x1001b45a
cmp word [esi], 0
jne 0x1001b437
xor eax, eax
jmp 0x1001b44f
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1001b440
sub eax, edx
sar eax, 1
push eax
push esi
mov ecx, edi
call fcn.1000aac0
mov bl, 1
push esi
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete___void__]
mov ecx, dword [ebp - 4]
add esp, 4
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003e328
mov esp, ebp
pop ebp
ret
Function at 0x1001b480
Capabilities:
Check for time delay via gettickcount
Enumerate services
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10056768
push 0x1003ecd9
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x1005a690]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov eax, edx
mov dword [ebp - 0x4c], eax
mov esi, ecx
mov dword [ebp - 0x5c], eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x60], 0x7530
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 1
push esi
mov edi, dword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
call edi
test eax, eax
jne 0x1001b63c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x1001b600
push dword [ebp - 0x48]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x50], eax
test eax, eax
je 0x1001b600
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x48]
push ecx
push dword [ebp - 0x48]
push eax
push 1
push esi
call edi
test eax, eax
je 0x1001b5ed
xor edi, edi
mov dword [ebp - 0x54], edi
cmp edi, dword [ebp - 0x20]
jae 0x1001b630
lea eax, [edi + edi*8]
mov ecx, dword [ebp - 0x50]
movq xmm0, qword [ecx + eax*4]
movq qword [ebp - 0x88], xmm0
movq xmm0, qword [ecx + eax*4 + 8]
movq qword [ebp - 0x80], xmm0
movq xmm0, qword [ecx + eax*4 + 0x10]
movq qword [ebp - 0x78], xmm0
movq xmm0, qword [ecx + eax*4 + 0x18]
movq qword [ebp - 0x70], xmm0
mov eax, dword [ecx + eax*4 + 0x20]
mov dword [ebp - 0x68], eax
push 0x24
push dword [ebp - 0x88]
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [ebp - 0x64], esi
test esi, esi
je 0x1001b5ed
mov dword [ebp - 4], 1
lea eax, [ebp - 0x44]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x1001b5ed
cmp dword [ebp - 0x40], 1
je 0x1001b604
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x48]
push eax
push 0x24
lea eax, [ebp - 0x44]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x1001b5ed
cmp dword [ebp - 0x40], 1
je 0x1001b604
call ebx
sub eax, dword [ebp - 0x58]
cmp eax, dword [ebp - 0x60]
jbe 0x1001b5b7
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x1005a690
call sub.MSVCR110.dll__local_unwind4
add esp, 0xc
xor eax, eax
jmp 0x1001b641
mov dword [ebp - 4], 0
call fcn.1001b628
inc edi
jmp 0x1001b53e
mov dword [ebp - 4], 0xfffffffe
call fcn.1001b65d
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.1003e328
mov esp, ebp
pop ebp
ret
Function at 0x1001b680
Capabilities:
Check for time delay via gettickcount
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x1005a690]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, ecx
call edi
push 0xf003f
push 0
push 0
mov ebx, eax
mov byte [ebp - 0x2d], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x34], eax
test eax, eax
je 0x1001b6da
cmp dword [esi + 0x14], 8
jb 0x1001b6c1
mov esi, dword [esi]
push 0x2c
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x1001b6ed
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003e328
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 8]
push eax
push 0x24
lea eax, [ebp - 0x2c]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x1001b7bb
mov eax, dword [ebp - 0x28]
cmp eax, 1
je 0x1001b7b7
cmp eax, 3
jne 0x1001b757
lea esp, [esp]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 8]
push eax
push 0x24
lea eax, [ebp - 0x2c]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x1001b7bb
cmp dword [ebp - 0x28], 1
je 0x1001b7b7
call edi
sub eax, ebx
cmp eax, 0x7530
ja 0x1001b7bb
cmp dword [ebp - 0x28], 3
je 0x1001b720
mov edx, dword [ebp - 0x34]
mov ecx, esi
call fcn.1001b480
lea eax, [ebp - 0x2c]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x1001b7bb
cmp dword [ebp - 0x28], 1
je 0x1001b7b7
jmp 0x1001b780
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 8]
push eax
push 0x24
lea eax, [ebp - 0x2c]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x1001b7bb
cmp dword [ebp - 0x28], 1
je 0x1001b7b7
call edi
sub eax, ebx
cmp eax, 0x7530
ja 0x1001b7bb
cmp dword [ebp - 0x28], 1
jne 0x1001b780
mov byte [ebp - 0x2d], 1
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push dword [ebp - 0x34]
call esi
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x2d]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003e328
mov esp, ebp
pop ebp
ret
Function at 0x1001cbb0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100442a8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push esi
mov eax, dword [0x1005a690]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
push 0xffffffffffffffff
push eax
push edx
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], 0
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
mov word [esp + 0x18], ax
call fcn.1000a9a0
xor eax, eax
push 0xffffffffffffffff
push eax
push dword [ebp + 8]
mov dword [esp + 0x54], 0
lea ecx, [esp + 0x30]
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], 0
mov word [esp + 0x30], ax
call fcn.1000a9a0
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.1000a030
lea eax, [esp + 0x24]
push eax
lea ecx, [esi + 0x18]
call fcn.1000a030
cmp dword [esp + 0x38], 8
jb 0x1001cc63
push dword [esp + 0x24]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
cmp dword [esp + 0x20], 8
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], 0
mov word [esp + 0x24], ax
jb 0x1001cc8e
push dword [esp + 0xc]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1001d490
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1005a690]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push edx
push ecx
xor bl, bl
mov dword [ebp - 8], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1001d4dc
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
movzx ebx, bl
mov ecx, 1
test eax, eax
cmove ebx, ecx
mov eax, dword [ebp - 8]
test eax, eax
je 0x1001d4ea
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.1003e328
mov esp, ebp
pop ebp
ret
Function at 0x1001dbe0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004492b
mov eax, dword fs:[0]
push eax
mov eax, 0x103c
call fcn.1003fff0
mov eax, dword [0x1005a690]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x810], ax
lea eax, [ebp - 0x80e]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x1014]
push eax
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x1018]
push eax
push 0
push esi
push dword [edi]
mov dword [ebp - 0x1018], 1
mov dword [ebp - 0x1014], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
jne 0x1001ddcd
mov ecx, dword [ebp - 0x1018]
cmp ecx, 1
jne 0x1001dcd5
cmp word [ebp - 0x810], ax
jne 0x1001dca2
xor ecx, ecx
push ecx
lea eax, [ebp - 0x810]
push eax
mov ecx, ebx
call fcn.1000aac0
mov eax, edi
jmp 0x1001ddcd
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
jmp 0x1001dcb0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001dcb0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x810]
push eax
mov ecx, ebx
call fcn.1000aac0
mov eax, edi
jmp 0x1001ddcd
cmp ecx, 2
jne 0x1001ddc8
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x1030]
call fcn.10009fd0
lea edx, [ebp - 0x1030]
lea ecx, [ebp - 0x1048]
mov dword [ebp - 4], 0
call fcn.1001d500
cmp dword [eax + 0x14], 8
jb 0x1001dd10
mov eax, dword [eax]
push 0x400
lea ecx, [ebp - 0x1010]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp dword [ebp - 0x1034], 8
mov esi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
mov dword [ebp - 0x1014], eax
jb 0x1001dd49
push dword [ebp - 0x1048]
call esi
mov eax, dword [ebp - 0x1014]
add esp, 4
xor ecx, ecx
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x101c], 8
mov dword [ebp - 0x1034], 7
mov dword [ebp - 0x1038], 0
mov word [ebp - 0x1048], cx
jb 0x1001dd87
push dword [ebp - 0x1030]
call esi
mov eax, dword [ebp - 0x1014]
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x101c], 7
mov dword [ebp - 0x1020], 0
mov word [ebp - 0x1030], cx
test eax, eax
je 0x1001ddc1
cmp eax, 0x400
ja 0x1001ddc1
lea eax, [ebp - 0x1010]
push eax
mov ecx, ebx
call fcn.1000a110
mov eax, edi
jmp 0x1001ddcd
mov eax, 0xea
jmp 0x1001ddcd
mov eax, 0x3f4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1003e328
mov esp, ebp
pop ebp
ret 8
Function at 0x1001ddf0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x1005a690]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
cmp dword [eax + 0x18], 8
lea edx, [eax + 4]
push edi
mov edi, dword [eax]
mov esi, ecx
jb 0x1001de14
mov edx, dword [edx]
mov al, byte [eax + 0x1c]
push ebx
test al, al
push esi
mov ecx, 0x200
mov ebx, 0x100
cmovne ecx, ebx
or ecx, 0x20019
push ecx
push 0
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
pop ebx
test eax, eax
jne 0x1001de66
push eax
push eax
push eax
push eax
push eax
push eax
push eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x1001de6e
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esi], 0
jmp 0x1001dea4
mov eax, dword [ebp - 8]
mov edx, dword [esi]
dec eax
mov dword [esi + 4], eax
test edx, edx
je 0x1001dea4
test eax, eax
js 0x1001dea4
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0
push 0
lea ecx, [ebp - 8]
push ecx
lea ecx, [esi + 8]
push ecx
push eax
push edx
mov dword [ebp - 8], 0x103
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x1001deaa
xor eax, eax
mov word [esi + 8], ax
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.1003e328
mov esp, ebp
pop ebp
ret 4
Function at 0x1001e070
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x1005a690]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi], 0
je 0x1001e180
cmp dword [esi + 4], 0
jl 0x1001e180
mov eax, dword [esi + 0x24]
sub eax, dword [esi + 0x20]
mov edx, dword [esi + 0x1c]
sar eax, 1
lea ebx, [esi + 0x2c]
lea eax, [eax*2 - 2]
mov dword [ebx], eax
mov eax, dword [esi + 0x20]
xor ecx, ecx
cmp eax, dword [esi + 0x24]
push ebx
cmove eax, ecx
push eax
lea ecx, [esi + 0x30]
push ecx
lea eax, [ebp - 8]
push 0
push eax
lea ecx, [esi + 8]
mov dword [ebp - 0x10], edx
mov dword [ebp - 8], edx
call fcn.1001d410
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0xea
jne 0x1001e15b
mov ecx, dword [ebx]
mov eax, dword [esi + 0x24]
sub eax, dword [esi + 0x20]
inc ecx
shr ecx, 1
inc ecx
sar eax, 1
cmp ecx, eax
jbe 0x1001e10d
lea eax, [ebp - 0xc]
push eax
push ecx
lea ecx, [esi + 0x20]
mov dword [ebp - 0xc], 0
call fcn.1001e1b0
mov eax, dword [esi + 0x24]
sub eax, dword [esi + 0x20]
mov ecx, dword [ebp - 0x10]
sar eax, 1
cmp dword [ebp - 8], ecx
lea eax, [eax*2 - 2]
mov dword [ebx], eax
mov eax, 0x4000
cmove ecx, eax
mov eax, dword [esi + 0x20]
xor edx, edx
cmp eax, dword [esi + 0x24]
push ebx
cmove eax, edx
push eax
lea eax, [esi + 0x30]
push eax
push edx
lea eax, [ebp - 8]
mov dword [ebp - 8], ecx
mov edx, ecx
push eax
lea ecx, [esi + 8]
call fcn.1001d410
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x1001e180
mov ecx, dword [ebx]
mov eax, dword [esi + 0x20]
inc ecx
shr ecx, 1
pop edi
xor edx, edx
pop esi
mov word [eax + ecx*2], dx
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003e328
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x1c], 8
lea eax, [esi + 8]
jb 0x1001e18b
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
mov eax, dword [esi + 0x20]
pop edi
mov word [eax], cx
mov dword [esi + 0x2c], ecx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
xor al, al
pop ebx
call fcn.1003e328
mov esp, ebp
pop ebp
ret

Function at 0x1001e380
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
sub edx, edi
sar edx, 1
mov esi, 0x811c9dc5
mov ecx, 0
add edx, edx
je 0x1001e3b1
lea ecx, [ecx]
movzx eax, byte [ecx + edi]
xor esi, eax
inc ecx
imul esi, esi, 0x1000193
cmp ecx, edx
jb 0x1001e3a0
pop edi
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x10020a60
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004477e
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x1005a690]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
lea eax, [ebp - 0x10]
push eax
push 0
lea ecx, [edi + 4]
mov dword [ebp - 0x10], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
call fcn.1001ed70
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
push 0
lea ecx, [edi + 0x24]
mov dword [ebp - 0x10], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
call fcn.1001ed70
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
lea ecx, [edi + 0x40]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
mov edx, dword [ebp + 0x20]
mov byte [ebp - 4], 2
mov dword [edi + 0x50], eax
mov eax, dword [ebp + 8]
mov dword [edi + 0x54], eax
mov eax, dword [ebp + 0x1c]
mov dword [edi + 0x5c], eax
mov eax, dword [ebp + 0x18]
mov dword [edi + 0x58], esi
mov dword [edi + 0x60], edx
mov byte [edi + 0x64], 0
mov dword [edi + 0x68], eax
test byte [esi + 8], 8
je 0x10020b74
test dl, 0x10
jne 0x10020b74
mov eax, 1
jmp 0x10020b76
xor eax, eax
mov byte [edi + 0x6c], al
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x70], eax
push dword [esi + 0x18]
call fcn.10020c50
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x1c