joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41cfe0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x880
mov eax, dword [0x4663e0]
xor eax, esp
mov dword [esp + 0x87c], eax
mov eax, dword [esp + 0x888]
push ebx
mov ebx, dword [esp + 0x8a0]
push ebp
mov ebp, dword [esp + 0x8a0]
push esi
mov esi, dword [esp + 0x890]
push edi
push esi
mov edi, ecx
lea ecx, [esp + 0x684]
push 0x104
push ecx
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], eax
call fcn.00439323
add esp, 0xc
push 0x456b14
lea edx, [esp + 0x684]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x684]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
jne 0x41d090
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.__Error_0x_X_retrieving_folder_contents
push 0x4676a0
xor eax, eax
call fcn.0042cad0
add esp, 0xc
jmp 0x41d207
mov ecx, 0x456b20
lea eax, [esp + 0x4c]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41d0c6
test dx, dx
je 0x41d0c2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41d0c6
add eax, 4
add ecx, 4
test dx, dx
jne 0x41d0a0
xor eax, eax
jmp 0x41d0cb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41d1d5
mov ecx, 0x456b24
lea eax, [esp + 0x4c]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41d106
test dx, dx
je 0x41d102
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41d106
add eax, 4
add ecx, 4
test dx, dx
jne 0x41d0e0
xor eax, eax
jmp 0x41d10b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41d1d5
push esi
lea edx, [esp + 0x47c]
push 0x104
push edx
call fcn.00439323
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
add esp, 0xc
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x47c]
push ecx
call esi
mov edx, dword [esp + 0x18]
push edx
lea eax, [esp + 0x274]
push 0x104
push eax
call fcn.00439323
add esp, 0xc
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x274]
push edx
call esi
test byte [esp + 0x20], 0x10
je 0x41d1a1
mov eax, dword [esp + 0x8a4]
mov ecx, dword [esp + 0x8a0]
mov edx, dword [esp + 0x89c]
push ebx
push ebp
push eax
push ecx
push edx
lea eax, [esp + 0x284]
push eax
lea ecx, [esp + 0x490]
push ecx
mov ecx, edi
call fcn.0041cfe0
jmp 0x41d1cb
mov edx, dword [esp + 0x8a4]
mov eax, dword [esp + 0x89c]
push ebp
push edx
push eax
lea ecx, [esp + 0x27c]
push ecx
lea edx, [esp + 0x488]
push edx
mov edx, ebx
mov ecx, edi
call fcn.0041d390
mov esi, eax
test esi, esi
jne 0x41d1fc
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41d090
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x12
jne 0x41d1fc
xor esi, esi
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x88c]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0043782a
add esp, 0x880
ret 0x1c
Function at 0x41d230
Capabilities:
Copy file
Get common file path
Move file

Disassembly:
sub esp, 0x41c
mov eax, dword [0x4663e0]
xor eax, esp
mov dword [esp + 0x418], eax
push ebp
mov ebp, dword [esp + 0x424]
push edi
lea eax, [esp + 0x218]
push eax
push 0x104
mov edi, ecx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [esp + 0x10]
push ecx
push 0
push 0x45a2d0
lea edx, [esp + 0x224]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0
push 0
push 3
push 0
push 1
push 0x20000
lea ecx, [esp + 0x28]
push ecx
mov dword [esi], 0
mov dword [esi + 4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x41d2db
push esi
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 8]
push edx
push 0
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 4
push 1
push ebp
call dword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
test eax, eax
jne 0x41d338
push str.____Transfering_source_file_security
push 0x4676a0
call fcn.0042cad0
mov ecx, dword [esp + 0x14]
add esp, 8
push 0
push ecx
push 0
push 0
push 0x80000004
push 1
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
mov eax, dword [esp + 8]
test eax, eax
je 0x41d338
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 5
push ebp
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [esp + 0x10]
push ecx
push str.____Source:__s
push 0x4676a0
xor eax, eax
call fcn.0042cad0
push ebp
push str.____Destination:__s
push 0x4676a0
xor eax, eax
call fcn.0042cad0
mov ecx, dword [esp + 0x438]
add esp, 0x18
pop edi
pop ebp
xor ecx, esp
call fcn.0043782a
add esp, 0x41c
ret 4
Function at 0x41da40
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x451166
mov eax, dword fs:[0]
push eax
sub esp, 0xa54
mov eax, dword [0x4663e0]
xor eax, esp
mov dword [esp + 0xa50], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4663e0]
xor eax, esp
push eax
lea eax, [esp + 0xa68]
mov dword fs:[0], eax
mov eax, dword [esp + 0xa78]
mov ebp, dword [esp + 0xa7c]
mov dword [esp + 0x20], ecx
xor ecx, ecx
or edi, 0xffffffff
mov dword [esp + 0x1c], 0x400
mov dword [esp + 0x58], 7
mov dword [esp + 0x54], ecx
mov word [esp + 0x44], cx
mov dword [esp + 0xa70], ecx
cmp byte [eax + 0x3e], cl
je 0x41dbe5
add eax, 0x18
push eax
mov ebx, str.Uninstall
lea esi, [esp + 0x28]
call fcn.004105f0
add esp, 4
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x48]
mov byte [esp + 0xa78], 1
call fcn.004040b0
mov esi, 8
mov byte [esp + 0xa70], 0
cmp dword [esp + 0x3c], esi
jb 0x41db05
mov edx, dword [esp + 0x28]
push edx
call fcn.00439059
add esp, 4
cmp dword [esp + 0x58], esi
mov eax, dword [esp + 0x44]
jae 0x41db13
lea eax, [esp + 0x44]
push 0
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop
add edi, 1
push edi
push ebp
lea edx, [esp + 0x64]
push str._s_d
push edx
call esi
mov ecx, dword [esp + 0x28]
add esp, 0x10
push 0
push 0
push 0
push 0
lea eax, [esp + 0x6c]
push eax
push ecx
call ebx
cmp eax, 2
jne 0x41db40
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x268]
push eax
mov eax, dword [esp + 0x28]
call fcn.00436110
mov ecx, dword [esp + 0x24]
add esp, 8
lea edx, [ecx + ecx]
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x268]
push eax
push 7
push 0
lea ecx, [esp + 0x6c]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x41dbc6
push eax
push str.Error_creating_uninstall_key_0x_X
push 0x4676a0
mov eax, 2
call fcn.0042cad0
add esp, 0xc
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x58], 8
jb 0x41dbe5
mov ecx, dword [esp + 0x44]
push ecx
call fcn.00439059
add esp, 4
mov ecx, dword [esp + 0xa68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xa50]
xor ecx, esp
call fcn.0043782a
add esp, 0xa60
ret 8
Function at 0x425cc0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
push edi
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x425ce7
xor eax, eax
pop edi
pop ecx
ret
push ebp
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
cmp ebp, 0x989680
jbe 0x425d08
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
xor eax, eax
pop edi
pop ecx
ret
push ebx
push esi
lea ebx, [ebp + 2]
push ebx
call fcn.00437631
push ebx
mov esi, eax
push 0
push esi
call fcn.00443300
add esp, 0x10
push 0
lea ecx, [esp + 0x14]
push ecx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x425d40
mov ecx, dword [esp + 0x18]
sub eax, edx
push eax
push esi
call fcn.00406970
push esi
call fcn.00439b7b
add esp, 4
pop esi
pop ebx
pop ebp
mov eax, 1
pop edi
pop ecx
ret
Function at 0x425d70
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 8
push edi
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x425d9b
xor eax, eax
pop edi
add esp, 8
ret
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0x989680
jbe 0x425dbe
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor eax, eax
pop edi
add esp, 8
ret
push ebx
push ebp
lea ebp, [esi + 2]
push ebp
call fcn.00437631
push ebp
mov ebx, eax
push 0
push ebx
call fcn.00443300
add esp, 0x10
push 0
lea ecx, [esp + 0x18]
push ecx
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 0xfe
jbe 0x425dfd
mov esi, 0xfe
jmp 0x425e00
and esi, 0xfffffffe
push 0
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_IsTextUnicode]
test eax, eax
je 0x425e4f
cmp byte [ebx], 0xff
jne 0x425e2b
cmp byte [ebx + 1], 0xfe
jne 0x425e2b
mov eax, dword [esp + 0x1c]
lea edx, [ebx + 2]
push eax
call fcn.00402b50
jmp 0x425ee6
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x425e30
mov esi, dword [esp + 0x1c]
sub eax, edx
sar eax, 1
push eax
push ebx
call fcn.00404160
jmp 0x425ee6
cmp byte [ebx], 0xef
mov dword [esp + 0x10], ebx
jne 0x425e6b
cmp byte [ebx + 1], 0xbb
jne 0x425e6b
cmp byte [ebx + 2], 0xbf
jne 0x425e6b
lea ecx, [ebx + 3]
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x10]
push 0
push 0
push 0xffffffffffffffff
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ebp, eax
xor ecx, ecx
lea esi, [ebp + 2]
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00437631
push esi
mov edi, eax
push 0
push edi
call fcn.00443300
mov eax, dword [esp + 0x20]
add esp, 0x10
push ebp
push edi
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x425ec3
mov esi, dword [esp + 0x1c]
sub eax, edx
sar eax, 1
push eax
push edi
call fcn.00404160
push edi
call fcn.00439b7b
add esp, 4
push ebx
call fcn.00439b7b
add esp, 4
pop ebp
pop ebx
pop esi
mov eax, 1
pop edi
add esp, 8
ret
Function at 0x426300
Capabilities:
Get file version info

Disassembly:
sub esp, 0x220
mov eax, dword [0x4663e0]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
mov ebx, ecx
test ebx, ebx
push esi
push edi
jne 0x426332
push 0x208
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ebx, [esp + 0x18]
lea ecx, [esp + 0x10]
push ecx
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
jne 0x42635d
xor edx, edx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.0043782a
add esp, 0x220
ret
push edi
call fcn.00437631
add esp, 4
mov esi, eax
push esi
push edi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x10]
push eax
push 0x456b1c
push esi
call sub.VERSION.dll_VerQueryValueW
mov eax, dword [esp + 0xc]
mov ebx, dword [eax + 8]
mov ecx, dword [eax + 0xc]
xor edx, edx
xor edi, edi
push esi
or edi, ecx
or ebx, edx
call fcn.00439b7b
mov ecx, dword [esp + 0x228]
add esp, 4
mov eax, edi
pop edi
pop esi
mov edx, ebx
pop ebx
xor ecx, esp
call fcn.0043782a
add esp, 0x220
ret
Function at 0x426550
Capabilities:
Check if file exists
Delete file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x450f2b
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x4663e0]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4663e0]
xor eax, esp
push eax
lea eax, [esp + 0x238]
mov dword fs:[0], eax
xor ebp, ebp
mov edi, ecx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x240], ebp
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebp
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x7c
lea ecx, [esp + 0x20]
call fcn.00436930
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
add esp, 4
xor esi, esi
nop
mov eax, dword [esp + 0x20]
cmp eax, ebp
je 0x4266b8
mov ecx, dword [esp + 0x24]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jae 0x4266b8
push esi
lea eax, [esp + 0x20]
call fcn.00427020
cmp dword [eax + 0x18], 8
jb 0x426612
mov eax, dword [eax + 4]
jmp 0x426615
add eax, 4
push eax
lea eax, [esp + 0x30]
push 0x104
push eax
call fcn.00439323
add esp, 0xc
push 0x80
lea ecx, [esp + 0x30]
push ecx
call edi
lea edx, [esp + 0x2c]
push edx
call ebx
test eax, eax
je 0x426660
lea eax, [esp + 0x2c]
push eax
push str.Deleting_file___s_.
push 0x4676a0
xor eax, eax
call fcn.0042cad0
add esp, 0xc
add esi, 1
jmp 0x4265d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x42668f
lea ecx, [esp + 0x2c]
push ecx
push str.File_not_found_when_attempting_deletion___s_.
push 0x4676a0
mov eax, 1
call fcn.0042cad0
add esp, 0xc
add esi, 1
jmp 0x4265d0
cmp eax, ebp
je 0x4266b0
lea edx, [esp + 0x2c]
push edx
push eax
push str.Error_0x_X_raised_while_deleting___s_.
push 0x4676a0
mov eax, 2
call fcn.0042cad0
add esp, 0x10
add esi, 1
jmp 0x4265d0
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0x20]
cmp eax, ebp
je 0x4266e9
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x24]
push ecx
call fcn.00411400
mov edx, dword [esp + 0x24]
add esp, 4
push edx
call fcn.00439059
add esp, 4
mov ecx, dword [esp + 0x238]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.0043782a
add esp, 0x230
ret

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

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4663e0]
xor eax, esp
mov dword [esp + 0x208], eax
push 0x104
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push str.temp
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push esi
push 0
push 0x45a2d0
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0043782a
add esp, 0x20c
ret
Function at 0x426790
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x670
mov eax, dword [0x4663e0]
xor eax, esp
mov dword [esp + 0x66c], eax
mov eax, dword [esp + 0x674]
push ebx
mov ebx, dword [esp + 0x67c]
push ebp
push esi
push edi
push eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x474]
push 0x104
push eax
mov esi, ecx
xor edi, edi
call fcn.00439323
add esp, 0xc
lea ecx, [esp + 0x470]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push ebx
lea edx, [esp + 0x474]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x474]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x426818
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x42694f
mov ebp, dword [esp + 0x68c]
nop
mov ecx, 0x456b20
lea eax, [esp + 0x44]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x426856
test dx, dx
je 0x426852
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x426856
add eax, 4
add ecx, 4
test dx, dx
jne 0x426830
xor eax, eax
jmp 0x42685b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x42690e
mov ecx, 0x456b24
lea eax, [esp + 0x44]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x426896
test dx, dx
je 0x426892
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x426896
add eax, 4
add ecx, 4
test dx, dx
jne 0x426870
xor eax, eax
jmp 0x42689b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x42690e
mov edx, dword [esp + 0x14]
push edx
lea eax, [esp + 0x26c]
push 0x104
push eax
call fcn.00439323
add esp, 0xc
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x26c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test byte [esp + 0x18], 0x10
push ebp
je 0x4268f6
push ebx
lea eax, [esp + 0x270]
push eax
mov ecx, esi
call fcn.00426790
mov edx, dword [esi]
mov edx, dword [edx + 4]
mov edi, eax
push ebp
lea eax, [esp + 0x26c]
push eax
jmp 0x426902
mov eax, dword [esi]
mov edx, dword [eax]
lea ecx, [esp + 0x26c]
push ecx
mov ecx, esi
call edx
test al, al
jne 0x42696a
test edi, edi
jne 0x426936
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x426820
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
je 0x426820
cmp edi, 0x12
je 0x426940
cmp edi, 3
jne 0x426942
xor edi, edi
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, edi
mov ecx, dword [esp + 0x67c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0043782a
add esp, 0x670
ret 0xc
mov edi, 0x4c7
jmp 0x426942
Function at 0x426ab0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x87c
mov eax, dword [0x4663e0]
xor eax, esp
mov dword [esp + 0x878], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
lea ecx, [esp + 0x67c]
push 0x104
push ecx
mov dword [esp + 0x20], eax
call fcn.00439323
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
add esp, 0xc
push 0x4589e4
lea edx, [esp + 0x67c]
push edx
call edi
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x67c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x10], esi
jne 0x426b40
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x878]
xor ecx, esp
call fcn.0043782a
mov esp, ebp
pop ebp
ret
mov ecx, 0x456b20
lea eax, [esp + 0x44]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x426b76
test dx, dx
je 0x426b72
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x426b76
add eax, 4
add ecx, 4
test dx, dx
jne 0x426b50
xor eax, eax
jmp 0x426b7b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x426c7a
mov ecx, 0x456b24
lea eax, [esp + 0x44]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x426bb6
test dx, dx
je 0x426bb2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x426bb6
add eax, 4
add ecx, 4
test dx, dx
jne 0x426b90
xor eax, eax
jmp 0x426bbb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x426c7a
push ebx
lea edx, [esp + 0x474]
push 0x104
push edx
call fcn.00439323
add esp, 0xc
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x474]
push ecx
call edi
mov edx, dword [esp + 0x14]
push edx
lea eax, [esp + 0x26c]
push 0x104
push eax
call fcn.00439323
add esp, 0xc
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x26c]
push edx
call edi
test byte [esp + 0x18], 0x10
je 0x426c4e
cmp byte [ebp + 0x10], 0
je 0x426c7a
push 0
lea eax, [esp + 0x26c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [esp + 0x26c]
push edx
lea eax, [esp + 0x478]
push eax
call fcn.00426ab0
add esp, 0xc
jmp 0x426c70
push 0
lea ecx, [esp + 0x26c]
push ecx
lea edx, [esp + 0x478]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x426c7a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x426c9d
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x426b40
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x12
jne 0x426c9d
xor esi, esi
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x884]
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.0043782a
mov esp, ebp
pop ebp
ret
Function at 0x426cc0
Capabilities:
Create directory
Get common file path

Disassembly:
sub esp, 0x218
mov eax, dword [0x4663e0]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push esi
xor bl, bl
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x426cfa
mov al, 1
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0043782a
add esp, 0x218
ret
push 0
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
jne 0x426d54
lea eax, [esp + 8]
push eax
push 0
push 0x45a2d0
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jbe 0x426d4b
push 0
push 0x4000000
push 2
push 0
push 5
push 0xc0000000
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x426d4b
push eax
mov bl, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.004263c0
add esp, 4
mov ecx, dword [esp + 0x214]
mov al, bl
pop ebx
xor ecx, esp
call fcn.0043782a
add esp, 0x218
ret

Function at 0x426d70
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
sub esp, 0x414
mov eax, dword [0x4663e0]
xor eax, esp
mov dword [esp + 0x410], eax
push edi
lea eax, [esp + 0x20c]
push eax
push 0x104
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [esp + 4]
push ecx
push edi
push 0x45a2d0
lea edx, [esp + 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 4]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x426de0
push 4
push edi
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x426dfc
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.0043782a
add esp, 0x414
ret
mov ecx, dword [esp + 0x414]
mov eax, edi
pop edi
xor ecx, esp
call fcn.0043782a
add esp, 0x414
ret

Function at 0x427dd0
Capabilities:
Create thread

Disassembly:
push edi
xor edi, edi
push edi
push edi
push esi
push 0x427e00
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 4], eax
jne 0x427df1
pop edi
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, edi
pop edi
ret

Function at 0x4280c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x452e1e
mov eax, dword fs:[0]
push eax
push ebx
push edi
mov eax, dword [0x4663e0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov edi, dword [esp + 0x1c]
lea eax, [edi + 0x40]
mov dword [esp + 0x14], 2
call fcn.00422d40
cmp dword [edi + 0x30], 8
jb 0x428108
mov eax, dword [edi + 0x1c]
push eax
call fcn.00439059
add esp, 4
xor ebx, ebx
mov dword [edi + 0x30], 7
mov dword [edi + 0x2c], ebx
lea eax, [edi + 0xc]
mov word [edi + 0x1c], bx
mov byte [esp + 0x14], bl
call fcn.00403080
mov dword [esp + 0x14], 0xffffffff
call fcn.00421bc0
mov eax, dword [edi + 4]
push eax
call fcn.00439059
add esp, 4
mov dword [edi + 4], ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0xc
ret 4