joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a130
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x576df1
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5d2020]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, dword [esp + 0x30]
xor esi, esi
mov dword [esp + 0x28], esi
push edi
mov dword [esp + 0x14], esi
call fcn.0040a270
lea eax, [esp + 0x20]
mov dword [esp + 0x2c], esi
mov ebx, 1
push eax
mov ecx, 0x5c4278
mov dword [esp + 0x18], ebx
call fcn.0040a270
mov esi, eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x30], ebx
push edi
push ecx
mov ebx, 0x5c3a94
call fcn.00404150
lea edx, [esp + 0x24]
push esi
push edx
mov ebx, eax
mov byte [esp + 0x40], 2
call fcn.00407c00
add esp, 0x18
mov byte [esp + 0x28], 3
call fcn.004042f0
mov byte [esp + 0x28], 2
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a1e0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x28], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a205
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x28], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a22a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x40a390
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x577a01
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebp
push esi
push edi
mov eax, dword [0x5d2020]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, dword [esp + 0x30]
xor esi, esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x18], esi
mov eax, dword [0x5dcd6c]
mov edx, dword [eax + 0xc]
mov ecx, 0x5dcd6c
call edx
add eax, 0x10
mov dword [edi], eax
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x14]
mov dword [esp + 0x28], esi
push eax
mov dword [esp + 0x1c], 1
call fcn.0040a270
mov dword [esp + 0x2c], 1
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x14]
call fcn.0040a4d0
mov byte [esp + 0x2c], 2
mov ebp, dword [esp + 0x14]
push 0x2e
push ebp
call dword [sym.imp.MSVCR80.dll_wcsrchr]
add esp, 0xc
cmp eax, esi
je 0x40a46d
sub eax, ebp
sar eax, 1
cmp eax, 0xffffffff
je 0x40a46d
lea ecx, [eax + 1]
lea esi, [esp + 0x1c]
lea edx, [esp + 0x10]
call fcn.00404130
mov byte [esp + 0x28], 3
call fcn.004042f0
mov byte [esp + 0x28], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a468
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.00406840
lea eax, [ebp - 0x10]
mov byte [esp + 0x28], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a48e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x28], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a4b3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x1c
ret
Function at 0x40ad90
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x577950
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push edi
mov eax, dword [0x5d2020]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ecx, str.dlbox_params
mov eax, esi
call fcn.004067d0
mov edi, eax
lea eax, [esp + 0xc]
push eax
mov ecx, str.medium_permission
mov edx, esi
call fcn.00406730
mov ecx, dword [esi + 0xc]
lea eax, [esi + 8]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x40adef
cmp ecx, eax
je 0x40adf5
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edx, dword [esp + 0x18]
cmp dword [esp + 0x10], edx
je 0x40ae63
mov ecx, str.dlbox_params
mov eax, esi
call fcn.004067d0
lea ecx, [esp + 0xc]
push ecx
mov ecx, eax
call fcn.00401bd0
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x2c], 0
call fcn.00416fc0
mov ecx, dword [esp + 0x10]
mov eax, dword [ebx]
add esp, 4
push 5
push 0
push ecx
push eax
push 0x5c3c90
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x40aea7
lea ecx, [esp + 0x14]
push ecx
mov ecx, edi
call fcn.00401bd0
mov edx, dword [ebp + 8]
push 5
push edx
lea eax, [esp + 0x1c]
push eax
push ebx
mov dword [esp + 0x38], 1
call fcn.0040b640
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
add esp, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40aeb3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x40aed0
Capabilities:
Check mutex on windows

Disassembly:
push 0xffffffffffffffff
push 0x576d58
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x5d2020]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 4]
sub eax, 0x10
call fcn.004045e0
add eax, 0x10
mov dword [esp + 0x1c], eax
push 0x1a
push str._toolbox_IsAlreadyDownload
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x20], 0
call fcn.00407d80
mov edi, dword [esp + 0x1c]
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
test esi, esi
je 0x40af87
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40af87
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
lea eax, [edi - 0x10]
mov dword [esp + 0x14], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40af6e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4
lea eax, [edi - 0x10]
mov dword [esp + 0x14], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40afab
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4
Function at 0x40b5c0
Capabilities:
Create process on windows

Disassembly:
push ecx
mov ecx, str.fastvc_params
call fcn.004067d0
test eax, eax
je 0x40b625
push ecx
mov ecx, esp
mov dword [esp + 4], esp
push ecx
mov ecx, eax
call fcn.00401bd0
lea edx, [esp + 4]
push edx
call fcn.0040b2f0
mov eax, dword [esp + 8]
mov ecx, dword [esi]
add esp, 8
push 5
push 0
push eax
push ecx
push 0x5c3c90
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [esp]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b63b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop ecx
ret
mov ecx, dword [esi]
push 5
push 0
push 0
push ecx
push 0x5c3c90
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop ecx
ret
Function at 0x40e810
Capabilities:
Set registry value

Disassembly:
mov edx, dword [eax]
push ebx
xor ebx, ebx
test edx, edx
je 0x40e84f
mov eax, edi
push esi
lea esi, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40e820
sub eax, esi
sar eax, 1
lea ecx, [eax + eax + 2]
mov eax, dword [esp + 0xc]
push ecx
push edi
push 1
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
pop esi
mov eax, 1
je 0x40e851
mov eax, ebx
pop ebx
ret 4

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

Disassembly:
push 0xffffffffffffffff
push 0x5777d8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push edi
mov eax, dword [0x5d2020]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
xor edi, edi
lea ebx, [esp + 0x10]
call fcn.00407850
push eax
lea eax, [esp + 0x10]
push eax
mov ebx, str.installconfig.dat
mov dword [esp + 0x24], edi
call fcn.00404150
mov dword [esp + 0x24], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f0bf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40f0da
test al, 0x10
jne 0x40f0da
mov eax, 1
jmp 0x40f0dc
xor eax, eax
test eax, eax
mov eax, dword [esp + 0xc]
setne bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40f101
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, bl
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0x14
ret
Function at 0x4125f0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x5761c9
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x5d2020]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, dword [esp + 0x20]
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], 0
mov eax, dword [0x5dcd6c]
mov edx, dword [eax + 0xc]
mov ecx, 0x5dcd6c
call edx
add eax, 0x10
mov dword [esi], eax
mov dword [esp + 0x18], 0
mov ecx, 1
mov dword [esp + 0xc], ecx
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
or eax, ecx
jge 0x412667
mov ecx, 0x104
mov eax, esi
call fcn.00401e40
mov ecx, dword [esp + 0x2c]
mov eax, dword [esi]
mov edx, dword [esp + 0x28]
push ecx
push 0x104
push eax
mov eax, dword [esp + 0x30]
push edx
push eax
push str.product
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, dword [esi]
test ecx, ecx
jne 0x412693
xor eax, eax
jmp 0x4126b1
mov eax, ecx
lea ebx, [eax + 2]
jmp 0x4126a0
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x4126a0
sub eax, ebx
sar eax, 1
js 0x4126d7
cmp eax, dword [ecx - 8]
jg 0x4126d7
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
mov word [ecx + eax*2], 0
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret 0x10
push 0x80070057
call fcn.00401bb0
int3

Function at 0x4133e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x573da0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x5d2020]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00413580
push 0
lea ecx, [esp + 0x10]
call fcn.00493420
lea edi, [esi + 8]
push eax
mov ecx, edi
mov dword [esp + 0x3c], 0
call fcn.00494110
lea ecx, [esp + 0xc]
mov dword [esp + 0x38], 0xffffffff
call fcn.00493570
push 0
lea ecx, [esp + 0x20]
call fcn.00493420
push eax
push str.root
mov ecx, edi
mov dword [esp + 0x40], 1
call fcn.00494660
mov ecx, eax
call fcn.00494110
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00493570
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 0x413a00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x574eb7
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x5d2020]
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 0x413bb0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5754e6
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x5d2020]
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.00419830
xor ebx, ebx
mov byte [esp + 0x14], bl
mov eax, dword [esi + 0x24]
cmp eax, ebx
je 0x413c0e
mov edx, dword [esp + 0x1c]
mov ecx, dword [esi + 0x28]
push edx
push ecx
push eax
call fcn.0042a510
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.00493570
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret 4

Function at 0x414740
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x575e52
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x5d2020]
xor eax, esp
mov dword [esp + 0x5c], eax
push ebx
push esi
push edi
mov eax, dword [0x5d2020]
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.00413a00
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 [0x57a290]
mov eax, dword [esi + 0x24]
add esi, 0x20
cmp eax, ebx
mov dword [esp + 0x54], ebx
je 0x414839
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 0x414839
cmp byte [esp + 0x84], bl
je 0x414805
push 6
lea ecx, [esp + 0x20]
call fcn.00493420
mov edi, eax
mov eax, esi
mov byte [esp + 0x7c], 1
call fcn.004180d0
add eax, 4
mov eax, dword [eax]
push edi
mov ecx, eax
call fcn.00494110
lea ecx, [esp + 0x1c]
mov byte [esp + 0x7c], bl
call fcn.00493570
mov edi, dword [esi + 8]
cmp dword [esi + 4], edi
mov ebx, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
jbe 0x414815
call ebx
lea eax, [edi - 0x3c]
cmp eax, dword [esi + 8]
mov dword [esp + 0x18], edi
ja 0x414826
cmp eax, dword [esi + 4]
jae 0x414828
call ebx
add edi, 0xffffffc4
cmp edi, dword [esi + 8]
jb 0x414832
call ebx
mov ecx, dword [edi + 4]
mov dword [esp + 0x34], ecx
lea edx, [esp + 0x30]
push edx
call fcn.00418120
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x80], 0xffffffff
call fcn.00413f30
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.0044e502
add esp, 0x70
ret 4
Function at 0x414c00
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
sub esp, 0x204
mov eax, dword [0x5d2020]
xor eax, esp
mov dword [esp + 0x200], eax
test esi, esi
push ebp
mov ebp, dword [esp + 0x20c]
je 0x414c9a
test edi, edi
je 0x414c9a
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x414c9a
test al, 0x10
jne 0x414c9a
push ebx
push 0x1fe
lea eax, [esp + 0xe]
push 0
push eax
mov ebx, 0x80004005
mov word [esp + 0x14], 0
call fcn.0044ea7c
add esp, 0xc
push esi
push pe_nt_image_headers32
lea ecx, [esp + 0x10]
push ecx
push 0
push edi
push str.SPCfg
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x414c81
lea edx, [esp + 8]
push edx
mov ecx, ebp
call dword [0x57a2dc]
xor ebx, ebx
mov eax, ebx
pop ebx
pop ebp
mov ecx, dword [esp + 0x200]
xor ecx, esp
call fcn.0044e502
add esp, 0x204
ret
mov ecx, dword [esp + 0x204]
pop ebp
xor ecx, esp
mov eax, 0x80004005
call fcn.0044e502
add esp, 0x204
ret

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

Disassembly:
sub esp, 0x804
mov eax, dword [0x5d2020]
xor eax, esp
mov dword [esp + 0x800], eax
test esi, esi
jne 0x415042
mov eax, 0x80004005
mov ecx, dword [esp + 0x800]
xor ecx, esp
call fcn.0044e502
add esp, 0x804
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x415028
test al, 0x10
jne 0x415028
push ebx
push 0x7fe
lea eax, [esp + 0xa]
push 0
push eax
mov ebx, 0x80004005
mov word [esp + 0x10], 0
call fcn.0044ea7c
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 0x4150c5
lea edx, [esp + 4]
push edx
mov ecx, edi
call dword [0x57a2dc]
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 0x4150c3
push 0x5c3a94
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.0044e502
add esp, 0x804
ret
Function at 0x4151a0
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
sub esp, 0x804
mov eax, dword [0x5d2020]
xor eax, esp
mov dword [esp + 0x800], eax
test esi, esi
push ebp
mov ebp, dword [esp + 0x80c]
je 0x41523a
test edi, edi
je 0x41523a
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41523a
test al, 0x10
jne 0x41523a
push ebx
push 0x7fe
lea eax, [esp + 0xe]
push 0
push eax
mov ebx, 0x80004005
mov word [esp + 0x14], 0
call fcn.0044ea7c
add esp, 0xc
push esi
push 0x400
lea ecx, [esp + 0x10]
push ecx
push 0
push edi
push str.ProductInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x415221
lea edx, [esp + 8]
push edx
mov ecx, ebp
call dword [0x57a2dc]
xor ebx, ebx
mov eax, ebx
pop ebx
pop ebp
mov ecx, dword [esp + 0x800]
xor ecx, esp
call fcn.0044e502
add esp, 0x804
ret
mov ecx, dword [esp + 0x804]
pop ebp
xor ecx, esp
mov eax, 0x80004005
call fcn.0044e502
add esp, 0x804
ret

Function at 0x415680
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 0x4156da
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 + 0x5c3628]
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 + 0x5c3628]
sub esi, 1
add edi, 1
test esi, esi
movzx eax, ax
jne 0x415690
pop ebx
pop edi
pop esi
ret
Function at 0x415a30
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x574e29
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x5d2020]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push ebp
push edi
mov eax, dword [0x5d2020]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
xor eax, eax
test ecx, ecx
je 0x415b52
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 0x415ac8
cmp byte [eax], 0
mov ecx, eax
je 0x415ac8
mov al, byte [ecx]
cmp al, 0x41
jl 0x415ac0
cmp al, 0x5a
jg 0x415ac0
add al, 0x20
mov byte [ecx], al
add ecx, 1
cmp byte [ecx], 0
jne 0x415ab2
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.00415680
cmp ebp, 0x25
movzx eax, ax
mov dword [esp + 0x10], eax
jbe 0x415af2
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 0x415b3b
test ebp, ebp
je 0x415b3b
xor eax, eax
test ebp, ebp
jbe 0x415b3b
jmp 0x415b30
xor byte [eax + edi], 0x5a
add eax, 1
cmp eax, ebp
jb 0x415b30
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.0044e502
add esp, 0x30
ret
Function at 0x415ea0
Capabilities:
Read file via mapping

Disassembly:
push 0xffffffffffffffff
push 0x575db9
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x5d2020]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov eax, dword [0x5d2020]
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 [0x57a2dc]
cmp dword [0x5dfecc], 8
mov eax, dword [0x5dfeb8]
jae 0x415f05
mov eax, 0x5dfeb8
push eax
lea ecx, [esp + 0xc]
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 [esp + 0x20], 8
mov eax, dword [esp + 0xc]
jae 0x415f1f
lea eax, [esp + 0xc]
cmp dword [esi + 4], 0
jne 0x415f62
push eax
push 0
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
test eax, eax
mov dword [esi], eax
je 0x415f5b
push 0x3fe0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
jne 0x415f5f
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
xor esi, esi
jmp 0x415f67
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.0044e502
add esp, 0x2c
ret

Function at 0x415fa0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [eax + 4]
sub esp, 8
test eax, eax
push esi
push edi
jne 0x415fb4
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.00415e10
mov eax, dword [esp + 0xc]
add esp, 4
test eax, eax
je 0x41600d
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 0x416001
pop edi
pop esi
add esp, 8
ret 4