joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41c11e
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
and al, 2
movzx eax, al
xor edi, edi
push edi
push edi
neg eax
push 3
sbb eax, eax
push edi
and eax, 6
or eax, 1
push eax
push accept
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 8], eax
cmp eax, 0xffffffff
je 0x41c1bf
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x41c1b6
cmp dword [ebp - 4], edi
jne 0x41c1b6
mov eax, dword [ebp - 8]
mov dword [esi + 4], eax
cmp eax, edi
jne 0x41c175
mov dword [esi], edi
mov al, 1
jmp 0x41c1c1
push 4
push 0x3000
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [esi], eax
cmp eax, edi
je 0x41c1b6
push edi
lea ecx, [ebp + 8]
push ecx
push dword [esi + 4]
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41c1a8
mov eax, dword [ebp + 8]
cmp eax, dword [esi + 4]
je 0x41c171
push 0x8000
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
leave
ret 4

Function at 0x41c264
Capabilities:
Delete file
Set file attributes

Disassembly:
push 0x80
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
ret 4

Function at 0x41c285
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push esi
push edi
lea eax, [ebp - 0x208]
push eax
push 0xf6
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0xf5
ja 0x41c302
xor esi, esi
push dword [ebp + 8]
call fcn.0041823e
push eax
push 0x404b44
push 0x404b4c
mov edx, 0x104
lea edi, [ebp - 0x410]
call fcn.00417bf8
add esp, 0x10
cmp eax, 0xffffffff
je 0x41c302
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 0xc]
mov eax, edi
call fcn.0041c78e
test al, al
je 0x41c2fc
push 0
push 0
push dword [ebp + 0xc]
call fcn.0041c0b9
test al, al
jne 0x41c30a
inc esi
cmp esi, 0x64
jb 0x41c2ac
xor al, al
pop edi
pop esi
leave
ret 8
mov al, 1
jmp 0x41c304

Function at 0x41c30e
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push esi
push edi
lea eax, [ebp - 0x208]
push eax
push 0xf6
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0xf5
ja 0x41c387
xor esi, esi
call fcn.0041823e
push eax
push 0x404b44
push 0x404b60
mov edx, 0x104
lea edi, [ebp - 0x410]
call fcn.00417bf8
add esp, 0xc
cmp eax, 0xffffffff
je 0x41c387
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 8]
mov eax, edi
call fcn.0041c78e
test al, al
je 0x41c381
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x41c38f
inc esi
cmp esi, 0x64
jb 0x41c335
xor al, al
pop edi
pop esi
leave
ret 4
mov al, 1
jmp 0x41c389
Function at 0x41c510
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
push ebp
xor bl, bl
call dword [sym.imp.SHLWAPI.dll_PathSkipRootW]
mov esi, eax
test esi, esi
jne 0x41c529
mov esi, ebp
movzx eax, word [esi]
cmp eax, 0x5c
je 0x41c53b
cmp eax, 0x2f
je 0x41c53b
test ax, ax
jne 0x41c567
mov edi, eax
xor eax, eax
push ebp
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41c55b
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jmp 0x41c55d
test al, 0x10
je 0x41c56e
test di, di
je 0x41c56c
mov word [esi], di
add esi, 2
jmp 0x41c529
mov bl, 1
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
ret 4

Function at 0x41c577
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x458
push esi
push edi
mov edi, ecx
push edi
lea eax, [esp + 0xc]
push eax
mov eax, 0x404b70
call fcn.0041c78e
test al, al
je 0x41c614
lea eax, [esp + 0x210]
push eax
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x41c614
lea eax, [esp + 0x23c]
call fcn.0041c393
test al, al
jne 0x41c5fa
push edi
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x244]
call fcn.0041c78e
test al, al
je 0x41c5fa
test byte [esp + 0x210], 0x10
je 0x41c5f0
lea ecx, [esp + 8]
call fcn.0041c577
jmp 0x41c5fa
lea eax, [esp + 8]
push eax
call fcn.0041c264
lea eax, [esp + 0x210]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41c5b5
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
pop edi
setne al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41c632
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x464
push ebx
push esi
push edi
push ecx
lea eax, [esp + 0x26c]
push eax
mov eax, 0x404b70
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], ecx
call fcn.0041c78e
test al, al
je 0x41c785
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x26c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
je 0x41c785
mov ebx, dword [ebp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
cmp dword [ebp + 0x18], esi
je 0x41c6a9
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x41c77b
lea eax, [esp + 0x44]
call fcn.0041c393
test al, al
jne 0x41c764
mov eax, dword [esp + 0x18]
and eax, 0x10
je 0x41c6c8
test bl, 2
jne 0x41c6d1
cmp eax, esi
jne 0x41c711
test bl, 4
je 0x41c711
cmp dword [ebp + 8], esi
jbe 0x41c711
mov eax, dword [esp + 0x14]
push dword [eax + esi*4]
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
test eax, eax
jne 0x41c6f4
inc esi
cmp esi, dword [ebp + 8]
jb 0x41c6d6
jmp 0x41c711
push dword [ebp + 0x14]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x1c]
call dword [ebp + 0x10]
test al, al
je 0x41c77b
cmp dword [ebp + 0x20], 0
je 0x41c711
push dword [ebp + 0x20]
call edi
test byte [esp + 0x18], 0x10
je 0x41c764
test bl, 1
je 0x41c764
push dword [esp + 0x10]
lea eax, [esp + 0x26c]
push eax
lea eax, [esp + 0x4c]
call fcn.0041c78e
test al, al
je 0x41c764
cmp dword [ebp + 0x1c], 0
je 0x41c741
push dword [ebp + 0x1c]
call edi
push dword [ebp + 0x20]
mov edx, dword [esp + 0x18]
push dword [ebp + 0x1c]
lea ecx, [esp + 0x270]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
call fcn.0041c632
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41c68d
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x41caf8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
test byte [ebp + 0xc], 1
mov eax, dword [ebp + 8]
mov edx, dword [eax]
push ebx
push esi
push edi
mov dword [ebp - 4], edx
je 0x41cba1
xor eax, eax
call fcn.0041c9c5
mov esi, eax
test esi, esi
je 0x41cba1
mov ebx, 0xfff0ffff
mov edi, 0x70000000
cmp dword [esi], 0
jbe 0x41cb91
mov eax, dword [esi + 4]
test eax, 0xc0000
je 0x41cb41
and dword [esi], 0
jmp 0x41cb91
and eax, ebx
mov dword [esi + 4], eax
and eax, edi
mov dword [ebp + 0xc], eax
mov eax, esi
jmp 0x41cb6b
mov ecx, dword [eax]
cmp ecx, dword [esi]
jne 0x41cb6b
mov ecx, dword [eax + 4]
and ecx, edi
cmp ecx, dword [ebp + 0xc]
jne 0x41cb6b
test dword [eax + 4], 0xe0000
jne 0x41cb79
and dword [eax], 0
mov edx, dword [ebp - 4]
call fcn.0041c9c5
test eax, eax
jne 0x41cb4f
jmp 0x41cb91
and dword [esi], 0
mov ecx, dword [eax + 4]
test ecx, 0x80000
je 0x41cb8c
and dword [eax], 0
jmp 0x41cb91
and ecx, ebx
mov dword [eax + 4], ecx
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0041c9c5
mov esi, eax
test esi, esi
jne 0x41cb2d
call fcn.0041c7ea
mov esi, eax
mov dword [ebp + 0xc], esi
test esi, esi
je 0x41cc8f
xor eax, eax
jmp 0x41cc12
cmp dword [edi], 0
jbe 0x41cc10
mov ebx, dword [edi + 8]
mov ecx, dword [esi + 0x14]
add ebx, 0x10
add ecx, ebx
lea esi, [ebp + 0xc]
call fcn.00416e90
mov esi, dword [ebp + 0xc]
test al, al
je 0x41cc89
mov eax, dword [esi + 0x14]
mov ecx, dword [edi]
add eax, esi
mov dword [eax], ecx
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
mov ecx, dword [edi + 8]
mov dword [eax + 8], ecx
mov ecx, dword [edi + 0xc]
mov dword [eax + 0xc], ecx
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x41cc0a
push ecx
lea ecx, [edi + 0x10]
push ecx
add eax, 0x10
push eax
call fcn.00416f41
inc dword [esi + 0x1c]
add dword [esi + 0x14], ebx
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.0041c9c5
mov edi, eax
test edi, edi
jne 0x41cbb7
mov eax, dword [esi + 0x14]
sub eax, 0x30
push eax
lea eax, [esi + 0x30]
push eax
lea eax, [esi + 0x20]
push eax
call fcn.004181aa
test al, al
je 0x41cc89
push edi
push 0x14
push esi
call fcn.004184e2
cmp dword [ebp + 0x10], 0
mov edi, dword [esi + 0x14]
je 0x41cc78
xor eax, eax
inc eax
cmp edi, eax
jbe 0x41cc5d
mov cl, byte [eax + esi - 1]
xor byte [eax + esi], cl
inc eax
cmp eax, edi
jb 0x41cc51
push 0x102
push dword [ebp + 0x10]
lea eax, [ebp - 0x108]
push eax
call fcn.00416f41
push edi
push esi
call fcn.00418381
push dword [ebp - 4]
call fcn.00416f05
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov eax, edi
jmp 0x41cc91
push esi
call fcn.00416f05
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x41cc98
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
mov esi, eax
lea eax, [edi - 0x30]
cmp eax, 0x9fffd0
ja 0x41ccf7
cmp dword [ebp + 8], 0
je 0x41cce4
push 0x102
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call fcn.00416f41
push edi
push esi
call fcn.00418381
test edi, edi
je 0x41cce4
lea eax, [edi - 1]
test eax, eax
je 0x41cce4
mov cl, byte [eax + esi - 1]
xor byte [eax + esi], cl
dec eax
jne 0x41ccda
cmp dword [esi + 0x14], edi
ja 0x41ccf7
call fcn.0041c7bb
test al, al
je 0x41ccf7
mov eax, dword [esi + 0x14]
jmp 0x41ccf9
xor eax, eax
pop esi
leave
ret 4

Function at 0x41cd72
Capabilities:
Clear file content
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push edi
xor edi, edi
push edi
push 0x80
push 4
push edi
push 1
push 0xc0000000
push dword [ebp + 8]
mov byte [ebp - 1], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x41ce99
push eax
call fcn.0041c23d
mov ecx, eax
and ecx, edx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
cmp ecx, 0xffffffff
je 0x41cdde
or eax, edx
je 0x41ce83
push edi
lea eax, [ebp + 8]
push eax
push 5
lea eax, [ebp - 0xc]
push eax
push dword [esi]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41cdf0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [esi], 0xffffffff
jmp 0x41ce99
xor edi, edi
cmp dword [ebp + 8], edi
je 0x41ce83
cmp dword [ebp + 8], 5
jne 0x41ce5d
mov eax, dword [ebp - 0xc]
xor eax, dword [esi + 0x10]
xor ecx, ecx
mov ebx, eax
add ebx, dword [ebp - 0x18]
mov edi, ecx
adc edi, dword [ebp - 0x14]
add ebx, 5
adc edi, ecx
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0x1c]
ja 0x41ce5b
jb 0x41ce25
cmp ebx, dword [ebp - 0x20]
ja 0x41ce5b
cmp eax, 0xa00000
ja 0x41ce5b
push 1
push ecx
push eax
push dword [esi]
call fcn.0041c1ed
test al, al
je 0x41cdde
push 0
lea eax, [ebp + 8]
push eax
push 5
lea eax, [ebp - 0xc]
push eax
push dword [esi]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41cdee
jmp 0x41cdde
xor edi, edi
push edi
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [esi]
call fcn.0041c1ed
test al, al
je 0x41cdde
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x41cdde
or dword [esi + 8], 0xffffffff
or dword [esi + 0xc], 0xffffffff
push edi
push edi
push edi
push dword [esi]
mov byte [ebp - 1], 1
call fcn.0041c1ed
mov al, byte [ebp - 1]
pop edi
pop ebx
leave
ret 4
Function at 0x41cec0
Capabilities:
Clear file content
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], 0xa00000
push edi
mov byte [ebp - 1], bl
ja 0x41cf9a
push dword [esi]
call fcn.0041c20d
mov dword [ebp - 0x20], eax
and eax, edx
mov dword [ebp - 0x1c], edx
cmp eax, 0xffffffff
je 0x41cf9a
push 2
push ebx
push ebx
push dword [esi]
call fcn.0041c1ed
test al, al
je 0x41cf9a
push dword [esi]
call fcn.0041c20d
mov dword [ebp - 0x18], eax
and eax, edx
mov dword [ebp - 0x14], edx
cmp eax, 0xffffffff
je 0x41cf84
push 5
push ebx
lea eax, [ebp - 0x10]
push eax
call fcn.00416fb8
mov eax, dword [esi + 0x10]
xor eax, dword [ebp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
mov dword [ebp - 0x10], eax
lea eax, [ebp - 8]
push eax
push 5
lea eax, [ebp - 0x10]
push eax
push dword [esi]
call edi
test eax, eax
je 0x41cf6e
cmp dword [ebp - 8], 5
jne 0x41cf6e
push ebx
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi]
call edi
test eax, eax
je 0x41cf6e
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 8], eax
jne 0x41cf6e
mov byte [ebp - 1], 1
jmp 0x41cf84
push ebx
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [esi]
call fcn.0041c1ed
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push ebx
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [esi]
call fcn.0041c1ed
mov al, byte [ebp - 1]
pop edi
pop ebx
leave
ret 8

Function at 0x41cfa3
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push edi
push dword [esi]
call fcn.0041c20d
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
xor ebx, ebx
jmp 0x41cfff
cmp dword [ebp - 4], ebx
je 0x41d01a
cmp dword [ebp - 4], 5
jne 0x41d077
mov eax, dword [ebp - 0xc]
xor eax, dword [esi + 0x10]
mov dword [ebp - 0xc], eax
cmp eax, 0xa00000
ja 0x41d077
test byte [ebp - 8], 1
jne 0x41cfe9
cmp eax, ebx
jne 0x41d023
push 1
push ebx
push eax
push dword [esi]
call fcn.0041c1ed
test al, al
je 0x41d077
push dword [esi]
call fcn.0041c20d
push ebx
mov dword [ebp - 0x18], eax
lea eax, [ebp - 4]
push eax
push 5
lea eax, [ebp - 0xc]
push eax
push dword [esi]
mov dword [ebp - 0x14], edx
call edi
test eax, eax
jne 0x41cfbc
jmp 0x41d077
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
mov al, 1
jmp 0x41d079
call fcn.00416ed5
mov ebx, eax
test ebx, ebx
je 0x41d077
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp - 0xc]
push ebx
push dword [esi]
call edi
test eax, eax
je 0x41d071
mov edi, dword [ebp - 0xc]
cmp dword [ebp - 4], edi
jne 0x41d071
push dword [ebp + 0x10]
mov eax, ebx
call fcn.0041cc98
mov dword [ebp - 4], eax
test eax, eax
je 0x41d071
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 0xc], eax
jmp 0x41d01f
push ebx
call fcn.00416f05
xor al, al
pop edi
pop ebx
leave
ret 0xc
Function at 0x41d07f
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [esi + 8]
and eax, dword [esi + 0xc]
push ebx
xor ebx, ebx
mov byte [esp + 0xb], bl
cmp eax, 0xffffffff
je 0x41d13e
push dword [esi]
call fcn.0041c20d
mov dword [esp + 0x18], eax
and eax, edx
mov dword [esp + 0x1c], edx
cmp eax, 0xffffffff
je 0x41d13e
push ebx
push dword [esi + 0xc]
push dword [esi + 8]
push dword [esi]
call fcn.0041c1ed
test al, al
je 0x41d13e
push ebx
lea eax, [esp + 0x10]
push eax
push 5
lea eax, [esp + 0x1c]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41d12e
cmp dword [esp + 0xc], 5
jne 0x41d12e
or byte [esp + 0x14], 1
push ebx
push dword [esi + 0xc]
push dword [esi + 8]
push dword [esi]
call fcn.0041c1ed
test al, al
je 0x41d12e
push ebx
lea eax, [esp + 0x10]
push eax
push 5
lea eax, [esp + 0x1c]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41d12e
cmp dword [esp + 0xc], 5
jne 0x41d12e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov byte [esp + 0xb], 1
push ebx
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [esi]
call fcn.0041c1ed
mov al, byte [esp + 0xb]
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41d31e
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
push eax
push 0x40
push dword [ebp + 8]
push edi
call esi
test eax, eax
je 0x41d368
xor eax, eax
xor cl, cl
cmp dword [ebp + 8], eax
jbe 0x41d35b
movzx edx, cl
mov dl, byte [ebp + edx + 0xc]
xor byte [eax + edi], dl
inc cl
cmp cl, 4
jne 0x41d355
xor cl, cl
inc eax
cmp eax, dword [ebp + 8]
jb 0x41d342
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp + 8]
push edi
call esi
pop esi
leave
ret 8
Function at 0x408b10
Capabilities:
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x408b33
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x408b3a
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x408b51
mov edx, dword [ebp - 4]
push edx
call fcn.0040d790
add esp, 4
or eax, 0xffffffff
jmp 0x408b53
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x40d780
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42b108]
jne 0x40d78a
repz ret
jmp fcn.00418780
Function at 0x4246b0
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4246cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x4246d6
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x4246ed
mov ecx, dword [ebp - 4]
push ecx
call fcn.0040d790
add esp, 4
or eax, 0xffffffff
jmp 0x4246ef
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x424738
Capabilities:
Extract resource via kernel32 functions
Get common file path
Get disk information
Manipulate console buffer
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x83c
cmp dword [0x47ae3c], 0x37
jne 0x424819
push esi
push edi
xor eax, eax
xor esi, esi
mov dword [ebp - 0x20], esi
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x3c]
push eax
push 0x408150
call dword [sym.imp.KERNEL32.dll_BuildCommDCBAndTimeoutsA]
push 0x408180
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x4081f0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push esi
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
push 0x4081dc
push esi
call dword [sym.imp.KERNEL32.dll_SetComputerNameExA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push esi
call edi
push esi
push esi
push esi
push esi
call edi
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetWriteWatch]
push 0x4082a4
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
lea eax, [ebp - 0x83c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointW]
lea eax, [ebp - 8]
push eax
push 0x4082b8
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
push esi
call dword [sym.imp.KERNEL32.dll_GetPriorityClass]
push esi
push esi
push 0x4082c8
call dword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationA]
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetProcessPriorityBoost]
pop edi
pop esi
mov eax, dword [0x493e44]
mov dword [ebp - 4], eax
mov eax, 0x38d6
add dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov al, byte [eax + ebx]
mov ecx, dword [0x461318]
mov byte [ecx + ebx], al
leave
ret
Function at 0x424e9b
Capabilities:
Copy file
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x16c
push ebx
mov ebx, dword [0x461318]
push esi
push edi
mov edi, dword [0x47ae3c]
xor esi, esi
cmp edi, 0x516
jne 0x424ec4
push esi
call dword [sym.imp.KERNEL32.dll_DebugActiveProcessStop]
shr edi, 3
cmp edi, esi
jbe 0x424f7f
mov dword [ebp - 8], edi
cmp dword [0x47ae3c], 0x29
jne 0x424ef7
push esi
lea eax, [ebp - 0x28]
push eax
push 0x408140
call dword [sym.imp.KERNEL32.dll_BuildCommDCBAndTimeoutsA]
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
cmp dword [0x47ae3c], 0xe1b
jne 0x424f11
lea eax, [ebp - 0x168]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
cmp dword [0x47ae3c], 0x1c
jne 0x424f46
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsExA]
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetThreadAffinityMask]
push ebx
call fcn.00424d72
cmp dword [0x47ae3c], 0x4fa
jne 0x424f73
xor eax, eax
mov word [ebp - 4], ax
lea edi, [ebp - 2]
stosw word es:[edi], ax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterW]
add ebx, 8
dec dword [ebp - 8]
jne 0x424ed2
pop edi
pop esi
pop ebx
leave
ret