joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405924
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x4303ed
call fcn.00430290
sub esp, 0x424
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, ecx
push edi
mov dword [ebp - 0x18], eax
lea edi, [eax + 0x420]
push edi
push 0x104
lea ecx, [eax + 0x216]
push ecx
push 0x43ace4
lea ebx, [eax + 0x834]
mov dword [ebp - 0x14], ecx
push 0x43c1d0
push ebx
call esi
push edi
push 0x104
lea eax, [ebp - 0x224]
push eax
push 0x43ace4
push 0x43c1e0
push ebx
call esi
lea eax, [ebp - 0x224]
push eax
push dword [ebp - 0x14]
call fcn.0041fb08
pop ecx
pop ecx
mov ecx, dword [ebp - 0x14]
call fcn.0040bd2b
push edi
push 0x104
lea eax, [ebp - 0x430]
mov edi, str.WDUPDATE.NET
push eax
push edi
push str.FICUPDATE
push ebx
call esi
mov eax, dword [ebp - 0x18]
lea ebx, [eax + 0x216]
lea esi, [eax + 0x62a]
push ebx
push esi
call fcn.0041fae6
lea eax, [ebp - 0x430]
push eax
push esi
call fcn.0041fb08
add esp, 0x10
mov ecx, esi
call fcn.0040bb6c
test eax, eax
jne 0x405a2d
push edi
push ebx
lea eax, [ebp - 0x10]
push str._s_s
push eax
call fcn.00402a02
add esp, 0x10
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0040ef32
mov ecx, eax
call fcn.0040bb6c
test eax, eax
je 0x405a25
lea ecx, [ebp - 0x10]
call fcn.0040ef32
push eax
push esi
call fcn.0041fae6
pop ecx
pop ecx
lea ecx, [ebp - 0x10]
call fcn.0040eea9
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x405d16
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
cmp byte [ecx + 0x11b9], 0
push ebx
push esi
push edi
jne 0x405dad
lea esi, [ecx + 0x420]
push esi
push 0
lea edi, [ecx + 0x834]
push str.DELAICHECKVERSION
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push esi
push 9
mov ebx, eax
lea eax, [ebp - 0x1c]
push eax
push 0x43ace4
push str.LASTCHECKVERSION
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x30]
call fcn.00406204
test ebx, ebx
jle 0x405dad
cmp word [ebp - 0x1c], 0
je 0x405dad
and dword [ebp - 4], 0
lea edx, [ebp - 4]
lea ecx, [ebp - 0x30]
call fcn.00406233
and dword [ebp - 8], 0
lea edx, [ebp - 8]
lea ecx, [ebp - 0x1c]
call fcn.00406233
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 8]
cmp eax, ebx
jl 0x405db5
push esi
lea eax, [ebp - 0x30]
push eax
push str.LASTCHECKVERSION
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
xor eax, eax
jmp 0x405db0
Function at 0x405db9
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x210
push ebx
push edi
mov edi, ecx
lea ebx, [edi + 0x62a]
mov ecx, ebx
mov dword [esp + 8], ebx
call fcn.0040bb6c
test eax, eax
je 0x405e40
push ebp
push esi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 0x18]
push 0x104
push eax
push 0x43cd9c
mov esi, str.DELAICHECKVERSION
lea ebp, [edi + 0x834]
push esi
push ebp
call ebx
add edi, 0x420
lea eax, [esp + 0x14]
push edi
push eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push ebp
call esi
push dword [esp + 0x10]
lea eax, [esp + 0x18]
push 0x104
push eax
push 0x43cd9c
push str.SILENTCHECKVERSION
push ebp
call ebx
push edi
lea eax, [esp + 0x18]
push eax
push str.SILENTCHECKVERSION
push ebp
call esi
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x210
ret

Function at 0x406706
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add ecx, 4
cmp word [ecx], 0
je 0x40672a
push ecx
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
jmp 0x40672c
xor eax, eax
pop ebp
ret 0x14

Function at 0x406cc4
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4471d8]
push ebx
push esi
push edi
and dword [eax + 0xc], 0
push 0x3e9
push dword [eax + 8]
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea esi, [eax + 1]
mov ecx, esi
call fcn.0040e0d3
push esi
mov edi, eax
push edi
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov esi, dword [ebp - 4]
push edi
lea ecx, [esi + 0x10]
call fcn.00405ed5
push edi
call fcn.004201cd
mov dword [esp], 0x3ea
push dword [esi + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea esi, [eax + 1]
mov ecx, esi
call fcn.0040e0d3
push esi
mov edi, eax
push edi
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ebx, dword [ebp - 4]
push edi
lea ecx, [ebx + 0x14]
call fcn.00405ed5
push edi
call fcn.004201cd
pop ecx
push 0
push 0
push 2
push dword [ebx + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406ecd
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x43061f
push eax
mov dword fs:[0], esp
push esi
push edi
mov esi, ecx
call fcn.0040721a
lea ecx, [esi + 0x30]
call fcn.0040fbe1
xor edi, edi
mov dword [ebp - 4], edi
mov ecx, dword [esi + 0x20]
call fcn.00406689
mov dword [esi + 0x20], edi
mov dword [ebp - 4], 1
mov ecx, dword [esi + 0x1c]
call fcn.00406689
mov dword [esi + 0x1c], edi
mov dword [ebp - 4], 2
mov ecx, dword [esi + 0x18]
call fcn.00406689
mov dword [esi + 0x18], edi
mov dword [ebp - 4], 3
mov ecx, dword [esi + 0x14]
call fcn.00406689
mov dword [esi + 0x14], edi
mov dword [ebp - 4], 4
mov ecx, dword [esi + 0x10]
call fcn.00406689
mov dword [esi + 0x10], edi
mov dword [ebp - 4], 5
mov ecx, dword [esi + 0xc]
call fcn.00406689
mov dword [esi + 0xc], edi
mov dword [ebp - 4], 6
mov ecx, dword [esi + 4]
call fcn.00406689
mov dword [esi + 4], edi
mov dword [ebp - 4], 7
mov ecx, dword [esi]
call fcn.00406689
mov ecx, dword [ebp - 0xc]
mov dword [esi], edi
pop edi
mov dword fs:[0], ecx
pop esi
leave
ret
Function at 0x406f90
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x430639
call fcn.00430290
sub esp, 0x210
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x21c]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push edi
mov edi, dword [ebp + 0xc]
push ebx
push 0x104
push eax
push 0x43ace4
push 0x43c1d0
push edi
mov dword [ebp - 0x10], ecx
call esi
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [eax + 4]
call fcn.00405ed5
push ebx
push 0x104
lea eax, [ebp - 0x21c]
push eax
push 0x43ace4
push 0x43c1e0
push edi
call esi
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ecx + 0x20]
call fcn.00405ed5
mov ecx, dword [ebp - 0x10]
push str.PC_SOFT
lea ecx, [ecx + 0xc]
call fcn.00405ed5
push ebx
push 0x104
lea eax, [ebp - 0x21c]
push eax
push 0x43cd9c
push 0x43dd3c
push edi
call esi
push 0x30
pop ecx
xor eax, eax
cmp word [ebp - 0x21c], cx
mov ecx, dword [ebp - 0x10]
push ebx
setne al
push 0x104
mov dword [ecx + 0x28], eax
lea eax, [ebp - 0x21c]
push eax
push 0x43cd9c
push str.HTTPSECURE
push edi
call esi
mov ebx, dword [ebp - 0x10]
xor eax, eax
push 0x30
pop ecx
cmp word [ebp - 0x21c], cx
mov ecx, ebx
setne al
mov dword [ebp + 0xc], eax
je 0x407083
push str.HTTPS
jmp 0x407088
push str.HTTP
call fcn.00405ed5
xor edi, edi
mov dword [ebp + 8], edi
lea eax, [ebp + 8]
mov dword [ebp - 4], edi
push eax
push 0x43dd38
lea esi, [ebx + 4]
push 1
mov ecx, esi
call fcn.0040603b
test eax, eax
je 0x4070ee
push esi
lea ecx, [ebp + 0xc]
call fcn.00405f30
push esi
push 0x43dd38
push edi
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.0040603b
cmp dword [ebp + 8], edi
mov eax, 0x43ace4
cmovne eax, dword [ebp + 8]
push eax
call fcn.00420be9
pop ecx
mov dword [ebx + 8], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp + 0xc]
call fcn.00406689
jmp 0x407100
cmp dword [ebp + 0xc], 0
mov ecx, 0x1bb
push 0x50
pop eax
cmovne eax, ecx
mov dword [ebx + 8], eax
mov dword [ebp - 4], 3
mov ecx, dword [ebp + 8]
call fcn.00406689
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x40aa2c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x668
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [edi + 0xc]
mov eax, dword [ecx + 0x20c]
test eax, eax
cmovne ecx, eax
call fcn.0040c66d
test eax, eax
jne 0x40ab74
push str.NTDLL.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x40ab74
push str.NtQueryInformationFile
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x40ab74
push 0x20e
xor ebx, ebx
lea eax, [ebp - 0x258]
push ebx
push eax
call fcn.00419e50
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 0x40ab74
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 0x40ab74
push 0x410
lea eax, [ebp - 0x668]
push ebx
push eax
call fcn.00419e50
add esp, 0xc
lea eax, [ebp - 0x668]
push eax
push 0x207
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov eax, dword [0x43e278]
lea esi, [ebp - 0x668]
mov dword [ebp - 0xc], eax
mov eax, dword [0x43e27c]
mov dword [ebp - 8], eax
movzx eax, word [ebp - 0x668]
mov word [ebp - 0xc], ax
cmp ax, 0x41
je 0x40ab61
cmp ax, 0x42
je 0x40ab61
lea ecx, [ebp - 0xc]
call fcn.0040c5fd
cmp eax, 3
jne 0x40ab61
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 0x40ab7d
movzx eax, word [esi]
add esi, 2
test ax, ax
jne 0x40ab61
movzx eax, word [esi]
test ax, ax
jne 0x40ab25
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
mov esi, dword [ebp + 8]
lea eax, [ebp - 0xc]
push 2
push eax
push esi
call fcn.0041fb54
push 0x102
lea eax, [ebp - 0x254]
push eax
lea eax, [esi + 4]
push eax
call fcn.0041fb54
xor eax, eax
add esp, 0x18
inc eax
jmp 0x40ab76
Function at 0x40acac
Capabilities:
Write file on windows

Disassembly:
push ecx
push edi
mov edi, ecx
push 1
mov ecx, dword [edi + 8]
call fcn.00410251
cmp dword [esp + 0x10], 0
jne 0x40acd4
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x40accc
and dword [ecx], 0
xor eax, eax
inc eax
jmp 0x40ad9c
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 0x40ad0d
mov dword [ecx], eax
test ebx, ebx
jne 0x40ad99
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi + 8]
mov esi, eax
push 3
call fcn.00410251
mov ecx, dword [edi + 8]
mov ebp, 0x43dab8
push 1
push ebp
call fcn.0041012a
push ecx
mov ecx, dword [edi + 8]
push esi
call fcn.00410908
push dword [edi + 0x21c]
push str._IXStream__Handle__p_
push dword [edi + 8]
call fcn.00410528
push dword [edi + 0x230]
push str._IXStream__Access__x_
push dword [edi + 8]
call fcn.00410528
add esp, 0x18
mov ecx, edi
call fcn.0040cfaa
push eax
push 0x6d68
push ebp
push dword [edi + 8]
call fcn.00410369
add esp, 0x10
mov ecx, edi
call fcn.0040cfaa
mov ecx, dword [edi + 8]
push eax
push 1
call fcn.004105c3
pop esi
pop ebp
mov eax, ebx
pop ebx
pop edi
pop ecx
ret 0xc
Function at 0x40ada1
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.00410251
mov eax, dword [esp + 0x28]
lea ebx, [esp + 0x18]
test eax, eax
push 0
cmovne ebx, eax
xor ecx, ecx
push ebx
test eax, eax
mov eax, dword [esp + 0x2c]
push eax
push dword [esp + 0x2c]
sete cl
mov dword [esp + 0x20], eax
and dword [ebx], 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 ebp, dword [ebx]
jbe 0x40ae44
test edi, edi
jne 0x40ae44
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x40ae14
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xa2
jne 0x40ae44
mov eax, dword [esp + 0x10]
sub eax, dword [ebx]
mov ecx, dword [esp + 0x20]
add ecx, dword [ebx]
push 0
push ebx
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 ebp, dword [ebx]
mov edi, eax
cmp dword [esp + 0x10], 0
jne 0x40adf6
mov dword [ebx], ebp
add dword [esi + 0x220], ebp
adc dword [esi + 0x224], 0
test edi, edi
je 0x40ae6b
cmp dword [esp + 0x28], 0
jne 0x40ae64
cmp ebp, dword [esp + 0x24]
jne 0x40ae6b
mov eax, edi
jmp 0x40af28
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi + 8]
mov ebx, eax
push 3
call fcn.00410251
mov ecx, dword [esi + 8]
push 1
push 0x43dab8
call fcn.0041012a
mov ecx, dword [esi + 8]
push ecx
test edi, edi
je 0x40ae98
push 0
jmp 0x40ae99
push ebx
call fcn.00410908
push dword [esi + 0x21c]
push str._IXStream__Handle__p_
push dword [esi + 8]
call fcn.00410528
push dword [esp + 0x20]
push str._IXStream__bExact__d_
push dword [esi + 8]
call fcn.00410528
push ebp
push dword [esp + 0x40]
push str._IXStream__A_lire__u___lu__u_
push dword [esi + 8]
call fcn.00410528
mov ecx, dword [esi + 0x220]
mov eax, dword [esi + 0x224]
sub ecx, ebp
sbb eax, 0
push eax
push ecx
push str._IXStream__Offset__I64u_
push dword [esi + 8]
call fcn.00410528
add esp, 0x38
mov ecx, esi
call fcn.0040cfaa
push eax
push 0x6d63
push 0x43dab8
push dword [esi + 8]
call fcn.00410369
add esp, 0x10
mov ecx, esi
call fcn.0040cfaa
mov ecx, dword [esi + 8]
push eax
push 1
call fcn.004105c3
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
Function at 0x40b3a5
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
push 1
mov ecx, dword [edi + 8]
call fcn.00410251
mov eax, dword [ebp + 0x10]
sub eax, 0
je 0x40b3c6
sub eax, 1
jne 0x40b3d9
push 2
jmp 0x40b3c8
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 0x40b3e0
xor eax, eax
jmp 0x40b468
push dword [edi + 0x21c]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x40b465
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi + 8]
mov esi, eax
push 3
call fcn.00410251
mov ecx, dword [edi + 8]
mov ebx, 0x43dab8
push 1
push ebx
call fcn.0041012a
push ecx
mov ecx, dword [edi + 8]
push esi
call fcn.00410908
push dword [edi + 0x21c]
push str._IXStream__Handle__p_
push dword [edi + 8]
call fcn.00410528
add esp, 0xc
mov ecx, edi
call fcn.0040cfaa
push eax
push 0x6d64
push ebx
push dword [edi + 8]
call fcn.00410369
add esp, 0x10
mov ecx, edi
call fcn.0040cfaa
mov ecx, dword [edi + 8]
push eax
push 1
call fcn.004105c3
pop esi
xor eax, eax
pop ebx
jmp 0x40b468
xor eax, eax
inc eax
pop edi
pop ebp
ret 0xc

Function at 0x40b933
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.00404ca7
test eax, eax
je 0x40b99a
push 1
mov esi, 0x43dab8
xor ecx, ecx
push esi
call fcn.0041012a
push ebp
push 0x6ddb
push esi
push 0
call fcn.0041034b
add esp, 0x10
xor ecx, ecx
push ebp
push 1
call fcn.004105c3
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebp
pop ecx
ret

Function at 0x40b9a3
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 0x40ba20
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40ba20
push ecx
mov edx, ebp
lea ecx, [esp + 0x10]
call fcn.0040bf39
pop ecx
test eax, eax
je 0x40ba1c
mov edx, dword [esp + 0xc]
push ecx
and edx, 0xfffffffe
mov ecx, ebp
call fcn.0040bfe2
pop ecx
test eax, eax
je 0x40ba1c
pop edi
pop esi
mov ecx, ebp
pop ebp
add esp, 4
jmp fcn.0040b933
xor eax, eax
jmp 0x40ba55
call fcn.00404ca7
test eax, eax
je 0x40ba53
push 1
mov edi, 0x43dab8
xor ecx, ecx
push edi
call fcn.0041012a
push ebp
push 0x6ddb
push edi
push 0
call fcn.0041034b
add esp, 0x10
xor ecx, ecx
push ebp
push 1
call fcn.004105c3
mov eax, esi
pop edi
pop esi
pop ebp
pop ecx
ret
Function at 0x40ba5a
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.00404ca7
test eax, eax
je 0x40bad8
push 1
mov edi, 0x43dab8
xor ecx, ecx
push edi
call fcn.0041012a
mov esi, dword [esp + 0xc]
push ebp
push esi
push 0x6ddc
push edi
push 0
call fcn.0041034b
add esp, 0x14
xor ecx, ecx
push ebp
push 1
call fcn.004105c3
push esi
push 2
xor ecx, ecx
call fcn.004105c3
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ecx
pop ecx
ret

Function at 0x40bae2
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.00404ca7
test eax, eax
je 0x40bb62
push 1
mov edi, 0x43dab8
xor ecx, ecx
push edi
call fcn.0041012a
mov esi, dword [esp + 0xc]
push ebp
push esi
push 0x6ddd
push edi
push 0
call fcn.0041034b
add esp, 0x14
xor ecx, ecx
push ebp
push 1
call fcn.004105c3
push esi
push 2
xor ecx, ecx
call fcn.004105c3
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ecx
pop ecx
ret

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

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, ecx
push 0x3a
pop eax
cmp ax, word [edi + edx*2 - 2]
jne 0x40bc77
cmp byte [esp + 0x20], 0
je 0x40bcca
jmp 0x40bc9c
push ecx
dec edx
call fcn.0040e1c5
pop ecx
mov esi, eax
xor bl, bl
push 0x5c
pop ebp
test esi, esi
je 0x40bcb1
lea eax, [edi + 2]
cmp eax, esi
jne 0x40bcaa
cmp word [edi], bp
jne 0x40bcaa
cmp byte [esp + 0x20], bl
je 0x40bca8
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x40bd0c
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 0x40bcc6
mov ecx, eax
call fcn.0040bd14
jmp 0x40bd0c
test bl, bl
je 0x40bccf
xor eax, eax
inc eax
jmp 0x40bd0c
test esi, esi
je 0x40bcee
xor eax, eax
mov edx, esi
sub edx, edi
mov word [esi], ax
push eax
sar edx, 1
mov ecx, edi
call fcn.0040bc5b
pop ecx
test eax, eax
je 0x40bca4
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 edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x40bf55
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.00404ca7
test eax, eax
je 0x40bfd2
push 1
mov edi, 0x43dab8
xor ecx, ecx
push edi
call fcn.0041012a
mov esi, dword [esp + 0xc]
push esi
push dword [ebp]
push 0x6de2
push edi
push 0
call fcn.0041034b
add esp, 0x14
xor ecx, ecx
push esi
push 1
call fcn.004105c3
xor eax, eax
cmp dword [ebp], 0xffffffff
pop edi
pop esi
setne al
pop ebp
pop ecx
ret

Function at 0x40bfe2
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.00404ca7
test eax, eax
je 0x40c055
push 1
mov esi, 0x43dab8
xor ecx, ecx
push esi
call fcn.0041012a
push ebp
push dword [esp + 0x10]
push 0x6de2
push esi
push 0
call fcn.0041034b
add esp, 0x14
xor ecx, ecx
push ebp
push 1
call fcn.004105c3
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ecx
pop ecx
ret

Function at 0x40c05f
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x258
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetErrorMode]
xor ebx, ebx
push esi
push edi
mov edi, edx
mov esi, ecx
push 0x8001
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
call ebp
mov dword [esp + 0x14], eax
call fcn.00412575
test eax, eax
lea eax, [esp + 0x18]
je 0x40c0a8
push ebx
push ebx
push ebx
push eax
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
jmp 0x40c0b0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [edi], eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
push dword [esp + 0x14]
mov esi, eax
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [edi], 0xffffffff
jne 0x40c103
call ebx
cmp eax, 2
je 0x40c0d7
call ebx
call fcn.00404ca7
test eax, eax
je 0x40c0ff
push 1
mov esi, 0x43dab8
xor ecx, ecx
push esi
call fcn.0041012a
push 0x6de7
push esi
push 0
call fcn.0041034b
add esp, 0xc
xor eax, eax
jmp 0x40c127
mov edx, edi
lea ecx, [esp + 0x18]
call fcn.0040c263
mov ecx, edi
test eax, eax
jne 0x40c11b
call fcn.0040c12f
jmp 0x40c127
lea edx, [esp + 0x18]
call fcn.0040c5ab
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret