joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c490
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
lea esi, [ebp + 0x3390]
mov eax, str._duoInstaller_
call fcn.0040fb30
test eax, eax
jne 0x40c4b5
xor al, al
pop edi
pop esi
pop ebp
pop ebx
ret 4
mov edi, esi
call fcn.00409800
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push esi
call edi
cmp eax, 0xffffffff
jne 0x40c4ac
mov ebx, esi
call fcn.00409760
push esi
call edi
cmp eax, 0xffffffff
je 0x40c4ac
call fcn.00420cc2
mov eax, dword [eax + 8]
push 0x104
add ebp, 0x3598
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
pop edi
pop esi
test eax, eax
pop ebp
setne al
pop ebx
ret 4

Function at 0x40c730
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
cmp byte [0x46bdb9], 0
push ebx
push ebp
push esi
push edi
je 0x40c750
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x10]
push eax
mov eax, 0x46f350
call fcn.0040fca0
add esp, 4
test eax, eax
je 0x40c83a
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 0x214]
mov ecx, dword [eax + 0x3c]
mov edi, dword [ecx + eax + 0x70]
mov ebp, dword [esi]
sub ebp, edi
test edi, edi
je 0x40c857
test ebp, ebp
jl 0x40c857
push 0x46f148
push str._sinstaller.exe
mov ecx, 0x104
mov ebx, 0x46f760
call fcn.00402d10
lea edx, [esp + 0x1c]
push edx
mov eax, edi
call fcn.0040f9d0
add esp, 0xc
test eax, eax
je 0x40c853
mov eax, esi
mov ecx, dword [eax + 0x214]
mov esi, dword [esp + 0x14]
mov edx, dword [esi + 0x214]
push edi
push ecx
push edx
call fcn.0043d490
add esp, 0xc
call fcn.00409280
push 0x46f148
push str._smakedata.zip
mov ecx, 0x104
mov ebx, 0x46f558
call fcn.00402d10
lea eax, [esp + 0x1c]
push eax
mov eax, ebp
call fcn.0040f9d0
add esp, 0xc
test eax, eax
je 0x40c853
mov ebx, dword [esp + 0x10]
mov ecx, dword [ebx + 0x214]
mov esi, dword [esp + 0x14]
mov edx, dword [esi + 0x214]
push ebp
add ecx, edi
push ecx
push edx
call fcn.0043d490
add esp, 0xc
call fcn.00409280
mov esi, ebx
call fcn.00409280
push 0x46f558
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [esp + 0x10]
call fcn.00409280
pop edi
xor al, al
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40cf20
Capabilities:
Check if file exists
Delete file
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x41c
mov eax, dword [0x4677a0]
xor eax, esp
mov dword [esp + 0x418], eax
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x218]
mov edi, 0x46bee4
mov dword [esp + 0xc], esi
call fcn.0040fbd0
add esi, 0x3138
push esi
push str._sduoIME.ime
mov ecx, 0x104
lea ebx, [esp + 0x18]
call fcn.00402d10
add esp, 8
lea edi, [esp + 0x218]
mov ecx, ebx
call fcn.00403660
test eax, eax
je 0x40d0bd
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
push str._s_windows__
mov ecx, 0x104
call fcn.00402d10
add esp, 8
mov ecx, ebx
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40cfd6
push 0x104
mov edx, edi
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0
mov eax, edi
push eax
mov ecx, ebx
push ecx
call fcn.0040ba80
add esp, 0xc
mov edi, ebx
call fcn.00409800
push esi
push str._s_fonts__
mov ecx, 0x104
lea ebx, [esp + 0x18]
call fcn.00402d10
add esp, 8
mov edx, ebx
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40d009
mov ecx, ebx
call fcn.0040d0f0
mov edi, ebx
call fcn.00409800
push esi
push str._s_dataFiles__
mov ecx, 0x104
lea ebx, [esp + 0x18]
call fcn.00402d10
add esp, 8
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40d04d
mov ecx, dword [esp + 0xc]
push 0
add ecx, 0x3dbc
push ecx
mov edx, ebx
push edx
call fcn.0040ba80
add esp, 0xc
mov edi, ebx
call fcn.00409800
mov edi, dword [esp + 0xc]
push 0
add edi, 0x3bb4
push edi
push esi
call fcn.0040ba80
add esp, 0xc
push edi
push 0x458488
mov ecx, 0x104
lea ebx, [esp + 0x18]
call fcn.00402d10
mov ebx, dword [esp + 0x14]
lea esi, [ebx + 0x39a8]
add esp, 8
lea edi, [esp + 0x10]
mov ecx, esi
call fcn.00403660
test eax, eax
je 0x40d0b4
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x418]
xor ecx, esp
call fcn.00435010
mov esp, ebp
pop ebp
ret
push 0x45c9a8
mov eax, ebx
jmp 0x40d0c6
mov eax, dword [esp + 0xc]
push 0x45c928
xor ecx, ecx
call fcn.0040c980
mov ecx, dword [esp + 0x424]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00435010
mov esp, ebp
pop ebp
ret
Function at 0x40d3d0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x44e228
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4677a0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00420e12
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40d40f
push 0x80004005
call fcn.00402bd0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0xc], eax
lea ecx, [esi + 0x3bb4]
push ecx
lea edx, [esp + 0x10]
push 0x4577b8
push edx
mov dword [esp + 0x24], 0
call fcn.00402bb0
mov edi, dword [esp + 0x18]
add esp, 0xc
cmp dword [edi - 4], 1
jle 0x40d45b
mov eax, dword [edi - 0xc]
push eax
lea ecx, [esp + 0x10]
call fcn.004029b0
mov edi, dword [esp + 0xc]
add esi, 0x37a0
mov ecx, esi
call fcn.00403660
test eax, eax
je 0x40d4ae
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [edi - 0x10]
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d497
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
lea eax, [edi - 0x10]
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d4d2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
Function at 0x40df50
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44e388
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x4677a0]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push esi
push edi
mov eax, dword [0x4677a0]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
push 0
mov edi, ecx
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jge 0x40dfad
push str.COM
xor ecx, ecx
mov eax, edi
call fcn.0040c980
xor al, al
jmp 0x40e0a7
lea ebx, [edi + 0x3340]
push 0x28
push ebx
lea esi, [esp + 0x2c]
mov dword [edi + 0x3bb0], 1
call fcn.004047a0
add esp, 8
test eax, eax
je 0x40e0a5
cmp word [edi + 0xbb6], 0
lea eax, [edi + 0xbb6]
je 0x40e06d
push eax
lea ecx, [esp + 0x14]
call fcn.004026a0
add edi, 0x3bb4
push edi
push str.appPath
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x94], 0
call fcn.00406370
mov eax, dword [esp + 0x10]
cmp dword [eax - 4], 1
jle 0x40e02e
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [esp + 0x14]
call fcn.004029b0
mov eax, dword [esp + 0x10]
push 0
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [esp + 0x88], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40e06d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, ebx
call fcn.0040afd0
lea ecx, [esp + 0x24]
push 1
push ecx
call fcn.0040b050
add esp, 8
lea edx, [esp + 0x14]
push edx
push ebx
call dword [sym.imp.ole32.dll_IIDFromString]
lea eax, [esp + 0x14]
call fcn.0040b450
push 0x46f0f8
call fcn.0040b4a0
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.00435010
mov esp, ebp
pop ebp
ret
Function at 0x40e200
Capabilities:
Copy file
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x44e1eb
mov eax, dword fs:[0]
push eax
sub esp, 0x818
mov eax, dword [0x4677a0]
xor eax, esp
mov dword [esp + 0x814], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4677a0]
xor eax, esp
push eax
lea eax, [esp + 0x82c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x83c]
mov ebp, dword [esp + 0x840]
lea edi, [eax + 0x3bb4]
lea ecx, [eax + 0x3340]
mov eax, edi
call fcn.004073f0
push edi
push 0x458488
mov ecx, 0x104
lea ebx, [esp + 0x228]
call fcn.00402d10
add esp, 8
lea esi, [esp + 0x18]
mov eax, 0x45813c
call fcn.0040fb30
push 0
mov eax, esi
push eax
mov ecx, ebx
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x40e2ea
mov edx, esi
push edx
push ebp
push 0x45cd98
mov ecx, 0x200
lea ebx, [esp + 0x434]
call fcn.00402d10
add esp, 0xc
push 5
push 0
mov eax, ebx
push eax
mov ecx, esi
push ecx
push 0x456818
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
test eax, eax
jne 0x40e37a
push 0x10
push 0x45cda4
push 0x45cdb0
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x40e37a
call fcn.00420e12
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40e304
push 0x80004005
call fcn.00402bd0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x224]
push edx
push edi
lea eax, [esp + 0x20]
push 0x45cde8
push eax
mov dword [esp + 0x848], 0
call fcn.00402bb0
mov esi, dword [esp + 0x28]
add esp, 0x14
push 0x10
push 0x45cda4
push esi
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea eax, [esi - 0x10]
mov dword [esp + 0x834], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e37a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x82c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x814]
xor ecx, esp
call fcn.00435010
add esp, 0x824
ret 8
Function at 0x40e3b0
Capabilities:
Create process on windows
Create process suspended
Get comspec environment variable
Query environment variable
Resume thread
Self delete
Set file attributes

Disassembly:
sub esp, 0x884
mov eax, dword [0x4677a0]
xor eax, esp
mov dword [esp + 0x87c], eax
push ebx
push esi
xor esi, esi
push 0x40
lea eax, [esp + 0x20]
push esi
push eax
mov dword [esp + 0x24], esi
call fcn.00437690
add esp, 0xc
push 0x104
lea ecx, [esp + 0x64]
xor eax, eax
push ecx
push esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x40e50f
push 0x104
lea edx, [esp + 0x26c]
push edx
push str.COMSPEC
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x40e50f
push 0x104
lea eax, [esp + 0x64]
push eax
mov ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
je 0x40e50f
push 0x44
lea edx, [esp + 0x1c]
push esi
push edx
call fcn.00437690
lea ecx, [esp + 0x6c]
push ecx
xor eax, eax
lea edx, [esp + 0x278]
push edx
push str._s__c_del__s
mov ecx, 0x208
lea ebx, [esp + 0x488]
mov dword [esp + 0x30], 0x44
mov dword [esp + 0x5c], 1
mov word [esp + 0x60], ax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
call fcn.00402d10
add esp, 0x18
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x1c]
push ecx
push esi
push esi
push 4
push esi
push esi
push esi
mov edx, ebx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40e50f
push 0x80
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push eax
call esi
push 0x80
lea eax, [esp + 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [esp + 8]
push 0x40
push ecx
call esi
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
pop esi
pop ebx
mov ecx, dword [esp + 0x87c]
xor ecx, esp
call fcn.00435010
add esp, 0x884
ret
mov ecx, dword [esp + 0x884]
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00435010
add esp, 0x884
ret
Function at 0x40f840
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x234
mov eax, dword [0x4677a0]
xor eax, esp
mov dword [esp + 0x230], eax
mov eax, dword [esp + 0x238]
push ebx
push ebp
push esi
push edi
mov edi, dword [eax + 0x214]
xor esi, esi
xor ebp, ebp
cmp dword [edi + 4], esi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], esi
jle 0x40f8b4
lea ebx, [edi + 0x10288]
mov eax, dword [ebx]
mov cl, byte [eax + edi + 3]
add eax, edi
and cl, 0x3f
cmp cl, 2
jne 0x40f8a7
push eax
lea edx, [esp + 0x18]
push edx
call fcn.0040ed60
add esp, 8
test eax, eax
je 0x40f8a7
inc ebp
inc esi
add ebx, 4
cmp esi, dword [edi + 4]
jl 0x40f884
mov dword [esp + 0x10], ebp
mov eax, dword [esp + 0x20]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40f9aa
push 0xfeff
push 0x45cf20
mov ecx, 0x100
lea ebx, [esp + 0x48]
call fcn.00402d10
mov eax, ebx
add esp, 8
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40f900
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
sub eax, edx
push 0
sar eax, 1
lea ecx, [esp + 0x1c]
push ecx
lea edx, [eax + eax]
push edx
lea eax, [esp + 0x4c]
push eax
push esi
call ebp
push str.___config_
mov ecx, 0x100
lea ebx, [esp + 0x44]
call fcn.00402d10
mov eax, ebx
add esp, 4
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40f943
sub eax, edx
sar eax, 1
xor ebx, ebx
push ebx
lea ecx, [esp + 0x1c]
push ecx
lea edx, [eax + eax]
push edx
lea eax, [esp + 0x4c]
push eax
push esi
call ebp
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], edi
mov edi, dword [esp + 0x10]
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x28], esi
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], 2
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x40], ebx
call fcn.0040f1e0
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x40f9ac
mov eax, ebp
mov ecx, dword [esp + 0x240]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00435010
add esp, 0x234
ret
Function at 0x40f9d0
Capabilities:
Clear file content
Read file via mapping

Disassembly:
push esi
push edi
push 0x218
push 1
mov edi, eax
call fcn.00435da6
mov esi, eax
add esp, 8
test esi, esi
je 0x40fb15
push 0
push 0x80
push 2
push 0
push 3
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, eax
mov dword [esi + 0x20c], ecx
cmp ecx, 0xffffffff
je 0x40fb0c
push 0
mov eax, edi
cdq
push 0
push edx
push eax
push ecx
mov dword [esi], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov edi, dword [sym.imp.KERNEL32.dll_DebugBreak]
cmp eax, 0xffffffff
jne 0x40fa36
call edi
mov eax, dword [esi + 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x40fa49
call edi
mov ecx, dword [esi]
mov edx, dword [esi + 0x20c]
push 0
push ecx
push 0
push 4
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x210], eax
test eax, eax
je 0x40faf9
push 0
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0x214], eax
test eax, eax
je 0x40fae6
lea eax, [esi + 4]
mov edi, ebx
mov edx, 0x104
sub edi, eax
lea ebx, [ebx]
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x40facf
movzx ecx, word [edi + eax]
test cx, cx
je 0x40facf
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x40faa0
sub eax, 2
mov word [eax], dx
mov eax, dword [esp + 0xc]
mov dword [eax], esi
mov eax, dword [esi]
pop edi
pop esi
ret
test edx, edx
jne 0x40fad6
sub eax, 2
xor edx, edx
mov word [eax], dx
mov eax, dword [esp + 0xc]
mov dword [eax], esi
mov eax, dword [esi]
pop edi
pop esi
ret
mov ecx, dword [esi + 0x210]
push ecx
call edi
mov dword [esi + 0x210], 0
mov edx, dword [esi + 0x20c]
push edx
call edi
mov dword [esi + 0x20c], 0
push esi
call fcn.00435d18
add esp, 4
mov eax, dword [esp + 0xc]
pop edi
mov dword [eax], 0
xor eax, eax
pop esi
ret

Function at 0x40fb30
Capabilities:
Get common file path

Disassembly:
push edi
push esi
push 0x104
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40fb44
sub eax, edx
mov ecx, edi
push ebx
sar eax, 1
lea ebx, [ecx + 2]
lea esp, [esp]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x40fb60
sub ecx, ebx
sar ecx, 1
lea ecx, [ecx + eax + 2]
cmp ecx, 0x104
pop ebx
jl 0x40fb85
xor edx, edx
mov word [esi], dx
xor eax, eax
pop edi
ret
cmp word [esi + eax*2 - 2], 0x5c
je 0x40fb9d
mov ecx, 0x5c
mov word [esi + eax*2], cx
inc eax
xor edx, edx
mov word [esi + eax*2], dx
movzx ecx, word [edi]
test cx, cx
je 0x40fbbc
cmp eax, 0x103
jge 0x40fbbc
add edi, 2
mov word [esi + eax*2], cx
movzx ecx, word [edi]
inc eax
test cx, cx
jne 0x40fba5
xor ecx, ecx
mov word [esi + eax*2], cx
pop edi
ret
Function at 0x40fca0
Capabilities:
Get file size

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
push 0x218
push 1
mov edi, eax
call fcn.00435da6
mov esi, eax
add esp, 8
test esi, esi
je 0x40fd9f
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x20c], eax
cmp eax, 0xffffffff
je 0x40fd96
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push eax
push 0
push 4
mov dword [esi], eax
mov eax, dword [esi + 0x20c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x210], eax
test eax, eax
je 0x40fd8d
push 0
push 0
push 0
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0x214], eax
test eax, eax
je 0x40fd84
lea eax, [esi + 4]
mov edx, 0x104
sub edi, eax
nop
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x40fd6e
movzx ecx, word [edi + eax]
test cx, cx
je 0x40fd6e
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x40fd40
sub eax, 2
pop edi
mov word [eax], dx
mov eax, dword [esi]
mov dword [ebp], esi
pop esi
pop ebp
pop ebx
ret
test edx, edx
jne 0x40fd75
sub eax, 2
xor edx, edx
pop edi
mov word [eax], dx
mov eax, dword [esi]
mov dword [ebp], esi
pop esi
pop ebp
pop ebx
ret
mov eax, dword [esi + 0x210]
push eax
call ebx
mov ecx, dword [esi + 0x20c]
push ecx
call ebx
push esi
call fcn.00435d18
add esp, 4
push edi
push ebp
call fcn.004065c0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x40fdb0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4677a0]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
mov ebx, ecx
xor eax, eax
test ebx, ebx
je 0x40fe41
push 0x104
lea ecx, [esp + 8]
push ecx
mov word [ebx], ax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x40fdfa
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.00435010
add esp, 0x20c
ret
lea eax, [esp + 4]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40fe01
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 2], 0x5c
push esi
mov ecx, 0x104
je 0x40fe2a
lea edx, [esp + 8]
push edx
push str._s_s.ime
jmp 0x40fe34
lea eax, [esp + 8]
push eax
push 0x45cf88
call fcn.00402d10
add esp, 0xc
mov eax, 1
mov ecx, dword [esp + 0x20c]
pop ebx
xor ecx, esp
call fcn.00435010
add esp, 0x20c
ret
Function at 0x40fe80
Capabilities:
Get common file path

Disassembly:
xor eax, eax
test esi, esi
je 0x40ff39
push str.kernel32.dll
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40feb6
push str.GetSystemWow64DirectoryW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40fee8
push 0x104
push esi
call eax
jmp 0x40fee8
push edi
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x40fee7
push str.GetSystemWow64DirectoryW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40fee0
push 0x104
push esi
call eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
cmp word [esi], 0
jne 0x40ff00
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp word [esi], 0
je 0x40ff37
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40ff05
sub eax, edx
sar eax, 1
cmp word [esi + eax*2 - 2], 0x5c
lea eax, [esi + eax*2 - 2]
je 0x40ff31
add eax, 2
mov ecx, 0x5c
xor edx, edx
mov word [eax], cx
mov word [eax + 2], dx
mov eax, 1
ret
xor eax, eax
ret
Function at 0x411210
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0xa0
mov eax, dword [0x4677a0]
xor eax, esp
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0xa4]
push ebx
push esi
mov esi, ecx
xor ecx, ecx
push eax
lea ebx, [esp + 0xc]
mov dword [esp + 0xc], 0x67452301
mov dword [esp + 0x10], 0xefcdab89
mov dword [esp + 0x14], 0x98badcfe
mov dword [esp + 0x18], 0x10325476
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
call fcn.00410a40
push esi
mov esi, ebx
call fcn.004067f0
mov ecx, dword [esp + 0xac]
add esp, 8
pop esi
pop ebx
xor ecx, esp
call fcn.00435010
add esp, 0xa0
ret

Function at 0x411350
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x108
mov eax, dword [0x4677a0]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
push edi
push ebx
lea eax, [esp + 0xc]
push 0x104
push eax
call fcn.00437554
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
add esp, 0xc
lea esi, [esp + 8]
push 0x5c
push esi
call fcn.004372d0
add esp, 8
mov esi, eax
push 0
test esi, esi
je 0x4113ab
lea ecx, [esp + 0xc]
push ecx
mov byte [esi], 0
call edi
add esi, 1
mov byte [esi - 1], 0x5c
jne 0x411383
jmp 0x4113b2
lea edx, [esp + 0xc]
push edx
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
pop edi
pop esi
cmp eax, 0xffffffff
je 0x4113c4
test al, 0x10
jne 0x4113c6
xor eax, eax
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00435010
add esp, 0x108
ret

Function at 0x4113e0
Capabilities:
Clear file content
Read file via mapping

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
push 0x218
push 1
mov edi, eax
call fcn.00435da6
mov esi, eax
add esp, 8
test esi, esi
je 0x4114e4
push 0
push 0x80
push 2
push 0
push 3
push 0xc0000000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, eax
mov dword [esi + 0x20c], ecx
cmp ecx, 0xffffffff
je 0x4114db
push 0
mov eax, edi
cdq
push 0
push edx
push eax
push ecx
mov dword [esi], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov edi, dword [sym.imp.KERNEL32.dll_DebugBreak]
cmp eax, 0xffffffff
jne 0x41144b
call edi
mov eax, dword [esi + 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x41145e
call edi
mov ecx, dword [esi]
mov edx, dword [esi + 0x20c]
push 0
push ecx
push 0
push 4
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x210], eax
test eax, eax
je 0x4114c8
push 0
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0x214], eax
test eax, eax
je 0x4114b5
lea edx, [esi + 4]
mov eax, ebp
call fcn.004112f0
mov eax, dword [esp + 0x10]
mov dword [eax], esi
mov eax, dword [esi]
pop edi
pop esi
pop ebp
ret
mov ecx, dword [esi + 0x210]
push ecx
call edi
mov dword [esi + 0x210], 0
mov edx, dword [esi + 0x20c]
push edx
call edi
mov dword [esi + 0x20c], 0
push esi
call fcn.00435d18
add esp, 4
mov eax, dword [esp + 0x10]
pop edi
pop esi
mov dword [eax], 0
xor eax, eax
pop ebp
ret
Function at 0x411e60
Capabilities:
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x411e67
xor eax, eax
ret
mov eax, dword [esp + 4]
jmp fcn.00411e70