joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43fcae
Capabilities:
Encrypt data using dpapi

Disassembly:
push esi
push edi
push 0x46b5d8
push str.AdvApi32.dll
call main
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, eax
test esi, esi
js 0x43fcf1
push str.SystemFunction040
push dword [0x46b5d8]
call edi
push str.SystemFunction041
push dword [0x46b5d8]
mov dword [0x46b5e0], eax
call edi
mov dword [0x46b5e4], eax
jmp 0x43fcf6
mov eax, dword [0x46b5e4]
cmp dword [0x46b5e0], 0
je 0x43fd07
test eax, eax
jne 0x43fdae
push 0x46b5dc
push str.Crypt32.dll
call main
mov esi, eax
test esi, esi
js 0x43fdb8
push str.CryptProtectMemory
push dword [0x46b5dc]
call edi
cmp dword [0x46b5e0], 0
mov dword [0x46b5e8], eax
jne 0x43fd6c
test eax, eax
jne 0x43fd6c
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x43fd56
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x43fd5d
mov esi, 0x80004005
push esi
push 0x28
push str.cryputil.cpp
call fcn.00403821
jmp 0x43fdb8
push str.CryptUnprotectMemory
push dword [0x46b5dc]
call edi
cmp dword [0x46b5e4], 0
mov dword [0x46b5ec], eax
jne 0x43fdae
test eax, eax
jne 0x43fdae
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x43fda2
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x43fda9
mov esi, 0x80004005
push esi
push 0x2d
jmp 0x43fd60
mov dword [0x46b5f0], 1
pop edi
mov eax, esi
pop esi
ret

Function at 0x44998c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x44999b
pop dword [ebp - 0x30]
mov eax, 0xdcbfcde9
sub eax, 0xdc7b344e
sub dword [ebp - 0x30], eax
push 0x40
push 0x1000
push 0x4d56a
push 0
mov eax, 0x42ea1308
sub eax, 0x42a5604c
add eax, dword [ebp - 0x30]
call dword [eax]
mov ecx, 0x79fab29f
sub ecx, 0x79fa751f
mov esi, eax
mov edx, 0x8e1e9ace
sub edx, 0x8dd61cce
add edx, dword [ebp - 0x30]
mov edi, 0xdb7d29b0
sub edi, 0x53287cf0
sub dword [ebp - 0x20], 0xf7e17166
mov ebx, dword [edx]
sub dword [ebp - 0x10], ecx
add ebx, edi
xor dword [ebp - 0x24], edx
mov dword [esi], ebx
sub dword [ebp - 0x2c], ecx
add esi, 4
add edx, 0xd0c70ec
add edx, 0xf2f38f18
loop 0x4499fa
add eax, 0xfbd1fa2
sub eax, 0xfbc36cf
xor ebx, ebx
add ebx, eax
add eax, 0x32cfd280
sub eax, 0x32cfd27b
mov ecx, 0x836efdf7
add ecx, 0x7cd10209
add ecx, dword [ebp - 0x30]
call ebx
leave
ret
Function at 0x402059
Capabilities:
Get common file path

Disassembly:
push 0x2a4
mov eax, 0x4ccd4e
call fcn.0044dabe
xor eax, eax
push 0x208
mov word [ebp - 0x220], ax
xor esi, esi
lea eax, [ebp - 0x21e]
push esi
push eax
call fcn.00447b70
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
push esi
push esi
push 0x28
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmp eax, esi
jge 0x4020a6
xor al, al
call fcn.0044db41
ret
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x274]
push eax
call fcn.00404c84
lea eax, [ebp - 0x2ac]
push str.Contacts
push eax
mov dword [ebp - 4], esi
call fcn.0041d00d
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x258]
push eax
xor ebx, ebx
lea eax, [ebp - 0x274]
inc ebx
push eax
mov byte [ebp - 4], bl
call fcn.00404cc7
push ebx
xor edi, edi
lea esi, [ebp - 0x2ac]
mov byte [ebp - 4], 3
call fcn.00401198
lea eax, [ebp - 0x290]
push str.Searches
push eax
call fcn.0041d00d
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x274]
push eax
mov byte [ebp - 4], 4
call fcn.00404cc7
push ebx
lea esi, [ebp - 0x290]
mov byte [ebp - 4], 6
call fcn.00401198
lea eax, [ebp - 0x258]
call fcn.0041e4e3
test al, al
jne 0x40218e
cmp dword [ebp - 0x244], 8
mov ecx, dword [ebp - 0x258]
jae 0x40215a
lea ecx, [ebp - 0x258]
call fcn.0041e53b
test al, al
jne 0x40218e
push ebx
xor edi, edi
lea esi, [ebp - 0x23c]
call fcn.00401198
push ebx
lea esi, [ebp - 0x258]
call fcn.00401198
push ebx
lea esi, [ebp - 0x274]
call fcn.00401198
jmp 0x40209e
lea eax, [ebp - 0x23c]
call fcn.0041e4e3
test al, al
jne 0x4021f2
cmp dword [ebp - 0x228], 8
mov ecx, dword [ebp - 0x23c]
jae 0x4021b2
lea ecx, [ebp - 0x23c]
call fcn.0041e53b
test al, al
jne 0x4021f2
mov byte [ebp - 0x2ad], al
push ebx
xor edi, edi
lea esi, [ebp - 0x23c]
call fcn.00401198
push ebx
lea esi, [ebp - 0x258]
call fcn.00401198
push ebx
lea esi, [ebp - 0x274]
call fcn.00401198
mov al, byte [ebp - 0x2ad]
jmp 0x4020a0
mov byte [ebp - 0x2ad], bl
jmp 0x4021c1

Function at 0x402681
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov esi, 0x4ff434
push esi
push dword [ebp + 8]
call edi
test eax, eax
je 0x402744
cmp dword [0x4ff438], 4
jne 0x402744
push esi
push 1
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov ecx, dword [0x4ff46c]
test eax, eax
jne 0x4026d2
push str.Service_failed_to_stop_
call fcn.0040102f
pop ecx
push 3
pop eax
jmp 0x402746
push ebx
push str.Stopping_service...
call fcn.0040102f
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [esp], 0x3e8
call ebx
mov dword [0x4ff438], 4
jmp 0x402714
cmp dword [0x4ff438], 3
jne 0x40271e
push 0x4dfa50
call fcn.00447aa4
mov dword [esp], 0x3e8
call ebx
push esi
push dword [ebp + 8]
call edi
test eax, eax
jne 0x4026f8
push 0x4dfa54
call fcn.00447aa4
cmp dword [0x4ff438], 1
pop ecx
mov ecx, dword [0x4ff46c]
pop ebx
jne 0x4026c2
push 0x4dfa58
call fcn.0040102f
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x403b3b
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov edi, 0x8fffff0
mov al, byte [0x2ff845c6]
Function at 0x404e5f
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push esi
mov esi, ecx
test byte [esi + 0x40], 1
mov dword [esi], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
je 0x404e79
mov eax, dword [esi + 0x10]
push dword [eax]
call fcn.00447004
pop ecx
mov ecx, dword [esi + 0x10]
xor eax, eax
mov dword [ecx], eax
mov ecx, dword [esi + 0x20]
mov dword [ecx], eax
mov ecx, dword [esi + 0x30]
mov dword [ecx], eax
mov ecx, dword [esi + 0x14]
mov dword [ecx], eax
mov ecx, dword [esi + 0x24]
mov dword [ecx], eax
mov ecx, dword [esi + 0x34]
mov dword [ecx], eax
and dword [esi + 0x40], 0xfffffffe
mov dword [esi + 0x3c], eax
mov ecx, esi
pop esi
jmp fcn.004049f8

Function at 0x40901e
Capabilities:
Get common file path

Disassembly:
push 0x22c
mov eax, 0x4cc35b
call fcn.0044dabe
xor eax, eax
push 0x208
mov word [ebp - 0x21c], ax
xor esi, esi
lea eax, [ebp - 0x21a]
push esi
push eax
mov ebx, ecx
call fcn.00447b70
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push esi
push esi
push 0x23
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmp eax, esi
jge 0x409079
cmp dword [ebx + 0x14], 8
mov dword [ebx + 0x10], esi
jb 0x409070
mov ebx, dword [ebx]
xor eax, eax
mov word [ebx], ax
xor al, al
jmp 0x4090ca
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x238]
push eax
call fcn.00404c84
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x238]
mov ecx, ebx
mov dword [ebp - 4], esi
call fcn.00405528
or dword [ebp - 4], 0xffffffff
push 1
xor edi, edi
lea esi, [ebp - 0x238]
call fcn.00401198
mov esi, str.NVIDIAUpdatus_
push esi
call fcn.00447827
pop ecx
mov edi, eax
push esi
mov eax, ebx
call fcn.0040594f
mov al, 1
call fcn.0044db41
ret
Function at 0x40c92e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
push edi
mov edi, dword [ebp + 8]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor ecx, ecx
test eax, eax
jle 0x40c956
movzx edx, word [edi + ecx*2]
add dword [ebp - 4], edx
inc ecx
cmp ecx, eax
jl 0x40c94a
mov edx, dword [esi + 4]
mov ecx, dword [esi + 8]
push 0x20
pop edi
xor eax, eax
push ebx
mov ebx, edx
and ebx, dword [ebp - 4]
shr dword [ebp - 4], cl
sub edi, ecx
xor eax, ebx
test edi, edi
jg 0x40c962
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov ecx, dword [esi + 0xc]
mov esi, dword [ecx + eax*4]
pop ebx
jmp 0x40c990
push dword [ebp + 8]
call fcn.0040cd95
pop ecx
test al, al
jne 0x40c99c
mov esi, dword [esi + 0x24]
test esi, esi
jne 0x40c980
xor eax, eax
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x40c996

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

Disassembly:
cmp dword [eax + 0x14], 8
jb 0x41e4eb
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
ret
Function at 0x41f2bf
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4fa654]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x41f2dd
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathGetDriveNumberW]
cmp eax, 0xffffffff
je 0x41f33c
mov ecx, dword [0x4e5b5c]
mov dword [ebp - 0xc], ecx
mov ecx, dword [0x4e5b60]
push 0x100
mov dword [ebp - 8], ecx
add eax, 0x41
lea ecx, [ebp - 0x20c]
push ecx
mov word [ebp - 0xc], ax
xor eax, eax
lea ecx, [ebp - 0x210]
push ecx
push eax
push eax
push eax
push eax
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x41f33c
test byte [ebp - 0x210], 8
je 0x41f33c
mov al, 1
jmp 0x41f33e
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004466c5
leave
ret

Function at 0x420560
Capabilities:
Create thread

Disassembly:
push 0xcc
mov eax, 0x4ce284
call fcn.0044dabe
mov ebx, 0x4fd3b0
push ebx
push 0x11c
call fcn.00448e3d
xor edi, edi
pop ecx
pop ecx
cmp eax, edi
je 0x420598
push 0x54485245
mov esi, eax
call fcn.0041fdf3
mov dword [ebp - 0x30], eax
jmp 0x42059b
mov dword [ebp - 0x30], edi
mov esi, dword [ebp - 0x30]
cmp esi, edi
jne 0x4205b7
xor ecx, ecx
push str.Allocate_memory_for_CreateThread_failed_
inc ecx
call fcn.0042181f
pop ecx
xor eax, eax
jmp 0x4206cd
push ebx
push 8
call fcn.00448e3d
mov ebx, eax
pop ecx
pop ecx
cmp ebx, edi
jne 0x4205dc
xor ecx, ecx
push str.Failed_to_allocate_memory_in_CreateThread
inc ecx
call fcn.0042181f
pop ecx
call fcn.004206d3
jmp 0x4205b0
mov eax, dword [ebp + 0xc]
push 0xc
mov dword [ebx + 4], eax
mov eax, dword [ebp + 8]
pop esi
push esi
mov dword [ebx], eax
lea eax, [ebp - 0x40]
push edi
push eax
call fcn.00447b70
add esp, 0xc
lea eax, [ebp - 0x34]
push eax
push edi
push ebx
push 0x420542
lea eax, [ebp - 0x40]
push edi
push eax
mov dword [ebp - 0x40], esi
call fcn.0044c529
mov ecx, dword [ebp - 0x30]
add esp, 0x18
mov dword [ecx + 8], eax
cmp eax, edi
jne 0x4206c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea eax, [ebp - 0xd8]
push eax
call fcn.00404d9c
lea eax, [ebp - 0xd8]
push str.::CreateThread_failed__err_
push eax
mov dword [ebp - 4], edi
call fcn.00405e4c
pop ecx
pop ecx
push esi
lea eax, [ebp - 0xd8]
push eax
call fcn.0040aae0
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0xd8]
call fcn.00404d5e
mov byte [ebp - 4], 1
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x420676
lea eax, [ebp - 0x2c]
xor ecx, ecx
push eax
inc ecx
call fcn.0042181f
pop ecx
push 1
xor edi, edi
lea esi, [ebp - 0x2c]
call fcn.00401198
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x88]
call fcn.00404e06
lea eax, [ebp - 0x88]
push eax
mov dword [ebp - 0x88], vtable.std::ios_base.0
call fcn.00445c6f
mov esi, dword [ebp - 0x30]
pop ecx
call fcn.004206d3
push ebx
call fcn.00447004
jmp 0x4205af
mov eax, dword [ebp - 0x34]
mov dword [ecx + 4], eax
mov eax, ecx
call fcn.0044db41
ret
Function at 0x429225
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov edx, dword [esi + 0x3c]
test edx, edx
je 0x429256
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push edx
sub eax, ecx
push 1
push eax
push ecx
call fcn.00448990
add esp, 0x10
cmp eax, 1
jne 0x429252
mov al, al
jmp 0x429258
mov byte [esi + 0x18], 1
xor al, al
pop esi
pop ebp
ret 4

Function at 0x4296d6
Capabilities:
Check for peb ntglobalflag flag
Read http header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4cf276
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x4fa654]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push esi
push edi
mov eax, dword [0x4fa654]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
xor ebx, ebx
push ebx
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x18]
push ecx
push ebx
push ebx
push 0x16
mov esi, edx
push eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], ebx
call edi
cmp eax, ebx
jne 0x4297da
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x4297da
push str.WinHttpQueryHeaders_failed:
lea eax, [esp + 0x28]
push eax
call fcn.00404c84
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x2c]
mov ecx, esi
mov dword [esp + 0x90], ebx
call fcn.00405528
or dword [esp + 0x88], 0xffffffff
push 1
xor edi, edi
lea esi, [esp + 0x28]
call fcn.00401198
lea eax, [esp + 0x40]
push eax
call fcn.00420059
pop ecx
mov esi, dword [esp + 0x18]
push ebx
push eax
inc edi
or eax, 0xffffffff
mov dword [esp + 0x90], edi
call fcn.004058b2
push edi
xor edi, edi
lea esi, [esp + 0x44]
call fcn.00401198
xor al, al
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.004466c5
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x14]
shr eax, 1
lea esi, [esp + 0x24]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call fcn.0041715a
push ebx
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x90], 2
push dword [esp + 0x2c]
push ebx
push 0x16
push dword [esp + 0x34]
call edi
test eax, eax
jne 0x42988f
push str.WinHttpQueryHeaders_failed:
lea eax, [esp + 0x44]
push eax
call fcn.00404c84
mov ecx, dword [esp + 0x18]
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x48]
mov byte [esp + 0x90], 3
call fcn.00405528
push 1
xor edi, edi
lea esi, [esp + 0x44]
mov byte [esp + 0x8c], 2
call fcn.00401198
lea eax, [esp + 0x5c]
push eax
call fcn.00420059
pop ecx
mov esi, dword [esp + 0x18]
push ebx
push eax
or eax, 0xffffffff
mov byte [esp + 0x90], 4
call fcn.004058b2
push 1
lea esi, [esp + 0x60]
call fcn.00401198
lea esi, [esp + 0x24]
call fcn.0041a6ce
mov al, bl
jmp 0x4297b9
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
mov ecx, esi
call fcn.00416b95
cmp dword [esi + 0x14], 8
jb 0x4298a6
mov esi, dword [esi]
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x24]
sar eax, 1
add eax, eax
push eax
push dword [esp + 0x28]
push esi
call fcn.00447440
add esp, 0xc
mov bl, 1
jmp 0x42987f
Function at 0x401cf0
Capabilities:
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x417014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x14]
push esi
mov dword [ebp - 0x10], eax
xor esi, esi
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0xc], eax
test ebx, ebx
je 0x401de5
push edi
push esi
call dword [sym.imp.kernel32.dll_SetLastError]
push esi
push 0x190000
push 3
push esi
push 3
push 0xc0000000
push ebx
call dword [sym.imp.kernel32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x401d80
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0xe7
jne 0x401dd0
push dword [ebp + 0x20]
push ebx
call dword [sym.imp.kernel32.dll_WaitNamedPipeW]
test eax, eax
je 0x401dd0
push esi
push 0x190000
push 3
push esi
push 3
push 0xc0000000
push ebx
call dword [sym.imp.kernel32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x401dd0
push edi
call dword [sym.imp.kernel32.dll_GetFileType]
cmp eax, 3
jne 0x401dc9
push 0
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 2
push eax
push edi
call dword [sym.imp.kernel32.dll_SetNamedPipeHandleState]
test eax, eax
je 0x401dc4
push 0
push dword [ebp - 0xc]
push 0x40c
push dword [ebp - 0x10]
push 0x410
push dword [ebp - 0x14]
push edi
call dword [sym.imp.kernel32.dll_TransactNamedPipe]
mov esi, eax
cmp edi, 0xffffffff
je 0x401dd0
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410430
mov esp, ebp
pop ebp
ret 0x20
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00410430
mov esp, ebp
pop ebp
ret 0x20
Function at 0x402540
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402559
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402594
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x402590
lea ebx, [ebx]
cmp esi, eax
jae 0x402594
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402580
cmp esi, eax
jb 0x40259a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x403ce0
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x804]
sub esp, 0x804
push 0xffffffffffffffff
push 0x43b720
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x44dc1c]
xor eax, ebp
mov dword [ebp + 0x800], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
xor esi, esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], esi
lea eax, [ebp - 0x14]
push eax
push esi
push esi
push 0x17
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
cmp eax, esi
je 0x403d60
push str.Get_Start_Program_Folder_Location_Fail___
mov ecx, 0x45a600
call fcn.00412540
add esp, 4
mov dword [ebp - 0x1c], 3
push 0x4499d0
lea ecx, [ebp - 0x1c]
push ecx
call fcn.0042623c
lea edx, [ebp]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x403d99
push str.Get_Start_Program__Folder_Path_Fail___
mov ecx, 0x45a600
call fcn.00412540
add esp, 4
mov dword [ebp - 0x18], 3
push 0x4499d0
lea ecx, [ebp - 0x18]
push ecx
call fcn.0042623c
lea eax, [ebp]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x403da0
sub eax, edx
sar eax, 1
cmp word [ebp + eax*2 - 2], 0x5c
jne 0x403dd4
lea eax, [ebp]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x403dc0
sub eax, edx
sar eax, 1
mov word [ebp + eax*2 - 2], si
lea eax, [ebp]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x403de0
sub eax, edx
sar eax, 1
je 0x403e05
lea edx, [ebp]
push edx
push 0x400
push edi
call fcn.004245b9
add esp, 0xc
jmp 0x403e17
push str.Get_StartMenu__Folder_Path_Fail___
mov ecx, 0x45a600
call fcn.00412540
add esp, 4
mov dword [ebp - 4], 0xffffffff
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 + 0x800]
xor ecx, ebp
call fcn.0042397a
add ebp, 0x804
mov esp, ebp
pop ebp
ret
Function at 0x403e70
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
lea ebp, [esp - 0x1010]
mov eax, 0x1010
call fcn.00426290
push 0xffffffffffffffff
push 0x43b6f8
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x44dc1c]
xor eax, ebp
mov dword [ebp + 0x100c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
xor ebx, ebx
xor esi, esi
mov dword [ebp - 0x14], esi
mov dword [ebp], ebx
mov byte [ebp + 4], bl
mov dword [ebp + 8], ebx
push 0x800
push ebx
lea eax, [ebp + 0xc]
push eax
call fcn.004260b0
add esp, 0xc
mov dword [ebp - 4], ebx
mov byte [ebp - 4], 1
push 0x800
push ebx
lea ecx, [ebp + 0x80c]
push ecx
call fcn.004260b0
add esp, 0xc
push ebx
push 0x26
lea edx, [ebp + 0x80c]
push edx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x403f1c
lea eax, [ebp + 0x80c]
push eax
push 0x400
push edi
call fcn.004245b9
add esp, 0xc
jmp 0x403f64
push 1
push 0x800
lea ecx, [ebp + 0x80c]
push ecx
push str.ProgramFilesDir
push 0x80000002
mov edx, str.SoftwareMicrosoftWindowsCurrentVersion
call fcn.00412d40
add esp, 0x14
test eax, eax
jne 0x403f5c
lea edx, [ebp + 0x80c]
push edx
push 0x400
push edi
call fcn.004245b9
add esp, 0xc
jmp 0x403f64
mov esi, 1
mov dword [ebp - 0x14], esi
lea eax, [ebp + 0x80c]
push eax
push str.Program_Files_path:__s_
mov ecx, 0x45a600
call fcn.00412540
add esp, 8
mov dword [ebp - 4], ebx
jmp 0x403fa6
mov dword [ebp - 4], 0xffffffff
cmp byte [ebp + 4], bl
je 0x403fc0
mov eax, dword [ebp]
cmp eax, ebx
je 0x403fc0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x100c]
xor ecx, ebp
call fcn.0042397a
add ebp, 0x1010
mov esp, ebp
pop ebp
ret
Function at 0x403ff0
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x804]
sub esp, 0x804
push 0xffffffffffffffff
push 0x43b5a0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x44dc1c]
xor eax, ebp
mov dword [ebp + 0x800], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x80c]
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
jne 0x40404f
lea eax, [ebx + 0x57]
jmp 0x4040e8
push 0x800
lea eax, [ebp]
push ebx
push eax
call fcn.004260b0
add esp, 0xc
call fcn.0041f6af
mov eax, dword [eax + 8]
push 0x400
lea ecx, [ebp]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x404084
mov eax, 1
jmp 0x4040e8
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
cmp edi, ebx
je 0x40407d
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
mov dword [esi], ebx
mov ecx, dword [ebp - 0x1c]
push edi
push ecx
lea edx, [ebp]
push edx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40407d
cmp esi, ebx
je 0x40407d
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x18]
push ecx
push str.StringFileInfo040004e4FileVersion
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40407d
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x20]
push edx
push eax
push ecx
call fcn.004245b9
add esp, 0xc
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 + 0x800]
xor ecx, ebp
call fcn.0042397a
add ebp, 0x804
mov esp, ebp
pop ebp
ret 4
Function at 0x404a40
Capabilities:
Identify system language via api

Disassembly:
push 0xffffffffffffffff
push 0x43c0e8
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x44dc1c]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
xor edx, edx
call section..text
test eax, eax
je 0x404a79
mov word [esi + 4], ax
mov word [esi + 2], ax
mov word [esi], ax
jmp 0x404af4
call dword [sym.imp.KERNEL32.dll_GetThreadLocale]
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
push 0x4415b0
lea ecx, [esp + 8]
mov word [esi + 2], ax
call fcn.004025b0
push 0xd2
mov dword [esp + 0x14], 0
call fcn.004199ae
test eax, eax
je 0x404abf
push 0xd2
push eax
lea ecx, [esp + 0xc]
call fcn.00402430
mov edx, dword [esp + 4]
call section..text
mov word [esi + 4], ax
mov dword [esp + 0x10], 0xffffffff
mov eax, dword [esp + 4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404af4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
movzx ecx, word [esi]
push ecx
push 0x442020
mov ecx, 0x45a600
call fcn.00412540
movzx edx, word [esi + 2]
push edx
push str.Default_UI_Language:_0x_04x
mov ecx, 0x45a600
call fcn.00412540
movzx eax, word [esi + 4]
push eax
push str.Current_Language:_0x_04x
mov ecx, 0x45a600
call fcn.00412540
add esp, 0x18
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
add esp, 0x10
ret