joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418c39
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4404c8]
je 0x418c54
inc edi
cmp edi, 0x17
jb 0x418c45
cmp edi, 0x17
jae 0x418dd4
push ebp
push 3
call fcn.0041bfd0
cmp eax, 1
pop ecx
je 0x418da0
push 3
call fcn.0041bfd0
test eax, eax
pop ecx
jne 0x418c88
cmp dword [0x43f9d8], 1
je 0x418da0
cmp ebx, 0xfc
je 0x418dd3
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x441af8
push ebp
call fcn.00417e79
add esp, 0xc
test eax, eax
je 0x418cbe
push esi
push esi
push esi
push esi
push esi
call fcn.00411d2f
add esp, 0x14
push 0x104
mov esi, 0x441b11
push esi
push 0
mov byte [0x441c15], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x418d02
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00417e79
add esp, 0xc
test eax, eax
je 0x418d02
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00411d2f
add esp, 0x14
push esi
call fcn.00415470
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x418d47
push esi
call fcn.00415470
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x441e0c
push 0x43644c
sub ecx, eax
push ecx
push eax
call fcn.00411c72
add esp, 0x14
test eax, eax
je 0x418d47
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00411d2f
add esp, 0x14
jmp 0x418d49
xor esi, esi
push 0x436448
push ebx
push ebp
call fcn.0041a8cc
add esp, 0xc
test eax, eax
je 0x418d69
push esi
push esi
push esi
push esi
push esi
call fcn.00411d2f
add esp, 0x14
push dword [edi*8 + 0x4404cc]
push ebx
push ebp
call fcn.0041a8cc
add esp, 0xc
test eax, eax
je 0x418d8b
push esi
push esi
push esi
push esi
push esi
call fcn.00411d2f
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0041be13
add esp, 0xc
jmp 0x418dd3
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x418dd3
cmp ebp, 0xffffffff
je 0x418dd3
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4404cc]
push dword [esi]
call fcn.00415470
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x41be13
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0041333c
xor ebx, ebx
cmp dword [0x441f8c], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x41bee9
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x41bfc9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4375bc
push edi
call esi
cmp eax, ebx
je 0x41bfc9
push eax
call fcn.004132ce
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x441f8c], eax
call esi
push eax
call fcn.004132ce
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x441f90], eax
call esi
push eax
call fcn.004132ce
mov dword [0x441f94], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004167c4
test eax, eax
pop ecx
pop ecx
je 0x41beb7
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00411d2f
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x41bee9
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004132ce
cmp eax, ebx
pop ecx
mov dword [0x441f9c], eax
je 0x41bee9
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004132ce
pop ecx
mov dword [0x441f98], eax
mov eax, dword [0x441f98]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x41bf6e
cmp dword [0x441f9c], ecx
je 0x41bf6e
push eax
call fcn.00413345
push dword [0x441f9c]
mov esi, eax
call fcn.00413345
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x41bf6e
cmp edi, ebx
je 0x41bf6e
call esi
cmp eax, ebx
je 0x41bf3b
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41bf3b
test byte [ebp - 0x18], 1
jne 0x41bf6e
lea eax, [ebp - 0x10]
push eax
call fcn.004167fb
test eax, eax
pop ecx
je 0x41bf56
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00411d2f
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x41bf65
or dword [ebp + 0x10], 0x200000
jmp 0x41bfa9
or dword [ebp + 0x10], 0x40000
jmp 0x41bfa9
mov eax, dword [0x441f90]
cmp eax, dword [ebp - 8]
je 0x41bfa9
push eax
call fcn.00413345
cmp eax, ebx
pop ecx
je 0x41bfa9
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x41bfa9
mov eax, dword [0x441f94]
cmp eax, dword [ebp - 8]
je 0x41bfa9
push eax
call fcn.00413345
cmp eax, ebx
pop ecx
je 0x41bfa9
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x441f8c]
call fcn.00413345
cmp eax, ebx
pop ecx
je 0x41bfc9
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41bfcb
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401006
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x461004]
jne 0x401010
repz ret
jmp fcn.00401598

Function at 0x407585
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.00404c65
and dword [ebp - 4], 0
cmp dword [0x46355c], 0
mov ebx, eax
jne 0x407636
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4076e7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4076e7
push eax
call fcn.00404bf3
mov dword [esp], 0x45ea54
push edi
mov dword [0x46355c], eax
call esi
push eax
call fcn.00404bf3
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x463560], eax
call esi
push eax
call fcn.00404bf3
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x463564], eax
call esi
push eax
call fcn.00404bf3
pop ecx
mov dword [0x46356c], eax
test eax, eax
je 0x407636
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404bf3
pop ecx
mov dword [0x463568], eax
mov eax, dword [0x463568]
cmp eax, ebx
je 0x40768e
cmp dword [0x46356c], ebx
je 0x40768e
push eax
call fcn.00404c6e
push dword [0x46356c]
mov esi, eax
call fcn.00404c6e
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40768e
test edi, edi
je 0x40768e
call esi
test eax, eax
je 0x407685
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x407685
test byte [ebp - 0xc], 1
jne 0x40768e
or dword [ebp + 0x10], 0x200000
jmp 0x4076c7
mov eax, dword [0x463560]
cmp eax, ebx
je 0x4076c7
push eax
call fcn.00404c6e
pop ecx
test eax, eax
je 0x4076c7
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4076c7
mov eax, dword [0x463564]
cmp eax, ebx
je 0x4076c7
push eax
call fcn.00404c6e
pop ecx
test eax, eax
je 0x4076c7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x46355c]
call fcn.00404c6e
pop ecx
test eax, eax
je 0x4076e7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4076e9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405aa0
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x114], eax
push esi
mov esi, ecx
mov dword [esp + 4], 0x114
push 0x110
lea eax, [esp + 0xc]
push 0
push eax
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov byte [esi], 0
call fcn.00411f40
add esp, 0xc
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, esi
je 0x405b37
cmp dword [esp + 8], 6
jb 0x405b37
mov byte [esi], 1
mov ecx, dword [esp + 0x118]
pop esi
xor ecx, esp
call fcn.0040fef5
add esp, 0x118
ret
Function at 0x405b50
Capabilities:
Link many functions at runtime

Disassembly:
push 0xffffffffffffffff
push 0x41fe9c
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push ebp
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov ebx, ecx
push 0xc
xor eax, eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
lea ecx, [esp + 0x1c]
push 0x427a18
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], 0
mov word [esp + 0x20], ax
call fcn.00402f20
mov dword [esp + 0x50], 0
mov eax, dword [0x42d80c]
test al, 1
jne 0x405bef
or eax, 1
mov dword [0x42d80c], eax
mov byte [esp + 0x50], 1
mov dword [0x42d808], 0
call fcn.0040a7e0
push 0x420fc0
call fcn.0041093c
add esp, 4
mov byte [esp + 0x50], 0
lea eax, [esp + 0x18]
mov ecx, 0x42d808
push eax
call fcn.0040a920
mov edi, eax
mov dword [esp + 0x50], 0xffffffff
cmp dword [esp + 0x2c], 8
jb 0x405c1b
push dword [esp + 0x18]
call fcn.00410aa8
add esp, 4
xor eax, eax
mov dword [esp + 0x2c], 7
push 0xb
mov dword [esp + 0x44], eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x48], eax
push str.crypt32.dll
mov dword [esp + 0x30], 0
mov word [esp + 0x20], ax
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], eax
mov word [esp + 0x38], ax
call fcn.00402f20
mov dword [esp + 0x50], 2
mov eax, dword [0x42d80c]
test al, 1
jne 0x405c9a
or eax, 1
mov dword [0x42d80c], eax
mov byte [esp + 0x50], 3
mov dword [0x42d808], 0
call fcn.0040a7e0
push 0x420fc0
call fcn.0041093c
add esp, 4
mov byte [esp + 0x50], 2
lea eax, [esp + 0x30]
mov ecx, 0x42d808
push eax
call fcn.0040a920
mov ebp, eax
mov dword [esp + 0x50], 0xffffffff
cmp dword [esp + 0x44], 8
jb 0x405cc6
push dword [esp + 0x30]
call fcn.00410aa8
add esp, 4
xor eax, eax
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], 0
mov word [esp + 0x30], ax
test edi, edi
je 0x405d59
test ebp, ebp
je 0x405d59
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptCATAdminCalcHashFromFileHandle
push edi
call esi
push str.CryptCATAdminAcquireContext
push edi
mov dword [ebx + 4], eax
call esi
push str.CryptCATAdminEnumCatalogFromHash
push edi
mov dword [ebx + 8], eax
call esi
push str.CryptCATCatalogInfoFromContext
push edi
mov dword [ebx + 0xc], eax
call esi
push str.CryptCATAdminReleaseCatalogContext
push edi
mov dword [ebx + 0x10], eax
call esi
push str.CryptCATAdminReleaseContext
push edi
mov dword [ebx + 0x14], eax
call esi
push str.WTHelperProvDataFromStateData
push edi
mov dword [ebx + 0x18], eax
call esi
push str.WTHelperGetProvSignerFromChain
push edi
mov dword [ebx + 0x1c], eax
call esi
push str.WinVerifyTrust
push edi
mov dword [ebx + 0x20], eax
call esi
push str.CertNameToStrW
push ebp
mov dword [ebx + 0x24], eax
call esi
mov dword [ebx + 0x28], eax
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
Function at 0x407430
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42007e
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0xc], edi
mov esi, dword [esp + 0x20]
xor eax, eax
push 0xffffffffffffffff
push eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
push esi
mov word [edi], ax
call fcn.00402bc0
mov dword [esp + 0x18], 0
lea ecx, [edi + 0x18]
xor eax, eax
mov dword [ecx + 0x14], 7
push 0xffffffffffffffff
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [esi + 0x18]
push eax
call fcn.00402bc0
mov byte [esp + 0x18], 1
lea ecx, [edi + 0x30]
xor eax, eax
mov dword [ecx + 0x14], 7
push 0xffffffffffffffff
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [esi + 0x30]
push eax
call fcn.00402bc0
mov byte [esp + 0x18], 2
mov eax, dword [esi + 0x48]
mov dword [edi + 0x48], eax
mov eax, dword [esi + 0x4c]
mov dword [edi + 0x4c], eax
mov eax, dword [esi + 0x50]
mov dword [edi + 0x50], eax
mov eax, dword [esi + 0x54]
mov dword [edi + 0x54], eax
mov eax, dword [esi + 0x58]
mov dword [edi + 0x58], eax
mov eax, dword [esi + 0x5c]
mov dword [edi + 0x5c], eax
mov eax, dword [esi + 0x60]
mov dword [edi + 0x60], eax
mov al, byte [esi + 0x64]
mov byte [edi + 0x64], al
mov dword [esp + 0x18], 0xffffffff
mov eax, edi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4
Function at 0x408820
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x420208
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov esi, dword [esp + 0x50]
lea eax, [esp + 0x24]
mov edi, dword [esp + 0x54]
push esi
push eax
call fcn.00408f20
mov dword [esp + 0x48], 0
xorps xmm0, xmm0
movq qword [esp + 0x14], xmm0
mov dword [esp + 0x14], 0
mov word [esp + 0x18], 0
mov byte [esp + 0x48], 1
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x18]
call fcn.0040ba80
xorps xmm0, xmm0
lea eax, [esp + 0x14]
movq qword [esp + 0x1c], xmm0
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
mov byte [esp + 0x20], 0
test eax, eax
jne 0x4088b9
xor bl, bl
jmp 0x4088d8
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4088d1
cmp eax, 0x80
je 0x4088d1
xor bl, bl
jmp 0x4088d8
mov byte [esp + 0x18], 1
mov bl, 1
mov byte [esp + 0x20], bl
mov byte [esp + 0x48], 2
lea eax, [esp + 0x13]
push eax
push edi
push esi
mov byte [esp + 0x1f], 0
call fcn.004089b0
test al, al
jne 0x40890b
cmp byte [esp + 0x13], al
je 0x40890b
cmp dword [esi + 0x14], 8
jb 0x408904
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [esp + 0x48], 1
test bl, bl
je 0x408928
mov eax, dword [esp + 0x14]
test eax, eax
je 0x408923
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov byte [esp + 0x48], 0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40894c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x14], 0
mov word [esp + 0x18], 0
mov dword [esp + 0x48], 0xffffffff
cmp dword [esp + 0x38], 8
jb 0x40896e
push dword [esp + 0x24]
call fcn.00410aa8
add esp, 4
xor eax, eax
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], 0
mov word [esp + 0x24], ax
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.0040fef5
add esp, 0x3c
ret 8
Function at 0x40ba80
Capabilities:
Check mutex on windows

Disassembly:
push 0xffffffffffffffff
push 0x420928
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 8], eax
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
mov ebx, dword [esp + 0x2c]
test eax, eax
je 0x40baca
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
lea ecx, [esp + 0x14]
mov word [edi + 4], 0
mov dword [esp + 0x14], 0
call fcn.0040d990
mov dword [esp + 0x24], 0
mov esi, dword [esp + 0x14]
cmp dword [esi], 0
je 0x40baf7
lea eax, [esi + 8]
jmp 0x40baf9
xor eax, eax
cmp dword [ebx + 0x10], 0
je 0x40bb09
cmp dword [ebx + 0x14], 8
jb 0x40bb0b
mov ebx, dword [ebx]
jmp 0x40bb0b
xor ebx, ebx
push ebx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
test eax, eax
je 0x40bb2c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40bb2c
mov byte [edi + 5], 1
cmp dword [edi], 0
setne bl
mov dword [esp + 0x24], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x40bb56
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 ecx, dword [esi + 4]
test ecx, ecx
je 0x40bb6b
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push esi
call fcn.00410aa8
add esp, 4
mov dword [esp + 0x14], 0
mov al, bl
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.0040fef5
add esp, 0x18
ret 4
Function at 0x40bbe0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x420986
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
mov dword [edi], vtable.RC::RCFileHash.0
mov dword [edi + 4], 0
mov dword [esp + 0x14], edi
mov byte [edi + 8], 0
mov dword [esp + 0x38], 0
mov dword [edi], vtable.RC::RCFileHashCalc.0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [esp + 0x38], 2
xorps xmm0, xmm0
movq qword [esp + 0x18], xmm0
mov dword [esp + 0x20], 0
mov dword [edi], vtable.RC::RCMD5.0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov byte [esp + 0x38], 3
push 8
movq qword [esp + 0x28], xmm0
call fcn.00410b1e
add esp, 4
mov dword [esp + 0x10], eax
mov byte [esp + 0x38], 4
test eax, eax
je 0x40bcb4
xorps xmm0, xmm0
mov ecx, eax
movq qword [eax], xmm0
call fcn.0040dd90
jmp 0x40bcb6
xor eax, eax
mov byte [esp + 0x38], 3
lea ecx, [esp + 0x24]
push eax
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
call fcn.0040c0f0
mov byte [esp + 0x38], 5
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x1c]
call fcn.0040be80
lea eax, [esp + 0x18]
push eax
lea ecx, [edi + 0xc]
call fcn.0040e080
mov byte [esp + 0x38], 3
mov esi, dword [esp + 0x28]
test esi, esi
je 0x40bd27
or ebx, 0xffffffff
lea ecx, [esi + 4]
mov eax, ebx
lock xadd dword [ecx], eax
jne 0x40bd27
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lea eax, [esi + 8]
lock xadd dword [eax], ebx
dec ebx
jne 0x40bd27
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov byte [esp + 0x38], 2
mov esi, dword [esp + 0x18]
test esi, esi
je 0x40bd65
push dword [esp + 0x10]
mov edx, dword [esp + 0x20]
push ecx
mov ecx, esi
call fcn.0040a0a0
push esi
call fcn.00410aa8
add esp, 0xc
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x38], 0xffffffff
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0040fef5
add esp, 0x2c
ret
Function at 0x40cb80
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x420b38
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x18], eax
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 8
jb 0x40cbbc
mov eax, dword [esi]
jmp 0x40cbbe
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40cc53
xor eax, eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], 0
mov word [esp + 0xc], ax
mov dword [esp + 0x30], eax
lea edx, [esp + 0xc]
mov ecx, esi
call fcn.0040cd80
test al, al
je 0x40cc21
cmp dword [esp + 0x20], 8
lea eax, [esp + 0xc]
cmovae eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
mov dword [esp + 0x30], 0xffffffff
cmp dword [esp + 0x20], 8
jb 0x40cc3c
push dword [esp + 0xc]
call fcn.00410aa8
add esp, 4
xor eax, eax
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], 0
mov word [esp + 0xc], ax
mov eax, edi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0040fef5
add esp, 0x28
ret

Function at 0x40cc80
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x420b38
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push esi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 8
jb 0x40ccbc
mov eax, dword [esi]
jmp 0x40ccbe
mov eax, esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40ccd2
mov al, 1
jmp 0x40cd61
xor eax, eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], 0
mov word [esp + 0xc], ax
mov dword [esp + 0x30], eax
lea edx, [esp + 0xc]
mov ecx, esi
call fcn.0040cd80
test al, al
je 0x40cd2b
cmp dword [esp + 0x20], 8
lea eax, [esp + 0xc]
push 0
cmovae eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40cd2b
mov bl, 1
jmp 0x40cd2d
xor bl, bl
mov dword [esp + 0x30], 0xffffffff
cmp dword [esp + 0x20], 8
jb 0x40cd48
push dword [esp + 0xc]
call fcn.00410aa8
add esp, 4
xor eax, eax
mov dword [esp + 0x20], 7
mov word [esp + 0xc], ax
mov al, bl
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0040fef5
add esp, 0x28
ret
Function at 0x40cfa0
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 4], eax
mov eax, dword [ecx]
push edi
mov edi, dword [esp + 0x10]
test eax, eax
jne 0x40cfcd
xor al, al
pop edi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.0040fef5
add esp, 8
ret 4
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x40cfb9
push esi
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40d007
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40d007
pop esi
xor al, al
pop edi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.0040fef5
add esp, 8
ret 4
mov ecx, dword [esp + 8]
xor eax, eax
add eax, esi
mov dword [edi], eax
mov al, 1
adc ecx, 0
mov dword [edi + 4], ecx
mov ecx, dword [esp + 0xc]
pop esi
pop edi
xor ecx, esp
call fcn.0040fef5
add esp, 8
ret 4