joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4086d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov edx, dword [0x4170bc]
cmp eax, edx
jae 0x4086ff
mov edx, eax
and edx, 0x1f
sar eax, 5
mov eax, dword [eax*4 + 0x4170c0]
test byte [eax + edx*8 + 4], 1
jne 0x408711
mov dword [0x415c84], 9
or eax, 0xffffffff
jmp 0x4088e4
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
cmp dword [ebp + 0x10], 0
jne 0x40872c
xor eax, eax
jmp 0x4088e4
mov eax, dword [ebp + 8]
mov edx, eax
and edx, 0x1f
sar eax, 5
mov eax, dword [eax*4 + 0x4170c0]
test byte [eax + edx*8 + 4], 0x20
je 0x408755
push 2
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.00409fd0
add esp, 0xc
mov eax, dword [ebp + 8]
mov edx, eax
and edx, 0x1f
sar eax, 5
mov eax, dword [eax*4 + 0x4170c0]
test byte [eax + edx*8 + 4], 0x80
je 0x408833
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x10], 0
jmp 0x40881f
lea edi, [ebp - 0x411]
jmp 0x4087a1
mov eax, esi
inc esi
mov bl, byte [eax]
cmp bl, 0xa
jne 0x40879c
inc dword [ebp - 4]
mov eax, edi
inc edi
mov byte [eax], 0xd
mov eax, edi
inc edi
mov byte [eax], bl
lea eax, [ebp - 0x411]
mov edx, edi
sub edx, eax
mov eax, edx
cmp eax, 0x400
jge 0x4087c2
mov eax, dword [ebp + 0xc]
mov edx, esi
sub edx, eax
mov eax, edx
cmp eax, dword [ebp + 0x10]
jb 0x408789
push 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x411]
mov edx, edi
sub edx, eax
mov eax, edx
push eax
lea eax, [ebp - 0x411]
push eax
mov eax, dword [ebp + 8]
mov edx, eax
and edx, 0x1f
sar eax, 5
mov eax, dword [eax*4 + 0x4170c0]
mov eax, dword [eax + edx*8]
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x408814
mov eax, dword [ebp - 8]
add dword [ebp - 0xc], eax
lea edx, [ebp - 0x411]
mov ecx, edi
sub ecx, edx
mov edx, ecx
cmp eax, edx
jge 0x40881f
jmp 0x408879
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x10], eax
jmp 0x408879
mov eax, dword [ebp + 0xc]
mov edx, esi
sub edx, eax
mov eax, edx
cmp eax, dword [ebp + 0x10]
jb 0x408781
jmp 0x408879
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
mov edx, eax
and edx, 0x1f
sar eax, 5
mov eax, dword [eax*4 + 0x4170c0]
mov eax, dword [eax + edx*8]
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x408870
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
jmp 0x408879
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0xc], 0
jne 0x4088de
cmp dword [ebp - 0x10], 0
je 0x4088aa
cmp dword [ebp - 0x10], 5
jne 0x40889b
mov dword [0x415c84], 9
jmp 0x4088a5
mov eax, dword [ebp - 0x10]
push eax
call fcn.00408c30
pop ecx
or eax, 0xffffffff
jmp 0x4088e4
mov eax, dword [ebp + 8]
mov edx, eax
and edx, 0x1f
sar eax, 5
mov eax, dword [eax*4 + 0x4170c0]
test byte [eax + edx*8 + 4], 0x40
je 0x4088cf
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x4088cf
xor eax, eax
jmp 0x4088e4
mov dword [0x415c84], 0x1c
or eax, 0xffffffff
jmp 0x4088e4
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40adc0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.00404730
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov eax, dword [0x4170bc]
cmp ebx, eax
jae 0x40adfb
mov eax, ebx
and eax, 0x1f
mov edx, ebx
sar edx, 5
mov edx, dword [edx*4 + 0x4170c0]
test byte [edx + eax*8 + 4], 1
jne 0x40ae0d
mov dword [0x415c84], 9
or eax, 0xffffffff
jmp 0x40af32
push 1
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x40ae37
push 2
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x40ae3f
or eax, 0xffffffff
jmp 0x40af32
mov eax, dword [ebp + 0xc]
mov esi, eax
sub esi, dword [ebp - 8]
test esi, esi
jle 0x40aee4
lea edx, [ebp - 0x1010]
mov ecx, 0x1000
xor eax, eax
push edi
mov edi, edx
rep stosb byte es:[edi], al
pop edi
mov eax, edx
push 0x8000
push ebx
call fcn.0040b330
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, esi
cmp eax, 0x1000
jb 0x40ae8a
mov dword [ebp - 0x1014], 0x1000
jmp 0x40ae92
mov eax, esi
mov dword [ebp - 0x1014], eax
mov eax, dword [ebp - 0x1014]
push eax
lea eax, [ebp - 0x1010]
push eax
push ebx
call fcn.004086d0
add esp, 0xc
mov edi, eax
cmp eax, 0xffffffff
jne 0x40aecb
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 5
jne 0x40aec5
mov dword [0x415c84], 0xd
or dword [ebp - 4], 0xffffffff
jmp 0x40aed5
mov eax, esi
sub eax, edi
mov esi, eax
test eax, eax
jg 0x40ae75
mov eax, dword [ebp - 0x10]
push eax
push ebx
call fcn.0040b330
add esp, 8
jmp 0x40af20
test esi, esi
jge 0x40af20
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
push ebx
call fcn.00408b00
pop ecx
push eax
call dword [sym.imp.KERNEL32.DLL_SetEndOfFile]
test eax, eax
setne al
and eax, 1
dec eax
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x40af20
mov dword [0x415c84], 0xd
push 0
mov eax, dword [ebp - 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x432004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..rsrc
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x432072
nop
mov ebx, 0x40c7d0
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x39252150
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x432060
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4320d2
nop
nop
mov ebx, 0x42f314
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x5e280dfb
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4320c0
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x40bc10
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x9000]
push edi
jmp 0x40bc2a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40bc31
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40bc20
mov eax, 1
add ebx, ebx
jne 0x40bc43
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40bc38
jne 0x40bc54
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40bc38
xor ecx, ecx
sub eax, 3
jb 0x40bc68
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40bcda
mov ebp, eax
add ebx, ebx
jne 0x40bc73
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40bc80
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40bca4
inc ecx
add ebx, ebx
jne 0x40bc90
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40bc85
jne 0x40bca1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40bc85
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40bcc4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40bcb5
jmp 0x40bc26
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40bcc4
add edi, ecx
jmp 0x40bc26
pop esi
mov edi, esi
mov ecx, 0x177
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40bce2
cmp byte [edi], 0
jne 0x40bce2
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 0x40bce7
lea edi, [esi + 0x9000]
mov eax, dword [edi]
or eax, eax
je 0x40bd56
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xb600]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xb68c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40bd14
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xb690]
or eax, eax
je 0x40bd50
mov dword [ebx], eax
add ebx, 4
jmp 0x40bd31
call dword [esi + 0xb6a0]
mov ebp, dword [esi + 0xb694]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1df]
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 0x40bd8a
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x4019c5
Capabilities:
Extract resource via kernel32 functions

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

Function at 0x402014
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x20], ebx
jne 0x4020c2
cmp dword [esi + 0x24], ebx
jne 0x4020c2
push edi
mov ecx, 0x4410b0
call fcn.00414a1d
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x20], eax
test eax, eax
je 0x40205b
push str.GetDpiForMonitor
push eax
call edi
push str.SetProcessDpiAwareness
push dword [esi + 0x20]
mov dword [esi + 4], eax
call edi
jmp 0x402060
mov dword [esi + 4], ebx
mov eax, ebx
mov ecx, str.user32.dll
mov dword [esi + 0xc], eax
call fcn.00414a1d
mov dword [esi + 0x24], eax
test eax, eax
je 0x4020b5
push str.SetProcessDpiAwarenessContext
push eax
call edi
push str.SetDialogControlDpiChangeBehavior
push dword [esi + 0x24]
mov dword [esi + 8], eax
call edi
push str.GetDpiForWindow
push dword [esi + 0x24]
mov dword [esi + 0x10], eax
call edi
push str.SystemParametersInfoForDpi
push dword [esi + 0x24]
mov dword [esi + 0x14], eax
call edi
push str.EnableNonClientDpiScaling
push dword [esi + 0x24]
mov dword [esi + 0x18], eax
call edi
mov dword [esi + 0x1c], eax
jmp 0x4020c1
mov dword [esi + 8], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
pop edi
pop esi
pop ebx
ret
Function at 0x405e25
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, ecx
mov ecx, dword [ebp + 0xc]
push ebx
push esi
push edi
mov eax, dword [edx + 0xc]
mov ebx, dword [edx]
mov edi, dword [edx + 4]
mov esi, dword [edx + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
or eax, ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], ecx
je 0x405eb7
mov edx, dword [ebp + 8]
mov eax, esi
or eax, 2
mov ecx, eax
xor ecx, 1
imul ecx, eax
mov eax, dword [ebp + 0x10]
shr ecx, 8
xor cl, byte [eax]
movzx eax, cl
xor eax, ebx
mov dword [ebp + 0xc], ecx
mov ecx, dword [ebp - 8]
movzx eax, al
shr ebx, 8
xor ebx, dword [ecx + eax*4]
movzx eax, bl
add eax, edi
imul edi, eax, 0x8088405
inc edi
mov eax, edi
shr eax, 0x18
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [ecx + eax*4]
add edx, 0xffffffff
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov byte [eax], cl
mov ecx, dword [ebp - 4]
adc ecx, 0xffffffff
inc eax
mov dword [ebp + 0x10], eax
mov eax, edx
or eax, ecx
mov dword [ebp - 4], ecx
jne 0x405e51
mov edx, dword [ebp - 0xc]
mov dword [edx + 4], edi
pop edi
mov dword [edx + 8], esi
pop esi
mov dword [edx], ebx
pop ebx
leave
ret 0xc

Function at 0x405f09
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
movzx eax, byte [ebp + 8]
push esi
push edi
mov edi, ecx
mov edx, dword [edi]
xor eax, edx
mov esi, dword [edi + 0xc]
mov ecx, dword [edi + 8]
movzx eax, al
shr edx, 8
xor edx, dword [esi + eax*4]
movzx eax, dl
add eax, dword [edi + 4]
imul eax, eax, 0x8088405
mov dword [edi], edx
inc eax
mov dword [edi + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [esi + eax*4]
mov dword [edi + 8], ecx
pop edi
pop esi
pop ebp
ret 4

Function at 0x405f50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x44700c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], ecx
push 2
movsd dword es:[edi], dword [esi]
pop ecx
push ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x14]
xor edi, edi
mov ax, word [esi + 8]
or ax, cx
mov ecx, esi
movzx eax, ax
mov ebx, eax
xor ebx, 1
imul ebx, eax
sar ebx, 8
xor bl, byte [ebp + edi - 0x10]
mov byte [ebp - 0x14], bl
push dword [ebp - 0x14]
mov dword [ebp - 0x18], ebx
call fcn.00405f09
mov byte [ebp + edi - 0x10], bl
inc edi
push 2
pop ecx
cmp edi, 0xb
jl 0x405f77
mov ax, word [esi + 8]
or ax, cx
mov ecx, esi
movzx eax, ax
mov ebx, eax
xor ebx, 1
imul ebx, eax
sar ebx, 8
xor bl, byte [ebp + edi - 0x10]
mov byte [ebp - 0x14], bl
push dword [ebp - 0x14]
call fcn.00405f09
cmp bl, byte [ebp + 0x10]
pop ebx
jne 0x405fec
mov edx, dword [ebp - 0x18]
xor ecx, ecx
cmp dl, byte [ebp + 0xc]
setne cl
xor eax, eax
mov dword [esi + 0x10], ecx
inc eax
jmp 0x405fee
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00421e3f
leave
ret 0xc
Function at 0x4076bb
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x44700c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
jmp 0x40771d
and dword [ebp - 8], 0
test edi, edi
jne 0x4076ee
mov ebx, esi
cmp esi, 0x1000000
jbe 0x4076f3
mov ebx, 0x1000000
push 0
lea eax, [ebp - 8]
push eax
push ebx
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x407733
cmp ebx, dword [ebp - 8]
jne 0x407733
sub esi, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
sbb edi, 0
add edx, dword [ebp - 8]
mov dword [ebp - 0xc], edx
mov eax, esi
or eax, edi
jne 0x4076dc
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00421e3f
leave
ret
xor eax, eax
jmp 0x407724

Function at 0x407737
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x44700c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
and dword [eax], 0
and dword [eax + 4], 0
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], eax
jmp 0x4077af
and dword [ebp - 8], 0
test ebx, ebx
jne 0x407777
mov edi, esi
cmp esi, 0x1000000
jbe 0x40777c
mov edi, 0x1000000
push 0
lea eax, [ebp - 8]
push eax
push edi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4077c7
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
add dword [ecx], eax
adc dword [ecx + 4], 0
cmp eax, edi
jb 0x4077b5
mov edx, dword [ebp - 0xc]
sub esi, eax
mov ecx, dword [ebp - 0x14]
sbb ebx, 0
add edx, eax
mov dword [ebp - 0xc], edx
mov eax, esi
or eax, ebx
jne 0x407765
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00421e3f
leave
ret
xor eax, eax
jmp 0x4077b8
Function at 0x408958
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x44700c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], eax
push ebx
push esi
push edi
test ecx, ecx
je 0x408a99
test edx, edx
je 0x408a99
test eax, eax
je 0x408a99
mov eax, dword [0x4416f4]
xor ebx, ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push ebx
push ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
call edi
mov esi, eax
lea ecx, [ebp - 0x10]
push esi
call fcn.0041419f
mov ecx, dword [ebp - 0x10]
xor edx, edx
test al, al
cmove ecx, edx
push ecx
push esi
call edi
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.00414209
test esi, esi
je 0x408a8d
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov esi, dword [ebp - 0x28]
mov ecx, esi
call fcn.0040890e
push ebx
push dword [ebp - 0x24]
push esi
call dword [sym.imp.KERNEL32.dll_CreateHardLinkW]
mov edi, eax
test edi, edi
jne 0x408a82
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x408a3e
xor eax, eax
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
sub esp, 0xc
mov ecx, esp
stosd dword es:[edi], eax
push esi
stosd dword es:[edi], eax
call fcn.00413e89
lea ecx, [ebp - 0x1c]
call fcn.00407ff6
add esp, 0xc
push ebx
push dword [ebp - 0x24]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateHardLinkW]
lea ecx, [ebp - 0x1c]
mov edi, eax
call fcn.00413fa9
jmp 0x408a82
cmp eax, 0x7b
jne 0x408a82
mov ecx, esi
call fcn.00409005
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x20], eax
call fcn.00409005
mov esi, eax
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x408a77
test esi, esi
je 0x408a70
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateHardLinkW]
mov edi, eax
mov eax, dword [ebp - 0x20]
push eax
call fcn.00429eaf
pop ecx
test esi, esi
je 0x408a82
push esi
call fcn.00429eaf
pop ecx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ebx, edi
lea ecx, [ebp - 0x10]
call fcn.00413fa9
mov eax, ebx
jmp 0x408a9b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00421e3f
leave
ret
Function at 0x40920c
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
test esi, esi
je 0x409283
cmp word [esi], 0
je 0x409283
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor ecx, ecx
add eax, 2
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042a560
mov edi, eax
pop ecx
test edi, edi
je 0x409283
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, edi
call fcn.0040825f
push dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov ecx, edi
call fcn.004085d0
mov dword [ebp - 4], eax
pop ecx
test eax, eax
je 0x409277
test bl, 7
je 0x409277
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
call fcn.00429eaf
mov eax, dword [ebp - 4]
pop ecx
jmp 0x409285
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40928a
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x44700c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
or esi, 0xffffffff
cmp ecx, esi
je 0x4092b9
lea eax, [ebp - 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x4092b9
mov esi, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
jmp 0x4092bb
mov edx, esi
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00421e3f
leave
ret
Function at 0x40e705
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
push esi
push edi
mov eax, dword [ebx + 8]
cmp dword [eax + 0x60], 0
je 0x40e77c
mov esi, dword [ebp + 0xc]
test esi, esi
jl 0x40e77c
mov edi, dword [ebp + 8]
jg 0x40e77c
cmp edi, 0x1000
jbe 0x40e77c
test esi, esi
jg 0x40e77c
jl 0x40e738
cmp edi, 0x40000000
ja 0x40e77c
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x4c]
or eax, edx
jne 0x40e77c
mov ecx, dword [ebp + 0x10]
push esi
push edi
mov eax, dword [ecx]
call dword [eax + 0x48]
cmp eax, edi
jne 0x40e77c
cmp edx, esi
jne 0x40e77c
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x40e768
mov dword [ebx], edi
mov dword [ebx + 4], esi
mov ecx, dword [ebp + 0x10]
push 0
push 0
mov eax, dword [ecx]
call dword [eax + 0x48]
or eax, edx
je 0x40e77c
xor eax, eax
jmp 0x40e77f
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x14

Function at 0x40ec55
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x44700c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 8], eax
push edi
mov edi, dword [ebp + 8]
lea ebx, [esi + 0x4c]
and dword [ebx], 0
cmp dword [esi + 0xc], 0xffffffff
je 0x40ec84
mov eax, dword [esi]
call dword [eax + 0x2c]
mov eax, dword [esi + 0x50]
mov ecx, edi
push dword [eax + 0x7c]
push dword [ebp + 0x14]
push ebx
push dword [ebp - 8]
call fcn.0040e9a9
add esp, 0x10
mov dword [esi + 0xc], eax
cmp eax, 0xffffffff
jne 0x40eca7
xor eax, eax
jmp 0x40ed03
mov ecx, eax
call fcn.0040928a
push edi
mov ecx, esi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], edx
call fcn.0040f3cc
test edi, edi
je 0x40ed00
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 3
jle 0x40ed00
push 0x3a
pop ecx
cmp word [edi + 2], cx
jne 0x40ed00
push 0x5c
pop edx
cmp word [edi + 4], dx
jne 0x40ed00
mov ax, word [edi]
mov word [ebp - 0xc], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
mov word [ebp - 0xa], cx
mov word [ebp - 8], dx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [esi + 0x10], eax
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00421e3f
leave
ret 0x10
Function at 0x40f51d
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x44700c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [edx + 0xc]
push ebx
dec eax
mov dword [ebp - 0x14], edx
push esi
neg eax
mov ebx, ecx
mov ecx, dword [edx + 4]
sbb eax, eax
xor esi, esi
push edi
add eax, 3
neg ecx
push esi
push 0x80
push eax
sbb ecx, ecx
xor eax, eax
and ecx, 4
cmp dword [edx], esi
push esi
setne al
or ecx, eax
push ecx
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40f641
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 5
je 0x40f5f1
cmp esi, 0x7b
je 0x40f5f1
cmp esi, 3
jne 0x40f633
mov eax, dword [ebp - 0x14]
cmp dword [eax + 8], 0
je 0x40f63c
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
sub esp, 0xc
mov ecx, esp
stosd dword es:[edi], eax
push ebx
stosd dword es:[edi], eax
call fcn.00413e89
lea ecx, [ebp - 0x10]
call fcn.00407ff6
add esp, 0xc
xor eax, eax
push eax
push eax
push 2
push eax
push 1
push 0x40000000
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.00413fa9
cmp edi, 0xffffffff
jne 0x40f641
jmp 0x40f633
push ebx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x40f633
push 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
push eax
push eax
push 2
push eax
push 1
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40f641
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x40f63c
mov esi, 0xa0000031
mov eax, dword [ebp - 0x18]
mov dword [eax], esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00421e3f
leave
ret