joyce8/EMBER2024-capa huggingface dataset:
Function at 0x428d10
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x111]
mov byte [esp + 0x110], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x110]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea ecx, [esp + 0x11c]
push str.Empty
push ecx
lea edx, [esp + 0x20]
push str._sEmpty__08d__08d__08d
push edx
call fcn.0044ce12
mov edi, dword [esp + 0x234]
add esp, 0x1c
xor esi, esi
mov eax, dword [edi + 8]
test eax, eax
mov dword [esp + 8], eax
jle 0x428dfe
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x80
push 4
push 0
push 0
lea eax, [esp + 0x28]
push 0xc0000000
push eax
call ebp
cmp eax, 0xffffffff
je 0x428df3
push eax
call ebx
mov ecx, dword [edi + 4]
push 0
push 0
push 0x240
mov edx, dword [ecx + esi*4]
lea eax, [esp + 0x20]
push edx
push 0
push eax
push 0
push 0
call dword [sym.imp.SETUPAPI.dll_SetupInstallFileA]
mov eax, dword [esp + 0x10]
inc esi
cmp esi, eax
jl 0x428db1
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x20c
ret

Function at 0x428e10
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x5f1f7b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x21c
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
mov byte [esp + 0x11c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11d]
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x18]
push 0x6463d0
push ecx
lea edx, [esp + 0x124]
push 0x646284
push edx
call fcn.0044ce12
add esp, 0x10
lea ecx, [esp + 4]
call fcn.005df311
lea eax, [esp + 4]
lea ecx, [esp + 0x11c]
push eax
push 0x428ef0
push ecx
mov dword [esp + 0x234], 0
call fcn.0040d650
lea edx, [esp + 0x10]
push edx
call fcn.00428d10
add esp, 0x10
lea ecx, [esp + 4]
mov dword [esp + 0x228], 0xffffffff
call fcn.005df344
mov ecx, dword [esp + 0x220]
pop edi
mov dword fs:[0], ecx
add esp, 0x228
ret
Function at 0x429090
Capabilities:
Query service configuration

Disassembly:
sub esp, 0x1c
push ebx
push edi
mov edi, dword [esp + 0x28]
xor ebx, ebx
cmp edi, ebx
jne 0x4290a7
pop edi
xor eax, eax
pop ebx
add esp, 0x1c
ret
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_QueryServiceConfig2A]
lea eax, [esp + 0x2c]
push esi
push eax
push ebx
push ebx
push 2
push edi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x44], ebx
call ebp
test eax, eax
jne 0x4291af
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x687630]
cmp eax, ebx
je 0x4290fb
mov ecx, dword [esp + 0x30]
push ecx
push esi
push str.CheckServConf_1___d____d_
push str.SrcSer
push 0xf
push 0x6875c4
call fcn.00431af0
add esp, 0x18
cmp esi, 0x7a
jne 0x4291af
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x4291af
push eax
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
je 0x4291af
lea edx, [esp + 0x30]
push edx
push esi
push ebx
push 2
push edi
call ebp
test eax, eax
je 0x4291a8
mov eax, dword [0x687630]
xor esi, esi
cmp eax, esi
je 0x42915f
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx]
push eax
push ecx
push str.CheckServConf_2___d____d_
push str.SrcSer
push 0xf
push 0x6875c4
call fcn.00431af0
add esp, 0x18
cmp dword [ebx], 0x3f480
jne 0x4291a8
cmp dword [ebx + 0xc], 3
jne 0x4291a8
mov eax, 1
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], esi
mov esi, dword [ebx + 0x10]
mov ecx, 6
lea edi, [esp + 0x14]
xor edx, edx
mov dword [esp + 0x18], 0xea60
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], 0x1d4c0
mov dword [esp + 0x1c], eax
repe cmpsd dword [esi], dword es:[edi]
jne 0x4291a8
mov dword [esp + 0x10], eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [0x687630]
pop esi
test eax, eax
pop ebp
je 0x4291d8
mov eax, dword [esp + 8]
push eax
push str.CheckServConf____d_
push str.SrcSer
push 0xf
push 0x6875c4
call fcn.00431af0
add esp, 0x14
mov eax, dword [esp + 8]
pop edi
pop ebx
add esp, 0x1c
ret
Function at 0x4352b0
Capabilities:
Copy file

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x14]
push edi
push ebx
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov edi, eax
test edi, edi
jne 0x4352f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x4352f1
push esi
call fcn.00435080
add esp, 4
push ebx
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_CopyFileA]
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x435300
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp eax, 0xffffffff
je 0x435330
test al, 0x10
jne 0x435348
test al, 1
je 0x435329
and al, 0xfe
push eax
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
call fcn.00498a40
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x435345
pop edi
pop esi
pop ebx
ret
push esi
call edi
mov ecx, dword [esp + 0x14]
cmp eax, ecx
je 0x435354
push ecx
push esi
call ebx
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x439840
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
push esi
push edi
mov ecx, 0x24
xor eax, eax
lea edi, [esp + 0xc]
mov dword [esp + 8], 0x94
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
xor esi, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4398a6
mov eax, dword [esp + 0x18]
cmp eax, 1
jne 0x439880
pop edi
pop esi
add esp, 0x94
ret
cmp eax, 2
jne 0x4398a6
mov eax, dword [esp + 0xc]
cmp eax, 4
jne 0x43989c
pop edi
mov eax, 2
pop esi
add esp, 0x94
ret
cmp eax, 5
mov eax, 3
je 0x4398a8
mov eax, esi
pop edi
pop esi
add esp, 0x94
ret
Function at 0x439b00
Capabilities:
Persist via windows service
Set registry value

Disassembly:
sub esp, 0x6c
lea eax, [esp]
push 0
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push str.SYSTEMCurrentControlSetServicesTPacket
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x439cb6
mov eax, dword [esp]
test eax, eax
je 0x439cb6
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
push edi
lea ecx, [esp + 0x10]
push 4
push ecx
push 4
push 0
push 0x65e6dc
push eax
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], 1
mov dword [esp + 0x30], 1
call ebx
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x14]
push 4
push edx
push 4
push 0
push 0x65e6e4
push eax
call ebx
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x18]
push 4
push ecx
push 4
push 0
push 0x65e6ec
push edx
call ebx
mov ecx, dword [0x65e898]
mov eax, dword [str.Extended_Base]
mov dword [esp + 0x30], ecx
mov edx, dword [0x65e89c]
mov ecx, 0xa
mov esi, str.SystemRootSystem32Drivers_tpacket.sys
lea edi, [esp + 0x4c]
mov dword [esp + 0x2c], eax
mov ax, word [0x65e8a0]
mov dword [esp + 0x34], edx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [str.TPacket_Driver]
mov edx, dword [0x65e868]
mov word [esp + 0x38], ax
mov eax, dword [0x65e86c]
mov dword [esp + 0x44], eax
mov dword [esp + 0x3c], ecx
mov cx, word [0x65e870]
lea eax, [esp + 0x2c]
push 0xe
push eax
mov word [esp + 0x50], cx
mov ecx, dword [esp + 0x14]
push 1
mov dword [esp + 0x4c], edx
mov dl, byte [0x65e872]
push 0
push 0x65e6fc
push ecx
movsb byte es:[edi], byte [esi]
mov byte [esp + 0x62], dl
call ebx
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x4c]
push 0x29
push edx
push 2
push 0
push 0x65e704
push eax
call ebx
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x3c]
push 0xf
push ecx
push 1
push 0
push str.DisplayName
push edx
call ebx
mov eax, dword [str.NDIS]
mov cl, byte [0x65e850]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0x1c]
push 5
push eax
mov byte [esp + 0x28], cl
mov byte [esp + 0x30], cl
mov ecx, dword [esp + 0x14]
push 1
push 0
push 0x65e71c
push ecx
call ebx
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x24]
push 5
push edx
push 1
push 0
push 0x65e72c
push eax
call ebx
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x6c
ret
xor eax, eax
add esp, 0x6c
ret
Function at 0x439cc0
Capabilities:
Copy file
Get common file path

Disassembly:
sub esp, 0x208
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x439e11
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
js 0x439e11
cmp ecx, 0x104
jge 0x439e11
lea eax, [esp + ecx + 0xb]
mov cl, byte [esp + ecx + 0xb]
cmp cl, 0x5c
jne 0x439d26
mov byte [eax], 0
mov edi, str.Drivers_tpacket.sys
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x110], al
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x40
lea edi, [esp + 0x111]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x218]
test eax, eax
je 0x439d8f
push 0x103
push eax
lea eax, [esp + 0x118]
push eax
call fcn.0044c980
add esp, 0xc
jmp 0x439df2
lea ecx, [esp + 0x110]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x439e11
lea edx, [esp + 0x110]
push 0x5c
push edx
call fcn.0044c90e
add esp, 8
test eax, eax
je 0x439dc1
mov byte [eax], 0
mov edi, str._tpacket.sys
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x110]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0xc]
push 0
lea ecx, [esp + 0x114]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
pop edi
pop esi
pop ebp
add esp, 0x208
ret
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x208
ret

Function at 0x439e20
Capabilities:
Persist via windows service
Set registry value

Disassembly:
sub esp, 0x10
lea eax, [esp]
push 0
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push str.SystemCurrentControlSetServicesVxDTPACKET
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x439ea4
mov eax, dword [esp]
test eax, eax
je 0x439ea4
mov edx, dword [0x64a604]
mov ecx, dword [str.tpacket.vxd]
mov dword [esp + 8], edx
lea edx, [esp + 4]
push 0xc
push edx
push 1
mov dword [esp + 0x10], ecx
mov ecx, dword [0x64a608]
push 0
push 0x65e840
push eax
mov dword [esp + 0x24], ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add esp, 0x10
ret
xor eax, eax
add esp, 0x10
ret
Function at 0x439eb0
Capabilities:
Copy file
Get common file path

Disassembly:
sub esp, 0x208
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x111]
mov byte [esp + 0x110], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x43a01c
lea edi, [esp + 0x110]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
js 0x43a01c
cmp ecx, 0x104
jge 0x43a01c
lea eax, [esp + ecx + 0x10f]
mov cl, byte [esp + ecx + 0x10f]
cmp cl, 0x5c
jne 0x439f28
mov byte [eax], 0
mov edi, str._tpacket.vxd
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x110]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0xc], al
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x40
lea edi, [esp + 0xd]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x218]
test eax, eax
je 0x439f8b
push 0x103
push eax
lea eax, [esp + 0x14]
push eax
call fcn.0044c980
add esp, 0xc
jmp 0x439ffd
lea ecx, [esp + 0xc]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x43a01c
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x43a01c
cmp ecx, 0x104
jge 0x43a01c
lea edx, [esp + 0xc]
push 0x5c
push edx
call fcn.0044c90e
add esp, 8
test eax, eax
je 0x439fcf
mov byte [eax], 0
mov edi, str._tpacket.vxd
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x110]
push 0
lea ecx, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
pop edi
pop esi
pop ebp
add esp, 0x208
ret
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x208
ret
Function at 0x43a680
Capabilities:
Start service

Disassembly:
push ebx
call fcn.004843f0
test eax, eax
jne 0x43a68c
pop ebx
ret
mov ebx, dword [esp + 8]
test ebx, ebx
jne 0x43a6a2
mov dword [0x688458], 0x57
xor eax, eax
pop ebx
ret
push ebp
push esi
push edi
xor esi, esi
push 0xf003f
push esi
push esi
xor ebp, ebp
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x43a6e1
push 0x10
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x43a6f1
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push eax
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
mov ebp, eax
jmp 0x43a713
mov eax, dword [0x687630]
test eax, eax
je 0x43a713
push str.CTSDEncryptDrv:_StartService_fail_to_OpenSCManager
jmp 0x43a6ff
mov eax, dword [0x687630]
test eax, eax
je 0x43a713
push str.CTSDEncryptDrv:_StartService_fail_to_OpenService
push str.TSDEncryptDrv
push 4
push 0x6875c4
call fcn.00431af0
add esp, 0x10
test ebp, ebp
mov dword [0x688458], 0
jne 0x43a751
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x687630]
mov dword [0x688458], eax
test ecx, ecx
je 0x43a751
push eax
push eax
push str.CTSDEncryptDrv:_StartService_failed__error_ld_0x_08x__n
push str.TSDEncryptDrv
push 4
push 0x6875c4
call fcn.00431af0
add esp, 0x18
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x43a75e
push esi
call ebx
test edi, edi
je 0x43a765
push edi
call ebx
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
ret
Function at 0x4438e0
Capabilities:
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x5f3a08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x18]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
or edi, 0xffffffff
cmp eax, edi
je 0x443926
and eax, 0xff
pop edi
shr eax, 4
and eax, 1
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
push ebx
push esi
lea ecx, [esp + 0x24]
call fcn.005e0f55
lea eax, [esp + 0xc]
push 1
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], 0
call fcn.005de2bd
mov eax, dword [eax]
push 0x6463d8
push eax
call fcn.0044ea3a
add esp, 8
lea ecx, [esp + 0xc]
test eax, eax
sete bl
call fcn.005e0ee7
test bl, bl
pop ebx
je 0x4439a0
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 8]
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x1c]
dec eax
push eax
push edx
call fcn.005de339
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x18], 1
call fcn.005e1020
lea ecx, [esp + 8]
mov byte [esp + 0x14], 0
call fcn.005e0ee7
push 0x5c
lea ecx, [esp + 0x20]
call fcn.005de407
cmp eax, 2
jl 0x443a1c
push eax
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x24]
call fcn.005de339
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x18], 2
call fcn.005e1020
lea ecx, [esp + 8]
mov byte [esp + 0x14], 0
call fcn.005e0ee7
mov ecx, dword [esp + 0x1c]
cmp dword [ecx - 8], 2
jg 0x4439f1
push 0x5c
lea ecx, [esp + 0x20]
call fcn.005e12ea
mov edx, dword [esp + 0x1c]
push edx
call fcn.004438e0
add esp, 4
test eax, eax
je 0x443a1c
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x443a3c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x443a3c
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], edi
call fcn.005e0ee7
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], edi
call fcn.005e0ee7
mov ecx, dword [esp + 0xc]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4458b0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
mov esi, dword [esp + 0x10]
mov dword [ebx], 0
push edi
test esi, esi
mov dword [eax], 0
mov dword [esp + 0x18], 0
je 0x445a02
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x445a02
push eax
push esi
call fcn.0048fc00
add esp, 8
test eax, eax
je 0x445a02
push 0
push 0
push 3
push 0
push 1
push SysReAllocStringLen
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4459b4
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebx], eax
push 0x10000
mov ebx, eax
call fcn.005e15b8
mov esi, eax
add esp, 4
test esi, esi
je 0x4459df
mov ecx, 0x4000
xor eax, eax
mov edi, esi
mov dword [esp + 0x18], 1
test ebx, ebx
rep stosd dword es:[edi], eax
jbe 0x4459e9
cmp ebx, 0x10000
mov eax, 0x10000
ja 0x44596f
mov eax, ebx
lea ecx, [esp + 0x14]
push 0
push ecx
push eax
push esi
push ebp
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4459aa
mov edi, dword [esp + 0x1c]
push eax
push esi
sub ebx, eax
mov edx, dword [edi]
push edx
call fcn.004b3130
add esp, 0xc
mov dword [edi], eax
test ebx, ebx
ja 0x445960
jmp 0x4459e9
mov dword [esp + 0x18], 0
jmp 0x4459e9
mov eax, dword [0x687630]
test eax, eax
je 0x445a30
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetFileSizeAndCrc_1___08x_
push str.Update
push 0xf
push 0x6875c4
call fcn.00431af0
add esp, 0x14
jmp 0x445a02
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or ebp, 0xffffffff
test esi, esi
je 0x4459f6
push esi
call fcn.005e15e1
add esp, 4
cmp ebp, 0xffffffff
je 0x445a02
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x687630]
test eax, eax
je 0x445a30
mov esi, dword [esp + 0x18]
push esi
push str.GetFileSizeAndCrc____d_
push str.Update
push 0xf
push 0x6875c4
call fcn.00431af0
add esp, 0x14
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x446e40
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x104
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 5]
mov byte [esp + 4], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 8]
push eax
push str.TEC_OCULAR__AGENT_V3_MUTEX_AGENT
call fcn.0040b030
add esp, 0xc
lea ecx, [esp + 4]
push ecx
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
pop edi
jne 0x446ea1
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
cmp eax, 5
sete dl
mov eax, edx
add esp, 0x104
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add esp, 0x104
ret
Function at 0x465740
Capabilities:
Extract resource via kernel32 functions
Print debug messages

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push ebx
push ebp
mov ebp, eax
push esi
mov esi, dword [esp + 0x10]
and ebp, 0xf
shr eax, 4
inc eax
push edi
and eax, 0xffff
push ecx
push eax
push 6
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
test eax, eax
je 0x465799
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x465799
xor edi, edi
xor ebx, ebx
mov bx, word [esi]
add esi, 2
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp ebp, edi
je 0x4657a0
inc edi
lea esi, [esi + ebx*2]
cmp edi, 0x10
jl 0x46577d
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
mov edx, ecx
xor eax, eax
mov edi, ebp
push 0
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
rep stosb byte es:[edi], al
mov eax, edx
dec eax
push eax
push ebp
push ebx
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x46579b
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
pop edi
dec ecx
pop esi
pop ebp
mov eax, ecx
pop ebx
ret

Function at 0x46b270
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push esi
push edi
mov esi, dword [esp + 0xc]
mov edi, eax
shr eax, 4
and edi, 0xf
inc eax
and eax, 0xffff
push ecx
push eax
push 6
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
test eax, eax
je 0x46b2c0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x46b2c0
xor ecx, ecx
xor eax, eax
mov ax, word [esi]
add esi, 2
cmp edi, ecx
je 0x46b2c5
inc ecx
lea esi, [esi + eax*2]
cmp ecx, 0x10
jl 0x46b2ab
pop edi
xor eax, eax
pop esi
ret
mov edx, dword [esp + 0x1c]
lea ecx, [edx - 1]
cmp eax, ecx
jle 0x46b2d2
mov eax, ecx
lea edx, [eax + eax]
push ebx
mov ebx, dword [esp + 0x1c]
mov ecx, edx
push ebp
mov ebp, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
pop ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov word [edx + ebx], 0
pop ebx
pop edi
pop esi
ret