joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406104
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
xor ebx, ebx
push ebx
mov edi, 0xfffe
call fcn.0040231c
mov esi, eax
pop ecx
cmp esi, ebx
je 0x406185
push ebx
push esi
push 0x7fff
push ebx
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
je 0x40617e
push ebx
push ebx
lea eax, [ebp - 0xc]
push eax
push esi
call dword [sym.imp.ntdll.dll_RtlDosPathNameToNtPathName_U]
test al, al
je 0x40617e
lea eax, [ebp - 0xc]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], 0x18
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], 0x40
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.ntdll.dll_ZwDeleteFile]
test eax, eax
lea eax, [ebp - 0xc]
push eax
setns bl
call dword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
push esi
call fcn.0040241e
pop ecx
pop edi
pop esi
mov al, bl
pop ebx
leave
ret

Function at 0x40618c
Capabilities:
Set file attributes

Disassembly:
push edi
push 0x80
push esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x4061bd
mov ecx, edi
inc edi
cmp ecx, 0x14
jg 0x4061d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 2
neg eax
sbb eax, eax
inc eax
jne 0x4061d1
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call fcn.00406104
pop ecx
xor ecx, ecx
test al, al
setne cl
mov eax, ecx
test eax, eax
je 0x40619d
pop edi
ret

Function at 0x4061d3
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1448
call fcn.004069d0
push ebx
push esi
lea eax, [ebp - 0x40]
push eax
push dword [ebp + 8]
xor ebx, ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
cmp esi, ebx
je 0x4062e4
push edi
push esi
call fcn.00402384
mov edi, eax
pop ecx
cmp edi, ebx
je 0x4062e3
push edi
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
mov esi, dword [sym.imp.VERSION.dll_VerQueryValueW]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0x4086e4
push edi
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call esi
cmp dword [ebp - 8], 4
jb 0x4062dc
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x3c], str.Comments
mov dword [ebp - 0x38], 0x40872c
mov dword [ebp - 0x34], 0x408748
mov dword [ebp - 0x30], 0x408760
mov dword [ebp - 0x2c], 0x408778
mov dword [ebp - 0x28], 0x408798
mov dword [ebp - 0x24], 0x4087b8
mov dword [ebp - 0x20], str.LegalTrademarks
mov dword [ebp - 0x1c], str.PrivateBuild
mov dword [ebp - 0x18], 0x408814
mov dword [ebp - 0x14], 0x40882c
mov dword [ebp - 0x10], str.SpecialBuild
push dword [ebp + eax*4 - 0x3c]
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
lea eax, [ebp - 0x1448]
push str.StringFileInfo_04x_04x_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x1448]
push eax
push edi
call esi
test eax, eax
je 0x4062dc
push dword [ebp - 0xc]
call fcn.004029a5
pop ecx
mov ebx, eax
push edi
call fcn.0040241e
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x406334
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
xor eax, eax
push esi
push edi
cmp dword [ebp + 8], eax
jne 0x40634b
xor eax, eax
jmp 0x4063cd
cmp dword [ebp + 0xc], eax
je 0x406344
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
mov edi, 0x2000000
push edi
push 3
push eax
push 1
push closesocket
push dword [ebp + 8]
mov dword [ebp - 4], eax
call esi
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4063ca
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
xor eax, eax
push eax
push edi
push 3
push eax
push eax
push 0x100
push dword [ebp + 0xc]
call esi
mov esi, eax
cmp esi, 0xffffffff
je 0x4063ca
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
neg eax
sbb eax, eax
neg eax
push esi
mov dword [ebp - 4], eax
call ebx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x406437
Capabilities:
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
push esi
push edi
lea eax, [ebp - 0x428]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4064f8
lea eax, [ebp - 0x218]
push eax
push 0
push 0x4086dc
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x4064f8
lea esi, [ebp - 0x218]
call fcn.0040618c
mov eax, esi
push eax
call fcn.004029a5
mov esi, eax
pop ecx
mov dword [ebp - 4], esi
test esi, esi
je 0x4064f8
push 0
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x4064f1
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
je 0x4064e9
push 1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
mov edi, eax
test edi, edi
je 0x4064e2
push edi
push 0x4063d2
push 0xa
push esi
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceW]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, dword [ebp - 4]
call fcn.0040618c
push esi
call fcn.0040241e
pop ecx
pop edi
pop esi
leave
ret

Function at 0x4065d3
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
and dword [ebp - 0x24], 0
push edi
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
xor eax, eax
cmp word [ebp - 0x24], 9
pop edi
sete al
leave
ret
Function at 0x4067e9
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, 0x40a440
push edi
xor bl, bl
call dword [sym.imp.SHLWAPI.dll_PathSkipRootW]
mov esi, eax
test esi, esi
jne 0x406803
mov esi, edi
movzx eax, word [esi]
cmp eax, 0x5c
je 0x406815
cmp eax, 0x2f
je 0x406815
test ax, ax
jne 0x406841
mov ebp, eax
xor eax, eax
push edi
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x406835
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jmp 0x406837
test al, 0x10
je 0x406848
test bp, bp
je 0x406846
mov word [esi], bp
add esi, 2
jmp 0x406803
mov bl, 1
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x1c
xor eax, eax
cmp word [0x400000], 0x5a4d
mov dword [0x406058], 1
mov dword [0x406054], 1
mov dword [0x406050], 1
jne 0x401056
mov edx, dword [0x40003c]
cmp dword [edx + 0x400000], 0x4550
lea ecx, [edx + 0x400000]
je 0x4010b0
mov dword [0x40600c], eax
mov eax, dword [0x406064]
test eax, eax
je 0x4010a0
mov dword [esp], 2
call sym.___set_app_type
call sym.___p__fmode
mov edx, dword [0x406078]
mov dword [eax], edx
call sym.___p__commode
mov edx, dword [0x406060]
mov dword [eax], edx
call dbg._setargv
cmp dword [0x4031b0], 1
je 0x4010e0
xor eax, eax
add esp, 0x1c
ret
mov dword [esp], 1
call sym.___set_app_type
jmp 0x401070
movzx edx, word [ecx + 0x18]
cmp dx, 0x10b
je 0x4010f8
cmp dx, 0x20b
jne 0x401056
cmp dword [ecx + 0x84], 0xe
jbe 0x401056
mov edx, dword [ecx + 0xf8]
xor eax, eax
test edx, edx
setne al
jmp 0x401056
mov dword [esp], dbg._matherr
call dbg.__mingw_setusermatherr
xor eax, eax
add esp, 0x1c
ret
cmp dword [ecx + 0x74], 0xe
jbe 0x401056
mov ecx, dword [ecx + 0xe8]
xor eax, eax
test ecx, ecx
setne al
jmp 0x401056

Function at 0x401780
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call dbg.__acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call dbg.__acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]
Function at 0x4017e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x40606c]
test esi, esi
jle 0x401900
mov eax, dword [0x406070]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x401814
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x401897
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x401800
mov dword [esp], ebx
call dbg.__mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x401927
mov eax, dword [0x406070]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call dbg._GetPEImageBase
mov edx, dword [0x406070]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401907
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x401890
lea edx, [eax - 0x40]
and edx, 0xffffffbf
jne 0x4018a0
add dword [0x40606c], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x406070]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x401890
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
lea esi, cs:[esi]
nop
xor esi, esi
jmp 0x40181e
mov eax, dword [0x406070]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, cs:[esi]
nop

Function at 0x401e50
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x406088
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x406080]
sub esp, 4
test ebx, ebx
je 0x401ea5
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
mov esi, eax
sub esp, 4
call edi
test esi, esi
je 0x401e9e
test eax, eax
jne 0x401e9e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401e80
mov dword [esp], 0x406088
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4021e0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x402205
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x402210
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x402205
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x402258
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x40224e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x40225a
add ecx, 1
add eax, 0x28
cmp esi, ecx
jne 0x402240
xor eax, eax
pop ebx
pop esi
ret
Function at 0x401010
Capabilities:
Get file version info

Disassembly:
push ecx
movzx eax, word [esp + 0x10]
push ebp
mov ebp, dword [esp + 0xc]
push esi
movzx esi, word [esp + 0x14]
push edi
lea ecx, [esp + 0x1c]
push ecx
shl esi, 0x10
push ebp
add esi, eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
jbe 0x4010a9
push ebx
push edi
call fcn.00405e98
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4010a1
push ebx
push edi
push 0
push ebp
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x401098
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x20]
push eax
push 0x41e28c
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x401098
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 8]
cmp eax, esi
jb 0x401090
jne 0x401098
movzx edx, word [esp + 0x24]
movzx eax, word [esp + 0x28]
shl edx, 0x10
add edx, eax
cmp dword [ecx + 0x14], edx
ja 0x401098
pop ebx
pop edi
pop esi
mov al, 1
pop ebp
pop ecx
ret
push ebx
call fcn.00405d46
add esp, 4
pop ebx
pop edi
pop esi
xor al, al
pop ebp
pop ecx
ret
pop edi
pop esi
mov al, 1
pop ebp
pop ecx
ret

Function at 0x4010b0
Capabilities:
Get file version info

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x14]
push esi
lea eax, [esp + 0xc]
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
jbe 0x401132
push edi
push esi
call fcn.00405e98
mov edi, eax
add esp, 4
test edi, edi
je 0x401129
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x401120
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x10]
push edx
push 0x41e28c
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x401120
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 8]
mov edx, dword [esp + 0x20]
mov dword [edx], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x24]
pop edi
pop esi
mov dword [ecx], eax
mov al, 1
pop ebx
add esp, 0xc
ret
push edi
call fcn.00405d46
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
add esp, 0xc
ret
pop esi
xor al, al
pop ebx
add esp, 0xc
ret
Function at 0x401140
Capabilities:
Extract resource via kernel32 functions
Move file
Write file on windows

Disassembly:
sub esp, 0x118
mov eax, dword [0x4231e0]
xor eax, esp
mov dword [esp + 0x114], eax
mov eax, dword [esp + 0x12c]
push ebp
mov ebp, dword [esp + 0x128]
lea edx, [esp + 0x14]
push esi
mov esi, dword [esp + 0x124]
mov dword [esp + 8], eax
mov eax, ebp
sub edx, ebp
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x401177
lea eax, [esp + 0x18]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x401190
sub eax, edx
push 4
lea ecx, [esp + eax + 0x18]
push str..new
push ecx
call fcn.00406380
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4012b4
push ebx
lea edx, [esp + 0x1c]
push 0x41e290
push edx
call fcn.00406312
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4012b3
push edi
push 0x7d000
mov dword [esp + 0x18], 0x7d000
call fcn.00405e98
mov edi, eax
mov eax, dword [esp + 0x134]
push eax
push esi
lea ecx, [esp + 0x20]
push ecx
push edi
call fcn.004029a8
add esp, 0x14
test eax, eax
jne 0x40121e
mov edx, dword [esp + 0x14]
push ebx
push edx
push 1
push edi
call fcn.004061c1
add esp, 0x10
push edi
call fcn.00405d46
push ebx
call fcn.0040602b
add esp, 8
cmp byte [esp + 0x138], 0
pop edi
jne 0x401282
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x24]
push edx
call fcn.004010b0
mov eax, dword [esp + 0x20]
push eax
shr eax, 0x10
push eax
mov eax, dword [esp + 0x2c]
push eax
shr eax, 0x10
push eax
push ebp
call fcn.00401010
add esp, 0x20
cmp al, 1
je 0x401282
lea eax, [esp + 0x1c]
push eax
call fcn.00405f89
add esp, 4
test eax, eax
je 0x4012b3
push 4
push 0
jmp 0x40129d
push ebp
call fcn.00405f89
lea eax, [esp + 0x20]
push ebp
push eax
call fcn.00405f5b
add esp, 0xc
test eax, eax
je 0x4012b3
push 5
push ebp
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
je 0x4012b3
mov edx, dword [esp + 0xc]
mov byte [edx], 1
pop ebx
mov ecx, dword [esp + 0x11c]
pop esi
pop ebp
xor ecx, esp
call fcn.004064a4
add esp, 0x118
ret
Function at 0x4012d0
Capabilities:
Get file version info

Disassembly:
sub esp, 0x114
mov eax, dword [0x4231e0]
xor eax, esp
mov dword [esp + 0x110], eax
push ebx
push ebp
mov ebp, dword [esp + 0x120]
push esi
lea eax, [esp + 0x18]
push eax
push ebp
xor bl, bl
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
jbe 0x40139c
push edi
push esi
call fcn.00405e98
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebp
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x401392
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x401392
mov eax, dword [esp + 0x18]
movzx ecx, word [eax + 2]
movzx edx, word [eax]
push ecx
push edx
lea eax, [esp + 0x28]
push str.StringFileInfo_04x_04xCompanyName
push eax
call fcn.004067ae
add esp, 0x10
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x28]
push eax
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x401392
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0040674c
mov edx, dword [esp + 0x14]
push str.PORTIONS__C__CREATIVE_LABS_INC._AND_NVIDIA_CORP.
push edx
call fcn.00405cc0
add esp, 0xc
test eax, eax
je 0x401392
mov bl, 1
push edi
call fcn.00405d46
add esp, 4
pop edi
mov ecx, dword [esp + 0x11c]
pop esi
pop ebp
mov al, bl
pop ebx
xor ecx, esp
call fcn.004064a4
add esp, 0x114
ret

Function at 0x4013f0
Capabilities:
Copy file
Get common file path

Disassembly:
sub esp, 0x310
mov eax, dword [0x4231e0]
xor eax, esp
mov dword [esp + 0x30c], eax
push 0x104
lea eax, [esp + 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x401489
push 0x104
lea ecx, [esp + 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edx, [esp]
push edx
push 0
push 0x41e314
lea eax, [esp + 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x401489
push 0
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x401489
lea eax, [esp]
push eax
call fcn.00405f89
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x30c]
xor ecx, esp
call fcn.004064a4
add esp, 0x310
ret
mov ecx, dword [esp + 0x30c]
xor ecx, esp
xor al, al
call fcn.004064a4
add esp, 0x310
ret

Function at 0x4014a0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x10
push 0
lea eax, [esp + 8]
push eax
push 0
push 0xf003f
push 0
push 0x41e334
push 0
push str.SOFTWAREOpenAL
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40152c
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esp + 8]
lea edx, [esp + 4]
push edx
lea eax, [esp + 0x14]
push eax
push 0
push str.RefCount
push ecx
mov dword [esp + 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x401502
mov dword [esp], 0
mov eax, dword [esp + 4]
add dword [esp], 1
push 4
lea edx, [esp + 4]
push edx
push 4
push 0
push str.RefCount
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0x10
ret
Function at 0x401530
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x10
push 0
lea eax, [esp + 8]
push eax
push 0
push 0xf003f
push 0
push 0x41e334
push 0
push str.SOFTWAREOpenAL
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4015c4
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esp + 8]
lea edx, [esp + 4]
push edx
lea eax, [esp + 0x14]
push eax
push 0
push str.RefCount
push ecx
mov dword [esp + 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x401594
mov dword [esp], 0
jmp 0x40159e
cmp dword [esp], 0
jbe 0x40159e
sub dword [esp], 1
mov eax, dword [esp + 4]
push 4
lea edx, [esp + 4]
push edx
push 4
push 0
push str.RefCount
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0x10
ret

Function at 0x4015d0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push 0
lea eax, [esp + 8]
push eax
push 0
push 0xf003f
push 0
push 0x41e334
push 0
push str.SOFTWAREOpenAL
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x401632
lea ecx, [esp]
push ecx
mov ecx, dword [esp + 8]
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x14]
push eax
push 0
push str.RefCount
push ecx
mov dword [esp + 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401632
mov eax, dword [esp + 8]
add esp, 0x10
ret
xor eax, eax
add esp, 0x10
ret
Function at 0x401b90
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push esi
xor bl, bl
call edi
cmp eax, 0xffffffff
mov ebp, dword [sym.imp.KERNEL32.dll_MoveFileExA]
je 0x401bc5
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x401bc5
push 4
push eax
push esi
call ebp
test eax, eax
je 0x401bc5
mov bl, 1
mov esi, dword [esp + 0x18]
push esi
call edi
cmp eax, 0xffffffff
je 0x401be8
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x401be8
push 4
push eax
push esi
call ebp
test eax, eax
mov al, 1
jne 0x401bea
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x401bf0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x314
mov eax, dword [0x4231e0]
xor eax, esp
mov dword [esp + 0x310], eax
push ebx
push 0x104
lea eax, [esp + 0xc]
xor bl, bl
push eax
mov byte [esp + 0xf], bl
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
xor eax, eax
lea ecx, [ecx]
mov cl, byte [esp + eax + 8]
mov byte [esp + eax + 0x10c], cl
add eax, 1
test cl, cl
jne 0x401c20
xor eax, eax
jmp 0x401c40
mov cl, byte [esp + eax + 8]
mov byte [esp + eax + 0x210], cl
add eax, 1
test cl, cl
jne 0x401c40
lea eax, [esp + 8]
add eax, 0xffffffff
lea esp, [esp]
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x401c60
mov ecx, dword [str.OpenAL32.dll]
mov edx, dword [0x41e450]
mov dword [eax], ecx
mov ecx, dword [0x41e454]
mov dword [eax + 4], edx
mov dx, word [0x41e458]
mov dword [eax + 8], ecx
mov word [eax + 0xc], dx
lea eax, [esp + 0x10c]
add eax, 0xffffffff
lea esp, [esp]
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x401ca0
mov ecx, dword [str.ct_oal.dll]
mov edx, dword [0x41e444]
mov dword [eax], ecx
mov ecx, dword [0x41e448]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
lea eax, [esp + 0x210]
add eax, 0xffffffff
mov edi, edi
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x401cd0
cmp byte [0x424245], 1
mov edx, dword [str.wrap_oal.dll]
mov ecx, dword [0x41e434]
mov dword [eax], edx
mov edx, dword [0x41e438]
mov dword [eax + 4], ecx
mov cx, word [0x41e43c]
mov dword [eax + 8], edx
mov word [eax + 0xc], cx
jne 0x401e09
cmp byte [0x424247], 0
jne 0x401dde
call fcn.004013f0
test al, al
je 0x401e09
lea edx, [esp + 0x10c]
push edx
call fcn.004012d0
add esp, 4
cmp al, 1
jne 0x401d4a
lea eax, [esp + 0x10c]
push eax
call fcn.00405f89
add esp, 4
lea ecx, [esp + 8]
push ecx
call fcn.004012d0
add esp, 4
test al, al
jne 0x401d68
lea edx, [esp + 8]
push edx
call fcn.00405f89
add esp, 4
movzx ecx, byte [0x424246]
lea eax, [esp + 7]
push eax
mov eax, dword [0x424260]
push ecx
mov ecx, dword [0x42424c]
lea edx, [esp + 0x10]
push edx
push eax
push ecx
call fcn.00401140
movzx eax, byte [0x424246]
lea edx, [esp + 0x1b]
push edx
mov edx, dword [0x42427c]
push eax
mov eax, dword [0x424240]
lea ecx, [esp + 0x22c]
push ecx
push edx
push eax
call fcn.00401140
add esp, 0x28
cmp byte [0x424244], 0
jne 0x401dc4
call fcn.00401640
mov al, byte [esp + 7]
pop ebx
mov ecx, dword [esp + 0x310]
xor ecx, esp
call fcn.004064a4
add esp, 0x314
ret
lea ecx, [esp + 0x210]
push ecx
lea edx, [esp + 0xc]
push edx
call fcn.004018e0
add esp, 8
pop ebx
mov ecx, dword [esp + 0x310]
xor ecx, esp
call fcn.004064a4
add esp, 0x314
ret
mov ecx, dword [esp + 0x314]
mov al, bl
pop ebx
xor ecx, esp
call fcn.004064a4
add esp, 0x314
ret