joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c624
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41a5a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00407f55
mov dword [ebp - 0x14], eax
cmp dword [0x4bb2b0], esi
jne 0x40c717
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40c6a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40c7f7
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40c7f7
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c7f7
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4bb2b0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4bb2b4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4bb2b8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4bb2c0], eax
test eax, eax
je 0x40c714
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4bb2bc], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40c73c
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40c72f
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40c751
push 4
pop eax
jmp 0x40c7f9
cmp dword [ebp - 0x14], esi
je 0x40c751
push dword [0x4bb2b0]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40c736
mov eax, dword [0x4bb2bc]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40c7af
cmp dword [0x4bb2c0], edi
je 0x40c7af
push eax
call ebx
push dword [0x4bb2c0]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40c7af
test eax, eax
je 0x40c7af
call ecx
test eax, eax
je 0x40c7a4
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40c7a4
test byte [ebp - 8], 1
jne 0x40c7af
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40c7df
mov eax, dword [0x4bb2b4]
cmp eax, edi
je 0x40c7dc
push eax
call ebx
test eax, eax
je 0x40c7dc
call eax
mov esi, eax
test esi, esi
je 0x40c7dc
mov eax, dword [0x4bb2b8]
cmp eax, edi
je 0x40c7dc
push eax
call ebx
test eax, eax
je 0x40c7dc
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4bb2b0]
call ebx
test eax, eax
je 0x40c7f7
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40c7f9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040393e
mov esp, ebp
pop ebp
ret
Function at 0x401450
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
fldz
push ebx
push esi
xor eax, eax
push edi
mov edi, dword [esp + 0x20]
mov dword [esp + 0xc], eax
mov dword [esp + 0xc], eax
fstp qword [esp + 0x10]
push edi
call fcn.0040b2a8
mov esi, eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x24], eax
fild dword [esp + 0x24]
fsub qword [0x423230]
call fcn.0040b410
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x10], eax
fld qword [0x423230]
fsub qword [0x41f370]
push edi
push ebx
push esi
fstp qword [0x423230]
call fcn.0040b4c0
mov eax, dword [0x427824]
sub eax, 0x423004
add edi, esi
add esp, 0x10
add eax, ebx
mov ecx, esi
cmp esi, edi
je 0x4014cc
mov dl, byte [eax]
xor byte [ecx], dl
inc ecx
inc eax
cmp ecx, edi
jne 0x4014c2
fld qword [0x4239a8]
pop edi
fadd qword [0x41f380]
mov eax, esi
pop esi
pop ebx
fstp qword [0x423240]
add esp, 0xc
ret

Function at 0x402620
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x64
fldz
xor eax, eax
fstp qword [esp + 8]
xor edx, edx
fldz
mov dword [esp], eax
fstp dword [esp + 4]
movzx ecx, word [0x425b78]
imul ecx, ecx, 0xe72d8cc2
mov word [0x425b78], cx
mov dword [esp + 0x24], eax
fld qword [esp + 8]
mov dword [esp + 0x28], eax
fadd qword [esp + 8]
mov dword [esp + 0x20], 0x44
mov ecx, 1
fstp qword [esp + 8]
fld qword [esp + 8]
mov word [esp + 0x52], dx
fsub qword [0x41f370]
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x70]
mov word [esp + 0x54], cx
fstp qword [esp + 0xc]
lea ecx, [esp + 0x24]
push ecx
push eax
push eax
push 8
push eax
push eax
push eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x88]
push edx
push eax
mov dword [esp + 0x74], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
fld dword [0x425ee8]
mov ecx, dword [esp]
mov dword [esp], ecx
fild dword [esp]
fld dword [esp + 4]
fsubp st(2)
fxch st(1)
fsub qword [0x41f468]
fsubp st(1)
call fcn.0040b410
mov dword [esp], eax
add esp, 0x64
ret
Function at 0x403120
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x14
fldz
push ebx
push esi
push edi
mov dword [esp + 0x10], 0
fstp qword [esp + 0x18]
xor eax, eax
push 3
mov word [esp + 0x10], ax
push 0x423f60
call fcn.00401450
mov cx, word [0x425b64]
movsx edx, cx
mov dword [esp + 0x1c], edx
mov edi, eax
add esp, 8
fild dword [esp + 0x14]
fcomp qword [0x425a58]
fnstsw ax
test ah, 1
jne 0x403175
add dword [esp + 0x10], 0xb9925974
jmp 0x4031a9
mov ax, word [0x425b44]
movsx ecx, ax
add ecx, 0x2fb1463e
mov dword [esp + 0x14], ecx
fild dword [esp + 0x14]
fadd qword [0x425ec0]
fcomp qword [0x41f508]
fnstsw ax
test ah, 5
jp 0x4031a9
fld qword [0x41f500]
fstp qword [esp + 0x18]
mov ebx, dword [esp + 0x24]
push edi
push ebx
call fcn.0040bd2e
mov esi, eax
add esp, 8
test esi, esi
jne 0x403268
fld qword [esp + 0x18]
mov dx, word [esp + 0xc]
mov cx, word [esp + 0xc]
fsub qword [0x41f4f8]
dec dword [esp + 0xc]
movsx eax, dx
movsx edx, cx
sub eax, edx
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fcompp
fnstsw ax
fld qword [esp + 0x18]
fld1
fadd st(1), st(0)
fxch st(1)
fstp qword [esp + 0x18]
test ah, 0x41
jp 0x403239
mov ax, word [0x425ae0]
mov cx, word [esp + 0xc]
cwde
movsx edx, cx
sub edx, eax
mov dword [esp + 0x14], edx
fild dword [esp + 0x14]
fadd qword [0x425b00]
fmul qword [0x4242a8]
fstp qword [0x4242a8]
fsubr qword [0x425b00]
fstp qword [0x425b00]
jmp 0x40323b
fstp st(0)
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
mov dword [esp + 0x14], 0x831908a1
push ebx
call fcn.0040bd2e
add dword [0x425ad4], 0x6ae49974
mov esi, eax
add esp, 8
test esi, esi
je 0x4032b2
mov ax, word [esp + 0xc]
movsx ecx, ax
mov eax, 0xffffffff
add dword [esp + 0xc], eax
cmp ecx, 0x8946ad4d
jne 0x40329a
add word [0x4232ac], ax
movzx edx, word [0x4232ac]
sub edx, 0x2b2f2be5
mov word [esp + 0xc], dx
push esi
push 1
lea eax, [esp + 0x30]
push 4
push eax
call fcn.0040bbe8
push esi
call fcn.0040ba0a
add esp, 0x14
fldz
xor eax, eax
mov word [edi], ax
mov dword [esp + 0x14], 0
fstp qword [esp + 0x18]
push edi
mov byte [edi + 2], al
call fcn.0040b1cb
add esp, 4
pop edi
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x403e10
Capabilities:
Set registry value

Disassembly:
sub esp, 0xc
fldz
push ebp
xor eax, eax
mov word [esp + 4], ax
xor ecx, ecx
push 0x2e
mov word [esp + 8], cx
fstp qword [esp + 8]
push 0x425b7c
call fcn.00401450
add esp, 8
lea edx, [esp + 0xc]
push edx
mov ebp, eax
push ebp
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x403eae
push esi
push edi
push 0x34
push 0x4237e4
call fcn.00401450
mov edx, dword [esp + 0x24]
mov esi, eax
mov eax, edx
add esp, 8
lea edi, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403e70
sub eax, edi
push eax
mov eax, dword [esp + 0x18]
push edx
push 1
push 0
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
fldz
push 0x34
push 0
mov dword [esp + 0x14], 0
fstp qword [esp + 0x14]
push esi
call fcn.0040b830
push esi
call fcn.0040b1cb
add esp, 0x10
pop edi
pop esi
fldz
push 0x2e
push 0
mov dword [esp + 0xc], 0
fstp qword [esp + 0xc]
push ebp
call fcn.0040b830
push ebp
call fcn.0040b1cb
mov ecx, dword [esp + 0x1c]
add esp, 0x10
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
add esp, 0xc
ret
Function at 0x40b3f6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x426020]
jne 0x40b400
repz ret
jmp fcn.0040f7bc

Function at 0x41571f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0041200a
and dword [ebp - 4], 0
cmp dword [0x428250], 0
mov ebx, eax
jne 0x4157d0
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x415881
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x420ac8
push edi
call esi
test eax, eax
je 0x415881
push eax
call fcn.00411f98
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x428250], eax
call esi
push eax
call fcn.00411f98
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x428254], eax
call esi
push eax
call fcn.00411f98
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x428258], eax
call esi
push eax
call fcn.00411f98
pop ecx
mov dword [0x428260], eax
test eax, eax
je 0x4157d0
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00411f98
pop ecx
mov dword [0x42825c], eax
mov eax, dword [0x42825c]
cmp eax, ebx
je 0x415828
cmp dword [0x428260], ebx
je 0x415828
push eax
call fcn.00412013
push dword [0x428260]
mov esi, eax
call fcn.00412013
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x415828
test edi, edi
je 0x415828
call esi
test eax, eax
je 0x41581f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41581f
test byte [ebp - 0xc], 1
jne 0x415828
or dword [ebp + 0x10], 0x200000
jmp 0x415861
mov eax, dword [0x428254]
cmp eax, ebx
je 0x415861
push eax
call fcn.00412013
pop ecx
test eax, eax
je 0x415861
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x415861
mov eax, dword [0x428258]
cmp eax, ebx
je 0x415861
push eax
call fcn.00412013
pop ecx
test eax, eax
je 0x415861
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x428250]
call fcn.00412013
pop ecx
test eax, eax
je 0x415881
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x415883
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4078c0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x44dba8
push eax
mov dword fs:[0], esp
sub esp, 0x28
push esi
mov esi, ecx
cmp byte [esi + 0x10], 0xaa
je 0x4078eb
push 0
call fcn.00405890
add esp, 4
lea ecx, [esp + 4]
call fcn.00406c70
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 4]
push eax
mov dword [esp + 0x38], 0
call fcn.004064f0
test al, al
jne 0x407933
lea ecx, [esp + 4]
mov dword [esp + 0x34], 0xffffffff
call fcn.00406f70
xor al, al
pop esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret 4
push ebx
mov ecx, esi
call fcn.00405ad0
lea ecx, [esp + 8]
call fcn.0040f260
push eax
lea ecx, [esp + 0xc]
call fcn.00427660
push eax
mov ecx, esi
call fcn.00406720
lea ecx, [esp + 8]
mov bl, al
mov dword [esp + 0x38], 0xffffffff
call fcn.00406f70
mov ecx, dword [esp + 0x30]
mov al, bl
pop ebx
pop esi
mov dword fs:[0], ecx
add esp, 0x34
ret 4
Function at 0x40bb10
Capabilities:
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x44e1db
push eax
mov eax, 0x18a0
mov dword fs:[0], esp
call fcn.004292f0
lea ecx, [esp]
call fcn.00425440
lea ecx, [esp]
mov dword [esp + 0x18a8], 0
call fcn.00425490
test al, al
je 0x40bb79
lea eax, [esp + 0x98]
push eax
push 0x800
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [esp + 0x98]
push ecx
mov ecx, dword [esp + 0x18b4]
call fcn.00409d60
jmp 0x40bbcd
lea edx, [esp + 0x89c]
push edx
push 0x800
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x40bbb9
lea eax, [esp + 0x98]
push eax
push 0x800
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [esp + 0x98]
push ecx
mov ecx, dword [esp + 0x18b4]
call fcn.00409d60
jmp 0x40bbcd
mov ecx, dword [esp + 0x18b0]
lea edx, [esp + 0x89c]
push edx
call fcn.00409fb0
lea ecx, [esp]
mov dword [esp + 0x18a8], 0xffffffff
call fcn.00425480
mov ecx, dword [esp + 0x18a0]
mov dword fs:[0], ecx
add esp, 0x18ac
ret

Function at 0x40bc00
Capabilities:
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x44e1fb
push eax
mov eax, 0x20a4
mov dword fs:[0], esp
call fcn.004292f0
lea ecx, [esp]
call fcn.00425440
lea ecx, [esp]
mov dword [esp + 0x20ac], 0
call fcn.00425490
test al, al
je 0x40bc69
lea eax, [esp + 0x89c]
push eax
push 0x800
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0x89c]
push ecx
mov ecx, dword [esp + 0x20b8]
call fcn.00409d60
jmp 0x40bcc8
lea edx, [esp + 0x10a0]
push edx
push 0x800
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x40bcb4
lea eax, [esp + 0x98]
push eax
push 0x800
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x40bc9e
mov byte [esp + 0x98], al
lea ecx, [esp + 0x98]
push ecx
mov ecx, dword [esp + 0x20b8]
call fcn.00409d60
jmp 0x40bcc8
mov ecx, dword [esp + 0x20b4]
lea edx, [esp + 0x10a0]
push edx
call fcn.00409fb0
lea ecx, [esp]
mov dword [esp + 0x20ac], 0xffffffff
call fcn.00425480
mov ecx, dword [esp + 0x20a4]
mov dword fs:[0], ecx
add esp, 0x20b0
ret
Function at 0x40bf00
Capabilities:
Check if file exists
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x44e27c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x230
push ebx
push esi
lea ecx, [esp + 8]
call fcn.00409b70
mov eax, dword [esp + 0x248]
lea ecx, [esp + 8]
push eax
mov dword [esp + 0x244], 0
call fcn.0040ab20
push 0x5c
push 0x2f
lea ecx, [esp + 0x10]
call fcn.0040b020
lea ecx, [esp + 0x118]
call fcn.00425440
lea ecx, [esp + 0x118]
mov byte [esp + 0x240], 1
call fcn.00425490
test al, al
lea ecx, [esp + 8]
je 0x40bf8d
call fcn.0040a460
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
setne bl
jmp 0x40c05a
call fcn.00409cb0
cmp eax, 0x104
jle 0x40c09b
lea ecx, [esp + 0x1b0]
call fcn.00409b70
lea ecx, [esp + 0x1b0]
lea edx, [esp + 8]
push ecx
push edx
mov byte [esp + 0x248], 2
call fcn.0040ba00
add esp, 8
lea ecx, [esp + 0x90]
call fcn.00409b70
push 0x45b8a0
lea ecx, [esp + 0x94]
mov byte [esp + 0x244], 3
call fcn.0040a800
lea ecx, [esp + 0x1b0]
call fcn.0040a8d0
push eax
lea ecx, [esp + 0x94]
call fcn.0040a800
lea ecx, [esp + 0x90]
call fcn.0040a030
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
test esi, esi
jne 0x40c02f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x40c02d
mov esi, 1
test esi, esi
lea ecx, [esp + 0x90]
mov byte [esp + 0x240], 2
setne bl
call fcn.00409c40
lea ecx, [esp + 0x1b0]
mov byte [esp + 0x240], 1
call fcn.00409c40
lea ecx, [esp + 0x118]
mov byte [esp + 0x240], 0
call fcn.00425480
lea ecx, [esp + 8]
mov dword [esp + 0x240], 0xffffffff
call fcn.00409c40
mov al, bl
pop esi
pop ebx
mov ecx, dword [esp + 0x230]
mov dword fs:[0], ecx
add esp, 0x23c
ret
push edi
lea ecx, [esp + 0xc]
call fcn.0040a030
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, eax
test edi, edi
jne 0x40c0f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [esp + 0x250]
mov ebx, eax
test esi, esi
je 0x40c0e5
push ebp
push ebx
mov ecx, esi
call fcn.0041e1e0
mov ebp, dword [esi]
lea ecx, [esp + 0x10]
call fcn.0040a8d0
push eax
push str.failedToDeleteFilepath
mov ecx, esi
call dword [ebp + 0x2c]
pop ebp
cmp ebx, 2
jne 0x40c0ef
mov edi, 1
test edi, edi
lea ecx, [esp + 0x11c]
mov byte [esp + 0x244], 0
setne bl
call fcn.00425480
lea ecx, [esp + 0xc]
mov dword [esp + 0x244], 0xffffffff
call fcn.00409c40
mov ecx, dword [esp + 0x23c]
pop edi
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x23c
ret
Function at 0x40ce50
Capabilities:
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x44e331
push eax
mov dword fs:[0], esp
sub esp, 0x1a8
push ebp
mov ebp, dword [esp + 0x1c4]
push esi
mov esi, dword [esp + 0x1c4]
push edi
mov edi, dword [esp + 0x1c4]
mov dword [ebp], 0
mov ecx, edi
mov dword [esi], 0xffffffff
call fcn.00409cb0
test eax, eax
jne 0x40ceb7
mov ecx, dword [esp + 0x1d0]
test ecx, ecx
je 0x40ceb0
mov eax, dword [ecx]
push str.GetAttributes:_filename_is_empty
call dword [eax + 0x14]
xor al, al
jmp 0x40cfeb
push ebx
lea ecx, [esp + 0x10]
call fcn.00409b70
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x1c4], 0
call fcn.0040ab20
push 0x5c
push 0x2f
lea ecx, [esp + 0x18]
call fcn.0040b020
lea ecx, [esp + 0x10]
call fcn.00409cb0
lea ecx, [esp + 0x120]
mov edi, eax
call fcn.00425440
mov bl, 1
cmp edi, 0x104
mov byte [esp + 0x1c0], bl
jge 0x40cf43
lea ecx, [esp + 0x10]
call fcn.0040a200
test al, al
jne 0x40cf28
lea ecx, [esp + 0x120]
call fcn.00425490
test al, al
je 0x40cf43
lea ecx, [esp + 0x10]
call fcn.0040a460
push eax
call fcn.0040ecc0
add esp, 4
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x40cfba
jmp 0x40cfb1
test edi, edi
jle 0x40cf9a
lea ecx, [esp + 0x98]
call fcn.00409b70
lea ecx, [esp + 0x98]
lea edx, [esp + 0x10]
push ecx
push edx
mov byte [esp + 0x1c8], 2
call fcn.0040bdf0
add esp, 8
lea ecx, [esp + 0x98]
call fcn.0040a040
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea ecx, [esp + 0x98]
mov dword [esi], eax
mov byte [esp + 0x1c0], bl
call fcn.00409c40
jmp 0x40cfac
lea ecx, [esp + 0x10]
call fcn.0040a040
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [esi], eax
cmp dword [esi], 0xffffffff
jne 0x40cfbd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp], eax
cmp dword [esi], 0xffffffff
lea ecx, [esp + 0x120]
mov byte [esp + 0x1c0], 0
setne bl
call fcn.00425480
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c0], 0xffffffff
call fcn.00409c40
mov al, bl
pop ebx
mov ecx, dword [esp + 0x1b4]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x1b4
ret
Function at 0x40d520
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x44e3cc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1d0
push ebx
push esi
push edi
lea ecx, [esp + 0x34]
call fcn.00409b70
mov eax, dword [esp + 0x1ec]
lea ecx, [esp + 0x34]
push eax
mov dword [esp + 0x1e8], 0
call fcn.0040ab20
push 0x5c
push 0x2f
lea ecx, [esp + 0x3c]
call fcn.0040b020
lea ecx, [esp + 0x144]
call fcn.00425440
mov bl, 1
lea ecx, [esp + 0x144]
mov byte [esp + 0x1e4], bl
call fcn.00425490
test al, al
je 0x40d5ab
push 0
lea ecx, [esp + 0x38]
call fcn.0040a460
push eax
call fcn.0040ec80
add esp, 8
jmp 0x40d61f
lea ecx, [esp + 0x34]
call fcn.00409cb0
test eax, eax
jle 0x40d60d
lea ecx, [esp + 0xbc]
call fcn.00409b70
lea ecx, [esp + 0xbc]
lea edx, [esp + 0x34]
push ecx
push edx
mov byte [esp + 0x1ec], 2
call fcn.0040bdf0
add esp, 8
lea ecx, [esp + 0xbc]
push 0
call fcn.0040a030
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [esp + 0xbc]
mov esi, eax
mov byte [esp + 0x1e4], bl
call fcn.00409c40
jmp 0x40d621
push 0
lea ecx, [esp + 0x38]
call fcn.0040a030
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
test esi, esi
jne 0x40d674
mov edi, dword [esp + 0x1f0]
test edi, edi
je 0x40d672
push ebp
lea ecx, [esp + 0x10]
call fcn.00406c70
lea ecx, [esp + 0x10]
mov byte [esp + 0x1e8], 3
call fcn.00407c10
mov ebp, dword [edi]
lea ecx, [esp + 0x10]
call fcn.00427660
push eax
push str.errorMsg
mov ecx, edi
call dword [ebp + 0x2c]
lea ecx, [esp + 0x10]
mov byte [esp + 0x1e8], bl
call fcn.00406f70
pop ebp
test esi, esi
lea ecx, [esp + 0x144]
mov byte [esp + 0x1e4], 0
setne bl
call fcn.00425480
lea ecx, [esp + 0x34]
mov dword [esp + 0x1e4], 0xffffffff
call fcn.00409c40
mov ecx, dword [esp + 0x1dc]
pop edi
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1dc
ret
Function at 0x40d6c0
Capabilities:
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x44e401
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1a8
push ebx
push esi
lea ecx, [esp + 8]
call fcn.00409b70
mov eax, dword [esp + 0x1c0]
lea ecx, [esp + 8]
push eax
mov dword [esp + 0x1bc], 0
call fcn.0040ab20
push 0x5c
push 0x2f
lea ecx, [esp + 0x10]
call fcn.0040b020
lea ecx, [esp + 0x118]
call fcn.00425440
mov bl, 1
lea ecx, [esp + 0x118]
mov byte [esp + 0x1b8], bl
call fcn.00425490
test al, al
lea ecx, [esp + 8]
je 0x40d746
call fcn.0040a460
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
jmp 0x40d7b2
call fcn.00409cb0
test eax, eax
jle 0x40d7a2
lea ecx, [esp + 0x90]
call fcn.00409b70
lea ecx, [esp + 0x90]
lea edx, [esp + 8]
push ecx
push edx
mov byte [esp + 0x1c0], 2
call fcn.0040bdf0
add esp, 8
lea ecx, [esp + 0x90]
call fcn.0040a030
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea ecx, [esp + 0x90]
mov esi, eax
mov byte [esp + 0x1b8], bl
call fcn.00409c40
jmp 0x40d7b4
lea ecx, [esp + 8]
call fcn.0040a030
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov esi, eax
test esi, esi
lea ecx, [esp + 0x118]
mov byte [esp + 0x1b8], 0
setne bl
call fcn.00425480
lea ecx, [esp + 8]
mov dword [esp + 0x1b8], 0xffffffff
call fcn.00409c40
mov ecx, dword [esp + 0x1b0]
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1b4
ret

Function at 0x40d860
Capabilities:
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x44e431
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1a8
push ebx
push esi
lea ecx, [esp + 8]
call fcn.00409b70
mov eax, dword [esp + 0x1c0]
lea ecx, [esp + 8]
push eax
mov dword [esp + 0x1bc], 0
call fcn.0040ab20
push 0x5c
push 0x2f
lea ecx, [esp + 0x10]
call fcn.0040b020
mov ebx, 1
push 0
lea ecx, [esp + 0xc]
push ebx
push ecx
call fcn.0040c140
add esp, 0xc
lea ecx, [esp + 0x118]
call fcn.00425440
lea ecx, [esp + 0x118]
mov byte [esp + 0x1b8], bl
call fcn.00425490
test al, al
je 0x40d90b
mov edx, dword [esp + 0x1c4]
lea ecx, [esp + 8]
push edx
call fcn.0040a460
push eax
call fcn.0040eca0
add esp, 8
and eax, 0xff
jmp 0x40d98b
lea ecx, [esp + 8]
call fcn.00409cb0
test eax, eax
jle 0x40d973
lea ecx, [esp + 0x90]
call fcn.00409b70
lea eax, [esp + 0x90]
lea ecx, [esp + 8]
push eax
push ecx
mov byte [esp + 0x1c0], 2
call fcn.0040bdf0
mov edx, dword [esp + 0x1cc]
add esp, 8
lea ecx, [esp + 0x90]
push edx
call fcn.0040a030
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [esp + 0x90]
mov esi, eax
mov byte [esp + 0x1b8], bl
call fcn.00409c40
jmp 0x40d98d
mov eax, dword [esp + 0x1c4]
lea ecx, [esp + 8]
push eax
call fcn.0040a030
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov esi, eax
test esi, esi
lea ecx, [esp + 0x118]
mov byte [esp + 0x1b8], 0
setne bl
call fcn.00425480
lea ecx, [esp + 8]
mov dword [esp + 0x1b8], 0xffffffff
call fcn.00409c40
mov ecx, dword [esp + 0x1b0]
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1b4
ret