joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42c6e0
Capabilities:
Check http status code
Send data
Send http request

Disassembly:
sub esp, 0x810
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ResetEvent]
push ebp
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [esp + 0x18], 0x45681c
mov eax, dword [esi + 0x14]
mov dword [esp + 0x1c], edi
push eax
call ebx
mov eax, dword [esi + 8]
push esi
lea ecx, [esp + 0x1c]
push 0x84000100
push ecx
push 0x457dd4
lea edx, [esi + 0xe5c]
push str.HTTP_1.1
push edx
push 0x456800
push eax
mov dword [esi + 0xc], edi
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
cmp eax, edi
mov dword [esi + 0xc], eax
jne 0x42c761
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x42c83e
mov ecx, dword [esi + 0x14]
push 0xffffffffffffffff
push ecx
mov ecx, esi
call fcn.0042c5f0
test eax, eax
je 0x42c83e
mov word [esp + 0x20], di
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x22]
mov edx, dword [esi + 0x265c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push edx
lea eax, [esp + 0x24]
push str.Content_Length:__d_r_n
push eax
call dword [sym.imp.MSVCRT.dll_swprintf]
mov ecx, dword [esi + 0x18]
add esp, 0xc
push ecx
call ebx
mov edx, dword [esi + 0x265c]
mov ebx, dword [sym.imp.MSVCRT.dll_wcslen]
lea edi, [esi + 0x165c]
push edx
lea eax, [esp + 0x24]
push edi
push eax
call ebx
mov edx, dword [esi + 0xc]
mov ebp, dword [sym.imp.WININET.dll_HttpSendRequestW]
add esp, 4
lea ecx, [esp + 0x28]
push eax
push ecx
push edx
call ebp
test eax, eax
jne 0x42c7e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x42c83e
mov eax, dword [esi + 0x18]
push 0xffffffffffffffff
push eax
mov ecx, esi
call fcn.0042c5f0
test eax, eax
je 0x42c83e
mov eax, dword [esi + 0xc]
lea ecx, [esp + 0x14]
push 0
lea edx, [esp + 0x14]
push ecx
push edx
push 0x20000013
push eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x42c83e
mov eax, dword [esp + 0x10]
cmp eax, 0x197
je 0x42c84b
cmp eax, 0x191
je 0x42c84b
mov ecx, dword [esi + 0x50]
test ecx, ecx
je 0x42c8dd
cmp eax, 0xc8
je 0x42c8e8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x810
ret
mov ecx, dword [esi + 0xc]
push 0
push 7
push 0x2f0c
push ecx
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.WININET.dll_InternetErrorDlg]
cmp eax, 0x2f00
jne 0x42c83e
mov edx, dword [esi + 0x265c]
lea eax, [esp + 0x20]
push edx
push edi
push eax
call ebx
mov edx, dword [esi + 0xc]
add esp, 4
lea ecx, [esp + 0x28]
push eax
push ecx
push edx
call ebp
test eax, eax
jne 0x42c8ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x42c83e
mov eax, dword [esi + 0x18]
push 0xffffffffffffffff
push eax
mov ecx, esi
call fcn.0042c5f0
test eax, eax
je 0x42c83e
mov eax, dword [esi + 0xc]
lea ecx, [esp + 0x14]
push 0
lea edx, [esp + 0x14]
push ecx
push edx
push 0x20000013
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x42c83e
mov eax, dword [esi + 0x50]
test eax, eax
mov eax, dword [esp + 0x10]
jmp 0x42c82d
cmp eax, 0x194
jne 0x42c83e
mov ecx, esi
call fcn.0042c900
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x810
ret
Function at 0x42c6ee
Capabilities:
Check http status code
Send data
Send http request

Disassembly:
sub esp, 0x810
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ResetEvent]
push ebp
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [esp + 0x18], 0x45681c
mov eax, dword [esi + 0x14]
mov dword [esp + 0x1c], edi
push eax
call ebx
mov eax, dword [esi + 8]
push esi
lea ecx, [esp + 0x1c]
push 0x84000100
push ecx
push 0x457dd4
lea edx, [esi + 0xe5c]
push str.HTTP_1.1
push edx
push 0x456800
push eax
mov dword [esi + 0xc], edi
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
cmp eax, edi
mov dword [esi + 0xc], eax
jne 0x42c761
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x42c83e
mov ecx, dword [esi + 0x14]
push 0xffffffffffffffff
push ecx
mov ecx, esi
call fcn.0042c5f0
test eax, eax
je 0x42c83e
mov word [esp + 0x20], di
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x22]
mov edx, dword [esi + 0x265c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push edx
lea eax, [esp + 0x24]
push str.Content_Length:__d_r_n
push eax
call dword [sym.imp.MSVCRT.dll_swprintf]
mov ecx, dword [esi + 0x18]
add esp, 0xc
push ecx
call ebx
mov edx, dword [esi + 0x265c]
mov ebx, dword [sym.imp.MSVCRT.dll_wcslen]
lea edi, [esi + 0x165c]
push edx
lea eax, [esp + 0x24]
push edi
push eax
call ebx
mov edx, dword [esi + 0xc]
mov ebp, dword [sym.imp.WININET.dll_HttpSendRequestW]
add esp, 4
lea ecx, [esp + 0x28]
push eax
push ecx
push edx
call ebp
test eax, eax
jne 0x42c7e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x42c83e
mov eax, dword [esi + 0x18]
push 0xffffffffffffffff
push eax
mov ecx, esi
call fcn.0042c5f0
test eax, eax
je 0x42c83e
mov eax, dword [esi + 0xc]
lea ecx, [esp + 0x14]
push 0
lea edx, [esp + 0x14]
push ecx
push edx
push 0x20000013
push eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x42c83e
mov eax, dword [esp + 0x10]
cmp eax, 0x197
je 0x42c84b
cmp eax, 0x191
je 0x42c84b
mov ecx, dword [esi + 0x50]
test ecx, ecx
je 0x42c8dd
cmp eax, 0xc8
je 0x42c8e8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x810
ret
mov ecx, dword [esi + 0xc]
push 0
push 7
push 0x2f0c
push ecx
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.WININET.dll_InternetErrorDlg]
cmp eax, 0x2f00
jne 0x42c83e
mov edx, dword [esi + 0x265c]
lea eax, [esp + 0x20]
push edx
push edi
push eax
call ebx
mov edx, dword [esi + 0xc]
add esp, 4
lea ecx, [esp + 0x28]
push eax
push ecx
push edx
call ebp
test eax, eax
jne 0x42c8ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x42c83e
mov eax, dword [esi + 0x18]
push 0xffffffffffffffff
push eax
mov ecx, esi
call fcn.0042c5f0
test eax, eax
je 0x42c83e
mov eax, dword [esi + 0xc]
lea ecx, [esp + 0x14]
push 0
lea edx, [esp + 0x14]
push ecx
push edx
push 0x20000013
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x42c83e
mov eax, dword [esi + 0x50]
test eax, eax
mov eax, dword [esp + 0x10]
jmp 0x42c82d
cmp eax, 0x194
jne 0x42c83e
mov ecx, esi
call fcn.0042c900
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x810
ret
Function at 0x42cb20
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esp + 0xc]
mov dword [esp + 4], 0
cmp eax, 0xffffffff
je 0x42cb4d
push 0xffffffffffffffff
push eax
mov ecx, esi
call fcn.0042c5f0
test eax, eax
je 0x42cb67
mov edx, dword [esp + 0x10]
lea ecx, [esp + 4]
push ecx
push 0
push esi
push edx
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
pop esi
pop ecx
ret 8

Function at 0x42d970
Capabilities:
Copy file
Delete file

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
push edi
mov eax, dword [esi + 8]
mov dword [esp + 0x34], eax
lea edi, [eax + eax + 4]
push edi
call fcn.0043c870
mov ecx, edi
mov ebp, eax
mov edx, ecx
xor eax, eax
mov edi, ebp
xor ebx, ebx
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 eax, dword [esi + 4]
cmp eax, ebx
je 0x42da1e
mov al, byte [eax - 1]
cmp al, bl
je 0x42da0e
cmp al, 0xff
je 0x42da0e
mov edi, dword [esi + 8]
cmp edi, 0x7ffffffd
jbe 0x42d9ca
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
mov ecx, dword [esi + 4]
cmp ecx, ebx
je 0x42d9f0
mov al, byte [ecx - 1]
cmp al, bl
je 0x42d9f0
cmp al, 0xff
je 0x42d9f0
cmp edi, ebx
jne 0x42da05
dec al
mov byte [ecx - 1], al
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
jmp 0x42da0e
cmp edi, ebx
jne 0x42da00
cmp ecx, ebx
je 0x42da0e
mov dword [esi + 8], ebx
mov word [ecx], bx
jmp 0x42da0e
cmp dword [esi + 0xc], edi
jae 0x42da0e
push edi
mov ecx, esi
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Copy_unsigned_int_]
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x42da19
mov byte [eax - 1], 0xff
mov esi, dword [esi + 4]
jmp 0x42da24
mov esi, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
mov eax, dword [esp + 0x34]
mov edi, ebp
lea ecx, [eax + eax]
lea eax, [esp + 0x10]
mov edx, ecx
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], 3
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebx
mov word [esp + 0x24], 0x14
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
push ebp
mov esi, eax
call fcn.0043c8a0
add esp, 4
cmp esi, ebx
sete al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x42e190
Capabilities:
Check if file exists
Read file on windows

Disassembly:
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
sub esp, 0xc
push esi
mov esi, dword [esp + 0x18]
test esi, esi
push edi
je 0x42e1a4
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42e1d8
test esi, esi
je 0x42e2b9
mov al, byte [esi - 1]
test al, al
je 0x42e2ad
cmp al, 0xff
je 0x42e2ad
dec al
pop edi
mov byte [esi - 1], al
or eax, 0xffffffff
pop esi
add esp, 0xc
ret
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
test esi, esi
je 0x42e1e3
mov eax, esi
push 0
push 0x80
push 3
push 0
push 7
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x42e1af
xor eax, eax
xor ecx, ecx
mov byte [esp + 8], 0
mov dword [esp + 9], eax
mov dword [esp + 8], ecx
mov dword [esp + 0xd], eax
mov dword [esp + 0xc], ecx
lea edx, [esp + 0x18]
mov byte [esp + 0x11], al
push ecx
push edx
lea eax, [esp + 0x10]
push 2
push eax
push edi
mov word [esp + 0x24], cx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [esp + 8]
cmp al, 0x50
je 0x42e2c2
mov cl, byte [esp + 9]
cmp cl, 0x4b
je 0x42e2c2
cmp al, 0x37
jne 0x42e290
cmp cl, 0x7a
jne 0x42e290
test esi, esi
je 0x42e285
mov al, byte [esi - 1]
test al, al
je 0x42e279
cmp al, 0xff
je 0x42e279
dec al
pop edi
mov byte [esi - 1], al
mov eax, 1
pop esi
add esp, 0xc
ret
add esi, 0xfffffffe
push esi
call fcn.0043c8a0
add esp, 4
pop edi
mov eax, 1
pop esi
add esp, 0xc
ret
test esi, esi
je 0x42e2b9
mov al, byte [esi - 1]
test al, al
je 0x42e2ad
cmp al, 0xff
je 0x42e2ad
dec al
pop edi
mov byte [esi - 1], al
or eax, 0xffffffff
pop esi
add esp, 0xc
ret
add esi, 0xfffffffe
push esi
call fcn.0043c8a0
add esp, 4
pop edi
or eax, 0xffffffff
pop esi
add esp, 0xc
ret
test esi, esi
je 0x42e2ea
mov al, byte [esi - 1]
test al, al
je 0x42e2de
cmp al, 0xff
je 0x42e2de
dec al
pop edi
mov byte [esi - 1], al
xor eax, eax
pop esi
add esp, 0xc
ret
add esi, 0xfffffffe
push esi
call fcn.0043c8a0
add esp, 4
pop edi
xor eax, eax
pop esi
add esp, 0xc
ret
Function at 0x430240
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
mov eax, dword [eax + 4]
test eax, eax
jne 0x430251
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push esi
push 0
push 0x80
push 3
push 0
push 7
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x430277
or eax, eax
pop esi
pop ecx
ret
lea ecx, [esp + 4]
push 0
push ecx
lea edx, [esp + 0x14]
push 4
push edx
push esi
mov dword [esp + 0x20], 0
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0xc]
pop esi
pop ecx
ret
Function at 0x430900
Capabilities:
Delete file
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ecx
mov eax, dword [esp + 0x18]
push esi
and eax, 0xffff
push 0x455ffc
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x43094d
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x430948
mov al, byte [ecx - 1]
test al, al
je 0x43093c
cmp al, 0xff
je 0x43093c
dec al
pop esi
mov byte [ecx - 1], al
xor eax, eax
pop ecx
ret
add ecx, 0xfffffffe
push ecx
call fcn.0043c8a0
add esp, 4
xor eax, eax
pop esi
pop ecx
ret
push ebx
push ebp
push edi
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push 0
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x28], eax
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
test esi, esi
je 0x430980
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
test esi, esi
je 0x430992
mov eax, esi
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, eax
push edx
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop ebp
test esi, esi
pop ebx
je 0x4309fa
mov al, byte [esi - 1]
test al, al
je 0x4309ee
cmp al, 0xff
je 0x4309ee
dec al
mov byte [esi - 1], al
mov eax, 1
pop esi
pop ecx
ret
add esi, 0xfffffffe
push esi
call fcn.0043c8a0
add esp, 4
mov eax, 1
pop esi
pop ecx
ret
Function at 0x43db00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x44abd0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
xor eax, eax
push esi
mov esi, ecx
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 4
mov dword [esp + 4], 0x44c948
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x24], eax
lea eax, [esp + 4]
push eax
push ecx
call fcn.0043d050
mov dl, byte [esp + 0x3c]
mov al, byte [esp + 0x40]
mov cl, byte [esp + 0x44]
add esp, 8
mov byte [esp + 0x18], dl
mov byte [esp + 0x19], al
mov eax, dword [esp + 0x2c]
lea edx, [esp + 4]
mov byte [esp + 0x1a], cl
push edx
push eax
mov ecx, esi
call fcn.0043d7f0
mov dword [esp + 4], 0x44c948
lea ecx, [esp + 4]
mov dword [esp + 0x24], 1
call fcn.0043c660
lea ecx, [esp + 4]
mov dword [esp + 0x24], 0xffffffff
call fcn.0043c600
mov ecx, dword [esp + 0x1c]
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret 0x14
Function at 0x43fae0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x44afe4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebx, ecx
xor ebp, ebp
push esi
mov dword [esp + 0x14], ebx
mov dword [ebx + 4], ebp
mov dword [ebx + 8], ebp
mov dword [ebx + 0xc], ebp
mov dword [ebx + 0x10], 4
mov dword [esp + 0x28], ebp
mov dword [ebx], 0x44c940
call fcn.0043c660
mov eax, dword [esp + 0x30]
mov ecx, ebx
mov esi, dword [eax + 8]
mov eax, dword [ebx + 8]
add eax, esi
mov dword [esp + 0x10], esi
push eax
call fcn.0043c6e0
cmp esi, ebp
mov dword [esp + 0xc], ebp
jle 0x43fc71
push edi
mov ecx, dword [esp + 0x34]
push 0x4c
mov edx, dword [ecx + 0xc]
mov esi, dword [edx + ebp*4]
call fcn.0043c870
mov edi, eax
add esp, 4
mov dword [esp + 0x1c], edi
test edi, edi
mov byte [esp + 0x2c], 1
je 0x43fc2b
mov eax, dword [esi]
lea ebp, [edi + 4]
mov dword [edi], eax
xor eax, eax
mov dword [ebp], eax
mov dword [ebp + 4], eax
mov dword [ebp + 8], eax
mov ecx, dword [esi + 8]
push ecx
mov ecx, ebp
call fcn.0043cd20
mov ecx, dword [esi + 4]
mov eax, dword [ebp]
add eax, 2
mov dx, word [ecx]
add ecx, 2
mov word [eax - 2], dx
test dx, dx
je 0x43fbb4
mov dx, word [ecx]
add ecx, 2
mov word [eax], dx
add eax, 2
test dx, dx
jne 0x43fba3
mov edx, dword [esi + 8]
mov dword [ebp + 4], edx
lea eax, [esi + 0x10]
lea ecx, [edi + 0x10]
push eax
mov byte [esp + 0x30], 2
call fcn.0043fae0
lea ebp, [edi + 0x24]
push 4
mov ecx, ebp
mov dword [esp + 0x24], ebp
call fcn.0043f320
mov ecx, ebp
mov byte [esp + 0x2c], 4
mov dword [ebp], 0x44c938
call fcn.0043c660
lea ecx, [esi + 0x24]
push ecx
mov ecx, ebp
call fcn.0043f340
lea ebp, [edi + 0x38]
mov ecx, ebp
mov dword [esp + 0x20], ebp
call fcn.0043f6d0
mov ecx, ebp
mov byte [esp + 0x2c], 6
mov dword [ebp], 0x44c938
call fcn.0043c660
add esi, 0x38
mov ecx, ebp
push esi
call fcn.0043f340
mov ebp, dword [esp + 0x10]
jmp 0x43fc2d
xor edi, edi
mov ecx, ebx
mov byte [esp + 0x2c], 0
call fcn.0043c6a0
mov edx, dword [ebx + 8]
mov eax, dword [ebx + 0xc]
mov dword [eax + edx*4], edi
mov edx, dword [ebx + 8]
mov eax, dword [esp + 0x14]
inc edx
inc ebp
mov dword [ebx + 8], edx
cmp ebp, eax
mov dword [esp + 0x10], ebp
jl 0x43fb47
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret 4
mov ecx, dword [esp + 0x20]
pop esi
mov eax, ebx
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 4
Function at 0x440010
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov eax, dword [esi + 8]
cmp eax, 0x105
jg 0x440077
cmp eax, 0x106
je 0x440077
push 0x20c
call fcn.0043c870
mov edi, eax
mov eax, dword [esi + 8]
add esp, 4
test eax, eax
jle 0x440065
mov ecx, dword [esi + 4]
xor eax, eax
test ecx, ecx
jle 0x44005a
mov ecx, dword [esi]
inc eax
mov dx, word [ecx + eax*2 - 2]
mov word [edi + eax*2 - 2], dx
mov ecx, dword [esi + 4]
cmp eax, ecx
jl 0x440046
mov eax, dword [esi]
push eax
call fcn.0043c8a0
add esp, 4
mov ecx, dword [esi + 4]
mov dword [esi], edi
mov word [edi + ecx*2], 0
mov dword [esi + 8], 0x106
mov eax, dword [esi]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov edi, dword [esi]
xor ecx, ecx
cmp word [edi], cx
je 0x44009a
mov edx, edi
add edx, 2
inc ecx
cmp word [edx], 0
jne 0x440090
mov word [edi + ecx*2], 0
mov dword [esi + 4], ecx
pop edi
pop esi
test eax, eax
jbe 0x4400b6
cmp eax, 0x104
ja 0x4400b6
mov eax, 1
ret
xor eax, eax
ret

Function at 0x4401c0
Capabilities:
Set file attributes

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
ret

Function at 0x440670
Capabilities:
Delete file

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0
push esi
call fcn.004401c0
add esp, 8
test al, al
jne 0x440686
pop esi
ret
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
pop esi
ret
Function at 0x4406a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x44b078
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push esi
xor ebx, ebx
push 3
lea ecx, [esp + 0x5c]
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
call fcn.0043cd20
mov esi, dword [esp + 0x78]
push 0x5c
lea eax, [esp + 0xc]
push esi
push eax
mov dword [esp + 0x7c], ebx
call fcn.004416d0
lea ecx, [esp + 0x14]
push 0x2a
lea edx, [esp + 0x24]
push ecx
push edx
mov byte [esp + 0x88], 1
call fcn.004416d0
add esp, 0x18
mov dword [esp + 0x20], 0xffffffff
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x74], 3
call fcn.0043eb40
mov eax, dword [esp + 0x14]
mov byte [esp + 0x70], 5
push eax
call fcn.0043c8a0
add esp, 4
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x24]
call fcn.00441c60
test al, al
je 0x440778
lea edx, [esp + 0x30]
lea eax, [esp + 8]
push edx
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x88], esp
push eax
call fcn.0043eb40
call fcn.00440860
add esp, 0x10
cmp al, bl
je 0x4407cd
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x24]
call fcn.00441c60
test al, al
jne 0x44073f
mov edx, dword [esp + 0x24]
mov byte [esp + 0x70], 1
push edx
call fcn.0043c8a0
add esp, 4
lea ecx, [esp + 0x20]
call fcn.00441920
mov eax, dword [esi]
push ebx
push eax
call fcn.004401c0
add esp, 8
test al, al
jne 0x440812
mov eax, dword [esp + 8]
push eax
call fcn.0043c8a0
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.0043c8a0
add esp, 8
xor al, al
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop esi
pop ebx
add esp, 0x6c
ret
mov edx, dword [esp + 0x24]
mov byte [esp + 0x70], 1
push edx
call fcn.0043c8a0
add esp, 4
lea ecx, [esp + 0x20]
call fcn.00441920
mov eax, dword [esp + 8]
push eax
call fcn.0043c8a0
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.0043c8a0
add esp, 8
xor al, al
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop esi
pop ebx
add esp, 0x6c
ret
mov esi, dword [esi]
push esi
call fcn.004401e0
mov edx, dword [esp + 0xc]
mov bl, al
push edx
call fcn.0043c8a0
mov eax, dword [esp + 0x60]
push eax
call fcn.0043c8a0
mov ecx, dword [esp + 0x74]
add esp, 0xc
mov al, bl
mov dword fs:[0], ecx
pop esi
pop ebx
add esp, 0x6c
ret
Function at 0x440ec0
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov eax, dword [esi + 8]
cmp eax, 0x105
jg 0x440f27
cmp eax, 0x106
je 0x440f27
push 0x20c
call fcn.0043c870
mov edi, eax
mov eax, dword [esi + 8]
add esp, 4
test eax, eax
jle 0x440f15
mov ecx, dword [esi + 4]
xor eax, eax
test ecx, ecx
jle 0x440f0a
mov ecx, dword [esi]
inc eax
mov dx, word [ecx + eax*2 - 2]
mov word [edi + eax*2 - 2], dx
mov ecx, dword [esi + 4]
cmp eax, ecx
jl 0x440ef6
mov eax, dword [esi]
push eax
call fcn.0043c8a0
add esp, 4
mov ecx, dword [esi + 4]
mov dword [esi], edi
mov word [edi + ecx*2], 0
mov dword [esi + 8], 0x106
mov eax, dword [esi]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, dword [esi]
xor ecx, ecx
cmp word [edi], cx
je 0x440f4a
mov edx, edi
add edx, 2
inc ecx
cmp word [edx], 0
jne 0x440f40
mov word [edi + ecx*2], 0
mov dword [esi + 4], ecx
pop edi
pop esi
test eax, eax
jbe 0x440f66
cmp eax, 0x104
ja 0x440f66
mov eax, 1
ret
xor eax, eax
ret

Function at 0x440f70
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, dword [esp + 0x10]
push edi
mov eax, dword [esi + 8]
cmp eax, 0x105
jg 0x440fd7
cmp eax, 0x106
je 0x440fd7
push 0x20c
call fcn.0043c870
mov edi, eax
mov eax, dword [esi + 8]
add esp, 4
test eax, eax
jle 0x440fc5
mov ecx, dword [esi + 4]
xor eax, eax
test ecx, ecx
jle 0x440fba
mov ecx, dword [esi]
inc eax
mov dx, word [ecx + eax*2 - 2]
mov word [edi + eax*2 - 2], dx
mov ecx, dword [esi + 4]
cmp eax, ecx
jl 0x440fa6
mov eax, dword [esi]
push eax
call fcn.0043c8a0
add esp, 4
mov ecx, dword [esi + 4]
mov dword [esi], edi
mov word [edi + ecx*2], 0
mov dword [esi + 8], 0x106
mov eax, dword [esi]
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov edi, dword [esi]
xor ecx, ecx
cmp word [edi], cx
je 0x441001
mov edx, edi
add edx, 2
inc ecx
cmp word [edx], 0
jne 0x440ff7
mov word [edi + ecx*2], 0
mov dword [esi + 4], ecx
pop edi
pop esi
ret