joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403fdb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x42f006
call fcn.0042ef64
sub esp, 0x644
push ebx
mov ebx, ecx
lea ecx, [ebp - 0x2c]
push esi
call fcn.0040a3ee
xor esi, esi
mov eax, ecx
mov dword [ebp - 4], esi
push dword [ebx + 0x646]
push dword [ebx + 0x642]
push ecx
push 0x83
push eax
mov ecx, ebx
call fcn.004043a4
test eax, eax
je 0x40339c
push edi
push esi
lea ecx, [ebx + 0x12dc]
call fcn.0040b37e
lea edx, [ebp - 0x238]
mov ecx, eax
call fcn.00404d3c
mov eax, dword [ebx + 0x64e]
xorps xmm0, xmm0
add eax, dword [ebx + 0x64a]
movlpd qword [ebp - 0x18], xmm0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x20], esi
pop ecx
test eax, eax
jle 0x40335b
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x28]
lea edi, [ebp - 0x650]
add eax, ecx
mov ecx, 0x106
mov esi, eax
add eax, 0x418
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x238]
push ecx
push eax
lea eax, [ebp - 0x650]
mov ecx, ebx
push eax
call fcn.004033b6
test eax, eax
je 0x403399
mov eax, dword [ebp - 0x23c]
mov ecx, dword [ebp - 0x14]
add eax, 0x418
add ecx, eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], ecx
adc dword [ebp - 0x1c], 0
inc eax
mov dword [ebp - 0x20], eax
cmp eax, dword [ebp - 0x10]
jl 0x403305
call fcn.0041181b
lea esi, [eax + 4]
lea eax, [ebp - 0x238]
mov ecx, esi
push eax
call fcn.0040b619
mov ecx, esi
call fcn.0040b5de
dec eax
lea edx, [ebp - 0x10]
push eax
mov ecx, esi
call fcn.0040b6f1
push eax
mov ecx, esi
call fcn.0040b601
lea ecx, [ebp - 0x10]
call fcn.0040b313
xor esi, esi
inc esi
jmp 0x40339b
xor esi, esi
pop edi
lea ecx, [ebp - 0x2c]
call fcn.0040a3ff
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push ecx
push esi
push edi
push 0xc
mov edi, ecx
call fcn.004185d0
pop ecx
mov ecx, eax
mov dword [esp + 8], eax
call fcn.0040a3ee
push dword [edi + 0x652]
mov dword [edi + 0x1308], eax
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 4]
push str.INFOEXE
push 0x7d
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
push dword [edi + 0x652]
mov ecx, dword [edi + 0x1308]
push eax
push dword [ecx + 4]
call fcn.0042d270
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, edi
pop edi
pop esi
add esp, 4
jmp 0x40327b
Function at 0x4044e8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x42f107
call fcn.0042ef64
sub esp, 0xc
push ebx
push esi
xor eax, eax
push edi
mov edi, ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
push str.FILEPATH
mov byte [ebp - 4], 2
mov ebx, dword [sym.imp.KERNEL32.dll_FindResourceW]
push 0x6d
push dword [edi + 4]
call ebx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, eax
call fcn.0040bfb4
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push str.FILEPATH
push 0x6e
push dword [edi + 4]
call ebx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040b619
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push str.FILEPATH
push 0x6f
push dword [edi + 4]
call ebx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040b619
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
lea ecx, [ebp - 0x14]
call fcn.0040b37e
lea ecx, [ebp - 0x18]
mov edx, eax
call fcn.0040b37e
mov ecx, eax
call fcn.0040bfc2
push str.FILEPATH
push 0x70
push dword [edi + 4]
call ebx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040b619
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x404602
xor ecx, ecx
cmp word [eax], cx
je 0x404602
lea ecx, [ebp - 0x10]
call fcn.0040b37e
mov ecx, eax
call fcn.0040c071
push str.INFOEXE
push 0x7f
push dword [edi + 4]
call ebx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
test edi, edi
je 0x404635
mov ecx, dword [edi]
call fcn.0040c099
lea ecx, [ebp - 0x10]
call fcn.0040b313
lea ecx, [ebp - 0x14]
call fcn.0040b313
lea ecx, [ebp - 0x18]
call fcn.0040b313
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x404fd6
Capabilities:
Persist via windows service
Set registry value

Disassembly:
sub esp, 0x134
push ebx
push ebp
push esi
push edi
mov ebp, edx
lea edi, [esp + 0x18]
mov edx, ecx
mov esi, str.SYSTEMCurrentControlSetServicesEventLogApplication_
push 0x1c
pop ecx
rep movsd dword es:[edi], dword [esi]
mov esi, edx
xor ebx, ebx
mov ax, word [edx]
add edx, 2
cmp ax, bx
jne 0x404ff6
lea edi, [esp + 0x18]
sub edx, esi
sub edi, 2
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x40500a
mov ecx, edx
lea eax, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push eax
mov ecx, edx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x405041
xor eax, eax
jmp 0x4050b2
mov ecx, ebp
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x405046
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push ebp
push 2
push ebx
push str.EventMessageFile
push dword [esp + 0x24]
call esi
test eax, eax
je 0x405082
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40503d
push 4
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 7
push eax
push 4
push ebx
push str.TypesSupported
push dword [esp + 0x24]
call esi
test eax, eax
jne 0x4050a6
xor ebx, ebx
inc ebx
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x134
ret

Function at 0x405cca
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push esi
lea eax, [esp + 4]
xor esi, esi
push eax
push 0x20019
push esi
push 0x437340
push 0x80000002
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405da0
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0xc]
push ebp
push eax
push esi
lea eax, [esp + 0x1c]
mov ebp, str.ProductSuite
push eax
push esi
push ebp
push dword [esp + 0x20]
call ebx
test eax, eax
jne 0x405d9e
cmp dword [esp + 0x10], esi
je 0x405d9e
push edi
push dword [esp + 0x14]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x405d9d
lea eax, [esp + 0x14]
push eax
push edi
lea eax, [esp + 0x20]
push eax
push esi
push ebp
push dword [esp + 0x24]
call ebx
test eax, eax
jne 0x405d96
cmp dword [esp + 0x18], 7
jne 0x405d96
mov ebx, edi
cmp word [edi], si
je 0x405d96
push str.Terminal_Server
push ebx
call fcn.0041c2a7
pop ecx
pop ecx
test eax, eax
je 0x405d93
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x405d77
sub ecx, edx
sar ecx, 1
lea ebx, [ebx + ecx*2]
add ebx, 2
cmp word [ebx], si
jne 0x405d61
jmp 0x405d96
xor esi, esi
inc esi
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop ebp
pop ebx
cmp dword [esp + 4], 0
je 0x405db1
push dword [esp + 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0xc
ret
Function at 0x405f71
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x668
push edi
mov edi, ecx
lea ecx, [edi + 0xc]
mov eax, dword [ecx + 0x20c]
test eax, eax
cmovne ecx, eax
call fcn.00407f1f
test eax, eax
je 0x405f9b
xor eax, eax
jmp 0x4060b3
push str.NTDLL.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x405f94
push esi
push str.NtQueryInformationFile
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x4060b2
push ebx
push 0x20e
xor ebx, ebx
lea eax, [ebp - 0x258]
push ebx
push eax
call fcn.0041b200
add esp, 0xc
lea eax, [ebp - 0x258]
push 9
push 0x20c
push eax
lea eax, [ebp - 0x14]
push eax
push dword [edi + 0x21c]
call esi
test eax, eax
js 0x4060af
mov eax, dword [ebp - 0x258]
xor ecx, ecx
shr eax, 1
mov word [ebp + eax*2 - 0x254], cx
lea eax, [ebp - 0x48]
push eax
push dword [edi + 0x21c]
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x4060af
push 0x410
lea eax, [ebp - 0x668]
push ebx
push eax
call fcn.0041b200
add esp, 0xc
lea eax, [ebp - 0x668]
push eax
push 0x207
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov eax, dword [0x437408]
lea esi, [ebp - 0x668]
mov dword [ebp - 0xc], eax
mov eax, dword [0x43740c]
mov dword [ebp - 8], eax
movzx eax, word [esi]
mov word [ebp - 0xc], ax
cmp eax, 0x41
je 0x40609f
cmp eax, 0x42
je 0x40609f
lea ecx, [ebp - 0xc]
call fcn.00407ead
cmp eax, 3
jne 0x40609f
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push ebx
push ebx
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x2c]
je 0x4060ba
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x40609f
cmp word [esi], bx
jne 0x406062
xor eax, eax
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret 4
mov esi, dword [ebp + 8]
lea eax, [ebp - 0xc]
push 2
push eax
push esi
call fcn.0041bec7
push 0x102
lea eax, [ebp - 0x254]
push eax
lea eax, [esi + 4]
push eax
call fcn.0041bec7
xor eax, eax
add esp, 0x18
inc eax
jmp 0x4060b1
Function at 0x4061e9
Capabilities:
Write file on windows

Disassembly:
push ecx
push edi
mov edi, ecx
push 1
mov ecx, dword [edi + 8]
call fcn.0040cb41
cmp dword [esp + 0x10], 0
jne 0x406211
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x406209
and dword [ecx], 0
xor eax, eax
inc eax
jmp 0x4062d9
push ebx
push 0
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push dword [edi + 0x21c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x18]
mov ebx, eax
mov eax, dword [esp + 8]
add dword [edi + 0x220], eax
adc dword [edi + 0x224], 0
test ecx, ecx
je 0x40624a
mov dword [ecx], eax
test ebx, ebx
jne 0x4062d6
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi + 8]
mov esi, eax
push 3
call fcn.0040cb41
mov ecx, dword [edi + 8]
mov ebp, 0x435938
push 1
push ebp
call fcn.0040ca10
push ecx
mov ecx, dword [edi + 8]
push esi
call fcn.0040d1fa
push dword [edi + 0x21c]
push str._IXStream__Handle__p_
push dword [edi + 8]
call fcn.0040ce22
push dword [edi + 0x230]
push str._IXStream__Access__x_
push dword [edi + 8]
call fcn.0040ce22
add esp, 0x18
mov ecx, edi
call fcn.0040846d
push eax
push 0x6d68
push ebp
push dword [edi + 8]
call fcn.0040cc5d
add esp, 0x10
mov ecx, edi
call fcn.0040846d
mov ecx, dword [edi + 8]
push eax
push 1
call fcn.0040cec1
pop esi
pop ebp
mov eax, ebx
pop ebx
pop edi
pop ecx
ret 0xc
Function at 0x4062de
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
push 1
mov ecx, dword [esi + 8]
call fcn.0040cb41
mov eax, dword [esp + 0x28]
lea ebp, [esp + 0x18]
test eax, eax
push 0
cmovne ebp, eax
xor ecx, ecx
push ebp
test eax, eax
mov eax, dword [esp + 0x2c]
push eax
push dword [esp + 0x2c]
sete cl
mov dword [esp + 0x20], eax
and dword [ebp], 0
push dword [esi + 0x21c]
mov dword [esp + 0x28], ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x24], 0
mov edi, eax
mov ebx, dword [ebp]
jbe 0x406387
test edi, edi
jne 0x406387
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x406353
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xa2
jne 0x406387
mov eax, dword [esp + 0x10]
sub eax, dword [ebp]
mov ecx, dword [esp + 0x20]
add ecx, dword [ebp]
push 0
push ebp
push eax
push ecx
push dword [esi + 0x21c]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
add ebx, dword [ebp]
mov edi, eax
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x406335
mov dword [ebp], ebx
add dword [esi + 0x220], ebx
adc dword [esi + 0x224], 0
test edi, edi
je 0x4063af
cmp dword [esp + 0x28], 0
jne 0x4063a8
cmp ebx, dword [esp + 0x24]
jne 0x4063af
mov eax, edi
jmp 0x40644c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi + 8]
mov ebp, eax
push 3
call fcn.0040cb41
mov ecx, dword [esi + 8]
push 1
push 0x435938
call fcn.0040ca10
push ecx
mov ecx, dword [esi + 8]
test edi, edi
je 0x4063dc
push 0
jmp 0x4063dd
push ebp
call fcn.0040d1fa
push dword [esi + 0x21c]
push str._IXStream__Handle__p_
push dword [esi + 8]
call fcn.0040ce22
push dword [esp + 0x20]
push str._IXStream__bExact__d_
push dword [esi + 8]
call fcn.0040ce22
push ebx
push dword [esp + 0x40]
push str._IXStream__A_lire__u___lu__u_
push dword [esi + 8]
call fcn.0040ce22
add esp, 0x28
mov ecx, esi
call fcn.0040846d
push eax
push 0x6d63
push 0x435938
push dword [esi + 8]
call fcn.0040cc5d
add esp, 0x10
mov ecx, esi
call fcn.0040846d
mov ecx, dword [esi + 8]
push eax
push 1
call fcn.0040cec1
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
Function at 0x4068d2
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
push 1
mov ecx, dword [edi + 8]
call fcn.0040cb41
mov eax, dword [ebp + 0x10]
sub eax, 0
je 0x4068f3
sub eax, 1
jne 0x406906
push 2
jmp 0x4068f5
push 0
push dword [ebp + 0xc]
mov eax, dword [edi]
mov ecx, edi
push dword [ebp + 8]
call dword [eax + 0x24]
test eax, eax
jne 0x40690d
xor eax, eax
jmp 0x406995
push dword [edi + 0x21c]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x406992
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi + 8]
mov esi, eax
push 3
call fcn.0040cb41
mov ecx, dword [edi + 8]
mov ebx, 0x435938
push 1
push ebx
call fcn.0040ca10
push ecx
mov ecx, dword [edi + 8]
push esi
call fcn.0040d1fa
push dword [edi + 0x21c]
push str._IXStream__Handle__p_
push dword [edi + 8]
call fcn.0040ce22
add esp, 0xc
mov ecx, edi
call fcn.0040846d
push eax
push 0x6d64
push ebx
push dword [edi + 8]
call fcn.0040cc5d
add esp, 0x10
mov ecx, edi
call fcn.0040846d
mov ecx, dword [edi + 8]
push eax
push 1
call fcn.0040cec1
pop esi
xor eax, eax
pop ebx
jmp 0x406995
xor eax, eax
inc eax
pop edi
pop ebp
ret 0xc

Function at 0x407126
Capabilities:
Delete file

Disassembly:
push ecx
push ebp
push esi
push edi
push 0x8001
mov ebp, ecx
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [esp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.00401708
test eax, eax
je 0x40718d
push 1
mov esi, 0x435938
xor ecx, ecx
push esi
call fcn.0040ca10
push ebp
push 0x6ddb
push esi
push 0
call fcn.0040cc3d
add esp, 0x10
xor ecx, ecx
push ebp
push 1
call fcn.0040cec1
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebp
pop ecx
ret

Function at 0x407196
Capabilities:
Delete file

Disassembly:
push ecx
push ebp
push esi
push edi
push 0x8001
mov ebp, ecx
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [esp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x407213
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x407213
push ecx
mov edx, ebp
lea ecx, [esp + 0x10]
call fcn.00407794
pop ecx
test eax, eax
je 0x40720f
mov edx, dword [esp + 0xc]
push ecx
and edx, 0xfffffffe
mov ecx, ebp
call fcn.0040783d
pop ecx
test eax, eax
je 0x40720f
pop edi
pop esi
mov ecx, ebp
pop ebp
add esp, 4
jmp fcn.00407126
xor eax, eax
jmp 0x407248
call fcn.00401708
test eax, eax
je 0x407246
push 1
mov edi, 0x435938
xor ecx, ecx
push edi
call fcn.0040ca10
push ebp
push 0x6ddb
push edi
push 0
call fcn.0040cc3d
add esp, 0x10
xor ecx, ecx
push ebp
push 1
call fcn.0040cec1
mov eax, esi
pop edi
pop esi
pop ebp
pop ecx
ret
Function at 0x40724d
Capabilities:
Move file

Disassembly:
push ecx
push ecx
push ebp
push esi
push edi
mov esi, ecx
mov ebp, edx
push 0x8001
mov dword [esp + 0x10], esi
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.00401708
test eax, eax
je 0x4072cb
push 1
mov edi, 0x435938
xor ecx, ecx
push edi
call fcn.0040ca10
mov esi, dword [esp + 0xc]
push ebp
push esi
push 0x6ddc
push edi
push 0
call fcn.0040cc3d
add esp, 0x14
xor ecx, ecx
push ebp
push 1
call fcn.0040cec1
push esi
push 2
xor ecx, ecx
call fcn.0040cec1
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ecx
pop ecx
ret

Function at 0x4072d5
Capabilities:
Copy file

Disassembly:
push ecx
push ecx
push ebp
push esi
push edi
mov esi, ecx
mov ebp, edx
push 0x8001
mov dword [esp + 0x10], esi
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0
push esi
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.00401708
test eax, eax
je 0x407355
push 1
mov edi, 0x435938
xor ecx, ecx
push edi
call fcn.0040ca10
mov esi, dword [esp + 0xc]
push ebp
push esi
push 0x6ddd
push edi
push 0
call fcn.0040cc3d
add esp, 0x14
xor ecx, ecx
push ebp
push 1
call fcn.0040cec1
push esi
push 2
xor ecx, ecx
call fcn.0040cec1
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ecx
pop ecx
ret

Function at 0x407478
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0xc
push edi
mov edi, ecx
push 0x3a
pop eax
cmp ax, word [edi + edx*2 - 2]
jne 0x4074a6
cmp byte [esp + 0x14], 0
je 0x40749e
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x407543
xor eax, eax
inc eax
jmp 0x407543
push ebx
push ebp
push esi
push ecx
dec edx
call fcn.0040a6af
pop ecx
mov esi, eax
xor bl, bl
push 0x5c
pop ebp
test esi, esi
je 0x4074e1
lea ecx, [edi + 2]
cmp ecx, esi
jne 0x4074da
cmp word [edi], bp
jne 0x4074da
cmp byte [esp + 0x20], bl
je 0x4074d8
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x40751b
mov bl, 1
xor eax, eax
cmp edi, esi
cmove esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4074f6
mov ecx, eax
call fcn.00407548
jmp 0x407540
test bl, bl
je 0x4074ff
xor eax, eax
inc eax
jmp 0x407540
test esi, esi
je 0x407522
xor eax, eax
mov edx, esi
sub edx, edi
mov word [esi], ax
push eax
sar edx, 1
mov ecx, edi
call fcn.00407478
pop ecx
test eax, eax
jne 0x40751f
xor eax, eax
jmp 0x407540
mov word [esi], bp
and dword [esp + 0x14], 0
lea eax, [esp + 0x10]
and dword [esp + 0x18], 0
push eax
push edi
mov dword [esp + 0x18], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop esi
pop ebp
pop ebx
pop edi
add esp, 0xc
ret
Function at 0x4077b2
Capabilities:
Get file attributes

Disassembly:
push ecx
push ebp
push esi
push edi
mov esi, ecx
mov ebp, edx
push 0x8001
mov dword [esp + 0x10], esi
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp], eax
call esi
mov ecx, dword [esp + 0x14]
mov dword [ecx], eax
call esi
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.00401708
test eax, eax
je 0x40782f
push 1
mov edi, 0x435938
xor ecx, ecx
push edi
call fcn.0040ca10
mov esi, dword [esp + 0xc]
push esi
push dword [ebp]
push 0x6de2
push edi
push 0
call fcn.0040cc3d
add esp, 0x14
xor ecx, ecx
push esi
push 1
call fcn.0040cec1
xor eax, eax
cmp dword [ebp], 0xffffffff
pop edi
pop esi
setne al
pop ebp
pop ecx
ret

Function at 0x40783d
Capabilities:
Set file attributes

Disassembly:
push ecx
push ecx
push ebp
push esi
push edi
mov esi, edx
mov ebp, ecx
push 0x8001
mov dword [esp + 0x10], esi
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.00401708
test eax, eax
je 0x4078b0
push 1
mov esi, 0x435938
xor ecx, ecx
push esi
call fcn.0040ca10
push ebp
push dword [esp + 0x10]
push 0x6de2
push esi
push 0
call fcn.0040cc3d
add esp, 0x14
xor ecx, ecx
push ebp
push 1
call fcn.0040cec1
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ecx
pop ecx
ret

Function at 0x4078ba
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x254
push ebx
push esi
push edi
mov edi, edx
xor ebx, ebx
push 0x8001
mov esi, ecx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov dword [esp + 0xc], eax
call fcn.0040ec25
test eax, eax
lea eax, [esp + 0x10]
je 0x407900
push ebx
push ebx
push ebx
push eax
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
jmp 0x407908
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
call ebx
push dword [esp + 0xc]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [edi], 0xffffffff
jne 0x40795f
call ebx
cmp eax, 2
je 0x407933
call ebx
call fcn.00401708
test eax, eax
je 0x40795b
push 1
mov esi, 0x435938
xor ecx, ecx
push esi
call fcn.0040ca10
push 0x6de7
push esi
push 0
call fcn.0040cc3d
add esp, 0xc
xor eax, eax
jmp 0x407983
mov edx, edi
lea ecx, [esp + 0x10]
call fcn.00407abe
mov ecx, edi
test eax, eax
jne 0x407977
call fcn.0040798a
jmp 0x407983
lea edx, [esp + 0x10]
call fcn.00407e61
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407b63
Capabilities:
Get common file path

Disassembly:
push ebp
push esi
push edi
push 0x8001
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov edi, eax
mov eax, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test ebp, ebp
jne 0x407bc9
call fcn.00401708
test eax, eax
je 0x407bc5
push 1
mov esi, 0x435938
xor ecx, ecx
push esi
call fcn.0040ca10
push 0x6de5
push esi
push ebp
call fcn.0040cc3d
add esp, 0xc
xor eax, eax
jmp 0x407bd3
mov eax, 0x104
cmp eax, ebp
sbb eax, eax
inc eax
pop edi
pop esi
pop ebp
ret

Function at 0x407bd7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov esi, ecx
push 0x8001
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
push 0
push dword [ebp + 8]
mov ebx, eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
test edi, edi
setne bl
call fcn.00401708
test eax, eax
je 0x407c4c
push 1
mov esi, 0x435938
xor ecx, ecx
push esi
call fcn.0040ca10
push dword [ebp + 8]
push dword [ebp - 4]
push 0x6de6
push esi
push 0
call fcn.0040cc3d
add esp, 0x14
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret