joyce8/EMBER2024-capa huggingface dataset:
Function at 0x55156c
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push 0x44
mov eax, 0x6a454e
call fcn.0056e23b
lea eax, [ebp - 0x4c]
xor ebx, ebx
push eax
push 0x20019
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push SysReAllocString
mov esi, ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x5516b0
push 0x208
call fcn.0056e306
mov edi, eax
pop ecx
test edi, edi
je 0x5516a7
lea eax, [ebp - 0x50]
mov dword [ebp - 0x50], 0x208
push eax
push edi
push ebx
push ebx
push 0x6fd8a4
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x5516a0
lea ecx, [ebp - 0x2c]
call fcn.004173bc
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x48]
call fcn.004173bc
mov byte [ebp - 4], 1
lea eax, [ebp - 0x2c]
push 1
push eax
call fcn.0042810e
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push edi
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.0064806f
add esp, 0x10
mov esi, eax
neg esi
sbb esi, esi
add esi, 1
jne 0x55164f
lea eax, [ebp - 0x48]
push 1
push eax
call fcn.0042810e
push eax
lea eax, [ebp - 0x2c]
push str._s__Clean__Startup
push eax
call fcn.0041ccda
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push edi
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.0064806f
add esp, 0x1c
mov esi, eax
neg esi
sbb esi, esi
inc esi
test esi, esi
jne 0x551689
lea eax, [ebp - 0x48]
push 1
push eax
call fcn.0042810e
push eax
lea eax, [ebp - 0x2c]
push str._s__Startup
push eax
call fcn.0041ccda
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push edi
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.0064806f
add esp, 0x1c
mov esi, eax
neg esi
sbb esi, esi
inc esi
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x48]
call fcn.0041786a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0041786a
push edi
call fcn.0056e30f
pop ecx
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
call fcn.0056e1e5
ret
Function at 0x551c2b
Capabilities:
Check if file exists

Disassembly:
push 0x58
mov eax, 0x68b7b3
call fcn.0056e23b
mov eax, dword [ebp + 8]
xor ebx, ebx
push ebx
push 0x6fd470
push eax
call fcn.00563a69
add esp, 0xc
test eax, eax
je 0x551d62
push ebx
push 0x6fd484
push eax
call fcn.00563cac
mov edi, eax
add esp, 0xc
test edi, edi
je 0x551d62
cmp dword [edi + 4], ebx
je 0x551c76
mov eax, dword [edi + 0xc]
jmp 0x551c78
mov eax, ebx
test eax, eax
je 0x551d62
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x28], bl
mov dword [ebp - 4], ebx
mov dword [ebp - 0x2c], vtable.tstring_ex_char__class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___.0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x64]
call fcn.004173bc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x48]
call fcn.004173bc
mov byte [ebp - 4], 3
mov ebx, 0x795d20
cmp dword [edi + 4], 0
lea ecx, [ebp - 0x60]
mov eax, ebx
mov esi, 0x796274
cmovne eax, dword [edi + 4]
cmp dword [0x796288], 8
push ecx
cmovae esi, dword [0x796274]
push eax
call fcn.00562889
push eax
push esi
lea eax, [ebp - 0x48]
push str._slanguages_s.xml
push eax
call fcn.0041ccda
add esp, 0x18
lea eax, [ebp - 0x44]
cmp dword [ebp - 0x30], 8
cmovae eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x551d3e
cmp dword [edi + 4], 0
lea eax, [ebp - 0x60]
push eax
cmovne ebx, dword [edi + 4]
push ebx
call fcn.00562889
pop ecx
pop ecx
mov esi, 0x7e7c50
push eax
mov ecx, esi
call fcn.004179fb
push str..xml
mov ecx, esi
call fcn.00419c79
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x48]
call fcn.0041786a
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x64]
call fcn.0041786a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00419a6d
call fcn.0056e1e5
ret
Function at 0x553735
Capabilities:
Create directory
Get common file path

Disassembly:
push 0x228
mov eax, 0x68a4df
call fcn.0056e23b
lea eax, [ebp - 0x218]
xor edi, edi
push eax
push edi
push edi
push 0x1a
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x55383b
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x234]
call fcn.0041d41a
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x230]
mov esi, dword [ebp - 0x220]
dec esi
push esi
call fcn.00404220
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push 0x5c
cmovae eax, dword [ebp - 0x230]
pop ecx
cmp word [eax + esi*2], cx
je 0x5537b1
push ecx
lea ecx, [ebp - 0x234]
call fcn.0043b162
push str.Cybertron
lea ecx, [ebp - 0x234]
call fcn.00419c79
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push edi
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x5537f0
call esi
cmp eax, 0xb7
jne 0x55382c
push 0x6fd748
lea ecx, [ebp - 0x234]
call fcn.00419c79
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push edi
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x553829
call esi
cmp eax, 0xb7
jne 0x55382c
xor edi, edi
inc edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x234]
call fcn.0041786a
mov eax, edi
call fcn.0056e1e5
ret

Function at 0x555ed7
Capabilities:
Delete registry value
Persist via run registry key
Set registry value

Disassembly:
push 0x40
mov eax, 0x6a49d6
call fcn.0056e23b
lea eax, [ebp - 0x4c]
xor ebx, ebx
push eax
push 0x20006
push ebx
push 0x6fd768
push SysReAllocString
mov esi, ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x555fc2
cmp dword [ebp + 8], ebx
je 0x555fa3
lea ecx, [ebp - 0x2c]
call fcn.004173bc
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x48]
call fcn.004173bc
xor eax, eax
inc eax
mov byte [ebp - 4], al
lea eax, [ebp - 0x48]
push ebx
push eax
call fcn.0042810e
push eax
lea eax, [ebp - 0x2c]
push 0x6fd7c4
push eax
call fcn.0041ccda
add esp, 0x14
lea ecx, [ebp - 0x2c]
cmp dword [ebp + 0xc], ebx
je 0x555f56
push str.__Clean__Startup
jmp 0x555f5b
push str.__Startup
call fcn.00419c79
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x28]
add eax, eax
push eax
push ecx
xor edi, edi
inc edi
push edi
push ebx
push 0x6fd808
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
cmove esi, edi
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x48]
call fcn.0041786a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0041786a
jmp 0x555fb9
push 0x6fd828
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
xor ecx, ecx
inc ecx
test eax, eax
cmove esi, ecx
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
call fcn.0056e1e5
ret
Function at 0x55663f
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x783760]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
push esi
push esi
push 0x1f
push 0x400
mov dword [ebp - 0xa0], eax
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x556829
add eax, eax
xor ecx, ecx
push 2
pop edx
mov dword [ebp - 0x98], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0056e306
mov dword [ebp - 0x9c], eax
pop ecx
test eax, eax
je 0x556829
push dword [ebp - 0x98]
push eax
push 0x1f
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push esi
push esi
push 0x1003
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x556812
add eax, eax
xor ecx, ecx
push 2
pop edx
mov dword [ebp - 0x98], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0056e306
mov ebx, eax
pop ecx
test ebx, ebx
je 0x556812
push dword [ebp - 0x98]
push ebx
push 0x1003
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
lea eax, [ebp - 0x94]
push eax
push dword [ebp - 0xa0]
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
push 0x20
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x9c]
lea eax, [ebp - 0x94]
push eax
push esi
push 0x400
call dword [sym.imp.KERNEL32.dll_GetDateFormatW]
push 0x20
lea eax, [ebp - 0x84]
push eax
push ebx
lea eax, [ebp - 0x94]
push eax
push esi
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
cmp dword [ebp + 0x10], 1
jne 0x55677f
cmp word [ebp - 0x44], si
je 0x55677a
lea eax, [ebp - 0x44]
push eax
call fcn.00647fd1
pop ecx
mov esi, eax
lea eax, [ebp - 0x44]
jmp 0x5567a5
push 2
pop eax
cmp dword [ebp + 0x10], eax
jne 0x5567b0
cmp word [ebp - 0x84], si
je 0x55679f
lea eax, [ebp - 0x84]
push eax
call fcn.00647fd1
pop ecx
mov esi, eax
lea eax, [ebp - 0x84]
push esi
push eax
mov ecx, edi
call fcn.004044d0
jmp 0x55680f
cmp word [ebp - 0x44], si
jne 0x5567ba
mov eax, esi
jmp 0x5567c4
lea eax, [ebp - 0x44]
push eax
call fcn.00647fd1
pop ecx
push eax
lea eax, [ebp - 0x44]
mov ecx, edi
push eax
call fcn.004044d0
push 0x6febe4
call fcn.00647fd1
pop ecx
push eax
push 0x6febe4
mov ecx, edi
call fcn.0041cad6
cmp word [ebp - 0x84], si
je 0x556800
lea eax, [ebp - 0x84]
push eax
call fcn.00647fd1
pop ecx
mov esi, eax
push esi
lea eax, [ebp - 0x84]
mov ecx, edi
push eax
call fcn.0041cad6
xor esi, esi
inc esi
push dword [ebp - 0x9c]
call fcn.0056e30f
pop ecx
test ebx, ebx
je 0x556829
push ebx
call fcn.0056e30f
pop ecx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0056e1bf
mov esp, ebp
pop ebp
ret
Function at 0x55683c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x783760]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x8c], eax
mov ebx, esi
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
je 0x556a19
push esi
push esi
push 0x1f
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x556a19
add eax, eax
xor ecx, ecx
push 2
pop edx
mov dword [ebp - 0x88], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0056e306
mov dword [ebp - 0x90], eax
pop ecx
test eax, eax
je 0x556a19
push dword [ebp - 0x88]
push eax
push 0x1f
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push esi
push esi
push 0x1003
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x556a02
add eax, eax
xor ecx, ecx
push 2
pop edx
mov dword [ebp - 0x88], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0056e306
mov ebx, eax
pop ecx
test ebx, ebx
je 0x556a02
push dword [ebp - 0x88]
push ebx
push 0x1003
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push 0x20
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x90]
push dword [ebp - 0x8c]
push esi
push 0x400
call dword [sym.imp.KERNEL32.dll_GetDateFormatW]
push 0x20
lea eax, [ebp - 0x84]
push eax
push ebx
push dword [ebp - 0x8c]
push esi
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
cmp dword [ebp + 0x10], 1
jne 0x55696f
cmp word [ebp - 0x44], si
je 0x55696a
lea eax, [ebp - 0x44]
push eax
call fcn.00647fd1
pop ecx
mov esi, eax
lea eax, [ebp - 0x44]
jmp 0x556995
push 2
pop eax
cmp dword [ebp + 0x10], eax
jne 0x5569a0
cmp word [ebp - 0x84], si
je 0x55698f
lea eax, [ebp - 0x84]
push eax
call fcn.00647fd1
pop ecx
mov esi, eax
lea eax, [ebp - 0x84]
push esi
push eax
mov ecx, edi
call fcn.004044d0
jmp 0x5569ff
cmp word [ebp - 0x44], si
jne 0x5569aa
mov eax, esi
jmp 0x5569b4
lea eax, [ebp - 0x44]
push eax
call fcn.00647fd1
pop ecx
push eax
lea eax, [ebp - 0x44]
mov ecx, edi
push eax
call fcn.004044d0
push 0x6fec04
call fcn.00647fd1
pop ecx
push eax
push 0x6fec04
mov ecx, edi
call fcn.0041cad6
cmp word [ebp - 0x84], si
je 0x5569f0
lea eax, [ebp - 0x84]
push eax
call fcn.00647fd1
pop ecx
mov esi, eax
push esi
lea eax, [ebp - 0x84]
mov ecx, edi
push eax
call fcn.0041cad6
xor esi, esi
inc esi
push dword [ebp - 0x90]
call fcn.0056e30f
pop ecx
test ebx, ebx
je 0x556a19
push ebx
call fcn.0056e30f
pop ecx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0056e1bf
mov esp, ebp
pop ebp
ret
Function at 0x5580ac
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x6f4]
mov ecx, ebx
call fcn.005627e7
xor edi, edi
cmp dword [esi + 0x6f0], edi
jne 0x558107
call fcn.00428f86
push edi
push edi
push esi
push 0x559aac
push edi
mov eax, 0xbe
mov dword [esi + 0x71c], edi
push edi
mov word [esi + 0x70c], ax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x718], eax
lea ecx, [esi + 0x6ec]
lea eax, [ebp + 8]
push eax
push dword [ecx]
jmp 0x55812e
lea edi, [esi + 0x6ec]
mov esi, dword [edi]
lea eax, [ebp + 8]
push eax
push esi
lea eax, [ebp - 4]
push dword [esi]
push eax
call fcn.00517a72
add esp, 0x10
cmp dword [ebp - 4], esi
jne 0x558133
lea eax, [ebp + 8]
mov ecx, edi
push eax
push esi
call fcn.00517a41
mov ecx, ebx
call fcn.005627f7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x560731
Capabilities:
Create thread

Disassembly:
mov ecx, dword [0x7e7318]
test ecx, ecx
jne fcn.00532c29
ret

Function at 0x560fe4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6a5b1f
mov eax, dword fs:[0]
push eax
mov eax, 0x249c
call fcn.0056e5a0
mov eax, dword [0x783760]
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 esi, ecx
cmp dword [0x7960f8], 0
je 0x56107a
lea ecx, [ebp - 0x2c]
call fcn.004173bc
and dword [ebp - 4], 0
mov eax, 0x796274
cmp dword [0x796288], 8
cmovae eax, dword [0x796274]
push eax
lea eax, [ebp - 0x2c]
push 0x700938
push eax
call fcn.0041ccda
add esp, 0xc
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
mov ecx, esi
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00561222
mov esi, eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0041786a
mov eax, esi
jmp 0x561206
lea ecx, [ebp - 0x334]
call fcn.005608e1
xor ebx, ebx
lea eax, [esi + 0x40]
cmp dword [eax + 0x14], 8
mov edi, 0x288
mov dword [ebp - 0x24a8], edi
mov dword [ebp - 0x24a4], ebx
jb 0x5610a3
mov eax, dword [eax]
lea ecx, [ebp - 0x24a8]
push ecx
lea ecx, [ebp - 0x334]
push ecx
lea ecx, [ebp - 0x24a4]
push ecx
push ebx
push eax
push dword [esi + 0x38]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x561204
cmp dword [ebp - 0x24a4], 3
jne 0x561204
cmp dword [ebp - 0x24a8], edi
jne 0x561204
lea ecx, [ebp - 0xac]
call fcn.0053cbe2
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x249c]
call fcn.0056a29c
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24a0]
call fcn.00569c02
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xac]
push 0x20
push 0x2717
call fcn.0053ce50
push eax
push 2
push 3
lea ecx, [ebp - 0x249c]
call fcn.0056a480
test eax, eax
je 0x5611d7
push ebx
push ebx
lea eax, [ebp - 0x334]
push eax
push edi
push eax
lea ecx, [ebp - 0x249c]
call fcn.0056a7fb
test eax, eax
je 0x5611d7
lea eax, [ebp - 0x30]
push eax
push 0x268
lea eax, [ebp - 0x314]
push eax
push 2
lea ecx, [ebp - 0x24a0]
call fcn.00569ec1
test eax, eax
je 0x5611d7
push 0x20
lea eax, [ebp - 0x334]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0064454b
add esp, 0xc
test eax, eax
jne 0x5611d7
push edi
lea eax, [ebp - 0x334]
push eax
push dword [esi + 0x24]
call fcn.00643300
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24a0]
call fcn.00569c0b
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x249c]
call fcn.0056a2ca
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xac]
call fcn.0053ccae
xor eax, eax
inc eax
jmp 0x561206
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24a0]
call fcn.00569c0b
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x249c]
call fcn.0056a2ca
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xac]
call fcn.0053ccae
xor eax, eax
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.0056e1bf
mov esp, ebp
pop ebp
ret
Function at 0x5618a4
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6a5c2a
mov eax, dword fs:[0]
push eax
mov eax, 0x21ec
call fcn.0056e5a0
mov eax, dword [0x783760]
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 ebx, ecx
and dword [ebp - 0x21f8], 0
mov eax, dword [ebx + 0x28]
cmp eax, dword [ebx + 0x2c]
je 0x5619e0
mov esi, dword [ebx + 0x2c]
sub esi, eax
and esi, 0xffffffe0
push esi
call fcn.0056e306
mov edi, eax
pop ecx
test edi, edi
je 0x5619e0
push esi
push dword [ebx + 0x28]
push edi
call fcn.00643300
add esp, 0xc
lea ecx, [ebp - 0x8c]
call fcn.0053cbe2
and dword [ebp - 4], 0
lea ecx, [ebp - 0x21f4]
call fcn.0056a29c
xor eax, eax
inc eax
mov byte [ebp - 4], al
lea ecx, [ebp - 0x8c]
push 0x20
push 0x2717
call fcn.0053ce50
push eax
push 2
push 3
lea ecx, [ebp - 0x21f4]
call fcn.0056a480
test eax, eax
je 0x5619b6
push 0
push 0
push edi
push esi
push edi
lea ecx, [ebp - 0x21f4]
call fcn.0056a708
test eax, eax
je 0x5619b6
lea eax, [ebx + 0x5c]
cmp dword [eax + 0x14], 8
jb 0x561978
mov eax, dword [eax]
push esi
push edi
push 3
push 0
push eax
push dword [ebx + 0x38]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0x21f8]
test eax, eax
push 1
pop ebx
cmove ecx, ebx
push esi
push edi
mov dword [ebp - 0x21f8], ecx
call fcn.0059e3f3
push esi
push edi
call fcn.0059e3f3
push esi
push edi
call fcn.0059e3f3
add esp, 0x18
jmp 0x5619b9
xor ebx, ebx
inc ebx
push ebx
push edi
call fcn.0056df27
pop ecx
pop ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x21f4]
call fcn.0056a2ca
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8c]
call fcn.0053ccae
mov eax, dword [ebp - 0x21f8]
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.0056e1bf
mov esp, ebp
pop ebp
ret
Function at 0x561a02
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6a5c7b
mov eax, dword fs:[0]
push eax
mov eax, 0x2490
call fcn.0056e5a0
mov eax, dword [0x783760]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [0x7960f8], 0
je 0x561a97
lea ecx, [ebp - 0x2c]
call fcn.004173bc
and dword [ebp - 4], 0
mov eax, 0x796274
cmp dword [0x796288], 8
cmovae eax, dword [0x796274]
push eax
lea eax, [ebp - 0x2c]
push str._sPortable.xml
push eax
call fcn.0041ccda
add esp, 0xc
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
mov ecx, esi
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00561be9
mov esi, eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0041786a
mov eax, esi
jmp 0x561bce
lea ecx, [ebp - 0x249c]
call fcn.00569c02
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x330]
call fcn.005608e1
push 0x288
push dword [esi + 0x24]
lea eax, [ebp - 0x330]
push eax
call fcn.00643300
add esp, 0xc
lea eax, [ebp - 0x330]
lea ecx, [ebp - 0x249c]
push eax
push 0x268
lea eax, [ebp - 0x310]
push eax
push 2
call fcn.00569ec1
test eax, eax
je 0x561bbb
lea ecx, [ebp - 0xa8]
call fcn.0053cbe2
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2498]
call fcn.0056a29c
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xa8]
push 0x20
push 0x2717
call fcn.0053ce50
push eax
push 2
push 3
lea ecx, [ebp - 0x2498]
call fcn.0056a480
test eax, eax
je 0x561b9e
push 0
push 0
lea eax, [ebp - 0x330]
push eax
push 0x288
push eax
lea ecx, [ebp - 0x2498]
call fcn.0056a708
test eax, eax
je 0x561b9e
lea eax, [esi + 0x40]
cmp dword [eax + 0x14], 8
jb 0x561b61
mov eax, dword [eax]
push 0x288
lea ecx, [ebp - 0x330]
push ecx
push 3
push 0
push eax
push dword [esi + 0x38]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x561b9e
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2498]
call fcn.0056a2ca
mov byte [ebp - 4], bl
lea ecx, [ebp - 0xa8]
call fcn.0053ccae
jmp 0x561bbd
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2498]
call fcn.0056a2ca
mov byte [ebp - 4], bl
lea ecx, [ebp - 0xa8]
call fcn.0053ccae
xor ebx, ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x249c]
call fcn.00569c0b
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056e1bf
mov esp, ebp
pop ebp
ret
Function at 0x563703
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x18
mov eax, 0x6a5f16
call fcn.0056e272
xor ebx, ebx
mov esi, ebx
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp + 8]
call fcn.005654e9
add esp, 0x1c
mov edi, eax
mov dword [ebp - 0x24], edi
cmp edi, 0xffffffff
je 0x563837
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
mov dword [ebp - 0x1c], ecx
lea eax, [ecx - 4]
cmp eax, 0xfffffff9
ja 0x563830
push 0x86
push str.XML.cpp
push 1
push ecx
call fcn.0056f19a
add esp, 0x10
mov esi, eax
mov dword [ebp - 0x20], esi
test esi, esi
je 0x56382b
mov dword [ebp - 0x18], ebx
push ebx
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x1c]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x563837
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x1c]
jne 0x563830
cmp byte [esi], 0xef
jne 0x5637cb
cmp byte [esi + 1], 0xbb
jne 0x5637cb
cmp byte [esi + 2], 0xbf
jne 0x5637cb
mov byte [ebp - 0x11], bl
lea ecx, [ebp - 0x11]
push ecx
add eax, 0xfffffffe
push eax
mov ecx, dword [ebp + 0xc]
call fcn.005646a8
mov eax, dword [ebp - 0x18]
add eax, 0xfffffffd
push eax
lea eax, [esi + 3]
push eax
jmp 0x5637e0
mov byte [ebp - 0x11], bl
lea ecx, [ebp - 0x11]
push ecx
inc eax
push eax
mov ecx, dword [ebp + 0xc]
call fcn.005646a8
push dword [ebp - 0x18]
push esi
mov eax, dword [ebp + 0xc]
push dword [eax]
call fcn.00643300
add esp, 0xc
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x56383f
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 0xc]
push dword [eax]
call fcn.00429c93
or dword [ebp - 4], 0xffffffff
jmp 0x56383f
push 0xe
pop ebx
jmp 0x56383f
mov ebx, 0x3ee
jmp 0x56383f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test esi, esi
je 0x56384d
push 1
push esi
call fcn.0056df27
pop ecx
pop ecx
cmp edi, 0xffffffff
je 0x563859
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
call fcn.0056e1d0
ret