joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403f30
Capabilities:
Delete directory

Disassembly:
push 0xffffffffffffffff
push 0x46e77e
mov eax, dword fs:[0]
push eax
sub esp, 0x34c
mov eax, dword [0x48e820]
xor eax, esp
mov dword [esp + 0x344], eax
push ebp
push esi
push edi
mov eax, dword [0x48e820]
xor eax, esp
push eax
lea eax, [esp + 0x35c]
mov dword fs:[0], eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x364], 0
call fcn.0043a931
mov byte [esp + 0x364], 1
mov edi, dword [esp + 0x36c]
push edi
lea eax, [esp + 0x1c8]
push str._s.
push eax
call fcn.00454cf9
add esp, 0xc
push 0
lea ecx, [esp + 0x1c8]
push ecx
lea ecx, [esp + 0x20]
call fcn.0043a9bd
test eax, eax
je 0x4040c7
mov edi, edi
lea ecx, [esp + 0x18]
call fcn.0043a64a
lea ecx, [esp + 0x18]
mov ebp, eax
call fcn.0043a8f8
test eax, eax
jne 0x4040bf
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x1c]
call fcn.0043abec
mov esi, eax
mov byte [esp + 0x364], 2
mov eax, dword [esi]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, 0xc8
or eax, ecx
jge 0x404019
push 0xc8
mov ecx, esi
call fcn.00410120
mov ecx, dword [esi]
lea edx, [esp + 0x34]
nop
mov al, byte [ecx]
mov byte [edx], al
add ecx, 1
add edx, 1
test al, al
jne 0x404020
mov byte [esp + 0x364], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404056
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 0x38]
push 0x10
lea ecx, [esp + 0x1c]
call eax
test eax, eax
lea ecx, [esp + 0x34]
push ecx
push edi
push 0x47aab4
je 0x4040a1
lea edx, [esp + 0x108]
push edx
call fcn.00454cf9
add esp, 0xc
lea eax, [esp + 0x100]
mov ecx, esp
mov dword [esp + 0x34], esp
push eax
call fcn.00410560
call fcn.00403f30
add esp, 4
jmp 0x4040bf
lea edx, [esp + 0x298]
push edx
call fcn.00454cf9
add esp, 0x10
lea eax, [esp + 0x28c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test ebp, ebp
jne 0x403fc0
lea ecx, [esp + 0x18]
call fcn.0043a57a
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
mov byte [esp + 0x364], 0
lea ecx, [esp + 0x18]
jne 0x404117
call fcn.0043a955
lea eax, [edi - 0x10]
mov dword [esp + 0x364], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404113
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x404145
call fcn.0043a955
lea eax, [edi - 0x10]
mov dword [esp + 0x364], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404143
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [esp + 0x35c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x344]
xor ecx, esp
call fcn.004540ed
add esp, 0x358
ret
Function at 0x408f90
Capabilities:
Create directory
Get common file path
Get program files directory

Disassembly:
push 0xffffffffffffffff
push 0x46e44b
mov eax, dword fs:[0]
push eax
sub esp, 0x118
mov eax, dword [0x48e820]
xor eax, esp
mov dword [esp + 0x114], eax
push esi
push edi
mov eax, dword [0x48e820]
xor eax, esp
push eax
lea eax, [esp + 0x124]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0x10], edi
call fcn.0043adc8
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x408fe9
push 0x80004005
call fcn.0040fef0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0xc], esi
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x130], edi
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x409064
lea edx, [esp + 0x14]
push edx
push 0x26
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x409058
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x409047
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x10]
call fcn.00410440
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ecx, dword [esi - 0xc]
cmp ecx, edi
jne 0x4090c6
push 0x47b3d4
mov ecx, ebx
call fcn.00410560
lea eax, [esi - 0x10]
mov dword [esp + 0x12c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40909e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [esp + 0x124]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004540ed
add esp, 0x124
ret
lea eax, [ecx - 1]
cmp eax, edi
jl 0x409176
cmp eax, ecx
jg 0x409176
cmp byte [eax + esi], 0x5c
je 0x4090ef
push 1
push 0x47a9d8
lea ecx, [esp + 0x14]
call fcn.0040ecb0
push 0xc
push str.Dooland.com_
lea ecx, [esp + 0x14]
call fcn.0040ecb0
mov ecx, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push edi
push ecx
call esi
push 8
push str.dudubao_
lea ecx, [esp + 0x14]
call fcn.0040ecb0
mov edx, dword [esp + 0xc]
push edi
push edx
call esi
push 5
push str.V2.0_
lea ecx, [esp + 0x14]
call fcn.0040ecb0
push edi
mov edi, dword [esp + 0x10]
push edi
call esi
lea esi, [edi - 0x10]
push esi
call fcn.00410330
add eax, 0x10
mov dword [ebx], eax
add esp, 4
mov dword [esp + 0x12c], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40909e
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
jmp 0x409099
push 0x80070057
call fcn.0040fef0
int3
Function at 0x409190
Capabilities:
Get common file path
Get program files directory

Disassembly:
push 0xffffffffffffffff
push 0x46e40b
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x48e820]
xor eax, esp
mov dword [esp + 0x118], eax
push esi
push edi
mov eax, dword [0x48e820]
xor eax, esp
push eax
lea eax, [esp + 0x128]
mov dword fs:[0], eax
mov dword [esp + 0x10], 0
call fcn.0043adc8
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4091eb
push 0x80004005
call fcn.0040fef0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0xc], esi
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x134], 0
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x40926b
lea edx, [esp + 0x14]
push edx
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x40925f
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x40924e
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x10]
call fcn.00410440
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ecx, dword [esi - 0xc]
test ecx, ecx
jne 0x4092cd
push 0x47b3d4
mov ecx, ebx
call fcn.00410560
lea eax, [esi - 0x10]
mov dword [esp + 0x130], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4092a5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [esp + 0x128]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.004540ed
add esp, 0x128
ret
lea eax, [ecx - 1]
test eax, eax
jl 0x40939d
cmp eax, ecx
jg 0x40939d
cmp byte [eax + esi], 0x5c
je 0x4092f6
push 1
push 0x47a9d8
lea ecx, [esp + 0x14]
call fcn.0040ecb0
push 0x24
push str.Dooland.comdudubaoV2.0dudubao.exe
lea ecx, [esp + 0x14]
call fcn.0040ecb0
mov esi, dword [esp + 0xc]
push ecx
add esi, 0xfffffff0
mov dword [esp + 0x1c], esp
mov edi, esp
push esi
call fcn.00410330
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.00428960
add esp, 4
test eax, eax
je 0x409369
push esi
call fcn.00410330
add eax, 0x10
add esp, 4
mov dword [ebx], eax
mov dword [esp + 0x130], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4092a5
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
jmp 0x4092a5
push 0x47b3d4
mov ecx, ebx
call fcn.00410560
mov dword [esp + 0x130], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4092a5
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
jmp 0x4092a0
push 0x80070057
call fcn.0040fef0
int3
Function at 0x4093b0
Capabilities:
Create directory
Get common file path
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x46e3cb
mov eax, dword fs:[0]
push eax
sub esp, 0x518
mov eax, dword [0x48e820]
xor eax, esp
mov dword [esp + 0x514], eax
push esi
mov eax, dword [0x48e820]
xor eax, esp
push eax
lea eax, [esp + 0x520]
mov dword fs:[0], eax
mov dword [esp + 0xc], 0
call fcn.0043adc8
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40940a
push 0x80004005
call fcn.0040fef0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 8], esi
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0x52c], 0
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x40948a
lea edx, [esp + 0x10]
push edx
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x40947e
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x40946d
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0xc]
call fcn.00410440
mov esi, dword [esp + 8]
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ecx, dword [esi - 0xc]
test ecx, ecx
jne 0x4094eb
push 0x47b3d4
mov ecx, edi
call fcn.00410560
lea eax, [esi - 0x10]
mov dword [esp + 0x528], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4094c4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x520]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x514]
xor ecx, esp
call fcn.004540ed
add esp, 0x524
ret
lea eax, [ecx - 1]
test eax, eax
jl 0x4095a8
cmp eax, ecx
jg 0x4095a8
mov al, byte [eax + esi]
cmp al, 0x5c
je 0x409515
push 1
push 0x47a9d8
lea ecx, [esp + 0x10]
call fcn.0040ecb0
push 0xc
push str.dooland.com_
lea ecx, [esp + 0x10]
call fcn.0040ecb0
mov ecx, dword [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0
push ecx
call esi
push 8
push str.dudubao_
lea ecx, [esp + 0x10]
call fcn.0040ecb0
mov edx, dword [esp + 8]
push 0
push edx
call esi
push 0xf
push str.dudubaoPath.ini
lea ecx, [esp + 0x10]
call fcn.0040ecb0
mov esi, dword [esp + 8]
cmp dword [esi - 4], 1
jle 0x409578
mov eax, dword [esi - 0xc]
push eax
lea ecx, [esp + 0xc]
call fcn.0040fde0
mov esi, dword [esp + 8]
push esi
push 0x400
lea ecx, [esp + 0x124]
push ecx
push 0x47b3d4
push str.path
push str.config
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0x11c]
push edx
jmp 0x409496
push 0x80070057
call fcn.0040fef0
int3
Function at 0x409a90
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x46e3a0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48e820]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x38]
xor ebx, ebx
mov dword [esp + 0x1c], ebx
call fcn.0043adc8
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x409adb
push 0x80004005
call fcn.0040fef0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x1c], esi
lea ecx, [esp + 0x14]
push ecx
push 0xf003f
push ebx
push str.SoftwareDoolanddudubao
mov dword [esp + 0x40], ebx
push SysReAllocStringLen
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x409c1c
call fcn.0043adc8
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x409b30
push 0x80004005
call fcn.0040fef0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x18], esi
mov ecx, 1
mov byte [esp + 0x30], cl
mov dword [esp + 0x20], 0x400
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x400
or eax, ecx
jge 0x409b72
push 0x400
lea ecx, [esp + 0x1c]
call fcn.00410120
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push ecx
push esi
lea edx, [esp + 0x2c]
push edx
push ebx
push str.path
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x14]
push ecx
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, ebx
je 0x409bdc
push 0x47b3d4
mov ecx, ebp
call fcn.00410560
lea eax, [esi - 0x10]
mov byte [esp + 0x30], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x409bcb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x30], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
jmp 0x409c33
add esi, 0xfffffff0
push esi
call fcn.00410330
add eax, 0x10
add esp, 4
mov dword [ebp], eax
mov byte [esp + 0x30], bl
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409c0b
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov dword [esp + 0x30], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
jmp 0x409c33
push 0x47b3d4
mov ecx, ebp
call fcn.00410560
mov dword [esp + 0x30], 0xffffffff
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409c4c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x40c490
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
mov ebp, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [esp + 0x10], eax
lea esp, [esp]
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
call esi
lea ecx, [esp + 0x14]
push ecx
call edi
lea edx, [esp + 0x14]
push edx
call ebx
push 0x492e80
call fcn.0040ff50
mov eax, dword [esp + 0x34]
cmp dword [eax], 0
push 0x492e88
jg 0x40c50e
call ebp
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x10]
cmp eax, 0x493e0
jbe 0x40c4c0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
call ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret

Function at 0x40c520
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x20
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push edi
call ebp
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
mov dword [esp + 0x10], eax
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
call esi
lea ecx, [esp + 0x14]
push ecx
call edi
lea edx, [esp + 0x14]
push edx
call ebx
call ebp
sub eax, dword [esp + 0x10]
cmp eax, 0x7d0
jbe 0x40c545
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x40c730
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x46e221
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x48e820]
xor eax, esp
mov dword [esp + 0x44], eax
push ebp
push esi
push edi
mov eax, dword [0x48e820]
xor eax, esp
push eax
lea eax, [esp + 0x5c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x6c]
xor esi, esi
mov dword [esp + 0x64], esi
lea ecx, [esp + 0x20]
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], esi
call fcn.00430f0c
mov ebp, 1
mov dword [esp + 0x64], ebp
call fcn.0043adc8
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x40c79f
push 0x80004005
call fcn.0040fef0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x64], 2
mov edi, 2
call fcn.0043adc8
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40c795
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
lea ecx, [edi + 0x41]
push ecx
lea edx, [esp + 0x18]
push str._c:_
push edx
mov byte [esp + 0x70], 3
call fcn.00410070
mov esi, dword [esp + 0x20]
lea edx, [esp + 0x50]
add esp, 0xc
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, ebp
test cl, cl
jne 0x40c800
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x40c82e
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x44]
push ecx
push edx
lea ecx, [esp + 0x28]
call fcn.004313be
lea eax, [esi - 0x10]
mov byte [esp + 0x64], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c84f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add edi, ebp
cmp edi, 0x19
jle 0x40c7b9
mov ecx, dword [esp + 0x10]
push 0x47b240
call fcn.00410560
mov eax, dword [esp + 0x28]
xor edi, edi
xor esi, esi
test eax, eax
mov dword [esp + 0x1c], ebp
jle 0x40c8dd
mov ebp, dword [sym.imp.SHELL32.dll_SHGetDiskFreeSpaceExA]
mov edi, edi
test esi, esi
jl 0x40c932
cmp esi, eax
jge 0x40c932
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx + esi*4]
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x40]
push ecx
push 0
push eax
call ebp
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
shrd eax, edx, 0xa
shr edx, 0xa
cmp eax, edi
jbe 0x40c8d2
cmp esi, dword [esp + 0x28]
mov edi, eax
jge 0x40c932
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
lea eax, [eax + esi*4]
push eax
call fcn.004104e0
mov eax, dword [esp + 0x28]
add esi, 1
cmp esi, eax
jl 0x40c880
mov byte [esp + 0x64], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c902
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x64], 0
call fcn.00430ffe
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.004540ed
add esp, 0x58
ret
jmp fcn.0043af6a
Function at 0x40c940
Capabilities:
Delete file
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x46dab0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48e820]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x24], ebx
call fcn.0043adc8
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40c987
push 0x80004005
call fcn.0040fef0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 1
call fcn.004104e0
push 0x15
push str._dudubaoTestWrite.exe
lea ecx, [esp + 0x1c]
call fcn.0040ecb0
mov edi, dword [esp + 0x14]
cmp dword [edi - 4], 1
jle 0x40c9d5
mov edx, dword [edi - 0xc]
push edx
lea ecx, [esp + 0x18]
call fcn.0040fde0
mov edi, dword [esp + 0x14]
push 0x47adfc
push edi
call fcn.004547d8
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x40caad
push esi
push 1
push 8
push str.write_ok
call fcn.00454905
push esi
call fcn.00454a05
add esp, 0x10
lea esi, [edi - 0x10]
mov dword [esp + 0x1c], esp
mov ebp, esp
push esi
call fcn.00410330
add eax, 0x10
add esp, 4
mov dword [ebp], eax
call fcn.00428960
add esp, 4
cmp eax, ebx
je 0x40ca8e
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov byte [esp + 0x24], bl
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40ca4d
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov dword [esp + 0x24], 0xffffffff
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ca75
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov byte [esp + 0x24], bl
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cacd
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
jmp 0x40cacd
lea eax, [edi - 0x10]
mov byte [esp + 0x24], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cacd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x24], 0xffffffff
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40caf5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret