joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405d10
Capabilities:
Create directory
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x41c4a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x5c]
call fcn.00401260
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x88]
call fcn.00404640
push str.gcc_instal_test.dat
mov ecx, eax
call fcn.00404850
push eax
lea ecx, [ebp - 0x30]
call fcn.00404640
mov eax, dword [ebp - 0x88]
test eax, eax
je 0x405d6f
lea ecx, [ebp - 0x7c]
cmp eax, ecx
je 0x405d6f
push eax
call fcn.0040af1a
add esp, 4
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x405d7b
mov eax, 0x41a184
push 0
push 0x80
push 4
push 0
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x405dd7
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x405db0
lea edx, [ebp - 0x24]
cmp eax, edx
je 0x405db0
push eax
call fcn.0040af1a
add esp, 4
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x405dc7
lea ecx, [ebp - 0x50]
cmp eax, ecx
je 0x405dc7
push eax
call fcn.0040af1a
add esp, 4
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b16b
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x405dea
mov eax, 0x41a184
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x405dfb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x405e07
mov eax, 0x41a184
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
mov eax, dword [ebp - 0x30]
jne 0x405e52
test eax, eax
je 0x405e2b
lea edx, [ebp - 0x24]
cmp eax, edx
je 0x405e2b
push eax
call fcn.0040af1a
add esp, 4
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x405dc7
lea ecx, [ebp - 0x50]
cmp eax, ecx
je 0x405dc7
push eax
call fcn.0040af1a
add esp, 4
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b16b
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x405e5b
mov eax, 0x41a184
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x405e79
lea edx, [ebp - 0x24]
cmp eax, edx
je 0x405e79
push eax
call fcn.0040af1a
add esp, 4
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x405e90
lea ecx, [ebp - 0x50]
cmp eax, ecx
je 0x405e90
push eax
call fcn.0040af1a
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
call fcn.0040b16b
mov esp, ebp
pop ebp
ret
Function at 0x406f20
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0xffffffffffffffff
mov edi, ecx
push 0
push ebx
lea ecx, [edi + 0x150]
mov dword [edi + 0x14c], eax
call fcn.00403310
mov cl, byte [ebx + 0x2c]
mov byte [edi + 0x17c], cl
mov dl, byte [ebx + 0x2d]
mov byte [edi + 0x17d], dl
mov al, byte [ebx + 0x2e]
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov byte [edi + 0x17e], al
mov esi, dword [edi + 0x148]
test esi, esi
je 0x406f9d
call ebx
cmp dword [esi + 4], eax
je 0x406f86
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x406f94
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x406f94
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.00408740
add esp, 4
push 0x18
call fcn.00408710
add esp, 4
test eax, eax
je 0x406fc6
mov dword [eax], 0xffffffff
mov dword [eax + 8], edi
mov dword [eax + 0x10], 0x406ee0
mov dword [eax + 0xc], 0x401960
mov esi, eax
jmp 0x406fc8
xor esi, esi
mov dword [edi + 0x148], esi
cmp dword [esi], 0xffffffff
jne 0x406feb
lea ecx, [esi + 4]
push ecx
push 0
push esi
push 0x401b20
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi], eax
cmp byte [ebp + 0x10], 0
je 0x40700e
mov edi, dword [edi + 0x148]
call ebx
cmp dword [edi + 4], eax
je 0x40700e
mov eax, dword [edi]
cmp eax, 0xffffffff
je 0x40700e
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x407130
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x288
mov eax, dword [0x41c4a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x1c]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
push 0xffffffffffffffff
push esi
lea ecx, [ebp - 0x238]
mov dword [ebp - 0x240], eax
call fcn.00401260
push 1
lea ecx, [ebp - 0x238]
push ecx
lea edx, [ebp - 0x23c]
push edx
call fcn.00404c30
mov eax, dword [ebp - 0x238]
add esp, 0xc
test eax, eax
je 0x40719b
lea ecx, [ebp - 0x22c]
cmp eax, ecx
je 0x40719b
push eax
call fcn.0040af1a
add esp, 4
cmp byte [ebp + 0x20], 0
jne 0x4071b2
push esi
call fcn.00405d10
add esp, 4
test al, al
jne 0x407301
cmp byte [ebp + 0x18], 0
jne 0x407301
push 0x104
lea ecx, [ebp - 0x20c]
xor eax, eax
push ecx
lea edx, [ebp - 0x22c]
push eax
mov dword [ebp - 0x238], edx
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x230], 1
mov word [ebp - 0x22c], ax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edx, dword [ebp - 0x240]
push edx
lea eax, [ebp - 0x238]
push str._s__ELEVATED
push eax
call fcn.004046d0
push 0x38
lea ecx, [ebp - 0x284]
push 0
push ecx
call fcn.0040b180
mov eax, dword [ebp - 0x238]
add esp, 0x18
lea edx, [ebp - 0x20c]
mov dword [ebp - 0x288], 0x3c
mov dword [ebp - 0x27c], str.runas
mov dword [ebp - 0x278], edx
mov dword [ebp - 0x274], eax
test eax, eax
jne 0x407264
mov dword [ebp - 0x274], 0x41a184
lea eax, [ebp - 0x288]
push eax
mov dword [ebp - 0x284], 0x40
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x4072bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebp - 0x238]
test eax, eax
je 0x40734d
lea ecx, [ebp - 0x22c]
cmp eax, ecx
je 0x40734d
push eax
call fcn.0040af1a
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b16b
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x250]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 0x250]
lea eax, [ebp - 0x23c]
push eax
push ecx
mov dword [ebp - 0x23c], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [ebp - 0x250]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x23c]
jmp 0x407287
mov edx, dword [ebp + 0x20]
mov eax, dword [ebp + 0xc]
push edx
push esi
push eax
push edi
push ebx
lea ecx, [ebp - 0x24c]
call fcn.00401810
mov ecx, eax
call fcn.00407020
mov esi, eax
mov eax, dword [ebp - 0x248]
mov dword [ebp - method.UnattendedInstaller.virtual_0], vtable.UnattendedInstaller.0
test eax, eax
je 0x40733b
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0x244]
cmp eax, 0xffffffff
je 0x40734d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b16b
mov esp, ebp
pop ebp
ret
Function at 0x408500
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x448
mov eax, dword [0x41c4a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x14]
push esi
lea eax, [ebp - 0x438]
xor edx, edx
push 0x206
mov dword [ebp - 0x444], eax
mov esi, ecx
push edx
lea eax, [ebp - 0x20a]
xor ecx, ecx
push eax
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x43c], 1
mov word [ebp - 0x438], cx
mov word [ebp - 0x20c], dx
call fcn.0040b180
mov edx, dword [esi + 4]
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push 0x3e8
push edx
call dword [sym.imp.USER32.dll_GetDlgItemTextW]
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408585
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x444]
call fcn.004047d0
push 1
push 0
lea ecx, [ebp - 0x448]
push ecx
lea ecx, [ebp - 0x444]
mov dword [ebp - 0x448], 0x20
call fcn.00407bd0
mov edx, dword [esi + 4]
cmp eax, 0xffffffff
je 0x4085fa
push 0x10
push 0
push str.Installation_path_should_not_contain_spaces_
push edx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [ebp - 0x444]
test eax, eax
je 0x4086f2
lea ecx, [ebp - 0x438]
cmp eax, ecx
jmp 0x4086e7
push edi
mov edi, dword [sym.imp.USER32.dll_SendDlgItemMessageW]
push 0
push 0
push 0xf0
push 0x3ec
push edx
call edi
push 0
push 0
and al, 1
push 0xf0
mov byte [ebp - 0x418], al
mov eax, dword [esi + 4]
push 0x3ee
push eax
call edi
mov ecx, dword [esi + 4]
push 0
push 0
push 0xf0
push 0x3ea
and al, 1
push ecx
mov byte [ebp - 0x417], al
call edi
and al, 1
cmp byte [esi + 0x28], 0
mov byte [ebp - 0x416], al
pop edi
je 0x4086a5
test al, al
je 0x4086a5
push 0x104
lea edx, [ebp - 0x414]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 5
push 0
push 0
lea eax, [ebp - 0x414]
push eax
push str.runas
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jle 0x4086a5
mov ecx, dword [esi + 4]
push 0
push ecx
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x4086d5
mov eax, dword [esi + 4]
push 1
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 0
lea eax, [esi + 0x20]
push eax
lea ecx, [ebp - 0x444]
push ecx
mov ecx, dword [esi + 0x24]
call fcn.00406f20
mov dword [ebx], 1
mov eax, dword [ebp - 0x444]
test eax, eax
je 0x4086f2
lea edx, [ebp - 0x438]
cmp eax, edx
je 0x4086f2
push eax
call fcn.0040af1a
add esp, 4
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0040b16b
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40acef
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x41d724], 0
push esi
push edi
jne 0x40ac65
call fcn.0040abd1
test eax, eax
je 0x40acaa
mov eax, dword [0x41d724]
cmp eax, 1
jne 0x40ac86
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x40acaa
jmp 0x40acec
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x40acec
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x40acae
xor eax, eax
jmp 0x40acec
mov eax, dword [esi]
push dword [0x41d724]
call edi
mov edi, eax
test edi, edi
je 0x40acd0
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x40acec
lea edi, [esi + 0xff0]
push esi
push dword [0x41d724]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x40acd6
mov eax, esi
pop edi
pop esi
ret
jmp 0x40ac51

Function at 0x40b16b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41c4a8]
jne 0x40b175
repz ret
jmp fcn.0040deb1
Function at 0x4111c0
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41c4a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040f6ec
and dword [ebp - 0x14], 0
cmp dword [0x41e500], 0
mov dword [ebp - 0x18], eax
jne 0x411273
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41131b
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x419160
push ebx
call edi
test eax, eax
je 0x41131b
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x419150
push ebx
mov dword [0x41e500], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x41e504], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x41e508], eax
call edi
push eax
call esi
mov dword [0x41e510], eax
test eax, eax
je 0x411273
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x41e50c], eax
mov eax, dword [0x41e50c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4112cc
cmp dword [0x41e510], ecx
je 0x4112cc
push eax
call esi
push dword [0x41e510]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4112cc
test ebx, ebx
je 0x4112cc
call edi
test eax, eax
je 0x4112c3
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4112c3
test byte [ebp - 8], 1
jne 0x4112cc
or dword [ebp + 0x10], 0x200000
jmp 0x4112ff
mov eax, dword [0x41e504]
cmp eax, dword [ebp - 0x18]
je 0x4112ff
push eax
call esi
test eax, eax
je 0x4112ff
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4112ff
mov eax, dword [0x41e508]
cmp eax, dword [ebp - 0x18]
je 0x4112ff
push eax
call esi
test eax, eax
je 0x4112ff
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x41e500]
call esi
test eax, eax
je 0x41131b
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41131d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b16b
leave
ret
Function at 0x409e20
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x522c95
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x575464]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [ebp - 0x2c]
push eax
call fcn.00409f40
mov ebx, eax
lea esi, [edi + 0x28]
cmp esi, ebx
je 0x409e96
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x409e6f
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.00405d80
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x409e87
mov eax, dword [esi]
jmp 0x409e89
mov eax, esi
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push ebx
call fcn.004053c0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x409eb2
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.00405d80
push 0x50
call fcn.004e0fd0
mov esi, eax
mov dword [ebp - 0x10], esi
push 0x50
push 0
push esi
mov dword [ebp - 4], 1
call fcn.0049e2a0
add esp, 0x10
mov ecx, 0x40b2b0
push 0x55eb2c
push edi
sub esp, 0x28
mov eax, esp
mov dword [eax + 0x24], 0
test ecx, ecx
je 0x409efd
mov dword [eax], vtable.std::_Func_impl_unsigned_long_int____stdcall___void____class_std::allocator_int___unsigned_long_int__void__.0
mov dword [eax + 4], 0x40b2b0
mov dword [eax + 0x24], eax
mov ecx, esi
call fcn.0043a370
mov dword [edi + 0x74], eax
mov eax, dword [eax + 4]
test eax, eax
je 0x409f15
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c5c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x522f16
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x575464]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.004e0fd0
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.004de882
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40d420
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5230ca
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x575464]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x28], esi
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x2c], esi
call fcn.004dec49
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x40d4e0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], vtable.std::exception.0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], str.bad_locale_name
xorps xmm0, xmm0
mov byte [ebp - 0x14], 1
push eax
movq qword [ebp - 0x20], xmm0
call fcn.0049d8be
add esp, 8
mov dword [ebp - 0x24], vtable.std::runtime_error.0
lea eax, [ebp - 0x24]
push 0x571f38
push eax
call fcn.0049e7d0
push edi
push esi
call fcn.004de985
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e0f8e
mov esp, ebp
pop ebp
ret 4
Function at 0x410020
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x575464]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 2
mov dword [ebp - 0x238], ecx
mov dword [ebp - 0x234], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [ebp - 0x230], 0x22c
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x41007b
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e0f8e
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
lea eax, [ebp - 0x230]
push eax
push esi
mov dword [ebp - 0x230], 0x22c
call edi
test eax, eax
je 0x4100db
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push dword [ebp - 0x238]
lea eax, [ebp - 0x20c]
push eax
call ebx
test eax, eax
je 0x4100ce
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push esi
call edi
test eax, eax
jne 0x4100a1
jmp 0x4100da
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x234], eax
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x234]
xor ecx, ebp
pop edi
pop esi
call fcn.004e0f8e
mov esp, ebp
pop ebp
ret
Function at 0x410770
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x575464]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x208
push 0
push eax
mov esi, ecx
mov dword [ebp - 0x210], 0
call fcn.0049e2a0
add esi, 0x6b8
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x4107b8
mov esi, dword [esi]
push 0
push str.set.ini
push esi
push 0
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00505274
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
push 0x104
push eax
push 0x55ecfc
push 0x55f4f8
push 0x55f4e8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
cmp word [ebp - 0x20c], ax
jne 0x410818
xor ecx, ecx
jmp 0x410830
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410821
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.00405c20
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.004e0f8e
mov esp, ebp
pop ebp
ret 4
Function at 0x410860
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5236bb
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x575464]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ecx + 0x6e4], 8
lea esi, [ecx + 0x6d0]
jb 0x4108a0
mov eax, dword [esi]
jmp 0x4108a2
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esi + 0x14], 8
jb 0x4108b1
mov esi, dword [esi]
push ecx
push esi
push ecx
mov edx, 0x104
lea ecx, [ebp - 0x218]
call fcn.0040ee10
mov esi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov edi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea eax, [ebp - 0x218]
push eax
call esi
lea eax, [ebp - 0x218]
push eax
call edi
test eax, eax
jne 0x4108d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x3e
xor eax, eax
mov dword [ebp - 0x22c], 7
push str._P_05d__T_05d___04d__02d__02d__02d:_02d:_02d._03d___s___04d_:
lea ecx, [ebp - 0x240]
mov dword [ebp - 0x230], 0
mov word [ebp - 0x240], ax
call fcn.00405c20
push 6
push str.Err:_d
lea ecx, [ebp - 0x240]
mov dword [ebp - 4], 0
call fcn.00405630
mov esi, eax
cmp dword [esi + 0x14], 8
jb 0x41094d
mov esi, dword [esi]
movzx eax, word [ebp - 0x21a]
push edi
push 0x24b
push str.CMainWnd::RemoveSensorIni
push eax
movzx eax, word [ebp - 0x21c]
push eax
movzx eax, word [ebp - 0x21e]
push eax
movzx eax, word [ebp - 0x220]
push eax
movzx eax, word [ebp - 0x222]
push eax
movzx eax, word [ebp - 0x226]
push eax
movzx eax, word [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push esi
call fcn.0043bef0
mov eax, dword [ebp - 0x22c]
add esp, 0x34
cmp eax, 8
jb 0x4109c5
inc eax
lea ecx, [ebp - 0x240]
push eax
push dword [ebp - 0x240]
call fcn.00405d80
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e0f8e
mov esp, ebp
pop ebp
ret
Function at 0x412e70
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x575464]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x10], eax
mov eax, dword [edx + 0x14]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 0x1c], eax
push edi
mov edi, dword [edx + 0x10]
cmp eax, 0x10
jb 0x412ea4
mov ebx, dword [edx]
jmp 0x412ea6
mov ebx, edx
xor ecx, ecx
mov esi, 0x811c9dc5
test edi, edi
je 0x412ec2
movzx eax, byte [ebx + ecx]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edi
jb 0x412eb1
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0xc]
and eax, esi
mov ebx, dword [ebx + 4]
mov dword [ebp - 0xc], ebx
mov esi, dword [ecx + eax*8]
add eax, eax
mov edx, dword [ecx + eax*4]
inc eax
mov dword [ebp - 0x14], edx
lea eax, [ecx + eax*4]
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 8]
cmp dword [ebp - 0x14], ebx
jne 0x412ef1
mov eax, ebx
jmp 0x412ef5
mov eax, dword [eax]
mov eax, dword [eax]
cmp esi, eax
je 0x412f8d
cmp dword [edx + 0x14], 0x10
lea ecx, [esi + 8]
jb 0x412f08
mov edx, dword [edx]
cmp dword [ecx + 0x14], 0x10
lea ebx, [ecx + 0x10]
jb 0x412f13
mov ecx, dword [ecx]
mov ebx, dword [ebx]
mov eax, edi
cmp ebx, edi
cmovb eax, ebx
push eax
push edx
push ecx
call fcn.00412270
add esp, 0xc
test eax, eax
jne 0x412f31
cmp ebx, edi
jb 0x412f31
jbe 0x412f3b
mov esi, dword [esi]
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
jmp 0x412ee5
cmp dword [esi + 0x1c], 0x10
lea edx, [esi + 8]
lea ebx, [edx + 0x10]
jb 0x412f49
mov edx, dword [edx]
cmp dword [ebp - 0x1c], 0x10
mov ecx, dword [ebp - 8]
jb 0x412f54
mov ecx, dword [ecx]
mov ebx, dword [ebx]
cmp edi, ebx
mov eax, ebx
cmovb eax, edi
push eax
push edx
push ecx
call fcn.00412270
add esp, 0xc
test eax, eax
jne 0x412f72
cmp edi, ebx
jb 0x412f72
jbe 0x412f75
mov esi, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
pop edi
mov dword [eax], esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e0f8e
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov dword [eax], ebx
xor ecx, ebp
pop ebx
call fcn.004e0f8e
mov esp, ebp
pop ebp
ret 8