joyce8/EMBER2024-capa huggingface dataset:
Function at 0x966758
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x966914
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x9667b9
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x966930
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x96682b
xor eax, eax
push ebp
push 0x966824
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
call fcn.009665b0
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x96680d
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x966950
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x96682b
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpyA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x96690c
cmp byte [ebp - 0xd], 0
jne 0x96686d
cmp byte [ebp - 0x12], 0
je 0x96690c
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x966886
dec ebx
cmp byte [ebx], 0x2e
je 0x966895
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x966885
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x96690c
inc ebx
cmp byte [ebp - 0x12], 0
je 0x9668c2
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x96690c
cmp byte [ebp - 0xd], 0
je 0x96690c
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x96690c
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x968eb0
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push esp
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.009654cc
add esp, 0x104
pop ebx
ret
Function at 0x969914
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x96994d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.009654cc
jmp 0x969956
mov eax, ebx
mov edx, esi
call fcn.00965438
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x969960
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x969981
mov al, byte [esp]
jmp 0x969983
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x96eee0
Capabilities:
Get hostname

Disassembly:
push ebx
add esp, 0xffffffec
mov ebx, eax
mov dword [esp], 0x10
push esp
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x96ef0c
lea edx, [esp + 4]
mov eax, ebx
mov ecx, dword [esp]
call fcn.009654cc
jmp 0x96ef13
mov eax, ebx
call fcn.009653e4
add esp, 0x14
pop ebx
ret

Function at 0x96f040
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor edx, edx
mov dword [ebp - 0x108], edx
mov dword [ebp - 0x10c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x96f0de
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 0x104]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
lea eax, [ebp - 0x104]
call fcn.00968ed8
test eax, eax
jbe 0x96f0b9
lea edx, [ebp - 0x10c]
lea eax, [ebp - 0x104]
call fcn.00969044
mov eax, dword [ebp - 0x10c]
lea edx, [ebp - 0x108]
call fcn.00968d70
mov eax, dword [ebp - 0x108]
mov edx, ebx
call fcn.0096eff4
jmp 0x96f0c0
mov eax, ebx
call fcn.009653e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x96f0e5
lea eax, [ebp - 0x10c]
mov edx, 2
call fcn.00965408
ret

Function at 0x96f160
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff4
mov dword [esp + 4], edx
mov dword [esp], eax
xor esi, esi
lea eax, [ecx + 8]
mov edx, esi
mov byte [eax], dl
inc esi
inc eax
cmp esi, 0x100
jne 0x96f172
xor edi, edi
mov dword [esp + 8], 3
xor esi, esi
lea ebx, [ecx + 8]
mov eax, esi
cdq
idiv dword [esp + 4]
mov eax, dword [esp]
movzx eax, byte [eax + edx]
xor edx, edx
mov dl, byte [ebx]
add edi, edx
add eax, edi
mov edi, eax
mov al, byte [ebx]
mov edx, edi
and edx, 0xff
mov dl, byte [ecx + edx + 8]
mov byte [ebx], dl
mov edx, edi
and edx, 0xff
mov byte [ecx + edx + 8], al
inc esi
inc ebx
cmp esi, 0x100
jne 0x96f18f
dec dword [esp + 8]
jne 0x96f18a
xor eax, eax
mov dword [ecx], eax
mov dword [ecx + 4], edi
add esp, 0xc
pop edi
pop esi
pop ebx
ret
Function at 0x96f1e4
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov esi, eax
mov edi, dword [esi]
mov eax, dword [esi + 4]
mov dword [esp], eax
dec ecx
test ecx, ecx
jl 0x96f25b
inc ecx
mov dword [esp + 4], ecx
inc edi
mov eax, edi
and eax, 0xff
xor ecx, ecx
mov cl, byte [esi + eax + 8]
xor eax, eax
mov al, cl
movzx eax, byte [esi + eax + 8]
add eax, ecx
xor ebx, ebx
mov bl, al
push dword [esi + ebx + 8]
mov ebx, edi
and ebx, 0xff
lea ebp, [esi + ebx + 8]
pop ebx
mov byte [ebp], bl
xor ebx, ebx
mov bl, al
lea ebx, [esi + ebx + 8]
push ebx
pop ebx
mov byte [ebx], cl
mov ecx, eax
shr ecx, 8
add cl, al
xor eax, eax
mov al, cl
movzx eax, byte [esi + eax + 8]
add dword [esp], eax
mov al, byte [esp]
xor byte [edx], al
inc edx
dec dword [esp + 4]
jne 0x96f1ff
mov dword [esi], edi
mov eax, dword [esp]
mov dword [esi + 4], eax
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x96f290
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov esi, eax
mov edi, edx
push ecx
shr ecx, 2
je 0x96f2aa
cld
mov eax, dword [edi]
xor dword [esi], eax
add esi, 4
add edi, 4
dec ecx
jne 0x96f29d
pop ecx
and ecx, 3
je 0x96f2b9
mov al, byte [edi]
xor byte [esi], al
inc esi
inc edi
dec ecx
jne 0x96f2b0
pop edi
pop esi
ret

Function at 0x96f2c4
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
add esp, 0xfffffff8
mov dword [esp], eax
xor eax, eax
mov al, byte [esp]
mov al, byte [eax + 0x9752f8]
mov byte [esp + 4], al
xor eax, eax
mov al, byte [esp + 1]
mov al, byte [eax + 0x9752f8]
mov byte [esp + 5], al
xor eax, eax
mov al, byte [esp + 2]
mov al, byte [eax + 0x9752f8]
mov byte [esp + 6], al
xor eax, eax
mov al, byte [esp + 3]
mov al, byte [eax + 0x9752f8]
mov byte [esp + 7], al
mov eax, dword [esp + 4]
pop ecx
pop edx
ret
Function at 0x96f35c
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov byte [ebp - 0x15], cl
mov ebx, edx
mov dword [ebp - 0x14], eax
xor eax, eax
lea edx, [ebp - 0x10]
cmp byte [ebp - 0x15], 0
jne 0x96f3ea
lea ecx, [eax]
and ecx, 0x80000003
jns 0x96f387
dec ecx
or ecx, 0xfffffffc
inc ecx
movzx ecx, byte [ebx + ecx*4]
mov ecx, dword [ecx*4 + 0x975530]
lea esi, [eax + 1]
and esi, 0x80000003
jns 0x96f3a2
dec esi
or esi, 0xfffffffc
inc esi
movzx esi, byte [ebx + esi*4 + 1]
xor ecx, dword [esi*4 + 0x975930]
lea esi, [eax + 2]
and esi, 0x80000003
jns 0x96f3be
dec esi
or esi, 0xfffffffc
inc esi
movzx esi, byte [ebx + esi*4 + 2]
xor ecx, dword [esi*4 + 0x975d30]
lea esi, [eax + 3]
and esi, 0x80000003
jns 0x96f3da
dec esi
or esi, 0xfffffffc
inc esi
movzx esi, byte [ebx + esi*4 + 3]
xor ecx, dword [esi*4 + 0x976130]
mov dword [edx], ecx
jmp 0x96f45f
lea ecx, [eax]
and ecx, 0x80000003
jns 0x96f3f9
dec ecx
or ecx, 0xfffffffc
inc ecx
movzx ecx, byte [ebx + ecx*4]
mov cl, byte [ecx + 0x9752f8]
mov byte [edx], cl
lea ecx, [eax + 1]
and ecx, 0x80000003
jns 0x96f415
dec ecx
or ecx, 0xfffffffc
inc ecx
movzx ecx, byte [ebx + ecx*4 + 1]
mov cl, byte [ecx + 0x9752f8]
mov byte [edx + 1], cl
lea ecx, [eax + 2]
and ecx, 0x80000003
jns 0x96f433
dec ecx
or ecx, 0xfffffffc
inc ecx
movzx ecx, byte [ebx + ecx*4 + 2]
mov cl, byte [ecx + 0x9752f8]
mov byte [edx + 2], cl
lea ecx, [eax + 3]
and ecx, 0x80000003
jns 0x96f451
dec ecx
or ecx, 0xfffffffc
inc ecx
movzx ecx, byte [ebx + ecx*4 + 3]
mov cl, byte [ecx + 0x9752f8]
mov byte [edx + 3], cl
inc eax
add edx, 4
cmp eax, 4
jne 0x96f372
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
mov ecx, 0x10
call fcn.0096f290
mov edi, ebx
lea esi, [ebp - 0x10]
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x96f490
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x14], edx
mov edx, eax
mov eax, dword [ebp - 0x14]
mov ecx, 0x10
call fcn.0096f290
xor esi, esi
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
test bl, bl
jne 0x96f56c
xor ecx, ecx
mov cl, byte [eax]
mov ecx, dword [ecx*4 + 0x976530]
movzx edi, byte [eax + 1]
xor ecx, dword [edi*4 + 0x976930]
movzx edi, byte [eax + 2]
xor ecx, dword [edi*4 + 0x976d30]
movzx edi, byte [eax + 3]
xor ecx, dword [edi*4 + 0x977130]
mov dword [ebp - 0x18], ecx
xor ecx, ecx
mov cl, byte [ebp - 0x18]
mov cl, byte [ecx + 0x9753f8]
lea edi, [esi]
and edi, 0x80000003
jns 0x96f506
dec edi
or edi, 0xfffffffc
inc edi
mov byte [ebp + edi*4 - 0x10], cl
xor ecx, ecx
mov cl, byte [ebp - 0x17]
mov cl, byte [ecx + 0x9753f8]
lea edi, [esi + 1]
and edi, 0x80000003
jns 0x96f525
dec edi
or edi, 0xfffffffc
inc edi
mov byte [ebp + edi*4 - 0xf], cl
xor ecx, ecx
mov cl, byte [ebp - 0x16]
mov cl, byte [ecx + 0x9753f8]
lea edi, [esi + 2]
and edi, 0x80000003
jns 0x96f544
dec edi
or edi, 0xfffffffc
inc edi
mov byte [ebp + edi*4 - 0xe], cl
xor ecx, ecx
mov cl, byte [ebp - 0x15]
mov cl, byte [ecx + 0x9753f8]
lea edi, [esi + 3]
and edi, 0x80000003
jns 0x96f563
dec edi
or edi, 0xfffffffc
inc edi
mov byte [ebp + edi*4 - 0xd], cl
jmp 0x96f5ed
lea ecx, [esi]
and ecx, 0x80000003
jns 0x96f57b
dec ecx
or ecx, 0xfffffffc
inc ecx
mov edi, dword [ebp - 0x14]
movzx ecx, byte [edi + ecx*4]
mov cl, byte [ecx + 0x9753f8]
mov byte [edx], cl
lea ecx, [esi + 3]
and ecx, 0x80000003
jns 0x96f59a
dec ecx
or ecx, 0xfffffffc
inc ecx
mov edi, dword [ebp - 0x14]
movzx ecx, byte [edi + ecx*4 + 1]
mov cl, byte [ecx + 0x9753f8]
mov byte [edx + 1], cl
lea ecx, [esi + 2]
and ecx, 0x80000003
jns 0x96f5bb
dec ecx
or ecx, 0xfffffffc
inc ecx
mov edi, dword [ebp - 0x14]
movzx ecx, byte [edi + ecx*4 + 2]
mov cl, byte [ecx + 0x9753f8]
mov byte [edx + 2], cl
lea ecx, [esi + 1]
and ecx, 0x80000003
jns 0x96f5dc
dec ecx
or ecx, 0xfffffffc
inc ecx
mov edi, dword [ebp - 0x14]
movzx ecx, byte [edi + ecx*4 + 3]
mov cl, byte [ecx + 0x9753f8]
mov byte [edx + 3], cl
inc esi
add edx, 4
add eax, 4
cmp esi, 4
jne 0x96f4b5
mov eax, dword [ebp - 0x14]
mov edi, eax
lea esi, [ebp - 0x10]
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x971e20
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
mov eax, esi
mov edx, ebx
call fcn.00965438
mov eax, dword [esi]
call fcn.00965640
mov edi, eax
test edi, edi
jle 0x971e5a
mov ebx, 1
mov eax, esi
call fcn.00965800
mov edx, dword [esi]
mov dl, byte [edx + ebx - 1]
xor dl, 0xec
mov byte [eax + ebx - 1], dl
inc ebx
dec edi
jne 0x971e42
pop edi
pop esi
pop ebx
ret
Function at 0x972120
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc64
xor eax, eax
mov dword [ebp - 0x39c], eax
mov dword [ebp - 0x398], eax
xor eax, eax
push ebp
push 0x9722c9
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x394]
xor ecx, ecx
mov edx, 0x94
call fcn.0096486c
mov dword [ebp - 0x394], 0x94
mov eax, sub.kernel32.dll_GetVersionExA
mov al, byte [eax]
xor al, 0x96
cmp al, 0x57
je 0x97229a
lea eax, [ebp - 0x394]
push eax
call sub.kernel32.dll_GetVersionExA
test eax, eax
je 0x97229a
cmp dword [ebp - 0x384], 2
jne 0x972235
mov eax, sub.kernel32.dll_CreateFileW
mov al, byte [eax]
xor al, 0x96
cmp al, 0x57
je 0x97229a
lea edx, [ebp - 0x398]
mov eax, 0x9722dc
call fcn.00971e20
mov edx, dword [ebp - 0x398]
lea eax, [ebp - 0x100]
call fcn.00968f9c
push pe_nt_image_headers32
lea eax, [ebp - 0x300]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x100]
push eax
push 0
push 0
call sub.kernel32.dll_MultiByteToWideChar_1
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
lea eax, [ebp - 0x300]
push eax
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x97221d
push eax
call sub.kernel32.dll_CloseHandle_1
dec dword [0x9786bc]
dec dword [0x9786c0]
jmp 0x9722ab
call sub.kernel32.dll_GetLastError_1
cmp eax, 5
je 0x97229a
dec dword [0x9786bc]
dec dword [0x9786c0]
jmp 0x9722ab
mov eax, sub.kernel32.dll_CreateFileA_1
mov al, byte [eax]
xor al, 0x96
cmp al, 0x57
je 0x97229a
lea edx, [ebp - 0x39c]
mov eax, 0x9722f0
call fcn.00971e20
mov edx, dword [ebp - 0x39c]
lea eax, [ebp - 0x100]
call fcn.00968f9c
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
lea eax, [ebp - 0x100]
push eax
call sub.kernel32.dll_CreateFileA_1
cmp eax, 0xffffffff
jne 0x972294
dec dword [0x9786bc]
dec dword [0x9786c0]
jmp 0x9722ab
push eax
call sub.kernel32.dll_CloseHandle_1
inc dword [0x9786bc]
inc dword [0x9786c0]
call fcn.00971fe0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x9722d0
lea eax, [ebp - 0x39c]
mov edx, 2
call fcn.00965408
ret
Function at 0x9722fc
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc64
xor eax, eax
mov dword [ebp - 0x39c], eax
mov dword [ebp - 0x398], eax
xor eax, eax
push ebp
push 0x9724a5
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x394]
xor ecx, ecx
mov edx, 0x94
call fcn.0096486c
mov dword [ebp - 0x394], 0x94
mov eax, sub.kernel32.dll_GetVersionExA
mov al, byte [eax]
xor al, 0x96
cmp al, 0x57
je 0x972476
lea eax, [ebp - 0x394]
push eax
call sub.kernel32.dll_GetVersionExA
test eax, eax
je 0x972476
cmp dword [ebp - 0x384], 2
jne 0x972411
mov eax, sub.kernel32.dll_CreateFileW
mov al, byte [eax]
xor al, 0x96
cmp al, 0x57
je 0x972476
lea edx, [ebp - 0x398]
mov eax, 0x9724b8
call fcn.00971e20
mov edx, dword [ebp - 0x398]
lea eax, [ebp - 0x100]
call fcn.00968f9c
push pe_nt_image_headers32
lea eax, [ebp - 0x300]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x100]
push eax
push 0
push 0
call sub.kernel32.dll_MultiByteToWideChar_1
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
lea eax, [ebp - 0x300]
push eax
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x9723f9
push eax
call sub.kernel32.dll_CloseHandle_1
dec dword [0x9786bc]
dec dword [0x9786c0]
jmp 0x972487
call sub.kernel32.dll_GetLastError_1
cmp eax, 5
je 0x972476
dec dword [0x9786bc]
dec dword [0x9786c0]
jmp 0x972487
mov eax, sub.kernel32.dll_CreateFileA_1
mov al, byte [eax]
xor al, 0x96
cmp al, 0x57
je 0x972476
lea edx, [ebp - 0x39c]
mov eax, 0x9724cc
call fcn.00971e20
mov edx, dword [ebp - 0x39c]
lea eax, [ebp - 0x100]
call fcn.00968f9c
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
lea eax, [ebp - 0x100]
push eax
call sub.kernel32.dll_CreateFileA_1
cmp eax, 0xffffffff
jne 0x972470
dec dword [0x9786bc]
dec dword [0x9786c0]
jmp 0x972487
push eax
call sub.kernel32.dll_CloseHandle_1
inc dword [0x9786bc]
inc dword [0x9786c0]
call fcn.00971fe0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x9724ac
lea eax, [ebp - 0x39c]
mov edx, 2
call fcn.00965408
ret
Function at 0x972a0c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x972b7e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.009653e4
lea eax, [ebp - 4]
push eax
push 1
push 0
lea edx, [ebp - 0x210]
mov eax, 0x972b94
call fcn.00971e20
mov eax, dword [ebp - 0x210]
call fcn.009657f4
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x972adc
mov dword [ebp - 8], 0x201
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x209]
push eax
push 0
push 0
lea edx, [ebp - 0x214]
mov eax, esi
call fcn.00971e20
mov eax, dword [ebp - 0x214]
call fcn.009657f4
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x972ad3
mov edx, ebx
lea eax, [ebp - 0x209]
call fcn.00969044
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
jmp 0x972b60
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
lea eax, [ebp - 4]
push eax
push 1
push 0
lea edx, [ebp - 0x218]
mov eax, 0x972bc8
call fcn.00971e20
mov eax, dword [ebp - 0x218]
call fcn.009657f4
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x972b60
mov dword [ebp - 8], 0x201
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x209]
push eax
push 0
push 0
lea edx, [ebp - 0x21c]
mov eax, esi
call fcn.00971e20
mov eax, dword [ebp - 0x21c]
call fcn.009657f4
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x972b57
mov edx, ebx
lea eax, [ebp - 0x209]
call fcn.00969044
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x972b85
lea eax, [ebp - 0x21c]
mov edx, 4
call fcn.00965408
ret
Function at 0x97319c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeac
push ebx
xor edx, edx
mov dword [ebp - 0x154], edx
mov dword [ebp - 0x150], edx
mov dword [ebp - 0x14c], edx
mov dword [ebp - 0x148], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x973340
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0x28
lea eax, [ebp - 0x3c]
xor ecx, ecx
mov edx, dword [ebp - 4]
call fcn.0096486c
lea ecx, [ebp - 0x144]
mov eax, 0x97867c
mov edx, 0x10
call fcn.0096f160
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x3c]
push eax
push 0
push 0
lea edx, [ebp - 0x148]
mov eax, 0x973354
call fcn.00971e20
mov eax, dword [ebp - 0x148]
call fcn.009657f4
push eax
push ebx
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x97327e
lea edx, [ebp - 0x14c]
lea eax, [ebp - 0x3c]
call fcn.00969044
mov eax, dword [ebp - 0x14c]
lea edx, [ebp - 0x14]
call fcn.00972c58
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x144]
mov ecx, 0x10
call fcn.0096f1e4
mov edx, 0x9786f0
lea eax, [ebp - 0x14]
mov ecx, 8
call fcn.009646d8
mov edx, 0x9786f8
lea eax, [ebp - 0xc]
mov ecx, 8
call fcn.009646d8
lea eax, [ebp - 0x3c]
xor ecx, ecx
mov edx, dword [ebp - 4]
call fcn.0096486c
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x3c]
push eax
push 0
push 0
lea edx, [ebp - 0x150]
mov eax, 0x973364
call fcn.00971e20
mov eax, dword [ebp - 0x150]
call fcn.009657f4
push eax
push ebx
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x973322
lea edx, [ebp - 0x154]
lea eax, [ebp - 0x3c]
call fcn.00969044
mov eax, dword [ebp - 0x154]
lea edx, [ebp - 0x14]
call fcn.00972c58
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x144]
mov ecx, 0x10
call fcn.0096f1e4
mov edx, 0x978700
lea eax, [ebp - 0x14]
mov ecx, 4
call fcn.009646d8
mov edx, 0x978704
lea eax, [ebp - 0x10]
mov ecx, 4
call fcn.009646d8
mov edx, 0x978a20
lea eax, [ebp - 0xc]
mov ecx, 8
call fcn.009646d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x973347
lea eax, [ebp - 0x154]
mov edx, 4
call fcn.00965408
ret
Function at 0x97336c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb0
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x150], edx
mov dword [ebp - 0x14c], edx
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x144], edx
mov esi, eax
xor eax, eax
push ebp
push 0x973505
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, 0x28
lea eax, [ebp - 0x10]
xor ecx, ecx
mov edx, 0x10
call fcn.0096486c
lea edx, [ebp - 0x10]
mov eax, 0x9786f0
mov ecx, 8
call fcn.009646d8
lea edx, [ebp - 8]
mov eax, 0x9786f8
mov ecx, 8
call fcn.009646d8
lea ecx, [ebp - 0x140]
mov eax, 0x97867c
mov edx, 0x10
call fcn.0096f160
lea edx, [ebp - 0x10]
lea eax, [ebp - 0x140]
mov ecx, 0x10
call fcn.0096f1e4
lea edx, [ebp - 0x144]
lea eax, [ebp - 0x10]
call fcn.00972cf0
mov edx, dword [ebp - 0x144]
lea eax, [ebp - 0x38]
call fcn.00968f9c
push ebx
lea eax, [ebp - 0x38]
push eax
push 1
push 0
lea edx, [ebp - 0x148]
mov eax, 0x97351c
call fcn.00971e20
mov eax, dword [ebp - 0x148]
call fcn.009657f4
push eax
push esi
call sub.advapi32.dll_RegSetValueExA
lea eax, [ebp - 0x10]
xor ecx, ecx
mov edx, 0x10
call fcn.0096486c
lea edx, [ebp - 0x10]
mov eax, 0x978700
mov ecx, 4
call fcn.009646d8
lea edx, [ebp - 0xc]
mov eax, 0x978704
mov ecx, 4
call fcn.009646d8
lea edx, [ebp - 8]
mov eax, 0x978a20
mov ecx, 8
call fcn.009646d8
lea edx, [ebp - 0x10]
lea eax, [ebp - 0x140]
mov ecx, 0x10
call fcn.0096f1e4
lea edx, [ebp - 0x14c]
lea eax, [ebp - 0x10]
call fcn.00972cf0
mov edx, dword [ebp - 0x14c]
lea eax, [ebp - 0x38]
call fcn.00968f9c
push ebx
lea eax, [ebp - 0x38]
push eax
push 1
push 0
lea edx, [ebp - 0x150]
mov eax, 0x97352c
call fcn.00971e20
mov eax, dword [ebp - 0x150]
call fcn.009657f4
push eax
push esi
call sub.advapi32.dll_RegSetValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x97350c
lea eax, [ebp - 0x150]
mov edx, 4
call fcn.00965408
ret
Function at 0x405e20
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x80c90b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x18]
push edi
lea ecx, [esi + 4]
mov dword [esi], 0x4040f4
call fcn.00406a81
push 4
mov dword [esp + 0x18], 0
call fcn.00407a74
mov edi, eax
add esp, 4
test edi, edi
je 0x405e94
push ebx
call fcn.00406959
mov dword [edi], eax
call fcn.00406718
push 0
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.00406a42
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x405e88
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0xc]
call fcn.00406a6a
pop ebx
jmp 0x405e96
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x4084e1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x80ff08]
jne 0x4084eb
repz ret
jmp fcn.0040d34c