joyce8/EMBER2024-capa huggingface dataset:
Function at 0x532930
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5eab23
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x65c428]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x80], 0
mov dword [edi], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x7c], 0
lea eax, [ebp - 0x7c]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.0045ead0
mov eax, dword [ebp - 0x80]
add esp, 8
test eax, eax
je 0x532b43
mov esi, dword [sym.imp.OLEAUT32.dll_VariantInit]
push eax
call esi
test eax, eax
je 0x532b43
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x532b43
push eax
call esi
test eax, eax
je 0x532b43
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 0
push 0x201
push dword [ebp - 0x80]
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 2
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00532880
mov esi, dword [ebp - 0x90]
test eax, eax
jne 0x532b34
push 0x64
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.00537020
add esp, 0xc
mov dword [ebp - 0x78], 0x64
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x84]
push eax
push 0
push dword [ebp - 0x7c]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x532b34
mov eax, dword [ebp - 0x84]
cmp eax, 1
je 0x532a5b
cmp eax, 2
jne 0x532b34
mov ecx, dword [ebp - 0x78]
test ecx, ecx
je 0x532a7c
test cl, 1
jne 0x532b34
mov eax, ecx
shr eax, 1
cmp word [ebp + eax*2 - 0x76], 0
je 0x532a82
jmp 0x532b34
xor eax, eax
mov word [ebp - 0x74], ax
shr ecx, 1
cmp ecx, 0x2d
jne 0x532b34
lea ecx, [ebp - 0x78]
call fcn.0041b4c0
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x78]
call fcn.00530e10
lea eax, [ebp - 0x84]
mov dword [ebp - 0x84], 0
push eax
lea eax, [ebp - 0x20]
push 0x5ffed0
push eax
call fcn.00452670
push 0x2a
push dword [ebp - 0x78]
call fcn.005312d0
movzx eax, al
add esp, 0x14
cmp dword [ebp - 0x84], eax
jne 0x532b2c
lea edx, [ebp - 0x74]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x532ae2
sub edx, ecx
lea eax, [ebp - 0x74]
sar edx, 1
mov ecx, ebx
push edx
push eax
call fcn.00530af0
push dword [0x65c828]
lea eax, [ebp - 0x74]
push dword [0x65c824]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x532b1d
mov dword [edi], 1
lea ecx, [ebp - 0x78]
call fcn.0041b8f0
mov edi, 1
jmp 0x532b36
lea ecx, [ebp - 0x78]
call fcn.0041b8f0
xor edi, edi
test esi, esi
je 0x532b45
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x532b45
xor edi, edi
push dword [ebp - 0x7c]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
push dword [ebp - 0x80]
call esi
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00472636
mov esp, ebp
pop ebp
ret
Function at 0x532b80
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x532b95
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x532ba0
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x535e70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x535ee1
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x535eaf
cmp eax, 2
jne 0x535ecb
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x535edb
test ecx, ecx
je 0x535ed6
test cl, 1
jne 0x535ecb
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x535edb
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x574d4f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0057494f

Function at 0x574d5a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00574ad2

Function at 0x57a3cb
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00579b4f

Function at 0x57a3d6
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00579d8e

Function at 0x57af36
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0057ae03

Function at 0x58280c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
and eax, 0x3f
mov edx, dword [ebp + 0xc]
push ebx
sar ecx, 6
push esi
push edi
imul edi, eax, 0x30
mov eax, dword [ecx*4 + 0x66e520]
mov dword [ebp - 0xc], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x58284d
cmp byte [edx], 0xa
jne 0x58284d
or byte [eax + edi + 0x28], 4
jmp 0x582852
and byte [eax + edi + 0x28], 0xfb
lea eax, [edx + ecx]
mov ebx, edx
mov dword [ebp - 8], eax
mov esi, edx
cmp edx, eax
jae 0x582943
mov al, byte [ebx]
cmp al, 0x1a
je 0x582924
cmp al, 0xd
je 0x58287b
mov byte [esi], al
inc esi
inc ebx
jmp 0x582919
lea eax, [ebx + 1]
cmp eax, dword [ebp - 8]
jae 0x58289b
cmp byte [eax], 0xa
jne 0x582890
push 2
mov byte [esi], 0xa
pop eax
jmp 0x582896
xor eax, eax
mov byte [esi], 0xd
inc eax
add ebx, eax
inc esi
jmp 0x582919
push 0
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x582912
cmp dword [ebp - 0x14], 0
je 0x582912
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x66e520]
test byte [eax + edi + 0x28], 0x48
je 0x5828e9
mov dl, byte [ebp - 1]
cmp dl, 0xa
jne 0x5828d9
mov byte [esi], dl
jmp 0x582915
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x66e520]
mov byte [eax + edi + 0x2a], dl
jmp 0x582915
cmp byte [ebp - 1], 0xa
jne 0x5828fb
mov edx, dword [ebp + 0xc]
cmp esi, edx
jne 0x5828fb
mov byte [esi], 0xa
jmp 0x582898
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00584507
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x582916
mov byte [esi], 0xd
inc esi
mov edx, dword [ebp + 0xc]
cmp ebx, dword [ebp - 8]
jb 0x582864
jmp 0x582943
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x66e520]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x58293e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x582943
mov cl, byte [ebx]
mov byte [esi], cl
inc esi
sub esi, edx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x58294e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
and eax, 0x3f
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
sar ecx, 6
imul edi, eax, 0x30
mov dword [ebp - 8], ecx
push 0xa
mov eax, dword [ecx*4 + 0x66e520]
pop ebx
mov edx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], edx
mov edx, dword [ebp + 0xc]
test esi, esi
je 0x582992
cmp word [edx], bx
jne 0x582992
or byte [edi + eax + 0x28], 4
jmp 0x582997
and byte [edi + eax + 0x28], 0xfb
lea eax, [edx + esi*2]
mov ebx, edx
mov dword [ebp - 0xc], eax
mov esi, edx
cmp edx, eax
jae 0x582aeb
mov dword [ebp - 0x10], 0xd
movzx eax, word [ebx]
cmp eax, 0x1a
je 0x582acb
cmp ax, word [ebp - 0x10]
je 0x5829d0
mov word [esi], ax
add esi, 2
add ebx, 2
jmp 0x582ac0
lea eax, [ebx + 2]
cmp eax, dword [ebp - 0xc]
jae 0x5829f6
push 0xa
pop ecx
cmp word [eax], cx
jne 0x5829e6
push ecx
pop eax
push 4
jmp 0x5829eb
push 0xd
pop eax
push 2
mov word [esi], ax
pop eax
add ebx, eax
jmp 0x582aba
push 0
mov ebx, eax
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x582ab1
cmp dword [ebp - 0x18], 0
je 0x582ab1
mov ecx, dword [ebp - 8]
push 0xa
mov eax, dword [ecx*4 + 0x66e520]
test byte [edi + eax + 0x28], 0x48
pop eax
je 0x582a7d
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x582a41
mov word [esi], ax
jmp 0x582a75
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ecx*4 + 0x66e520]
mov word [ebp - 0x20], dx
push 0xa
mov byte [edi + eax + 0x2a], dl
mov ecx, dword [ecx*4 + 0x66e520]
mov al, byte [ebp - 0x1f]
pop edx
mov byte [edi + ecx + 0x2b], al
mov ecx, dword [ebp - 8]
mov eax, dword [ecx*4 + 0x66e520]
mov byte [edi + eax + 0x2c], dl
mov edx, dword [ebp + 0xc]
add esi, 2
jmp 0x582ac0
cmp word [ebp - 4], ax
jne 0x582a92
mov edx, dword [ebp + 0xc]
cmp esi, edx
jne 0x582a92
mov word [esi], ax
add esi, 2
jmp 0x582ac0
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00584507
mov edx, dword [ebp + 0xc]
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x582abd
jmp 0x582ab4
mov edx, dword [ebp + 0xc]
push 0xd
pop eax
mov word [esi], ax
add esi, 2
mov ecx, dword [ebp - 8]
cmp ebx, dword [ebp - 0xc]
jb 0x5829b0
jmp 0x582aeb
mov ecx, dword [ecx*4 + 0x66e520]
mov al, byte [edi + ecx + 0x28]
test al, 0x40
jne 0x582ae2
or al, 2
mov byte [edi + ecx + 0x28], al
jmp 0x582aeb
mov cx, word [ebx]
mov word [esi], cx
add esi, 2
sub esi, edx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x58a0c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x65c428]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x58a163
cmp byte [esi + 0x3d], 0
je 0x58a163
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x58a119
mov ecx, dword [esi + 0x38]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call edx
sub eax, 0
je 0x58a12b
sub eax, 1
je 0x58a12f
sub eax, 2
je 0x58a163
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00472636
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x58a14c
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.005d984e
add esp, 0x10
cmp edi, eax
jne 0x58a119
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00472636
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.00472636
mov esp, ebp
pop ebp
ret
Function at 0x58ae40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x65c428]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x58ae70
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00472636
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x58aeac
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x58aeac
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00472636
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x58af93
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x58aed4
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x58af07
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.00554c98
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00472636
mov esp, ebp
pop ebp
ret 4
mov byte [ebp - 0x28], bl
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call edx
test eax, eax
js 0x58af93
cmp eax, 1
jle 0x58af66
cmp eax, 3
jne 0x58af93
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.005891c0
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00472636
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x58af83
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.005d984e
add esp, 0x10
cmp edi, eax
jne 0x58af93
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x58ae97
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00472636
mov esp, ebp
pop ebp
ret 4
Function at 0x58c500
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
je 0x58c5d4
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
test esi, esi
jl 0x58c5c3
jg 0x58c538
test edx, edx
je 0x58c5c3
call fcn.00464db0
mov esi, eax
mov eax, edx
mov dword [ebp - 8], eax
test eax, eax
jl 0x58c588
jg 0x58c54e
test esi, esi
je 0x58c588
cmp ebx, eax
jg 0x58c55d
jl 0x58c558
cmp edi, esi
jae 0x58c55d
mov esi, edi
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
push esi
mov eax, dword [eax + 0x1c]
push dword [eax]
push dword [ebp + 8]
call fcn.00537180
mov ecx, dword [ebp - 4]
add esp, 0xc
sub edi, esi
sbb ebx, dword [ebp - 8]
mov eax, dword [ecx + 0x2c]
sub dword [eax], esi
mov eax, dword [ecx + 0x1c]
add dword [eax], esi
mov eax, dword [ebp + 8]
jmp 0x58c5aa
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, eax
cmp ecx, 0xffffffff
je 0x58c5bd
mov eax, dword [ebp + 8]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
mov byte [eax], cl
mov ecx, dword [ebp - 4]
add eax, esi
mov dword [ebp + 8], eax
test ebx, ebx
jg 0x58c538
jl 0x58c5bd
test edi, edi
jne 0x58c538
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
pop edi
sbb esi, ebx
mov eax, edx
mov edx, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x1c]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], esi
mov eax, dword [eax]
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], eax
test eax, eax
je 0x58c5f3
mov eax, dword [ecx + 0x2c]
mov eax, dword [eax]
jmp 0x58c5f5
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [ebp + 0x10], eax
test edi, edi
jl 0x58c69d
jg 0x58c60f
test esi, esi
je 0x58c69d
test eax, eax
jl 0x58c64e
jg 0x58c619
test ebx, ebx
je 0x58c64e
cmp edi, eax
jg 0x58c628
jl 0x58c623
cmp esi, ebx
jae 0x58c628
mov ebx, esi
mov dword [ebp + 0x10], edi
push ebx
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.00537180
mov ecx, dword [ebp - 4]
add esp, 0xc
add dword [ebp + 8], ebx
sub esi, ebx
sbb edi, dword [ebp + 0x10]
mov eax, dword [ecx + 0x2c]
sub dword [eax], ebx
mov eax, dword [ecx + 0x1c]
add dword [eax], ebx
jmp 0x58c654
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
test edi, edi
jl 0x58c69d
jg 0x58c65e
test esi, esi
je 0x58c69d
mov edx, dword [ecx + 0x4c]
test edx, edx
je 0x58c69d
mov ebx, dword [ecx + 0xc]
lea eax, [ecx + 0x3c]
cmp dword [ebx], eax
jne 0x58c689
mov edx, dword [ecx + 0x54]
mov ecx, dword [ecx + 0x50]
sub edx, ecx
mov dword [ebx], ecx
mov ebx, dword [ebp - 4]
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], edx
mov edx, dword [ebx + 0x4c]
push edx
push esi
push 1
push dword [ebp + 8]
call fcn.005d9130
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x58c6b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
je 0x58c77e
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
test esi, esi
jl 0x58c76d
jg 0x58c6e8
test edx, edx
je 0x58c76d
call fcn.00465600
mov esi, eax
mov eax, edx
mov dword [ebp - 8], eax
test eax, eax
jl 0x58c736
jg 0x58c6fe
test esi, esi
je 0x58c736
cmp ebx, eax
jg 0x58c70d
jl 0x58c708
cmp edi, esi
jae 0x58c70d
mov esi, edi
mov dword [ebp - 8], ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 8]
push esi
push eax
mov eax, dword [ecx + 0x20]
push dword [eax]
call fcn.00537180
mov ecx, dword [ebp - 4]
add esp, 0xc
sub edi, esi
sbb ebx, dword [ebp - 8]
mov eax, dword [ecx + 0x30]
sub dword [eax], esi
mov eax, dword [ecx + 0x20]
add dword [eax], esi
jmp 0x58c75a
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
push eax
call edx
cmp eax, 0xffffffff
je 0x58c767
mov ecx, dword [ebp - 4]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [ebp + 8], esi
test ebx, ebx
jg 0x58c6e8
jl 0x58c767
test edi, edi
jne 0x58c6e8
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
pop edi
sbb esi, ebx
mov eax, edx
mov edx, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], esi
mov eax, dword [eax]
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], eax
test eax, eax
je 0x58c79d
mov eax, dword [ecx + 0x30]
mov eax, dword [eax]
jmp 0x58c79f
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [ebp + 0x10], eax
test edi, edi
jl 0x58c818
jg 0x58c7b1
test esi, esi
je 0x58c818
test eax, eax
jl 0x58c7f2
jg 0x58c7bb
test ebx, ebx
je 0x58c7f2
cmp edi, eax
jg 0x58c7ca
jl 0x58c7c5
cmp esi, ebx
jae 0x58c7ca
mov ebx, esi
mov dword [ebp + 0x10], edi
push ebx
push dword [ebp + 8]
push dword [ebp - 8]
call fcn.00537180
mov ecx, dword [ebp - 4]
add esp, 0xc
mov edx, dword [ebp + 8]
add edx, ebx
sub esi, ebx
mov eax, dword [ecx + 0x30]
sbb edi, dword [ebp + 0x10]
sub dword [eax], ebx
mov eax, dword [ecx + 0x20]
add dword [eax], ebx
jmp 0x58c7f5
mov edx, dword [ebp + 8]
test edi, edi
jl 0x58c818
jg 0x58c7ff
test esi, esi
je 0x58c818
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x58c818
push eax
push esi
push 1
push edx
call fcn.005d984e
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x5b8730
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0
push dword [ebp + 8]
call fcn.005b8d40
add esp, 8
test al, al
je 0x5b8755
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x5b8755
mov al, 1
pop ebp
ret
xor al, al
pop ebp
ret

Function at 0x5b8d40
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
pop ebp
ret

Function at 0x5ba1f0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x5ba21b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x5ba21b
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, esi
pop esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
mov esp, ebp
pop ebp
ret 4

Function at 0x5bb2b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ee38b
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x65c428]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00537020
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x5bb2fc
mov esi, dword [esi]
call fcn.0041d180
test al, al
mov edx, str.SuperBookmark.dll
mov ecx, str.SuperBookmark64.dll
lea eax, [ebp - 0x218]
cmove ecx, edx
push ecx
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x5bb3c6
call fcn.00408a20
mov ecx, eax
test ecx, ecx
je 0x5bb3e2
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
cmp dword [ebp + 8], 0
lea eax, [ebp - 0x218]
push eax
mov ecx, str._u__s___s_
mov dword [ebp - 4], 0
mov eax, str.__s___s
cmove eax, ecx
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.00416ab0
mov esi, dword [ebp - 0x21c]
push 0
push 0
push 0
push 0x1388
push 1
push 0
push esi
push str.regsvr32.exe
push 0
call fcn.005bb3f0
add esp, 0x30
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x5bb3c1
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00472636
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00408260
int3