joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5174c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x656d1b
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x755898]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], ebx
xor eax, eax
mov word [ebp - 0x1c], ax
mov byte [ebp - 4], 1
mov eax, dword [0x75ac2c]
cmp eax, ebx
jne 0x517516
mov eax, 0x75ac30
push ebx
push eax
push str._sScheduler_
lea ecx, [ebp - 0x20]
call fcn.004021b0
mov eax, dword [ebp - 0x20]
cmp eax, ebx
jne 0x51752f
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x5175db
mov eax, dword [ebp - 0x20]
cmp eax, ebx
jne 0x517549
lea eax, [ebp - 0x1c]
push 0x5c
add eax, 6
push eax
call fcn.0061ee70
add esp, 8
mov esi, eax
lea esp, [esp]
cmp esi, ebx
je 0x5175db
mov eax, dword [ebp - 0x20]
cmp eax, ebx
jne 0x51756e
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00402180
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
mov ecx, eax
jne 0x517587
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x20]
cmp eax, ebx
jne 0x517591
lea eax, [ebp - 0x1c]
mov edx, esi
sub edx, eax
sar edx, 1
xor eax, eax
mov word [ecx + edx*2], ax
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
jne 0x5175a7
lea eax, [ebp - 0x28]
push 1
push eax
call fcn.004aa320
add esp, 8
test eax, eax
jne 0x51760a
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
jne 0x5175c0
lea eax, [ebp - 0x28]
push 1
push eax
call fcn.004aa500
add esp, 8
test eax, eax
jne 0x51760a
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00401210
mov eax, dword [ebp - 0x20]
cmp eax, ebx
jne 0x5175e5
lea eax, [ebp - 0x1c]
push ebx
push eax
push 0x675ea0
lea ecx, [edi + 8]
call fcn.004021b0
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x20]
call fcn.00401210
mov dword [ebp - 4], 0xffffffff
xor eax, eax
jmp 0x51766b
push 0x5c
add esi, 2
push esi
call fcn.0061ee70
add esp, 8
mov esi, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00401210
jmp 0x517560
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0061d2ff
mov esp, ebp
pop ebp
ret 4
Function at 0x51ae80
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x6571f0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebp
push esi
push edi
mov eax, dword [0x755898]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov dword [esp + 0x20], ecx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0
push 0xf003f
push 0
push 0x676974
push 0
push str.SoftwareDownloadManagerGrabberStsRecentProjects
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x51af94
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edi, [eax + 4]
lea ecx, [esp + 0x10]
call fcn.00402500
mov dword [esp + 0x30], 0
push edi
lea edx, [esp + 0x14]
push 0x676424
push edx
call fcn.00402f70
mov edx, dword [esp + 0x1c]
add esp, 0xc
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x20]
push ecx
push 0
push 0
push edx
push eax
mov dword [esp + 0x30], 4
call ebp
test eax, eax
jne 0x51af63
mov ecx, dword [0x75ac64]
test ecx, ecx
jle 0x51af63
mov edx, dword [0x75ac60]
mov esi, dword [esp + 0x1c]
test eax, eax
jl 0x51afb2
cmp eax, ecx
jge 0x51afb2
cmp esi, dword [edx]
je 0x51af59
inc eax
add edx, 0xc
cmp eax, ecx
jl 0x51af43
jmp 0x51af63
mov ecx, dword [esp + 0x20]
push esi
call fcn.0051adc0
mov dword [esp + 0x30], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x51af8b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
dec edi
test edi, edi
jg 0x51aee5
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x24
ret
call fcn.005f16d5
int3
Function at 0x51afc0
Capabilities:
Delete registry key
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x65c118
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x755898]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0xf003f
push 0
push 0x676974
push 0
push str.SoftwareDownloadManagerGrabberSts
push 0x80000001
call esi
test eax, eax
jne 0x51b0cc
mov edx, dword [esp + 0x18]
push str.RecentProjects
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0
push 0xf003f
push 0
push 0x676974
push 0
push str.RecentProjects
push edx
call esi
test eax, eax
jne 0x51b0cc
xor esi, esi
cmp dword [ebx + 0x14], esi
jle 0x51b0b8
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea edi, [ebx + 4]
lea ecx, [esp + 0x14]
call fcn.00402500
mov dword [esp + 0x2c], 0
inc esi
push esi
lea eax, [esp + 0x18]
push 0x676424
push eax
call fcn.00402f70
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
add esp, 0xc
push 4
push edi
push 4
push 0
push ecx
push edx
call ebp
mov dword [esp + 0x2c], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00402570
add edi, 4
cmp esi, dword [ebx + 0x14]
jl 0x51b067
mov eax, dword [esp + 0x1c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
mov ecx, dword [esp + 0x18]
push ecx
call esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov dword [ecx], vtable.CRecentGrabberProjects.0
jmp 0x51afc0
Function at 0x51b350
Capabilities:
Delete registry key
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x65c118
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x755898]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0xf003f
push 0
push 0x676974
push 0
push str.SoftwareDownloadManagerGrabberSts
push 0x80000001
call esi
test eax, eax
jne 0x51b0cc
mov edx, dword [esp + 0x18]
push str.RecentProjects
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0
push 0xf003f
push 0
push 0x676974
push 0
push str.RecentProjects
push edx
call esi
test eax, eax
jne 0x51b0cc
xor esi, esi
cmp dword [ebx + 0x14], esi
jle 0x51b0b8
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea edi, [ebx + 4]
lea ecx, [esp + 0x14]
call fcn.00402500
mov dword [esp + 0x2c], 0
inc esi
push esi
lea eax, [esp + 0x18]
push 0x676424
push eax
call fcn.00402f70
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
add esp, 0xc
push 4
push edi
push 4
push 0
push ecx
push edx
call ebp
mov dword [esp + 0x2c], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00402570
add edi, 4
cmp esi, dword [ebx + 0x14]
jl 0x51b067
mov eax, dword [esp + 0x1c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
mov ecx, dword [esp + 0x18]
push ecx
call esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov dword [ecx], vtable.CRecentGrabberProjects.0
jmp 0x51afc0
Function at 0x51b380
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x1c
mov eax, dword [0x755898]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push esi
mov esi, ecx
mov ecx, dword [0x75b68c]
push edi
mov edi, dword [esp + 0x2c]
xor ebx, ebx
mov dword [esp + 0x10], edi
cmp ecx, ebx
jne 0x51b3c4
push str.Advapi32.dll
call fcn.00447580
mov ecx, eax
add esp, 4
mov dword [0x75b68c], ecx
cmp ecx, ebx
je 0x51b51f
mov eax, dword [0x75b690]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
jne 0x51b3e7
push str.GetNamedSecurityInfoA
push ecx
call ebp
mov ecx, dword [0x75b68c]
mov dword [0x75b690], eax
mov edx, dword [0x75b694]
cmp edx, ebx
jne 0x51b406
push str.SetNamedSecurityInfoA
push ecx
call ebp
mov edx, eax
mov eax, dword [0x75b690]
mov dword [0x75b694], edx
cmp eax, ebx
je 0x51b51e
cmp edx, ebx
je 0x51b51e
lea ecx, [esi + 8]
add esi, 4
push esi
push ebx
push ecx
push ebx
push ebx
push 4
push 4
push edi
mov dword [esp + 0x38], ecx
call eax
test eax, eax
jne 0x51b51e
mov eax, dword [0x75b68c]
push str.AllocateAndInitializeSid
push eax
call ebp
mov edi, eax
cmp edi, ebx
je 0x51b51e
mov ecx, dword [0x75b68c]
push 0x6a1aa8
push ecx
call ebp
mov esi, eax
cmp esi, ebx
je 0x51b51e
mov edx, dword [0x75b68c]
push str.InitializeAcl
push edx
call ebp
mov dword [esp + 0x1c], eax
cmp eax, ebx
je 0x51b51e
mov eax, dword [0x75b68c]
push str.AddAccessDeniedAce
push eax
call ebp
mov ebp, eax
cmp ebp, ebx
je 0x51b51e
lea ecx, [esp + 0x10]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 1
lea edx, [esp + 0x48]
push edx
mov byte [esp + 0x4c], bl
mov byte [esp + 0x4d], bl
mov byte [esp + 0x4e], bl
mov byte [esp + 0x4f], bl
mov byte [esp + 0x50], bl
mov byte [esp + 0x51], 1
call edi
mov eax, dword [esp + 0x10]
push eax
call esi
mov esi, eax
add esi, 0x10
push esi
call fcn.0061f92f
add esp, 4
push 2
mov edi, eax
push esi
push edi
call dword [esp + 0x28]
mov ecx, dword [esp + 0x10]
push ecx
push 0x10000000
push 2
push edi
call ebp
mov edx, dword [esp + 0x14]
push ebx
push edi
push ebx
push ebx
push 4
push 4
push edx
call dword [0x75b694]
push edi
test eax, eax
je 0x51b510
call fcn.0061e83c
jmp 0x51b51b
call fcn.0061e83c
mov eax, dword [esp + 0x1c]
mov dword [eax], ebx
add esp, 4
pop ebp
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0061d2ff
add esp, 0x1c
ret 4
Function at 0x51b750
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x1c
mov eax, dword [0x755898]
xor eax, esp
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x20]
push ebx
push eax
add ecx, 0xc
push 0x675ea0
push ecx
mov dword [esp + 0x18], eax
call fcn.00402f70
mov eax, dword [0x75b68c]
xor ebx, ebx
add esp, 0xc
cmp eax, ebx
jne 0x51b7ae
push str.Advapi32.dll
call fcn.00447580
add esp, 4
mov dword [0x75b68c], eax
cmp eax, ebx
jne 0x51b7ae
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0061d2ff
add esp, 0x1c
ret 4
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [0x75b690], ebx
jne 0x51b7cf
push str.GetNamedSecurityInfoA
push eax
call esi
mov dword [0x75b690], eax
mov eax, dword [0x75b68c]
mov ecx, dword [0x75b694]
cmp ecx, ebx
jne 0x51b7ee
push str.SetNamedSecurityInfoA
push eax
call esi
mov ecx, eax
mov eax, dword [0x75b68c]
mov dword [0x75b694], ecx
cmp dword [0x75b690], ebx
je 0x51b917
cmp ecx, ebx
je 0x51b917
push edi
push str.AllocateAndInitializeSid
push eax
call esi
mov edi, eax
cmp edi, ebx
je 0x51b83c
mov eax, dword [0x75b68c]
push 0x6a1aa8
push eax
call esi
mov dword [esp + 0x18], eax
cmp eax, ebx
je 0x51b83c
mov ecx, dword [0x75b68c]
push str.InitializeAcl
push ecx
call esi
mov dword [esp + 0x10], eax
cmp eax, ebx
jne 0x51b852
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0061d2ff
add esp, 0x1c
ret 4
mov edx, dword [0x75b68c]
push ebp
push str.AddAccessAllowedAce
push edx
call esi
mov ebp, eax
cmp ebp, ebx
jne 0x51b87e
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0061d2ff
add esp, 0x1c
ret 4
lea eax, [esp + 0x10]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 1
lea ecx, [esp + 0x48]
push ecx
mov byte [esp + 0x4c], bl
mov byte [esp + 0x4d], bl
mov byte [esp + 0x4e], bl
mov byte [esp + 0x4f], bl
mov byte [esp + 0x50], bl
mov byte [esp + 0x51], 1
call edi
mov edx, dword [esp + 0x10]
push edx
call dword [esp + 0x20]
mov esi, eax
add esi, 0x10
push esi
call fcn.0061f92f
add esp, 4
push 2
mov edi, eax
push esi
push edi
call dword [esp + 0x20]
mov eax, dword [esp + 0x10]
push eax
push 0x10000000
push 2
push edi
call ebp
mov ecx, dword [esp + 0x18]
push ebx
push edi
push ebx
push ebx
push 4
push 4
push ecx
call dword [0x75b694]
mov esi, eax
neg esi
sbb esi, esi
push edi
inc esi
call fcn.0061e83c
add esp, 4
pop ebp
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0061d2ff
add esp, 0x1c
ret 4
mov ecx, dword [esp + 0x20]
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0061d2ff
add esp, 0x1c
ret 4

Function at 0x51bae0
Capabilities:
Get hostname

Disassembly:
push ecx
push esi
lea eax, [esp + 4]
lea esi, [ecx + 0x40c]
push eax
push esi
mov dword [esp + 0xc], 0x32
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
jne 0x51bb11
mov ecx, dword [str.default]
mov dword [esi], ecx
mov edx, dword [0x681008]
mov dword [esi + 4], edx
pop esi
pop ecx
ret
Function at 0x51bb20
Capabilities:
Get session user name

Disassembly:
push ecx
push esi
lea eax, [esp + 4]
lea esi, [ecx + 0x525]
push eax
push esi
mov dword [esp + 0xc], 0x32
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x51bb62
mov ecx, dword [0x67fcf4]
mov dword [esi], ecx
mov edx, dword [0x67fcf8]
mov dword [esi + 4], edx
mov eax, dword [0x67fcfc]
mov dword [esi + 8], eax
mov cl, byte [0x67fd00]
mov byte [esi + 0xc], cl
pop esi
pop ecx
ret
Function at 0x520630
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov dl, byte [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
add dl, 4
test esi, esi
je 0x52066f
mov eax, dword [esp + 8]
push edi
mov di, word [eax]
mov cl, dl
and cl, 0xf
dec esi
rol di, cl
mov ecx, 0x2553
add eax, 2
inc dl
sub di, cx
mov ecx, 0xdaad
xor di, cx
mov word [eax - 2], di
test esi, esi
jne 0x520645
pop edi
pop esi
ret

Function at 0x520680
Capabilities:
Encode data using xor

Disassembly:
mov dl, byte [esp + 0xc]
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
add dl, 4
test esi, esi
je 0x5206b0
push ebx
mov bl, byte [eax]
mov cl, dl
and cl, 7
dec esi
rol bl, cl
inc eax
inc dl
sub bl, 0x53
xor bl, 0xad
mov byte [eax - 1], bl
test esi, esi
jne 0x520695
pop ebx
pop esi
ret

Function at 0x5206c0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
mov dl, 4
test esi, esi
je 0x5206eb
push ebx
mov bl, byte [eax]
xor bl, 0xad
mov cl, dl
and cl, 7
add bl, 0x53
dec esi
ror bl, cl
inc eax
inc dl
mov byte [eax - 1], bl
test esi, esi
jne 0x5206d0
pop ebx
pop esi
ret
Function at 0x521160
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6578db
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x755898]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], ebx
xor eax, eax
mov word [ebp - 0x1c], ax
mov byte [ebp - 4], 1
mov eax, dword [0x75ac2c]
cmp eax, ebx
jne 0x5211b6
mov eax, 0x75ac30
push ebx
push eax
push str._sGrabber_
lea ecx, [ebp - 0x20]
call fcn.004021b0
mov eax, dword [ebp - 0x20]
cmp eax, ebx
jne 0x5211cf
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x5212b3
mov eax, dword [ebp - 0x20]
cmp eax, ebx
jne 0x5211e9
lea eax, [ebp - 0x1c]
push 0x5c
add eax, 6
push eax
call fcn.0061ee70
add esp, 8
mov esi, eax
lea esp, [esp]
cmp esi, ebx
je 0x5212b3
mov eax, dword [ebp - 0x20]
cmp eax, ebx
jne 0x521212
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00402180
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
mov ecx, eax
jne 0x52122b
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x20]
cmp eax, ebx
jne 0x521235
lea eax, [ebp - 0x1c]
mov edx, esi
sub edx, eax
sar edx, 1
xor eax, eax
mov word [ecx + edx*2], ax
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
jne 0x52124b
lea eax, [ebp - 0x28]
push ebx
push eax
call fcn.004aa320
add esp, 8
test eax, eax
jne 0x521292
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
jne 0x521263
lea eax, [ebp - 0x28]
push ebx
push eax
call fcn.004aa500
add esp, 8
test eax, eax
jne 0x521292
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00401210
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x20]
call fcn.00401210
mov eax, 0x7546
jmp 0x52133b
push 0x5c
add esi, 2
push esi
call fcn.0061ee70
add esp, 8
mov esi, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00401210
jmp 0x521200
mov eax, dword [ebp - 0x20]
cmp eax, ebx
jne 0x5212bd
lea eax, [ebp - 0x1c]
push ebx
push eax
push str._sprojects2.dat
lea ecx, [edi + 0x18]
call fcn.004021b0
mov eax, dword [ebp - 0x20]
cmp eax, ebx
jne 0x5212d6
lea eax, [ebp - 0x1c]
push ebx
push eax
push str._sprojects.dat
lea ecx, [edi + 0x24]
call fcn.004021b0
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x20]
call fcn.00401210
mov dword [ebp - 4], 0xffffffff
xor eax, eax
jmp 0x52133b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0061d2ff
mov esp, ebp
pop ebp
ret
Function at 0x522420
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x81c]
sub esp, 0x81c
push 0xffffffffffffffff
push 0x657ba0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x755898]
xor eax, ebp
mov dword [ebp + 0x818], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x18], edi
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp byte [edi + 0x14], bl
jne 0x5225e2
mov eax, dword [0x75ac2c]
cmp eax, ebx
jne 0x52247d
mov eax, 0x75ac30
lea esi, [edi + 0x18]
push ebx
push eax
push str._sfoldresHistory.txt
mov ecx, esi
call fcn.004021b0
mov byte [edi + 0x14], 1
cmp dword [esi], ebx
je 0x52249a
mov esi, dword [esi]
jmp 0x52249d
add esi, 4
push ebx
push ebx
push 3
push ebx
push 1
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x14], esi
cmp esi, 0xffffffff
je 0x5225e2
mov dword [ebp + 0xc], ebx
mov dword [ebp + 0x14], ebx
xor eax, eax
mov word [ebp + 0x10], ax
mov byte [ebp - 4], 1
mov edi, edi
push 0x800
push ebx
lea ecx, [ebp + 0x18]
push ecx
call fcn.0061d9e0
add esp, 0xc
push ebx
lea edx, [ebp - 0x1c]
push edx
push 0x7fe
lea eax, [ebp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
je 0x5225c9
cmp dword [ebp - 0x1c], ebx
jbe 0x5225c9
lea ecx, [ebp + 0x18]
push ecx
lea ecx, [ebp + 0xc]
call fcn.00405300
mov eax, dword [ebp + 0xc]
cmp eax, ebx
jne 0x52251e
lea eax, [ebp + 0x10]
push 0xa
push eax
call fcn.0061ee70
add esp, 8
mov esi, eax
jmp 0x522530
cmp esi, ebx
je 0x5225c1
xor edx, edx
mov word [esi], dx
mov edx, dword [ebp + 0xc]
cmp edx, ebx
mov eax, edx
jne 0x522549
lea eax, [ebp + 0x10]
lea edi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x522550
sub eax, edi
sar eax, 1
je 0x522576
cmp edx, ebx
mov eax, edx
jne 0x52256a
lea eax, [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x18]
add ecx, 4
call fcn.004c7a70
add esi, 2
push esi
lea ecx, [ebp]
call fcn.00402180
mov byte [ebp - 4], 2
mov eax, dword [ebp]
cmp eax, ebx
jne 0x522590
lea eax, [ebp + 4]
push eax
lea ecx, [ebp + 0xc]
call fcn.004017f0
mov eax, dword [ebp + 0xc]
cmp eax, ebx
jne 0x5225a3
lea eax, [ebp + 0x10]
push 0xa
push eax
call fcn.0061ee70
add esp, 8
mov esi, eax
mov byte [ebp - 4], 1
lea ecx, [ebp]
call fcn.00401210
jmp 0x522530
mov esi, dword [ebp - 0x14]
jmp 0x5224d0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], bl
lea ecx, [ebp + 0xc]
call fcn.00401210
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x818]
xor ecx, ebp
call fcn.0061d2ff
add ebp, 0x81c
mov esp, ebp
pop ebp
ret
Function at 0x522620
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x657bd8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x755898]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x28], 0xffffffff
mov dword [ebp - 4], 0
cmp byte [edi + 0x14], 0
jne 0x522685
mov eax, dword [0x75ac2c]
test eax, eax
jne 0x522675
mov eax, 0x75ac30
push 0
push eax
push str._sfoldresHistory.txt
lea ecx, [edi + 0x18]
call fcn.004021b0
cmp dword [edi + 0x18], 0
je 0x522690
mov eax, dword [edi + 0x18]
jmp 0x522693
lea eax, [edi + 0x1c]
push 0
push 0
push 2
push 0
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x28], esi
cmp esi, 0xffffffff
je 0x522761
xor eax, eax
mov dword [ebp - 0x24], eax
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, dword [edi + 8]
jge 0x52273c
push eax
lea ecx, [edi + 4]
call fcn.0043b8e0
push eax
lea ecx, [ebp - 0x20]
call fcn.00402180
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x20]
test edx, edx
mov eax, edx
jne 0x5226e9
lea eax, [ebp - 0x1c]
lea edi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x5226f0
sub eax, edi
sar eax, 1
test edx, edx
mov ecx, edx
jne 0x522708
lea ecx, [ebp - 0x1c]
push 0
lea edx, [ebp - 0x2c]
push edx
add eax, eax
push eax
push ecx
push esi
call ebx
push 0
lea ecx, [ebp - 0x2c]
push ecx
push 2
push 0x6a28b4
push esi
call ebx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.00401210
inc dword [ebp - 0x24]
mov eax, dword [ebp - 0x24]
mov edi, dword [ebp - 0x30]
jmp 0x5226c2
mov dword [ebp - 4], 0xffffffff
jmp 0x522755
cmp esi, 0xffffffff
je 0x522761
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0061d2ff
mov esp, ebp
pop ebp
ret