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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x404e60
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x3d8
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], 0x10
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x3e4]
push ecx
call fcn.00402560
add esp, 8
lea edx, [ebp - 0x3e4]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
movsx ecx, byte [eax + 1]
cmp ecx, 0x3a
jne 0x402b2b
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
movsx edx, byte [ecx]
test edx, edx
je 0x402b2b
mov eax, dword [ebp - 0x14]
movsx ecx, byte [eax]
cmp ecx, 0x5c
jne 0x402b2b
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
movsx ecx, byte [eax]
test ecx, ecx
je 0x402b9d
mov edx, dword [ebp - 0x14]
movsx eax, byte [edx]
cmp eax, 0x5c
jne 0x402b92
mov ecx, dword [ebp - 0x14]
mov byte [ecx], 0
lea edx, [ebp - 0x3e4]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x402b7d
push 0
lea eax, [ebp - 0x3e4]
push eax
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x402b7b
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0xb7
je 0x402b7b
xor al, al
jmp 0x402bbd
jmp 0x402b8c
mov ecx, dword [ebp - 0x18]
and ecx, 0x10
cmp ecx, 0x10
je 0x402b8c
xor al, al
jmp 0x402bbd
mov edx, dword [ebp - 0x14]
mov byte [edx], 0x5c
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
jmp 0x402b2b
jmp 0x402bb4
mov dword [ebp - 4], 0xffffffff
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402bd0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0
jmp 0x402be8
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x100
jge 0x402c42
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], 0
jmp 0x402c09
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 8
jge 0x402c33
mov eax, dword [ebp - 4]
and eax, 1
test eax, eax
je 0x402c29
mov ecx, dword [ebp - 4]
shr ecx, 1
xor ecx, 0xedb88320
mov dword [ebp - 4], ecx
jmp 0x402c31
mov edx, dword [ebp - 4]
shr edx, 1
mov dword [ebp - 4], edx
jmp 0x402c00
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov dword [eax*4 + 0x42f564], ecx
jmp 0x402bdf
mov esp, ebp
pop ebp
ret
Function at 0x403050
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
mov ecx, 5
mov esi, str.fegConnectRegistryA
lea edi, [ebp - 0x14]
rep movsd dword es:[edi], dword [esi]
mov byte [ebp - 0x14], 0x52
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [0x42ece8]
push ecx
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [0x42ed00], eax
push str.AecivreSnepO
call fcn.004047e0
add esp, 4
push eax
mov edx, dword [0x42ece8]
push edx
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [0x42ecf4], eax
mov dword [ebp - 0x20], 0
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], 0x4e72454b
mov dword [ebp - 0x1c], 0x32336c65
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4039c0
Capabilities:
Delete registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x63c
push edi
mov byte [ebp - 0x240], 0
mov ecx, 0x8e
xor eax, eax
lea edi, [ebp - 0x23f]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
jmp 0x4039ff
mov ecx, dword [ebp - 4]
push ecx
call fcn.00401870
add esp, 4
mov edx, dword [ebp - 4]
lea eax, [edx + eax + 1]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx]
test edx, edx
je 0x403b6d
mov eax, dword [ebp - 4]
movsx ecx, byte [eax + 1]
test ecx, ecx
je 0x403b6d
mov edx, dword [ebp - 4]
push edx
call fcn.004047a0
add esp, 4
push 0
mov eax, dword [ebp - 4]
push eax
call fcn.00401870
add esp, 4
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.004026d0
add esp, 0xc
mov dword [ebp - 0x634], eax
cmp dword [ebp - 0x634], 0x5cf345ca
je 0x403a6d
cmp dword [ebp - 0x634], 0x642d3b30
je 0x403a6d
cmp dword [ebp - 0x634], 0x8a705f51
jne 0x403a72
jmp 0x4039e9
mov edx, dword [str.SYSTEMCurrentControlSet_seRviCes_]
push edx
lea eax, [ebp - 0x240]
push eax
call fcn.00402560
add esp, 8
mov ecx, dword [ebp - 4]
push ecx
lea edx, [ebp - 0x240]
push edx
call fcn.00402510
add esp, 8
mov dword [ebp - 0x638], 0x3e8
lea eax, [ebp - 0x638]
push eax
lea ecx, [ebp - 0x62c]
push ecx
push 0
push str.ImagePath
lea edx, [ebp - 0x240]
push edx
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
mov dword [ebp - 0x63c], eax
cmp dword [ebp - 0x63c], 0
jne 0x403ae0
jmp 0x4039e9
lea eax, [ebp - 0x240]
push eax
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
push 0x42f30c
push 0x120
push str.netsvcs
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.00402040
add esp, 0x1c
mov dword [ebp - 0x630], eax
cmp dword [ebp - 0x630], 0
je 0x403b68
mov edx, dword [ebp - 0x630]
push edx
call fcn.00403360
add esp, 4
and eax, 0xff
test eax, eax
je 0x403b44
mov al, 1
jmp 0x403b6f
push 0x3e8
call dword [sym.imp.kernel32.dll_Sleep]
mov eax, dword [ebp - 0x630]
push eax
call dword [0x42ecc0]
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.004024c0
add esp, 4
jmp 0x4039e9
xor al, al
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x404360
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0xc], 0
push 0
push 2
call sub.kernel32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 8], eax
push 0x128
call fcn.00404780
add esp, 4
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov dword [ecx], 0x128
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_Process32First
test eax, eax
je 0x404420
cmp dword [ebp + 0xc], 0
je 0x4043e9
push 0
mov ecx, dword [ebp - 4]
add ecx, 0x24
push ecx
call fcn.00401870
add esp, 4
push eax
mov edx, dword [ebp - 4]
add edx, 0x24
push edx
call fcn.004047a0
add esp, 4
push eax
call fcn.004026d0
add esp, 0xc
cmp eax, dword [ebp + 0xc]
jne 0x4043e9
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
mov dword [ebp - 0xc], ecx
jmp 0x404420
cmp dword [ebp + 8], 0
je 0x40440f
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
add eax, 0x24
push eax
call dword [sym.imp.kernel32.dll_lstrcmpi]
test eax, eax
jne 0x40440f
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
mov dword [ebp - 0xc], edx
jmp 0x404420
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
push ecx
call sub.kernel32.dll_Process32Next
test eax, eax
jne 0x4043a9
mov edx, dword [ebp - 4]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.004026c0
add esp, 4
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x4045d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push edi
mov byte [ebp - 0x104], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x104]
push ecx
call fcn.00402560
add esp, 8
lea edx, [ebp - 0x104]
push edx
call fcn.004044e0
add esp, 4
push 0x104
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.kernel32.dll_GetSystemDirectoryA]
push 0x42ebec
call fcn.00401870
add esp, 4
add eax, 1
push eax
push 0x42ebec
mov ecx, dword [ebp + 8]
push ecx
call fcn.00401870
add esp, 4
mov edx, dword [ebp + 8]
add edx, eax
push edx
call fcn.00401660
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
call fcn.00401870
add esp, 4
add eax, 1
push eax
lea ecx, [ebp - 0x104]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00401870
add esp, 4
mov ecx, dword [ebp + 8]
add ecx, eax
push ecx
call fcn.00401660
add esp, 0xc
mov edx, dword [ebp + 0xc]
push edx
call fcn.00401870
add esp, 4
add eax, 1
push eax
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00401870
add esp, 4
mov edx, dword [ebp + 8]
add edx, eax
push edx
call fcn.00401660
add esp, 0xc
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x420b4b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x420b8a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x420b8a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x420b8a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x420b8a
cmp dword [ecx + 0x74], 0xe
jbe 0x420b8a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x433300
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43332d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43332d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x40c006
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ecx, 0xcbf
mov ebx, edx
xor word [eax], dx
lea edx, [ebx + edx]
xchg dh, dl
lea eax, [eax + 2]
loop 0x40c00e
pop ebx
ret
Function at 0x40172c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x818
mov eax, dword [0x40600c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x18]
push ebx
push esi
mov esi, dword [ebp + 0x1c]
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
push eax
push ecx
push dword [ebp + 0xc]
lea eax, [ebp - 0x804]
mov dword [ebp - 0x818], edx
push 0x400
push eax
call fcn.0040196b
add esp, 0x14
test eax, eax
js 0x4017fe
lea eax, [ebp - 0x808]
mov dword [ebp - 0x808], ebx
push eax
push 1
push ebx
lea eax, [ebp - 0x804]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4017fe
push 4
pop edi
lea eax, [ebp - 0x814]
mov dword [ebp - 0x80c], ebx
push eax
lea eax, [ebp - 0x810]
mov dword [ebp - 0x810], ebx
push eax
lea eax, [ebp - 0x80c]
mov dword [ebp - 0x814], edi
push eax
push ebx
push dword [ebp - 0x818]
push dword [ebp - 0x808]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4017f2
cmp dword [ebp - 0x80c], edi
jne 0x4017f2
cmp dword [ebp - 0x810], eax
mov bl, 1
setne al
mov dword [esi], eax
push dword [ebp - 0x808]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004028f0
leave
ret

Function at 0x401e1d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp byte [0x4060b6], 0
je 0x401e36
cmp byte [ebp + 8], 0
je 0x401f26
push esi
lea eax, [ebp - 0xc]
xor esi, esi
push eax
push 0x20019
push esi
push str.SOFTWAREAdobeAdobe_AcrobatDCInstaller_
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401f1e
cmp dword [ebp - 0xc], esi
je 0x401f1e
push edi
push 4
pop edi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], edi
cmp byte [0x4060b6], al
jne 0x401ea7
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push esi
push str.bIsSingleClientApp
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x401ea7
cmp dword [ebp - 8], edi
jne 0x401ea7
cmp dword [ebp - 4], esi
setne byte [0x4060b5]
cmp byte [0x4060b5], 0
je 0x401f14
lea eax, [ebp - 0x10]
mov dword [ebp - 4], esi
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push esi
push str.bIsSCAcroAppInstalled
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x401ee1
cmp dword [ebp - 8], edi
jne 0x401ee1
cmp dword [ebp - 4], esi
setne byte [0x4060b4]
lea eax, [ebp - 0x10]
mov dword [ebp - 4], esi
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push esi
push str.SCAPackageLevel
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x401f14
mov eax, dword [0x406004]
cmp dword [ebp - 8], edi
cmove eax, dword [ebp - 4]
mov dword [0x406004], eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov byte [0x4060b6], 1
pop esi
leave
ret
Function at 0x401f72
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
push 0x20019
push esi
push str.SoftwarePoliciesAdobeAcrobat_ReaderDCFeatureLockDown
push 0x80000002
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401fde
lea eax, [ebp - 0x10]
mov dword [ebp - 8], esi
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], esi
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0x10], 4
push eax
push esi
push str.bEnableATL7Compat
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401fd5
cmp dword [ebp - 8], 4
jne 0x401fd5
inc eax
cmp dword [ebp - 0xc], eax
cmove esi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x401fe3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 8]
push esi
push edi
push eax
push 0x20019
xor edi, edi
xor esi, esi
push edi
push str.SoftwareAdobeAdobe_AcrobatDCSecurity
push 0x80000002
inc esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402049
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], edi
push eax
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], 4
push eax
push edi
push 0x404588
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402040
cmp dword [ebp - 4], eax
cmove esi, eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..idata
nop
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408ecc
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
push eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
mov esi, 0x6fad5752
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x430060
nop
nop
nop
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
je 0x4300d2
nop
nop
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x64c57968
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x402eae
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.004064ef
xor ebx, ebx
cmp eax, ebx
jne 0x402f91
test byte [ebp + 0x10], 2
je 0x402f0f
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 0x402f76
lea eax, [ebp - 0x214]
push 0x105
push eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
jmp 0x402f4b
test edi, edi
jne 0x402f76
push dword [ebp + 0x10]
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 4]
call fcn.00402eae
test eax, eax
jne 0x402f54
lea eax, [ebp - 0x214]
push 0x105
push eax
push edi
push dword [ebp - 4]
call ebx
test eax, eax
je 0x402f24
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.00406a76
test eax, eax
jne 0x402f86
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x402f91
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x3eb
jmp 0x402f91
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 0x403376
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 0x4033a1
mov ecx, dword [0x46c2b8]
push esi
add eax, ecx
push esi
push eax
mov dword [0x4326f4], eax
push dword [0x40a01c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
call fcn.0040347e
cmp eax, esi
jl 0x403478
lea eax, [ebp + 8]
push 4
push eax
push dword [0x40a01c]
call fcn.004061f5
test eax, eax
je 0x403468
push dword [ebp + 8]
add dword [0x4326f4], 4
call fcn.0040347e
mov ebx, eax
cmp ebx, esi
jl 0x403476
cmp dword [ebp + 0x10], esi
jne 0x403444
cmp dword [ebp + 8], esi
jle 0x403476
mov esi, 0x4266f0
cmp dword [ebp + 8], 0x4000
mov eax, dword [ebp + 8]
jl 0x403406
mov eax, 0x4000
push eax
push esi
push dword [0x40a01c]
mov dword [ebp - 4], eax
call fcn.004061f5
test eax, eax
je 0x403468
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call fcn.00406224
test eax, eax
je 0x403440
mov eax, dword [ebp - 4]
sub dword [ebp + 8], eax
add dword [0x4326f4], eax
add ebx, eax
cmp dword [ebp + 8], 0
jg 0x4033f5
jmp 0x403476
push 0xfffffffffffffffe
jmp 0x40346a
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x40344f
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 0x40346d
push 0xfffffffffffffffd
pop eax
jmp 0x403478
mov ebx, dword [ebp - 4]
add dword [0x4326f4], ebx
mov eax, ebx
pop esi
pop ebx
leave
ret 0x10
Function at 0x405c65
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x45a750], 0x44
push eax
xor eax, eax
push 0x45a750
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 0x405ca4
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405ca8
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 0x405d46
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.0040614d
mov edi, eax
cmp edi, 0xffffffff
je 0x405d87
test byte [esp + 0x10], 1
push esi
je 0x405d69
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x405d6f
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x405d78
xor eax, eax
inc eax
jmp 0x405d89
test byte [esp + 0x10], 4
jne 0x405d87
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x405d8e
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.00406059
test bl, 8
mov dword [ebp - 8], eax
je 0x405dcd
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x46c2e8], eax
jmp 0x405f4a
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405de7
test eax, eax
je 0x405ef8
test bl, 2
je 0x405ef8
mov esi, 0x452750
push edi
push esi
call fcn.00406682
cmp dword [ebp + 8], 0
je 0x405e06
push str..
push esi
call sub.KERNEL32.dll_lstrcatW
jmp 0x405e0c
push edi
call fcn.00405f9d
cmp word [edi], 0
jne 0x405e1c
cmp word [0x452750], 0x5c
jne 0x405e27
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 0x405eed
cmp word [ebp - 0x22c], 0x2e
jne 0x405e71
cmp word [ebp - 0x22a], 0
je 0x405ed0
cmp word [ebp - 0x22a], 0x2e
jne 0x405e71
cmp word [ebp - 0x228], 0
je 0x405ed0
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.00406682
test byte [ebp - 0x258], 0x10
je 0x405e9c
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405ed0
push dword [ebp + 0xc]
push edi
call fcn.00405d8e
jmp 0x405ed0
push dword [ebp - 4]
push edi
call fcn.00405d46
test eax, eax
jne 0x405ec8
cmp dword [ebp - 4], eax
je 0x405ec0
push edi
push 0xfffffffffffffff1
call fcn.00405707
push 0
push edi
call fcn.00406442
jmp 0x405ed0
inc dword [0x46c2e8]
jmp 0x405ed0
push edi
push 0xfffffffffffffff2
call fcn.00405707
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405e49
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405ef8
and word [ebx - 2], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405f4a
cmp dword [ebp - 8], esi
jne 0x405f0c
inc dword [0x46c2e8]
jmp 0x405f4a
push edi
call fcn.004069df
test eax, eax
je 0x405f4a
push edi
call fcn.00405f51
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405d46
test eax, eax
jne 0x405f42
cmp dword [ebp - 4], esi
je 0x405f04
push edi
push 0xfffffffffffffff1
call fcn.00405707
push esi
push edi
call fcn.00406442
jmp 0x405f4a
push edi
push 0xffffffffffffffe5
call fcn.00405707
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x406059
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x456750
push esi
call fcn.00406682
push esi
call fcn.00405ffc
mov edi, eax
test edi, edi
jne 0x40607a
xor eax, eax
jmp 0x4060d2
push edi
call fcn.00406930
test byte [0x46c278], 0x80
je 0x406097
mov ax, word [edi]
test ax, ax
je 0x406076
cmp ax, 0x5c
je 0x406076
sub edi, esi
sar edi, 1
jmp 0x4060b1
call fcn.004069df
test eax, eax
je 0x4060ab
test byte [eax], 0x10
je 0x406076
push esi
call fcn.00405f9d
push esi
call sub.KERNEL32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x40609d
call fcn.00405f51
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

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

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

Function at 0x406172
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
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_CreateFileW]
ret 0xc

Function at 0x4061a1
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40a5a8]
dec edi
mov dword [ebp - 8], eax
mov eax, dword [0x40a5ac]
mov dword [ebp - 4], 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 word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x4061f1
test edi, edi
jne 0x4061ae
and word [esi], di
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x4061eb