joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403ba0
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x43c
mov eax, dword [0x52de80]
xor eax, esp
mov dword [esp + 0x438], eax
push ebx
mov ebx, ecx
push esi
push edi
lea edi, [ebx + 8]
push edi
call fcn.004075e0
add esp, 4
lea eax, [esp + 0x10]
lea esi, [ebx + 0xc]
mov ecx, esi
push eax
call fcn.00405740
mov eax, dword [0x55a684]
test eax, eax
je 0x403c09
lea ecx, [esp + 0x10]
push ecx
push dword [ebx + 0xa0]
push dword [ebx + 0xa8]
push dword [ebx + 0xa4]
push dword [ebx]
call eax
add esp, 0x14
test al, al
jne 0x403d8b
test byte [0x5549b4], 2
je 0x403c29
cmp dword [esp + 0x24], 0x10
lea eax, [esp + 0x10]
cmovae eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x403c2e
cmp dword [ebx], 2
jl 0x403c69
cmp dword [esp + 0x24], 0x10
lea edi, [esp + 0x10]
mov esi, dword [esp + 0x20]
cmovae edi, dword [esp + 0x10]
call fcn.004c3390
add eax, 0x40
push eax
push 1
push esi
push edi
call fcn.004c297c
call fcn.004c3390
add eax, 0x40
push eax
call fcn.004c351f
lea edi, [ebx + 8]
add esp, 0x14
lea esi, [ebx + 0xc]
test byte [0x5549b4], 1
je 0x403d08
xor edx, edx
xor ecx, ecx
call fcn.004034c0
cmp dword [0x55a670], 0
jne 0x403c98
push 0xffffffffffffffff
push dword [0x55a66c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x403ca4
push dword [0x55a680]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call fcn.00403630
test al, al
je 0x403ce5
push 2
push 0
push 0
push dword [0x55a668]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [esp + 0x24], 0x10
lea ecx, [esp + 0xc]
push 0
push ecx
push dword [esp + 0x28]
lea eax, [esp + 0x1c]
cmovae eax, dword [esp + 0x1c]
push eax
push dword [0x55a668]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [0x55a670], 0
jne 0x403cfc
push dword [0x55a66c]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x403d08
push dword [0x55a680]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebx], 3
jne 0x403d8b
mov ecx, 0x400
lea eax, [esp + 0x10]
cmp dword [esp + 0x20], ecx
cmovb ecx, dword [esp + 0x20]
cmp dword [esp + 0x24], 0x10
cmovae eax, dword [esp + 0x10]
test ecx, ecx
je 0x403d3c
push ecx
push eax
lea eax, [esp + 0x48]
push eax
call fcn.004beb50
add esp, 0xc
lea eax, [esp + 0x40]
push eax
call fcn.004152c0
add esp, 4
cmp dword [0x55a67c], 0
je 0x403d81
lea eax, [esp + 0x28]
mov ecx, esi
push eax
call fcn.00405740
lea eax, [esp + 0x28]
push eax
call dword [0x55a67c]
add esp, 4
cmp dword [esp + 0x3c], 0x10
jb 0x403d8b
push dword [esp + 0x28]
call fcn.00481594
add esp, 4
jmp 0x403d8b
cmp byte [0x55b9dc], 0
jne 0x403dd8
int3
cmp dword [esp + 0x24], 0x10
jb 0x403d9e
push dword [esp + 0x10]
call fcn.00481594
add esp, 4
push dword [ebx + 0xac]
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea esi, [edi + 0x50]
mov ecx, esi
call fcn.00404bf0
push esi
mov dword [esi], 0x4fa99c
call fcn.004bb6d3
mov ecx, dword [esp + 0x448]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004bc11d
mov esp, ebp
pop ebp
ret
push 1
call fcn.004c4f50
int3
Function at 0x40a160
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x464
mov eax, dword [0x52de80]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
mov bl, dl
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40a199
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bc11d
mov esp, ebp
pop ebp
ret
test al, 0x10
je 0x40a301
test bl, bl
je 0x40a2ef
push ecx
push esi
push ecx
lea ecx, [ebp - 0x210]
call fcn.0040a030
push 0x50c830
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x40a2ef
push 0x24c
lea eax, [ebp - 0x45c]
mov dword [ebp - 0x460], 0
push 0
push eax
call fcn.004bf1a0
add esp, 0xc
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40a2ef
cmp word [ebp - 0x434], 0
je 0x40a2e8
mov ecx, 0x50c834
lea eax, [ebp - 0x434]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40a256
test dx, dx
je 0x40a252
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40a256
add eax, 4
add ecx, 4
test dx, dx
jne 0x40a230
xor eax, eax
jmp 0x40a25b
sbb eax, eax
or eax, 1
test eax, eax
je 0x40a2d2
mov eax, 0x50c838
lea ecx, [ebp - 0x434]
lea ebx, [ebx]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x40a296
test dx, dx
je 0x40a292
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x40a296
add ecx, 4
add eax, 4
test dx, dx
jne 0x40a270
xor eax, eax
jmp 0x40a29b
sbb eax, eax
or eax, 1
test eax, eax
je 0x40a2d2
push ecx
push esi
push ecx
lea ecx, [ebp - 0x210]
call fcn.0040a030
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x40a2e8
mov dl, bl
lea ecx, [ebp - 0x210]
call fcn.0040a160
lea eax, [ebp - 0x460]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40a210
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x40a311
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
test eax, eax
pop edi
setne al
xor ecx, ebp
pop esi
pop ebx
call fcn.004bc11d
mov esp, ebp
pop ebp
ret
Function at 0x40a330
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x28
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x10]
cmp eax, 0x104
jb 0x40a350
xor al, al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x40a35c
mov al, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov bl, byte [ebp + 0xc]
test bl, bl
jne 0x40a3b0
lea ecx, [esp + 8]
call fcn.00416350
mov edx, ecx
mov ecx, esi
call fcn.0040aa70
test al, al
je 0x40a399
cmp byte [esp + 0x10], bl
je 0x40a399
cmp dword [esi + 0x14], 8
jb 0x40a387
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x14], 8
jb 0x40a3a3
mov eax, dword [esi]
jmp 0x40a3a5
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40a354
cmp dword [esi + 0x14], 8
jb 0x40a3b8
mov esi, dword [esi]
mov dl, bl
mov ecx, esi
call fcn.0040a160
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40a3d0
Capabilities:
Move file

Disassembly:
push esi
mov esi, edx
push edi
mov edi, ecx
cmp dword [esi + 0x14], 8
jb 0x40a3e0
mov eax, dword [esi]
jmp 0x40a3e2
mov eax, esi
cmp dword [edi + 0x14], 8
jb 0x40a3ea
mov ecx, dword [edi]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x40a3fb
mov al, 1
pop edi
pop esi
ret
cmp dword [edi + 0x14], 8
jb 0x40a403
mov edi, dword [edi]
cmp dword [esi + 0x14], 8
jb 0x40a40b
mov esi, dword [esi]
push 0
push 0
push 2
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReplaceFileW]
test eax, eax
pop edi
setne al
pop esi
ret
Function at 0x40a7e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x40a7ee
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne al
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x40a80e
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40a822
shr eax, 4
and eax, 1
pop ebp
ret
xor al, al
pop ebp
ret

Function at 0x40a830
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x264
mov eax, dword [0x52de80]
xor eax, esp
mov dword [esp + 0x260], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [esp + 0x50]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x102
ja 0x40a91e
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x3c]
call fcn.004045b0
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x10]
call fcn.00408630
mov ecx, eax
call fcn.00408fe0
cmp esi, eax
je 0x40a8a2
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00405560
cmp dword [esp + 0x34], 8
jb 0x40a8b5
push dword [esp + 0x20]
call fcn.00481594
add esp, 4
xor eax, eax
mov dword [esp + 0x34], 7
cmp dword [esp + 0x1c], 8
mov dword [esp + 0x30], 0
mov word [esp + 0x20], ax
jb 0x40a8df
push dword [esp + 8]
call fcn.00481594
add esp, 4
xor eax, eax
mov dword [esp + 0x1c], 7
cmp dword [esp + 0x4c], 8
mov dword [esp + 0x18], 0
mov word [esp + 8], ax
jb 0x40a909
push dword [esp + 0x38]
call fcn.00481594
add esp, 4
mov al, 1
pop esi
mov ecx, dword [esp + 0x260]
xor ecx, esp
call fcn.004bc11d
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x264]
xor al, al
pop esi
xor ecx, esp
call fcn.004bc11d
mov esp, ebp
pop ebp
ret
Function at 0x40a940
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x52de80]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], 0
mov esi, edx
cmp dword [edi + 0x14], 8
jb 0x40a96d
mov ebx, dword [edi]
jmp 0x40a96f
mov ebx, edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40a9b1
test al, 0x10
je 0x40a993
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004bc11d
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x40a99d
mov dword [esi], 0xfffffff7
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004bc11d
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x14]
mov ecx, edi
push eax
call fcn.00408be0
cmp dword [edi + 0x14], 8
jb 0x40a9c7
mov eax, dword [edi]
jmp 0x40a9c9
mov eax, edi
push dword [edi + 0x10]
lea ecx, [esp + 0x18]
push eax
push dword [esp + 0x2c]
push 0
call fcn.00409ad0
test eax, eax
jne 0x40a9ee
test esi, esi
je 0x40aa38
mov dword [esi], 0xfffffffc
xor bl, bl
jmp 0x40aa3e
mov edx, esi
lea ecx, [esp + 0x14]
call fcn.0040a940
test al, al
jne 0x40aa01
xor bl, bl
jmp 0x40aa3e
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40aa3c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0xb7
jne 0x40aa2b
push edi
call fcn.0040a800
add esp, 4
test al, al
jne 0x40aa3c
test esi, esi
je 0x40aa38
mov ecx, ebx
call fcn.00416390
mov dword [esi], eax
xor bl, bl
jmp 0x40aa3e
mov bl, 1
cmp dword [esp + 0x28], 8
jb 0x40aa51
push dword [esp + 0x14]
call fcn.00481594
add esp, 4
mov ecx, dword [esp + 0x2c]
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004bc11d
mov esp, ebp
pop ebp
ret
Function at 0x40ac40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov dword [esp + 0x10], 0
cmp dword [eax + 0x14], 8
push edi
mov edi, dword [ebp + 0x10]
jb 0x40ac65
mov eax, dword [eax]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
xor ecx, ecx
mov dword [esp + 0x10], ecx
test esi, esi
je 0x40ace4
lea ecx, [esp + 0x10]
call fcn.0040af00
cmp esi, 0xffffffff
je 0x40acb1
mov dword [esp + 0x10], esi
call fcn.00412bb0
push eax
mov eax, dword [ebp + 4]
push eax
lea eax, [esp + 0x18]
push eax
push esi
call fcn.00412c50
add esp, 0x10
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x40ace4
cmp ecx, 0xffffffff
je 0x40ace4
push 0
lea eax, [esp + 0x18]
push eax
push edi
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40ace0
mov ebx, dword [esp + 0x14]
cmp ebx, edi
jne 0x40ace0
mov ecx, dword [esp + 0x10]
jmp 0x40ace7
mov ecx, dword [esp + 0x10]
or ebx, 0xffffffff
test ecx, ecx
je 0x40ad39
cmp ecx, 0xffffffff
je 0x40ad39
call fcn.00412bb0
push eax
mov eax, dword [ebp + 4]
push eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x1c]
call fcn.00412d20
mov edi, dword [esp + 0x20]
add esp, 0x10
call fcn.00412e70
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push edi
mov byte [0x55a6c0], 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
mov byte [0x55a6c0], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40ad50
Capabilities:
Check if file exists
Copy file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.00409040
test al, al
jne 0x40adc2
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.00409040
test al, al
jne 0x40adc2
cmp dword [edi + 0x10], 0x104
jae 0x40adc2
cmp dword [esi + 0x10], 0x104
jae 0x40adc2
cmp dword [esi + 0x14], 8
jb 0x40ad8b
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x40ad93
mov edi, dword [edi]
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x40adc2
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40adc2
test al, 1
je 0x40adbc
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov al, 1
pop edi
pop esi
pop ebp
ret
pop edi
xor al, al
pop esi
pop ebp
ret
Function at 0x40ba90
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
mov eax, dword [0x52de80]
xor eax, esp
mov dword [esp + 0x1c], eax
cmp dword [0x55a69c], 0
je 0x40babe
xor al, al
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.004bc11d
mov esp, ebp
pop ebp
ret
push 0x18
call fcn.0048156c
add esp, 4
test eax, eax
je 0x40badb
push ecx
mov ecx, eax
call fcn.0040b9f0
mov dword [0x55a69c], eax
jmp 0x40bae5
mov dword [0x55a69c], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [esp + 8]
call fcn.004045b0
lea eax, [esp + 4]
push eax
call fcn.0040c450
cmp dword [esp + 0x18], 8
jb 0x40bb12
push dword [esp + 4]
call fcn.00481594
add esp, 4
mov ecx, dword [esp + 0x1c]
mov al, 1
xor ecx, esp
call fcn.004bc11d
mov esp, ebp
pop ebp
ret

Function at 0x40c450
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x52de80]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x3c], 0
mov edx, str._t_n_v_f_r
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, dword [0x55a69c]
lea ecx, [edx + 2]
mov dword [ebp - 0xc], 7
mov dword [ebp - 0x10], 0
mov word [ebp - 0x20], ax
mov dword [ebp - 0x24], 7
mov dword [ebp - 0x28], eax
mov word [ebp - 0x38], ax
lea esp, [esp]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x40c4a0
sub edx, ecx
lea ecx, [ebp - 0x38]
sar edx, 1
push edx
push str._t_n_v_f_r
call fcn.004064c0
lea eax, [ebp - 0x20]
push eax
push ecx
lea edx, [ebp - 0x38]
mov ecx, esi
call fcn.00411560
add esp, 8
cmp dword [ebp - 0x24], 8
jb 0x40c4e0
push dword [ebp - 0x38]
call fcn.00481594
add esp, 4
cmp dword [ebp - 0x10], 0
je 0x40c517
cmp dword [ebp - 0xc], 8
lea ecx, [ebp - 0x3c]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x3c], 0
cmovae eax, dword [ebp - 0x20]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
mov ecx, edi
push esi
push dword [ebp - 0x3c]
call fcn.0040bb30
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0xc], 8
jb 0x40c528
push dword [ebp - 0x20]
call fcn.00481594
add esp, 4
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.004bc11d
mov esp, ebp
pop ebp
ret 4
Function at 0x40d730
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.004bf250
mov eax, dword [0x52de80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x100c]
push esi
push edi
mov edi, dword [ebp + 0xc]
push edx
lea edx, [ebp - 0x808]
mov dword [ebp - 0x100c], 0
push edx
lea edx, [ebp - 0x1010]
mov dword [ebp - 0x1010], 1
push edx
push 0
push eax
push dword [ecx]
mov dword [ebp - 0x100c], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x40d87f
mov ecx, dword [ebp - 0x1010]
cmp ecx, 1
jne 0x40d812
cmp word [ebp - 0x808], ax
jne 0x40d7d0
xor ecx, ecx
lea eax, [ebp - 0x808]
push ecx
push eax
mov ecx, edi
call fcn.004064c0
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bc11d
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0x808]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d7e0
sub ecx, edx
lea eax, [ebp - 0x808]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.004064c0
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bc11d
mov esp, ebp
pop ebp
ret 8
cmp ecx, 2
jne 0x40d87a
push 0x400
lea eax, [ebp - 0x1008]
push eax
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x100c], eax
test eax, eax
je 0x40d863
cmp eax, 0x400
ja 0x40d863
lea eax, [ebp - 0x1008]
mov ecx, edi
push eax
call fcn.004046c0
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bc11d
mov esp, ebp
pop ebp
ret 8
mov eax, 0xea
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bc11d
mov esp, ebp
pop ebp
ret 8
mov eax, 0x3f4
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004bc11d
mov esp, ebp
pop ebp
ret 8

Function at 0x40d8d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
mov edx, dword [ebp + 0xc]
mov eax, edx
push esi
push edi
mov esi, ecx
mov dword [esp + 0xc], 0
lea edi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40d8f0
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push 1
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x411e80
Capabilities:
Check if file exists
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
call fcn.00409040
test al, al
jne 0x411ea7
mov ecx, dword [ebp + 0xc]
call fcn.00409040
test al, al
jne 0x411ea7
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
pop ebp
jmp fcn.0040add0
xor al, al
pop ebp
ret
Function at 0x411eb0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov ebx, edx
mov esi, ecx
push edi
test ebx, ebx
je 0x411ed7
cmp dword [ebx + 0x14], 0x10
mov dword [ebx + 0x10], 0
jb 0x411ed2
mov eax, dword [ebx]
jmp 0x411ed4
mov eax, ebx
mov byte [eax], 0
call fcn.00409040
test al, al
je 0x411ee9
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.0040aba0
mov edi, eax
mov dword [ebp - 0xc], edi
test edi, edi
je 0x411ee0
push 0x10000
call fcn.004badc8
add esp, 4
mov dword [ebp - 8], 0
mov esi, eax
push edi
push 0x10000
push 1
push esi
call fcn.004c1222
mov edi, eax
add esp, 0x10
mov dword [ebp - 0x10], edi
test edi, edi
je 0x411f7f
mov eax, dword [ebp + 8]
lea esp, [esp]
test ebx, ebx
je 0x411f52
sub eax, dword [ebp - 8]
lea edx, [ebp - 0x10]
cmp eax, edi
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x14]
cmovae ecx, edx
push dword [ecx]
mov ecx, ebx
push esi
call fcn.00402270
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
sub eax, ecx
cmp eax, edi
jb 0x411f95
push dword [ebp - 0xc]
add ecx, edi
push 0x10000
push 1
push esi
mov dword [ebp - 8], ecx
call fcn.004c1222
mov edi, eax
add esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], edi
test edi, edi
jne 0x411f30
mov ebx, dword [ebp - 0xc]
push ebx
call fcn.004c0d4b
add esp, 4
test eax, eax
jne 0x411f98
mov byte [ebp - 1], 1
jmp 0x411f9c
mov ebx, dword [ebp - 0xc]
mov byte [ebp - 1], 0
push ebx
call fcn.004c0cae
add esp, 4
test esi, esi
je 0x411fb2
push esi
call fcn.004bbc06
add esp, 4
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
xor edx, edx
mov ecx, dword [ebp + 8]
pop ebp
jmp fcn.0040a940
Function at 0x414380
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, ecx
cmp dword [edi + 0x14], 8
jb 0x414392
mov edi, dword [edi]
lea eax, [ebp - 8]
push eax
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
jne 0x4143a9
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push 1
push ebx
call fcn.004bc210
mov esi, eax
add esp, 8
test esi, esi
je 0x414422
push esi
push ebx
push dword [ebp - 8]
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x414419
lea eax, [ebp - 0xc]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 4]
push eax
push str.VarFileInfoTranslation
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x414419
cmp dword [ebp - 4], 0
je 0x414419
push 0x10
call fcn.0048156c
add esp, 4
test eax, eax
je 0x414422
mov edx, dword [ebp - 4]
movzx ecx, word [edx + 2]
push ecx
movzx ecx, word [edx]
push ecx
push esi
mov ecx, eax
call fcn.00414200
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.004bbbce
add esp, 4
pop esi
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x414d60
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x52de80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
push edi
mov edi, ecx
mov dword [ebp - 0x224], eax
movzx eax, word [edi + 8]
mov word [ebp - 0x14], ax
movzx eax, word [edi + 0xa]
mov word [ebp - 0x12], ax
call esi
mov word [ebp - 0x10], ax
movzx eax, word [edi + 0xa]
mov word [ebp - 0xe], ax
movzx eax, word [edi + 8]
mov word [ebp - 0xc], ax
mov eax, 0x4e4
mov word [ebp - 0xa], ax
call esi
mov word [ebp - 8], ax
xor esi, esi
mov eax, 0x4e4
mov word [ebp - 6], ax
lea ebx, [ebx]
movzx eax, word [ebp + esi*2 - 0x12]
movzx ecx, word [ebp + esi*2 - 0x14]
add esi, 2
push ebx
push eax
push ecx
push 0x50cc98
push 0x104
lea eax, [ebp - 0x21c]
push 0x104
push eax
call fcn.004c027b
add esp, 0x1c
mov dword [ebp - 0x220], 0
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x21c]
push eax
push dword [edi + 4]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x414e34
mov edx, dword [ebp - 0x220]
test edx, edx
jne 0x414e4e
cmp esi, 8
jb 0x414dd0
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bc11d
mov esp, ebp
pop ebp
ret 8
cmp word [edx], 0
jne 0x414e78
mov ecx, dword [ebp - 0x224]
xor eax, eax
push eax
push edx
call fcn.004064c0
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bc11d
mov esp, ebp
pop ebp
ret 8
mov eax, edx
lea esi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x414e80
mov ecx, dword [ebp - 0x224]
sub eax, esi
sar eax, 1
push eax
push edx
call fcn.004064c0
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bc11d
mov esp, ebp
pop ebp
ret 8