joyce8/EMBER2024-capa huggingface dataset:
Function at 0x59004ea0
Capabilities:
Set registry value

Disassembly:
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp]
push eax
push ecx
push 0x80000002
mov dword [esp + 0xc], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x59004efe
push esi
mov esi, dword [esp + 0x14]
test esi, esi
je 0x59004eda
push esi
call fcn.5908146d
add esp, 4
lea eax, [eax + eax + 2]
jmp 0x59004edc
xor eax, eax
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 8]
push esi
push 1
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ecx
ret 0xc

Function at 0x59004f10
Capabilities:
Set registry value

Disassembly:
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp]
push eax
push ecx
push 0x80000002
mov dword [esp + 0xc], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x59004f57
mov ecx, dword [esp]
lea edx, [esp + 0x10]
push 4
push edx
push 4
push eax
mov eax, dword [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ecx
ret 0xc

Function at 0x59004f60
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov ecx, dword [esp + 0xc]
lea eax, [esp]
push esi
push eax
xor esi, esi
push ecx
push 0x80000002
mov dword [esp + 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x59004ffa
mov ecx, dword [esp + 4]
push ebx
lea edx, [esp + 0x14]
push edi
mov edi, dword [esp + 0x1c]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
push eax
lea eax, [esp + 0x18]
push eax
push esi
push edi
push ecx
call ebx
mov eax, dword [esp + 0x18]
cmp eax, 2
jb 0x59004fe4
add eax, 2
mov dword [esp + 0x18], eax
shr eax, 1
lea edx, [eax + eax]
push edx
call fcn.591315b0
mov esi, eax
add esp, 4
test esi, esi
je 0x59004fe4
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push esi
push ecx
push 0
push edi
push edx
call ebx
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop ebx
pop esi
add esp, 8
ret 8
mov eax, esi
pop esi
add esp, 8
ret 8

Function at 0x59005010
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
mov ecx, dword [esp + 0x10]
lea eax, [esp]
push eax
push ecx
push 0x80000002
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x59005074
mov dword [esp + 8], eax
lea edx, [esp + 0x10]
lea eax, [esp + 4]
push edx
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esp + 8]
push ecx
push 0
push edx
push eax
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 4]
add esp, 0xc
ret 8
Function at 0x5900d5c0
Capabilities:
Get file size

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5913e998
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
push ebx
xor ebx, ebx
push esi
cmp eax, ebx
push edi
je 0x5900d612
mov edi, dword [esp + 0x20]
cmp edi, ebx
je 0x5900d612
push eax
lea ecx, [esp + 0x20]
call fcn.590996a0
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], ebx
cmp dword [eax - 8], ebx
jne 0x5900d626
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call fcn.59099e00
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret
push ebx
push ebx
push 3
push ebx
push ebx
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x5900d65e
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [edi], eax
je 0x5900d655
mov ebx, 1
jmp 0x5900d657
mov dword [edi], ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call fcn.59099e00
mov ecx, dword [esp + 0xc]
pop edi
mov eax, ebx
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret
Function at 0x59010a70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5913edf8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
mov eax, dword [0x59155850]
push esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x58], 0
mov dword [esp + 0x18], eax
mov byte [esp + 0x58], 1
mov dword [esp + 0x14], eax
mov byte [esp + 0x58], 2
mov dword [esp + 0x10], eax
mov byte [esp + 0x58], 3
mov dword [esp + 0xc], eax
mov byte [esp + 0x58], 4
mov dword [esp + 8], eax
mov byte [esp + 0x58], 5
mov dword [esp + 4], eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x58], 6
call fcn.590a4b00
lea ecx, [esp + 0x30]
mov byte [esp + 0x58], 7
call fcn.590a4b00
lea ecx, [esp + 0x20]
mov byte [esp + 0x58], 8
call fcn.590ab1c0
mov esi, dword [esp + 0x60]
mov ecx, dword [esp + 0x44]
mov byte [esp + 0x58], 9
lea eax, [esi + 0x14]
push eax
push ecx
lea ecx, [esp + 0x48]
call fcn.590a5110
lea edx, [esi + 0x10]
lea ecx, [esp + 0x60]
push edx
call fcn.5909e780
push eax
mov eax, dword [esp + 0x38]
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x60], 0xa
call fcn.590a5110
lea ecx, [esp + 0x60]
mov byte [esp + 0x58], 9
call fcn.5909f180
mov esi, dword [esi + 8]
mov ecx, dword [esp + 0x24]
push esi
push ecx
lea ecx, [esp + 0x28]
call fcn.590ab400
lea edx, [esp + 0x20]
lea eax, [esp + 0x30]
push edx
lea ecx, [esp + 0x44]
push eax
lea edx, [esp + 0x1c]
push ecx
lea eax, [esp + 0x24]
push edx
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x1c]
push ecx
lea eax, [esp + 0x24]
push edx
lea ecx, [esp + 0x2c]
push eax
push ecx
lea edx, [esp + 0x40]
push edx
push 4
push 0x5917af24
call fcn.59021130
add esp, 0x30
lea ecx, [esp + 0x20]
mov byte [esp + 0x58], 8
call fcn.590ab1d0
lea ecx, [esp + 0x30]
mov byte [esp + 0x58], 7
call fcn.590a4b10
lea ecx, [esp + 0x40]
mov byte [esp + 0x58], 6
call fcn.590a4b10
lea ecx, [esp + 4]
mov byte [esp + 0x58], 5
call fcn.5909f180
lea ecx, [esp + 8]
mov byte [esp + 0x58], 4
call fcn.5909f180
lea ecx, [esp + 0xc]
mov byte [esp + 0x58], 3
call fcn.5909f180
lea ecx, [esp + 0x10]
mov byte [esp + 0x58], 2
call fcn.5909f180
lea ecx, [esp + 0x14]
mov byte [esp + 0x58], 1
call fcn.5909f180
lea ecx, [esp + 0x18]
mov byte [esp + 0x58], 0
call fcn.5909f180
lea ecx, [esp + 0x1c]
mov dword [esp + 0x58], 0xffffffff
call fcn.5909f180
mov ecx, dword [esp + 0x50]
pop esi
mov dword fs:[0], ecx
add esp, 0x58
ret
Function at 0x5901a750
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x59140233
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, ecx
mov ecx, dword [0x59155850]
mov dword [esp], eax
mov dword [eax + 0x1c], ecx
mov edx, dword [0x59155850]
mov dword [esp + 0xc], 0
mov dword [eax + 0x20], edx
mov ecx, dword [0x59155850]
mov byte [esp + 0xc], 1
mov dword [eax + 0x24], ecx
mov edx, dword [0x59155850]
mov byte [esp + 0xc], 2
mov dword [eax + 0x28], edx
mov ecx, dword [0x59155850]
mov byte [esp + 0xc], 3
mov dword [eax + 0x2c], ecx
mov edx, dword [0x59155850]
mov byte [esp + 0xc], 4
mov dword [eax + 0x30], edx
mov ecx, dword [0x59155850]
mov byte [esp + 0xc], 5
mov dword [eax + 0x34], ecx
mov edx, dword [0x59155850]
mov byte [esp + 0xc], 6
mov dword [eax + 0x38], edx
mov ecx, dword [0x5915584c]
mov byte [esp + 0xc], 7
mov dword [eax + 0x3c], ecx
mov ecx, dword [esp + 4]
mov dword [esp + 0xc], 0xffffffff
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x5901c360
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x59140707
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
push edi
mov edi, dword [esp + 0x28]
mov dword [esp + 0x10], 0
test edi, edi
je 0x5901c51d
mov esi, dword [esp + 0x2c]
test esi, esi
je 0x5901c51d
push ebx
push ebp
push 0x5919dc50
lea ecx, [esp + 0x34]
call fcn.5909e9e0
mov ebp, dword [esp + 0x38]
mov dword [esp + 0x24], 1
test ebp, ebp
je 0x5901c4ba
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x5901c4ba
mov dword [esp + 0x34], edi
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x34]
push ebp
push eax
push ecx
call fcn.5900f390
mov ebx, eax
add esp, 0xc
cmp ebx, 0xffffffff
je 0x5901c4ba
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x3c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ebp
mov esi, ecx
mov ecx, dword [esp + 0x34]
add esi, ebx
push edx
add esi, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x14]
not ecx
dec ecx
sub eax, ebx
sub eax, ecx
push eax
push esi
call fcn.5900f390
mov ebp, eax
add esp, 0xc
cmp ebp, 0xffffffff
je 0x5901c4b6
push ebp
push esi
lea ecx, [esp + 0x1c]
call fcn.5909ec30
mov eax, dword [esp + 0x30]
mov byte [esp + 0x24], 2
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x5901c45b
push 0x59179460
lea ecx, [esp + 0x34]
call fcn.5909fdd0
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x34]
call fcn.5909fe30
mov edi, dword [esp + 0x38]
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x24], 1
repne scasb al, byte es:[edi]
mov edi, dword [esp + 0x3c]
not ecx
dec ecx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x10]
add ebp, edx
mov edx, dword [esp + 0x34]
not ecx
dec ecx
add ecx, ebp
add ecx, ebx
add edx, ecx
sub eax, ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x34], edx
mov dword [esp + 0x10], eax
call fcn.5909f180
mov ebp, dword [esp + 0x38]
jmp 0x5901c3d2
mov ebp, dword [esp + 0x38]
mov eax, dword [0x5919cca0]
test eax, eax
je 0x5901c4e2
mov eax, dword [esp + 0x30]
push eax
push ebp
push str.GetEMailSpecialstrLoopW___S___s_
push str.MailLog
push 0xffffffffffffffff
push 0x5919cc34
call fcn.5907cd70
add esp, 0x18
mov esi, dword [esp + 0x2c]
lea ecx, [esp + 0x30]
push ecx
mov ecx, esi
call fcn.5909e780
lea ecx, [esp + 0x30]
mov dword [esp + 0x18], 1
mov byte [esp + 0x24], 0
call fcn.5909f180
pop ebp
pop ebx
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov esi, dword [esp + 0x24]
push 0x5919dc50
mov ecx, esi
call fcn.5909e9e0
mov dword [esp + 0x10], 1
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x59023ea0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x59141958
push eax
mov dword fs:[0], esp
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
test ebp, ebp
je 0x59024058
mov edi, dword [esp + 0x24]
test edi, edi
je 0x59024058
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x59024058
push 0x1001
xor ebx, ebx
call fcn.591315b0
mov esi, eax
add esp, 4
test esi, esi
je 0x59024019
push 0x180
push 0x8000
push ebp
call fcn.590821dd
mov ebp, eax
add esp, 0xc
cmp ebp, 0xffffffff
je 0x5902400a
cmp edi, 0x1000
mov ebx, edi
jbe 0x59023f23
mov ebx, 0x1000
mov ecx, 0x400
xor eax, eax
mov edi, esi
push ebx
push esi
push ebp
rep stosd dword es:[edi], eax
call fcn.5908298b
push ebp
call fcn.59081f0d
push 0x5917a4c4
push str.sha
push ebx
lea eax, [esp + 0x40]
push esi
push eax
call fcn.5901c1f0
add esp, 0x24
mov edi, dword [esp + 0x28]
push eax
mov ecx, edi
mov dword [esp + 0x1c], 0
call fcn.5909f310
or ebp, 0xffffffff
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], ebp
call fcn.5909f180
mov ecx, dword [edi]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x59023fb8
push 0x5917a428
push str.sha
push ebx
lea edx, [esp + 0x34]
push esi
push edx
call fcn.5901c1f0
add esp, 0x14
push eax
mov ecx, edi
mov dword [esp + 0x1c], 1
call fcn.5909f310
lea ecx, [esp + 0x28]
mov dword [esp + 0x18], ebp
call fcn.5909f180
push 0x5917a4c4
push str.size
push ebx
lea eax, [esp + 0x2c]
push esi
push eax
call fcn.5901c1f0
mov ecx, dword [esp + 0x34]
push 0xa
push 0
push ecx
mov dword [esp + 0x38], 2
call fcn.59081b82
mov edx, dword [esp + 0x4c]
add esp, 0x20
lea ecx, [esp + 0x20]
mov ebx, 1
mov dword [edx], eax
mov dword [esp + 0x18], ebp
call fcn.5909f180
push esi
call fcn.591315d9
add esp, 4
jmp 0x5902401d
mov edi, dword [esp + 0x28]
push esi
call fcn.591315d9
add esp, 4
jmp 0x5902401d
mov edi, dword [esp + 0x28]
mov eax, dword [0x5919cca0]
test eax, eax
je 0x59024043
mov eax, dword [edi]
push eax
push ebx
push str.GetQQexAttachHeadData__bRet:_d____s_
push str.MailLog
push 0xffffffffffffffff
push 0x5919cc34
call fcn.5907cd70
add esp, 0x18
mov eax, ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
xor eax, eax
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret
Function at 0x59025590
Capabilities:
Delete file

Disassembly:
mov eax, dword [0x5919cca0]
push esi
mov esi, dword [esp + 8]
push edi
test eax, eax
je 0x590255b9
push esi
push str.CorrectAttachData__type:_08x_
push str.Combine
push 0xffffffffffffffff
push 0x5919cc34
call fcn.5907cd70
add esp, 0x14
cmp esi, 0x3d0
jne 0x59025663
mov edi, dword [esp + 0x18]
mov esi, dword [edi + 4]
cmp esi, 1
jl 0x59025663
dec esi
js 0x59025663
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x28]
mov eax, dword [ebx]
cmp dword [eax + esi*4], 0x3d1
jne 0x5902565e
mov eax, dword [0x5919cca0]
test eax, eax
je 0x59025628
mov ecx, dword [ebx + 4]
mov edx, dword [ebp + 4]
mov eax, dword [edi + 4]
push ecx
mov ecx, dword [esp + 0x20]
push edx
push eax
mov edx, dword [ecx + 4]
push edx
push esi
push str.CorrectAttachData__remove__i_:__d____d__d__d__d_
push str.Combine
push 0xffffffffffffffff
push 0x5919cc34
call fcn.5907cd70
add esp, 0x24
mov eax, dword [edi]
mov ecx, dword [eax + esi*4]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 0x1c]
push 1
push esi
call fcn.590a56e0
push 1
push esi
mov ecx, edi
call fcn.590a56e0
push 1
push esi
mov ecx, ebp
call fcn.590ab4e0
push 1
push esi
mov ecx, ebx
call fcn.590ab4e0
dec esi
jns 0x590255e6
pop ebp
pop ebx
pop edi
pop esi
ret
Function at 0x59051e90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x59147ea8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], 0x591508f8
lea edi, [esi + 0x1b8]
push edi
mov dword [esp + 0x18], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x1d0]
mov dword [esp + 0x2c], 0
test eax, eax
jne 0x59051eee
mov eax, dword [esp + 0x34]
test eax, eax
je 0x59051eee
mov ebp, dword [esp + 0x3c]
cmp ebp, 2
je 0x59051f13
cmp ebp, 1
je 0x59051f13
push edi
mov dword [esp + 0x30], 0xffffffff
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
lea eax, [esi + 0xe8]
push 1
push eax
lea ecx, [esp + 0x20]
call fcn.590ac020
mov edx, dword [esp + 0x34]
mov eax, dword [esi + 0x12c]
lea ecx, [esi + 0x128]
push edx
push eax
mov byte [esp + 0x34], 1
call fcn.590a4330
mov eax, dword [0x59155850]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x38]
mov byte [esp + 0x2c], 2
test eax, eax
je 0x59051f61
push eax
lea ecx, [esp + 0x10]
call fcn.5909f400
mov eax, dword [esi + 0x14c]
lea ecx, [esi + 0x148]
lea edx, [esp + 0xc]
push edx
push eax
call fcn.590a5110
mov eax, dword [esi + 0x13c]
lea ecx, [esi + 0x138]
push ebp
push eax
call fcn.590ab400
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 1
call fcn.5909f180
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 0
call fcn.590ac080
push edi
mov dword [esp + 0x30], 0xffffffff
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x24]
pop edi
pop esi
mov eax, 1
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
Function at 0x59054620
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x59148297
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
xor eax, eax
lea ecx, [esp + 8]
mov dword [esp + 0x18], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
push esi
mov dword [esp + 0x14], eax
push ecx
mov dword [esp + 0x1c], eax
call dword [0x59199034]
lea edx, [esp + 0xc]
lea eax, [esp + 8]
push edx
push eax
call fcn.590b4490
add esp, 8
mov dword [esp + 0x28], 1
call fcn.59001210
push eax
lea ecx, [esp + 8]
call fcn.590994d0
push 0x59179380
lea ecx, [esp + 8]
mov byte [esp + 0x2c], 2
call fcn.5909aa10
lea ecx, [esp + 8]
push ecx
lea ecx, [esp + 8]
call fcn.5909aa70
push 0x5917fc64
lea ecx, [esp + 8]
call fcn.5909aa10
mov esi, dword [esp + 0x30]
lea edx, [esp + 4]
push edx
mov ecx, esi
call fcn.590993d0
mov dword [esp + 0x1c], 1
lea ecx, [esp + 4]
mov byte [esp + 0x28], 1
call fcn.59099e00
lea ecx, [esp + 8]
mov byte [esp + 0x28], 0
call fcn.59099e00
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret
Function at 0x59055100
Capabilities:
Delete directory

Disassembly:
push 0xffffffffffffffff
push 0x59148427
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8d0
push ebx
push ebp
push esi
mov esi, 1
push edi
mov ebx, ecx
xor edi, edi
push esi
push 0x5919db20
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], edi
call fcn.590ac020
mov eax, dword [0x5919db44]
mov dword [esp + 0x8e8], edi
cmp eax, edi
jle 0x590552f9
or ebp, 0xffffffff
lea ecx, [esp + 0x1c]
mov dword [esp + 0x8e8], ebp
call fcn.590ac080
push esi
push 0x5919db20
lea ecx, [esp + 0x24]
call fcn.590ac020
mov edx, dword [0x5919db40]
mov eax, dword [0x5919db44]
mov dword [esp + 0x8e8], esi
mov ecx, 0x22e
mov esi, edx
lea edi, [esp + 0x28]
rep movsd dword es:[edi], dword [esi]
lea ecx, [eax - 1]
test ecx, ecx
je 0x590551b5
mov eax, ecx
shl eax, 5
sub eax, ecx
lea ecx, [eax + eax*8]
lea eax, [edx + 0x8b8]
shl ecx, 3
push ecx
push eax
push edx
call fcn.59081ba0
add esp, 0xc
mov eax, dword [0x5919db44]
dec eax
test eax, eax
mov dword [0x5919db44], eax
jg 0x590551cc
mov dword [esp + 0x10], 1
lea ecx, [esp + 0x1c]
mov dword [esp + 0x8e8], ebp
call fcn.590ac080
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 0x5919dc18
call fcn.590993d0
sub esp, 0x8b8
mov ecx, 0x22e
lea esi, [esp + 0x8e4]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov dword [esp + 0x11a4], ebp
call fcn.59055380
mov ecx, dword [0x5919dc18]
push 0x5919cc20
push ecx
call fcn.59082bc9
add esp, 8
test eax, eax
je 0x59055310
mov edx, dword [0x5919dc18]
push edx
call fcn.590bebb0
add esp, 4
test eax, eax
je 0x59055310
mov eax, dword [0x5919dc18]
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push eax
call esi
mov ecx, dword [0x5919dc18]
mov edi, 0x59179850
xor eax, eax
mov edx, dword [ecx - 8]
mov ecx, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
sub edx, ecx
mov ecx, 0x5919dc18
push edx
lea edx, [esp + 0x18]
push edx
call fcn.5909c420
mov eax, dword [0x5919cca0]
mov ebx, 3
test eax, eax
mov dword [esp + 0x8e8], ebx
je 0x590552d1
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
call fcn.5909e880
mov ecx, dword [eax]
mov byte [esp + 0x8e8], 4
push ecx
push str.AnalysBufferData_strLeave:_s
push str.winncap
push ebp
push 0x5919cc34
call fcn.5907cd70
add esp, 0x14
lea ecx, [esp + 0x18]
mov byte [esp + 0x8e8], bl
call fcn.5909f180
mov edx, dword [esp + 0x14]
push edx
call esi
push 0x5919cc20
mov ecx, 0x5919dc18
call fcn.5909a060
lea ecx, [esp + 0x14]
mov dword [esp + 0x8e8], ebp
call fcn.59099e00
jmp 0x59055310
or ebp, 0xffffffff
lea ecx, [esp + 0x1c]
mov dword [esp + 0x10], esi
mov dword [esp + 0x8e8], ebp
call fcn.590ac080
mov eax, dword [0x5919cca0]
test eax, eax
je 0x5905533e
mov eax, dword [0x5919dafc]
mov ecx, dword [0x5919db0c]
push eax
push ecx
push str.AnalysBufferData___d__d_
push str.Combine
push ebp
push 0x5919cc34
call fcn.5907cd70
add esp, 0x18
mov eax, dword [0x5919db0c]
test eax, eax
jg 0x59055350
mov eax, dword [0x5919dafc]
test eax, eax
jle 0x59055355
call fcn.59025d10
mov ecx, dword [esp + 0x8e0]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x8dc
ret
Function at 0x5905a5b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x59148b5a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push ebx
mov edx, eax
mov ebx, dword [esp + 0x18]
shl edx, 4
add edx, eax
mov eax, dword [ecx]
push ebp
push esi
mov ecx, dword [eax + edx*4]
lea ebp, [eax + edx*4]
push edi
mov dword [ebx], ecx
lea esi, [ebp + 4]
lea edi, [ebx + 4]
mov ecx, 6
lea edx, [ebp + 0x1c]
rep movsd dword es:[edi], dword [esi]
push edx
lea ecx, [ebx + 0x1c]
mov dword [esp + 0x14], 0
call fcn.5909e780
lea eax, [ebp + 0x20]
mov esi, 1
push eax
lea ecx, [ebx + 0x20]
mov dword [esp + 0x20], esi
call fcn.5909e780
lea ecx, [ebp + 0x24]
mov byte [esp + 0x1c], 2
push ecx
lea ecx, [ebx + 0x24]
call fcn.5909e780
lea edx, [ebp + 0x28]
lea ecx, [ebx + 0x28]
push edx
mov byte [esp + 0x20], 3
call fcn.5909e780
lea eax, [ebp + 0x2c]
lea ecx, [ebx + 0x2c]
push eax
mov byte [esp + 0x20], 4
call fcn.5909e780
lea ecx, [ebp + 0x30]
mov byte [esp + 0x1c], 5
push ecx
lea ecx, [ebx + 0x30]
call fcn.5909e780
lea edx, [ebp + 0x34]
lea ecx, [ebx + 0x34]
push edx
mov byte [esp + 0x20], 6
call fcn.5909e780
lea eax, [ebp + 0x38]
lea ecx, [ebx + 0x38]
push eax
mov byte [esp + 0x20], 7
call fcn.5909e780
lea ecx, [ebp + 0x3c]
mov byte [esp + 0x1c], 8
push ecx
lea ecx, [ebx + 0x3c]
call fcn.590993d0
mov edx, dword [ebp + 0x40]
mov byte [esp + 0x1c], 9
mov dword [ebx + 0x40], edx
mov byte [esp + 0x1c], 0
mov dword [esp + 0x10], esi
pop edi
mov eax, ebx
pop esi
mov ecx, dword [esp + 0xc]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x5905da40
Capabilities:
Check for time delay via gettickcount

Disassembly:
push 0xffffffffffffffff
push 0x5914909b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8e0
push ebx
mov ebx, ecx
push ebp
push esi
push edi
lea eax, [ebx + 0x1c]
push 1
push eax
lea ecx, [esp + 0x1c]
call fcn.590ac020
mov ebp, dword [esp + 0x900]
mov edx, dword [esp + 0x904]
sub esp, 0x10
mov eax, dword [esp + 0x918]
mov ecx, esp
xor edi, edi
mov dword [esp + 0x908], edi
mov dword [esp + 0x20], 1
mov dword [ecx], ebp
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x91c]
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], edx
mov ecx, ebx
call fcn.5905d1e0
mov esi, eax
cmp esi, edi
jne 0x5905db8c
mov edx, dword [esp + 0x90c]
mov ecx, 0x233
xor eax, eax
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x904]
mov ecx, dword [esp + 0x908]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [ebx + 0xc]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x910]
mov ecx, 0x22e
lea esi, [esp + 0x914]
lea edi, [esp + 0x38]
mov dword [esp + 0x34], eax
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebx + 4]
test edx, edx
jne 0x5905db3a
push 0x8d8
call fcn.591315b0
mov edx, eax
add esp, 4
test edx, edx
je 0x5905dbc8
jmp 0x5905db46
mov eax, dword [ebx + 0x14]
mov ecx, dword [edx]
dec eax
mov dword [ebx + 0xc], ecx
mov dword [ebx + 0x14], eax
mov dword [edx + 4], 0
mov dword [edx], esi
mov ecx, dword [ebx + 0x10]
lea ebp, [edx + 8]
inc ecx
xor eax, eax
mov dword [ebx + 0x10], ecx
mov ecx, 0x234
mov edi, ebp
test edx, edx
rep stosd dword es:[edi], eax
je 0x5905dbc8
mov ecx, 0x234
lea esi, [esp + 0x20]
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 4]
test eax, eax
je 0x5905db84
mov dword [eax + 4], edx
mov dword [ebx + 4], edx
jmp 0x5905dbc8
mov dword [ebx + 8], edx
mov dword [ebx + 4], edx
jmp 0x5905dbc8
mov edx, dword [esp + 0x910]
mov dword [esp + 0x10], edi
mov dword [esi + 0x14], edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x11ac]
mov edx, dword [esp + 0x11b4]
mov dword [esi], eax
mov eax, dword [esp + 0x938]
mov dword [esi + 0x3c], eax
push ecx
add esi, 0x18
push edx
push esi
call fcn.5906ae50
add esp, 0xc
lea ecx, [esp + 0x14]
mov dword [esp + 0x8f8], 0xffffffff
call fcn.590ac080
mov ecx, dword [esp + 0x8f0]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x8ec
ret 0x8cc