joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4047b3
Capabilities:
Get graphical window text

Disassembly:
push 0x444
mov eax, 0x470750
call fcn.0045723a
push 0x1000
call fcn.00452372
mov edi, dword [sym.imp.USER32.dll_GetWindowTextW]
mov ebx, eax
mov eax, dword [esi + 0x8ac]
xor ecx, ecx
mov word [ebx], cx
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
mov dword [esp], 0x800
push ebx
push eax
call edi
mov ecx, dword [esi + 0x8b4]
mov eax, dword [ecx]
push ebx
call dword [eax + 0x3c]
mov ecx, eax
call fcn.00420290
mov eax, dword [esi + 0x8c0]
xor ecx, ecx
mov word [ebx], cx
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
push 0x800
push ebx
push eax
call edi
push ebx
lea eax, [ebp - 0x3c]
call fcn.004025ce
xor edi, edi
mov dword [ebp - 4], edi
mov ecx, dword [esi + 0x8b4]
push eax
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, eax
call fcn.0042af10
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.004025ff
push ebx
call fcn.004532eb
pop ecx
mov ecx, dword [esi + 0x8b4]
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ebx, eax
call fcn.004201b0
mov edx, eax
lea eax, [ebp - 0x450]
call fcn.00404310
mov ecx, ebx
call fcn.00429820
test al, al
jne 0x404880
xor al, al
jmp 0x404904
mov ecx, dword [ebx + 0x8d30]
mov eax, dword [ecx]
push 8
lea edx, [ebp - 0x20]
push edx
lea edx, [ebp - 0x450]
push edx
call dword [eax]
mov ecx, 0x47a190
lea eax, [ebp - 0x20]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4048c5
cmp dx, di
je 0x4048c1
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4048c5
add eax, 4
add ecx, 4
cmp dx, di
jne 0x40489f
xor eax, eax
jmp 0x4048ca
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
je 0x404902
mov eax, dword [esi + 0x8b4]
call fcn.00404075
mov ebx, dword [eax + 0x10]
push 0x10
push edi
push 0x47a194
push 0x47a1c0
call fcn.004089f0
pop ecx
pop ecx
call fcn.00416e60
push eax
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x404879
mov al, 1
call fcn.00457284
ret

Function at 0x405182
Capabilities:
Check mutex on windows

Disassembly:
push 0x3c
mov eax, 0x46e9b5
call fcn.0045723a
xor ebx, ebx
cmp dword [esi + 4], ebx
jne 0x405242
lea edi, [esi + 8]
push edi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
cmp eax, 0xb7
jne 0x405203
push str.cant_create_mutex
lea eax, [ebp - 0x2c]
call fcn.004025ce
push edi
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 4], ebx
call fcn.0040260d
lea eax, [ebp - 0x2c]
call fcn.00402639
mov ecx, dword [esi + 0x208]
push eax
push str.ERROR
call fcn.00417c10
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x2c]
mov dword [esi + 4], ebx
call fcn.004025ff
xor eax, eax
inc eax
jmp 0x405244
push str.Mutex_is_created
lea eax, [ebp - 0x48]
call fcn.004025ce
push edi
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 4], 1
call fcn.0040260d
lea eax, [ebp - 0x48]
call fcn.00402639
mov ecx, dword [esi + 0x208]
push eax
push str.INFO
call fcn.00417c10
lea ecx, [ebp - 0x48]
call fcn.004025ff
xor eax, eax
call fcn.00457284
ret
Function at 0x4066f0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x140c
call fcn.004675f0
mov eax, dword [0x491654]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ecx]
lea ecx, [ebp - 0x140c]
push ecx
lea edx, [ebp - 0x404]
push edx
lea ecx, [ebp - 0x1408]
push ecx
push 0
push eax
push esi
mov dword [ebp - 0x140c], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40678c
mov eax, dword [ebp - 0x1408]
cmp eax, 1
je 0x406754
cmp eax, 2
je 0x406759
cmp eax, 7
je 0x406754
cmp eax, 3
jne 0x40678c
cmp eax, 2
jne 0x40677b
push 0x1000
lea edx, [ebp - 0x1404]
push edx
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea ecx, [ebp - 0x1404]
push ecx
jmp 0x406782
lea edx, [ebp - 0x404]
push edx
push ebx
push edi
call fcn.004533f1
add esp, 0xc
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00452dc2
mov esp, ebp
pop ebp
ret

Function at 0x4067b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x491654]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ecx]
lea ecx, [ebp - 0x40c]
push ecx
lea edx, [ebp - 0x404]
push edx
lea ecx, [ebp - 0x410]
push ecx
push 0
push eax
push esi
mov dword [ebp - 0x408], 0
mov dword [ebp - 0x40c], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x406828
cmp dword [ebp - 0x410], 4
jne 0x406828
mov eax, dword [ebp - 0x40c]
push 4
lea edx, [ebp - 0x404]
push edx
push eax
lea ecx, [ebp - 0x408]
push ecx
call fcn.00453f24
add esp, 0x10
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x408]
xor ecx, ebp
pop esi
call fcn.00452dc2
mov esp, ebp
pop ebp
ret

Function at 0x406850
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
or esi, 0xffffffff
test edi, edi
je 0x4068b3
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4068b3
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406880
mov ecx, dword [ebp + 8]
sub eax, edx
mov edx, dword [ebp - 4]
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push edi
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4068c0
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x830
mov eax, dword [0x491654]
xor eax, esp
mov dword [esp + 0x82c], eax
mov eax, dword [ebp + 8]
push esi
push edi
lea edx, [esp + 0x30]
push edx
xor ecx, ecx
push 0x400
mov dword [esp + 0x14], eax
mov word [ebx], cx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
cmp word [esp + 0x32], 0
lea esi, [esp + 0x30]
mov dword [esp + 8], 0
je 0x40699e
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x406980
mov ax, word [esi]
mov word [esp + 0x28], ax
xor eax, eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x24]
mov word [esp + 0x32], ax
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x3a], 0x5c003a
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x406980
mov edi, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
shrd edi, edx, 0x14
shr edx, 0x14
cmp edi, dword [esp + 8]
jbe 0x406980
push esi
push 8
push ebx
mov dword [esp + 0x14], edi
call fcn.004533f1
mov eax, dword [esp + 0x18]
add esp, 0xc
mov dword [eax], edi
lea esp, [esp]
add esi, 2
cmp word [esi], 0
jne 0x406980
cmp word [esi + 2], 0
je 0x40699e
add esi, 2
cmp word [esi + 2], 0
jne 0x406910
mov ecx, dword [esp + 0x834]
pop edi
pop esi
xor ecx, esp
call fcn.00452dc2
mov esp, ebp
pop ebp
ret

Function at 0x4069c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
cmp word [edi], 0
je 0x406a44
test ebx, ebx
je 0x406a1b
push esi
push 0x800
call fcn.00452372
add esp, 4
mov esi, eax
mov eax, dword [ebp + 8]
push eax
push edi
push 0x47a998
push 0x47a9f8
call fcn.004089f0
add esp, 8
push eax
push 0x400
push esi
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x14
push esi
push str.INFO
mov ecx, ebx
call fcn.00417c10
push esi
call fcn.004532eb
add esp, 4
pop esi
mov ecx, dword [ebp + 8]
push 1
push 0
push ecx
push edi
push 0x47a9fc
push 0x47aa04
call fcn.004089f0
add esp, 8
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop ebp
ret
Function at 0x406a50
Capabilities:
Create a process with modified i/o handles and window
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x220
mov eax, dword [0x491654]
xor eax, esp
mov dword [esp + 0x21c], eax
mov eax, dword [ebp + 8]
push esi
push edi
push 0x44
push 0x40
mov edi, ecx
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, dword [ebp + 0xc]
mov esi, eax
mov eax, dword [ebp + 0x10]
neg edi
sbb edi, edi
mov dword [esp + 8], 0xfffffffb
and edi, 0xfffffff6
push 0x47aa08
add edi, 0xa
push 0x47a9f8
mov dword [esi], 0x44
mov dword [esi + 0x2c], 0x101
mov word [esi + 0x30], di
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x38], ecx
call fcn.004089f0
add esp, 8
push eax
push str.INFO
mov ecx, ebx
call fcn.00417c10
mov edi, dword [esp + 0xc]
push edi
push str.INFO
mov ecx, ebx
call fcn.00417c10
lea edx, [esp + 0x10]
push edx
push esi
push 0
push 0
push 0
push 1
push 0
push 0
push edi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x406b92
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x10]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push str.nd_waiting_process_:
push 0x47a9f8
call fcn.004089f0
add esp, 8
push eax
push str.INFO
mov ecx, ebx
call fcn.00417c10
push edi
push str.INFO
mov ecx, ebx
call fcn.00417c10
mov edx, dword [esp + 0x10]
lea ecx, [esp + 8]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x406b7f
cmp dword [esp + 8], 0x103
jne 0x406b87
mov eax, dword [esp + 0x10]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [esp + 8], 0xfffffffc
jmp 0x406b87
mov dword [esp + 8], 0xfffffffe
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 8]
test eax, eax
je 0x406bd7
push eax
push ecx
push str.xit_code_is__d
push 0x47a9f8
call fcn.004089f0
add esp, 0xc
push eax
lea edx, [esp + 0x28]
push 0x100
push edx
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x10
lea eax, [esp + 0x20]
push eax
push str.INFO
mov ecx, ebx
call fcn.00417c10
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x224]
pop edi
pop esi
xor ecx, esp
call fcn.00452dc2
mov esp, ebp
pop ebp
ret
Function at 0x406bf0
Capabilities:
Create pipe
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
mov edi, eax
xor eax, eax
push eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 4]
push edx
mov dword [ebp - 0x18], 0xc
mov dword [ebp - 0x10], 1
call dword [sym.imp.KERNEL32.dll_CreatePipe]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
push eax
push ecx
push edx
mov ecx, 1
call fcn.00406a50
push 0x100
push 0
push edi
mov esi, eax
call fcn.0045e9a0
add esp, 0x18
test esi, esi
jne 0x406c67
mov ecx, dword [ebp - 4]
push esi
lea eax, [ebp - 0xc]
push eax
push 0x100
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov eax, dword [ebp - 4]
push eax
call edi
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x406c90
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
xor eax, eax
push eax
push 1
push 3
push eax
push 1
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x406ccf
lea ecx, [ebp - 0xc]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
pop esi
mov esp, ebp
pop ebp
ret

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

Disassembly:
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x406cf6
test al, 0x10
je 0x406cf6
mov eax, 1
ret
xor eax, eax
ret

Function at 0x406f20
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.004675f0
mov eax, dword [0x491654]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x1004]
push eax
push 0
push 0
push 0x26
push 0
mov dword [ebp - 0x1008], 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea ecx, [ebp - 0x1004]
push ecx
mov eax, esi
call fcn.004025ce
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, esi
call fcn.00452dc2
mov esp, ebp
pop ebp
ret
Function at 0x407030
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push 0
push 1
push 3
push 0
push 1
push SysReAllocString
push eax
mov dword [edi], 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4070af
lea ecx, [ebp - 0x10]
push ecx
push esi
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x4070a8
mov edx, dword [ebp - 0x10]
inc edx
push edx
call fcn.00452372
mov edx, dword [ebp - 0x10]
add esp, 4
push 0
lea ecx, [ebp - 4]
push ecx
push edx
push eax
push esi
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [edi]
mov ecx, dword [ebp - 0x10]
mov byte [ecx + eax], 0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x407140
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x491654]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push 0x110
lea eax, [ebp - 0x124]
push ebx
push eax
mov byte [ebp - 0x129], bl
mov dword [ebp - 0x128], 0x114
call fcn.0045e9a0
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [ebp - 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x118], 2
mov dword [ebp - 0x130], ebx
je 0x4071aa
mov byte [ebp - 0x129], 1
jmp 0x407279
lea edx, [ebp - 0x130]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x407279
mov ecx, dword [ebp - 0x130]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x134]
push eax
push ebx
push ebx
push 2
push ecx
mov dword [ebp - 0x14], 0x201
mov dword [ebp - 0x10], 0x5000000
mov dword [ebp - 0xc], 0x20
mov dword [ebp - 8], 0x220
call edi
test eax, eax
jne 0x407278
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x407278
mov edx, dword [ebp - 0x134]
push esi
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
cmp esi, ebx
je 0x407277
mov ecx, dword [ebp - 0x134]
mov edx, dword [ebp - 0x130]
lea eax, [ebp - 0x134]
push eax
push ecx
push esi
push 2
push edx
call edi
test eax, eax
je 0x407270
xor edi, edi
cmp dword [esi], ebx
jbe 0x407270
lea ebx, [esi + 4]
jmp 0x407250
mov ecx, dword [ebx]
lea eax, [ebp - 0x14]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x407268
mov byte [ebp - 0x129], 1
inc edi
add ebx, 8
cmp edi, dword [esi]
jb 0x407250
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
pop edi
mov edx, dword [ebp - 0x130]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x129]
xor ecx, ebp
pop ebx
call fcn.00452dc2
mov esp, ebp
pop ebp
ret
Function at 0x4072a0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.004675f0
mov eax, dword [0x491654]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
push 0x47ab74
push eax
mov edi, ecx
call fcn.00453b3b
mov esi, eax
add esp, 8
test esi, esi
je 0x4072ef
push 0x47ab7c
push edi
call fcn.00453b3b
add esp, 8
mov edi, eax
push esi
test edi, edi
jne 0x407301
call fcn.00454340
add esp, 4
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00452dc2
mov esp, ebp
pop ebp
ret
push 0x1000
lea eax, [ebp - 0x1004]
push 1
push eax
call fcn.00453f07
add esp, 0x10
test eax, eax
je 0x40734b
jmp 0x407320
push edi
push eax
lea ecx, [ebp - 0x1004]
push 1
push ecx
call fcn.004540f0
push esi
push 0x1000
lea edx, [ebp - 0x1004]
push 1
push edx
call fcn.00453f07
add esp, 0x20
test eax, eax
jne 0x407320
push esi
call fcn.00454340
push edi
call fcn.00454340
mov ecx, dword [ebp - 4]
add esp, 8
pop edi
xor ecx, ebp
mov al, 1
pop esi
call fcn.00452dc2
mov esp, ebp
pop ebp
ret
Function at 0x4078e0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push 0x47acc4
push 0x47ac38
mov ebx, eax
call fcn.004089f0
add esp, 8
push eax
push str.INFO
mov ecx, edi
call fcn.00417c10
mov eax, ebx
call fcn.00402639
push eax
push str.INFO
mov ecx, edi
call fcn.00417c10
mov eax, dword [ebp + 0xc]
movzx ecx, word [ebp + 8]
push eax
push ecx
push 0
mov byte [ebp - 1], 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x4079da
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
push 0
push 2
push 0
push 0
mov dword [ebp - 8], eax
push 0x40000000
mov eax, ebx
mov dword [ebp + 8], 0
call fcn.00402639
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4079ac
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
push 0
lea edx, [ebp + 8]
push edx
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov bl, 1
test eax, eax
jne 0x40799d
mov bl, byte [ebp - 1]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.ant_create_file
push 0x47aa8c
call fcn.004089f0
add esp, 8
push eax
push str.ERROR
mov ecx, edi
call fcn.00417c10
push edi
call fcn.00417b70
mov al, byte [ebp - 1]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.esource_file_not_found
push 0x47ad44
call fcn.004089f0
add esp, 8
push eax
push str.ERROR
mov ecx, edi
call fcn.00417c10
mov al, byte [ebp - 1]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x407df0
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46e91b
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x491654]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x407e2c
test al, 0x10
jne 0x407e3d
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
test eax, eax
jne 0x407ecb
lea edi, [ebp - 0x234]
call fcn.00408020
mov eax, edi
mov dword [ebp - 4], 0
call fcn.00402639
push eax
push esi
push str.sTest__s
push 0x47acc0
call fcn.004089f0
add esp, 8
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x14
push 0
push 0
push 2
push 0
push 0
push 0x40000000
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x407ec0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, edi
call fcn.004025ff
mov al, 1
jmp 0x407ecd
lea ecx, [ebp - 0x234]
call fcn.004025ff
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00452dc2
mov esp, ebp
pop ebp
ret
Function at 0x4082b0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x491654]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
push edi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
push 0x22c
mov esi, eax
lea eax, [ebp - 0x230]
push edi
push eax
call fcn.0045e9a0
add esp, 0xc
lea ecx, [ebp - 0x230]
push ecx
push esi
mov dword [ebp - 0x230], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x408360
mov ecx, ebx
lea eax, [ebp - 0x20c]
jmp 0x408310
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x408336
test dx, dx
je 0x408332
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x408336
add eax, 4
add ecx, 4
test dx, dx
jne 0x408310
xor eax, eax
jmp 0x40833b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40834a
mov eax, dword [ebp - 0x228]
cmp eax, 0xffffffff
jne 0x40835e
lea edx, [ebp - 0x230]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x408303
jmp 0x408360
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00452dc2
mov esp, ebp
pop ebp
ret
Function at 0x4083b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47196b
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
mov eax, dword [0x491654]
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 eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov esi, edx
mov dword [ebp - 0x68], eax
mov eax, esi
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x70], ecx
call fcn.00402639
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x408406
test al, 0x10
jne 0x408470
push 0x47ae04
push 0x47aa8c
call fcn.004089f0
add esp, 8
push eax
lea eax, [ebp - 0x2c]
call fcn.004025ce
mov edi, eax
push 0
push esi
or eax, 0xffffffff
mov dword [ebp - 4], 0
call fcn.004030d3
call fcn.00402639
push eax
push str.INFO
mov ecx, ebx
call fcn.00417c10
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.004025ff
mov eax, esi
call fcn.00402639
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
test eax, eax
je 0x408470
push ebx
call fcn.00417b70
lea edx, [ebp - 0x118]
push edx
call fcn.0040263e
mov dword [ebp - 4], 1
lea eax, [ebp - 0x2c]
call fcn.004025a7
mov edi, eax
lea esi, [ebp - 0x100]
mov byte [ebp - 4], 2
call fcn.00403494
mov eax, edi
call fcn.00404ff2
mov ebx, eax
mov eax, edi
call fcn.00402639
push eax
mov eax, dword [ebp - 0xc0]
call fcn.004037d1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.004025ff
mov eax, dword [ebp - 0x118]
mov eax, dword [eax + 4]
push 0
lea eax, [ebp + eax - 0x118]
xor ecx, ecx
call fcn.00402f89
mov edi, dword [ebp - 0x6c]
lea ecx, [ebp - 0x108]
push edi
push ecx
call fcn.0040bd40
mov eax, dword [edi + 0x10]
lea esi, [eax - 1]
add esp, 8
cmp eax, esi
jbe 0x408595
mov eax, edi
call fcn.0040331c
cmp word [eax + esi*2], 0x5c
lea eax, [eax + esi*2]
je 0x40851e
lea edx, [ebp - 0x108]
push edx
call fcn.0040bf50
add esp, 4
lea edi, [ebp - 0x48]
call fcn.00408020
mov eax, dword [ebp - 0x68]
push eax
push ecx
mov ecx, edi
push ecx
lea edx, [ebp - 0x108]
push edx
mov byte [ebp - 4], 3
call fcn.0040bd40
add esp, 0xc
push eax
call fcn.00403d98
add esp, 8
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x118]
call fcn.004026d1
call fcn.00402639
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x408575
test al, 0x10
jne 0x408575
mov eax, 1
jmp 0x408577
xor eax, eax
test al, al
lea ecx, [ebp - 0x2c]
sete bl
call fcn.004025ff
test bl, bl
jne 0x40859a
lea ecx, [ebp - 0x48]
call fcn.004025ff
jmp 0x408483
call fcn.004037c6
mov edi, dword [ebp - 0x70]
xor esi, esi
mov eax, edi
call fcn.004032be
lea ecx, [ebp - 0x64]
push ecx
lea eax, [ebp - 0x118]
call fcn.004026d1
push esi
push eax
or eax, 0xffffffff
mov byte [ebp - 4], 4
call fcn.004030d3
lea ecx, [ebp - 0x64]
call fcn.004025ff
lea ecx, [ebp - 0x48]
call fcn.004025ff
lea eax, [ebp - 0x118]
mov dword [ebp - 4], 0xffffffff
call fcn.00402210
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.00452dc2
mov esp, ebp
pop ebp
ret