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.004505f9
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.004505f9
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 0x5b6762
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.0044fa0c
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.0059dc03
push 0x5c
lea ecx, [esp + 0x10]
mov dword [esp + 0x280], edi
call fcn.0059a972
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 0x61070c
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.0059de34
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.0059db8f
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 0x610758
push eax
call ebp
test eax, eax
je 0x40811e
lea ecx, [esp + 0x54]
push 0x610754
push ecx
call ebp
test eax, eax
je 0x40811e
lea edx, [esp + 0x54]
lea ecx, [esp + 0x14]
push edx
call fcn.0059dc03
mov al, byte [esp + 0x28]
mov byte [esp + 0x280], bl
test al, 0x10
push 0x61061c
je 0x4080b1
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
push ecx
call fcn.0059de34
lea edx, [esp + 0x14]
mov byte [esp + 0x280], 2
push edx
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.0059ddce
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.0059db8f
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.0059de34
lea ecx, [esp + 0x14]
lea edx, [esp + 0x1c]
push ecx
push eax
push edx
mov byte [esp + 0x28c], 4
call fcn.0059ddce
mov ecx, dword [esi + 8]
push eax
push ecx
mov ecx, esi
mov byte [esp + 0x288], 5
call fcn.0059c286
lea ecx, [esp + 0x1c]
mov byte [esp + 0x280], 4
call fcn.0059db8f
mov byte [esp + 0x280], bl
lea ecx, [esp + 0x20]
call fcn.0059db8f
lea ecx, [esp + 0x14]
mov byte [esp + 0x280], 0
call fcn.0059db8f
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.0059db8f
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.0047bca0
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.0059e258
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.0044fa0c
add esp, 4
mov ebp, eax
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
ret

Function at 0x408c10
Capabilities:
Get hostname

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, ebx
push esi
je 0x408c89
mov esi, dword [esp + 0x10]
test esi, esi
je 0x408c89
mov eax, dword [0x639a08]
push ebp
mov ebp, dword [esi]
push edi
test eax, eax
jne 0x408c5a
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x408c51
push str.GetComputerNameExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x639a08], eax
jmp 0x408c56
mov eax, dword [0x639a08]
test eax, eax
je 0x408c76
mov ecx, dword [esp + 0x1c]
push esi
push ebx
push ecx
call eax
mov edi, eax
test edi, edi
je 0x408c76
push ebx
call fcn.0044fa0c
add esp, 4
test eax, eax
jne 0x408c82
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 0x409150
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5b67f8
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.0059c526
lea eax, [esp + 8]
mov ecx, esi
push eax
mov dword [esp + 0x28], edi
call fcn.00409cf0
test eax, eax
je 0x4091c4
mov ecx, dword [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x30]
call fcn.004896b0
lea ecx, [esp + 8]
mov esi, 1
mov dword [esp + 0x24], 0xffffffff
call fcn.0059c559
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.0059c559
mov ecx, dword [esp + 0x1c]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 4
Function at 0x4091f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5b6818
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.0059c526
lea eax, [esp + 8]
mov ecx, esi
push eax
mov dword [esp + 0x28], edi
call fcn.00409bf0
test eax, eax
je 0x409264
mov ecx, dword [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x30]
call fcn.00489b50
lea ecx, [esp + 8]
mov esi, 1
mov dword [esp + 0x24], 0xffffffff
call fcn.0059c559
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.0059c559
mov ecx, dword [esp + 0x1c]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 4
Function at 0x409610
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.00409290
test eax, eax
je 0x4096e0
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 0x4096e0
push 0x5c
push esi
call fcn.0045019c
mov edi, eax
add esp, 8
test edi, edi
je 0x4096cf
mov ebx, edi
lea edx, [esp + 0x10]
sub ebx, esi
push edx
sar ebx, 1
call fcn.0044fa0c
add esp, 4
cmp eax, ebx
jne 0x4096cf
push ebx
lea eax, [esp + 0x14]
push esi
push eax
call fcn.004503c4
add esp, 0xc
test eax, eax
jne 0x4096cf
add edi, 2
push edi
call fcn.0044fa0c
lea ebx, [eax + eax]
push ebx
push edi
push esi
call fcn.00450770
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 0x40c140
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5b6d78
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.0040a320
test eax, eax
je 0x40c18c
lea eax, [esp + 0xc]
mov ecx, esi
push eax
call fcn.0040c0a0
cmp eax, ebx
jne 0x40c1a0
lea ecx, [esp + 0xc]
push ecx
jmp 0x40c191
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call fcn.0040bf90
cmp eax, ebx
je 0x40c296
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x34], eax
call fcn.0040c7b0
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.0059ad02
mov edx, dword [eax]
lea ecx, [esp + 0x30]
push edx
push ebx
call fcn.0059ad02
mov eax, dword [eax + 4]
lea ecx, [esp + 0x34]
push eax
push ebx
call fcn.0059ad02
mov ecx, dword [eax + 8]
push ecx
push ebx
lea ecx, [esp + 0x40]
call fcn.0059ad02
mov edx, dword [eax + 0xc]
lea ecx, [esp + 0x3c]
push edx
push ebx
call fcn.0059ad02
mov eax, dword [eax + 0x10]
lea ecx, [esp + 0x40]
inc eax
push eax
push ebx
call fcn.0059ad02
mov ecx, dword [eax + 0x14]
add ecx, 0x76c
push ecx
lea ecx, [esp + 0x2c]
call fcn.0044648a
lea edx, [esp + 0x10]
push 0x61101c
push edx
lea ecx, [esp + 0x1c]
call fcn.00446607
mov eax, dword [eax]
mov dword [esp + 0x28], ebx
push eax
push str.CGlobalInfoAgent::GetPolicyServerTimeFromHardDisk_time__s_
push str.CheckModule
push 0xf
push 0x642404
call fcn.004439a0
add esp, 0x14
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call fcn.0059db8f
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 0x40c816
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov ecx, 0x639b90
jmp 0x40c800
push 0xffffffffffffffff
push 0x5b6eac
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov edx, 0x5cdc50
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 [0x5d44ec]
mov dword [esi + 0x60], ecx
mov edx, dword [0x5d44ec]
mov dword [esi + 0x64], edx
mov ecx, dword [0x5d44ec]
mov dword [esi + 0x68], ecx
mov edx, dword [0x61cab0]
mov dword [esi + 0x6c], edx
mov ecx, dword [0x61cab0]
mov dword [esi + 0x70], ecx
mov edx, dword [0x5d44ec]
mov dword [esi + 0x74], edx
mov ecx, dword [0x5d44ec]
mov dword [esi + 0x78], ecx
mov edx, dword [0x5d44ec]
mov dword [esi + 0x7c], edx
mov ecx, dword [0x5d44ec]
mov dword [esi + 0x80], ecx
lea ecx, [esi + 0x98]
mov byte [esp + 0x14], al
call fcn.00418830
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], 0x5cdc4c
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x40cab0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x5b6f97
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.00468580
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push ecx
lea ebx, [esi + 0x74]
push edx
push 0x611d58
push ebx
mov dword [esp + 0x238], 0
call fcn.0046be00
or edi, 0xffffffff
add esp, 0x10
lea ecx, [esp + 0x10]
mov dword [esp + 0x228], edi
call fcn.00468df0
push str.OPolicy.ini
lea ecx, [esp + 0x14]
call fcn.00468580
mov eax, dword [eax]
lea ecx, [esp + 0x18]
push eax
lea ebp, [esi + 0x7c]
push ecx
push 0x611d58
push ebp
mov dword [esp + 0x238], 1
call fcn.0046be00
add esp, 0x10
lea ecx, [esp + 0x10]
mov dword [esp + 0x228], edi
call fcn.00468df0
lea edi, [esi + 0x6c]
call fcn.00401080
push eax
mov ecx, edi
call fcn.0059dd26
mov edx, dword [0x61cab0]
mov dword [esp + 0x10], edx
push str.OAgent.ini
mov dword [esp + 0x22c], 2
call fcn.00401080
push eax
lea eax, [esp + 0x18]
push 0x610c70
push eax
call fcn.0059a7f7
mov edx, dword [esp + 0x20]
add esp, 0x10
lea ecx, [esi + 0x78]
push edx
call fcn.004690d0
lea ecx, [esp + 0x10]
mov dword [esp + 0x228], 0xffffffff
call fcn.0059db8f
mov eax, dword [0x61cab0]
mov dword [esp + 0x10], eax
push str.OPolicy.ini
mov dword [esp + 0x22c], 3
call fcn.00401080
push eax
lea ecx, [esp + 0x18]
push 0x610c70
push ecx
call fcn.0059a7f7
add esp, 0x10
lea ecx, [esi + 0x80]
mov edx, dword [esp + 0x10]
push edx
call fcn.004690d0
lea ecx, [esp + 0x10]
mov dword [esp + 0x228], 0xffffffff
call fcn.0059db8f
push 0x5c
mov ecx, edi
call fcn.0059a972
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.00468580
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 0x642404
mov dword [esp + 0x240], 4
call fcn.004439a0
add esp, 0x18
lea ecx, [esp + 0x14]
mov dword [esp + 0x228], 0xffffffff
call fcn.00468df0
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 0x642404
call fcn.004439a0
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 0x642404
call fcn.004439a0
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 0x40e680
Capabilities:
Accept command line arguments
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5b71c8
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.00498bb0
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], 0
call fcn.00498ec0
push eax
lea eax, [esp + 0xc]
push eax
call fcn.0049a210
add esp, 8
mov byte [esp + 0x38], 1
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [esp + 0x10]
call fcn.0059dc03
push str._installimportpolicy
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], 2
call fcn.0059a483
cmp eax, 0xffffffff
je 0x40e714
mov ecx, dword [esp + 8]
push str.AKernel3.exe
push ecx
call fcn.0044febe
add esp, 8
test eax, eax
jne 0x40e714
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 0x642404
call fcn.004439a0
add esp, 0x1c
lea ecx, [esp + 0xc]
mov byte [esp + 0x38], 1
call fcn.0059db8f
lea ecx, [esp + 8]
mov byte [esp + 0x38], 0
call fcn.0059db8f
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], 0xffffffff
call fcn.00498ce0
mov ecx, dword [esp + 0x30]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x34
ret

Function at 0x40e9a0
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 0x40e9f6
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 0x40e9f6
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 0x642404
call fcn.004439a0
add esp, 0x1c
push edi
push str.PrepareTempOAgentIni_ret__d_
push str.CheckModule
push 0xf
push 0x642404
call fcn.004439a0
add esp, 0x14
mov eax, edi
pop edi
pop esi
ret

Function at 0x40ea20
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 0x642404
call fcn.004439a0
add esp, 0x1c
mov eax, edi
pop edi
pop esi
ret
Function at 0x40ea70
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 0x40eacf
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 0x40eacf
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 0x642404
call fcn.004439a0
add esp, 0x1c
mov edx, dword [esi + 0x7c]
push edi
push edx
push str.CImportAuthMgr::PrepareTempIni_m_wstrTempOPolicyFile__s__ret__d_
push str.CheckModule
push 0xf
push 0x642404
call fcn.004439a0
add esp, 0x18
mov eax, edi
pop edi
pop esi
ret

Function at 0x40eb00
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 0x642404
call fcn.004439a0
add esp, 0x1c
mov eax, edi
pop edi
pop esi
ret

Function at 0x40ec90
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5b7250
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov ecx, 0x639aa0
push ebx
push esi
push edi
call fcn.0040a3e0
fld qword [esp + 0x40]
fcomp st(1)
xor ebx, ebx
fnstsw ax
test ah, 0x41
je 0x40eccb
mov edi, 1
jmp 0x40eccd
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 0x61101c
push edx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], ebx
call fcn.00446607
mov eax, dword [eax]
lea ecx, [esp + 0x10]
push eax
mov dword [esp + 0x3c], ebx
call fcn.00468580
mov esi, eax
lea eax, [esp + 0xc]
push 0x61101c
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x40], 1
call fcn.00446607
mov eax, dword [eax]
lea ecx, [esp + 0x40]
push eax
mov byte [esp + 0x3c], 2
call fcn.00468580
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 0x642404
mov byte [esp + 0x50], 3
call fcn.004439a0
add esp, 0x18
lea ecx, [esp + 0x40]
mov byte [esp + 0x38], 2
call fcn.00468df0
lea ecx, [esp + 0xc]
mov byte [esp + 0x38], 1
call fcn.0059db8f
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], bl
call fcn.00468df0
lea ecx, [esp + 0x14]
mov dword [esp + 0x38], 0xffffffff
call fcn.0059db8f
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 0x40f600
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5b7388
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.0044746e
mov ebx, dword [esi + 0x28]
mov dword [esp + 0x20], edi
cmp ebx, edi
je 0x40f655
mov eax, dword [esi + 0x2c]
cmp eax, edi
jbe 0x40f655
mov ecx, ebx
mov edx, eax
mov eax, dword [ecx]
cmp eax, edi
je 0x40f64f
mov eax, dword [eax]
cmp eax, edi
jne 0x40f649
add ecx, 4
dec edx
jne 0x40f643
push ebx
call fcn.0059e281
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.0059cc3f
lea ecx, [esp + 0xc]
mov dword [esi + 0x38], edi
mov dword [esp + 0x20], 0xffffffff
call fcn.004474aa
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret

Function at 0x40f6a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5b73a8
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.0044746e
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 0x40f70d
mov eax, dword [ecx + ebx*4]
test eax, eax
je 0x40f709
cmp dword [eax + 8], edi
je 0x40f705
mov eax, dword [eax]
test eax, eax
jne 0x40f6f8
jmp 0x40f709
test eax, eax
jne 0x40f758
test ecx, ecx
jne 0x40f73d
lea edi, [ebp*4]
push edi
call fcn.0059e258
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.0040fa90
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.004474aa
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 8