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

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x450675
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0044d140
add esp, 4
mov eax, 0xffffffff
ret
test al, 1
je 0x45069a
test byte [esp + 8], 2
je 0x45069a
mov dword [0x45fa90], 0xd
mov dword [0x45fa94], 5
mov eax, 0xffffffff
ret
xor eax, eax
ret
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..reloc
nop
mov ebx, 0x40de38
nop
mov ecx, 0x30ef742c
nop
test eax, eax
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x53482107
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
jne 0x43306c
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
call 0x43000c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
jmp loc.00401219
Function at 0x401b50
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x407048
call sym._EnterCriticalSection_4
mov ebx, dword [0x407040]
sub esp, 4
test ebx, ebx
je 0x401b9b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401b94
test esi, esi
je 0x401b94
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401b70
mov dword [esp], 0x407048
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x401d80
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x401dd0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x401ea8
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x401e0e
cmp eax, 4
jne 0x401e30
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x401e1e
cmp edx, 4
je 0x401e1e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401d80
Function at 0x403c20
Capabilities:
Accept command line arguments

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x6c
call sym.___main
call sym._GetCommandLineA_0
mov ebx, eax
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call sym._GetStartupInfoA_4
sub esp, 4
test ebx, ebx
jne 0x403c56
jmp 0x403c8e
add ebx, 1
movzx eax, byte [ebx]
cmp al, 0x20
je 0x403c53
cmp al, 9
je 0x403c53
cmp al, 0x22
jne 0x403c77
jmp 0x403cd6
cmp al, 9
je 0x403c83
add ebx, 1
movzx eax, byte [ebx]
test al, 0xdf
jne 0x403c70
jmp 0x403c83
add ebx, 1
movzx eax, byte [ebx]
cmp al, 0x20
je 0x403c80
cmp al, 9
je 0x403c80
test byte [ebp - 0x30], 1
mov esi, 0xa
je 0x403c9d
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call sym._GetModuleHandleA_4
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._WinMain_16
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret
test al, al
je 0x403ce2
mov edx, ebx
add ebx, 1
movzx eax, byte [ebx]
cmp al, 0x22
jne 0x403cd2
cmp al, 0x22
jne 0x403c83
lea ebx, [edx + 2]
jmp 0x403c83
Function at 0x405282
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push edi
push str.WinMain_start__lpCmdLine_is:
call esi
mov eax, dword [esp + 0x14]
xor edi, edi
cmp dword [esp + 0x14], edi
jne 0x4052a2
mov eax, str.NULL
push eax
call esi
push str.WinMain_start__parameter_is:
call esi
push str.package.nameZoom.msipackage.versionlatestpackage.size9537kdownloadRoothttps:__launcher.zoom.us_clientactionjoinbrowserchromeconfiddGlkPWx6eV8xVkU5VHhhT0VCQW93WW1ENGc_3Dconfno6535313202zc0mcv0.92.11227.0929stafalseinstaller.exeInstaller.exe
call esi
push 0x444
call fcn.00407475
pop ecx
cmp eax, edi
je 0x4052ce
mov edx, dword [esp + 0xc]
push eax
call fcn.0040538c
jmp 0x4052d0
xor eax, eax
push str.zoom.us_Downloader_Mutex_1.0.0.0
push edi
push 0x1f0001
mov dword [0x41ddb8], eax
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
cmp eax, edi
je 0x4052f3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4052fc
call fcn.00406405
test eax, eax
jne 0x40531c
push edi
push str.zoom.us_Boot_Downloader
call dword [sym.imp.USER32.dll_FindWindowA]
cmp eax, edi
je 0x405341
push edi
push edi
push 0x7e9
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x405341
mov ecx, dword [esp + 0x14]
call fcn.004057bb
mov eax, dword [0x41ddb8]
cmp eax, edi
je 0x405334
push eax
call fcn.00405348
push str.WinMain_end
mov dword [0x41ddb8], edi
call esi
pop edi
xor eax, eax
pop esi
ret 0x10
Function at 0x40cd1e
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [ebp + 8]
and dword [ebp - 4], 0
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x40cd2e
sub eax, ecx
sar eax, 1
push ebx
lea ecx, [eax + 4]
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0xc], ecx
lea edx, [eax + 2]
push edi
mov si, word [eax]
inc eax
inc eax
test si, si
jne 0x40cd4b
sub eax, edx
sar eax, 1
lea esi, [eax + 2]
mov eax, ecx
push 2
xor ebx, ebx
pop ecx
mul ecx
seto bl
neg ebx
or ebx, eax
push ebx
call fcn.004138fd
mov dword [ebp - 8], eax
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004138fd
cmp dword [ebp - 8], 0
pop ecx
pop ecx
mov edi, eax
jne 0x40cda1
mov dword [ebp - 4], 0x8007000e
jmp 0x40ce38
test edi, edi
jne 0x40cdb1
mov dword [ebp - 4], 0x8007000e
jmp 0x40ce43
push dword [ebp + 0xc]
mov ebx, dword [sym.imp.MSVCR80.dll_wcscpy_s]
push esi
push edi
call ebx
add esp, 0xc
cmp eax, 0xffffffff
je 0x40ce31
push dword [ebp + 8]
and word [edi + esi*2 - 2], 0
push dword [ebp - 0xc]
mov esi, dword [ebp - 8]
push esi
call ebx
add esp, 0xc
cmp eax, 0xffffffff
je 0x40ce31
push esi
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov ebx, eax
test ebx, ebx
je 0x40ce31
push 0xffffffffffffffff
push 0x403954
push dword [ebp - 0xc]
push esi
call dword [sym.imp.MSVCR80.dll_wcsncat_s]
xor eax, eax
mov word [ebx + 4], ax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x16], eax
mov dword [ebp - 0x12], eax
add esp, 0x10
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x28], 2
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], edi
mov word [ebp - 0x1c], 0x414
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
je 0x40ce38
mov dword [ebp - 4], 0x80004005
test edi, edi
je 0x40ce43
push edi
call fcn.00413d16
pop ecx
cmp dword [ebp - 8], 0
pop edi
pop esi
pop ebx
je 0x40ce55
push dword [ebp - 8]
call fcn.00413d16
pop ecx
mov eax, dword [ebp - 4]
leave
ret 8
Function at 0x40ce5c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
push edi
xor edi, edi
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
jne 0x40ce7d
mov edi, 0x80070057
jmp 0x40cf65
cmp dword [ebp + 0x10], ebx
jne 0x40ce8c
mov edi, 0x80004003
jmp 0x40cf65
cmp dword [ebp + 8], ebx
jne 0x40ce99
xor edi, edi
inc edi
jmp 0x40cf65
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
test eax, eax
jne 0x40cf64
cmp dword [ebp - 8], 1
jne 0x40cf64
mov eax, dword [ebp - 4]
xor ecx, ecx
push 2
shr eax, 1
pop edx
mul edx
seto cl
mov dword [ebp - 0xc], ebx
neg ecx
or ecx, eax
push ecx
call fcn.004138fd
mov edi, eax
cmp edi, ebx
pop ecx
mov dword [ebp - 0x10], edi
jne 0x40cef1
mov edi, 0x8007000e
jmp 0x40cf4f
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
test eax, eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
jg 0x40cf1d
call esi
mov edi, eax
jmp 0x40cf2d
call esi
mov edi, eax
and edi, 0xffff
or edi, 0x80070000
cmp edi, ebx
jl 0x40cf4f
push dword [ebp - 0x10]
lea ecx, [ebp - 0xc]
call fcn.0040919e
mov edi, eax
cmp edi, ebx
jge 0x40cf47
push dword [ebp - 0xc]
jmp 0x40cf50
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
push ebx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp dword [ebp - 0x10], ebx
je 0x40cf64
push dword [ebp - 0x10]
call fcn.00413d16
pop ecx
pop esi
mov eax, edi
pop edi
pop ebx
leave
ret 0xc
Function at 0x40cf6d
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
and dword [ebp - 4], 0
test ebx, ebx
jne 0x40cf87
mov dword [ebp - 4], 0x80070057
jmp 0x40d070
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40cf9e
mov dword [ebp - 4], 1
jmp 0x40d070
push ebx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x40cfb5
mov dword [ebp - 4], 0x8000ffff
jmp 0x40d070
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40cfcd
mov dword [ebp - 4], 0x80004005
jmp 0x40d070
test al, 3
je 0x40cfdc
and eax, 0xfffffffc
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x40cfe1
push esi
sub eax, edx
sar eax, 1
push edi
lea esi, [eax + 2]
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004138fd
mov edi, eax
test edi, edi
pop ecx
jne 0x40d01a
mov dword [ebp - 4], 0x8007000e
jmp 0x40d063
push ebx
push esi
push edi
call dword [sym.imp.MSVCR80.dll_wcscpy_s]
add esp, 0xc
cmp eax, 0xffffffff
je 0x40d05c
xor eax, eax
mov word [edi + esi*2 - 2], ax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0xe], eax
mov dword [ebp - 0xa], eax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x20], 3
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x14], 0x414
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
je 0x40d063
mov dword [ebp - 4], 0x80004005
test edi, edi
je 0x40d06e
push edi
call fcn.00413d16
pop ecx
pop edi
pop esi
mov eax, dword [ebp - 4]
leave
ret
Function at 0x41257a
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x419010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
xor ecx, ecx
cmp esi, ecx
je 0x412684
mov eax, dword [edi + 0xc8]
cmp eax, ecx
je 0x412684
cmp dword [ebx], ecx
je 0x412684
push esi
push ecx
push ecx
push 0x8003
push eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x4125e1
cmp dword [edi + 0xb0], eax
je 0x412684
push dword [edi + 0x94]
mov eax, edi
call fcn.00411bd0
jmp 0x412684
push dword [ebx]
lea ecx, [ebp - 0x90]
call fcn.00410cd2
cmp dword [ebp - 0x90], 0
je 0x412654
mov eax, dword [ebp - 0x90]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x412600
sub eax, ecx
inc eax
push eax
push dword [ebp - 0x90]
call sub.MSVCR80.dll__strlwr_s
mov ebx, dword [ebp - 0x90]
pop ecx
pop ecx
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push ebx
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x412654
lea eax, [ebp - 0x8c]
cmp dword [ebp - 0x90], eax
je 0x41264f
push dword [ebp - 0x90]
call fcn.00413c52
pop ecx
xor eax, eax
inc eax
jmp 0x412686
cmp dword [edi + 0xb0], 0
je 0x41266a
push dword [edi + 0x98]
mov eax, edi
call fcn.00411bd0
lea eax, [ebp - 0x8c]
cmp dword [ebp - 0x90], eax
je 0x412684
push dword [ebp - 0x90]
call fcn.00413c52
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00413c2a
leave
ret
Function at 0x41369f
Capabilities:
Get common file path

Disassembly:
cmp dword [esp + 8], 0x104
jge 0x4136b3
mov eax, dword [esp + 4]
and word [eax], 0
jmp 0x4136d9
push esi
mov esi, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push edi
push dword [esp + 0xc]
xor edi, edi
push edi
push edi
push 0x1a
push edi
call esi
test eax, eax
je 0x4136d7
push dword [esp + 0xc]
push edi
push edi
push 5
push edi
call esi
pop edi
pop esi
ret 8

Function at 0x41378e
Capabilities:
Check if file exists
Copy file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x254
mov eax, dword [0x419010]
xor eax, esp
mov dword [esp + 0x250], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
lea ecx, [esp + 0x2c]
push ecx
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0xc]
xor esi, esi
push esi
push eax
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x4138c1
mov dword [esp + 0x20], esi
or dword [esp + 0x20], 0xffffffff
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0xc], esi
mov ebx, 0x407298
mov edi, 0x4072a8
mov esi, 0x103
push 0x407290
push ebx
push dword [esp + 0x14]
lea eax, [esp + 0x5c]
push dword [esp + 0x28]
push edi
push esi
push eax
call fcn.0040da14
add esp, 0x1c
lea eax, [esp + 0x2c]
push eax
push 0
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
jne 0x413843
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x41387d
mov eax, dword [esp + 0xc]
mov dword [esp + 0xc], 0xf
jmp 0x413879
mov edx, dword [esp + 0x10]
or edx, dword [esp + 0x14]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
jne 0x41385f
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
jmp 0x41387d
cmp dword [esp + 0x14], ecx
jb 0x41387d
ja 0x41386d
cmp dword [esp + 0x10], eax
jbe 0x41387d
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x20], eax
cmp dword [esp + 0x20], 0
jl 0x4138b2
push 0x407290
push ebx
push dword [esp + 0x14]
lea eax, [esp + 0x5c]
push dword [esp + 0x28]
push edi
push esi
push eax
call fcn.0040da14
add esp, 0x1c
push 0
lea eax, [esp + 0x54]
push eax
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
inc dword [esp + 0xc]
cmp dword [esp + 0xc], 0xf
jl 0x4137f8
mov ecx, dword [esp + 0x25c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00413c2a
mov esp, ebp
pop ebp
ret 8
Function at 0x414562
Capabilities:
Check if file exists
Get file attributes
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor esi, esi
cmp dword [ebp + 8], esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, 0x80004005
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
jne 0x414587
cmp edi, 0x104
jl 0x4145e3
lea eax, [ebp - 4]
push eax
push 0x20019
push esi
push 0x4025cc
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4145e3
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], edi
push esi
push esi
push 0x4025c4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
jne 0x4145e3
cmp dword [ebp + 0x10], esi
je 0x4145e1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4145e3
xor ebx, ebx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0xc

Function at 0x414632
Capabilities:
Identify system language via api
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push esi
mov esi, dword [eax + 0x10]
push edi
lea eax, [ebp - 4]
push eax
xor edi, edi
push 0x20019
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
push SysReAllocStringLen
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
mov dword [ebp + 8], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4146ba
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov dword [ebp + 0xc], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 0xc], edi
jne 0x4146ba
cmp dword [ebp + 8], 4
jne 0x4146ba
cmp dword [ebp - 8], 4
jne 0x4146ba
mov eax, dword [ebp - 0xc]
cmp eax, 0xfffffffd
jne 0x4146b5
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
mov dword [esi + 0x40], eax
jmp 0x4146c1
mov dword [esi + 0x40], 0x409
pop edi
pop esi
leave
ret 0xc
Function at 0x4150a1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea eax, [ebp - 4]
push eax
mov edi, 0x20019
push edi
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call esi
test eax, eax
jne 0x41512d
cmp dword [ebp - 4], ebx
je 0x41512d
lea eax, [ebp + 0xc]
push eax
push edi
push ebx
push 0x4027d0
push dword [ebp - 4]
mov dword [ebp + 0xc], ebx
call esi
push dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
call esi
cmp edi, ebx
jne 0x41512d
cmp dword [ebp + 0xc], ebx
je 0x41512d
lea eax, [ebp + 8]
push eax
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp + 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 0xc]
mov edi, eax
call esi
cmp edi, ebx
je 0x41511f
cmp edi, 0xea
jne 0x415129
cmp dword [ebp + 8], ebx
je 0x415129
xor eax, eax
inc eax
jmp 0x41512f
xor eax, eax
jmp 0x41512f
xor al, al
pop edi
pop esi
pop ebx
leave
ret 8

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

Disassembly:
push dword [esp + 4]
push dword [esp + 0xc]
push esi
call fcn.00413d1c
mov eax, esi
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x415454
sub eax, edx
sar eax, 1
cmp word [esi + eax*2 - 2], 0x5c
je 0x41547c
push 0x404fb4
push dword [esp + 0xc]
push esi
call sub.MSVCR80.dll_wcscat_s
add esp, 0xc
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push esi
call edi
cmp eax, 0xffffffff
jne 0x4154c7
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x415490
sub eax, edx
sar eax, 1
lea eax, [esi + eax*2 - 4]
movzx ecx, word [eax]
cmp cx, 0x73
je 0x4154b5
cmp cx, 0x53
je 0x4154b5
xor eax, eax
jmp 0x4154ca
and word [eax + 2], 0
push esi
mov word [eax], 0x5c
call edi
cmp eax, 0xffffffff
je 0x4154b1
xor eax, eax
inc eax
pop edi
ret 8

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

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0x10]
xor esi, esi
push dword [ebp + 8]
push dword [ebp + 0xc]
push 0x402918
push dword [ebp + 0x1c]
push dword [ebp + 0x20]
call sub.MSVCR80.dll_swprintf_s
add esp, 0x18
push dword [ebp + 0x20]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x415513
cmp dword [ebp + 0x14], esi
je 0x415510
push dword [ebp + 8]
push dword [ebp + 0x18]
call dword [ebp + 0x14]
mov esi, eax
jmp 0x415513
xor esi, esi
inc esi
mov eax, esi
pop esi
pop ebp
ret 0x1c