joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41ee60
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov word [ebp - 2], dx
xor eax, eax
push ebp
push 0x88e40f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x41ee9b
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x41eeb4
lea eax, [ebp - 0x10]
mov edx, dword [0x8a7268]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x41eec7
lea eax, [ebp - 0x10]
mov edx, dword [0x8a7268]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x41eed3
adc edx, 0
mov edx, dword [edx*4 + 0x8a60e8]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x41efe1
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x40
push edi
push esi
call fcn.00406d74
test eax, eax
je 0x41efd4
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x41efd4
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406dd4
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x18
push edi
push esi
call fcn.00406d74
test eax, eax
je 0x41efd4
mov eax, edi
cmp dword [eax], 0x4550
jne 0x41efd4
add eax, 4
mov dx, word [eax]
cmp dx, 0x14c
jb 0x41efd4
cmp dx, 0x150
ja 0x41efd4
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0xe0
push edi
push esi
call fcn.00406d74
test eax, eax
je 0x41efd4
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 2]
jne 0x41efd4
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x41eff9
inc ebx
cmp ebx, 0x19
jne 0x41ee8d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x88e416
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x404050
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x43d008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
movups xmm0, xmmword [0x4360b4]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ecx
movups xmmword [eax], xmm0
test edi, edi
je 0x404148
mov eax, edi
call fcn.0042d120
mov ebx, esp
push edi
push dword [ebp - 0x18]
mov dword [ebp - 0x20], ebx
push ebx
call fcn.0041d4c0
mov eax, 0x10
add esp, 0xc
cmp edi, eax
mov ecx, 0x1d
cmova eax, edi
mov dword [ebp - 0x18], eax
movsx eax, byte [ebx]
cdq
idiv ecx
mov byte [ebx], dl
lea edx, [edi - 1]
test edx, edx
je 0x4040d1
lea eax, [ebx + 1]
mov cl, byte [eax - 1]
lea eax, [eax + 1]
xor byte [eax - 1], cl
sub edx, 1
jne 0x4040c3
cmp dword [esi + 0x18], 0
mov eax, dword [esi]
jne 0x4040fb
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0xa1c09
mov dword [ebp - 0x10], 0xfd070d
mov dword [ebp - 0xc], 0x3202065
mov dword [ebp - 8], 0xa55010d
push ecx
jmp 0x4040fe
push dword [ebp - 0x1c]
push edi
push ebx
mov ecx, esi
call dword [eax + 0x24]
xor ebx, ebx
cmp dword [ebp - 0x18], ebx
jbe 0x404148
nop dword [eax]
xor edx, edx
mov ecx, dword [ebp - 0x20]
mov eax, ebx
lea esi, [ebx + 1]
div edi
mov eax, esi
and eax, 0xf
mov dl, byte [edx + ecx]
mov ecx, dword [ebp - 0x1c]
add dl, byte [eax + ecx]
mov ecx, dword [ebp - 0x18]
movzx eax, bl
and ebx, 0xf
movzx ecx, cl
imul ecx, eax
mov eax, dword [ebp - 0x1c]
xor dl, cl
mov byte [ebx + eax], dl
mov ebx, esi
cmp ebx, dword [ebp - 0x18]
jb 0x404110
lea esp, [ebp - 0x2c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041a5ad
mov esp, ebp
pop ebp
ret 0xc
Function at 0x404340
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x678
mov eax, dword [0x43d008]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x218]
lea ecx, [edi + 0xc]
test eax, eax
cmovne ecx, eax
call fcn.00406000
test eax, eax
jne 0x4044b3
push str.NTDLL.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x4044b3
push str.NtQueryInformationFile
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x4044b3
push 0x20e
lea eax, [ebp - 0x224]
push 0
push eax
call fcn.0041c030
add esp, 0xc
lea eax, [ebp - 0x224]
push 9
push 0x20c
push eax
lea eax, [ebp - 0x674]
push eax
push dword [edi + 0x21c]
call esi
test eax, eax
js 0x4044b3
mov eax, dword [ebp - 0x224]
xor ecx, ecx
shr eax, 1
mov word [ebp + eax*2 - 0x220], cx
lea eax, [ebp - 0x668]
push eax
push dword [edi + 0x21c]
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x4044b3
push 0x410
lea eax, [ebp - 0x634]
push 0
push eax
call fcn.0041c030
add esp, 0xc
lea eax, [ebp - 0x634]
push eax
push 0x207
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
movzx eax, word [ebp - 0x634]
lea esi, [ebp - 0x634]
mov edi, dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov dword [ebp - 0x10], 0x3a0020
mov dword [ebp - 0xc], 0x5c
mov word [ebp - 0x10], ax
cmp ax, 0x41
je 0x4044a0
cmp ax, 0x42
je 0x4044a0
lea ecx, [ebp - 0x10]
call fcn.00405f70
cmp eax, 3
jne 0x4044a0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x66c]
mov dword [ebp - 0x66c], 0
push eax
push 0
push 0
lea eax, [ebp - 0x10]
push eax
call edi
mov eax, dword [ebp - 0x66c]
cmp eax, dword [ebp - 0x64c]
je 0x4044c8
nop
movzx eax, word [esi]
add esi, 2
test ax, ax
jne 0x4044a0
movzx eax, word [esi]
test ax, ax
jne 0x404450
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041a5ad
mov esp, ebp
pop ebp
ret 4
push 2
lea eax, [ebp - 0x10]
push eax
push ebx
call fcn.00420234
add esp, 0xc
lea eax, [ebp - 0x220]
push 0x102
push eax
lea eax, [ebx + 4]
push eax
call fcn.00420234
mov ecx, dword [ebp - 8]
add esp, 0xc
xor ecx, ebp
mov eax, 1
pop edi
pop esi
pop ebx
call fcn.0041a5ad
mov esp, ebp
pop ebp
ret 4
Function at 0x404650
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
push 1
mov ecx, dword [edi + 8]
call fcn.0040d210
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x404681
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x404675
mov dword [eax], 0
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret 0xc
push ebx
push 0
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 8]
push dword [edi + 0x21c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp + 0x10]
mov ebx, eax
mov eax, dword [ebp - 4]
add dword [edi + 0x220], eax
adc dword [edi + 0x224], 0
test ecx, ecx
je 0x4046b3
mov dword [ecx], eax
test ebx, ebx
jne 0x404762
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi + 8]
mov esi, eax
push 3
call fcn.0040d210
mov ecx, dword [edi + 8]
push 1
push 0x436030
call fcn.0040d0a0
push ecx
mov ecx, dword [edi + 8]
push esi
call fcn.0040d900
push dword [edi + 0x21c]
push str._IXStream__Handle__p_
push dword [edi + 8]
call fcn.0040d460
push dword [edi + 0x230]
push str._IXStream__Access__x_
push dword [edi + 8]
call fcn.0040d460
mov ecx, dword [edi + 0x234]
add esp, 0x18
pop esi
test ecx, ecx
jne 0x404729
mov eax, dword [edi + 0x218]
lea ecx, [edi + 0xc]
test eax, eax
cmovne ecx, eax
push ecx
push 0x6d68
push 0x436030
push dword [edi + 8]
call fcn.0040d250
mov ecx, dword [edi + 0x234]
add esp, 0x10
test ecx, ecx
jne 0x404757
mov eax, dword [edi + 0x218]
lea ecx, [edi + 0xc]
test eax, eax
cmovne ecx, eax
push ecx
mov ecx, dword [edi + 8]
push 1
call fcn.0040d530
mov eax, ebx
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x404770
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
push 1
mov ecx, dword [esi + 8]
call fcn.0040d210
mov eax, dword [ebp + 0x10]
lea ebx, [ebp - 0x10]
test eax, eax
push 0
cmovne ebx, eax
xor ecx, ecx
push ebx
test eax, eax
mov eax, dword [ebp + 0xc]
push eax
push dword [ebp + 8]
mov dword [ebx], 0
sete cl
push dword [esi + 0x21c]
mov dword [ebp - 0xc], ecx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebx]
mov edx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
test edi, edi
jbe 0x404828
nop word [eax + eax]
test eax, eax
jne 0x404828
call edx
cmp eax, 0x3e5
je 0x4047ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xa2
jne 0x40481c
mov ecx, dword [ebp + 8]
sub edi, dword [ebx]
add ecx, dword [ebx]
push 0
push ebx
push edi
push ecx
push dword [esi + 0x21c]
mov dword [ebp + 8], ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 4]
add ecx, dword [ebx]
mov edx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
test edi, edi
jne 0x4047d0
jmp 0x404828
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov edx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx], ecx
add dword [esi + 0x220], ecx
adc dword [esi + 0x224], 0
test eax, eax
je 0x404855
cmp dword [ebp + 0x10], 0
jne 0x404934
mov ebx, dword [ebp + 0xc]
cmp ecx, ebx
jne 0x404858
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ebx, dword [ebp + 0xc]
call edx
mov ecx, dword [esi + 8]
mov edi, eax
push 3
call fcn.0040d210
mov ecx, dword [esi + 8]
push 1
push 0x436030
call fcn.0040d0a0
cmp dword [ebp - 8], 0
mov ecx, dword [esi + 8]
push ecx
je 0x404883
push 0
jmp 0x404884
push edi
call fcn.0040d900
push dword [esi + 0x21c]
push str._IXStream__Handle__p_
push dword [esi + 8]
call fcn.0040d460
push dword [ebp - 0xc]
push str._IXStream__bExact__d_
push dword [esi + 8]
call fcn.0040d460
mov edi, dword [ebp - 4]
push edi
push ebx
push str._IXStream__A_lire__u___lu__u_
push dword [esi + 8]
call fcn.0040d460
mov ecx, dword [esi + 0x220]
mov eax, dword [esi + 0x224]
sub ecx, edi
sbb eax, 0
push eax
push ecx
push str._IXStream__Offset__I64u_
push dword [esi + 8]
call fcn.0040d460
mov ecx, dword [esi + 0x234]
add esp, 0x38
test ecx, ecx
jne 0x4048f9
mov eax, dword [esi + 0x218]
lea ecx, [esi + 0xc]
test eax, eax
cmovne ecx, eax
push ecx
push 0x6d63
push 0x436030
push dword [esi + 8]
call fcn.0040d250
mov ecx, dword [esi + 0x234]
add esp, 0x10
test ecx, ecx
jne 0x404927
mov eax, dword [esi + 0x218]
lea ecx, [esi + 0xc]
test eax, eax
cmovne ecx, eax
push ecx
mov ecx, dword [esi + 8]
push 1
call fcn.0040d530
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x404ee0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push esi
push edi
mov edi, ecx
push 1
mov ecx, dword [edi + 8]
call fcn.0040d210
mov eax, dword [ebp + 0x10]
sub eax, 0
je 0x404f09
sub eax, 1
jne 0x404fc6
push 2
jmp 0x404f0b
push 0
push dword [ebp + 0xc]
mov eax, dword [edi]
mov ecx, edi
push dword [ebp + 8]
call dword [eax + 0x24]
test eax, eax
je 0x404fc6
push dword [edi + 0x21c]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x404fd0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi + 8]
mov esi, eax
push 3
call fcn.0040d210
mov ecx, dword [edi + 8]
push 1
push 0x436030
call fcn.0040d0a0
push ecx
mov ecx, dword [edi + 8]
push esi
call fcn.0040d900
push dword [edi + 0x21c]
push str._IXStream__Handle__p_
push dword [edi + 8]
call fcn.0040d460
mov ecx, dword [edi + 0x234]
add esp, 0xc
test ecx, ecx
jne 0x404f8d
mov eax, dword [edi + 0x218]
lea ecx, [edi + 0xc]
test eax, eax
cmovne ecx, eax
push ecx
push 0x6d64
push 0x436030
push dword [edi + 8]
call fcn.0040d250
mov ecx, dword [edi + 0x234]
add esp, 0x10
test ecx, ecx
jne 0x404fbb
mov eax, dword [edi + 0x218]
lea ecx, [edi + 0xc]
test eax, eax
cmovne ecx, eax
push ecx
mov ecx, dword [edi + 8]
push 1
call fcn.0040d530
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x405550
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42d610
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x43d008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x20a
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.0041c030
add esp, 0xc
mov dword [ebp - 0x14], 0
push 0
push esi
lea ecx, [ebp - 0x220]
mov dword [ebp - 4], 0
call fcn.00407f40
mov eax, dword [ebp - 0x14]
lea esi, [ebp - 0x220]
mov ebx, dword [sym.imp.KERNEL32.dll_SetErrorMode]
test eax, eax
push 0x8001
cmovne esi, eax
mov dword [ebp - 0x228], esi
call ebx
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x224], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, dword [ebp - 0x224]
xor edx, edx
mov ecx, ebx
call fcn.00405280
test eax, eax
je 0x40563a
push 1
push 0x436030
xor ecx, ecx
call fcn.0040d0a0
mov esi, dword [ebp - 0x228]
push esi
push 0x6ddb
push 0x436030
push 0
call fcn.0040d230
add esp, 0x10
xor ecx, ecx
push esi
push 1
call fcn.0040d530
mov dword [ebp - 4], 1
mov edx, dword [ebp - 0x14]
test edx, edx
je 0x40565e
or eax, 0xffffffff
lock xadd dword [edx - 0xc], eax
jne 0x40565e
mov ecx, dword [0x43f5ec]
push edx
mov eax, dword [ecx]
call dword [eax + 0xc]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041a5ad
mov esp, ebp
pop ebp
ret
Function at 0x405850
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
mov ecx, 0x3a
push edi
mov eax, esi
mov edi, dword [esi + 0x20c]
test edi, edi
cmovne eax, edi
cmp cx, word [eax + edx*2 - 2]
jne 0x40588f
cmp byte [ebp + 8], 0
je 0x405915
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
mov ecx, esi
cmovne ecx, edi
dec edx
push ecx
call fcn.00409100
mov ebx, eax
mov byte [ebp - 1], 0
add esp, 4
test ebx, ebx
je 0x4058ee
test edi, edi
mov ecx, esi
cmovne ecx, edi
add ecx, 2
cmp ecx, ebx
jne 0x4058e0
test edi, edi
mov eax, esi
cmovne eax, edi
cmp word [eax], 0x5c
jne 0x4058e0
cmp byte [ebp + 8], 0
je 0x4058dc
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [ebp - 1], 1
test edi, edi
mov eax, esi
cmovne eax, edi
xor ecx, ecx
cmp eax, ebx
cmove ebx, ecx
test edi, edi
mov eax, esi
cmovne eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40590f
mov ecx, eax
call fcn.00405990
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 1], 0
je 0x405921
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x405955
xor eax, eax
mov ecx, esi
mov word [ebx], ax
mov edx, ebx
mov eax, dword [esi + 0x20c]
test eax, eax
push 0
cmovne ecx, eax
sub edx, ecx
mov ecx, esi
sar edx, 1
call fcn.00405850
add esp, 4
test eax, eax
je 0x4058d3
mov eax, 0x5c
mov word [ebx], ax
mov eax, dword [esi + 0x20c]
test eax, eax
mov dword [ebp - 0x10], 0xc
cmovne esi, eax
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0x10]
mov dword [ebp - 8], 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405aa0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42d690
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x43d008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x224], edx
mov esi, ecx
mov eax, dword [ebp + 8]
push 0x20a
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.0041c030
add esp, 0xc
mov dword [ebp - 0x14], 0
push 0
push esi
lea ecx, [ebp - 0x220]
mov dword [ebp - 4], 0
call fcn.00407f40
mov eax, dword [ebp - 0x14]
lea esi, [ebp - 0x220]
mov ebx, dword [sym.imp.KERNEL32.dll_SetErrorMode]
test eax, eax
push 0x8001
cmovne esi, eax
mov dword [ebp - 0x22c], esi
call ebx
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, dword [ebp - 0x224]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ecx], eax
call esi
mov ecx, dword [ebp - 0x228]
mov dword [ecx], eax
call esi
push edi
mov esi, eax
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [ebp - 0x224]
xor ecx, ecx
cmp dword [edi], 0xffffffff
setne cl
xor edx, edx
call fcn.00405280
test eax, eax
je 0x405baf
push 1
push 0x436030
xor ecx, ecx
call fcn.0040d0a0
mov esi, dword [ebp - 0x22c]
push esi
push dword [edi]
push 0x6de2
push 0x436030
push 0
call fcn.0040d230
add esp, 0x14
xor ecx, ecx
push esi
push 1
call fcn.0040d530
xor ebx, ebx
cmp dword [edi], 0xffffffff
setne bl
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x405bdb
or ecx, 0xffffffff
lock xadd dword [eax - 0xc], ecx
jne 0x405bdb
mov ecx, dword [0x43f5ec]
push eax
mov edx, dword [ecx]
call dword [edx + 0xc]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041a5ad
mov esp, ebp
pop ebp
ret

Function at 0x405c00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0x8001
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
push 0x104
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [ebp - 4], 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 eax, dword [ebp - 4]
pop edi
pop esi
test eax, eax
jne 0x405c78
xor edx, edx
xor ecx, ecx
call fcn.00405280
test eax, eax
je 0x405c7f
push 1
push 0x436030
xor ecx, ecx
call fcn.0040d0a0
push 0x6de5
push 0x436030
push 0
call fcn.0040d230
add esp, 0xc
xor eax, eax
mov esp, ebp
pop ebp
ret
cmp eax, 0x104
jbe 0x405c85
xor eax, eax
mov esp, ebp
pop ebp
ret
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x405c90
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 0x43846c
push edi
mov ebx, eax
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
xor edx, edx
mov ecx, ebx
call fcn.00405280
test eax, eax
je 0x405d10
push 1
push 0x436030
xor ecx, ecx
call fcn.0040d0a0
push 0x43846c
push dword [ebp - 4]
push 0x6de6
push 0x436030
push 0
call fcn.0040d230
add esp, 0x14
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x405f70
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x43d008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ecx
push ecx
mov edx, 0x105
lea ecx, [ebp - 0x210]
call fcn.00408f50
add esp, 8
lea ecx, [ebp - 0x210]
call fcn.00408ef0
lea ecx, [ebp - 0x210]
call fcn.004059b0
push 0x8001
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov edi, eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ebx, 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 ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041a5ad
mov esp, ebp
pop ebp
ret

Function at 0x408d70
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov eax, edx
push esi
push edi
mov esi, ecx
lea edi, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408d80
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push 1
push 0
push str.Last
push dword [esi + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 8
Function at 0x40bb70
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
mov dword [edi], 0x534350
mov dword [esi + 0x1c], 0x14
mov dword [edi + 4], 0x14
mov eax, dword [esi]
call dword [eax + 0xcc]
mov dword [esi + 0x10], eax
cmp eax, 0x20001
jne 0x40bbb1
mov dword [esi + 0x10], 2
mov eax, 2
mov dword [edi + 8], eax
movzx eax, byte [0x43f60c]
mov byte [esi + 0x14], al
mov dword [esi + 0x16], 0x1d
mov byte [edi + 0xe], 0x1d
movzx eax, word [esi + 0x18]
mov word [edi + 0xc], ax
movzx eax, byte [esi + 0x14]
mov byte [edi + 0xf], al
movzx eax, word [esi + 0x20]
mov word [edi + 0x10], ax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov ebx, dword [ebp + 8]
mov ecx, esi
mov word [esi + 0x22], ax
push 0
mov word [edi + 0x12], ax
push dword [ebx + 4]
push dword [ebx]
call fcn.0040f610
test eax, eax
je 0x40bcc4
lea eax, [esp + 0xc]
mov ecx, esi
push eax
push 0x14
push edi
call fcn.0040f5f0
test eax, eax
je 0x40bcc4
cmp dword [esp + 0xc], 0x14
je 0x40bccf
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax + 0x7c]
mov ecx, eax
call fcn.0040d210
mov eax, dword [esi]
mov ecx, esi
push 1
push 0x436030
call dword [eax + 0x7c]
mov ecx, eax
call fcn.0040d0a0
mov eax, dword [esi]
mov ecx, esi
push 3
call dword [eax + 0x7c]
mov ecx, eax
call fcn.0040d210
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x7c]
push ecx
push 0
mov ecx, eax
call fcn.0040d900
push dword [esp + 0xc]
mov eax, dword [esi]
mov ecx, esi
push 0x14
push str._IXStream__A_ecrire__u___ecrit__u_
call dword [eax + 0x7c]
push eax
call fcn.0040d460
mov eax, dword [esi]
add esp, 0x10
mov ecx, esi
call dword [eax + 0x64]
push eax
mov eax, dword [esi]
mov ecx, esi
push 0x6d69
push 0x436030
call dword [eax + 0x7c]
push eax
call fcn.0040d250
mov eax, dword [esi]
add esp, 0x10
mov ecx, esi
call dword [eax + 0x64]
push eax
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax + 0x7c]
mov ecx, eax
call fcn.0040d530
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
add dword [ebx], 0x14
mov eax, 1
pop edi
adc dword [ebx + 4], 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8