joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403d90
Capabilities:
Resume thread
Suspend thread

Disassembly:
xor eax, eax
jmp 0x403dd1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x10], eax
jne 0x403dc2
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x14], eax
je 0x403dc2
push dword [ebp - 0x14]
push 0
push 0x1f03ff
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov esi, eax
test esi, esi
je 0x403d76
cmp dword [ebp + 8], 0
push esi
je 0x403db5
call dword [sym.imp.KERNEL32.dll_SuspendThread]
jmp 0x403dbb
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x1c]
push eax
push edi
call fcn.0045b086
test eax, eax
jne 0x403d7a
inc eax
pop esi
pop edi
leave
ret 4

Function at 0x404696
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 8], 0
jne 0x4046a6
xor eax, eax
jmp 0x40470a
push esi
mov esi, edi
call fcn.00404a3b
lea esi, [ebp - 0x14]
call fcn.004038f8
push dword [ebp + 8]
mov esi, 0x5834
push esi
push 0
push 4
add eax, 4
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [edi + 4], eax
lea eax, [ebp - 0x14]
call fcn.0040399d
mov eax, dword [edi + 4]
test eax, eax
je 0x4046ff
push esi
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [edi + 8], eax
jne 0x404703
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x404709
xor eax, eax
inc eax
mov dword [edi + 0xc], eax
pop esi
leave
ret 4
Function at 0x407753
Capabilities:
Check if file exists
Delete file
Get file attributes
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x49b390]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
cmp esi, edi
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x68], eax
je 0x407851
cmp eax, edi
je 0x407851
push eax
call fcn.0045c7c8
cmp eax, 0x20
pop ecx
jne 0x407851
push esi
mov byte [ebp - 0x5d], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40784a
test al, 0x10
jne 0x40784a
push edi
push 0x80
push 4
push edi
push 1
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40784a
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0x6400000
jae 0x407834
push esi
call fcn.0045b0a4
pop ecx
push edi
lea ecx, [ebp - 0x6c]
push ecx
push esi
push eax
push ebx
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x6c], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x64]
push esi
lea edi, [ebp - 0x18]
call fcn.004403d0
mov eax, dword [ebp - 0x68]
pop ecx
lea ecx, [ebp - 0x5c]
call fcn.004076cc
push 0x10
lea eax, [ebp - 0x5c]
push eax
mov eax, edi
push eax
call fcn.0045d753
add esp, 0xc
test eax, eax
jne 0x40782b
mov byte [ebp - 0x5d], 1
push dword [ebp - 0x64]
call fcn.0045c99a
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x5d], 0
jne 0x407846
push dword [ebp - 0x70]
jmp 0x40784b
mov al, 1
jmp 0x407853
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor al, al
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045c29b
leave
ret
Function at 0x408d4f
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x49b390]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4a6c0c]
add eax, 0x194
push 0x4889a0
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00404ee1
mov eax, dword [ebp - 0x1c]
add esp, 0xc
cmp dword [ebp - 8], 8
jae 0x408d87
lea eax, [ebp - 0x1c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 1
lea esi, [ebp - 0x20]
call fcn.004049f4
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0045c29b
leave
ret
Function at 0x413100
Capabilities:
Resolve dns

Disassembly:
cmp ecx, ebx
je 0x41322b
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
cmp esi, ebx
je 0x413163
mov eax, dword [esi + 0xc]
cmp dword [eax], ebx
mov dword [ebp - 0x34], ebx
je 0x413163
xor ecx, ecx
add eax, ecx
cmp dword [eax], ebx
je 0x413152
push 4
push dword [eax]
lea eax, [ebp - 0x38]
push eax
call fcn.0045c2b0
add esp, 0xc
lea eax, [ebp - 0x38]
push eax
lea edi, [ebp - 0x48]
call fcn.004141c2
mov edi, dword [ebp - 0x4c]
inc dword [ebp - 0x34]
mov ecx, dword [ebp - 0x34]
mov eax, dword [esi + 0xc]
shl ecx, 2
cmp dword [eax + ecx], ebx
jne 0x41312d
push ebx
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x18], 0xf
call fcn.004047df
mov byte [ebp - 4], 1
cmp dword [ebp - 0x44], ebx
je 0x4131c0
mov esi, dword [ebp - 0x40]
sub esi, dword [ebp - 0x44]
sar esi, 2
je 0x4131c0
call fcn.0045f882
xor edx, edx
div esi
cmp dword [ebp - 0x44], ebx
mov esi, edx
je 0x4131a4
mov eax, dword [ebp - 0x40]
sub eax, dword [ebp - 0x44]
sar eax, 2
cmp esi, eax
jb 0x4131a9
call fcn.0045d307
mov eax, dword [ebp - 0x44]
lea eax, [eax + esi*4]
push dword [eax]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea ecx, [ebp - 0x30]
call fcn.004047c2
mov eax, dword [0x4a55fc]
mov ecx, 0x4a55fc
call dword [eax + connect]
add eax, 0x10
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 2
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x4131e3
lea eax, [ebp - 0x2c]
push dword [ebp - 0x50]
movzx ecx, word [ebp + 0xc]
push ecx
push eax
lea eax, [ebp - 0x34]
push 0x4897fc
push eax
call fcn.00415103
mov esi, dword [ebp - 0x34]
add esi, 0xfffffff0
add esp, 0x14
mov eax, esi
call fcn.00412bd7
add eax, 0x10
mov dword [edi], eax
mov eax, esi
call fcn.00401144
push ebx
push 1
lea ecx, [ebp - 0x30]
call fcn.0040488d
lea esi, [ebp - 0x48]
call fcn.004506e6
jmp 0x413236
push reloc.KERNEL32.dll_SetStdHandle
push edi
call fcn.00413c14
mov eax, edi
call fcn.004643ee
ret
Function at 0x41d210
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61aa5bc7
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [reloc.ole32.dll_CreateStreamOnHGlobal]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edi, dword [0x61ab4108]
lea ebx, [esi + 0x10]
mov ecx, ebx
call edi
lea ecx, [esi + 0x1c]
mov dword [ebp - 4], 0
call edi
lea ecx, [esi + 0x20]
mov byte [ebp - 4], 1
call edi
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 2
call edi
lea ecx, [esi + 0x28]
mov byte [ebp - 4], 3
call edi
mov dword [esi + 0x34], 0
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
mov edi, dword [0x61ab4100]
mov dword [esi + 4], ecx
mov ecx, dword [ebp + 0x18]
mov dword [esi], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x14], ecx
push 0x61ab7858
lea ecx, [esi + 0x1c]
mov byte [ebp - 4], 5
mov dword [esi + 8], edx
mov dword [esi + 0xc], eax
call edi
push 0x61ab7858
lea ecx, [esi + 0x20]
call edi
push 0x61ab7858
mov ecx, ebx
call edi
push 0x61ab7858
lea ecx, [esi + 0x24]
call edi
push 0x61ab7858
lea ecx, [esi + 0x28]
call edi
xor eax, eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x2c], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18

Function at 0x41d2f0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61aa5c20
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [reloc.ole32.dll_CreateStreamOnHGlobal]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov ebx, dword [0x61ab40c0]
mov dword [esi], eax
mov ecx, dword [edi + 4]
mov dword [esi + 4], ecx
mov edx, dword [edi + 8]
mov dword [esi + 8], edx
mov eax, dword [edi + 0xc]
lea ecx, [edi + 0x10]
push ecx
lea ecx, [esi + 0x10]
mov dword [esi + 0xc], eax
call ebx
mov edx, dword [edi + 0x14]
lea ecx, [edi + 0x1c]
mov dword [esi + 0x14], edx
mov eax, dword [edi + 0x18]
push ecx
lea ecx, [esi + 0x1c]
mov dword [ebp - 4], 0
mov dword [esi + 0x18], eax
call ebx
lea edx, [edi + 0x20]
push edx
lea ecx, [esi + 0x20]
mov byte [ebp - 4], 1
call ebx
lea eax, [edi + 0x24]
push eax
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 2
call ebx
lea ecx, [edi + 0x28]
push ecx
lea ecx, [esi + 0x28]
mov byte [ebp - 4], 3
call ebx
mov edx, dword [edi + 0x2c]
mov dword [esi + 0x2c], edx
mov eax, dword [edi + 0x30]
mov dword [esi + 0x30], eax
mov edi, dword [edi + 0x34]
test edi, edi
mov dword [esi + 0x34], edi
je 0x41d3a4
mov ecx, dword [edi]
mov edx, dword [ecx + 4]
push edi
call edx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x41e160
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61aa5de8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [reloc.ole32.dll_CreateStreamOnHGlobal]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov ebx, dword [0x61ab40c0]
mov dword [esi], eax
mov ecx, dword [edi + 4]
mov dword [esi + 4], ecx
mov edx, dword [edi + 8]
mov dword [esi + 8], edx
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x10], ecx
mov edx, dword [edi + 0x14]
lea eax, [edi + 0x18]
push eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x14], edx
call ebx
lea ecx, [edi + 0x1c]
push ecx
lea ecx, [esi + 0x1c]
mov dword [ebp - 4], 0
call ebx
mov edx, dword [edi + 0x20]
invalid

Function at 0x4236d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61aa63e4
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [reloc.ole32.dll_CreateStreamOnHGlobal]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edi, dword [0x61ab4108]
call edi
lea ebx, [esi + 8]
mov ecx, ebx
mov dword [ebp - 4], 0
call edi
lea ecx, [esi + 0xc]
mov byte [ebp - 4], 1
call edi
lea ecx, [esi + 0x10]
mov byte [ebp - 4], 2
call edi
lea ecx, [esi + 0x14]
mov byte [ebp - 4], 3
call edi
xor eax, eax
mov dword [esi + 0x28], eax
movzx ecx, byte [esi + 0x1c]
mov edi, dword [0x61ab4100]
mov dword [esi + 0x30], ecx
push 0x61ab7858
mov ecx, ebx
mov byte [ebp - 4], 5
mov dword [esi + 0x2c], eax
mov dword [esi + 0x18], eax
mov byte [esi + 0x1c], al
call edi
push 0x61ab7858
mov ecx, esi
call edi
push 0x61ab7858
lea ecx, [esi + 0xc]
call edi
push 0x61ab7858
lea ecx, [esi + 0x14]
call edi
xor ecx, ecx
xor eax, eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], ecx
mov dword [esi + 0x34], ecx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x42ccd4
Capabilities:
Check for time delay via gettickcount
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x47fba4
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
mov eax, dword [0x49b390]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
xor esi, esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
lea ecx, [esp + 0x2c]
mov byte [esp + 0x48], 1
call fcn.0042ff6f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x10], eax
jmp 0x42cd39
xor esi, esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
sub eax, dword [esp + 0x10]
cmp eax, 0x3e8
jb 0x42cd5e
call ebx
cmp dword [ebp + 8], esi
mov dword [esp + 0x10], eax
je 0x42cd5e
mov ecx, edi
call fcn.0042d744
mov eax, dword [edi + 0x108]
cmp eax, esi
mov ecx, dword [edi + 0x104]
je 0x42cde4
cmp eax, 0xffffffff
je 0x42cde4
cmp ecx, esi
push 2
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
pop eax
je 0x42cd87
cmp ecx, 0xffffffff
jne 0x42cd8a
xor eax, eax
inc eax
push 1
push 0x64
push esi
lea ecx, [esp + 0x20]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjectsEx]
cmp eax, esi
je 0x42cde4
cmp eax, 1
jne 0x42cd39
cmp dword [esp + 0x20], esi
je 0x42cdb4
push dword [esp + 0x20]
call fcn.0045c296
pop ecx
cmp dword [esp + 0x30], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
je 0x42cdd0
push dword [esp + 0x30]
call fcn.0045c296
pop ecx
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea eax, [edi + 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea esi, [edi + 0x114]
mov ebx, esi
lea eax, [esp + 0x2c]
call fcn.0042fe89
call fcn.004300ac
lea esi, [edi + 0x124]
mov ebx, esi
lea eax, [esp + 0x1c]
call fcn.00430cc4
call fcn.00430e08
lea eax, [edi + 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [esp + 0x2c]
call fcn.00430037
mov esi, eax
test esi, esi
je 0x42ce57
ja 0x42ce40
call fcn.0045d307
test esi, esi
jle 0x42ce57
mov ebx, dword [esp + 0x30]
mov edx, ebx
mov ecx, edi
call fcn.0042f18e
add ebx, 0x68
dec esi
jne 0x42ce48
cmp dword [esp + 0x20], 0
je 0x42cd37
mov esi, dword [esp + 0x24]
sub esi, dword [esp + 0x20]
sar esi, 6
je 0x42cd37
test esi, esi
ja 0x42ce7e
call fcn.0045d307
test esi, esi
jle 0x42cd37
mov ebx, dword [esp + 0x20]
mov edx, ebx
mov ecx, edi
call fcn.0042ee0a
add ebx, 0x40
dec esi
jne 0x42ce88
jmp 0x42cd37
Function at 0x4382a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61aa8686
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [reloc.ole32.dll_CreateStreamOnHGlobal]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.00434980
mov dword [esi], 0x61ac3e78
mov dword [esi + 8], 0x61ad56c8
mov dword [esi + 0xc], 0x61ada73c
mov dword [esi + 0x10], 0x61acfe20
mov dword [esi + 0x14], 0x61ac9e14
mov dword [esi + 0x18], 0x61ac3e44
mov ebx, dword [0x61ab4108]
xor edi, edi
lea ecx, [esi + 0x24]
mov dword [ebp - 4], edi
mov dword [esi + 0x20], edi
call ebx
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
lea ecx, [esi + 0xac]
mov byte [ebp - 4], connect
call ebx
lea ebx, [esi + 0xb4]
mov ecx, ebx
mov byte [ebp - 4], connect
call fcn.00434a00
mov dword [ebx + 4], eax
mov byte [eax + 0x15], 1
mov eax, dword [ebx + 4]
mov dword [eax + 4], eax
mov eax, dword [ebx + 4]
mov dword [eax], eax
mov eax, dword [ebx + 4]
mov dword [eax + 8], eax
mov dword [ebx + 8], edi
mov dword [esi + 0xc0], edi
mov dword [esi + 0xcc], edi
mov dword [esi + 0xd0], edi
mov dword [esi + 0xd4], edi
mov dword [esi + 0xd8], edi
mov dword [esi + 0xc4], 0x61ac3e40
push esi
lea ecx, [esi + 0xdc]
mov byte [ebp - 4], 0xf
call fcn.004756d0
lea ecx, [esi + 0x11c]
mov byte [ebp - 4], 0x10
call dword [0x61ab4108]
push esi
lea ecx, [esi + 0x12c]
mov byte [ebp - 4], 0x11
call fcn.004364c0
mov dword [esi + 0x128], 0x61ae0c3c
push 0x5c
lea ebx, [esi + 0x50]
push edi
mov byte [ebp - 4], 0x12
push ebx
call 0x4a20a4
mov eax, dword [esi + 0x12c]
push eax
push edi
push 0x61ae8894
push 0x61ab9e7c
mov dword [esi + 0x54], 0xf8000000
mov dword [ebx], 0x5c
mov dword [esi + 0x58], edi
mov dword [esi + 0x64], 0x3c3c3c
mov dword [esi + 0x5c], 0xdc
mov dword [esi + 0xb0], edi
call fcn.00402a90
mov eax, dword [esi + 0x12c]
mov ecx, 0x61a34370
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], edi
add esp, 0x1c
mov eax, esi
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 0x43d2f0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61aa7c3e
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [reloc.ole32.dll_CreateStreamOnHGlobal]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.0043ca00
mov dword [esi], 0x61ac62b8
mov dword [esi + 8], 0x61ad56c8
mov dword [esi + 0xc], 0x61ada73c
mov dword [esi + 0x10], 0x61acfe20
xor eax, eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
push 0x5c
push eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x60], eax
mov dword [esi + 0x68], eax
mov ecx, 1
lea eax, [esi + 0x6c]
push eax
mov dword [esi + 0xc8], ecx
mov dword [esi + 0x64], ecx
call 0x4a20a4
fld1
fst qword [esi + 0x40]
add esp, 0xc
fst qword [esi + 0x48]
mov eax, esi
fst qword [esi + 0x50]
fstp qword [esi + 0x58]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x44f1bf
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push edi
mov edi, eax
xor ebx, ebx
call fcn.0044f185
cmp eax, 1
jne 0x44f263
mov eax, dword [edi + 0x14]
push esi
xor ecx, ecx
push 2
add eax, 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0045b0a4
cmp dword [edi + 0x18], 8
pop ecx
mov esi, eax
jb 0x44f202
mov eax, dword [edi + 4]
jmp 0x44f205
lea eax, [edi + 4]
push eax
mov eax, dword [edi + 0x14]
inc eax
inc eax
push eax
push esi
call fcn.004638a8
mov eax, dword [edi + 0x14]
push 4
lea eax, [esi + eax*2]
push ebx
push eax
call fcn.0045c920
add esp, 0x18
push 6
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], 3
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], ebx
mov word [ebp - 0x10], 0x414
mov dword [ebp - 6], ebx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebx, eax
neg ebx
sbb bl, bl
push esi
inc bl
call fcn.0045c99a
pop ecx
pop esi
pop edi
mov al, bl
pop ebx
leave
ret
Function at 0x44f269
Capabilities:
Create directory
Delete directory
Delete file
Write file on windows

Disassembly:
push 0x60
mov eax, reloc.KERNEL32.dll_SetStdHandle
call fcn.0046436b
mov eax, dword [ebp + 8]
push str.:_bdptestdir
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00404ee1
push str._bdptest.txt
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x2c]
xor edi, edi
push eax
mov dword [ebp - 4], edi
call fcn.00404ee1
add esp, 0x18
mov byte [ebp - 4], 1
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x44f2b1
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x30], 8
mov eax, dword [ebp - 0x44]
jae 0x44f2c4
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp dword [ebp - 0x34], edi
mov byte [ebp - 0x65], 1
je 0x44f3a0
push 0x485248
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.00404ee1
mov eax, dword [ebp - 0x60]
add esp, 0xc
cmp dword [ebp - 0x4c], 8
jae 0x44f2f9
lea eax, [ebp - 0x60]
push edi
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov ebx, eax
neg ebx
push edi
sbb bl, bl
push 1
lea esi, [ebp - 0x64]
inc bl
call fcn.004049f4
test bl, bl
je 0x44f3a0
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x44f329
lea eax, [ebp - 0x28]
push edi
push 0x80
push 2
push edi
push 2
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x44f398
push edi
push edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [ebp - 0x6c]
push eax
push 0xa
push str.test1
push esi
mov dword [ebp - 0x6c], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x44f36f
mov byte [ebp - 0x65], 0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edi, [ebp - 0x2c]
call fcn.0044f185
cmp eax, 2
jne 0x44f396
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x44f38f
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor edi, edi
lea eax, [ebp - 0x48]
call fcn.0044f1bf
push edi
push 1
lea esi, [ebp - 0x2c]
call fcn.004049f4
push edi
push 1
lea esi, [ebp - 0x48]
call fcn.004049f4
mov al, byte [ebp - 0x65]
call fcn.004643ee
ret
Function at 0x44f3bf
Capabilities:
Get disk information
Get disk size
Get storage device properties

Disassembly:
push 0x94
mov eax, 0x47eca1
call fcn.0046436b
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0x88], eax
jne 0x44f3e8
xor ax, ax
jmp 0x44f593
mov eax, dword [0x48d12c]
mov dword [ebp - 0x18], eax
mov eax, dword [0x48d130]
xor ecx, ecx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x84], ecx
mov eax, dword [ebp - 0x88]
shr eax, cl
cmp eax, ebx
je 0x44f58f
test al, 1
je 0x44f579
lea eax, [ebp - 0x18]
add ecx, 0x41
push eax
mov word [ebp - 0x18], cx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x44f579
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x44f579
xor eax, eax
lea edi, [ebp - 0x1e]
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ax, word [ebp - 0x18]
mov word [ebp - 0x20], ax
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x68]
call fcn.00404670
lea eax, [ebp - 0x68]
push eax
mov dword [ebp - 4], ebx
call fcn.0044f269
test al, al
pop ecx
jne 0x44f56a
mov eax, dword [ebp - 0x70]
cmp eax, ebx
jne 0x44f49f
cmp dword [ebp - 0x6c], ebx
je 0x44f557
mov ecx, dword [ebp - 0x6c]
cmp ecx, dword [ebp - 0x7c]
ja 0x44f56a
jb 0x44f4b6
cmp eax, dword [ebp - 0x80]
jae 0x44f56a
mov esi, str.__a:
lea edi, [ebp - 0x40]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor eax, eax
lea edi, [ebp - 0x32]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push ebx
push ebx
stosd dword es:[edi], eax
push 3
stosw word es:[edi], ax
mov ax, word [ebp - 0x18]
push ebx
push 3
mov word [ebp - 0x38], ax
push 0x80000000
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x78], eax
je 0x44f557
mov edi, 0x227
push edi
call fcn.0045b0a4
pop ecx
push ebx
mov esi, eax
mov dword [esi + 4], edi
lea eax, [ebp - 0x8c]
push eax
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
push dword [esi + 4]
lea eax, [ebp - 0x4c]
push esi
push connect
push eax
push 0x2d1400
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp eax, ebx
je 0x44f547
cmp dword [esi + 0x1c], 7
jne 0x44f547
push esi
call fcn.0045c99a
pop ecx
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x44f56a
push esi
call fcn.0045c99a
pop ecx
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x6c], eax
movzx eax, word [ebp - 0x18]
mov dword [ebp - 0x74], eax
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea esi, [ebp - 0x68]
call fcn.004049f4
mov ecx, dword [ebp - 0x84]
inc ecx
cmp ecx, 0x1a
mov dword [ebp - 0x84], ecx
jl 0x44f409
mov ax, word [ebp - 0x74]
call fcn.004643ee
ret