joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bb6b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f4f55
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x56f734]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x20], 0
je 0x4bb6ec
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx + 0x20]
call fcn.004be060
mov ecx, dword [ebp - 0x14]
add ecx, 0x2c
call dword [sym.imp.mfc120u.dll_Ordinal_8064]
movzx edx, al
test edx, edx
jne 0x4bb716
mov ecx, dword [ebp - 0x14]
add ecx, 0x2c
call dword [sym.imp.mfc120u.dll_Ordinal_1658]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4bb74c
mov dword [ebp - 0x20], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x20]
push ecx
push 0
mov ecx, dword [ebp - 0x14]
add ecx, 0x28
call dword [sym.imp.mfc120u.dll_Ordinal_1658]
push eax
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x14]
mov edx, dword [eax + 0x10]
call edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x20]
call fcn.004be060
push 0
lea ecx, [ebp - 0x18]
call fcn.004d37a0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
add ecx, 0x2c
call dword [sym.imp.mfc120u.dll_Ordinal_1658]
push eax
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x38]
push edx
call fcn.0045e3f0
lea ecx, [ebp - 0x38]
call fcn.00471d60
push 0
lea ecx, [ebp - 0x18]
call fcn.00442980
movzx eax, al
test eax, eax
je 0x4bb7ab
mov byte [ebp - 0xd], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004085a0
mov al, byte [ebp - 0xd]
jmp 0x4bb849
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
push str.__nodes
call fcn.00408500
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x2c], ecx
mov byte [ebp - 4], 1
lea edx, [ebp - 0x1c]
push edx
lea ecx, [ebp - 0x18]
call fcn.004300a0
mov byte [ebp - 4], 0
mov ecx, eax
call fcn.00408c80
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 2
push 0
lea ecx, [ebp - 0x1c]
call fcn.00442980
movzx eax, al
test eax, eax
je 0x4bb81b
mov byte [ebp - 0xe], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.004085a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004085a0
mov al, byte [ebp - 0xe]
jmp 0x4bb849
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.00442930
mov byte [ebp - 0xf], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.004085a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004085a0
mov al, byte [ebp - 0xf]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x4be090
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f5655
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x56f734]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x14]
movzx ecx, byte [eax + 0xc]
test ecx, ecx
jne 0x4be0ec
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
jmp 0x4be17d
mov edx, dword [ebp - 0x14]
add edx, 8
push edx
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc120u.dll_Ordinal_280]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc120u.dll_Ordinal_5787]
test eax, eax
je 0x4be153
lea ecx, [ebp + 8]
call dword [sym.imp.mfc120u.dll_Ordinal_1658]
push eax
push 0x104
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc120u.dll_Ordinal_5019]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc120u.dll_Ordinal_12430]
push 0
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc120u.dll_Ordinal_1658]
push eax
lea ecx, [ebp + 0xc]
call dword [sym.imp.mfc120u.dll_Ordinal_1658]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x4c1600
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f5b23
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x56f734]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 5
mov eax, dword [ebp - 0x10]
movzx ecx, byte [eax + 0x18]
test ecx, ecx
je 0x4c164d
mov ecx, dword [ebp - 0x10]
add ecx, 0x14
call dword [sym.imp.mfc120u.dll_Ordinal_1658]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x10], 0
je 0x4c1665
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x10]
push ecx
call fcn.004c2c00
add esp, 4
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x10], 0
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x54], 0
je 0x4c16a3
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x54]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4c169c
push 1
mov ecx, dword [ebp - 0x14]
call fcn.004c2990
mov dword [ebp - 0x1c], eax
jmp 0x4c16a3
mov dword [ebp - 0x1c], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x54], 0
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x50], 0
je 0x4c16cb
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x50]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
push edx
call sub.mfc120u.dll_Ordinal_1508
add esp, 4
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x10]
add ecx, 0x38
call fcn.00478b10
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x10]
add ecx, 0x20
call fcn.00478b10
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
add ecx, 0x14
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 4
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x4c3130
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
jne 0x4c3144
xor eax, eax
jmp 0x4c3197
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ecx + 4]
sub eax, dword [edx + 8]
cmp dword [ebp + 0xc], eax
jbe 0x4c3164
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ecx + 4]
sub eax, dword [edx + 8]
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
push edx
push 1
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCR120.dll_fread]
add esp, 0x10
imul eax, dword [ebp + 0xc]
mov dword [ebp + 0xc], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
add eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], eax
mov eax, dword [ebp + 0xc]
mov esp, ebp
pop ebp
ret 8
Function at 0x4cb480
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x10], ecx
mov byte [ebp - 1], 0
cmp dword [ebp + 0xc], 0x104
jbe 0x4cb533
call fcn.00405870
mov dword [ebp - 0x18], eax
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
mov ecx, dword [ebp - 0x10]
add ecx, 4
call fcn.004147c0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x4cb533
mov dword [ebp - 8], 0x104
cmp dword [ebp + 8], 0
je 0x4cb529
mov eax, dword [ebp - 8]
add eax, 1
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
call sub.MSVCR120.dll_memset
add esp, 0xc
push 0
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4cb529
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x14]
jne 0x4cb529
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x10]
call fcn.004cb6b0
mov byte [ebp - 1], 1
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret 8
Function at 0x4d2480
Capabilities:
Encrypt data using blowfish

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov dword [ebp - 4], 0
jmp 0x4d2499
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 4
jge 0x4d24e1
mov dword [ebp - 8], 0
jmp 0x4d24b1
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0x100
jge 0x4d24df
mov edx, dword [ebp - 4]
shl edx, 0xa
mov eax, dword [ebp - 4]
shl eax, 0xa
mov ecx, dword [ebp + 8]
lea eax, [ecx + eax + 0x48]
mov ecx, dword [ebp - 8]
mov esi, dword [ebp - 8]
mov edx, dword [edx + esi*4 + 0x545710]
mov dword [eax + ecx*4], edx
jmp 0x4d24a8
jmp 0x4d2490
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
jmp 0x4d24fa
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x12
jge 0x4d2565
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
jmp 0x4d2519
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 4
jge 0x4d254d
mov edx, dword [ebp - 0x18]
shl edx, 8
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 8]
movzx ecx, byte [eax]
or edx, ecx
mov dword [ebp - 0x18], edx
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0x10]
jl 0x4d254b
mov dword [ebp - 8], 0
jmp 0x4d2510
mov ecx, dword [ebp - 4]
mov edx, dword [ecx*4 + 0x5456c8]
xor edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [ecx + eax*4], edx
jmp 0x4d24f1
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
jmp 0x4d2585
mov edx, dword [ebp - 4]
add edx, 2
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0x12
jge 0x4d25ba
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004d2640
add esp, 0xc
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
mov dword [ecx + eax*4], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
mov dword [ecx + eax*4 + 4], edx
jmp 0x4d257c
mov dword [ebp - 4], 0
jmp 0x4d25cc
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 4
jge 0x4d2632
mov dword [ebp - 8], 0
jmp 0x4d25e4
mov ecx, dword [ebp - 8]
add ecx, 2
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0x100
jge 0x4d2630
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004d2640
add esp, 0xc
mov edx, dword [ebp - 4]
shl edx, 0xa
mov eax, dword [ebp + 8]
lea ecx, [eax + edx + 0x48]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov dword [ecx + edx*4], eax
mov ecx, dword [ebp - 4]
shl ecx, 0xa
mov edx, dword [ebp + 8]
lea eax, [edx + ecx + 0x48]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
mov dword [eax + ecx*4 + 4], edx
jmp 0x4d25db
jmp 0x4d25c3
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x6018c0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1a4000]
push edi
jmp 0x6018da
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x6018e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6018d0
mov eax, 1
add ebx, ebx
jne 0x6018f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x601904
jne 0x601923
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x601923
dec eax
add ebx, ebx
jne 0x601910
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x6018e8
add ebx, ebx
jne 0x60191f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x601975
xor ecx, ecx
sub eax, 3
jb 0x60193b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x6019aa
sar eax, 1
mov ebp, eax
jmp 0x601946
add ebx, ebx
jne 0x601946
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x601914
inc ecx
add ebx, ebx
jne 0x601954
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x601914
add ebx, ebx
jne 0x601961
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x601956
jne 0x601972
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x601956
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x601994
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x601986
jmp 0x6018d6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x601994
add edi, ecx
jmp 0x6018d6
pop esi
mov edi, esi
mov ecx, 0x40f0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x6019b2
cmp byte [edi], 0x11
jne 0x6019b2
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 0x6019b7
lea edi, [esi + 0x1fa000]
mov eax, dword [edi]
or eax, eax
je 0x601a2f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x31d51c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x31d698]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x6019e4
mov ecx, edi
jns 0x601a13
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 + 0x31d69c]
or eax, eax
je 0x601a29
mov dword [ebx], eax
add ebx, 4
jmp 0x601a01
call dword [esi + 0x31d6ac]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x601a60
cmp al, 0xef
ja 0x601a53
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x601a35
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x601a42
mov ebp, dword [esi + 0x31d6a0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
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 0x601a94
sub esp, 0xffffff80
jmp 0x420577
Function at 0x100e580
Capabilities:
Clear file content
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
push edi
xor ebx, ebx
push ebx
push ebx
push 2
push ebx
push 1
push 0xc0000000
push dword [ebp + 8]
mov byte [ebp - 1], bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x100e5d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x20c]
call fcn.0100e252
push eax
push dword [ebp + 8]
push 0x1002b90
call fcn.01011f22
add esp, 0xc
jmp 0x100e68d
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
lea eax, [ebp - 8]
push eax
push 2
lea eax, [ebp - 0xc]
push eax
push edi
mov dword [ebp - 0xc], 0xfeff
call esi
test eax, eax
je 0x100e65e
cmp dword [ebp - 8], 2
jne 0x100e65e
push ebx
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call esi
test eax, eax
je 0x100e636
mov eax, dword [ebp + 0x10]
cmp dword [ebp - 8], eax
jne 0x100e636
push dword [ebp + 8]
push eax
push 0x1002b60
push 6
call fcn.01017562
add esp, 0x10
mov byte [ebp - 1], 1
jmp 0x100e681
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x20c]
call fcn.0100e252
push eax
push dword [ebp + 8]
push dword [ebp + 0x10]
push 0x1002b10
call fcn.01011f22
add esp, 0x10
jmp 0x100e681
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x20c]
call fcn.0100e252
push eax
push dword [ebp + 8]
push 0x1002ac8
call fcn.01011f22
add esp, 0xc
pop esi
cmp edi, ebx
je 0x100e68d
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 1]
pop edi
pop ebx
leave
ret 0xc

Function at 0x100e715
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
xor ebx, ebx
mov esi, 0xc800
push esi
mov byte [ebp - 1], bl
call fcn.01011250
pop ecx
mov edi, eax
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
push ebx
lea eax, [ebp - 8]
push eax
push esi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100e780
cmp dword [ebp - 8], ebx
je 0x100e7c9
push ebx
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 8]
mov dword [ebp - 0x10], ebx
push edi
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100e79e
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 8]
jne 0x100e79e
add dword [ebp - 0xc], eax
cmp dword [ebp - 8], ebx
jne 0x100e73c
jmp 0x100e7c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x210]
call fcn.0100e252
push eax
push dword [ebp + 8]
push esi
push 0x10029c8
jmp 0x100e7bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x210]
call fcn.0100e252
push eax
push dword [ebp + 0x10]
push dword [ebp - 8]
push 0x1002c18
call fcn.01011f22
add esp, 0x10
cmp dword [ebp - 8], ebx
jne 0x100e7e5
push dword [ebp - 0xc]
push dword [ebp + 0x10]
push dword [ebp + 8]
push 0x1002bd8
push 7
call fcn.01017562
add esp, 0x14
mov byte [ebp - 1], 1
push edi
call fcn.01011260
mov al, byte [ebp - 1]
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x100eab2
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x200
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
xor bl, bl
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xffffffff
je 0x100eb01
test al, 1
je 0x100eb20
and eax, 0xfffffffe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x100eb20
call esi
push eax
lea ecx, [ebp - 0x200]
call fcn.0100e252
push eax
push edi
push 0x1002db0
jmp 0x100eb16
call esi
push eax
lea ecx, [ebp - 0x200]
call fcn.0100e252
push eax
push edi
push 0x1002d60
push 9
call fcn.01017562
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x100eb4c
call esi
push eax
lea ecx, [ebp - 0x200]
call fcn.0100e252
push eax
push edi
push 0x1002d24
push 9
call fcn.01017562
add esp, 0x10
jmp 0x100eb5e
push edi
push 0x1002d00
push 0x17
call fcn.01017562
add esp, 0xc
mov bl, 1
pop edi
pop esi
mov al, bl
pop ebx
leave
ret 4

Function at 0x100eb6c
Capabilities:
Delete file
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x40c
push ebx
push esi
mov esi, dword [ebp + 8]
push esi
push 0x1002f28
push 0x17
call fcn.01017562
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExW]
add esp, 0xc
cmp byte [ebp + 0xc], 0
mov byte [ebp + 0xb], 0
mov dword [ebp - 4], esi
je 0x100ec4e
push edi
push 0x5c
push esi
call fcn.01018b5f
inc eax
inc eax
sub eax, esi
sar eax, 1
lea edi, [eax + eax]
push edi
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.01018b90
add esp, 0x14
lea ecx, [ebp + edi - 0x20c]
call fcn.01012051
pop edi
test al, al
jne 0x100ebfb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x40c]
call fcn.0100e252
push eax
push 0x1002ec8
push 9
call fcn.01017562
add esp, 0xc
jmp 0x100ec4e
push 0x1002eb8
mov edx, 0x104
lea ecx, [ebp - 0x20c]
call fcn.01019f00
push 0
lea eax, [ebp - 0x20c]
push eax
push esi
call ebx
test eax, eax
lea eax, [ebp - 0x20c]
push eax
push esi
jne 0x100ec36
push 0x1002e80
push 9
call fcn.01017562
jmp 0x100ec4b
push 0x1002e4c
push 7
call fcn.01017562
lea eax, [ebp - 0x20c]
mov dword [ebp - 4], eax
add esp, 0x10
push 4
push 0
push dword [ebp - 4]
call ebx
pop esi
pop ebx
test eax, eax
jne 0x100ec71
push dword [ebp - 4]
push 0x1002e08
push 9
call fcn.01017562
add esp, 0xc
jmp 0x100ec75
mov byte [ebp + 0xb], 1
mov al, byte [ebp + 0xb]
leave
ret 8
Function at 0x100ec81
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x200
and dword [eax], 0
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov edi, dword [ebp + 0xc]
push edi
call fcn.0100eab2
test al, al
jne 0x100ed47
call esi
cmp eax, 2
je 0x100ed47
call esi
cmp eax, 3
je 0x100ed47
call esi
push eax
lea ecx, [ebp - 0x200]
call fcn.0100e252
push eax
push edi
push 0x1002fc8
push 7
push 7
push 0x34
push 0
call fcn.01011f41
add esp, 0x1c
cmp eax, 6
sete bl
mov eax, 0x10027ec
test bl, bl
jne 0x100ecfb
mov eax, 0x10027e4
push eax
push 0x1002fa8
push 7
call fcn.01017562
add esp, 0xc
test bl, bl
jne 0x100ec9e
mov eax, dword [ebp + 8]
or dword [eax], 1
push 1
push edi
call fcn.0100eb6c
test al, al
jne 0x100ed40
call esi
push eax
lea ecx, [ebp - 0x200]
call fcn.0100e252
push eax
push edi
push 0x1002f60
call fcn.01011efc
add esp, 0xc
jmp 0x100ed47
mov byte [0x101c1e0], 1
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x100ed56
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x22c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
push 0x1003454
push 0x18
mov byte [ebp - 1], 0
call fcn.01017562
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
add esp, 0xc
push esi
call edi
push dword [0x101c1a4]
mov ebx, eax
call edi
mov dword [ebp + 8], eax
cmp ebx, 2
jb 0x100ef43
movzx eax, word [esi + ebx*2 - 2]
cmp ax, 0x5c
je 0x100ef43
cmp ax, 0x3a
je 0x100ef43
push 2
push 0x100344c
push esi
call fcn.01018efa
add esp, 0xc
test eax, eax
je 0x100edd2
cmp word [esi + 2], 0x3a
jne 0x100ef43
mov eax, dword [ebp + 8]
cmp ebx, eax
jbe 0x100ede2
cmp word [esi + eax*2], 0x5c
je 0x100ede4
cmp ebx, eax
jne 0x100edfc
mov edx, dword [0x101c1a4]
push eax
push 1
mov ecx, esi
call fcn.01019e70
test eax, eax
je 0x100ef43
mov edx, dword [0x101c1a4]
push 3
push 1
mov ecx, esi
call fcn.01019e70
test eax, eax
jne 0x100eea8
push 0xffffffffffffffff
lea ebx, [esi + 6]
push 1
mov edx, 0x1003430
mov ecx, ebx
call fcn.01019e70
test eax, eax
je 0x100ef43
push 0xffffffffffffffff
push 1
mov edx, 0x1003408
mov ecx, ebx
call fcn.01019e70
test eax, eax
je 0x100ef43
push 0xffffffffffffffff
push 1
mov edx, 0x10033d8
mov ecx, ebx
call fcn.01019e70
test eax, eax
je 0x100ef43
push 0xffffffffffffffff
push 1
mov edx, 0x10033c0
mov ecx, ebx
call fcn.01019e70
test eax, eax
je 0x100ef43
push 0xffffffffffffffff
push 1
mov edx, 0x10033b4
mov ecx, ebx
call fcn.01019e70
test eax, eax
je 0x100ef43
push 0xffffffffffffffff
push 1
mov edx, 0x10033a8
mov ecx, ebx
call fcn.01019e70
test eax, eax
je 0x100ef43
push esi
mov esi, 0x104
mov edx, esi
lea ecx, [ebp - 0x22c]
call fcn.01019ef0
push 0x100339c
mov edx, esi
lea ecx, [ebp - 0x22c]
call fcn.01019f00
lea eax, [ebp - 0x22c]
push eax
call edi
xor ecx, ecx
mov word [ebp + eax*2 - 0x22a], cx
push 0x1e
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_RtlZeroMemory]
mov eax, 0x10d0
mov dword [ebp - 0x20], 3
mov word [ebp - 0x14], ax
call fcn.0101833c
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x22c]
push eax
push 0x1003358
push 7
mov dword [ebp - 0x1c], eax
call fcn.01017562
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov esi, eax
push esi
push 0x100331c
push 7
call fcn.01017562
add esp, 0xc
test esi, esi
jne 0x100ef50
mov byte [ebp - 1], 1
jmp 0x100ef50
push esi
push 0x10032c8
call fcn.01011f22
pop ecx
pop ecx
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret 4