joyce8/EMBER2024-capa huggingface dataset:
Function at 0x447e20
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x120]
sub esp, 0x120
push 0xffffffffffffffff
push 0x4837f2
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4a8068]
xor eax, ebp
mov dword [ebp + 0x11c], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi], 0
je 0x447e64
call fcn.00447fb0
cmp byte [0x4aa42c], 0
jne 0x447e77
mov eax, 0x80000001
jmp 0x447f8b
mov eax, dword [esi]
test eax, eax
jne 0x447ee2
push 8
call fcn.0045522d
mov edi, eax
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 0
push 1
call fcn.0045522d
mov dword [edi + 4], eax
push 0x118
push 0
mov byte [eax], 0
lea eax, [ebp + 4]
push eax
call fcn.00457590
add esp, 0x14
mov dword [ebp], 0x11c
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x447ed1
cmp dword [ebp + 4], 6
mov eax, dword [edi + 4]
setae cl
mov byte [eax], cl
mov dword [ebp - 4], 0xffffffff
mov dword [esi], edi
mov dword [edi], 0
mov eax, dword [esi]
cmp dword [eax], 0
jne 0x447f7a
call fcn.0041b520
test al, al
jne 0x447f1c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [esi]
push eax
add ecx, 4
call fcn.0041b6b0
test al, al
je 0x447f7a
mov ecx, dword [esi]
add ecx, 4
call fcn.0041b040
call fcn.0041b520
test al, al
je 0x447f7a
push str.Advapi32.dll
lea ecx, [ebp - 0x28]
call fcn.004053a0
mov dword [ebp - 4], 2
lea eax, [ebp - 0x28]
push eax
call fcn.00419c10
mov ecx, eax
call fcn.00419cd0
mov edi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004052c0
test edi, edi
je 0x447f7a
push str.RegOpenCurrentUser
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x447f7a
push dword [esi]
push 0x20019
call eax
test eax, eax
je 0x447f7a
mov eax, dword [esi]
mov dword [eax], 0
mov eax, dword [esi]
cmp dword [eax], 0
jne 0x447f89
mov dword [eax], 0x80000001
mov eax, dword [esi]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp + 0x11c]
xor ecx, ebp
call fcn.00455217
lea esp, [ebp + 0x120]
pop ebp
ret 4
Function at 0x449fb0
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x4a8068]
xor eax, esp
mov dword [esp + 4], eax
mov eax, dword [ecx]
push esi
push edi
mov edi, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x44a015
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x449ff0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x44a015
mov eax, dword [esp + 8]
xor ecx, ecx
add ecx, esi
mov dword [edi], ecx
adc eax, 0
mov dword [edi + 4], eax
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.00455217
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.00455217
add esp, 8
ret 4

Function at 0x44a330
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x12c
mov eax, dword [0x4a8068]
xor eax, esp
mov dword [esp + 0x128], eax
push esi
push 0x110
lea eax, [esp + 0x18]
mov esi, ecx
push 0
push eax
call fcn.00457590
add esp, 0xc
mov dword [esp + 0x10], 0x114
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x44a3ae
cmp dword [esp + 0x14], 6
jb 0x44a3ae
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x207
push eax
push esi
push 0x49af64
mov edx, str.SoftwareMicrosoftWindowsShellAssociationsUrlAssociationshttpUserChoice
mov ecx, 0x80000001
call fcn.0044a1a0
add esp, 0xc
test al, al
je 0x44a3ae
cmp word [esi], 0
jne 0x44a406
lea eax, [esp + 8]
mov dword [esp + 8], 0x207
push eax
push esi
push 0
mov edx, str.http_shellopencommand
mov ecx, 0x80000000
call fcn.0044a1a0
add esp, 0xc
test al, al
je 0x44a3da
cmp word [esi], 0
jne 0x44a406
lea eax, [esp + 8]
mov dword [esp + 8], 0x207
push eax
push esi
push 0
mov edx, str.SoftwareClasses.html
mov ecx, 0x80000001
call fcn.0044a1a0
add esp, 0xc
test al, al
je 0x44a41b
cmp word [esi], 0
je 0x44a41b
mov al, 1
pop esi
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.00455217
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x12c]
xor al, al
pop esi
xor ecx, esp
call fcn.00455217
mov esp, ebp
pop ebp
ret
Function at 0x44a9f0
Capabilities:
Check if file exists
Get file attributes
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x283c]
mov eax, 0x283c
call fcn.004561c0
push 0xffffffffffffffff
push 0x483e38
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4a8068]
xor eax, ebp
mov dword [ebp + 0x2838], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x2000
xor ebx, ebx
lea eax, [ebp + 0x630]
push ebx
push eax
call fcn.00457590
add esp, 0xc
mov eax, 0x22
mov word [ebp + 0x630], ax
test esi, esi
je 0x44abf1
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
call edi
cmp eax, 1
jl 0x44abf1
push esi
call edi
cmp eax, 0xffa
jge 0x44abf1
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp + 0x630]
push eax
call esi
push 0x498a8c
lea eax, [ebp + 0x630]
push eax
call esi
push 0x498280
lea ecx, [ebp - 0x2c]
call fcn.004053a0
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x2c]
push eax
call fcn.00419c10
mov ecx, eax
call fcn.00419cd0
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004052c0
test esi, esi
je 0x44abf1
push str.ShellExecuteW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x44abf1
lea ecx, [ebp]
call fcn.0044a430
xor edi, edi
lea esi, [ebp]
cmp word [esi], 0
je 0x44ab16
push 1
push 0
lea eax, [ebp + 0x630]
push eax
push esi
push str.open
push 0
call dword [ebp - 0x10]
cmp eax, 0x20
ja 0x44ab24
inc edi
add esi, 0x210
cmp edi, 3
jl 0x44aaf5
jmp 0x44ab46
imul ebx, edi, 0x210
cmp dword [ebp + ebx + 0x208], 0
mov ebx, dword [ebp + ebx + 0x20c]
jne 0x44ab3e
add ebx, 0x10
test ebx, ebx
jne 0x44abed
mov edi, dword [ebp - 0x10]
lea eax, [ebp + 0x630]
push 1
push 0
push 0
push eax
push str.open
push 0
call edi
cmp eax, 0x20
ja 0x44abe8
mov dword [ebp - 0x14], str._programfiles_x86__Internet_Exploreriexplore.exe
xor esi, esi
mov dword [ebp - 0x10], str._programfiles_Internet_Exploreriexplore.exe
nop dword [eax + eax]
push 0x208
lea eax, [ebp + 0x2630]
push 0
push eax
call fcn.00457590
add esp, 0xc
lea eax, [ebp + 0x2630]
push 0x103
push eax
push dword [ebp + esi*4 - 0x14]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp + 0x2630]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x44abde
push 1
push 0
lea eax, [ebp + 0x630]
push eax
lea eax, [ebp + 0x2630]
push eax
push str.open
push 0
call edi
cmp eax, 0x20
ja 0x44abe8
inc esi
cmp esi, 2
jb 0x44ab80
mov eax, ebx
jmp 0x44abf3
mov ebx, 0x10
mov eax, ebx
jmp 0x44abf3
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2838]
xor ecx, ebp
call fcn.00455217
lea esp, [ebp + 0x283c]
pop ebp
ret
Function at 0x44e2a0
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x4a8068]
xor eax, esp
mov dword [esp + 0x114], eax
push esi
mov esi, ecx
mov dword [esp + 4], 0x114
push 0x110
lea eax, [esp + 0xc]
push 0
push eax
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov byte [esi], 0
call fcn.00457590
add esp, 0xc
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, esi
je 0x44e337
cmp dword [esp + 8], 6
jb 0x44e337
mov byte [esi], 1
mov ecx, dword [esp + 0x118]
pop esi
xor ecx, esp
call fcn.00455217
add esp, 0x118
ret

Function at 0x44e350
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x484360
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x4a8068]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push str.wintrust.dll
lea ecx, [ebp - 0x28]
call fcn.004053a0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
call fcn.00419c10
mov ecx, eax
call fcn.00419cd0
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004052c0
push str.crypt32.dll
lea ecx, [ebp - 0x40]
call fcn.004053a0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x40]
push eax
call fcn.00419c10
mov ecx, eax
call fcn.00419cd0
mov esi, eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.004052c0
test ebx, ebx
je 0x44e465
test esi, esi
je 0x44e465
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptCATAdminCalcHashFromFileHandle
push ebx
call esi
push str.CryptCATAdminAcquireContext
push ebx
mov dword [edi + 4], eax
call esi
push str.CryptCATAdminEnumCatalogFromHash
push ebx
mov dword [edi + 8], eax
call esi
push str.CryptCATCatalogInfoFromContext
push ebx
mov dword [edi + 0xc], eax
call esi
push str.CryptCATAdminReleaseCatalogContext
push ebx
mov dword [edi + 0x10], eax
call esi
push str.CryptCATAdminReleaseContext
push ebx
mov dword [edi + 0x14], eax
call esi
push str.WTHelperProvDataFromStateData
push ebx
mov dword [edi + 0x18], eax
call esi
push str.WTHelperGetProvSignerFromChain
push ebx
mov dword [edi + 0x1c], eax
call esi
push str.WinVerifyTrust
push ebx
mov dword [edi + 0x20], eax
call esi
push str.CertNameToStrW
push dword [ebp - 0x10]
mov dword [edi + 0x24], eax
call esi
mov dword [edi + 0x28], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44f370
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x80
push esi
mov dword [esp + 4], 0x10d040e
xor esi, esi
mov dword [esp + 8], 0x80b0f02
mov dword [esp + 0xc], 0xc060a03
mov dword [esp + 0x10], 0x7000905
mov dword [esp + 0x14], 0xe08010f
mov dword [esp + 0x18], 0x4030b06
mov dword [esp + 0x1c], 0xd020709
mov dword [esp + 0x20], 0xa05000c
mov dword [esp + 0x24], 0xe09000a
mov dword [esp + 0x28], 0x50f0306
mov dword [esp + 0x2c], 0x70c0d01
mov dword [esp + 0x30], 0x802040b
mov dword [esp + 0x34], 0x30e0d07
mov dword [esp + 0x38], 0xa090600
mov dword [esp + 0x3c], 0x5080201
mov dword [esp + 0x40], 0xf040c0b
mov dword [esp + 0x44], 0x1040c02
mov dword [esp + 0x48], 0x60b0a07
mov dword [esp + 0x4c], 0xf030508
mov dword [esp + 0x50], 0x90e000d
mov dword [esp + 0x54], 0xf0a010c
mov dword [esp + 0x58], 0x8060209
mov dword [esp + 0x5c], 0x4030d00
mov dword [esp + 0x60], 0xb05070e
mov dword [esp + 0x64], 0xe020b04
mov dword [esp + 0x68], 0xd08000f
mov dword [esp + 0x6c], 0x7090c03
mov dword [esp + 0x70], 0x1060a05
mov dword [esp + 0x74], 0x408020d
mov dword [esp + 0x78], 0x10b0f06
mov dword [esp + 0x7c], 0xe03090a
mov dword [esp + 0x80], 0x70c0005
nop dword [eax]
mov ecx, esi
mov edx, esi
sar ecx, 4
and edx, 0xf
movzx eax, byte [esp + ecx + 4]
shl al, 4
or al, byte [esp + edx + 0x14]
mov byte [esi + 0x4aa780], al
movzx eax, byte [esp + ecx + 0x24]
shl al, 4
or al, byte [esp + edx + 0x34]
mov byte [esi + 0x4aa480], al
movzx eax, byte [esp + ecx + 0x44]
shl al, 4
or al, byte [esp + edx + 0x54]
mov byte [esi + 0x4aa680], al
movzx eax, byte [esp + ecx + 0x64]
shl al, 4
or al, byte [esp + edx + 0x74]
mov byte [esi + 0x4aa580], al
inc esi
cmp esi, 0x100
jl 0x44f480
pop esi
add esp, 0x80
ret
Function at 0x46b4f5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0046b374

Function at 0x47366d
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0047332d

Function at 0x47a8a0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x418
mov eax, dword [0x4a8068]
xor eax, esp
mov dword [esp + 0x414], eax
push edi
mov edi, dword [esp + 0x424]
lea eax, [esp + 8]
push 0x410
push 0
push eax
call fcn.00457590
add esp, 0xc
mov dword [esp + 4], 0
lea eax, [esp + 4]
push eax
push dword [esp + 0x424]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x47a912
lea eax, [esp + 8]
push eax
push dword [esp + 8]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x47a92a
mov eax, dword [esp + 4]
test eax, eax
je 0x47a912
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
xor al, al
pop edi
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.00455217
add esp, 0x418
ret
lea edx, [esp + 8]
push esi
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x47a932
sub edx, esi
lea eax, [esp + 0xc]
sar edx, 1
mov ecx, edi
push edx
push eax
call fcn.004069d0
mov eax, dword [esp + 8]
pop esi
test eax, eax
je 0x47a95e
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [esp + 0x418]
mov al, 1
pop edi
xor ecx, esp
call fcn.00455217
add esp, 0x418
ret

Function at 0x47a980
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x4a8068]
xor eax, esp
mov dword [esp + 0x114], eax
push 0x110
lea eax, [esp + 8]
mov dword [esp + 4], 0x114
push 0
push eax
call fcn.00457590
add esp, 0xc
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x47a9e7
mov eax, dword [esp + 4]
cmp eax, 5
ja 0x47a9d0
jne 0x47a9e7
cmp dword [esp + 8], 0
jbe 0x47a9e7
mov al, 1
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.00455217
add esp, 0x118
ret
mov ecx, dword [esp + 0x114]
xor al, al
xor ecx, esp
call fcn.00455217
add esp, 0x118
ret

Function at 0x47aa00
Capabilities:
Get session user name

Disassembly:
sub esp, 0x214
mov eax, dword [0x4a8068]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
mov esi, ecx
mov dword [esi], 0
cmp dword [0x4a89d0], 0
jne 0x47aa82
push 0x20a
lea eax, [esp + 0xc]
push 0
push eax
call fcn.00457590
add esp, 0xc
mov dword [esp + 4], 0x104
lea eax, [esp + 4]
push eax
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
xor eax, eax
lea ecx, [esp + 8]
mov word [esp + 0x20e], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47aa63
sub ecx, edx
lea eax, [esp + 8]
sar ecx, 1
push ecx
push eax
mov ecx, 0x4a89c0
call fcn.004069d0
mov ecx, dword [esp + 0x214]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00455217
add esp, 0x214
ret
Function at 0x47ab30
Capabilities:
Get session user name

Disassembly:
push ebp
lea ebp, [esp - 0x210]
sub esp, 0x210
push 0xffffffffffffffff
push 0x4845a8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x4a8068]
xor eax, ebp
mov dword [ebp + 0x20c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [0x4aa3c0]
test eax, eax
jle 0x47ab81
inc eax
mov dword [0x4aa3c0], eax
mov al, 1
jmp 0x47ac73
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x10], 0
xor bh, bh
mov dword [ebp - 0x14], 0
call fcn.0041a9c0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x18]
call fcn.0041b5f0
mov bl, al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0041aa40
test bl, bl
je 0x47ac63
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x47ac63
push str.ImpersonateLoggedOnUser
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push dword [ebp - 0x10]
call eax
test eax, eax
je 0x47ac5c
inc dword [0x4aa3c0]
mov eax, dword [edi]
test eax, eax
je 0x47ac06
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
mov bh, 1
mov dword [edi], eax
cmp dword [0x4a89e8], 0
mov dword [ebp - 0x10], 0
jne 0x47ac5c
push 0x20a
lea eax, [ebp]
push 0
push eax
call fcn.00457590
add esp, 0xc
mov dword [ebp - 0x14], 0x104
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
xor eax, eax
mov ecx, 0x4a89d8
mov word [ebp + 0x206], ax
lea eax, [ebp]
push eax
call fcn.0040bbc0
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x47ac71
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bh
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x20c]
xor ecx, ebp
call fcn.00455217
lea esp, [ebp + 0x210]
pop ebp
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.004063b0
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.0040634b
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.00406205
add esp, 0x10
push edi
call fcn.00405d46
push ebx
call fcn.0040602a
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.004064d4
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.004067de
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.0040677c
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.004064d4
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.004064d4
add esp, 0x310
ret
mov ecx, dword [esp + 0x30c]
xor ecx, esp
xor al, al
call fcn.004064d4
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 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 [0x424265], 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 [0x424267], 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 [0x424266]
lea eax, [esp + 7]
push eax
mov eax, dword [0x424280]
push ecx
mov ecx, dword [0x42426c]
lea edx, [esp + 0x10]
push edx
push eax
push ecx
call fcn.00401140
movzx eax, byte [0x424266]
lea edx, [esp + 0x1b]
push edx
mov edx, dword [0x42429c]
push eax
mov eax, dword [0x424260]
lea ecx, [esp + 0x22c]
push ecx
push edx
push eax
call fcn.00401140
add esp, 0x28
cmp byte [0x424264], 0
jne 0x401dc4
call fcn.00401640
mov al, byte [esp + 7]
pop ebx
mov ecx, dword [esp + 0x310]
xor ecx, esp
call fcn.004064d4
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.004064d4
add esp, 0x314
ret
mov ecx, dword [esp + 0x314]
mov al, bl
pop ebx
xor ecx, esp
call fcn.004064d4
add esp, 0x314
ret