joyce8/EMBER2024-capa huggingface dataset:
Function at 0x476118
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x476150
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004741cf
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004741a7
jmp 0x47615c
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x47780a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x47784c
call fcn.0047d588
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x47784c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x477843
xor eax, eax
jmp 0x477854
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0047785a
pop edi
pop esi
pop ebx
ret 4

Function at 0x47dab8
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x47dae6
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47db04
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0047da1e
jmp 0x47db04
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47db04
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0047da1e
test edi, edi
mov eax, edi
jne 0x47daee
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4018d0
Capabilities:
Check if file exists
Create directory
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x42a458]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
mov edi, ecx
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00412f00
add esp, 0xc
lea eax, [ebp - 0x20c]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor eax, eax
mov word [ebp - 0x206], ax
lea eax, [ebp - 0x20c]
push str.IimeFile
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40195c
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 2
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.00412f00
add esp, 0xc
push 0
push edi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHELL32.dll_PathYetAnotherMakeUniqueName]
push 3
lea eax, [ebp - 0x414]
xor esi, esi
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
call edi
test eax, eax
je 0x4019d5
push 2
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 4
push esi
lea eax, [ebp - 0x414]
push eax
call edi
test eax, eax
mov ecx, 1
cmovne esi, ecx
push 4
push 0
lea eax, [ebp - 0x20c]
push eax
call edi
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00411ee6
mov esp, ebp
pop ebp
ret
Function at 0x402510
Capabilities:
Connect pipe
Create pipe
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x42a458]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [0x42c740]
push esi
push edi
cmp dword [ebx + 0x390], 0
je 0x402625
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, str.S:_ML__NWNR___LW_D:_A__GA___AU__D__GA___NU__A__GA___SY__A__GA___BA__A__GA___WD_
push ecx
xor edx, edx
mov dword [ebp - 8], 0
call fcn.00401330
add esp, 4
test al, al
je 0x40257e
push 0
lea eax, [ebp - 8]
mov edx, 2
push eax
push 1
push ecx
call fcn.00401330
add esp, 4
mov ecx, str.S:_ML__NWNR___LW_D:_A__GA___AU__D__GA___NU__A__GA___SY__A__GA___BA__A__GA___WD__A__GA___AC_
test al, al
cmove ecx, esi
push ecx
call dword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0x800
push 0x800
push 0xff
push 6
push 3
push str..pipeIimeNamedPipe
mov dword [ebp - 0x14], 0xc
mov dword [ebp - 0xc], 1
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov esi, eax
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4025c6
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp esi, 0xffffffff
je 0x40263b
push 0
push esi
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x4025ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0x217
sete cl
test ecx, ecx
jne 0x4025ef
push esi
jmp 0x402611
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0
push esi
push 0x402790
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x40263b
push eax
call edi
cmp dword [ebx + 0x390], 0
mov esi, str.S:_ML__NWNR___LW_D:_A__GA___AU__D__GA___NU__A__GA___SY__A__GA___BA__A__GA___WD_
jne 0x402541
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00411ee6
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00411ee6
mov esp, ebp
pop ebp
ret
Function at 0x4059a0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
mov eax, dword [0x42a458]
xor eax, esp
mov dword [esp + 0x1c], eax
mov ecx, dword [0x42c740]
call fcn.00402650
mov eax, dword [0x42c740]
push 0
push dword [eax + 0x5b8]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [0x42c740]
push dword [eax + 0x5b4]
mov dword [eax + 0x5bc], 0
call dword [sym.imp.KERNEL32.dll_SetEvent]
lea eax, [esp]
mov dword [esp], 0x10
push eax
mov eax, dword [0x42c740]
mov dword [esp + 8], 1
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
push dword [eax + 0x5ac]
mov dword [esp + 0x20], 0
mov dword [esp + 0x10], 5
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
test eax, eax
jne 0x405a42
call fcn.004059a0
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00411ee6
mov esp, ebp
pop ebp
ret

Function at 0x405a60
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x42a458]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x405ad0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [0x42c740]
mov dword [ecx + 0x5b8], eax
test eax, eax
jne 0x405aa5
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00411ee6
mov esp, ebp
pop ebp
ret
mov dword [ecx + 0x5bc], 1
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00411ee6
mov esp, ebp
pop ebp
ret
Function at 0x407580
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x364
mov eax, dword [0x42a458]
xor eax, esp
mov dword [esp + 0x360], eax
push ebx
push esi
push edi
xor eax, eax
mov ebx, ecx
push 0x206
push eax
mov word [esp + 0x168], ax
lea eax, [esp + 0x16a]
push eax
call fcn.00412f00
add esp, 0xc
lea ecx, [esp + 0x160]
call fcn.00401710
lea eax, [ebx + 0xce]
push eax
lea eax, [esp + 0x164]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp word [esp + 0x160], 0
jne 0x4075ef
xor ecx, ecx
jmp 0x40760f
lea ecx, [esp + 0x160]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407600
sub ecx, edx
sar ecx, 1
push ecx
lea ecx, [esp + 0x164]
push ecx
lea ecx, [ebx + 0x184]
call fcn.00401e00
lea esi, [ebx + 0x18]
mov ecx, 0x53
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov eax, dword [esp + 0x12]
and eax, 1
or eax, 0
je 0x40764c
xor eax, eax
cmp word [esp + 0x3e], ax
setne al
inc eax
jmp 0x40764e
xor eax, eax
mov ecx, ebx
mov dword [ebx + 0x168], eax
call fcn.00409970
mov ecx, ebx
call fcn.00409a30
test eax, eax
je 0x407724
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebx + 0x3a4]
mov eax, dword [ebx + 0x14]
lea ecx, [edi - 0x100000]
cmp dword [eax + 0xc0], ecx
jbe 0x40773b
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x4076b4
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebx + 0xc], 0
mov dword [ebx], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
mov eax, dword [ebx + 8]
test eax, eax
je 0x4076c5
push eax
call esi
mov dword [ebx + 8], 0
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
je 0x407700
push eax
call esi
lea esi, [ebx + 0x19c]
mov dword [ebx + 4], 0xffffffff
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4076fa
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4076fa
mov ecx, esi
call fcn.004018d0
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
imul ecx, edi, 0x19
mov eax, 0x51eb851f
mul ecx
mov ecx, ebx
shr edx, 5
add edx, edi
mov dword [ebx + 0x3a4], edx
call fcn.00409a30
test eax, eax
jne 0x407670
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x360]
xor ecx, esp
call fcn.00411ee6
mov esp, ebp
pop ebp
ret
mov ecx, eax
mov eax, dword [ecx + 0xc0]
shr eax, 0x14
add eax, 2
cmp dword [ebx + 0x168], 1
jne 0x407764
cmp word [ecx + 0xba], ax
je 0x4077a4
mov word [ecx + 0xba], ax
jmp 0x407774
cmp word [ecx + 0xc6], ax
je 0x4077a4
mov word [ecx + 0xc6], ax
cmp dword [ebx + 0x198], 8
lea eax, [ebx + 0x184]
jb 0x407785
mov eax, dword [eax]
mov esi, dword [ebx + 0x14]
sub esp, 0x564
mov ecx, 0x159
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
call fcn.0040db20
add esp, 0x564
mov ecx, dword [esp + 0x36c]
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00411ee6
mov esp, ebp
pop ebp
ret
Function at 0x4077c0
Capabilities:
Check if file exists
Delete file

Disassembly:
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4077ed
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [esi + 0xc], 0
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov eax, dword [esi + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x407804
push eax
call edi
mov dword [esi + 8], 0
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x407839
push eax
call edi
lea edi, [esi + 0x19c]
mov dword [esi + 4], 0xffffffff
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x407839
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x407839
mov ecx, edi
call fcn.004018d0
pop edi
mov dword [esi + 0x3a4], 0
pop esi
ret
Function at 0x409a30
Capabilities:
Check if file exists
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x42a458]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x19c]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.Iime_imc.map
push edi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x409a82
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x409a82
mov ecx, edi
call fcn.004018d0
push 0
push 2
push 2
push 0
push 3
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x409adf
push str.Iime_Trie_Codetable
push dword [esi + 0x3a4]
push 0
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 8], eax
test eax, eax
je 0x409adf
push 0
push 0
push 0
push 0xf001f
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0xc], eax
test eax, eax
jne 0x409af1
mov ecx, esi
call fcn.004077c0
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00411ee6
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x3a4]
test ecx, ecx
je 0x409b09
jmp 0x409b00
mov byte [eax], 0
lea eax, [eax + 1]
dec ecx
jne 0x409b00
cmp dword [esi + 0x198], 8
lea eax, [esi + 0x184]
jb 0x409b1a
mov eax, dword [eax]
push 0
push eax
mov ecx, esi
call fcn.00409ba0
test eax, eax
je 0x409ad8
mov eax, dword [esi + 0x168]
test eax, eax
je 0x409b37
cmp eax, 2
jne 0x409b8a
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.00412f00
add esp, 0xc
lea ecx, [ebp - 0x210]
call fcn.00401710
push str.Iime.pyc
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 1
lea eax, [ebp - 0x210]
mov ecx, esi
push eax
call fcn.00409ba0
test eax, eax
je 0x409ad8
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop esi
call fcn.00411ee6
mov esp, ebp
pop ebp
ret
Function at 0x40d3d0
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41f843
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x42a458]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
mov dword [ebp - 4], eax
mov dword [esi + 0x2c], 7
mov dword [esi + 0x28], eax
mov word [esi + 0x18], ax
mov edx, dword [ebp + 8]
mov byte [ebp - 4], 1
cmp word [edx], ax
jne 0x40d42f
xor ecx, ecx
jmp 0x40d443
mov ecx, edx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d434
sub ecx, ebx
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.00401e00
mov edx, dword [ebp + 0xc]
cmp word [edx], 0
jne 0x40d459
xor ecx, ecx
jmp 0x40d46f
mov ecx, edx
lea ebx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d460
sub ecx, ebx
sar ecx, 1
push ecx
push edx
lea ecx, [esi + 0x18]
call fcn.00401e00
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x30], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x34], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x40d7b0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x42a458]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [ebp - 0x10], ebx
mov eax, dword [edi]
cmp eax, 0xffffffff
jne 0x40d7e5
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00411ee6
mov esp, ebp
pop ebp
ret 8
push 0
push 0
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
je 0x40d7d1
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push dword [ebp + 0xc]
push ebx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40d7d1
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push 0
lea eax, [ebp + 0xc]
push eax
push 0x800
push dword [ebp - 0x10]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
test esi, esi
jne 0x40d848
call ebx
cmp eax, 0xea
je 0x40d823
mov ecx, dword [ebp - 4]
xor eax, eax
test esi, esi
pop esi
cmovne eax, dword [ebp + 0xc]
xor ecx, ebp
pop edi
pop ebx
call fcn.00411ee6
mov esp, ebp
pop ebp
ret 8
Function at 0x40da80
Capabilities:
Check if file exists
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x42a458]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ebx, edx
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40dab1
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00411ee6
mov esp, ebp
pop ebp
ret
push edi
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40dae5
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00411ee6
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0x564
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00411ee6
mov esp, ebp
pop ebp
ret

Function at 0x40db20
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x578
mov eax, dword [0x42a458]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov ebx, ecx
lea esi, [ebp + 8]
mov ecx, 0x159
lea edi, [ebp - 0x574]
rep movsd dword es:[edi], dword [esi]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40db66
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00411ee6
mov esp, ebp
pop ebp
ret
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40db53
push 0
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
push 0x564
lea eax, [ebp - 0x574]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00411ee6
mov esp, ebp
pop ebp
ret
Function at 0x40dbd0
Capabilities:
Check if file exists
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x42a458]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov esi, ecx
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.00412f00
add esp, 0xc
lea ecx, [ebp - 0x210]
mov edx, 0x10
call fcn.004017e0
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40dc60
mov ecx, esi
call fcn.0040de00
sub esp, 0x150
mov ecx, 0x53
mov edi, esp
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call fcn.0040dcf0
add esp, 0x150
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00411ee6
mov esp, ebp
pop ebp
ret
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40dc9b
xor ebx, ebx
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00411ee6
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 0
push eax
push 0x14e
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp word [esi + 0x34], 0xa
mov ebx, eax
jne 0x40dcca
xor eax, eax
mov word [esi + 0x34], ax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00411ee6
mov esp, ebp
pop ebp
ret

Function at 0x40dcf0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x368
mov eax, dword [0x42a458]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov ecx, 0x53
lea esi, [ebp + 8]
lea edi, [ebp - 0x368]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
movsw word es:[edi], word [esi]
call fcn.00412f00
add esp, 0xc
lea ecx, [ebp - 0x210]
mov edx, 0x10
call fcn.004017e0
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40ddea
mov eax, 0x14e
mov dword [ebp - 0x218], 0
push 0
mov word [ebp - 0x368], ax
lea eax, [ebp - 0x218]
push eax
push 0x14e
lea eax, [ebp - 0x368]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x214], 0xffffffff
call fcn.0040d660
push ecx
lea ecx, [ebp - 0x214]
call fcn.0040d870
mov eax, dword [ebp - 0x214]
cmp eax, 0xffffffff
je 0x40ddd5
push eax
call esi
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00411ee6
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.00411ee6
mov esp, ebp
pop ebp
ret
Function at 0x40de00
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x464
mov eax, dword [0x42a458]
xor eax, esp
mov dword [esp + 0x460], eax
push ebx
mov ebx, ecx
mov eax, 0x14e
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push edi
mov word [ebx], ax
xor eax, eax
mov dword [ebx + 0x30], eax
mov word [ebx + 0x34], ax
mov dword [ebx + 0xa], eax
mov eax, 2
mov word [ebx + 0x12], ax
xor eax, eax
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x14a], eax
lea eax, [ebx + 0x36]
push 0x426308
push eax
mov dword [ebx + 2], 0x3a7b60dd
mov dword [ebx + 6], 0x1a50
mov dword [ebx + 0x24], 0x3d002d
mov dword [ebx + 0x28], 0x5c006a
mov dword [ebx + 0x2c], 0x3b
mov dword [ebx + 0x14], 0xd0002
mov dword [ebx + 0xe], 0xc0005
mov dword [ebx + 0x18], 0x10000
mov dword [ebx + 0x142], 0
mov dword [ebx + 0x13e], 0
mov dword [ebx + 0x1c], 0x10000
mov dword [ebx + 0x146], 6
call esi
push 0x426308
lea eax, [ebx + 0x76]
push eax
call esi
xor eax, eax
push 0x206
push eax
mov word [esp + 0x268], ax
lea eax, [esp + 0x26a]
push eax
call fcn.00412f00
add esp, 0xc
lea ecx, [esp + 0x260]
mov edx, 7
call fcn.004017e0
lea eax, [esp + 0x260]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x40df19
push str.Iime.imc
lea eax, [ebx + 0xb6]
push eax
call esi
jmp 0x40df88
lea ecx, [esp + 0x260]
call fcn.00401710
push str..imc
lea eax, [esp + 0x264]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40df82
test byte [esp + 0x10], 0x10
je 0x40df67
lea eax, [esp + 0x10]
push eax
push esi
call edi
test eax, eax
jne 0x40df52
jmp 0x40df7a
lea eax, [esp + 0x3c]
push eax
lea eax, [ebx + 0xb6]
push eax
mov eax, dword [sym.imp.KERNEL32.dll_lstrcpyW]
call eax
mov eax, dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call eax
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edx, 0xb
lea ecx, [esp + 0x260]
call fcn.004017e0
lea eax, [esp + 0x260]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40dfce
push str.Iime.ims
lea eax, [ebx + 0xf6]
push eax
call esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x460]
xor ecx, esp
call fcn.00411ee6
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x260]
call fcn.00401710
push str..ims
lea eax, [esp + 0x264]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40e036
test byte [esp + 0x10], 0x10
je 0x40e01c
lea eax, [esp + 0x10]
push eax
push esi
call edi
test eax, eax
jne 0x40e007
jmp 0x40e02f
lea eax, [esp + 0x3c]
push eax
lea eax, [ebx + 0xb6]
push eax
mov eax, dword [sym.imp.KERNEL32.dll_lstrcpyW]
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x46c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00411ee6
mov esp, ebp
pop ebp
ret