joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414a4a
Capabilities:
Enumerate processes

Disassembly:
push 0x2a0
mov eax, 0x591753
call fcn.0054636d
mov dword [ebp - 0x298], ecx
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x29c], edi
mov dword [ebp - 0x2a0], edi
mov dword [ebp - 0x294], ebx
mov dword [ebp - 0x290], ebx
mov dword [ebp - 0x28c], ebx
push ebx
push 2
mov dword [ebp - 4], ebx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x414ab4
lea eax, [ebp - 0x294]
mov ecx, edi
push eax
call fcn.00413065
lea ecx, [ebp - 0x294]
call fcn.00416241
mov eax, edi
jmp 0x414c49
lea eax, [ebp - 0x284]
mov dword [ebp - 0x284], 0x22c
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x414ad8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x414a94
mov dword [ebp - 0x2ac], ebx
mov dword [ebp - 0x2a8], ebx
mov dword [ebp - 0x2a4], ebx
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp - 0x298]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x27c]
lea ecx, [ebp - 0x2ac]
mov dword [ebp - 0x288], eax
lea eax, [ebp - 0x288]
push eax
call fcn.00412dd7
test ebx, ebx
jle 0x414b25
cmp dword [ebp - 0x288], ebx
jne 0x414bd5
mov eax, dword [ebp - 0x26c]
and dword [ebp - 0x18], 0
mov dword [ebp - 0x29c], eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
push dword [ebp - 0x288]
mov ecx, edi
call fcn.00414995
test al, al
jne 0x414bac
and dword [ebp - 0x30], 0
lea ecx, [ebp - 0x40]
xor eax, eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x260]
push eax
call fcn.00412707
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0041ef1a
pop ecx
pop ecx
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040442e
lea ecx, [ebp - 0x58]
call fcn.00406661
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.00406687
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x29c]
push eax
lea eax, [ebp - 0x288]
push eax
lea ecx, [ebp - 0x294]
call fcn.00412d9e
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00406661
lea eax, [ebp - 0x284]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x414af7
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x298]
lea esi, [ebx + 4]
push esi
call fcn.0040640b
pop ecx
lea eax, [ebp - 0x2ac]
push eax
lea ecx, [ebx + 0x34]
call fcn.004162f1
mov ecx, dword [ebp - 0x2a0]
lea eax, [ebp - 0x294]
push eax
call fcn.00413065
push esi
mov byte [ebp - 4], 4
call fcn.0040642a
pop ecx
lea ecx, [ebp - 0x2ac]
call fcn.0040a611
lea ecx, [ebp - 0x294]
call fcn.00416241
mov eax, dword [ebp - 0x2a0]
call fcn.00546317
ret 8
Function at 0x4153c3
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x638034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
mov word [ebp - 8], 0x500
lea eax, [ebp - 0x14]
mov dword [ebp - 0xc], ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x415424
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x14]
neg eax
sbb eax, eax
and dword [ebp - 0x10], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
cmp eax, 1
pop ebx
sete al
xor ecx, ebp
call fcn.005462f1
leave
ret
Function at 0x41cf39
Capabilities:
Read file via mapping

Disassembly:
push 0xbc
mov eax, 0x58fff7
call fcn.0054636d
push str.GlobalBattle.netHelperSvcPortObject
xor ebx, ebx
or edi, 0xffffffff
push ebx
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov esi, eax
test esi, esi
je 0x41cf95
push 8
pop eax
push eax
push ebx
push ebx
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x41cf8c
cmp byte [eax], 1
jne 0x41cf85
push 8
pop ecx
cmp word [eax + 2], cx
jb 0x41cf85
mov edi, dword [eax + 4]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41cfd9
call fcn.0040c461
push 2
push eax
lea ecx, [ebp - 0xc8]
call fcn.0040bd69
lea eax, [ebp - 0xc8]
mov dword [ebp - 4], ebx
push str.Failed_to_open_mapping_file_due_to:
push eax
call fcn.00401609
pop ecx
pop ecx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.004044df
lea ecx, [ebp - 0xc8]
call fcn.0040bf50
mov eax, edi
call fcn.00546317
ret
Function at 0x41dbf0
Capabilities:
Query service status
Stop service

Disassembly:
push 0x19c
mov eax, 0x592774
call fcn.0054636d
mov esi, dword [ebp + 8]
xor ebx, ebx
push ebx
mov dword [ebp - 0x1a4], esi
call fcn.0041d224
mov edi, eax
mov dword [ebp - 0x1a8], edi
pop ecx
test edi, edi
je 0x41dddc
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.0041efad
pop ecx
pop ecx
cmp dword [eax + 0x14], 8
jb 0x41dc35
mov eax, dword [eax]
push 0x80000020
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x1a0], edi
call fcn.00406687
test edi, edi
je 0x41dd67
lea eax, [ebp - 0x2c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x41dcfc
cmp dword [ebp - 0x28], 1
je 0x41dcbe
cmp dword [ebp - 0x28], 3
je 0x41dc8a
lea eax, [ebp - 0x2c]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x41dcab
push 0x1e
push 1
lea eax, [ebp - 0x1a0]
push esi
push eax
call fcn.0041de0c
mov edi, dword [ebp - 0x1a0]
add esp, 0x10
mov bl, al
jmp 0x41dd5e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1a0], eax
cmp eax, 0x426
jne 0x41dcc5
mov bl, 1
jmp 0x41dd5e
call fcn.0040c461
push 2
push eax
lea ecx, [ebp - 0xe4]
call fcn.0040bd69
lea eax, [ebp - 0xe4]
mov dword [ebp - 4], ebx
push str.Failed_to_stop_service_
push eax
call fcn.00401609
pop ecx
pop ecx
push dword [ebp - 0x1a0]
push str._due_to_error
push esi
jmp 0x41dd3c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 1
push str.AgentErrors.log
lea ecx, [ebp - 0xe4]
mov esi, eax
call fcn.0040bd69
lea eax, [ebp - 0xe4]
mov dword [ebp - 4], 1
push str.Failed_to_query_service_
push eax
call fcn.00401609
pop ecx
pop ecx
push esi
push str._due_to_error
push dword [ebp - 0x1a4]
push eax
call fcn.004015e9
pop ecx
pop ecx
push eax
call fcn.00401609
pop ecx
pop ecx
mov ecx, eax
call fcn.004044df
lea ecx, [ebp - 0xe4]
call fcn.0040bf50
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x41ddd0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x424
je 0x41ddce
push 1
push str.AgentErrors.log
lea ecx, [ebp - 0x19c]
call fcn.0040bd69
lea eax, [ebp - 0x19c]
mov dword [ebp - 4], 2
push str.Failed_to_open_service_
push eax
call fcn.00401609
pop ecx
pop ecx
push edi
push str._so_that_it_can_be_stopped_due_to_error
push esi
push eax
call fcn.004015e9
pop ecx
pop ecx
push eax
call fcn.00401609
pop ecx
pop ecx
mov ecx, eax
call fcn.004044df
lea ecx, [ebp - 0x19c]
call fcn.0040bf50
jmp 0x41ddd0
mov bl, 1
push dword [ebp - 0x1a8]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, bl
call fcn.00546317
ret
Function at 0x41de0c
Capabilities:
Query service status

Disassembly:
push 0x1a0
mov eax, 0x5927bd
call fcn.0054636d
mov ebx, dword [ebp + 0x14]
xor esi, esi
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x1a4], ecx
mov dword [ebp - 0x1a0], eax
test ebx, ebx
je 0x41ded2
lea eax, [ebp - 0x19c]
push eax
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x41dfde
mov eax, dword [ebp - 0x198]
cmp eax, edi
je 0x41df59
sub eax, 1
je 0x41de9b
sub eax, 1
je 0x41de93
sub eax, 1
je 0x41de8e
sub eax, 1
je 0x41de9b
sub eax, 1
je 0x41de93
sub eax, 1
je 0x41de89
sub eax, 1
je 0x41de9b
xor al, al
jmp 0x41de9d
cmp edi, 7
jmp 0x41de96
cmp edi, 1
jmp 0x41de96
cmp edi, 4
setne al
jmp 0x41de9d
mov al, 1
test al, al
jne 0x41df61
and dword [ebp - 0x1a8], 0
lea eax, [ebp - 0x1ac]
push eax
mov dword [ebp - 0x1ac], 1
call fcn.0041ca72
inc esi
pop ecx
mov ecx, dword [ebp - 0x1a4]
cmp esi, ebx
jb 0x41de3d
call fcn.0040c461
push 2
pop esi
push esi
push eax
lea ecx, [ebp - 0x180]
call fcn.0040bd69
lea eax, [ebp - 0x180]
mov dword [ebp - 4], esi
push str.Service_
push eax
call fcn.00401609
pop ecx
pop ecx
push 0x5a1cd8
push ebx
push str._within
push edi
mov ecx, eax
call fcn.0041cab9
add esp, 4
push eax
push str._failed_to
push dword [ebp - 0x1a0]
push ecx
call fcn.004015e9
pop ecx
pop ecx
push eax
call fcn.00401609
pop ecx
pop ecx
push eax
call fcn.00401609
pop ecx
pop ecx
push eax
call fcn.00401609
pop ecx
pop ecx
mov ecx, eax
call fcn.004044df
push eax
call fcn.00401609
pop ecx
pop ecx
lea ecx, [ebp - 0x180]
call fcn.0040bf50
mov al, 1
call fcn.00546317
ret
push 1
push str.AgentErrors.log
lea ecx, [ebp - 0xc8]
call fcn.0040bd69
lea eax, [ebp - 0xc8]
mov dword [ebp - 4], 1
push str.Encountered_state
push eax
call fcn.00401609
push edi
mov ecx, eax
call fcn.0041cab9
add esp, 0xc
push eax
push 0x5a1c9c
push dword [ebp - 0x1a0]
push str._while_waiting_for_service_
push dword [ebp - 0x198]
call fcn.0041cab9
push eax
push ecx
call fcn.00401609
add esp, 0xc
push eax
call fcn.00401609
pop ecx
pop ecx
push eax
call fcn.004015e9
pop ecx
pop ecx
push eax
call fcn.00401609
pop ecx
pop ecx
push eax
call fcn.00401609
pop ecx
pop ecx
jmp 0x41e053
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 1
push str.AgentErrors.log
lea ecx, [ebp - 0xc8]
mov esi, eax
call fcn.0040bd69
and dword [ebp - 4], 0
lea eax, [ebp - 0xc8]
push str.Failed_to_query_service_
push eax
call fcn.00401609
pop ecx
pop ecx
push esi
push 0x5a1c50
push edi
mov ecx, eax
call fcn.0041cab9
add esp, 4
push eax
push str._while_waiting_for_service_to
push dword [ebp - 0x1a0]
push ecx
call fcn.004015e9
pop ecx
pop ecx
push eax
call fcn.00401609
pop ecx
pop ecx
push eax
call fcn.00401609
pop ecx
pop ecx
push eax
call fcn.00401609
pop ecx
pop ecx
mov ecx, eax
call fcn.004044df
lea ecx, [ebp - 0xc8]
call fcn.0040bf50
xor al, al
jmp 0x41df5b
Function at 0x42060c
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
call fcn.004204e5
test al, al
je 0x420779
mov ecx, esi
call fcn.004203ae
test eax, eax
je 0x420779
lea ecx, [ebp - 0x14]
xor ebx, ebx
push ecx
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
push ecx
push eax
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_GetExplicitEntriesFromAclW]
test eax, eax
jne 0x420779
mov byte [ebp - 0x10], bl
mov byte [ebp - 2], bl
mov byte [ebp - 1], bl
inc ebx
push ebx
call fcn.0041fba1
push 3
mov dword [ebp - 0x1c], eax
call fcn.0041fba1
push 2
mov dword [ebp - 0x20], eax
call fcn.0041fba1
and dword [ebp - 0x18], 0
add esp, 0xc
cmp dword [ebp - 0xc], 0
mov ecx, eax
mov dword [ebp - 8], ecx
jbe 0x420743
xor esi, esi
push edi
mov edi, dword [ebp - 0x14]
cmp dword [esi + edi + 4], ebx
je 0x4206a2
cmp dword [esi + edi + 4], 2
jne 0x42072f
cmp dword [esi + edi + 0x14], 0
jne 0x42072f
test ecx, ecx
je 0x4206d4
mov eax, dword [esi + edi]
and eax, 0x20031
cmp eax, 0x20031
jne 0x4206d4
push dword [esi + edi + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x4206d4
mov byte [ebp - 1], bl
jmp 0x42072c
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x4206fe
mov eax, dword [esi + edi]
and eax, 0x20031
cmp eax, 0x20031
jne 0x4206fe
push dword [esi + edi + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x4206fe
mov byte [ebp - 2], bl
jmp 0x42072c
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x42072c
mov eax, dword [esi + edi]
mov edx, 0x30031
and eax, edx
cmp eax, edx
jne 0x42072c
push dword [esi + edi + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
mov ecx, dword [ebp - 0x10]
test eax, eax
movzx ecx, cl
cmovne ecx, ebx
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 8]
mov edi, dword [ebp - 0x18]
add esi, 0x20
inc edi
mov dword [ebp - 0x18], edi
cmp edi, dword [ebp - 0xc]
jb 0x42068e
pop edi
lea eax, [ebp - 0x1c]
push eax
call fcn.00420b84
lea eax, [ebp - 0x20]
push eax
call fcn.00420b84
lea eax, [ebp - 8]
push eax
call fcn.00420b84
add esp, 0xc
cmp byte [ebp - 1], 0
je 0x420773
cmp byte [ebp - 2], 0
je 0x420773
cmp byte [ebp - 0x10], 0
jne 0x420775
xor bl, bl
mov al, bl
jmp 0x42077b
xor al, al
pop esi
pop ebx
leave
ret

Function at 0x4220c0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x638034]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, dword [ebp - 4]
neg eax
sbb al, al
xor ecx, ebp
inc al
call fcn.005462f1
leave
ret
Function at 0x425080
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x280c
call fcn.00546770
mov eax, dword [0x638034]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
mov dword [ebp - 0x280c], eax
add eax, 0x2844
push ebx
xor ebx, ebx
push esi
cmp dword [eax + 0x14], 0x10
mov dword [ebp - 0x2808], ebx
jb 0x4250b6
mov eax, dword [eax]
push 0x5a28a4
push eax
call fcn.0056de50
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x42513e
push esi
call fcn.0056dc69
pop ecx
test eax, eax
jne 0x425137
push edi
push esi
push 0x2800
lea eax, [ebp - 0x2804]
push 1
push eax
call fcn.00568aca
mov edi, eax
add esp, 0x10
test edi, edi
jle 0x42512b
mov ebx, edi
mov ecx, dword [ebp - 0x280c]
lea edx, [ebp - 0x2804]
mov eax, edi
sub eax, ebx
add eax, edx
push dword [ecx + 0x2800]
push ebx
push eax
push dword [ecx + 0x2804]
call dword [ecx + 0x2978]
add esp, 0x10
test eax, eax
js 0x42514e
sub ebx, eax
jne 0x4250f4
mov ebx, dword [ebp - 0x2808]
push esi
call fcn.0056dc69
pop ecx
test eax, eax
je 0x4250d5
pop edi
push esi
call fcn.0056820e
pop ecx
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.005462f1
leave
ret
push 0
mov ebx, eax
push 2
push esi
mov dword [ebp - 0x2808], ebx
call fcn.00568f63
add esp, 0xc
jmp 0x42512b
Function at 0x4347c2
Capabilities:
Access firewall policy via inetfwpolicy2

Disassembly:
push 0xbc
mov eax, 0x58fff7
call fcn.0054636d
mov esi, ecx
push esi
push 0x5a3db0
push 1
xor ebx, ebx
push ebx
push 0x5a3da0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
test edi, edi
js 0x4347f3
cmp dword [esi], ebx
jne 0x434847
call fcn.0040c461
push 2
push eax
lea ecx, [ebp - 0xc8]
call fcn.0040bd69
push edi
lea eax, [ebp - 0xc8]
mov dword [ebp - 4], ebx
push str.Failed_to_connect_Windows_Firewall_policy_due_to
push eax
call fcn.00401609
pop ecx
pop ecx
mov ecx, eax
call fcn.004340c0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc8]
call fcn.0040bf50
push 0xb
push str.init_policy
lea ecx, [esi + 0xc]
mov dword [esi + 0x24], edi
call fcn.004068ce
cmp dword [esi], ebx
setne al
call fcn.00546317
ret

Function at 0x43f305
Capabilities:
Delete registry key

Disassembly:
push 0x34
mov eax, 0x5977a9
call fcn.0054636d
mov esi, ecx
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp dword [esi], ebx
jne 0x43f323
xor al, al
jmp 0x43f3af
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0041efad
pop ecx
pop ecx
cmp dword [ebp - 0x18], 0
mov dword [ebp - 4], ebx
jne 0x43f384
cmp dword [esi + 0x14], ebx
je 0x43f3a5
lea eax, [esi + 4]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0041efad
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.00434089
lea ecx, [ebp - 0x40]
call fcn.00406687
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push dword [esi + 0x1c]
call fcn.0043ee9c
pop ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
mov ecx, esi
mov edi, eax
call fcn.0043edf8
jmp 0x43f39a
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
mov edi, eax
test edi, edi
je 0x43f3a3
cmp edi, 2
jne 0x43f3a5
mov bl, 1
lea ecx, [ebp - 0x28]
call fcn.00406687
mov al, bl
call fcn.00546317
ret 4
Function at 0x43f64a
Capabilities:
Encrypt data using dpapi
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1030
call fcn.00546770
mov eax, dword [0x638034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x1020], esi
mov ebx, dword [ecx]
push edi
mov edi, dword [ebp + 0xc]
test ebx, ebx
je 0x43f751
push 0x1000
lea eax, [ebp - 0x101c]
push 0
push eax
call fcn.0055f7f0
xor ecx, ecx
mov dword [ebp - 0x1028], 0x1000
add esp, 0xc
mov dword [ebp - 0x1020], ecx
lea eax, [ebp - 0x101c]
mov dword [ebp - 0x1024], eax
cmp dword [edi + 0x10], ecx
jne 0x43f6b7
mov edi, ecx
jmp 0x43f6bf
cmp dword [edi + 0x14], 8
jb 0x43f6bf
mov edi, dword [edi]
lea eax, [ebp - 0x1028]
push eax
lea eax, [ebp - 0x101c]
push eax
lea eax, [ebp - 0x1020]
push eax
push ecx
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x43f751
cmp dword [ebp - 0x1020], 3
jne 0x43f751
lea eax, [ebp - 0x1030]
push eax
push 5
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x1028]
push eax
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
cmp eax, 1
jne 0x43f751
push dword [ebp - 0x1030]
and dword [ebp - 0xc], 0
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x102c]
mov dword [ebp - 8], 0xf
mov byte [ebp - 0x1c], 0
call fcn.004068ce
push dword [ebp - 0x102c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
call fcn.004037a9
lea ecx, [ebp - 0x1c]
call fcn.00406661
jmp 0x43f75f
and dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005462f1
leave
ret 8
Function at 0x43faa8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x638034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x20], esi
push edi
mov dword [ebp - 0x24], ecx
xor ecx, ecx
mov dword [esi + 0x10], ecx
lea edi, [esi + 0x1c]
mov dword [esi + 0x14], 0xf
mov byte [esi], cl
mov dword [esi + 0x18], ecx
push ebx
push eax
mov dword [edi], ecx
mov dword [edi + 4], ecx
mov dword [edi + 8], ecx
call fcn.0041ef1a
pop ecx
pop ecx
push eax
mov ecx, esi
call fcn.0040442e
lea ecx, [ebp - 0x1c]
call fcn.00406661
mov edx, dword [ebp - 0x24]
cmp dword [edx], 0
je 0x43fb66
and dword [ebp - 0x20], 0
mov ecx, ebx
cmp dword [ebx + 0x14], 8
jb 0x43fb15
mov ecx, dword [ebx]
lea eax, [ebp - 0x20]
push eax
push 0
lea eax, [esi + 0x18]
push eax
push 0
push ecx
push dword [edx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 0xea
je 0x43fb37
cmp dword [ebp - 0x20], 0
je 0x43fb66
push edi
push dword [ebp - 0x20]
mov ecx, edi
call fcn.00412a43
cmp dword [ebx + 0x14], 8
jb 0x43fb4a
mov ebx, dword [ebx]
lea eax, [ebp - 0x20]
push eax
push dword [edi]
lea eax, [esi + 0x18]
push eax
mov eax, dword [ebp - 0x24]
push 0
push ebx
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x43fb7f
xor ecx, ecx
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], 0xf
mov byte [esi], cl
mov dword [esi + 0x18], ecx
mov dword [edi + 8], ecx
mov dword [edi + 4], ecx
mov dword [edi], ecx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005462f1
leave
ret 8

Function at 0x44005d
Capabilities:
Delete registry value

Disassembly:
push 0x1c
mov eax, 0x592b5a
call fcn.0054636d
mov esi, ecx
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp dword [esi], ebx
jne 0x440078
xor al, al
jmp 0x4400d7
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0041efad
pop ecx
pop ecx
test byte [esi + 0x20], 2
mov dword [ebp - 4], ebx
jne 0x4400ae
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.00440976
test al, al
je 0x4400ae
mov eax, dword [esi + 0x20]
mov ecx, esi
or eax, 2
push eax
call fcn.0044016a
test al, al
je 0x4400cd
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x4400cb
cmp eax, 2
jne 0x4400cd
mov bl, 1
lea ecx, [ebp - 0x28]
call fcn.00406687
mov al, bl
call fcn.00546317
ret 4
Function at 0x440333
Capabilities:
Set registry value

Disassembly:
push 0x2c
mov eax, 0x597940
call fcn.0054636d
mov esi, ecx
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp dword [esi], ebx
jne 0x440351
xor al, al
jmp 0x4403d1
test byte [esi + 0x20], 2
jne 0x4403b1
push edi
lea eax, [ebp - 0x38]
push eax
call fcn.0043faa8
cmp dword [ebp - 0x20], 4
mov dword [ebp - 4], ebx
jne 0x44037b
lea ecx, [ebp - 0x38]
call fcn.00440777
cmp eax, dword [ebp + 0xc]
jne 0x44037b
mov bl, 1
jmp 0x44038d
mov eax, dword [esi + 0x20]
mov ecx, esi
or eax, 2
push eax
call fcn.0044016a
test al, al
jne 0x4403a1
lea ecx, [ebp - 0x1c]
call fcn.0040660c
lea ecx, [ebp - 0x38]
call fcn.00406661
mov al, bl
jmp 0x4403d1
lea ecx, [ebp - 0x1c]
call fcn.0040660c
lea ecx, [ebp - 0x38]
call fcn.00406661
cmp dword [edi + 0x14], 8
jb 0x4403b9
mov edi, dword [edi]
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push ebx
push edi
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb al, al
inc al
call fcn.00546317
ret 8

Function at 0x4404c6
Capabilities:
Set registry value

Disassembly:
push 0x4c
mov eax, 0x59796d
call fcn.0054636d
mov ebx, ecx
mov dword [ebp - 0x58], ebx
cmp dword [ebx], 0
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
jne 0x4404e9
xor al, al
jmp 0x4405b3
mov eax, dword [edi + 0x10]
test eax, eax
jne 0x4404fc
cmp byte [ebp + 0x10], al
jne 0x4404fc
mov al, 1
jmp 0x4405b3
xor ecx, ecx
inc ecx
test byte [ebx + 0x20], 2
mov dword [ebp - 0x54], ecx
jne 0x440583
push esi
lea eax, [ebp - 0x38]
mov ecx, ebx
push eax
call fcn.0043faa8
and dword [ebp - 4], 0
cmp dword [ebp - 0x20], 1
jne 0x440543
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x38]
call fcn.0044089b
push edi
mov ecx, eax
call fcn.0044099d
lea ecx, [ebp - 0x50]
mov bl, al
call fcn.00406687
test bl, bl
jne 0x440558
mov ebx, dword [ebp - 0x58]
mov eax, dword [ebx + 0x20]
mov ecx, ebx
or eax, 2
push eax
call fcn.0044016a
test al, al
jne 0x44056d
mov byte [ebp - 0x54], al
lea ecx, [ebp - 0x1c]
call fcn.0040660c
lea ecx, [ebp - 0x38]
call fcn.00406661
mov al, byte [ebp - 0x54]
jmp 0x4405b3
lea ecx, [ebp - 0x1c]
call fcn.0040660c
lea ecx, [ebp - 0x38]
call fcn.00406661
mov eax, dword [edi + 0x10]
xor ecx, ecx
inc ecx
cmp dword [esi + 0x10], 0
jne 0x44058d
xor esi, esi
jmp 0x440595
cmp dword [esi + 0x14], 8
jb 0x440595
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x44059d
mov edi, dword [edi]
add eax, eax
push eax
push edi
push ecx
push 0
push esi
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb al, al
inc al
call fcn.00546317
ret 0xc

Function at 0x440976
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x440984
mov eax, dword [eax]
xor edx, edx
push edx
push edx
push edx
push edx
push eax
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
setne al
pop ebp
ret 4