joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420590
Capabilities:
Create directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x734
mov eax, dword [0x45e4b8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x72c], eax
mov ebx, edx
test edi, edi
je 0x42075a
mov ecx, dword [edi + 0x38]
test ecx, ecx
je 0x42075a
cmp ebx, dword [edi + 0x10]
jae 0x42075a
cmp dword [edi + 0x14], 1
jne 0x42075a
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + ebx*4]
add eax, dword [ecx]
je 0x42075a
movzx esi, word [eax + 0x1c]
mov ecx, 0x103
cmp esi, ecx
cmovae esi, ecx
add eax, 0x2e
push esi
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.0042c460
lea eax, [esi + 1]
mov byte [ebp + esi - 0x110], 0
add esp, 0xc
test eax, eax
je 0x42075a
push 0x104
lea eax, [ebp - 0x520]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x110]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x42075a
xor eax, eax
lea edx, [eax + 0x5c]
jmp 0x420650
movzx ecx, word [ebp + eax*2 - 0x520]
test ecx, ecx
je 0x420671
cmp ecx, 0x2f
jne 0x420669
mov word [ebp + eax*2 - 0x520], dx
inc eax
cmp eax, 0x104
jl 0x420650
lea eax, [ebp - 0x520]
push eax
push dword [ebp - 0x72c]
lea eax, [ebp - 0x318]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
je 0x42075a
mov edx, ebx
mov ecx, edi
call fcn.0041ea50
test eax, eax
lea eax, [ebp - 0x318]
je 0x4206c4
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00428e73
mov esp, ebp
pop ebp
ret
push eax
lea eax, [ebp - 0x728]
push 0x104
push eax
call fcn.0042b01a
add esp, 0xc
lea eax, [ebp - 0x728]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0
lea eax, [ebp - 0x728]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x318]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x42075a
push ecx
lea eax, [ebp - 0x730]
mov dword [ebp - 0x730], esi
push eax
push ecx
mov edx, ebx
mov dword [ebp - 0x72c], 0
mov ecx, edi
call fcn.0041ebc0
add esp, 0xc
push esi
test eax, eax
jne 0x42076d
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x318]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00428e73
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00428e73
mov esp, ebp
pop ebp
ret
Function at 0x420790
Capabilities:
Create directory
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x45e4b8]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x14]
mov esi, ecx
push eax
push esi
mov edi, edx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x42081c
push 0x40
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x1c], esi
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
push 0
push eax
movlpd qword [ebp - 0x64], xmm0
call fcn.0042ea00
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x1c]
mov ebx, dword [ebp - 0x10]
add esp, 0xc
mov dword [ebp - 0x30], eax
mov eax, 0x4204b0
mov dword [ebp - 0x38], 0x4204b0
test eax, eax
je 0x42081c
lea ecx, [ebp - 0x64]
call fcn.0041e0c0
test eax, eax
je 0x42081c
xor edx, edx
mov dword [ebp - 0x64], esi
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x60], ebx
call fcn.0041e4e0
test eax, eax
jne 0x42082f
lea ecx, [ebp - 0x64]
call fcn.0041f250
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00428e73
mov esp, ebp
pop ebp
ret
push 0
push edi
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
xor esi, esi
mov bl, 1
cmp dword [ebp - 0x54], esi
jbe 0x420879
push ecx
push edi
mov edx, esi
lea ecx, [ebp - 0x64]
call fcn.00420590
add esp, 8
test al, al
je 0x420877
inc esi
cmp esi, dword [ebp - 0x54]
jb 0x420843
lea ecx, [ebp - 0x64]
call fcn.0041f250
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00428e73
mov esp, ebp
pop ebp
ret
xor bl, bl
lea ecx, [ebp - 0x64]
call fcn.0041f250
mov ecx, dword [ebp - 8]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00428e73
mov esp, ebp
pop ebp
ret
Function at 0x4208a0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x45e4b8]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [edx + 0x14], 8
push ebx
push esi
push edi
mov esi, ecx
jb 0x4208c0
mov edx, dword [edx]
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x218]
push 0
push 0
push 0x104
push eax
push 0xffffffffffffffff
push edx
push 0
push 0
call edi
test eax, eax
je 0x4209ce
cmp dword [esi + 0x14], 8
jb 0x4208f1
mov eax, dword [esi]
jmp 0x4208f3
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push 0
push 0
push 0x104
lea ecx, [ebp - 0x110]
push ecx
push 0xffffffffffffffff
push eax
push 0
push 0
call edi
test eax, eax
je 0x4209ce
cmp dword [esi + 0x14], 8
jb 0x420923
mov esi, dword [esi]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4209ce
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push ebx
call fcn.004250ec
add esp, 4
mov dword [ebp - 0x21c], 0
mov esi, eax
lea eax, [ebp - 0x21c]
push 0
push eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4209c5
cmp ebx, dword [ebp - 0x21c]
jne 0x4209c5
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 0xc
lea edx, [ebp - 0x110]
lea ecx, [ebp - 0x218]
push ebx
push esi
call fcn.00420360
add esp, 0x14
push esi
test eax, eax
je 0x4209c6
call fcn.0042980d
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00428e73
mov esp, ebp
pop ebp
ret
push esi
call fcn.0042980d
add esp, 4
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00428e73
mov esp, ebp
pop ebp
ret

Function at 0x420bd0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
cmp dword [ebp + 0x14], 4
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
jne 0x420c26
test edi, edi
je 0x420c26
push 0
push 0
push 0
push edi
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x420c26
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push 0
push 0
xorps xmm0, xmm0
movlpd qword [esp + 0x10], xmm0
push dword [esp + 0x14]
push dword [esp + 0x14]
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x420c45
push dword [ebp + 0x18]
mov eax, dword [ecx]
push dword [ebp + 0x14]
push edi
push dword [ebp + 0xc]
push ecx
call dword [eax + 0x18]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x14
pop edi
mov eax, 0x80004001
pop esi
mov esp, ebp
pop ebp
ret 0x14
Function at 0x420c60
Capabilities:
Clear file content
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x45e4b8]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x420cd4
push 1
lea eax, [esp + 0x14]
xorps xmm0, xmm0
push eax
movlpd qword [esp + 0x18], xmm0
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x420cdd
lea eax, [esp + 0x18]
push eax
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x420cdd
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x18]
jne 0x420ccf
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x1c]
je 0x420cdd
mov edi, 1
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp byte [esi + 0xc], 0
jne 0x420ce6
mov dword [esi + 8], edi
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x420d09
mov eax, dword [ecx]
push ebx
push edi
push ecx
call dword [eax + 0x1c]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00428e73
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [esp + 0x24]
mov eax, 0x80004001
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00428e73
mov esp, ebp
pop ebp
ret 0xc

Function at 0x420d50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x200c
call fcn.0043c050
mov eax, dword [0x45e4b8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, dword [eax + 4]
mov eax, dword [ebx]
lea ecx, [ebp - 0x2008]
push ecx
push 0x2000
lea ecx, [ebp - 0x2004]
push ecx
push ebx
call dword [eax + 0xc]
mov esi, eax
mov eax, dword [ebp - 0x2008]
test eax, eax
je 0x420db6
push 0
lea ecx, [ebp - 0x200c]
push ecx
push eax
lea eax, [ebp - 0x2004]
push eax
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x420ddc
cmp esi, reloc.OLEAUT32.dll_VariantCopyInd
je 0x420e0d
test esi, esi
je 0x420d73
cmp esi, 1
je 0x420e0d
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00428e73
mov esp, ebp
pop ebp
ret 0x14
mov byte [edi + 0xc], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x420df2
movzx eax, ax
or eax, 0x80070000
mov dword [edi + 8], eax
mov eax, 0x80004004
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00428e73
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00428e73
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4211c0
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x449e58
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x45e4b8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push esi
push 0x4518ac
push 1
push 0
push 0x45197c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x42127c
push str.ROOTCIMV2
lea ecx, [ebp - 0x10]
call fcn.00420fc0
mov dword [ebp - 4], 0
mov eax, dword [eax]
test eax, eax
je 0x42121f
mov edx, dword [eax]
jmp 0x421221
xor edx, edx
mov ecx, dword [esi]
lea edi, [esi + 4]
push edi
push 0
push 0
mov eax, dword [ecx]
push 0
push 0
push 0
push 0
push edx
push ecx
call dword [eax + 0xc]
test eax, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
sets bl
call fcn.00421070
test bl, bl
jne 0x421274
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push dword [edi]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jns 0x421290
mov eax, dword [edi]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esi]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4217b0
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x45e4b8]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 0x20c]
mov edi, ecx
push eax
push 0
push 0
push 0x8023
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x4217f3
xor al, al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00428e73
mov esp, ebp
pop ebp
ret
push 0x45710c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x4217e2
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x421829
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4217e2
push str.data
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x4217e2
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.00402050
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop edi
call fcn.00428e73
mov esp, ebp
pop ebp
ret

Function at 0x421860
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0
push 0x80
push dword [ebp + 8]
mov dword [ebp - 4], eax
push 0
push 0
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4218d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x4218d1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 4]
cmp eax, 0xbb8
jae 0x4218d1
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0x80
push dword [ebp + 8]
push 0
push 0
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x421891
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4218e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x449ef8
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x45e4b8]
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 edi, ecx
xor eax, eax
mov dword [ebp - 0x58], 7
mov dword [ebp - 0x5c], 0
mov word [ebp - 0x6c], ax
lea ecx, [ebp - 0x6c]
mov dword [ebp - 4], eax
call fcn.004217b0
test al, al
je 0x4219a6
cmp dword [ebp - 0x58], 8
lea ecx, [ebp - 0x6c]
mov edx, SysReAllocStringLen
cmovae ecx, dword [ebp - 0x6c]
push ecx
push 3
call fcn.00421860
mov esi, eax
add esp, 8
cmp esi, 0xffffffff
je 0x4219a6
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x54]
push 0
push eax
push 0x40
lea eax, [ebp - 0x50]
push eax
push esi
call ebx
test eax, eax
je 0x421996
jmp 0x421970
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x421996
push eax
lea eax, [ebp - 0x50]
mov ecx, edi
push eax
call fcn.00405930
push 0
lea eax, [ebp - 0x54]
push eax
push 0x40
lea eax, [ebp - 0x50]
push eax
push esi
call ebx
test eax, eax
jne 0x421970
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [edi + 0x10], 0
seta bl
jmp 0x4219a8
xor bl, bl
cmp dword [ebp - 0x58], 8
jb 0x4219b9
push dword [ebp - 0x6c]
call fcn.00429834
add esp, 4
mov al, bl
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.00428e73
mov esp, ebp
pop ebp
ret

Function at 0x4219e0
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x45e4b8]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ecx + 0x14], 0x10
push ebx
push esi
mov esi, edx
jb 0x4219fe
mov eax, dword [ecx]
jmp 0x421a00
mov eax, ecx
mov dword [ebp - 0x18], eax
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0xc]
push eax
push 4
push 0
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], str.glority
push eax
push 0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x14], 7
push eax
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
cmp eax, 1
sete bl
test bl, bl
je 0x421a51
push dword [ebp - 0xc]
mov ecx, esi
push dword [ebp - 8]
call fcn.00402230
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.00428e73
mov esp, ebp
pop ebp
ret
Function at 0x421b60
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x449f68
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x45e4b8]
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 esi, ecx
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], eax
call fcn.004217b0
test al, al
je 0x421c1e
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x2c]
mov edx, 0x40000000
cmovae ecx, dword [ebp - 0x2c]
push ecx
push 2
call fcn.00421860
mov ebx, eax
add esp, 8
cmp ebx, 0xffffffff
je 0x421c1e
cmp dword [esi + 0x14], 0x10
lea edi, [esi + 0x10]
mov dword [ebp - 0x14], 0
jb 0x421be4
mov esi, dword [esi]
push 0
lea eax, [ebp - 0x14]
push eax
push dword [edi]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
cmp eax, dword [edi]
je 0x421c19
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x14]
cmp eax, dword [edi]
sete bl
jmp 0x421c20
xor bl, bl
cmp dword [ebp - 0x18], 8
jb 0x421c31
push dword [ebp - 0x2c]
call fcn.00429834
add esp, 4
mov al, bl
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.00428e73
mov esp, ebp
pop ebp
ret
Function at 0x421c50
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x449fa0
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x45e4b8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ecx + 0x14], 8
mov eax, dword [ecx + 0x10]
jb 0x421c84
mov ecx, dword [ecx]
add eax, eax
mov dword [ebp - 0x2c], 0xf
push eax
push ecx
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
call fcn.00402230
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 0x10
mov dword [ebp - 0x54], str.glority
cmovae eax, dword [ebp - 0x40]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x48]
push eax
push 4
push 0
push 0
lea eax, [ebp - 0x58]
mov dword [ebp - 0x58], 7
push eax
push 0
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.CRYPT32.dll_CryptProtectData]
cmp eax, 1
sete al
test al, al
je 0x421d28
push dword [ebp - 0x48]
lea ecx, [ebp - 0x28]
push dword [ebp - 0x44]
call fcn.00402230
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [ebp - 0x28]
call fcn.00421b60
mov bl, al
jmp 0x421d2a
xor bl, bl
cmp dword [ebp - 0x14], 0x10
jb 0x421d3b
push dword [ebp - 0x28]
call fcn.00429834
add esp, 4
cmp dword [ebp - 0x2c], 0x10
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
jb 0x421d5e
push dword [ebp - 0x40]
call fcn.00429834
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00428e73
mov esp, ebp
pop ebp
ret
Function at 0x442040
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x45e4b8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0042ec4d
mov dword [ebp - 0x14], eax
cmp dword [0x4619cc], esi
jne 0x442133
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4420c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x442213
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x442213
push 0x451788
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x442213
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4619cc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4619d0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4619d4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4619dc], eax
test eax, eax
je 0x442130
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4619d8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x442158
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x44214b
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x44216d
push 4
pop eax
jmp 0x442215
cmp dword [ebp - 0x14], esi
je 0x44216d
push dword [0x4619cc]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x442152
mov eax, dword [0x4619d8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4421cb
cmp dword [0x4619dc], edi
je 0x4421cb
push eax
call ebx
push dword [0x4619dc]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4421cb
test eax, eax
je 0x4421cb
call ecx
test eax, eax
je 0x4421c0
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4421c0
test byte [ebp - 8], 1
jne 0x4421cb
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4421fb
mov eax, dword [0x4619d0]
cmp eax, edi
je 0x4421f8
push eax
call ebx
test eax, eax
je 0x4421f8
call eax
mov esi, eax
test esi, esi
je 0x4421f8
mov eax, dword [0x4619d4]
cmp eax, edi
je 0x4421f8
push eax
call ebx
test eax, eax
je 0x4421f8
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4619cc]
call ebx
test eax, eax
je 0x442213
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x442215
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00428e73
mov esp, ebp
pop ebp
ret
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x431030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43101e
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219