joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4121d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x510a08
push eax
mov dword fs:[0], esp
sub esp, 0x20
cmp dword [edi + 0x44], 0
je 0x412301
cmp byte [edi + 0x49], 0
je 0x412301
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push ebx
or ebx, 0xffffffff
push ebx
mov ecx, edi
call edx
cmp eax, ebx
jne 0x412222
xor al, al
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push esi
lea esi, [ebp - 0x2c]
call fcn.00411770
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x18]
mov ecx, eax
cmp edx, 0x10
jae 0x412244
lea ecx, [ebp - 0x2c]
mov eax, ecx
add ecx, dword [ebp - 0x1c]
lea edx, [ebp - 0x10]
push edx
push ecx
mov ecx, dword [edi + 0x44]
push eax
lea eax, [edi + 0x4c]
push eax
call dword [sym.imp.MSVCP100.dll_public:_int___thiscall_std::codecvt_char__char__int_::unshift_int___char___char___char___const]
sub eax, 0
je 0x412284
dec eax
je 0x412288
sub eax, 2
je 0x4122e4
mov dword [ebp - 4], ebx
lea esi, [ebp - 0x2c]
call fcn.004150e0
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov byte [edi + 0x49], 0
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp edx, 0x10
jae 0x412298
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x10]
sub esi, ecx
je 0x4122c2
cmp edx, 0x10
jae 0x4122a7
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp esi, eax
jne 0x412267
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x49], 0
je 0x4122e4
test esi, esi
jne 0x412238
push esi
lea ebx, [esi + 8]
lea esi, [ebp - 0x2c]
call fcn.00411840
or ebx, 0xffffffff
jmp 0x412232
mov dword [ebp - 4], ebx
lea esi, [ebp - 0x2c]
call fcn.004150e0
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
mov al, 1
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x418880
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x519519
push eax
mov eax, 0x1010
mov dword fs:[0], esp
call fcn.0050f9a0
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x18], edi
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov word [esi], ax
push edi
mov eax, 0x528928
call fcn.00412b10
mov dword [ebp - 4], edi
push 0x400
lea ecx, [ebp - 0x101c]
push edi
push ecx
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], 0x800
call sub.MSVCR100.dll_memset
add esp, 0xc
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x101c]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
lea eax, [ebp - 0x101c]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x418910
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x101c]
call fcn.00412b10
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x418940
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x511e89
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
push esi
mov esi, dword [ebp + 8]
push edi
push 0x104
lea eax, [ebp - 0x218]
xor edi, edi
push eax
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
test eax, eax
je 0x4189b3
xor ecx, ecx
lea eax, [ebp - 0x218]
mov word [esi], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x418996
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
call fcn.00412b10
jmp 0x4189c3
xor edx, edx
push edi
mov eax, 0x528928
mov word [esi], dx
call fcn.00412b10
mov dword [ebp - 4], edi
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x10], 1
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x4189e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x511e89
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
push esi
mov esi, dword [ebp + 8]
push edi
push 0x104
lea eax, [ebp - 0x218]
xor edi, edi
push eax
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
test eax, eax
je 0x418a53
xor ecx, ecx
lea eax, [ebp - 0x218]
mov word [esi], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x418a36
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
call fcn.00412b10
jmp 0x418a63
xor edx, edx
push edi
mov eax, 0x528928
mov word [esi], dx
call fcn.00412b10
mov dword [ebp - 4], edi
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x10], 1
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x429d70
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x512f59
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x274
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 1
xor esi, esi
mov dword [ebp - 0x80], 0x2c
push 0x2c
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.PSAPI.DLL_GetProcessMemoryInfo]
test eax, eax
je 0x429dc9
mov esi, dword [ebp - 0x58]
shr esi, 0x14
mov dword [ebp - 0x54], 0x40
lea ecx, [ebp - 0x54]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x429df1
mov edi, dword [ebp - 0x2c]
sub edi, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
sbb edx, dword [ebp - 0x20]
shrd edi, edx, 0x14
shr edx, 0x14
cmp esi, 0x4b0
jae 0x429e27
cmp edi, 0x7d0
jae 0x429e27
mov eax, 0x528928
mov ecx, ebx
call fcn.0040fae0
mov dword [ebp - 0x14], 1
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [ebp - 0x280], 0
push 0x1ff
push 0
lea eax, [ebp - 0x27f]
push eax
call sub.MSVCR100.dll_memset
push edi
push esi
push str.___PrivateUsage___d_MB__ullTotalVirtual___ullAvailVirtual___d_MB_
lea edx, [ebp - 0x280]
call fcn.0042bd40
lea ecx, [ebp - 0x280]
push ecx
push ebx
call fcn.004efe70
add esp, 0x20
mov dword [ebp - 0x14], 1
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42d560
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x520d20
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
push ebx
push esi
xor eax, eax
push edi
xor ebx, ebx
mov word [ebp - 0x4c], ax
push ebx
mov eax, 0x528928
lea esi, [ebp - 0x4c]
mov edi, ecx
mov dword [ebp - 0x38], 7
mov dword [ebp - 0x3c], ebx
call fcn.00412b10
mov dword [ebp - 4], ebx
mov eax, dword [edi + 4]
mov ecx, dword [edi]
push eax
push ecx
lea ecx, [ebp - 0x14]
push ecx
push edi
call fcn.00411ce0
xor edx, edx
push 0x3f
mov eax, str.SELECT_name_FROM_sqlite_master_WHERE_typetable_ORDER_BY_name
lea esi, [ebp - 0x30]
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], ebx
mov word [ebp - 0x30], dx
call fcn.00412b10
mov byte [ebp - 4], 1
mov edx, dword [ebp + 8]
push ebx
mov eax, esi
push eax
lea ecx, [ebp - 0x4c]
push ecx
push edx
call fcn.004ec1a0
mov esi, eax
mov byte [ebp - 4], bl
cmp dword [ebp - 0x1c], 8
jb 0x42d600
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor ecx, ecx
mov eax, 7
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], ebx
mov word [ebp - 0x30], cx
cmp esi, ebx
je 0x42d6da
mov dword [ebp - 0x54], eax
xor edx, edx
push 1
mov eax, 0x529050
lea esi, [ebp - 0x68]
mov dword [ebp - 0x58], ebx
mov word [ebp - 0x68], dx
call fcn.00412b10
mov byte [ebp - 4], 2
mov eax, esi
push eax
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x4c]
call fcn.004f07a0
add esp, 8
mov byte [ebp - 4], 3
mov ebx, eax
mov esi, edi
call fcn.0040fc50
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x24]
xor ebx, ebx
cmp eax, ebx
je 0x42d680
mov edx, dword [ebp + 8]
mov edi, dword [ebp - 0x20]
push edx
call fcn.00414fe0
mov eax, dword [ebp - 0x24]
add esp, 4
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 4], bl
mov edi, 8
cmp dword [ebp - 0x54], edi
jb 0x42d6a3
mov ecx, dword [ebp - 0x68]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov esi, 7
xor edx, edx
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x58], ebx
mov word [ebp - 0x68], dx
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x38], edi
jb 0x42d6cd
mov eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x38], esi
mov word [ebp - 0x4c], cx
mov al, 1
jmp 0x42d704
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x38], 8
jb 0x42d6f9
mov edx, dword [ebp - 0x4c]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, 7
mov dword [ebp - 0x38], eax
xor eax, eax
mov word [ebp - 0x4c], ax
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
mov dword [ebp - 0x3c], ebx
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4349c0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x51bb99
push eax
mov eax, 0x1048
mov dword fs:[0], esp
call fcn.0050f9a0
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push 0x400
lea eax, [ebp - 0x1050]
push ebx
mov dword [ebp - 0x10], ebx
push eax
mov dword [ebp - 0x14], 0x800
call sub.MSVCR100.dll_memset
add esp, 0xc
cmp dword [0x5725f8], ebx
jne 0x434a50
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x1050]
push edx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
lea eax, [ebp - 0x1050]
lea edx, [eax + 2]
jmp 0x434a30
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x434a30
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x1050]
mov esi, 0x5725e8
call fcn.00412b10
cmp byte [ebp + 0xc], bl
je 0x434afd
lea eax, [ebp - 0x4c]
push eax
call fcn.00434900
add esp, 4
mov esi, eax
mov ebx, 1
mov dword [ebp - 4], ebx
push 0x52b458
lea ecx, [ebp - 0x30]
push 0x5725e8
push ecx
call fcn.00413af0
add esp, 0xc
mov byte [ebp - 4], 2
push edi
mov edx, esi
mov ecx, eax
call fcn.00413a30
add esp, 4
mov dword [ebp - 0x10], ebx
mov byte [ebp - 4], bl
mov esi, 8
cmp dword [ebp - 0x1c], esi
jb 0x434ab3
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
xor ebx, ebx
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], ebx
mov word [ebp - 0x30], ax
mov byte [ebp - 4], al
cmp dword [ebp - 0x38], esi
jb 0x434ada
mov ecx, dword [ebp - 0x4c]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor edx, edx
mov dword [ebp - 0x38], 7
mov dword [ebp - 0x3c], ebx
mov word [ebp - 0x4c], dx
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], ebx
push ebx
mov word [edi], ax
push 0x5725e8
or eax, 0xffffffff
mov ecx, edi
call fcn.00411b10
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x10], 1
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x434c70
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x511a79
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x15c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], 0
mov edi, 1
mov dword [ebp - 4], edi
cmp dword [0x572684], 0
je 0x434ccf
mov ecx, 0x572674
mov esi, dword [ebp + 8]
call fcn.0040fab0
mov dword [ebp - 0x14], edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov word [ebp - 0x168], ax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
mov edi, eax
push 0x2a
lea ecx, [ebp - 0x68]
push ecx
push 0x59
push edi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
call esi
mov ebx, eax
push 0x2a
lea edx, [ebp - 0xbc]
push edx
push 0x5a
push edi
call esi
test ebx, ebx
jg 0x434d0b
xor ecx, ecx
mov word [ebp - 0x68], cx
test eax, eax
jg 0x434d18
xor edx, edx
mov word [ebp - 0xbc], dx
cmp word [ebp - 0x68], 0
je 0x434d65
cmp word [ebp - 0xbc], 0
je 0x434d65
lea eax, [ebp - 0x68]
push eax
push 0x55
lea ecx, [ebp - 0x168]
push ecx
mov esi, dword [sym.imp.MSVCR100.dll_wcscat_s]
call esi
push 0x528e74
push 0x55
lea edx, [ebp - 0x168]
push edx
call esi
lea eax, [ebp - 0xbc]
push eax
push 0x55
lea ecx, [ebp - 0x168]
push ecx
call esi
add esp, 0x24
jmp 0x434d6e
xor edx, edx
mov word [ebp - 0x168], dx
push 0x572674
lea eax, [ebp - 0x168]
call fcn.0040fb40
mov ecx, 0x572674
mov esi, dword [ebp + 8]
call fcn.0040fab0
mov dword [ebp - 0x14], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x437150
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x515679
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x124
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, dword [0x1579a64]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [0x5754cc], 0x220020
mov dword [0x5754d0], 0x52f7e0
mov dword [0x5754d4], 0x2c002a
mov dword [0x5754d8], 0x52f804
cmp dword [0x15797d0], ebx
jne 0x4371d4
lea ecx, [ebp - 0x34]
push ecx
call fcn.00462a20
add esp, 4
cmp dword [ebp - 0x20], 8
jb 0x4371ce
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov word [ebp - 0x34], ax
mov ecx, dword [0x15797d0]
mov dword [0x573874], ecx
cmp dword [esi], ebx
jne 0x4371f9
push str.NTDLL.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi], eax
cmp eax, ebx
je 0x43745d
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [esi + 4], ebx
jne 0x437211
push str.NtWaitForKeyedEvent
mov edx, dword [esi]
push edx
call edi
mov dword [esi + 4], eax
cmp dword [esi + 8], ebx
jne 0x437223
push str.NtReleaseKeyedEvent
mov eax, dword [esi]
push eax
call edi
mov dword [esi + 8], eax
cmp dword [esi + 0xc], ebx
jne 0x437235
push str.RtlRaiseStatus
mov ecx, dword [esi]
push ecx
call edi
mov dword [esi + 0xc], eax
cmp dword [esi + 0x10], ebx
jne 0x437247
push str.RtlInterlockedPopEntrySList
mov edx, dword [esi]
push edx
call edi
mov dword [esi + 0x10], eax
cmp dword [esi + 0x14], ebx
jne 0x437259
push str.RtlInterlockedPushEntrySList
mov eax, dword [esi]
push eax
call edi
mov dword [esi + 0x14], eax
push 0x1c
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
mov dword [ebp - 0x18], eax
mov cl, 1
mov byte [ebp - 4], cl
cmp eax, ebx
je 0x43729b
mov dword [eax], vtable.CriticalSection.0
mov byte [ebp - 4], 2
mov byte [ebp - 4], cl
mov byte [ebp - 4], bl
mov dword [0x1579728], eax
call fcn.00437be0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov byte [ebp - 4], bl
mov dword [0x1579728], eax
call fcn.00437be0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x437690
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51e5c5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor ebx, ebx
mov dword [ebp - 4], ebx
push 8
call dword [sym.imp.MSVCR100.dll_malloc]
add esp, 4
mov dword [0x157972c], eax
cmp eax, ebx
je 0x43774b
mov dword [eax], 0x436d30
mov dword [eax + 4], ebx
push ebx
push ebx
push eax
push 0x435fb0
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
cmp esi, ebx
je 0x437709
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, str.threadHandle_failed
lea ecx, [ebp - 0x2c]
call fcn.0040fae0
mov byte [ebp - 4], 1
push ebx
push 0x10000000
lea eax, [ebp - 0x2c]
push eax
push 0x240
push str.EtwLogger::PhCreateThread
call fcn.0044d970
add esp, 0x14
mov byte [ebp - 4], bl
lea esi, [ebp - 0x2c]
call fcn.004150b0
mov edx, dword [ebp + 8]
call fcn.00437470
jmp 0x437783
mov eax, str.g_context_is_null
lea ecx, [ebp - 0x2c]
call fcn.0040fae0
mov byte [ebp - 4], 2
push ebx
push 0x20000000
lea ecx, [ebp - 0x2c]
push ecx
push 0x246
push str.EtwLogger::PhCreateThread
call fcn.0044d970
add esp, 0x14
mov byte [ebp - 4], bl
lea esi, [ebp - 0x2c]
call fcn.004150b0
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x43f1c0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5135c2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x104
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
cmp dword [esi + 0x14], 8
jb 0x43f1f8
mov eax, dword [esi]
jmp 0x43f1fa
mov eax, esi
push eax
call dword [sym.imp.MSVCR100.dll__wremove]
add esp, 4
cmp eax, 0xffffffff
jne 0x43f2b8
mov edi, dword [sym.imp.MSVCR100.dll__errno]
call edi
cmp dword [eax], 2
je 0x43f2b8
push esi
push str.Failed_to_delete
lea eax, [ebp - 0x30]
push eax
call fcn.00414000
add esp, 0xc
mov bl, 1
mov byte [ebp - 4], bl
push str.._errno
push eax
lea ecx, [ebp - 0x68]
push ecx
call fcn.004139a0
add esp, 0xc
mov esi, eax
mov byte [ebp - 4], 2
call edi
mov eax, dword [eax]
call fcn.0044e970
push eax
push esi
lea edx, [ebp - 0x4c]
push edx
call fcn.004139a0
add esp, 0xc
mov byte [ebp - 4], 3
push 0
push 0x20000000
push eax
push 0x85
push str.FileUtil::FileDelete
call fcn.0044d970
add esp, 0x14
mov byte [ebp - 4], 2
lea esi, [ebp - 0x4c]
call fcn.004150b0
mov byte [ebp - 4], bl
lea esi, [ebp - 0x68]
call fcn.004150b0
mov byte [ebp - 4], 0
lea esi, [ebp - 0x30]
call fcn.004150b0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x440460
Capabilities:
Enumerate files on windows
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x514d5d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x37c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x50]
push edx
call fcn.00413c30
add esp, 0xc
xor ebx, ebx
mov dword [ebp - 4], ebx
mov byte [ebp - 4], 1
mov edi, 8
cmp dword [ebp - 0x3c], edi
mov eax, dword [ebp - 0x50]
jae 0x4404b1
lea eax, [ebp - 0x50]
lea ecx, [ebp - 0x384]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [ebp - 0x18], esi
cmp esi, 0xffffffff
je 0x4405c4
lea ecx, [ecx]
test byte [ebp - 0x384], 0xa0
je 0x4405a7
mov ecx, 0x52b458
lea eax, [ebp - 0x358]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x44050e
cmp dx, bx
je 0x44050a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x44050e
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x4404e8
xor eax, eax
jmp 0x440513
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x4405a7
mov ecx, 0x528b38
lea eax, [ebp - 0x358]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x44054c
cmp dx, bx
je 0x440548
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x44054c
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x440526
xor eax, eax
jmp 0x440551
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x4405a7
lea edx, [ebp - 0x358]
push edx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x34]
push ecx
call fcn.00413af0
add esp, 0xc
mov byte [ebp - 4], 2
cmp byte [ebp + 0x10], bl
je 0x44058c
cmp dword [ebp - 0x20], edi
mov eax, dword [ebp - 0x34]
jae 0x440580
lea eax, [ebp - 0x34]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea edx, [ebp - 0x34]
push edx
call fcn.0043f1c0
add esp, 4
mov byte [ebp - 4], 1
lea esi, [ebp - 0x34]
call fcn.004150b0
mov esi, dword [ebp - 0x18]
lea eax, [ebp - 0x384]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4404d0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 4], ebx
jmp 0x440758
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x3c], edi
jb 0x440771
mov ecx, dword [ebp - 0x50]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0x3c], 7
mov dword [ebp - 0x40], ebx
xor edx, edx
mov word [ebp - 0x50], dx
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4409f0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x514c59
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x124
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, eax
push ebx
push ebx
push 2
push ebx
push 7
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x440b63
mov eax, 0x528928
lea ecx, [ebp - 0x50]
call fcn.0040fae0
mov byte [ebp - 4], 1
mov eax, 0x528928
lea ecx, [ebp - 0x88]
call fcn.0040fae0
mov byte [ebp - 4], 2
mov eax, 0x528928
lea ecx, [ebp - 0x34]
call fcn.0040fae0
mov byte [ebp - 4], 3
mov eax, 0x528928
lea ecx, [ebp - 0xa4]
call fcn.0040fae0
mov byte [ebp - 4], 4
mov eax, esi
lea ecx, [ebp - 0x6c]
call fcn.0040fae0
mov byte [ebp - 4], 5
mov eax, str.CreateFile
lea ecx, [ebp - 0xc0]
call fcn.0040fae0
mov bl, 6
mov byte [ebp - 4], bl
push str.FileUtil::CreateFileWithNewTimes
lea eax, [ebp - 0xdc]
push eax
mov ecx, 0x306
call fcn.00451470
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x50]
push ecx
lea edx, [ebp - 0x88]
push edx
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp - 0xa4]
push edx
push eax
lea edx, [ebp - 0x6c]
lea ecx, [ebp - 0xc0]
call fcn.0044f9c0
add esp, 0x1c
mov byte [ebp - 4], bl
lea esi, [ebp - 0xdc]
call fcn.004150b0
mov byte [ebp - 4], 5
lea esi, [ebp - 0xc0]
call fcn.004150b0
mov byte [ebp - 4], 4
lea esi, [ebp - 0x6c]
call fcn.004150b0
mov byte [ebp - 4], 3
lea esi, [ebp - 0xa4]
call fcn.004150b0
mov byte [ebp - 4], 2
lea esi, [ebp - 0x34]
call fcn.004150b0
mov byte [ebp - 4], 1
lea esi, [ebp - 0x88]
call fcn.004150b0
mov byte [ebp - 4], 0
lea esi, [ebp - 0x50]
call fcn.004150b0
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x14], ebx
push 0x5345c4
push esi
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.MSVCR100.dll__wfopen_s]
add esp, 0xc
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x440b91
push eax
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret