joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d3b02
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
cmp dword [0x77bc7c], 0
je 0x4d3c3d
cmp dword [0x77bc84], 0
je 0x4d3bad
push 0
mov ebx, 0x308
call sub.kernel32.dll_GetTickCount
add esp, 4
mov dword [0x77bca4], eax
fild dword [0x77bca4]
fstp qword [ebp - 8]
fld qword [ebp - 8]
fild dword [0x77bc88]
fstp qword [ebp - 0x10]
fsub qword [ebp - 0x10]
fstp qword [ebp - 0x18]
mov ebx, dword [0x77bc70]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
push ebx
mov eax, dword [0x77bc7c]
dec eax
pop ebx
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0x10
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
fild dword [ebx]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x18]
fsub qword [ebp - 0x24]
fcomp qword [0x7409d2]
fnstsw ax
test ah, 0x41
jne 0x4d3ba8
mov eax, dword [0x77bca4]
mov dword [0x77bc88], eax
call fcn.004d3c41
jmp 0x4d3c3d
cmp dword [0x77bc90], 0
jle 0x4d3c3d
push 0
mov ebx, 0x308
call sub.kernel32.dll_GetTickCount
add esp, 4
mov dword [0x77bca4], eax
fild dword [0x77bca4]
fstp qword [ebp - 8]
fld qword [ebp - 8]
fild dword [0x77bc90]
fstp qword [ebp - 0x10]
fsub qword [ebp - 0x10]
fstp qword [ebp - 0x18]
mov ebx, dword [0x77bc70]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
push ebx
mov eax, dword [0x77bc7c]
dec eax
pop ebx
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0x14
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
fild dword [ebx]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x18]
fsub qword [ebp - 0x24]
fcomp qword [0x7409da]
fnstsw ax
test ah, 1
jne 0x4d3c3d
call fcn.004d3927
mov dword [0x77bc7c], 0
mov esp, ebp
pop ebp
ret
Function at 0x5367cd
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov eax, dword [ebp + 8]
inc eax
push dword [eax]
pop word [ebp - 4]
cmp dword [ebp - 4], 0xc25e
je 0x536802
cmp dword [ebp - 4], 0xc35e
je 0x536802
jmp 0x536805
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x5367e7
cmp dword [ebp - 4], 0xc25e
jne 0x536891
push eax
mov dword [ebp - 0xc], esp
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push dword [ebp - 8]
push 0xffffffff
call dword [sym.imp.kernel32.dll_VirtualProtectEx]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x53684e
push 6
call fcn.00685f10
add esp, 4
pop eax
push 0x9090c35e
pop dword [eax]
mov dword [ebp - 0xc], esp
mov eax, 0
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
push 4
push dword [ebp - 8]
push 0xffffffff
call dword [sym.imp.kernel32.dll_VirtualProtectEx]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x536891
push 6
call fcn.00685f10
add esp, 4
mov esp, ebp
pop ebp
ret 4
Function at 0x6877a0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x687832
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x687824
mov ebp, dword [sym.imp.kernel32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x68781c
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x6877e5
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret

Function at 0x687f80
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x687f9e
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x687f93
pop esi
ret

Function at 0x688060
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x6880c9
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.kernel32.dll_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.00687180
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.kernel32.dll_ReadFile]
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret
Function at 0x6887f0
Capabilities:
Check if file exists
Get common file path

Disassembly:
mov eax, dword [esp + 0x10]
sub esp, 0x208
test eax, eax
push ebx
push esi
push edi
jne 0x68881b
lea eax, [esp + 0xc]
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
test eax, eax
jne 0x688843
mov byte [esp + 0xc], al
jmp 0x688843
mov edi, dword [esp + 0x21c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + ecx + 0xc]
mov cl, byte [esp + ecx + 0xb]
cmp cl, 0x5c
je 0x688861
mov byte [eax], 0x5c
mov esi, dword [sym.imp.user32.dll_wsprintfA]
mov edi, dword [sym.imp.kernel32.dll_GetTickCount]
mov ebx, dword [sym.imp.shlwapi.dll_PathFileExistsA]
call edi
lea ecx, [esp + 0xc]
push eax
push ecx
lea edx, [esp + 0x118]
push str._s_x.tmp
push edx
call esi
add esp, 0x10
lea eax, [esp + 0x110]
push eax
call ebx
test eax, eax
jne 0x688873
lea edi, [esp + 0x110]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.00687180
mov edx, eax
lea edi, [esp + 0x114]
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
add esp, 0x208
ret

Function at 0x688b40
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push edi
xor edi, edi
push edi
call dword [sym.imp.user32.dll_OpenClipboard]
test eax, eax
je 0x688b90
push esi
push 1
call dword [sym.imp.user32.dll_GetClipboardData]
mov esi, eax
test esi, esi
je 0x688b85
push esi
call dword [sym.imp.kernel32.dll_GlobalLock]
mov edx, eax
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
call fcn.0068a1e0
add esp, 8
mov edi, eax
push esi
call dword [sym.imp.kernel32.dll_GlobalUnlock]
call dword [sym.imp.user32.dll_CloseClipboard]
mov eax, edi
pop esi
pop edi
ret
mov eax, edi
pop edi
ret
Function at 0x689b30
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
lea eax, [esp]
push esi
push eax
push 0x104
xor esi, esi
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x689b73
push edi
lea edi, [esp + 8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0xc]
push ecx
call fcn.0068a1e0
add esp, 8
pop edi
pop esi
add esp, 0x104
ret
mov eax, esi
pop esi
add esp, 0x104
ret

Function at 0x6a8683
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x6a86bb
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.006a670d
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.006a66e5
jmp 0x6a86c7
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x6a9d71
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x6a9db3
call fcn.006af82a
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x6a9db3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x6a9daa
xor eax, eax
jmp 0x6a9dbb
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.006a9dc1
pop edi
pop esi
pop ebx
ret 4

Function at 0x6afd5a
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection_1]
cmp dword [esp + 0x10], 0
jne 0x6afd88
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue_1]
test eax, eax
je 0x6afda6
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.006afcc0
jmp 0x6afda6
mov eax, dword [esi + 0x14]
test eax, eax
je 0x6afda6
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.006afcc0
test edi, edi
mov eax, edi
jne 0x6afd90
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection_1]
pop esi
pop ebx
ret 8
Function at 0x403290
Capabilities:
Enumerate gui resources
Get hostname

Disassembly:
mov eax, 0x1c0c
call fcn.0040d330
mov eax, dword [0xa6c4f4]
mov ecx, dword [0xa6c464]
shr eax, 3
test eax, eax
jbe 0x4033c2
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteProfileSectionW]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
jmp 0x4032e0
cmp dword [0xa6c4f4], 0x959
jne 0x4033a4
push 0
lea eax, [esp + 0x20]
push eax
push 0
push 0
push 0
push 0
call edi
push 0
lea ecx, [esp + 0x820]
push ecx
push 0
call ebx
push 0
push 0
call esi
push 0
call ebp
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoExW]
push 0
push 0
lea edx, [esp + 0x1024]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasW]
push 0
push 0
call esi
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetThreadPriorityBoost]
push 0
lea eax, [esp + 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleTitleA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x1420]
push edx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push 0
push 0x402cc8
push 0x402ce4
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov eax, dword [esp + 0x10]
push eax
call fcn.00403090
add dword [esp + 0x10], 8
sub dword [esp + 0x14], 1
jne 0x4032e0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c0c
ret
Function at 0x403c50
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
mov eax, 0x1430
call fcn.0040d330
cmp dword [0xa6c4f4], 0xc
push ebx
push ebp
push esi
push edi
jne 0x403d1c
push 0
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0
lea eax, [esp + 0xc44]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleFontSize]
push 0
push 0
lea ecx, [esp + 0x848]
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesA]
push 0
push 0x402d6c
push 0x402d78
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
push 0
lea edx, [esp + 0x44]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
push 0x402d98
call dword [sym.imp.KERNEL32.dll_FindAtomA]
push 0
lea eax, [esp + 0x444]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_HeapSize]
push 0x402de0
call dword [sym.imp.KERNEL32.dll_AddAtomA]
push 0
push 0
call fcn.00403dd3
mov eax, esp
mov dword [eax], 0
mov dword [eax + 4], 0
call fcn.00403faa
fstp st(0)
add esp, 8
mov edi, dword [sym.imp.USER32.dll_SetCaretPos]
mov ebx, dword [sym.imp.USER32.dll_CharLowerBuffW]
mov ebp, dword [sym.imp.USER32.dll_GetSysColorBrush]
xor esi, esi
cmp esi, 0x9458
jge 0x403d4e
push 0
push 0
call edi
push 0
lea ecx, [esp + 0xc44]
push ecx
call ebx
push 0
call ebp
inc esi
cmp esi, 0x14ee8
jl 0x403d30
mov edx, dword [0x45f6a4]
mov eax, dword [0x45f678]
mov dword [0xa6c4f4], edx
mov dword [0xa6ddfc], eax
call fcn.004034d0
pop edi
xor eax, eax
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4086e6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x45eaa8]
jne 0x4086f0
repz ret
jmp fcn.0040a459
Function at 0x409b80
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.004049e0
and dword [ebp - 4], 0
cmp dword [0x45ff6c], 0
mov ebx, eax
jne 0x409c31
push 0x4023c8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x409ce2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4023bc
push edi
call esi
test eax, eax
je 0x409ce2
push eax
call fcn.0040496e
mov dword [esp], 0x4023ac
push edi
mov dword [0x45ff6c], eax
call esi
push eax
call fcn.0040496e
mov dword [esp], 0x402398
push edi
mov dword [0x45ff70], eax
call esi
push eax
call fcn.0040496e
mov dword [esp], 0x40237c
push edi
mov dword [0x45ff74], eax
call esi
push eax
call fcn.0040496e
pop ecx
mov dword [0x45ff7c], eax
test eax, eax
je 0x409c31
push 0x402364
push edi
call esi
push eax
call fcn.0040496e
pop ecx
mov dword [0x45ff78], eax
mov eax, dword [0x45ff78]
cmp eax, ebx
je 0x409c89
cmp dword [0x45ff7c], ebx
je 0x409c89
push eax
call fcn.004049e9
push dword [0x45ff7c]
mov esi, eax
call fcn.004049e9
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x409c89
test edi, edi
je 0x409c89
call esi
test eax, eax
je 0x409c80
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x409c80
test byte [ebp - 0xc], 1
jne 0x409c89
or dword [ebp + 0x10], 0x200000
jmp 0x409cc2
mov eax, dword [0x45ff70]
cmp eax, ebx
je 0x409cc2
push eax
call fcn.004049e9
pop ecx
test eax, eax
je 0x409cc2
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x409cc2
mov eax, dword [0x45ff74]
cmp eax, ebx
je 0x409cc2
push eax
call fcn.004049e9
pop ecx
test eax, eax
je 0x409cc2
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x45ff6c]
call fcn.004049e9
pop ecx
test eax, eax
je 0x409ce2
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x409ce4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4022a0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
xor eax, eax
cmp dword [esi + 0x14], eax
mov dword [esp + 4], eax
jne 0x4022d5
mov ecx, dword [esi + 8]
sub ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push eax
lea eax, [esp + 8]
push eax
mov eax, dword [esi]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esi + 8]
mov eax, dword [esp + 4]
mov dword [esi + 0xc], ecx
pop esi
pop ecx
ret 4

Function at 0x402f8b
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
je 0x402fa3
push dword [esp + 4]
push 0x402f24
call dword [sym.imp.USER32.DLL_EnumWindows]
jmp 0x402fe0
push esi
mov esi, dword [0x40576c]
test esi, esi
je 0x402fdf
push ebx
push edi
mov ebx, dword [esi]
lea edi, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi], eax
jne 0x402fd7
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_EnableWindow]
push edi
push 0x40576c
call fcn.0040359a
pop ecx
pop ecx
test ebx, ebx
mov esi, ebx
jne 0x402fb0
pop edi
pop ebx
pop esi
ret 4
Function at 0x401aa0
Capabilities:
Access pe header
Clear file content
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 4], 0
test eax, eax
je 0x401ba5
push 0
lea ecx, [ebp - 4]
push ecx
call fcn.00401080
mov edi, eax
test edi, edi
je 0x401ba5
push edi
call dword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov ebx, eax
test ebx, ebx
je 0x401b83
rdtsc
xor dword [0x454530], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor dword [0x454530], eax
push 0x40afe4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x401b1b
push str.RtlUniform
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x401b1b
push 0x454530
call eax
mov ecx, dword [0x454530]
xor edx, edx
or esi, 0xffffffff
mov eax, ecx
div esi
add eax, ecx
mov dword [ebx + 0x58], eax
mov eax, dword [ebp - 4]
mov ebx, eax
test eax, eax
je 0x401b83
mov edx, dword [ebp + 8]
push 0
push 0x80
push 2
push 0
push 3
push 0xc0000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x401b83
push 0
lea eax, [ebp + 8]
push eax
push ebx
push edi
push esi
mov dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x401b7c
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapValidate]
test eax, eax
je 0x401ba5
push edi
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x401c20
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push str._globalroot_systemroot_system32drivers_ntfs.sys
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x401ca0
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x1c]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call ebx
mov eax, dword [ebp + 8]
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x401ca0
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x402780
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push esi
push edi
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call fcn.004028b0
test eax, eax
je 0x4027b0
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.00401ff0
mov esi, dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
call esi
test eax, eax
jne 0x4027d2
call fcn.00401db0
test eax, eax
je 0x4027d2
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call esi
push str.kernel32.dll
mov edi, eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x40280b
push str.IsWow64Process
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x40280b
lea ecx, [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
cmp dword [ebp - 4], 0
je 0x402863
test edi, edi
je 0x40282b
push str._apppatch_
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x402857
lea esi, [ebp - 0x108]
call fcn.004023d0
push 0
push 0x47200
push 0x40d0d8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
call fcn.00401600
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40289e
call fcn.00402510
call fcn.00402240
jmp 0x40289e
test edi, edi
je 0x40288e
push str._apppatch_
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
jne 0x40288e
call fcn.00402510
call fcn.00402360
call fcn.00402240
jmp 0x40289e
lea esi, [ebp - 0x108]
call fcn.004023d0
call fcn.00402360
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x405d20
Capabilities:
Query environment variable

Disassembly:
dec ecx
mov ebp, esp
push ecx
push esi
push edi
call 0x735edd
test ebx, edi
add dword [ebp + 0xde], 0x8dc0b83
inc ecx
add byte [esp + eax*2], dl
mov word [eax + eax - 0xf5f0000], cs
add eax, dword [ecx]
test eax, eax
cmpsd dword [esi], dword es:[edi]
test dword [ebp + ebx], ecx
add bh, al
add eax, 0x41623e
in eax, 0
push es
add byte [esi + 0x40c05c15], ch
add byte [ebx + 0x74f685f0], cl
push eax
salc
sbb al, byte [edi]
inc ecx
add dh, ch
sal byte [ebp + 0x1d], 0x50
push str.CommandLineToArgvW
push 4
call 0x131a93e
add esp, 0xc
mov dword [0x410358], eax
test dword [esi], edi
je 0xd1405e38
lea eax, [esi - 0xa9aefb]
ror byte [ebx + 0x74f600f0], 1
sbb eax, 0x8bfc55ef
xchg esi, eax
or al, 0x52
push esi
push eax
call fcn.0040a5d0
and cl, byte [ebp + 8]
add esp, 0xc
cmc
mov dword [ecx], eax
cwde
adc eax, 0x406210
push ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov ecx, dword [edi - 0xac0096]
sti
push 0xfffffffffffffff6
inc eax
add byte [eax - 0x2f], dl
add byte fs:[eax], al
add byte [ebx - 0x3b7cef83], cl
or al, 0x85
push dword [edx]
sub eax, 0x485348d
add byte [eax], al
add byte [esi - 1], dl
stc
pop esp
rol dword [eax], 0x83
les eax, [ecx + ecx*4]
pop es
call dword [sym.imp.MSVCRT.dll___p__environ]
mov esp, dword [edx]
mov ecx, esi
mov esi, dword [eax]
mov edi, dword [edx]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
imul esp, ecx, 0xf
retf
Function at 0x40a5d0
Capabilities:
Encode data using xor

Disassembly:
call ebx
add esp, 0xffffff8a
cmp eax, esi
jbe 0x40a5a4
mov ebx, dword [eax*4 - 0x3af18a0a]
sbb dl, byte [edi - 1]
ror dword [ebx + 0x4fc4e6c5], cl
test esi, esi
jne 0x40a5b6
lds ebx, [edx]
push edi
call ebx
mov eax, ebp
out 0xc4, al
dec edi
test esi, esi
jl 0x40a61a
lea eax, [esi + 1]
pop ebx
pop esi
pop ebx
pop ebp
ret 0x1880
push ebp
mov ebp, esp
sbb dword [esi + 0x18], 0x53
mov ebx, dword [ebp + 0x10]
test ebx, ebx
push edi
mov dword [ebp - 4], 0xe5000000
jge 0x40a5f9
mov eax, dword [ebp - 1]
test dword [ecx - 0x7d], esi
cmp byte [eax], al
je 0x40a5f9
mov eax, edi
cwde
add al, 0x43
inc esp
leave
jne 0x40a5f0
push ss
jnp 0x40a599
add al, 0
add byte [eax], al
mov edx, dword [eax - 1]
adc eax, 0x40b25c
add esp, 4
mov edi, eax
test dword [ebp + 0x7e297d89], ecx
mov dl, 0x8b
imul ecx, dword [ebx + ecx*4], 0xfffffff7
sub eax, edi
inc ebp
pop ebp
adc al, 0x89
inc ebp
adc byte [edx + 3], cl
mov dword [ebp + 0x5d], 0x10458914
dec edx
add eax, dword [edi + 0x45]
inc edi
inc ebp
adc byte [ebx - 0xaecff4], cl
adc eax, 0x76480c
add esp, 0xffffffb7
inc eax
xor eax, 0xfc558b06
add edx, eax
mov eax, dword [ebp - 8]
add esi, 4
dec eax
mov dword [ebp - 0x45], edx
mov dword [ebp - 8], eax
jne 0x40a623
loop 0x40a691
sar dword [ecx], cl
fld qword [eax + 1]
push eax
mov dword [edi + 0x6b], esi
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
xor ecx, ecx
test ebx, ebx
mov dword [ebp - 8], eax
mov esi, dword [esi + edi*2 - 0x80]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
sub eax, ecx
ja 0x40a6c0
mov byte [0x961e2789], al
pop ebp
mov al, 0x89
push eax
call 0x4bcbaa13
adc byte [edi + edx - 0x7213b277], dl
dec ebp
cld
mov dword [ebp - 0x10], edx
mov dword [edi], esi
mov eax, dword [edi + eax]
pop es
push ecx
lea edx, [ebp - 0x10]
push esi
push edx
push eax
xlatb
inc eax
add byte [eax], al
mov esi, dword [ebx]
cld
mov eax, dword [ebp - 0x14]
sub eax, ecx
add edi, 4
add edi, dword [edx - 0x75]
dec dword [eax + ecx*2]
rol byte [ebp + 0x40], 0x75
retf
add byte [eax], al
sbb al, 0xbc
mov esi, 0xdc2b2406
std
mov ss, word [eax - 1]
adc eax, sym.imp.MSVCRT.dll_realloc
mov ecx, dword [ebp - 8]
add esp, 0x5b
cmp eax, ecx
pop esi
je 0x40a70e
sub eax, ecx
mov ecx, eax
xor eax, eax
test dword [ecx], ebx
jle 0x40a701
mov edx, dword [edi + eax*4]
add edx, ecx
mov dword [ebp - 0x67c4bfaf], edi
jl 0x40a6e7
mov ecx, dword [ebp + 8]
mov eax, ebx
mov dword [ecx], edi
pop edi
pop ebx
aad 0xe5
pop ebp
ret
mov eax, dword [edi + 8]
mov eax, ebx
mov dword [edi + ebx*2], ecx
call 0xc35c8c97
pop edx
add eax, 0x8b38f808
ret