joyce8/EMBER2024-capa huggingface dataset:
Function at 0x428cc0
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.0044cdc2
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 0x428dae
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 0x428da3
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 0x428d61
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x20c
ret

Function at 0x428dc0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x5f025b
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 0x6433d0
push ecx
lea edx, [esp + 0x124]
push 0x643284
push edx
call fcn.0044cdc2
add esp, 0x10
lea ecx, [esp + 4]
call fcn.005dd5f1
lea eax, [esp + 4]
lea ecx, [esp + 0x11c]
push eax
push 0x428ea0
push ecx
mov dword [esp + 0x234], 0
call fcn.0040d650
lea edx, [esp + 0x10]
push edx
call fcn.00428cc0
add esp, 0x10
lea ecx, [esp + 4]
mov dword [esp + 0x228], 0xffffffff
call fcn.005dd624
mov ecx, dword [esp + 0x220]
pop edi
mov dword fs:[0], ecx
add esp, 0x228
ret
Function at 0x429040
Capabilities:
Query service configuration

Disassembly:
sub esp, 0x1c
push ebx
push edi
mov edi, dword [esp + 0x28]
xor ebx, ebx
cmp edi, ebx
jne 0x429057
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 0x42915f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x6844b0]
cmp eax, ebx
je 0x4290ab
mov ecx, dword [esp + 0x30]
push ecx
push esi
push str.CheckServConf_1___d____d_
push str.SrcSer
push 0xf
push 0x684444
call fcn.00431aa0
add esp, 0x18
cmp esi, 0x7a
jne 0x42915f
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x42915f
push eax
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
je 0x42915f
lea edx, [esp + 0x30]
push edx
push esi
push ebx
push 2
push edi
call ebp
test eax, eax
je 0x429158
mov eax, dword [0x6844b0]
xor esi, esi
cmp eax, esi
je 0x42910f
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 0x684444
call fcn.00431aa0
add esp, 0x18
cmp dword [ebx], 0x3f480
jne 0x429158
cmp dword [ebx + 0xc], 3
jne 0x429158
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 0x429158
mov dword [esp + 0x10], eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [0x6844b0]
pop esi
test eax, eax
pop ebp
je 0x429188
mov eax, dword [esp + 8]
push eax
push str.CheckServConf____d_
push str.SrcSer
push 0xf
push 0x684444
call fcn.00431aa0
add esp, 0x14
mov eax, dword [esp + 8]
pop edi
pop ebx
add esp, 0x1c
ret
Function at 0x435260
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 0x4352a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x4352a1
push esi
call fcn.00435030
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 0x4352b0
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 0x4352e0
test al, 0x10
jne 0x4352f8
test al, 1
je 0x4352d9
and al, 0xfe
push eax
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
call fcn.004989f0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x4352f5
pop edi
pop esi
pop ebx
ret
push esi
call edi
mov ecx, dword [esp + 0x14]
cmp eax, ecx
je 0x435304
push ecx
push esi
call ebx
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x4397f0
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 0x439856
mov eax, dword [esp + 0x18]
cmp eax, 1
jne 0x439830
pop edi
pop esi
add esp, 0x94
ret
cmp eax, 2
jne 0x439856
mov eax, dword [esp + 0xc]
cmp eax, 4
jne 0x43984c
pop edi
mov eax, 2
pop esi
add esp, 0x94
ret
cmp eax, 5
mov eax, 3
je 0x439858
mov eax, esi
pop edi
pop esi
add esp, 0x94
ret
Function at 0x439ab0
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 0x439c66
mov eax, dword [esp]
test eax, eax
je 0x439c66
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 0x65b660
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 0x65b668
push eax
call ebx
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x18]
push 4
push ecx
push 4
push 0
push 0x65b670
push edx
call ebx
mov ecx, dword [0x65b81c]
mov eax, dword [str.Extended_Base]
mov dword [esp + 0x30], ecx
mov edx, dword [0x65b820]
mov ecx, 0xa
mov esi, str.SystemRootSystem32Drivers_tpacket.sys
lea edi, [esp + 0x4c]
mov dword [esp + 0x2c], eax
mov ax, word [0x65b824]
mov dword [esp + 0x34], edx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [str.TPacket_Driver]
mov edx, dword [0x65b7ec]
mov word [esp + 0x38], ax
mov eax, dword [0x65b7f0]
mov dword [esp + 0x44], eax
mov dword [esp + 0x3c], ecx
mov cx, word [0x65b7f4]
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 [0x65b7f6]
push 0
push 0x65b680
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 0x65b688
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 [0x65b7d4]
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 0x65b6a0
push ecx
call ebx
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x24]
push 5
push edx
push 1
push 0
push 0x65b6b0
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 0x439c70
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 0x439dc1
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
js 0x439dc1
cmp ecx, 0x104
jge 0x439dc1
lea eax, [esp + ecx + 0xb]
mov cl, byte [esp + ecx + 0xb]
cmp cl, 0x5c
jne 0x439cd6
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 0x439d3f
push 0x103
push eax
lea eax, [esp + 0x118]
push eax
call fcn.0044c930
add esp, 0xc
jmp 0x439da2
lea ecx, [esp + 0x110]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x439dc1
lea edx, [esp + 0x110]
push 0x5c
push edx
call fcn.0044c8be
add esp, 8
test eax, eax
je 0x439d71
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 0x439dd0
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 0x439e54
mov eax, dword [esp]
test eax, eax
je 0x439e54
mov edx, dword [0x6475c8]
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 [0x6475cc]
push 0
push 0x65b7c4
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 0x439e60
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 0x439fcc
lea edi, [esp + 0x110]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
js 0x439fcc
cmp ecx, 0x104
jge 0x439fcc
lea eax, [esp + ecx + 0x10f]
mov cl, byte [esp + ecx + 0x10f]
cmp cl, 0x5c
jne 0x439ed8
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 0x439f3b
push 0x103
push eax
lea eax, [esp + 0x14]
push eax
call fcn.0044c930
add esp, 0xc
jmp 0x439fad
lea ecx, [esp + 0xc]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x439fcc
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x439fcc
cmp ecx, 0x104
jge 0x439fcc
lea edx, [esp + 0xc]
push 0x5c
push edx
call fcn.0044c8be
add esp, 8
test eax, eax
je 0x439f7f
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 0x43a630
Capabilities:
Start service

Disassembly:
push ebx
call fcn.004843a0
test eax, eax
jne 0x43a63c
pop ebx
ret
mov ebx, dword [esp + 8]
test ebx, ebx
jne 0x43a652
mov dword [0x6852d8], 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 0x43a691
push 0x10
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x43a6a1
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 0x43a6c3
mov eax, dword [0x6844b0]
test eax, eax
je 0x43a6c3
push str.CTSDEncryptDrv:_StartService_fail_to_OpenSCManager
jmp 0x43a6af
mov eax, dword [0x6844b0]
test eax, eax
je 0x43a6c3
push str.CTSDEncryptDrv:_StartService_fail_to_OpenService
push str.TSDEncryptDrv
push 4
push 0x684444
call fcn.00431aa0
add esp, 0x10
test ebp, ebp
mov dword [0x6852d8], 0
jne 0x43a701
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x6844b0]
mov dword [0x6852d8], eax
test ecx, ecx
je 0x43a701
push eax
push eax
push str.CTSDEncryptDrv:_StartService_failed__error_ld_0x_08x__n
push str.TSDEncryptDrv
push 4
push 0x684444
call fcn.00431aa0
add esp, 0x18
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x43a70e
push esi
call ebx
test edi, edi
je 0x43a715
push edi
call ebx
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
ret
Function at 0x443890
Capabilities:
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x5f1ce8
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 0x4438d6
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.005df235
lea eax, [esp + 0xc]
push 1
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], 0
call fcn.005dc59d
mov eax, dword [eax]
push 0x6433d8
push eax
call fcn.0044e9ea
add esp, 8
lea ecx, [esp + 0xc]
test eax, eax
sete bl
call fcn.005df1c7
test bl, bl
pop ebx
je 0x443950
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.005dc619
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x18], 1
call fcn.005df300
lea ecx, [esp + 8]
mov byte [esp + 0x14], 0
call fcn.005df1c7
push 0x5c
lea ecx, [esp + 0x20]
call fcn.005dc6e7
cmp eax, 2
jl 0x4439cc
push eax
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x24]
call fcn.005dc619
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x18], 2
call fcn.005df300
lea ecx, [esp + 8]
mov byte [esp + 0x14], 0
call fcn.005df1c7
mov ecx, dword [esp + 0x1c]
cmp dword [ecx - 8], 2
jg 0x4439a1
push 0x5c
lea ecx, [esp + 0x20]
call fcn.005df5ca
mov edx, dword [esp + 0x1c]
push edx
call fcn.00443890
add esp, 4
test eax, eax
je 0x4439cc
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x4439ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4439ec
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], edi
call fcn.005df1c7
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.005df1c7
mov ecx, dword [esp + 0xc]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x445860
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 0x4459b2
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4459b2
push eax
push esi
call fcn.0048fbb0
add esp, 8
test eax, eax
je 0x4459b2
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 0x445964
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebx], eax
push 0x10000
mov ebx, eax
call fcn.005df898
mov esi, eax
add esp, 4
test esi, esi
je 0x44598f
mov ecx, 0x4000
xor eax, eax
mov edi, esi
mov dword [esp + 0x18], 1
test ebx, ebx
rep stosd dword es:[edi], eax
jbe 0x445999
cmp ebx, 0x10000
mov eax, 0x10000
ja 0x44591f
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 0x44595a
mov edi, dword [esp + 0x1c]
push eax
push esi
sub ebx, eax
mov edx, dword [edi]
push edx
call fcn.004b30c0
add esp, 0xc
mov dword [edi], eax
test ebx, ebx
ja 0x445910
jmp 0x445999
mov dword [esp + 0x18], 0
jmp 0x445999
mov eax, dword [0x6844b0]
test eax, eax
je 0x4459e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetFileSizeAndCrc_1___08x_
push str.Update
push 0xf
push 0x684444
call fcn.00431aa0
add esp, 0x14
jmp 0x4459b2
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or ebp, 0xffffffff
test esi, esi
je 0x4459a6
push esi
call fcn.005df8c1
add esp, 4
cmp ebp, 0xffffffff
je 0x4459b2
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x6844b0]
test eax, eax
je 0x4459e0
mov esi, dword [esp + 0x18]
push esi
push str.GetFileSizeAndCrc____d_
push str.Update
push 0xf
push 0x684444
call fcn.00431aa0
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 0x446df0
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 0x446e51
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 0x4656f0
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 0x465749
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x465749
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 0x465750
inc edi
lea esi, [esi + ebx*2]
cmp edi, 0x10
jl 0x46572d
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 0x46574b
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 0x46b220
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 0x46b270
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x46b270
xor ecx, ecx
xor eax, eax
mov ax, word [esi]
add esi, 2
cmp edi, ecx
je 0x46b275
inc ecx
lea esi, [esi + eax*2]
cmp ecx, 0x10
jl 0x46b25b
pop edi
xor eax, eax
pop esi
ret
mov edx, dword [esp + 0x1c]
lea ecx, [edx - 1]
cmp eax, ecx
jle 0x46b282
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