joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404bd0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
jne 0x404bec
mov eax, dword [ebp - 4]
jmp 0x404cc7
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
shr ecx, 3
xor eax, 0xffffffff
test ecx, ecx
je 0x404ca2
push ebp
mov ebp, ecx
xor edx, edx
xor ecx, ecx
nop
mov ebx, dword [esi]
add esi, 4
mov dl, bl
mov cl, bh
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x633060]
shr ebx, 0x10
xor eax, edi
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x633060]
mov dl, bl
xor eax, edi
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x633060]
mov cl, bh
xor eax, edi
mov ebx, dword [esi]
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x633060]
add esi, 4
xor eax, edi
mov dl, bl
mov cl, bh
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x633060]
shr ebx, 0x10
xor eax, edi
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x633060]
mov dl, bl
xor eax, edi
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x633060]
mov cl, bh
xor eax, edi
xor cl, al
shr eax, 8
xor eax, dword [ecx*4 + 0x633060]
dec ebp
jne 0x404c0c
pop ebp
mov ecx, dword [ebp + 0x10]
xor edx, edx
and ecx, 7
je 0x404cbe
mov dl, byte [esi]
inc esi
xor dl, al
shr eax, 8
xor eax, dword [edx*4 + 0x633060]
dec ecx
jne 0x404cac
xor eax, 0xffffffff
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405a40
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d0385
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x64c00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x405c29
cmp dword [edi], 0
jne 0x405c29
mov eax, dword [edi + 8]
mov byte [edi + 0xc], 0
test eax, eax
je 0x405ab1
push eax
call dword [sym.imp.USER32.dll_DestroyMenu]
cmp byte [edi + 0xc], 0
mov dword [edi + 8], 0
je 0x405ab1
push esi
call fcn.00405c50
mov esi, eax
jmp 0x405be1
mov dword [ebp + 8], 0
push 0
push 0
lea eax, [ebp + 8]
mov dword [ebp - 4], 0
push eax
push 0
push dword [esi]
call dword [sym.imp.SHELL32.dll_SHParseDisplayName]
test eax, eax
je 0x405af8
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
test eax, eax
je 0x405af1
push eax
call dword [sym.imp.SHELL32.dll_ILFree]
mov dword [ebp + 8], 0
xor esi, esi
jmp 0x405be1
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x1c], 0
push eax
push 0x5d8988
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_SHBindToParent]
test eax, eax
je 0x405b37
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x405ad5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x405ad5
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x405c3e
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0x5d89b8
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], eax
mov eax, dword [esi]
push ecx
push 1
push 0
push esi
mov dword [ebp - 0x10], 0
call dword [eax + 0x28]
test eax, eax
jne 0x405b71
mov esi, dword [ebp - 0x10]
jmp 0x405bb4
mov eax, dword [esi]
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0x5d8958
lea ecx, [ebp - 0x18]
push ecx
push 1
push 0
push esi
call dword [eax + 0x28]
test eax, eax
jne 0x405b93
mov esi, dword [ebp - 0x10]
jmp 0x405bb4
mov eax, dword [esi]
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0x5d8978
lea ecx, [ebp - 0x18]
push ecx
push 1
push 0
push esi
call dword [eax + 0x28]
xor esi, esi
test eax, eax
cmove esi, dword [ebp - 0x10]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x405bc5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
test eax, eax
je 0x405be1
push eax
call dword [sym.imp.SHELL32.dll_ILFree]
mov dword [ebp + 8], 0
mov dword [edi], esi
test esi, esi
je 0x405c29
call dword [sym.imp.USER32.dll_CreatePopupMenu]
mov ecx, dword [edi]
push 4
push 0x7fff
push 1
push 0
mov dword [edi + 8], eax
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0xc]
mov ecx, dword [edi]
lea eax, [edi + 4]
push eax
push 0x5d8958
push ecx
mov edx, dword [ecx]
call dword [edx]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.00405600
int3
Function at 0x4060a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4060f9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4060f9
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x4060e8
cmp esi, edx
jae 0x4060f9
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x4060d6
cmp esi, edx
jae 0x4060f9
cmp word [esi], 0
je 0x4060f9
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret

Function at 0x407ea0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d06bd
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x64c00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push esi
lea ecx, [ebp - 0x10]
call fcn.00406b20
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x407f3f
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x407f3f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x407f3f
lea ecx, [ebp - 0x10]
call fcn.00407db0
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
jne 0x407f11
xor esi, esi
jmp 0x407f44
mov ecx, dword [ebp - 0x10]
call fcn.00407ea0
test eax, eax
jne 0x407f21
xor esi, esi
jmp 0x407f44
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x407f3f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x407f3f
xor esi, esi
jmp 0x407f44
mov esi, 1
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x407f66
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x408350
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d07cd
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x64c00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x14], edi
call fcn.00405800
mov ecx, eax
test ecx, ecx
je 0x408443
mov eax, dword [ecx]
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x10], ebx
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test esi, esi
je 0x408404
cmp word [esi], 0
je 0x408404
test al, 0x10
je 0x4083cc
push 7
push str.:folder
lea ecx, [ebp - 0x10]
call fcn.00406ed0
mov esi, dword [ebp - 0x10]
add esi, 0xfffffff0
jmp 0x408407
push 0x2e
push esi
call fcn.005a4e4b
mov edx, eax
add esp, 8
test edx, edx
cmove edx, esi
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4083e3
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x10]
call fcn.00406ed0
mov esi, dword [ebp - 0x10]
add esi, 0xfffffff0
jmp 0x408407
lea esi, [ebx - 0x10]
mov ecx, esi
call fcn.00406d70
add eax, 0x10
mov dword [ebp - 4], 0xffffffff
mov dword [edi], eax
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40842f
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
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 0x80004005
call fcn.00405600
int3
Function at 0x409690
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d08dd
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x64c00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x20], ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
call fcn.00405800
mov ecx, eax
test ecx, ecx
je 0x409835
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
add ebx, 4
mov dword [ebp - 4], 0
mov ecx, ebx
mov edi, dword [ebx]
push dword [edi + 4]
push ebx
call fcn.0040aa70
push 0
push 0
push 3
push 0
push 1
push closesocket
push dword [ebp + 8]
mov dword [edi + 4], edi
mov dword [edi], edi
mov dword [edi + 8], edi
mov dword [ebx + 4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
je 0x4097fe
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [ebp - 0x18], 0
mov ebx, eax
jne 0x4097f5
cmp ebx, 0x200000
ja 0x4097f5
lea ecx, [ebx + 2]
push ecx
call fcn.0048409e
add esp, 4
mov dword [ebp + 8], 0
mov edi, eax
lea eax, [ebp + 8]
push 0
push eax
push ebx
push edi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4097f5
mov eax, dword [ebp + 8]
cmp eax, ebx
jne 0x4097f5
push dword [ebp - 0x14]
mov byte [eax + edi], 0
mov eax, dword [ebp + 8]
mov byte [eax + edi + 1], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x4097fe
mov eax, edi
cmp ebx, 3
jb 0x4097e7
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4097a6
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x10]
call fcn.004089b0
mov esi, dword [ebp - 0x10]
mov eax, edi
cmp dword [esi - 0xc], 0
je 0x4097e7
push 0xa
push 0xd
lea ecx, [ebp - 0x10]
call fcn.00408620
mov esi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
push esi
call fcn.00409840
mov dword [ebp - 0x1c], eax
mov eax, edi
push eax
call fcn.00484099
mov ebx, dword [ebp - 0x1c]
add esp, 4
jmp 0x409800
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40981f
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.00405600
int3
Function at 0x40afd0
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d0acd
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x64c00c]
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 edi, ecx
mov dword [ebp - 0x24], edi
call fcn.00405800
mov ecx, eax
test ecx, ecx
je 0x40b1e1
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
mov ebx, dword [ebp + 8]
push ebx
mov dword [ebp - 4], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40b041
push ebx
call fcn.0040bea0
xor ebx, ebx
test eax, eax
setns bl
jmp 0x40b19f
lea ebx, [edi + 8]
mov edi, dword [ebx]
mov ecx, ebx
push dword [edi + 4]
push ebx
call fcn.0040aa70
push 0
push 0
push 3
push 0
push 1
push closesocket
push dword [ebp + 8]
mov dword [edi + 4], edi
mov dword [edi], edi
mov dword [edi + 8], edi
mov dword [ebx + 4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40b19d
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], eax
jne 0x40b196
cmp eax, 0x200000
ja 0x40b196
lea ecx, [eax + 2]
push ecx
call fcn.0048409e
add esp, 4
mov dword [ebp - 0x14], 0
mov edi, eax
lea eax, [ebp - 0x14]
push 0
push eax
push dword [ebp - 0x20]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40b196
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x20]
jne 0x40b196
mov byte [eax + edi], 0
mov eax, dword [ebp - 0x14]
push ebx
mov byte [eax + edi + 1], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x40b19d
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40b107
sub ecx, edx
lea ebx, [ecx + 1]
cmp ebx, 0x3fffffff
jg 0x40b161
lea eax, [ebx + ebx]
call fcn.005cf2e0
mov esi, esp
test esi, esi
je 0x40b161
push ebx
push esi
push 0xffffffffffffffff
xor eax, eax
push edi
push eax
push 0xfde9
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x40b161
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b150
sub ecx, edx
sar ecx, 1
jmp 0x40b165
xor ecx, ecx
xor esi, esi
push ecx
push esi
lea ecx, [ebp - 0x18]
call fcn.00406ed0
push 0xa
push 0xd
lea ecx, [ebp - 0x18]
call fcn.00408620
mov ecx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x18]
push esi
mov eax, dword [ecx]
call dword [eax]
push edi
mov ebx, 1
call fcn.00484099
add esp, 4
jmp 0x40b19f
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40b1be
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
lea esp, [ebp - 0x34]
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.00483ab6
mov esp, ebp
pop ebp
ret 0xc
push 0x80004005
call fcn.00405600
int3
Function at 0x40ba00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d0b55
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x64c00c]
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 ebx, ecx
xor edi, edi
mov dword [ebp - 0x18], edi
call fcn.00405800
mov ecx, eax
test ecx, ecx
je 0x40bbce
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], edi
call fcn.00405800
mov ecx, eax
test ecx, ecx
je 0x40bbd8
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x24], esi
push edi
push edi
push 2
push edi
push 1
push 0x40000000
push dword [ebp + 8]
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
je 0x40bb6e
mov edx, dword [ebx]
lea eax, [ebp - 0x20]
push eax
mov ecx, ebx
call dword [edx + 4]
push edi
lea eax, [ebp - 0x18]
mov word [ebp - 0x14], 0xbbef
push eax
push 3
lea eax, [ebp - 0x14]
mov byte [ebp - 0x12], 0xbf
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40bb65
cmp dword [ebp - 0x18], 3
jne 0x40bb65
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40bb31
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40bad5
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
mov dword [ebp - 0x28], eax
cmp eax, 0x3fffffff
jg 0x40bb31
add eax, eax
call fcn.005cf2e0
mov esi, esp
test esi, esi
je 0x40bb31
mov ecx, dword [ebp - 0x28]
push 0
push 0
mov byte [esi], 0
lea eax, [ecx + ecx]
push eax
push esi
push 0xffffffffffffffff
push ebx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x40bb31
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40bb26
sub ecx, edx
jmp 0x40bb35
xor esi, esi
xor ecx, ecx
push ecx
push esi
lea ecx, [ebp - 0x24]
call fcn.0040a7e0
mov esi, dword [ebp - 0x24]
lea eax, [ebp - 0x18]
push 0
push eax
mov ebx, dword [esi - 0xc]
push ebx
push esi
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40bb65
cmp dword [ebp - 0x18], ebx
mov eax, 1
cmove edi, eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esi - 0x10]
mov byte [ebp - 4], 0
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40bb8c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x40bbab
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
lea esp, [ebp - 0x38]
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.00483ab6
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.00405600
push 0x80004005
call fcn.00405600
int3
Function at 0x40bea0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d0b8d
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x64c00c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [ebp + 8]
test edx, edx
jne 0x40beda
mov eax, 0x80070057
jmp 0x40c028
mov ecx, edx
mov dword [ebp - 0x2c], 0
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
lea esi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40bf00
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.0040c050
mov dword [ebp - 4], 0
lea edx, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
mov esi, dword [ebp - 0x1c]
cmovae edx, dword [ebp - 0x2c]
test esi, esi
je 0x40c019
or ecx, 0xffffffff
lea eax, [esi - 1]
cmp eax, ecx
cmovb ecx, eax
cmp word [edx + ecx*2], 0x5c
lea ecx, [edx + ecx*2]
je 0x40bf61
nop dword [eax + eax]
cmp ecx, edx
je 0x40c019
sub ecx, 2
cmp word [ecx], 0x5c
jne 0x40bf50
sub ecx, edx
sar ecx, 1
cmp ecx, 0xffffffff
je 0x40c019
cmp esi, ecx
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x34], 0
cmovb ecx, esi
mov dword [ebp - 0x30], 7
cmp dword [ebp - 0x18], 8
push ecx
cmovae eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x44]
push eax
call fcn.0040c050
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
push 0
cmovae eax, dword [ebp - 0x44]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
lea ecx, [ebp - 0x44]
mov esi, eax
call fcn.00408a60
test esi, esi
je 0x40bfce
cmp esi, 0x50
je 0x40bfce
cmp esi, 0xb7
jne 0x40bfff
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push 0
cmovae eax, dword [ebp - 0x2c]
push 0x80
push 1
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x40c00e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x40c01e
movzx esi, si
or esi, 0x80070000
jmp 0x40c01e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
jmp 0x40c01e
mov esi, 0x80070057
lea ecx, [ebp - 0x2c]
call fcn.00408a60
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00483ab6
mov esp, ebp
pop ebp
ret 4
Function at 0x40c240
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d0be6
mov eax, dword fs:[0]
push eax
sub esp, 0x2f8
mov eax, dword [0x64c00c]
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 edi, ecx
push 0xd4
lea eax, [ebp - 0xe4]
push 0
push eax
call fcn.005a52f0
add esp, 0xc
lea eax, [ebp - 0xe4]
push eax
push 0x69
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x40c463
cdq
and edx, 3
add eax, edx
sar eax, 2
push 0x208
mov dword [ebp - 0x300], eax
lea eax, [ebp - 0x2f0]
push 0
push eax
call fcn.005a52f0
add esp, 0xc
lea ebx, [ebp - 0xe4]
xor eax, eax
add edi, 4
mov ecx, edi
mov word [ebp - 0xe8], ax
call fcn.0040c9f0
cmp dword [ebp - 0x300], 0
mov dword [ebp - 0x2fc], 0
jle 0x40c45e
xor eax, eax
mov word [ebx + 4], ax
lea eax, [ebp - 0x2f0]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x40c442
call fcn.00405800
test eax, eax
je 0x40c47f
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x2f4], eax
lea eax, [ebp - 0x2f0]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x2f4]
call fcn.00406c20
test al, al
jne 0x40c378
lea eax, [ebp - 0x2f0]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40c356
sub eax, edx
lea ecx, [ebp - 0x2f4]
sar eax, 1
push eax
lea eax, [ebp - 0x2f0]
push eax
call fcn.00406ed0
mov dword [ebp - 4], 1
mov eax, dword [edi + 4]
mov esi, dword [ebp - 0x2f4]
mov dword [ebp - 0x304], eax
cmp eax, dword [edi + 8]
je 0x40c3ac
lea ecx, [esi - 0x10]
call fcn.00406d70
mov ecx, dword [ebp - 0x304]
add eax, 0x10
mov dword [ecx], eax
add dword [edi + 4], 4
jmp 0x40c3bb
lea ecx, [ebp - 0x2f4]
push ecx
push eax
mov ecx, edi
call fcn.0040ce90
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40c3da
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push ebx
lea ecx, [ebp - 0x2f8]
call fcn.00406b20
mov dword [ebp - 4], 2
mov esi, dword [edi + 4]
cmp esi, dword [edi + 8]
je 0x40c40e
mov ecx, dword [ebp - 0x2f8]
lea ecx, [ecx - 0x10]
call fcn.00406d70
add eax, 0x10
mov dword [esi], eax
add dword [edi + 4], 4
jmp 0x40c41d
lea eax, [ebp - 0x2f8]
mov ecx, edi
push eax
push esi
call fcn.0040ce90
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x2f8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40c442
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x2fc]
add ebx, 8
inc eax
mov dword [ebp - 0x2fc], eax
cmp eax, dword [ebp - 0x300]
jl 0x40c2f2
mov eax, 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.00483ab6
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00405600
int3