joyce8/EMBER2024-capa huggingface dataset:
Function at 0x421187
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x432040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.004171a0
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.004171a0
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x4211fe
cmp word [ecx], dx
je 0x4211fe
mov eax, dword [0x42b8b4]
push edi
dec eax
push eax
push 0x42b7a0
call fcn.00421126
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x421271
cmp word [eax], dx
je 0x421271
mov eax, dword [edi]
test eax, eax
je 0x421222
cmp word [eax], dx
je 0x421222
lea eax, [ebp - 0x10]
push eax
call fcn.00420b07
jmp 0x42122b
lea eax, [ebp - 0x10]
push eax
call fcn.00420ba2
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x42129b
mov eax, dword [0x42b79c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x42b490
call fcn.00421126
add esp, 0xc
test al, al
je 0x42129b
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x421266
cmp word [eax], di
je 0x421266
lea eax, [ebp - 0x10]
push eax
call fcn.00420b07
pop ecx
jmp 0x42129d
lea eax, [ebp - 0x10]
push eax
call fcn.00420ba2
jmp 0x421263
mov eax, dword [edi]
test eax, eax
je 0x421288
cmp word [eax], dx
je 0x421288
lea eax, [ebp - 0x10]
push eax
call fcn.00420abc
pop ecx
jmp 0x42129b
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x421366
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00420fab
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x421366
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x421366
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x421366
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4212f3
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00419d27
test ebx, ebx
je 0x421361
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00419d27
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x421366
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x421366
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00424077
add esp, 0x10
xor eax, eax
inc eax
jmp 0x421368
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a6b3
leave
ret
Function at 0x425d80
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x425dad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x425dad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401515
Capabilities:
Hash data with md5

Disassembly:
xor ecx, ecx
mov byte [eax + 0x68], cl
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x401c08
Capabilities:
Create process on windows
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [esi]
sub esp, 0x54
push ebx
xor ebx, ebx
push edi
cmp dword [eax - 0xc], ebx
je 0x401d84
mov eax, dword [0x45a140]
mov ecx, 0x45a140
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 4], eax
push 0x44abb0
lea eax, [ebp - 8]
call fcn.0040455c
lea edi, [ebp - 4]
lea ecx, [ebp - 8]
call fcn.0040a23b
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.00404645
push 0x44abb8
mov eax, edi
push eax
call fcn.00402105
mov edi, dword [ebp - 4]
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
jne 0x401c90
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [edi - 0x10]
jmp 0x401d7f
mov eax, dword [0x45a140]
mov ecx, 0x45a140
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xc], eax
push edi
lea eax, [ebp - 8]
call fcn.00401fac
mov eax, str._echo_off__r_nATTRIB__r___s___r_n:try__r_nrd___s___r_nif_exist___s__goto_try_r_nATTRIB__r___s___r_ndel___s___cls
cmp byte [esi + 9], bl
jne 0x401cbb
mov eax, str._echo_off__r_nATTRIB__r___s___r_n:try__r_ndel___s___r_nif_exist___s__goto_try_r_nATTRIB__r___s___r_ndel___s___cls
push dword [ebp - 8]
push dword [ebp - 8]
push dword [esi]
push dword [esi]
push dword [esi]
push eax
lea eax, [ebp - 0xc]
call fcn.004022ab
mov edi, dword [ebp - 0xc]
add esp, 0x18
push ebx
lea eax, [ebp - 0x10]
push eax
push dword [edi - 0xc]
push edi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.00404645
lea eax, [edi - 0x10]
call fcn.00404645
cmp dword [ebp - 0x18], ebx
je 0x401d09
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi + 4]
lea edi, [ebp - 0xc]
call fcn.00409f0c
cmp byte [esi + 8], bl
jne 0x401d30
mov edi, dword [ebp - 0xc]
push ebx
push edi
push ebx
push dword [ebp - 4]
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x401d71
push 0x3c
pop edi
push edi
lea eax, [ebp - 0x54]
push ebx
push eax
call fcn.004318c0
mov eax, dword [ebp - 4]
mov dword [ebp - 0x44], eax
add esp, 0xc
mov dword [ebp - 0x54], edi
mov edi, dword [ebp - 0xc]
lea eax, [ebp - 0x54]
push eax
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x50], 0x500
mov dword [ebp - 0x48], str.runas
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x38], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
lea eax, [edi - 0x10]
call fcn.00404645
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00404645
mov eax, dword [esi + 4]
sub eax, 0x10
call fcn.00404645
mov eax, dword [esi]
sub eax, 0x10
call fcn.00404645
pop edi
pop ebx
leave
ret
Function at 0x403010
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
jne 0x40301e
push 0xd
pop eax
jmp 0x403051
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x403025
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
push 7
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x403452
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x458090]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
or ecx, 0x2001f
push ecx
push eax
push dword [edi]
mov dword [ebp - 0x21c], eax
xor esi, esi
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x210], esi
call fcn.0040341f
mov ebx, eax
cmp ebx, esi
je 0x4034ba
cmp dword [ebp - 0x214], esi
je 0x4034b3
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x403555
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x4034e2
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x214]
call fcn.00403452
mov dword [ebp - 0x220], eax
cmp eax, esi
jne 0x403566
lea eax, [ebp - 0x228]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push dword [ebp - 0x214]
mov dword [ebp - 0x218], 0x100
call ebx
test eax, eax
je 0x4034c2
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x214], esi
je 0x40352d
push dword [ebp - 0x214]
call ebx
mov dword [ebp - 0x214], esi
push dword [ebp - 0x21c]
mov dword [ebp - 0x210], esi
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, eax
cmp dword [ebp - 0x214], esi
je 0x403553
push dword [ebp - 0x214]
call ebx
mov eax, edi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043189b
leave
ret 4
cmp dword [ebp - 0x214], esi
je 0x40357a
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x220]
jmp 0x403555
Function at 0x403eda
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x394]
sub esp, 0x414
mov eax, dword [0x458090]
xor eax, ebp
mov dword [ebp + 0x390], eax
mov eax, dword [ebp + 0x39c]
push ebx
mov ebx, dword [ebp + 0x3a0]
push esi
push edi
xor esi, esi
push 2
push esi
push eax
mov edi, edx
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x74], esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x78], eax
cmp eax, esi
jne 0x403f2e
call fcn.00402b1e
mov esi, eax
jmp 0x403fec
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x403f47
call fcn.00402b1e
jmp 0x403fe1
push edi
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
cmp ebx, esi
je 0x403f3d
push edi
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
cmp eax, edi
jae 0x403f81
lea eax, [ebp - 0x70]
cmp dword [ebp - 0x74], eax
je 0x403f7a
lea eax, [ebp - 0x74]
call fcn.0040ac18
mov eax, 0x8007000e
jmp 0x403ffe
push 2
push eax
call fcn.00403076
pop ecx
pop ecx
cmp eax, 0x400
jbe 0x403f9e
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.00403055
jmp 0x403fa4
lea eax, [ebp - 0x70]
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], esi
jne 0x403fb0
mov esi, 0x8007000e
jmp 0x403fe3
push edi
push dword [ebp - 0x74]
push edi
push ebx
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x403f3d
mov edx, dword [ebp - 0x74]
push dword [ebp + 0x3a4]
xor ecx, ecx
mov word [edx + eax*2], cx
mov ecx, dword [ebp - 0x74]
lea edx, [ebp - 0x80]
call fcn.00403d92
mov esi, eax
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x70]
cmp dword [ebp - 0x74], eax
je 0x403ffc
lea eax, [ebp - 0x74]
call fcn.0040ac18
mov eax, esi
mov ecx, dword [ebp + 0x390]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043189b
add ebp, 0x394
leave
ret 0xc

Function at 0x404240
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x404257
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x40428c
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x404288
cmp edi, eax
jae 0x40428c
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x40427a
cmp edi, eax
jb 0x404290
xor eax, eax
jmp 0x404299
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret
Function at 0x4071a4
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x458090]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
lea eax, [edx + 0x28]
call fcn.0040b5a4
test al, al
jne 0x40723c
test dword [edx + 0x6c], 0x2000
jne 0x40723c
push edx
call fcn.0040814c
mov edi, eax
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
cmp ecx, 3
jl 0x40723c
test ecx, ecx
jge 0x4071ea
push 0x80070057
call fcn.00404606
cmp word [eax], 0x5c
jne 0x407208
cmp ecx, 1
jl 0x4071e0
cmp word [eax + 2], 0x5c
jne 0x407208
cmp ecx, 2
jl 0x4071e0
cmp word [eax + 4], 0x5c
jne 0x40723c
push esi
xor esi, esi
test esi, esi
jl 0x4071e0
mov ecx, esi
mov eax, edi
call fcn.00408e2e
mov word [ebp + esi*2 - 0xc], ax
inc esi
cmp esi, 3
jl 0x40720b
xor eax, eax
mov word [ebp - 6], ax
pop esi
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
setne al
jmp 0x40723e
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0043189b
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
call fcn.0040814c
lea ecx, [ebp - 4]
mov esi, eax
call fcn.00409d29
push 0x5c
call fcn.00408c79
mov ecx, dword [esi]
mov ecx, dword [ecx - 0xc]
inc eax
lea edx, [ebp - 8]
push edx
sub ecx, eax
mov edx, eax
mov eax, esi
call fcn.00408d0f
mov ebx, dword [ebp - 8]
push dword [ebx - 0xc]
lea eax, [ebp - 4]
push ebx
call fcn.004022f6
lea eax, [ebx - 0x10]
call fcn.00404645
mov ebx, dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4072b1
push 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [esi]
push 0
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4072cc
xor esi, esi
inc esi
mov dword [edi + 0x10], esi
jmp 0x40734d
push esi
lea ebx, [edi + 0x18]
push ebx
push 3
pop eax
call fcn.00415a98
mov eax, dword [0x45a140]
mov ecx, 0x45a140
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 8], eax
xor esi, esi
push esi
lea eax, [ebp - 0xc]
push eax
push ebx
call fcn.00415b8e
push dword [eax]
mov ebx, dword [ebp - 4]
push ebx
lea eax, [ebp - 8]
push 0x44b6e8
push eax
call fcn.00409762
mov eax, dword [ebp - 0xc]
add esp, 0x10
add eax, 0xfffffff0
call fcn.00404645
lea eax, [edi + 0x16c]
call fcn.004157f7
push esi
push 0x20
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
call fcn.0040f8e1
add esp, 0x14
test al, al
jne 0x407342
inc esi
mov dword [edi + 0x10], esi
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.00404645
lea eax, [ebx - 0x10]
call fcn.00404645
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x40a0ae
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x26c
mov eax, dword [0x458090]
xor eax, esp
mov dword [esp + 0x268], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
sub eax, 0x10
mov dword [esp + 0x1c], edi
call fcn.00409c7d
add eax, 0x10
lea esi, [esp + 0xc]
mov dword [esp + 0xc], eax
call fcn.00409cf7
push 0x44ba08
mov eax, esi
push eax
call fcn.00402105
xor esi, esi
push 0x24c
lea eax, [esp + 0x28]
push esi
push eax
mov dword [esp + 0x2c], esi
call fcn.004318c0
add esp, 0xc
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x40a210
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp word [esp + 0x4c], 0x2e
jne 0x40a166
cmp word [esp + 0x4e], si
je 0x40a152
cmp word [esp + 0x4e], 0x2e
jne 0x40a166
cmp word [esp + 0x50], si
jne 0x40a166
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x18]
call ebx
mov dword [esp + 0x18], eax
jmp 0x40a204
test byte [esp + 0x20], 0x10
je 0x40a1c6
mov eax, dword [edi]
sub eax, 0x10
call fcn.00409c7d
add eax, 0x10
lea esi, [esp + 0x10]
mov dword [esp + 0x10], eax
call fcn.00409cf7
lea eax, [esp + 0x4c]
push eax
mov eax, esi
push eax
call fcn.00402105
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x18]
call ebx
mov dword [esp + 0x18], eax
mov eax, esi
push eax
call fcn.0040a0ae
pop ecx
call fcn.00402073
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
call fcn.00404645
jmp 0x40a204
mov eax, edi
lea edi, [esp + 0xc]
call fcn.00408905
mov esi, edi
call fcn.00409cf7
lea eax, [esp + 0x4c]
push eax
mov eax, edi
push eax
call fcn.00402105
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x18]
call ebx
mov dword [esp + 0x18], eax
call fcn.00402073
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, dword [esp + 0x1c]
xor esi, esi
cmp dword [esp + 0x18], esi
jne 0x40a134
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
call fcn.00404645
mov ecx, dword [esp + 0x274]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0043189b
mov esp, ebp
pop ebp
ret
Function at 0x40a2b1
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x45a140]
push esi
mov ecx, 0x45a140
call dword [eax + 0xc]
mov esi, dword [ebp + 0xc]
add eax, 0x10
mov dword [ebp - 4], eax
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
dec ecx
js 0x40a378
push edi
mov eax, esi
call fcn.00408e2e
cmp ax, 0x5c
jne 0x40a30f
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
lea ecx, [eax - 1]
lea edx, [ebp - 0xc]
mov eax, esi
call fcn.00408d86
lea edi, [ebp - 4]
call fcn.00408905
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.00404645
jmp 0x40a319
mov eax, esi
lea edi, [ebp - 4]
call fcn.00408905
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [esi]
mov edx, dword [eax - 0xc]
cmp edx, dword [ecx - 0xc]
pop edi
jl 0x40a335
add eax, 0xfffffff0
call fcn.00404645
pop esi
leave
ret
push 0x5c
call fcn.00408c79
mov ecx, eax
lea edx, [ebp - 8]
mov eax, esi
call fcn.00408d86
mov eax, dword [ebp - 8]
cmp dword [eax - 0xc], 0
je 0x40a368
push dword [esi]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
call fcn.0040a2b1
pop ecx
pop ecx
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.00404645
mov eax, dword [ebp - 4]
jmp 0x40a32a
push 0x80070057
call fcn.00404606
int3

Function at 0x40a383
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xd4
mov eax, dword [0x458090]
xor eax, ebp
mov dword [ebp + 0x74], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x54]
mov esi, ecx
xor edi, edi
push eax
push 0x64
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov dword [ebp - 0x58], eax
lea ebx, [ebp + edi*2 - 0x54]
push ebx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x40a3ed
push ebx
lea eax, [ebp - 0x5c]
call fcn.0040455c
lea ebx, [ebp - 0x5c]
call fcn.00409680
mov eax, dword [ebp - 0x5c]
add eax, 0xfffffff0
call fcn.00404645
jmp 0x40a3ed
cmp word [ebp + edi*2 - 0x54], 0
je 0x40a3f2
inc edi
cmp edi, dword [ebp - 0x58]
jb 0x40a3e4
inc edi
cmp edi, dword [ebp - 0x58]
jb 0x40a3b6
mov ecx, dword [ebp + 0x74]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043189b
add ebp, 0x78
leave
ret
Function at 0x40a6a7
Capabilities:
Create directory
Delete directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 0x28
push ebx
push esi
push edi
call fcn.0040a40c
test al, al
je 0x40a6c3
xor eax, eax
jmp 0x40a7be
mov eax, dword [ebp + 8]
call fcn.0040a493
mov byte [ebp - 1], al
lea eax, [ebp - 0x24]
xor ebx, ebx
push eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
call fcn.0040a51e
mov edi, dword [ebp - 0x20]
cmp edi, ebx
pop ecx
jg 0x40a6fc
push ebx
push ebx
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
sub eax, 0x10
call fcn.00409c7d
mov esi, eax
add esi, 0x10
dec edi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x18], edi
cmp byte [ebp + 0xc], bl
je 0x40a71e
inc edi
mov dword [ebp - 0x18], edi
xor eax, eax
inc eax
cmp edi, eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], eax
jle 0x40a79f
mov edi, 0x44b8d0
jmp 0x40a734
xor ebx, ebx
lea eax, [esi - 0x10]
call fcn.00409c7d
add eax, 0x10
mov dword [ebp - 8], eax
push edi
lea eax, [ebp - 8]
push eax
call fcn.00402105
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x24]
call fcn.004096f6
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 8]
call fcn.004022f6
push ebx
mov ebx, dword [ebp - 8]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40a7c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
cmp eax, 0xb7
je 0x40a7d5
cmp byte [ebp - 1], 0
jne 0x40a7d5
cmp dword [ebp - 0x10], 1
jle 0x40a797
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea eax, [ebx - 0x10]
call fcn.00404645
lea eax, [esi - 0x10]
call fcn.00404645
lea esi, [ebp - 0x24]
call fcn.00408e7c
mov eax, dword [ebp - 0x14]
sub eax, 0xb7
neg eax
sbb eax, eax
and eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x40a7d5
lea ebx, [ebp - 8]
call fcn.00409680
mov ebx, dword [ebp - 8]
push edi
lea eax, [ebp - 0xc]
push eax
call fcn.00402105
mov esi, dword [ebp - 0x10]
mov eax, esi
lea ecx, [ebp - 0x24]
call fcn.004096f6
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0xc]
call fcn.004022f6
lea eax, [ebx - 0x10]
call fcn.00404645
inc esi
cmp esi, dword [ebp - 0x18]
mov dword [ebp - 0x10], esi
mov esi, dword [ebp - 0xc]
jl 0x40a732
jmp 0x40a79f
Function at 0x40b15a
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, dword [ebp + 8]
cmp byte [ebx + 0xc0], 0
push esi
push edi
je 0x40b2cc
cmp byte [ebx + 0xd8], 0
jne 0x40b2cc
lea esi, [ebx + 0x90]
cmp dword [esi], 3
je 0x40b1aa
push ebx
call fcn.0040c753
mov esi, dword [esi]
cmp esi, 2
je 0x40b1aa
cmp esi, 1
je 0x40b1aa
test byte [ebx + 0x44], 0x48
je 0x40b1aa
mov eax, ebx
call fcn.0040b97f
mov ecx, dword [ebx + 0xa8]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
cmp ecx, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], eax
jle 0x40b21b
lea eax, [ebx + 0xa4]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
call fcn.004096f6
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
call edi
test esi, esi
jne 0x40b210
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
call fcn.004096f6
mov ebx, eax
lea esi, [ebp - 0x24]
call fcn.00409680
mov ebx, dword [ebp + 8]
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jl 0x40b1dd
mov esi, dword [ebx + 0xb4]
dec esi
mov dword [ebp - 4], esi
js 0x40b26d
lea eax, [ebx + 0xb0]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov eax, esi
call fcn.004096f6
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dword [ebp - 0xc], eax
call edi
cmp dword [ebp - 0xc], 0
jne 0x40b267
mov ecx, dword [ebp - 8]
mov eax, esi
call fcn.004096f6
mov ebx, eax
lea esi, [ebp - 0x18]
call fcn.00409680
mov ebx, dword [ebp + 8]
mov esi, dword [ebp - 4]
dec esi
mov dword [ebp - 4], esi
jns 0x40b230
lea eax, [ebx + 0xa4]
lea edi, [ebp - 0x24]
call fcn.0040dcfc
lea esi, [ebx + 0xb0]
call fcn.00408e7c
mov edi, dword [ebp - 0x14]
dec edi
js 0x40b2a3
mov eax, edi
lea ecx, [ebp - 0x18]
call fcn.004096f6
mov ebx, eax
call fcn.00409680
dec edi
jns 0x40b28c
mov ebx, dword [ebp + 8]
xor eax, eax
cmp dword [ebx + 0xa8], eax
jne 0x40b2b6
cmp dword [ebx + 0xb4], eax
jne 0x40b2b6
inc eax
lea esi, [ebp - 0x18]
mov byte [ebx + 0xd8], al
call fcn.00408e7c
lea esi, [ebp - 0x24]
call fcn.00408e7c
pop edi
pop esi
pop ebx
leave
ret 4