joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49cfd0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
mov ebx, ecx
mov dword [esp + 8], edx
push esi
push edi
mov ecx, dword [ebx]
mov dword [esp + 0xc], ecx
mov eax, dword [ecx + 0x20]
and eax, 0x4000
or eax, 0
je 0x49d19e
mov eax, dword [ebp + 8]
cmp byte [eax + 0x2b], 0
jne 0x49d19e
mov esi, dword [ebx + 8]
xor edi, edi
test esi, esi
jne 0x49d02a
cmp dword [ebx + 0x78], edi
jne 0x49d01e
test byte [ecx + 0x50], 8
jne 0x49d01e
mov byte [ebx + 0x17], 1
mov ecx, ebx
call fcn.004606d0
mov esi, eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
mov edx, dword [eax]
add ecx, 0x38
push 0
call fcn.004407e0
add esp, 4
cmp dword [eax + 8], edi
jne 0x49d0cb
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x30]
test ecx, ecx
je 0x49d19e
mov edx, dword [esp + 0xc]
cmp byte [ecx + 0x18], 0
jne 0x49d078
mov eax, dword [edx + 0x20]
and eax, 0x80000
or eax, 0
jne 0x49d078
mov ecx, dword [ecx + 4]
test ecx, ecx
jne 0x49d057
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
dec dword [ebx + 0x38]
mov ecx, dword [esi + 0x6c]
mov edi, dword [ebx + 0x38]
cmp dword [esi + 0x70], ecx
jg 0x49d09c
push 0
push edi
push 1
mov edx, 0x31
mov ecx, esi
call fcn.00460920
add esp, 0xc
jmp 0x49d0cb
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x31
mov dword [eax + ecx*4 + 4], 1
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [esp + 0x10]
push 0
push 0
push 0
push ecx
mov ecx, dword [esp + 0x1c]
push 0
mov byte [ebx + 0x9b], 1
call fcn.0047a140
add esp, 8
mov edx, eax
mov ecx, ebx
call fcn.00495ac0
mov eax, dword [esp + 0x18]
add esp, 0xc
mov byte [ebx + 0x9b], 0
mov eax, dword [eax + 0x20]
and eax, 0x80000
or eax, 0
jne 0x49d172
mov ecx, dword [esi + 0x6c]
lea edx, [ecx + 2]
cmp dword [esi + 0x70], ecx
jg 0x49d12c
push eax
push edx
push eax
lea edx, [eax + 0x31]
mov ecx, esi
call fcn.00460920
add esp, 0xc
jmp 0x49d15b
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x31
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
push 4
push 0xffffffffffffffff
push 0
push 2
mov edx, 0x313
mov ecx, ebx
call fcn.004940c0
add esp, 0x10
test edi, edi
je 0x49d19e
mov ecx, dword [esi + 0xc]
not edi
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x49d195
push edi
mov edx, esi
call fcn.00460fb0
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ecx + 0x40]
mov eax, dword [esi + 0x6c]
mov dword [ecx + edi*4], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x521f70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], edx
mov ecx, dword [ebp + 0x10]
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [ecx], eax
test edi, edi
je 0x5220d3
mov ebx, dword [ebp + 0xc]
lea esi, [eax + 0xd]
lea edx, [ebx - 1]
test edx, edx
js 0x521fc7
mov ebx, dword [ebp + 8]
nop word [eax + eax]
movsx ecx, byte [edx + ebx]
lea eax, [esi*8]
xor ecx, eax
xor esi, ecx
sub edx, 1
jns 0x521fb0
mov ebx, dword [ebp + 0xc]
mov ecx, dword [esp + 0x10]
lea eax, [esi*8]
xor eax, esi
xor eax, ecx
and eax, 0x1ff
lea eax, [edi + eax*4]
mov edi, dword [eax]
mov dword [esp + 0x18], eax
test edi, edi
je 0x52204e
cmp dword [edi + 8], ecx
jne 0x522047
cmp dword [edi + 4], ebx
jne 0x522047
mov edx, dword [edi]
mov ecx, ebx
mov esi, dword [ebp + 8]
sub ecx, 4
jb 0x522011
nop
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x522016
add edx, 4
add esi, 4
sub ecx, 4
jae 0x522000
cmp ecx, 0xfffffffc
je 0x52205e
mov al, byte [edx]
cmp al, byte [esi]
jne 0x522043
cmp ecx, 0xfffffffd
je 0x52205e
mov al, byte [edx + 1]
cmp al, byte [esi + 1]
jne 0x522043
cmp ecx, 0xfffffffe
je 0x52205e
mov al, byte [edx + 2]
cmp al, byte [esi + 2]
jne 0x522043
cmp ecx, 0xffffffff
je 0x52205e
mov al, byte [edx + 3]
cmp al, byte [esi + 3]
je 0x52205e
mov ecx, dword [esp + 0x10]
mov edi, dword [edi + 0xc]
test edi, edi
jne 0x521fe8
lea edi, [ebx + 0x10]
xor esi, esi
call fcn.004e4f50
test eax, eax
je 0x522070
jmp 0x522080
mov eax, dword [ebp + 0x10]
mov dword [eax], 1
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push edi
call fcn.0043b050
mov esi, eax
add esp, 8
test esi, esi
jne 0x52209c
test edi, edi
je 0x52208b
mov eax, 7
jmp 0x52208d
xor eax, eax
mov dword [esp + 0x14], eax
test esi, esi
jne 0x5220a8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push 0
push esi
call fcn.00570cd0
add esp, 0xc
mov edx, dword [esp + 0x10]
lea eax, [esi + 0x10]
push ebx
push dword [ebp + 8]
mov dword [esi], eax
push eax
mov dword [esi + 4], ebx
mov dword [esi + 8], edx
call fcn.00570750
mov ecx, dword [esp + 0x24]
add esp, 0xc
mov eax, dword [ecx]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x14]
mov dword [ecx], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x541230
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], edx
cmp ecx, 0x80
jge 0x541251
lea edx, [ecx - 0x41]
cmp edx, 0x19
lea eax, [ecx + 0x20]
cmova eax, ecx
mov esp, ebp
pop ebp
ret
cmp ecx, 0x10000
jge 0x5412ff
push ebx
xor eax, eax
mov dword [ebp - 8], 0xffffffff
push esi
mov ebx, 0xa2
mov dword [ebp - 4], eax
push edi
add eax, ebx
mov esi, ecx
cdq
sub eax, edx
mov edi, eax
sar edi, 1
movzx edx, word [edi*4 + 0x5b0eb0]
lea eax, [edi + 1]
sub esi, edx
mov edx, edi
cmovs edx, dword [ebp - 8]
test esi, esi
mov dword [ebp - 8], edx
cmovs eax, dword [ebp - 4]
mov dword [ebp - 4], eax
lea eax, [edi - 1]
cmovs ebx, eax
mov eax, dword [ebp - 4]
cmp ebx, eax
jge 0x541271
mov ebx, dword [ebp - 8]
movzx edx, word [edx*4 + 0x5b0eb0]
pop edi
pop esi
movzx eax, byte [ebx*4 + 0x5b0eb3]
add eax, edx
cmp ecx, eax
jge 0x5412e6
movzx eax, byte [ebx*4 + 0x5b0eb2]
xor edx, ecx
and edx, eax
test edx, 1
jne 0x5412e6
shr eax, 1
movzx eax, word [eax*2 + 0x5b2450]
add eax, ecx
movzx ecx, ax
mov eax, dword [ebp - 0xc]
pop ebx
test eax, eax
je 0x54130d
xor edx, edx
cmp eax, 2
sete dl
call fcn.0050fbc0
mov esp, ebp
pop ebp
ret
lea eax, [ecx - 0x10400]
cmp eax, 0x27
lea eax, [ecx + 0x28]
jbe 0x54130f
mov eax, ecx
mov esp, ebp
pop ebp
ret

Function at 0x543d00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59bc7d
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5da084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x18], ebx
lea ecx, [ebp - 0x10]
call fcn.00543790
push 0
push 0x80
push 4
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x10]
push esi
push 3
push 0x40000000
push 0x5df510
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x24], eax
cmp eax, 0xffffffff
jne 0x543d6a
xor edi, edi
jmp 0x543df2
push 2
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test ebx, ebx
jne 0x543d88
xor edi, edi
jmp 0x543d9d
cmp word [ebx], 0
mov edi, ebx
je 0x543d99
add edi, 2
cmp word [edi], 0
jne 0x543d90
sub edi, ebx
sar edi, 1
lea ebx, [edi*4 + 1]
push ebx
call fcn.00578163
push 0
push 0
push ebx
push eax
push ecx
mov ecx, dword [ebp - 0x18]
mov edx, edi
mov dword [ebp - 0x20], eax
call fcn.00547260
mov edi, dword [ebp - 0x20]
lea ecx, [ebp - 0x1c]
mov ebx, dword [ebp - 0x24]
add esp, 0x18
mov dword [ebp - 0x1c], 0
push 0
push ecx
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call fcn.00577de8
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 1
test esi, esi
je 0x543e16
mov ebx, dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x543e13
push eax
call ebx
mov dword [esi + 4], 0
push esi
call ebx
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x548a10
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59c115
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x5da084]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [0x5df50d], 0
je 0x548a54
push dword [esi]
push 0x5cb468
call fcn.005438c0
add esp, 8
mov ecx, dword [esi]
sub ecx, 0x10
call fcn.005447c0
add eax, 0x10
mov dword [ebp - 0x44], eax
sub esp, 8
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.0054aa10
test eax, eax
je 0x548a85
sub esp, 0xc
call fcn.00543e30
add esp, 0xc
lea ecx, [ebp - 0x48]
call fcn.00414d80
xorps xmm0, xmm0
mov dword [ebp - 0x3c], 0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xffffffff
mov dword [ebp - 0x18], 4
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x28], 0x656e6f4e
lea ecx, [ebp - 0x4c]
call fcn.00414d80
mov eax, ecx
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x3c]
push eax
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x44]
call fcn.00548be0
mov esi, dword [ebp - 0x48]
add esp, 8
test al, al
jne 0x548afa
mov byte [ebp - 0x3d], 0
jmp 0x548b21
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp byte [0x5df50d], 0
mov edi, eax
je 0x548b1a
push edi
push str.GsPathExists:_dwAttr_x_n
call fcn.005438c0
add esp, 8
cmp edi, 0xffffffff
setne byte [ebp - 0x3d]
mov ecx, dword [ebp - 0x4c]
or edi, 0xffffffff
add ecx, 0xfffffff0
mov eax, edi
lock xadd dword [ecx + 8], eax
dec eax
test eax, eax
jg 0x548b45
cmp dword [ecx + 4], 0
jle 0x548b45
push ecx
call fcn.00577de8
add esp, 4
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x548b75
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x548b6b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x548bd0
push ecx
push edx
call fcn.0056ebaf
add esp, 8
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 8], eax
dec eax
test eax, eax
jg 0x548b93
cmp dword [esi + 4], 0
jle 0x548b93
push esi
call fcn.00577de8
add esp, 4
mov eax, dword [ebp - 0x44]
add eax, 0xfffffff0
lock xadd dword [eax + 8], edi
dec edi
test edi, edi
jg 0x548bb2
cmp dword [eax + 4], 0
jle 0x548bb2
push eax
call fcn.00577de8
add esp, 4
mov al, byte [ebp - 0x3d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056eb71
mov esp, ebp
pop ebp
ret
call fcn.00578112
int3
Function at 0x549740
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59c3a8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x5da084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, edx
mov dword [ebp - 0x18], eax
mov edi, ecx
mov dword [ebp - 0x10], 0
cmp byte [0x5df50d], 0
je 0x549793
push dword [ebp + 8]
push dword [edi]
push str.GsReadLocalFile:_hFile_x_buf_len_d_n
call fcn.005438c0
mov eax, dword [ebp - 0x18]
add esp, 0xc
mov esi, dword [ebp + 0xc]
push 0
push esi
push dword [ebp + 8]
mov dword [esi], 0
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x549923
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp + 0x10]
mov edx, eax
lea ecx, [ebp - 0x1c]
call fcn.00544000
add esp, 4
mov esi, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00414d80
mov eax, dword [edi + 4]
mov ecx, str.reading_file
mov dword [ebp - 0x10], 1
push dword [eax - 0x10]
push eax
call fcn.00416660
mov edx, ecx
lea ecx, [ebp - 0x18]
push eax
call fcn.00544610
add esp, 0xc
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00414d80
mov edx, dword [ebp - 0x18]
mov ecx, 0x5cb81c
mov dword [ebp - 0x10], 3
call fcn.00416660
push eax
push ecx
push dword [edx - 0x10]
lea ecx, [ebp - 0x14]
call fcn.00544610
add esp, 0xc
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 3
call fcn.00414d80
mov eax, dword [esi]
lea ecx, [ebp + 0xc]
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], 7
push dword [eax - 0x10]
push eax
push dword [edx - 0x10]
call fcn.00544610
mov edi, dword [ebp + 0x14]
lea eax, [ebp + 0xc]
add esp, 0xc
mov ecx, edi
push eax
call fcn.00544730
mov ecx, dword [ebp + 0xc]
or esi, 0xffffffff
add ecx, 0xfffffff0
mov eax, esi
lock xadd dword [ecx + 8], eax
dec eax
test eax, eax
jg 0x549890
cmp dword [ecx + 4], 0
jle 0x549890
push ecx
call fcn.00577de8
add esp, 4
mov ecx, dword [ebp - 0x14]
mov eax, esi
add ecx, 0xfffffff0
lock xadd dword [ecx + 8], eax
dec eax
test eax, eax
jg 0x5498b1
cmp dword [ecx + 4], 0
jle 0x5498b1
push ecx
call fcn.00577de8
add esp, 4
mov ecx, dword [ebp - 0x18]
mov eax, esi
add ecx, 0xfffffff0
lock xadd dword [ecx + 8], eax
dec eax
test eax, eax
jg 0x5498d2
cmp dword [ecx + 4], 0
jle 0x5498d2
push ecx
call fcn.00577de8
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lock xadd dword [eax + 8], esi
dec esi
test esi, esi
jg 0x5498f8
cmp dword [eax + 4], 0
jle 0x5498f8
push eax
call fcn.00577de8
add esp, 4
cmp byte [0x5df50d], 0
je 0x549910
push dword [edi]
push str.GsReadLocalFile:_err_s_n
call fcn.005438c0
add esp, 8
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp byte [0x5df50d], 0
je 0x54993b
push dword [esi]
push str.GsReadLocalFile:_dwRead_d_n
call fcn.005438c0
add esp, 8
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x54a270
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59c588
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5da084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov edi, ecx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x14], 0
cmp byte [0x5df50d], 0
je 0x54a2bf
push esi
push dword [edi]
push str.GsWriteLocalFile:_hFile_x_buf_len_d_n
call fcn.005438c0
add esp, 0xc
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push esi
push ebx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x54a450
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp + 0xc]
mov edx, eax
lea ecx, [ebp - 0x24]
call fcn.00544000
add esp, 4
mov esi, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.00414d80
mov eax, dword [edi + 4]
mov ecx, str.Cannot_create_local_file
mov dword [ebp - 0x14], 1
push dword [eax - 0x10]
push eax
call fcn.00416660
mov edx, ecx
lea ecx, [ebp - 0x20]
push eax
call fcn.00544610
add esp, 0xc
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.00414d80
mov edx, dword [ebp - 0x20]
mov ecx, 0x5cb81c
mov dword [ebp - 0x14], 3
call fcn.00416660
push eax
push ecx
push dword [edx - 0x10]
lea ecx, [ebp - 0x1c]
call fcn.00544610
add esp, 0xc
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.00414d80
mov eax, dword [esi]
lea ecx, [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x14], 7
push dword [eax - 0x10]
push eax
push dword [edx - 0x10]
call fcn.00544610
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 0x18]
add esp, 0xc
mov ecx, edi
push eax
call fcn.00544730
mov ecx, dword [ebp - 0x18]
or esi, 0xffffffff
add ecx, 0xfffffff0
mov eax, esi
lock xadd dword [ecx + 8], eax
dec eax
test eax, eax
jg 0x54a3bb
cmp dword [ecx + 4], 0
jle 0x54a3bb
push ecx
call fcn.00577de8
add esp, 4
mov ecx, dword [ebp - 0x1c]
mov eax, esi
add ecx, 0xfffffff0
lock xadd dword [ecx + 8], eax
dec eax
test eax, eax
jg 0x54a3dc
cmp dword [ecx + 4], 0
jle 0x54a3dc
push ecx
call fcn.00577de8
add esp, 4
mov ecx, dword [ebp - 0x20]
mov eax, esi
add ecx, 0xfffffff0
lock xadd dword [ecx + 8], eax
dec eax
test eax, eax
jg 0x54a3fd
cmp dword [ecx + 4], 0
jle 0x54a3fd
push ecx
call fcn.00577de8
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
lock xadd dword [eax + 8], esi
dec esi
test esi, esi
jg 0x54a423
cmp dword [eax + 4], 0
jle 0x54a423
push eax
call fcn.00577de8
add esp, 4
cmp byte [0x5df50d], 0
je 0x54a43b
push dword [edi]
push str.GsWriteLocalFile:_err_s_n
call fcn.005438c0
add esp, 8
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
cmp eax, esi
je 0x54a43e
push eax
push esi
push dword [edi + 4]
mov esi, dword [ebp + 0x10]
push str.written_less_than_requested_for_file__s:__d____d
push esi
call fcn.00544cc0
mov eax, dword [ebp + 0xc]
add esp, 0x14
cmp byte [0x5df50d], 0
mov dword [eax], 5
je 0x54a43b
push dword [esi]
jmp 0x54a42e
Function at 0x54ccc0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59be0d
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5da084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov eax, dword [esi]
cmp dword [eax - 8], 1
jg 0x54ccf8
cmp dword [eax - 0xc], 0x105
jge 0x54cd04
push 0x105
mov ecx, esi
call fcn.00416600
push dword [esi]
push 0
push 0
push 0x28
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 0xffffffffffffffff
mov ecx, esi
mov edi, eax
call fcn.005444c0
mov ecx, esi
test edi, edi
je 0x54cd9c
call fcn.00414da0
mov edx, edi
lea ecx, [ebp - 0x10]
call fcn.005440a0
mov esi, dword [ebp + 8]
mov ecx, esi
push eax
mov dword [ebp - 4], 0
call fcn.00544730
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
lock xadd dword [ecx + 8], eax
dec eax
test eax, eax
jg 0x54cd6f
cmp dword [ecx + 4], 0
jle 0x54cd6f
push ecx
call fcn.00577de8
add esp, 4
cmp byte [0x5df50d], 0
je 0x54cd89
push dword [esi]
push 0x28
push str.SibGetSpecialFolder:_cannot_get_folder__d:__s_n
call fcn.005438c0
add esp, 0xc
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call fcn.005483d0
cmp byte [0x5df50d], 0
je 0x54cdbb
push dword [esi]
push 0x28
push str.SibGetSpecialFolder:_nFolder_d_sFolder_s_n
call fcn.005438c0
add esp, 0xc
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x54ce90
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59c8c5
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5da084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov eax, ecx
mov dword [ebp - 0x10], eax
cmp byte [0x5df50d], 0
mov esi, dword [ebp + 0xc]
je 0x54cedf
push dword [eax]
push esi
push dword [ebp + 8]
push ebx
push str.RfSetKeyValue:__x__s__s_s_n
call fcn.005438a0
add esp, 0x14
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x1c], vtable.sibcrux::CSafeRegKey.0
mov dword [ebp - 0x18], 0
call fcn.00414d80
mov edi, dword [ebp + 0x10]
push ecx
push edi
push dword [ebp + 8]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0
push ebx
call fcn.0054d190
mov ebx, dword [ebp - 0x18]
test al, al
je 0x54cf5d
cmp byte [0x5df50d], 0
je 0x54cf30
mov eax, dword [ebp - 0x10]
push dword [eax]
push esi
push str.SetValue:__s_s_n
call fcn.005438a0
add esp, 0xc
test ebx, ebx
jne 0x54cfa3
push dword [ebp - 0x14]
push esi
push str.Cannot_set_registry_value__s_in__s:_parent_was_not_created
push edi
call fcn.00544cc0
add esp, 0x10
cmp byte [0x5df50d], bl
je 0x54cf5d
push dword [edi]
push str._s_n
call fcn.005438a0
add esp, 8
xor bl, bl
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x54cf6d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
or ecx, 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 8], ecx
dec ecx
test ecx, ecx
jg 0x54cf8f
cmp dword [eax + 4], 0
jle 0x54cf8f
push eax
call fcn.00577de8
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
mov eax, dword [ecx - 0x10]
lea eax, [eax*2 + 2]
push eax
push ecx
push 1
push 0
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x54d025
mov edx, eax
lea ecx, [ebp - 0x10]
call fcn.005440a0
mov byte [ebp - 4], 1
push dword [eax]
push dword [ebp - 0x14]
push esi
push str.Cannot_set_registry_value__s_in__s:__s
push edi
call fcn.00544cc0
mov byte [ebp - 4], 0
add esp, 0x14
mov ecx, dword [ebp - 0x10]
or eax, 0xffffffff
add ecx, 0xfffffff0
lock xadd dword [ecx + 8], eax
dec eax
test eax, eax
jg 0x54d00c
cmp dword [ecx + 4], 0
jle 0x54d00c
push ecx
call fcn.00577de8
add esp, 4
cmp byte [0x5df50d], 0
je 0x54cf5d
push dword [edi]
push str.SetValue:__s_n
jmp 0x54cf55
mov bl, 1
jmp 0x54cf5f
Function at 0x54d030
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59c905
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5da084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x24], vtable.sibcrux::CSafeRegKey.0
mov dword [ebp - 0x20], 0
call fcn.00414d80
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
call fcn.00414d80
push 0x20019
mov eax, ecx
mov byte [ebp - 4], 1
push eax
push dword [ebp + 8]
lea ecx, [ebp - 0x24]
push 0x80000001
call fcn.0054d5c0
mov ebx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
test al, al
je 0x54d12b
test esi, esi
jne 0x54d0df
push ebx
push str.UnPinCCF
lea eax, [ebp - 0x10]
push str.Cannot_get_registry_value__s_in__s:_parent_was_not_created
push eax
call fcn.00544cc0
add esp, 0x10
cmp byte [0x5df50d], 0
je 0x54d12b
push dword [ebp - 0x10]
push str._s_n
call fcn.005438a0
add esp, 8
jmp 0x54d12b
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0
push eax
push edi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], 4
push eax
push 0
push str.UnPinCCF
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x54d114
cmp dword [ebp - 0x14], 4
jne 0x54d114
cmp dword [ebp - 0x18], 4
je 0x54d12b
push ebx
push str.UnPinCCF
lea eax, [ebp - 0x10]
push str.Cannot_read_registry_value__s_in__s
push eax
call fcn.00544cc0
add esp, 0x10
mov ecx, dword [ebp - 0x10]
or edi, 0xffffffff
add ecx, 0xfffffff0
mov eax, edi
lock xadd dword [ecx + 8], eax
dec eax
test eax, eax
jg 0x54d14f
cmp dword [ecx + 4], 0
jle 0x54d14f
push ecx
call fcn.00577de8
add esp, 4
test esi, esi
je 0x54d15a
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebx - 0x10]
lock xadd dword [eax + 8], edi
dec edi
test edi, edi
jg 0x54d176
cmp dword [eax + 4], 0
jle 0x54d176
push eax
call fcn.00577de8
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x54d7c0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
jne 0x54d800
push dword [esi + 8]
mov esi, dword [ebp + 0x20]
push str.Cannot_enum_registry_key_in__s:_parent_was_not_created
push esi
call fcn.00544cc0
add esp, 0xc
cmp byte [0x5df50d], 0
je 0x54d847
push dword [esi]
push str._s_n
call fcn.005438a0
add esp, 8
xor al, al
pop esi
pop ebp
ret 0x1c
push 0
push 0
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x54d84e
push dword [esi + 8]
mov esi, dword [ebp + 0x20]
push str.Cannot_enum_registry_key__s
push esi
call fcn.00544cc0
add esp, 0xc
cmp byte [0x5df50d], 0
je 0x54d847
push dword [esi]
push str.EnumKey:__s_n
call fcn.005438a0
add esp, 8
xor al, al
pop esi
pop ebp
ret 0x1c
mov al, 1
pop esi
pop ebp
ret 0x1c