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.00452be9
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.00452be9
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 0x5c5122
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.00451ffc
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.005ac5b7
push 0x5c
lea ecx, [esp + 0x10]
mov dword [esp + 0x280], edi
call fcn.005a9326
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 0x62270c
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.005ac7e8
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.005ac543
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 0x622758
push eax
call ebp
test eax, eax
je 0x40811e
lea ecx, [esp + 0x54]
push 0x622754
push ecx
call ebp
test eax, eax
je 0x40811e
lea edx, [esp + 0x54]
lea ecx, [esp + 0x14]
push edx
call fcn.005ac5b7
mov al, byte [esp + 0x28]
mov byte [esp + 0x280], bl
test al, 0x10
push 0x62261c
je 0x4080b1
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
push ecx
call fcn.005ac7e8
lea edx, [esp + 0x14]
mov byte [esp + 0x280], 2
push edx
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.005ac782
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.005ac543
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.005ac7e8
lea ecx, [esp + 0x14]
lea edx, [esp + 0x1c]
push ecx
push eax
push edx
mov byte [esp + 0x28c], 4
call fcn.005ac782
mov ecx, dword [esi + 8]
push eax
push ecx
mov ecx, esi
mov byte [esp + 0x288], 5
call fcn.005aac3a
lea ecx, [esp + 0x1c]
mov byte [esp + 0x280], 4
call fcn.005ac543
mov byte [esp + 0x280], bl
lea ecx, [esp + 0x20]
call fcn.005ac543
lea ecx, [esp + 0x14]
mov byte [esp + 0x280], 0
call fcn.005ac543
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.005ac543
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.0047e290
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.005acc0c
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.00451ffc
add esp, 4
mov ebp, eax
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
ret
Function at 0x408ed0
Capabilities:
Get hostname

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, ebx
push esi
je 0x408f49
mov esi, dword [esp + 0x10]
test esi, esi
je 0x408f49
mov eax, dword [0x64c008]
push ebp
mov ebp, dword [esi]
push edi
test eax, eax
jne 0x408f1a
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x408f11
push str.GetComputerNameExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x64c008], eax
jmp 0x408f16
mov eax, dword [0x64c008]
test eax, eax
je 0x408f36
mov ecx, dword [esp + 0x1c]
push esi
push ebx
push ecx
call eax
mov edi, eax
test edi, edi
je 0x408f36
push ebx
call fcn.00451ffc
add esp, 4
test eax, eax
jne 0x408f42
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 0x409570
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5c51d8
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.005aaeda
lea eax, [esp + 8]
mov ecx, esi
push eax
mov dword [esp + 0x28], edi
call fcn.00409f70
test eax, eax
je 0x4095e4
mov ecx, dword [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x30]
call fcn.0048ef50
lea ecx, [esp + 8]
mov esi, 1
mov dword [esp + 0x24], 0xffffffff
call fcn.005aaf0d
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.005aaf0d
mov ecx, dword [esp + 0x1c]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 4
Function at 0x409990
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.00409610
test eax, eax
je 0x409a60
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 0x409a60
push 0x5c
push esi
call fcn.0045278c
mov edi, eax
add esp, 8
test edi, edi
je 0x409a4f
mov ebx, edi
lea edx, [esp + 0x10]
sub ebx, esi
push edx
sar ebx, 1
call fcn.00451ffc
add esp, 4
cmp eax, ebx
jne 0x409a4f
push ebx
lea eax, [esp + 0x14]
push esi
push eax
call fcn.004529b4
add esp, 0xc
test eax, eax
jne 0x409a4f
add edi, 2
push edi
call fcn.00451ffc
lea ebx, [eax + eax]
push ebx
push edi
push esi
call fcn.00452dd0
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 0x40d0a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5c58b8
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.0040a6a0
test eax, eax
je 0x40d0ec
lea eax, [esp + 0xc]
mov ecx, esi
push eax
call fcn.0040d000
cmp eax, ebx
jne 0x40d100
lea ecx, [esp + 0xc]
push ecx
jmp 0x40d0f1
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call fcn.0040cef0
cmp eax, ebx
je 0x40d1f6
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x34], eax
call fcn.0040d710
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.005a96b6
mov edx, dword [eax]
lea ecx, [esp + 0x30]
push edx
push ebx
call fcn.005a96b6
mov eax, dword [eax + 4]
lea ecx, [esp + 0x34]
push eax
push ebx
call fcn.005a96b6
mov ecx, dword [eax + 8]
push ecx
push ebx
lea ecx, [esp + 0x40]
call fcn.005a96b6
mov edx, dword [eax + 0xc]
lea ecx, [esp + 0x3c]
push edx
push ebx
call fcn.005a96b6
mov eax, dword [eax + 0x10]
lea ecx, [esp + 0x40]
inc eax
push eax
push ebx
call fcn.005a96b6
mov ecx, dword [eax + 0x14]
add ecx, 0x76c
push ecx
lea ecx, [esp + 0x2c]
call fcn.00448a7a
lea edx, [esp + 0x10]
push 0x62315c
push edx
lea ecx, [esp + 0x1c]
call fcn.00448bf7
mov eax, dword [eax]
mov dword [esp + 0x28], ebx
push eax
push str.CGlobalInfoAgent::GetPolicyServerTimeFromHardDisk_time__s_
push str.CheckModule
push 0xf
push 0x654a04
call fcn.00445f90
add esp, 0x14
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call fcn.005ac543
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 0x40d776
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov ecx, 0x64c190
jmp 0x40d760
push 0xffffffffffffffff
push 0x5c59ec
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov edx, 0x5ddc5c
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 [0x5e45d4]
mov dword [esi + 0x60], ecx
mov edx, dword [0x5e45d4]
mov dword [esi + 0x64], edx
mov ecx, dword [0x5e45d4]
mov dword [esi + 0x68], ecx
mov edx, dword [0x62ed80]
mov dword [esi + 0x6c], edx
mov ecx, dword [0x62ed80]
mov dword [esi + 0x70], ecx
mov edx, dword [0x5e45d4]
mov dword [esi + 0x74], edx
mov ecx, dword [0x5e45d4]
mov dword [esi + 0x78], ecx
mov edx, dword [0x5e45d4]
mov dword [esi + 0x7c], edx
mov ecx, dword [0x5e45d4]
mov dword [esi + 0x80], ecx
lea ecx, [esi + 0x98]
mov byte [esp + 0x14], al
call fcn.004197b0
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], 0x5ddc58
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x40da10
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x5c5ad7
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.0046ab70
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push ecx
lea ebx, [esi + 0x74]
push edx
push 0x623ec0
push ebx
mov dword [esp + 0x238], 0
call fcn.0046e3f0
or edi, 0xffffffff
add esp, 0x10
lea ecx, [esp + 0x10]
mov dword [esp + 0x228], edi
call fcn.0046b3e0
push str.OPolicy.ini
lea ecx, [esp + 0x14]
call fcn.0046ab70
mov eax, dword [eax]
lea ecx, [esp + 0x18]
push eax
lea ebp, [esi + 0x7c]
push ecx
push 0x623ec0
push ebp
mov dword [esp + 0x238], 1
call fcn.0046e3f0
add esp, 0x10
lea ecx, [esp + 0x10]
mov dword [esp + 0x228], edi
call fcn.0046b3e0
lea edi, [esi + 0x6c]
call fcn.00401080
push eax
mov ecx, edi
call fcn.005ac6da
mov edx, dword [0x62ed80]
mov dword [esp + 0x10], edx
push str.OAgent.ini
mov dword [esp + 0x22c], 2
call fcn.00401080
push eax
lea eax, [esp + 0x18]
push 0x622a00
push eax
call fcn.005a91ab
mov edx, dword [esp + 0x20]
add esp, 0x10
lea ecx, [esi + 0x78]
push edx
call fcn.0046b6c0
lea ecx, [esp + 0x10]
mov dword [esp + 0x228], 0xffffffff
call fcn.005ac543
mov eax, dword [0x62ed80]
mov dword [esp + 0x10], eax
push str.OPolicy.ini
mov dword [esp + 0x22c], 3
call fcn.00401080
push eax
lea ecx, [esp + 0x18]
push 0x622a00
push ecx
call fcn.005a91ab
add esp, 0x10
lea ecx, [esi + 0x80]
mov edx, dword [esp + 0x10]
push edx
call fcn.0046b6c0
lea ecx, [esp + 0x10]
mov dword [esp + 0x228], 0xffffffff
call fcn.005ac543
push 0x5c
mov ecx, edi
call fcn.005a9326
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.0046ab70
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 0x654a04
mov dword [esp + 0x240], 4
call fcn.00445f90
add esp, 0x18
lea ecx, [esp + 0x14]
mov dword [esp + 0x228], 0xffffffff
call fcn.0046b3e0
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 0x654a04
call fcn.00445f90
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 0x654a04
call fcn.00445f90
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 0x40f5e0
Capabilities:
Accept command line arguments
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5c5d08
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.0049dfb0
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], 0
call fcn.0049e2c0
push eax
lea eax, [esp + 0xc]
push eax
call fcn.0049f610
add esp, 8
mov byte [esp + 0x38], 1
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [esp + 0x10]
call fcn.005ac5b7
push str._installimportpolicy
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], 2
call fcn.005a8e37
cmp eax, 0xffffffff
je 0x40f674
mov ecx, dword [esp + 8]
push str.AKernel3.exe
push ecx
call fcn.004524ae
add esp, 8
test eax, eax
jne 0x40f674
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 0x654a04
call fcn.00445f90
add esp, 0x1c
lea ecx, [esp + 0xc]
mov byte [esp + 0x38], 1
call fcn.005ac543
lea ecx, [esp + 8]
mov byte [esp + 0x38], 0
call fcn.005ac543
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], 0xffffffff
call fcn.0049e0e0
mov ecx, dword [esp + 0x30]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x34
ret

Function at 0x40f900
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 0x40f96c
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 0x40f958
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 0x654a04
call fcn.00445f90
add esp, 0x1c
jmp 0x40f96c
mov esi, dword [esi + 0x74]
call fcn.00482b90
push eax
push 4
push esi
call fcn.00408ab0
add esp, 0xc
push edi
push str.PrepareTempOAgentIni_ret__d_
push str.CheckModule
push 0xf
push 0x654a04
call fcn.00445f90
add esp, 0x14
mov eax, edi
pop edi
pop esi
ret

Function at 0x40f990
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 0x654a04
call fcn.00445f90
add esp, 0x1c
mov eax, edi
pop edi
pop esi
ret
Function at 0x40f9e0
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 0x40fa57
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 0x40fa41
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 0x654a04
call fcn.00445f90
add esp, 0x1c
jmp 0x40fa57
push ebx
mov ebx, dword [esi + 0x7c]
call fcn.00482b90
push eax
push 4
push ebx
call fcn.00408ab0
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 0x654a04
call fcn.00445f90
add esp, 0x18
mov eax, edi
pop edi
pop esi
ret

Function at 0x40fa80
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 0x654a04
call fcn.00445f90
add esp, 0x1c
mov eax, edi
pop edi
pop esi
ret

Function at 0x40fc10
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5c5d90
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov ecx, 0x64c0a0
push ebx
push esi
push edi
call fcn.0040a760
fld qword [esp + 0x40]
fcomp st(1)
xor ebx, ebx
fnstsw ax
test ah, 0x41
je 0x40fc4b
mov edi, 1
jmp 0x40fc4d
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 0x62315c
push edx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], ebx
call fcn.00448bf7
mov eax, dword [eax]
lea ecx, [esp + 0x10]
push eax
mov dword [esp + 0x3c], ebx
call fcn.0046ab70
mov esi, eax
lea eax, [esp + 0xc]
push 0x62315c
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x40], 1
call fcn.00448bf7
mov eax, dword [eax]
lea ecx, [esp + 0x40]
push eax
mov byte [esp + 0x3c], 2
call fcn.0046ab70
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 0x654a04
mov byte [esp + 0x50], 3
call fcn.00445f90
add esp, 0x18
lea ecx, [esp + 0x40]
mov byte [esp + 0x38], 2
call fcn.0046b3e0
lea ecx, [esp + 0xc]
mov byte [esp + 0x38], 1
call fcn.005ac543
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], bl
call fcn.0046b3e0
lea ecx, [esp + 0x14]
mov dword [esp + 0x38], 0xffffffff
call fcn.005ac543
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 0x410580
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5c5ec8
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.00449a5e
mov ebx, dword [esi + 0x28]
mov dword [esp + 0x20], edi
cmp ebx, edi
je 0x4105d5
mov eax, dword [esi + 0x2c]
cmp eax, edi
jbe 0x4105d5
mov ecx, ebx
mov edx, eax
mov eax, dword [ecx]
cmp eax, edi
je 0x4105cf
mov eax, dword [eax]
cmp eax, edi
jne 0x4105c9
add ecx, 4
dec edx
jne 0x4105c3
push ebx
call fcn.005acc35
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.005ab5f3
lea ecx, [esp + 0xc]
mov dword [esi + 0x38], edi
mov dword [esp + 0x20], 0xffffffff
call fcn.00449a9a
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret

Function at 0x410620
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5c5ee8
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.00449a5e
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 0x41068d
mov eax, dword [ecx + ebx*4]
test eax, eax
je 0x410689
cmp dword [eax + 8], edi
je 0x410685
mov eax, dword [eax]
test eax, eax
jne 0x410678
jmp 0x410689
test eax, eax
jne 0x4106d8
test ecx, ecx
jne 0x4106bd
lea edi, [ebp*4]
push edi
call fcn.005acc0c
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.00410a10
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.00449a9a
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 8