joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408660
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xec
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x2c]
mov ecx, 0xb
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax + 0x38], 0
je 0x4086ac
mov esi, esp
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 8]
call dword [sym.imp.MSVCP140D.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
cmp esi, esp
call fcn.00415080
jmp 0x4087be
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
mov esi, esp
mov ecx, dword [ebp - 8]
call dword [sym.imp.MSVCP140D.dll_protected:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const]
cmp esi, esp
call fcn.00415080
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
cmp dword [ebp + 0x10], 0
jl 0x408766
jg 0x4086e6
cmp dword [ebp + 0xc], 0
jbe 0x408766
cmp dword [ebp - 0x24], 0
jl 0x408766
jg 0x4086f4
cmp dword [ebp - 0x28], 0
jbe 0x408766
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp - 0x24]
jg 0x408712
jl 0x408706
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [ebp - 0x28]
jae 0x408712
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov esi, esp
mov ecx, dword [ebp - 8]
call dword [sym.imp.MSVCP140D.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const]
cmp esi, esp
call fcn.00415080
push eax
call fcn.004069b0
add esp, 0xc
mov eax, dword [ebp - 0x28]
add eax, dword [ebp + 8]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp - 0x28]
mov ecx, dword [ebp + 0x10]
sbb ecx, dword [ebp - 0x24]
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], ecx
mov eax, dword [ebp - 0x28]
mov esi, esp
push eax
mov ecx, dword [ebp - 8]
call dword [sym.imp.MSVCP140D.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int_]
cmp esi, esp
call fcn.00415080
cmp dword [ebp + 0x10], 0
jl 0x4087b2
jg 0x408774
cmp dword [ebp + 0xc], 0
jbe 0x4087b2
mov eax, dword [ebp - 8]
cmp dword [eax + 0x4c], 0
je 0x4087b2
mov esi, esp
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 1
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ucrtbased.dll_fwrite]
add esp, 0x10
cmp esi, esp
call fcn.00415080
xor ecx, ecx
mov edx, dword [ebp + 0xc]
sub edx, eax
mov eax, dword [ebp + 0x10]
sbb eax, ecx
mov dword [ebp + 0xc], edx
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x14]
sbb edx, dword [ebp + 0x10]
pop edi
pop esi
pop ebx
add esp, 0xec
cmp ebp, esp
call fcn.00415080
mov esp, ebp
pop ebp
ret 0xc
Function at 0x409000
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
push edi
lea edi, [ebp - 0x48]
mov ecx, 0x12
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
push eax
call fcn.00409120
add esp, 4
mov dword [ebp - 8], eax
push 0
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x38], 0x1c
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call sub.KERNEL32.dll_Thread32First
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp + 8]
jne 0x4090a8
mov esi, esp
mov eax, dword [ebp - 0x30]
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenThread]
cmp esi, esp
call fcn.00415080
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
je 0x4090a8
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 8]
jne 0x409095
mov esi, esp
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.00415080
mov eax, dword [ebp - 0x44]
jmp 0x4090ce
mov esi, esp
mov eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.00415080
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x40904a
mov esi, esp
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.00415080
xor eax, eax
push edx
mov ecx, ebp
push eax
lea edx, [0x4090f4]
call fcn.00415020
pop eax
pop edx
pop edi
pop esi
pop ebx
add esp, 0x108
cmp ebp, esp
call fcn.00415080
mov esp, ebp
pop ebp
ret
Function at 0x409120
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
push ebx
push esi
push edi
lea edi, [ebp - 0x84]
mov ecx, 0x21
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov dword [ebp - 8], 0
or eax, 0xffffffff
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x14], eax
push 0
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x48], 0x1c
lea eax, [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call sub.KERNEL32.dll_Thread32First
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebp + 8]
jne 0x40928e
mov esi, esp
mov eax, dword [ebp - 0x40]
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenThread]
cmp esi, esp
call fcn.00415080
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
je 0x40928e
mov dword [ebp - 0x7c], 0
xor eax, eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
mov eax, 8
imul ecx, eax, 3
lea edx, [ebp + ecx - 0x7c]
mov esi, esp
push edx
mov eax, 8
shl eax, 1
lea ecx, [ebp + eax - 0x7c]
push ecx
mov edx, 8
shl edx, 0
lea eax, [ebp + edx - 0x7c]
push eax
mov ecx, 8
imul edx, ecx, 0
lea eax, [ebp + edx - 0x7c]
push eax
mov ecx, dword [ebp - 0x54]
push ecx
call dword [sym.imp.KERNEL32.dll_GetThreadTimes]
cmp esi, esp
call fcn.00415080
test eax, eax
je 0x40927b
mov eax, 8
imul ecx, eax, 0
mov dword [ebp - 0x144], ecx
mov edx, dword [ebp - 0x144]
mov eax, dword [ebp - 0x144]
mov ecx, dword [ebp + edx - 0x7c]
or ecx, dword [ebp + eax - 0x78]
je 0x40927b
mov eax, 8
imul ecx, eax, 0
mov dword [ebp - 0x144], ecx
mov edx, dword [ebp - 0x144]
mov eax, dword [ebp + edx - 0x78]
cmp eax, dword [ebp - 0x14]
ja 0x40927b
jb 0x40925f
mov ecx, dword [ebp - 0x144]
mov edx, dword [ebp + ecx - 0x7c]
cmp edx, dword [ebp - 0x18]
jae 0x40927b
mov eax, 8
imul ecx, eax, 0
mov edx, dword [ebp + ecx - 0x7c]
mov eax, dword [ebp + ecx - 0x78]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 8], eax
mov esi, esp
mov eax, dword [ebp - 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.00415080
lea eax, [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x409172
mov esi, esp
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.00415080
mov eax, dword [ebp - 8]
push edx
mov ecx, ebp
push eax
lea edx, [0x4092e0]
call fcn.00415020
pop eax
pop edx
pop edi
pop esi
pop ebx
add esp, 0x144
cmp ebp, esp
call fcn.00415080
mov esp, ebp
pop ebp
ret
Function at 0x409320
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1fc
push ebx
push esi
push edi
lea edi, [ebp - 0x13c]
mov ecx, 0x4f
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4093e1
push 0x128
push 0
lea eax, [ebp - 0x138]
push eax
call sub.VCRUNTIME140D.dll_memset
add esp, 0xc
mov dword [ebp - 0x138], 0x128
lea eax, [ebp - 0x138]
push eax
mov ecx, dword [ebp - 8]
push ecx
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x4093ce
lea eax, [ebp - 0x114]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.ucrtbased.dll_strcmp
add esp, 8
test eax, eax
jne 0x4093ba
mov esi, esp
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.00415080
mov eax, dword [ebp - 0x130]
jmp 0x4093e3
lea eax, [ebp - 0x138]
push eax
mov ecx, dword [ebp - 8]
push ecx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x409388
mov esi, esp
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.00415080
xor eax, eax
push edx
mov ecx, ebp
push eax
lea edx, [0x409408]
call fcn.00415020
pop eax
pop edx
pop edi
pop esi
pop ebx
add esp, 0x1fc
cmp ebp, esp
call fcn.00415080
mov esp, ebp
pop ebp
ret
Function at 0x40b520
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1fc
push ebx
push esi
push edi
lea edi, [ebp - 0x13c]
mov ecx, 0x4f
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40b5d4
push 0x128
push 0
lea eax, [ebp - 0x138]
push eax
call sub.VCRUNTIME140D.dll_memset
add esp, 0xc
mov dword [ebp - 0x138], 0x128
lea eax, [ebp - 0x138]
push eax
mov ecx, dword [ebp - 8]
push ecx
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x40b5c1
mov eax, dword [ebp - 0x130]
cmp eax, dword [ebp + 8]
jne 0x40b5ad
mov esi, esp
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.00415080
mov eax, 1
jmp 0x40b5d6
lea eax, [ebp - 0x138]
push eax
mov ecx, dword [ebp - 8]
push ecx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x40b588
mov esi, esp
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.00415080
xor eax, eax
push edx
mov ecx, ebp
push eax
lea edx, [0x40b5fc]
call fcn.00415020
pop eax
pop edx
pop edi
pop esi
pop ebx
add esp, 0x1fc
cmp ebp, esp
call fcn.00415080
mov esp, ebp
pop ebp
ret
Function at 0x40f060
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41800d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xe4
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x30]
mov ecx, 9
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x20]
push ecx
call fcn.00411a30
add esp, 8
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c], 0x40ef90
mov eax, dword [ebp - 0x14]
add eax, 4
mov esi, esp
push eax
push 0
lea ecx, [ebp - 0x20]
call fcn.00413d20
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push 0
push 0
call dword [sym.imp.ucrtbased.dll__beginthreadex]
add esp, 0x18
cmp esi, esp
call fcn.00415080
mov edx, dword [ebp - 0x14]
mov dword [edx], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0
je 0x40f0f6
lea ecx, [ebp - 0x20]
call fcn.004141c0
jmp 0x40f107
mov eax, dword [ebp - 0x14]
mov dword [eax + 4], 0
push 6
call sub.MSVCP140D.dll_void___cdecl_std::_Throw_Cpp_error_int_
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00412380
push edx
mov ecx, ebp
push eax
lea edx, [0x40f148]
call fcn.00415020
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0xf0
cmp ebp, esp
call fcn.00415080
mov esp, ebp
pop ebp
ret 4

Function at 0x4131a0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
lea edi, [ebp - 0x4c]
mov ecx, 0x13
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
movzx eax, byte [0x41e2c8]
test eax, eax
jne 0x413281
mov eax, dword fs:[0x30]
mov dword [ebp - 8], eax
call fcn.00411c80
mov dword [ebp - 0x10c], eax
mov esi, esp
push 0
call dword [ebp - 0x10c]
cmp esi, esp
call fcn.00415080
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xc]
mov edx, 4
shl edx, 0
mov eax, dword [ecx + edx + 8]
mov dword [ebp - 0x20], eax
xor eax, eax
mov ecx, 4
imul edx, ecx, 0
add eax, edx
mov ecx, dword [ebp - 0x20]
sub ecx, eax
mov dword [ebp - 0x2c], ecx
mov eax, 4
shl eax, 0
mov ecx, dword [ebp - 0x2c]
lea edx, [ecx + eax + 0x1c]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x18]
add ecx, 0x100000
mov edx, dword [ebp - 0x38]
mov dword [edx], ecx
mov dword [ebp - 0x44], 0
call fcn.00411b00
mov dword [ebp - 0x10c], eax
mov esi, esp
lea eax, [ebp - 0x44]
push eax
push 4
push 0x1000
mov ecx, dword [ebp - 0x14]
push ecx
call dword [ebp - 0x10c]
cmp esi, esp
call fcn.00415080
push 0x1000
push 0
mov eax, dword [ebp - 0x14]
push eax
call sub.VCRUNTIME140D.dll_memset
add esp, 0xc
xor eax, eax
push edx
mov ecx, ebp
push eax
lea edx, [0x4132a8]
call fcn.00415020
pop eax
pop edx
pop edi
pop esi
pop ebx
add esp, 0x10c
cmp ebp, esp
call fcn.00415080
mov esp, ebp
pop ebp
ret
Function at 0x401006
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x423008]
jne 0x401010
repz ret
jmp fcn.0040189a

Function at 0x40923e
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.004053ae
and dword [ebp - 4], 0
cmp dword [0x425774], 0
mov ebx, eax
jne 0x4092ef
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4093a0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4093a0
push eax
call fcn.0040533c
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x425774], eax
call esi
push eax
call fcn.0040533c
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x425778], eax
call esi
push eax
call fcn.0040533c
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x42577c], eax
call esi
push eax
call fcn.0040533c
pop ecx
mov dword [0x425784], eax
test eax, eax
je 0x4092ef
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040533c
pop ecx
mov dword [0x425780], eax
mov eax, dword [0x425780]
cmp eax, ebx
je 0x409347
cmp dword [0x425784], ebx
je 0x409347
push eax
call fcn.004053b7
push dword [0x425784]
mov esi, eax
call fcn.004053b7
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x409347
test edi, edi
je 0x409347
call esi
test eax, eax
je 0x40933e
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40933e
test byte [ebp - 0xc], 1
jne 0x409347
or dword [ebp + 0x10], 0x200000
jmp 0x409380
mov eax, dword [0x425778]
cmp eax, ebx
je 0x409380
push eax
call fcn.004053b7
pop ecx
test eax, eax
je 0x409380
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x409380
mov eax, dword [0x42577c]
cmp eax, ebx
je 0x409380
push eax
call fcn.004053b7
pop ecx
test eax, eax
je 0x409380
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x425774]
call fcn.004053b7
pop ecx
test eax, eax
je 0x4093a0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4093a2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40b760
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [0x270d8b4], 0x930
jne 0x40b77d
push str.sacixinojepaluletejowesoyayeyige
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
cmp dword [0x270d8b4], 0x114e
mov eax, dword [ebp + 8]
mov dword [0x270d5d0], eax
jne 0x40b7a3
call dword [sym.imp.KERNEL32.dll_AreFileApisANSI]
lea ecx, [ebp - 0x1c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_BuildCommDCBA]
mov esp, ebp
pop ebp
ret
Function at 0x401393
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
and dword [ebp - 8], 0
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x30], 0x9e3779b9
push edi
lea ecx, [ebp - 8]
mov dword [ebp - 0x34], esi
mov eax, dword [esi]
mov edi, dword [esi + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [str.__s1]
mov dword [ebp - 0x24], eax
mov eax, dword [0x41a30c]
mov dword [ebp - 0x2c], eax
call fcn.0040138c
mov eax, dword [0x41a314]
add dword [ebp - 8], 0x23f
mov esi, dword [0x41a310]
push 0x20
mov dword [ebp - 0x20], eax
pop ebx
mov dword [ebp - 0x18], 2
add dword [ebp - 0x18], 3
mov eax, dword [ebp - 0x14]
shl eax, 4
add eax, esi
mov dword [ebp - 0x1c], 0xedeb2e40
cmp dword [0x476388], 0xfa9
mov dword [ebp - 4], eax
mov eax, dword [0x476384]
cmove eax, dword [ebp - 0x1c]
and dword [ebp - 0x1c], 0
cmp dword [0x476388], 0x3eb
mov dword [0x476384], eax
mov eax, dword [0x475e10]
cmove eax, dword [ebp - 0x1c]
mov dword [0x475e10], eax
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
shr eax, 5
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x20]
xor eax, dword [ebp - 0x1c]
xor eax, dword [ebp - 4]
sub edi, eax
mov dword [ebp - 0xc], eax
mov eax, edi
mov dword [0x476380], 0xf4ea3dee
shl eax, 4
mov dword [ebp - 0x28], edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 4], eax
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 8]
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x28]
nop
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x18]
mov eax, edi
shr eax, cl
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
xor eax, dword [ebp - 0x1c]
cmp dword [0x476388], 0xb03
mov dword [ebp - 4], eax
jne 0x4014c0
push str.Poh_petopanoz_fonoso_culowisuvekocamoc
push edx
push edx
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov eax, dword [ebp - 4]
xor eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x30]
sub dword [ebp - 8], eax
dec ebx
jne 0x4013e4
mov esi, dword [ebp - 0x34]
mov eax, dword [ebp - 0x14]
mov dword [esi + 4], edi
pop edi
mov dword [esi], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d5d3
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419428]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0040804b
mov dword [ebp - 0x14], eax
cmp dword [0x430b1c], esi
jne 0x40d6c6
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d653
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d7a6
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d7a6
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d7a6
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x430b1c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x430b20], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x430b24], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x430b2c], eax
test eax, eax
je 0x40d6c3
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x430b28], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d6eb
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d6de
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d700
push 4
pop eax
jmp 0x40d7a8
cmp dword [ebp - 0x14], esi
je 0x40d700
push dword [0x430b1c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d6e5
mov eax, dword [0x430b28]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d75e
cmp dword [0x430b2c], edi
je 0x40d75e
push eax
call ebx
push dword [0x430b2c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d75e
test eax, eax
je 0x40d75e
call ecx
test eax, eax
je 0x40d753
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40d753
test byte [ebp - 8], 1
jne 0x40d75e
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d78e
mov eax, dword [0x430b20]
cmp eax, edi
je 0x40d78b
push eax
call ebx
test eax, eax
je 0x40d78b
call eax
mov esi, eax
test esi, esi
je 0x40d78b
mov eax, dword [0x430b24]
cmp eax, edi
je 0x40d78b
push eax
call ebx
test eax, eax
je 0x40d78b
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x430b1c]
call ebx
test eax, eax
je 0x40d7a6
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d7a8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040400d
mov esp, ebp
pop ebp
ret
Function at 0x401560
Capabilities:
Get file size
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
pop ebp
jmp fcn.004015f3

Function at 0x402fd1
Capabilities:
Copy file
Delete file

Disassembly:
mov edi, edi
push esi
mov esi, ecx
push edi
cmp dword [esi + 4], 0xffffffff
mov dword [esi], 0x401014
je 0x402fec
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
cmp dword [esi + 0x10], edi
je 0x402fff
push dword [esi + 0x10]
call fcn.00403a4a
pop ecx
mov dword [esi + 0x10], edi
cmp dword [esi + 0x14], edi
je 0x403010
push dword [esi + 0x14]
call fcn.00403a4a
pop ecx
mov dword [esi + 0x14], edi
cmp dword [esi + 0xc], edi
je 0x403034
push edi
push dword [esi + 8]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [esi + 0xc]
call fcn.00403a4a
pop ecx
cmp dword [esi + 8], edi
je 0x403045
push dword [esi + 8]
call fcn.00403a4a
pop ecx
mov dword [esi + 8], edi
pop edi
pop esi
ret