joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4062d0
Capabilities:
Access peb ldr_data
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x41bba9
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x4242c0]
xor eax, esp
mov dword [esp + 0x4c], eax
push ebx
push esi
mov eax, dword [0x4242c0]
xor eax, esp
push eax
lea eax, [esp + 0x5c]
mov dword fs:[0], eax
lea eax, [esp + 0xc]
push eax
xor ebx, ebx
mov esi, 1
push esi
push ebx
push str.SOFTWAREDashlaneInstallInformation
mov dword [esp + 0x20], ebx
push 0x80000001
mov dword [esp + 0x30], edi
mov dword [esp + 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
je 0x4063a5
push 0x1b
push str.error_1_in_getInstallerId:
lea ecx, [esp + 0x44]
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
call fcn.00405790
mov dword [esp + 0x64], esi
xor ecx, ecx
mov dword [edi + 0x18], 7
mov dword [edi + 0x14], ebx
push 7
mov eax, str.UNKNOWN
mov esi, edi
mov word [edi + 4], cx
call fcn.004038b0
mov dword [esp + 0x10], 1
mov byte [esp + 0x64], bl
cmp dword [esp + 0x54], 0x10
jb 0x406390
mov edx, dword [esp + 0x40]
push edx
call fcn.0040a02e
add esp, 4
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
jmp 0x4064c2
xor ecx, ecx
mov eax, 0x1f4
mov dword [esp + 0x18], eax
mov edx, 2
mul edx
seto cl
mov dword [esp + 0x14], esi
neg ecx
or ecx, eax
push ecx
call fcn.004095b4
mov edx, dword [esp + 0x10]
add esp, 4
mov esi, eax
lea eax, [esp + 0x18]
push eax
push esi
lea ecx, [esp + 0x1c]
push ecx
push ebx
push str.partnername
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
je 0x406427
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov dword [edi + 0x18], 7
mov dword [edi + 0x14], ebx
push 7
mov eax, str.NO_TYPE
mov esi, edi
mov word [edi + 4], cx
call fcn.004038b0
mov dword [esp + 0x64], ebx
mov dword [esp + 0x10], 1
jmp 0x4064c2
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov word [esp + 0x24], ax
mov eax, esi
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], ebx
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x406450
sub eax, edx
sar eax, 1
push eax
mov eax, esi
lea esi, [esp + 0x24]
call fcn.004038b0
mov dword [esp + 0x64], 2
xor ecx, ecx
mov dword [edi + 0x18], 7
mov dword [edi + 0x14], ebx
push 0xffffffffffffffff
mov word [edi + 4], cx
push ebx
mov eax, esi
mov ecx, edi
call fcn.00403800
mov dword [esp + 0x10], 1
mov byte [esp + 0x64], bl
cmp dword [esp + 0x38], 8
jb 0x4064af
mov edx, dword [esp + 0x24]
push edx
call fcn.0040a02e
add esp, 4
xor eax, eax
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], ax
mov eax, edi
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.0040a01f
add esp, 0x5c
ret
Function at 0x4064f0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x41bb51
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x4242c0]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push esi
push edi
mov eax, dword [0x4242c0]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
lea eax, [esp + 0x10]
push eax
xor ebx, ebx
mov edi, 1
push edi
push ebx
push str.SOFTWAREDashlaneInstallInformation
mov esi, ecx
mov dword [esp + 0x24], ebx
push 0x80000001
mov dword [esp + 0x34], esi
mov dword [esp + 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
je 0x4065c2
push 0x1b
push str.error_1_in_getInstallerId:
lea ecx, [esp + 0x2c]
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
call fcn.00405790
mov dword [esp + 0x4c], edi
xor ecx, ecx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
push 7
mov eax, str.UNKNOWN
mov word [esi + 4], cx
call fcn.004038b0
mov dword [esp + 0x14], edi
mov byte [esp + 0x4c], bl
cmp dword [esp + 0x3c], 0x10
jb 0x4065ad
mov edx, dword [esp + 0x28]
push edx
call fcn.0040a02e
add esp, 4
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
jmp 0x40665b
xor ecx, ecx
mov eax, 0x1f4
mov dword [esp + 0x18], eax
mov edx, 2
mul edx
seto cl
mov dword [esp + 0x1c], edi
neg ecx
or ecx, eax
push ecx
call fcn.004095b4
add esp, 4
lea ecx, [esp + 0x18]
push ecx
push eax
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x24]
push edx
push ebx
push str.PreviousVersion
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
je 0x40662c
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edx, edx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
mov word [esi + 4], dx
push 4
mov eax, str.true
jmp 0x40664e
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
mov word [esi + 4], cx
push 5
mov eax, str.false
call fcn.004038b0
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x14], edi
mov eax, esi
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0040a01f
add esp, 0x40
ret

Function at 0x406bd0
Capabilities:
Create thread

Disassembly:
push edi
mov edi, eax
call fcn.00406040
test al, al
je 0x406bf2
push 0
push 0
push edi
push 0x406680
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
ret
xor eax, eax
pop edi
ret

Function at 0x406c00
Capabilities:
Create thread

Disassembly:
push 0
push 0
push eax
push 0x406680
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
ret
Function at 0x408c7e
Capabilities:
Write file on windows

Disassembly:
push 0x48
mov eax, 0x41b29d
call fcn.0040b3e6
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x3c], ebx
je 0x408d90
cmp byte [esi + 0x42], bl
je 0x408d90
mov eax, dword [esi]
mov edi, 0xffff
push edi
call dword [eax + 4]
movzx eax, ax
cmp di, ax
jne 0x408cba
xor al, al
jmp 0x408d92
push ebx
push 8
lea ecx, [ebp - 0x2c]
call fcn.00408c54
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00408929
mov ecx, eax
call fcn.00407cad
mov edi, dword [ebp - 0x18]
mov ebx, eax
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00408929
mov ecx, eax
call fcn.00407cad
mov ecx, dword [esi + 0x3c]
mov edx, dword [ecx]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x30]
push eax
add edi, ebx
push edi
push dword [ebp - 0x34]
lea eax, [esi + 0x44]
push eax
call dword [edx + 0x18]
sub eax, 0
je 0x408d2a
dec eax
je 0x408d2e
dec eax
dec eax
je 0x408d8c
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00405ea0
mov al, bl
jmp 0x408d92
mov byte [esi + 0x42], 0
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00408929
mov ecx, eax
call fcn.00407cad
mov edi, dword [ebp - 0x30]
sub edi, eax
je 0x408d6e
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00408929
mov ecx, eax
call fcn.00407cad
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0040c5eb
add esp, 0x10
cmp edi, eax
jne 0x408d18
cmp byte [esi + 0x42], 0
je 0x408d8c
test edi, edi
jne 0x408cc8
push edi
push 8
lea ecx, [ebp - 0x2c]
call fcn.00408a02
jmp 0x408cc8
mov bl, 1
jmp 0x408d1a
mov al, 1
call fcn.0040b430
ret
Function at 0x408ef9
Capabilities:
Write file on windows

Disassembly:
push 0x54
mov eax, 0x41b30b
call fcn.0040b3e6
mov edi, dword [ebp + 8]
mov eax, 0xffff
mov esi, ecx
cmp ax, di
jne 0x408f23
lea eax, [ebp + 8]
push eax
call fcn.00408415
pop ecx
jmp 0x40909e
mov eax, dword [esi + 0x24]
mov ecx, dword [eax]
xor ebx, ebx
cmp ecx, ebx
je 0x408f51
mov eax, dword [esi + 0x34]
mov edx, dword [eax]
lea edx, [ecx + edx*2]
cmp ecx, edx
jae 0x408f51
dec dword [eax]
mov esi, dword [esi + 0x24]
mov eax, dword [esi]
lea ecx, [eax + 2]
mov dword [esi], ecx
mov word [eax], di
mov ax, di
jmp 0x40909e
mov eax, dword [esi + 0x4c]
cmp eax, ebx
je 0x409099
cmp dword [esi + 0x3c], ebx
jne 0x408f7a
push eax
push edi
call fcn.00408486
pop ecx
test al, al
pop ecx
movzx eax, di
jne 0x40909e
jmp 0x409099
movzx eax, di
push ebx
push 8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x30], eax
call fcn.00408c54
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call fcn.00408929
mov ecx, eax
call fcn.00407cad
mov edi, dword [ebp - 0x18]
mov ebx, eax
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00408929
mov ecx, eax
call fcn.00407cad
lea edx, [ebp - 0x38]
add edi, ebx
push edx
lea ebx, [esi + 0x44]
jmp 0x40906b
cmp eax, 1
jg 0x4090a6
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00408929
mov ecx, eax
call fcn.00407cad
mov edi, dword [ebp - 0x38]
sub edi, eax
je 0x409010
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00408929
mov ecx, eax
call fcn.00407cad
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0040c5eb
add esp, 0x10
cmp edi, eax
jne 0x40908d
lea eax, [ebp - 0x30]
mov byte [esi + 0x42], 1
cmp dword [ebp - 0x3c], eax
jne 0x4090d6
test edi, edi
ja 0x409036
cmp dword [ebp - 0x18], 0x20
push 0
lea ecx, [ebp - 0x2c]
jae 0x409092
push 8
call fcn.00408a02
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00408929
mov ecx, eax
call fcn.00407cad
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00408929
mov ecx, eax
call fcn.00407cad
lea edx, [ebp - 0x38]
push edx
mov edx, dword [ebp - 0x40]
add edi, edx
mov ecx, dword [esi + 0x3c]
push edi
push eax
lea edx, [ebp - 0x3c]
push edx
lea edx, [ebp - 0x2e]
push edx
lea edx, [ebp - 0x30]
push edx
mov dword [ebp - 0x34], eax
mov eax, dword [ecx]
push ebx
call dword [eax + 0x14]
test eax, eax
jge 0x408fc7
push 0
lea ecx, [ebp - 0x2c]
push 1
call fcn.00405ea0
mov eax, 0xffff
call fcn.0040b430
ret 4
cmp eax, 3
jne 0x40908d
push dword [esi + 0x4c]
push dword [ebp - 0x30]
call fcn.00408486
movzx esi, word [ebp + 8]
pop ecx
pop ecx
test al, al
jne 0x4090c5
mov esi, 0xffff
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00405ea0
mov ax, si
jmp 0x40909e
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00405ea0
mov ax, word [ebp + 8]
jmp 0x40909e

Function at 0x40a01f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4242c0]
jne 0x40a029
repz ret
jmp fcn.0040f691
Function at 0x4199ab
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.0040fe2f
and dword [ebp - 4], 0
cmp dword [0x42626c], 0
mov ebx, eax
jne 0x419a5c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x419b0d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41f5fc
push edi
call esi
test eax, eax
je 0x419b0d
push eax
call fcn.0040fdbd
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x42626c], eax
call esi
push eax
call fcn.0040fdbd
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x426270], eax
call esi
push eax
call fcn.0040fdbd
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x426274], eax
call esi
push eax
call fcn.0040fdbd
pop ecx
mov dword [0x42627c], eax
test eax, eax
je 0x419a5c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040fdbd
pop ecx
mov dword [0x426278], eax
mov eax, dword [0x426278]
cmp eax, ebx
je 0x419ab4
cmp dword [0x42627c], ebx
je 0x419ab4
push eax
call fcn.0040fe38
push dword [0x42627c]
mov esi, eax
call fcn.0040fe38
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x419ab4
test edi, edi
je 0x419ab4
call esi
test eax, eax
je 0x419aab
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x419aab
test byte [ebp - 0xc], 1
jne 0x419ab4
or dword [ebp + 0x10], 0x200000
jmp 0x419aed
mov eax, dword [0x426270]
cmp eax, ebx
je 0x419aed
push eax
call fcn.0040fe38
pop ecx
test eax, eax
je 0x419aed
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x419aed
mov eax, dword [0x426274]
cmp eax, ebx
je 0x419aed
push eax
call fcn.0040fe38
pop ecx
test eax, eax
je 0x419aed
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42626c]
call fcn.0040fe38
pop ecx
test eax, eax
je 0x419b0d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x419b0f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41bd00
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
mov eax, edx
and eax, 1
dec eax
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x424c80], ecx
inc edx
cmp edx, 0x100
jb 0x41bd02
cmp edx, 0x800
jae 0x41bdd9
lea esp, [esp]
mov eax, dword [edx*4 + 0x424880]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x424c80]
inc edx
mov dword [edx*4 + 0x424c7c], eax
cmp edx, 0x800
jb 0x41bdb0
mov eax, 0x41c5e0
mov dword [0x424c7c], eax
mov dword [0x426c80], eax
mov dword [0x424c78], 0x41c500
call fcn.0041c010
test eax, eax
jne 0x41be05
mov dword [0x426c80], 0x41c500
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40de38
nop
mov ecx, 0x78896f87
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
nop
mov eax, section..text_1
nop
mov ebx, 0x4304d8
mov ecx, 0x6fd106c1
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x433084
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x403b39
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x148
mov eax, dword [0x407004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
call fcn.00404bfa
mov esi, eax
test esi, esi
je 0x403ccc
lea eax, [ebp - 0x130]
push eax
push 0x20019
push 0
push 0x401598
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x403cbe
xor ecx, ecx
lea eax, [ebp - 0x138]
push ecx
push ecx
push ecx
push ecx
push eax
lea eax, [ebp - 0x12c]
mov ebx, ecx
push eax
push ecx
jmp 0x403c91
test eax, eax
jne 0x403c7b
lea eax, [ebp - 0x144]
push eax
lea edx, [ebp - 0x140]
lea ecx, [ebp - 0x12c]
call fcn.0040347d
test eax, eax
je 0x403c7b
lea eax, [ebp - 0x134]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x12c]
push eax
push dword [ebp - 0x130]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x403c63
mov ecx, dword [ebp - 0x134]
lea eax, [ebp - 0x148]
push eax
mov edx, 0x4015ac
call fcn.00404d4d
mov ecx, dword [ebp - 0x134]
lea eax, [ebp - 0x13c]
push eax
mov edx, 0x4015c4
call fcn.00404e62
test eax, eax
jne 0x403c57
push dword [ebp - 0x148]
mov edx, dword [ebp - 0x140]
push dword [ebp - 0x13c]
mov ecx, dword [ebp - 0x144]
call fcn.0040380b
test eax, eax
je 0x403c4b
mov edx, eax
mov ecx, esi
call fcn.00404bcd
push dword [ebp - 0x13c]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebp - 0x134]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x140]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebp - 0x144]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
inc ebx
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0x12c]
push eax
push ebx
push dword [ebp - 0x130]
mov dword [ebp - 0x138], 0x94
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
jne 0x403ba2
push dword [ebp - 0x130]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [edi]
mov edx, 0x4038d0
call fcn.00404c62
mov dword [edi], esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004063a0
mov esp, ebp
pop ebp
ret
Function at 0x403cdd
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x407004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, edx
mov ebx, ecx
push edi
mov dword [ebp - 0x34], esi
call fcn.00404bfa
mov edi, eax
test edi, edi
je 0x403e12
lea eax, [ebp - 0x20]
push eax
push 0x20019
push 0
push 0x4015d4
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x403e04
xor ecx, ecx
mov dword [ebp - 0x28], 0xc
push ecx
push ecx
push ecx
push ecx
lea eax, [ebp - 0x28]
mov ebx, ecx
push eax
lea eax, [ebp - 0x1c]
push eax
push ecx
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x403dfb
test eax, eax
jne 0x403dcd
lea eax, [ebp - 0x24]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x403dcd
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.ntdll.dll__wtol]
and dword [ebp - 0x30], 0
mov esi, eax
pop ecx
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x30]
push eax
mov edx, 0x4015e8
call fcn.00404d4d
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x2c]
and dword [ebp - 0x2c], 0
mov edx, 0x4015f8
push eax
call fcn.00404d4d
push dword [ebp - 0x2c]
mov edx, dword [ebp - 0x30]
mov ecx, esi
call fcn.004037da
test eax, eax
je 0x403dcd
mov edx, eax
mov ecx, edi
call fcn.00404bcd
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [ebp - 0x28], 0xc
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x28]
inc ebx
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
jne 0x403d53
mov esi, dword [ebp - 0x34]
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esi]
mov edx, 0x4038b0
call fcn.00404c62
mov dword [esi], edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004063a0
mov esp, ebp
pop ebp
ret
Function at 0x40437c
Capabilities:
Delete registry key
Query or enumerate registry key
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x407004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
lea eax, [ebp - 0x140]
xor ebx, ebx
push eax
lea eax, [ebp - 0x130]
mov edi, edx
push eax
push ebx
push 0x2000e
push ebx
push 0x401100
push ebx
push 0x401598
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x404504
push esi
mov esi, 0x94
jmp 0x4043e7
push ebx
push ebx
lea eax, [ebp - 0x12c]
push eax
push dword [ebp - 0x130]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
test eax, eax
jne 0x404410
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x134]
mov dword [ebp - 0x134], esi
push eax
lea eax, [ebp - 0x12c]
push eax
push ebx
push dword [ebp - 0x130]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x4043ce
lea esi, [eax - 0x103]
neg esi
sbb esi, esi
and esi, eax
jne 0x4044f5
mov edi, dword [edi]
mov esi, ebx
jmp 0x4044e4
mov eax, dword [edi + 8]
mov dword [ebp - 0x13c], eax
mov edx, dword [eax]
mov ecx, dword [eax + 4]
call fcn.00403590
mov ebx, eax
test ebx, ebx
je 0x4044da
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x138]
push eax
xor eax, eax
push eax
push 0x20006
push eax
push 0x401100
push eax
push ebx
push dword [ebp - 0x130]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x4044ee
mov eax, dword [ebp - 0x13c]
push 4
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x144], eax
lea eax, [ebp - 0x144]
push eax
push 4
push esi
push 0x4015ac
push dword [ebp - 0x138]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
jne 0x4044c5
mov eax, dword [ebp - 0x13c]
mov edx, 0x4015c4
mov ecx, dword [ebp - 0x138]
push dword [eax + 8]
call fcn.0040507a
mov esi, eax
push dword [ebp - 0x138]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, ebx
call fcn.00403581
jmp 0x4044dd
push 8
pop esi
test esi, esi
jne 0x4044f5
mov edi, dword [edi + 4]
test edi, edi
jne 0x40442b
jmp 0x4044f5
mov ecx, ebx
call fcn.00403581
push dword [ebp - 0x130]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004063a0
mov esp, ebp
pop ebp
ret
Function at 0x404621
Capabilities:
Delete registry key
Query or enumerate registry key
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x407004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
lea eax, [ebp - 0x30]
xor ebx, ebx
push eax
lea eax, [ebp - 0x20]
mov edi, edx
push eax
push ebx
push 0x2000e
push ebx
push 0x401100
push ebx
push 0x4015d4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x404783
push esi
push 0xc
pop esi
jmp 0x40467b
push ebx
push ebx
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
test eax, eax
jne 0x404698
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], esi
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x404668
lea esi, [eax - 0x103]
neg esi
sbb esi, esi
and esi, eax
jne 0x404777
mov edi, dword [edi]
mov esi, ebx
jmp 0x40476f
mov ebx, dword [edi + 8]
lea eax, [ebp - 0x1c]
xor esi, esi
push dword [ebx]
push 0x4012f4
push 0x100
push esi
push esi
push 0xc
push eax
call fcn.00403199
add esp, 0x1c
test eax, eax
jns 0x4046f5
mov ecx, dword [0x40700c]
cmp ecx, 0xffffffff
je 0x4046f5
push eax
push 0x4012fc
push 0xc
push ecx
call dword [sym.imp.rtutils.dll_TracePrintfExA]
add esp, 0x10
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x28]
push eax
push esi
push 0x20006
push esi
push 0x401100
push esi
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x404777
mov eax, dword [ebx + 4]
push 4
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
push 4
push esi
push 0x4015e8
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
jne 0x40475f
mov eax, dword [ebx + 8]
push 4
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
push 4
push esi
push 0x4015f8
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x404777
mov edi, dword [edi + 4]
test edi, edi
jne 0x4046b3
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004063a0
mov esp, ebp
pop ebp
ret