joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40279c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x40c02c], 0x8088405
inc edx
jmp loc.004197ae

Function at 0x4030dc
Capabilities:
Accept command line arguments

Disassembly:
call fcn.00403094
push 0
call sub.kernel32.dll_GetModuleHandleA
mov dword [0x40c014], eax
call sub.kernel32.dll_GetCommandLineA
mov dword [0x40c01c], eax
mov dword [0x40c018], 0xa
jmp loc.00424d28

Function at 0x40310c
Capabilities:
Set thread local storage value

Disassembly:
push ebx
cmp dword [0x40c3d0], 0
jge 0x403120
jmp loc.0041c280
push 8
push 0x40
call sub.kernel32.dll_LocalAlloc
mov ebx, eax
test ebx, ebx
jne 0x40313e
mov eax, 0xe2
call fcn.00403e41
jmp 0x40314a
push ebx
mov eax, dword [0x40c3d0]
push eax
call sub.kernel32.dll_TlsSetValue
mov dword [0x40c48c], ebx
pop ebx
ret

Function at 0x403154
Capabilities:
Get thread local storage value

Disassembly:
mov cl, byte [0x40c030]
mov eax, dword [0x40c3d0]
test cl, cl
jne 0x40318c
mov edx, dword fs:[0x2c]
mov eax, dword [edx + eax*4]
ret
call fcn.0040310c
mov eax, dword [0x40c3d0]
jmp loc.004160a0
push eax
call sub.kernel32.dll_TlsGetValue
test eax, eax
je 0x40316f
ret

Function at 0x405258
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
jmp 0x41e425

Function at 0x405e3a
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
jmp loc.004206cf

Function at 0x4069dc
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x406a24
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.00406978
mov eax, dword [ebp - 4]
call fcn.00403414
push eax
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406a2b
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x406a58
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov edi, eax
mov eax, ebx
jmp loc.0041535f

Function at 0x406bd0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x406c1b
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.kernel32.dll_GetCommandLineA_1
lea edx, [ebp - 4]
call fcn.00406af0
xor ebx, ebx
jmp 0x406c00
inc ebx
lea edx, [ebp - 4]
call fcn.00406af0
cmp byte [eax], 0
jne 0x406bf7
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406c22
jmp 0x41ea43

Function at 0x406c2c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x406cba
push dword fs:[eax]
jmp loc.0042513c

Function at 0x406cc8
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov edx, ebx
mov eax, esp
call fcn.00404de0
jmp loc.00420df2
Function at 0x406e10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x406f48
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x406f32
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0xc]
je 0x406e6d
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 8]
jne 0x406f32
cmp dword [ebp - 0x10], 0
jne 0x406e82
mov eax, dword [ebp - 8]
call fcn.00403198
mov bl, 1
jmp 0x406f32
cmp dword [ebp - 0x10], 0x70000000
jb 0x406e90
call fcn.00405884
mov esi, dword [ebp - 0x10]
test esi, esi
sar esi, 0
lea eax, [ebp - 0x14]
mov ecx, esi
xor edx, edx
call fcn.00403278
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
call fcn.00403420
push eax
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExA
cmp eax, 0xea
je 0x406e36
test eax, eax
jne 0x406f32
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0xc]
je 0x406ee0
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 8]
jne 0x406f32
mov esi, dword [ebp - 0x10]
test esi, esi
sar esi, 0
jmp 0x406eeb
dec esi
test esi, esi
je 0x406ef9
mov eax, dword [ebp - 0x14]
cmp byte [eax + esi - 1], 0
je 0x406eea
cmp dword [ebp - 0xc], 7
jne 0x406f04
test esi, esi
je 0x406f04
inc esi
lea eax, [ebp - 0x14]
mov edx, esi
call fcn.004034f0
cmp dword [ebp - 0xc], 7
jne 0x406f25
test esi, esi
je 0x406f25
lea eax, [ebp - 0x14]
call fcn.00403420
mov byte [eax + esi - 1], 0
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
call fcn.004031e8
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406f4f
lea eax, [ebp - 0x14]
call fcn.00403198
ret

Function at 0x4076ac
Capabilities:
Clear file content

Disassembly:
push ebx
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
jmp loc.00417813

Function at 0x407890
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x40c55c
mov eax, esi
jmp loc.00418f86

Function at 0x4078c4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x40c558], 0
jne 0x4078e7
call fcn.00407890
push 1
push 0x40c558
call sub.kernel32.dll_InterlockedExchange
mov eax, edi
test esi, esi
je 0x407912
mov edx, ebx
and dx, 0xff
xor ecx, ecx
mov cl, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x40c55c]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x4078ed
jmp 0x419dcc
Function at 0x408fbc
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.00408f70
test al, al
jne 0x408fdd
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x409029
xor eax, eax
push ebp
push 0x409019
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00403414
push eax
call sub.kernel32.dll_DeleteFileA
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409020
jmp loc.00417e31
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x409330
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push ebp
push 0x40941f
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.00406cf4
mov edx, dword [ebp - 8]
mov ecx, 0x409438
xor eax, eax
call fcn.00409224
push 0
mov eax, dword [ebp - 4]
call fcn.00403414
push eax
call sub.kernel32.dll_CreateDirectoryA
test eax, eax
jne 0x4093ed
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 0xb7
je 0x409350
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x18]
mov edx, dword [ebp - 4]
mov al, 0x36
call fcn.00408dd8
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.00404c94
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x20]
mov eax, ebx
call fcn.00407284
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x14]
mov ecx, 2
mov al, 0x68
call fcn.00408da8
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, 0x404660
call fcn.00405890
call fcn.00402eb4
jmp 0x409350
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.0040322c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409426
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.004031b8
lea eax, [ebp - 8]
mov edx, 2
call fcn.004031b8
ret

Function at 0x409448
Capabilities:
Shutdown system

Disassembly:
add esp, 0xffffffec
cmp dword [0x40b07c], 2
jne 0x4094af
push esp
push 0x28
call sub.kernel32.dll_GetCurrentProcess
jmp loc.0041f889
push 0
push 2
call sub.user32.dll_ExitWindowsEx
neg eax
sbb eax, eax
neg eax

Function at 0x4094d8
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, ecx
dec esi
test esi, esi
jl 0x409532
inc esi
xor edi, edi
cmp edi, 1
jne 0x4094fe
mov eax, dword [ebp + 0xc]
jmp loc.00418140
cmp edi, 1
jle 0x40950c
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_Sleep
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00408fbc
test eax, eax
jne 0x409532
call sub.kernel32.dll_GetLastError_1
cmp eax, 2
je 0x409532
call sub.kernel32.dll_GetLastError_1
cmp eax, 3
je 0x409532
inc edi
dec esi
jne 0x4094ee
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8
Function at 0x40953c
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, ecx
mov byte [ebp - 1], dl
mov esi, eax
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax], edx
mov byte [ebp - 2], 0
test edi, edi
je 0x409589
xor ebx, ebx
jmp 0x40957e
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov eax, edi
call fcn.00404c40
test eax, eax
jne 0x40957d
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 2
jmp 0x409639
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call esi
test al, al
jne 0x40955f
mov al, byte [ebp - 1]
sub al, 1
jb 0x409594
je 0x40959d
jmp 0x4095a6
call fcn.00407024
mov edi, eax
jmp 0x4095a8
call sub.kernel32.dll_GetUserDefaultLangID
mov edi, eax
jmp 0x4095a8
xor edi, edi
test di, di
je 0x409639
xor ebx, ebx
jmp 0x4095e4
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
movzx edx, di
cmp eax, edx
jne 0x4095e3
mov eax, dword [ebp - 8]
cmp dword [eax + 0x2c], 0
je 0x4095d8
call sub.kernel32.dll_GetACP
mov edx, dword [ebp - 8]
cmp eax, dword [edx + 0x2c]
jne 0x4095e3
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 1
jmp 0x409639
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call esi
test al, al
jne 0x4095b5
xor ebx, ebx
jmp 0x40962e
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
and eax, 0x3ff
mov edx, edi
and dx, 0x3ff
movzx edx, dx
cmp eax, edx
jne 0x40962d
mov eax, dword [ebp - 8]
jmp 0x421a2e
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call esi
test al, al
jne 0x4095f3
mov al, byte [ebp - 2]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4

Function at 0x4099ec
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x409abf
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x409ad8
push ebx
push 0x409ae4
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.004033b4
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.0040277c
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00403414
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x409a6c
mov al, 0x6a
call fcn.00409648
jmp loc.00417504
Function at 0x409b78
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409c2c
jmp 0x409c21
cmp dword [esi + 0x10], 0x1000
jne 0x409c0d
test byte [esi + 0x15], 1
jne 0x409c0d
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x409bcc
cmp eax, 2
je 0x409bcc
cmp eax, 0x10
je 0x409bcc
cmp eax, 0x20
jne 0x409be1
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409be1
mov bl, 1
xor ebp, ebp
jmp 0x409bf2
mov eax, dword [esi]
add eax, ebp
call fcn.00409b70
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x409be5
test bl, bl
je 0x409c0d
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
jmp 0x41bf71
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409c2c
mov eax, dword [esi + 4]
cmp eax, edi
je 0x409ba4
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x409c34
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push 0xa
push 0x2b67
push 0
call sub.kernel32.dll_FindResourceA
mov ebx, eax
test ebx, ebx
jne 0x409c4e
call fcn.00409ae8
push ebx
push 0
call sub.kernel32.dll_SizeofResource
cmp eax, 0x2c
je 0x409c60
call fcn.00409ae8
push ebx
push 0
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x409c73
jmp 0x425241
push ebx
call sub.kernel32.dll_LockResource
mov ebx, eax
test ebx, ebx
jne 0x409c84
call fcn.00409ae8
mov eax, ebx
pop ebx
ret
Function at 0x402199
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
mov eax, dword [0x46a1c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
push 0x3e
mov word [ebp - 0x90], ax
xor ebx, ebx
lea eax, [ebp - 0x8e]
push ebx
push eax
call fcn.0043e4b0
add esp, 0xc
push 0xf4
lea eax, [ebp - 0x194]
push ebx
push eax
mov dword [ebp - 0x198], ebx
call fcn.0043e4b0
add esp, 0xc
lea ecx, [ebp - 0x24]
call fcn.00401e56
cmp dword [ebp - 8], 8
mov eax, dword [ebp - 0x1c]
jae 0x4021fb
lea eax, [ebp - 0x1c]
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
mov dword [ebp - 0x9c], edi
push ebx
cmp edi, ebx
jne 0x402241
push 1
lea esi, [ebp - 0x20]
mov dword [ebp - 0x24], vtable.TString.0
call fcn.0040146e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043de6e
leave
ret
mov esi, dword [sym.imp.KERNEL32.DLL_ReadFile]
lea eax, [ebp - 0x94]
push eax
push 0x40
lea eax, [ebp - 0x90]
push eax
push edi
mov dword [ebp - 0x94], ebx
call esi
mov eax, 0x5a4d
cmp word [ebp - 0x90], ax
je 0x402278
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push ebx
jmp 0x40221f
push ebx
push ebx
push dword [ebp - 0x54]
push edi
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push ebx
lea eax, [ebp - 0x94]
push eax
push 0xf8
lea eax, [ebp - 0x198]
push eax
push edi
call esi
cmp dword [ebp - 0x198], 0x4550
je 0x4022c9
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor edi, edi
push ebx
push 1
lea esi, [ebp - 0x20]
mov dword [ebp - 0x24], vtable.TString.0
call fcn.0040146e
mov eax, edi
jmp 0x402232
movzx eax, word [ebp - 0x192]
mov edi, dword [ebp - 0x144]
cmp eax, ebx
jbe 0x40231d
mov dword [ebp - 0x98], eax
xor eax, eax
mov byte [ebp - 0x4c], bl
lea edi, [ebp - 0x4b]
stosd dword es:[edi], eax
stosw word es:[edi], ax
push 8
stosb byte es:[edi], al
pop ecx
xor eax, eax
push ebx
lea edi, [ebp - 0x44]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x94]
push eax
push 0x28
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x9c]
call esi
dec dword [ebp - 0x98]
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x38]
lea edi, [eax + ecx]
jne 0x4022e0
push dword [ebp - 0x9c]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [0x46d3b8], edi
xor edi, edi
inc edi
jmp 0x4022b0
Function at 0x402589
Capabilities:
Get file attributes

Disassembly:
push 0x5c
mov eax, 0x4526b4
call fcn.00442764
push 0x46d37c
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
inc dword [0x46d4dc]
mov dword [ebp - 0x4c], vtable.FileRemover.0
and dword [ebp - 4], 0
push dword [0x46d4d0]
and dword [ebp - 0x48], 0
mov ebx, 0x46d4c4
mov edi, ebx
lea esi, [ebp - 0x44]
call fcn.004147d9
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x38], eax
push dword [0x46d4d4]
mov edi, ebx
lea esi, [ebp - 0x44]
call fcn.004147d9
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x4025f2
cmp eax, dword [ebp - 0x44]
je 0x4025f7
call fcn.0043e173
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 0x40]
je 0x4026df
lea esi, [ebp - 0x3c]
call fcn.00402c3c
test eax, eax
je 0x402614
add eax, 4
jmp 0x402616
xor eax, eax
push eax
lea eax, [ebp - 0x68]
push 0x46d3c4
push eax
call fcn.0040369b
add esp, 0xc
push eax
lea edi, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.00401040
xor edi, edi
push edi
push 1
lea esi, [ebp - 0x68]
mov byte [ebp - 4], 3
call fcn.0040146e
cmp dword [ebp - 0x18], 8
mov esi, dword [ebp - 0x2c]
jae 0x402652
lea esi, [ebp - 0x2c]
push edi
push esi
call fcn.0043e6af
pop ecx
pop ecx
cmp eax, 0xffffffff
jne 0x402669
mov dword [ebp - 0x48], 1
jmp 0x40268b
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
test al, 0x10
je 0x40267f
push esi
lea ecx, [ebp - 0x4c]
call fcn.0040420f
jmp 0x402684
call fcn.004041eb
mov dword [ebp - 0x48], eax
cmp eax, edi
je 0x4026c9
push edi
mov byte [ebp - 4], 0
push 1
lea esi, [ebp - 0x30]
mov dword [ebp - 0x34], vtable.TString.0
call fcn.0040146e
mov eax, dword [ebp - 0x3c]
cmp eax, edi
jne 0x4026c5
call fcn.0043e173
xor eax, eax
mov ecx, dword [ebp - 0x38]
cmp ecx, dword [eax + 0x10]
jb 0x4026bc
call fcn.0043e173
add dword [ebp - 0x38], 0x20
jmp 0x4025d6
mov eax, dword [eax]
jmp 0x4026af
push edi
mov byte [ebp - 4], 0
push 1
lea esi, [ebp - 0x30]
mov dword [ebp - 0x34], vtable.TString.0
call fcn.0040146e
cmp dword [ebp - 0x48], 0
je 0x402719
push dword [0x46d4d4]
mov edi, ebx
lea esi, [ebp - 0x44]
call fcn.004147d9
push dword [0x46d4d0]
lea esi, [ebp - 0x3c]
call fcn.004147d9
push dword [ebp - 0x40]
lea eax, [ebp - 0x44]
push dword [ebp - 0x44]
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
push eax
push ebx
call fcn.00402edc
push 0x46d37c
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov eax, dword [ebp - 0x48]
call fcn.004427e7
ret

Function at 0x4041eb
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
test al, 1
je 0x404201
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
neg eax
sbb eax, eax
neg eax
ret
Function at 0x406766
Capabilities:
Get graphical window text

Disassembly:
push 0x4cc
mov eax, 0x452e09
call fcn.00442764
mov esi, ecx
push 0xf03
push esi
mov dword [ebp - 0x4d8], esi
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
xor eax, eax
push 0x206
mov word [ebp - 0x21c], ax
xor ebx, ebx
lea eax, [ebp - 0x21a]
push ebx
push eax
call fcn.0043e4b0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x21c]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x258]
call fcn.00401238
mov edi, vtable.TString.0
mov dword [ebp - 0x25c], edi
lea eax, [ebp - 0x25c]
push eax
mov dword [ebp - 4], ebx
call fcn.00408837
lea ecx, [ebp - 0x25c]
call fcn.004088f2
cmp dword [ebp - 0x244], ebx
jne 0x406862
push 0x88
lea ecx, [ebp - 0x23c]
call fcn.00402a2e
cmp dword [ebp - 0x220], 8
mov eax, dword [ebp - 0x234]
jae 0x406822
lea eax, [ebp - 0x234]
push 0x10
push 0x460204
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
push ebx
push 1
lea esi, [ebp - 0x238]
mov dword [ebp - 0x23c], edi
call fcn.0040146e
push ebx
push 1
lea esi, [ebp - 0x258]
mov dword [ebp - 0x25c], edi
call fcn.0040146e
xor eax, eax
inc eax
call fcn.004427e7
ret
lea eax, [ebp - 0x4d4]
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x4068ec
push 0xa9
lea ecx, [ebp - 0x23c]
call fcn.00402a2e
cmp dword [ebp - 0x220], 8
mov eax, dword [ebp - 0x234]
jae 0x4068a0
lea eax, [ebp - 0x234]
push 0x10
push 0x460204
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
push ebx
push 1
lea esi, [ebp - 0x238]
mov dword [ebp - 0x23c], edi
call fcn.0040146e
mov dword [ebp - 0x4d8], 1
push ebx
push 1
lea esi, [ebp - 0x258]
mov dword [ebp - 0x25c], edi
call fcn.0040146e
mov eax, dword [ebp - 0x4d8]
jmp 0x40685c
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
lea esi, [ebp - 0x27c]
call fcn.00401225
mov dword [ebp - 0x280], edi
mov byte [ebp - 4], 1
lea eax, [ebp - 0x25c]
lea esi, [ebp - 0x280]
mov dword [ebp - 0x260], ebx
call fcn.004011e0
mov eax, esi
push eax
call fcn.004024fa
push 1
push dword [ebp - 0x4d8]
call dword [sym.imp.USER32.dll_EndDialog]
push ebx
push 1
lea esi, [ebp - 0x27c]
mov dword [ebp - 0x4d8], eax
mov dword [ebp - 0x280], edi
call fcn.0040146e
mov eax, dword [ebp - 0x4d8]
mov dword [ebp - 0x4d8], eax
jmp 0x4068cd
Function at 0x408e7f
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push esi
mov esi, eax
push esi
call fcn.0043dffc
pop ecx
test eax, eax
ja 0x408e9a
xor eax, eax
jmp 0x408f4d
push ebx
push 0x38
xor ebx, ebx
lea eax, [ebp - 0x58]
push ebx
push eax
call fcn.0043e4b0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov dword [ebp - 0x5c], 0x3c
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x48], eax
cmp byte [ebp + 0x10], bl
je 0x408ece
mov dword [ebp - 0x50], str.runas
lea eax, [ebp - 0x5c]
push eax
mov dword [ebp - 0x40], 1
mov dword [ebp - 0x58], 0x40
mov dword [ebp - 0x54], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov dword [ebp - 4], eax
cmp byte [ebp + 0x14], bl
je 0x408f40
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push 0x46
push dword [ebp - 0x24]
call edi
cmp eax, 0x102
jne 0x408f3f
mov esi, dword [sym.imp.USER32.dll_PeekMessageW]
jmp 0x408f22
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 1
push ebx
push ebx
push ebx
lea eax, [ebp - 0x20]
push eax
call esi
test eax, eax
jne 0x408f0e
push 0x46
push dword [ebp - 0x24]
call edi
cmp eax, 0x102
je 0x408f22
pop edi
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 4]
pop ebx
pop esi
leave
ret