joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e12d
Capabilities:
Get common file path

Disassembly:
mov eax, 0x46e8df
call fcn.0045454c
sub esp, 0x45c
push ebx
push esi
lea eax, [ebp - 0x260]
push edi
xor ebx, ebx
push eax
mov esi, ecx
push 0x104
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x58]
lea ecx, [esi + 8]
push eax
mov dword [ebp - 0x10], ecx
call fcn.0040e25f
mov eax, dword [eax + 0x10]
lea ecx, [ebp - 0x468]
push ecx
push ebx
push eax
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea ecx, [ebp - 0x58]
call fcn.0040d2ab
lea eax, [ebp - 0x468]
push ebx
push eax
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x24], 0x476698
mov dword [ebp - 0x1c], 0x476690
call fcn.0040d1e9
mov edi, 0x47668c
mov dword [ebp - 0x30], edi
cmp byte [esi + 0x28], bl
mov dword [ebp - 4], 1
je 0x40e21b
lea eax, [ebp - 0x58]
lea ecx, [ebp - 0x30]
push eax
call fcn.0040e25f
push dword [eax + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x260]
push eax
call esi
lea ecx, [ebp - 0x58]
call fcn.0040d2ab
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x58]
push ebx
push eax
call fcn.0040e38e
push dword [eax + 0x10]
lea eax, [ebp - 0x260]
push eax
call esi
lea ecx, [ebp - 0x58]
call fcn.0040d2ab
push dword [ebp - 0x20]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x20], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x30]
push ebx
push eax
mov ecx, esi
mov dword [esi + 0xc], 0x476698
mov dword [esi + 0x14], 0x476690
call fcn.0040e770
mov dword [esi], edi
mov dword [ebp - 0x14], 1
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], bl
call fcn.0040d2ab
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x40f9eb
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
xor eax, eax
mov byte [ebp - 0x1c], 0x49
cmp byte [ebp + 0xc], al
mov dword [ebp - 4], eax
mov byte [ebp - 0x1b], 0x6e
mov byte [ebp - 0x1a], 0x73
mov byte [ebp - 0x19], 0x74
mov byte [ebp - 0x18], 0x61
mov byte [ebp - 0x17], 0x6c
mov byte [ebp - 0x16], 0x6c
mov byte [ebp - 0x15], 0x53
mov byte [ebp - 0x14], 0x68
mov byte [ebp - 0x13], 0x69
mov byte [ebp - 0x12], 0x65
mov byte [ebp - 0x11], 0x6c
mov byte [ebp - 0x10], 0x64
mov byte [ebp - 0xf], al
je 0x40fa51
mov byte [ebp - 0xf], 0x20
mov byte [ebp - 0xe], 0x57
mov byte [ebp - 0xd], 0x69
mov byte [ebp - 0xc], 0x7a
mov byte [ebp - 0xb], 0x61
mov byte [ebp - 0xa], 0x72
mov byte [ebp - 9], 0x64
mov byte [ebp - 8], al
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xf]
push 1
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00403f1b
mov eax, dword [ebp + 8]
leave
ret 8
Function at 0x413063
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
mov eax, dword [eax]
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x413193
cmp byte [ebp + 0xc], bl
jne 0x413117
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea eax, [esi + 1]
push eax
push 8
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x413193
mov eax, dword [ebp + 8]
lea ecx, [ebp - 4]
push ebx
push ecx
mov eax, dword [eax]
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp + 0xc]
test eax, eax
je 0x413189
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.00454c90
mov eax, esp
push esi
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
mov dword [ebp + 8], eax
mov word [eax], bx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push dword [ebp + 8]
call fcn.00454574
pop ecx
mov ecx, dword [ebp + 0x10]
push eax
push dword [ebp + 8]
call fcn.00404ed2
push dword [ebp + 0xc]
jmp 0x413178
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea eax, [esi + 3]
push eax
push 8
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x413193
mov eax, dword [ebp + 8]
lea ecx, [ebp - 4]
push ebx
push ecx
mov eax, dword [eax]
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x413186
mov esi, dword [ebp + 0xc]
mov dword [ebp + 0xc], esi
cmp word [esi], 0xfeff
jne 0x413162
lea eax, [esi + 2]
mov dword [ebp + 0xc], eax
push dword [ebp + 0xc]
call fcn.00454574
pop ecx
mov ecx, dword [ebp + 0x10]
push eax
push dword [ebp + 0xc]
call fcn.00404ed2
push esi
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, 1
jmp 0x413195
push dword [ebp + 0xc]
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor al, al
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x413718
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
mov byte [ebp - 1], bl
je 0x413787
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x408]
push 0x400
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 8], 2
jb 0x41376a
movzx eax, byte [ebp - 0x408]
cmp eax, 0xffffffff
jne 0x41376a
movzx eax, byte [ebp - 0x407]
cmp eax, 0xfffffffe
jne 0x41376a
mov byte [ebp - 1], 1
jmp 0x413787
xor eax, eax
cmp dword [ebp - 8], ebx
jbe 0x413787
cmp byte [ebp - 1], bl
jne 0x413787
cmp byte [ebp + eax - 0x408], bl
sete byte [ebp - 1]
inc eax
cmp eax, dword [ebp - 8]
jb 0x413771
push ebx
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov al, byte [ebp - 1]
pop ebx
leave
ret 4
Function at 0x415991
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push eax
push 1
push 0
push str.SoftwareInstallShieldISWI7.0SetupExeLog
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4159e8
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push 0x494940
push 0
push 0
push str.SetupLogFileName
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4159df
mov byte [0x49696c], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret

Function at 0x41736c
Capabilities:
Hide graphical window

Disassembly:
push dword [0x4969a8]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x41739c
push 0
push dword [0x4969a8]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x4969b0]
push 0
mov ecx, dword [eax + 0x26c]
call fcn.004331c7
ret

Function at 0x41739d
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x2c]
push edi
push eax
push dword [0x4969a8]
call esi
lea eax, [ebp - 0x6c]
xor ebx, ebx
push eax
push ebx
call esi
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 1
call edi
push eax
push ebx
call edi
push eax
push ebx
lea eax, [ebp - 0x1c]
push ebx
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp + 8]
sub eax, dword [ebp - 0x2c]
mov dword [ebp - 4], 0x1e
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x28]
mov dword [ebp - 8], eax
call fcn.0042ac86
cmp dword [eax], 1
je 0x417407
cmp dword [eax + 4], ebx
je 0x41745c
push ebx
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x41745c
lea eax, [ebp - 0x3c]
mov dword [ebp - 4], 0x46
push eax
push edi
call esi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
lea esi, [ebp - 0x1c]
lea edi, [ebp - 0x5c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x5c]
movsd dword es:[edi], dword [esi]
push eax
lea eax, [ebp - 0x1c]
push eax
movsd dword es:[edi], dword [esi]
call dword [sym.imp.USER32.dll_SubtractRect]
mov esi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x18]
sub esi, ebx
mov ecx, dword [ebp - 0x14]
mov eax, esi
mov edi, dword [ebp - 0x1c]
cdq
idiv dword [ebp - 4]
sub ecx, edi
push 5
push 0
push 0
sub ebx, eax
mov eax, ecx
cdq
idiv dword [ebp - 4]
sub ebx, dword [ebp - 8]
add ebx, esi
push ebx
sub edi, eax
sub edi, dword [ebp - 0xc]
add edi, ecx
push edi
push 0
push dword [0x4969a8]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41bbd3
Capabilities:
Delete file
Enumerate files on windows
Get common file path

Disassembly:
mov eax, 0x46fe47
call fcn.0045454c
sub esp, 0xad4
push ebx
push esi
push edi
xor ebx, ebx
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0xade]
mov word [ebp - 0xae0], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0xae0]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0xae0]
mov edi, 0x4765e0
mov esi, 0x4765d8
mov dword [ebp - 0x68], edi
test eax, eax
mov dword [ebp - 0x48], esi
lea eax, [ebp - 0xae0]
jne 0x41bc37
mov eax, 0x4947d8
lea ecx, [ebp - 0xf]
push ebx
push ecx
push eax
lea ecx, [ebp - 0x68]
call fcn.004011a9
mov eax, str..mst
mov dword [ebp - 4], ebx
mov ecx, eax
mov dword [ebp - 0x3c], edi
test ecx, ecx
mov dword [ebp - 0x1c], esi
jne 0x41bc5e
mov eax, 0x4947d8
lea ecx, [ebp - 0xd]
push ebx
push ecx
push eax
lea ecx, [ebp - 0x3c]
call fcn.004011a9
lea eax, [ebp - 0x3c]
lea ecx, [ebp - 0x68]
push eax
mov byte [ebp - 4], 1
call fcn.004241b5
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], bl
call fcn.00401093
mov eax, dword [ebp - 0x60]
mov byte [ebp - 4], 2
cmp eax, ebx
jne 0x41bc97
mov eax, 0x4765fc
lea ecx, [ebp - 0x2e0]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
je 0x41bd8f
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x2d4]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jg 0x41bd69
lea eax, [ebp - 0xae0]
mov dword [ebp - 0x3c], edi
test eax, eax
mov dword [ebp - 0x1c], esi
lea eax, [ebp - 0xae0]
jne 0x41bce7
mov eax, 0x4947d8
lea ecx, [ebp - 0xd]
push ebx
push ecx
push eax
lea ecx, [ebp - 0x3c]
call fcn.004011a9
lea eax, [ebp - 0x2b4]
mov byte [ebp - 4], 3
test eax, eax
mov dword [ebp - 0x90], edi
mov dword [ebp - 0x70], esi
lea eax, [ebp - 0x2b4]
jne 0x41bd17
mov eax, 0x4947d8
lea ecx, [ebp - 0xe]
push ebx
push ecx
push eax
lea ecx, [ebp - 0x90]
call fcn.004011a9
lea eax, [ebp - 0x90]
lea ecx, [ebp - 0x3c]
push eax
mov byte [ebp - 4], 4
call fcn.004241b5
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 3
call fcn.00401093
mov eax, dword [ebp - 0x34]
cmp eax, ebx
jne 0x41bd56
mov eax, 0x4765fc
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 2
call fcn.00401093
lea eax, [ebp - 0x2e0]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41bcb4
mov eax, dword [sym.imp.KERNEL32.dll_FindClose]
cmp eax, ebx
je 0x41bd8f
push dword [ebp - 0x14]
call eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.00401093
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x421ba8
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x470912
call fcn.0045454c
sub esp, 0x290
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], edi
lea eax, [ebp - 0x12]
mov ebx, 0x4765e0
mov esi, 0x4765d8
push edi
push eax
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 1
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x24], esi
call fcn.0040190c
push dword [ebp + 0xc]
lea eax, [ebp - 0x6c]
mov byte [ebp - 4], 2
push eax
call fcn.00421d82
mov eax, dword [eax + 8]
pop ecx
cmp eax, edi
pop ecx
jne 0x421c05
mov eax, 0x4765fc
push 0x20019
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x10]
call fcn.00416de8
neg eax
sbb al, al
lea ecx, [ebp - 0x6c]
inc al
mov byte [ebp + 0xf], al
call fcn.00401093
cmp byte [ebp + 0xf], 0
je 0x421d3a
mov word [ebp - 0x29c], di
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x29a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x1c]
and dword [ebp + 0xc], 0
push eax
lea eax, [ebp - 0x29c]
push eax
lea eax, [ebp + 0xc]
push eax
push 0
push 0x48d1c8
mov dword [ebp - 0x1c], 0x104
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x421c9a
mov edi, dword [ebp + 8]
lea eax, [ebp + 0xf]
push 0
push eax
mov ecx, edi
mov dword [edi], ebx
mov dword [edi + 0x20], esi
call fcn.0040190c
mov dword [ebp - 0x18], 1
jmp 0x421d56
lea eax, [ebp - 0x29c]
mov edi, 0x4947d8
test eax, eax
lea eax, [ebp - 0x29c]
jne 0x421cb1
mov eax, edi
push eax
lea ecx, [ebp - 0x44]
call fcn.0040b326
mov eax, 0x48d1c4
mov dword [ebp - 0x6c], ebx
mov ecx, eax
mov dword [ebp - 0x4c], esi
test ecx, ecx
jne 0x421ccd
mov eax, edi
lea ecx, [ebp + 0xf]
push 0
push ecx
push eax
lea ecx, [ebp - 0x6c]
call fcn.004011a9
mov eax, 0x48d1c0
mov byte [ebp - 4], 3
mov ecx, eax
mov dword [ebp - 0x94], ebx
test ecx, ecx
mov dword [ebp - 0x74], esi
jne 0x421cf6
mov eax, edi
lea ecx, [ebp - 0x11]
push 0
push ecx
push eax
lea ecx, [ebp - 0x94]
call fcn.004011a9
lea eax, [ebp - 0x6c]
lea ecx, [ebp - 0x44]
push eax
lea eax, [ebp - 0x94]
push eax
mov byte [ebp - 4], 4
call fcn.004243ad
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 3
call fcn.00401093
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 2
call fcn.00401093
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x44]
push 0
push eax
mov ecx, edi
mov dword [edi], ebx
mov dword [edi + 0x20], esi
call fcn.00401d8c
mov dword [ebp - 0x18], 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
call fcn.00401093
cmp dword [ebp - 0x10], 0
je 0x421d71
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x422f14
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x470b84
call fcn.0045454c
push ecx
mov eax, 0x302c
call fcn.00454c90
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
mov dword [ebp - 4], ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
jne 0x422f95
call esi
cmp byte [ebp + 0x14], bl
je 0x422f72
cmp eax, 0x20
je 0x422f6b
cmp eax, 0x21
jne 0x422f72
xor eax, eax
jmp 0x4230b5
cmp eax, ebx
jle 0x422f82
and eax, 0xffff
or eax, 0x80070000
cmp eax, ebx
jge 0x422f95
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push 0x480d20
push eax
call fcn.00455746
push 0x2800
call fcn.0045469e
cmp eax, ebx
mov edi, eax
pop ecx
mov dword [ebp - 0x2c], edi
setne byte [ebp - 0x30]
mov byte [ebp - 4], 1
mov dword [ebp + 0x14], ebx
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x2800
push eax
push edi
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.00438fa7
cmp eax, ebx
mov dword [ebp - 0x18], eax
je 0x423010
mov dword [ebp - 0x2038], eax
lea eax, [ebp - 0x2034]
push ebx
push eax
call fcn.00454ce9
pop ecx
lea esi, [ebp - 0x2038]
pop ecx
lea edi, [ebp - 0x1034]
mov ecx, 0x401
lea eax, [ebp - 0x1034]
mov word [ebp - 0x1834], bx
push 0x480d10
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.00455746
cmp dword [ebp + 0xc], ebx
je 0x423089
lea eax, [ebp - 0x1c]
push ebx
push eax
push dword [ebp + 0xc]
push edi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x423056
call esi
test eax, eax
jg 0x423035
call esi
jmp 0x423041
call esi
and eax, 0xffff
or eax, 0x80070000
cmp eax, ebx
jge 0x423056
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push 0x480d20
push eax
call fcn.00455746
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp + 0xc]
je 0x423089
call esi
test eax, eax
jg 0x423068
call esi
jmp 0x423074
call esi
and eax, 0xffff
or eax, 0x80070000
cmp eax, ebx
jge 0x423089
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push 0x480d20
push eax
call fcn.00455746
mov eax, dword [ebp + 0xc]
add dword [ebp + 0x14], eax
cmp eax, ebx
ja 0x422fb2
cmp byte [ebp - 0x30], bl
je 0x4230a3
push edi
call fcn.00439086
pop ecx
cmp dword [ebp - 0x14], 0xffffffff
je 0x4230b2
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x4238e6
Capabilities:
Delete directory
Delete file

Disassembly:
mov eax, 0x470c80
call fcn.0045454c
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
mov edi, dword [esi + 0x2c]
mov eax, dword [esi + 0x30]
and dword [ebp - 4], 0
cmp edi, eax
je 0x423928
push ebx
lea ebx, [edi + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x423915
mov eax, 0x476650
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
add edi, 0x28
add ebx, 0x28
cmp edi, dword [esi + 0x30]
jne 0x42390a
pop ebx
mov eax, dword [esi + 8]
test eax, eax
jne 0x423934
mov eax, 0x476650
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [esi + 0x28]
call fcn.004079c5
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.00402424
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x427047
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x471262
call fcn.0045454c
push ecx
push ecx
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebp - 0x14], ebx
call fcn.00456084
mov eax, 0x477c08
lea edi, [ebx + 0x10]
mov esi, eax
and dword [ebp - 4], 0
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea edi, [ebx + 0x20]
mov esi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea ecx, [ebx + 0x30]
lea eax, [ebp - 0xd]
mov edi, 0x4765e0
mov esi, 0x4765d8
push 0
push eax
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.0040190c
lea ecx, [ebx + 0x58]
lea eax, [ebp - 0xe]
push 0
push eax
mov byte [ebp - 4], 1
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.0040190c
mov eax, dword [ebp + 8]
mov ecx, ebx
mov byte [ebp - 4], 2
mov dword [ebx], 0x476808
mov dword [ebx + 0xc], eax
call fcn.004271d5
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x4270d9
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x47128a
call fcn.0045454c
push ecx
push ecx
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebp - 0x14], ebx
call fcn.00456084
and dword [ebp - 4], 0
lea edi, [ebx + 0x30]
lea eax, [ebp - 0xd]
mov esi, 0x4765d8
push 0
push eax
mov ecx, edi
mov dword [edi], 0x4765e0
mov dword [edi + 0x20], esi
call fcn.0040190c
lea ecx, [ebx + 0x58]
lea eax, [ebp - 0xe]
push 0
push eax
mov byte [ebp - 4], 1
mov dword [ecx], 0x4765e0
mov dword [ecx + 0x20], esi
call fcn.0040190c
mov esi, dword [ebp + 8]
mov dword [ebx], 0x476808
mov ecx, edi
mov byte [ebp - 4], 2
mov eax, dword [esi + 0xc]
mov dword [ebx + 0xc], eax
lea eax, [esi + 0x30]
push eax
call fcn.00401d42
lea eax, [esi + 0x58]
lea ecx, [ebx + 0x58]
push eax
call fcn.00401d42
add esi, 0x20
lea edi, [ebx + 0x20]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea esi, [eax + 0x10]
lea edi, [ebx + 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x4298b1
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
and dword [ebp - 0x14], 0
push esi
push edi
mov edi, ecx
call fcn.0040116a
push 1
lea eax, [ebp - 0x150]
pop esi
mov dword [ebp - 0x150], 0x114
push eax
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x14c]
mov ecx, dword [ebp - 0x144]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x148]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x140]
mov dword [ebp - 4], eax
sub eax, 0
mov dword [ebp - 8], ecx
je 0x429961
dec eax
je 0x429956
dec eax
jne 0x429968
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x18], 2
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [ebp - 0x3c]
push 4
dec eax
pop ecx
je 0x429946
dec eax
je 0x42993d
dec eax
jne 0x429949
mov dword [ebp - 0x18], 5
jmp 0x429949
mov dword [ebp - 0x18], 3
jmp 0x429949
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x14c], ecx
jb 0x429968
mov dword [ebp - 0x14], esi
jmp 0x429968
movzx eax, cx
mov dword [ebp - 0x14], esi
mov dword [ebp - 8], eax
jmp 0x429968
mov dword [ebp - 0x18], 7
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
call fcn.00401166
mov ecx, eax
call fcn.0042ac8d
mov eax, esi
pop edi
pop esi
leave
ret

Function at 0x429da8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov eax, edx
dec edx
test eax, eax
je 0x429de5
mov eax, dword [ecx + 0xd8]
push esi
lea esi, [edx + 1]
mov edx, dword [ebp + 8]
push edi
mov ecx, dword [ebp + 0x10]
movzx edi, byte [edx]
and ecx, 0xff
xor ecx, edi
mov edi, dword [ebp + 0x10]
shr edi, 8
mov ecx, dword [eax + ecx*4]
inc edx
xor edi, ecx
dec esi
mov dword [ebp + 0x10], edi
jne 0x429dc3
pop edi
pop esi
mov eax, dword [ebp + 0x10]
pop ebp
ret 0xc
Function at 0x42e1c2
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x471c79
call fcn.0045454c
sub esp, 0x8d0
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x8da]
mov word [ebp - 0x8dc], bx
push 0x400
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x8dc]
lea ecx, [esi + 0x18]
push eax
push 0x4947d8
push str.ClickOncePackage
push str.Startup
call fcn.00402b35
cmp word [ebp - 0x8dc], bx
jne 0x42e224
xor eax, eax
jmp 0x42e380
lea eax, [ebp - 0xdc]
mov ecx, esi
push eax
call fcn.0042ad59
mov eax, dword [eax + 8]
mov dword [ebp - 4], ebx
cmp eax, ebx
jne 0x42e241
mov eax, 0x476650
mov edi, 0x4765e0
mov esi, 0x4765d8
cmp eax, ebx
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x1c], esi
jne 0x42e25a
mov eax, 0x4947d8
lea ecx, [ebp - 0xe]
push ebx
push ecx
push eax
lea ecx, [ebp - 0x3c]
call fcn.004011a9
lea ecx, [ebp - 0xdc]
mov byte [ebp - 4], 2
call fcn.00402424
lea eax, [ebp - 0x8dc]
mov dword [ebp - 0x64], edi
test eax, eax
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x8dc]
jne 0x42e292
mov eax, 0x4947d8
lea ecx, [ebp - 0xd]
push ebx
push ecx
push eax
lea ecx, [ebp - 0x64]
call fcn.004011a9
push ebx
lea eax, [ebp - 0xb4]
push ebx
push eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 3
call fcn.00411c36
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 4
push ecx
lea ecx, [ebp - 0x8c]
push ecx
mov ecx, eax
call fcn.0040aa61
push eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 5
call fcn.00401d42
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 4
call fcn.00401093
lea ecx, [ebp - 0xb4]
mov byte [ebp - 4], 3
call fcn.00401093
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 2
call fcn.00401093
push 4
lea eax, [ebp - 0xd]
sub esp, 0x28
lea ecx, [ebp - 0x38]
mov esi, esp
mov dword [ebp - 0x14], esp
push 1
push eax
call fcn.0042f488
push eax
mov ecx, esi
call fcn.00402d75
call fcn.0043985e
add esp, 0x2c
cmp al, bl
jne 0x42e34c
lea eax, [ebp - 0x8dc]
test eax, eax
lea eax, [ebp - 0x8dc]
jne 0x42e343
mov eax, 0x4947d8
push eax
lea ecx, [ebp - 0x3c]
call fcn.0040b326
mov eax, dword [ebp - 0x34]
cmp eax, ebx
jne 0x42e358
mov eax, 0x4765fc
push 1
push ebx
push ebx
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x20
pop ecx
cmp ecx, eax
lea ecx, [ebp - 0x3c]
sbb esi, esi
or dword [ebp - 4], 0xffffffff
neg esi
call fcn.00401093
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret