joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4832ac
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov esi, ecx
mov ebx, edx
xor eax, eax
push ebp
push 0x48332d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1e]
mov edx, 0x1e
call fcn.00407f2c
mov dword [ebp - 0x1a], 1
mov word [ebp - 0xe], 0x94
lea eax, [ebp - 0x24]
mov ecx, 0x483344
mov edx, ebx
call fcn.004052dc
mov eax, dword [ebp - 0x24]
call fcn.00405490
mov dword [ebp - 0x16], eax
mov eax, esi
call fcn.00405490
mov dword [ebp - 0x12], eax
lea eax, [ebp - 0x1e]
push eax
call sub.shell32.dll_SHFileOperationA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x483334
lea eax, [ebp - 0x24]
call fcn.00404fd0
ret

Function at 0x483348
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
xor ecx, ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00405480
xor eax, eax
push ebp
push 0x4833ce
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x22]
mov edx, 0x1e
call fcn.00407f2c
mov dword [ebp - 0x1e], 3
mov word [ebp - 0x12], 0x14
lea eax, [ebp - 0x28]
mov ecx, 0x4833e4
mov edx, dword [ebp - 4]
call fcn.004052dc
mov eax, dword [ebp - 0x28]
call fcn.00405490
mov dword [ebp - 0x1a], eax
lea eax, [ebp - 0x22]
push eax
call sub.shell32.dll_SHFileOperationA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4833d5
lea eax, [ebp - 0x28]
call fcn.00404fd0
lea eax, [ebp - 4]
call fcn.00404fd0
ret
Function at 0x484624
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 4
push 0
push 0
dec ecx
jne 0x48462d
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x484787
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x417db8]
call fcn.00404170
mov edi, eax
mov dl, 1
mov eax, dword [0x417ac8]
call fcn.00404170
mov esi, eax
mov eax, dword [ebx + 0x30]
mov dl, 1
call fcn.00464d34
push 0
mov edx, dword [ebx + 0x30]
mov ecx, eax
mov eax, edi
xchg edx, eax
call fcn.00464e64
lea ecx, [ebp - 8]
mov eax, dword [ebx + 0x30]
mov edx, 0x4847a0
call fcn.00464d5c
mov edx, edi
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x6c]
cmp dword [ebp - 8], 0
je 0x484764
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x484764
inc eax
mov dword [ebp - 0xc], eax
xor ebx, ebx
lea ecx, [ebp - 0x10]
mov edx, ebx
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x10]
call fcn.00409c28
test al, al
je 0x484728
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.0040e724
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x1c]
mov edx, ebx
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x18]
call fcn.0040a0f0
mov edx, dword [ebp - 0x18]
pop eax
call fcn.00405298
mov eax, dword [ebp - 0x14]
call fcn.00405490
push eax
lea ecx, [ebp - 0x20]
mov edx, ebx
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x20]
call fcn.00405490
push eax
call sub.kernel32.dll_MoveFileA
jmp 0x48475a
lea ecx, [ebp - 0x24]
mov edx, ebx
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x24]
call fcn.00409c38
test al, al
je 0x48475a
lea ecx, [ebp - 0x28]
mov edx, ebx
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004832ac
inc ebx
dec dword [ebp - 0xc]
jne 0x4846bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48478e
lea eax, [ebp - 0x28]
mov edx, 7
call fcn.00404ff4
lea eax, [ebp - 8]
call fcn.00404fd0
ret
Function at 0x4847a4
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 4
push 0
push 0
dec ecx
jne 0x4847ad
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x484909
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x417db8]
call fcn.00404170
mov edi, eax
mov dl, 1
mov eax, dword [0x417ac8]
call fcn.00404170
mov esi, eax
mov eax, dword [ebx + 0x30]
mov dl, 1
call fcn.00464d34
push 0
mov edx, dword [ebx + 0x30]
mov ecx, eax
mov eax, edi
xchg edx, eax
call fcn.00464e64
lea ecx, [ebp - 8]
mov eax, dword [ebx + 0x30]
mov edx, 0x484920
call fcn.00464d5c
mov edx, edi
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x6c]
cmp dword [ebp - 8], 0
je 0x4848e6
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x4848e6
inc eax
mov dword [ebp - 0xc], eax
xor ebx, ebx
lea ecx, [ebp - 0x10]
mov edx, ebx
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x10]
call fcn.00409c28
test al, al
je 0x4848aa
push 0
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.0040e724
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x1c]
mov edx, ebx
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x18]
call fcn.0040a0f0
mov edx, dword [ebp - 0x18]
pop eax
call fcn.00405298
mov eax, dword [ebp - 0x14]
call fcn.00405490
push eax
lea ecx, [ebp - 0x20]
mov edx, ebx
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x20]
call fcn.00405490
push eax
call sub.kernel32.dll_CopyFileA
jmp 0x4848dc
lea ecx, [ebp - 0x24]
mov edx, ebx
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x24]
call fcn.00409c38
test al, al
je 0x4848dc
lea ecx, [ebp - 0x28]
mov edx, ebx
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00483210
inc ebx
dec dword [ebp - 0xc]
jne 0x48483c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x484910
lea eax, [ebp - 0x28]
mov edx, 7
call fcn.00404ff4
lea eax, [ebp - 8]
call fcn.00404fd0
ret
Function at 0x4859b4
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ecx
mov edi, edx
mov eax, dword [ebp - 4]
call fcn.00405480
xor eax, eax
push ebp
push 0x485a4c
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [edi + 0x30]
call fcn.00464d34
mov esi, eax
test esi, esi
jle 0x485a05
push 0
push esi
push 0xffffffffffffffff
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
cmp eax, 1
sbb ebx, ebx
inc ebx
mov ecx, 0x485a64
mov edx, dword [ebp - 4]
mov eax, dword [edi + 0x30]
call fcn.004651d4
lea ecx, [ebp - 8]
xor edx, edx
mov eax, ebx
call fcn.00409a58
mov edx, dword [ebp - 8]
mov ecx, 0x485a64
mov eax, dword [edi + 0x30]
call fcn.004651d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x485a53
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404ff4
ret
Function at 0x1000a790
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x1000a876
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test esi, esi
jl 0x1000a865
jg 0x1000a7d0
test edx, edx
je 0x1000a865
nop dword [eax]
call fcn.10009b60
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x1000a824
jg 0x1000a7e7
test esi, esi
je 0x1000a824
cmp ebx, eax
jg 0x1000a7f7
jl 0x1000a7f1
cmp edi, esi
jae 0x1000a7f7
mov esi, edi
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
push esi
push eax
mov eax, dword [ecx + 0x20]
push dword [eax]
call fcn.1000f980
mov ecx, dword [esp + 0x18]
add esp, 0xc
sub edi, esi
sbb ebx, dword [esp + 0x14]
mov eax, dword [ecx + 0x30]
sub dword [eax], esi
mov eax, dword [ecx + 0x20]
add dword [eax], esi
jmp 0x1000a849
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov edx, dword [ecx]
movzx eax, byte [eax]
push eax
call dword [edx + 0xc]
cmp eax, 0xffffffff
je 0x1000a85f
mov ecx, dword [esp + 0xc]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [esp + 0x10], esi
test ebx, ebx
jg 0x1000a7d0
jl 0x1000a85f
test edi, edi
jne 0x1000a7d0
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
mov eax, edx
sbb esi, ebx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], eax
test eax, eax
je 0x1000a898
mov eax, dword [ecx + 0x30]
mov eax, dword [eax]
jmp 0x1000a89a
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [esp + 0x14], eax
test edi, edi
jl 0x1000a918
jg 0x1000a8ad
test esi, esi
je 0x1000a918
test eax, eax
jl 0x1000a8fc
jg 0x1000a8b7
test ebx, ebx
je 0x1000a8fc
cmp edi, eax
jg 0x1000a8c7
jl 0x1000a8c1
cmp esi, ebx
jae 0x1000a8c7
mov ebx, esi
mov dword [esp + 0x14], edi
push ebx
push dword [ebp + 8]
push dword [esp + 0x18]
call fcn.1000f980
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
sub esi, ebx
sbb edi, dword [esp + 0x14]
add edx, ebx
mov eax, dword [ecx + 0x30]
sub dword [eax], ebx
mov eax, dword [ecx + 0x20]
add dword [eax], ebx
test edi, edi
jl 0x1000a918
jg 0x1000a8ff
test esi, esi
je 0x1000a918
jmp 0x1000a8ff
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x1000a918
push eax
push esi
push 1
push edx
call fcn.10013762
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1000ae70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x10038020]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x1000aea0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000e288
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x1000aedc
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x1000aedc
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000e288
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x1000afc4
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x1000af04
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x1000af37
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.10012d20
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000e288
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
sub eax, 0
je 0x1000af97
sub eax, 1
je 0x1000af97
sub eax, 2
jne 0x1000afc4
push dword [esi + 0x4c]
movsx eax, byte [ebp - 0x25]
push eax
call fcn.10012d20
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000e288
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x1000afb4
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.10013762
add esp, 0x10
cmp edi, eax
jne 0x1000afc4
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x1000aec7
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000e288
mov esp, ebp
pop ebp
ret 4
Function at 0x1000b6a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10038020]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x1000b75a
cmp byte [esi + 0x3d], 0
je 0x1000b75a
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x1000b748
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x1000b710
sub eax, 1
je 0x1000b714
sub eax, 2
jne 0x1000b748
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000e288
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x1000b731
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.10013762
add esp, 0x10
cmp edi, eax
jne 0x1000b748
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000e288
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000e288
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.1000e288
mov esp, ebp
pop ebp
ret

Function at 0x1000ba50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10025550
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x10038020]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.1000e360
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.1000d4cb
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1001a550
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1001a3c6
Function at 0x402e41
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, esi
lea eax, [ebp - 4]
and esi, 0x300
push eax
mov eax, esi
and edi, 1
or al, 9
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004063a9
xor ebx, ebx
cmp eax, ebx
jne 0x402f24
test byte [ebp + 0x10], 2
je 0x402ea2
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x214]
mov dword [ebp - 8], ebx
push eax
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
jne 0x402f09
lea eax, [ebp - 0x214]
push 0x105
push eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
jmp 0x402ede
test edi, edi
jne 0x402f09
push dword [ebp + 0x10]
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 4]
call fcn.00402e41
test eax, eax
jne 0x402ee7
lea eax, [ebp - 0x214]
push 0x105
push eax
push edi
push dword [ebp - 4]
call ebx
test eax, eax
je 0x402eb7
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.00406931
test eax, eax
jne 0x402f19
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x402f24
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x3eb
jmp 0x402f24
push 0
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x403309
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
cmp eax, esi
jl 0x403334
mov ecx, dword [0x42a2d8]
push esi
add eax, ecx
push esi
push eax
mov dword [0x420ef4], eax
push dword [0x40a01c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
call fcn.00403411
cmp eax, esi
jl 0x40340b
lea eax, [ebp + 8]
push 4
push eax
push dword [0x40a01c]
call fcn.004060b5
test eax, eax
je 0x4033fb
push dword [ebp + 8]
add dword [0x420ef4], 4
call fcn.00403411
mov ebx, eax
cmp ebx, esi
jl 0x403409
cmp dword [ebp + 0x10], esi
jne 0x4033d7
cmp dword [ebp + 8], esi
jle 0x403409
mov esi, 0x414ef0
cmp dword [ebp + 8], 0x4000
mov eax, dword [ebp + 8]
jl 0x403399
mov eax, 0x4000
push eax
push esi
push dword [0x40a01c]
mov dword [ebp - 4], eax
call fcn.004060b5
test eax, eax
je 0x4033fb
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call fcn.004060e4
test eax, eax
je 0x4033d3
mov eax, dword [ebp - 4]
sub dword [ebp + 8], eax
add dword [0x420ef4], eax
add ebx, eax
cmp dword [ebp + 8], 0
jg 0x403388
jmp 0x403409
push 0xfffffffffffffffe
jmp 0x4033fd
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x4033e2
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push esi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40a01c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x403400
push 0xfffffffffffffffd
pop eax
jmp 0x40340b
mov ebx, dword [ebp - 4]
add dword [0x420ef4], ebx
mov eax, ebx
pop esi
pop ebx
leave
ret 0x10
Function at 0x405a73
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x4083f8
and byte [ebp - 0x1f], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push esi
push eax
mov byte [ebp - 0x20], 1
push dword [ebp + 8]
mov word [ebp - 0x1e], 4
mov dword [ebp - 0x10], 0x4083e8
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x405ac4
xor eax, eax
jmp 0x405aeb
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x405aeb
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
jne 0x405ac0
call esi
pop esi
leave
ret 4

Function at 0x405b25
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x426750], 0x44
push eax
xor eax, eax
push 0x426750
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x405b64
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405b68
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
and dword [eax + 0x24], 0
mov dword [eax], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
ret 4

Function at 0x405c06
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.0040600d
mov edi, eax
cmp edi, 0xffffffff
je 0x405c47
test byte [esp + 0x10], 1
push esi
je 0x405c29
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x405c2f
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x405c38
xor eax, eax
inc eax
jmp 0x405c49
test byte [esp + 0x10], 4
jne 0x405c47
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x405c4e
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.00405f19
test bl, 8
mov dword [ebp - 8], eax
je 0x405c8d
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x42a308], eax
jmp 0x405e0a
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405ca7
test eax, eax
je 0x405db8
test bl, 2
je 0x405db8
mov esi, 0x425750
push edi
push esi
call fcn.0040653c
cmp dword [ebp + 8], 0
je 0x405cc6
push str..
push esi
call sub.KERNEL32.dll_lstrcatW
jmp 0x405ccc
push edi
call fcn.00405e5d
cmp word [edi], 0
jne 0x405cdc
cmp word [0x425750], 0x5c
jne 0x405ce7
push 0x40a014
push edi
call sub.KERNEL32.dll_lstrcatW
push edi
call sub.KERNEL32.dll_lstrlenW
lea ebx, [edi + eax*2]
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405dad
cmp word [ebp - 0x22c], 0x2e
jne 0x405d31
cmp word [ebp - 0x22a], 0
je 0x405d90
cmp word [ebp - 0x22a], 0x2e
jne 0x405d31
cmp word [ebp - 0x228], 0
je 0x405d90
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.0040653c
test byte [ebp - 0x258], 0x10
je 0x405d5c
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405d90
push dword [ebp + 0xc]
push edi
call fcn.00405c4e
jmp 0x405d90
push dword [ebp - 4]
push edi
call fcn.00405c06
test eax, eax
jne 0x405d88
cmp dword [ebp - 4], eax
je 0x405d80
push edi
push 0xfffffffffffffff1
call fcn.004055a4
push 0
push edi
call fcn.00406302
jmp 0x405d90
inc dword [0x42a308]
jmp 0x405d90
push edi
push 0xfffffffffffffff2
call fcn.004055a4
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405d09
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405db8
and word [ebx - 2], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405e0a
cmp dword [ebp - 8], esi
jne 0x405dcc
inc dword [0x42a308]
jmp 0x405e0a
push edi
call fcn.0040689a
test eax, eax
je 0x405e0a
push edi
call fcn.00405e11
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405c06
test eax, eax
jne 0x405e02
cmp dword [ebp - 4], esi
je 0x405dc4
push edi
push 0xfffffffffffffff1
call fcn.004055a4
push esi
push edi
call fcn.00406302
jmp 0x405e0a
push edi
push 0xffffffffffffffe5
call fcn.004055a4
pop edi
pop esi
pop ebx
leave
ret 8