joyce8/EMBER2024-capa huggingface dataset:
Function at 0x431610
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54d5e6
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x5afb3c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00526b3e
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0052263c
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x432850
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x5afb3c]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 8], 0
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftNET_Framework_SetupNDP_v4Client
push reloc.WS2_32.dll_bind
mov dword [ebp - 0xc], 4
mov dword [ebp - 0x10], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4328bd
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push str.Install
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x14]
test eax, eax
je 0x4328cd
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00526b2d
mov esp, ebp
pop ebp
ret
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], 1
jne 0x4328bd
sub esp, 0x10
mov ecx, str.SoftwareMicrosoftNET_Framework_SetupNDP_v4Client
call fcn.00432aa0
add esp, 0x10
test al, al
je 0x4328bd
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
call fcn.00526b2d
mov esp, ebp
pop ebp
ret
Function at 0x432900
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x5afb3c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.00529cc0
add esp, 0xc
mov dword [ebp - 0x10c], 0x104
lea eax, [ebp - 0x114]
mov dword [ebp - 0x110], 0
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoft.NETFrameworkpolicy_v4.0
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x432997
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x110]
push eax
push 0
push str.30319
push dword [ebp - 0x114]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x114]
test eax, eax
je 0x4329a7
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00526b2d
mov esp, ebp
pop ebp
ret
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x108]
push eax
push 0x59f78c
push str.IsNetfx40SmartFrameworkSDKInstalled
call fcn.004266c0
mov ecx, eax
add esp, 0xc
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4329d0
sub ecx, edx
je 0x432997
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
call fcn.00526b2d
mov esp, ebp
pop ebp
ret

Function at 0x4329f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x5afb3c]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 8], 0
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftNET_Framework_SetupNDP_v4Full
push reloc.WS2_32.dll_bind
mov dword [ebp - 0xc], 4
mov dword [ebp - 0x10], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x432a5d
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push str.Install
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x14]
test eax, eax
je 0x432a6d
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00526b2d
mov esp, ebp
pop ebp
ret
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], 1
jne 0x432a5d
sub esp, 0x10
mov ecx, str.SoftwareMicrosoftNET_Framework_SetupNDP_v4Full
call fcn.00432aa0
add esp, 0x10
test al, al
je 0x432a5d
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
call fcn.00526b2d
mov esp, ebp
pop ebp
ret
Function at 0x432aa0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x5afb3c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor eax, eax
mov dword [ebp - 0x118], 0
push edi
mov dword [ebp - 0x11c], eax
xor edi, edi
mov dword [ebp - 0x120], eax
xor ebx, ebx
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x114]
push eax
push 0x20019
push edi
push ecx
push reloc.WS2_32.dll_bind
mov dword [ebp - 0x10c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x432c0a
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x110]
push eax
push edi
push str.Version
push dword [ebp - 0x114]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x114]
test eax, eax
je 0x432b4b
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00526b2d
mov esp, ebp
pop ebp
ret
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x108]
push 0x59f47c
push eax
call fcn.00533cce
add esp, 0xc
test eax, eax
je 0x432c0a
push esi
or esi, 0xffffffff
inc esi
cmp esi, 3
ja case.default.0x432b7e
jmp dword [esi*4 + 0x432c1c]
push eax
call fcn.0052e366
mov dword [ebp - 0x11c], eax
jmp 0x432bb3
push eax
call fcn.0052e366
mov ebx, eax
jmp 0x432bb3
push eax
call fcn.0052e366
mov edi, eax
jmp 0x432bb3
push eax
call fcn.0052e366
mov dword [ebp - 0x120], eax
add esp, 4
lea eax, [ebp - 0x118]
push eax
push 0x59f47c
push 0
call fcn.00533cce
add esp, 0xc
test eax, eax
jne 0x432b78
mov eax, dword [ebp - 0x11c]
pop esi
cmp eax, 4
jle 0x432bee
pop edi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00526b2d
mov esp, ebp
pop ebp
ret
jne 0x432c0a
test ebx, ebx
jg 0x432bdc
jne 0x432c0a
cmp edi, 0x766f
jg 0x432bdc
jne 0x432c0a
mov eax, dword [ebp - 0x120]
test eax, eax
jns 0x432bdc
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop ebx
call fcn.00526b2d
mov esp, ebp
pop ebp
ret

Function at 0x432c30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x5afb3c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x104
lea eax, [ebp - 0x108]
mov esi, ecx
push 0
push eax
call fcn.00529cc0
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
cmp byte [ebp - 0x108], 0
jne 0x432c88
xor ecx, ecx
jmp 0x432c9a
lea ecx, [ebp - 0x108]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x432c91
sub ecx, edx
push ecx
lea eax, [ebp - 0x108]
mov ecx, esi
push eax
call fcn.004276d0
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.00526b2d
mov esp, ebp
pop ebp
ret
Function at 0x4334b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54e00d
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x5afb3c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 0x10
jb 0x4334e6
mov eax, dword [esi]
jmp 0x4334e8
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0
call fcn.00432cc0
mov edi, eax
test edi, edi
jne 0x4335d6
push 3
call fcn.00444f10
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], edi
mov byte [ebp - 0x28], 0
sub esp, 0x14
mov byte [ebp - 4], 2
mov ecx, esp
mov dword [ebp - 0x44], esp
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], edi
cmp dword [ecx + 0x14], 0x10
jb 0x43354f
mov eax, dword [ecx]
jmp 0x433551
mov eax, ecx
push 0xffffffffffffffff
push 0
push esi
mov byte [eax], 0
call fcn.00427790
sub esp, 0x18
mov byte [ebp - 4], 3
mov ecx, esp
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 0x10
jb 0x43357f
mov eax, dword [ecx]
jmp 0x433581
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp - 0x40]
push 0
push eax
call fcn.00427790
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
call fcn.00427f80
xor edi, edi
mov ecx, 0x3e8
test eax, eax
mov eax, dword [ebp - 0x14]
cmove edi, ecx
cmp eax, 0x10
jb 0x4335bf
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004279e0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00444ec0
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0x10
jb 0x4335eb
inc ecx
push ecx
push dword [ebp - 0x40]
lea ecx, [ebp - 0x40]
call fcn.004279e0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00526b2d
mov esp, ebp
pop ebp
ret
Function at 0x433670
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54e04b
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x5afb3c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edx, ecx
lea ecx, [ebp - 0x98]
push 0x59f8b4
call fcn.00431b50
push esi
mov edx, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.004346d0
mov eax, dword [ebp - 0x84]
add esp, 8
cmp eax, 0x10
jb 0x4336e3
inc eax
lea ecx, [ebp - 0x98]
push eax
push dword [ebp - 0x98]
call fcn.004279e0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 0x59f78c
push str.installDotNetFx40
call fcn.004266c0
push 0x40
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x70], 0x44
push 0
push eax
call fcn.00529cc0
add esp, 0x18
lea ecx, [ebp - 0x80]
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x70]
push ecx
push 0
push 0
push 0
push 1
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x43374b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x433768
push 0xffffffffffffffff
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x80]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x7c]
call esi
xor esi, esi
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x43377d
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004279e0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00526b2d
mov esp, ebp
pop ebp
ret
Function at 0x4337a0
Capabilities:
Check if file exists

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54e0ad
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xf8
mov eax, dword [0x5afb3c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
cmp dword [esi + 0x14], 0x10
jb 0x4337ef
mov eax, dword [esi]
jmp 0x4337f1
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x433806
mov eax, 0x3ea
jmp 0x433962
xorps xmm0, xmm0
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x40], 0
movups xmmword [ebp - 0x30], xmm0
mov byte [ebp - 0x3c], 0
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0
cmp dword [esi + 0x14], 0x10
jb 0x43383d
mov esi, dword [esi]
lea ecx, [ebp - 0x40]
call fcn.00428d40
push esi
call fcn.00420f70
add esp, 4
mov dword [ebp - 0x40], eax
test eax, eax
je 0x43385d
lea ecx, [ebp - 0x40]
call fcn.00428e00
lea eax, [ebp - 0x38]
mov dword [ebp - 0x18], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x20]
push eax
movq qword [ebp - 0x20], xmm0
call fcn.004341a0
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x20]
cmp esi, dword [ebp - 0x1c]
je 0x43391b
push 0xc0
lea eax, [ebp - 0x100]
push 0
push eax
call fcn.00529cc0
add esp, 0xc
cmp dword [edi + 0x14], 0x10
jb 0x4338a6
mov edi, dword [edi]
sub esp, 0xc
lea ecx, [ebp - 0x100]
push edi
call fcn.00434370
mov byte [ebp - 4], 2
cmp dword [esi + 0x14], 0x10
jb 0x4338c3
mov eax, dword [esi]
jmp 0x4338c5
mov eax, esi
push eax
lea ecx, [ebp - 0x40]
call fcn.00428db0
lea eax, [ebp - 0xf0]
push eax
lea ecx, [ebp - 0x40]
call fcn.00429020
lea ecx, [ebp - 0xf0]
call fcn.00429170
lea ecx, [ebp - 0x100]
call fcn.00434280
lea ecx, [ebp - 0x88]
call fcn.004342f0
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 5
push eax
mov dword [ebp - 0x88], vtable.std::ios_base.0
call fcn.00522aef
add esp, 4
lea ecx, [ebp - 0x40]
call fcn.00428d40
test esi, esi
je 0x433958
push dword [ebp - 0x104]
mov edx, dword [ebp - 0x1c]
push ecx
mov ecx, esi
call fcn.00427de0
mov ecx, dword [ebp - 0x18]
mov eax, 0x2aaaaaab
sub ecx, esi
add esp, 8
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push esi
call fcn.004278e0
lea ecx, [ebp - 0x40]
call fcn.00428c90
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00526b2d
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x4339e0
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x5afb3c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.00529cc0
add esp, 0xc
lea eax, [ebp - 0x108]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [ebp - 0x108]
mov esi, 0xcc
xor ecx, ecx
lea edi, [edx + 1]
nop
mov al, byte [edx]
inc edx
test al, al
jne 0x433a30
sub edx, edi
je 0x433a4f
nop dword [eax + eax]
movsx eax, byte [ebp + ecx - 0x108]
inc ecx
add esi, eax
cmp ecx, edx
jb 0x433a40
push 0xa
lea eax, [ebp - 0x106]
mov word [ebp - 0x108], 0x4343
push eax
push esi
call fcn.00533fe9
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
cmp eax, 0xb7
je 0x433a9a
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.00526b2d
mov esp, ebp
pop ebp
ret
push 0
call fcn.00533cb8
int3
Function at 0x435fb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54e340
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x5afb3c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x58]
call fcn.00429fe0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x58]
push str.flag.txt
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x5c], 0
call fcn.00431b50
add esp, 4
mov byte [ebp - 4], 1
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 0x10
push 0x59f378
cmovae eax, dword [ebp - 0x40]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.0052d562
add esp, 0xc
cmp dword [ebp - 0x5c], 0
je 0x436089
push 3
push 0x59f500
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.004276d0
push dword [ebp - 0x5c]
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 1
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.0052d34f
push dword [ebp - 0x5c]
call fcn.0052d097
mov eax, dword [ebp - 0x14]
add esp, 0x14
mov dword [ebp - 0x5c], 0
cmp eax, 0x10
jb 0x436089
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004279e0
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x43609e
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.004279e0
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
cmp eax, 0x10
jb 0x4360c5
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.004279e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00526b2d
mov esp, ebp
pop ebp
ret
Function at 0x4360e0
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54e386
mov eax, dword fs:[0]
push eax
sub esp, 0x43c
mov eax, dword [0x5afb3c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x400
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp byte [ebp - 0x410], 0
mov dword [ebp - 0x414], 0xf
mov dword [ebp - 0x418], 0
mov byte [ebp - 0x428], 0
jne 0x436146
xor ecx, ecx
jmp 0x436159
lea ecx, [ebp - 0x410]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x436150
sub ecx, edx
push ecx
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x428]
call fcn.004276d0
push 0x18
push str.Microsoft.NETFramework
lea ecx, [ebp - 0x428]
mov dword [ebp - 4], 0
call fcn.004283e0
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x428]
mov dword [ebp - 0x42c], 0xf
push eax
lea ecx, [ebp - 0x440]
mov dword [ebp - 0x430], 0
mov byte [ebp - 0x440], 0
call fcn.00427790
cmp dword [ebp - 0x42c], 0x10
lea eax, [ebp - 0x440]
cmovae eax, dword [ebp - 0x440]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4361e1
test al, 0x10
je 0x4361e1
mov esi, 1
jmp 0x4361e3
xor esi, esi
mov eax, dword [ebp - 0x42c]
cmp eax, 0x10
jb 0x436201
inc eax
lea ecx, [ebp - 0x440]
push eax
push dword [ebp - 0x440]
call fcn.004279e0
test esi, esi
je 0x43628a
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x444], esp
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 0x10
jb 0x43622c
mov eax, dword [ecx]
jmp 0x43622e
mov eax, ecx
push 4
push str.v4.0
mov byte [eax], 0
call fcn.004276d0
sub esp, 0x18
mov byte [ebp - 4], 1
mov ecx, esp
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 0x10
jb 0x43625e
mov eax, dword [ecx]
jmp 0x436260
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp - 0x428]
push 0
push eax
call fcn.00427790
mov byte [ebp - 4], 0
call fcn.0042cc40
add esp, 0x30
test eax, eax
je 0x43628a
mov esi, 1
jmp 0x43628c
xor esi, esi
mov ecx, dword [ebp - 0x414]
cmp ecx, 0x10
jb 0x4362aa
inc ecx
push ecx
push dword [ebp - 0x428]
lea ecx, [ebp - 0x428]
call fcn.004279e0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00526b2d
mov esp, ebp
pop ebp
ret
Function at 0x436b60
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54e498
mov eax, dword fs:[0]
push eax
sub esp, 0x174
mov eax, dword [0x5afb3c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 0xffffffffffffffff
mov dword [ebp - 4], 0
lea eax, [ebp + 8]
push 0
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00427790
push 2
push 0x59fc3c
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.004283e0
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x180]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x436cfc
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
nop word [eax + eax]
mov ecx, 0x59f47c
lea eax, [ebp - 0x154]
nop dword [eax + eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x436c30
test dl, dl
je 0x436c2c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x436c30
add eax, 2
add ecx, 2
test dl, dl
jne 0x436c10
xor eax, eax
jmp 0x436c35
sbb eax, eax
or eax, 1
test eax, eax
je 0x436ce3
mov eax, 0x59f480
lea ecx, [ebp - 0x154]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x436c68
test dl, dl
je 0x436c64
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x436c68
add ecx, 2
add eax, 2
test dl, dl
jne 0x436c48
xor eax, eax
jmp 0x436c6d
sbb eax, eax
or eax, 1
test eax, eax
je 0x436ce3
test byte [ebp - 0x180], 0x10
je 0x436ce3
cmp byte [ebp - 0x154], 0
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
jne 0x436c99
xor ecx, ecx
jmp 0x436cab
lea ecx, [ebp - 0x154]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x436ca2
sub ecx, edx
push ecx
lea eax, [ebp - 0x154]
push eax
lea ecx, [ebp - 0x40]
call fcn.004276d0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
mov ecx, ebx
call fcn.004270f0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x436ce3
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.004279e0
lea eax, [ebp - 0x180]
push eax
push esi
call edi
test eax, eax
jne 0x436c00
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x436d11
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004279e0
mov eax, dword [ebp + 0x1c]
mov byte [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
cmp eax, 0x10
jb 0x436d38
inc eax
lea ecx, [ebp + 8]
push eax
push dword [ebp + 8]
call fcn.004279e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00526b2d
mov esp, ebp
pop ebp
ret