joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10110d80
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
xor edx, edx
push edi
xor edi, edi
mov dword [ebp - 4], edx
cmp dword [eax + 0x14], edx
jle 0x10110e3a
push ebx
push esi
nop dword [eax]
mov eax, dword [eax + 0x10]
mov ecx, edi
xor ecx, 1
cmp edi, 2
cmovge ecx, edi
add ecx, ecx
mov edx, dword [eax + ecx*8 + 0xc]
mov dword [ebp - 8], edx
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x10110e1a
mov ebx, dword [eax + ecx*8]
mov esi, edx
mov al, byte [edx]
movzx ecx, byte [ebx]
movzx edx, byte [ecx + 0x101b9858]
movzx ecx, al
movzx ecx, byte [ecx + 0x101b9858]
sub ecx, edx
jne 0x10110e01
sub ebx, esi
nop
test al, al
je 0x10110e16
movzx ecx, byte [ebx + esi + 1]
inc esi
movzx edx, byte [ecx + 0x101b9858]
mov al, byte [esi]
movzx ecx, al
movzx ecx, byte [ecx + 0x101b9858]
sub ecx, edx
je 0x10110de0
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
inc edi
cmp edi, dword [eax + 0x14]
jl 0x10110da0
pop esi
pop ebx
mov eax, edx
pop edi
mov esp, ebp
pop ebp
ret
test ecx, ecx
jne 0x10110e01
mov eax, dword [ebp - 8]
push 0
push dword [ebp + 0xc]
add eax, 0x18
push eax
call fcn.100d5460
add esp, 0xc
mov edx, dword [eax + 8]
mov dword [ebp - 4], edx
test edx, edx
jne 0x10110e0d
jmp 0x10110e04
mov eax, edx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x10110e50
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
nop
mov edx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [edx + 0x14], eax
jle 0x10110f1d
mov ebx, eax
xor ebx, 1
cmp eax, 2
cmovge ebx, eax
test edi, edi
je 0x10110ee0
mov eax, dword [edx + 0x10]
mov ecx, ebx
add ecx, ecx
mov esi, edi
mov edx, dword [eax + ecx*8]
mov al, byte [edi]
movzx ecx, al
movzx edi, byte [ecx + 0x101b9858]
movzx ecx, byte [edx]
movzx ecx, byte [ecx + 0x101b9858]
sub edi, ecx
jne 0x10110f04
sub edx, dword [ebp + 0x10]
mov dword [ebp - 8], edx
nop dword [eax]
test al, al
je 0x10110ed6
movzx ecx, byte [edx + esi + 1]
inc esi
movzx edx, byte [ecx + 0x101b9858]
mov al, byte [esi]
movzx ecx, al
movzx edi, byte [ecx + 0x101b9858]
sub edi, edx
mov edx, dword [ebp - 8]
je 0x10110eb0
jmp 0x10110f04
test edi, edi
jne 0x10110f04
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
shl ebx, 4
push 0
push ecx
mov eax, dword [ebx + eax + 0xc]
add eax, 8
push eax
call fcn.100d5460
add esp, 0xc
mov eax, dword [eax + 8]
test eax, eax
jne 0x10110fcd
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 8]
inc eax
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 4], eax
cmp eax, dword [edx + 0x14]
jl 0x10110e71
mov dl, byte [ecx]
movzx eax, dl
cmp byte [eax + 0x101b9858], 0x73
jne 0x10110fcb
mov esi, str.sqlite_master
sub esi, ecx
test dl, dl
je 0x10110f5f
movzx eax, byte [esi + ecx + 1]
inc ecx
mov dword [ebp + 0xc], ecx
mov dl, byte [ecx]
movzx ecx, byte [eax + 0x101b9858]
movzx eax, dl
movzx eax, byte [eax + 0x101b9858]
sub eax, ecx
jne 0x10110fcb
mov ecx, dword [ebp + 0xc]
jmp 0x10110f36
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov eax, dword [eax + 0x10]
mov edx, dword [eax + 0x10]
test edi, edi
jne 0x10110f75
neg edx
sbb edx, edx
jmp 0x10110fba
test edx, edx
je 0x10110fcb
movzx eax, byte [edx]
mov esi, edi
mov bl, byte [edi]
movzx ecx, byte [eax + 0x101b9858]
movzx eax, bl
movzx eax, byte [eax + 0x101b9858]
sub eax, ecx
jne 0x10110fb8
sub edx, edi
test bl, bl
je 0x10110fb8
movzx eax, byte [edx + esi + 1]
inc esi
movzx ecx, byte [eax + 0x101b9858]
mov bl, byte [esi]
movzx eax, bl
movzx eax, byte [eax + 0x101b9858]
sub eax, ecx
je 0x10110f97
mov edx, eax
test edx, edx
jne 0x10110fcb
mov ecx, str.sqlite_temp_master
mov dword [ebp + 0xc], ecx
jmp 0x10110e60
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x101477d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x30]
test eax, eax
je 0x101478a8
cmp dword [eax + 0x18], 0
je 0x10147899
push ebx
mov ebx, dword [eax]
push esi
push 0
push 0x14
mov dword [ebx], 0
call fcn.1011db10
mov esi, eax
add esp, 8
test esi, esi
jne 0x10147810
lea eax, [esi + 7]
pop esi
pop ebx
pop edi
pop ebp
ret
cmp dword [0x101eb66c], 0
je 0x10147858
mov eax, dword [0x101eb76c]
test eax, eax
je 0x10147830
push 0xc8
call eax
add esp, 4
test eax, eax
jne 0x10147858
lea eax, [esi + 4]
mov dword [esi + 8], 0x10147740
push eax
push 0
push esi
push 0x1012ba60
push 0
push 0
mov dword [esi + 0xc], edi
call fcn.1016e478
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x10147865
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
cmp dword [esi + 8], 0
jne 0x10147890
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 1
push edi
mov dword [esi + 4], eax
call fcn.101478c0
mov ecx, eax
add esp, 8
mov eax, dword [edi + 0x30]
mov eax, dword [eax]
mov dword [eax + 4], 1
mov dword [esi + 0x10], ecx
mov dword [ebx], esi
xor eax, eax
pop esi
pop ebx
pop edi
pop ebp
ret
push dword [ebp + 0xc]
push edi
call fcn.101478c0
add esp, 8
pop edi
pop ebp
ret
xor eax, eax
pop edi
pop ebp
ret
Function at 0x101479d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
xorps xmm0, xmm0
push esi
push edi
xor edi, edi
movlpd qword [ebp - 8], xmm0
mov eax, dword [ebx + 4]
cmp eax, dword [ebx + 0xc]
jl 0x10147b4f
jg 0x101479ff
mov eax, dword [ebx]
cmp eax, dword [ebx + 8]
jb 0x10147b4f
mov esi, dword [ebx + 0x30]
test esi, esi
je 0x10147b7b
cmp dword [esi + 0x18], edi
je 0x10147b03
push dword [esi]
call fcn.10148a20
mov edi, eax
add esp, 4
test edi, edi
jne 0x10147afe
movups xmm0, xmmword [esi + 0x30]
lea ecx, [esi + 0x20]
movups xmm1, xmmword [ecx]
movups xmmword [ecx], xmm0
mov eax, dword [esi + 0x28]
movups xmmword [esi + 0x30], xmm1
cmp eax, dword [esi + 8]
jne 0x10147a54
mov eax, dword [esi + 0x2c]
cmp eax, dword [esi + 0xc]
jne 0x10147a54
mov dword [esi + 0x14], 1
jmp 0x10147b33
mov eax, dword [esi]
push 0
push 0x14
mov dword [ebp + 8], eax
mov dword [eax], 0
call fcn.1011db10
mov edi, eax
add esp, 8
test edi, edi
jne 0x10147a7c
lea edi, [eax + 7]
lea ecx, [esi + 0x20]
jmp 0x10147b2f
cmp dword [0x101eb66c], 0
je 0x10147ac4
mov eax, dword [0x101eb76c]
test eax, eax
je 0x10147a9c
push 0xc8
call eax
add esp, 4
test eax, eax
jne 0x10147ac4
lea eax, [edi + 4]
mov dword [edi + 8], 0x10146bd0
push eax
push 0
push edi
push 0x1012ba60
push 0
push 0
mov dword [edi + 0xc], esi
call fcn.1016e478
add esp, 0x18
mov dword [edi], eax
test eax, eax
jne 0x10147ad1
xorps xmm0, xmm0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
cmp dword [edi + 8], 0
jne 0x10147af7
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push esi
mov dword [edi + 4], eax
call fcn.10146a10
mov ecx, eax
add esp, 4
mov eax, dword [esi]
mov dword [eax + 4], 1
mov dword [edi + 0x10], ecx
mov eax, dword [ebp + 8]
mov dword [eax], edi
xor edi, edi
lea ecx, [esi + 0x20]
jmp 0x10147b2f
push esi
call fcn.10146a10
movups xmm0, xmmword [esi + 0x30]
lea ecx, [esi + 0x20]
mov edi, eax
add esp, 4
movups xmmword [ecx], xmm0
mov eax, dword [esi + 0x28]
cmp eax, dword [esi + 8]
jne 0x10147b2f
mov eax, dword [esi + 0x2c]
cmp eax, dword [esi + 0xc]
jne 0x10147b2f
mov dword [esi + 0x14], 1
test edi, edi
jne 0x10147b7b
cmp dword [esi + 0x14], 0
jne 0x10147b7b
push dword [esi + 0xc]
push dword [esi + 8]
push ecx
push ebx
push dword [esi]
call fcn.10147ba0
add esp, 0x14
test eax, eax
jne 0x10147b74
lea eax, [ebp - 8]
push eax
push ebx
call fcn.10147650
add esp, 8
test eax, eax
jne 0x10147b74
mov ecx, dword [ebp - 8]
lea eax, [ebx + 0x20]
push eax
push ecx
push ebx
mov dword [ebx + 0x14], ecx
call fcn.101474b0
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
call fcn.10147770
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10148780
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor esi, esi
xor edi, edi
movzx ecx, byte [ebx + 0x3b]
dec ecx
mov byte [ebx + 0x38], 1
mov dword [ebp + 8], ecx
test ecx, ecx
jle 0x101487d8
nop dword [eax]
movzx eax, byte [ebx + 0x3a]
inc eax
add eax, edi
cdq
idiv ecx
lea esi, [edx + 1]
lea esi, [edx + esi*8]
cmp dword [ebx + esi*8 + 4], 0
lea esi, [ebx + esi*8]
je 0x101487ce
push esi
call fcn.10148a20
add esp, 4
test eax, eax
jne 0x101488e6
mov ecx, dword [ebp + 8]
cmp dword [esi], 0
je 0x101487d8
inc edi
cmp edi, ecx
jl 0x101487a0
lea eax, [ebx + 0x24]
cmp edi, ecx
jne 0x101487f7
push eax
lea eax, [ecx + 1]
lea eax, [ecx + eax*8]
lea eax, [ebx + eax*8]
push eax
call fcn.10148aa0
add esp, 8
pop edi
pop esi
pop ebx
pop ebp
ret
mov edi, dword [esi + 0x14]
mov ecx, esi
movq xmm0, qword [ebx + 0x24]
sub ecx, ebx
sub ecx, 0x40
mov eax, 0x38e38e39
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov byte [ebx + 0x3a], al
movq qword [esi + 0x10], xmm0
mov eax, dword [ebx + 0x2c]
mov dword [esi + 0x18], eax
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x2c], 0
test edi, edi
je 0x101488eb
push edi
mov dword [ebx + 0x28], edi
call dword [0x101eb6a0]
add esp, 4
mov dword [ebx + 0x34], eax
push 0
push 0x14
mov dword [esi], 0
call fcn.1011db10
mov edi, eax
add esp, 8
test edi, edi
je 0x1014890e
cmp dword [0x101eb66c], 0
je 0x101488af
mov eax, dword [0x101eb76c]
test eax, eax
je 0x10148887
push 0xc8
call eax
add esp, 4
test eax, eax
jne 0x101488af
lea eax, [edi + 4]
mov dword [edi + 8], 0x10148920
push eax
push 0
push edi
push 0x1012ba60
push 0
push 0
mov dword [edi + 0xc], esi
call fcn.1016e478
add esp, 0x18
mov dword [edi], eax
test eax, eax
jne 0x101488bc
xorps xmm0, xmm0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
cmp dword [edi + 8], 0
jne 0x101488e2
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [edi + 4], eax
lea eax, [esi + 0x10]
push eax
push esi
call fcn.10148aa0
mov dword [esi + 4], 1
add esp, 8
mov dword [edi + 0x10], eax
mov dword [esi], edi
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp dword [ebx + 0x28], 0
je 0x1014884b
mov eax, dword [ebx + 0x34]
cdq
push edx
push eax
call fcn.1011db10
add esp, 8
mov dword [ebx + 0x28], eax
test eax, eax
jne 0x1014884b
pop edi
pop esi
mov eax, 7
pop ebx
pop ebp
ret
Function at 0x1015b170
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
xor al, al
push edi
xor edi, edi
test esi, esi
je 0x1015b237
push ebx
mov ecx, dword [ebp + 8]
mov dl, byte [edi + ecx]
xor dl, al
mov cl, dl
shr cl, 1
mov al, cl
xor al, 0x8c
and dl, 1
movzx ebx, al
movzx eax, cl
cmove ebx, eax
mov cl, bl
shr cl, 1
mov al, cl
xor al, 0x8c
and bl, 1
movzx edx, al
movzx eax, cl
cmove edx, eax
mov cl, dl
shr cl, 1
mov al, cl
xor al, 0x8c
and dl, 1
movzx ebx, al
movzx eax, cl
cmove ebx, eax
mov cl, bl
shr cl, 1
mov al, cl
xor al, 0x8c
and bl, 1
movzx edx, al
movzx eax, cl
cmove edx, eax
mov cl, dl
shr cl, 1
mov al, cl
xor al, 0x8c
and dl, 1
movzx ebx, al
movzx eax, cl
cmove ebx, eax
mov cl, bl
shr cl, 1
mov al, cl
xor al, 0x8c
and bl, 1
movzx edx, al
movzx eax, cl
cmove edx, eax
mov cl, dl
shr cl, 1
mov al, cl
xor al, 0x8c
and dl, 1
movzx ebx, al
movzx eax, cl
cmove ebx, eax
mov cl, bl
shr cl, 1
mov al, cl
movzx ecx, cl
xor al, 0x8c
and bl, 1
movzx eax, al
cmove eax, ecx
inc edi
cmp edi, esi
jb 0x1015b185
pop ebx
pop edi
pop esi
pop ebp
ret

Function at 0x1015be70
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x101eff24]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x23c]
push 0x208
push 0
push eax
mov esi, ecx
call fcn.1016abc0
add esp, 0xc
lea eax, [ebp - 0x23c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
dec eax
cmp eax, 0x102
ja 0x1015bfae
mov ecx, esi
call fcn.1015c290
mov dword [ebp - 0x34], 0x790053
test eax, eax
jne 0x1015bf3c
lea eax, [ebp - 0x34]
mov dword [ebp - 0x30], 0x740073
push eax
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x2c], 0x6d0065
push eax
push edi
mov dword [ebp - 0x28], 0x320033
mov dword [ebp - 0x24], 0x6e005c
mov dword [ebp - 0x20], 0x6f0074
mov dword [ebp - 0x1c], 0x6b0073
mov dword [ebp - 0x18], 0x6e0072
mov dword [ebp - 0x14], 0x2e006c
mov dword [ebp - 0x10], 0x780065
mov dword [ebp - 0xc], 0x65
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10158d02
mov esp, ebp
pop ebp
ret 4
xor eax, eax
mov dword [ebp - 0x30], 0x4e0073
mov word [ebp - 8], ax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x2c], 0x740061
push eax
push edi
mov dword [ebp - 0x28], 0x760069
mov dword [ebp - 0x24], 0x5c0065
mov dword [ebp - 0x20], 0x74006e
mov dword [ebp - 0x1c], 0x73006f
mov dword [ebp - 0x18], 0x72006b
mov dword [ebp - 0x14], 0x6c006e
mov dword [ebp - 0x10], 0x65002e
mov dword [ebp - 0xc], 0x650078
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10158d02
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
mov eax, 0x80004005
pop edi
xor ecx, ebp
pop esi
call fcn.10158d02
mov esp, ebp
pop ebp
ret 4
Function at 0x1015cbf0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101a94b3
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x101eff24]
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 ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x8c], 0
mov dword [ebx], 0
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0
push 0x201
push dword [0x101eff40]
lea ecx, [ebp - 0x8c]
mov dword [ebp - 4], 0
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.1015cae0
mov edi, dword [ebp - 0x8c]
test eax, eax
jne 0x1015cdd1
push 0x64
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.1016abc0
add esp, 0xc
mov dword [ebp - 0x78], 0x64
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x7c]
push eax
push 0
push 0x101c5c04
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1015cdd1
mov eax, dword [ebp - 0x7c]
cmp eax, 1
je 0x1015ccc5
cmp eax, 2
jne 0x1015cdd1
mov ecx, dword [ebp - 0x78]
test ecx, ecx
je 0x1015cce6
test cl, 1
jne 0x1015cdd1
mov eax, ecx
shr eax, 1
cmp word [ebp + eax*2 - 0x76], 0
je 0x1015ccec
jmp 0x1015cdd1
xor eax, eax
mov word [ebp - 0x74], ax
shr ecx, 1
cmp ecx, 0x2d
jne 0x1015cdd1
call fcn.100349b0
mov ecx, eax
test ecx, ecx
je 0x1015cdfc
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x78]
call fcn.1015abb0
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x7c], 0
push eax
lea eax, [ebp - 0x20]
push 0x101c5c0c
push eax
call fcn.1015d260
mov esi, dword [ebp - 0x78]
push 0x2a
push esi
call fcn.1015b170
movzx eax, al
add esp, 0x14
cmp dword [ebp - 0x7c], eax
jne 0x1015cdb5
lea edx, [ebp - 0x74]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x1015cd56
sub edx, ecx
lea eax, [ebp - 0x74]
mov ecx, dword [ebp - 0x80]
sar edx, 1
push edx
push eax
call fcn.1015ce50
push dword [0x101eff48]
lea eax, [ebp - 0x74]
push dword [0x101eff44]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x1015cd92
mov dword [ebx], 1
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1015cdae
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, 1
jmp 0x1015cdd3
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1015cdd1
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor esi, esi
test edi, edi
je 0x1015cdde
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
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 - 0x10]
xor ecx, ebp
call fcn.10158d02
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10008350
int3
Function at 0x1015cf40
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101a94e8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x101eff24]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
push 0x202
push dword [0x101eff40]
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.1015cae0
test eax, eax
je 0x1015d068
mov esi, dword [ebp - 0x18]
mov edi, dword [0x101eff40]
mov dword [ebp - 0x10], 0
test esi, esi
je 0x1015d013
cmp dword [esi], 0
je 0x1015d006
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x1015cfd3
mov eax, 1
jmp 0x1015d034
push str.RegCreateKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1015d00c
push 0
push dword [esi]
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0x20206
push 0
push 0
push 0
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call eax
jmp 0x1015d034
cmp dword [esi + 4], 0
jne 0x1015d013
mov eax, 1
jmp 0x1015d034
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x20206
push 0
push 0
push 0
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1015d05e
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x1015d046
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], 0x200
test eax, eax
je 0x1015d06b
xor ebx, ebx
jmp 0x1015d10f
mov esi, dword [ebp - 0x20]
xor ebx, ebx
jmp 0x1015d10f
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
je 0x1015d0c8
mov ecx, dword [ebx]
test ecx, ecx
je 0x1015d12e
push ecx
push eax
call fcn.1016e8db
add esp, 8
test eax, eax
je 0x1015d0c8
mov edx, dword [edi]
test edx, edx
je 0x1015d0c8
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1015d0a0
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push str.m2_old
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebx]
test edx, edx
jne 0x1015d0d3
lea eax, [edx + 0xd]
jmp 0x1015d108
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1015d0e0
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push 0x101c5c04
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor ebx, ebx
test eax, eax
sete bl
test esi, esi
je 0x1015d11a
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10008350
int3
Function at 0x1015e910
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1015e981
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x1015e94f
cmp eax, 2
jne 0x1015e96b
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x1015e97b
test ecx, ecx
je 0x1015e976
test cl, 1
jne 0x1015e96b
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x1015e97b
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x10160350
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2ec
mov eax, dword [0x101eff24]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2ec], ebx
push edi
test ebx, ebx
je 0x10160554
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x10160554
push esi
push 0x64
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.1016abc0
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x2d8]
add esp, 0xc
push eax
push 8
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x10160529
xor edi, edi
mov dword [ebp - 0x2dc], 0x104
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x2dc]
push eax
lea eax, [ebp - 0x1d0]
push eax
push edi
push dword [ebp - 0x2d8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x10160518
lea eax, [ebp - 0x2e0]
push eax
push 1
push 0
lea eax, [ebp - 0x1d0]
push eax
push dword [ebp - 0x2d8]
call esi
test eax, eax
jne 0x101604e2
lea eax, [ebp - 0x2e4]
mov dword [ebp - 0x2e8], 1
push eax
lea eax, [ebp - 0x2d4]
mov dword [ebp - 0x2e4], 0x104
push eax
lea eax, [ebp - 0x2e8]
push eax
push 0
push str.ServiceName
push dword [ebp - 0x2e0]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x101604da
push 0x64
push eax
lea eax, [ebp - 0xcc]
push eax
call fcn.1016abc0
push 0x64
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0x2d4]
push eax
call fcn.10160570
add esp, 0x18
test eax, eax
je 0x101604da
cmp byte [ebp - 0x68], 0
je 0x1016049c
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0xcc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jns 0x101604da
lea ecx, [ebp - 0x68]
mov edx, 0x64
lea esi, [ebp - 0xcc]
mov eax, ecx
sub esi, eax
nop
lea eax, [edx + 0x7fffff9a]
test eax, eax
je 0x101604c9
mov al, byte [esi + ecx]
test al, al
je 0x101604c9
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x101604b0
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ecx - 1]
test edx, edx
cmovne eax, ecx
mov byte [eax], 0
push dword [ebp - 0x2e0]
call ebx
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x2dc]
mov dword [ebp - 0x2dc], 0x104
push eax
lea eax, [ebp - 0x1d0]
inc edi
push eax
push edi
push dword [ebp - 0x2d8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x101603f0
push dword [ebp - 0x2d8]
call ebx
mov ebx, dword [ebp - 0x2ec]
mov edi, dword [ebp + 0xc]
cmp byte [ebp - 0x68], 0
pop esi
je 0x10160554
lea eax, [ebp - 0x68]
push eax
push edi
push ebx
call fcn.10161560
xor ecx, ecx
test eax, eax
pop edi
setns cl
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10158d02
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop ebx
call fcn.10158d02
mov esp, ebp
pop ebp
ret