joyce8/EMBER2024-capa huggingface dataset:
Function at 0x433d60
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set file attributes

Disassembly:
sub esp, 0xa78
mov eax, dword [0x4b9b20]
xor eax, esp
mov dword [esp + 0xa74], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0xa88]
push edi
xor eax, eax
push 0x40e
push eax
lea ecx, [esp + 0x26e]
push ecx
mov word [esp + 0x270], ax
call fcn.004660d0
xor edx, edx
push 0x40e
push edx
lea eax, [esp + 0x68a]
push eax
mov word [esp + 0x68c], dx
call fcn.004660d0
mov eax, esi
add esp, 0x18
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x433dc1
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
sub eax, edx
sar eax, 1
cmp word [esi + eax*2 - 2], 0x5c
je 0x433de6
push 0x49ebb0
push esi
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
lea ecx, [esp + 0x678]
push ecx
call ebp
push 0x48dc94
lea edx, [esp + 0x678]
push edx
call edi
push 0x250
lea eax, [esp + 0x18]
push 0
push eax
call fcn.004660d0
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x678]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
mov dword [esp + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebx, 0xffffffff
je 0x433f5b
test ebx, ebx
je 0x433f5b
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, 0x48e72c
lea eax, [esp + 0x40]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x433e86
test dx, dx
je 0x433e82
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x433e86
add eax, 4
add ecx, 4
test dx, dx
jne 0x433e60
xor eax, eax
jmp 0x433e8b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x433f2d
mov ecx, 0x48dc78
lea eax, [esp + 0x40]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x433ec6
test dx, dx
je 0x433ec2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x433ec6
add eax, 4
add ecx, 4
test dx, dx
jne 0x433ea0
xor eax, eax
jmp 0x433ecb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x433f2d
push esi
lea eax, [esp + 0x268]
push eax
call ebp
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x268]
push edx
call edi
lea eax, [esp + 0x264]
push eax
call ebx
test al, 0x10
je 0x433f09
lea ecx, [esp + 0x264]
push ecx
call fcn.00433d60
add esp, 4
jmp 0x433f2d
test al, 1
je 0x433f1f
and eax, 0xfffffffe
push eax
lea edx, [esp + 0x268]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [esp + 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x433e50
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov al, 1
jmp 0x433f5d
xor al, al
mov ecx, dword [esp + 0xa84]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00466d50
add esp, 0xa78
ret
Function at 0x433fc0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0
push 0
push 3
push 0
push 3
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x433fe6
xor eax, eax
pop esi
ret
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push edi
push ecx
push 0
push edx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov edi, ecx
test edi, edi
je 0x434022
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
push 0
push edx
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret

Function at 0x434080
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x434095
xor eax, eax
pop esi
ret
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop esi
ret

Function at 0x434460
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4b9b20]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x14]
push esi
xor eax, eax
push edi
mov edi, dword [ebp + 8]
test ebx, ebx
setne al
push 0
push 0
mov dword [ebp - 8], 1
add eax, 2
push eax
push 0
push 3
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4344c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00466d50
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x4344d3
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push 0
lea ecx, [ebp - 0xc]
push ecx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4344f4
mov ecx, dword [ebp + 0x10]
cmp ecx, dword [ebp - 0xc]
je 0x4344fb
mov dword [ebp - 8], 0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], 0
jne 0x434542
test ebx, ebx
jne 0x434542
test edi, edi
je 0x43451f
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x434523
xor eax, eax
jmp 0x434539
lea esi, [eax + eax]
mov eax, esi
call fcn.00466d60
mov eax, esp
push 3
push esi
push edi
push eax
call fcn.00417ed0
push eax
call fcn.00469dc3
add esp, 4
mov eax, dword [ebp - 8]
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00466d50
mov esp, ebp
pop ebp
ret
Function at 0x434640
Capabilities:
Create directory

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
mov ebx, 3
mov dword [esp + 0x14], edi
cmp edi, ebx
jbe 0x4346ec
cmp word [ebp + ebx*2], 0x5c
jne 0x4346e3
call fcn.0044c136
push eax
push ebx
push ebp
lea ecx, [esp + 0x1c]
call fcn.00419880
mov esi, dword [esp + 0x10]
push esi
call fcn.004342f0
add esp, 4
test eax, eax
jne 0x4346c7
push ecx
lea eax, [esi - 0x10]
mov dword [esp + 0x1c], esp
mov edi, esp
push eax
call fcn.004199c0
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.00434580
add esp, 4
test eax, eax
jne 0x43474e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x434728
mov edi, dword [esp + 0x14]
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4346e3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc ebx
cmp ebx, edi
jb 0x434665
push ebp
call fcn.004342f0
add esp, 4
test eax, eax
jne 0x43476a
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push ebp
call fcn.0041a8d0
call fcn.00434580
add esp, 4
test eax, eax
jne 0x43476a
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x43476c
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x434744
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43476a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x439210
Capabilities:
Get mac address on windows

Disassembly:
mov eax, 0x28c8
call fcn.00467ec0
mov eax, dword [0x4b9b20]
xor eax, esp
mov dword [esp + 0x28c4], eax
push ebx
push esi
push edi
mov edi, dword [esp + 0x28d8]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x14], 0x2880
call sub.IPHLPAPI.DLL_GetAdaptersInfo
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push str.Not_found
lea edx, [esp + 0x2894]
push edx
lea esi, [esp + 0x18]
call ebx
movzx eax, byte [esp + 0x1a4]
cmp eax, 0xffffffff
jne 0x4392c8
lea ecx, [eax + 7]
movzx edx, byte [esi + 0x195]
cmp edx, 0xffffffff
jne 0x4392c8
movzx edx, byte [esi + 0x196]
cmp edx, 0xffffffff
jne 0x4392c8
movzx edx, byte [esi + 0x197]
cmp edx, 0xffffffff
jne 0x4392c8
movzx edx, byte [esi + 0x198]
cmp edx, 0xffffffff
jne 0x4392c8
movzx edx, byte [esi + 0x199]
cmp edx, 0xffffffff
jne 0x4392c8
cmp dword [esi + 0x1a0], ecx
je 0x4392c8
mov esi, dword [esi]
test esi, esi
je 0x4392c8
movzx edx, byte [esi + 0x194]
cmp edx, 0xffffffff
je 0x439272
movzx ecx, byte [esp + 0x1a9]
movzx edx, byte [esp + 0x1a8]
push ecx
movzx ecx, byte [esp + 0x1ab]
push edx
movzx edx, byte [esp + 0x1ae]
push ecx
movzx ecx, byte [esp + 0x1b1]
push edx
push ecx
push eax
lea edx, [esp + 0x28a8]
push 0x496950
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [esp + 0x28b0]
push 0x20
push eax
call fcn.00468f3f
add esp, 0x28
lea ecx, [esp + 0x2890]
push ecx
push edi
call ebx
mov ecx, dword [esp + 0x28d0]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.00466d50
add esp, 0x28c8
ret

Function at 0x439390
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x18
mov eax, dword [0x4b9b20]
xor eax, esp
mov dword [esp + 0x14], eax
mov ecx, dword [0x4969b0]
mov edx, dword [0x4969b4]
xor eax, eax
mov dword [0x4bfc98], eax
mov dword [0x4bfc9c], eax
mov dword [0x4bfca0], eax
mov dword [0x4bfca4], eax
mov dword [0x4bfca8], eax
mov dword [0x4bfcac], eax
mov dword [0x4bfcb0], eax
mov dword [0x4bfcb4], eax
mov eax, dword [str.Beijing_E_SafeNet]
mov dword [0x4bfc98], eax
mov eax, dword [0x4969b8]
mov dword [0x4bfc9c], ecx
mov cx, word [0x4969bc]
mov dword [0x4bfca0], edx
mov edx, dword [str.CDGCobra_DocGuard]
mov dword [0x4bfca4], eax
mov eax, dword [0x49699c]
mov word [0x4bfca8], cx
mov ecx, dword [0x4969a0]
mov dword [esp], edx
mov edx, dword [0x4969a4]
mov dword [esp + 4], eax
mov ax, word [0x4969a8]
push 0x4bfc98
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
mov word [esp + 0x14], ax
call fcn.00439350
lea ecx, [esp + 4]
push ecx
call fcn.00439350
add esp, 8
xor edx, edx
lea esp, [esp]
mov al, byte [edx + 0x4bfc98]
xor ecx, ecx
jmp 0x439460
xor al, byte [esp + ecx]
add ecx, 6
xor al, byte [esp + ecx - 5]
xor al, byte [esp + ecx - 4]
xor al, byte [esp + ecx - 3]
xor al, byte [esp + ecx - 2]
xor al, byte [esp + ecx - 1]
cmp ecx, 0x12
jl 0x439460
mov byte [edx + 0x4bfc98], al
inc edx
cmp edx, 0x20
jl 0x439450
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.00466d50
add esp, 0x18
ret
Function at 0x43a5a0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
push esi
xor esi, esi
cmp dword [esp + 0x10], esi
jle 0x43a5f7
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push edi
lea esp, [esp]
inc cl
movzx edi, cl
mov bl, byte [eax + edi + 8]
add dl, bl
movzx edx, dl
mov cl, byte [eax + edx + 8]
mov byte [eax + edi + 8], cl
add cl, bl
movzx ecx, cl
mov byte [eax + edx + 8], bl
movzx ecx, byte [ecx + eax + 8]
xor byte [esi + ebp], cl
inc esi
cmp esi, dword [esp + 0x1c]
mov dword [esp + 0x14], edi
mov ecx, edi
jl 0x43a5c0
pop edi
pop ebp
pop ebx
mov dword [eax + 4], edx
mov dword [eax], ecx
pop esi
ret
Function at 0x43ad00
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x14], ecx
movzx eax, word [ebp + 8]
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 0xe8
call fcn.00440540
movzx ecx, al
test ecx, ecx
jne 0x43ad2a
xor al, al
jmp 0x43aebe
mov ecx, dword [ebp - 0x14]
add ecx, 0x78
call fcn.0043e7f0
cmp eax, 1
jne 0x43ad41
xor al, al
jmp 0x43aebe
mov edx, dword [ebp - 0x14]
movsx eax, byte [edx + 0xe4]
test eax, eax
je 0x43ad56
xor al, al
jmp 0x43aebe
mov ecx, dword [ebp - 0x14]
add ecx, 0x20
call fcn.0043f980
movzx ecx, word [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x14]
add ecx, 0xe8
call fcn.00440570
mov ecx, dword [ebp - 0x14]
call fcn.0043af90
mov ecx, eax
call fcn.00442e70
movzx edx, al
test edx, edx
je 0x43adc3
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0
jne 0x43ada0
xor al, al
jmp 0x43aebe
mov ecx, dword [ebp - 0x14]
call fcn.0043d430
mov ecx, dword [ebp - 0x14]
call fcn.0043d520
movzx edx, al
test edx, edx
jne 0x43adc1
push 0xffffffffffffff94
mov ecx, dword [ebp - 0x14]
call fcn.0043aa10
jmp 0x43adcc
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x14]
call fcn.0043af90
mov dx, word [eax + 0xe]
mov word [ebp - 4], dx
movzx eax, word [ebp - 4]
test eax, eax
je 0x43adf7
movzx ecx, word [ebp - 4]
cmp ecx, 8
je 0x43adf7
push 0xffffffffffffff9b
mov ecx, dword [ebp - 0x14]
call fcn.0043aa10
movzx edx, word [ebp - 4]
cmp edx, 8
jne 0x43ae4d
mov eax, dword [ebp - 0x14]
movzx ecx, byte [eax + 4]
test ecx, ecx
je 0x43ae19
mov edx, dword [ebp - 0x14]
add edx, 0xc8
mov dword [ebp - 0x18], edx
jmp 0x43ae20
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x50], ecx
push 0x38
push 0x4969d0
push 0xfffffffffffffff1
mov edx, dword [ebp - 0x14]
add edx, 0x28
push edx
call fcn.00480650
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x14]
call fcn.0043af60
mov ecx, dword [ebp - 0x14]
call fcn.0043af90
mov ecx, dword [ebp - 0x14]
mov edx, dword [eax + 0x18]
mov dword [ecx + 0x64], edx
mov ecx, dword [ebp - 0x14]
call fcn.0043af90
mov ecx, eax
call fcn.00442e70
movzx eax, al
test eax, eax
je 0x43ae83
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x64]
sub edx, 0xc
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x64], edx
mov ecx, dword [ebp - 0x14]
call fcn.0043af90
mov ecx, dword [ebp - 0x14]
mov edx, dword [eax + 0x1c]
mov dword [ecx + 0x60], edx
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x68], 0
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x3c], 0
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x2c], 0
mov eax, dword [ebp - 0x14]
mov byte [eax + 0xe4], 0xff
mov al, 1
mov esp, ebp
pop ebp
ret 4
Function at 0x43b3c0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48a110
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x270
mov eax, dword [0x4b9b20]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x274], ecx
mov eax, dword [ebp - 0x274]
movsx ecx, byte [eax + 0xe4]
cmp ecx, 0xffffffff
je 0x43b411
xor eax, eax
jmp 0x43b63f
mov dword [ebp - 0x14], 1
movzx edx, byte [ebp + 0xc]
test edx, edx
jne 0x43b5f4
mov eax, dword [ebp - 0x274]
cmp dword [eax + 0x60], 0
jne 0x43b458
mov ecx, dword [ebp - 0x274]
call fcn.0043af90
mov ecx, dword [ebp - 0x274]
mov edx, dword [ecx + 0x68]
cmp edx, dword [eax + 0x14]
je 0x43b456
push 0xffffffffffffff9a
mov ecx, dword [ebp - 0x274]
call fcn.0043aa10
jmp 0x43b45f
mov dword [ebp - 0x14], 0xffffffff
mov ecx, dword [ebp - 0x274]
call fcn.0043af90
movzx eax, word [eax + 0xe]
cmp eax, 8
jne 0x43b482
mov ecx, dword [ebp - 0x274]
add ecx, 0x28
push ecx
call fcn.00480600
cmp dword [ebp + 8], 0
je 0x43b5f4
mov dword [ebp - 4], 0
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x244], 0
lea edx, [ebp - 0x240]
mov dword [ebp - 0x264], edx
mov eax, dword [ebp - 0x264]
mov dword [eax], 0
mov dword [eax + 4], 0
lea ecx, [ebp - 0x238]
mov dword [ebp - 0x268], ecx
mov edx, dword [ebp - 0x268]
mov dword [edx], 0
mov dword [edx + 4], 0
push 0
call fcn.00468998
add esp, 4
mov dword [ebp - 0x270], eax
mov dword [ebp - 0x26c], edx
mov eax, dword [ebp - 0x270]
mov dword [ebp - 0x254], eax
mov ecx, dword [ebp - 0x26c]
mov dword [ebp - 0x250], ecx
mov edx, dword [ebp - 0x254]
mov eax, dword [ebp - 0x250]
mov dword [ebp - 0x238], edx
mov dword [ebp - 0x234], eax
mov ecx, dword [ebp - 0x238]
mov dword [ebp - 0x248], ecx
mov edx, dword [ebp - 0x234]
mov dword [ebp - 0x244], edx
mov byte [ebp - 0x228], 0
mov ecx, dword [ebp - 0x274]
call fcn.0043af90
mov dword [ebp - 0x278], eax
lea eax, [ebp - 0x25c]
push eax
mov ecx, dword [ebp - 0x278]
call fcn.00442380
mov dword [ebp - 0x27c], eax
mov ecx, dword [ebp - 0x27c]
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
mov dword [ebp - 0x240], edx
mov dword [ebp - 0x23c], eax
lea ecx, [ebp - 0x248]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004444f3
mov ecx, dword [ebp - 0x274]
call fcn.0043af90
mov dword [ebp - 0x280], eax
mov eax, dword [ebp - 0x280]
mov ecx, dword [eax + 0x24]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x43b5ca
mov dword [ebp - 0x14], 0xfffffffe
jmp 0x43b5f4
mov dword [ebp - 4], 0xffffffff
jmp 0x43b605
mov ecx, dword [ebp - 0x274]
add ecx, 0xe8
call fcn.004406a0
mov eax, dword [ebp - 0x274]
mov byte [eax + 0xe4], 0
mov ecx, dword [ebp - 0x274]
add ecx, 0x6c
call fcn.0043fa60
mov ecx, dword [ebp - 0x274]
call fcn.0043da90
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.00466d50
mov esp, ebp
pop ebp
ret 8
Function at 0x43bf50
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48a269
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x4b9b20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
call fcn.0041a8d0
mov dword [ebp - 4], 0
push 0x49ebb0
lea ecx, [ebp - 0x10]
call fcn.00421bb0
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x44]
push edx
lea eax, [ebp - 0x18]
push eax
call fcn.0043bb80
add esp, 8
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp - 0x7c]
mov dword [ebp - 0x4c], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x28]
or edx, 1
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x48]
push ecx
mov ecx, dword [ebp - 0x4c]
call fcn.004197d0
neg eax
sbb eax, eax
add eax, 1
movzx edx, al
test edx, edx
jne 0x43c008
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
push ecx
call fcn.0043c120
add esp, 4
cmp eax, 0xffffffff
je 0x43c008
mov dword [ebp - 0x80], 0
jmp 0x43c00f
mov dword [ebp - 0x80], 1
mov dl, byte [ebp - 0x80]
mov byte [ebp - 0x11], dl
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x28]
and eax, 1
je 0x43c030
and dword [ebp - 0x28], 0xfffffffe
lea ecx, [ebp - 0x18]
call fcn.00419b80
movzx ecx, byte [ebp - 0x11]
test ecx, ecx
je 0x43c053
mov byte [ebp - 0x19], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00419b80
mov al, byte [ebp - 0x19]
jmp 0x43c10d
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x5c], edx
mov eax, dword [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x20]
push ecx
call fcn.0043bb80
add esp, 8
mov dword [ebp - 0x84], eax
mov edx, dword [ebp - 0x84]
mov dword [ebp - 0x60], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x60]
mov ecx, dword [eax]
mov dword [ebp - 0x64], ecx
mov edx, dword [ebp - 0x64]
push edx
call fcn.0043bf50
add esp, 4
movzx eax, al
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0x1a], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.00419b80
movzx ecx, byte [ebp - 0x1a]
test ecx, ecx
je 0x43c0c9
mov byte [ebp - 0x21], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00419b80
mov al, byte [ebp - 0x21]
jmp 0x43c10d
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x70], edx
push 0
mov eax, dword [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x43c0f7
mov byte [ebp - 0x22], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00419b80
mov al, byte [ebp - 0x22]
jmp 0x43c10d
mov byte [ebp - 0x23], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00419b80
mov al, byte [ebp - 0x23]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x43ce80
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.0043ced0
add esp, 8
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
xor edx, edx
cmp eax, 2
sete dl
mov byte [ebp - 1], dl
lea ecx, [ebp - 8]
call fcn.00419b80
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret
Function at 0x43f470
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48a788
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x4b9b20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4c], ecx
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ecx + 0x1c]
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax + 0x1c]
mov edx, dword [edx]
mov eax, dword [edx + 0x18]
call eax
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x34]
mov eax, dword [edx]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
push ecx
lea edx, [ebp - 0x30]
push edx
call fcn.0043ced0
add esp, 8
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax]
mov dword [ebp - 0x40], ecx
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0x25], al
lea ecx, [ebp - 0x30]
call fcn.00419b80
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00419b80
movzx ecx, byte [ebp - 0x25]
test ecx, ecx
je 0x43f529
xor eax, eax
jmp 0x43f53f
mov edx, dword [ebp - 0x24]
imul edx, dword [ebp - 0x14]
imul edx, dword [ebp - 0x10]
xor eax, eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret