joyce8/EMBER2024-capa huggingface dataset:
Function at 0x106f896
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
or dword [ebp - 4], 0xffffffff
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x44]
lea ecx, [ebp - 8]
push ecx
push eax
call fcn.0106dd53
mov ebx, eax
test ebx, ebx
jl 0x106f937
cmp dword [ebp - 8], 0
je 0x106f933
mov esi, dword [esi + 0x44]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
lea ecx, [ebp - 4]
call fcn.0106d07b
cmp dword [ebp - 4], 0xffffffff
jne 0x106f8fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.01032e15
mov ebx, eax
jmp 0x106f933
push dword [ebp - 4]
call fcn.0106d02f
movzx eax, al
neg eax
sbb eax, eax
not eax
and eax, dword [ebp - 4]
lea ecx, [ebp - 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x106f8ea
cmp dword [ebp - 0xc], 0
jl 0x106f933
jg 0x106f92e
cmp dword [ebp - 0x10], 0x200000
jbe 0x106f933
mov ebx, 0x8007000d
test ebx, ebx
jge 0x106f95c
mov eax, dword [0x12d2c30]
cmp eax, 0x12d2c30
je 0x106f95c
test byte [eax + 0x3c], 2
je 0x106f95c
push ebx
push 0x1004d98
push 0x1c
push dword [eax + 0x34]
push dword [eax + 0x30]
call fcn.01032571
lea ecx, [ebp - 4]
call fcn.0106d05c
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x1070663
Capabilities:
Get file size
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
or dword [ebp - 8], 0xffffffff
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
cmp dword [ebp + 8], ebx
jne 0x107068b
mov dword [ebp - 4], 0x80070057
jmp 0x1070763
cmp dword [ebp + 0xc], ebx
je 0x107067f
cmp dword [ebp + 0x10], ebx
je 0x107067f
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
lea ecx, [ebp - 8]
call fcn.0106d07b
cmp dword [ebp - 8], 0xffffffff
jne 0x10706d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.01032e15
mov dword [ebp - 4], eax
jmp 0x107075e
push dword [ebp - 8]
call fcn.0106d02f
mov byte [ebp + 0xb], al
cmp al, bl
je 0x10706e4
xor eax, eax
jmp 0x10706e7
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x10706bd
cmp dword [ebp - 0x10], ebx
jne 0x107067f
push esi
call fcn.010324a4
lea ecx, [ebp - 0xc]
mov edi, eax
call fcn.0106dccb
cmp edi, ebx
jne 0x107071e
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], 0x8007000e
jmp 0x1070763
mov dword [ebp - 0xc], edi
cmp byte [ebp + 0xb], bl
je 0x107072a
xor eax, eax
jmp 0x107072d
mov eax, dword [ebp - 8]
push ebx
lea ecx, [ebp - 0x14]
push ecx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10706bd
cmp dword [ebp - 0x14], esi
je 0x1070751
mov dword [ebp - 4], 0x8000ffff
jmp 0x1070763
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], ebx
mov dword [eax], edi
cmp dword [ebp - 4], ebx
jge 0x107078a
mov eax, dword [0x12d2c30]
cmp eax, 0x12d2c30
je 0x107078a
test byte [eax + 0x3c], 2
je 0x107078a
push dword [ebp - 4]
push 0x1004ff0
push 0x32
push dword [eax + 0x34]
push dword [eax + 0x30]
call fcn.01032571
lea ecx, [ebp - 0xc]
call fcn.0106dccb
lea ecx, [ebp - 8]
call fcn.0106d05c
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x1070adb
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
cmp dword [ebp + 8], 0x80000001
push edi
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
jne 0x1070afc
mov dword [ebp - 0xc], esi
lea eax, [ebp - 4]
push eax
push 2
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0106ff4d
mov edi, eax
cmp edi, esi
jl 0x1070b40
mov eax, dword [ebp - 4]
lea ecx, [ebp + 8]
push ecx
push dword [ebp + 0x18]
mov dword [ebp - 8], esi
push dword [ebp + 0x14]
push 3
push esi
push dword [ebp + 0x10]
mov dword [ebp + 8], esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push eax
call fcn.010330ee
mov edi, dword [ebp + 8]
cmp edi, esi
jge 0x1070b65
mov eax, dword [0x12d2c30]
cmp eax, 0x12d2c30
je 0x1070b65
test byte [eax + 0x3c], 2
je 0x1070b65
push edi
push 0x1005030
push 0x24
push dword [eax + 0x34]
push dword [eax + 0x30]
call fcn.01032571
lea ecx, [ebp - 8]
call fcn.0103a5a4
lea ecx, [ebp - 0xc]
call fcn.010339a8
lea ecx, [ebp - 4]
call fcn.010339a8
mov eax, edi
pop edi
pop esi
leave
ret 0x14
Function at 0x1070cca
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
rdtsc
sub esp, 0x2c
mov dword [0x12d47a4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0x80000000
cmp dword [0x12d6098], 0
mov dword [0x12d37ac], eax
jne 0x1070d0e
mov ecx, 0x12d3cf8
call fcn.0120fee6
test eax, eax
jl 0x1070eb0
mov dword [0x12d6098], 1
lea eax, [ebp - 0x2c]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x100003c]
mov ecx, dword [eax + 0x1000050]
mov edx, 0x1000000
add ecx, edx
mov eax, dword [ebp - 0x24]
lea edi, [eax - 0x80000000]
cmp ecx, edi
jb 0x1070d3e
lea eax, [ecx - 0x80000000]
add eax, 0xffff
and eax, 0xffff0000
mov ecx, dword [ebp - 0x20]
mov dword [0x12d4710], eax
lea edi, [ecx - 0x80000000]
cmp edi, edx
pop edi
jb 0x1070d60
mov ecx, 0x81000000
mov dword [0x12d6314], ecx
xor ecx, ecx
mov word [0x12d6314], cx
mov ecx, dword [0x12d6314]
sub ecx, eax
shr ecx, 0x10
mov dword [0x12d5eec], ecx
xor eax, eax
test eax, eax
jl 0x1070eb0
mov ecx, dword [0x12d4f24]
jmp 0x1070db1
imul ecx, ecx, 0x18
add ecx, 0x12d4928
call fcn.0120fee6
test eax, eax
jl 0x1070db6
mov ecx, dword [0x12d4f24]
inc ecx
mov dword [0x12d4f24], ecx
cmp ecx, 1
jb 0x1070d92
test eax, eax
mov dword [ebp - 4], eax
jl 0x1070eb0
mov eax, dword [0x1011bb0]
test eax, eax
je 0x1070e50
lea eax, [ebp - 8]
push eax
mov ecx, dword [0x1011bb0]
mov eax, dword [0x1116588]
imul eax, ecx
push 0x40
push eax
push section..data
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1070e11
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1070e03
mov eax, 0x54f
test eax, eax
jle 0x1070e52
and eax, 0xffff
or eax, 0x80070000
jmp 0x1070e52
xor edx, edx
mov eax, dword [0x1011bb0]
test eax, eax
jbe 0x1070e50
mov ecx, dword [0x1116588]
mov eax, dword [0x1116588]
imul eax, edx
lea eax, [eax + section..data]
test ecx, ecx
je 0x1070e3b
mov byte [eax], 0
inc eax
dec ecx
jne 0x1070e34
mov eax, dword [0x1011bb0]
mov dword [edx*4 + 0x12d4c14], 0xcb65
inc edx
cmp edx, eax
jb 0x1070e1c
xor eax, eax
test eax, eax
jl 0x1070eb0
mov ecx, dword [0x12d3ffc]
test ecx, ecx
je 0x1070e99
mov eax, dword [0x12d3ff4]
lea edx, [eax + 0x12d4024]
add eax, dword [0x12d3ff8]
mov dword [0x12d400c], edx
lea edx, [eax + 0x12d4024]
lea eax, [eax + ecx + 0x12d4024]
mov dword [0x12d4004], 0x12d4024
mov dword [0x12d4014], edx
mov dword [0x12d401c], eax
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
mov eax, 0xa97f7c7f
mov eax, dword [ebp - 4]
test eax, eax
pop ecx
jl 0x1070eb0
xor eax, eax
leave
ret
Function at 0x1071014
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push edi
lea eax, [ebp - 4]
push eax
push 1
xor edi, edi
push edi
push 0x10055e8
push 0x80000002
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1071070
mov eax, dword [ebp - 4]
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push edi
push 0x10055d0
push eax
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1071070
cmp dword [ebp - 0xc], 4
jne 0x1071070
cmp dword [ebp - 0x10], edi
je 0x1071070
inc edi
mov eax, dword [ebp + 8]
lea ecx, [ebp - 4]
mov dword [eax], edi
call fcn.010339a8
xor eax, eax
pop edi
leave
ret 4

Function at 0x1071084
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
push edi
mov edi, dword [ebp + 8]
and dword [edi], 0
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x1005678
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10710e7
mov eax, dword [ebp - 4]
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push 0
push 0x100564c
push eax
mov dword [ebp + 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10710e7
cmp dword [ebp - 8], 1
sete al
mov dword [edi], eax
lea ecx, [ebp - 4]
call fcn.010339a8
xor eax, eax
pop edi
leave
ret 4

Function at 0x10710f6
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
push edi
mov edi, dword [ebp + 8]
and dword [edi], 0
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x1005678
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1071159
mov eax, dword [ebp - 4]
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push 0
push 0x1005694
push eax
mov dword [ebp + 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1071159
cmp dword [ebp - 8], 1
sete al
mov dword [edi], eax
lea ecx, [ebp - 4]
call fcn.010339a8
xor eax, eax
pop edi
leave
ret 4
Function at 0x1073bca
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
cmp dword [ebp + 8], 0x80000001
push edi
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
jne 0x1073beb
mov dword [ebp - 0xc], esi
lea eax, [ebp - 4]
push eax
push 2
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0103482d
mov edi, eax
cmp edi, esi
jl 0x1073c30
mov eax, dword [ebp - 4]
lea ecx, [ebp + 8]
push ecx
push dword [ebp + 0x18]
lea ecx, [ebp + 0x14]
push ecx
push 4
push esi
push dword [ebp + 0x10]
mov dword [ebp - 8], esi
push eax
mov dword [ebp + 8], esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push eax
call fcn.010330ee
mov edi, dword [ebp + 8]
cmp edi, esi
jge 0x1073c55
mov eax, dword [0x12d2c30]
cmp eax, 0x12d2c30
je 0x1073c55
test byte [eax + 0x3c], 2
je 0x1073c55
push edi
push 0x1005030
push 0x24
push dword [eax + 0x34]
push dword [eax + 0x30]
call fcn.01032571
lea ecx, [ebp - 8]
call fcn.0103a5a4
lea ecx, [ebp - 0xc]
call fcn.010339a8
lea ecx, [ebp - 4]
call fcn.010339a8
mov eax, edi
pop edi
pop esi
leave
ret 0x14
Function at 0x107ba2c
Capabilities:
Encode data using xor

Disassembly:
call [edi - 0x75]
invalid
mov edi, edi
push ebx
mov ebx, esp
push ecx
push ecx
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x18
mov ecx, dword [0x12d430c]
and dword [ebp - 8], 0
and dword [ebp - 4], 0
push esi
mov esi, dword [0x12d4308]
push edi
add ecx, 4
call fcn.010538b5
call fcn.0108ab6c
sbb byte [esi + 0x2c], ah
mov al, 0x2b
leave
sbb eax, 0x1e8f0
inc eax
sbb al, 0x66
sub al, 0
mov ecx, dword [esi]
lea edx, [ebp - 4]
push edx
push 0x1001d44
push dword [ebx + 8]
push eax
push esi
call dword [ecx + 0x14]
call fcn.01031025
mov dh, 0xf
inc ebp
loopne 0x107ba22
sub dword [eax + edx], ebp
mov byte [ecx], ch
sub al, 0x90
std
add dword [eax], eax
shr al, 1
dec esi
invalid

Function at 0x108d0c2
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
and dword [ebp - 0x24], 0
push esi
mov esi, dword [ebp + 8]
push edi
push 8
xor eax, eax
pop ecx
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
xor edi, edi
test esi, esi
jne 0x108d115
mov edi, 0x80070057
mov eax, dword [0x12d2c30]
cmp eax, 0x12d2c30
je 0x108d10d
test byte [eax + 0x3c], 2
je 0x108d10d
push edi
push 0x1006780
push 0xa
push dword [eax + 0x34]
push dword [eax + 0x30]
call fcn.01032571
mov eax, edi
pop edi
pop esi
leave
ret 4
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [ebp - 0x24]
test eax, eax
je 0x108d141
cmp eax, 6
je 0x108d13c
cmp eax, 9
je 0x108d138
mov edi, 0x80004005
jmp 0x108d0e8
push 2
jmp 0x108d13e
push 3
pop eax
jmp 0x108d144
xor eax, eax
inc eax
mov dword [esi], eax
jmp 0x108d10d

Function at 0x108de7e
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x12d3ad4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
push 0x10
pop ecx
mov esi, 0x1006910
lea edi, [ebp - 0x48]
rep movsd dword es:[edi], dword [esi]
xor ebx, ebx
movsw word es:[edi], word [esi]
test eax, eax
jne 0x108deb2
mov ebx, 0x80070057
jmp 0x108dee2
push dword [ebp + 8]
push eax
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x108ded0
cmp dword [ebp + 8], eax
jae 0x108df07
mov ebx, 0x8007007a
jmp 0x108dee2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.01032e15
mov ebx, eax
test ebx, ebx
jge 0x108df07
mov eax, dword [0x12d2c30]
cmp eax, 0x12d2c30
je 0x108df07
test byte [eax + 0x3c], 2
je 0x108df07
push ebx
push 0x1006780
push 0xb
push dword [eax + 0x34]
push dword [eax + 0x30]
call fcn.01032571
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0128e47a
leave
ret 8
Function at 0x10ad68b
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebx
mov ebx, esp
push ecx
push ecx
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x1c
and dword [ebp - 4], 0
push esi
lea eax, [ebp - 4]
push eax
push 0
push 0x100c004
call fcn.0107ba2c
call fcn.0125bfba
rcl dword [0xbea100b2], cl
push cs
mov al, 0x78
test dword [eax + edx], ebp
adc eax, 0xe8900000
cmp bh, bh
push ss
add ah, bl
and al, 0x2c
inc eax
sub byte [eax + 0x1b9022], bh
add byte [eax], ah
fsub dword [esp + ebp]
add byte [ebx + 0xff685f0], cl
invalid

Function at 0x10b376c
Capabilities:
Access the windows event log

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push edi
push 5
pop eax
xor edi, edi
cmp dword [ebp + 0x18], eax
jbe 0x10b3782
mov dword [ebp + 0x18], eax
xor eax, eax
cmp dword [ebp + 0x18], eax
jbe 0x10b379b
lea ecx, [ebp + 0x18]
add ecx, 4
mov edx, dword [ecx]
mov dword [ebp + eax*4 - 0x14], edx
inc eax
cmp eax, dword [ebp + 0x18]
jb 0x10b378c
push esi
push 0x100c1d8
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
jne 0x10b37c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10b37c3
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
jmp 0x10b3806
push dword [ebp + 0x14]
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0x18]
push 0
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
test eax, eax
jne 0x10b37ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10b37fd
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
test edi, edi
jge 0x10b3830
mov eax, dword [0x12d2c30]
cmp eax, 0x12d2c30
je 0x10b3830
test byte [eax + 0x3c], 2
je 0x10b3830
push edi
push 0x100c224
push 0xa
push dword [eax + 0x34]
push dword [eax + 0x30]
call fcn.01032571
mov eax, edi
pop edi
leave
ret

Function at 0x10b6134
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x12d3ad4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push 0x90
lea eax, [ebp - 0x94]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
xor edi, edi
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x10b6191
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.01032e15
mov edi, eax
jmp 0x10b61b6
cmp dword [ebp - 0x88], 2
jne 0x10b61b2
cmp dword [ebp - 0x94], 5
ja 0x10b61ad
jne 0x10b61b2
cmp dword [ebp - 0x90], edi
jbe 0x10b61b2
xor eax, eax
inc eax
jmp 0x10b61b4
xor eax, eax
mov dword [esi], eax
test edi, edi
jge 0x10b61df
mov eax, dword [0x12d2c30]
cmp eax, 0x12d2c30
je 0x10b61df
test byte [eax + 0x3c], 2
je 0x10b61df
push edi
push 0x100c468
push 0x24
push dword [eax + 0x34]
push dword [eax + 0x30]
call fcn.01032571
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0128e47a
leave
ret 4
Function at 0x10b7b83
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push edi
lea eax, [ebp - 4]
push eax
push 1
push dword [ebp + 0xc]
xor edi, edi
push dword [ebp + 8]
mov dword [ebp - 4], edi
call fcn.0103bfad
cmp eax, edi
mov dword [ebp + 0xc], eax
jl 0x10b7bfa
mov eax, dword [ebp - 4]
push esi
lea ecx, [ebp - 8]
push ecx
push edi
lea ecx, [ebp + 8]
push ecx
push edi
push dword [ebp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
xor esi, esi
sub ecx, edi
je 0x10b7be0
dec ecx
dec ecx
je 0x10b7bdc
lea ecx, [ebp + 0xc]
push ecx
push eax
call fcn.010330ee
test eax, eax
je 0x10b7bf4
jmp 0x10b7be3
xor esi, esi
jmp 0x10b7be3
xor esi, esi
inc esi
mov eax, dword [ebp + 0x14]
mov dword [eax], esi
mov eax, dword [ebp + 0x18]
cmp eax, edi
je 0x10b7bf4
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
cmp dword [ebp + 0xc], edi
pop esi
jge 0x10b7c21
mov eax, dword [0x12d2c30]
cmp eax, 0x12d2c30
je 0x10b7c21
test byte [eax + 0x3c], 2
je 0x10b7c21
push dword [ebp + 0xc]
push 0x100c478
push 0x2d
push dword [eax + 0x34]
push dword [eax + 0x30]
call fcn.01032571
lea ecx, [ebp - 4]
call fcn.010339a8
mov eax, dword [ebp + 0xc]
pop edi
leave
ret 0x14
Function at 0x10ba1f4
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x12d3ad4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x24]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 4
push 1
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
call esi
test eax, eax
jne 0x10ba262
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.01032e15
mov dword [ebp - 0x10], eax
jmp 0x10ba319
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 6
push 1
lea eax, [ebp - 0xc]
push eax
call esi
test eax, eax
je 0x10ba24e
lea eax, [ebp - 0x20]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x10ba24e
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x1c]
push ecx
push 2
push eax
call fcn.010b9efa
cmp eax, ebx
mov dword [ebp - 0x10], eax
jl 0x10ba31e
push edi
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
cmp dword [edi], ebx
jbe 0x10ba309
lea esi, [edi + 4]
push dword [esi]
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x10ba2d8
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x14], ebx
jmp 0x10ba2f2
push dword [esi]
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x10ba2f2
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x14], 1
inc dword [ebp - 0x2c]
mov eax, dword [ebp - 0x2c]
add esi, 8
cmp eax, dword [edi]
jb 0x10ba2bc
cmp dword [ebp - 0x14], ebx
jne 0x10ba310
cmp dword [ebp - 0x28], ebx
jne 0x10ba310
mov dword [ebp - 0x14], 1
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
pop edi
cmp dword [ebp - 0x10], ebx
jge 0x10ba345
mov eax, dword [0x12d2c30]
cmp eax, 0x12d2c30
je 0x10ba345
test byte [eax + 0x3c], 2
je 0x10ba345
push dword [ebp - 0x10]
push 0x100c468
push 0x2f
push dword [eax + 0x34]
push dword [eax + 0x30]
call fcn.01032571
lea ecx, [ebp - 0x18]
call fcn.0103a4da
lea ecx, [ebp - 0x24]
call fcn.0103a4da
lea ecx, [ebp - 0x1c]
call fcn.010b60fb
lea ecx, [ebp - 0x20]
call fcn.0103397a
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
pop esi
xor ecx, ebp
pop ebx
call fcn.0128e47a
leave
ret 4
Function at 0x10d4ab5
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
not eax
jbe 0x10d4aee
push esi
movzx esi, byte [ecx]
dec dword [ebp + 0x10]
mov edx, eax
shr edx, 0x18
xor edx, esi
and edx, 0xff
shl eax, 8
xor eax, dword [edx*4 + 0x1012088]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x10d4ac9
pop esi
not eax
pop ebp
ret 0xc
Function at 0x10d846f
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xb0
mov eax, dword [0x12d3ad4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor esi, esi
mov edi, ecx
lea ecx, [ebp - 0x80]
mov dword [ebp - 0xa8], esi
mov dword [ebp - 0xa4], esi
mov dword [ebp - 0xa0], esi
call fcn.010d3caf
mov eax, dword [edi]
lea ecx, [ebp - 0x98]
push ecx
push 8
push esi
push eax
push 0x80000002
mov dword [ebp - 0x98], esi
mov dword [ebp - 0xac], esi
mov dword [ebp - 0x94], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, 2
jne 0x10d84e2
mov dword [ebp - 0x94], esi
jmp 0x10d85e1
lea ecx, [ebp - 0x94]
push ecx
push eax
call fcn.010330ee
test eax, eax
je 0x10d85af
mov dword [ebp - 0x9c], esi
mov eax, dword [ebp - 0x98]
push esi
push esi
push esi
push esi
lea ecx, [ebp - 0xb0]
push ecx
lea ecx, [ebp - 0x50]
push ecx
push dword [ebp - 0x9c]
mov dword [ebp - 0xb0], 0x25
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
inc dword [ebp - 0x9c]
cmp eax, 0x103
je 0x10d8595
lea ecx, [ebp - 0x94]
push ecx
push eax
call fcn.010330ee
test eax, eax
je 0x10d85af
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.0103b3f4
test eax, eax
jl 0x10d85a5
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x50]
push eax
mov ecx, edi
call fcn.010d6217
cmp eax, esi
mov dword [ebp - 0x94], eax
jl 0x10d85b7
push esi
push esi
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0xa8]
call fcn.010d71f2
cmp eax, esi
mov dword [ebp - 0x94], eax
jge 0x10d84fd
jmp 0x10d85b7
lea eax, [ebp - 0xa8]
push eax
mov ecx, ebx
call fcn.010d7277
jmp 0x10d85af
mov dword [ebp - 0x94], 0x8004f807
cmp dword [ebp - 0x94], esi
jge 0x10d85e1
mov eax, dword [0x12d2c30]
cmp eax, 0x12d2c30
je 0x10d85e1
test byte [eax + 0x3c], 2
je 0x10d85e1
push dword [ebp - 0x94]
push 0x1011bb4
push 0xd
push dword [eax + 0x34]
push dword [eax + 0x30]
call fcn.01032571
lea ecx, [ebp - 0xac]
call fcn.01033b21
lea ecx, [ebp - 0x98]
call fcn.010339a8
lea ecx, [ebp - 0x80]
call fcn.010d3cd1
push esi
lea ecx, [ebp - 0xa8]
call fcn.010d6365
lea ecx, [ebp - 0xa0]
call fcn.010d1f3f
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x94]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0128e47a
leave
ret 4