joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a7aa
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x428998], eax
je 0x41a7c6
mov eax, 0x10dd
jmp 0x41a8a2
mov eax, dword [0x42899c]
test eax, eax
jne 0x41a8a2
push edi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x41a7e3
push 6
pop eax
jmp 0x41a8a1
cmp dword [edi], 0
push ebx
push esi
jne 0x41a7f7
push 6
pop eax
mov dword [0x42899c], eax
jmp 0x41a899
push 0x18
call fcn.00418bce
mov esi, eax
test esi, esi
pop ecx
jne 0x41a80a
push 8
pop edi
jmp 0x41a883
mov edi, dword [edi]
push 0
push dword [ebp + 0xc]
call fcn.0041a196
movzx ecx, byte [edi + 0x17]
mov ebx, dword [edi + 0x18]
xor edx, edx
sub ebx, ecx
cmp ecx, edx
je 0x41a878
cmp ecx, 0x17
ja 0x41a878
cmp dword [edi + 0x1c], eax
jne 0x41a878
lea eax, [ebp - 4]
push eax
push 0x40
push ecx
push ebx
mov dword [ebp - 4], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x41a84e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x41a883
mov eax, dword [ebp + 8]
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov dword [esi + 0x10], edi
mov dword [esi + 0xc], ebx
mov eax, dword [ebp - 4]
mov dword [esi + 0x14], eax
mov eax, dword [0x4289a8]
mov dword [esi], eax
mov dword [0x4289a8], esi
xor eax, eax
jmp 0x41a89f
cmp dword [0x428994], edx
push 9
pop edi
jne 0x41a889
mov dword [0x42899c], edi
test esi, esi
je 0x41a894
push esi
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, edi
mov edi, dword [ebp + 8]
mov dword [0x4289a0], edi
pop esi
pop ebx
pop edi
leave
ret 8
Function at 0x405a00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x405a2b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00406200
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x405a4d
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x405a4f
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x405ad3
jg 0x405a64
test esi, esi
je 0x405ad3
test ecx, ecx
jl 0x405aad
jg 0x405a6e
test eax, eax
je 0x405aad
cmp edi, ecx
jg 0x405a82
jl 0x405a78
cmp esi, eax
jae 0x405a82
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call fcn.00456c60
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x405ab0
mov edx, dword [ebp + 8]
test edi, edi
jl 0x405ad3
jg 0x405aba
test esi, esi
je 0x405ad3
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x405ad3
push eax
push esi
push 1
push edx
call fcn.0045a86c
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x405af0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x405b1b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004062e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi + 0x1c]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], eax
test eax, eax
je 0x405b3d
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x405b3f
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test ebx, ebx
jl 0x405bde
jg 0x405b5c
test esi, esi
je 0x405bde
test ecx, ecx
jl 0x405ba9
jg 0x405b66
test eax, eax
je 0x405ba9
cmp ebx, ecx
jg 0x405b7a
jl 0x405b70
cmp esi, eax
jae 0x405b7a
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
push eax
push dword [esp + 0x18]
push dword [ebp + 8]
call fcn.00456c60
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edi + 0x2c]
add edx, ecx
sub esi, ecx
mov dword [esp + 0xc], edx
sbb ebx, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x405bb0
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
test ebx, ebx
jl 0x405bde
jg 0x405bba
test esi, esi
je 0x405bde
cmp dword [edi + 0x4c], 0
je 0x405bde
mov ecx, edi
call fcn.00406eb0
push dword [edi + 0x4c]
push esi
push 1
push dword [esp + 0x18]
call fcn.0045ae46
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
pop edi
pop esi
sbb edx, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x405ef0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x30
mov eax, dword [0x4a9068]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
mov ebx, dword [esp + 0x38]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x405f20
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.00454e67
add esp, 0x30
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x405f5d
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x405f5d
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.00454e67
add esp, 0x30
ret 4
cmp dword [esi + 0x4c], 0
je 0x406052
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x405f85
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x405fb9
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.00459f47
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.00454e67
add esp, 0x30
ret 4
lea eax, [esp + 0x10]
mov byte [esp + 0xf], bl
mov edx, dword [ecx]
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x23]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
test eax, eax
js 0x406052
cmp eax, 1
jle 0x406021
cmp eax, 3
jne 0x406052
push dword [esi + 0x4c]
movsx eax, byte [esp + 0x13]
push eax
call fcn.00459f47
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.00454e67
add esp, 0x30
ret 4
mov edi, dword [esp + 0x10]
lea eax, [esp + 0x18]
sub edi, eax
je 0x406040
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0045a86c
add esp, 0x10
cmp edi, eax
jne 0x406052
lea eax, [esp + 0xf]
mov byte [esi + 0x3d], 1
cmp dword [esp + 0x14], eax
jne 0x405f47
mov ecx, dword [esp + 0x38]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00454e67
add esp, 0x30
ret 4
Function at 0x407510
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47c720
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4a9068]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00454e7d
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.00453883
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40cf50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d068
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x4a9068]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.004052b0
test al, al
je 0x40cf90
xor al, al
jmp 0x40d0c6
push esi
lea ecx, [ebp - 0x2c]
call fcn.00405440
mov dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push 4
push eax
call fcn.0040f650
add esp, 8
lea ecx, [ebp - 0x2c]
call fcn.004052c0
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x40d0b3
lea ecx, [ebp - 0x44]
call fcn.00405420
mov byte [ebp - 4], 1
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x2c]
call fcn.004193e0
test al, al
je 0x40cff2
lea ecx, [ebp - 0x44]
call fcn.004052c0
push eax
call edi
mov esi, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.00405300
cmp esi, 0xffffffff
jne 0x40d0b3
lea ecx, [ebp - 0x2c]
call fcn.00406a00
cmp eax, 2
jbe 0x40d0af
lea ecx, [ebp - 0x2c]
call fcn.00406a00
lea ecx, [ebp - 0x2c]
lea ebx, [eax - 1]
call fcn.00406750
mov esi, eax
mov ecx, esi
cmp dword [esi + 0x14], 8
jb 0x40d037
mov ecx, dword [esi]
cmp word [ecx + ebx*2], 0x5c
je 0x40d056
lea ecx, [ebp - 0x2c]
call fcn.00406a00
cmp dword [esi + 0x14], 8
jb 0x40d04e
mov esi, dword [esi]
cmp word [esi + eax*2 - 2], 0x2f
jne 0x40d0af
lea eax, [ebp - 0x2c]
push 0x20
push eax
call fcn.0040f650
add esp, 8
lea ecx, [ebp - 0x2c]
call fcn.004052c0
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x40d0b3
lea ecx, [ebp - 0x44]
call fcn.00405420
mov byte [ebp - 4], 2
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x2c]
call fcn.004193e0
test al, al
je 0x40d09e
lea ecx, [ebp - 0x44]
call fcn.004052c0
push eax
call edi
mov esi, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.00405300
cmp esi, 0xffffffff
jne 0x40d0b3
xor bl, bl
jmp 0x40d0b5
mov bl, 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00405300
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00454e67
mov esp, ebp
pop ebp
ret
Function at 0x40d0f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d068
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x4a9068]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.004052b0
test al, al
je 0x40d130
xor al, al
jmp 0x40d26c
push esi
lea ecx, [ebp - 0x2c]
call fcn.00405440
mov dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push 4
push eax
call fcn.0040f650
add esp, 8
lea ecx, [ebp - 0x2c]
call fcn.004052c0
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call edi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40d19f
lea ecx, [ebp - 0x44]
call fcn.00405420
mov byte [ebp - 4], 1
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x2c]
call fcn.004193e0
test al, al
je 0x40d18e
lea ecx, [ebp - 0x44]
call fcn.004052c0
push eax
call edi
mov ebx, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.00405300
cmp ebx, 0xffffffff
je 0x40d1a8
test bl, 0x10
je 0x40d259
lea ecx, [ebp - 0x2c]
call fcn.00406a00
cmp eax, 2
jbe 0x40d255
lea ecx, [ebp - 0x2c]
call fcn.00406a00
lea ecx, [ebp - 0x2c]
lea ebx, [eax - 1]
call fcn.00406750
mov esi, eax
mov ecx, esi
cmp dword [esi + 0x14], 8
jb 0x40d1d8
mov ecx, dword [esi]
cmp word [ecx + ebx*2], 0x5c
je 0x40d1f7
lea ecx, [ebp - 0x2c]
call fcn.00406a00
cmp dword [esi + 0x14], 8
jb 0x40d1ef
mov esi, dword [esi]
cmp word [esi + eax*2 - 2], 0x2f
jne 0x40d255
lea eax, [ebp - 0x2c]
push 0x20
push eax
call fcn.0040f650
add esp, 8
lea ecx, [ebp - 0x2c]
call fcn.004052c0
push eax
call edi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40d250
lea ecx, [ebp - 0x44]
call fcn.00405420
mov byte [ebp - 4], 2
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x2c]
call fcn.004193e0
test al, al
je 0x40d23f
lea ecx, [ebp - 0x44]
call fcn.004052c0
push eax
call edi
mov ebx, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.00405300
cmp ebx, 0xffffffff
je 0x40d255
test bl, 0x10
je 0x40d259
xor bl, bl
jmp 0x40d25b
mov bl, 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00405300
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00454e67
mov esp, ebp
pop ebp
ret
Function at 0x40d290
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d0a0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x4a9068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.004052b0
test al, al
je 0x40d2cf
xor al, al
jmp 0x40d35a
push esi
lea ecx, [ebp - 0x28]
call fcn.00405440
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push 4
push eax
call fcn.0040f650
add esp, 8
lea ecx, [ebp - 0x28]
call fcn.004052c0
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call esi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40d33e
lea ecx, [ebp - 0x40]
call fcn.00405420
mov byte [ebp - 4], 1
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.004193e0
test al, al
je 0x40d32d
lea ecx, [ebp - 0x40]
call fcn.004052c0
push eax
call esi
mov ebx, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00405300
cmp ebx, 0xffffffff
je 0x40d347
test bl, 0x10
je 0x40d347
mov bl, 1
jmp 0x40d349
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00405300
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00454e67
mov esp, ebp
pop ebp
ret
Function at 0x40dc60
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d210
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x4a9068]
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 edi, ecx
call fcn.004052b0
test al, al
je 0x40dc9d
xor al, al
jmp 0x40de5b
push edi
call fcn.0040d290
add esp, 4
test al, al
je 0x40dcb1
mov al, 1
jmp 0x40de5b
push 0
mov ecx, edi
call fcn.004052c0
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push eax
call ebx
test eax, eax
jne 0x40dd00
lea ecx, [ebp - 0x28]
call fcn.00405420
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, edi
call fcn.004193e0
test al, al
je 0x40dcf1
push 0
lea ecx, [ebp - 0x28]
call fcn.004052c0
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00405300
push edi
call fcn.0040d290
add esp, 4
test al, al
jne 0x40dcaa
mov ecx, edi
call fcn.00406a00
xor esi, esi
mov dword [ebp - 0x44], eax
test eax, eax
je 0x40ddfc
mov ecx, edi
call fcn.00406750
mov ebx, eax
nop word [eax + eax]
mov ecx, dword [ebx + 0x14]
mov eax, ebx
cmp ecx, 8
jb 0x40dd3c
mov eax, dword [ebx]
mov edx, 0x2f
cmp dx, word [eax + esi*2]
mov edx, 0x5c
je 0x40dd5f
mov eax, ebx
cmp ecx, 8
jb 0x40dd55
mov eax, dword [ebx]
cmp dx, word [eax + esi*2]
jne 0x40ddec
push esi
push 0
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.00405260
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.004052b0
test al, al
jne 0x40dddd
lea eax, [ebp - 0x28]
push eax
call fcn.0040cf50
add esp, 4
test al, al
jne 0x40dddd
push 0
lea ecx, [ebp - 0x28]
call fcn.004052c0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40dddd
lea ecx, [ebp - 0x40]
call fcn.00405420
mov byte [ebp - 4], 2
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.004193e0
test al, al
je 0x40ddd1
push 0
lea ecx, [ebp - 0x40]
call fcn.004052c0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00405300
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00405300
inc esi
cmp esi, dword [ebp - 0x44]
jb 0x40dd30
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push edi
call fcn.0040cf50
add esp, 4
test al, al
jne 0x40de52
push 0
mov ecx, edi
call fcn.004052c0
push eax
call ebx
test eax, eax
jne 0x40de52
lea ecx, [ebp - 0x40]
call fcn.00405420
mov dword [ebp - 4], 3
lea edx, [ebp - 0x40]
mov ecx, edi
call fcn.004193e0
test al, al
je 0x40de43
push 0
lea ecx, [ebp - 0x40]
call fcn.004052c0
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00405300
push edi
call fcn.0040d290
add esp, 4
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.00454e67
mov esp, ebp
pop ebp
ret

Function at 0x40ebe0
Capabilities:
Create directory

Disassembly:
mov ecx, dword [esp + 4]
jmp fcn.0040dc60
Function at 0x417e60
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47e728
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x4a9068]
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 edi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [edi]
test eax, eax
je 0x417ea6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
lea ecx, [ebp - 0x14]
mov word [edi + 4], 0
mov dword [ebp - 0x14], 0
call fcn.0041ce80
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
cmp dword [esi], 0
je 0x417ecf
lea ebx, [esi + 8]
jmp 0x417ed1
xor ebx, ebx
mov ecx, dword [ebp - 0x18]
call fcn.004052b0
test al, al
jne 0x417ee7
mov ecx, dword [ebp - 0x18]
call fcn.004052c0
jmp 0x417ee9
xor eax, eax
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
test eax, eax
je 0x417f0a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x417f0a
mov byte [edi + 5], 1
cmp dword [edi], 0
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x417f33
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x417f48
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.00454ead
add esp, 8
mov dword [ebp - 0x14], 0
mov al, bl
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.00454e67
mov esp, ebp
pop ebp
ret 4

Function at 0x4189d0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d448
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4a9068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov ebx, ecx
and esi, 0xffffb1af
push esi
call fcn.004052c0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x418a19
mov al, 1
jmp 0x418a61
lea ecx, [ebp - 0x28]
call fcn.00405420
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, ebx
call fcn.004193e0
test al, al
je 0x418a4e
push esi
lea ecx, [ebp - 0x28]
call fcn.004052c0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x418a4e
mov bl, 1
jmp 0x418a50
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00405300
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00454e67
mov esp, ebp
pop ebp
ret
Function at 0x418a80
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d448
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4a9068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.004052c0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x418afe
lea ecx, [ebp - 0x28]
call fcn.00405420
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, ebx
call fcn.004193e0
test al, al
je 0x418aed
lea ecx, [ebp - 0x28]
call fcn.004052c0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00405300
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00454e67
mov esp, ebp
pop ebp
ret

Function at 0x418c30
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47e8e8
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x4a9068]
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, edx
mov edi, ecx
push 0xb
mov ecx, esi
call fcn.004052c0
push eax
mov ecx, edi
call fcn.004052c0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x418c82
mov al, 1
jmp 0x418d70
lea ecx, [ebp - 0x58]
xor bl, bl
call fcn.00405420
mov dword [ebp - 4], 0
lea edx, [ebp - 0x58]
mov ecx, edi
call fcn.004193e0
test al, al
movzx ebx, bl
mov ecx, 1
cmovne ebx, ecx
lea ecx, [ebp - 0x40]
call fcn.00405420
mov byte [ebp - 4], 1
lea edx, [ebp - 0x40]
mov ecx, esi
call fcn.004193e0
test al, al
jne 0x418cc8
test bl, bl
je 0x418ce6
push 0xb
lea ecx, [ebp - 0x40]
call fcn.004052c0
push eax
lea ecx, [ebp - 0x58]
call fcn.004052c0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x418d3a
mov ecx, esi
call fcn.00418a80
cmp eax, 0xffffffff
je 0x418d51
push esi
lea ecx, [ebp - 0x28]
call fcn.00405440
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.00419030
test al, al
je 0x418d45
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.00418b20
test al, al
je 0x418d45
mov edx, esi
mov ecx, edi
call fcn.00418b20
lea ecx, [ebp - 0x28]
test al, al
je 0x418d3e
call fcn.00418d90
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00405300
mov bl, 1
jmp 0x418d53
mov edx, esi
call fcn.00418b20
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00405300
xor bl, bl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00405300
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00405300
mov al, bl
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.00454e67
mov esp, ebp
pop ebp
ret