joyce8/EMBER2024-capa huggingface dataset:
Function at 0x519440
Capabilities:
Delete registry key

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x64aa90
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov eax, dword [ebp + 4]
test eax, eax
je 0x519598
mov ebx, dword [esp + 0x34]
push ebx
call fcn.0061fb92
xor edx, edx
div dword [ebp + 8]
mov eax, dword [ebp + 4]
mov esi, dword [eax + edx*4]
test esi, esi
lea edi, [eax + edx*4]
je 0x519598
mov eax, dword [esi + 8]
push ebx
push eax
call fcn.0060b39a
add esp, 8
test eax, eax
je 0x5194a7
mov edi, esi
mov esi, dword [esi]
test esi, esi
jne 0x519489
jmp 0x519598
mov ecx, dword [esi]
xor ebx, ebx
mov dword [edi], ecx
lea edi, [esi + 0xc]
mov dword [esp + 0x10], edi
lea ecx, [edi + 4]
mov dword [esp + 0x2c], 0
call fcn.00622d8a
mov ecx, edi
mov dword [esp + 0x2c], 0xffffffff
call fcn.00622d8a
add edi, 8
mov edx, ebx
dec ebx
mov dword [esp + 0x10], edi
test edx, edx
jne 0x5194b4
lea eax, [esi + 8]
push 1
push eax
call fcn.0061fb6e
mov ecx, dword [ebp + 0x10]
mov dword [esi], ecx
mov eax, dword [ebp + 0xc]
dec eax
mov dword [ebp + 0x10], esi
mov dword [ebp + 0xc], eax
jne 0x519598
mov eax, dword [ebp + 4]
test eax, eax
je 0x519576
mov ecx, dword [ebp + 8]
xor eax, eax
test ecx, ecx
mov dword [esp + 0x10], eax
jbe 0x519576
mov edx, dword [ebp + 4]
mov ebx, dword [edx + eax*4]
test ebx, ebx
je 0x51956a
lea esi, [ebx + 0xc]
xor edi, edi
mov dword [esp + 0x18], esi
lea ecx, [esi + 4]
mov dword [esp + 0x2c], 1
call fcn.00622d8a
mov ecx, esi
mov dword [esp + 0x2c], 0xffffffff
call fcn.00622d8a
add esi, 8
mov eax, edi
dec edi
mov dword [esp + 0x18], esi
test eax, eax
jne 0x519528
lea ecx, [ebx + 8]
push 1
push ecx
call fcn.0061fb6e
mov ebx, dword [ebx]
test ebx, ebx
jne 0x51951f
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jb 0x519515
mov edx, dword [ebp + 4]
push edx
call fcn.00622af4
mov ecx, dword [ebp + 0x14]
xor esi, esi
add esp, 4
mov dword [ebp + 4], esi
mov dword [ebp + 0xc], esi
mov dword [ebp + 0x10], esi
call fcn.00621613
mov dword [ebp + 0x14], esi
push str.SoftwareDownloadManagerPasswords_
lea ecx, [esp + 0x20]
call fcn.00622df8
lea eax, [esp + 0x20]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0x6fc418
push 0
push str.SoftwareDownloadManagerPasswords
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
pop edi
pop esi
pop ebp
pop ebx
test eax, eax
jne 0x5195f3
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 4]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0xc]
call fcn.00622d8a
mov ecx, dword [esp + 0x14]
xor eax, eax
mov dword fs:[0], ecx
add esp, 0x20
ret 4
Function at 0x51a120
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x64ac00
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x6f7b78]
push ebp
push esi
push edi
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov ebp, dword [esp + 0x24]
lea eax, [esp + 0xc]
push 1
push eax
mov ecx, dword [ebp + 4]
mov edx, dword [ebp]
mov eax, dword [ebp + 0x24]
push ecx
mov ecx, dword [0x6fcb2c]
push edx
push eax
mov dword [esp + 0x30], 0
call fcn.00517990
test eax, eax
je 0x51a253
mov eax, dword [ebp + 0xc]
mov esi, dword [esp + 0xc]
test eax, eax
je 0x51a18e
push eax
call fcn.00622af4
add esp, 4
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.00622acb
mov edx, eax
add esp, 4
test edx, edx
mov dword [ebp + 0xc], edx
jne 0x51a1b9
push str.URL::set_userName:_Not_enough_memory__n
mov ecx, ebp
call fcn.005df030
jmp 0x51a1d8
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0xc]
push str.anonymous
push ecx
call fcn.0060a000
add esp, 8
test eax, eax
jne 0x51a1f5
mov byte [ebp + 0x18c], 1
mov eax, dword [ebp + 0x10]
mov esi, dword [esp + 0x10]
test eax, eax
je 0x51a209
push eax
call fcn.00622af4
add esp, 4
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.00622acb
mov edx, eax
add esp, 4
test edx, edx
mov dword [ebp + 0x10], edx
jne 0x51a234
push str.URL::set_password:_Not_enough_memory__n
mov ecx, ebp
call fcn.005df030
jmp 0x51a253
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 1
call fcn.00622d8a
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call fcn.00622d8a
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x51a920
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
and eax, 0xffff
push 0x6e5564
push eax
mov dword [esp + 0x18], ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x51a9eb
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push edi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x51a9eb
push ebp
push 0x22
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x51a9eb
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x51a9e4
test edi, edi
je 0x51a9e4
mov ecx, ebp
mov esi, eax
mov edx, ecx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push eax
push 0
push ebx
call dword [0x6fc3d4]
test eax, eax
jne 0x51a9e4
mov ecx, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x14]
call fcn.0051aa00
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 8
Function at 0x524340
Capabilities:
Delete registry key
Set registry value

Disassembly:
mov dword [ecx], 0x660534
jmp 0x5244d0
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x64b8a8
push eax
mov dword fs:[0], esp
sub esp, 0x10
lea eax, [esp + 0xc]
push ebx
mov ebx, ecx
push esi
lea ecx, [esp + 0xc]
push eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push ecx
push 0
push 0xf003f
push 0
push 0x6fc418
push 0
push str.SoftwareDownloadManagerGrabberSts
push 0x80000001
call esi
test eax, eax
jne 0x5245d7
mov edx, dword [esp + 0xc]
push str.RecentProjects
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea eax, [esp + 0x14]
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0x6fc418
push 0
push str.RecentProjects
push edx
call esi
test eax, eax
jne 0x5245d7
mov eax, dword [ebx + 0x14]
xor esi, esi
test eax, eax
jle 0x5245c3
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push edi
lea edi, [ebx + 4]
mov eax, dword [0x6f7b78]
mov dword [esp + 0x10], eax
inc esi
lea ecx, [esp + 0x10]
push esi
push 0x6c9150
push ecx
mov dword [esp + 0x34], 0
call fcn.0061fae1
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
add esp, 0xc
push 4
push edi
push 4
push 0
push edx
push eax
call ebp
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call fcn.00622d8a
mov eax, dword [ebx + 0x14]
add edi, 4
cmp esi, eax
jl 0x52456e
pop edi
pop ebp
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call esi
mov edx, dword [esp + 0xc]
push edx
call esi
mov ecx, dword [esp + 0x18]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret

Function at 0x5243c0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x64b888
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov dword [esp + 0x10], ecx
lea eax, [esp + 0x14]
lea ecx, [esp + 4]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0x6fc418
push 0
push str.SoftwareDownloadManagerGrabberStsRecentProjects
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x5244b0
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push esi
push edi
mov edi, 4
mov edx, dword [0x6f7b78]
mov dword [esp + 0xc], edx
push edi
lea eax, [esp + 0x10]
push 0x6c9150
push eax
mov dword [esp + 0x38], 0
call fcn.0061fae1
mov eax, dword [esp + 0x18]
add esp, 0xc
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x14]
push edx
push 0
push 0
push eax
push ecx
mov dword [esp + 0x2c], 4
call ebx
test eax, eax
jne 0x524493
mov edx, dword [0x6fc9fc]
test edx, edx
jle 0x524493
mov ecx, dword [0x6fc9f8]
mov esi, dword [esp + 0x18]
cmp esi, dword [ecx]
je 0x524489
inc eax
add ecx, 0xc
cmp eax, edx
jl 0x52447b
jmp 0x524493
mov ecx, dword [esp + 0x1c]
push esi
call fcn.00524350
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.00622d8a
dec edi
test edi, edi
jg 0x52441c
pop edi
pop esi
pop ebx
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x5249b0
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x14
add ecx, 0xc
push ebx
push ebp
push esi
push edi
push eax
push 0x6c910c
push ecx
call fcn.0061fae1
mov eax, dword [0x6fcfa4]
xor ebx, ebx
add esp, 0xc
cmp eax, ebx
jne 0x5249f2
push str.Advapi32.dll
call fcn.0044abc0
add esp, 4
cmp eax, ebx
mov dword [0x6fcfa4], eax
je 0x524b32
mov ecx, dword [0x6fcfa8]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp ecx, ebx
jne 0x524a14
push str.GetNamedSecurityInfoA
push eax
call esi
mov dword [0x6fcfa8], eax
mov eax, dword [0x6fcfa4]
mov ecx, dword [0x6fcfac]
cmp ecx, ebx
jne 0x524a33
push str.SetNamedSecurityInfoA
push eax
call esi
mov ecx, eax
mov eax, dword [0x6fcfa4]
mov dword [0x6fcfac], ecx
cmp dword [0x6fcfa8], ebx
je 0x524b32
cmp ecx, ebx
je 0x524b32
push str.AllocateAndInitializeSid
push eax
call esi
mov edi, eax
cmp edi, ebx
je 0x524b32
mov ecx, dword [0x6fcfa4]
push str.GetLengthSid
push ecx
call esi
cmp eax, ebx
mov dword [esp + 0x14], eax
je 0x524b32
mov edx, dword [0x6fcfa4]
push str.InitializeAcl
push edx
call esi
cmp eax, ebx
mov dword [esp + 0x18], eax
je 0x524b32
mov eax, dword [0x6fcfa4]
push str.AddAccessAllowedAce
push eax
call esi
mov ebp, eax
cmp ebp, ebx
je 0x524b32
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 1
push edx
mov byte [esp + 0x48], bl
mov byte [esp + 0x49], bl
mov byte [esp + 0x4a], bl
mov byte [esp + 0x4b], bl
mov byte [esp + 0x4c], bl
mov byte [esp + 0x4d], 1
call edi
mov eax, dword [esp + 0x10]
push eax
call dword [esp + 0x18]
mov esi, eax
add esi, 0x10
push esi
call fcn.0060a459
add esp, 4
mov edi, eax
push 2
push esi
push edi
call dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
push ecx
push 0x10000000
push 2
push edi
call ebp
mov edx, dword [esp + 0x28]
push ebx
push edi
push ebx
push ebx
push 4
push 4
push edx
call dword [0x6fcfac]
mov esi, eax
push edi
neg esi
sbb esi, esi
inc esi
call fcn.00609aba
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret 4
Function at 0x524b90
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword [0x6fcfa4]
sub esp, 0x14
push ebx
xor ebx, ebx
push ebp
push esi
cmp eax, ebx
push edi
mov esi, ecx
jne 0x524bbe
push str.Advapi32.dll
call fcn.0044abc0
add esp, 4
cmp eax, ebx
mov dword [0x6fcfa4], eax
je 0x524d2b
mov ecx, dword [0x6fcfa8]
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp ecx, ebx
jne 0x524be3
push str.GetNamedSecurityInfoA
push eax
call ebp
mov ecx, eax
mov eax, dword [0x6fcfa4]
mov dword [0x6fcfa8], ecx
mov edx, dword [0x6fcfac]
cmp edx, ebx
jne 0x524c03
push str.SetNamedSecurityInfoA
push eax
call ebp
mov ecx, dword [0x6fcfa8]
mov edx, eax
mov dword [0x6fcfac], edx
cmp ecx, ebx
je 0x524d2b
cmp edx, ebx
je 0x524d2b
lea eax, [esi + 8]
add esi, 4
push esi
push ebx
push eax
push ebx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x38]
push ebx
push 4
push 4
push eax
call ecx
test eax, eax
jne 0x524d2b
mov ecx, dword [0x6fcfa4]
push str.AllocateAndInitializeSid
push ecx
call ebp
mov edi, eax
cmp edi, ebx
je 0x524d2b
mov edx, dword [0x6fcfa4]
push str.GetLengthSid
push edx
call ebp
mov esi, eax
cmp esi, ebx
je 0x524d2b
mov eax, dword [0x6fcfa4]
push str.InitializeAcl
push eax
call ebp
cmp eax, ebx
mov dword [esp + 0x14], eax
je 0x524d2b
mov ecx, dword [0x6fcfa4]
push str.AddAccessDeniedAce
push ecx
call ebp
mov ebp, eax
cmp ebp, ebx
je 0x524d2b
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 1
push eax
mov byte [esp + 0x48], bl
mov byte [esp + 0x49], bl
mov byte [esp + 0x4a], bl
mov byte [esp + 0x4b], bl
mov byte [esp + 0x4c], bl
mov byte [esp + 0x4d], 1
call edi
mov ecx, dword [esp + 0x10]
push ecx
call esi
mov esi, eax
add esi, 0x10
push esi
call fcn.0060a459
add esp, 4
mov edi, eax
push 2
push esi
push edi
call dword [esp + 0x20]
mov edx, dword [esp + 0x10]
push edx
push 0x10000000
push 2
push edi
call ebp
mov eax, dword [esp + 0x28]
push ebx
push edi
push ebx
push ebx
push 4
push 4
push eax
call dword [0x6fcfac]
test eax, eax
push edi
je 0x524d1d
call fcn.00609aba
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
call fcn.00609aba
mov ecx, dword [esp + 0x1c]
add esp, 4
mov dword [ecx], ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
Function at 0x526cc0
Capabilities:
Get hostname

Disassembly:
push ecx
push ebx
lea eax, [esp + 4]
lea ebx, [ecx + 0x40c]
push eax
push ebx
mov dword [esp + 0xc], 0x32
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
jne 0x526d04
push esi
push edi
mov edi, str.default
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x526d10
Capabilities:
Get session user name

Disassembly:
push ecx
push ebx
lea eax, [esp + 4]
lea ebx, [ecx + 0x525]
push eax
push ebx
mov dword [esp + 0xc], 0x32
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x526d54
push esi
push edi
mov edi, str.default_user
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x52a2a0
Capabilities:
Delete file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x64be48
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebp
push esi
mov esi, ecx
xor ebp, ebp
mov eax, dword [esi + 0x18]
cmp eax, ebp
jne 0x52a2c8
lea eax, [esi + 0x1c]
push 0x6cbe50
push eax
call fcn.0060b21f
mov ecx, eax
add esp, 8
cmp ecx, ebp
mov dword [esp + 0x14], ecx
je 0x52a419
mov eax, dword [0x6f7b78]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x24], ebp
cmp eax, ebp
mov dword [esp + 0x10], ebp
jle 0x52a3ee
push ebx
push edi
mov ecx, dword [0x6f7b78]
mov dword [esp + 0x14], ecx
mov edx, dword [esi + 8]
push 0
push 0
push 0
mov eax, dword [edx + ebp + 8]
push 0
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
mov byte [esp + 0x4c], 1
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
jle 0x52a3c3
push edi
lea ecx, [esp + 0x18]
call fcn.00623157
mov ebx, eax
mov eax, dword [esi + 8]
push 0
push 0
mov eax, dword [eax + ebp + 8]
push edi
push ebx
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x52a3c3
mov ecx, dword [0x6f7b78]
mov dword [esp + 0x10], ecx
mov edx, dword [esi + 8]
push ebx
mov byte [esp + 0x30], 2
mov ecx, dword [edx + ebp + 4]
lea eax, [edx + ebp]
push ecx
mov edx, dword [eax]
lea eax, [esp + 0x18]
push edx
push str._ld__s_r_n_s_r_n
push eax
call fcn.0061fae1
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x24]
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 1
push edx
call fcn.0060b0b5
add esp, 0x24
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 1
call fcn.00622d8a
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 0
call fcn.00622d8a
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 0xc]
inc eax
add ebp, 0xc
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x52a302
mov ecx, dword [esp + 0x1c]
pop edi
pop ebx
push ecx
call fcn.0060b038
mov eax, dword [esi + 0x24]
add esp, 4
test eax, eax
jne 0x52a401
lea eax, [esi + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], 0xffffffff
call fcn.00622d8a
mov ecx, dword [esp + 0x1c]
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x52b320
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x64bf70
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
mov al, byte [ecx + 0x14]
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
test al, al
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 4], ebx
jne 0x52b43b
mov eax, dword [0x6fca48]
cmp eax, ebx
jne 0x52b369
mov eax, 0x6fca4c
mov edx, str._sfoldresHistory.txt
lea esi, [ecx + 0x18]
test edx, edx
je 0x52b43b
cmp eax, ebx
je 0x52b43b
push eax
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x2c], ebx
mov word [ebp - 0x30], bx
call fcn.00401f20
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00401070
lea ecx, [ebp - 0x40]
call fcn.004027c0
push ebx
push str._sfoldresHistory.txt
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.004027e0
mov edi, dword [ebp - 0x38]
lea ecx, [ebp - 0x34]
call fcn.00401f10
push eax
call fcn.00609a4e
lea ebx, [eax + edi + 2]
lea eax, [ebx + ebx]
push eax
call fcn.00622acb
mov edi, eax
add esp, 8
test edi, edi
mov dword [esi], edi
je 0x52b41e
lea ecx, [ebx + ebx]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [ebp - 0x34]
call fcn.00401f10
push eax
lea ecx, [ebp - 0x40]
call fcn.00401f10
push eax
mov eax, dword [esi]
push ebx
push eax
call fcn.006099de
mov ecx, dword [esi]
push ecx
call fcn.00609a4e
add esp, 0x14
mov dword [esi + 8], eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.00401070
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0
call fcn.00401070
mov ecx, dword [ebp - 0x14]
xor ebx, ebx
mov eax, dword [ecx + 0x18]
cmp eax, ebx
jne 0x52b445
lea eax, [ecx + 0x1c]
push ebx
push ebx
push 2
push ebx
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 0x18], edi
je 0x52b4f3
mov eax, dword [ebp - 0x14]
cmp ebx, dword [eax + 8]
jge 0x52b4e7
mov eax, dword [eax + 0x10]
lea edx, [ebx + ebx*2]
xor esi, esi
mov ecx, dword [eax + edx*4]
lea eax, [eax + edx*4]
cmp ecx, esi
jne 0x52b483
lea ecx, [eax + 4]
push ecx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], esi
mov word [ebp - 0x24], si
call fcn.00401f20
mov eax, dword [ebp - 0x28]
cmp eax, esi
jne 0x52b4da
lea eax, [ebp - 0x24]
lea esi, [ebp - 0x24]
lea ecx, [ebp - 0x1c]
push 0
push ecx
push eax
call fcn.00609a4e
add esp, 4
shl eax, 1
push eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call esi
lea edx, [ebp - 0x1c]
push 0
push edx
push 2
push 0x6e5d70
push edi
call esi
lea ecx, [ebp - 0x28]
call fcn.00401070
inc ebx
jmp 0x52b466
mov esi, eax
jmp 0x52b4a3
cmp edi, 0xffffffff
je 0x52b4f3
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x52cfc0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x64c206
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [esp + 8], esi
lea eax, [esi + 0x18]
mov dword [esi + 0x14], ebx
mov dword [esi + 0x1c], ebx
mov word [eax], bx
lea ecx, [esi + 0x40]
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x44], ebx
mov dword [esp + 0x18], ebx
mov word [ecx], bx
push 0xffffffffffffffff
push ebx
push ebx
push 0x17
push 1
push 1
push 0x7e3
lea ecx, [esp + 0x28]
mov byte [esp + 0x34], 1
mov dword [esi], 0x660f20
mov dword [esi + 0x50], ebx
mov byte [esi + 0x20], bl
mov byte [esi + 0xc], bl
mov dword [esi + 8], 0x78
mov dword [esi + 0x10], ebx
mov dword [esi + 0x48], 1
mov byte [esi + 4], 1
mov byte [esi + 0x21], bl
mov byte [esi + 0x22], bl
mov byte [esi + 0x23], bl
mov byte [esi + 0x34], bl
mov byte [esi + 0x37], bl
mov byte [esi + 0x35], bl
mov byte [esi + 0x36], bl
mov dword [esi + 0x30], 0x7f
call fcn.0061fbac
mov edx, dword [eax]
push 0xffffffffffffffff
push ebx
push 0x1e
push 7
push 1
push 1
mov dword [esi + 0x24], edx
push 0x7e3
lea ecx, [esp + 0x28]
mov dword [esi + 0x28], ebx
call fcn.0061fbac
mov eax, dword [eax]
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x2c], eax
mov byte [esi + 0x38], bl
mov dword [esi + 0x4c], ebx
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret