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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54eded
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x6fb4c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.0044c7a0
mov eax, dword [ebp - 0x10]
or esi, 0xffffffff
mov dword [ebp - 4], 0
cmp dword [eax + 4], 0
jne 0x451b7e
push str.Empty_filename_passed_to_function
jmp 0x451b9c
xor eax, eax
lea ecx, [ebp - 0x10]
push 1
push eax
mov word [ebp - 0x18], ax
push dword [ebp - 0x18]
call fcn.00408f00
cmp eax, 0xffffffff
je 0x451bcc
push str.Broken_filename_passed_to_function
movaps xmm0, xmmword [0x591ac0]
lea eax, [ebp - 0x30]
push eax
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], 0x5919f8
call fcn.00429410
add esp, 8
call fcn.0052a48a
xor bl, bl
mov dword [eax], 0x16
jmp 0x451ce6
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00423f70
push eax
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
call fcn.004254a0
mov edx, dword [ebp - 0x10]
add esp, 0x10
mov ecx, dword [eax]
mov dword [ebp - 0x10], ecx
mov dword [eax], edx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
test eax, eax
je 0x451c13
cmp eax, 0xffffffff
je 0x451c22
mov eax, dword [ebp - 0x14]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x451c22
push 4
push 2
push dword [ebp - 0x14]
call fcn.00403690
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 0
mov eax, dword [eax]
test eax, eax
je 0x451c45
cmp eax, 0xffffffff
je 0x451c54
mov eax, dword [ebp - 0x18]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x451c54
push 4
push 2
push dword [ebp - 0x18]
call fcn.00403690
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0044f970
add esp, 8
push 0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.0040d690
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x14]
mov edi, eax
mov byte [ebp - 4], 0
mov ecx, dword [ecx]
test ecx, ecx
je 0x451ca6
cmp ecx, 0xffffffff
je 0x451cb5
mov eax, dword [ebp - 0x14]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x451cb5
push 4
push 2
push dword [ebp - 0x14]
call fcn.00403690
add esp, 0xc
test ebx, ebx
je 0x451cbd
mov bl, 1
jmp 0x451ce6
cmp byte [ebp + 0xc], 0
jne 0x451cc7
xor bl, bl
jmp 0x451ce6
lea eax, [ebp - 0x10]
push 0
push eax
cmp edi, 0xb7
jne 0x451cdc
call fcn.00454190
jmp 0x451ce1
call fcn.00451d30
mov bl, al
add esp, 8
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx]
test eax, eax
je 0x451d03
cmp eax, 0xffffffff
je 0x451d12
mov eax, dword [ebp - 0x10]
lock xadd dword [eax], esi
dec esi
setne al
test al, al
jne 0x451d12
push 4
push 2
push dword [ebp - 0x10]
call fcn.00403690
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
Function at 0x451d30
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54ee25
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x6fb4c0]
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 0x5935e4
push 2
call fcn.0040c3b0
test al, al
je 0x451d91
lea eax, [ebp - 0xe]
push eax
call fcn.004252e0
add esp, 4
mov ecx, esi
movzx eax, word [eax]
push 1
push eax
call fcn.00407f50
cmp eax, 3
jle 0x451ede
mov ecx, dword [esi]
cmp dword [ecx + 4], 2
jne 0x451da8
mov eax, dword [ecx + 0xc]
cmp word [eax + ecx + 2], 0x3a
je 0x451ede
cmp byte [ebp + 0xc], 0
je 0x451e23
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.0044f970
add esp, 8
push 0
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
call fcn.0040d690
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 0x10]
mov edi, eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ecx]
test ecx, ecx
je 0x451dfc
cmp ecx, 0xffffffff
je 0x451e0b
mov eax, dword [ebp - 0x10]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x451e0b
push 4
push 2
push dword [ebp - 0x10]
call fcn.00403690
add esp, 0xc
test edi, edi
je 0x451e23
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
lea eax, [ebp - 0x12]
push eax
call fcn.004252e0
add esp, 4
mov ecx, esi
movzx eax, word [eax]
push 1
push 0xffffffffffffffff
push eax
call fcn.00409410
cmp eax, 1
jl 0x451ede
push eax
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
call fcn.004094b0
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 1
push 1
push eax
call fcn.00451d30
add esp, 8
test al, al
jne 0x451e8a
lea ecx, [ebp - 0x18]
xor bl, bl
call fcn.00401a70
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
push 0
push esi
call fcn.00454380
add esp, 8
test al, al
je 0x451eb7
lea ecx, [ebp - 0x18]
mov bl, 1
call fcn.00401a70
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
push esi
lea ecx, [ebp - 0xd]
call fcn.004512c0
lea ecx, [ebp - 0x18]
mov bl, al
call fcn.00401a70
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 0x454190
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x254]
sub esp, 0x254
push 0xffffffffffffffff
push 0x54f225
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x6fb4c0]
xor eax, ebp
mov dword [ebp + 0x250], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x25c]
mov esi, dword [ebp + 0x260]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov ecx, dword [eax]
test ecx, ecx
je 0x4541e7
cmp ecx, 0xffffffff
je 0x4541e7
lock inc dword [eax]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], 0
cmp dword [eax + 4], 2
jne 0x45425f
mov ecx, dword [eax + 0xc]
cmp word [ecx + eax + 2], 0x3a
jne 0x45425f
mov ecx, dword [eax]
mov eax, dword [ebp - 0x10]
cmp ecx, 1
je 0x454210
test ecx, ecx
jne 0x454223
mov edx, dword [eax + 8]
mov ecx, dword [eax + 4]
and edx, 0x7fffffff
add ecx, 2
cmp ecx, edx
jbe 0x454237
mov eax, dword [eax + 4]
lea ecx, [ebp - 0x10]
push 1
add eax, 2
push eax
call fcn.0040ac30
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0xc]
mov edx, 0x5c
add ecx, eax
mov eax, dword [eax + 4]
mov word [ecx + eax*2], dx
mov eax, dword [ebp - 0x10]
inc dword [eax + 4]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0xc]
add ecx, eax
mov eax, dword [eax + 4]
xor edx, edx
mov word [ecx + eax*2], dx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0044f970
add esp, 8
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0040d690
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4542c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x454299
cmp eax, 0x20
jne 0x4542c1
lea eax, [ebp]
push eax
push ecx
mov ecx, dword [ebp - 0x14]
mov eax, esp
mov dword [eax], ecx
mov eax, dword [ecx]
test eax, eax
je 0x4542b3
cmp eax, 0xffffffff
je 0x4542b3
lock inc dword [ecx]
call fcn.004532f0
add esp, 8
test al, al
cmovne ebx, dword [ebp]
test esi, esi
je 0x4542cd
cmp ebx, 0xffffffff
setne al
mov byte [esi], al
cmp ebx, 0xffffffff
jne 0x4542d6
xor bl, bl
jmp 0x4542dc
shr ebx, 4
and bl, 1
mov eax, dword [ebp - 0x14]
or esi, 0xffffffff
mov eax, dword [eax]
test eax, eax
je 0x4542fd
cmp eax, esi
je 0x45430c
mov eax, dword [ebp - 0x14]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x45430c
push 4
push 2
push dword [ebp - 0x14]
call fcn.00403690
add esp, 0xc
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
test eax, eax
je 0x454329
cmp eax, 0xffffffff
je 0x454338
mov eax, dword [ebp - 0x10]
lock xadd dword [eax], esi
dec esi
setne al
test al, al
jne 0x454338
push 4
push 2
push dword [ebp - 0x10]
call fcn.00403690
add esp, 0xc
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp + 0x250]
xor ecx, ebp
call fcn.00524900
lea esp, [ebp + 0x254]
pop ebp
ret
Function at 0x454380
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54f25d
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x6fb4c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x4543b2
mov dword [esi], 0
push dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
call fcn.0044f970
add esp, 8
push 0
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0
call fcn.0040d690
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne bl
test esi, esi
je 0x4543ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x45440a
cmp eax, 0xffffffff
je 0x454419
mov ecx, dword [ebp + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
setne cl
test cl, cl
jne 0x454419
push 4
push 2
push dword [ebp + 0xc]
call fcn.00403690
add esp, 0xc
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x455500
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54f465
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x6fb4c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x45557e
mov eax, dword [esi + 4]
cmp dword [eax + 4], 0
jne 0x45557e
push str.Empty_filename_passed_to_function
movaps xmm0, xmmword [0x591ac0]
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x14], 0x5919f8
movups xmmword [ebp - 0x24], xmm0
call fcn.00429410
add esp, 8
call fcn.0052a48a
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 + 8]
mov ecx, esi
push eax
call fcn.0044cc70
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.00408f00
mov ecx, dword [ebp + 8]
or edi, 0xffffffff
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ecx]
test ecx, ecx
je 0x4555cd
cmp ecx, edi
je 0x4555dc
mov eax, dword [ebp + 8]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x4555dc
push 4
push 2
push dword [ebp + 8]
call fcn.00403690
add esp, 0xc
cmp ebx, 0xffffffff
je 0x4555eb
push str.Broken_filename_passed_to_function
jmp 0x455541
lea eax, [ebp + 8]
mov ecx, esi
push eax
call fcn.0044cc70
mov ecx, eax
mov dword [ebp - 4], 1
call fcn.0040d690
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp + 8]
mov esi, eax
test esi, esi
setne bl
mov eax, dword [ecx]
test eax, eax
je 0x45562f
cmp eax, 0xffffffff
je 0x45563e
mov eax, dword [ebp + 8]
lock xadd dword [eax], edi
dec edi
setne al
test al, al
jne 0x45563e
push 4
push 2
push dword [ebp + 8]
call fcn.00403690
add esp, 0xc
test esi, esi
jne 0x455654
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 0x455ad0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54a89d
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
mov eax, dword [0x6fb4c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.0044f970
add esp, 8
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.0040d690
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
mov eax, dword [ebp - 0x10]
setne bl
mov eax, dword [eax]
test eax, eax
je 0x455b3f
cmp eax, 0xffffffff
je 0x455b4e
mov ecx, dword [ebp - 0x10]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
setne cl
test cl, cl
jne 0x455b4e
push 4
push 2
push dword [ebp - 0x10]
call fcn.00403690
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 0x455d20
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54f54d
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x6fb4c0]
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 - 0x4c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x48], ebx
sub eax, ebx
je 0x455d93
sub eax, 1
je 0x455d8b
sub eax, 2
je 0x455d86
mov dword [esi], 0x57
mov dword [esi + 4], 2
xor al, al
jmp 0x455f19
lea edi, [ebp - 0x54]
jmp 0x455d96
lea eax, [ebp - 0x54]
mov dword [ebp - 0x48], eax
jmp 0x455d96
lea ebx, [ebp - 0x54]
call fcn.004656f0
mov ecx, dword [ebp - 0x38]
test eax, eax
jne 0x455e42
lea eax, [ebp - 0x44]
push eax
call fcn.004611a0
mov ecx, dword [ebp - 0x38]
lea eax, [ebp - 0x34]
push eax
call fcn.00465690
lea ecx, [ebp - 0x44]
call fcn.00467370
lea ecx, [ebp - 0x44]
mov word [ebp - 0x30], ax
call fcn.00463d40
lea ecx, [ebp - 0x44]
mov word [ebp - 0x2e], ax
call fcn.00461280
lea ecx, [ebp - 0x34]
mov word [ebp - 0x2a], ax
call fcn.00463670
lea ecx, [ebp - 0x34]
mov word [ebp - 0x28], ax
call fcn.00463ca0
lea ecx, [ebp - 0x34]
mov word [ebp - 0x26], ax
call fcn.00464e10
lea ecx, [ebp - 0x34]
mov word [ebp - 0x24], ax
call fcn.00463da0
lea ecx, [ebp - 0x44]
mov word [ebp - 0x22], ax
call fcn.004612e0
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 0x455edc
xor al, al
jmp 0x455f19
push 1
lea eax, [ebp - 0x40]
push eax
call fcn.004671f0
lea eax, [ebp - 0x3c]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x40]
call fcn.004611a0
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x40]
call fcn.00465690
lea ecx, [ebp - 0x3c]
call fcn.00467370
lea ecx, [ebp - 0x3c]
mov word [ebp - 0x20], ax
call fcn.00463d40
lea ecx, [ebp - 0x3c]
mov word [ebp - 0x1e], ax
call fcn.00461280
lea ecx, [ebp - 0x34]
mov word [ebp - 0x1a], ax
call fcn.00463670
lea ecx, [ebp - 0x34]
mov word [ebp - 0x18], ax
call fcn.00463ca0
lea ecx, [ebp - 0x34]
mov word [ebp - 0x16], ax
call fcn.00464e10
lea ecx, [ebp - 0x34]
mov word [ebp - 0x14], ax
call fcn.00463da0
lea ecx, [ebp - 0x3c]
mov word [ebp - 0x12], ax
call fcn.004612e0
cdq
mov ecx, 7
idiv ecx
lea ecx, [ebp - 0x40]
mov word [ebp - 0x1c], dx
call fcn.0045f860
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
je 0x455d7f
push edi
push ebx
push dword [ebp - 0x48]
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x455f17
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
xor al, al
mov dword [esi + 4], 2
jmp 0x455f19
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.00524900
mov esp, ebp
pop ebp
ret
Function at 0x456370
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54e5ad
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
mov eax, dword [0x6fb4c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
mov ecx, esi
mov byte [ebp - 0xd], 0
call fcn.0044c9e0
test al, al
je 0x456431
push 0x8001
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
push esi
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
call fcn.0044c7a0
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
movzx ecx, word [eax + ecx]
call fcn.0040ccb0
mov ebx, 1
lea ecx, [eax - 0x41]
mov eax, dword [ebp - 0x14]
shl ebx, cl
mov eax, dword [eax]
test eax, eax
je 0x456410
cmp eax, 0xffffffff
je 0x45641f
mov eax, dword [ebp - 0x14]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x45641f
push 4
push 2
push dword [ebp - 0x14]
call fcn.00403690
add esp, 0xc
and ebx, dword [ebp - 0x18]
setne al
neg ebx
sbb ebx, ebx
and ebx, 0x14
jmp 0x4564f6
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
call fcn.0044cc70
push 1
push str._UNC
push 7
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
call fcn.0040c3b0
test al, al
je 0x4564c4
mov eax, dword [ebp - 0x14]
push 1
push 7
mov ecx, dword [eax + 0xc]
mov ax, word [eax + ecx]
lea ecx, [ebp - 0x14]
mov word [ebp - 0x18], ax
push dword [ebp - 0x18]
call fcn.00408f00
mov edx, eax
test edx, edx
jle 0x4564ab
mov eax, dword [ebp - 0x14]
push 1
mov ecx, dword [eax + 0xc]
mov ax, word [eax + ecx]
lea ecx, [ebp - 0x14]
mov word [ebp - 0x18], ax
lea eax, [edx + 1]
push eax
push dword [ebp - 0x18]
call fcn.00408f00
mov ecx, eax
test ecx, ecx
jle 0x4564ab
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 4]
dec eax
cmp ecx, eax
jne 0x4564c4
lea eax, [ebp - 0x14]
push eax
call fcn.00456700
add esp, 4
test al, al
je 0x4564c4
mov ebx, 0x10
mov byte [ebp - 0xd], 1
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
test eax, eax
je 0x4564e4
cmp eax, 0xffffffff
je 0x4564f3
mov eax, dword [ebp - 0x14]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x4564f3
push 4
push 2
push dword [ebp - 0x14]
call fcn.00403690
add esp, 0xc
mov al, byte [ebp - 0xd]
test al, al
je 0x456522
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 esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x456540
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54f656
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x6fb4c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp - 0x34]
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
nop dword [eax]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x20]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x24]
push eax
push 1
call fcn.0040d690
push eax
call sub.NETAPI32.dll_NetShareEnum
mov dword [ebp - 0x30], eax
test eax, eax
je 0x4565b4
cmp eax, 0xea
jne 0x4566d1
mov edi, dword [ebp - 0x24]
mov eax, 1
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], eax
jb 0x4566d1
nop dword [eax + eax]
cmp dword [ebp + 0xc], 0
je 0x4566c1
cmp dword [edi + 4], 0
jne 0x4566c1
push 0xffffffffffffffff
push dword [edi]
lea eax, [ebp - 0x14]
push eax
call fcn.00408df0
add esp, 0xc
mov ecx, dword [eax]
or ebx, 5
mov dword [ebp - 0x18], ecx
mov dword [eax], 0x6e80cc
mov dword [ebp - 0x10], ebx
test bl, 2
je 0x45663a
mov eax, dword [esi]
and ebx, 0xfffffffd
mov dword [ebp - 0x10], ebx
test eax, eax
je 0x45662a
cmp eax, 0xffffffff
je 0x456637
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
setne al
test al, al
jne 0x456637
push 4
push 2
push esi
call fcn.00403690
add esp, 0xc
mov ebx, dword [ebp - 0x10]
test bl, 1
je 0x456674
mov eax, dword [ebp - 0x14]
and ebx, 0xfffffffe
mov dword [ebp - 0x10], ebx
mov eax, dword [eax]
test eax, eax
je 0x456665
cmp eax, 0xffffffff
je 0x456674
mov eax, dword [ebp - 0x14]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x456674
push 4
push 2
push dword [ebp - 0x14]
call fcn.00403690
add esp, 0xc
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 4], 1
call fcn.00406090
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [eax]
mov eax, dword [ebp - 0x18]
test ecx, ecx
je 0x4566ae
cmp ecx, 0xffffffff
je 0x4566bb
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
setne cl
test cl, cl
jne 0x4566bb
push 4
push 2
push eax
call fcn.00403690
add esp, 0xc
mov eax, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x10]
inc eax
add edi, 0xc
mov dword [ebp - 0x1c], eax
cmp eax, dword [ebp - 0x20]
jbe 0x4565d0
push dword [ebp - 0x24]
call sub.NETAPI32.dll_NetApiBufferFree
mov eax, dword [ebp - 0x30]
cmp eax, 0xea
je 0x456580
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 0x459380
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54fbcd
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x6fb4c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ecx + 4]
mov ecx, dword [ebx + 0x30]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 8]
je 0x45940a
mov edi, dword [ebx + 0x20]
nop
inc dword [edi + 8]
mov dword [ebp - 0x10], edi
mov ecx, dword [ebx + 0x30]
xor esi, esi
mov dword [ebp - 4], 0
mov eax, dword [ecx + 0xc]
sub eax, dword [ecx + 8]
test eax, eax
jle 0x459403
mov eax, dword [ecx + 8]
add eax, esi
mov ecx, dword [ecx + eax*4 + 0x10]
test ecx, ecx
je 0x4593f5
push dword [ebp + 0x10]
mov eax, dword [ecx]
push dword [ebp + 0xc]
push dword [ebp + 8]
mov eax, dword [eax + 4]
call eax
test al, al
jne 0x459420
mov ecx, dword [ebx + 0x30]
inc esi
mov eax, dword [ecx + 0xc]
sub eax, dword [ecx + 8]
cmp esi, eax
jl 0x4593d4
mov eax, dword [edi + 8]
dec eax
mov dword [edi + 8], eax
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 0xc
dec dword [edi + 8]
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 0xc