joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4471e0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fc0f0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x5365f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 1
lea ecx, [ebp - 0x2c]
call fcn.00432040
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], 8
jb 0x447221
mov eax, dword [eax]
lea ecx, [ebp - 0x30]
push ecx
mov ecx, eax
call fcn.00401db0
mov byte [ebp - 4], 2
cmp dword [ebp - 0x18], 8
jb 0x447242
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004d5559
add esp, 4
mov ecx, dword [ebp - 0x30]
xor eax, eax
push ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x447273
push eax
push 0x6b
call fcn.00442470
test eax, eax
jne 0x44729d
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x447299
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x4472c8
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4472c3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d5564
mov esp, ebp
pop ebp
ret

Function at 0x4473f0
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fc0a0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x5365f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 1
lea ecx, [ebp - 0x48]
call fcn.00432040
xor ebx, ebx
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x2c]
call fcn.004474e0
mov byte [ebp - 4], 1
lea edi, [ebx + 8]
cmp dword [ebp - 0x1c], ebx
je 0x44746e
mov ecx, dword [ebp - 0x48]
cmp dword [ebp - 0x34], edi
jae 0x447448
lea ecx, [ebp - 0x48]
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x447453
lea eax, [ebp - 0x2c]
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x447467
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], bl
cmp dword [ebp - 0x18], edi
jb 0x447482
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004d5559
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x34], edi
jb 0x4474aa
mov edx, dword [ebp - 0x48]
push edx
call fcn.004d5559
add esp, 4
xor eax, eax
mov word [ebp - 0x48], ax
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], ebx
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d5564
mov esp, ebp
pop ebp
ret
Function at 0x4474e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f4f91
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x5365f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x38], ebx
xor eax, eax
mov edi, ecx
mov word [ebp - 0x2c], ax
push ebx
mov eax, 0x517384
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
call fcn.004027c0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], ebx
call fcn.00462560
mov edx, dword [0x5361b4]
mov eax, dword [edx + 0xc]
mov ecx, 0x5361b4
call eax
add eax, 0x10
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 3
mov esi, dword [ebp - 0x3c]
cmp esi, ebx
jne 0x44756a
xor eax, eax
jmp 0x44757f
mov eax, esi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x447570
sub eax, edx
sar eax, 1
push esi
lea ecx, [ebp - 0x30]
push ecx
mov ebx, eax
call fcn.00402a30
push 6
push str._temp_
lea ebx, [ebp - 0x30]
call fcn.00402da0
test esi, esi
je 0x4475a7
push esi
call fcn.004d632b
add esp, 4
push 0x18
push str.AEWinOsConfig_32_Bit.xml
lea ebx, [ebp - 0x30]
call fcn.00402da0
mov ebx, dword [ebp - 0x30]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4475e8
mov esi, dword [ebp - 0x34]
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], eax
xor edx, edx
mov word [edi], dx
lea edi, [ebp - 0x2c]
call fcn.00402140
mov eax, 1
mov dword [ebp - 0x38], eax
jmp 0x44762f
mov eax, ebx
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4475f0
sub eax, edx
sar eax, 1
push eax
mov eax, ebx
lea esi, [ebp - 0x2c]
call fcn.004027c0
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
xor eax, eax
mov word [edi], ax
mov edi, esi
mov esi, dword [ebp - 0x34]
call fcn.00402140
mov eax, 1
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], al
lea eax, [ebx - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44764e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
cmp dword [ebp - 0x18], 8
jb 0x447664
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004d5559
add esp, 4
xor edx, edx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], edx
mov word [ebp - 0x2c], dx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d5564
mov esp, ebp
pop ebp
ret
Function at 0x4476a0
Capabilities:
Get common file path
Get program files directory
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f75b6
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x5365f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x208
mov ebx, ecx
xor edi, edi
lea ecx, [ebp - 0x21a]
xor eax, eax
push edi
push ecx
mov word [ebp - 0x21c], ax
call fcn.004da450
add esp, 0xc
push edi
push 0x26
lea edx, [ebp - 0x21c]
push edx
push edi
xor esi, esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp eax, edi
jl 0x4477d6
xor eax, eax
mov word [ebp - 0x238], ax
push 0xd
mov eax, str.FaronicsAE_
lea esi, [ebp - 0x238]
mov dword [ebp - 0x224], 7
mov dword [ebp - 0x228], edi
call fcn.004027c0
mov dword [ebp - 4], edi
mov ecx, esi
push ecx
lea edx, [ebp - 0x254]
push edx
lea edx, [ebp - 0x21c]
call fcn.0044ae60
add esp, 8
mov byte [ebp - 4], 1
mov edi, eax
mov esi, ebx
call fcn.00402140
mov byte [ebp - 4], 0
mov esi, 8
cmp dword [ebp - 0x240], esi
jb 0x44777e
mov eax, dword [ebp - 0x254]
push eax
call fcn.004d5559
add esp, 4
mov edi, 7
xor ecx, ecx
mov dword [ebp - 0x240], edi
mov dword [ebp - 0x244], 0
mov word [ebp - 0x254], cx
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x224], esi
jb 0x4477ba
mov edx, dword [ebp - 0x238]
push edx
call fcn.004d5559
add esp, 4
xor eax, eax
mov dword [ebp - 0x224], edi
mov dword [ebp - 0x228], 0
mov word [ebp - 0x238], ax
lea esi, [eax + 1]
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str._GetAEInstalledPath::_got_following_folder_SHGetSpecialFolderPathW:
call edi
cmp dword [ebx + 0x14], 8
jb 0x4477eb
mov ebx, dword [ebx]
push ebx
call edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d5564
mov esp, ebp
pop ebp
ret
Function at 0x4482d0
Capabilities:
Copy file
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fe368
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x5365f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
xor ecx, ecx
mov dword [ebp - 0x4c], ecx
cmp dword [esi + 0x468], ebx
je 0x44849c
mov eax, dword [esi + 0x1e8]
cmp eax, 1
je 0x44832d
cmp eax, 2
jne 0x44849c
cmp dword [esi + 0x46c], ebx
jne 0x44849c
cmp dword [esi + 0x470], ebx
je 0x44849c
mov edi, 7
xor eax, eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x2c]
push ecx
push esi
call fcn.004484c0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x50], esp
push ebx
lea eax, [ebp - 0x2c]
xor edx, edx
push eax
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], ebx
or eax, 0xffffffff
mov word [ecx], dx
call fcn.004022e0
mov byte [ebp - 4], 1
mov byte [ebp - 4], bl
call fcn.00448980
mov edi, 8
cmp eax, ebx
je 0x448488
push ebx
lea ebx, [ebp - 0x48]
call fcn.00447c80
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], edi
jb 0x4483a4
mov eax, dword [eax]
mov ecx, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x4483af
lea ecx, [ebp - 0x2c]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
sete bl
mov byte [ebp - 4], 0
cmp dword [ebp - 0x34], edi
jb 0x4483d3
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004d5559
add esp, 4
xor edx, edx
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], dx
test bl, bl
je 0x448404
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.In_CAESettings::GetRnswareExtnFromServerThreadProc__._Copy_Failed._err__d
mov ecx, 0x93c690
call fcn.004015d0
add esp, 8
push esi
call fcn.00447e10
test eax, eax
je 0x44842e
push str._Got_an_vaild_RnswareExtn_XML_from_Server.
mov ecx, 0x93c690
call fcn.004015d0
add esp, 4
mov ecx, esi
call fcn.00448180
mov dword [ebp - 0x4c], 1
xor ebx, ebx
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x44843b
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x44845b
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x448451
lea eax, [ebp - 0x2c]
push 4
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], edi
jb 0x448473
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004d5559
add esp, 4
mov eax, dword [ebp - 0x4c]
xor ecx, ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
jmp 0x44849e
push str.In_CAESettings::GetRnswareExtnFromServerThreadProc__._Got_invalid_XML
mov ecx, 0x93c690
call fcn.004015d0
add esp, 4
jmp 0x448430
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d5564
mov esp, ebp
pop ebp
ret
Function at 0x448740
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fbfe0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x5365f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
lea ebx, [ebp - 0x48]
call fcn.00447c80
mov dword [ebp - 4], 0
push 1
lea ebx, [ebp - 0x2c]
call fcn.00447c80
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x48]
mov edi, 8
cmp dword [ebp - 0x34], edi
jae 0x44879a
lea ecx, [ebp - 0x48]
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x4487a5
lea eax, [ebp - 0x2c]
xor ebx, ebx
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov esi, eax
mov byte [ebp - 4], bl
cmp dword [ebp - 0x18], edi
jb 0x4487c6
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004d5559
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x34], edi
jb 0x4487ee
mov edx, dword [ebp - 0x48]
push edx
call fcn.004d5559
add esp, 4
xor eax, eax
mov word [ebp - 0x48], ax
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], ebx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d5564
mov esp, ebp
pop ebp
ret
Function at 0x448820
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fbfa8
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x5365f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.Enter_in_CAESettings::BackUpRnswareExtnFile
mov ecx, 0x93c690
call fcn.004015d0
sub esp, 0x18
mov esi, esp
xor edi, edi
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov dword [ebp - 0x4c], esp
mov word [esi], ax
push edi
mov eax, 0x517384
xor ebx, ebx
call fcn.004027c0
mov dword [ebp - 4], edi
mov dword [ebp - 4], 0xffffffff
call fcn.00448980
cmp eax, edi
je 0x44893b
push edi
lea ebx, [ebp - 0x48]
call fcn.00447c80
mov dword [ebp - 4], 1
push 1
lea ebx, [ebp - 0x2c]
call fcn.00447c80
mov byte [ebp - 4], 2
push str.CAESettings::BackUpRnswareExtnFile__.__BackUp_Config_Taken
mov ecx, 0x93c690
call fcn.004015d0
mov ecx, dword [ebp - 0x2c]
mov esi, 8
add esp, 4
cmp dword [ebp - 0x18], esi
jae 0x4488d6
mov ecx, ebx
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], esi
jae 0x4488e1
lea eax, [ebp - 0x48]
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ebx, eax
mov byte [ebp - 4], 1
cmp dword [ebp - 0x18], esi
jb 0x448901
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004d5559
add esp, 4
xor edx, edx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], dx
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x34], esi
jb 0x448929
mov eax, dword [ebp - 0x48]
push eax
call fcn.004d5559
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], edi
mov word [ebp - 0x48], cx
jmp 0x44894d
push str.CAESettings::BackUpRnswareExtnFile__._Config_is_Not_Valid
mov ecx, 0x93c690
call fcn.004015d0
add esp, 4
push str.Exit_From_CAESettings::BackUpRnswareExtnFile__
mov ecx, 0x93c690
call fcn.004015d0
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d5564
mov esp, ebp
pop ebp
ret
Function at 0x44ce90
Capabilities:
Get hostname
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fe6a9
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5365f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
call fcn.0044d870
xor eax, eax
mov dword [ebp - 4], eax
lea edi, [esi + 0x200848]
mov ebx, 1
push ebx
mov dword [ebp - 0x14], edi
mov dword [edi + 8], eax
call fcn.0041a360
mov dword [edi + 4], eax
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov eax, dword [edi + 4]
mov byte [eax + 0x2c], bl
mov ecx, dword [edi + 4]
add esp, 4
mov byte [ecx + 0x2d], bl
mov byte [ebp - 4], 3
xor eax, eax
movzx ebx, ax
lea edx, [esi + 0x200048]
mov eax, ebx
shl ebx, 0x10
or eax, ebx
mov edi, edx
mov ecx, 0x100
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
push edx
push 3
mov dword [ebp - 0x10], 0x200
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
xor eax, eax
movzx ebx, ax
lea edx, [esi + 0x200448]
mov eax, ebx
shl ebx, 0x10
mov edi, edx
or eax, ebx
mov ecx, 0x100
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x10]
push ecx
push edx
mov dword [ebp - 0x10], 0x200
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x44d650
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fbef6
mov eax, dword fs:[0]
push eax
sub esp, 0x348
mov eax, dword [0x5365f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push str.CAeTemLogger::RefreshTemLogInfo
mov dword [ebp - 0x354], eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov bl, byte [esi + 0x37c]
push 0x93c738
call edi
movzx ecx, bl
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x93c738
mov dword [0x93c6e0], ecx
call ebx
sub esp, 0x1c
mov edx, esp
mov dword [ebp - 0x350], esp
push edx
mov ecx, esi
call fcn.00432db0
mov dword [ebp - 4], 0
mov dword [ebp - 4], 0xffffffff
call fcn.0044ce00
mov eax, dword [esi + 0x39c]
push 0x93c720
mov dword [ebp - 0x350], eax
call edi
mov ecx, dword [ebp - 0x350]
push 0x93c720
mov dword [0x93c700], ecx
call ebx
mov edx, dword [esi + 0x3a0]
push 0x93c708
mov dword [ebp - 0x350], edx
call edi
mov eax, dword [ebp - 0x350]
push 0x93c708
mov dword [0x93c704], eax
call ebx
cmp byte [esi + 0x37c], 0
je 0x44d743
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str.TEM_Logging_Enabled
call edi
jmp 0x44d754
push str.TEM_Logging_Disabled
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [ebp - 0x34c]
push ecx
mov ecx, esi
call fcn.00432db0
mov dword [ebp - 4], 1
mov ebx, 8
cmp dword [eax + 0x14], ebx
jb 0x44d775
mov eax, dword [eax]
push eax
call edi
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x338], ebx
jb 0x44d796
mov edx, dword [ebp - 0x34c]
push edx
call fcn.004d5559
add esp, 4
xor ecx, ecx
push 0x18e
push ecx
lea edx, [ebp - 0x32e]
xor eax, eax
push edx
mov dword [ebp - 0x338], 7
mov dword [ebp - 0x33c], 0
mov word [ebp - 0x34c], ax
mov word [ebp - 0x330], cx
call fcn.004da450
mov eax, dword [esi + 0x39c]
push eax
push str.TEM_Log_File_Size___d
lea edx, [ebp - 0x330]
call fcn.00401000
add esp, 0x14
lea ecx, [ebp - 0x330]
push ecx
call edi
xor edx, edx
push 0x18e
push edx
lea eax, [ebp - 0x19e]
push eax
mov word [ebp - 0x1a0], dx
call fcn.004da450
mov ecx, dword [esi + 0x3a0]
push ecx
push str.TEM_Log_File_Limit___d
lea edx, [ebp - 0x1a0]
call fcn.00401000
add esp, 0x14
lea edx, [ebp - 0x1a0]
push edx
call edi
call fcn.0044e550
call fcn.0044e380
mov ecx, dword [ebp - 0x354]
mov dword [ecx + 4], eax
call fcn.0044dc80
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d5564
mov esp, ebp
pop ebp
ret 4
Function at 0x44d870
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push edi
xor eax, eax
movzx edx, ax
push 0
mov eax, edx
shl edx, 0x10
push 0
or eax, edx
lea edi, [esi + 0x10]
mov ecx, 0x80000
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 2
mov dword [esi], 0
call edi
push 0
push 0
push 0
mov dword [esi + 0x200030], eax
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerW]
mov dword [esi + 0x200034], eax
test eax, eax
je 0x44d8f8
push 0
push 0
push 0
push 0xbb8
lea ecx, [ebp - 8]
push ecx
push eax
mov dword [ebp - 8], 0xfa0a1f00
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetWaitableTimer]
push 0
push 0
push 0
push 0
call edi
push 0
push 0
push 0
push 0
mov dword [esi + 0x200038], eax
call edi
push 1
lea edx, [ebp - 0x28]
push edx
mov dword [esi + 0x20003c], eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x44d965
push 0
push 0
push 1
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x44d965
push str.GlobalB5AB9116_668B_447c_AC0B_6BB6A8DE036A
push 0
push 0
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x28]
push edx
mov dword [ebp - 0x14], 0xc
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], 0
call edi
mov dword [esi + 0x200040], eax
lea eax, [esi + 0x200014]
push eax
push 0
push esi
push 0x44e150
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
mov dword [esi + 0x200010], eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
lea ecx, [esi + 0x200018]
push ecx
mov dword [esi + 0x200044], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x44def0
Capabilities:
Get file size
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f9a68
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x5365f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea edi, [esi + 0x200018]
push edi
mov dword [ebp - 0x30], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ebx, ebx
cmp dword [esi], ebx
je 0x44e016
cmp dword [esi + 8], ebx
je 0x44e016
mov eax, dword [esi + 0x200044]
push 0xffffffffffffffff
push eax
mov dword [ebp - 0x34], ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x44dfcf
lea ecx, [ebp - 0x2c]
push ecx
call fcn.0044cd70
mov dword [ebp - 4], ebx
mov edi, 8
cmp dword [eax + 0x14], edi
jb 0x44df6e
mov eax, dword [eax]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], edi
jb 0x44df92
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004d5559
add esp, 4
mov edx, dword [esi + 8]
push ebx
lea ecx, [ebp - 0x34]
push ecx
xor eax, eax
add edx, edx
push edx
mov word [ebp - 0x2c], ax
mov eax, dword [esi]
lea edi, [esi + 0x10]
push edi
push eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [esi + 0x200044]
xor ecx, ecx
push edx
mov dword [esi + 8], ebx
mov word [edi], cx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [esi]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x44e005
push 0x93c720
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x93c700]
push 0x93c720
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp edi, ebx
jb 0x44e005
call fcn.0044e040
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 1
jmp 0x44e01f
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d5564
mov esp, ebp
pop ebp
ret
Function at 0x44e080
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fe578
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x5365f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [esi + 0x200018]
push eax
mov dword [ebp - 0x30], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi]
xor ebx, ebx
cmp eax, ebx
je 0x44e0cb
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], ebx
lea eax, [ebp - 0x2c]
push eax
call fcn.0044cd70
mov dword [ebp - 4], ebx
cmp dword [eax + 0x14], 8
jb 0x44e0df
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, eax
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 8
jb 0x44e101
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004d5559
add esp, 4
xor edx, edx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], dx
test edi, edi
je 0x44e122
mov ecx, esi
call fcn.0044dc80
mov ebx, eax
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d5564
mov esp, ebp
pop ebp
ret