joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410490
Capabilities:
Reference wmi statements

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x440008]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
push edi
push 0x4386b0
lea edx, [esp + 0x20]
mov dword [esp + 0x1c], 0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x20], 0
mov dword [esp + 0x18], 0
xor esi, esi
call fcn.004126d0
add esp, 4
test eax, eax
je 0x41065d
lea eax, [esp + 0x14]
push str.SELECT__FROM_Win32_PnPDevice
push eax
lea edx, [esp + 0x24]
lea ecx, [esp + 0x20]
call fcn.004127f0
add esp, 8
test eax, eax
je 0x41065d
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x10], esi
mov dword [esp + 0x30], esi
test ecx, ecx
je 0x41063d
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea ebx, [esi + 1]
nop dword [eax]
mov eax, dword [ecx]
lea edx, [esp + 0x30]
push edx
lea edx, [esp + 0x14]
push edx
push 1
push 0xffffffffffffffff
push ecx
call dword [eax + 0x10]
cmp dword [esp + 0x30], 0
je 0x410639
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x20]
push 0
push 0
push edx
mov ecx, dword [eax]
push 0
push str.Name
push eax
call dword [ecx + 0x10]
test eax, eax
js 0x410589
mov ax, word [esp + 0x20]
cmp ax, 1
je 0x410589
test al, 8
je 0x410582
push str.VBOX
push dword [esp + 0x2c]
call fcn.00414da9
add esp, 8
test eax, eax
cmovne esi, ebx
lea eax, [esp + 0x20]
push eax
call edi
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x20]
push 0
push 0
push edx
mov ecx, dword [eax]
push 0
push str.Caption
push eax
call dword [ecx + 0x10]
test eax, eax
js 0x4105d3
mov ax, word [esp + 0x20]
cmp ax, 1
je 0x4105d3
test al, 8
je 0x4105cc
push str.VBOX
push dword [esp + 0x2c]
call fcn.00414da9
add esp, 8
test eax, eax
cmovne esi, ebx
lea eax, [esp + 0x20]
push eax
call edi
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x20]
push 0
push 0
push edx
mov ecx, dword [eax]
push 0
push str.PNPDeviceID
push eax
call dword [ecx + 0x10]
test eax, eax
js 0x41061d
mov ax, word [esp + 0x20]
cmp ax, 1
je 0x41061d
test al, 8
je 0x410616
push str.VEN_VBOX
push dword [esp + 0x2c]
call fcn.00414da9
add esp, 8
test eax, eax
cmovne esi, ebx
lea eax, [esp + 0x20]
push eax
call edi
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
test esi, esi
jne 0x410639
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x410520
jmp 0x41063d
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esp + 0x18]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
mov ecx, dword [esp + 0x1c]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [esp + 0x34]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041396d
mov esp, ebp
pop ebp
ret
Function at 0x411ab0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x440008]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x459d70], 0
mov ecx, 0x43bcf4
mov eax, 0x43bcdc
mov dword [ebp - 0x74], 0
cmovle eax, ecx
push eax
lea eax, [ebp - 0x74]
push str.log.txt
push eax
call fcn.0041cae0
add esp, 0xc
test eax, eax
jne 0x411c74
cmp dword [ebp - 0x74], eax
je 0x411c74
push eax
call fcn.0041c231
mov dword [ebp - 0x4c], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x48], edx
push eax
lea eax, [ebp - 0x70]
mov dword [ebp - 0x50], 0
push eax
movups xmmword [ebp - 0x70], xmm0
movups xmmword [ebp - 0x60], xmm0
call fcn.0041c504
add esp, 0xc
test eax, eax
jne 0x411c87
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x44]
push 0x20
push eax
call fcn.0041ca29
add esp, 0xc
test eax, eax
jne 0x411c98
lea ecx, [ebp - 0x44]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411b54
sub ecx, edx
sar ecx, 1
lea ecx, [ecx*2 - 2]
cmp ecx, 0x40
jae 0x411c82
xor eax, eax
mov word [ebp + ecx - 0x44], ax
lea ecx, [ebp - 0x44]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411b80
sub ecx, edx
sar ecx, 1
push esi
push edi
lea esi, [ecx*2 + 6]
push esi
call fcn.0041a9c3
mov edi, eax
add esp, 4
test edi, edi
je 0x411bd9
push esi
push 0
push edi
call fcn.00415ba0
lea eax, [ebp - 0x44]
shr esi, 1
push eax
push str.__s_
push esi
push edi
call fcn.0040a0a0
push edi
push 0x43bcf8
push dword [ebp - 0x74]
call fcn.00411cb0
push edi
call fcn.0041a9ce
add esp, 0x2c
mov esi, dword [ebp + 0xc]
movzx eax, word [esi]
test ax, ax
je 0x411c57
mov ecx, eax
lea edi, [ebp + 0xc]
nop dword [eax]
cmp cx, 0x25
je 0x411c07
push dword [ebp - 0x74]
movzx eax, cx
push eax
call fcn.0041cb50
add esp, 8
jmp 0x411c49
movzx eax, word [esi + 2]
add esi, 2
cmp eax, 0x64
je 0x411c33
cmp eax, 0x73
je 0x411c26
push dword [ebp - 0x74]
push eax
call fcn.0041cb50
add esp, 8
jmp 0x411c49
push dword [edi + 4]
add edi, 4
push 0x43bd00
jmp 0x411c3e
push dword [edi + 4]
add edi, 4
push 0x438fc4
push dword [ebp - 0x74]
call fcn.00411cb0
add esp, 0xc
movzx eax, word [esi + 2]
add esi, 2
mov ecx, eax
test ax, ax
jne 0x411bf0
push dword [ebp - 0x74]
push 0xa
call fcn.0041cb50
push dword [ebp - 0x74]
inc dword [0x459d70]
call fcn.0041ccc7
add esp, 0xc
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041396d
mov esp, ebp
pop ebp
ret
call fcn.00413d9a
mov ecx, str.localtime_s
call fcn.00411970
push 1
call fcn.0041c7ba
mov ecx, str._tasctime_s
call fcn.00411970
push 1
call fcn.0041c7ba
int3
Function at 0x411d80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x440008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x804]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, edx
push 0x800
push 0
push eax
mov dword [ebp - 0x80c], 0
call fcn.00415ba0
add esp, 0xc
mov dword [ebp - 0x808], 0x104
lea eax, [ebp - 0x80c]
push eax
push 0x20019
push 0
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x411e49
lea eax, [ebp - 0x808]
push eax
lea eax, [ebp - 0x804]
push eax
push 0
push 0
push ebx
push dword [ebp - 0x80c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x411e3d
push edi
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x411e3d
push dword [ebp - 0x80c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041396d
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x80c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041396d
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x411e76
test al, 0x10
jne 0x411e76
mov eax, 1
ret
xor eax, eax
ret
Function at 0x411e80
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x440008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x288
push 0
mov edi, ecx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0x288
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
jne 0x411edc
push str.Error_allocating_memory_needed_to_call_GetAdaptersinfo._n
call fcn.00409e40
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041396d
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0xc]
push eax
push esi
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
cmp eax, 0x6f
jne 0x411f3d
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 0xc]
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
jne 0x411f32
push str.Error_allocating_memory_needed_to_call_GetAdaptersinfo_n
call fcn.00409df0
add esp, 4
lea eax, [esi + 1]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041396d
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0xc]
push eax
push esi
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
test eax, eax
jne 0x411f93
movzx eax, byte [edi]
mov ecx, esi
mov byte [ebp - 8], al
movzx eax, byte [edi + 2]
mov byte [ebp - 7], al
movzx eax, byte [edi + 4]
mov byte [ebp - 6], al
movzx eax, byte [edi + 6]
mov byte [ebp - 5], al
nop
cmp dword [ecx + 0x190], 6
jne 0x411f84
lea edx, [ebp - 8]
movzx eax, word [edx]
cmp ax, word [ecx + 0x194]
jne 0x411f84
movzx eax, byte [edx + 2]
cmp al, byte [ecx + 0x196]
je 0x411f8c
mov ecx, dword [ecx]
test ecx, ecx
jne 0x411f60
jmp 0x411f93
mov dword [ebp - 0x10], 1
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
xor ecx, ebp
pop edi
pop esi
call fcn.0041396d
mov esp, ebp
pop ebp
ret
Function at 0x4125a0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x440008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, ecx
lea eax, [ebp - 0x238]
push edi
mov dword [ebp - 0x23c], ebx
mov edx, 0x22c
nop dword [eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub edx, 1
jne 0x4125d0
push edx
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x412608
mov ecx, 0x43c65c
call fcn.00411970
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041396d
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x238]
mov dword [ebp - 0x238], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x412648
mov ecx, str.Process32First
call fcn.00411970
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041396d
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.SHLWAPI.dll_StrCmpIW]
lea eax, [ebp - 0x214]
push ebx
push eax
call edi
test eax, eax
je 0x4126ab
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
lea eax, [ebp - 0x238]
push eax
push esi
call ebx
test eax, eax
je 0x412691
push dword [ebp - 0x23c]
lea eax, [ebp - 0x214]
push eax
call edi
test eax, eax
je 0x4126ab
lea eax, [ebp - 0x238]
push eax
push esi
call ebx
test eax, eax
jne 0x412670
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041396d
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x230]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0041396d
mov esp, ebp
pop ebp
ret
Function at 0x4126d0
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0
push 0
mov edi, edx
mov ebx, ecx
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jns 0x4126f9
mov ecx, 0x43c6c8
call fcn.00411970
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
push 0
push 0
push 0
push 3
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
jns 0x41272c
mov ecx, 0x43c6e8
call fcn.00411970
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
push edi
push 0x43c808
push 1
push 0
push 0x42e368
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x41275c
mov ecx, 0x43c714
call fcn.00411970
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
push dword [ebp + 8]
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
test esi, esi
je 0x4127b4
mov ecx, dword [edi]
push ebx
push 0
push 0
mov edx, dword [ecx]
push 0x80
push 0
push 0
push 0
push esi
push ecx
call dword [edx + 0xc]
push esi
test eax, eax
jns 0x4127ae
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, str.ConnectServer
call fcn.00411970
mov eax, dword [edi]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push dword [ebx]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jns 0x4127e2
mov ecx, 0x43c754
call fcn.00411970
mov eax, dword [ebx]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0x412799
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret

Function at 0x4204ac
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00420322
Function at 0x402a3f
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 [0x446790]
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 0x402ad3
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x402a90
cmp dword [ebp + 0x10], ebx
jne 0x402ac7
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402a3f
test eax, eax
jne 0x402aa2
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402a77
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.0040600b
cmp eax, ebx
je 0x402ada
push ebx
push dword [0x446790]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402ad3
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 [0x446790], ebx
jne 0x402ad0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402ad0
jmp 0x402ad3
Function at 0x402f21
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push esi
xor esi, esi
push edi
cmp eax, esi
jl 0x402f4d
mov ecx, dword [0x446738]
push esi
add eax, ecx
push esi
push eax
mov dword [0x41f48c], eax
push dword [0x40901c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
call fcn.0040303c
cmp eax, esi
jl 0x403036
lea eax, [ebp + 8]
push 4
push eax
push dword [0x40901c]
call fcn.004059e9
test eax, eax
je 0x403022
push dword [ebp + 8]
add dword [0x41f48c], 4
call fcn.0040303c
cmp eax, esi
mov dword [ebp - 8], eax
jl 0x403036
cmp dword [ebp + 0x10], esi
jne 0x402ffe
cmp dword [ebp + 8], esi
jle 0x403033
mov esi, 0x41b488
cmp dword [ebp + 8], 0x4000
mov edi, dword [ebp + 8]
jl 0x402fb3
mov edi, 0x4000
push edi
push esi
push dword [0x40901c]
mov dword [ebp - 4], edi
call fcn.004059e9
test eax, eax
je 0x403022
lea eax, [ebp + 0x14]
push 0
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402ffa
cmp dword [ebp + 0x14], edi
jne 0x402ffa
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x41f48c], eax
cmp dword [ebp + 8], 0
jg 0x402fa2
jmp 0x403033
push 0xfffffffffffffffe
jmp 0x403024
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x403009
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 0x403027
push 0xfffffffffffffffd
pop eax
jmp 0x403036
mov eax, dword [ebp - 4]
add dword [0x41f48c], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret 0x10
Function at 0x40303c
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x41f48c]
sub esi, dword [0x4133f8]
push edi
add esi, dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, ebx
add eax, 0x1f4
cmp esi, ebx
mov dword [0x4466ec], eax
jle 0x4031a6
push dword [0x42749c]
call fcn.004031ce
push ebx
push ebx
push dword [0x4133f8]
push dword [0x40901c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x427498], esi
mov dword [0x41f488], ebx
mov ebp, 0x413488
mov eax, dword [0x41f490]
mov edi, 0x4000
sub eax, dword [0x42749c]
cmp eax, edi
jg 0x4030b1
mov edi, eax
mov esi, 0x41b488
push edi
push esi
call fcn.004031b8
test eax, eax
je 0x403198
add dword [0x42749c], edi
mov dword [0x413418], esi
mov dword [0x41341c], edi
cmp dword [0x4466f0], ebx
je 0x403108
cmp dword [0x446780], ebx
jne 0x403108
mov eax, dword [0x427498]
push ebx
sub eax, dword [0x41f48c]
sub eax, dword [esp + 0x1c]
add eax, dword [0x4133f8]
mov dword [0x41f488], eax
call fcn.00402bdc
pop ecx
mov ecx, 0x413400
mov dword [0x413420], ebp
mov dword [0x413424], 0x8000
call fcn.0040610b
test eax, eax
jl 0x4031a1
mov esi, dword [0x413420]
sub esi, ebp
je 0x403162
lea eax, [esp + 0x10]
push ebx
push eax
push esi
push ebp
push dword [0x40901c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40319d
cmp esi, dword [esp + 0x10]
jne 0x40319d
add dword [0x4133f8], esi
cmp dword [0x41341c], ebx
jne 0x4030d7
jmp 0x40316e
cmp dword [0x41341c], ebx
jne 0x4031a1
cmp edi, ebx
je 0x4031a1
mov eax, dword [0x41f48c]
mov ecx, eax
sub ecx, dword [0x4133f8]
add ecx, dword [esp + 0x18]
test ecx, ecx
jg 0x40309b
push ebx
push ebx
push eax
push dword [0x40901c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x4031a6
or eax, 0xffffffff
jmp 0x4031b0
push 0xfffffffffffffffe
jmp 0x4031a3
push 0xfffffffffffffffd
pop eax
jmp 0x4031b0
push 1
call fcn.00402bdc
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
Function at 0x405493
Capabilities:
Create process on windows

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

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

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.0040594c
mov edi, eax
cmp edi, 0xffffffff
je 0x405599
test byte [esp + 0x10], 1
push esi
je 0x40557b
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x405581
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x40558a
xor eax, eax
inc eax
jmp 0x40559b
test byte [esp + 0x10], 4
jne 0x405599
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x4055a0
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.0040585e
test bl, 8
mov dword [ebp - 0xc], eax
je 0x4055df
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x446768], eax
jmp 0x405769
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x4055f9
test eax, eax
je 0x405717
test bl, 2
je 0x405717
mov esi, 0x4394e8
push edi
push esi
call fcn.00405ce0
cmp dword [ebp + 8], 0
je 0x405618
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x40561e
push edi
call fcn.004057b7
cmp byte [edi], 0
jne 0x40562c
cmp byte [0x4394e8], 0x5c
jne 0x405637
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 0x40570d
lea eax, [ebp - 0x120]
push 0x3f
push eax
lea esi, [ebp - 0x120]
call fcn.0040579b
cmp byte [eax], 0
je 0x40567d
cmp byte [ebp - 0x1c], 0
je 0x40567d
lea esi, [ebp - 0x1c]
cmp byte [esi], 0x2e
jne 0x405693
mov al, byte [esi + 1]
test al, al
je 0x4056ec
cmp al, 0x2e
jne 0x405693
cmp byte [esi + 2], 0
je 0x4056ec
push esi
push ebx
call fcn.00405ce0
test byte [ebp - 0x14c], 0x10
je 0x4056b8
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4056ec
push dword [ebp + 0xc]
push edi
call fcn.004055a0
jmp 0x4056ec
push dword [ebp - 4]
push edi
call fcn.00405558
test eax, eax
jne 0x4056e4
cmp dword [ebp - 4], eax
je 0x4056dc
push edi
push 0xfffffffffffffff1
call fcn.00404fcb
push 0
push edi
call fcn.00405b94
jmp 0x4056ec
inc dword [0x446768]
jmp 0x4056ec
push edi
push 0xfffffffffffffff2
call fcn.00404fcb
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40565b
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405717
and byte [ebx - 1], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405769
cmp dword [ebp - 0xc], esi
jne 0x40572b
inc dword [0x446768]
jmp 0x405769
push edi
call fcn.00405fe4
test eax, eax
je 0x405769
push edi
call fcn.00405770
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405558
test eax, eax
jne 0x405761
cmp dword [ebp - 4], esi
je 0x405723
push edi
push 0xfffffffffffffff1
call fcn.00404fcb
push esi
push edi
call fcn.00405b94
jmp 0x405769
push edi
push 0xffffffffffffffe5
call fcn.00404fcb
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40585e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x43b4e8
push esi
call fcn.00405ce0
push esi
call fcn.00405809
mov edi, eax
test edi, edi
jne 0x40587f
xor eax, eax
jmp 0x4058d1
push edi
call fcn.00405f4b
test byte [0x4466f8], 0x80
je 0x405898
mov al, byte [edi]
test al, al
je 0x40587b
cmp al, 0x5c
je 0x40587b
sub edi, esi
jmp 0x4058b0
call fcn.00405fe4
test eax, eax
je 0x4058aa
test byte [eax], 0x10
je 0x40587b
push esi
call fcn.004057b7
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x40589c
call fcn.00405770
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 0x40594c
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 0x40596b
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 0x405971
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 0x4059a0
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 [0x409380]
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 0x4059e5
test edi, edi
jne 0x4059ab
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x4059df