joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412722
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x4186e0], 0
push ebx
push esi
mov esi, 0x4186e8
jne 0x41274e
call dword [sym.imp.KERNEL32.DLL_TlsAlloc]
push esi
mov dword [0x418700], eax
call dword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
mov dword [0x4186e0], 1
push dword [0x418700]
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x4127eb
push 0x14
push 8
push dword [0x418068]
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x412815
push esi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov eax, dword [0x4186e4]
test eax, eax
je 0x412790
mov dword [eax], ebx
push edi
push esi
mov dword [ebx + 4], eax
mov dword [0x4186e4], ebx
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
lea edi, [ebx + 0x10]
push 0
push 0
push 0x100000
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.DLL_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.DLL_DuplicateHandle]
push 8
push 0xffffffffffffffff
push ebx
push 0x41281a
push dword [edi]
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.DLL_RegisterWaitForSingleObject]
push ebx
push dword [0x418700]
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
pop edi
push 0xc
push 0
push dword [0x418068]
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
test eax, eax
je 0x412815
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
mov dword [ebx + 8], eax
pop esi
pop ebx
ret 8

Function at 0x100010e3
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
push dword [ebp + 8]
push 0
push 0
call sub.kernel32.dll_CreateMutexA
mov dword [ebp - 4], eax
or eax, eax
je 0x10001115
call sub.kernel32.dll_GetLastError
cmp eax, 0xb7
jne 0x10001115
push dword [ebp - 4]
call fcn.100010c6
push 0
pop dword [ebp - 4]
mov eax, dword [ebp - 4]
leave
ret 4

Function at 0x10001134
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push 0x44
lea eax, [ebp - 0x44]
push eax
call fcn.1000111c
push 0x10
lea eax, [ebp - 0x54]
push eax
call fcn.1000111c
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x44]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp + 8]
push 0
call sub.kernel32.dll_CreateProcessA
lea edi, [ebp - 0x54]
push dword [edi]
push dword [edi + 4]
call sub.kernel32.dll_CloseHandle
call sub.kernel32.dll_CloseHandle
leave
ret 4
Function at 0x403020
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x43e9d8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
mov eax, dword [0x44fb64]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
push 0xa
lea ecx, [esp + 0x18]
call fcn.00413b93
push esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x3c], 0
call fcn.004098c0
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], 1
call fcn.0040a5c0
add esp, 4
mov byte [esp + 0x38], 3
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40309e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call fcn.0040a1f0
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x44]
add esp, 4
push esi
push edx
mov edx, dword [esp + 0x4c]
push eax
lea ecx, [esp + 0x20]
call fcn.00403320
mov esi, eax
mov byte [esp + 0x44], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4030ef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x38], 0xffffffff
call fcn.00413caa
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x34
ret

Function at 0x403120
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x43e9d8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
mov eax, dword [0x44fb64]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
push 0xa
lea ecx, [esp + 0x18]
call fcn.00413b93
push esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x3c], 0
call fcn.004098c0
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], 1
call fcn.0040a5c0
add esp, 4
mov byte [esp + 0x38], 3
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40319e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call fcn.0040a1f0
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x44]
add esp, 4
push esi
push edx
mov edx, dword [esp + 0x4c]
push eax
lea ecx, [esp + 0x20]
call fcn.00403650
mov esi, eax
mov byte [esp + 0x44], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4031ef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x38], 0xffffffff
call fcn.00413caa
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x34
ret
Function at 0x403220
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x43e9d8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
mov eax, dword [0x44fb64]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
push 0xa
lea ecx, [esp + 0x18]
call fcn.00413b93
push esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x3c], 0
call fcn.004098c0
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], 1
call fcn.0040a5c0
add esp, 4
mov byte [esp + 0x38], 3
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40329e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call fcn.0040a1f0
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x48]
add esp, 4
push esi
push edx
mov edx, dword [esp + 0x48]
push eax
lea ecx, [esp + 0x20]
call fcn.004039f0
mov esi, eax
mov byte [esp + 0x44], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4032ef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x38], 0xffffffff
call fcn.00413caa
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x34
ret
Function at 0x405470
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x43ee68
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x44fb64]
xor eax, esp
push eax
lea eax, [esp + 0xd4]
mov dword fs:[0], eax
lea eax, [esp + 8]
push eax
call fcn.0040ea10
lea ecx, [esp + 8]
mov dword [esp + 0xdc], 0
mov dword [0x453d00], ecx
test esi, esi
jne 0x4054c0
xor eax, eax
jmp 0x4054ce
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4054c5
sub eax, edx
push eax
push esi
mov ecx, 0x453cf4
call fcn.00409c70
test edi, edi
jne 0x4054e2
xor eax, eax
jmp 0x4054f0
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4054e7
sub eax, edx
push eax
push edi
mov ecx, 0x453cf8
call fcn.00409c70
test ebx, ebx
jne 0x405504
xor eax, eax
jmp 0x405519
mov eax, ebx
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405510
sub eax, edx
push eax
push ebx
mov ecx, 0x453cfc
call fcn.00409c70
lea edx, [esp + 4]
push edx
push 0
push 0
push 0x401050
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
lea ecx, [esp + 8]
call fcn.00414603
lea ecx, [esp + 0x80]
mov dword [esp + 0xdc], 1
call fcn.0041491a
lea ecx, [esp + 8]
mov dword [esp + 0xdc], 0xffffffff
call fcn.00413eb2
xor eax, eax
mov ecx, dword [esp + 0xd4]
mov dword fs:[0], ecx
pop ecx
add esp, 0xdc
ret

Function at 0x4055f0
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x43ee68
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x44fb64]
xor eax, esp
push eax
lea eax, [esp + 0xd4]
mov dword fs:[0], eax
lea eax, [esp + 8]
push eax
call fcn.0040ea10
lea ecx, [esp + 8]
mov dword [esp + 0xdc], 0
mov dword [0x453d00], ecx
test esi, esi
jne 0x405640
xor eax, eax
jmp 0x40564e
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405645
sub eax, edx
push eax
push esi
mov ecx, 0x453cf4
call fcn.00409c70
test edi, edi
jne 0x405662
xor eax, eax
jmp 0x405670
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405667
sub eax, edx
push eax
push edi
mov ecx, 0x453cf8
call fcn.00409c70
lea edx, [esp + 4]
push edx
push 0
push 0
push 0x401100
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
lea ecx, [esp + 8]
call fcn.00414603
lea ecx, [esp + 0x80]
mov dword [esp + 0xdc], 1
call fcn.0041491a
lea ecx, [esp + 8]
mov dword [esp + 0xdc], 0xffffffff
call fcn.00413eb2
xor eax, eax
mov ecx, dword [esp + 0xd4]
mov dword fs:[0], ecx
pop ecx
add esp, 0xdc
ret
Function at 0x409690
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4096a9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4096e4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4096e0
lea ebx, [ebx]
cmp esi, eax
jae 0x4096e4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4096d0
cmp esi, eax
jb 0x4096ea
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x409ea0
Capabilities:
Delete file

Disassembly:
sub esp, 0x544
mov eax, dword [0x44fb64]
xor eax, esp
mov dword [esp + 0x540], eax
push ebp
mov ebp, dword [esp + 0x54c]
push esi
lea edx, [esp + 0x33c]
push edi
mov eax, ebp
sub edx, ebp
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x409ed0
lea eax, [esp + 0x340]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x409ee2
mov ecx, dword [str..]
mov dl, byte [0x448370]
mov dword [eax], ecx
mov byte [eax + 4], dl
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x344]
push ecx
call fcn.004233b0
mov esi, eax
add esp, 8
mov dword [esp + 0xc], esi
cmp esi, 0xffffffff
je 0x40a053
lea edx, [esp + 0x10]
push edx
push esi
call fcn.004234e0
add esp, 8
test eax, eax
jne 0x40a04a
lea ecx, [esp + 0x34]
mov eax, 0x447920
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x409f60
test dl, dl
je 0x409f5c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x409f60
add eax, 2
add ecx, 2
test dl, dl
jne 0x409f40
xor eax, eax
jmp 0x409f65
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40a034
lea ecx, [esp + 0x34]
mov eax, 0x448374
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x409f96
test dl, dl
je 0x409f92
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x409f96
add eax, 2
add ecx, 2
test dl, dl
jne 0x409f76
xor eax, eax
jmp 0x409f9b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40a034
lea edx, [esp + 0x138]
mov eax, ebp
sub edx, ebp
mov edi, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x409fb0
lea edi, [esp + 0x138]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x409fc2
mov ax, word [0x4478d8]
mov word [edi], ax
lea eax, [esp + 0x34]
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409fe0
lea edi, [esp + 0x138]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x409ff1
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
test byte [esp + 0x10], 0x10
rep movsb byte es:[edi], byte [esi]
je 0x40a022
lea ecx, [esp + 0x138]
push ecx
call fcn.00409ea0
add esp, 4
jmp 0x40a030
lea edx, [esp + 0x138]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
push esi
call fcn.004234e0
add esp, 8
test eax, eax
je 0x409f35
push esi
call fcn.0042360f
add esp, 4
push ebp
call fcn.00423635
mov ecx, dword [esp + 0x550]
add esp, 4
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0042179d
add esp, 0x544
ret
Function at 0x40a140
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x40
call dword [sym.imp.KERNEL32.dll_GetVersion]
push 0x448368
lea ecx, [esp + 4]
call fcn.004098c0
mov eax, dword [esp]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
mov dword [esp + 0x10], eax
lea eax, [esp + 4]
push eax
mov dword [esp + 8], 0x3c
mov dword [esp + 0xc], 0x40
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 5
mov dword [esp + 0x28], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x40a1c1
cmp dword [esp + 0x4c], 0
je 0x40a1c1
mov ecx, dword [esp + 0x3c]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40a1e0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esp, 0x40
ret

Function at 0x40a850
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ecx
push ebp
push esi
push edi
push 0x447a7c
push eax
xor esi, esi
call fcn.00422167
mov ecx, dword [esp + 0x1c]
push 0x447a60
push ecx
mov ebp, eax
call fcn.00422167
add esp, 0x10
mov edi, eax
mov dword [esp + 0xc], edi
test ebp, ebp
je 0x40a8fb
test edi, edi
je 0x40a8f2
push 0x7d000
call fcn.004133db
push ebp
mov edi, eax
call fcn.004227eb
add esp, 8
test eax, eax
jne 0x40a8e0
lea esp, [esp]
push ebp
push 0x7d000
push 1
push edi
call fcn.00422af3
lea edx, [eax + esi]
add esp, 0x10
cmp edx, ebx
jbe 0x40a8bc
mov eax, ebx
sub eax, esi
mov ecx, dword [esp + 0xc]
push ecx
push eax
push 1
push edi
call fcn.004223d3
add esi, eax
add esp, 0x10
cmp esi, ebx
jae 0x40a8e0
push ebp
call fcn.004227eb
add esp, 4
test eax, eax
je 0x40a8a0
push edi
call fcn.004133e6
mov edi, dword [esp + 0x10]
add esp, 4
mov esi, 1
push ebp
call fcn.004221f5
add esp, 4
test edi, edi
je 0x40a908
push edi
call fcn.004221f5
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ecx
ret
Function at 0x40a910
Capabilities:
Get disk size

Disassembly:
push 0xffffffffffffffff
push 0x43e3a8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x44fb64]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
call fcn.004133f1
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40a94f
push 0x80004005
call fcn.00409d60
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0xc], esi
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push edx
mov dword [esp + 0x34], 0
mov edi, 1
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
jne 0x40a9b1
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x10]
push str.GetDiskFreeSpaceEx_failed_with_error_code__d
push eax
call fcn.00409670
mov esi, dword [esp + 0x18]
add esp, 0xc
push edi
push esi
push 0x453d09
call fcn.0040d390
jmp 0x40a9c9
mov ecx, dword [esp + 0x34]
cmp ecx, dword [esp + 0x14]
jb 0x40a9c9
ja 0x40a9c7
mov edx, dword [esp + 0x30]
cmp edx, dword [esp + 0x10]
jbe 0x40a9c9
xor edi, edi
lea eax, [esi - 0x10]
mov dword [esp + 0x24], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a9ed
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x1c
ret
Function at 0x40d0c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, word [esp + 4]
mov dword [esp + 4], edx
jmp fcn.0041483b

Function at 0x40d120
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x43e2e5
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x44fb64]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push edi
mov eax, dword [0x44fb64]
xor eax, esp
push eax
lea eax, [esp + 0x220]
mov dword fs:[0], eax
mov dword [esp + 0x10], esi
mov dword [esi], vtable.CLog.0
call fcn.004133f1
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40d17f
push 0x80004005
call fcn.00409d60
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 4], eax
mov dword [esp + 0x228], ebx
call fcn.004133f1
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40d1af
push 0x80004005
call fcn.00409d60
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 8], eax
mov byte [esp + 0x228], 1
lea edi, [esi + 0xc]
call fcn.004133f1
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40d1e3
push 0x80004005
call fcn.00409d60
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [edi], eax
push 0x104
lea ecx, [esp + 0x18]
push ecx
mov byte [esp + 0x230], 2
push ebx
mov dword [0x453d19], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x14]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40d217
sub eax, edx
dec eax
cmp eax, ebx
jl 0x40d232
mov cl, 0x5c
cmp byte [esp + eax + 0x14], cl
je 0x40d232
sub eax, 1
jns 0x40d227
mov byte [esp + eax + 0x14], bl
lea eax, [esp + 0x14]
dec eax
jmp 0x40d240
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x40d240
mov edx, dword [str._trace.ini]
mov ecx, dword [0x448810]
mov dword [eax], edx
mov dx, word [0x448814]
mov dword [eax + 4], ecx
mov cl, byte [0x448816]
mov word [eax + 8], dx
lea ebx, [esp + 0xc]
mov byte [eax + 0xa], cl
call fcn.0040d5c0
push eax
mov ecx, edi
mov byte [esp + 0x22c], 3
call fcn.004099f0
mov byte [esp + 0x228], 2
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40d2ae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
push ecx
push 0
push str.trace
push str.common
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
neg eax
sbb eax, eax
neg eax
mov dword [esi + 0x14], eax
mov eax, esi
mov ecx, dword [esp + 0x220]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0042179d
add esp, 0x220
ret
Function at 0x40d480
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x310
mov eax, dword [0x44fb64]
xor eax, esp
mov dword [esp + 0x30c], eax
push esi
push edi
push 0x100
lea eax, [esp + 0x218]
push 0
push eax
mov dword [esp + 0x14], 0
call fcn.00424c40
push 0x208
lea ecx, [esp + 0x1c]
push 0
push ecx
call fcn.00424c40
add esp, 0x18
push 0x100
lea edx, [esp + 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov al, byte [esp + 0x214]
lea edi, [esp + 0xc]
mov byte [esp + 0xc], al
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40d4f0
mov ecx, 9
mov esi, str.:InetPub_ftprootTiprayLdReadlog
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0xc]
push ecx
call fcn.00423ccd
lea edi, [esp + 0x10]
add esp, 4
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40d516
mov dx, word [0x4478d8]
lea eax, [esp + 0xc]
mov word [edi], dx
dec eax
lea ecx, [ecx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40d530
mov ecx, dword [str.LdCab.log]
mov edx, dword [0x44885c]
mov dword [eax], ecx
mov cx, word [0x448860]
mov dword [eax + 4], edx
lea edx, [esp + 0xc]
push 0x447a7c
push edx
mov word [eax + 8], cx
call fcn.00422167
mov esi, eax
add esp, 8
test esi, esi
je 0x40d59a
push 2
push 0
push esi
call fcn.004236ef
push esi
call fcn.00423911
push esi
mov edi, eax
call fcn.004221f5
add esp, 0x14
cmp edi, 0xfa000
jbe 0x40d59a
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0xc]
push ecx
mov ecx, ebx
call fcn.004098c0
mov ecx, dword [esp + 0x314]
pop edi
pop esi
xor ecx, esp
mov eax, ebx
call fcn.0042179d
add esp, 0x310
ret

Function at 0x40d5c0
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x310
mov eax, dword [0x44fb64]
xor eax, esp
mov dword [esp + 0x30c], eax
push edi
push 0x100
lea eax, [esp + 0x214]
push 0
push eax
mov dword [esp + 0x10], 0
call fcn.00424c40
push 0x208
lea ecx, [esp + 0x18]
push 0
push ecx
call fcn.00424c40
add esp, 0x18
push 0x100
lea edx, [esp + 0x214]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov al, byte [esp + 0x210]
lea edi, [esp + 8]
mov byte [esp + 8], al
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40d628
push esi
mov ecx, 9
mov esi, str.:InetPub_ftprootTiprayLdTermlog
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0xc]
push ecx
call fcn.00423ccd
add esp, 4
lea edi, [esp + 0xc]
dec edi
pop esi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40d650
mov dx, word [0x4478d8]
lea eax, [esp + 8]
mov word [edi], dx
dec eax
pop edi
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40d668
mov ecx, dword [str.LdCabErrInfo.ini]
mov edx, dword [0x44888c]
mov dword [eax], ecx
mov ecx, dword [0x448890]
mov dword [eax + 4], edx
mov edx, dword [0x448894]
mov dword [eax + 8], ecx
mov cl, byte [0x448898]
mov dword [eax + 0xc], edx
lea edx, [esp + 4]
push edx
mov byte [eax + 0x10], cl
call fcn.00409e30
add esp, 4
test eax, eax
je 0x40d6b8
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 4]
push ecx
mov ecx, ebx
call fcn.004098c0
mov ecx, dword [esp + 0x30c]
xor ecx, esp
mov eax, ebx
call fcn.0042179d
add esp, 0x310
ret