joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10921058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.109211a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x1092107e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1092106a
add dl, dl
jne 0x10921089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x109210dc
xor eax, eax
add dl, dl
jne 0x10921096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1092117d
add dl, dl
jne 0x109210a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x109210b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x109210bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x109210c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x109210d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x10921075
mov eax, 1
add dl, dl
jne 0x109210ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x109210f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x109210e1
sub eax, ebx
mov ebx, 1
jne 0x10921128
mov ecx, 1
add dl, dl
jne 0x1092110e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10921119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10921105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10921075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1092113f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1092114a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10921136
cmp eax, 0x7d00
jae 0x1092116d
cmp eax, 0x500
jb 0x10921168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10921075
cmp eax, 0x7f
ja 0x10921170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10921075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1092119e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x10921075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401160
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x46b070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
lea eax, [ebp - 0x20c]
mov esi, ecx
push 0
push eax
call fcn.00437ab0
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.00437ab0
add esp, 0x18
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x4011ce
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00433092
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x414]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x4011bd
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00433092
mov esp, ebp
pop ebp
ret
Function at 0x401220
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44fd78
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x46b070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x3c], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x44], 0
push 1
lea eax, [ebp - 0x58]
mov byte [ebp - 0x58], 0
xorps xmm0, xmm0
mov word [ebp - 0x47], 0
push eax
movups xmmword [ebp - 0x57], xmm0
mov byte [ebp - 0x45], 0
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
xorps xmm0, xmm0
mov dword [ebp - 0x34], 0xc
lea eax, [ebp - 0x58]
movq qword [ebp - 0x30], xmm0
mov dword [ebp - 0x30], eax
xor eax, eax
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
push 1
push 0x80
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.0040d8e0
test al, al
je 0x4012f0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], 0
cmovae eax, dword [ebp - 0x28]
xor ecx, ecx
mov word [eax], cx
push 7
push 0x461740
lea ecx, [ebp - 0x28]
call fcn.00405ac0
push 0xffffffffffffffff
push 0
push esi
lea ecx, [ebp - 0x28]
call fcn.00405bf0
push 0x5f
lea ecx, [ebp - 0x28]
call fcn.004025b0
push 0x28
push str.MDL_E9624365_E188_497D_A83E_9FEE5F248714
lea ecx, [ebp - 0x28]
call fcn.00405ac0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 0
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x44], eax
call esi
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
mov edi, eax
mov dword [ebp - 0x18], 0
cmovae ecx, dword [ebp - 0x28]
xor eax, eax
push 7
push 0x461740
mov word [ecx], ax
lea ecx, [ebp - 0x28]
call fcn.00405ac0
push 0x28
push str.APP_78D84DC5_5F4F_4B57_8540_D4D89617ADA8
lea ecx, [ebp - 0x28]
call fcn.00405ac0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 0
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 0x38], eax
call esi
cmp edi, 0xb7
jne 0x4013ab
mov esi, 1
jmp 0x4013bd
cmp eax, 0xb7
mov ecx, 2
mov esi, 0
cmove esi, ecx
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4013d2
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.0040d960
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
test eax, eax
je 0x4013fb
cmp eax, 0xffffffff
je 0x4013fb
push eax
call edi
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x40140a
cmp eax, 0xffffffff
je 0x40140a
push eax
call edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00433092
mov esp, ebp
pop ebp
ret 4
Function at 0x401700
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44fdb1
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
push ebx
push esi
push edi
mov eax, dword [0x46b070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
sub esp, 8
mov dword [ebp - 4], 0
xor bl, bl
lea ecx, [ebp - 0xc4]
mov byte [ebp - 0x11], bl
call fcn.004027b0
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0xb4]
mov byte [ebp - 4], 1
call fcn.00409350
mov edx, 0x5c
mov ecx, eax
call fcn.004095d0
mov edx, dword [ebp + 0x10]
lea ecx, [ebp - 0xb4]
call fcn.00409350
mov edx, 0x5f
mov ecx, eax
call fcn.004095d0
mov edx, dword [ebp + 0xc]
mov ecx, eax
call fcn.00409350
mov edx, str..ini
mov ecx, eax
call fcn.004098a0
lea ecx, [ebp - 0xb4]
call fcn.00407e40
mov eax, dword [edi + 0x28]
lea esi, [edi + 0x18]
mov dword [ebp + 8], eax
cmp eax, 0x104
ja 0x4017e6
cmp dword [esi + 0x14], 0x104
je 0x4017e6
push 1
push 0x104
mov ecx, esi
call fcn.0040d8e0
test al, al
je 0x4017e6
cmp dword [esi + 0x14], 8
mov eax, dword [ebp + 8]
mov dword [esi + 0x10], eax
jb 0x4017de
mov ecx, dword [esi]
jmp 0x4017e0
mov ecx, esi
xor edx, edx
mov word [ecx + eax*2], dx
mov eax, dword [ebp + 0x10]
cmp edi, eax
je 0x4017f9
push 0xffffffffffffffff
push 0
push eax
mov ecx, edi
call fcn.0040cc40
mov eax, dword [ebp + 0xc]
lea ecx, [edi + 0x30]
cmp ecx, eax
je 0x40180d
push 0xffffffffffffffff
push 0
push eax
call fcn.0040cc40
push ecx
mov edx, esi
lea ecx, [ebp - 0xc4]
call fcn.00409b60
cmp dword [esi + 0x14], 8
jb 0x401825
mov eax, dword [esi]
jmp 0x401827
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x401855
cmp dword [esi + 0x14], 8
jb 0x40183a
mov esi, dword [esi]
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x401855
mov ecx, edi
call fcn.00401900
mov ecx, edi
call fcn.00401c00
mov bl, 1
lea ecx, [ebp - 0x5c]
call fcn.004026c0
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 2
push eax
mov dword [ebp - 0x5c], vtable.std::ios_base.0
call fcn.00431449
add esp, 4
jmp 0x40187f
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x408140
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4505a6
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x46b070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.004330cb
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.00431cee
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x42e9d0
Capabilities:
Modify service

Disassembly:
push esi
push 0x29
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x42ea37
push esi
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
test eax, eax
je 0x42ea30
push edi
push 0x40000000
push str.IJPLMSVC
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
je 0x42ea28
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 3
push 0xffffffffffffffff
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_UnlockServiceDatabase]
pop edi
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
ret

Function at 0x42ebe0
Capabilities:
Create service
Modify service
Persist via windows service
Set registry value
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x46b070]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x400
lea eax, [ebp - 0x404]
push 0
push eax
call fcn.00437ab0
add esp, 0xc
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push 0
lea eax, [ebp - 0x408]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.SoftwareCanonIJPLM
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x42ec6a
push 8
lea eax, [ebp - 0x414]
push eax
push 0xb
push 0
push str.InstallDate
push dword [ebp - 0x408]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x408]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
mov ecx, 0x3ff
mov ebx, str.Canon_Inkjet_Printer_Scanner_Fax_Extended_Survey_Program
and ax, cx
mov ecx, str.Canon___
cmp ax, 0x11
lea eax, [ebp - 0x404]
push 0x200
push eax
push 0
cmove ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x42ed4d
push edi
push 3
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x42ed4c
push esi
mov esi, 2
call fcn.00430980
test eax, eax
mov ecx, 3
lea eax, [ebp - 0x404]
push eax
cmovne esi, ecx
call dword [sym.imp.SHLWAPI.dll_PathQuoteSpacesW]
push 0
push 0
push 0x4625c4
push 0
push 0
lea eax, [ebp - 0x404]
push eax
push 1
push esi
push 0x10
push 0xf01ff
push ebx
push str.IJPLMSVC
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x42ed48
lea eax, [ebp - 0x40c]
mov dword [ebp - 0x40c], str.Collects_log_data_from_the_IJ_printer_and_manages_data_transmission.
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x42ed45
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call ebx
push edi
call ebx
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00433092
mov esp, ebp
pop ebp
ret
Function at 0x42ed60
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push edi
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x42edf7
push esi
push 0x10024
push str.IJPLMSVC
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x42edef
push 0x46d4a4
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x42ede1
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e8
call ebx
push 0x46d4a4
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x42ede0
nop
cmp dword [0x46d4a8], 3
jne 0x42ede0
push 0x3e8
call ebx
push 0x46d4a4
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x42edc0
pop ebx
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop edi
ret

Function at 0x42ee00
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebx
push esi
push edi
push 0x53c
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x42ef59
push 0x53c
push 0
push esi
call fcn.00437ab0
add esp, 0xc
mov dword [esi + 0x41c], 0x11c
lea ecx, [esi + 0x41c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x42ef59
call fcn.00430bf0
mov word [esi + 0x538], ax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
push esi
push 0x42eac0
push str.IJPLMSVC
mov word [esi + 0x53a], ax
call dword [sym.imp.ADVAPI32.dll_RegisterServiceCtrlHandlerExW]
mov dword [esi + 0x414], eax
test eax, eax
je 0x42ef59
mov eax, dword [0x46b8d0]
mov dword [0x46d4b8], eax
inc eax
push 0x46d4a4
mov dword [0x46d4a4], 0x10
mov dword [0x46d4b4], 0
mov dword [0x46d4ac], 0
mov dword [0x46d4a8], 2
mov dword [0x46d4b0], 0
mov dword [0x46d4bc], 0xbb8
push dword [esi + 0x414]
mov dword [0x46b8d0], eax
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
test eax, eax
je 0x42ef59
mov edi, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push esi
push 0
push 0
push 0x23
push 0
call edi
test eax, eax
js 0x42ef59
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.CanonIJPLM
push esi
call ebx
test eax, eax
je 0x42ef59
mov ecx, esi
call fcn.00430b70
test eax, eax
je 0x42ef59
lea eax, [esi + 0x20a]
push eax
push 0
push 0
push 0x26
push 0
call edi
test eax, eax
js 0x42ef59
push str.CanonIJPLMIJPLMUI.EXE
lea eax, [esi + 0x20a]
push eax
call ebx
test eax, eax
je 0x42ef59
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x418], eax
test eax, eax
je 0x42ef59
pop edi
mov eax, esi
pop esi
pop ebx
ret
mov ecx, esi
call fcn.0042ef70
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x4301e0
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x453199
mov eax, dword fs:[0]
push eax
sub esp, 0xe4
mov eax, dword [0x46b070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push ecx
mov ecx, esi
call fcn.00401220
cmp eax, 1
je 0x430392
cmp word [0x46d6c8], 0
jne 0x430255
push 0x46d6c8
push 0
push 0
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x430255
push 0x462c74
push 0x46d6c8
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
sub esp, 8
lea ecx, [ebp - 0xf0]
call fcn.004027b0
mov edx, 0x462e08
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xe0]
call fcn.004098a0
mov edx, esi
mov ecx, eax
call fcn.00409350
mov edx, 0x462e04
mov ecx, eax
call fcn.004098a0
mov edx, str.___type
mov ecx, eax
call fcn.004098a0
mov edx, edi
mov ecx, eax
call fcn.00409350
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0xf0]
call fcn.004026a0
xorps xmm0, xmm0
movups xmmword [ebp - 0x3c], xmm0
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x2c], 0
jb 0x4302cf
mov ecx, dword [eax]
jmp 0x4302d1
mov ecx, eax
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x3c]
call fcn.0041f660
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4302f6
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.0040d960
mov edx, dword [ebp - 0x3c]
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
test edx, edx
jne 0x43033b
push 0x4625c4
lea ecx, [ebp - 0x38]
call fcn.0040f770
mov eax, dword [ebp - 0x34]
mov esi, dword [ebp - 0x38]
sub eax, esi
sar eax, 1
jne 0x430334
push str.invalid_vector_T__subscript
call fcn.004313d7
mov edx, esi
mov dword [ebp - 0x3c], edx
jmp 0x43033e
mov esi, dword [ebp - 0x38]
push dword [ebp + 0x10]
mov ecx, 0x46d6c8
call fcn.00416520
add esp, 4
mov edi, eax
test esi, esi
je 0x430365
mov ecx, dword [ebp - 0x30]
sub ecx, esi
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x38]
call fcn.0040d960
lea ecx, [ebp - 0x88]
call fcn.004026c0
lea eax, [ebp - 0x88]
mov dword [ebp - 4], 5
push eax
mov dword [ebp - 0x88], vtable.std::ios_base.0
call fcn.00431449
add esp, 4
jmp 0x430397
mov edi, 1
test edi, edi
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00433092
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4a6bcf
Capabilities:
Encode data using xor

Disassembly:
cmpsb byte [esi], byte es:[edi]
xchg byte [eax + 0xe], cl
add dword [esi + eax*2], esi
and eax, 0x72d3fede
add dword [edi], ebx
pop ss
rdmsr
add dh, cl
cmpsb byte [esi], byte es:[edi]
xchg byte [eax + 0xe], cl
in eax, dx
xor eax, dword [esi + 0x25]
adc dh, byte [edx]
add eax, dword [eax]
add byte [eax], al
mov ah, 0xa4
cmc
call edx
xchg esi, eax
add al, byte [eax]
mov al, 0x54
or al, byte [eax]
dec esi
pop esp
add byte [eax], al
jns 0x4a6b60
add byte [ecx + 2], bh
add byte [eax], al
aas
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add cl, bh
stc
stc
jb 0x4a6b84
jmp 0xa607b351
add ebx, esp
out 0xb5, al
jae 0x4a6b69
div byte [eax]
pushal
clc
jae 0x4a6ba9
cmp ebp, dword [ecx]
jo 0x4a6b64
pushfd
dec edx
jge 0x4a6b2a
shr dword [eax + ecx + 0x6e], cl
cmp edi, ecx
pop eax
dec ebx
jnp 0x4a6b5b
wait
jp 0x4a6be8
jnp 0x4a6bd3
popfd
push ebp
inc esi
push esi
out dx, eax
jne 0x4a6b88
ror ch, cl
daa
call 0x4a6bcf
sub eax, 0xf6ed3f76
pminub mm5, qword [edx]
push esi
ljmp 0x24fb
cmc
rcr byte [ebp + 0x5b], 0xeb
push cs
cmp ch, byte [esi - 0x3e0b62fb]
dec edi
scasb al, byte es:[edi]
add eax, 0x4fc1f49d
jo 0x4a6b7c
and edi, 0x51
inc esp
add eax, 0xff9ac381
invalid
clc
or bh, cl
or dl, byte [ebp + 0x6b]
jbe 0x4a6bcc
invalid
Function at 0x403141
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
push esi
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax + 0x48]
call edx
mov ebp, dword [esp + 0x14]
cmp ebp, 1
je 0x403174
cmp ebp, 4
je 0x403174
cmp ebp, 8
je 0x403174
cmp ebp, 0x10
je 0x403174
cmp ebp, 0x18
je 0x403174
cmp ebp, 0x20
je 0x403174
pop esi
xor al, al
pop ebp
ret 0xc
push ebx
push edi
mov edi, dword [esp + 0x14]
imul edi, ebp
shr edi, 3
mov eax, edi
and eax, 3
je 0x403190
mov ecx, 4
sub ecx, eax
add edi, ecx
xor ebx, ebx
cmp ebp, 8
ja 0x4031a5
mov edx, 1
mov ecx, ebp
shl edx, cl
mov dword [esi + 0x38], edx
jmp 0x4031a8
mov dword [esi + 0x38], ebx
mov eax, dword [esi + 0x38]
lea ecx, [eax*4 + 0x28]
push ecx
call fcn.0041d53d
mov dword [esi + 8], eax
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
mov edx, dword [esi + 8]
mov ecx, dword [esp + 0x18]
mov dword [edx], 0x28
mov eax, dword [esi + 8]
mov dword [eax + 4], ecx
mov edx, dword [esi + 8]
mov eax, dword [esp + 0x1c]
mov dword [edx + 8], eax
imul edi, eax
mov ecx, dword [esi + 8]
mov word [ecx + 0xe], bp
mov edx, dword [esi + 8]
mov ecx, 1
mov word [edx + 0xc], cx
mov edx, dword [esi + 8]
mov dword [edx + 0x10], ebx
mov eax, dword [esi + 8]
mov dword [eax + 0x14], edi
mov ecx, dword [esi + 8]
mov edx, dword [ecx + 0x14]
push edx
call fcn.0041d53d
add esp, 8
mov dword [esi + 0xc], eax
cmp ebp, 8
ja 0x40327f
mov ecx, ebp
mov eax, 1
shl eax, cl
xor ecx, ecx
mov dword [esi + 0x38], eax
cmp eax, ebx
jbe 0x40327f
mov edi, dword [esi + 0x38]
xor edx, edx
dec edi
mov eax, 0xff
div edi
mov edx, dword [esi + 8]
imul cl
mov byte [edx + ecx*4 + 0x28], al
mov eax, dword [esi + 8]
movzx edx, byte [eax + ecx*4 + 0x28]
mov byte [eax + ecx*4 + 0x29], dl
mov eax, dword [esi + 8]
movzx edx, byte [eax + ecx*4 + 0x29]
lea eax, [eax + ecx*4]
mov byte [eax + 0x2a], dl
mov eax, dword [esi + 8]
mov byte [eax + ecx*4 + 0x2b], bl
inc ecx
cmp ecx, dword [esi + 0x38]
jb 0x403242
lea edi, [esi + 0x10]
mov esi, dword [esi + 8]
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
pop edi
pop ebx
pop esi
mov al, 1
pop ebp
ret 0xc
Function at 0x403f90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x473413
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
push ebp
push esi
push edi
mov eax, dword [0x4936d0]
xor eax, esp
push eax
lea eax, [esp + 0x9c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xac]
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceW]
push 0xa
push 0xa0
push 0
call esi
test eax, eax
jne 0x403fdc
xor edi, edi
jmp 0x403fe7
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
push 0xa
push 0xa0
push 0
call esi
test eax, eax
jne 0x403ffa
xor esi, esi
jmp 0x404005
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
lea eax, [esp + 0x50]
push eax
call fcn.004067b0
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x50], vtable.ysl::storage::memory_streambuf.0
mov dword [esp + 0x8c], esi
mov dword [esp + 0x90], edi
mov dword [ecx], esi
mov edx, dword [esp + 0x74]
mov dword [edx], esi
mov ecx, dword [esp + 0x84]
lea eax, [esi + edi]
sub eax, esi
mov dword [ecx], eax
mov edx, dword [esp + 0x60]
mov dword [edx], esi
mov ecx, dword [esp + 0x70]
mov dword [ecx], esi
mov edx, dword [esp + 0x80]
mov dword [edx], eax
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0xac], 0
call fcn.004065d0
mov byte [esp + 0xa4], 1
mov edx, dword [ebp + 0x74]
mov edx, dword [edx + 0x40]
lea esi, [ebp + 0x74]
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
lea edi, [ebp + 0xb0]
mov ebp, dword [edi]
push 0x20
mov ecx, esi
add ebp, 0x3c
call edx
push eax
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
push eax
mov eax, dword [ebp]
mov ecx, edi
call eax
mov edx, dword [edi]
mov eax, dword [edx + 0x34]
push esi
mov ecx, edi
call eax
mov byte [esp + 0xa4], 0
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 4]
lea eax, [esp + 0x1c]
mov dword [esp + edx + 0x14], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
push eax
mov dword [esp + 0x20], vtable.std::ios_base.0
call fcn.0045504e
mov dword [esp + 0xa8], 0xffffffff
add esp, 4
lea ecx, [esp + 0x50]
mov dword [esp + 0x50], vtable.ysl::storage::memory_streambuf.0
call fcn.004068b0
mov ecx, dword [esp + 0x9c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x98
ret 4