joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407e10
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [eax + 4]
push ebx
push esi
push edi
mov edi, dword [eax]
mov dword [ebp - 0x10], eax
cmp edi, eax
je 0x407f52
lea esp, [esp]
mov ecx, dword [0x460228]
mov dword [ebp - 0xc], ecx
lea ecx, [edi + 0xc]
mov eax, 0x460224
call fcn.004074f0
mov ebx, dword [0x460228]
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x407e97
mov eax, dword [eax + 0xc]
test eax, eax
je 0x407f5b
mov ecx, eax
mov eax, dword [edi + 0xc]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x407e89
test dx, dx
je 0x407e85
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x407e89
add eax, 4
add ecx, 4
test dx, dx
jne 0x407e63
xor eax, eax
jmp 0x407e8e
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
js 0x407e97
lea eax, [ebp - 4]
jmp 0x407e9d
mov dword [ebp - 8], ebx
lea eax, [ebp - 8]
mov edx, dword [ebp - 0xc]
cmp dword [eax], edx
je 0x407eb1
push 0x460224
lea ecx, [edi + 0xc]
call fcn.00406f60
mov edx, dword [edi + 0x10]
mov edx, dword [edx]
mov eax, dword [edi + 0xc]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
push 4
mov dword [ebp - 0xc], edx
lea edx, [ebp - 0xc]
push edx
push 4
push 0
push eax
mov eax, dword [ecx + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x407f09
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp + 0xc]
mov esi, dword [ecx]
cmp dword [esi - 0xc], 0
je 0x407f09
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x59
push str._anonymous_namespace::_lambda5_::operator___
mov edx, str...Commonprotocol.cpp
mov ecx, esi
call fcn.00403b50
add esp, 0xc
cmp byte [edi + 0x15], 0
jne 0x407f49
mov ecx, dword [edi + 8]
cmp byte [ecx + 0x15], 0
jne 0x407f2e
mov eax, dword [ecx]
cmp byte [eax + 0x15], 0
jne 0x407f2a
mov ecx, eax
mov eax, dword [ecx]
cmp byte [eax + 0x15], 0
je 0x407f20
mov edi, ecx
jmp 0x407f49
mov eax, dword [edi + 4]
cmp byte [eax + 0x15], 0
jne 0x407f47
cmp edi, dword [eax + 8]
jne 0x407f47
mov edi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x15], 0
je 0x407f37
mov edi, eax
cmp edi, dword [ebp - 0x10]
jne 0x407e30
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.004036b0
int3
Function at 0x407f70
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [eax + 4]
push ebx
push esi
push edi
mov edi, dword [eax]
mov dword [ebp - 0x14], eax
cmp edi, eax
je 0x4080b2
lea esp, [esp]
mov ecx, dword [0x460228]
mov dword [ebp - 0x10], ecx
lea ecx, [edi + 0xc]
mov eax, 0x460224
call fcn.004074f0
mov ebx, dword [0x460228]
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x407ff7
mov eax, dword [eax + 0xc]
test eax, eax
je 0x4080bb
mov ecx, eax
mov eax, dword [edi + 0xc]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x407fe9
test dx, dx
je 0x407fe5
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x407fe9
add eax, 4
add ecx, 4
test dx, dx
jne 0x407fc3
xor eax, eax
jmp 0x407fee
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
js 0x407ff7
lea eax, [ebp - 8]
jmp 0x407ffd
mov dword [ebp - 0xc], ebx
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0x10]
cmp dword [eax], edx
je 0x408011
push 0x460224
lea ecx, [edi + 0xc]
call fcn.00406f60
mov edx, dword [edi + 0x10]
mov dl, byte [edx]
mov eax, dword [edi + 0xc]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
push 1
mov byte [ebp - 4], dl
lea edx, [ebp - 4]
push edx
push 3
push 0
push eax
mov eax, dword [ecx + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x408069
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp + 0xc]
mov esi, dword [ecx]
cmp dword [esi - 0xc], 0
je 0x408069
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x5e
push str._anonymous_namespace::_lambda6_::operator___
mov edx, str...Commonprotocol.cpp
mov ecx, esi
call fcn.00403b50
add esp, 0xc
cmp byte [edi + 0x15], 0
jne 0x4080a9
mov ecx, dword [edi + 8]
cmp byte [ecx + 0x15], 0
jne 0x40808e
mov eax, dword [ecx]
cmp byte [eax + 0x15], 0
jne 0x40808a
mov ecx, eax
mov eax, dword [ecx]
cmp byte [eax + 0x15], 0
je 0x408080
mov edi, ecx
jmp 0x4080a9
mov eax, dword [edi + 4]
cmp byte [eax + 0x15], 0
jne 0x4080a7
cmp edi, dword [eax + 8]
jne 0x4080a7
mov edi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x15], 0
je 0x408097
mov edi, eax
cmp edi, dword [ebp - 0x14]
jne 0x407f90
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.004036b0
int3
Function at 0x4080d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [eax + 4]
push ebx
mov ebx, dword [eax]
push esi
push edi
mov dword [ebp - 0x10], eax
cmp ebx, eax
je 0x408212
lea esp, [esp]
mov ecx, dword [0x460228]
mov dword [ebp - 0xc], ecx
lea ecx, [ebx + 0xc]
mov eax, 0x460224
call fcn.004074f0
mov edi, dword [0x460228]
mov dword [ebp - 4], eax
cmp eax, edi
je 0x408157
mov eax, dword [eax + 0xc]
test eax, eax
je 0x40821b
mov ecx, eax
mov eax, dword [ebx + 0xc]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x408149
test dx, dx
je 0x408145
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x408149
add eax, 4
add ecx, 4
test dx, dx
jne 0x408123
xor eax, eax
jmp 0x40814e
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
js 0x408157
lea eax, [ebp - 4]
jmp 0x40815d
mov dword [ebp - 8], edi
lea eax, [ebp - 8]
mov edx, dword [ebp - 0xc]
cmp dword [eax], edx
je 0x408175
push 0x460224
lea ecx, [ebx + 0xc]
call fcn.00406f60
mov edi, dword [eax]
jmp 0x408177
xor edi, edi
mov eax, dword [ebx + 0x10]
mov edx, dword [ebp + 8]
mov ecx, dword [ebx + 0xc]
mov edx, dword [edx]
push edi
push eax
mov eax, dword [edx + 4]
push 3
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x4081c6
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp + 0xc]
mov esi, dword [ecx]
cmp dword [esi - 0xc], 0
je 0x4081c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x63
push str._anonymous_namespace::_lambda7_::operator___
mov edx, str...Commonprotocol.cpp
mov ecx, esi
call fcn.00403b50
add esp, 0xc
cmp byte [ebx + 0x15], 0
jne 0x408209
mov ecx, dword [ebx + 8]
cmp byte [ecx + 0x15], 0
jne 0x4081ee
mov eax, dword [ecx]
cmp byte [eax + 0x15], 0
jne 0x4081ea
lea ecx, [ecx]
mov ecx, eax
mov eax, dword [ecx]
cmp byte [eax + 0x15], 0
je 0x4081e0
mov ebx, ecx
jmp 0x408209
mov eax, dword [ebx + 4]
cmp byte [eax + 0x15], 0
jne 0x408207
cmp ebx, dword [eax + 8]
jne 0x408207
mov ebx, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x15], 0
je 0x4081f7
mov ebx, eax
cmp ebx, dword [ebp - 0x10]
jne 0x4080f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.004036b0
int3
Function at 0x408230
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov ecx, dword [eax + 4]
mov eax, dword [ecx]
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], eax
cmp eax, ecx
jne 0x408254
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 4]
mov ebx, dword [0x460228]
lea esi, [eax + 0xc]
mov ecx, esi
mov eax, 0x460224
call fcn.004074f0
mov edi, dword [0x460228]
mov dword [ebp - 8], eax
cmp eax, edi
je 0x4082b9
mov eax, dword [eax + 0xc]
test eax, eax
je 0x40839c
mov ecx, eax
mov eax, dword [esi]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4082ab
test dx, dx
je 0x4082a7
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4082ab
add eax, 4
add ecx, 4
test dx, dx
jne 0x408285
xor eax, eax
jmp 0x4082b0
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
js 0x4082b9
lea eax, [ebp - 8]
jmp 0x4082bf
mov dword [ebp - 0xc], edi
lea eax, [ebp - 0xc]
cmp dword [eax], ebx
je 0x4082cf
push 0x460224
mov ecx, esi
call fcn.00406f60
mov ecx, dword [esi + 4]
mov edx, dword [ebp + 8]
mov esi, dword [esi]
mov edi, dword [edx]
mov eax, ecx
lea ebx, [eax + 2]
mov edi, edi
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x4082e0
sub eax, ebx
sar eax, 1
add eax, eax
push eax
push ecx
mov ecx, dword [edi + 4]
push 1
push 0
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x408335
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edx, dword [ebp + 0xc]
mov esi, dword [edx]
cmp dword [esi - 0xc], 0
je 0x408335
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x68
push str._anonymous_namespace::_lambda8_::operator___
mov edx, str...Commonprotocol.cpp
mov ecx, esi
call fcn.00403b50
add esp, 0xc
mov edx, dword [ebp - 4]
cmp byte [edx + 0x15], 0
jne 0x40838a
mov ecx, dword [edx + 8]
cmp byte [ecx + 0x15], 0
jne 0x40835f
mov eax, dword [ecx]
cmp byte [eax + 0x15], 0
jne 0x40835a
nop
mov ecx, eax
mov eax, dword [ecx]
cmp byte [eax + 0x15], 0
je 0x408350
mov dword [ebp - 4], ecx
jmp 0x408387
mov eax, dword [edx + 4]
cmp byte [eax + 0x15], 0
jne 0x408384
jmp 0x408373
mov edx, dword [ebp - 4]
cmp edx, dword [eax + 8]
jne 0x408384
mov dword [ebp - 4], eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x15], 0
je 0x408370
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jne 0x408251
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.004036b0
int3
Function at 0x409840
Capabilities:
Create directory
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1258
call fcn.00436b40
mov eax, dword [0x45c070]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov ebx, ecx
cmp dword [ebx + 4], 0
push edi
mov esi, edx
jne 0x409879
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0042d4af
mov esp, ebp
pop ebp
ret 4
test esi, esi
jne 0x409880
lea esi, [ebx + 8]
push esi
call fcn.00409ac0
add esp, 4
test al, al
je 0x409864
lea edi, [ebp - 0x1254]
mov ecx, ebx
call fcn.004095c0
cmp byte [ebp - 0xe20], 0
je 0x4098e6
push 0
mov eax, edi
push eax
add ebx, 8
push ebx
push 0
lea ecx, [ebp - 0x214]
push 0x104
push ecx
call fcn.0042faa3
add esp, 0x18
push 0
lea edx, [ebp - 0x214]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0042d4af
mov esp, ebp
pop ebp
ret 4
cmp byte [ebp + 8], 0
je 0x409941
push 0x100
lea eax, [ebp - 0x61c]
push eax
push 0x100
lea ecx, [ebp - 0x20c]
push ecx
push 0
push 0
push 0
lea edx, [ebp - 0x1254]
push 0
push edx
call fcn.0042f891
add esp, 0x24
lea eax, [ebp - 0x61c]
push eax
lea ecx, [ebp - 0x20c]
push ecx
push 0
push 0
lea edx, [ebp - 0x1254]
push 0x104
push edx
call fcn.0042faa3
add esp, 0x18
push 0
lea eax, [ebp - 0x1254]
push eax
push esi
push 0
lea ecx, [ebp - 0x41c]
push 0x104
push ecx
call fcn.0042faa3
add esp, 0x18
lea eax, [ebp - 0x41c]
call fcn.00409b50
test al, al
je 0x409864
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea edx, [ebp - 0x41c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x409864
mov ecx, dword [ebx + 4]
call fcn.00401bd0
test eax, eax
jne 0x409864
mov edi, edi
mov ecx, dword [ebx + 4]
lea eax, [ebp - 0xe1c]
push eax
push ecx
call fcn.00401d80
mov esi, eax
add esp, 8
test esi, esi
jle 0x4099fa
push 0
lea edx, [ebp - 0x1258]
push edx
push esi
lea eax, [ebp - 0xe1c]
push eax
push edi
mov dword [ebp - 0x1258], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4099f7
cmp dword [ebp - 0x1258], esi
je 0x4099b0
or esi, 0xffffffff
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebx + 4]
call fcn.00402000
test esi, esi
jne 0x409a1e
mov ecx, dword [ebp - 0xe38]
lea eax, [ebp - 0x41c]
call fcn.00409b90
mov ecx, dword [ebp - 8]
xor eax, eax
test esi, esi
pop edi
sete al
pop esi
xor ecx, ebp
pop ebx
call fcn.0042d4af
mov esp, ebp
pop ebp
ret 4
Function at 0x409ac0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x409b42
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x409b42
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x409aee
and al, 0x10
xor ecx, ecx
cmp al, 0x10
sete al
pop edi
pop ebp
ret
push esi
push edi
call fcn.0042fbbc
mov esi, eax
push 0x5c
push esi
call fcn.0042e09b
add esp, 0xc
test eax, eax
je 0x409b3c
xor edx, edx
push esi
mov word [eax], dx
call fcn.00409ac0
add esp, 4
push esi
test al, al
jne 0x409b27
call fcn.0042d4be
add esp, 4
pop esi
xor al, al
pop edi
pop ebp
ret
call fcn.0042d4be
add esp, 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x409b21
pop esi
mov al, 1
pop edi
pop ebp
ret
xor al, al
pop edi
pop ebp
ret

Function at 0x409b90
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
test edi, edi
jne 0x409bc0
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x28]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
cmp eax, 1
sete bl
test bl, bl
je 0x409c26
lea ecx, [ebp - 0x10]
push ecx
push esi
shr esi, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
cmp eax, 1
sete bl
test bl, bl
je 0x409c26
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
cmp eax, 1
sete bl
test bl, bl
je 0x409c26
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x18]
push edx
mov eax, ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
cmp eax, 1
sete bl
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a760
Capabilities:
Access peb ldr_data
Get hostname
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x447210
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x45c070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [esi + 4], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [ebp - 4], ebx
mov dword [esi], vtable.CAddRangeDlg.0
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov eax, dword [0x45d48c]
mov edx, dword [eax + 0xc]
mov ecx, 0x45d48c
call edx
lea edi, [eax + 0x10]
mov dword [ebp - 0x14], edi
mov ecx, 1
mov byte [ebp - 4], cl
mov eax, dword [edi - 8]
sub ecx, dword [edi - 4]
sub eax, 0x104
or eax, ecx
jge 0x40a7f6
mov ecx, 0x104
lea eax, [ebp - 0x14]
call fcn.004075c0
mov edi, dword [ebp - 0x14]
mov eax, 0x104
cmp dword [edi - 8], eax
jge 0x40a80a
push 0x80070057
call fcn.004036b0
push eax
mov dword [edi - 0xc], eax
push edi
mov byte [edi + 0x104], bl
call dword [sym.imp.WS2_32.dll_gethostname]
mov eax, dword [0x45d48c]
mov edx, dword [eax + 0xc]
mov ecx, 0x45d48c
call edx
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 2
test edi, 0xffff0000
jne 0x40a855
movzx edi, di
call fcn.004032e0
cmp eax, ebx
je 0x40a85f
push eax
mov eax, edi
lea edi, [ebp - 0x10]
call fcn.00403490
jmp 0x40a85f
mov ebx, edi
lea eax, [ebp - 0x10]
call fcn.00404050
lea ebx, [ebp - 0x18]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.004051a0
mov edi, dword [ebp - 0x18]
mov ebx, dword [sym.imp.WS2_32.dll_htonl]
push edi
call ebx
and eax, 0xffffff00
inc eax
push edi
mov dword [0x45f344], eax
call ebx
and eax, 0xffffff00
add eax, 0xff
mov dword [0x45f340], eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a8ba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a8dd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40ae60
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov ebx, ecx
test eax, eax
je 0x40ae77
lea esi, [eax - 0x20]
mov dword [ebp - 4], esi
jmp 0x40ae81
mov dword [ebp - 4], 0
mov esi, dword [ebp - 4]
cmp dword [ebp + 0xc], 0
mov dword [ebp - 8], 1
je 0x40af42
mov eax, dword [ebp + 8]
mov ecx, dword [esi + 4]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
mov eax, dword [ebx]
mov edx, 1
sub edx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, esi
or edx, eax
mov dword [ebp + 0xc], 0xffffffff
jge 0x40aece
mov ecx, esi
mov eax, ebx
call fcn.00403660
mov eax, dword [ebx]
test esi, esi
js 0x40af38
cmp esi, dword [eax - 8]
jg 0x40af38
mov dword [eax - 0xc], esi
mov ecx, dword [ebx]
xor edx, edx
mov word [ecx + esi*2], dx
test eax, eax
je 0x40af27
lea ecx, [esi + 1]
push ecx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov edx, dword [ebx]
mov dword [ebp + 0xc], eax
test edx, edx
jne 0x40af01
xor eax, eax
jmp 0x40af17
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40af06
sub eax, edi
sar eax, 1
js 0x40af38
cmp eax, dword [edx - 8]
jg 0x40af38
mov dword [edx - 0xc], eax
mov edx, dword [ebx]
xor ecx, ecx
mov word [edx + eax*2], cx
cmp dword [ebp + 0xc], esi
jge 0x40af83
mov esi, dword [ebp - 4]
mov dword [ebp - 8], 0
jmp 0x40af5a
push 0x80070057
call fcn.004036b0
mov ebx, dword [ebx]
mov edx, dword [ebp + 8]
mov eax, dword [esi + 4]
push ebx
push edx
push eax
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov dword [ebp - 8], eax
test eax, eax
jne 0x40af83
push 0xffffffffffffffff
call dword [sym.imp.USER32.dll_MessageBeep]
add esi, 0x20
je 0x40af6c
lea eax, [esi - 0x20]
jmp 0x40af6e
xor eax, eax
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 4]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40bba0
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x446758
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x45c070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x45d48c]
mov edx, dword [eax + 0xc]
mov ecx, 0x45d48c
call edx
lea edx, [eax + 0x10]
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], 0
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, 0x104
or eax, ecx
jge 0x40bc04
mov ecx, 0x104
lea eax, [ebp - 0x10]
call fcn.00403660
mov edx, dword [ebp - 0x10]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edx, dword [ebp - 0x10]
test edx, edx
jne 0x40bc1b
xor eax, eax
jmp 0x40bc31
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40bc20
sub eax, esi
sar eax, 1
js 0x40bca6
cmp eax, dword [edx - 8]
jg 0x40bca6
mov dword [edx - 0xc], eax
mov edx, dword [ebp - 0x10]
xor ecx, ecx
push 0x12
mov word [edx + eax*2], cx
push str._sca_installer.log
lea eax, [ebp - 0x10]
push eax
call fcn.00403a80
mov ecx, dword [0x460238]
mov edx, dword [ebp - 0x10]
push 5
push ecx
push 0
push edx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bc94
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.004036b0
int3
Function at 0x40d8b0
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x447f26
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x45c070]
xor eax, esp
mov dword [esp + 0x240], eax
push ebx
push esi
push edi
mov eax, dword [0x45c070]
xor eax, esp
push eax
lea eax, [esp + 0x258]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov edi, edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
cmp eax, ebx
jne 0x40d95a
push 0x104
lea edx, [esp + 0x40]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x40d952
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x40d933
and eax, 0xffff
or eax, 0x80070000
push eax
lea eax, [esp + 0x30]
push eax
mov ecx, str.::GetModuleFileNameW__0__awcBuffer__dwLength_
call fcn.00404c70
push 0x456818
lea ecx, [esp + 0x30]
push ecx
call fcn.00433e48
lea edx, [esp + 0x3c]
mov dword [esp + 0x1c], edx
xor esi, esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x260], ebx
mov dword [esp + 0x28], ebx
mov byte [esp + 0x260], 1
mov dword [esp + 0x14], esi
test esi, esi
jne 0x40d9ac
mov ecx, dword [esp + 0x24]
call fcn.0040d790
inc dword [esp + 0x14]
mov esi, eax
push 0x64
mov dword [esp + 0x24], esi
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esp + 0x14], 0x14
jl 0x40d977
test esi, esi
jne 0x40d9ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40da52
mov dword [esp + 0x14], 0
test ebx, ebx
jne 0x40da22
mov eax, dword [esp + 0x1c]
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push 1
push 2
push 0x10
push 0xf01ff
push edi
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x431
jne 0x40d9f4
push 0xf003f
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
inc dword [esp + 0x14]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esp + 0x14], 0x14
jl 0x40d9b4
test ebx, ebx
jne 0x40da22
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test esi, esi
je 0x40da1e
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, edi
jmp 0x40da52
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40da3c
lea ecx, [esp + 0x18]
push ecx
push 1
push ebx
mov dword [esp + 0x24], eax
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test ebx, ebx
je 0x40da49
push ebx
call edi
test esi, esi
je 0x40da50
push esi
call edi
xor eax, eax
mov ecx, dword [esp + 0x258]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x240]
xor ecx, esp
call fcn.0042d4af
mov esp, ebp
pop ebp
ret