joyce8/EMBER2024-capa huggingface dataset:
Function at 0x419160
Capabilities:
Check if file exists
Create directory
Get common file path
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x82c
mov eax, dword [0x4611f4]
xor eax, esp
mov dword [esp + 0x828], eax
push ebx
push esi
push edi
xor eax, eax
push 0x206
push eax
mov word [esp + 0x18], ax
lea eax, [esp + 0x1a]
push eax
mov esi, ecx
call fcn.00434de0
add esp, 0xc
lea eax, [esp + 0x10]
push 1
push 0x23
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.BaofengBFVKanDianYing_temp
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [esp + 0x10]
push eax
call ebx
test eax, eax
jne 0x419211
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4191fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x419211
lea ecx, [esp + 0x10]
call fcn.0041c800
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x419211
cmp dword [0x46237c], 6
jb 0x419211
push ecx
lea ecx, [esp + 0x14]
call fcn.0041d300
cmp dword [esi + 0x34], 0
jbe 0x41939a
mov eax, dword [esi + 0x30]
push 4
mov edi, dword [eax]
lea eax, [esp + 0x10]
push eax
push 4
push str.welcomePicID
push str.SoftwareBaofengBFVKanDianYingUserConfig
push SysReAllocStringLen
mov dword [esp + 0x24], edi
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push 0x208
lea eax, [esp + 0x62c]
push 0
push eax
call fcn.00434de0
add esp, 0xc
lea eax, [esp + 0x628]
push str.http:__img1.ylimg.com_bd_
push 0x104
push eax
call fcn.00433dd5
add esp, 0xc
lea eax, [esp + 0x218]
push 0x208
push 0
push eax
call fcn.00434de0
add esp, 0xc
lea eax, [esp + 0x420]
push 0x208
push 0
push eax
call fcn.00434de0
add esp, 0xc
lea eax, [esp + 0x628]
push edi
push eax
lea eax, [esp + 0x428]
push 0x457d7c
push eax
call fcn.0041c1a0
push edi
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x230]
push str._s_d.jpg
push eax
call fcn.0041c1a0
add esp, 0x20
lea eax, [esp + 0x218]
push eax
call ebx
test eax, eax
jne 0x4192fc
lea eax, [esp + 0x218]
push eax
lea eax, [esp + 0x424]
push eax
mov ecx, esi
call fcn.004193b0
push 0x208
lea eax, [esp + 0x424]
push 0
push eax
call fcn.00434de0
add esp, 0xc
lea eax, [esp + 0x218]
push 0x208
push 0
push eax
call fcn.00434de0
add esp, 0xc
lea eax, [esp + 0x628]
push edi
push eax
lea eax, [esp + 0x428]
push 0x457da4
push eax
call fcn.0041c1a0
push edi
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x230]
push str._s_d_mini.jpg
push eax
call fcn.0041c1a0
add esp, 0x20
lea eax, [esp + 0x218]
push eax
call ebx
test eax, eax
jne 0x419385
lea eax, [esp + 0x218]
push eax
lea eax, [esp + 0x424]
push eax
mov ecx, esi
call fcn.004193b0
mov ecx, dword [esp + 0x834]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00431c68
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.004022e0
int3
Function at 0x4197d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44a290
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4611f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea edx, [ecx + 0x24]
push str.EngineMarket.dll
lea ecx, [ebp - 0x10]
xor ebx, ebx
call fcn.0040bce0
add esp, 4
mov dword [ebp - 4], ebx
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
or edi, 0xffffffff
test eax, eax
je 0x419877
mov eax, dword [section..data]
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push str.regsvr32____s___s__n__i:_sm:1_pn:
push eax
call fcn.0040be40
mov esi, dword [ebp - 0x14]
add esp, 8
mov edx, esi
push edi
xor ecx, ecx
call fcn.0041d0b0
add esi, 0xfffffff0
mov ebx, eax
mov byte [ebp - 4], 0
lea ecx, [esi + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x419877
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x419898
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
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 0x41c1c0
Capabilities:
Check if file exists
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x4611f4]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
push edi
mov edi, ecx
mov esi, edx
test edi, edi
je 0x41c29c
test esi, esi
je 0x41c29c
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41c29c
push 0x24c
lea eax, [ebp - 0x258]
push 0
push eax
mov dword [ebp - 0x25c], 0
call fcn.00434de0
add esp, 0xc
lea eax, [ebp - 0x25c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x41c232
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x41c29c
push 0
push 0
push 3
push 0
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x41c287
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00431c68
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.00431c68
mov esp, ebp
pop ebp
ret
Function at 0x41c410
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x42c
mov eax, dword [0x4611f4]
xor eax, esp
mov dword [esp + 0x428], eax
push ebx
xor eax, eax
push 0x206
push eax
mov word [esp + 0x20], ax
lea eax, [esp + 0x22]
push eax
xor bl, bl
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], 0
call fcn.00434de0
add esp, 0xc
lea eax, [esp + 0x18]
push str.SoftwareMicrosoftInternet_ExplorerMain
push str.CURRENT_USER_s
push 0x104
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x10
lea eax, [esp + 0xc]
push eax
push 0
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push 4
push 4
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
test eax, eax
jne 0x41c4d5
mov dword [esp + 0x10], eax
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_GetExplicitEntriesFromAclW]
test eax, eax
jne 0x41c4d5
mov edx, dword [esp + 0x10]
xor ecx, ecx
test edx, edx
je 0x41c4d5
mov eax, dword [esp + 8]
add eax, 4
cmp dword [eax], 3
je 0x41c4d3
inc ecx
add eax, 0x20
cmp ecx, edx
jb 0x41c4c4
jmp 0x41c4d5
mov bl, 1
mov eax, dword [esp + 0xc]
test eax, eax
je 0x41c4e4
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
test bl, bl
je 0x41c539
xor eax, eax
push 0x200
push eax
mov word [esp + 0x228], ax
lea eax, [esp + 0x22a]
push eax
call fcn.00434de0
add esp, 0xc
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x224]
push eax
mov dword [esp + 0x10], 0x101
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
push ecx
lea eax, [esp + 0x224]
push eax
sub esp, 8
lea eax, [esp + 0x28]
push eax
call fcn.0041c5b0
mov ecx, dword [esp + 0x42c]
pop ebx
xor ecx, esp
call fcn.00431c68
mov esp, ebp
pop ebp
ret 8

Function at 0x41c800
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
mov esi, ecx
test esi, esi
je 0x41c8ec
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
push esi
call ebx
test eax, eax
jne 0x41c8eb
push edi
push esi
lea eax, [ebp - 0x208]
push 0x104
push eax
call fcn.00433dd5
lea eax, [ebp - 0x208]
push 0x5c
push eax
call fcn.00432724
mov edi, eax
add esp, 0x14
test edi, edi
je 0x41c8ea
add edi, 2
push 0x5c
push edi
call fcn.00432724
mov esi, eax
add esp, 8
test esi, esi
je 0x41c8ac
xor eax, eax
mov word [esi], ax
lea eax, [ebp - 0x208]
push eax
call ebx
test eax, eax
jne 0x41c8a1
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x41c8a1
cmp dword [0x46237c], 6
jb 0x41c8a1
push ecx
lea ecx, [ebp - 0x208]
call fcn.0041d300
mov eax, 0x5c
mov word [esi], ax
lea edi, [esi + 2]
cmp word [edi], 0
je 0x41c8b6
test esi, esi
jne 0x41c857
lea eax, [ebp - 0x208]
push eax
call ebx
test eax, eax
jne 0x41c8ea
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x41c8ea
cmp dword [0x46237c], 6
jb 0x41c8ea
push ecx
lea ecx, [ebp - 0x208]
call fcn.0041d300
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41cc70
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, edx
push ebx
push esi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x41cd41
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41cd41
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x41cd41
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41ccfe
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x41cd41
mov ecx, edi
call fcn.0041c900
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x41cd41
cmp dword [0x46237c], 6
jb 0x41cd0f
push ecx
mov ecx, edi
call fcn.0041d300
cmp esi, 0xffffffff
je 0x41cd41
push 0
lea eax, [ebp + 8]
push eax
push dword [ebp - 4]
mov dword [ebp + 8], 0
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x41d030
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [0x46237c], 6
jb 0x41d052
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0
call fcn.0041cf90
test eax, eax
jne 0x41d0aa
push esi
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.SensApi.dll_IsNetworkAlive]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41d07b
test esi, esi
je 0x41d07b
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x41d0a7
mov eax, dword [ebp - 4]
test al, 0x20
jne 0x41d0a7
test al, 7
je 0x41d0a7
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41d0b0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2264
call fcn.0043aa10
push ebx
push esi
push edi
push 0x40
lea eax, [ebp - 0x54]
push 0
push eax
mov edi, edx
mov esi, ecx
call fcn.00434de0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x260], ax
lea eax, [ebp - 0x25e]
xorps xmm0, xmm0
push eax
mov dword [ebp - 0x10], 0
movq qword [ebp - 0xc], xmm0
mov dword [ebp - 4], 0
call fcn.00434de0
add esp, 0x18
mov dword [ebp - 0x58], 0x44
test esi, esi
je 0x41d141
cmp word [esi], 0
je 0x41d141
push esi
lea eax, [ebp - 0x260]
push 0x104
push eax
call fcn.00433dd5
add esp, 0xc
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
test eax, eax
je 0x41d141
xor ecx, ecx
mov dword [eax - 2], ecx
xor eax, eax
cmp word [ebp - 0x260], ax
lea ebx, [ebp - 0x260]
cmove ebx, eax
test edi, edi
je 0x41d1c5
cmp word [edi], ax
je 0x41d1c5
push 0x1ffe
push eax
mov word [ebp - 0x2260], ax
lea eax, [ebp - 0x225e]
push eax
call fcn.00434de0
add esp, 0xc
lea eax, [ebp - 0x2260]
push edi
test esi, esi
je 0x41d199
push esi
push str.__s___s
push 0x1000
push eax
call fcn.0041d220
add esp, 0x14
jmp 0x41d1a7
push 0x1000
push eax
call fcn.00433dd5
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x58]
push eax
push ebx
push 0
push 0x20
push 0
push 0
push 0
lea eax, [ebp - 0x2260]
push eax
push 0
jmp 0x41d1db
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x58]
push eax
push ebx
push 0
push 0x20
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
test edi, edi
je 0x41d208
mov eax, dword [ebp + 8]
test eax, eax
je 0x41d1f8
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x41db30
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x41db42
xor eax, eax
pop edi
pop ebp
ret 0x1c
push esi
push 0x14
call fcn.00431c77
mov esi, eax
add esp, 4
test esi, esi
je 0x41db68
mov eax, dword [section..data]
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0xc], eax
jmp 0x41db6a
xor esi, esi
push dword [ebp + 0x18]
mov eax, dword [ebp + 0xc]
push 0
push esi
push 0x41da30
mov dword [esi + 4], eax
mov eax, dword [ebp + 0x10]
push 0
push 0
mov dword [esi], edi
mov dword [esi + 8], eax
mov dword [esi + 0x10], 1
call fcn.0043295d
add esp, 0x18
pop esi
pop edi
pop ebp
ret 0x1c
Function at 0x420090
Capabilities:
Get file size
Read file on windows
Timestomp file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x44ad60
push eax
mov dword fs:[0], esp
mov eax, dword [ebp + 8]
sub esp, 0x28
push ebx
push esi
push edi
xor edi, edi
test eax, eax
je 0x420199
push edi
push edi
push 3
push edi
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4201f3
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x34]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push esi
call fcn.00431a3c
add esp, 4
lea ecx, [ebp + 8]
push edi
push ecx
push esi
push eax
push ebx
mov dword [ebp + 0xc], eax
mov dword [ebp + 8], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x420172
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], edi
push dword [ebp + 8]
lea ecx, [ebp - 0x1c]
push dword [ebp + 0xc]
call fcn.0041e4c0
mov esi, dword [ebp - 0x1c]
test eax, eax
js 0x42015e
push edi
push edi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push edi
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x18]
mov dword [ebp - 0x10], edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, 1
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x420172
push esi
call fcn.00431e88
add esp, 4
push dword [ebp + 0xc]
call fcn.00431e88
add esp, 4
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x34]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4201f3
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x4201f3
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 1
mov eax, dword [ebx]
push ebx
call dword [eax + 0x10]
push eax
mov eax, dword [ebx]
push ebx
call dword [eax + 0xc]
push eax
lea ecx, [ebp - 0x14]
call fcn.0041e4c0
test eax, eax
mov eax, dword [ebp - 0x14]
js 0x4201e6
mov esi, dword [ebp - 0x10]
mov eax, dword [ebx]
push esi
push ebx
call dword [eax + 0x14]
mov eax, dword [ebx]
push esi
push dword [ebp - 0x14]
push ebx
call dword [eax + 0x18]
mov eax, dword [ebp - 0x14]
mov edi, 1
test eax, eax
je 0x4201f3
push eax
call fcn.00431e88
add esp, 4
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x422ef0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44af18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
test esi, esi
je 0x422f67
mov eax, dword [section..data]
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push esi
lea eax, [ebp - 0x10]
push str._s.bfdown
push eax
mov dword [ebp - 4], 0
call fcn.0040be40
mov esi, dword [ebp - 0x10]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x422f67
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x423380
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0xc]
cmp dword [eax - 0xc], 0
je 0x423404
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, dword [esi + 0xc]
push 0
push 0
push 1
push 0
push 0
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4233e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x4233f5
mov ecx, ebx
call fcn.0041c900
push 0
push 0
push 1
push 0
push 0
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4233f5
cmp dword [0x46237c], 6
jb 0x4233f5
push ecx
mov ecx, ebx
call fcn.0041d300
xor ecx, ecx
mov eax, edi
cmp edi, 0xffffffff
cmove eax, ecx
pop edi
mov dword [esi + 4], eax
pop ebx
pop esi
ret

Function at 0x423410
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
mov eax, dword [esi + 0x24]
test eax, eax
je 0x42345d
mov dword [eax + 0xc], 0
cmp byte [esi + 0x28], 0
je 0x42345d
mov eax, dword [esi + 4]
test eax, eax
je 0x42345d
push 0
push 0
push 0x18
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 8]
push eax
push 0x14
lea eax, [ebp - 4]
push eax
push dword [esi + 4]
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x423470
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x18]
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
test eax, eax
je 0x42349f
push eax
call fcn.00431e88
add esp, 4
mov dword [esi + 0x18], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x4234b4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
mov eax, dword [esi + 0xc]
pop esi
cmp dword [eax - 0xc], 0
je 0x4234c5
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
ret
Function at 0x423610
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
mov eax, dword [edi + 8]
cmp dword [eax - 0xc], 0
jne 0x423651
push 0x2c
call fcn.00431a3c
mov ecx, dword [ebp + 0x10]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], eax
mov dword [eax + 8], ecx
mov eax, dword [edi + 0x1c]
add esp, 4
mov dword [eax + 0x14], 1
mov eax, dword [edi + 0x18]
add eax, 0x18
mov dword [edi + 0x20], 1
mov dword [edi + 0x24], eax
jmp 0x42369f
cmp dword [ebp + 0xc], 0
je 0x4236c1
cmp dword [edi + 0x1c], 0
je 0x423662
call fcn.00423470
push 0x2c
mov byte [edi + 0x28], 0
call fcn.00431a3c
mov ecx, dword [ebp + 0x10]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], eax
mov dword [eax + 8], ecx
mov eax, dword [edi + 0x1c]
add esp, 4
mov dword [eax + 0x14], 1
mov eax, dword [edi + 0x18]
add eax, 0x18
mov dword [edi + 0x24], eax
mov dword [edi + 0x20], 1
mov dword [eax], 0
mov eax, dword [edi + 0x24]
mov dword [eax + 0x10], ecx
mov eax, dword [edi + 0x24]
mov dword [eax + 4], 0
mov eax, dword [edi + 0x24]
mov dword [eax + 8], ecx
mov eax, dword [edi + 0x24]
pop edi
mov dword [eax + 0xc], 0
pop ebp
ret 0xc
cmp dword [edi + 0x1c], 0
jne 0x42376e
push esi
push 0x2c
mov dword [edi + 0x20], 1
call fcn.00431a3c
mov esi, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
mov dword [edi + 0x1c], eax
mov dword [edi + 0x18], eax
mov dword [eax], 0x2e42462e
mov eax, dword [edi + 0x1c]
add esp, 4
mov dword [eax + 4], 2
mov eax, dword [edi + 0x1c]
mov dword [eax + 8], esi
mov eax, dword [ecx]
mov edx, dword [edi + 0x1c]
mov dword [edx + 0xc], eax
mov eax, dword [ecx + 4]
mov dword [edx + 0x10], eax
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x20]
mov dword [ecx + 0x14], eax
mov eax, dword [edi + 0x18]
add eax, 0x18
mov dword [edi + 0x24], eax
mov dword [eax], 0
mov eax, dword [edi + 0x24]
mov dword [eax + 0x10], esi
mov eax, dword [edi + 0x24]
mov dword [eax + 4], 0
mov eax, dword [edi + 0x24]
mov dword [eax + 8], esi
mov eax, dword [edi + 0x24]
pop esi
mov dword [eax + 0xc], 0
cmp byte [edi + 0x28], 0
je 0x42376e
mov ecx, edi
call fcn.00423380
push 0
lea eax, [ebp + 0x10]
push eax
push 0x2c
push dword [edi + 0x18]
mov dword [ebp + 0x10], 0
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop ebp
ret 0xc
Function at 0x423810
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
push esi
mov esi, ecx
push dword [esi + 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4238cd
push 0x24c
lea eax, [ebp - 0x24c]
push 0
push eax
mov dword [ebp - 0x250], 0
call fcn.00434de0
add esp, 0xc
lea eax, [ebp - 0x250]
push eax
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x423869
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [esi + 8]
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x42388b
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0
push 3
push 0
push 1
push 0x40000000
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4238cd
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x24c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4238e0
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 8]
cmp dword [eax - 0xc], 0
je 0x423912
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x423901
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x3c], 0
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, esi
pop esi
jmp fcn.00423780
pop esi
ret