joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401f50
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x40a7b8]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x401f92
call edi
mov esi, eax
test esi, esi
je 0x401f7c
mov eax, 1
jmp 0x401f8d
call ebp
mov ebx, eax
test ebx, ebx
je 0x40209f
mov eax, 2
mov dword [0x40a7b8], eax
cmp eax, 1
jne 0x402032
test esi, esi
jne 0x401fab
call edi
mov esi, eax
test esi, esi
je 0x40209f
cmp word [esi], 0
mov eax, esi
je 0x401fc5
add eax, 2
cmp word [eax], 0
jne 0x401fb3
add eax, 2
cmp word [eax], 0
jne 0x401fb3
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x402024
push edi
call fcn.004039c0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x402024
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x402016
push ebx
call fcn.004039e0
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x40209f
test ebx, ebx
jne 0x402043
call ebp
mov ebx, eax
test ebx, ebx
je 0x40209f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x40205b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40204b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40204b
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.004039c0
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x40207d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x402170
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x4075b8
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x402194
add eax, 8
inc ebp
cmp eax, 0x407648
jb 0x402185
cmp ecx, dword [ebp*8 + 0x4075b8]
jne 0x40233b
mov eax, dword [0x40a65c]
cmp eax, 1
je 0x4022fd
test eax, eax
jne 0x4021c0
cmp dword [0x407414], 1
je 0x4022fd
cmp ecx, 0xfc
je 0x40233b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4021fb
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x402244
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x406718
add ebx, ecx
push ebx
call fcn.00405690
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4066f8
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x4075bc]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00403cc0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x40a920]
test eax, eax
je 0x40230e
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x402318
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x4075bc]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x405070
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x40a6a8]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x40508f
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x40a6a4], 1
mov byte [0x40a6a0], bl
jne 0x4050e9
mov ecx, dword [0x40aa28]
test ecx, ecx
je 0x4050d7
mov esi, dword [0x40aa24]
sub esi, 4
cmp esi, ecx
jb 0x4050d7
mov eax, dword [esi]
test eax, eax
je 0x4050d0
call eax
mov ecx, dword [0x40aa28]
sub esi, 4
cmp esi, ecx
jae 0x4050c2
push 0x407014
push 0x407010
call fcn.00405120
add esp, 8
push 0x40701c
push 0x407018
call fcn.00405120
add esp, 8
test ebx, ebx
jne 0x405110
push ebp
mov dword [0x40a6a8], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret
Function at 0x435fc0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x24000]
push edi
jmp 0x435fda
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x435fe1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x435fd0
mov eax, 1
add ebx, ebx
jne 0x435ff3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x435fe8
jne 0x436004
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x435fe8
xor ecx, ecx
sub eax, 3
jb 0x436018
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x43608a
mov ebp, eax
add ebx, ebx
jne 0x436023
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x436030
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x436054
inc ecx
add ebx, ebx
jne 0x436040
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x436035
jne 0x436051
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x436035
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x436074
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x436065
jmp 0x435fd6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x436074
add edi, ecx
jmp 0x435fd6
pop esi
mov edi, esi
mov ecx, 0xa75
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x436092
cmp byte [edi], 0x12
jne 0x436092
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x436097
lea edi, [esi + 0x33000]
mov eax, dword [edi]
or eax, eax
je 0x43610f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x42824]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x42904]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4360c4
mov ecx, edi
jns 0x4360f3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x4290c]
or eax, eax
je 0x436109
mov dword [ebx], eax
add ebx, 4
jmp 0x4360e1
call dword [esi + 0x42908]
mov ebp, dword [esi + 0x42910]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x17f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x436143
sub esp, 0xffffff80
jmp 0x41bc3f
Function at 0x40158a
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 0x401c7d
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 0x401df9
mov eax, dword [0x457fa0]
mov ecx, 0x457fa0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 4], eax
push 0x449ba0
lea eax, [ebp - 8]
call fcn.004045c6
lea edi, [ebp - 4]
lea ecx, [ebp - 8]
call fcn.0040a2ae
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.0040469f
push 0x449ba8
mov eax, edi
push eax
call fcn.00402171
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 0x401d05
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [edi - 0x10]
jmp 0x401df4
mov eax, dword [0x457fa0]
mov ecx, 0x457fa0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xc], eax
push edi
lea eax, [ebp - 8]
call fcn.00401ffd
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 0x401d30
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.0040230c
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.0040469f
lea eax, [edi - 0x10]
call fcn.0040469f
cmp dword [ebp - 0x18], ebx
je 0x401d7e
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi + 4]
lea edi, [ebp - 0xc]
call fcn.00409f7f
cmp byte [esi + 8], bl
jne 0x401da5
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 0x401de6
push 0x3c
pop edi
push edi
lea eax, [ebp - 0x54]
push ebx
push eax
call fcn.00430790
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.0040469f
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040469f
mov eax, dword [esi + 4]
sub eax, 0x10
call fcn.0040469f
mov eax, dword [esi]
sub eax, 0x10
call fcn.0040469f
pop edi
pop ebx
leave
ret
Function at 0x40309b
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
jne 0x4030a9
push 0xd
pop eax
jmp 0x4030dc
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 0x4030b0
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 0x4034bc
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x456090]
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.00403489
mov ebx, eax
cmp ebx, esi
je 0x403524
cmp dword [ebp - 0x214], esi
je 0x40351d
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x4035bf
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x40354c
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x214]
call fcn.004034bc
mov dword [ebp - 0x220], eax
cmp eax, esi
jne 0x4035d0
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 0x40352c
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x214], esi
je 0x403597
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 0x4035bd
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.0043076b
leave
ret 4
cmp dword [ebp - 0x214], esi
je 0x4035e4
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x220]
jmp 0x4035bf
Function at 0x403f44
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x394]
sub esp, 0x414
mov eax, dword [0x456090]
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 0x403f98
call fcn.00402b9f
mov esi, eax
jmp 0x404056
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x403fb1
call fcn.00402b9f
jmp 0x40404b
push edi
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
cmp ebx, esi
je 0x403fa7
push edi
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
cmp eax, edi
jae 0x403feb
lea eax, [ebp - 0x70]
cmp dword [ebp - 0x74], eax
je 0x403fe4
lea eax, [ebp - 0x74]
call fcn.00403092
mov eax, 0x8007000e
jmp 0x404068
push 2
push eax
call fcn.004030e0
pop ecx
pop ecx
cmp eax, 0x400
jbe 0x404008
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.0040ad09
jmp 0x40400e
lea eax, [ebp - 0x70]
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], esi
jne 0x40401a
mov esi, 0x8007000e
jmp 0x40404d
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 0x403fa7
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.00403dfc
mov esi, eax
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x70]
cmp dword [ebp - 0x74], eax
je 0x404066
lea eax, [ebp - 0x74]
call fcn.00403092
mov eax, esi
mov ecx, dword [ebp + 0x390]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043076b
add ebp, 0x394
leave
ret 0xc

Function at 0x4042aa
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 0x4042c1
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4042f6
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x4042f2
cmp edi, eax
jae 0x4042f6
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x4042e4
cmp edi, eax
jb 0x4042fa
xor eax, eax
jmp 0x404303
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret
Function at 0x40723d
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x456090]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ecx + 0x6c]
push edi
test al, 1
je 0x4072ce
shr eax, 0xd
test al, 1
jne 0x4072ce
push ecx
call fcn.004081da
mov edi, eax
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
cmp ecx, 3
jl 0x4072ce
test ecx, ecx
jge 0x40727c
push 0x80070057
call fcn.0040467b
cmp word [eax], 0x5c
jne 0x40729a
cmp ecx, 1
jl 0x407272
cmp word [eax + 2], 0x5c
jne 0x40729a
cmp ecx, 2
jl 0x407272
cmp word [eax + 4], 0x5c
jne 0x4072ce
push esi
xor esi, esi
test esi, esi
jl 0x407272
mov ecx, esi
mov eax, edi
call fcn.00408e98
mov word [ebp + esi*2 - 0xc], ax
inc esi
cmp esi, 3
jl 0x40729d
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 0x4072d0
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0043076b
leave
ret

Function at 0x4072dd
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.004081da
lea ecx, [ebp - 4]
mov esi, eax
call fcn.00409d9c
push 0x5c
call fcn.00408ce3
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.00408d79
mov ebx, dword [ebp - 8]
push dword [ebx - 0xc]
lea eax, [ebp - 4]
push ebx
call fcn.00402357
lea eax, [ebx - 0x10]
call fcn.0040469f
mov ebx, dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x407343
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 0x40735e
xor esi, esi
inc esi
mov dword [edi + 0x10], esi
jmp 0x4073df
push esi
lea ebx, [edi + 0x18]
push ebx
push 3
pop eax
call fcn.00415794
mov eax, dword [0x457fa0]
mov ecx, 0x457fa0
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.0041588a
push dword [eax]
mov ebx, dword [ebp - 4]
push ebx
lea eax, [ebp - 8]
push 0x44a6d8
push eax
call fcn.004097ba
mov eax, dword [ebp - 0xc]
add esp, 0x10
add eax, 0xfffffff0
call fcn.0040469f
lea eax, [edi + 0x168]
call fcn.004154f3
push esi
push 0x20
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
call fcn.0040f6c8
add esp, 0x14
test al, al
jne 0x4073d4
inc esi
mov dword [edi + 0x10], esi
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.0040469f
lea eax, [ebx - 0x10]
call fcn.0040469f
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x40a121
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 [0x456090]
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.00409cf0
add eax, 0x10
lea esi, [esp + 0xc]
mov dword [esp + 0xc], eax
call fcn.00409d6a
push 0x44a96c
mov eax, esi
push eax
call fcn.00402171
xor esi, esi
push 0x24c
lea eax, [esp + 0x28]
push esi
push eax
mov dword [esp + 0x2c], esi
call fcn.00430790
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 0x40a283
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp word [esp + 0x4c], 0x2e
jne 0x40a1d9
cmp word [esp + 0x4e], si
je 0x40a1c5
cmp word [esp + 0x4e], 0x2e
jne 0x40a1d9
cmp word [esp + 0x50], si
jne 0x40a1d9
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x18]
call ebx
mov dword [esp + 0x18], eax
jmp 0x40a277
test byte [esp + 0x20], 0x10
je 0x40a239
mov eax, dword [edi]
sub eax, 0x10
call fcn.00409cf0
add eax, 0x10
lea esi, [esp + 0x10]
mov dword [esp + 0x10], eax
call fcn.00409d6a
lea eax, [esp + 0x4c]
push eax
mov eax, esi
push eax
call fcn.00402171
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x18]
call ebx
mov dword [esp + 0x18], eax
mov eax, esi
push eax
call fcn.0040a121
pop ecx
call fcn.004020c4
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
call fcn.0040469f
jmp 0x40a277
mov eax, edi
lea edi, [esp + 0xc]
call fcn.0040896f
mov esi, edi
call fcn.00409d6a
lea eax, [esp + 0x4c]
push eax
mov eax, edi
push eax
call fcn.00402171
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x18]
call ebx
mov dword [esp + 0x18], eax
call fcn.004020c4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, dword [esp + 0x1c]
xor esi, esi
cmp dword [esp + 0x18], esi
jne 0x40a1a7
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
call fcn.0040469f
mov ecx, dword [esp + 0x274]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0043076b
mov esp, ebp
pop ebp
ret
Function at 0x40a324
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x457fa0]
push esi
push edi
mov ecx, 0x457fa0
call dword [eax + 0xc]
mov esi, dword [ebp + 0xc]
add eax, 0x10
mov dword [ebp - 4], eax
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
lea ecx, [eax - 1]
mov eax, esi
call fcn.00409bc3
cmp ax, 0x5c
jne 0x40a37e
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
lea ecx, [eax - 1]
lea edx, [ebp - 0xc]
mov eax, esi
call fcn.00408df0
lea edi, [ebp - 4]
call fcn.0040896f
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.0040469f
jmp 0x40a388
mov eax, esi
lea edi, [ebp - 4]
call fcn.0040896f
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [esi]
mov edx, dword [eax - 0xc]
cmp edx, dword [ecx - 0xc]
jge 0x40a3d9
push 0x5c
call fcn.00408ce3
mov ecx, eax
lea edx, [ebp - 8]
mov eax, esi
call fcn.00408df0
mov eax, dword [ebp - 8]
cmp dword [eax - 0xc], 0
je 0x40a3cb
push dword [esi]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
call fcn.0040a324
pop ecx
pop ecx
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.0040469f
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040469f
pop edi
pop esi
leave
ret

Function at 0x40a3e5
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xd4
mov eax, dword [0x456090]
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 0x40a44f
push ebx
lea eax, [ebp - 0x5c]
call fcn.004045c6
lea ebx, [ebp - 0x5c]
call fcn.004096f9
mov eax, dword [ebp - 0x5c]
add eax, 0xfffffff0
call fcn.0040469f
jmp 0x40a44f
cmp word [ebp + edi*2 - 0x54], 0
je 0x40a454
inc edi
cmp edi, dword [ebp - 0x58]
jb 0x40a446
inc edi
cmp edi, dword [ebp - 0x58]
jb 0x40a418
mov ecx, dword [ebp + 0x74]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043076b
add ebp, 0x78
leave
ret