joyce8/EMBER2024-capa huggingface dataset:
Function at 0x50d6f0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c503d
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x72b01c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ecx, esi
push 1
push 0x664bc4
push 2
call fcn.00495ed0
mov ecx, 0x5c
test al, al
je 0x50d74d
mov word [ebp - 0x14], cx
mov ecx, esi
push 1
push dword [ebp - 0x14]
call fcn.00490c80
cmp eax, 3
jle 0x50d8c3
cmp dword [esi + 8], 2
jne 0x50d761
mov eax, dword [esi + 4]
cmp word [eax + 2], 0x3a
je 0x50d8c3
mov ebx, dword [ebp + 0xc]
or edi, 0xffffffff
cmp byte [ebp + 0x10], 0
je 0x50d7da
lea eax, [ebp - 0x20]
push esi
push eax
call fcn.005300f0
add esp, 8
push ebx
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0
call fcn.00496d70
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 0x20]
test eax, eax
mov dword [ebp - 4], edi
setne byte [ebp - 0xd]
test ecx, ecx
je 0x50d7c0
mov eax, edi
lock xadd dword [ecx], eax
cmp eax, 1
setne al
test al, al
jne 0x50d7c0
push 4
push 2
push dword [ebp - 0x20]
call fcn.0045fe90
add esp, 0xc
cmp byte [ebp - 0xd], 0
je 0x50d7da
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0x5c
mov word [ebp - 0x14], ax
push 1
push 0xffffffffffffffff
push dword [ebp - 0x14]
mov ecx, esi
mov dword [ebp - 4], 1
call fcn.00492ad0
mov dword [ebp - 4], 0xffffffff
cmp eax, 1
jl 0x50d8c3
push eax
lea eax, [ebp - 0x38]
mov ecx, esi
push eax
call fcn.00492b50
push 1
lea eax, [ebp - 0x38]
mov dword [ebp - 4], 2
push ebx
push eax
call fcn.0050d6f0
add esp, 0xc
test al, al
jne 0x50d832
xor bl, bl
jmp 0x50d890
lea eax, [ebp - 0x2c]
push esi
push eax
call fcn.005300f0
add esp, 8
push ebx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.00496d70
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 0x2c]
test eax, eax
mov byte [ebp - 4], 2
setne bl
test ecx, ecx
je 0x50d87d
mov eax, edi
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x50d87d
push 4
push 2
push dword [ebp - 0x2c]
call fcn.0045fe90
add esp, 0xc
test bl, bl
je 0x50d885
mov bl, 1
jmp 0x50d890
push esi
lea ecx, [ebp - 0xd]
call fcn.0050cba0
mov bl, al
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x50d8af
lock xadd dword [eax], edi
cmp edi, 1
jne 0x50d8af
push 4
push 2
push dword [ebp - 0x38]
call fcn.0045fe90
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 esp, ebp
pop ebp
ret
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
Function at 0x50db20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bf5ed
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x72b01c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 0x104
lea ecx, [ebp - 0x1c]
call fcn.0048d840
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], 0
test eax, eax
je 0x50db6b
mov eax, dword [eax]
cmp eax, 1
jle 0x50db78
push 1
push dword [ebp - 0x14]
lea ecx, [ebp - 0x1c]
call fcn.00493e80
push dword [ebp - 0x18]
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
cmp esi, 0x104
jbe 0x50dbc0
push esi
lea ecx, [ebp - 0x1c]
call fcn.00495530
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x50dba7
mov eax, dword [eax]
cmp eax, 1
jle 0x50dbb4
push 1
push dword [ebp - 0x14]
lea ecx, [ebp - 0x1c]
call fcn.00493e80
push dword [ebp - 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
cmp esi, 2
jb 0x50dbfb
mov eax, dword [ebp - 0x18]
cmp word [eax + 2], 0x3a
jne 0x50dbfb
movzx ecx, word [eax]
call fcn.00496680
movzx edi, ax
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x50dbe8
mov eax, dword [eax]
cmp eax, 1
jle 0x50dbf5
push 1
push dword [ebp - 0x14]
lea ecx, [ebp - 0x1c]
call fcn.00493e80
mov eax, dword [ebp - 0x18]
mov word [eax], di
push esi
lea ecx, [ebp - 0x1c]
call fcn.00495530
push dword [ebp - 0x10]
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
mov ecx, esi
call fcn.00508800
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x50dc37
or ecx, 0xffffffff
lock xadd dword [eax], ecx
cmp ecx, 1
jne 0x50dc37
push 4
push 2
push dword [ebp - 0x1c]
call fcn.0045fe90
add esp, 0xc
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x50f9b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x254]
sub esp, 0x254
push 0xffffffffffffffff
push 0x5c53a5
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x72b01c]
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 0x50fa1b
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 0x50fa42
cmp word [ecx + 2], 0x3a
jne 0x50fa42
mov eax, 0x5c
lea ecx, [ebp - 0x1c]
mov word [ebp - 0x10], ax
push dword [ebp - 0x10]
call fcn.0048ea10
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.005300f0
add esp, 8
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00496d70
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x50faac
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x50fa7c
cmp eax, 0x20
jne 0x50faac
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 0x50fa9e
lock xadd dword [edx], esi
call fcn.0050ee10
add esp, 0x10
test al, al
cmovne ebx, dword [ebp]
test edi, edi
je 0x50fab8
cmp ebx, 0xffffffff
setne al
mov byte [edi], al
cmp ebx, 0xffffffff
jne 0x50fac1
xor bl, bl
jmp 0x50fac7
shr ebx, 4
and bl, 1
mov ecx, dword [ebp - 0x28]
or esi, 0xffffffff
test ecx, ecx
je 0x50faeb
mov eax, esi
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x50faeb
push 4
push 2
push dword [ebp - 0x28]
call fcn.0045fe90
add esp, 0xc
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x50fb0a
lock xadd dword [eax], esi
cmp esi, 1
jne 0x50fb0a
push 4
push 2
push dword [ebp - 0x1c]
call fcn.0045fe90
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.00594d69
lea esp, [ebp + 0x254]
pop ebp
ret
Function at 0x510e10
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c4c45
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x72b01c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.00508c10
test al, al
je 0x510e88
push str.Empty_filename_passed_to_function
movaps xmm0, xmmword [0x5e0c10]
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x14], 0x5cd218
movups xmmword [ebp - 0x24], xmm0
call fcn.004a1bc0
add esp, 8
call fcn.005a132a
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.00508e40
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.004924a0
mov ecx, dword [ebp - 0x1c]
cmp eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
setne bl
or esi, 0xffffffff
test ecx, ecx
je 0x510ee3
mov eax, esi
lock xadd dword [ecx], eax
cmp eax, 1
setne al
test al, al
jne 0x510ee3
push 4
push 2
push dword [ebp - 0x1c]
call fcn.0045fe90
add esp, 0xc
test bl, bl
je 0x510ef1
push str.Broken_filename_passed_to_function
jmp 0x510e4b
lea eax, [ebp - 0x30]
mov ecx, edi
push eax
call fcn.00508e40
mov ecx, eax
mov dword [ebp - 4], 1
call fcn.00496d70
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
mov eax, dword [ebp - 0x30]
setne bl
test eax, eax
je 0x510f35
lock xadd dword [eax], esi
cmp esi, 1
jne 0x510f35
push 4
push 2
push dword [ebp - 0x30]
call fcn.0045fe90
add esp, 0xc
test bl, bl
jne 0x510f4b
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 0x510f60
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c5625
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x72b01c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov ecx, ebx
call fcn.00508c10
test al, al
je 0x510fd8
push str.Empty_filename_passed_to_function
movaps xmm0, xmmword [0x5e0c10]
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x18], 0x5cd218
movups xmmword [ebp - 0x28], xmm0
call fcn.004a1bc0
add esp, 8
call fcn.005a132a
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.00508e40
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.004924a0
mov ecx, dword [ebp - 0x20]
cmp eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
setne byte [ebp - 0xd]
or edi, 0xffffffff
test ecx, ecx
je 0x511034
mov eax, edi
lock xadd dword [ecx], eax
cmp eax, 1
setne al
test al, al
jne 0x511034
push 4
push 2
push dword [ebp - 0x20]
call fcn.0045fe90
add esp, 0xc
cmp byte [ebp - 0xd], 0
je 0x511044
push str.Broken_filename_passed_to_function
jmp 0x510f9b
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.00508c10
test al, al
jne 0x510f96
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
call fcn.00508e40
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.004924a0
mov ecx, dword [ebp - 0x20]
cmp eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
setne byte [ebp - 0xd]
test ecx, ecx
je 0x5110af
mov eax, edi
lock xadd dword [ecx], eax
cmp eax, 1
setne al
test al, al
jne 0x5110af
push 4
push 2
push dword [ebp - 0x20]
call fcn.0045fe90
add esp, 0xc
cmp byte [ebp - 0xd], 0
jne 0x51103a
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call fcn.00508e40
mov ecx, eax
mov dword [ebp - 4], 2
call fcn.00496d70
mov esi, eax
mov ecx, ebx
lea eax, [ebp - 0x34]
push eax
call fcn.00508e40
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.00496d70
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 0x511114
mov eax, edi
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x511114
push 4
push 2
push dword [ebp - 0x34]
call fcn.0045fe90
add esp, 0xc
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x511133
lock xadd dword [eax], edi
cmp edi, 1
jne 0x511133
push 4
push 2
push dword [ebp - 0x40]
call fcn.0045fe90
add esp, 0xc
test bl, bl
jne 0x511149
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 0x511160
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c5625
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x72b01c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov ecx, ebx
call fcn.00508c10
test al, al
je 0x5111d8
push str.Empty_filename_passed_to_function
movaps xmm0, xmmword [0x5e0c10]
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x18], 0x5cd218
movups xmmword [ebp - 0x28], xmm0
call fcn.004a1bc0
add esp, 8
call fcn.005a132a
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.00508e40
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.004924a0
mov ecx, dword [ebp - 0x20]
cmp eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
setne byte [ebp - 0xd]
or edi, 0xffffffff
test ecx, ecx
je 0x511234
mov eax, edi
lock xadd dword [ecx], eax
cmp eax, 1
setne al
test al, al
jne 0x511234
push 4
push 2
push dword [ebp - 0x20]
call fcn.0045fe90
add esp, 0xc
cmp byte [ebp - 0xd], 0
je 0x511244
push str.Broken_filename_passed_to_function
jmp 0x51119b
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.00508c10
test al, al
jne 0x511196
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
call fcn.00508e40
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.004924a0
mov ecx, dword [ebp - 0x20]
cmp eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
setne byte [ebp - 0xd]
test ecx, ecx
je 0x5112af
mov eax, edi
lock xadd dword [ecx], eax
cmp eax, 1
setne al
test al, al
jne 0x5112af
push 4
push 2
push dword [ebp - 0x20]
call fcn.0045fe90
add esp, 0xc
cmp byte [ebp - 0xd], 0
jne 0x51123a
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call fcn.00508e40
mov ecx, eax
mov dword [ebp - 4], 2
call fcn.00496d70
mov esi, eax
mov ecx, ebx
lea eax, [ebp - 0x34]
push eax
call fcn.00508e40
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.00496d70
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 0x511316
mov eax, edi
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x511316
push 4
push 2
push dword [ebp - 0x34]
call fcn.0045fe90
add esp, 0xc
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x511335
lock xadd dword [eax], edi
cmp edi, 1
jne 0x511335
push 4
push 2
push dword [ebp - 0x40]
call fcn.0045fe90
add esp, 0xc
test bl, bl
jne 0x51134b
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 0x511430
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bb56d
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
mov eax, dword [0x72b01c]
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.005300f0
add esp, 8
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.00496d70
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
mov eax, dword [ebp - 0x18]
setne bl
test eax, eax
je 0x5114a1
or ecx, 0xffffffff
lock xadd dword [eax], ecx
cmp ecx, 1
jne 0x5114a1
push 4
push 2
push dword [ebp - 0x18]
call fcn.0045fe90
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 0x5114d0
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c565d
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x72b01c]
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 0x511543
sub eax, 1
je 0x51153b
sub eax, 2
je 0x511536
mov dword [esi], 0x57
mov dword [esi + 4], 2
xor al, al
jmp 0x5116c7
lea edi, [ebp - 0x5c]
jmp 0x511546
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x40], eax
jmp 0x511546
lea ebx, [ebp - 0x5c]
call fcn.004f2410
mov ecx, dword [ebp - 0x34]
test eax, eax
jne 0x5115f2
lea eax, [ebp - 0x48]
push eax
call fcn.004eea30
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x38]
push eax
call fcn.004f2380
lea ecx, [ebp - 0x48]
call fcn.004f3b40
lea ecx, [ebp - 0x48]
mov word [ebp - 0x30], ax
call fcn.004f0d20
lea ecx, [ebp - 0x48]
mov word [ebp - 0x2e], ax
call fcn.004eeaa0
lea ecx, [ebp - 0x38]
mov word [ebp - 0x2a], ax
call fcn.004f0670
lea ecx, [ebp - 0x38]
mov word [ebp - 0x28], ax
call fcn.004f0ce0
lea ecx, [ebp - 0x38]
mov word [ebp - 0x26], ax
call fcn.004f1d00
lea ecx, [ebp - 0x38]
mov word [ebp - 0x24], ax
call fcn.004f0d80
lea ecx, [ebp - 0x48]
mov word [ebp - 0x22], ax
call fcn.004eeb00
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 0x51168a
xor al, al
jmp 0x5116c7
lea eax, [ebp - 0x3c]
push eax
call fcn.004f3a70
lea eax, [ebp - 0x50]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x3c]
call fcn.004eea30
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x3c]
call fcn.004f2380
lea ecx, [ebp - 0x50]
call fcn.004f3b40
lea ecx, [ebp - 0x50]
mov word [ebp - 0x20], ax
call fcn.004f0d20
lea ecx, [ebp - 0x50]
mov word [ebp - 0x1e], ax
call fcn.004eeaa0
lea ecx, [ebp - 0x34]
mov word [ebp - 0x1a], ax
call fcn.004f0670
lea ecx, [ebp - 0x34]
mov word [ebp - 0x18], ax
call fcn.004f0ce0
lea ecx, [ebp - 0x34]
mov word [ebp - 0x16], ax
call fcn.004f1d00
lea ecx, [ebp - 0x34]
mov word [ebp - 0x14], ax
call fcn.004f0d80
lea ecx, [ebp - 0x50]
mov word [ebp - 0x12], ax
call fcn.004eeb00
cdq
mov ecx, 7
idiv ecx
lea ecx, [ebp - 0x3c]
mov word [ebp - 0x1c], dx
call fcn.004ed340
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
je 0x51152f
push edi
push ebx
push dword [ebp - 0x40]
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x5116c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
xor al, al
mov dword [esi + 4], 2
jmp 0x5116c7
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.00594d69
mov esp, ebp
pop ebp
ret
Function at 0x511af0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5baa8d
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x72b01c]
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.00508bc0
test al, al
je 0x511b9d
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.005089b0
mov eax, dword [eax + 4]
movzx ecx, word [eax]
call fcn.00496680
mov ebx, 1
lea ecx, [eax - 0x41]
shl ebx, cl
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x511b8b
or eax, 0xffffffff
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x511b8b
push 4
push 2
push dword [ebp - 0x20]
call fcn.0045fe90
add esp, 0xc
and ebx, dword [ebp - 0x14]
setne al
neg ebx
sbb ebx, ebx
and ebx, 0x14
jmp 0x511c52
lea eax, [ebp - 0x20]
mov ecx, edi
push eax
call fcn.00508e40
push 1
push str._UNC
push 7
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0
call fcn.00495ed0
test al, al
je 0x511c28
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.004924a0
mov ecx, eax
test ecx, ecx
jle 0x511c0c
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.004924a0
mov ecx, eax
test ecx, ecx
jle 0x511c0c
mov eax, dword [ebp - 0x18]
dec eax
cmp ecx, eax
jne 0x511c28
lea eax, [ebp - 0x20]
push eax
call fcn.00511e60
add esp, 4
test al, al
je 0x511c28
mov al, 1
mov ebx, 0x10
mov byte [ebp - 0xd], al
jmp 0x511c2b
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x511c52
mov eax, 0xffffffff
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x511c4f
push 4
push 2
push dword [ebp - 0x20]
call fcn.0045fe90
add esp, 0xc
mov al, byte [ebp - 0xd]
test al, al
je 0x511c7e
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 0x511c90
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c5766
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x72b01c]
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.00496d70
push eax
call sub.NETAPI32.dll_NetShareEnum
mov dword [ebp - 0x28], eax
test eax, eax
je 0x511d04
cmp eax, 0xea
jne 0x511e31
mov edi, dword [ebp - 0x1c]
mov eax, 1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x18], eax
jb 0x511e31
test esi, esi
je 0x511e21
cmp dword [edi + 4], 0
jne 0x511e21
push 0xffffffffffffffff
push dword [edi]
lea eax, [ebp - 0x40]
push eax
call fcn.00492160
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 0x511d95
mov ecx, dword [ebp - 0x28]
and ebx, 0xfffffffd
mov dword [ebp - 0x10], ebx
test ecx, ecx
je 0x511d95
or eax, 0xffffffff
lock xadd dword [ecx], eax
cmp eax, 1
setne al
test al, al
jne 0x511d95
push 4
push 2
push ecx
call fcn.0045fe90
add esp, 0xc
test bl, 1
je 0x511dc7
mov ecx, dword [ebp - 0x40]
and ebx, 0xfffffffe
mov dword [ebp - 0x10], ebx
test ecx, ecx
je 0x511dc7
or eax, 0xffffffff
lock xadd dword [ecx], eax
cmp eax, 1
setne al
test al, al
jne 0x511dc7
push 4
push 2
push dword [ebp - 0x40]
call fcn.0045fe90
add esp, 0xc
lea eax, [ebp - 0x34]
mov dword [ebp - 4], 1
push eax
push dword [esi + 8]
mov ecx, esi
call fcn.00475b30
mov eax, dword [esi]
test eax, eax
je 0x511dea
cmp dword [eax], 1
mov ebx, dword [ebp - 0x10]
jle 0x511df7
push 0
push 0
push 0
mov ecx, esi
call fcn.004801c0
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x511e1e
or eax, 0xffffffff
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x511e1e
push 4
push 2
push ecx
call fcn.0045fe90
add esp, 0xc
mov eax, dword [ebp - 0x14]
inc eax
add edi, 0xc
mov dword [ebp - 0x14], eax
cmp eax, dword [ebp - 0x18]
jbe 0x511d18
push dword [ebp - 0x1c]
call sub.NETAPI32.dll_NetApiBufferFree
mov eax, dword [ebp - 0x28]
cmp eax, 0xea
je 0x511cd0
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