joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41d230
Capabilities:
Encode data using xor
Get number of processors
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x42700c]
xor eax, ebp
mov dword [ebp - 4], eax
movaps xmm0, xmmword [str._lVrJR]
push ebx
mov ebx, dword fs:[0x30]
push esi
push edi
xor edi, edi
xor ecx, ecx
mov dword [ebp - 8], edi
movups xmmword [ebp - 0x30], xmm0
nop dword [eax]
mov al, byte [ebp - 0x30]
xor byte [ebp + ecx - 0x2f], al
inc ecx
cmp ecx, 0xe
jb 0x41d260
mov byte [ebp - 0x21], 0
mov cl, 0x60
mov dword [ebp - 0x20], 0x12052b60
xor eax, eax
mov dword [ebp - 0x1c], 0x530c050e
mov dword [ebp - 0x18], 0xc044e52
mov word [ebp - 0x14], 0xc
xor byte [ebp + eax - 0x1f], cl
inc eax
cmp eax, 0xc
jae 0x41d29f
mov cl, byte [ebp - 0x20]
jmp 0x41d290
lea eax, [ebp - 0x1f]
mov byte [ebp - 0x13], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea ecx, [ebp - 0x2f]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
test eax, eax
je 0x41d2dd
cmp dword [ebp - 8], edi
je 0x41d2dd
mov edi, dword fs:[0x30]
add edi, 0x1000
mov eax, dword [ebx + 0x18]
test dword [eax + 0x40], 0xfffffffd
jne 0x41d38b
cmp dword [eax + 0x44], 0
jne 0x41d38b
test edi, edi
je 0x41d3df
mov eax, dword [edi + 0x30]
test dword [eax + 0x70], 0xfffffffd
jne 0x41d315
cmp dword [eax + 0x74], 0
je 0x41d3df
movaps xmm0, xmmword [0x422e40]
mov dh, 0x16
mov cl, 0x79
mov byte [ebp - 9], 0
mov ch, 0x64
mov byte [ebp - 0x10], dh
mov al, 0x5a
mov byte [ebp - 9], 0
mov dl, 0x77
mov bl, 0x72
mov ah, 0x73
xor cl, dh
xor ch, dh
mov byte [ebp - 0xe], cl
xor al, dh
mov byte [ebp - 0xa], ch
xor dl, dh
mov byte [ebp - 0xf], al
xor bl, dh
mov byte [ebp - 0xd], dl
xor ah, dh
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], ah
xor ecx, ecx
movups xmmword [ebp - 0x30], xmm0
nop dword [eax]
mov al, byte [ebp - 0x30]
xor byte [ebp + ecx - 0x2f], al
inc ecx
cmp ecx, 0xe
jb 0x41d360
push 0
lea eax, [ebp - 0xf]
mov byte [ebp - 0x21], 0
push eax
lea eax, [ebp - 0x2f]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0xffffffffffffffff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
movaps xmm0, xmmword [str.7dCXG]
mov dh, 0x43
mov cl, 0x2c
mov byte [ebp - 9], 0
mov ch, 0x31
mov byte [ebp - 0x10], dh
mov al, 0xf
mov byte [ebp - 9], 0
mov dl, 0x22
mov bl, 0x27
mov ah, 0x26
xor cl, dh
xor ch, dh
mov byte [ebp - 0xe], cl
xor al, dh
mov byte [ebp - 0xa], ch
xor dl, dh
mov byte [ebp - 0xf], al
xor bl, dh
mov byte [ebp - 0xd], dl
xor ah, dh
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], ah
xor ecx, ecx
movups xmmword [ebp - 0x30], xmm0
nop
mov al, byte [ebp - 0x30]
xor byte [ebp + ecx - 0x2f], al
inc ecx
cmp ecx, 0xe
jb 0x41d3d0
jmp 0x41d36d
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041d4ee
mov esp, ebp
pop ebp
ret
Function at 0x41e1ae
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41e1ed
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41e1ed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41e1ed
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41e1ed
cmp dword [ecx + 0x74], 0xe
jbe 0x41e1ed
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x419824
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.00419398
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00404c4c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x419882
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x41c684]
mov dl, 1
mov eax, dword [0x419290]
call fcn.0040971c
call fcn.0040420c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x41988c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00404c4c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x4198e4
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x41c774]
mov dl, 1
mov eax, dword [0x419290]
call fcn.0040971c
call fcn.0040420c
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004193c8
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x41a34c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
xor edx, edx
mov dword [ebp - 0x104], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x41a3bb
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xff
lea eax, [ebp - 0x100]
push eax
call sub.KERNEL32.DLL_GetWindowsDirectoryA
lea edx, [ebp - 0x104]
lea eax, [ebp - 0x100]
call fcn.004082f4
mov edx, dword [ebp - 0x104]
mov eax, ebx
mov ecx, 0x41a3d0
call fcn.00404ab0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41a3c2
lea eax, [ebp - 0x104]
call fcn.004047ac
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
je 0x430072
nop
nop
nop
nop
mov ebx, 0x408f6c
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x3ca92c5a
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x430060
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4300d2
nop
nop
mov ebx, 0x42e3d0
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x75ad350a
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
mov ecx, 0x69b51b81
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x42e04e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e024
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x115972b3
nop
test eax, eax
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
popal
nop
jmp 0x401219

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

Disassembly:
pushal
mov eax, section..pdata
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x433072
nop
nop
nop
nop
mov ebx, 0x40de38
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x52651704
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x433060
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4330d2
nop
mov ebx, 0x4304d8
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x45b623d7
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4330c0
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x4010b0
Capabilities:
Get session user name

Disassembly:
sub esp, 0x130
push ebx
mov ebx, dword [esp + 0x138]
push ebp
push esi
xor esi, esi
push edi
cmp ebx, esi
mov edi, ecx
jne 0x4010d8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x130
ret 0x14
mov ebp, dword [esp + 0x150]
cmp ebp, esi
jne 0x401110
lea eax, [esp + 0x10]
lea ecx, [esp + 0x3c]
push eax
push ecx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x40110c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x130
ret 0x14
lea ebp, [esp + 0x3c]
mov ecx, dword [esp + 0x148]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x18]
push esi
push eax
push esi
push esi
push 4
push ecx
push ebx
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], esi
call dword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoA]
test eax, eax
jne 0x4011e7
mov ebx, dword [esp + 0x14c]
cmp ebx, 2
je 0x40114f
cmp ebx, 1
jne 0x40115e
mov edx, dword [esp + 0x14]
push ebp
push 3
push edx
mov ecx, edi
call fcn.00401040
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x1c]
push 3
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x158]
push ebx
push eax
lea ecx, [esp + 0x28]
push ebp
push ecx
mov dword [esp + 0x24], esi
call dword [sym.imp.ADVAPI32.dll_BuildExplicitAccessWithNameA]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x20]
push eax
push ecx
push 1
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclA]
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
test eax, eax
jne 0x4011dc
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x148]
mov ecx, dword [esp + 0x144]
push 0
push edx
push 0
push 0
push 4
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoA]
mov esi, eax
mov eax, dword [esp + 0x10]
neg esi
sbb esi, esi
inc esi
test eax, eax
je 0x4011dc
push eax
call edi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4011e7
push eax
call edi
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x130
ret 0x14
Function at 0x4012cc
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x417fd8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov al, byte [esp + 3]
push esi
mov esi, ecx
mov dword [esp + 8], esi
mov byte [esi + 4], al
xor eax, eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov cl, byte [esp + 7]
mov dword [esp + 0x14], eax
mov byte [esi + 0x14], cl
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dl, byte [esp + 7]
mov dword [esi + 0x28], eax
mov byte [esi + 0x24], dl
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov cl, byte [esp + 7]
mov dword [esi + 0x38], eax
mov byte [esi + 0x34], cl
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dl, byte [esp + 7]
mov dword [esi + 0x48], eax
mov byte [esi + 0x44], dl
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], eax
mov cl, byte [esp + 7]
mov dword [esi + 0x58], eax
mov byte [esi + 0x54], cl
mov dword [esi + 0x5c], eax
mov dword [esi + 0x60], eax
mov dl, byte [esp + 7]
mov dword [esi + 0x68], eax
mov byte [esi + 0x64], dl
mov dword [esi + 0x6c], eax
mov dword [esi + 0x70], eax
mov cl, byte [esp + 7]
mov dword [esi + 0x78], eax
mov byte [esi + 0x74], cl
mov dword [esi + 0x7c], eax
mov dword [esi + 0x80], eax
mov ecx, esi
mov byte [esp + 0x14], 7
mov dword [esi], 0x41930c
call fcn.004014b0
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
mov ecx, 0x422e78
jmp 0x4012b0
Function at 0x4013a0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x418048
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x41930c
mov dword [esp + 0x1c], 7
call fcn.00401510
mov eax, dword [esi + 0x78]
push eax
mov dword [esp + 0x14], eax
call fcn.0040a5aa
xor ebx, ebx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x80], ebx
mov eax, dword [esi + 0x68]
push eax
mov dword [esp + 0x18], eax
call fcn.0040a5aa
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], ebx
mov eax, dword [esi + 0x58]
push eax
mov dword [esp + 0x1c], eax
call fcn.0040a5aa
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov eax, dword [esi + 0x48]
push eax
mov dword [esp + 0x20], eax
call fcn.0040a5aa
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov eax, dword [esi + 0x38]
push eax
mov dword [esp + 0x24], eax
call fcn.0040a5aa
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov eax, dword [esi + 0x28]
push eax
mov dword [esp + 0x28], eax
call fcn.0040a5aa
lea edi, [esi + 0x14]
add esp, 0x18
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov eax, dword [edi + 8]
mov ecx, dword [edi + 4]
push eax
push ecx
mov ecx, edi
mov byte [esp + 0x24], bl
call fcn.00402450
mov eax, dword [edi + 4]
push eax
call fcn.0040a5aa
add esp, 4
lea ecx, [esi + 4]
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [esp + 0x1c], 0xffffffff
call fcn.004023f0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x401680
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
sub esp, 0x354
push ebx
push ebp
xor eax, eax
push esi
push edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], 0x10000
mov byte [esp + 0x120], 0
mov byte [esp + 0x1c], 0
mov dword [esp + 0x14], eax
sub eax, 0
je 0x4016bf
dec eax
jne 0x4016d7
push 0
lea eax, [esp + 0x124]
push 0x18
push eax
jmp 0x4016cb
push 0
lea ecx, [esp + 0x124]
push 7
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x4016e4
mov byte [esp + 0x120], 0
jmp 0x4017b4
mov al, byte [esp + 0x120]
test al, al
je 0x4017b4
lea edi, [esp + 0x120]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov al, byte [esp + ecx + 0x11f]
lea ebp, [esp + ecx + 0x120]
cmp al, 0x5c
je 0x40171b
mov byte [ebp], 0x5c
inc ebp
mov edi, 0x41c158
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea eax, [esp + 0x224]
mov edx, ecx
mov esi, edi
mov edi, ebp
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x124]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4017b4
test byte [esp + 0x224], 0x10
jne 0x40179a
lea edi, [esp + 0x250]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea eax, [esp + 0x18]
mov edx, ecx
mov esi, edi
mov edi, ebp
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
lea edx, [ecx + 0x74]
push edx
call fcn.00402000
lea eax, [esp + 0x224]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40175a
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x14]
inc eax
cmp eax, 2
mov dword [esp + 0x14], eax
jl 0x4016a9
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov eax, dword [ecx + 0x78]
pop ebx
test eax, eax
jne 0x4017dc
add esp, 0x354
ret
mov ecx, dword [ecx + 0x7c]
sub ecx, eax
mov eax, 0x3e88cb3d
imul ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov eax, edx
add esp, 0x354
ret
Function at 0x401800
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x21c
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
push ebp
push esi
push edi
mov ebp, ecx
mov dword [esp + 0x20], 1
mov byte [esp + 0x128], 0
mov byte [esp + 0x24], 0
mov edi, 0x419304
mov ecx, dword [edi]
lea eax, [esp + 0x10]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4018a1
xor esi, esi
mov eax, 0x104
lea edx, [esp + 0x18]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x128]
push edx
lea ecx, [esp + 0x20]
push eax
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x20]
push 0
lea eax, [esp + 0x34]
push edx
push eax
push esi
push ecx
call ebx
test eax, eax
jne 0x401896
lea edx, [esp + 0x20]
lea eax, [ebp + 4]
push edx
push eax
mov ecx, ebp
call fcn.00402000
inc esi
jmp 0x40184c
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add edi, 4
cmp edi, 0x41930c
jb 0x40182c
mov eax, dword [ebp + 8]
test eax, eax
jne 0x4018be
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x21c
ret
mov ecx, dword [ebp + 0xc]
pop edi
sub ecx, eax
mov eax, 0x3e88cb3d
imul ecx
sar edx, 7
mov eax, edx
pop esi
shr eax, 0x1f
add edx, eax
pop ebp
mov eax, edx
pop ebx
add esp, 0x21c
ret
Function at 0x4018f0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x32c
push ebp
push esi
mov esi, 0x419304
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x28], 2
mov byte [esp + 0x130], 0
mov byte [esp + 0x2c], 0
mov dword [esp + 0x14], esi
mov ebp, 0x104
mov ecx, dword [esi]
lea eax, [esp + 0x18]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShellExecuteHooks
push ecx
call edi
test eax, eax
jne 0x401a23
xor esi, esi
lea edx, [esp + 0x20]
lea eax, [esp + 0x234]
push edx
lea ecx, [esp + 0x28]
push eax
push ecx
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x18]
push 0
lea eax, [esp + 0x3c]
push edx
push eax
push esi
push ecx
mov dword [esp + 0x40], ebp
mov dword [esp + 0x2c], ebp
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x401a14
cmp byte [esp + 0x2c], 0x7b
jne 0x401a0e
cmp dword [esp + 0xc], 0x26
jb 0x401a0e
lea edx, [esp + 0x2c]
lea eax, [esp + 0x234]
push edx
push str.CLSID_sInprocServer32
push eax
call fcn.0040d5cb
add esp, 0xc
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x234]
push ecx
push 0x20019
push 0
push edx
push 0x80000000
call edi
test eax, eax
jne 0x401a0e
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0xc]
lea ecx, [esp + 0x130]
push eax
push ecx
push 0
push 0
push 0
push edx
mov dword [esp + 0x24], ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401a03
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x28]
push eax
lea edx, [ecx + 0x14]
push edx
call fcn.00402000
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc esi
jmp 0x401946
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x14]
add esi, 4
cmp esi, 0x41930c
mov dword [esp + 0x14], esi
jb 0x401926
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov eax, dword [ecx + 0x18]
test eax, eax
jne 0x401a4b
add esp, 0x32c
ret
mov ecx, dword [ecx + 0x1c]
sub ecx, eax
mov eax, 0x3e88cb3d
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, edx
add esp, 0x32c
ret
Function at 0x401a70
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x32c
push ebp
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebp, 0x419304
push edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x28], 4
mov byte [esp + 0x130], 0
mov byte [esp + 0x2c], 0
mov dword [esp + 0x14], ebp
mov edi, 0x104
mov ecx, dword [ebp]
lea eax, [esp + 0x18]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionShellServiceObjectDelayLoad
push ecx
call esi
test eax, eax
jne 0x401ba5
xor ebp, ebp
lea edx, [esp + 0xc]
lea eax, [esp + 0x2c]
push edx
lea ecx, [esp + 0x28]
push eax
push ecx
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x2c]
push 0
lea eax, [esp + 0x244]
push edx
push eax
push ebp
push ecx
mov dword [esp + 0x40], edi
mov dword [esp + 0x2c], edi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x401b96
cmp byte [esp + 0x2c], 0x7b
jne 0x401b90
cmp dword [esp + 0xc], 0x26
jb 0x401b90
lea edx, [esp + 0x2c]
lea eax, [esp + 0x234]
push edx
push str.CLSID_sInprocServer32
push edi
push eax
call fcn.0040d57a
add esp, 0x10
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x234]
push ecx
push 0x20019
push 0
push edx
push 0x80000000
call esi
test eax, eax
jne 0x401b90
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0xc]
lea ecx, [esp + 0x130]
push eax
push ecx
push 0
push 0
push 0
push edx
mov dword [esp + 0x24], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401b85
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x28]
push eax
lea edx, [ecx + 0x24]
push edx
call fcn.00402000
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc ebp
jmp 0x401ac7
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebp, dword [esp + 0x14]
add ebp, 4
cmp ebp, 0x41930c
mov dword [esp + 0x14], ebp
jb 0x401aa6
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov eax, dword [ecx + 0x28]
test eax, eax
jne 0x401bcd
add esp, 0x32c
ret
mov ecx, dword [ecx + 0x2c]
sub ecx, eax
mov eax, 0x3e88cb3d
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, edx
add esp, 0x32c
ret
Function at 0x401bf0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x320
push ebx
push ebp
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x20], 8
mov byte [esp + 0x128], 0
mov byte [esp + 0x24], 0
mov ebx, 0x419304
mov ebp, 0x104
mov ecx, dword [ebx]
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerBrowser_Helper_Objects
push ecx
call esi
test eax, eax
jne 0x401cf2
xor edi, edi
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x24]
push ebp
push edx
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x401ce7
cmp byte [esp + 0x24], 0x7b
jne 0x401ce1
lea ecx, [esp + 0x24]
lea edx, [esp + 0x22c]
push ecx
push str.CLSID_sInprocServer32
push ebp
push edx
call fcn.0040d57a
add esp, 0x10
lea eax, [esp + 0x18]
lea ecx, [esp + 0x22c]
push eax
push 0x20019
push 0
push ecx
push 0x80000000
call esi
test eax, eax
jne 0x401ce1
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x1c]
lea eax, [esp + 0x128]
push edx
push eax
push 0
push 0
push 0
push ecx
mov dword [esp + 0x34], ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401cd6
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x20]
push edx
lea eax, [ecx + 0x34]
push eax
call fcn.00402000
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc edi
jmp 0x401c43
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add ebx, 4
cmp ebx, 0x41930c
jb 0x401c23
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov eax, dword [ecx + 0x38]
pop ebx
test eax, eax
jne 0x401d17
add esp, 0x320
ret
mov ecx, dword [ecx + 0x3c]
sub ecx, eax
mov eax, 0x3e88cb3d
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, edx
add esp, 0x320
ret