joyce8/EMBER2024-capa huggingface dataset:
Function at 0x461188
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x5125ac]
cmp dword [eax + 0x30], 0
je 0x461232
cmp dword [ebx + 0x94], 0
jne 0x46122c
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x461118
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x46122c
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x4611f2
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x46122c
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041d024
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x461201
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x461f4c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x461f81
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404964
jmp 0x461f8e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004048c8
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x46316c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4631da
mov eax, esi
call fcn.0044ebb0
test al, al
je 0x4631da
mov eax, dword [ebx + 0x84]
call fcn.0044e83c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4631da
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x4631ce
push 0
mov eax, dword [ebx + 0x84]
call fcn.0044e83c
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.00446c18
jmp 0x4631da
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.00462fa8
pop esi
pop ebx
ret
Function at 0x482250
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffdc
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
push 0
call sub.kernel32.dll_GetModuleHandleA_2
mov dword [esp + 0x18], eax
push 0x40
mov eax, dword [esp + 0x1c]
push eax
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x482353
mov eax, dword [esp + 0x18]
cmp word [eax], 0x5a4d
jne 0x482353
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x3c]
mov edx, dword [esp + 0x18]
add eax, edx
mov eax, dword [eax + 0x80]
test eax, eax
je 0x482353
add eax, edx
mov dword [esp + 0x1c], eax
jmp 0x482345
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0xc]
add eax, dword [esp + 0x18]
mov dword [esp + 0x20], eax
mov edx, dword [esp]
mov eax, dword [esp + 0x20]
call fcn.00409748
test eax, eax
jne 0x482340
mov eax, dword [esp + 0x1c]
mov ebx, dword [eax + 0x10]
add ebx, dword [esp + 0x18]
jmp 0x48233a
mov eax, ebp
xor edx, edx
push edx
push eax
mov eax, dword [esp + 0x10]
cdq
cmp edx, dword [esp + 4]
jne 0x4822f6
cmp eax, dword [esp]
pop edx
pop eax
jne 0x482337
mov esi, 4
mov edi, ebx
lea eax, [esp + 0xc]
push eax
push 0x40
push esi
push edi
call sub.kernel32.dll_VirtualProtect
lea eax, [esp + 0x14]
push eax
push esi
lea eax, [esp + 0xc]
push eax
push edi
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_WriteProcessMemory
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
push eax
push esi
push edi
call sub.kernel32.dll_VirtualProtect
add ebx, 4
mov ebp, dword [ebx]
test ebp, ebp
jne 0x4822e2
add dword [esp + 0x1c], 0x14
mov eax, dword [esp + 0x1c]
cmp dword [eax + 0xc], 0
jne 0x4822b6
add esp, 0x24
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x482378
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404d28
mov eax, dword [ebp - 8]
call fcn.00404d28
xor eax, eax
push ebp
push 0x482462
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404d38
mov edx, eax
lea eax, [ebp - 0x14]
call fcn.00404a6c
mov eax, dword [ebp - 0x14]
mov edx, 0x8000
call fcn.0040e460
test eax, eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetModuleHandleW
mov dword [0x512680], eax
mov eax, dword [ebp - 8]
call fcn.00404d38
push eax
mov eax, dword [0x512680]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
push eax
push 0x40
push 0x190
lea eax, [ebp - 0x10]
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.ntdll_NtProtectVirtualMemory
lea edx, [ebp - 0x10]
mov eax, sub.user32.dll_GetSysColor
mov ecx, 4
call fcn.00482368
lea eax, [ebp - 0xc]
push eax
push 4
push sub.user32.dll_GetSysColor
lea eax, [ebp - 0x10]
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.ntdll_NtWriteVirtualMemory
mov eax, dword [0x512680]
push eax
call sub.kernel32.dll_FreeLibrary_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x482469
lea eax, [ebp - 0x14]
call fcn.00404874
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404898
ret

Function at 0x482484
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404d28
mov eax, dword [ebp - 8]
call fcn.00404d28
xor eax, eax
push ebp
push 0x4825ad
push dword fs:[eax]
mov dword fs:[eax], esp
nop
nop
nop
mov eax, dword [ebp - 4]
call fcn.00404d38
mov edx, eax
lea eax, [ebp - 0xc]
call fcn.00404a6c
mov eax, dword [ebp - 0xc]
mov edx, 0x8000
call fcn.0040e460
test eax, eax
mov eax, dword [ebp - 4]
call fcn.00404d38
push eax
call sub.kernel32.dll_GetModuleHandleA_2
mov dword [0x512680], eax
cmp dword [0x512680], 0
je 0x482587
mov eax, dword [ebp - 8]
call fcn.00404d38
push eax
mov eax, dword [0x512680]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x512688], eax
mov eax, 0x512688
call fcn.00482470
mov dword [0x51269c], eax
mov byte [0x512694], 0xe6
mov eax, sub.user32.dll_GetIconInfo
mov edx, dword [0x51269c]
sub eax, edx
mov dword [0x512695], eax
mov eax, dword [0x5126a0]
push eax
push 0x40
push 0x2625a00
mov eax, dword [0x51269c]
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.ntdll_NtProtectVirtualMemory
mov edx, 0x51269c
mov eax, 0x512694
mov ecx, 4
call fcn.0048235c
push 0x5126a0
push 4
push 0x512694
push 0x51269c
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.ntdll_NtWriteVirtualMemory
mov eax, dword [0x512680]
push eax
call sub.kernel32.dll_FreeLibrary_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4825b4
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404898
ret
Function at 0x488270
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor ebx, ebx
call sub.kernel32.dll_GetTickCount_1
mov edi, eax
call fcn.0048575c
jmp 0x48831d
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
call sub.user32.dll_PeekMessageA
test eax, eax
je 0x4882bf
cmp dword [ebp - 0x18], 0x12
jne 0x4882ab
mov bl, 1
jmp 0x48831d
lea eax, [ebp - 0x1c]
push eax
call sub.user32.dll_TranslateMessage
lea eax, [ebp - 0x1c]
push eax
call sub.user32.dll_DispatchMessageA
jmp 0x48831d
inc dword [0x50eab8]
mov esi, dword [0x512844]
call sub.kernel32.dll_GetTickCount_1
sub eax, edi
mov dword [0x512844], eax
push 0
push 2
mov eax, esi
xor edx, edx
push edx
push eax
mov eax, dword [0x512844]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
call fcn.0040585c
mov dword [0x512844], eax
call fcn.00487e70
mov eax, dword [0x51273c]
push eax
call sub.gdi32.dll_SwapBuffers
cmp byte [0x51275f], 0
je 0x488318
mov bl, 1
jmp 0x48831d
call fcn.00488008
test bl, bl
je 0x48828c
xor eax, eax
call fcn.004880b8
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4033b5
Capabilities:
Delete directory
Get common file path
Get file attributes
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x834
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push esi
xor esi, esi
cmp dword [0x4aeaf8], 0x594
push edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
jne 0x4033f5
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceW]
mov eax, dword [0x4a43c8]
mov dword [ebp - 0x28], eax
mov eax, dword [0x4a43cc]
mov dword [ebp - 0x24], eax
push ebx
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
call fcn.004033ae
mov eax, dword [0x4a43d0]
mov ebx, dword [ebp - 8]
mov dword [ebp - 0x20], eax
mov eax, dword [0x4a43d4]
add ebx, 0x23f
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x18], 0x20
mov dword [ebp - 8], 2
add dword [ebp - 8], 3
mov eax, dword [ebp - 0x10]
shl eax, 4
cmp dword [0x4aeaf8], 0xc
mov dword [ebp - 4], eax
jne 0x40348b
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor eax, eax
mov word [ebp - 0x1c], ax
lea edi, [ebp - 0x1a]
stosw word es:[edi], ax
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x1c]
lea eax, [ebp - 0x834]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
lea eax, [ebp - 0x34]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
mov eax, dword [ebp - 0x20]
add dword [ebp - 4], eax
mov eax, dword [0x4aeaf8]
cmp eax, 0xfa9
jne 0x4034a7
mov dword [0x4ae094], 0xedeb2e40
cmp eax, 0x3eb
jne 0x4034b4
mov dword [0x4ada40], esi
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
lea eax, [ebx + edx]
shr edx, cl
mov dword [ebp - 0x14], eax
mov dword [0x4ae090], 0xf4ea3dee
add edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
xor edx, dword [ebp - 4]
cmp dword [0x4aeaf8], 0x213
mov dword [ebp - 0x14], edx
jne 0x4034ee
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov eax, dword [ebp - 0x14]
add dword [ebp - 0xc], 0x64
sub dword [ebp - 0xc], eax
sub dword [ebp - 0xc], 0x64
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 4]
call fcn.004033a8
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov eax, edx
shr eax, cl
lea edi, [ebx + edx]
add ebx, 0x61c88647
add eax, dword [ebp - 0x24]
xor eax, edi
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0x10], eax
dec dword [ebp - 0x18]
jne 0x403431
cmp dword [0x4aeaf8], 0xa6d
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp + 8]
mov dword [edi], eax
pop ebx
jne 0x403557
push esi
push esi
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
mov edx, dword [ebp - 0xc]
mov dword [edi + 4], edx
pop edi
pop esi
leave
ret 4
Function at 0x403560
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4aeaf8]
mov ecx, dword [0x4ada48]
sub esp, 0x944
push ebx
push esi
shr eax, 3
xor esi, esi
push edi
cmp eax, esi
jbe 0x4035d4
mov edi, ecx
mov ebx, eax
cmp dword [0x4aeaf8], 0x959
jne 0x4035c8
push esi
lea eax, [ebp - 0x940]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
lea eax, [ebp - 0x140]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
push 0x402d68
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push edi
call fcn.004033b5
add edi, 8
dec ebx
jne 0x403584
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4038ee
Capabilities:
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x424
push ebx
push esi
xor esi, esi
cmp dword [0x4aeaf8], 0x400
push edi
jne 0x403940
push esi
push esi
call fcn.00403d7b
push esi
push esi
call fcn.00403d7b
push esi
push esi
push esi
call fcn.00404363
add esp, 0x14
mov dword [esp + 4], esi
mov dword [esp], esi
call fcn.00403323
fstp st(0)
push esi
call fcn.00404419
pop ecx
push esi
call fcn.0040417a
pop ecx
mov eax, dword [0x4a4a54]
mov dword [0x4aeaf8], eax
mov eax, dword [0x4a4a2c]
mov dword [0x4aeafc], eax
call fcn.004035f3
mov dword [esp + 0x10], esi
mov ebx, 0x2b259d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor eax, eax
mov dword [esp + 0x1c], esi
lea edi, [esp + 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
push esi
lea eax, [esp + 0x3c]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp dword [esp + 0x10], ebx
jle 0x4039a7
cmp dword [esp + 0x18], 0x785074d5
jne 0x4039b5
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 0x1c1b
jl 0x403962
xor edi, edi
push esi
lea eax, [esp + 0x34]
push eax
push esi
push 0x403080
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
lea eax, [esp + 0x14]
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetThreadSelectorEntry]
cmp edi, ebx
jle 0x4039e6
cmp dword [esp + 0x18], 0x785074d5
jne 0x4039ef
inc edi
cmp edi, 0x11915
jl 0x4039b7
mov eax, dword [0x4ada48]
mov dword [0x4ae08c], eax
call eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x404d90
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a30f8]
jne 0x404d9a
repz ret
jmp fcn.00408bb2
Function at 0x4088d5
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004063ea
and dword [ebp - 4], 0
cmp dword [0x4a5300], 0
mov ebx, eax
jne 0x408986
push 0x401b58
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x408a37
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401b4c
push edi
call esi
test eax, eax
je 0x408a37
push eax
call fcn.00406378
mov dword [esp], 0x401b3c
push edi
mov dword [0x4a5300], eax
call esi
push eax
call fcn.00406378
mov dword [esp], 0x401b28
push edi
mov dword [0x4a5304], eax
call esi
push eax
call fcn.00406378
mov dword [esp], 0x401b0c
push edi
mov dword [0x4a5308], eax
call esi
push eax
call fcn.00406378
pop ecx
mov dword [0x4a5310], eax
test eax, eax
je 0x408986
push 0x401af4
push edi
call esi
push eax
call fcn.00406378
pop ecx
mov dword [0x4a530c], eax
mov eax, dword [0x4a530c]
cmp eax, ebx
je 0x4089de
cmp dword [0x4a5310], ebx
je 0x4089de
push eax
call fcn.004063f3
push dword [0x4a5310]
mov esi, eax
call fcn.004063f3
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4089de
test edi, edi
je 0x4089de
call esi
test eax, eax
je 0x4089d5
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4089d5
test byte [ebp - 0xc], 1
jne 0x4089de
or dword [ebp + 0x10], 0x200000
jmp 0x408a17
mov eax, dword [0x4a5304]
cmp eax, ebx
je 0x408a17
push eax
call fcn.004063f3
pop ecx
test eax, eax
je 0x408a17
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x408a17
mov eax, dword [0x4a5308]
cmp eax, ebx
je 0x408a17
push eax
call fcn.004063f3
pop ecx
test eax, eax
je 0x408a17
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4a5300]
call fcn.004063f3
pop ecx
test eax, eax
je 0x408a37
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x408a39
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41dbc8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc48
xor eax, eax
mov dword [ebp - 0x3b8], eax
mov dword [ebp - 0x3b4], eax
mov dword [ebp - 0x3b0], eax
mov dword [ebp - 0x3a0], eax
mov dword [ebp - 0x3a8], eax
mov dword [ebp - 0x3ac], eax
mov dword [ebp - 0x3a4], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x41dd6d
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x3a4]
xor eax, eax
call fcn.004029a0
mov eax, dword [ebp - 0x3a4]
lea edx, [ebp - 0x3a0]
call fcn.00408148
push dword [ebp - 0x3a0]
lea edx, [ebp - 0x3ac]
xor eax, eax
call fcn.004029a0
mov eax, dword [ebp - 0x3ac]
lea edx, [ebp - 0x3a8]
call fcn.00408210
push dword [ebp - 0x3a8]
push 0x41dd80
lea eax, [ebp - 4]
mov edx, 3
call fcn.00404b0c
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x1d0]
call fcn.00402d44
lea eax, [ebp - 0x1d0]
call fcn.00402ad4
lea eax, [ebp - 0x1d0]
call fcn.00402ee8
lea eax, [ebp - 0x3b0]
call fcn.0041ca9c
lea eax, [ebp - 0x3b0]
mov edx, 0x41dd90
call fcn.00404a54
mov edx, dword [ebp - 0x3b0]
lea eax, [ebp - 0x39c]
call fcn.00402d44
lea eax, [ebp - 0x39c]
call fcn.00402ad4
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x39c]
call fcn.00404d90
call fcn.00403558
lea eax, [ebp - 0x39c]
call fcn.00402ee8
push 0
lea eax, [ebp - 0x3b4]
call fcn.0041ca9c
lea eax, [ebp - 0x3b4]
mov edx, 0x41dd90
call fcn.00404a54
mov eax, dword [ebp - 0x3b4]
call fcn.00404c44
push eax
call sub.kernel32.dll_WinExec
push 0x5dc
call sub.kernel32.dll_Sleep
lea eax, [ebp - 0x3b8]
call fcn.0041ca9c
lea eax, [ebp - 0x3b8]
mov edx, 0x41dd90
call fcn.00404a54
mov eax, dword [ebp - 0x3b8]
call fcn.004080e0
mov eax, dword [ebp - 4]
call fcn.004080e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41dd74
lea eax, [ebp - 0x3b8]
mov edx, 7
call fcn.004047b8
lea eax, [ebp - 4]
call fcn.00404794
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401920
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push 0
push 0
push 0
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
test eax, eax
mov dword [esi + 0x30], eax
jne 0x40193c
pop esi
pop ecx
ret
push edi
lea eax, [esp + 8]
push eax
push 0
push esi
push 0x405150
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
jne 0x401964
mov ecx, dword [esi + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ecx
ret
Function at 0x402ae0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x427f7b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x4312c8]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
xor eax, eax
xor ebx, ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov byte [esi + 0x44], bl
lea ecx, [esi + 8]
mov dword [esp + 0x18], ebx
call fcn.00402b60
mov dword [esi + 0x54], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0xa0], ebx
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret

Function at 0x404980
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x427e3e
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4312c8]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x14], edi
mov dword [edi], 0x42aa08
mov eax, dword [edi + 0xc]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x30], 2
je 0x404a8a
cmp dword [edi + 0x18], ebx
je 0x404a66
mov eax, dword [edi + 0x14]
mov eax, dword [eax]
lea esi, [edi + 0x10]
mov ebp, esi
mov ebx, eax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebx
test ebp, ebp
mov eax, dword [esi + 4]
mov dword [esp + 0x24], eax
je 0x4049f4
cmp ebp, esi
je 0x4049f9
call fcn.00419395
cmp ebx, dword [esp + 0x24]
je 0x404a3e
test ebp, ebp
jne 0x404a08
call fcn.00419395
cmp ebx, dword [ebp + 4]
jne 0x404a1c
call fcn.00419395
cmp ebx, dword [ebp + 4]
jne 0x404a1c
call fcn.00419395
mov eax, dword [edi + 0xc]
mov edx, dword [ebx + 0x10]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x10]
call eax
lea ecx, [esp + 0x18]
call fcn.00406a20
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
jmp 0x4049e5
mov ecx, dword [esi + 4]
mov edx, dword [ecx + 4]
push edx
mov ecx, esi
call fcn.004046a0
mov eax, dword [esi + 4]
mov dword [eax + 4], eax
mov eax, dword [esi + 4]
mov dword [esi + 8], 0
mov dword [eax], eax
mov esi, dword [esi + 4]
mov dword [esi + 8], esi
xor ebx, ebx
mov eax, dword [edi + 0xc]
cmp eax, ebx
je 0x404a78
mov dword [edi + 0xc], ebx
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [edi + 0xc]
cmp eax, ebx
je 0x404a8a
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [edi + 0xc], ebx
mov eax, dword [edi + 0x14]
mov ecx, dword [eax]
lea esi, [edi + 0x10]
push eax
push esi
push ecx
push esi
lea eax, [esp + 0x30]
push eax
mov ecx, esi
mov byte [esp + 0x44], 1
call fcn.0040c7f0
mov eax, dword [esi + 4]
push eax
call fcn.0041880d
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov eax, dword [edi + 0xc]
add esp, 4
cmp eax, ebx
mov byte [esp + 0x30], 0
je 0x404acd
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ecx, edi
mov dword [esp + 0x30], 0xffffffff
call fcn.00404af0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x40cd40
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
lea eax, [esp]
push eax
push edx
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
mov eax, dword [ecx]
push 0
push edx
push eax
mov dword [esp + 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40cd79
mov eax, dword [esp + 0xc]
sub eax, 4
neg eax
sbb eax, eax
and eax, 0xd
pop ecx
ret 8

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

Disassembly:
push 0xffffffffffffffff
push 0x4277e8
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4312c8]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov dword [esp + 8], 0
mov eax, dword [ecx]
mov ecx, dword [eax]
lea edx, [esp + 8]
push edx
push eax
mov eax, dword [ecx + 0x78]
mov dword [esp + 0x1c], 0
call eax
mov esi, eax
test esi, esi
jl 0x40d082
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40d082
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x40d800
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x427940
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
mov eax, dword [0x4312c8]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov dword [esp + 0xc], 0
lea eax, [esp + 0xc]
push eax
push 0x429adc
push 0x17
push 0
push 0x429788
mov dword [esp + 0x30], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, eax
test ebx, ebx
jl 0x40d8ab
push 0x429c68
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
test esi, esi
mov dword [esp + 0x10], esi
jne 0x40d873
push 0x8007000e
call fcn.00405760
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
push edx
push esi
push 1
push eax
mov eax, dword [ecx + 0x28]
mov byte [esp + 0x2c], 1
call eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40d8a4
mov dword [esp + 0xc], 0
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0xc]
test eax, eax
mov dword [esp + 0x1c], 0xffffffff
je 0x40d8c3
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x14
ret 4