joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402317
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x40b9b0]
or eax, dword [0x40b9b4]
jne 0x40244c
lea eax, [ebp - 8]
mov dword [ebp - 0xc], 0x104
push eax
push 0x20019
push 0
push 0x4042b4
push 0x80000002
call dword [sym.imp.ADVAPI32.DLL_RegOpenKeyExA]
test eax, eax
jne 0x40244c
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0x4042ac
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.DLL_RegQueryValueExA]
test eax, eax
jne 0x402443
cmp dword [ebp - 0x14], 1
jne 0x402443
lea eax, [ebp - 0x118]
push ebx
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 4]
push edi
push eax
call fcn.00402459
mov esi, eax
lea eax, [ebp - 4]
push eax
call fcn.00402483
lea eax, [ebp - 4]
push eax
call fcn.00402459
mov edi, eax
lea eax, [ebp - 4]
push eax
call fcn.00402483
lea eax, [ebp - 4]
push eax
call fcn.00402459
mov ebx, eax
lea eax, [ebp - 4]
push eax
call fcn.00402483
lea eax, [ebp - 4]
push eax
call fcn.00402459
mov dword [ebp - 0x10], eax
lea eax, [ebp - 4]
push eax
call fcn.00402483
movzx eax, si
push 0x10
cdq
pop ecx
call fcn.004024a2
mov esi, eax
push 0x10
movzx eax, di
mov edi, esi
mov esi, edx
pop ecx
cdq
or edi, eax
or esi, edx
mov eax, edi
mov edx, esi
call fcn.004024a2
mov esi, eax
mov edi, edx
movzx eax, bx
cdq
or esi, eax
or edi, edx
push 0x10
mov eax, esi
pop ecx
mov edx, edi
call fcn.004024a2
mov ecx, eax
mov esi, edx
movzx eax, word [ebp - 0x10]
cdq
or ecx, eax
or esi, edx
mov dword [0x40b9b4], esi
pop edi
pop esi
mov dword [0x40b9b0], ecx
pop ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
mov eax, dword [0x40b9b0]
mov edx, dword [0x40b9b4]
leave
ret

Function at 0x402571
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push ebx
push esi
push edi
push 0x46
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x118]
mov dword [ebp - 0x11c], ebx
push 0x40b988
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
mov eax, dword [ebp + 8]
push 1
pop esi
mov dword [0x40b0d8], eax
push esi
call fcn.00402613
cmp eax, ebx
mov dword [0x40b0cc], eax
jne 0x407dc2
mov dword [0x40b9a0], ebx
cmp dword [0x40b0cc], ebx
mov dword [ebp - 0x11c], 0x11c
jne 0x407ddc
push 4
call fcn.00402613
test eax, eax
jne 0x407e1d
mov dword [0x40b9a4], ebx
call dword [sym.imp.KERNEL32.DLL_GetACP]
mov dword [0x40b9a8], eax
call fcn.004026eb
push dword [ebp + 0xc]
call fcn.00402ab7
push dword [ebp + 0xc]
call fcn.00402ae1
pop edi
pop esi
pop ebx
leave
ret 8
push 4
call fcn.00402613
test eax, eax
mov dword [0x40b9a0], esi
je 0x4025c1
jmp 0x4025bb
cmp dword [0x40b9a0], ebx
jne 0x4025d7
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetVersionExW]
test eax, eax
je 0x4025d7
cmp dword [ebp - 0x114], esi
jae 0x407e12
cmp dword [ebp - 0x118], 6
jb 0x4025d7
mov dword [0x40bcb0], esi
jmp 0x4025d7
push 0x1000
call dword [sym.imp.USER32.DLL_GetSystemMetrics]
test eax, eax
mov dword [0x40b9a4], esi
jne 0x4025ec
jmp 0x4025e6
Function at 0x402613
Capabilities:
Check os version

Disassembly:
cmp dword [0x40ba5c], 0
push ebx
push esi
push edi
push 1
pop ebx
je 0x40267e
mov eax, dword [esp + 0x10]
cmp eax, 0x11
ja case.default.0x40262f
jmp dword [eax*4 + 0x402636]
mov esi, dword [sym.imp.KERNEL32.DLL_GetVersionExA]
mov edi, 0x40b9c0
push edi
mov dword [0x40ba5c], ebx
mov dword [0x40b9c0], 0x9c
call esi
test eax, eax
jne 0x402622
jmp 0x407f69
mov eax, ebx
jmp 0x4026e5
xor eax, eax
cmp dword [0x40b9d0], 2
sete al
jmp 0x4026e5
cmp dword [0x40b9d0], ebx
jne case.default.0x40262f
mov eax, dword [0x40b9c4]
cmp eax, 4
ja 0x4026a5
jne case.default.0x40262f
cmp dword [0x40b9c8], 0xa
jb case.default.0x40262f
jmp 0x4026a5
cmp dword [0x40b9d0], 2
je 0x407f98
xor eax, eax
pop edi
pop esi
pop ebx
ret 4
push edi
mov dword [0x40b9c0], 0x94
call esi
jmp 0x402622
push 0x1000
call dword [sym.imp.USER32.DLL_GetSystemMetrics]
jmp 0x4026e5
test byte [0x40ba58], 0x10
je case.default.0x40262f
cmp dword [0x40b9c4], 5
jmp 0x4026d2
call fcn.00407ee9
jmp 0x4026e5
mov al, byte [0x40ba5a]
cmp al, bl
je 0x407f98
cmp al, 3
je 0x407f98
cmp al, 2
jmp 0x4026dd
cmp byte [0x40ba5a], bl
jne case.default.0x40262f
cmp dword [0x40b9c4], 5
jmp 0x4080de
mov al, byte [0x40ba5a]
cmp al, 3
je 0x407feb
cmp al, 2
jne case.default.0x40262f
cmp dword [0x40b9c4], 5
jne case.default.0x40262f
mov al, byte [0x40ba58]
test al, 2
je case.default.0x40262f
test al, 0x80
jmp 0x4080de
mov al, byte [0x40ba5a]
cmp al, 3
je 0x40801d
cmp al, 2
jne case.default.0x40262f
cmp dword [0x40b9c4], 5
jne case.default.0x40262f
test byte [0x40ba58], 0x80
je case.default.0x40262f
jmp 0x4026a5
mov al, byte [0x40ba5a]
cmp al, 3
je 0x40804d
cmp al, 2
jne case.default.0x40262f
test byte [0x40ba58], 0x82
jmp 0x407fc8
mov eax, dword [0x40ba58]
and eax, 0x40
jmp 0x4026e5
xor eax, eax
cmp dword [0x40b9d0], ebx
jmp 0x4026b2
cmp dword [0x40b9d0], ebx
jmp 0x40811d
cmp dword [0x40b9d0], ebx
jne case.default.0x40262f
cmp dword [0x40b9c4], 4
jne case.default.0x40262f
cmp dword [0x40b9c8], 0
jne case.default.0x40262f
cmp word [0x40b9cc], 0x3b6
jmp 0x4080de
cmp dword [0x40b9d0], ebx
jne case.default.0x40262f
cmp dword [0x40b9c4], 4
jne case.default.0x40262f
cmp dword [0x40b9c8], 0xa
jne case.default.0x40262f
cmp word [0x40b9cc], 0x7ce
jne case.default.0x40262f
jmp 0x4026a5
cmp dword [0x40b9d0], ebx
mov eax, dword [0x40b9c4]
jne 0x408108
cmp eax, 4
jne 0x40810b
cmp dword [0x40b9c8], 0x5a
jae 0x4026a5
cmp eax, 4
jbe case.default.0x40262f
jmp 0x4026a5
cmp dword [0x40b9d0], 2
jne case.default.0x40262f
cmp dword [0x40b9c4], 4
jmp 0x4026d2
Function at 0x402953
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x52c
cmp dword [0x40b0cc], 0
jne 0x406abd
push esi
lea ecx, [ebp - 0x52c]
push dword [ebp + 8]
call fcn.004016fd
push dword [ebp + 0xc]
lea ecx, [ebp - 0x318]
call fcn.004016fd
push dword [ebp + 0x14]
lea ecx, [ebp - 0x104]
call fcn.004029cf
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 0x10]
push dword [ebp - 0x314]
push dword [ebp - 0x528]
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntA]
lea ecx, [ebp - 0x318]
mov esi, eax
call fcn.004016db
lea ecx, [ebp - 0x52c]
call fcn.004016db
mov eax, esi
pop esi
leave
ret 0x10
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntW]
jmp 0x4029cb

Function at 0x402c2c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x430
cmp dword [0x40b0cc], 0
jne 0x406d8e
push ebx
push esi
push edi
lea ecx, [ebp - 0x430]
push dword [ebp + 0xc]
call fcn.004016fd
mov esi, dword [ebp + 0x1c]
lea eax, [ebp + 0xc]
neg esi
sbb esi, esi
mov edi, dword [sym.imp.ADVAPI32.DLL_RegQueryValueExA]
and esi, eax
lea eax, [ebp - 4]
push esi
push 0
push eax
push dword [ebp + 0x10]
push dword [ebp - 0x42c]
push dword [ebp + 8]
call edi
mov ebx, eax
test ebx, ebx
jne 0x402ca8
cmp dword [ebp - 4], eax
jbe 0x402c8f
cmp dword [ebp - 4], 2
jbe 0x406dab
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x42c]
push dword [ebp + 8]
call edi
mov ebx, eax
lea ecx, [ebp - 0x430]
call fcn.004016db
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret 0x18
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.DLL_RegQueryValueExW]
jmp 0x402cb8
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x406db8
mov eax, dword [eax]
shr eax, 1
jmp 0x406dba
xor eax, eax
push eax
lea ecx, [ebp - 0x21c]
push dword [ebp + 0x18]
call fcn.004027fd
push esi
mov eax, dword [ebp - 8]
push dword [ebp - 0x218]
add eax, eax
mov dword [ebp + 0xc], eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x42c]
push dword [ebp + 8]
call edi
mov ebx, eax
test ebx, ebx
je 0x406dff
lea ecx, [ebp - 0x21c]
call fcn.00402942
jmp 0x402ca8
cmp dword [ebp - 0x218], 0
je 0x406e16
lea ecx, [ebp - 0x21c]
call fcn.00402858
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x406def
mov ecx, dword [ebp + 0xc]
add ecx, ecx
mov dword [eax], ecx
jmp 0x406def
Function at 0x403180
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x958
cmp dword [0x40b0cc], 0
jne 0x406fb8
push esi
lea ecx, [ebp - 0x744]
push dword [ebp + 8]
call fcn.004016fd
push dword [ebp + 0xc]
lea ecx, [ebp - 0x530]
call fcn.004016fd
push dword [ebp + 0x10]
lea ecx, [ebp - 0x958]
call fcn.004016fd
push dword [ebp + 0x1c]
lea ecx, [ebp - 0x31c]
call fcn.004029cf
push dword [ebp + 0x18]
lea ecx, [ebp - 0x218]
push dword [ebp + 0x14]
call fcn.004027fd
lea eax, [ebp - 0x31c]
push eax
push dword [ebp + 0x18]
push dword [ebp - 0x214]
push dword [ebp - 0x954]
push dword [ebp - 0x52c]
push dword [ebp - 0x740]
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
lea ecx, [ebp - 0x218]
mov esi, eax
call fcn.00402858
lea ecx, [ebp - 0x218]
call fcn.00402942
lea ecx, [ebp - 0x958]
call fcn.004016db
lea ecx, [ebp - 0x530]
call fcn.004016db
lea ecx, [ebp - 0x744]
call fcn.004016db
mov eax, esi
pop esi
leave
ret 0x18
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
jmp 0x403244
Function at 0x4035dd
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
push edi
push 4
call fcn.00402613
test eax, eax
jne 0x403601
push 5
call fcn.00402613
test eax, eax
je 0x407164
mov eax, dword [0x40b13c]
test eax, eax
jne 0x40362d
push 0x403f3c
push 0x403f28
call fcn.0040363d
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
mov dword [0x40b13c], eax
je 0x407164
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
pop edi
leave
ret 0xc
and dword [ebp - 4], 0
push 0x8001
call dword [sym.imp.KERNEL32.DLL_SetErrorMode]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 8], eax
test edi, edi
jne 0x407186
mov dword [ebp - 4], 1
jmp 0x407189
and byte [edi], 0
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
push esi
je 0x4072bd
push ebx
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4072bd
push ebx
call fcn.004095cc
test eax, eax
jne 0x4072bd
cmp byte [ebx + 1], 0x3a
jne 0x4072bd
cmp byte [ebx + 2], 0x5c
jne 0x4072bd
cmp dword [ebp - 4], eax
mov esi, dword [sym.imp.KERNEL32.DLL_lstrcpynA]
jne 0x4071e1
cmp dword [ebp + 0x10], 3
jb 0x4071e1
push 3
push ebx
push edi
call esi
jmp 0x4071e8
mov dword [ebp - 4], 1
push 2
lea eax, [ebp - 0x10c]
pop edi
push 0x104
push ebx
push eax
call esi
cmp byte [ebp - 0x109], 0
lea esi, [ebp - 0x109]
je 0x4072c7
push 0x5c
push esi
call fcn.004095ba
mov esi, eax
test esi, esi
jne 0x40722f
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
lea esi, [ebp + eax - 0x10c]
mov bl, byte [esi]
and byte [esi], 0
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
cmp eax, 0xffffffff
je 0x4072ab
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
cmp dword [ebp - 4], 0
lea edi, [edi + eax + 1]
jne 0x407284
cmp edi, dword [ebp + 0x10]
jae 0x407284
lea eax, [ebp - 0x220]
push eax
push dword [ebp + 0xc]
push dword [ebp + 0xc]
call fcn.004095a8
jmp 0x407291
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], 1
and byte [eax], 0
test bl, bl
mov byte [esi], bl
je 0x4072a0
push esi
call dword [sym.imp.USER32.DLL_CharNextA]
mov esi, eax
cmp byte [esi], 0
jne 0x40720d
jmp 0x4072c7
push 0x57
call dword [sym.imp.KERNEL32.DLL_SetLastError]
mov eax, dword [ebp + 0xc]
and byte [eax], 0
mov byte [esi], bl
jmp 0x4072c5
push 0x57
call dword [sym.imp.KERNEL32.DLL_SetLastError]
xor edi, edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_SetErrorMode]
pop esi
pop ebx
test edi, edi
je 0x4072e3
cmp dword [ebp - 4], 0
lea eax, [edi + 1]
jne 0x403638
mov eax, edi
jmp 0x403638
Function at 0x403724
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
cmp dword [0x40b0cc], 0
jne 0x4069d7
push esi
lea ecx, [ebp - 0x214]
push dword [ebp + 8]
call fcn.004016fd
push dword [ebp + 0xc]
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
lea ecx, [ebp - 0x214]
mov esi, eax
call fcn.004016db
mov eax, esi
pop esi
leave
ret 8
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
jmp 0x403768

Function at 0x40376c
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
cmp dword [0x40b0cc], 0
jne 0x40682b
push esi
lea ecx, [ebp - 0x214]
push dword [ebp + 8]
call fcn.004016fd
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
lea ecx, [ebp - 0x214]
mov esi, eax
call fcn.004016db
mov eax, esi
pop esi
leave
ret 4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
jmp 0x4037ad
Function at 0x405067
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x334
push ebx
push esi
mov esi, 0x104
push edi
lea eax, [ebp - 0x334]
push esi
push eax
push dword [ebp + 8]
call fcn.004029e7
mov edi, dword [0x40b054]
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x230]
push eax
call edi
lea eax, [ebp - 0x334]
push 0x4044e0
push eax
call dword [0x40b018]
lea eax, [ebp - 0x334]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
and byte [ebp + eax - 0x333], 0
mov ebx, dword [0x40b058]
lea eax, [ebp - 0x230]
push eax
call ebx
lea eax, [ebp - 0x230]
push eax
call ebx
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
xor ecx, ecx
mov dword [ebp - 0x24], 2
mov word [ebp + eax*2 - 0x22e], cx
lea eax, [ebp - 0x334]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x230]
test eax, eax
mov dword [ebp - 0x28], ecx
jne 0x405113
mov dword [ebp - 0x1c], ecx
jmp 0x40515a
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
lea eax, [eax + eax + 2]
mov dword [ebp - 4], eax
add eax, 3
and al, 0xfc
call fcn.004021ac
xor ecx, ecx
mov eax, esp
push ecx
push ecx
push dword [ebp - 4]
and byte [eax], 0
mov dword [ebp - 8], eax
push eax
lea eax, [ebp - 0x230]
push 0xffffffffffffffff
push eax
push ecx
push ecx
call dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
mov eax, dword [ebp - 8]
xor ecx, ecx
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x28]
mov word [ebp - 0x18], 0x614
push eax
mov dword [ebp - 0x16], ecx
mov dword [ebp - 0x12], ecx
mov dword [ebp - 0xe], ecx
call dword [0x40b080]
lea eax, [ebp - 0x230]
push eax
call dword [0x40b014]
push esi
push 0x4044c8
push eax
mov dword [ebp - 4], eax
call edi
lea eax, [ebp - 0x230]
push eax
call fcn.0040376c
push esi
push 0x4044ac
push dword [ebp - 4]
call edi
lea eax, [ebp - 0x230]
push eax
call fcn.0040376c
push esi
push 0x404490
push dword [ebp - 4]
call edi
lea eax, [ebp - 0x230]
push eax
call fcn.0040376c
push dword [ebp + 8]
call dword [0x40b044]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push esi
push 1
push 0x40447c
push 0x404440
push 0x80000002
call dword [0x40b048]
lea eax, [ebp - 0x230]
push eax
call ebx
lea eax, [ebp - 0x230]
push 0x404430
push eax
call dword [0x40b05c]
lea eax, [ebp - 0x230]
push 0
push eax
call fcn.00407337
lea esp, [ebp - 0x340]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x405d57
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
push esi
lea eax, [ebp - 0x214]
push 0x104
xor esi, esi
push eax
push esi
call fcn.004027a1
test eax, eax
je 0x405d94
lea eax, [ebp - 0x214]
push eax
call dword [0x40b058]
lea eax, [ebp - 0x214]
push eax
call dword [0x40b014]
lea eax, [ebp - 0x214]
push 0x404888
push eax
lea eax, [ebp - 0x214]
push eax
call dword [0x40b008]
push esi
push 2
push 4
push esi
push esi
lea eax, [ebp - 0x214]
push 0x40000000
push eax
call fcn.004036cd
mov ebx, eax
cmp ebx, 0xffffffff
je 0x405e0b
mov ax, word [ebp + 8]
push 2
mov word [ebp - 8], ax
mov eax, dword [ebp + 0xc]
push esi
push esi
push ebx
mov dword [ebp - 0xc], 2
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
lea eax, [ebp + 8]
push esi
push eax
lea eax, [ebp - 0xc]
push 0xc
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, esi
jmp 0x405e0d
xor eax, eax
pop esi
pop ebx
leave
ret 8

Function at 0x405fcc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0c
push esi
lea eax, [ebp - 0x20c]
push 0x104
push eax
push dword [0x40b0d8]
xor esi, esi
mov dword [ebp - 4], esi
call fcn.004027a1
test eax, eax
je 0x4060d9
push ebx
lea eax, [ebp - 0x20c]
push edi
push eax
call dword [0x40b058]
mov edi, dword [0x40b05c]
lea eax, [ebp - 0x20c]
push 0x4046f8
push eax
call edi
lea eax, [ebp - 0x20c]
push eax
call fcn.00403c0f
mov ebx, eax
cmp ebx, esi
je 0x4060d4
push 9
push ebx
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
cmp eax, esi
je 0x4060cd
lea ecx, [ebp - 0xa0c]
push 0x400
push ecx
mov word [ebp - 0xa0c], si
call eax
cmp word [ebp - 0xa0c], si
je 0x4060cd
push dword [ebp + 8]
push 2
call fcn.00406ad4
test eax, eax
je 0x4060cd
push 0x4046d8
push dword [ebp + 8]
call edi
test eax, eax
je 0x4060cd
push esi
push 0x100
push 2
push esi
push esi
push 0x40000000
push dword [ebp + 8]
call fcn.004036cd
mov edi, eax
cmp edi, 0xffffffff
je 0x4060cd
lea eax, [ebp + 8]
push esi
push eax
lea eax, [ebp - 0xa0c]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
shl eax, 1
push eax
lea eax, [ebp - 0xa0c]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [ebp - 4], 1
push ebx
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov eax, dword [ebp - 4]
pop edi
pop ebx
pop esi
leave
ret 8
Function at 0x406165
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push esi
mov esi, ecx
push dword [esi + 4]
mov dword [esi], 0x40470c
call dword [sym.imp.USER32.DLL_IsWindow]
test eax, eax
je 0x4061e0
push 0xffffffffffffffeb
push dword [esi + 4]
call fcn.0040198f
cmp esi, eax
jne 0x4061e0
push 0
push 0xffffffffffffffeb
push dword [esi + 4]
call fcn.00403b6e
and byte [ebp - 0x10c], 0
lea eax, [ebp - 0x10c]
push 0x100
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.DLL_GetWindowTextA]
lea ecx, [ebp - 0x10c]
push 1
mov dword [ebp - 8], ecx
pop eax
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], eax
push ecx
push eax
push 0x4000000
push 0x30357864
call fcn.00403379
add esp, 0x10
pop esi
leave
ret

Function at 0x406474
Capabilities:
Check for unmoving mouse cursor

Disassembly:
mov eax, dword [esp + 4]
push esi
cmp eax, 0x205
mov esi, ecx
jne 0x406499
lea eax, [esi + 0xc]
push eax
call dword [sym.imp.USER32.DLL_GetCursorPos]
test eax, eax
je 0x4064db
mov ecx, esi
call fcn.00406348
jmp 0x4064db
cmp eax, 0x202
jne 0x4064c4
lea eax, [esi + 0xc]
push eax
call dword [sym.imp.USER32.DLL_GetCursorPos]
test eax, eax
je 0x4064db
call dword [sym.imp.USER32.DLL_GetDoubleClickTime]
push 0
push eax
push 0x64
push dword [esi + 4]
call dword [sym.imp.USER32.DLL_SetTimer]
jmp 0x4064db
cmp eax, 0x203
jne 0x4064db
push 0
mov ecx, esi
mov dword [esi + 0x18], 1
call fcn.004062e5
pop esi
ret 4

Function at 0x406ad4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
cmp dword [0x40b0cc], 0
je 0x406af4
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
jmp 0x406b33
push esi
lea ecx, [ebp - 0x218]
push dword [ebp + 8]
push dword [ebp + 0xc]
call fcn.004027fd
mov eax, dword [ebp - 4]
push dword [ebp - 0x214]
add eax, eax
push eax
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
lea ecx, [ebp - 0x218]
call fcn.004067b4
lea ecx, [ebp - 0x218]
mov esi, eax
call fcn.00402942
mov eax, esi
pop esi
leave
ret 8

Function at 0x406cb0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
cmp dword [0x40b0cc], 0
je 0x406cd3
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CopyFileW]
jmp 0x406d20
push esi
lea ecx, [ebp - 0x428]
push dword [ebp + 8]
call fcn.004016fd
push dword [ebp + 0xc]
lea ecx, [ebp - 0x214]
call fcn.004016fd
push dword [ebp + 0x10]
push dword [ebp - 0x210]
push dword [ebp - 0x424]
call dword [sym.imp.KERNEL32.DLL_CopyFileA]
lea ecx, [ebp - 0x214]
mov esi, eax
call fcn.004016db
lea ecx, [ebp - 0x428]
call fcn.004016db
mov eax, esi
pop esi
leave
ret 0xc

Function at 0x406e34
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
cmp dword [0x40b0cc], 0
je 0x406e51
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
jmp 0x406e7c
push esi
lea ecx, [ebp - 0x214]
push dword [ebp + 8]
call fcn.004016fd
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryA]
lea ecx, [ebp - 0x214]
mov esi, eax
call fcn.004016db
mov eax, esi
pop esi
leave
ret 4
Function at 0x406ff7
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcbc
cmp dword [0x40b0cc], 0
push esi
je 0x407035
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
mov esi, eax
jmp 0x40715d
push ebx
lea ecx, [ebp - 0x258]
push dword [ebp + 8]
call fcn.004016fd
push dword [ebp + 0xc]
lea ecx, [ebp - 0x46c]
call fcn.004016fd
push dword [ebp + 0x24]
lea ecx, [ebp - 0x680]
call fcn.004016fd
mov ebx, dword [ebp + 0x28]
test ebx, ebx
jne 0x407099
push dword [ebp + 0x2c]
push ebx
push dword [ebp - 0x67c]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x468]
push dword [ebp - 0x254]
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
mov esi, eax
jmp 0x40713b
push edi
push 0x11
pop ecx
mov esi, ebx
push dword [ebx + 4]
lea edi, [ebp - 0x44]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0xcbc]
call fcn.004016fd
push dword [ebx + 8]
lea ecx, [ebp - 0xaa8]
call fcn.004016fd
push dword [ebx + 0xc]
lea ecx, [ebp - 0x894]
call fcn.004016fd
mov eax, dword [ebp - 0xcb8]
push dword [ebp + 0x2c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0xaa4]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x890]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x67c]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x468]
push dword [ebp - 0x254]
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
lea ecx, [ebp - 0x894]
mov esi, eax
call fcn.004016db
lea ecx, [ebp - 0xaa8]
call fcn.004016db
lea ecx, [ebp - 0xcbc]
call fcn.004016db
pop edi
lea ecx, [ebp - 0x680]
call fcn.004016db
lea ecx, [ebp - 0x46c]
call fcn.004016db
lea ecx, [ebp - 0x258]
call fcn.004016db
pop ebx
mov eax, esi
pop esi
leave
ret 0x28

Function at 0x407ee9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
xor edi, edi
cmp dword [0x40bcb4], edi
jne 0x407f61
push 0xc
mov dword [0x40bcb4], 1
call fcn.00402613
test eax, eax
je 0x407f61
lea eax, [ebp - 4]
push eax
push 1
push edi
push 0x4048bc
push 0x80000002
call dword [sym.imp.ADVAPI32.DLL_RegOpenKeyExW]
test eax, eax
jne 0x407f61
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push edi
push 0x4048a4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.DLL_RegQueryValueExW]
test eax, eax
jne 0x407f58
cmp dword [ebp - 0xc], edi
sete al
mov dword [0x40bcb8], eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
mov eax, dword [0x40bcb8]
pop edi
leave
ret