joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41c080
Capabilities:
Get file attributes

Disassembly:
mov eax, 0x473300
call fcn.00465b54
sub esp, 0x270
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor esi, esi
mov ecx, ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], esi
call fcn.0041aa18
test al, al
je 0x41c1a3
lea ecx, [ebp - 0x50]
call fcn.0041b348
push esi
push esi
push 3
push 0x80
push 1
push SysReAllocString
push ebx
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], esi
call fcn.0041b441
cmp eax, esi
je 0x41c0f4
push 1
push ebx
lea ecx, [ebp - 0x13c]
call fcn.0041b5e8
lea eax, [ebp - 0x13c]
push 0x482608
push eax
call fcn.00465b73
push 5
lea eax, [ebp - 0x5c]
pop esi
lea ecx, [ebp - 0x50]
push esi
push eax
mov byte [ebp - 4], 1
call fcn.0041c279
test eax, eax
mov dword [ebp - 0x50], 0x47bd60
je 0x41c133
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], 2
call fcn.0041b6aa
mov bl, 1
lea ecx, [ebp - 0x44]
call fcn.00407f77
mov al, bl
jmp 0x41c26a
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x50]
call fcn.0041b6aa
xor bl, bl
jmp 0x41c124
mov ecx, ebx
call fcn.0040650f
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
or edi, 0xffffffff
cmp eax, edi
jne 0x41c24f
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 5
jne 0x41c221
mov dword [ebp + 8], edi
lea eax, [ebp - 0x27c]
mov ecx, ebx
push eax
mov dword [ebp - 4], 6
call fcn.0040650f
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, edi
je 0x41c21c
test byte [ebp + 0xc], 4
je 0x41c1fb
test byte [ebp - 0x27c], 0x10
je 0x41c20a
test byte [ebp + 0xc], 8
je 0x41c20e
test byte [ebp - 0x27c], 0x10
je 0x41c20e
mov bl, 1
jmp 0x41c210
xor bl, bl
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x41c12c
call esi
mov dword [ebp - 4], edi
cmp eax, 2
je 0x41c24b
cmp eax, 3
je 0x41c24b
push 1
push eax
push ebx
lea ecx, [ebp - 0xa4]
call fcn.0041acd5
lea eax, [ebp - 0xa4]
push 0x47fc68
push eax
call fcn.00465b73
xor al, al
jmp 0x41c26a
test byte [ebp + 0xc], 4
je 0x41c259
test al, 0x10
je 0x41c263
test byte [ebp + 0xc], 8
je 0x41c268
test al, 0x10
je 0x41c268
push 1
pop eax
jmp 0x41c26a
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x41c279
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
push esi
cmp eax, 0xffffffff
mov esi, ecx
jne 0x41c28d
push 1
pop eax
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x41c2c1
lea edx, [ebp + 8]
push edx
push eax
push dword [ebp + 8]
call fcn.00462509
test al, al
jne 0x41c2f4
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x4c]
call fcn.0041b5e8
lea eax, [ebp - 0x4c]
push 0x482608
push eax
call fcn.00465b73
lea ecx, [ebp + 8]
push 0
push ecx
push eax
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41c2f4
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.00408b81
lea eax, [ebp - 0x48]
push 0x47fc68
push eax
call fcn.00465b73
mov eax, dword [ebp + 8]
pop esi
leave
ret 8
Function at 0x41caed
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 3
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x41cb1d
xor eax, eax
jmp 0x41cb7e
push esi
push edi
push 0x7f
xor eax, eax
pop ecx
lea edi, [ebp - 0x207]
mov byte [ebp - 0x208], bl
mov dword [ebp - 4], ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov esi, 0x200
lea eax, [ebp + 8]
push ebx
push eax
lea eax, [ebp - 0x208]
push esi
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor eax, eax
cmp dword [ebp + 8], ebx
jbe 0x41cb6b
movzx ecx, byte [ebp + eax - 0x208]
add dword [ebp - 4], ecx
inc eax
cmp eax, dword [ebp + 8]
jb 0x41cb5a
cmp dword [ebp + 8], esi
je 0x41cb3d
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x41d6b4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov ecx, dword [ebp + 0xc]
call fcn.0040650f
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x41d6ef
test al, 1
je 0x41d6ef
push 1
push 5
push dword [ebp + 0xc]
lea ecx, [ebp - 0x48]
call fcn.0041d49b
lea eax, [ebp - 0x48]
push 0x483138
push eax
call fcn.00465b73
xor al, al
leave
ret
Function at 0x41e67c
Capabilities:
Create process on windows
Create process suspended

Disassembly:
mov eax, 0x473754
call fcn.00465b54
sub esp, 0xb0
push ebx
push esi
push edi
push 0x10
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0xb8]
mov dword [ebp - 4], ebx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x78]
push eax
mov byte [ebp - 4], 1
mov dword [ebp - 0xbc], 0x44
call fcn.0041f828
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 2
push ecx
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.0041fc66
add esp, 0xc
lea ecx, [ebp - 0x28]
push 0x104
push ecx
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.00406e9d
mov esi, eax
mov ecx, dword [esi]
mov byte [ebp - 4], 4
call fcn.0040650f
lea ecx, [ebp - 0x1c]
mov dword [esi + 8], eax
push ecx
lea ecx, [ebp - 0xbc]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ebx, eax
lea ecx, [ebp - 0x28]
neg ebx
sbb bl, bl
mov byte [ebp - 4], 3
inc bl
call fcn.00405c43
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 2
call fcn.00407f77
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 1
call fcn.00407f77
pop edi
pop esi
test bl, bl
pop ebx
je 0x41e75c
lea ecx, [ebp - 0x44]
call fcn.00408bed
lea eax, [ebp - 0x44]
push 0x483600
push eax
call fcn.00465b73
push 0x3a98
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x41e78c
push 0x5b4
lea ecx, [ebp - 0x44]
call fcn.00413b0c
lea eax, [ebp - 0x44]
push 0x483600
push eax
call fcn.00465b73
and byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.0041e7b2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00407f77
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 0x2c
Function at 0x420769
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x473a6b
call fcn.00465b54
sub esp, 0x138
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
pop ecx
and byte [ebp - 0x144], bl
xor eax, eax
lea edi, [ebp - 0x143]
mov dword [ebp - 0x14], ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x10], ebx
push 1
lea eax, [ebp - 0x10]
pop esi
push eax
push 0x492800
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x42084b
cmp dword [ebp + 0xc], esi
mov dword [ebp - 0x18], 0x104
mov eax, 0x4927f0
je 0x4207d2
mov eax, 0x4927e0
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x144]
push ecx
push ebx
push ebx
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp + 0xf]
push ebx
push eax
lea eax, [ebp - 0x144]
mov edi, 0x47b4b8
mov esi, 0x47b4b0
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x20], esi
call fcn.004059b3
push 0x491d34
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.004073da
lea ecx, [ebp - 0x40]
call fcn.00420336
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x40]
push 0
push eax
mov ecx, ebx
mov dword [ebx], edi
mov dword [ebx + 0x20], esi
call fcn.00405884
mov dword [ebp - 0x14], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
jmp 0x4208a0
lea eax, [ebp + 0xf]
push ebx
push eax
lea eax, [ebp - 0x144]
mov edi, 0x47b4b8
mov esi, 0x47b4b0
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x20], esi
call fcn.004059b3
push 0x491d34
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call fcn.004073da
mov ebx, dword [ebp + 8]
push 0
push eax
mov ecx, ebx
mov dword [ebx], edi
mov dword [ebx + 0x20], esi
call fcn.00405884
mov dword [ebp - 0x14], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00407f77
cmp dword [ebp - 0x10], 0
je 0x4208b4
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x423f39
Capabilities:
Delete file
Get common file path

Disassembly:
mov eax, 0x4741d3
call fcn.00465b54
sub esp, 0x224
push ebx
push esi
lea eax, [ebp - 0x230]
push edi
xor ebx, ebx
push eax
push 0x104
mov dword [ebp - 0x3c], ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x423f7d
lea ecx, [ebp - 0x2c]
call fcn.00408bed
lea eax, [ebp - 0x2c]
push 0x483600
push eax
call fcn.00465b73
push 0x24
xor eax, eax
pop ecx
lea edi, [ebp - 0x128]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x12c], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
mov edi, 0x47b4b8
mov esi, 0x47b4b0
je 0x4240a6
cmp dword [ebp - 0x11c], 1
jne 0x4240a6
lea eax, [ebp - 0xd]
push ebx
push eax
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x18], esi
call fcn.004059b3
push 0x4929bc
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], ebx
call fcn.004073da
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
lea ecx, [ebp - 0x38]
call fcn.0040650f
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x424084
lea eax, [ebp - 0x64]
push ebx
push eax
call fcn.0041f776
pop ecx
pop ecx
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 1
push ecx
mov ecx, eax
call fcn.004072b6
push dword [0x47b518]
mov ecx, eax
add eax, 4
mov byte [ebp - 4], 2
neg ecx
sbb ecx, ecx
push ebx
and ecx, eax
push ecx
lea ecx, [ebp - 0x34]
call fcn.00406639
lea ecx, [ebp - 0x98]
call fcn.00407f77
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], bl
call fcn.00407f77
push 0x4929b0
lea ecx, [ebp - 0x38]
call fcn.004073da
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x38]
push ebx
push eax
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.00405884
lea ecx, [ebp - 0x38]
jmp 0x4240e6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x38]
call fcn.0040650f
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.00407f77
lea eax, [ebp - 0xe]
push ebx
push eax
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x44], esi
call fcn.004059b3
push 0x491d34
lea ecx, [ebp - 0x64]
mov dword [ebp - 4], 3
call fcn.004073da
mov ecx, dword [ebp + 8]
push ebx
push eax
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.00405884
lea ecx, [ebp - 0x64]
call fcn.00407f77
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4240fd
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x47421c
call fcn.00465b54
sub esp, 0x104
push ebx
push esi
push edi
mov dword [ebp - 0x18], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea edi, [ebp - 0x48]
xor ebx, ebx
neg edi
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x44]
sbb edi, edi
mov dword [ebp - 0x14], ebx
and edi, eax
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x110]
push eax
call fcn.004242a2
push 4
lea ecx, [ebp - 0xc0]
pop esi
mov dword [ebp - 4], ebx
push esi
push ebx
push ecx
mov ecx, eax
call fcn.00405b5f
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x98]
push eax
mov byte [ebp - 4], 1
call fcn.00408dcc
push dword [ebp - 0x20]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0xe8]
push eax
call fcn.0041fc66
add esp, 0xc
push dword [0x47b518]
mov ecx, eax
add eax, esi
mov byte [ebp - 4], 3
neg ecx
sbb ecx, ecx
push ebx
and ecx, eax
mov eax, dword [ebp - 0x18]
push ecx
lea ecx, [eax + 4]
call fcn.00406639
lea ecx, [ebp - 0xe8]
call fcn.00407f77
lea ecx, [ebp - 0x98]
call fcn.00407f77
lea ecx, [ebp - 0xc0]
call fcn.00407f77
lea ecx, [ebp - 0x110]
call fcn.00407f77
lea eax, [ebp - 0x19]
push ebx
push eax
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x48], 0x47b4b8
mov dword [ebp - 0x28], 0x47b4b0
call fcn.0040580f
lea eax, [ebp - 0x54]
push 0x104
push eax
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], esi
call fcn.00406e9d
mov esi, eax
mov ecx, dword [esi]
mov byte [ebp - 4], 5
call fcn.0040650f
movzx ecx, word [ebp - 0x10]
push ecx
push 0x4929cc
push eax
mov dword [esi + 8], eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 4
call fcn.00405c43
push dword [0x47b518]
push ebx
mov eax, dword [ebp - 0x18]
push edi
lea ecx, [eax + 4]
call fcn.004076b5
mov ecx, dword [ebp - 0x18]
call fcn.0040650f
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x424289
inc dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.00407f77
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0xffff
jl 0x42412d
push 0x50
lea ecx, [ebp - 0x70]
call fcn.00413b0c
lea eax, [ebp - 0x70]
push 0x483600
push eax
call fcn.00465b73
lea ecx, [ebp - 0x48]
call fcn.00407f77
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x424a01
Capabilities:
Create thread

Disassembly:
mov eax, 0x4742b0
call fcn.00465b54
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x14], edi
lea ebx, [esi + 0x14]
jne 0x424a9e
push 0x4929e4
push edi
push edi
push edi
mov dword [ebp - 0x18], edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x1c], eax
lea eax, [esi + 0x10]
mov dword [ebp - 4], edi
push eax
lea eax, [ebp - 0x18]
push edi
push eax
push 0x424788
push edi
push edi
call fcn.00466f0c
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0xc]
add esp, 0x18
cmp eax, dword [ebp - 0x14]
je 0x424a64
cmp eax, edi
je 0x424a5e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xc], edi
mov eax, dword [ebp - 0x14]
mov dword [esi + 0xc], eax
push 0x7530
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
push 0x47c020
push dword [ebp - 0x18]
call dword [sym.imp.ole32.dll_CoGetInterfaceAndReleaseStream]
mov eax, dword [ebx]
push dword [esi + 0x1c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x10], edi
je 0x424a9e
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebx]
push dword [ebp + 8]
mov eax, dword [ebx]
push 0x47c020
push ebx
call dword [eax]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x4282e8
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov eax, 0x474838
call fcn.00465b54
sub esp, 0x114
push ebx
push esi
xor esi, esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], esi
push 0x2001f
lea ecx, [ebp - 0x10]
push dword [ebp + 8]
mov dword [ebp - 4], esi
push dword [ebx]
call fcn.004282aa
mov edi, eax
cmp edi, esi
je 0x428332
cmp dword [ebp - 0x10], esi
je 0x42832b
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x4283cf
lea eax, [ebp - 0x20]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
push esi
push esi
lea eax, [ebp - 0x14]
push esi
push eax
lea eax, [ebp - 0x120]
mov dword [ebp - 0x14], 0x100
push eax
push esi
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x4283a3
lea eax, [ebp - 0x120]
lea ecx, [ebp - 0x10]
push eax
call fcn.004282e8
cmp eax, esi
mov dword [ebp - 0x18], eax
jne 0x428390
lea eax, [ebp - 0x20]
mov dword [ebp - 0x14], 0x100
push eax
push esi
push esi
lea eax, [ebp - 0x14]
push esi
push eax
lea eax, [ebp - 0x120]
push eax
push esi
push dword [ebp - 0x10]
jmp 0x428355
cmp dword [ebp - 0x10], esi
je 0x42839e
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x18]
jmp 0x4283cf
cmp dword [ebp - 0x10], esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x4283b6
push dword [ebp - 0x10]
call edi
mov dword [ebp - 0x10], esi
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
cmp dword [ebp - 0x10], esi
mov ebx, eax
je 0x4283cd
push dword [ebp - 0x10]
call edi
mov eax, ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x42fb8e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
push esi
cmp eax, 0xffffffff
mov esi, ecx
jne 0x42fba1
xor eax, eax
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x42fbd5
lea edx, [ebp + 8]
push edx
push eax
push dword [ebp + 8]
call fcn.00462509
test al, al
jne 0x42fc08
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x4c]
call fcn.0041b5e8
lea eax, [ebp - 0x4c]
push 0x482608
push eax
call fcn.00465b73
lea ecx, [ebp + 8]
push 0
push ecx
push eax
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42fc08
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.00408b81
lea eax, [ebp - 0x48]
push 0x47fc68
push eax
call fcn.00465b73
mov eax, dword [ebp + 8]
pop esi
leave
ret 8
Function at 0x42fc44
Capabilities:
Delete file

Disassembly:
mov eax, 0x475535
call fcn.00465b54
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
mov dword [esi - 4], 0x47bd48
mov dword [esi], 0x47bd44
mov dword [ebp - 4], 5
call fcn.0041b6aa
cmp dword [esi + 0xcc], 0
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
je 0x42fc8c
lea ecx, [esi + 0xc0]
call fcn.0040650f
push eax
call edi
cmp dword [esi + 0xf4], 0
je 0x42fca3
lea ecx, [esi + 0xe8]
call fcn.0040650f
push eax
call edi
mov eax, dword [esi + 0x118]
mov byte [ebp - 4], 4
test eax, eax
je 0x42fcb7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 0x114]
mov byte [ebp - 4], 3
test eax, eax
je 0x42fccb
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esi + 0xe8]
mov byte [ebp - 4], 2
call fcn.00407f77
lea ecx, [esi + 0xc0]
mov byte [ebp - 4], 1
call fcn.00407f77
and byte [ebp - 4], 0
lea ecx, [esi + 0x98]
call fcn.00407f77
lea edi, [esi - 4]
neg edi
sbb edi, edi
and edi, esi
mov dword [ebp - 0x10], edi
mov dword [edi], 0x47bd60
mov ecx, edi
mov dword [ebp - 4], 6
call fcn.0041b6aa
or dword [ebp - 4], 0xffffffff
lea ecx, [edi + 0xc]
call fcn.00407f77
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x43017b
Capabilities:
Delete file
Move file

Disassembly:
mov eax, 0x4755fc
call fcn.00465b54
sub esp, 0x10
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], esp
lea eax, [ebp + 0x30]
mov dword [ebp - 4], 1
push eax
lea eax, [ebp + 8]
push eax
call fcn.0041d11d
pop ecx
test al, al
pop ecx
je 0x4301b3
and byte [ebp - 4], 0
jmp 0x430295
lea eax, [ebp - 0x1c]
lea ecx, [ebp + 0x30]
push eax
mov byte [ebp - 4], 2
call fcn.00406e82
push dword [eax + 8]
mov ecx, ebx
mov byte [ebp - 4], 3
call fcn.004302e6
cmp byte [ebp - 0x18], 0
mov byte [ebp - 4], 2
je 0x4301e6
mov ecx, dword [ebp - 0x1c]
push dword [ecx + 0x1c]
call fcn.00405b36
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp + 0x30]
call fcn.0040650f
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x43023f
call edi
mov esi, eax
cmp esi, 3
je 0x43023f
cmp esi, 2
je 0x43023f
lea eax, [ebp - 0x1c]
lea ecx, [ebp + 0x30]
push eax
call fcn.00406e82
push dword [eax + 8]
mov ecx, ebx
mov byte [ebp - 4], 4
push esi
call fcn.00430347
cmp byte [ebp - 0x18], 0
mov byte [ebp - 4], 2
je 0x4301ec
mov ecx, dword [ebp - 0x1c]
push dword [ecx + 0x1c]
call fcn.00405b36
jmp 0x4301ec
lea ecx, [ebp + 8]
call fcn.0040650f
lea ecx, [ebp + 0x30]
mov esi, eax
call fcn.0040650f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x430291
lea eax, [ebp - 0x1c]
lea ecx, [ebp + 0x30]
push eax
call fcn.00406e82
push dword [eax + 8]
mov byte [ebp - 4], 5
call edi
push eax
mov ecx, ebx
call fcn.00430347
cmp byte [ebp - 0x18], 0
mov byte [ebp - 4], 2
je 0x43023f
mov ecx, dword [ebp - 0x1c]
push dword [ecx + 0x1c]
call fcn.00405b36
jmp 0x43023f
and dword [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00407f77
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x30]
call fcn.00407f77
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x50
Function at 0x4302e6
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
push esi
mov ebp, ecx
push 0
call fcn.0041d6b4
pop ecx
test al, al
pop ecx
je 0x430340
mov ecx, esi
call fcn.0040650f
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
mov ecx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0040650f
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push eax
call edi
test eax, eax
jne 0x430340
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, ebp
call fcn.00430347
push ebx
mov ecx, esi
call fcn.0040650f
push eax
jmp 0x430320
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x430964
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
call fcn.0040650f
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x43099b
push 1
lea ecx, [ebp - 0x48]
push dword [ebp + 8]
call fcn.00408b81
lea eax, [ebp - 0x48]
push 0x47fc68
push eax
call fcn.00465b73
leave
ret
Function at 0x435934
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
push esi
push dword [esp + 0x1c]
mov ebp, ecx
call fcn.0041d6b4
pop ecx
test al, al
pop ecx
je 0x435996
mov ecx, esi
call fcn.0040650f
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
mov ecx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0040650f
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push eax
call edi
test eax, eax
jne 0x435996
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
push esi
mov ecx, ebp
call fcn.004357f1
push ebx
mov ecx, esi
call fcn.0040650f
push eax
jmp 0x435970
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x43599d
Capabilities:
Delete file

Disassembly:
mov eax, 0x47605c
call fcn.00465b54
push esi
push edi
mov edi, ecx
push dword [ebp + 0x34]
and dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
call fcn.00435934
lea ecx, [ebp + 8]
call fcn.0040650f
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push eax
call esi
test eax, eax
jne 0x4359fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x4359fd
cmp eax, 2
je 0x4359fd
push dword [ebp + 0x34]
mov ecx, edi
push eax
lea eax, [ebp + 8]
push dword [ebp + 0x30]
push eax
call fcn.004357f1
lea ecx, [ebp + 8]
call fcn.0040650f
push eax
jmp 0x4359ca
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00407f77
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 0x30