joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407c20
Capabilities:
Check for time delay via gettickcount
Check if file exists
Copy file
Get file attributes
Move file
Set file attributes

Disassembly:
sub esp, 0x404
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push ebp
mov ebp, dword [esp + 0x414]
push esi
push edi
push ebp
call ebx
cmp eax, 0xffffffff
jne 0x407c61
mov eax, dword [esp + 0x420]
mov ecx, dword [esp + 0x418]
push eax
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x404
ret
test al, 1
je 0x407c77
and al, 0xfe
push eax
push ebp
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [esp + 0x10]
test al, 0x10
je 0x407cf5
xor esi, esi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
push eax
push ebp
lea edx, [esp + 0x1c]
push str._s.bak_08X
push edx
call fcn.004544a9
add esp, 0x10
lea eax, [esp + 0x14]
push eax
call ebx
cmp eax, 0xffffffff
je 0x407ce9
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
call edi
push eax
push ebp
lea ecx, [esp + 0x1c]
push str._s.bak_08X
push ecx
call fcn.004544a9
add esp, 0x10
lea edx, [esp + 0x14]
push edx
call ebx
inc esi
cmp esi, 0xa
jge 0x407d17
cmp eax, 0xffffffff
jne 0x407cb9
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov ecx, dword [esp + 0x420]
mov edx, dword [esp + 0x418]
push ecx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x404
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x404
ret
Function at 0x407f40
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5d08e2
push eax
mov dword fs:[0], esp
sub esp, 0x268
push esi
mov esi, dword [esp + 0x27c]
push edi
xor edi, edi
cmp esi, edi
je 0x408168
push esi
call fcn.004538bc
add esp, 4
test eax, eax
je 0x408168
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x408168
test al, 0x10
je 0x408168
push ebx
push esi
lea ecx, [esp + 0x10]
call fcn.005b7d77
push 0x5c
lea ecx, [esp + 0x10]
mov dword [esp + 0x280], edi
call fcn.005b4ae6
mov dword [esp + 0x24], edi
mov ecx, 0x93
xor eax, eax
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
push 0x63070c
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.005b7fa8
mov eax, dword [eax]
lea edx, [esp + 0x24]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea ecx, [esp + 0x10]
mov edi, eax
call fcn.005b7d03
cmp edi, 0xffffffff
mov ebx, 1
je 0x40813a
mov esi, dword [esp + 0x288]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpW]
lea eax, [esp + 0x54]
push 0x630758
push eax
call ebp
test eax, eax
je 0x40811e
lea ecx, [esp + 0x54]
push 0x630754
push ecx
call ebp
test eax, eax
je 0x40811e
lea edx, [esp + 0x54]
lea ecx, [esp + 0x14]
push edx
call fcn.005b7d77
mov al, byte [esp + 0x28]
mov byte [esp + 0x280], bl
test al, 0x10
push 0x63061c
je 0x4080b1
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
push ecx
call fcn.005b7fa8
lea edx, [esp + 0x14]
mov byte [esp + 0x280], 2
push edx
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.005b7f42
mov eax, dword [eax]
push esi
push eax
mov byte [esp + 0x288], 3
call fcn.00407f40
add esp, 8
lea ecx, [esp + 0x24]
mov byte [esp + 0x280], 2
call fcn.005b7d03
mov byte [esp + 0x280], bl
lea ecx, [esp + 0x18]
jmp 0x408108
lea ecx, [esp + 0x14]
lea edx, [esp + 0x24]
push ecx
push edx
call fcn.005b7fa8
lea ecx, [esp + 0x14]
lea edx, [esp + 0x1c]
push ecx
push eax
push edx
mov byte [esp + 0x28c], 4
call fcn.005b7f42
mov ecx, dword [esi + 8]
push eax
push ecx
mov ecx, esi
mov byte [esp + 0x288], 5
call fcn.005b63fa
lea ecx, [esp + 0x1c]
mov byte [esp + 0x280], 4
call fcn.005b7d03
mov byte [esp + 0x280], bl
lea ecx, [esp + 0x20]
call fcn.005b7d03
lea ecx, [esp + 0x14]
mov byte [esp + 0x280], 0
call fcn.005b7d03
lea eax, [esp + 0x28]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40800e
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebp
lea ecx, [esp + 0xc]
mov dword [esp + 0x27c], 0xffffffff
call fcn.005b7d03
mov eax, ebx
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x268]
mov dword fs:[0], ecx
add esp, 0x274
ret
mov ecx, dword [esp + 0x270]
pop edi
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x274
ret
Function at 0x408190
Capabilities:
Get graphical window text

Disassembly:
call fcn.0047fb50
test eax, eax
je 0x4081af
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
ret
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
xor ebp, ebp
test edi, edi
je 0x408230
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x408230
lea ecx, [esi + esi]
xor eax, eax
mov edx, ecx
push esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
call fcn.005b83cc
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x408230
mov ecx, esi
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push esi
and ecx, 3
push ebx
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ebp, eax
test ebp, ebp
je 0x408230
push esi
mov esi, dword [esp + 0x1c]
push esi
push 0xffffffffffffffff
push ebx
xor ebp, ebp
call fcn.004045a0
add esp, 0x10
test eax, eax
je 0x408230
push esi
call fcn.004538bc
add esp, 4
mov ebp, eax
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
ret

Function at 0x408560
Capabilities:
Check mutex on windows

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x208
test edx, edx
jne 0x408577
xor eax, eax
add esp, 0x208
ret
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 6]
mov word [esp + 4], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 8]
push eax
push edx
call fcn.00404cb0
add esp, 0xc
lea ecx, [esp + 4]
push ecx
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
test eax, eax
pop edi
jne 0x4085cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
cmp eax, 5
sete dl
mov eax, edx
add esp, 0x208
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add esp, 0x208
ret
Function at 0x408f60
Capabilities:
Get hostname

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, ebx
push esi
je 0x408fd9
mov esi, dword [esp + 0x10]
test esi, esi
je 0x408fd9
mov eax, dword [0x65aa68]
push ebp
mov ebp, dword [esi]
push edi
test eax, eax
jne 0x408faa
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x408fa1
push str.GetComputerNameExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x65aa68], eax
jmp 0x408fa6
mov eax, dword [0x65aa68]
test eax, eax
je 0x408fc6
mov ecx, dword [esp + 0x1c]
push esi
push ebx
push ecx
call eax
mov edi, eax
test edi, edi
je 0x408fc6
push ebx
call fcn.004538bc
add esp, 4
test eax, eax
jne 0x408fd2
push esi
push ebx
mov dword [esi], ebp
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
mov edi, eax
mov eax, edi
pop edi
pop ebp
pop esi
pop ebx
ret
pop esi
xor eax, eax
pop ebx
ret

Function at 0x409600
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5d0998
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
mov esi, ecx
push edi
lea ecx, [esp + 8]
xor edi, edi
call fcn.005b669a
lea eax, [esp + 8]
mov ecx, esi
push eax
mov dword [esp + 0x28], edi
call fcn.0040a000
test eax, eax
je 0x409674
mov ecx, dword [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x30]
call fcn.00490810
lea ecx, [esp + 8]
mov esi, 1
mov dword [esp + 0x24], 0xffffffff
call fcn.005b66cd
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret 4
lea ecx, [esp + 8]
mov dword [esp + 0x24], 0xffffffff
call fcn.005b66cd
mov ecx, dword [esp + 0x1c]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 4
Function at 0x409a20
Capabilities:
Get hostname

Disassembly:
sub esp, 0x20c
push ebx
push esi
mov esi, dword [esp + 0x218]
mov edx, ecx
push edi
mov ecx, 0x41
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
push esi
mov ecx, edx
xor ebx, ebx
mov dword [esp + 0x10], 0x104
call fcn.004096a0
test eax, eax
je 0x409af0
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x12]
mov word [esp + 0x10], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
push ecx
mov dword [esp + 0x14], 0x104
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x409af0
push 0x5c
push esi
call fcn.0045404c
mov edi, eax
add esp, 8
test edi, edi
je 0x409adf
mov ebx, edi
lea edx, [esp + 0x10]
sub ebx, esi
push edx
sar ebx, 1
call fcn.004538bc
add esp, 4
cmp eax, ebx
jne 0x409adf
push ebx
lea eax, [esp + 0x14]
push esi
push eax
call fcn.00454274
add esp, 0xc
test eax, eax
jne 0x409adf
add edi, 2
push edi
call fcn.004538bc
lea ebx, [eax + eax]
push ebx
push edi
push esi
call fcn.00454690
add esp, 0x10
mov word [ebx + esi], 0
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x20c
ret 4
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x20c
ret 4
Function at 0x40d130
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5d1078
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [esp + 0x30]
xor ebx, ebx
mov esi, ecx
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [esp + 0xc], ebx
call fcn.0040a730
test eax, eax
je 0x40d17c
lea eax, [esp + 0xc]
mov ecx, esi
push eax
call fcn.0040d090
cmp eax, ebx
jne 0x40d190
lea ecx, [esp + 0xc]
push ecx
jmp 0x40d181
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call fcn.0040cf80
cmp eax, ebx
je 0x40d286
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x34], eax
call fcn.0040d820
add esp, 4
lea ecx, [esp + 0x30]
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
push ebx
mov dword [esp + 0x20], ebx
call fcn.005b4e76
mov edx, dword [eax]
lea ecx, [esp + 0x30]
push edx
push ebx
call fcn.005b4e76
mov eax, dword [eax + 4]
lea ecx, [esp + 0x34]
push eax
push ebx
call fcn.005b4e76
mov ecx, dword [eax + 8]
push ecx
push ebx
lea ecx, [esp + 0x40]
call fcn.005b4e76
mov edx, dword [eax + 0xc]
lea ecx, [esp + 0x3c]
push edx
push ebx
call fcn.005b4e76
mov eax, dword [eax + 0x10]
lea ecx, [esp + 0x40]
inc eax
push eax
push ebx
call fcn.005b4e76
mov ecx, dword [eax + 0x14]
add ecx, 0x76c
push ecx
lea ecx, [esp + 0x2c]
call fcn.0044a33a
lea edx, [esp + 0x10]
push 0x63115c
push edx
lea ecx, [esp + 0x1c]
call fcn.0044a4b7
mov eax, dword [eax]
mov dword [esp + 0x28], ebx
push eax
push str.CGlobalInfoAgent::GetPolicyServerTimeFromHardDisk_time__s_
push str.CheckModule
push 0xf
push 0x663464
call fcn.00447850
add esp, 0x14
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call fcn.005b7d03
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [edi], ecx
mov dword [edi + 4], edx
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret 4
mov ecx, dword [esp + 0x20]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 4
Function at 0x40d886
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov ecx, 0x65abf0
jmp 0x40d870
push 0xffffffffffffffff
push 0x5d11bc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov edx, 0x5eac5c
xor edi, edi
mov ecx, 0x11
mov eax, 0xa
mov dword [esp + 8], esi
mov dword [esi + 8], edx
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], eax
mov dword [esp + 0x14], edi
mov dword [esi + 0x24], edx
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], eax
mov ecx, dword [0x5f1614]
mov dword [esi + 0x60], ecx
mov edx, dword [0x5f1614]
mov dword [esi + 0x64], edx
mov ecx, dword [0x5f1614]
mov dword [esi + 0x68], ecx
mov edx, dword [0x63d178]
mov dword [esi + 0x6c], edx
mov ecx, dword [0x63d178]
mov dword [esi + 0x70], ecx
mov edx, dword [0x5f1614]
mov dword [esi + 0x74], edx
mov ecx, dword [0x5f1614]
mov dword [esi + 0x78], ecx
mov edx, dword [0x5f1614]
mov dword [esi + 0x7c], edx
mov ecx, dword [0x5f1614]
mov dword [esi + 0x80], ecx
lea ecx, [esi + 0x98]
mov byte [esp + 0x14], al
call fcn.00419c70
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x48], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x84], edi
mov dword [esi + 0x88], edi
mov dword [esi + 0x8c], edi
mov dword [esi + 0x90], edi
mov dword [esi + 0x94], edi
mov dword [esi], 0x5eac58
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x40db20
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x5d12a7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
push ebx
push ebp
push esi
lea eax, [esp + 0x14]
push edi
push eax
mov esi, ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.OAgent.ini
lea ecx, [esp + 0x14]
call fcn.0046c430
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push ecx
lea ebx, [esi + 0x74]
push edx
push 0x631f10
push ebx
mov dword [esp + 0x238], 0
call fcn.0046fcb0
or edi, 0xffffffff
add esp, 0x10
lea ecx, [esp + 0x10]
mov dword [esp + 0x228], edi
call fcn.0046cca0
push str.OPolicy.ini
lea ecx, [esp + 0x14]
call fcn.0046c430
mov eax, dword [eax]
lea ecx, [esp + 0x18]
push eax
lea ebp, [esi + 0x7c]
push ecx
push 0x631f10
push ebp
mov dword [esp + 0x238], 1
call fcn.0046fcb0
add esp, 0x10
lea ecx, [esp + 0x10]
mov dword [esp + 0x228], edi
call fcn.0046cca0
lea edi, [esi + 0x6c]
call fcn.00401080
push eax
mov ecx, edi
call fcn.005b7e9a
mov edx, dword [0x63d178]
mov dword [esp + 0x10], edx
push str.OAgent.ini
mov dword [esp + 0x22c], 2
call fcn.00401080
push eax
lea eax, [esp + 0x18]
push 0x630a00
push eax
call fcn.005b496b
mov edx, dword [esp + 0x20]
add esp, 0x10
lea ecx, [esi + 0x78]
push edx
call fcn.0046cf80
lea ecx, [esp + 0x10]
mov dword [esp + 0x228], 0xffffffff
call fcn.005b7d03
mov eax, dword [0x63d178]
mov dword [esp + 0x10], eax
push str.OPolicy.ini
mov dword [esp + 0x22c], 3
call fcn.00401080
push eax
lea ecx, [esp + 0x18]
push 0x630a00
push ecx
call fcn.005b496b
add esp, 0x10
lea ecx, [esi + 0x80]
mov edx, dword [esp + 0x10]
push edx
call fcn.0046cf80
lea ecx, [esp + 0x10]
mov dword [esp + 0x228], 0xffffffff
call fcn.005b7d03
push 0x5c
mov ecx, edi
call fcn.005b4ae6
mov edi, dword [edi]
xor eax, eax
push edi
mov ecx, dword [edi - 8]
test ecx, ecx
setne al
lea ecx, [esp + 0x18]
mov dword [esi + 0x40], eax
call fcn.0046c430
mov ecx, dword [esi + 0x40]
mov edx, dword [eax]
push ecx
push edx
push str.CImportAuthMgr::Initialize_m_strDstFolder__s__m_bInit__d_
push str.CheckModule
push 0xf
push 0x663464
mov dword [esp + 0x240], 4
call fcn.00447850
add esp, 0x18
lea ecx, [esp + 0x14]
mov dword [esp + 0x228], 0xffffffff
call fcn.0046cca0
mov eax, dword [esi + 0x78]
mov ecx, dword [ebx]
push eax
push ecx
push str.CImportAuthMgr::Initialize_wstrTempOAgentIni__s__wstrHDOAgentIni__s_
push str.CheckModule
push 0xf
push 0x663464
call fcn.00447850
mov edx, dword [esi + 0x80]
mov eax, dword [ebp]
add esp, 0x18
push edx
push eax
push str.CImportAuthMgr::Initialize_wstrTempOPolicyFile__s__wstrOPolicyFile__s_
push str.CheckModule
push 0xf
push 0x663464
call fcn.00447850
mov eax, dword [esi + 0x40]
mov ecx, dword [esp + 0x238]
add esp, 0x18
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x21c
ret
Function at 0x40f810
Capabilities:
Accept command line arguments
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5d14f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push esi
push edi
mov esi, 1
call sub.KERNEL32.dll_GetCurrentProcessId
mov edi, eax
lea ecx, [esp + 0x10]
push edi
call fcn.0049f870
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], 0
call fcn.0049fb80
push eax
lea eax, [esp + 0xc]
push eax
call fcn.004a0ed0
add esp, 8
mov byte [esp + 0x38], 1
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [esp + 0x10]
call fcn.005b7d77
push str._installimportpolicy
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], 2
call fcn.005b45f7
cmp eax, 0xffffffff
je 0x40f8a4
mov ecx, dword [esp + 8]
push str.AKernel3.exe
push ecx
call fcn.00453d6e
add esp, 8
test eax, eax
jne 0x40f8a4
xor esi, esi
mov edx, dword [esp + 8]
push edi
push edx
push esi
push str.CImportAuthMgr::IsCheckIdentify___bRet_:__d____strProcName_:__s___ppid_:__d_
push str.CheckModule
push 0xf
push 0x663464
call fcn.00447850
add esp, 0x1c
lea ecx, [esp + 0xc]
mov byte [esp + 0x38], 1
call fcn.005b7d03
lea ecx, [esp + 8]
mov byte [esp + 0x38], 0
call fcn.005b7d03
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], 0xffffffff
call fcn.0049f9a0
mov ecx, dword [esp + 0x30]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x34
ret

Function at 0x40fb20
Capabilities:
Check if file exists
Copy file
Get file attributes

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, 1
mov eax, dword [esi + 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40fb8c
mov eax, dword [esi + 0x74]
mov ecx, dword [esi + 0x78]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov edi, eax
test edi, edi
jne 0x40fb78
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi + 0x78]
push eax
mov eax, dword [esi + 0x74]
push eax
push ecx
push str.PrepareTempOAgentIni___s_____s__err_0x_x__fail_
push str.CheckModule
push 0xf
push 0x663464
call fcn.00447850
add esp, 0x1c
jmp 0x40fb8c
mov esi, dword [esi + 0x74]
call fcn.00484450
push eax
push 4
push esi
call fcn.00408b40
add esp, 0xc
push edi
push str.PrepareTempOAgentIni_ret__d_
push str.CheckModule
push 0xf
push 0x663464
call fcn.00447850
add esp, 0x14
mov eax, edi
pop edi
pop esi
ret

Function at 0x40fbb0
Capabilities:
Move file

Disassembly:
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x94]
mov ecx, dword [esi + 0x78]
neg eax
mov edx, dword [esi + 0x74]
sbb eax, eax
and eax, 2
add eax, 3
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, dword [esi + 0x74]
mov edi, eax
mov eax, dword [esi + 0x78]
push edi
push eax
push ecx
push str.PrepareTempOAgentIni___s_____s__MoveFileExW__d_
push str.CheckModule
push 0xf
push 0x663464
call fcn.00447850
add esp, 0x1c
mov eax, edi
pop edi
pop esi
ret
Function at 0x40fc00
Capabilities:
Check if file exists
Copy file
Get file attributes

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, 1
mov eax, dword [esi + 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40fc77
mov eax, dword [esi + 0x7c]
mov ecx, dword [esi + 0x80]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov edi, eax
test edi, edi
jne 0x40fc61
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi + 0x80]
push eax
mov eax, dword [esi + 0x7c]
push eax
push ecx
push str.CImportAuthMgr::PrepareTempIni___s_____s__err_0x_x__fail_
push str.CheckModule
push 0xf
push 0x663464
call fcn.00447850
add esp, 0x1c
jmp 0x40fc77
push ebx
mov ebx, dword [esi + 0x7c]
call fcn.00484450
push eax
push 4
push ebx
call fcn.00408b40
add esp, 0xc
pop ebx
mov edx, dword [esi + 0x7c]
push edi
push edx
push str.CImportAuthMgr::PrepareTempIni_m_wstrTempOPolicyFile__s__ret__d_
push str.CheckModule
push 0xf
push 0x663464
call fcn.00447850
add esp, 0x18
mov eax, edi
pop edi
pop esi
ret

Function at 0x40fca0
Capabilities:
Move file

Disassembly:
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x94]
mov ecx, dword [esi + 0x80]
neg eax
mov edx, dword [esi + 0x7c]
sbb eax, eax
and eax, 2
add eax, 3
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, dword [esi + 0x7c]
mov edi, eax
mov eax, dword [esi + 0x80]
push edi
push eax
push ecx
push str.CImportAuthMgr::UpdateTempIniToNormal___s_____s__MoveFileExW__d_
push str.CheckModule
push 0xf
push 0x663464
call fcn.00447850
add esp, 0x1c
mov eax, edi
pop edi
pop esi
ret

Function at 0x40fe30
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5d1580
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov ecx, 0x65ab00
push ebx
push esi
push edi
call fcn.0040a7f0
fld qword [esp + 0x40]
fcomp st(1)
xor ebx, ebx
fnstsw ax
test ah, 0x41
je 0x40fe6b
mov edi, 1
jmp 0x40fe6d
xor edi, edi
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
fstp qword [esp + 0x24]
lea edx, [esp + 0x14]
mov dword [esp + 0x1c], ecx
push 0x63115c
push edx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], ebx
call fcn.0044a4b7
mov eax, dword [eax]
lea ecx, [esp + 0x10]
push eax
mov dword [esp + 0x3c], ebx
call fcn.0046c430
mov esi, eax
lea eax, [esp + 0xc]
push 0x63115c
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x40], 1
call fcn.0044a4b7
mov eax, dword [eax]
lea ecx, [esp + 0x40]
push eax
mov byte [esp + 0x3c], 2
call fcn.0046c430
mov ecx, dword [esi]
mov edx, dword [eax]
push ecx
push edx
push str.IsImportOld_import__s___agent__s_
push str.CheckModule
push 0xf
push 0x663464
mov byte [esp + 0x50], 3
call fcn.00447850
add esp, 0x18
lea ecx, [esp + 0x40]
mov byte [esp + 0x38], 2
call fcn.0046cca0
lea ecx, [esp + 0xc]
mov byte [esp + 0x38], 1
call fcn.005b7d03
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], bl
call fcn.0046cca0
lea ecx, [esp + 0x14]
mov dword [esp + 0x38], 0xffffffff
call fcn.005b7d03
mov ecx, dword [esp + 0x30]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret 8
Function at 0x4109e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5d16d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
lea ecx, [esp + 0xc]
lea eax, [esi + 4]
push edi
push eax
call fcn.0044b31e
mov ebx, dword [esi + 0x28]
mov dword [esp + 0x20], edi
cmp ebx, edi
je 0x410a35
mov eax, dword [esi + 0x2c]
cmp eax, edi
jbe 0x410a35
mov ecx, ebx
mov edx, eax
mov eax, dword [ecx]
cmp eax, edi
je 0x410a2f
mov eax, dword [eax]
cmp eax, edi
jne 0x410a29
add ecx, 4
dec edx
jne 0x410a23
push ebx
call fcn.005b83f5
mov ecx, dword [esi + 0x38]
add esp, 4
mov dword [esi + 0x28], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
call fcn.005b6db3
lea ecx, [esp + 0xc]
mov dword [esi + 0x38], edi
mov dword [esp + 0x20], 0xffffffff
call fcn.0044b35a
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret

Function at 0x410a80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5d16f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
push 0
lea eax, [esi + 4]
lea ecx, [esp + 0x14]
push eax
call fcn.0044b31e
mov edi, dword [esp + 0x2c]
mov ebp, dword [esi + 0x2c]
add esi, 0x24
mov eax, edi
shr eax, 4
xor edx, edx
mov ecx, dword [esi + 4]
div ebp
test ecx, ecx
mov dword [esp + 0x24], 0
mov ebx, edx
je 0x410aed
mov eax, dword [ecx + ebx*4]
test eax, eax
je 0x410ae9
cmp dword [eax + 8], edi
je 0x410ae5
mov eax, dword [eax]
test eax, eax
jne 0x410ad8
jmp 0x410ae9
test eax, eax
jne 0x410b38
test ecx, ecx
jne 0x410b1d
lea edi, [ebp*4]
push edi
call fcn.005b83cc
mov edx, eax
mov ecx, edi
mov dword [esi + 4], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x2c]
mov dword [esi + 8], ebp
mov ecx, esi
call fcn.00410e70
mov dword [eax + 4], ebx
mov dword [eax + 8], edi
mov ecx, dword [esi + 4]
mov edx, dword [ecx + ebx*4]
mov dword [eax], edx
mov ecx, dword [esi + 4]
mov dword [ecx + ebx*4], eax
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x10]
mov dword [eax + 0xc], edx
mov dword [esp + 0x24], 0xffffffff
call fcn.0044b35a
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 8