joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100111fe
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov eax, 0x1001dc78
call sub.msvcrt.dll__EH_prolog
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.1000e4f6
and dword [ebp - 4], 0
lea eax, [edi + 0xc]
push eax
lea ecx, [esi + 0xc]
call fcn.1000e4f6
lea eax, [edi + 0x18]
push eax
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 1
call fcn.1000e4f6
mov eax, dword [edi + 0x24]
mov dword [esi + 0x24], eax
mov eax, dword [edi + 0x28]
mov dword [esi + 0x28], eax
mov eax, dword [edi + 0x2c]
mov dword [esi + 0x2c], eax
mov eax, dword [edi + 0x30]
add edi, 0x34
push edi
lea ecx, [esi + 0x34]
mov byte [ebp - 4], 2
mov dword [esi + 0x30], eax
call fcn.1000e4f6
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x10012774
Capabilities:
Create thread

Disassembly:
mov eax, 0x1001df85
call sub.msvcrt.dll__EH_prolog
sub esp, 0x48
push ebx
xor ebx, ebx
push esi
mov dword [ebp - 0x10], ebx
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], 2
call fcn.10011936
test byte [0x1023bf28], 1
mov eax, dword [ebp + 0x24]
mov byte [ebp - 4], 3
je 0x100127aa
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x54], eax
lea eax, [ebp + 0x5c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.1000e57d
mov eax, dword [ebp + 0x68]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x6c]
mov dword [ebp - 0x1c], eax
lea eax, [ebp + 0x2c]
push eax
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call fcn.1000e57d
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x44]
call fcn.1000e57d
lea eax, [ebp + 0x18]
push eax
lea ecx, [ebp - 0x38]
call fcn.1000e57d
mov esi, 0x3e8
jmp 0x100127fd
push esi
call dword [0x1023bfa4]
cmp dword [0x1023bf28], 2
jae 0x100127f6
inc dword [0x1023bf28]
push ebx
push ebx
lea eax, [ebp - 0x54]
push eax
push 0x100117fc
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp + 8]
push 0x100231af
call fcn.1000e4bf
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x10], 1
mov byte [ebp - 4], 2
call fcn.10011982
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.10001097
lea ecx, [ebp + 0x5c]
mov byte [ebp - 4], bl
call fcn.1000e52a
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x10013380
Capabilities:
Get disk information

Disassembly:
mov eax, 0x1001e04d
call sub.msvcrt.dll__EH_prolog
sub esp, 0x45c
push ebx
push esi
push edi
lea eax, [ebp - 0x18]
xor esi, esi
push eax
inc esi
push 0x100233b4
lea ecx, [ebp + 0x70]
mov dword [ebp - 4], esi
call fcn.1000e6f6
push eax
call sub.msvcrt.dll_strtok_s
add esp, 0xc
xor ebx, ebx
push ebx
push 0x100233b8
lea ecx, [ebp + 0x64]
mov dword [ebp - 0x10], eax
xor edi, edi
mov dword [ebp - 0x14], ebx
call fcn.1000e6f6
push eax
call dword [0x1023c098]
test eax, eax
je 0x100133d8
mov edi, esi
push ebx
push 0x100233c8
lea ecx, [ebp + 0x64]
call fcn.1000e6f6
push eax
call dword [0x1023c098]
test eax, eax
je 0x100133f6
mov edi, esi
mov dword [ebp - 0x14], esi
mov eax, dword [ebp - 0x10]
jmp 0x10013575
cmp edi, ebx
je 0x10013508
lea eax, [ebp - 0x80]
push eax
push 0x64
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
lea esi, [ebp - 0x80]
cmp byte [ebp - 0x80], bl
je 0x10013560
push 0x3e8
lea eax, [ebp - 0x468]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp dword [ebp - 0x14], ebx
je 0x10013462
cmp eax, 2
jne 0x10013462
lea ecx, [ebp + 0x64]
call fcn.1000e6f6
push eax
lea eax, [ebp - 0x468]
push eax
call dword [0x1023c1a8]
push esi
push str._DRIVE_REMOVABLE_
jmp 0x1001347e
lea ecx, [ebp + 0x64]
call fcn.1000e6f6
push eax
lea eax, [ebp - 0x468]
push eax
call dword [0x1023c1a8]
push esi
push str._DRIVE_FIXED_
lea eax, [ebp - 0x468]
push eax
call fcn.1000f79c
add esp, 0xc
push eax
lea eax, [ebp - 0x468]
push eax
call dword [0x1023c1a8]
push ebx
push dword [ebp + 0x88]
lea eax, [ebp - 0x468]
push edi
push dword [ebp + 0x84]
lea ecx, [ebp + 0x58]
push dword [ebp + 0x80]
push ebx
push dword [ebp + 0x7c]
push dword [ebp - 0x10]
push eax
call fcn.1000e6f6
push eax
push 0x1002317a
lea ecx, [ebp + 0x8c]
call fcn.1000e6f6
push eax
sub esp, 0x50
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
call fcn.100010db
call fcn.10012fae
add esp, 0x80
push esi
call dword [0x1023c020]
lea esi, [esi + eax + 1]
cmp byte [esi], bl
jne 0x1001341e
jmp 0x10013560
push ebx
push dword [ebp + 0x88]
lea ecx, [ebp + 0x64]
push ebx
push dword [ebp + 0x84]
push dword [ebp + 0x80]
push ebx
push dword [ebp + 0x7c]
push eax
call fcn.1000e6f6
push eax
lea ecx, [ebp + 0x58]
call fcn.1000e6f6
push eax
push 0x1002317b
lea ecx, [ebp + 0x8c]
call fcn.1000e6f6
push eax
sub esp, 0x50
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
call fcn.100010db
call fcn.10012fae
add esp, 0x80
lea eax, [ebp - 0x18]
push eax
push 0x10023400
push ebx
call sub.msvcrt.dll_strtok_s
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp eax, ebx
jne 0x100133fe
push 4
lea eax, [ebp - 0x10]
push eax
call fcn.1000f396
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
call fcn.10001097
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x58]
call fcn.100111ae
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x10017df7
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1002a1b0]
jne 0x10017e01
repz ret
jmp fcn.1001aaef
Function at 0x1001b2c6
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1002a1b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.1001771a
and dword [ebp - 0x14], 0
cmp dword [0x1023cd7c], 0
mov dword [ebp - 0x18], eax
jne 0x1001b379
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x1001b421
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x1001b421
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x1023cd7c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x1023cd80], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x1023cd84], eax
call edi
push eax
call esi
mov dword [0x1023cd8c], eax
test eax, eax
je 0x1001b379
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x1023cd88], eax
mov eax, dword [0x1023cd88]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x1001b3d2
cmp dword [0x1023cd8c], ecx
je 0x1001b3d2
push eax
call esi
push dword [0x1023cd8c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x1001b3d2
test ebx, ebx
je 0x1001b3d2
call edi
test eax, eax
je 0x1001b3c9
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x1001b3c9
test byte [ebp - 8], 1
jne 0x1001b3d2
or dword [ebp + 0x10], 0x200000
jmp 0x1001b405
mov eax, dword [0x1023cd80]
cmp eax, dword [ebp - 0x18]
je 0x1001b405
push eax
call esi
test eax, eax
je 0x1001b405
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1001b405
mov eax, dword [0x1023cd84]
cmp eax, dword [ebp - 0x18]
je 0x1001b405
push eax
call esi
test eax, eax
je 0x1001b405
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x1023cd7c]
call esi
test eax, eax
je 0x1001b421
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x1001b423
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10017df7
leave
ret
Function at 0x428480
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, dword [0x409214]
mov dword [eax], ecx
mov ebx, edx
test ebx, ebx
jle 0x4284a1
mov eax, 0xff
call fcn.00423a80
xor byte [esi], al
inc esi
dec ebx
jne 0x428491
pop esi
pop ebx
ret

Function at 0x45d590
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx ecx, word [eax]
cmp ecx, 0x5a4d
je 0x45d5b6
xor eax, eax
jmp 0x45d63d
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
add eax, dword [edx + 0x3c]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp dword [ecx], 0x4550
je 0x45d5d1
xor eax, eax
jmp 0x45d63d
mov edx, dword [ebp - 8]
add edx, 0x18
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
movzx ecx, word [eax]
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 0x10b
je 0x45d5f7
cmp dword [ebp - 0x14], 0x20b
je 0x45d617
jmp 0x45d63b
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0x5c], 0xe
ja 0x45d604
xor eax, eax
jmp 0x45d63d
mov eax, dword [ebp - 0xc]
xor ecx, ecx
cmp dword [eax + 0xd0], 0
setne cl
mov eax, ecx
jmp 0x45d63d
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x6c], 0xe
ja 0x45d62a
xor eax, eax
jmp 0x45d63d
mov ecx, dword [ebp - 0x10]
xor eax, eax
cmp dword [ecx + 0xe0], 0
setne al
jmp 0x45d63d
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x404e00
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebx, dword [edx - 0x7d]
in al, dx
or al, 0xf5
mov ecx, dword [0x8d57c1ef]
jae 0x404e47
push esi
call fcn.004056f0
mov eax, dword [ebx + 4]
add esp, 0x54
test eax, eax
invalid
in eax, 8
add byte [eax], al
mov ebp, dword [edx - 0x7af73b7d]
sal byte [ebp + esi - 0x75], 0x38
loopne 0x404eaa
sub dh, byte [ebx - 0x7400d106]
pushfd
test esi, esi
je 0x404ebd
push esi
call fcn.0040a2d0
mov eax, dword [ebx + 0xc]
mov edx, ebp
mov ecx, dword [ecx + 0xc435408]
cmp dword [eax], 0
and al, 0x18
mov edx, dword [ebx + 8]
mov dword [esi], esi
or al, 0x85
imul byte [ebp + 0x56]
push esi
call fcn.0040a340
mov esi, dword [ebx + 0x30]
mov ebp, dword [edx + 0x18]
push edi
mov eax, dword [esi - 0xe]
mov dword [eax], 0x2000000
cmp dl, byte [edx + 0x2bfffffa]
ret
invalid
mov eax, dword [edi + 0xc]
xor ebx, ebx
test eax, eax
je 0x404ea8
adc eax, ebp
pop ss
mov edx, 0x576d00f8
add al, 0x8b
jns 0x57cc4718
or byte [ecx + 0x68bfc4d], cl
mov eax, dword [esi]
mov edi, dword [ebx - 0xbb07608]
mov eax, dword [esi + 8]
test ecx, ecx
lea ebp, [edi + 0x671c23b]
mov dword [edi - 0x75], edi
fsubp st(3)
das
cmp eax, 0x14
jae 0x404efd
mov ecx, dword [ebp + ebp*4 - 0x68]
test ebx, edx
mov dword [ebx - 0x5fc4f78b], esi
cld
jmp 0x404e7e
push edi
dec edi
adc al, 0x89
push cs
mov eax, ecx
adc al, 0x3b
sal byte [edx + 4], 1
sub edx, eax
add dh, byte fs:[ebx]
ror byte [ebx - 0x97a0b8b], cl
jne 0x404ec7
jg 0x404f5d
cld
mov dword [edi + 8], edx
mov dword [edi], eax
mov word [edi + 0xc], es
test eax, eax
je 0x404f2b
push eax
push ebp
adc eax, 0x4400ed54
inc esp
invalid
mov bh, 0x90
nop

Function at 0x406010
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x405ef7
movzx ecx, word [edx + 0x26]
nop
mov esi, dword [edx + 0x28]
jmp 0x405f0c
xor edi, edi
nop
jmp 0x405f1b
xor eax, eax
lodsb al, byte [esi]
nop
jmp 0x405f2a
cmp al, 0x61
jmp 0x405f37
jl 0x405f5a
nop
jmp 0x405f46
nop
jmp 0x405f57
sub al, 0x20
nop
nop
jmp 0x405f67
ror edi, 0xd
nop
add edi, eax
nop
jmp 0x405f79
dec ecx
jne 0x405f1b
nop
jmp 0x405f8f
nop
push edx
mov edx, dword [edx + 0x10]
jmp 0x405fa4
mov eax, dword [edx + 0x3c]
nop
jmp 0x405fb5
push edi
nop
add eax, edx
mov eax, dword [eax + 0x78]
nop
jmp 0x405fcd
test eax, eax
nop
jmp 0x405fda
je 0x40616b
nop
jmp 0x405feb
nop
jmp 0x405ffc
add eax, edx
push eax
mov ecx, dword [eax + 0x18]
nop
jmp 0x40600d
mov ebx, dword [eax + 0x20]
nop
jmp 0x40601e
add ebx, edx
nop
jmp 0x40602d
test ecx, ecx
jmp 0x40603f
je 0x406168
nop
jmp 0x406055
dec ecx
jmp 0x406067
xor edi, edi
jmp 0x406078
mov esi, dword [ebx + ecx*4]
jmp 0x406088
add esi, edx
jmp 0x406094
nop
xor eax, eax
ror edi, 0xd
nop
lodsb al, byte [esi]
add edi, eax
nop
pop eax
nop
nop
jmp 0x40617a
pop edi
nop
jmp 0x406190
pop edx
mov edx, dword [edx]
nop
jmp 0x405eeb

Function at 0x40a2d0
Capabilities:
Encode data using xor

Disassembly:
mov dh, byte [edx + 0x7a368bec]
mov ecx, dword [eax + 0x5e]
test ecx, ecx
jne 0x40a2ed
or dword [edx + 0xc], 0x50
invalid
invalid
cmp al, al
inc eax
Function at 0x402b0e
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x4467d0]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402ba2
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x402b5f
cmp dword [ebp + 0x10], ebx
jne 0x402b96
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402b0e
test eax, eax
jne 0x402b71
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402b46
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.00406290
cmp eax, ebx
je 0x402ba9
push ebx
push dword [0x4467d0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402ba2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x4467d0], ebx
jne 0x402b9f
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402b9f
jmp 0x402ba2
Function at 0x402ff0
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 0x40301b
mov ecx, dword [0x446778]
push esi
add eax, ecx
push esi
push eax
mov dword [0x41f4dc], eax
push dword [0x40901c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
call fcn.004030f8
cmp eax, esi
jl 0x4030f2
lea eax, [ebp + 8]
push 4
push eax
push dword [0x40901c]
call fcn.00405be2
test eax, eax
je 0x4030e2
push dword [ebp + 8]
add dword [0x41f4dc], 4
call fcn.004030f8
mov ebx, eax
cmp ebx, esi
jl 0x4030f0
cmp dword [ebp + 0x10], esi
jne 0x4030be
cmp dword [ebp + 8], esi
jle 0x4030f0
mov esi, 0x41b4d8
cmp dword [ebp + 8], 0x4000
mov eax, dword [ebp + 8]
jl 0x403080
mov eax, 0x4000
push eax
push esi
push dword [0x40901c]
mov dword [ebp - 4], eax
call fcn.00405be2
test eax, eax
je 0x4030e2
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call fcn.00405c11
test eax, eax
je 0x4030ba
mov eax, dword [ebp - 4]
sub dword [ebp + 8], eax
add dword [0x41f4dc], eax
add ebx, eax
cmp dword [ebp + 8], 0
jg 0x40306f
jmp 0x4030f0
push 0xfffffffffffffffe
jmp 0x4030e4
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x4030c9
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push esi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40901c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4030e7
push 0xfffffffffffffffd
pop eax
jmp 0x4030f2
mov ebx, dword [ebp - 4]
add dword [0x41f4dc], ebx
mov eax, ebx
pop esi
pop ebx
leave
ret 0x10
Function at 0x4055d6
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x407374
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], 0x407364
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x405627
xor eax, eax
jmp 0x40564e
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x40564e
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityA]
test eax, eax
jne 0x405623
call esi
pop esi
leave
ret 4

Function at 0x405688
Capabilities:
Create process on windows

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

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

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405b45
mov edi, eax
cmp edi, 0xffffffff
je 0x405792
test byte [esp + 0x10], 1
push esi
je 0x405774
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x40577a
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x405783
xor eax, eax
inc eax
jmp 0x405794
test byte [esp + 0x10], 4
jne 0x405792
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x405799
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
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.00405a57
test bl, 8
mov dword [ebp - 0xc], eax
je 0x4057d8
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x4467a8], eax
jmp 0x405962
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x4057f2
test eax, eax
je 0x405910
test bl, 2
je 0x405910
mov esi, 0x439538
push edi
push esi
call fcn.00405ef7
cmp dword [ebp + 8], 0
je 0x405811
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x405817
push edi
call fcn.004059b0
cmp byte [edi], 0
jne 0x405825
cmp byte [0x439538], 0x5c
jne 0x405830
push 0x409014
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x14c]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x405906
lea eax, [ebp - 0x120]
push 0x3f
push eax
lea esi, [ebp - 0x120]
call fcn.00405994
cmp byte [eax], 0
je 0x405876
cmp byte [ebp - 0x1c], 0
je 0x405876
lea esi, [ebp - 0x1c]
cmp byte [esi], 0x2e
jne 0x40588c
mov al, byte [esi + 1]
test al, al
je 0x4058e5
cmp al, 0x2e
jne 0x40588c
cmp byte [esi + 2], 0
je 0x4058e5
push esi
push ebx
call fcn.00405ef7
test byte [ebp - 0x14c], 0x10
je 0x4058b1
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4058e5
push dword [ebp + 0xc]
push edi
call fcn.00405799
jmp 0x4058e5
push dword [ebp - 4]
push edi
call fcn.00405751
test eax, eax
jne 0x4058dd
cmp dword [ebp - 4], eax
je 0x4058d5
push edi
push 0xfffffffffffffff1
call fcn.00405110
push 0
push edi
call fcn.00405db2
jmp 0x4058e5
inc dword [0x4467a8]
jmp 0x4058e5
push edi
push 0xfffffffffffffff2
call fcn.00405110
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405854
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405910
and byte [ebx - 1], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405962
cmp dword [ebp - 0xc], esi
jne 0x405924
inc dword [0x4467a8]
jmp 0x405962
push edi
call fcn.004061fb
test eax, eax
je 0x405962
push edi
call fcn.00405969
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405751
test eax, eax
jne 0x40595a
cmp dword [ebp - 4], esi
je 0x40591c
push edi
push 0xfffffffffffffff1
call fcn.00405110
push esi
push edi
call fcn.00405db2
jmp 0x405962
push edi
push 0xffffffffffffffe5
call fcn.00405110
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x405a57
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x43b538
push esi
call fcn.00405ef7
push esi
call fcn.00405a02
mov edi, eax
test edi, edi
jne 0x405a78
xor eax, eax
jmp 0x405aca
push edi
call fcn.00406162
test byte [0x446738], 0x80
je 0x405a91
mov al, byte [edi]
test al, al
je 0x405a74
cmp al, 0x5c
je 0x405a74
sub edi, esi
jmp 0x405aa9
call fcn.004061fb
test eax, eax
je 0x405aa3
test byte [eax], 0x10
je 0x405a74
push esi
call fcn.004059b0
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405a95
call fcn.00405969
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405b45
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
cmp esi, 0xffffffff
je 0x405b64
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, esi
pop esi
ret 4

Function at 0x405b6a
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x405b99
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x4093c4]
dec edi
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405bde
test edi, edi
jne 0x405ba4
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405bd8
Function at 0x405c40
Capabilities:
Get file size

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, 0x43dac0
push 0x4093e0
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [esp + 0x18]
mov ebp, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test esi, esi
mov ebx, 0x400
je 0x405c8e
push 1
push 0
push esi
call fcn.00405b6a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push edi
push esi
call ebp
test eax, eax
je 0x405dad
cmp eax, ebx
jg 0x405dad
mov esi, 0x43dec0
push ebx
push esi
push dword [esp + 0x1c]
call ebp
test eax, eax
je 0x405dad
cmp eax, ebx
jg 0x405dad
push esi
push edi
push str._s_s_r_n
push 0x43d6c0
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x446730]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405f19
push 4
push 0xc0000000
push esi
call fcn.00405b6a
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x405dad
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405da6
push edi
push esi
push ebp
call fcn.00405be2
test eax, eax
je 0x405da6
push str._Rename__r_n
push esi
call fcn.00405acf
test eax, eax
jne 0x405d44
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x405d79
add eax, 0xa
push 0x4093c8
push eax
call fcn.00405acf
mov ebp, eax
test ebp, ebp
je 0x405d75
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x405d66
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x405d60
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x405d7b
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x43d6c0
push eax
call fcn.00405b25
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.00405c11
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x405db2
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x405dd5
push dword [esp + 8]
push dword [esp + 8]
call fcn.00405c40
pop ecx
pop ecx
inc dword [0x4467b0]
ret 8