joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41b394
Capabilities:
Get file attributes
Set file attributes

Disassembly:
mov eax, 0x41fca8
call fcn.0041f420
sub esp, 0x260
mov eax, dword [0x42ad30]
push esi
push edi
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
mov dword [ebp - 0x14], eax
cmp dword [ebp + 8], 0
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov byte [ebp - 4], 1
jne 0x41b3c9
xor eax, eax
jmp 0x41b3ce
push dword [ebp + 8]
call edi
push dword [ebp + 8]
lea ecx, [ebp - 0x14]
push eax
call fcn.0041c56c
mov esi, 0x42ad74
mov eax, esi
test eax, eax
je 0x41b3e8
push esi
call edi
push esi
push eax
lea ecx, [ebp - 0x14]
call fcn.0041c5a3
lea eax, [ebp - 0x26c]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x18], eax
jne 0x41b411
xor esi, esi
jmp 0x41b553
mov esi, dword [sym.imp.MSVCRT.dll_wcscmp]
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll__wcsicmp]
lea eax, [ebp - 0x240]
push 0x42a7f4
push eax
call esi
pop ecx
test eax, eax
pop ecx
je 0x41b52e
lea eax, [ebp - 0x240]
push 0x42a7ec
push eax
call esi
pop ecx
test eax, eax
pop ecx
je 0x41b52e
cmp dword [ebp + 0xc], 0
jne 0x41b46c
lea eax, [ebp - 0x240]
push str.desktop.ini
push eax
call ebx
pop ecx
test eax, eax
pop ecx
je 0x41b52e
xor eax, eax
cmp dword [ebp + 8], eax
je 0x41b478
push dword [ebp + 8]
call edi
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
push eax
call fcn.0041c56c
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x10]
push eax
push 1
mov dword [ebp - 0x1c], 0x5c
call fcn.0041c5a3
lea eax, [ebp - 0x240]
test eax, eax
je 0x41b4ac
lea eax, [ebp - 0x240]
push eax
call edi
lea ecx, [ebp - 0x240]
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.0041c5a3
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x41b4d5
and al, 0xfe
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test byte [ebp - 0x26c], 0x10
je 0x41b4fa
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 0x10]
call fcn.0041b394
add esp, 0xc
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x41b52e
cmp dword [ebp + 0x10], 0
je 0x41b525
lea eax, [ebp - 0x240]
push str.index.dat
push eax
call ebx
pop ecx
test eax, eax
pop ecx
jne 0x41b525
lea eax, [ebp - 0x240]
push eax
push dword [ebp + 8]
call fcn.0041b57b
pop ecx
pop ecx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x26c]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41b41e
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FindClose]
push 1
pop esi
pop ebx
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0041c540
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0041c540
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x41b57b
Capabilities:
Get file size
Write file on windows

Disassembly:
mov eax, 0x41fcbc
call fcn.0041f420
mov eax, 0x271c
call fcn.0041f330
mov eax, dword [0x42ad30]
push ebx
push esi
push edi
mov dword [ebp - 0x10], eax
mov edi, 0x2710
xor ebx, ebx
push edi
lea eax, [ebp - 0x2728]
push ebx
push eax
mov dword [ebp - 4], ebx
call sub.MSVCRT.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
add esp, 0xc
cmp dword [ebp + 8], ebx
jne 0x41b5c4
xor eax, eax
jmp 0x41b5c9
push dword [ebp + 8]
call esi
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
push eax
call fcn.0041c56c
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x10]
push eax
push 1
mov dword [ebp - 0x14], 0x5c
call fcn.0041c5a3
cmp dword [ebp + 0xc], ebx
jne 0x41b5f3
xor eax, eax
jmp 0x41b5f8
push dword [ebp + 0xc]
call esi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
push eax
call fcn.0041c5a3
push ebx
push 0x80
push 3
push ebx
push 3
push 0x40000000
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x41b67f
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
push ebx
push 0x40
mov esi, eax
push dword [ebp + 8]
sub esi, 0x40
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp esi, ebx
jbe 0x41b673
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0x18]
cmp esi, edi
push 0
push eax
jbe 0x41b666
lea eax, [ebp - 0x2728]
push edi
push eax
push dword [ebp + 8]
call ebx
sub esi, edi
jne 0x41b649
jmp 0x41b673
lea eax, [ebp - 0x2728]
push esi
push eax
push dword [ebp + 8]
call ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0041c540
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x41b7d0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4008
call fcn.0041f330
and word [ebp - 0x4008], 0
push edi
mov ecx, 0xfff
xor eax, eax
lea edi, [ebp - 0x4006]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x41b87f
cmp eax, 0x3fff
ja 0x41b87f
lea ecx, [ebp - 0x4008]
push ecx
push eax
push 0
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x41b87f
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x4008]
push 0x427e60
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x41b87f
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
movzx ecx, word [eax + 0xc]
push ecx
mov ecx, dword [eax + 0xc]
shr ecx, 0x10
push ecx
movzx ecx, word [eax + 8]
mov eax, dword [eax + 8]
push ecx
shr eax, 0x10
push eax
push str._d._d._d._d
push esi
push edi
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x1c
and word [edi + esi*2 - 2], 0
push 1
pop eax
pop esi
jmp 0x41b881
xor eax, eax
pop edi
leave
ret
Function at 0x41ba15
Capabilities:
Create directory

Disassembly:
push esi
push 0
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
test esi, esi
jne 0x41ba3a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x41ba3a
push 1
pop eax
pop esi
ret
mov eax, esi
pop esi
ret

Function at 0x41c015
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
and word [ebp - 0x210], 0
push ebx
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x20e]
push dword [ebp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp + 0x10]
push str.CLSID_sInprocServer32
push 0x103
mov dword [ebp - 8], 1
lea edi, [eax + eax]
lea eax, [ebp - 0x210]
push eax
mov dword [ebp - 4], edi
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
lea eax, [ebp - 4]
mov esi, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov ebx, SysReAllocStringLen
push eax
lea eax, [ebp - 8]
push dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x210]
push str.CodeBase
push eax
push ebx
call esi
test eax, eax
je 0x41c0e6
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x210]
push 0
push eax
push ebx
call esi
test eax, eax
je 0x41c0e6
push dword [ebp + 8]
lea eax, [ebp - 0x210]
push str.CLSID_sLocalServer32
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
lea eax, [ebp - 8]
push dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x210]
push 0
push eax
push ebx
call esi
test eax, eax
jne 0x41c0eb
push 1
pop eax
jmp 0x41c167
and word [ebp - 0x418], 0
push dword [ebp + 8]
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x416]
push str.CLSID_sTreatAs
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x210]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x208
push eax
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x210]
push 0
push eax
push ebx
call esi
test eax, eax
jne 0x41c15e
push dword [ebp + 0x10]
lea eax, [ebp - 0x418]
push dword [ebp + 0xc]
push eax
call fcn.0041c015
add esp, 0xc
jmp 0x41c167
mov eax, dword [ebp + 0xc]
and word [eax], 0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41d67a
Capabilities:
Hash data with md5

Disassembly:
push esi
xor eax, eax
lea esi, [ecx + 0x5c]
push 0x40
push eax
push esi
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x14], eax
mov dword [ecx + 4], 0x67452301
mov dword [ecx + 8], 0xefcdab89
mov dword [ecx + 0xc], 0x98badcfe
mov dword [ecx + 0x10], 0x10325476
call fcn.0041e121
mov byte [esi], 0x80
pop esi
ret

Function at 0x41ebf5
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor edx, edx
mov ecx, 0x42e180
push 8
mov eax, edx
pop esi
test al, 1
je 0x41ec0f
shr eax, 1
xor eax, 0xedb88320
jmp 0x41ec11
shr eax, 1
dec esi
jne 0x41ec02
mov dword [ecx], eax
add ecx, 4
inc edx
cmp ecx, 0x42e580
jl 0x41ebfd
pop esi
ret
Function at 0x41edd2
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 8]
mov ecx, dword [esp + 4]
or eax, 0xffffffff
test edx, edx
jle 0x41ee02
push esi
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42b0c4]
xor eax, esi
inc ecx
dec edx
jne 0x41ede3
pop edi
pop esi
not eax
ret
Function at 0x401cc0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401cd7
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401d08
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x401d04
cmp esi, eax
jae 0x401d08
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x401cf4
cmp esi, eax
jb 0x401d0e
pop esi
pop edi
xor eax, eax
pop ebp
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret
Function at 0x402790
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42c150
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x43701c]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00402930
push 0
lea ecx, [esp + 0x10]
call fcn.00428311
lea edi, [esi + 8]
push eax
mov ecx, edi
mov dword [esp + 0x3c], 0
call fcn.00428b76
lea ecx, [esp + 0xc]
mov dword [esp + 0x38], 0xffffffff
call fcn.004283aa
push 0
lea ecx, [esp + 0x20]
call fcn.00428311
push eax
push str.root
mov ecx, edi
mov dword [esp + 0x40], 1
call fcn.00428ec6
mov ecx, eax
call fcn.00428b76
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004283aa
mov byte [esi], 1
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x30
ret

Function at 0x402db0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42c877
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x43701c]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
xor ebx, ebx
mov byte [esi], bl
mov dword [esi + 4], ebx
lea ecx, [esi + 8]
mov dword [esp + 0x14], ebx
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
mov dword [esi + 0x24], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret 4

Function at 0x402f60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42d416
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x43701c]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
lea ecx, [esi + 0x30]
mov dword [esp + 0x14], 1
call fcn.004081b0
xor ebx, ebx
mov byte [esp + 0x14], bl
mov eax, dword [esi + 0x24]
cmp eax, ebx
je 0x402fbe
mov edx, dword [esp + 0x1c]
mov ecx, dword [esi + 0x28]
push edx
push ecx
push eax
call fcn.00417350
mov eax, dword [esi + 0x24]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 0x10
lea ecx, [esi + 0x10]
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esp + 0x14], 0xffffffff
call fcn.004283aa
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret 4
Function at 0x403af0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x42d312
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x43701c]
xor eax, esp
mov dword [esp + 0x5c], eax
push ebx
push esi
push edi
mov eax, dword [0x43701c]
xor eax, esp
push eax
lea eax, [esp + 0x74]
mov dword fs:[0], eax
lea eax, [esp + 0x30]
push eax
mov esi, ecx
call fcn.00402db0
mov cl, byte [esp + 0x84]
xor ebx, ebx
mov dword [esp + 0x7c], ebx
mov byte [esp + 0x30], cl
push str.array__
lea ecx, [esp + 0x3c]
call dword [0x42f10c]
mov eax, dword [esi + 0x24]
add esi, 0x20
cmp eax, ebx
mov dword [esp + 0x54], ebx
je 0x403be9
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x403be9
cmp byte [esp + 0x84], bl
je 0x403bb5
push 6
lea ecx, [esp + 0x20]
call fcn.00428311
mov edi, eax
mov eax, esi
mov byte [esp + 0x7c], 1
call fcn.00406c00
add eax, 4
mov eax, dword [eax]
push edi
mov ecx, eax
call fcn.00428b76
lea ecx, [esp + 0x1c]
mov byte [esp + 0x7c], bl
call fcn.004283aa
mov edi, dword [esi + 8]
cmp dword [esi + 4], edi
mov ebx, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
jbe 0x403bc5
call ebx
lea eax, [edi - 0x3c]
cmp eax, dword [esi + 8]
mov dword [esp + 0x18], edi
ja 0x403bd6
cmp eax, dword [esi + 4]
jae 0x403bd8
call ebx
add edi, 0xffffffc4
cmp edi, dword [esi + 8]
jb 0x403be2
call ebx
mov ecx, dword [edi + 4]
mov dword [esp + 0x34], ecx
lea edx, [esp + 0x30]
push edx
call fcn.00406c50
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x80], 0xffffffff
call fcn.004032e0
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.00426a3b
add esp, 0x70
ret 4

Function at 0x403fb0
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
sub esp, 0x204
mov eax, dword [0x43701c]
xor eax, esp
mov dword [esp + 0x200], eax
test esi, esi
push ebp
mov ebp, dword [esp + 0x20c]
je 0x40404a
test edi, edi
je 0x40404a
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40404a
test al, 0x10
jne 0x40404a
push ebx
push 0x1fe
lea eax, [esp + 0xe]
push 0
push eax
mov ebx, 0x80004005
mov word [esp + 0x14], 0
call fcn.00426e3a
add esp, 0xc
push esi
push 0x100
lea ecx, [esp + 0x10]
push ecx
push 0
push edi
push str.SPCfg
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x404031
lea edx, [esp + 8]
push edx
mov ecx, ebp
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
xor ebx, ebx
mov eax, ebx
pop ebx
pop ebp
mov ecx, dword [esp + 0x200]
xor ecx, esp
call fcn.00426a3b
add esp, 0x204
ret
mov ecx, dword [esp + 0x204]
pop ebp
xor ecx, esp
mov eax, 0x80004005
call fcn.00426a3b
add esp, 0x204
ret
Function at 0x4043c0
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
sub esp, 0x804
mov eax, dword [0x43701c]
xor eax, esp
mov dword [esp + 0x800], eax
test esi, esi
jne 0x4043f2
mov eax, 0x80004005
mov ecx, dword [esp + 0x800]
xor ecx, esp
call fcn.00426a3b
add esp, 0x804
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4043d8
test al, 0x10
jne 0x4043d8
push ebx
push 0x7fe
lea eax, [esp + 0xa]
push 0
push eax
mov ebx, 0x80004005
mov word [esp + 0x10], 0
call fcn.00426e3a
add esp, 0xc
push esi
push 0x400
lea ecx, [esp + 0xc]
push ecx
push 0
push str.SPRoot
push str.SPRoot
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x404475
lea edx, [esp + 4]
push edx
mov ecx, edi
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
mov eax, dword [edi + 0x14]
add eax, 0xffffffff
push eax
mov ecx, edi
call dword [sym.imp.MSVCP80.dll_public:_wchar_t____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator___unsigned_int_]
cmp word [eax], 0x5c
je 0x404473
push 0x42f688
mov ecx, edi
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::append_wchar_t_const__]
xor ebx, ebx
mov ecx, dword [esp + 0x804]
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.00426a3b
add esp, 0x804
ret

Function at 0x404550
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
sub esp, 0x804
mov eax, dword [0x43701c]
xor eax, esp
mov dword [esp + 0x800], eax
test esi, esi
je 0x4045ee
xor eax, eax
cmp eax, str.kxebase.dll
je 0x4045ee
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4045ee
test al, 0x10
jne 0x4045ee
push edi
push 0x7fe
lea ecx, [esp + 0xa]
push 0
push ecx
mov edi, 0x80004005
mov word [esp + 0x10], 0
call fcn.00426e3a
add esp, 0xc
push esi
push 0x400
lea edx, [esp + 0xc]
push edx
push 0
push str.kxebase.dll
push str.ProductInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x4045d6
lea eax, [esp + 4]
push eax
mov ecx, ebx
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
xor edi, edi
mov eax, edi
pop edi
mov ecx, dword [esp + 0x800]
xor ecx, esp
call fcn.00426a3b
add esp, 0x804
ret
mov ecx, dword [esp + 0x800]
xor ecx, esp
mov eax, 0x80004005
call fcn.00426a3b
add esp, 0x804
ret
Function at 0x404910
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push esi
mov esi, eax
xor eax, eax
test esi, esi
push edi
mov edi, ecx
je 0x40496a
push ebx
lea ecx, [ecx]
movzx ecx, byte [edi]
mov dx, ax
shr dx, 0xc
movzx edx, dl
mov ebx, ecx
shl eax, 4
shr ebx, 4
xor edx, ebx
xor ax, word [edx*2 + 0x42fb20]
and ecx, 0xf
movzx eax, ax
mov dx, ax
shr dx, 0xc
movzx edx, dl
shl eax, 4
xor edx, ecx
xor ax, word [edx*2 + 0x42fb20]
sub esi, 1
add edi, 1
test esi, esi
movzx eax, ax
jne 0x404920
pop ebx
pop edi
pop esi
ret
Function at 0x404cc0
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x42ccf9
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x43701c]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push ebp
push edi
mov eax, dword [0x43701c]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
xor eax, eax
test ecx, ecx
je 0x404de2
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
push ecx
mov dword [esi + 0x20], eax
lea ecx, [esp + 0x18]
mov dword [esi + 0x24], eax
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
push 0
lea ecx, [esp + 0x18]
mov dword [esp + 0x40], 0
call dword [sym.imp.MSVCP80.dll_public:_char____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator___unsigned_int_]
test eax, eax
je 0x404d58
cmp byte [eax], 0
mov ecx, eax
je 0x404d58
mov al, byte [ecx]
cmp al, 0x41
jl 0x404d50
cmp al, 0x5a
jg 0x404d50
add al, 0x20
mov byte [ecx], al
add ecx, 1
cmp byte [ecx], 0
jne 0x404d42
push 0
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP80.dll_public:_char____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator___unsigned_int_]
mov ebp, dword [esp + 0x28]
mov ecx, eax
mov eax, ebp
call fcn.00404910
cmp ebp, 0x25
movzx eax, ax
mov dword [esp + 0x10], eax
jbe 0x404d82
mov ebp, 0x25
push ebp
push 0
lea ecx, [esp + 0x1c]
lea ebx, [ebp + 2]
lea edi, [esi + 3]
call dword [sym.imp.MSVCP80.dll_public:_char____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator___unsigned_int_]
push eax
push edi
call sub.MSVCR80.dll_memcpy
mov cx, word [esp + 0x1c]
add esp, 0xc
test edi, edi
mov byte [esi], bl
mov word [esi + 1], cx
je 0x404dcb
test ebp, ebp
je 0x404dcb
xor eax, eax
test ebp, ebp
jbe 0x404dcb
jmp 0x404dc0
xor byte [eax + edi], 0x5a
add eax, 1
cmp eax, ebp
jb 0x404dc0
lea ecx, [esp + 0x14]
mov dword [esp + 0x3c], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, 1
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00426a3b
add esp, 0x30
ret
Function at 0x405130
Capabilities:
Read file via mapping

Disassembly:
push 0xffffffffffffffff
push 0x42d849
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x43701c]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov eax, dword [0x43701c]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 8]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
push str.Global_
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], 0
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
cmp dword [0x437740], 8
mov eax, dword [0x43772c]
jae 0x405195
mov eax, 0x43772c
push eax
lea ecx, [esp + 0xc]
call dword [0x42f0fc]
cmp dword [esp + 0x20], 8
mov eax, dword [esp + 0xc]
jae 0x4051af
lea eax, [esp + 0xc]
cmp dword [esi + 4], 0
jne 0x4051f2
push eax
push 0
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
test eax, eax
mov dword [esi], eax
je 0x4051eb
push 0x3fe0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
jne 0x4051ef
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
xor esi, esi
jmp 0x4051f7
mov dword [esi + 4], eax
mov esi, 1
lea ecx, [esp + 8]
mov dword [esp + 0x30], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00426a3b
add esp, 0x2c
ret

Function at 0x405230
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [eax + 4]
sub esp, 8
test eax, eax
push esi
push edi
jne 0x405244
pop edi
pop esi
add esp, 8
ret 4
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x18]
lea esi, [eax + 0x20]
lea edi, [esp + 0xc]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.004050a0
mov eax, dword [esp + 0xc]
add esp, 4
test eax, eax
je 0x40529d
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx + 0x2c]
mov dword [ebx], edx
mov edx, dword [ecx + 0x30]
mov dword [ebx + 4], edx
mov edx, dword [ecx + 0x34]
mov ecx, dword [ecx + 0x38]
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], ecx
xor ecx, ecx
xor byte [ecx + ebx], 0x7a
add ecx, 1
cmp ecx, 0x10
jb 0x405291
pop edi
pop esi
add esp, 8
ret 4