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

Disassembly:
push ebp
lea ebp, [esp - 0x254]
sub esp, 0x254
push 0xffffffffffffffff
push 0x5bed25
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x71c56c]
xor eax, ebp
mov dword [ebp + 0x250], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x25c]
mov esi, 1
mov edi, dword [ebp + 0x260]
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], eax
test edx, edx
je 0x50938b
mov eax, esi
lock xadd dword [edx], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 4], 0
cmp eax, 2
jne 0x5093b2
cmp word [ecx + 2], 0x3a
jne 0x5093b2
mov eax, 0x5c
lea ecx, [ebp - 0x1c]
mov word [ebp - 0x10], ax
push dword [ebp - 0x10]
call fcn.00488360
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00529a60
add esp, 8
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.004906d0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x50941c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x5093ec
cmp eax, 0x20
jne 0x50941c
mov edx, dword [ebp - 0x28]
lea eax, [ebp]
push eax
sub esp, 0xc
mov ecx, esp
mov dword [ecx], edx
mov eax, dword [ebp - 0x24]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x20]
mov dword [ecx + 8], eax
test edx, edx
je 0x50940e
lock xadd dword [edx], esi
call fcn.00508780
add esp, 0x10
test al, al
cmovne ebx, dword [ebp]
test edi, edi
je 0x509428
cmp ebx, 0xffffffff
setne al
mov byte [edi], al
cmp ebx, 0xffffffff
jne 0x509431
xor bl, bl
jmp 0x509437
shr ebx, 4
and bl, 1
mov ecx, dword [ebp - 0x28]
or esi, 0xffffffff
test ecx, ecx
je 0x50945b
mov eax, esi
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x50945b
push 4
push 2
push dword [ebp - 0x28]
call fcn.004597e0
add esp, 0xc
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x50947a
lock xadd dword [eax], esi
cmp esi, 1
jne 0x50947a
push 4
push 2
push dword [ebp - 0x1c]
call fcn.004597e0
add esp, 0xc
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x250]
xor ecx, ebp
call fcn.0058e709
lea esp, [ebp + 0x254]
pop ebp
ret
Function at 0x50a780
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5be5d5
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x71c56c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.00502580
test al, al
je 0x50a7f8
push str.Empty_filename_passed_to_function
movaps xmm0, xmmword [0x5cecd0]
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x14], 0x5c7218
movups xmmword [ebp - 0x24], xmm0
call fcn.0049b510
add esp, 8
call fcn.0059acca
mov dword [eax], 0x16
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
call fcn.005027b0
xor ecx, ecx
mov dword [ebp - 4], 0
push 1
mov word [ebp - 0x10], cx
push ecx
push dword [ebp - 0x10]
mov ecx, eax
call fcn.0048bdf0
mov ecx, dword [ebp - 0x1c]
cmp eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
setne bl
or esi, 0xffffffff
test ecx, ecx
je 0x50a853
mov eax, esi
lock xadd dword [ecx], eax
cmp eax, 1
setne al
test al, al
jne 0x50a853
push 4
push 2
push dword [ebp - 0x1c]
call fcn.004597e0
add esp, 0xc
test bl, bl
je 0x50a861
push str.Broken_filename_passed_to_function
jmp 0x50a7bb
lea eax, [ebp - 0x30]
mov ecx, edi
push eax
call fcn.005027b0
mov ecx, eax
mov dword [ebp - 4], 1
call fcn.004906d0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
mov eax, dword [ebp - 0x30]
setne bl
test eax, eax
je 0x50a8a5
lock xadd dword [eax], esi
cmp esi, 1
jne 0x50a8a5
push 4
push 2
push dword [ebp - 0x30]
call fcn.004597e0
add esp, 0xc
test bl, bl
jne 0x50a8bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov dword [ecx + 4], 2
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x50a8d0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5befa5
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x71c56c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov ecx, ebx
call fcn.00502580
test al, al
je 0x50a948
push str.Empty_filename_passed_to_function
movaps xmm0, xmmword [0x5cecd0]
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x18], 0x5c7218
movups xmmword [ebp - 0x28], xmm0
call fcn.0049b510
add esp, 8
call fcn.0059acca
mov dword [eax], 0x16
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20]
mov ecx, ebx
push eax
call fcn.005027b0
xor ecx, ecx
mov dword [ebp - 4], 0
push 1
mov word [ebp - 0x12], cx
push ecx
push dword [ebp - 0x12]
mov ecx, eax
call fcn.0048bdf0
mov ecx, dword [ebp - 0x20]
cmp eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
setne byte [ebp - 0xd]
or edi, 0xffffffff
test ecx, ecx
je 0x50a9a4
mov eax, edi
lock xadd dword [ecx], eax
cmp eax, 1
setne al
test al, al
jne 0x50a9a4
push 4
push 2
push dword [ebp - 0x20]
call fcn.004597e0
add esp, 0xc
cmp byte [ebp - 0xd], 0
je 0x50a9b4
push str.Broken_filename_passed_to_function
jmp 0x50a90b
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.00502580
test al, al
jne 0x50a906
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
call fcn.005027b0
xor ecx, ecx
mov dword [ebp - 4], 1
push 1
mov word [ebp - 0x12], cx
push ecx
push dword [ebp - 0x12]
mov ecx, eax
call fcn.0048bdf0
mov ecx, dword [ebp - 0x20]
cmp eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
setne byte [ebp - 0xd]
test ecx, ecx
je 0x50aa1f
mov eax, edi
lock xadd dword [ecx], eax
cmp eax, 1
setne al
test al, al
jne 0x50aa1f
push 4
push 2
push dword [ebp - 0x20]
call fcn.004597e0
add esp, 0xc
cmp byte [ebp - 0xd], 0
jne 0x50a9aa
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call fcn.005027b0
mov ecx, eax
mov dword [ebp - 4], 2
call fcn.004906d0
mov esi, eax
mov ecx, ebx
lea eax, [ebp - 0x34]
push eax
call fcn.005027b0
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.004906d0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov ecx, dword [ebp - 0x34]
test eax, eax
setne bl
test ecx, ecx
je 0x50aa84
mov eax, edi
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x50aa84
push 4
push 2
push dword [ebp - 0x34]
call fcn.004597e0
add esp, 0xc
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x50aaa3
lock xadd dword [eax], edi
cmp edi, 1
jne 0x50aaa3
push 4
push 2
push dword [ebp - 0x40]
call fcn.004597e0
add esp, 0xc
test bl, bl
jne 0x50aab9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov dword [ecx + 4], 2
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x50aad0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5befa5
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x71c56c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov ecx, ebx
call fcn.00502580
test al, al
je 0x50ab48
push str.Empty_filename_passed_to_function
movaps xmm0, xmmword [0x5cecd0]
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x18], 0x5c7218
movups xmmword [ebp - 0x28], xmm0
call fcn.0049b510
add esp, 8
call fcn.0059acca
mov dword [eax], 0x16
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20]
mov ecx, ebx
push eax
call fcn.005027b0
xor ecx, ecx
mov dword [ebp - 4], 0
push 1
mov word [ebp - 0x12], cx
push ecx
push dword [ebp - 0x12]
mov ecx, eax
call fcn.0048bdf0
mov ecx, dword [ebp - 0x20]
cmp eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
setne byte [ebp - 0xd]
or edi, 0xffffffff
test ecx, ecx
je 0x50aba4
mov eax, edi
lock xadd dword [ecx], eax
cmp eax, 1
setne al
test al, al
jne 0x50aba4
push 4
push 2
push dword [ebp - 0x20]
call fcn.004597e0
add esp, 0xc
cmp byte [ebp - 0xd], 0
je 0x50abb4
push str.Broken_filename_passed_to_function
jmp 0x50ab0b
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.00502580
test al, al
jne 0x50ab06
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
call fcn.005027b0
xor ecx, ecx
mov dword [ebp - 4], 1
push 1
mov word [ebp - 0x12], cx
push ecx
push dword [ebp - 0x12]
mov ecx, eax
call fcn.0048bdf0
mov ecx, dword [ebp - 0x20]
cmp eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
setne byte [ebp - 0xd]
test ecx, ecx
je 0x50ac1f
mov eax, edi
lock xadd dword [ecx], eax
cmp eax, 1
setne al
test al, al
jne 0x50ac1f
push 4
push 2
push dword [ebp - 0x20]
call fcn.004597e0
add esp, 0xc
cmp byte [ebp - 0xd], 0
jne 0x50abaa
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call fcn.005027b0
mov ecx, eax
mov dword [ebp - 4], 2
call fcn.004906d0
mov esi, eax
mov ecx, ebx
lea eax, [ebp - 0x34]
push eax
call fcn.005027b0
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.004906d0
push 1
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, dword [ebp - 0x34]
test eax, eax
setne bl
test ecx, ecx
je 0x50ac86
mov eax, edi
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x50ac86
push 4
push 2
push dword [ebp - 0x34]
call fcn.004597e0
add esp, 0xc
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x50aca5
lock xadd dword [eax], edi
cmp edi, 1
jne 0x50aca5
push 4
push 2
push dword [ebp - 0x40]
call fcn.004597e0
add esp, 0xc
test bl, bl
jne 0x50acbb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov dword [ecx + 4], 2
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x50ada0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b4efd
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
mov eax, dword [0x71c56c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
call fcn.00529a60
add esp, 8
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.004906d0
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
mov eax, dword [ebp - 0x18]
setne bl
test eax, eax
je 0x50ae11
or ecx, 0xffffffff
lock xadd dword [eax], ecx
cmp ecx, 1
jne 0x50ae11
push 4
push 2
push dword [ebp - 0x18]
call fcn.004597e0
add esp, 0xc
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x50ae40
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5befdd
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x71c56c]
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 eax, dword [ebp + 8]
xor ebx, ebx
mov ecx, dword [ebp + 0xc]
xor edi, edi
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x40], ebx
sub eax, ebx
je 0x50aeb3
sub eax, 1
je 0x50aeab
sub eax, 2
je 0x50aea6
mov dword [esi], 0x57
mov dword [esi + 4], 2
xor al, al
jmp 0x50b037
lea edi, [ebp - 0x5c]
jmp 0x50aeb6
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x40], eax
jmp 0x50aeb6
lea ebx, [ebp - 0x5c]
call fcn.004ebd80
mov ecx, dword [ebp - 0x34]
test eax, eax
jne 0x50af62
lea eax, [ebp - 0x48]
push eax
call fcn.004e83a0
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x38]
push eax
call fcn.004ebcf0
lea ecx, [ebp - 0x48]
call fcn.004ed4b0
lea ecx, [ebp - 0x48]
mov word [ebp - 0x30], ax
call fcn.004ea690
lea ecx, [ebp - 0x48]
mov word [ebp - 0x2e], ax
call fcn.004e8410
lea ecx, [ebp - 0x38]
mov word [ebp - 0x2a], ax
call fcn.004e9fe0
lea ecx, [ebp - 0x38]
mov word [ebp - 0x28], ax
call fcn.004ea650
lea ecx, [ebp - 0x38]
mov word [ebp - 0x26], ax
call fcn.004eb670
lea ecx, [ebp - 0x38]
mov word [ebp - 0x24], ax
call fcn.004ea6f0
lea ecx, [ebp - 0x48]
mov word [ebp - 0x22], ax
call fcn.004e8470
cdq
mov ecx, 7
idiv ecx
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x30]
mov word [ebp - 0x2c], dx
push eax
push 0
call dword [sym.imp.KERNEL32.dll_TzSpecificLocalTimeToSystemTime]
test eax, eax
jne 0x50affa
xor al, al
jmp 0x50b037
lea eax, [ebp - 0x3c]
push eax
call fcn.004ed3e0
lea eax, [ebp - 0x50]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x3c]
call fcn.004e83a0
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x3c]
call fcn.004ebcf0
lea ecx, [ebp - 0x50]
call fcn.004ed4b0
lea ecx, [ebp - 0x50]
mov word [ebp - 0x20], ax
call fcn.004ea690
lea ecx, [ebp - 0x50]
mov word [ebp - 0x1e], ax
call fcn.004e8410
lea ecx, [ebp - 0x34]
mov word [ebp - 0x1a], ax
call fcn.004e9fe0
lea ecx, [ebp - 0x34]
mov word [ebp - 0x18], ax
call fcn.004ea650
lea ecx, [ebp - 0x34]
mov word [ebp - 0x16], ax
call fcn.004eb670
lea ecx, [ebp - 0x34]
mov word [ebp - 0x14], ax
call fcn.004ea6f0
lea ecx, [ebp - 0x50]
mov word [ebp - 0x12], ax
call fcn.004e8470
cdq
mov ecx, 7
idiv ecx
lea ecx, [ebp - 0x3c]
mov word [ebp - 0x1c], dx
call fcn.004e6cb0
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
je 0x50ae9f
push edi
push ebx
push dword [ebp - 0x40]
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x50b035
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
xor al, al
mov dword [esi + 4], 2
jmp 0x50b037
mov al, 1
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.0058e709
mov esp, ebp
pop ebp
ret
Function at 0x50b460
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b441d
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x71c56c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
mov ecx, edi
mov byte [ebp - 0xd], 0
call fcn.00502530
test al, al
je 0x50b50d
push 0x8001
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
push esi
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
lea eax, [ebp - 0x20]
mov ecx, edi
push eax
call fcn.00502320
mov eax, dword [eax + 4]
movzx ecx, word [eax]
call fcn.0048ffe0
mov ebx, 1
lea ecx, [eax - 0x41]
shl ebx, cl
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x50b4fb
or eax, 0xffffffff
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x50b4fb
push 4
push 2
push dword [ebp - 0x20]
call fcn.004597e0
add esp, 0xc
and ebx, dword [ebp - 0x14]
setne al
neg ebx
sbb ebx, ebx
and ebx, 0x14
jmp 0x50b5c2
lea eax, [ebp - 0x20]
mov ecx, edi
push eax
call fcn.005027b0
push 1
push str._UNC
push 7
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0
call fcn.0048f820
test al, al
je 0x50b598
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x20]
push 1
push 7
mov ax, word [eax]
mov word [ebp - 0x14], ax
push dword [ebp - 0x14]
call fcn.0048bdf0
mov ecx, eax
test ecx, ecx
jle 0x50b57c
mov eax, dword [ebp - 0x1c]
push 1
mov ax, word [eax]
mov word [ebp - 0x14], ax
lea eax, [ecx + 1]
push eax
push dword [ebp - 0x14]
lea ecx, [ebp - 0x20]
call fcn.0048bdf0
mov ecx, eax
test ecx, ecx
jle 0x50b57c
mov eax, dword [ebp - 0x18]
dec eax
cmp ecx, eax
jne 0x50b598
lea eax, [ebp - 0x20]
push eax
call fcn.0050b7d0
add esp, 4
test al, al
je 0x50b598
mov al, 1
mov ebx, 0x10
mov byte [ebp - 0xd], al
jmp 0x50b59b
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x50b5c2
mov eax, 0xffffffff
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x50b5bf
push 4
push 2
push dword [ebp - 0x20]
call fcn.004597e0
add esp, 0xc
mov al, byte [ebp - 0xd]
test al, al
je 0x50b5ee
mov edx, dword [ebp + 0xc]
test bl, 0x10
mov ecx, 0x20000
mov esi, 0x40000
cmovne ecx, esi
mov dword [edx + 0x10], ebx
or ecx, dword [edx + 4]
or ecx, 0x400000
mov dword [edx + 4], ecx
or dword [edx], 0x560000
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x50b600
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bf0e6
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x71c56c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
nop dword [eax]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x18]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x1c]
push eax
push 1
call fcn.004906d0
push eax
call sub.NETAPI32.dll_NetShareEnum
mov dword [ebp - 0x28], eax
test eax, eax
je 0x50b674
cmp eax, 0xea
jne 0x50b7a1
mov edi, dword [ebp - 0x1c]
mov eax, 1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x18], eax
jb 0x50b7a1
test esi, esi
je 0x50b791
cmp dword [edi + 4], 0
jne 0x50b791
push 0xffffffffffffffff
push dword [edi]
lea eax, [ebp - 0x40]
push eax
call fcn.0048bab0
add esp, 0xc
mov ecx, dword [eax]
or ebx, 5
mov dword [ebp - 0x34], ecx
mov ecx, dword [eax + 4]
mov dword [ebp - 0x30], ecx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x2c], ecx
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [ebp - 0x10], ebx
test bl, 2
je 0x50b705
mov ecx, dword [ebp - 0x28]
and ebx, 0xfffffffd
mov dword [ebp - 0x10], ebx
test ecx, ecx
je 0x50b705
or eax, 0xffffffff
lock xadd dword [ecx], eax
cmp eax, 1
setne al
test al, al
jne 0x50b705
push 4
push 2
push ecx
call fcn.004597e0
add esp, 0xc
test bl, 1
je 0x50b737
mov ecx, dword [ebp - 0x40]
and ebx, 0xfffffffe
mov dword [ebp - 0x10], ebx
test ecx, ecx
je 0x50b737
or eax, 0xffffffff
lock xadd dword [ecx], eax
cmp eax, 1
setne al
test al, al
jne 0x50b737
push 4
push 2
push dword [ebp - 0x40]
call fcn.004597e0
add esp, 0xc
lea eax, [ebp - 0x34]
mov dword [ebp - 4], 1
push eax
push dword [esi + 8]
mov ecx, esi
call fcn.0046f480
mov eax, dword [esi]
test eax, eax
je 0x50b75a
cmp dword [eax], 1
mov ebx, dword [ebp - 0x10]
jle 0x50b767
push 0
push 0
push 0
mov ecx, esi
call fcn.00479b10
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x50b78e
or eax, 0xffffffff
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x50b78e
push 4
push 2
push ecx
call fcn.004597e0
add esp, 0xc
mov eax, dword [ebp - 0x14]
inc eax
add edi, 0xc
mov dword [ebp - 0x14], eax
cmp eax, dword [ebp - 0x18]
jbe 0x50b688
push dword [ebp - 0x1c]
call sub.NETAPI32.dll_NetApiBufferFree
mov eax, dword [ebp - 0x28]
cmp eax, 0xea
je 0x50b640
test eax, eax
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x50bdd0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x48
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x44], ecx
cmp ecx, dword [esp + 0x54]
je 0x50bf72
mov eax, dword [esp + 0x4c]
cmp eax, ecx
je 0x50bf72
push edi
mov edi, dword [esp + 0x5c]
nop word [eax + eax]
movups xmm0, xmmword [eax]
movups xmmword [esp + 4], xmm0
movups xmm0, xmmword [eax + 0x10]
lea eax, [esp + 4]
push eax
movups xmmword [esp + 0x18], xmm0
lea eax, [esp + 0x28]
movups xmm0, xmmword [ecx]
push eax
movups xmmword [esp + 0x2c], xmm0
movups xmm0, xmmword [ecx + 0x10]
mov ecx, dword [esp + 0x74]
movups xmmword [esp + 0x3c], xmm0
call fcn.0050d180
test eax, eax
js 0x50be52
mov eax, dword [esp + 0x50]
dec edi
mov ecx, dword [esp + 0x54]
add eax, 0x20
mov dword [esp + 0x50], eax
cmp eax, ecx
jne 0x50be00
pop edi
add esp, 0x48
ret
push esi
mov esi, dword [esp + 0x64]
nop word [eax + eax]
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x4c]
add ecx, 0xffffffe0
mov dword [esp + 0x48], esi
dec esi
mov dword [esp + 0x5c], ecx
cmp eax, ecx
je 0x50bf2f
movups xmm0, xmmword [eax - 0x20]
movups xmmword [esp + 8], xmm0
movups xmm0, xmmword [eax - 0x10]
lea eax, [esp + 8]
push eax
movups xmmword [esp + 0x1c], xmm0
lea eax, [esp + 0x2c]
movups xmm0, xmmword [ecx]
push eax
movups xmmword [esp + 0x30], xmm0
movups xmm0, xmmword [ecx + 0x10]
mov ecx, dword [esp + 0x78]
movups xmmword [esp + 0x40], xmm0
call fcn.0050d180
test eax, eax
jns 0x50be60
mov ecx, dword [esp + 0x5c]
add ecx, 0x20
mov dword [esp + 0x5c], ecx
cmp edi, 1
jne 0x50bf07
mov eax, dword [esp + 0x54]
push eax
push ecx
push dword [esp + 0x60]
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x44], xmm0
movups xmm0, xmmword [eax + 0x10]
lea eax, [esp + 0x54]
push eax
movups xmmword [esp + 0x28], xmm0
call fcn.0050ca50
movups xmm0, xmmword [esp + 0x48]
add esp, 0x10
mov eax, dword [eax]
pop esi
pop edi
movups xmmword [eax], xmm0
movups xmm0, xmmword [esp + 0x10]
movups xmmword [eax + 0x10], xmm0
add esp, 0x48
ret
push dword [esp + 0x70]
push dword [esp + 0x70]
push dword [esp + 0x70]
push dword [esp + 0x54]
push edi
push ecx
push dword [esp + 0x70]
push dword [esp + 0x70]
call fcn.0050bf80
add esp, 0x20
pop esi
pop edi
add esp, 0x48
ret
mov eax, dword [esp + 0x58]
add ecx, 0x20
mov esi, dword [esp + 0x54]
mov dword [esp + 0x5c], ecx
push ecx
movups xmm0, xmmword [eax]
push eax
push esi
movups xmmword [esp + 0x24], xmm0
movups xmm0, xmmword [eax + 0x10]
lea eax, [esp + 0x54]
push eax
movups xmmword [esp + 0x48], xmm0
call fcn.0050c9c0
movups xmm0, xmmword [esp + 0x28]
add esp, 0x10
movups xmmword [esi], xmm0
movups xmm0, xmmword [esp + 0x38]
movups xmmword [esi + 0x10], xmm0
pop esi
pop edi
add esp, 0x48
ret
Function at 0x50c330
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edx, dword [esp + 0x14]
sub esp, 0x54
push ebx
mov ebx, dword [esp + 0x64]
push ebp
mov ebp, dword [esp + 0x6c]
push esi
mov esi, dword [esp + 0x64]
cmp ebp, edx
jge 0x50c463
mov eax, ebp
shl eax, 5
mov dword [esp + 0x1c], eax
push edi
sub edx, ebp
add eax, esi
cmp edx, ebp
mov dword [esp + 0x14], eax
mov ecx, ebp
mov edi, eax
cmovl ecx, edx
mov ebp, ebx
sub edx, ecx
shl ecx, 5
add ecx, eax
mov dword [esp + 0x78], edx
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x1c], ecx
movups xmm0, xmmword [esi]
lea eax, [esp + 0x24]
push eax
movups xmmword [esp + 0x28], xmm0
lea eax, [esp + 0x48]
movups xmm0, xmmword [esi + 0x10]
lea ebx, [ebp + 0x20]
push eax
movups xmmword [esp + 0x3c], xmm0
mov dword [esp + 0x20], ebx
movups xmm0, xmmword [edi]
movups xmmword [esp + 0x4c], xmm0
movups xmm0, xmmword [edi + 0x10]
movups xmmword [esp + 0x5c], xmm0
call fcn.0050d180
test eax, eax
jns 0x50c3fe
movups xmm0, xmmword [edi]
movups xmm1, xmmword [edi + 0x10]
add edi, 0x20
movups xmmword [ebp], xmm0
movups xmmword [ebp + 0x10], xmm1
cmp edi, dword [esp + 0x10]
jne 0x50c416
mov eax, dword [esp + 0x14]
cmp esi, eax
je 0x50c3f8
nop
movups xmm1, xmmword [esi]
movups xmm0, xmmword [esi + 0x10]
add esi, 0x20
movups xmmword [ebx], xmm1
movups xmmword [ebx + 0x10], xmm0
add ebx, 0x20
cmp esi, eax
jne 0x50c3e0
mov eax, dword [esp + 0x10]
jmp 0x50c448
movups xmm0, xmmword [esi]
movups xmm1, xmmword [esi + 0x10]
add esi, 0x20
movups xmmword [ebp], xmm0
movups xmmword [ebp + 0x10], xmm1
cmp esi, dword [esp + 0x14]
je 0x50c423
mov ebp, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
jmp 0x50c382
mov eax, dword [esp + 0x10]
cmp edi, eax
je 0x50c448
nop dword [eax + eax]
movups xmm1, xmmword [edi]
movups xmm0, xmmword [edi + 0x10]
add edi, 0x20
movups xmmword [ebx], xmm1
movups xmmword [ebx + 0x10], xmm0
add ebx, 0x20
cmp edi, eax
jne 0x50c430
mov edx, dword [esp + 0x78]
mov esi, eax
mov ebp, dword [esp + 0x74]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x68], esi
cmp ebp, edx
jl 0x50c358
pop edi
mov eax, dword [esp + 0x68]
cmp esi, eax
je 0x50c487
sub ebx, esi
nop dword [eax]
movups xmm1, xmmword [esi]
movups xmm0, xmmword [esi + 0x10]
movups xmmword [ebx + esi], xmm1
movups xmmword [ebx + esi + 0x10], xmm0
add esi, 0x20
cmp esi, eax
jne 0x50c470
pop esi
pop ebp
pop ebx
add esp, 0x54
ret