joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100157b3
Capabilities:
Get storage device properties

Disassembly:
push ebp
sub esp, 0xb0c
lea ebp, [esp - 4]
mov eax, dword [0x1005ce10]
xor eax, ebp
mov dword [ebp + 0xb0c], eax
push 0x30
mov eax, 0x1004e015
call fcn.10035b2c
mov eax, dword [ebp + 0xb18]
xor ebx, ebx
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0xd], bl
mov dword [ebp - 0x14], ebx
cmp byte [ebp - 0xd], bl
jne 0x1001592a
push 0x200
lea eax, [ebp + 0x80c]
push ebx
push eax
call fcn.10035680
push dword [ebp - 0x14]
mov esi, 0xff
push str..PhysicalDrive_d
lea eax, [ebp + 0x80c]
push esi
push eax
call fcn.10015ca4
add esp, 0x1c
push ebx
push ebx
push 3
push ebx
push 3
push ebx
lea eax, [ebp + 0x80c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
je 0x1001591d
xor eax, eax
lea edi, [ebp]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, 0x800
push edi
lea eax, [ebp + 0xc]
push ebx
push eax
mov dword [ebp - 0x20], ebx
mov dword [ebp], ebx
mov dword [ebp + 4], ebx
call fcn.10035680
add esp, 0xc
push ebx
lea eax, [ebp - 0x20]
push eax
push edi
lea eax, [ebp + 0xc]
push eax
push 0xc
lea eax, [ebp]
push eax
push 0x2d1400
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1001590e
push esi
lea eax, [ebp + 0xa0d]
push ebx
push eax
call fcn.10035680
mov ecx, dword [ebp + 0x24]
add esp, 0xc
cmp ecx, ebx
mov byte [ebp + 0xa0c], bl
jle 0x100158b7
lea esi, [ebp + 0xa0c]
lea eax, [ebp + 0xc]
call fcn.10015952
movsx eax, byte [ebp + 0xa0c]
push eax
call fcn.10034d1a
pop ecx
test eax, eax
jne 0x100158db
movsx eax, byte [ebp + 0xa1f]
push eax
call fcn.10034d1a
pop ecx
test eax, eax
je 0x10015914
lea eax, [ebp + 0xa0c]
push eax
lea ecx, [ebp - 0x3c]
call fcn.100039b0
mov ecx, dword [ebp - 0x1c]
push 0xffffffffffffffff
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.10003637
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x3c]
call fcn.1000383a
mov byte [ebp - 0xd], 1
jmp 0x10015914
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0x10
jl 0x100157e8
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xb0c]
xor ecx, ebp
call fcn.10032a69
add ebp, 0xb10
leave
ret 4

Function at 0x10015e9f
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
push 9
pop eax
cmp ax, word [ebp - 0x24]
je 0x10015ec5
push 6
pop eax
cmp ax, word [ebp - 0x24]
je 0x10015ec5
xor eax, eax
leave
ret
xor eax, eax
inc eax
leave
ret
Function at 0x1001603f
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
mov edi, dword [ebp + 8]
cmp dword [edi], 0xffffffff
je 0x10016052
xor eax, eax
inc eax
jmp 0x100160ab
push esi
push 0
xor esi, esi
inc esi
push esi
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi], eax
cmp eax, 0xffffffff
jne 0x1001606c
xor eax, eax
jmp 0x100160aa
push ebx
push 4
lea ecx, [ebp - 8]
push ecx
push 4
mov ebx, 0xffff
push ebx
mov dword [ebp - 8], esi
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
push eax
call esi
xor eax, eax
lea edi, [ebp - 2]
stosw word es:[edi], ax
inc eax
push 4
mov word [ebp - 4], ax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push 0xffffff7f
push ebx
push dword [eax]
call esi
xor eax, eax
inc eax
pop ebx
pop esi
pop edi
leave
ret 4

Function at 0x100160b0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1005ce10]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, ecx
test ebx, ebx
jne 0x100160d7
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
xor eax, eax
jmp 0x10016124
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 2
stosd dword es:[edi], eax
pop eax
push ebx
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
jne 0x1001610b
push ebx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x100160c8
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_htons]
push dword [ebp + 0xc]
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x14]
push eax
call fcn.10016134
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10032a69
leave
ret 8
Function at 0x10016134
Capabilities:
Connect socket
Get socket status
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
cmp dword [ebp + 0xc], 0xffffffff
jne 0x1001615e
push 0x10
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.WS2_32.dll_connect]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
leave
ret 8
push ebx
push edi
mov edi, dword [sym.imp.WS2_32.dll_ioctlsocket]
lea eax, [ebp - 4]
push eax
mov ebx, 0x8004667e
push ebx
push dword [esi]
mov dword [ebp - 4], 1
call edi
and dword [ebp - 4], 0
push 0x10
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x1001619f
lea eax, [ebp - 4]
push eax
push ebx
push dword [esi]
call edi
and dword [ebp + 8], 0
jmp 0x100161f0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x10016199
mov eax, dword [ebp + 0xc]
cdq
mov ecx, 0x3e8
idiv ecx
mov ecx, dword [esi]
mov dword [ebp - 0x10c], ecx
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x110], 1
mov dword [ebp - 0xc], eax
xor eax, eax
push eax
push ecx
push eax
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x10016199
mov dword [ebp + 8], 1
lea eax, [ebp - 4]
push eax
push ebx
push dword [esi]
call edi
mov eax, dword [ebp + 8]
pop edi
pop ebx
jmp 0x1001615a
Function at 0x10016b3f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
and dword [esi], 0
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp + 8]
push 0
push str.iCountry
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10016ba5
cmp dword [ebp + 8], 1
je 0x10016b7d
cmp dword [ebp + 8], 2
je 0x10016b7d
push 0xd
pop eax
jmp 0x10016ba5
mov eax, dword [ebp - 4]
test edi, edi
je 0x10016b9f
test eax, eax
je 0x10016b9a
test al, 1
jne 0x10016b78
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x10016b9f
jmp 0x10016b78
xor ecx, ecx
mov word [edi], cx
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 4

Function at 0x1001a8e5
Capabilities:
Get thread local storage value

Disassembly:
push ecx
push esi
mov esi, eax
cmp byte [esi + 5], 0
push edi
je 0x1001a927
call fcn.1001a92b
mov ecx, dword [0x1005e218]
mov edi, dword [esi + 0x30]
xor eax, eax
cmp ecx, 0xffffffff
je 0x1001a90c
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp edi, eax
je 0x1001a923
mov edi, dword [esi + 0xc]
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esi + 5], 0
pop edi
pop esi
pop ecx
ret

Function at 0x1001a9cd
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push 4
mov eax, 0x1004dee6
call fcn.10035b2c
mov edi, dword [ebp + 8]
xor ebx, ebx
lea esi, [edi + 0x14]
mov dword [edi], 0x100556a4
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov byte [edi + 0xc], bl
mov byte [edi + 0xd], bl
mov dword [edi + 0x10], ebx
call fcn.1001aa7c
lea esi, [edi + 0x34]
mov dword [ebp - 4], ebx
call fcn.1001aa7c
push ebx
push 1
mov byte [ebp - 4], 1
lea esi, [edi + 0x54]
call fcn.10002f19
pop ecx
pop ecx
cmp eax, ebx
je 0x1001aa1f
mov dword [eax], esi
jmp 0x1001aa21
xor eax, eax
mov dword [esi], eax
lea eax, [edi + 0x74]
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
push eax
mov dword [edi + 0x70], ebx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, dword [0x1005e218]
cmp eax, 0xffffffff
jne 0x1001aa4e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1005e218], eax
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, edi
call fcn.10035c04
ret 4
Function at 0x1001aaaf
Capabilities:
Set thread local storage value

Disassembly:
push 4
mov eax, 0x1004e8ed
call fcn.10035b2c
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], 0x100556a4
mov dword [ebp - 4], 3
xor edi, edi
mov ecx, esi
call fcn.1001ab36
call fcn.1001ae22
mov ecx, esi
call fcn.1001ab36
test al, al
je 0x1001aaec
inc edi
cmp edi, 0x64
jl 0x1001aacf
mov eax, dword [0x1005e218]
cmp eax, 0xffffffff
je 0x1001aaff
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea eax, [esi + 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea eax, [esi + 0x54]
push eax
mov byte [ebp - 4], 1
call fcn.1001bb94
lea eax, [esi + 0x34]
push eax
mov byte [ebp - 4], 0
call fcn.1001baf7
or dword [ebp - 4], 0xffffffff
add esi, 0x14
push esi
call fcn.1001baf7
call fcn.10035c04
ret
Function at 0x1001cfbe
Capabilities:
Initialize winhttp library
Prepare http request
Read http header
Receive http response

Disassembly:
push ebp
lea ebp, [esp - 0x1a0]
sub esp, 0x220
mov eax, dword [0x1005ce10]
xor eax, ebp
mov dword [ebp + 0x19c], eax
mov eax, dword [ebp + 0x1ac]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x1a8]
mov dword [ebp - 0x80], eax
xor esi, esi
xor eax, eax
push 0x206
mov word [ebp - 0x6c], ax
lea eax, [ebp - 0x6a]
push esi
push eax
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x74], esi
xor ebx, ebx
call fcn.10035680
add esp, 0xc
cmp dword [ebp + 0x1b0], 2
jne 0x1001d020
mov dword [ebp - 0x7c], 0x800000
push esi
push esi
push esi
push esi
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.1_
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebp - 0x78], eax
cmp eax, esi
je 0x1001d09c
push esi
push dword [ebp + 0x1b4]
push edi
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x1b8]
cmp eax, 0xffffffff
je 0x1001d060
push eax
push eax
push eax
push eax
push dword [ebp - 0x78]
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
cmp dword [ebp - 0x74], esi
je 0x1001d09c
push dword [ebp - 0x7c]
push esi
push esi
push esi
push dword [ebp - 0x80]
push str.HEAD
push dword [ebp - 0x74]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov ebx, eax
cmp ebx, esi
je 0x1001d09c
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push esi
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
cmp eax, esi
je 0x1001d09c
push esi
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
push esi
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x6c]
push eax
push esi
push 5
push ebx
mov dword [ebp - 0x70], 0x208
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x1001d0ce
push 0xa
lea eax, [ebp - 0x6c]
push esi
push eax
call fcn.1003564f
add esp, 0xc
mov dword [ebp - 0x70], eax
jmp 0x1001d0d1
mov dword [ebp - 0x70], esi
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp ebx, esi
je 0x1001d0de
push ebx
call edi
cmp dword [ebp - 0x74], esi
je 0x1001d0e8
push dword [ebp - 0x74]
call edi
cmp dword [ebp - 0x78], esi
je 0x1001d0f2
push dword [ebp - 0x78]
call edi
mov ecx, dword [ebp + 0x19c]
mov eax, dword [ebp - 0x70]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10032a69
add ebp, 0x1a0
leave
ret 0x14
Function at 0x1001d6f0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x1004d276
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x1005ce10]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, dword [esp + 0x20]
xor edi, edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x2c], edi
mov dword [esp + 0x18], edi
mov dword [esi + 0x30], edi
mov byte [esp + 0x18], 1
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x24], edi
mov eax, dword [esi + 0x2c]
cmp eax, edi
je 0x1001d76f
lea ebx, [eax + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x1001d76f
cmp ebx, edi
je 0x1001d76f
lea ecx, [ebx - 4]
cmp ecx, edi
je 0x1001d76f
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov dword [esi + 0x2c], edi
mov dword [esi + 0x1c], edi
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4
Function at 0x1001e595
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
lea ebp, [esp - 0x94]
sub esp, 0x114
mov eax, dword [0x1005ce10]
xor eax, ebp
mov dword [ebp + 0x90], eax
mov eax, dword [ebp + 0x9c]
push ebx
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 0xa4]
push esi
push edi
mov dword [ebp - 0x80], eax
xor edi, edi
xor eax, eax
mov byte [ebp + eax - 0x70], al
inc eax
cmp eax, 0x100
jb 0x1001e5c9
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x78], edi
mov eax, 0xff
mov ecx, dword [ebp - 0x78]
mov ebx, dword [ebp - 0x74]
mov esi, dword [ebp - 0x7c]
movzx esi, byte [esi + ebx]
lea ecx, [ebp + ecx - 0x70]
mov dl, byte [ecx]
add esi, edi
movzx ebx, dl
add ebx, esi
and ebx, eax
inc dword [ebp - 0x74]
mov esi, dword [ebp - 0x74]
mov edi, ebx
cmp esi, dword [ebp + 0xa0]
jb 0x1001e610
and dword [ebp - 0x74], 0
inc dword [ebp - 0x78]
cmp dword [ebp - 0x78], 0x100
lea esi, [ebp + edi - 0x70]
mov bl, byte [esi]
mov byte [ecx], bl
mov byte [esi], dl
jb 0x1001e5e0
mov ecx, dword [ebp - 0x80]
xor edi, edi
mov dword [ebp - 0x74], ecx
mov ecx, dword [ebp + 0xa8]
mov dword [ebp - 0x78], edi
cmp ecx, edi
jbe 0x1001e678
mov dword [ebp - 0x7c], ecx
inc edi
and edi, eax
lea ecx, [ebp + edi - 0x70]
mov dl, byte [ecx]
movzx esi, dl
add esi, dword [ebp - 0x78]
and esi, eax
mov dword [ebp - 0x78], esi
lea esi, [ebp + esi - 0x70]
mov bl, byte [esi]
mov byte [ecx], bl
mov byte [esi], dl
movzx ecx, byte [ecx]
movzx edx, dl
add ecx, edx
and ecx, eax
mov dl, byte [ebp + ecx - 0x70]
mov ecx, dword [ebp - 0x74]
xor byte [ecx], dl
inc ecx
dec dword [ebp - 0x7c]
mov dword [ebp - 0x74], ecx
jne 0x1001e63e
mov ecx, dword [ebp + 0x90]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10032a69
add ebp, 0x94
leave
ret

Function at 0x1001e85c
Capabilities:
Hash data with md5

Disassembly:
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x100210b1
Capabilities:
Enumerate processes

Disassembly:
push ebp
lea ebp, [esp - 0x1bc]
sub esp, 0x23c
mov eax, dword [0x1005ce10]
xor eax, ebp
mov dword [ebp + 0x1b8], eax
push ebx
mov ebx, dword [ebp + 0x1c4]
push esi
push edi
xor edi, edi
push 0x228
lea eax, [ebp - 0x70]
push edi
push eax
mov esi, ecx
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x74], edi
call fcn.10035680
add esp, 0xc
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x78], eax
cmp eax, 0xffffffff
jne 0x10021105
xor eax, eax
jmp 0x1002116e
lea ecx, [ebp - 0x74]
push ecx
push eax
mov dword [ebp - 0x74], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x10021126
push dword [ebp - 0x78]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x68]
jmp 0x10021101
lea eax, [ebp - 0x50]
push ebx
push eax
call fcn.10032f4a
pop ecx
pop ecx
test eax, eax
je 0x10021188
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x78]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x10021126
mov ebx, edi
push dword [ebp - 0x78]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x68]
cmp ebx, edi
je 0x1002116b
lea eax, [ebp - 0x7c]
push eax
push 8
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x68]
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp + 0x1b8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10032a69
add ebp, 0x1bc
leave
ret 4
push dword [ebp - 0x6c]
push edi
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
jmp 0x10021148
Function at 0x100218ca
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push 0x20
mov eax, 0x1004cd01
call fcn.10035b95
mov esi, dword [ebp + 8]
push str.SYSTEMCurrentControlSet_services_
lea ecx, [ebp - 0x2c]
call fcn.10002648
and dword [ebp - 4], 0
push 0xffffffffffffffff
push 0
push 0x1005f370
lea ecx, [ebp - 0x2c]
call fcn.10002a3c
cmp dword [esi + 0x18], 8
mov eax, dword [esi + 0x14]
jb 0x10021909
mov esi, dword [esi + 4]
jmp 0x1002190c
add esi, 4
cmp dword [ebp - 0x14], 8
mov ecx, dword [ebp - 0x28]
jae 0x10021918
lea ecx, [ebp - 0x28]
add eax, eax
push eax
push esi
push 3
push str.UserSID
push ecx
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov esi, eax
neg esi
push 0
sbb esi, esi
push 1
lea ecx, [ebp - 0x2c]
inc esi
call fcn.100029d6
mov eax, esi
call fcn.10035c18
ret 4

Function at 0x1002194c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x224
lea ebp, [esp - 4]
mov eax, dword [0x1005ce10]
xor eax, ebp
mov dword [ebp + 0x224], eax
push 4
mov eax, 0x1004cd2e
call fcn.10035b2c
mov esi, dword [ebp + 0x230]
xor eax, eax
push 0x206
mov word [ebp + 0x1c], ax
xor edi, edi
lea eax, [ebp + 0x1e]
push edi
push eax
call fcn.10035680
add esp, 0xc
push str.SYSTEMCurrentControlSet_services_
lea ecx, [ebp]
mov dword [ebp - 0x10], edi
call fcn.10002648
push 0xffffffffffffffff
push edi
push 0x1005f370
lea ecx, [ebp]
mov dword [ebp - 4], edi
call fcn.10002a3c
cmp dword [ebp + 0x18], 8
mov eax, dword [ebp + 4]
mov dword [ebp - 0x10], 0x208
jae 0x100219c6
lea eax, [ebp + 4]
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp + 0x1c]
push ecx
push edi
push str.UserSID
push eax
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x10021a24
lea eax, [ebp + 0x1c]
push eax
mov ecx, esi
call fcn.100028fc
xor esi, esi
inc esi
push edi
push 1
lea ecx, [ebp]
call fcn.100029d6
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x224]
xor ecx, ebp
call fcn.10032a69
add ebp, 0x228
leave
ret 4
xor esi, esi
jmp 0x100219f2
Function at 0x10021a28
Capabilities:
Get disk information

Disassembly:
push 0x234
mov eax, 0x1004cd69
call fcn.10035b95
mov esi, dword [ebp + 0x24]
mov dword [ebp - 0x224], esi
xor ebx, ebx
cmp dword [ebp + 0x1c], 3
mov dword [ebp - 4], ebx
jae 0x10021a6f
push 0xffffffffffffffff
push ebx
lea eax, [ebp + 8]
push eax
mov ecx, esi
call fcn.10002869
push ebx
push 1
lea ecx, [ebp + 8]
call fcn.100029d6
xor eax, eax
inc eax
call fcn.10035c18
ret 0x20
push 1
lea ecx, [ebp + 8]
call fcn.10013050
cmp word [eax], 0x3a
jne 0x10021b48
push 2
lea ecx, [ebp + 8]
call fcn.10013050
cmp word [eax], 0x5c
jne 0x10021b48
xor eax, eax
mov esi, 0x1005073c
lea edi, [ebp - 0x18]
push 0x206
movsd dword es:[edi], dword [esi]
mov word [ebp - 0x220], ax
lea eax, [ebp - 0x21e]
push ebx
push eax
movsw word es:[edi], word [esi]
call fcn.10035680
add esp, 0xc
push ebx
lea ecx, [ebp + 8]
call fcn.10013050
mov ax, word [eax]
mov word [ebp - 0x18], ax
push 0x104
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jbe 0x10021b44
mov ecx, dword [ebp - 0x224]
lea eax, [ebp - 0x220]
push eax
call fcn.100028fc
push 0xffffffffffffffff
push 2
lea eax, [ebp - 0x240]
push eax
lea ecx, [ebp + 8]
call fcn.100026b7
mov ecx, dword [ebp - 0x224]
push 0xffffffffffffffff
push ebx
push eax
mov byte [ebp - 4], 1
call fcn.10002a3c
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [ebp - 0x240]
call fcn.100029d6
push ebx
push 1
lea ecx, [ebp + 8]
call fcn.100029d6
mov eax, esi
jmp 0x10021a67
xor esi, esi
jmp 0x10021b32
push 0xffffffffffffffff
push ebx
lea eax, [ebp + 8]
push eax
mov ecx, esi
call fcn.10002869
xor esi, esi
inc esi
jmp 0x10021b32
Function at 0x10021b5b
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x240
lea ebp, [esp - 4]
mov eax, dword [0x1005ce10]
xor eax, ebp
mov dword [ebp + 0x240], eax
push 0x28
mov eax, 0x1004cda1
call fcn.10035b2c
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 0x24c]
mov dword [ebp - 0x18], eax
xor eax, eax
push 0x206
mov word [ebp + 0x38], ax
xor edi, edi
lea eax, [ebp + 0x3a]
push edi
push eax
call fcn.10035680
add esp, 0xc
push edi
lea ecx, [ebp + 0x1c]
mov dword [ebp + 0x34], 7
call fcn.10002cd5
mov esi, 0x104
push esi
lea eax, [ebp + 0x38]
push eax
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push str._system32drivers_
push esi
lea eax, [ebp + 0x38]
push eax
call fcn.100030cb
lea eax, [ebp - 0x34]
push eax
mov ecx, 0x1005f328
call fcn.10028459
cmp dword [eax + 0x18], 8
jb 0x10021bf0
mov eax, dword [eax + 4]
jmp 0x10021bf3
add eax, 4
push eax
push esi
lea eax, [ebp + 0x38]
push eax
call fcn.100030cb
push edi
push 1
lea ecx, [ebp - 0x34]
call fcn.100029d6
lea eax, [ebp + 0x1c]
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x14], esp
push dword [ebp - 0x18]
call fcn.10002648
mov ecx, dword [ebp - 0x10]
call fcn.10021a28
push str.SYSTEMCurrentControlSet_services_
lea ecx, [ebp]
call fcn.10002648
push 0xffffffffffffffff
push edi
push 0x1005f370
lea ecx, [ebp]
mov byte [ebp - 4], 1
call fcn.10002a3c
lea ecx, [ebp + 0x1c]
call fcn.1000b799
lea eax, [ebp + 0x1c]
push eax
sub esp, 0x1c
lea eax, [ebp + 0x38]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.10002648
mov ecx, dword [ebp - 0x10]
call fcn.10021a28
push edi
push 1
lea ecx, [ebp]
call fcn.100029d6
push edi
push 1
lea ecx, [ebp + 0x1c]
call fcn.100029d6
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x240]
xor ecx, ebp
call fcn.10032a69
add ebp, 0x244
leave
ret 4