joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10060887
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x428
mov eax, 0x101d6240
call fcn.10096fd0
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp - 0x424], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], ebx
mov dword [ebp - 0x418], ebx
mov byte [ebp - 4], 1
push 2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x41c], eax
cmp eax, ebx
jne 0x100608e0
call fcn.1005b585
mov esi, eax
jmp 0x100609fb
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
jne 0x100608f9
call fcn.1005b585
jmp 0x100609ed
push esi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x420], eax
cmp eax, ebx
je 0x100608ef
push esi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x428], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x10060966
mov byte [ebp - 4], bl
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x10060948
lea ecx, [ebp - 0x418]
call fcn.1005bfbc
mov esi, 0x8007000e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x424]
call fcn.1003f83d
mov eax, esi
call fcn.1009702c
ret 0x10
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x418]
call fcn.1005ed53
mov dword [ebp - 4], 1
jmp 0x1006099f
cmp dword [ebp - 0x418], ebx
jne 0x100609ae
mov esi, 0x8007000e
jmp 0x100609ef
push esi
push dword [ebp - 0x418]
push esi
push dword [ebp - 0x420]
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x100608ef
xor ecx, ecx
mov edx, dword [ebp - 0x418]
mov word [edx + eax*2], cx
push dword [ebp + 0x14]
push dword [ebp - 0x418]
lea ecx, [ebp - 0x430]
call fcn.1006045e
mov esi, eax
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [ebp - 4], bl
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x1006094d
lea ecx, [ebp - 0x418]
call fcn.1005bfbc
jmp 0x1006094d

Function at 0x10061d08
Capabilities:
Get file size

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x24], 0xffffffff
push edi
jne 0x10061d74
mov eax, dword [esi + 0x28]
xor edi, edi
cmp eax, edi
je 0x10061d35
push edi
push 0x80
push 4
push edi
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x24], eax
mov eax, dword [esi + 0x24]
cmp eax, 0xffffffff
jne 0x10061d41
xor eax, eax
jmp 0x10061d77
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x500000
jbe 0x10061d67
push edi
push edi
push edi
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
jmp 0x10061d74
push 2
push edi
push edi
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor eax, eax
inc eax
pop edi
pop esi
ret
Function at 0x10061d7a
Capabilities:
Write file on windows

Disassembly:
push 0x10
mov eax, 0x101d660a
call fcn.10096f31
mov esi, ecx
push 1
lea eax, [esi + 4]
push eax
lea ecx, [ebp - 0x1c]
call fcn.100da930
and dword [ebp - 4], 0
mov ecx, esi
call fcn.10061d08
test eax, eax
je 0x10061dcd
cmp dword [ebp + 8], 0
je 0x10061dcd
and dword [ebp - 0x10], 0
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call fcn.10097626
pop ecx
add eax, eax
push eax
push dword [ebp + 8]
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_WriteFile]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.100da990
call fcn.10097009
ret 4

Function at 0x10062427
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x10246460]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, ecx
call fcn.10061cde
test ebx, ebx
je 0x10062529
push esi
push ebx
call fcn.10097626
mov esi, eax
pop ecx
test esi, esi
jbe 0x10062528
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.10097040
push 0x5c
push ebx
call fcn.10097976
add esp, 0x14
mov dword [ebp - 0x210], eax
test eax, eax
jne 0x100624b9
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0x20c]
push eax
call fcn.10097626
pop ecx
lea esi, [esi + eax + 2]
xor ecx, ecx
push 2
pop edx
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100639c2
pop ecx
mov dword [edi + 0x28], eax
test eax, eax
je 0x10062528
lea ecx, [esi + esi + 2]
push ecx
push 0
push eax
call fcn.10097040
add esp, 0xc
cmp dword [ebp - 0x210], 0
jne 0x1006251b
lea eax, [ebp - 0x20c]
push eax
push dword [edi + 0x28]
call fcn.10097591
push 0x101e5fb4
push dword [edi + 0x28]
call fcn.10097563
push ebx
push dword [edi + 0x28]
call fcn.10097563
add esp, 0x18
jmp 0x10062528
push esi
push ebx
push dword [edi + 0x28]
call fcn.100975dc
add esp, 0xc
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.10096f22
leave
ret 4

Function at 0x1006b529
Capabilities:
Query or enumerate registry value

Disassembly:
push 0
mov eax, 0x101d7376
call fcn.10096f31
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.10064b06
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x1006b58b
call fcn.10067fcc
cmp eax, 1
jne 0x1006b58b
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.1006acf4
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.10067438
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.1001f92d
mov dword [ebp + 8], reloc.WS2_32.dll_accept
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.1001f92d
mov eax, esi
call fcn.10097009
ret 0x10
Function at 0x1006b5b4
Capabilities:
Set registry value

Disassembly:
push 0
mov eax, 0x101d73a1
call fcn.10096f31
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.10064b06
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x1006b616
call fcn.10067fcc
cmp eax, 1
jne 0x1006b616
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.1006acf4
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.10067438
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.1001f92d
mov dword [ebp + 8], reloc.WS2_32.dll_accept
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.1001f92d
mov eax, esi
call fcn.10097009
ret 0x14

Function at 0x1006b642
Capabilities:
Delete registry key

Disassembly:
push 0
mov eax, 0x101d73cc
call fcn.10096f31
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.10064b06
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x1006b6a4
call fcn.10067fcc
cmp eax, 1
jne 0x1006b6a4
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.1006acf4
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.10067438
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.1001f92d
mov dword [ebp + 8], reloc.WS2_32.dll_accept
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.1001f92d
mov eax, esi
call fcn.10097009
ret 8

Function at 0x1007979e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x100797e5
call fcn.10068be6
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x100797e5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x10079801
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.10079316
mov esi, eax
test edi, edi
je 0x100797ff
test ebx, ebx
je 0x100797ff
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x1007d590
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x101d8721
call fcn.10096f31
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x1007d5b5
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x1007d5fb
lea ecx, [ebp - 0x10]
call fcn.1006433f
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10063a45
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.1001f92d
mov eax, esi
call fcn.10097009
ret 8

Function at 0x10086c71
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x10086c95
cmp dword [edi + 0x54], 0
jne 0x10086c95
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.10068be6
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.10086c32
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x10096f22
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10246460]
jne 0x10096f2c
repz ret
jmp fcn.100a170c
Function at 0x100bef94
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.100a103d
and dword [ebp - 4], 0
cmp dword [0x1026c478], 0
mov ebx, eax
jne 0x100bf045
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x100bf0f6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1020daa4
push edi
call esi
test eax, eax
je 0x100bf0f6
push eax
call fcn.100a0fcb
mov dword [esp], 0x1020da94
push edi
mov dword [0x1026c478], eax
call esi
push eax
call fcn.100a0fcb
mov dword [esp], 0x1020da80
push edi
mov dword [0x1026c47c], eax
call esi
push eax
call fcn.100a0fcb
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x1026c480], eax
call esi
push eax
call fcn.100a0fcb
pop ecx
mov dword [0x1026c488], eax
test eax, eax
je 0x100bf045
push 0x1020da4c
push edi
call esi
push eax
call fcn.100a0fcb
pop ecx
mov dword [0x1026c484], eax
mov eax, dword [0x1026c484]
cmp eax, ebx
je 0x100bf09d
cmp dword [0x1026c488], ebx
je 0x100bf09d
push eax
call fcn.100a1046
push dword [0x1026c488]
mov esi, eax
call fcn.100a1046
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x100bf09d
test edi, edi
je 0x100bf09d
call esi
test eax, eax
je 0x100bf094
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x100bf094
test byte [ebp - 0xc], 1
jne 0x100bf09d
or dword [ebp + 0x10], 0x200000
jmp 0x100bf0d6
mov eax, dword [0x1026c47c]
cmp eax, ebx
je 0x100bf0d6
push eax
call fcn.100a1046
pop ecx
test eax, eax
je 0x100bf0d6
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x100bf0d6
mov eax, dword [0x1026c480]
cmp eax, ebx
je 0x100bf0d6
push eax
call fcn.100a1046
pop ecx
test eax, eax
je 0x100bf0d6
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1026c478]
call fcn.100a1046
pop ecx
test eax, eax
je 0x100bf0f6
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x100bf0f8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100cad50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push esi
mov esi, eax
shr eax, 4
and esi, 0xf
inc eax
push edi
mov edi, dword [esp + 0xc]
and eax, 0xffff
push ecx
push eax
push 6
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x100cad9e
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x100cad9e
xor edx, edx
xor ecx, ecx
mov cx, word [eax]
add eax, 2
cmp esi, edx
je 0x100cada3
inc edx
lea eax, [eax + ecx*2]
cmp edx, 0x10
jl 0x100cad89
pop edi
xor eax, eax
pop esi
ret
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
test edi, edi
jne 0x100cadb3
test esi, esi
jne 0x100cadd1
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jle 0x100cadcf
mov byte [eax + esi - 1], 0
jne 0x100cadd8
mov byte [esi + edi - 1], 0
mov eax, edi
pop edi
dec eax
pop esi
ret
Function at 0x100d04d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push esi
push edi
mov esi, dword [esp + 0xc]
mov edi, eax
shr eax, 4
and edi, 0xf
inc eax
and eax, 0xffff
push ecx
push eax
push 6
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x100d0520
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x100d0520
xor ecx, ecx
xor eax, eax
mov ax, word [esi]
add esi, 2
cmp edi, ecx
je 0x100d0525
inc ecx
lea esi, [esi + eax*2]
cmp ecx, 0x10
jl 0x100d050b
pop edi
xor eax, eax
pop esi
ret
mov edx, dword [esp + 0x1c]
lea ecx, [edx - 1]
cmp eax, ecx
jle 0x100d0532
mov eax, ecx
lea edx, [eax + eax]
push ebx
mov ebx, dword [esp + 0x1c]
mov ecx, edx
push ebp
mov ebp, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
pop ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov word [edx + ebx], 0
pop ebx
pop edi
pop esi
ret

Function at 0x100db780
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov eax, dword [ecx + 4]
push ebx
push ebp
push esi
push edi
mov edi, dword [ecx]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0
test ecx, ecx
je 0x100db7c1
lea edx, [esp + 0x14]
or eax, 0x20019
push edx
push eax
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
mov eax, dword [esp + 0x14]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x100db7c3
mov esi, edi
test esi, esi
je 0x100db838
mov ebx, dword [esp + 0x20]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x20]
push eax
push 0
push ecx
push 0
push ebx
push esi
call ebp
test eax, eax
jne 0x100db82d
mov ecx, dword [esp + 0x20]
mov eax, 4
cmp ecx, eax
jne 0x100db82d
cmp dword [esp + 0x1c], eax
jbe 0x100db7fe
mov dword [esp + 0x1c], eax
lea edx, [esp + 0x1c]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push 0
push ebx
push esi
call ebp
test eax, eax
jne 0x100db82d
cmp esi, edi
je 0x100db81f
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
cmp esi, edi
je 0x100db838
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc

Function at 0x100db850
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, dword [ecx]
push edi
test esi, esi
mov dword [esp + 0xc], 0
je 0x100db8b5
mov edi, dword [esp + 0x18]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
push 0
push ecx
push 0
push edi
push esi
call ebx
test eax, eax
jne 0x100db8b5
mov ecx, dword [esp + 0x10]
mov eax, 4
cmp ecx, eax
jne 0x100db8b5
cmp dword [esp + 0x18], eax
jbe 0x100db89b
mov dword [esp + 0x18], eax
lea edx, [esp + 0x18]
lea eax, [esp + 0xc]
push edx
push eax
push 0
push 0
push edi
push esi
call ebx
test eax, eax
mov eax, dword [esp + 0xc]
je 0x100db8b9
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
add esp, 8
ret 8
Function at 0x100db990
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebx
push esi
mov esi, dword [ecx]
push edi
test esi, esi
je 0x100db9ef
mov edi, dword [esp + 0x14]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0x14]
lea ecx, [esp + 0xc]
push eax
push 0
push ecx
push 0
push edi
push esi
call ebx
test eax, eax
jne 0x100db9ef
cmp dword [esp + 0xc], 3
jne 0x100db9ef
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
cmp edx, eax
jb 0x100db9ef
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x14]
push eax
push ecx
push 0
push 0
push edi
push esi
call ebx
test eax, eax
jne 0x100db9ef
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret 0xc
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret 0xc

Function at 0x100dba00
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [ecx + 4]
push ebx
mov ebx, dword [ecx]
mov ecx, dword [esp + 0xc]
push ebp
push esi
test ecx, ecx
push edi
je 0x100dba37
lea edx, [esp + 0x10]
or eax, 0x20019
push edx
push eax
push 0
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
mov eax, dword [esp + 0x10]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x100dba39
mov esi, ebx
test esi, esi
je 0x100dbac2
mov ebp, dword [esp + 0x1c]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x20]
push 0
push ecx
push 0
push ebp
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100dbab7
cmp dword [esp + 0x1c], 3
jne 0x100dbab7
mov edx, dword [esp + 0x18]
push edx
call fcn.10063988
mov edi, eax
add esp, 4
test edi, edi
je 0x100dbab7
lea eax, [esp + 0x18]
push eax
push edi
push 0
push 0
push ebp
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100dbaae
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
cmp esi, ebx
mov dword [ecx], edx
je 0x100dbaa4
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
push edi
call fcn.100639b7
add esp, 4
cmp esi, ebx
je 0x100dbac2
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 0xc

Function at 0x100dbad0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [ecx]
test esi, esi
push edi
je 0x100dbb44
mov ebx, dword [esp + 0x18]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
push 0
push ecx
push 0
push ebx
push esi
call ebp
test eax, eax
jne 0x100dbb44
cmp dword [esp + 0x10], 3
jne 0x100dbb44
mov edx, dword [esp + 0x18]
push edx
call fcn.10063988
mov edi, eax
add esp, 4
test edi, edi
je 0x100dbb44
lea eax, [esp + 0x18]
push eax
push edi
push 0
push 0
push ebx
push esi
call ebp
test eax, eax
jne 0x100dbb3b
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, edi
pop edi
pop esi
pop ebp
mov dword [ecx], edx
pop ebx
pop ecx
ret 8
push edi
call fcn.100639b7
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 8
Function at 0x100dbb50
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x101da66f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x1020db10]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], eax
mov eax, dword [ecx + 4]
mov edi, dword [ecx]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x28], 1
test ecx, ecx
mov dword [esp + 0x14], edi
je 0x100dbbbb
lea edx, [esp + 0x18]
or eax, 0x20019
push edx
push eax
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x100dbbbd
mov esi, edi
test esi, esi
je 0x100dbc87
mov ebx, dword [esp + 0x38]
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x3c]
push 0
push ecx
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100dbc7c
mov eax, dword [esp + 0x38]
cmp eax, 1
je 0x100dbbff
cmp eax, 2
je 0x100dbbff
cmp eax, 6
je 0x100dbbff
cmp eax, 7
jne 0x100dbc7c
mov edx, dword [esp + 0x34]
add edx, 2
push edx
call fcn.10063988
mov ebp, eax
mov eax, dword [esp + 0x38]
mov edi, ebp
add esp, 4
lea ecx, [eax + 2]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x34]
push eax
push ebp
push 0
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
push ebp
jne 0x100dbc62
lea ecx, [esp + 0x14]
call fcn.100cc900
cmp esi, dword [esp + 0x14]
je 0x100dbc57
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call fcn.100639b7
add esp, 4
jmp 0x100dbc99
call fcn.100639b7
add esp, 4
lea ecx, [esp + 0x10]
push 0x1026c508
call fcn.100cc900
mov edi, dword [esp + 0x14]
cmp esi, edi
je 0x100dbc87
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x100dbc99
push eax
lea ecx, [esp + 0x14]
call fcn.100cc900
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.100cbc80
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 0
call fcn.100cc680
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10