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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x6877f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, ecx
cmp ebx, 0xffffffff
jne 0x4079c0
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00574c7a
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edi + 0x20]
push esi
mov ecx, dword [eax]
test ecx, ecx
je 0x4079fc
mov edx, dword [edi + 0x30]
mov esi, dword [edx]
lea eax, [esi + ecx]
cmp ecx, eax
jae 0x4079fc
lea ecx, [esi - 1]
mov dword [edx], ecx
mov edx, dword [edi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop esi
pop edi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00574c7a
mov esp, ebp
pop ebp
ret 4
cmp dword [edi + 0x4c], 0
je 0x407af1
mov esi, dword [edi + 0xc]
lea eax, [edi + 0x3c]
cmp dword [esi], eax
jne 0x407a24
mov edx, dword [edi + 0x54]
mov ecx, dword [edi + 0x50]
sub edx, ecx
mov dword [esi], ecx
mov eax, dword [edi + 0x1c]
mov dword [eax], ecx
mov eax, dword [edi + 0x2c]
mov dword [eax], edx
mov eax, dword [edi + 0x38]
mov dword [ebp - 0x2c], eax
test eax, eax
jne 0x407a5a
push dword [edi + 0x4c]
movsx eax, bl
push eax
call fcn.005966f7
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop esi
pop edi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00574c7a
mov esp, ebp
pop ebp
ret 4
mov byte [ebp - 0x28], bl
mov esi, dword [eax]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 4]
push eax
mov esi, dword [esi + 0x1c]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
mov ecx, esi
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [edi + 0x40]
push eax
call dword [0x5c346c]
mov ecx, dword [ebp - 0x2c]
call esi
test eax, eax
js 0x407af1
cmp eax, 1
jle 0x407ac4
cmp eax, 3
jne 0x407af1
push dword [edi + 0x4c]
push dword [ebp - 0x28]
call fcn.00402f70
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop esi
pop edi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00574c7a
mov esp, ebp
pop ebp
ret 4
mov esi, dword [ebp - 0x30]
lea eax, [ebp - 0x24]
sub esi, eax
je 0x407ae1
push dword [edi + 0x4c]
push esi
push 1
push eax
call fcn.0059a507
add esp, 0x10
cmp esi, eax
jne 0x407af1
lea eax, [ebp - 0x28]
mov byte [edi + 0x3d], 1
cmp dword [ebp - 0x34], eax
jne 0x4079e7
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.00574c7a
mov esp, ebp
pop ebp
ret 4
Function at 0x40a280
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x6877f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
cmp dword [ebx + 0x38], 0
je 0x40a33f
cmp byte [ebx + 0x3d], 0
je 0x40a33f
mov eax, dword [ebx]
push 0xffffffffffffffff
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x5c346c]
mov ecx, ebx
call esi
cmp eax, 0xffffffff
je 0x40a2f5
push edi
mov edi, dword [ebx + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov esi, dword [edi]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebx + 0x40]
push eax
mov esi, dword [esi + 0x20]
mov ecx, esi
call dword [0x5c346c]
mov ecx, edi
call esi
pop edi
sub eax, 0
je 0x40a307
sub eax, 1
je 0x40a30b
sub eax, 2
je 0x40a33f
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00574c7a
mov esp, ebp
pop ebp
ret
mov byte [ebx + 0x3d], 0
mov esi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub esi, eax
je 0x40a328
push dword [ebx + 0x4c]
push esi
push 1
push eax
call fcn.0059a507
add esp, 0x10
cmp esi, eax
jne 0x40a2f5
cmp byte [ebx + 0x3d], 0
pop esi
sete al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00574c7a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop esi
xor ecx, ebp
pop ebx
call fcn.00574c7a
mov esp, ebp
pop ebp
ret

Function at 0x40ba60
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ba380
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x6877f0]
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_char__struct_std::char_traits_char__.0
call fcn.00574e8b
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.005730b4
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 0x40d710
Capabilities:
Create service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x6877f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 0x10]
push 0xf003f
push 0
push 0
mov dword [ebp - 0x88], 0xffffffff
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
je 0x40d779
push 0
push 0
push 0
push 0
push 0
push edi
push 1
push 2
push 0x10
push 0xf01ff
push str.CtesHostService
push 0x672204
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
test eax, eax
jne 0x40d7a1
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0x88]
xor esi, esi
cmp ecx, 0xffffffff
je 0x40d78d
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00574c7a
mov esp, ebp
pop ebp
ret 0xc
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push str.Parameters
push 0x672204
push str.SYSTEMCurrentControlSetServices
lea eax, [ebp - 0x84]
push 0x671ce4
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x88]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea eax, [ebp - 0x84]
push eax
push connect
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40d813
push 0x672204
call fcn.0040d840
jmp 0x40d779
push dword [ebp - 0x88]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x88]
or edx, 0xffffffff
test eax, eax
cmove ecx, edx
mov dword [ebp - 0x88], ecx
lea esi, [edx + 2]
jmp 0x40d781
Function at 0x40d840
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x6877f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
push 2
push 0
push 0
movups xmmword [ebp - 0x20], xmm0
mov dword [ebp - 8], 0
movq qword [ebp - 0x10], xmm0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
jne 0x40d88c
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00574c7a
mov esp, ebp
pop ebp
ret 4
push edi
push 0xf01ff
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
je 0x40d91d
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x40d916
cmp dword [ebp - 0x1c], 1
je 0x40d8c6
lea eax, [ebp - 0x20]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x40d916
xor esi, esi
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [ebp - 0x1c], 1
je 0x40d8ea
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x3c
jl 0x40d8c8
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00574c7a
mov esp, ebp
pop ebp
ret 4
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00574c7a
mov esp, ebp
pop ebp
ret 4
Function at 0x40d940
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x6877f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 2
xorps xmm0, xmm0
mov dword [ebp - 8], 0
push 0
push 0
movups xmmword [ebp - 0x20], xmm0
movq qword [ebp - 0x10], xmm0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
jne 0x40d987
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00574c7a
mov esp, ebp
pop ebp
ret 4
push edi
push 0xf01ff
push 0x672204
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
je 0x40da1d
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x40da16
cmp dword [ebp - 0x1c], 1
je 0x40d9cb
lea eax, [ebp - 0x20]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x40da16
push esi
xor esi, esi
nop
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [ebp - 0x1c], 1
je 0x40d9f2
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x3c
jl 0x40d9d0
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x24]
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00574c7a
mov esp, ebp
pop ebp
ret 4
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop ebx
call fcn.00574c7a
mov esp, ebp
pop ebp
ret 4

Function at 0x40da40
Capabilities:
Modify service
Query service configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
push 2
push 0
push 0
mov dword [ebp - 8], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x40da67
pop edi
mov esp, ebp
pop ebp
ret 8
push ebx
push 0xf01ff
push 0x672204
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
test ebx, ebx
je 0x40da9d
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 4]
push eax
push 3
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfig2A]
test eax, eax
jne 0x40daae
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 8
cmp dword [ebp - 4], 1
jne 0x40dacf
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop ebx
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret 8
push esi
lea eax, [ebp - 4]
mov dword [ebp - 4], 1
push eax
push 3
push ebx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
push ebx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 8
Function at 0x40db00
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x6877f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
push 2
push 0
push 0
movups xmmword [ebp - 0x20], xmm0
mov dword [ebp - 8], 0
movq qword [ebp - 0x10], xmm0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
jne 0x40db4c
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00574c7a
mov esp, ebp
pop ebp
ret 8
push edi
push 0xf01ff
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
je 0x40dbf1
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x40dbea
mov eax, dword [ebp - 0x1c]
sub eax, 1
je 0x40db85
sub eax, 3
jne 0x40dbea
lea esi, [eax + 1]
jmp 0x40dbc7
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
mov dword [ebp - 0x24], eax
xor esi, esi
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x40dbc4
cmp dword [ebp - 0x1c], 4
je 0x40dbbd
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x14
jl 0x40db95
jmp 0x40dbc4
mov dword [ebp - 0x24], 1
mov esi, dword [ebp - 0x24]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00574c7a
mov esp, ebp
pop ebp
ret 8
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00574c7a
mov esp, ebp
pop ebp
ret 8

Function at 0x40dc10
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x6877f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 2
xorps xmm0, xmm0
mov dword [ebp - 8], 0
push 0
push 0
movups xmmword [ebp - 0x20], xmm0
movq qword [ebp - 0x10], xmm0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
jne 0x40dc5a
lea eax, [esi + 8]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00574c7a
mov esp, ebp
pop ebp
ret 8
push edi
push 0xf01ff
push 0x672204
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
je 0x40dc88
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push edi
test eax, eax
jne 0x40dca6
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov eax, 9
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00574c7a
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x1c]
xor ecx, ebp
pop edi
pop esi
call fcn.00574c7a
mov esp, ebp
pop ebp
ret 8
Function at 0x40ee60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ba660
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x6877f0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x21c]
mov esi, dword [ebp + 0xc]
push 0x104
push 0
push eax
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x224], esi
call fcn.0058db90
push 0x104
lea eax, [ebp - 0x118]
mov byte [0x68defc], 1
push 0
push eax
call fcn.0058db90
lea eax, [ebp - 0x118]
push 0x103
push eax
call fcn.0059c13d
add esp, 0x20
mov dword [ebp - 0x22c], 1
mov dword [ebp - 4], 0
push 0x671c3e
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x40efd9
push ecx
mov ecx, 0x68df38
call fcn.00403190
test eax, eax
je 0x40efd9
push 0x671c3e
push 0x68e348
lea eax, [ebp - 0x21c]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov dword [ebp - 0x228], 0
mov edi, 3
nop dword [eax]
push 0
push 0x80
push 2
push 0
push 3
push 0x40000000
lea eax, [ebp - 0x21c]
mov ebx, edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40ef9e
push 0
lea eax, [ebp - 0x228]
push eax
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
test eax, eax
jne 0x40efc0
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x40efae
cmp eax, 0x20
jne 0x40efcd
dec edi
test ebx, ebx
jle 0x40efcd
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40ef50
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x220]
mov esi, dword [ebp - 0x224]
cmp byte [0x68df00], 1
jne 0x40efec
mov ecx, 0x68df38
call fcn.00405ad0
push dword [ebp + 0x10]
mov edx, esi
mov ecx, ebx
call fcn.0040dcd0
add esp, 4
mov esi, eax
jmp 0x40f03b
cmp byte [0x68def9], 1
jne 0x40f04f
push ecx
push str.AbtCdcSvc
call fcn.0040db00
cmp byte [0x68defa], 1
jne 0x40f070
sub esp, 8
call fcn.0040dc10
cmp eax, 1
jne 0x40f070
push ecx
push 0x672204
call fcn.0040db00
cmp byte [ebp - 0x118], 0
mov byte [0x68defc], 0
je 0x40f08f
lea eax, [ebp - 0x118]
push eax
call fcn.0059b6a7
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00574c7a
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40fba0
Capabilities:
Check if file exists
Create directory
Enumerate files on windows
Get common file path
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x450
mov eax, dword [0x6877f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
push 0x104
push 0
push 0x68e140
call fcn.0058db90
push 0x104
push 0
push 0x68df38
call fcn.0058db90
add esp, 0x18
push 0
push 0x23
push 0x68df38
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x40fd97
push str.CTESComponentsSVCOutbox
push 0x68df38
push str._s_s
push 0x68e140
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, 0x68e140
add esp, 0x10
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40fc20
sub ecx, edx
cmp ecx, dword [esi]
lea eax, [ecx + 1]
mov dword [esi], eax
jge 0x40fd97
push 0x68e140
push eax
push edi
call fcn.0059a26a
add esp, 0xc
push 0x68e140
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40fc72
push 0x68e140
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40fc72
push 0
push 0x68e140
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0x104
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0058db90
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.0058db90
add esp, 0x14
mov ecx, 0x68df38
call fcn.00403190
test eax, eax
je 0x40fd80
push ecx
mov ecx, 0x68df38
call fcn.00403010
test eax, eax
je 0x40fd80
push str.SVC.json
push 0x68e348
lea eax, [ebp - 0x310]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x450]
push eax
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40fd80
nop
cmp byte [ebp - 0x424], 0x2e
je 0x40fd67
test byte [ebp - 0x450], 0x10
jne 0x40fd67
lea eax, [ebp - 0x424]
push eax
push 0x68e348
lea eax, [ebp - 0x20c]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x424]
push eax
push 0x68e140
lea eax, [ebp - 0x108]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x20
lea eax, [ebp - 0x108]
push 3
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
lea eax, [ebp - 0x450]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40fd00
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00574c7a
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.00574c7a
mov esp, ebp
pop ebp
ret 0xc
Function at 0x410f30
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ba7f1
mov eax, dword fs:[0]
push eax
sub esp, 0x154
mov eax, dword [0x6877f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x104
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.0058db90
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 3
jne 0x4110f8
push 0x104
push 0
push 0x68df38
call fcn.0058db90
add esp, 0xc
push 0
push 0x23
push 0x68df38
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x4110f8
push esi
push str.CTESProviders
push 0x68df38
lea eax, [ebp - 0x114]
push str._s_sprovider_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x410fed
mov eax, 1
jmp 0x4110fa
push 0x29
push str.File_is_not_present_at:__s_for_validation
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0xf
mov byte [ebp - 0x12c], 0
call fcn.0040a020
lea eax, [ebp - 0x12c]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x160]
call fcn.00419ad0
mov esi, eax
lea eax, [ebp - 0x114]
mov byte [ebp - 4], 1
push eax
mov ecx, esi
call fcn.0041a190
lea eax, [ebp - 0x144]
mov ecx, esi
push eax
call fcn.0041a330
push eax
mov byte [ebp - 4], 2
call fcn.00418bd0
mov edx, dword [ebp - 0x130]
add esp, 4
cmp edx, 0x10
jb 0x41109c
mov ecx, dword [ebp - 0x144]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x411092
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411114
push edx
push ecx
call fcn.00575155
add esp, 8
lea ecx, [ebp - 0x160]
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x130], 0xf
mov byte [ebp - 0x144], 0
call fcn.00419ba0
mov edx, dword [ebp - 0x118]
cmp edx, 0x10
jb 0x4110f8
mov ecx, dword [ebp - 0x12c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4110ee
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411119
push edx
push ecx
call fcn.00575155
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00574c7a
mov esp, ebp
pop ebp
ret
call fcn.0059b248
call fcn.0059b248
int3