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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
mov ecx, 0x482bc0
call fcn.0041fee9
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
or eax, 0xffffffff
cmp edi, eax
je 0x411745
lea eax, [ebp - 8]
push esi
push eax
mov dword [ebp - 8], esi
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0xc]
push esi
push eax
lea eax, [ebp - 4]
push 2
push eax
push edi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp word [ebp - 4], 0xd8ff
jne 0x41173a
push 2
pop eax
jmp 0x411745
xor eax, eax
cmp word [ebp - 4], 0x4d42
sete al
pop edi
pop esi
leave
ret 4

Function at 0x41174b
Capabilities:
Delete file
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
push ebx
push esi
mov dword [ebp - 8], ecx
mov esi, 0x482770
push edi
push 0xc
mov ecx, esi
call fcn.0041fabb
xor edi, edi
mov dword [ebp - 0x14], eax
cmp eax, edi
jne 0x41177f
mov dword [0x482600], edi
push 1
pop eax
jmp 0x4118df
lea eax, [ebp - 0x12c]
push str..bmp
push eax
call fcn.00420ed8
mov eax, dword [0x483770]
pop ecx
pop ecx
cmp eax, edi
push 1
pop ebx
mov dword [0x4836fc], ebx
mov dword [0x482710], ebx
je 0x4117b1
push eax
call fcn.00428bae
pop ecx
push 4
call fcn.00428bb9
cmp eax, edi
pop ecx
mov dword [0x483770], eax
jne 0x4117d3
mov ecx, 0x482e04
call fcn.0041fee9
push eax
call fcn.00420ba1
pop ecx
push 8
mov ecx, esi
call fcn.0041fabb
add eax, dword [ebp - 0x14]
mov ecx, dword [0x483770]
push 0xc
mov dword [ecx], eax
mov ecx, esi
call fcn.0041fabb
push eax
push 8
mov ecx, esi
call fcn.0041fabb
push eax
lea eax, [ebp - 0x12c]
push eax
mov ecx, 0x482bc0
call fcn.0041fee9
push eax
call fcn.00401ac0
add esp, 0x10
test eax, eax
je 0x411820
push 0xffffffffffffff9d
jmp 0x411779
push edi
push 0x80
push 3
push edi
push ebx
lea eax, [ebp - 0x12c]
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41184a
push 0xffffffffffffff9c
jmp 0x411779
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], edi
push ecx
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 0x28]
push ecx
mov ecx, dword [ebp - 8]
push eax
push esi
call fcn.00411b84
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp ebx, edi
jge 0x411894
mov eax, ebx
or ah, 1
jmp 0x4118df
push dword [0x4825f8]
call dword [sym.imp.USER32.dll_GetDC]
push edi
mov esi, eax
push dword [ebp - 4]
push dword [ebp - 0xc]
push 4
push dword [ebp - 4]
push esi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
push esi
mov dword [0x482600], eax
push dword [0x4825f8]
call dword [sym.imp.USER32.dll_ReleaseDC]
push dword [ebp - 0x10]
call fcn.00428bae
mov eax, dword [0x482600]
pop ecx
neg eax
sbb eax, eax
and eax, 0x6a
add eax, 0xffffff97
pop edi
pop esi
pop ebx
leave
ret
Function at 0x411afa
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x411b7c
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp + 8]
push 0
push eax
lea eax, [ebp - 0x10]
push 0xe
push eax
push edi
call esi
cmp dword [ebp + 8], 0xe
jne 0x411b75
cmp word [ebp - 0x10], 0x4d42
jne 0x411b75
lea eax, [ebp + 8]
push 0
push eax
lea eax, [ebp - 0x38]
push 0x28
push eax
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 8], 0x28
jne 0x411b7c
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x34]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x30]
mov dword [eax + 4], ecx
mov al, 1
jmp 0x411b7e
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
pop esi
leave
ret 8

Function at 0x411b84
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
push 0xe
pop edi
push edi
push 0
push ebx
call fcn.004282e0
add esp, 0xc
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp + 0x10]
push 0
push eax
push edi
push ebx
push dword [ebp + 8]
call esi
cmp dword [ebp + 0x10], edi
je 0x411bbb
push 0xfffffffffffffff8
jmp 0x411c9f
cmp word [ebx], 0x4d42
je 0x411bc9
push 0xfffffffffffffff7
jmp 0x411c9f
mov ebx, dword [ebp + 0xc]
sub ebx, edi
push ebx
call fcn.00428bb9
mov edi, dword [ebp + 0x18]
pop ecx
test eax, eax
mov dword [edi], eax
jne 0x411be5
push 0xffffffffffffffe0
jmp 0x411c9f
lea ecx, [ebp + 0x10]
push 0
push ecx
push ebx
push eax
push dword [ebp + 8]
call esi
cmp dword [ebp + 0x10], ebx
je 0x411bfb
push 0xffffffffffffffdf
jmp 0x411c4a
mov eax, dword [ebp + 0x14]
mov ecx, dword [edi]
push 1
mov dword [eax], ecx
mov ebx, dword [edi]
mov eax, ecx
pop esi
mov dword [ebp + 8], ebx
mov dx, word [eax + 0xe]
mov cl, dl
shl esi, cl
cmp dx, 8
jbe 0x411c1e
xor esi, esi
jmp 0x411c27
mov eax, dword [eax + 0x20]
test eax, eax
je 0x411c27
mov esi, eax
mov ecx, dword [ebp + 0x1c]
lea eax, [ebx + esi*4 + 0x28]
test esi, esi
mov dword [ecx], eax
je 0x411c9d
lea eax, [esi*4 + 8]
push eax
call fcn.00428bb9
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x411c57
push 0xffffffffffffffde
pop esi
push dword [edi]
call fcn.00428bae
pop ecx
mov eax, esi
jmp 0x411ca0
test esi, esi
mov word [ebx], 0x300
mov word [ebx + 2], si
jle 0x411c8a
mov ecx, dword [ebp + 8]
lea eax, [ebx + 5]
add ecx, 0x29
mov dl, byte [ecx + 1]
mov byte [eax - 1], dl
mov dl, byte [ecx]
mov byte [eax], dl
mov dl, byte [ecx - 1]
mov byte [eax + 1], dl
and byte [eax + 2], 0
add ecx, 4
add eax, 4
dec esi
jne 0x411c6d
push ebx
call dword [sym.imp.GDI32.dll_CreatePalette]
mov ecx, dword [ebp + 0x20]
push ebx
mov dword [ecx], eax
call fcn.00428bae
pop ecx
push 1
pop eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x1c
Function at 0x411d1b
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0x4827b8
lea ecx, [ebp - 0xc]
call fcn.0041f001
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 0xc]
dec eax
push eax
call fcn.0041f1a1
cmp al, 0x5c
je 0x411d49
push 0x5c
lea ecx, [ebp - 0xc]
call fcn.0041f1b6
push esi
push 0
push str.Backup_
lea ecx, [ebp - 0xc]
call fcn.0041f205
push 1
lea ecx, [ebp - 0xc]
call fcn.0041fee9
push eax
call fcn.0040ef3c
mov esi, dword [ebp + 8]
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
dec eax
test eax, eax
jle 0x411d8f
cmp byte [eax + esi], 0x5c
jne 0x411d75
lea eax, [eax + esi + 1]
push 0
push eax
lea ecx, [ebp - 0xc]
call fcn.0041f205
push 0
lea ecx, [ebp - 0xc]
call fcn.0041fee9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 9
lea ecx, [ebp - 0xc]
call fcn.0041f1b6
push 0
push esi
lea ecx, [ebp - 0xc]
call fcn.0041f205
push dword [ebp + 0x14]
lea eax, [ebp - 0xc]
push dword [ebp + 0x18]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push str._t_d_t_d_t_d_t_d
push eax
call fcn.0041f625
add esp, 0x18
lea ecx, [ebp - 0xc]
call fcn.0041fee9
push eax
mov ecx, 0x482c78
call fcn.00425a3e
lea ecx, [ebp - 0xc]
call fcn.0041f063
pop esi
leave
ret 0x14
Function at 0x411df3
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea ecx, [ebp - 0x18]
mov dword [esi + 4], ebx
mov dword [ebp - 4], ebx
call fcn.0041ef2d
push dword [ebp - 4]
mov edi, 0x482a6c
mov ecx, edi
call fcn.0041fb90
test al, al
je 0x411fba
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
lea eax, [ebp - 4]
push eax
call fcn.0041faed
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
lea ecx, [ebp - 0x18]
call fcn.0041fee9
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
je 0x411fae
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push dword [ebp - 0xc]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0x24]
mov dword [esi], eax
lea eax, [ebp - 0x18]
push eax
call fcn.0041f001
mov eax, dword [ebp - 0x24]
push 3
add eax, 0xfffffffd
lea ecx, [ebp - 0x24]
push eax
call fcn.0041f567
push ebx
push 0x42ff50
lea ecx, [ebp - 0x24]
call fcn.0041f205
cmp byte [0x48375c], bl
jne 0x411f16
mov ecx, 0x483380
call fcn.0041fee9
push eax
lea ecx, [ebp - 0x30]
call fcn.0041ef9d
push 0x20
lea ecx, [ebp - 0x30]
call fcn.0041f1b6
lea ecx, [ebp - 0x3c]
call fcn.0041ef2d
lea eax, [ebp - 0x3c]
lea ecx, [ebp - 0x18]
push eax
call fcn.0041fee9
push eax
call fcn.00421c63
pop ecx
lea eax, [ebp - 0x3c]
pop ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.0041f283
lea ecx, [ebp - 0x30]
call fcn.0041fee9
push eax
push 0x14
push dword [esi + 8]
call fcn.00421d90
add esp, 0xc
lea ecx, [ebp - 0x3c]
call fcn.0041f063
lea ecx, [ebp - 0x30]
call fcn.0041f063
push 0x417508
push 0x4174bd
lea ecx, [ebp - 0x24]
call fcn.0041fee9
push eax
lea ecx, [ebp - 0x18]
call fcn.0041fee9
push eax
call dword [0x48275c]
test eax, eax
lea ecx, [ebp - 0x24]
jle 0x411fa9
call fcn.0041fee9
push 0x482c84
push eax
mov ecx, 0x482c78
call fcn.00425a02
cmp dword [0x482acc], ebx
je 0x411f84
push 0xc
call fcn.00428bb9
cmp eax, ebx
pop ecx
je 0x411f75
lea ecx, [ebp - 0x24]
push ecx
mov ecx, eax
call fcn.0041f001
jmp 0x411f77
xor eax, eax
push 0xffffffffffffffff
push eax
mov ecx, 0x482af4
call fcn.00421ffb
lea ecx, [ebp - 0x18]
call fcn.0041fee9
push eax
call fcn.0040eb61
mov eax, dword [ebp - 8]
pop ecx
add dword [esi + 4], eax
lea ecx, [ebp - 0x24]
call fcn.0041f063
push dword [ebp - 4]
jmp 0x411e16
call fcn.0041f063
lea ecx, [ebp - 0x18]
call fcn.0041f063
xor al, al
jmp 0x411fc4
lea ecx, [ebp - 0x18]
call fcn.0041f063
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x412273
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
push esi
push edi
je 0x4122e1
cmp dword [ebp + 0xc], ebx
je 0x4122e1
cmp byte [0x42ff04], bl
mov ecx, 0x482bc0
jne 0x41229a
mov ecx, 0x482b90
call fcn.0041fee9
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, 0x80
push ebx
push edi
push 3
push ebx
push 1
push 0x80000000
push eax
call esi
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x4122e1
lea ecx, [ebp - 0x14]
push ebx
push ecx
mov dword [ebp - 0x14], ebx
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4122ea
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0x10
push ebx
push edi
push 2
push ebx
push 1
push 0xc0000000
push dword [ebp + 8]
call esi
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x4122e1
mov edi, 0x8000
push edi
call fcn.00428bb9
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, ebx
pop ecx
mov dword [ebp + 0xc], eax
jne 0x412337
push dword [ebp - 4]
call esi
push dword [ebp + 8]
call esi
mov ecx, 0x482e04
call fcn.0041fee9
push eax
call fcn.00420ba1
pop ecx
mov dword [ebp - 8], ebx
cmp byte [ebp + 0x14], bl
je 0x412355
lea eax, [ebp - 0x10]
push eax
push edi
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
call fcn.00412ee7
add esp, 0x10
jmp 0x412380
mov ecx, dword [ebp - 8]
mov eax, edi
lea edx, [ecx + 0x8000]
cmp edx, dword [ebp + 0x10]
jbe 0x41236a
mov eax, dword [ebp + 0x10]
sub eax, ecx
lea ecx, [ebp - 0x10]
push ebx
push ecx
push eax
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4123b4
lea eax, [ebp - 0xc]
push ebx
push eax
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4123b4
mov eax, dword [ebp - 0xc]
add dword [ebp - 8], eax
cmp byte [ebp + 0x14], bl
je 0x4123aa
push eax
call fcn.0041742a
pop ecx
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0x10]
jae 0x4123cc
jmp 0x41233a
push dword [ebp + 0xc]
call fcn.00428bae
pop ecx
push dword [ebp - 4]
call esi
push dword [ebp + 8]
call esi
jmp 0x4122e1
push dword [ebp + 0xc]
call fcn.00428bae
pop ecx
push dword [ebp - 4]
call esi
push dword [ebp + 8]
call esi
mov ecx, dword [ebp - 0xc]
xor eax, eax
cmp ecx, dword [ebp - 0x10]
sete al
jmp 0x4122e3
Function at 0x4126b9
Capabilities:
Check if file exists
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x48261c], ebx
jne 0x4126d8
push dword [ebp + 8]
call fcn.0040eb61
pop ecx
jmp 0x412799
and byte [ebp - 0x10], 0
push esi
push edi
xor eax, eax
lea edi, [ebp - 0xf]
push 0xa
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x10]
mov dword [ebp - 4], ebx
push eax
push ebx
call fcn.0042b896
mov esi, dword [ebp + 0xc]
add esp, 0xc
mov ecx, esi
push dword [ebp + 8]
call fcn.0041f0d0
push ebx
push str..old
mov ecx, esi
call fcn.0041f205
lea eax, [ebp - 0x10]
push ebx
push eax
mov ecx, esi
call fcn.0041f205
mov ecx, esi
call fcn.0041fee9
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push eax
call ebx
cmp eax, 0xffffffff
je 0x412786
and byte [ebp - 0x10], 0
xor eax, eax
lea edi, [ebp - 0xf]
inc dword [ebp - 4]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x10]
push 0xa
push eax
push dword [ebp - 4]
call fcn.0042b896
add esp, 0xc
mov ecx, esi
push dword [ebp + 8]
call fcn.0041f0d0
push 0
push str..old
mov ecx, esi
call fcn.0041f205
lea eax, [ebp - 0x10]
push 0
push eax
mov ecx, esi
call fcn.0041f205
mov ecx, esi
call fcn.0041fee9
push eax
jmp 0x41272e
mov ecx, esi
call fcn.0041fee9
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileA]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x412ee7
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [ebp - 4]
xor ebx, ebx
push 1
push eax
push ebx
mov dword [ebp - 4], ebx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [0x42ff0c]
mov edx, dword [0x483770]
sub ecx, dword [0x4836fc]
mov edi, dword [ebp + 0x10]
mov dword [ebp + 8], ebx
mov dword [ebp + 0x10], edi
mov ecx, dword [edx + ecx*4]
lea edx, [eax + edi]
cmp ecx, edx
jae 0x412f2f
sub ecx, eax
mov dword [ebp + 0x10], ecx
lea eax, [ebp + 8]
push ebx
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
test eax, eax
mov dword [ebx], ecx
je 0x412fb8
cmp ecx, edi
jae 0x412fb8
mov eax, dword [0x42ff0c]
mov ecx, dword [0x482710]
sub eax, dword [0x4836fc]
dec ecx
cmp eax, ecx
jge 0x412fb8
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [esi], 0xffffffff
push esi
mov ecx, 0x482d70
call fcn.00415dd6
mov ecx, dword [0x42ff0c]
mov edx, dword [0x483770]
sub ecx, dword [0x4836fc]
mov eax, dword [ebp + 8]
sub edi, eax
mov ecx, dword [edx + ecx*4]
cmp ecx, edi
jae 0x412f9e
mov edi, ecx
lea ecx, [ebp + 8]
push 0
push ecx
mov ecx, dword [ebp + 0xc]
add eax, ecx
push edi
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp + 8]
add dword [ebx], eax
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push 1
push eax
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
mov dword [0x4836e0], eax
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x412fd9
Capabilities:
Check if file exists
Delete directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
xor eax, eax
cmp dword [0x4829b4], eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
jle 0x413202
push ebx
push esi
push edi
mov esi, 0x482408
push dword [ebp - 8]
mov ecx, 0x4829a8
call fcn.00421fe1
mov edi, eax
mov eax, dword [edi + 0x1c]
cmp eax, dword [ebp + 8]
jne 0x4131ed
push dword [edi + 0x20]
call fcn.00414cd2
test al, al
pop ecx
je 0x4131ed
lea ebx, [edi + 4]
mov ecx, esi
push ebx
call fcn.00418e4f
lea eax, [edi + 0x10]
mov ecx, esi
push eax
call fcn.00418e4f
or dword [edi + 0x1c], 0xffffffff
push ebx
mov ecx, esi
call fcn.0041d6f6
lea eax, [edi + 0x10]
mov ecx, esi
push eax
call fcn.0041d6f6
push 0x7fffffff
push ebx
mov ecx, esi
call fcn.0041e39b
lea eax, [edi + 0x10]
push 0x7fffffff
push eax
mov ecx, esi
call fcn.0041e39b
mov eax, dword [edi]
cmp eax, 4
jne 0x41308d
inc dword [ebp - 4]
mov ecx, ebx
call fcn.0041fee9
push eax
call fcn.00428045
jmp 0x4131ed
cmp eax, 5
jne 0x4130a5
mov ecx, ebx
call fcn.0041fee9
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x4131ed
push 0x1e
lea eax, [ebp - 0x38]
push 0
push eax
call fcn.004282e0
mov eax, dword [0x4825f8]
add esp, 0xc
mov ecx, ebx
mov dword [ebp - 0x38], eax
push 0
mov word [ebp - 0x28], 0x650
call fcn.0041f1b6
mov ecx, ebx
call fcn.0041fee9
mov dword [ebp - 0x30], eax
mov eax, dword [edi]
test eax, eax
je 0x4130e6
cmp eax, 2
je 0x4130e6
cmp eax, 3
jne 0x4130fc
lea ebx, [edi + 0x10]
push 0
mov ecx, ebx
call fcn.0041f1b6
mov ecx, ebx
call fcn.0041fee9
mov dword [ebp - 0x2c], eax
mov eax, dword [edi]
push 1
pop ecx
cmp eax, ecx
jne 0x41310e
mov dword [ebp - 0x34], 3
jmp 0x413124
cmp eax, 2
je 0x413121
xor ecx, ecx
cmp eax, 3
setne cl
dec ecx
and ecx, 2
inc ecx
inc ecx
mov dword [ebp - 0x34], ecx
lea ecx, [edi + 0x10]
call fcn.0041fee9
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push eax
call ebx
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
test eax, eax
jne 0x41317f
cmp dword [edi], eax
jne 0x41317f
cmp dword [ebp - 0xc], 0xffffffff
jne 0x41317f
inc dword [ebp - 4]
lea ecx, [edi + 0x10]
call fcn.0041fee9
push eax
call ebx
cmp eax, 0xffffffff
je 0x41317f
test al, 0x10
jne 0x41317f
lea ecx, [edi + 0x10]
call fcn.0041fee9
push 0x482c84
push eax
mov ecx, 0x482c78
call fcn.00425a02
mov eax, dword [edi + 0x10]
lea ebx, [edi + 0x10]
cmp eax, 4
jbe 0x4131ed
mov edi, dword [edi]
cmp edi, 2
je 0x413195
test edi, edi
jne 0x4131ed
add eax, 0xfffffffb
push 4
push eax
mov ecx, ebx
call fcn.0041fe55
push eax
lea ecx, [ebp - 0x18]
call fcn.0041f001
lea ecx, [ebp - 0x18]
call fcn.0041ff33
push 1
push str..TTF
lea ecx, [ebp - 0x18]
call fcn.0041f3b8
test al, al
je 0x4131e5
mov ecx, ebx
call fcn.0041fee9
push eax
call dword [sym.imp.GDI32.dll_AddFontResourceA]
push 0
push 0
push 0x1d
push 0xffff
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [ebp - 0x18]
call fcn.0041f063
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [0x4829b4]
jl 0x412ffb
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 4]
leave
ret 4
Function at 0x4134d1
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp byte [0x42ff04], 0
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edi
mov ecx, 0x482bc0
jne 0x4134f2
mov ecx, 0x482b90
call fcn.0041fee9
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
push dword [esi + 0x34]
push dword [ecx]
mov ecx, ebx
push eax
call fcn.0041fd32
test eax, eax
jge 0x41352c
push 0
push str.Couldnt_read_filename___skipping_file
push dword [edi + 8]
mov ecx, 0x482408
call fcn.0041e1f3
xor eax, eax
jmp 0x41365d
mov edi, 0x482408
push ebx
mov ecx, edi
call fcn.00418e4f
push ebx
mov ecx, edi
call fcn.0041d6f6
push 0x7fffffff
push ebx
mov ecx, edi
call fcn.0041e39b
mov eax, dword [ebp + 0x14]
mov ecx, ebx
mov byte [eax], 1
mov eax, dword [esi + 0x34]
add dword [0x4836e0], eax
call fcn.0041fee9
push eax
call fcn.0040f27e
test al, al
pop ecx
jne 0x4135db
lea ecx, [ebp - 0x10]
call fcn.0041ef2d
mov ecx, ebx
call fcn.0041fee9
push eax
mov ecx, 0x483374
call fcn.0041fee9
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0041f625
add esp, 0xc
cmp dword [ebp - 0x10], 0
je 0x4135ca
mov ecx, 0x482bd0
call fcn.0041fee9
mov ecx, dword [ebp - 4]
push 4
push eax
mov esi, dword [ecx + 8]
lea ecx, [ebp - 0x10]
call fcn.0041fee9
push eax
push esi
mov ecx, edi
call fcn.0041e217
cmp eax, 7
jne 0x4135ca
or esi, 0xffffffff
jmp 0x4135cc
xor esi, esi
lea ecx, [ebp - 0x10]
call fcn.0041f063
mov eax, esi
jmp 0x41365d
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov ecx, ebx
call fcn.0041fee9
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x41365a
and dword [ebp + 8], 0
lea eax, [ebp + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0x34], eax
lea eax, [esi + 0x10]
push eax
lea eax, [esi + 0x18]
push 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi + 0x24]
mov ecx, ebx
push eax
lea eax, [esi + 0x20]
push eax
call fcn.0041fee9
push eax
call fcn.0040eb92
add esp, 0xc
add esi, 0x28
mov ecx, ebx
push 0
push esi
call fcn.0041fee9
push eax
call fcn.0040ec26
add esp, 0xc
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x413b5d
Capabilities:
Delete file

Disassembly:
push ebx
push esi
push edi
push str..DLL
push dword [esp + 0x14]
call fcn.00420ed8
mov edi, dword [esp + 0x1c]
pop ecx
pop ecx
mov esi, 0x482770
push edi
mov ecx, esi
call fcn.0041fabb
add edi, 4
mov ecx, esi
push edi
mov ebx, eax
call fcn.0041fabb
test ebx, ebx
mov esi, eax
je 0x413bfc
test esi, esi
je 0x413bfc
push 1
pop eax
mov dword [0x4836fc], eax
mov dword [0x482710], eax
mov eax, dword [0x483770]
test eax, eax
je 0x413bb5
push eax
call fcn.00428bae
pop ecx
push 4
call fcn.00428bb9
pop ecx
mov dword [0x483770], eax
lea ecx, [esi + ebx]
mov dword [eax], ecx
cmp byte [0x42ff04], 0
mov ecx, 0x482bc0
jne 0x413bda
mov ecx, 0x482b90
call fcn.0041fee9
push esi
push ebx
push dword [esp + 0x18]
push eax
call fcn.00401ac0
add esp, 0x10
test eax, eax
je 0x413c04
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor al, al
pop edi
pop esi
pop ebx
ret 8
mov al, 1
jmp 0x413bfe

Function at 0x413c08
Capabilities:
Shutdown system
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [ebp - 4]
push ebx
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea eax, [ebp - 0x10]
xor ebx, ebx
push eax
push str.SeShutdownPrivilege
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push ebx
push ebx
lea eax, [ebp - 0x14]
push ebx
push eax
push ebx
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 1
mov ecx, 0x482408
call fcn.0041e43f
push ebx
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
xor eax, eax
cmp byte [0x4837ad], bl
sete al
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x414cd2
Capabilities:
Inspect section memory permissions

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
jne 0x414cdf
mov al, 1
pop esi
ret
mov edx, dword [esi]
push 1
pop eax
test al, dl
jne 0x414d8b
mov ecx, dword [0x48266c]
test edx, 0x40000000
je 0x414d02
cmp ecx, eax
je 0x414d8b
test edx, 0x20000000
je 0x414d0f
cmp ecx, 2
je 0x414d8b
cmp ecx, eax
jne 0x414d37
mov ecx, dword [0x482664]
cmp ecx, 0x5a
je 0x414d32
cmp dword [0x482660], 4
jne 0x414d32
neg ecx
sbb ecx, ecx
and ecx, 2
inc ecx
inc ecx
jmp 0x414d83
push 8
pop ecx
jmp 0x414d83
mov ecx, dword [0x482660]
cmp ecx, 4
ja 0x414d46
push 0x10
jmp 0x414d34
cmp ecx, 5
jne 0x414d6b
mov ecx, dword [0x482664]
test ecx, ecx
jne 0x414d59
push 0x20
jmp 0x414d34
cmp ecx, eax
jne 0x414d61
push 0x40
jmp 0x414d34
cmp ecx, 2
jne 0x414d7e
add ecx, 0x7e
jmp 0x414d83
cmp ecx, 6
jne 0x414d7e
cmp dword [0x482664], 0
mov ecx, 0x100
je 0x414d83
mov ecx, 0x200
test ecx, edx
jne 0x414d8b
xor al, al
pop esi
ret
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x414da6
shr edx, 0x1f
and dl, al
push edx
push 0
push dword [esi + 4]
push ecx
call fcn.00414923
add esp, 0x10
pop esi
ret