joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415200
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x479960
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x499750]
xor eax, esp
mov dword [esp + 0x3c], eax
push ebx
push esi
mov eax, dword [0x499750]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
mov esi, ecx
mov eax, 1
call fcn.00410660
mov eax, dword [esi + 4]
add eax, dword [esi + 0xc]
push edi
mov byte [eax], 0xc
add dword [esi + 0xc], 1
lea ecx, [esp + 0x14]
call fcn.0040e3a0
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x30]
mov dword [esp + 0x58], 0
call fcn.00401a40
lea ecx, [esp + 0x10]
mov byte [esp + 0x54], 2
call fcn.00401a90
mov eax, dword [esp + 0x40]
add eax, eax
or eax, 1
mov ecx, esi
call fcn.00415350
test al, al
jne 0x415298
lea ecx, [esp + 0x2c]
call fcn.00401a90
xor al, al
jmp 0x4152bf
sub esp, 0x1c
lea edx, [esp + 0x48]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
call fcn.00401a40
mov ecx, esi
call fcn.00410570
lea ecx, [esp + 0x2c]
mov bl, al
call fcn.00401a90
mov al, bl
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.0043adc4
add esp, 0x4c
ret

Function at 0x415eb0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x479329
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
mov eax, dword [0x499750]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov esi, 1
push 0x489d31
mov ecx, edi
mov dword [esp + 0x3c], esi
call fcn.00402200
sub esp, 0x1c
lea eax, [esp + 0x5c]
mov ecx, esp
mov dword [esp + 0x2c], esp
mov dword [esp + 0x24], esi
push eax
lea esi, [esp + 0x7c]
call fcn.00401a40
mov ecx, esi
lea esi, [esp + 0x30]
call fcn.00415f60
add esp, 0x1c
push 0xffffffffffffffff
push 0
push eax
mov ecx, edi
mov byte [esp + 0x44], 2
call fcn.00401c40
mov ecx, esi
call fcn.00401a90
lea ecx, [esp + 0x40]
call fcn.00401a90
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x34
ret

Function at 0x4168b0
Capabilities:
Read file on windows

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x14]
mov esi, dword [edi]
test esi, esi
je 0x416912
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x14]
mov dword [edi], 0
lea esp, [esp]
cmp esi, 0x400000
mov eax, 0x400000
ja 0x4168df
mov eax, esi
mov edx, dword [ebp]
push 0
lea ecx, [esp + 0x20]
push ecx
push eax
push ebx
push edx
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x1c]
add dword [edi], ecx
add ebx, ecx
sub esi, ecx
test eax, eax
je 0x416917
test ecx, ecx
je 0x416910
test esi, esi
ja 0x4168d0
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
ret
pop ebp
pop ebx
pop edi
pop esi
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x416930
Capabilities:
Write file on windows

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x14]
mov esi, dword [edi]
test esi, esi
je 0x416992
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x14]
mov dword [edi], 0
lea esp, [esp]
cmp esi, 0x400000
mov eax, 0x400000
ja 0x41695f
mov eax, esi
mov edx, dword [ebp]
push 0
lea ecx, [esp + 0x20]
push ecx
push eax
push ebx
push edx
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x1c]
add dword [edi], ecx
add ebx, ecx
sub esi, ecx
test eax, eax
je 0x416997
test ecx, ecx
je 0x416990
test esi, esi
ja 0x416950
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
ret
pop ebp
pop ebx
pop edi
pop esi
jmp dword [sym.imp.KERNEL32.dll_GetLastError]

Function at 0x416d00
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
mov eax, edx
and eax, 1
sub eax, 1
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x49e620], ecx
add edx, 1
cmp edx, 0x100
jl 0x416d02
cmp edx, 0x800
jae 0x416deb
mov edi, edi
mov eax, dword [edx*4 + 0x49e220]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x49e620]
add edx, 1
cmp edx, 0x800
mov dword [edx*4 + 0x49e61c], eax
jb 0x416dc0
mov dword [0x49b360], 0x419330
call fcn.00419500
test eax, eax
jne 0x416e08
mov dword [0x49b360], 0x4193e0
ret
Function at 0x41d380
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ecx
mov ecx, dword [esp + 0x14]
push ebp
mov ebp, dword [ecx]
mov ecx, dword [esp + 0x10]
xor eax, eax
and ebp, 7
cmp ecx, 5
jae 0x41d399
pop ebp
pop ecx
ret
mov edx, dword [esp + 0xc]
push ebx
push esi
mov esi, dword [esp + 0x1c]
add esi, 5
lea edx, [edx + ecx - 4]
push edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0x10], edx
jmp 0x41d3c0
mov ecx, dword [esp + 0x18]
lea edi, [eax + ecx]
cmp edi, edx
jae 0x41d3df
jmp 0x41d3d0
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x41d3df
add edi, 1
cmp edi, edx
jb 0x41d3d0
mov eax, edi
sub eax, ecx
mov ecx, eax
sub ecx, dword [esp + 0x1c]
cmp edi, edx
jae 0x41d4f5
cmp ecx, 3
jbe 0x41d415
xor ebp, ebp
mov cl, byte [edi + 4]
test cl, cl
mov dword [esp + 0x1c], eax
je 0x41d453
cmp cl, 0xff
je 0x41d453
and ebp, 3
add ebp, ebp
or ebp, 1
add eax, 1
jmp 0x41d3c0
add ecx, 0xffffffff
shl ebp, cl
and ebp, 7
je 0x41d3f8
movzx ecx, byte [ebp + 0x47b934]
mov ebx, edi
sub ebx, ecx
cmp byte [ebp + 0x47b92c], 0
mov cl, byte [ebx + 4]
je 0x41d43f
test cl, cl
je 0x41d43f
cmp cl, 0xff
jne 0x41d3f8
and ebp, 3
add ebp, ebp
mov dword [esp + 0x1c], eax
or ebp, 1
add eax, 1
jmp 0x41d3c0
xor edx, edx
mov dh, cl
movzx ecx, byte [edi + 2]
mov dl, byte [edi + 3]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 1]
shl edx, 8
or edx, ecx
lea esp, [esp]
cmp dword [esp + 0x28], 0
je 0x41d47e
lea ebx, [edx + eax]
add ebx, esi
jmp 0x41d484
sub edx, eax
sub edx, esi
mov ebx, edx
test ebp, ebp
je 0x41d4c6
movzx esi, byte [ebp + 0x47b934]
add esi, esi
add esi, esi
add esi, esi
mov ecx, 0x18
sub ecx, esi
mov edx, ebx
shr edx, cl
test dl, dl
je 0x41d4a9
cmp dl, 0xff
jne 0x41d4c2
mov ecx, 0x20
sub ecx, esi
mov esi, dword [esp + 0x20]
mov edx, 1
shl edx, cl
sub edx, 1
xor edx, ebx
jmp 0x41d470
mov esi, dword [esp + 0x20]
mov edx, ebx
shr edx, 0x18
and dl, 1
sub dl, 1
not dl
mov byte [edi + 4], dl
mov edx, ebx
shr edx, 8
mov ecx, ebx
shr ecx, 0x10
mov byte [edi + 2], dl
mov edx, dword [esp + 0x10]
mov byte [edi + 3], cl
mov byte [edi + 1], bl
add eax, 5
jmp 0x41d3c0
cmp ecx, 3
pop edi
pop esi
pop ebx
jbe 0x41d508
mov ecx, dword [esp + 0x18]
xor ebp, ebp
mov dword [ecx], ebp
pop ebp
pop ecx
ret
add ecx, 0xffffffff
shl ebp, cl
mov ecx, dword [esp + 0x18]
and ebp, 7
mov dword [ecx], ebp
pop ebp
pop ecx
ret

Function at 0x4238a7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x4238ea
call fcn.0042924a
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4238ea
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x423905
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00423461
test ebx, ebx
mov esi, eax
je 0x423903
test edi, edi
je 0x423903
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x42603d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, 0xffff0000
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
jne 0x42605d
cmp dword [edi + 0x54], 0
jne 0x42605d
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0042924a
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 [esp + 0x18]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00426004
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
ret 8

Function at 0x427e15
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x427e5b
call fcn.0042924a
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x427e5b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x427e9e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x427e87
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x427e87
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x427e9b
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x42a75a
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esi], vtable.CInternetSession.0
jne 0x42a783
call fcn.0042924a
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
test eax, eax
mov dword [esi + 8], eax
jne 0x42a7a6
push eax
push dword [esi + 4]
call fcn.0042a6e5
push esi
push eax
mov ecx, 0x49cf90
call fcn.0042a3b8
mov eax, esi
pop esi
pop ebp
ret 0x18
Function at 0x42b980
Capabilities:
Read file on windows

Disassembly:
cmp dword [esp + 8], 0
push esi
mov esi, ecx
jne 0x42b989
xor eax, eax
jmp 0x42b9f2
cmp dword [esp + 8], 0
jne 0x42b995
call fcn.00424d5f
push edi
push dword [esi + 0x10]
push dword [esp + 0x14]
push 1
push dword [esp + 0x18]
call fcn.0044481e
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x42b9d0
push dword [esi + 0x10]
call fcn.00444563
test eax, eax
pop ecx
jne 0x42b9d0
mov esi, dword [esi + 0xc]
call fcn.004407bb
push esi
push dword [eax]
push 1
call fcn.0042f522
push dword [esi + 0x10]
call fcn.00444592
test eax, eax
pop ecx
je 0x42b9ef
push dword [esi + 0x10]
call fcn.004444b7
push eax
call fcn.004032c0
pop ecx
pop ecx
jmp 0x42b9be
mov eax, edi
pop edi
pop esi
ret 8

Function at 0x42b9fb
Capabilities:
Write file on windows

Disassembly:
cmp dword [esp + 4], 0
push esi
mov esi, ecx
jne 0x42ba05
call fcn.00424d5f
push dword [esi + 0x10]
push dword [esp + 0x10]
push 1
push dword [esp + 0x14]
call fcn.0043eba6
add esp, 0x10
cmp eax, dword [esp + 0xc]
je 0x42ba32
mov esi, dword [esi + 0xc]
call fcn.004407bb
push esi
push dword [eax]
push 1
call fcn.0042f522
pop esi
ret 8

Function at 0x42cd23
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x42cd51
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42cd6f
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0042cc8d
jmp 0x42cd6f
mov eax, dword [esi + 0x14]
test eax, eax
je 0x42cd6f
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0042cc8d
test edi, edi
mov eax, edi
jne 0x42cd59
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x49cfcc]
test ecx, ecx
je 0x42ce32
jmp 0x42cd22
ret 8

Function at 0x43adc4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x499750]
jne 0x43adce
repz ret
jmp fcn.00446924
Function at 0x452cd7
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0044630b
xor ebx, ebx
cmp dword [0x49de40], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x452dac
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x452d17
xor eax, eax
jmp 0x452e70
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x452d10
push eax
call fcn.004462a8
mov dword [esp], 0x480ec0
push edi
mov dword [0x49de40], eax
call esi
push eax
call fcn.004462a8
mov dword [esp], 0x480eac
push edi
mov dword [0x49de44], eax
call esi
push eax
call fcn.004462a8
mov dword [0x49de48], eax
lea eax, [ebp - 8]
push eax
call fcn.0043b821
test eax, eax
pop ecx
pop ecx
je 0x452d7a
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0043b4bc
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x452dac
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004462a8
cmp eax, ebx
pop ecx
mov dword [0x49de50], eax
je 0x452dac
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004462a8
pop ecx
mov dword [0x49de4c], eax
mov eax, dword [0x49de4c]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x452e25
cmp dword [0x49de50], esi
je 0x452e25
push eax
call fcn.00446314
pop ecx
call eax
cmp eax, ebx
je 0x452df2
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x49de50]
call fcn.00446314
pop ecx
call eax
test eax, eax
je 0x452df2
test byte [ebp - 0x18], 1
jne 0x452e25
lea eax, [ebp - 0xc]
push eax
call fcn.0043b858
test eax, eax
pop ecx
je 0x452e0d
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0043b4bc
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x452e1c
or dword [ebp + 0x10], 0x200000
jmp 0x452e56
or dword [ebp + 0x10], 0x40000
jmp 0x452e56
mov eax, dword [0x49de44]
cmp eax, esi
je 0x452e56
push eax
call fcn.00446314
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x452e56
mov eax, dword [0x49de48]
cmp eax, esi
je 0x452e56
push dword [ebp - 4]
push eax
call fcn.00446314
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x49de40]
call fcn.00446314
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x458b28
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x499750]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00458abd
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0043ade0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x458b77
cmp dword [ebp - 0x1c], 5
jb 0x458b8f
jmp 0x458b8b
cmp dword [ebp - 0x10], 1
jne 0x458b8f
cmp dword [ebp - 0x1c], 4
ja 0x458b8b
jne 0x458b8f
cmp dword [ebp - 0x18], 0
jbe 0x458b8f
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x481f08
call fcn.004589ae
test eax, eax
jge 0x458bb0
mov byte [0x49e5e8], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0043adc4
add ebp, 0x78
leave
ret

Function at 0x459e40
Capabilities:
Get session information
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 8]
push ecx
push 5
push 0xffffffffffffffff
push 0
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
test eax, eax
je 0x459e8a
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0043d9a0
add esp, 0xc
mov edx, dword [ebp - 8]
push edx
call sub.WTSAPI32.dll_WTSFreeMemory
jmp 0x459e98
lea eax, [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x45b040
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x499750]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov word [ebp - 0x218], 0
push 0x206
push 0
lea eax, [ebp - 0x216]
push eax
call fcn.0043ade0
add esp, 0xc
cmp dword [ebp + 0xc], 0
je 0x45b153
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x45b153
lea edx, [ebp - 4]
push edx
push 0x10008
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
jne 0x45b151
cmp dword [ebp - 0x21c], 0
jne 0x45b147
mov dword [ebp - 0x220], 0x104
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x220]
push edx
lea eax, [ebp - 0x218]
push eax
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0x103
jne 0x45b120
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov dword [ebp - 0x21c], eax
jmp 0x45b147
cmp dword [ebp - 0x21c], 0
jne 0x45b142
lea ecx, [ebp - 0x218]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.0045b040
add esp, 8
mov dword [ebp - 0x21c], eax
jmp 0x45b0c1
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x45b15d
mov dword [ebp - 0x21c], 0x3f2
mov eax, dword [ebp - 0x21c]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0043adc4
mov esp, ebp
pop ebp
ret
Function at 0x45b470
Capabilities:
Check if file exists
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x499750]
xor eax, ebp
mov dword [ebp - 0x1c], eax
call fcn.00404790
mov dword [ebp - 0xc], eax
cmp dword [0x49e44c], 6
jae 0x45b49e
lea ecx, [ebp + 8]
call fcn.00405530
jmp 0x45b57b
lea ecx, [ebp + 8]
call fcn.004068a0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x45b4be
lea ecx, [ebp + 8]
call fcn.00405530
jmp 0x45b57b
lea eax, [ebp - 0x10]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsCompatibility_AssistantPersisted
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x45b573
mov dword [ebp - 0x18], 1
lea ecx, [ebp + 8]
call fcn.004068a0
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x45b502
mov dword [ebp - 0x20], 0
jmp 0x45b551
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x3fffffff
jle 0x45b524
mov dword [ebp - 0x24], 0
jmp 0x45b54b
mov eax, dword [ebp - 4]
shl eax, 1
call fcn.00445760
mov dword [ebp - 0x28], esp
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 4]
shl eax, 1
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.00404740
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x20], eax
push 4
lea ecx, [ebp - 0x18]
push ecx
push 4
push 0
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 8]
call fcn.00405530
lea esp, [ebp - 0x28]
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0043adc4
mov esp, ebp
pop ebp
ret
Function at 0x45b590
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea ecx, [ebp + 8]
call fcn.004068a0
push eax
call fcn.0043b186
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xa
jae 0x45b5bd
lea ecx, [ebp + 8]
call fcn.00405530
jmp 0x45b67d
lea ecx, [ebp - 8]
call fcn.00405510
cmp dword [0x49e44c], 6
jae 0x45b62b
lea eax, [ebp - 0xc]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x45b629
push 4
lea ecx, [ebp - 4]
push ecx
push 4
push 0
push str.MaxConnectionsPerServer
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea eax, [ebp - 4]
push eax
push 4
push 0
push str.MaxConnectionsPer1_0Server
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x45b66d
lea eax, [ebp - 0xc]
push eax
push 0xf003f
push 0
push str.SOFTWAREMicrosoftInternet_ExplorerMAINFeatureControlFEATURE_MAXCONNECTIONSPER1_0SERVER
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x45b66d
push 4
lea ecx, [ebp - 4]
push ecx
push 4
push 0
push str.explorer.exe
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 8]
call fcn.00405530
lea ecx, [ebp + 8]
call fcn.00405530
mov esp, ebp
pop ebp
ret

Function at 0x45b830
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x499750]
xor eax, ebp
mov dword [ebp - 0xc], eax
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 8], eax
mov dword [ebp - 0x240], 0x22c
lea eax, [ebp - 0x240]
push eax
mov ecx, dword [ebp - 8]
push ecx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x45b894
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x248], 0
lea ecx, [ebp + 8]
call fcn.00405530
mov eax, dword [ebp - 0x248]
jmp 0x45b947
mov dword [ebp - 4], 0
lea eax, [ebp - 0x240]
push eax
mov ecx, dword [ebp - 8]
push ecx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x45b925
lea edx, [ebp - 0x21c]
push edx
lea ecx, [ebp - 0x244]
call fcn.00402f90
lea ecx, [ebp - 0x244]
call fcn.004053b0
lea ecx, [ebp + 8]
call fcn.004053b0
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x244]
push ecx
call fcn.00404900
add esp, 8
movzx edx, al
test edx, edx
je 0x45b915
mov eax, dword [ebp - 0x238]
mov dword [ebp - 0x24c], eax
lea ecx, [ebp - 0x244]
call fcn.00405530
lea ecx, [ebp + 8]
call fcn.00405530
mov eax, dword [ebp - 0x24c]
jmp 0x45b947
lea ecx, [ebp - 0x244]
call fcn.00405530
jmp 0x45b89b
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x250], 0
lea ecx, [ebp + 8]
call fcn.00405530
mov eax, dword [ebp - 0x250]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0043adc4
mov esp, ebp
pop ebp
ret