joyce8/EMBER2024-capa huggingface dataset:
Function at 0x54e6d0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x90
mov dword [esp + 0xc], ecx
mov eax, dword [0x7aa024]
xor eax, ebp
mov dword [esp + 0x88], eax
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x40]
movdqa xmmword [edi + 0x30], xmm0
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
lea esi, [esp + 0x30]
push 0xb5
push str....._base_files_file_win.cc
push str.SetLength
push esi
call fcn.005e42b0
add esp, 0x10
xor ebx, ebx
mov ecx, edi
push ebx
push esi
call fcn.005eec20
mov dword [esi + 4], 0xffffffff
mov dword [esi], ebx
call fcn.006003e0
test al, al
jne 0x54e832
xor eax, eax
dec eax
lea ecx, [esp + 0x28]
mov dword [ecx + 4], eax
mov dword [ecx], eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
mov esi, dword [esp + 0xc]
mov eax, dword [esi]
sub esp, 0x14
movsd xmm0, qword [esp + 0x34]
movsd qword [esp + 4], xmm0
mov dword [esp + 0xc], ecx
mov dword [esp], eax
mov dword [esp + 0x10], 1
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x54e806
mov eax, dword [ebp + 8]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x1c], eax
mov eax, dword [esi]
sub esp, 0x14
movsd xmm0, qword [esp + 0x2c]
movsd qword [esp + 4], xmm0
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x54e806
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
xor ebx, ebx
test eax, eax
je 0x54e806
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
mov eax, dword [esi]
sub esp, 0x14
movsd xmm0, qword [esp + 0x24]
movsd qword [esp + 4], xmm0
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
setne bl
lea ecx, [esp + 0x30]
call fcn.00600480
lea ecx, [esp + 0x40]
call fcn.005eec80
mov ecx, dword [esp + 0x88]
xor ecx, ebp
call fcn.0064d372
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
lea ecx, [esp + 0x30]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esp + 0x14]
push str.File::SetLength
call fcn.006c71f0
jmp 0x54e749
Function at 0x54ebb0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov dword [esp + 8], ecx
mov ebx, dword [ebp + 0xc]
mov eax, dword [0x7aa024]
xor eax, ebp
mov dword [esp + 0x68], eax
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x20]
movdqa xmmword [edi + 0x30], xmm0
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
lea esi, [esp + 0x10]
push 0x16f
push str....._base_files_file_win.cc
push str.DoInitialize
push esi
call fcn.005e42b0
add esp, 0x10
mov ecx, edi
push 0
push esi
call fcn.005eec20
mov eax, ebx
and eax, 1
neg eax
and eax, 3
xor ecx, ecx
inc ecx
test bl, 2
cmove ecx, eax
test bl, 4
mov edx, 4
cmovne ecx, edx
test bl, 8
mov esi, 2
cmove esi, ecx
test bl, 0x10
mov eax, 5
cmove eax, esi
test eax, eax
je 0x54edb7
mov ecx, ebx
and ecx, 0x40
shl ecx, 0x18
test bl, 0x80
cmove edx, ecx
mov ecx, ebx
rol ecx, 0x1a
mov esi, ebx
shl esi, 0xb
and esi, 0x20000000
mov edi, ebx
shr edi, 4
and edi, 0x10000
and ecx, 0x80000100
or ecx, esi
or ecx, edi
or ecx, edx
mov esi, ebx
shr esi, 8
and esi, 3
mov edx, ebx
shr edx, 0xd
and edx, 4
or edx, esi
and ebx, 0x400
mov dword [esp + 0xc], ebx
shl ebx, 0x14
mov esi, dword [ebp + 0xc]
shr esi, 3
and esi, 0x100
or esi, ebx
mov ebx, dword [ebp + 0xc]
mov edi, ebx
shr edi, 0xb
and edi, 2
or edi, esi
mov esi, ebx
shl esi, 0xd
and esi, 0x4000000
or esi, edi
mov edi, ebx
shl edi, 8
and edi, 0xa000000
or edi, esi
mov esi, dword [ebp + 8]
xor edx, 3
cmp byte [esi + 0xb], 0
jns 0x54ece2
mov esi, dword [esi]
xor ebx, ebx
push ebx
push edi
push eax
push ebx
push edx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov esi, dword [esp + 8]
cmp dword [esi], eax
je 0x54ed6f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi]
inc ecx
cmp ecx, 2
jae 0x54ed99
mov ecx, edi
inc ecx
cmp ecx, 2
mov ebx, dword [ebp + 0xc]
jb 0x54ed23
mov dword [esi], edi
mov edi, eax
call fcn.005e42e0
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [esi]
inc edi
cmp edi, 2
jb 0x54ed74
mov eax, dword [esp + 0xc]
shr eax, 0xa
mov dword [esi + 0x14], 0
mov byte [esi + 0x19], al
test bl, 4
jne 0x54ed88
test bl, 0xa
je 0x54ed51
mov byte [esi + 0x18], 1
lea ecx, [esp + 0x20]
call fcn.005eec80
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.0064d372
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov ebx, dword [ebp + 0xc]
jmp 0x54ed2c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0054ea80
add esp, 4
mov dword [esi + 0x14], eax
jmp 0x54ed51
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne byte [esi + 0x18]
jmp 0x54ed51
mov ebx, eax
call fcn.005e42e0
push dword [esi]
call fcn.005f2830
mov eax, ebx
add esp, 4
mov dword [esi], 0
jmp 0x54ed0d
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 8]
mov dword [eax + 0x14], 0xffffffff
jmp 0x54ed51
Function at 0x54ee90
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov ebx, dword [ebp + 8]
cmp dword [ecx], ebx
je 0x54eec5
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi]
inc eax
cmp eax, 2
jae 0x54eecc
lea eax, [ebx + 1]
cmp eax, 2
jb 0x54eebe
mov dword [esi], ebx
call fcn.005e42e0
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
pop edi
pop ebx
pop ebp
ret 4
call fcn.005e42e0
push dword [esi]
call fcn.005f2830
add esp, 4
mov dword [esi], 0
jmp 0x54eeaf

Function at 0x54ef10
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov esi, ecx
mov eax, dword [0x7aa024]
xor eax, ebp
mov dword [esp + 0x58], eax
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x10]
movdqa xmmword [edi + 0x30], xmm0
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
mov ebx, esp
push 0x1b
push str....._base_filesmemory_mapped_file_win.cc
push str.MapImageToMemory
push ebx
call fcn.005e42b0
add esp, 0x10
mov ecx, edi
push 0
push ebx
call fcn.005eec20
mov ecx, esi
call fcn.005f1720
test al, al
je 0x54f04c
mov ecx, esi
call fcn.0054e4f0
sub esp, 0x18
movdqa xmm0, xmmword [0x75ae80]
movdqu xmmword [esp + 4], xmm0
mov dword [esp], eax
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
cmp dword [esi + 0x24], eax
je 0x54efcf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [esi + 0x24]
inc eax
cmp eax, 2
jae 0x54f030
mov eax, edi
inc eax
cmp eax, 2
jb 0x54efc5
mov dword [esi + 0x24], edi
call fcn.005e42e0
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [esi + 0x24]
lea eax, [edi + 1]
cmp eax, 2
jb 0x54f04c
sub esp, 0x14
movdqa xmm0, xmmword [0x75ae90]
movdqu xmmword [esp + 4], xmm0
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0x1c], eax
test eax, eax
je 0x54f04c
mov ecx, esp
mov dword [ecx], fcn.0068cd80
mov dword [ecx + 4], eax
call fcn.005765c0
mov eax, dword [eax + 0x50]
mov dword [esi + 0x20], eax
mov bl, 1
lea ecx, [esp + 0x10]
call fcn.005eec80
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.0064d372
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
call fcn.005e42e0
push dword [esi + 0x24]
call fcn.005f2830
add esp, 4
mov dword [esi + 0x24], 0
jmp 0x54efb5
xor ebx, ebx
jmp 0x54f010
Function at 0x54f050
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov esi, ecx
mov eax, dword [0x7aa024]
xor eax, ebp
mov dword [esp + 0x68], eax
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x20]
movdqa xmmword [edi + 0x30], xmm0
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
lea ebx, [esp + 0x10]
push 0x3a
push str....._base_filesmemory_mapped_file_win.cc
push str.MapFileRegionToMemory
push ebx
call fcn.005e42b0
add esp, 0x10
mov ecx, edi
push 0
push ebx
call fcn.005eec20
mov ecx, esi
call fcn.005f1720
xor ebx, ebx
test al, al
je 0x54f198
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
test eax, eax
jne 0x54f1b8
mov edi, 2
mov ecx, esi
call fcn.0054e4f0
xor ecx, ecx
push ecx
push ebx
push ecx
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, eax
cmp dword [esi + 0x24], eax
je 0x54f118
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi + 0x24]
inc ecx
cmp ecx, 2
jae 0x54f1cb
mov ecx, ebx
inc ecx
cmp ecx, 2
jb 0x54f10e
mov dword [esi + 0x24], ebx
mov ebx, eax
call fcn.005e42e0
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, dword [esi + 0x24]
inc ebx
cmp ebx, 2
jb 0x54f266
mov dword [esp + 4], edi
mov dword [esp + 0xc], 0
mov edi, dword [ebp + 8]
mov ecx, edi
push 0x75a358
call fcn.00540580
test al, al
je 0x54f201
mov ecx, esi
call fcn.0054e5f0
mov ecx, eax
add ecx, 0xffffffff
adc edx, 0xffffffff
xor ebx, ebx
mov edi, 0xfffffffe
cmp edi, ecx
mov ecx, 0
sbb ecx, edx
jb 0x54f198
mov dword [esi + 0x20], eax
xor ecx, ecx
xor eax, eax
mov edx, dword [esp + 4]
and edx, 2
add edx, 2
push eax
push ebx
push ecx
push edx
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0x1c], eax
test eax, eax
je 0x54f266
add eax, dword [esp + 0xc]
mov dword [esi + 0x1c], eax
mov bl, 1
lea ecx, [esp + 0x20]
call fcn.005eec80
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.0064d372
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
cmp eax, 3
jne 0x54f1ef
sub esp, 4
mov ecx, esi
call fcn.0054ef10
mov ebx, eax
jmp 0x54f198
mov dword [esp + 4], eax
call fcn.005e42e0
push dword [esi + 0x24]
call fcn.005f2830
mov eax, dword [esp + 8]
add esp, 4
mov dword [esi + 0x24], 0
jmp 0x54f0fa
cmp eax, 2
jne 0x54f26d
mov ebx, dword [ecx + 8]
mov edi, 4
jmp 0x54f0cb
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebx
lea eax, [esp + 8]
mov dword [eax], ebx
lea ecx, [esp + 0xc]
push ecx
push eax
lea eax, [esp + 0x18]
push eax
push dword [edi + 8]
push dword [edi + 4]
push dword [edi]
call fcn.005406d0
add esp, 0x18
mov edi, dword [edi + 8]
lea eax, [esp + 0xc]
mov eax, dword [eax]
mov ecx, eax
sar ecx, 0x1f
add eax, edi
adc ecx, ebx
mov ebx, ecx
and ebx, 1
neg ebx
xor ecx, ebx
setne dl
mov ecx, dword [esp + 0x14]
test ecx, ecx
js 0x54f266
test dl, dl
jne 0x54f266
test ebx, ebx
js 0x54f266
mov ebx, dword [esp + 0x10]
mov dword [esi + 0x20], edi
jmp 0x54f16d
xor ebx, ebx
jmp 0x54f198
cmp eax, 1
je 0x54f1f7
xor edi, edi
jmp 0x54f0cb
Function at 0x54fb10
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov esi, ecx
mov eax, dword [ebp + 8]
mov edi, dword [eax]
mov dword [eax], 0
lea ebx, [edi + 1]
cmp ebx, 2
jb 0x54fb31
call fcn.005e42e0
mov dword [esi], 0
test edi, edi
je 0x54fb60
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi]
inc ecx
cmp ecx, 2
jae 0x54fb81
cmp ebx, 2
jb 0x54fb59
mov dword [esi], edi
mov edi, eax
call fcn.005e42e0
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [ebp + 8]
mov al, byte [edi + 4]
mov byte [esi + 4], al
mov byte [edi + 4], 0
mov eax, dword [edi]
inc eax
cmp eax, 2
jae 0x54fb9e
mov eax, esi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov dword [ebp - 0x10], eax
call fcn.005e42e0
push dword [esi]
call fcn.005f2830
mov eax, dword [ebp - 0x10]
add esp, 4
mov dword [esi], 0
jmp 0x54fb49
call fcn.005e42e0
push dword [edi]
call fcn.005f2830
add esp, 4
mov dword [edi], 0
jmp 0x54fb75
Function at 0x550a50
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov edi, edx
mov ebx, ecx
mov eax, dword [0x7aa024]
xor eax, ebp
mov dword [ebp - 0x10], eax
test ecx, ecx
jne 0x550a87
mov eax, dword [0x7acc24]
cmp eax, 0xffffffff
je 0x550b14
mov ebx, 0x100000
test eax, eax
jne 0x550a87
mov ebx, 0x80000
push 0xc
call fcn.0064cd3e
add esp, 4
mov esi, eax
mov dword [eax], 0
mov eax, edi
shr eax, 0xe
mov ecx, edi
shr ecx, 0x13
mov ecx, dword [ecx*4 + 0x7b1224]
bt ecx, eax
jae 0x550aba
push edi
call fcn.005e5030
add esp, 4
jmp 0x550ac6
mov eax, edi
shr eax, 0x15
mov byte [eax + 0x7b9224], 1
mov dword [esi], edi
mov edi, dword [ebp + 8]
test edi, edi
setne byte [esi + 4]
mov eax, dword [ebp + 0xc]
mov dword [esi + 8], eax
xor eax, eax
push eax
push 0x10000
push esi
push 0x550df0
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x550b38
test edi, edi
je 0x550b96
mov dword [edi], eax
test eax, eax
setne bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0064d372
mov eax, ebx
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0x7acc24
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x550c05
mov eax, dword [0x7acc24]
jmp 0x550a79
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
je 0x550b54
mov edi, eax
cmp eax, 0x5af
je 0x550b54
cmp edi, 0xe
jne 0x550ba6
push ebx
call fcn.00681a00
add esp, 4
test esi, esi
mov eax, dword [ebp - 0x20]
je 0x550afb
mov eax, dword [esi]
mov ecx, eax
shr ecx, 0xe
mov edx, eax
shr edx, 0x13
mov edx, dword [edx*4 + 0x7b1224]
bt edx, ecx
jae 0x550b85
push eax
call fcn.005e5140
add esp, 4
push esi
call fcn.0064cd6e
add esp, 4
mov eax, dword [ebp - 0x20]
jmp 0x550afb
push eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x550afb
mov eax, dword [0x7bc324]
mov ecx, dword [0x7ae174]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x550c14
lea ebx, [ebp - 0x1c]
push edi
push ebx
call fcn.00546210
add esp, 8
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x550bde
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
push eax
push ebx
push dword [0x7bc320]
call fcn.005e14a0
add esp, 0xc
cmp byte [ebp - 0x11], 0
jns 0x550b5d
push dword [ebp - 0x1c]
call fcn.0064cd6e
jmp 0x550b5a
mov dword [0x7acc24], 0
jmp 0x550a82
push 0x7bc324
call fcn.0064cde7
add esp, 4
cmp dword [0x7bc324], 0xffffffff
jne 0x550bc3
push 0x20
push str.create_thread_last_error
call fcn.0053ecb0
add esp, 8
mov dword [0x7bc320], eax
push 0x7bc324
call fcn.0064ce5d
add esp, 4
jmp 0x550bc3
Function at 0x5512b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov esi, ecx
mov eax, dword [0x7aa024]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov ebx, dword [ecx + 4]
lea eax, [ebx + 1]
cmp eax, 1
ja 0x55131a
sub esp, 0x10
movaps xmm0, xmmword [0x757d60]
movups xmmword [esp], xmm0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ebx, eax
cmp dword [esi + 4], eax
je 0x55131a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi + 4]
inc eax
cmp eax, 2
jae 0x5513a2
mov eax, ebx
inc eax
cmp eax, 2
jb 0x551310
mov dword [esi + 4], ebx
call fcn.005e42e0
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, dword [esi + 4]
lea edi, [ebp + 0xc]
inc ebx
cmp ebx, 2
jb 0x5513de
lea ebx, [ebp + 8]
call fcn.005f29b0
xor ecx, ecx
cmp eax, 5
setge cl
shl ecx, 0x1c
or ecx, 0xf
xor eax, eax
inc eax
push eax
push dword [esi + 4]
push ecx
push eax
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegNotifyChangeKeyValue]
test eax, eax
jne 0x5513be
lea ecx, [esi + 0x34]
push edi
call fcn.005e01b0
lea ebx, [esi + 8]
lea edi, [ebp - 0x20]
push 0x65
push str....._basewin_registry.cc
push str.StartWatching
push edi
call fcn.005e42b0
add esp, 0x10
mov ecx, ebx
push edi
push esi
push dword [esi + 4]
call fcn.005f2500
mov ebx, eax
lea ecx, [ebp + 0xc]
call fcn.005e0250
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0064d372
mov eax, ebx
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret 8
call fcn.005e42e0
push dword [esi + 4]
call fcn.005f2830
add esp, 4
mov dword [esi + 4], 0
jmp 0x551300
mov eax, dword [esi + 4]
inc eax
cmp eax, 2
jb 0x5513de
call fcn.005e42e0
push dword [esi + 4]
call fcn.005f2830
add esp, 4
mov dword [esi + 4], 0
xor ebx, ebx
jmp 0x551384

Function at 0x551570
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, dword [ecx]
xorps xmm0, xmm0
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], eax
mov dword [esp], ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
sub esp, 0x18
test eax, eax
sete al
add esp, 0x18
pop ebp
ret 4
Function at 0x551610
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x30
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
mov eax, dword [0x7aa024]
xor eax, ebp
mov dword [esp + 0x28], eax
push 0
push edi
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
xor esi, esi
test eax, eax
jne 0x551655
mov ecx, dword [esp + 0x28]
xor ecx, ebp
call fcn.0064d372
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
xor esi, esi
lea eax, [esp + 0x24]
mov dword [eax], esi
or edi, 8
push eax
push edi
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x55167a
cmp eax, 2
je 0x551640
mov esi, eax
jmp 0x551640
xor eax, eax
dec eax
lea esi, [esp + 0x18]
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov ecx, esi
push dword [ebp + 0xc]
call fcn.004dbab0
mov al, byte [esi + 0xb]
test al, al
mov ecx, dword [esi + 4]
movzx edx, al
mov dword [esp], edx
cmovs edx, ecx
test edx, edx
je 0x5516d1
test al, al
jns 0x5516b0
mov esi, dword [esp + 0x18]
cmp word [esi + edx*2 - 2], 0x5c
je 0x5516d1
lea esi, [esp + 0x18]
mov ecx, esi
push 0x5c
call fcn.005dfb10
mov al, byte [esi + 0xb]
mov ecx, dword [esi + 4]
movzx edx, al
mov dword [esp], edx
xor edx, edx
lea esi, [esp + 8]
mov dword [esi + 4], edx
mov dword [esi], edx
mov dword [esi + 8], edx
test al, al
mov eax, dword [esp]
cmovs eax, ecx
mov dword [esp], eax
lea esi, [esp + 0x18]
xor ebx, ebx
mov eax, 0x104
mov dword [esp + 4], eax
push eax
lea eax, [esp + 0xc]
push eax
call fcn.00550740
add esp, 8
mov ecx, dword [esp + 0x24]
sub esp, 0x20
xorps xmm0, xmm0
movups xmmword [esp + 0x10], xmm0
lea edx, [esp + 0x24]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp], ecx
mov dword [esp + 4], 0
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x551791
lea edi, [esp + 8]
mov ecx, edi
push ebx
push dword [esp + 8]
call fcn.005dff20
mov ecx, esi
push ebx
push dword [esp + 4]
call fcn.005dff20
movzx eax, byte [esp + 0x13]
test al, al
jns 0x551764
mov eax, dword [esp + 0xc]
mov edi, dword [esp + 8]
mov ecx, esi
push eax
push edi
call fcn.005df8c0
cmp byte [esp + 0x23], 0
mov eax, esi
jns 0x55177a
mov eax, dword [esp + 0x18]
push dword [ebp + 0x10]
push eax
push dword [ebp + 8]
call fcn.00551610
add esp, 0xc
test eax, eax
je 0x5516f0
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
mov esi, eax
cmp byte [esp + 0x13], 0
jns 0x5517c1
push dword [esp + 8]
call fcn.0064cd6e
add esp, 4
cmp byte [esp + 0x23], 0
jns 0x551640
push dword [esp + 0x18]
call fcn.0064cd6e
add esp, 4
jmp 0x551640
Function at 0x551800
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov eax, dword [0x7aa024]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, 4
lea edx, [ebp - 0x14]
mov dword [edx], eax
lea esi, [ebp - 0x18]
mov dword [esi], eax
xor eax, eax
lea edi, [ebp - 0x1c]
mov dword [edi], eax
mov ebx, dword [ebp + 8]
push esi
push edi
push edx
push eax
push ebx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x551873
mov eax, dword [ebp - 0x14]
add eax, 0xfffffffd
mov esi, 0x3f4
cmp eax, 1
ja 0x55185d
cmp dword [ebp - 0x18], 4
jne 0x55185d
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x1c]
mov dword [eax], ecx
xor esi, esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0064d372
mov eax, esi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov esi, eax
jmp 0x55185d

Function at 0x551880
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x100c
call fcn.0064e0b0
mov esi, ecx
mov eax, dword [0x7aa024]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov ebx, 0x800
lea edi, [ebp - 0x810]
push ebx
push 0xff
push edi
call fcn.00650600
add esp, 0xc
lea eax, [ebp - 0x1014]
mov dword [eax], 1
lea ecx, [ebp - 0x1018]
mov dword [ecx], ebx
push ecx
push edi
push eax
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x55190f
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 0x1014]
cmp eax, 1
jne 0x551913
mov ecx, esi
push edi
call fcn.0053b8e0
xor esi, esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0064d372
mov eax, esi
add esp, 0x100c
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov esi, eax
jmp 0x5518f6
cmp eax, 2
jne 0x55195c
lea ebx, [ebp - 0x1010]
push 0x800
push 0xff
push ebx
call fcn.00650600
add esp, 0xc
push 0x400
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x1018], eax
add eax, 0xfffffbff
cmp eax, 0xfffffc00
jb 0x551955
mov ecx, esi
push ebx
jmp 0x5518ef
mov esi, 0xea
jmp 0x5518f6
mov esi, 0x3f4
jmp 0x5518f6

Function at 0x551970
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, ecx
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
push ebx
call fcn.0066b526
add esp, 4
add eax, eax
add eax, 2
push eax
push ebx
push 1
push 0
push edi
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop esi
pop edi
pop ebx
pop ebp
ret 8