joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4074bd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
movzx eax, word [ebp + 0xc]
push esi
push dword [ebp + 0x14]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x407540
push ebx
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x407509
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x407509
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
mov dword [ebp + 0xc], eax
jne 0x40750d
xor eax, eax
jmp 0x40753f
mov esi, dword [ebp + 0x10]
push edi
lea edi, [ebx + 1]
push edi
call fcn.00403465
test eax, eax
je 0x40752b
push ebx
push dword [ebp + 0xc]
push eax
call sub.MSVCR80.dll_memcpy
add esp, 0xc
mov eax, edi
call fcn.0040ecbe
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
inc eax
pop edi
pop ebx
pop esi
leave
ret

Function at 0x4076aa
Capabilities:
Get file size
Read file on windows

Disassembly:
push 8
mov eax, 0x4b46f7
call fcn.004afcf2
mov edi, ecx
mov eax, dword [0x4f7c54]
mov esi, 0x4f7c54
xor ebx, ebx
mov ecx, esi
mov dword [ebp - 0x14], ebx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
cmp dword [ebp + 0x14], ebx
lea eax, [edi + 0xc]
jne 0x4076df
mov eax, edi
lea edi, [ebp - 0x10]
call fcn.0040ecd7
mov edi, dword [ebp - 0x10]
cmp dword [edi - 0xc], ebx
je 0x4077c8
mov eax, dword [0x4f7c54]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x14], eax
push dword [ebp + 0x10]
mov byte [ebp - 4], 1
push dword [ebp + 8]
lea eax, [ebp + 0x14]
push edi
push str._s_d._s
call fcn.00403566
add esp, 0x10
push ebx
push 0x80
push 3
push ebx
push 1
push closesocket
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp + 0x10], eax
je 0x4077bd
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, ebx
je 0x4077b4
mov esi, dword [ebp + 0xc]
push ebx
lea eax, [ebp + 8]
push eax
push edi
lea eax, [edi + 0xa]
push eax
mov dword [ebp + 8], ebx
call fcn.00403465
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x4077ab
cmp dword [ebp + 8], edi
jne 0x4077ab
mov eax, edi
call fcn.0040ecbe
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
call fcn.0040113b
xor esi, esi
inc esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040113b
mov eax, esi
call fcn.004afdca
ret 0x10
xor eax, eax
mov edx, esi
call fcn.004033c5
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
call fcn.0040113b
mov esi, dword [ebp - 0x14]
jmp 0x407796
Function at 0x407ac4
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x230
mov eax, 0x4b923c
call fcn.004afd5b
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x230], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x234], eax
mov eax, dword [0x4f7c54]
mov ecx, 0x4f7c54
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x220], eax
xor eax, eax
mov dword [ebp - 4], eax
push 0x206
push eax
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp - 0x21c]
push eax
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.MSVCR80.dll_wcslen]
pop ecx
lea ecx, [ebp - 0x21c]
mov ebx, eax
push ecx
lea eax, [ebp - 0x220]
call fcn.00401521
push dword [ebp - 0x220]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.004014fa
push 0x2e
lea esi, [ebp - 0x220]
call fcn.0040ee8a
cmp eax, 0xffffffff
je 0x407baf
mov ecx, eax
lea edx, [ebp - 0x228]
mov eax, esi
call fcn.0040efa1
mov edi, esi
mov byte [ebp - 4], 1
call fcn.0040ecd7
xor ebx, ebx
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x228]
add eax, 0xfffffff0
call fcn.0040113b
jmp 0x407bb1
xor ebx, ebx
mov eax, dword [0x4f7c54]
mov ecx, 0x4f7c54
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x224]
push eax
push dword [ebp + 8]
mov byte [ebp - 4], 2
fld1
lea eax, [ebp - 0x220]
fstp qword [ebp - 0x23c]
push eax
call fcn.004077cd
test eax, eax
jne 0x407c1a
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
call fcn.0040113b
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
call fcn.0040113b
xor eax, eax
call fcn.004afdde
ret 0xc
push ebx
push 0x80
push 3
push ebx
push 1
push closesocket
push dword [ebp - 0x224]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x22c], eax
jne 0x407c61
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
call fcn.0040113b
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
call fcn.0040113b
mov eax, ebx
jmp 0x407c12
push ebx
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, ebx
je 0x407cea
mov esi, dword [ebp - 0x230]
push ebx
lea eax, [ebp - 0x228]
push eax
push edi
lea eax, [edi + 0xa]
push eax
mov dword [ebp - 0x228], ebx
call fcn.00403465
push eax
push dword [ebp - 0x22c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
cmp esi, ebx
je 0x407cdd
cmp dword [ebp - 0x228], edi
jne 0x407cdd
mov eax, dword [ebp - 0x234]
cmp eax, ebx
je 0x407cbc
fld qword [ebp - 0x23c]
fstp qword [eax]
mov esi, dword [ebp - 0x230]
mov eax, edi
call fcn.0040ecbe
push dword [ebp - 0x22c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
inc ebx
jmp 0x407c41
mov edx, dword [ebp - 0x230]
xor eax, eax
call fcn.004033c5
push dword [ebp - 0x22c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, esi
jmp 0x407c41
Function at 0x40e950
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebx]
xor ecx, ecx
cmp eax, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], ecx
je 0x40e9df
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [ebp - 4]
push edx
push ecx
lea edx, [ebp - 8]
push edx
push ecx
push dword [ebp + 8]
push eax
call edi
cmp dword [ebp - 8], 1
je 0x40e987
cmp dword [ebp - 8], 2
jne 0x40e9de
push esi
mov esi, dword [ebp + 0xc]
call fcn.004013b3
mov eax, dword [ebp - 4]
shr eax, 1
inc eax
push eax
call fcn.004013f3
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 8]
push dword [ebx]
call edi
test eax, eax
jne 0x40e9c5
mov eax, dword [ebp - 4]
shr eax, 1
and word [esi + eax*2], 0
mov dword [ebp - 0xc], 1
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x40e9d6
push eax
call dword [sym.imp.MSVCR80.dll_wcslen]
pop ecx
mov edx, esi
call fcn.004014d9
pop esi
pop edi
mov eax, dword [ebp - 0xc]
leave
ret 8

Function at 0x4109ba
Capabilities:
Create thread

Disassembly:
push ebx
push str.dump.dll
or ebx, 0xffffffff
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x410a0d
push str.KxEOpenDumpMonitorEx2
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x410a0d
push esi
push 0
push 0
push eax
push 0x410900
push 0
push 0
call dword [sym.imp.MSVCR80.dll__beginthreadex]
add esp, 0x18
push 0xa
mov esi, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
test esi, esi
je 0x410a0c
push esi
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, ebx
pop ebx
ret

Function at 0x410cee
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x120
mov eax, dword [0x4f1020]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
push edi
mov esi, 0x11c
push esi
xor edi, edi
lea eax, [ebp - 0xa8]
push edi
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0xa8]
mov dword [ebp - 0xa8], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call esi
cmp eax, edi
jne 0x410d51
lea eax, [ebp - 0xa8]
push eax
mov dword [ebp - 0xa8], 0x114
call esi
cmp eax, edi
je 0x410dff
mov eax, dword [ebp - 0x98]
dec eax
je 0x410deb
dec eax
jne 0x410dff
cmp dword [ebp - 0xa4], 6
jne 0x410d9c
inc eax
cmp dword [ebp - 0xa0], eax
jne 0x410d84
xor ecx, ecx
cmp byte [ebp + 0x72], al
setne cl
add ecx, 8
jmp 0x410d98
cmp dword [ebp - 0xa0], edi
jne 0x410dd8
xor ecx, ecx
cmp byte [ebp + 0x72], al
setne cl
lea ecx, [ecx + ecx + 7]
mov edi, ecx
jmp 0x410dff
cmp dword [ebp - 0xa4], 5
jne 0x410dcb
cmp dword [ebp - 0xa0], 2
jne 0x410db2
push 5
jmp 0x410de8
cmp dword [ebp - 0xa0], 1
jne 0x410dbf
push 6
jmp 0x410de8
cmp dword [ebp - 0xa0], edi
jne 0x410dff
push 3
jmp 0x410de8
cmp dword [ebp - 0xa4], 4
ja 0x410dff
push 4
jmp 0x410de8
cmp dword [ebp - 0xa0], 2
jne 0x410dff
cmp byte [ebp + 0x72], al
jne 0x410dff
push 0xa
pop edi
jmp 0x410dff
mov eax, dword [ebp - 0x9c]
and eax, 0xffff0000
cmp eax, 0x45a0000
sbb edi, edi
inc edi
inc edi
mov ecx, dword [ebp + 0x74]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00499bb9
add ebp, 0x78
leave
ret
Function at 0x412a3f
Capabilities:
Check mutex on windows

Disassembly:
push 4
mov eax, 0x4b582e
call fcn.004afcf2
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, dword [ebp + 8]
mov eax, dword [edi - 0xc]
cmp eax, ebx
jne 0x412a7d
lea eax, [ebp - 0x10]
push eax
call fcn.00412a23
lea edi, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.0040ecd7
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040113b
mov edi, dword [ebp + 8]
push edi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
cmp eax, ebx
mov dword [esi], eax
jne 0x412a99
lea eax, [edi - 0x10]
call fcn.0040113b
mov al, 1
jmp 0x412abc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x412ab2
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], ebx
mov bl, 1
lea eax, [edi - 0x10]
call fcn.0040113b
mov al, bl
call fcn.004afdca
ret 4
Function at 0x413205
Capabilities:
Log keystrokes

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov ebx, eax
mov eax, dword [0x4f9b74]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x1c], edi
je 0x413222
mov esi, dword [eax + 4]
jmp 0x413224
xor esi, esi
cmp esi, edi
jne 0x413234
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov esi, eax
cmp esi, edi
je 0x413259
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp esi, eax
je 0x413259
push esi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x413259
push edi
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [esp + 0x1c], 1
push esi
mov ecx, ebx
mov dword [ebx + 0x438], edi
call fcn.0041361c
cmp eax, edi
mov dword [esp + 0x18], eax
jne 0x41327f
push 1
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
xor eax, eax
jmp 0x413387
mov edx, eax
call fcn.0040e8de
mov dword [esp + 0x20], eax
mov eax, esi
call fcn.0045f29e
cmp dword [ebx + 0x428], edi
je 0x41332f
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push edi
push edi
push edi
push 0x2001
mov dword [esp + 0x24], eax
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
cmp ebp, dword [esp + 0x14]
je 0x4132d8
push 1
push ebp
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_AttachThreadInput]
push 5
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x43
push edi
push edi
push edi
push edi
push edi
push dword [esp + 0x30]
call dword [sym.imp.USER32.dll_SetWindowPos]
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
cmp ebp, dword [esp + 0x14]
je 0x413310
push edi
push ebp
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_AttachThreadInput]
push 0xffffffffffffffec
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x80000
je 0x41332f
push edi
push edi
push 0xf
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x2c]
push 0x97
lea ebp, [ebx + 4]
push ebp
mov dword [ebx + 0x438], edi
call fcn.00405d31
cmp dword [esp + 0x1c], edi
je 0x41336f
push 1
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
cmp esi, edi
je 0x41336f
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [ebp]
jne 0x41336f
push esi
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov edx, dword [esp + 0x20]
call fcn.0040e8de
push dword [ebp]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [ebx + 0x43c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x415da2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
test edi, edi
je 0x415db4
cmp dword [esi], 2
jae 0x415db4
push 0x7a
pop eax
jmp 0x415e17
mov eax, dword [esi]
and dword [esi], 0
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp + 8]
push 0
push str.PagingFiles
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x415e17
cmp dword [ebp + 8], 7
je 0x415de7
push 0xd
jmp 0x415db1
test edi, edi
mov ecx, dword [ebp - 4]
je 0x415e11
test cl, 1
jne 0x415de3
mov eax, ecx
shr eax, 1
cmp eax, 1
jb 0x415de3
cmp word [edi + eax*2 - 2], 0
jne 0x415de3
cmp eax, 1
jbe 0x415e11
cmp word [edi + eax*2 - 4], 0
jne 0x415de3
shr ecx, 1
mov dword [esi], ecx
xor eax, eax
leave
ret 4

Function at 0x415e1b
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x20c
lea ebp, [esp - 4]
mov eax, dword [0x4f1020]
xor eax, ebp
mov dword [ebp + 0x20c], eax
push 4
mov eax, 0x4b428e
call fcn.004afcf2
xor ebx, ebx
mov ecx, 0x4f7c54
mov esi, 0x4f9ee0
mov dword [ebp - 0x10], 0x4f9ed0
mov dword [0x4f9ed0], ebx
mov dword [0x4f9ed4], ebx
mov word [0x4f9edc], 0x43
call fcn.0040144e
mov edi, 0x4f9ee4
mov eax, edi
mov dword [ebp - 4], ebx
call fcn.00402eda
push 0x208
mov byte [ebp - 4], 1
lea eax, [ebp + 2]
push ebx
push eax
mov dword [0x4f9ee8], ebx
mov dword [0x4f9eec], ebx
mov word [ebp], bx
call sub.MSVCR80.dll_memset
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call fcn.00441a26
movzx eax, al
pop ecx
mov dword [0x4f9ed8], eax
mov esi, 0x104
push esi
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x415ed4
mov ax, word [ebp]
mov word [0x4f9edc], ax
push 0x20a
lea eax, [ebp]
push ebx
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
push esi
lea eax, [ebp]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.dataksyscfg.ini
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 1
lea esi, [ebp]
mov ebx, edi
call fcn.00402eeb
mov eax, 0x4f9ed0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x20c]
xor ecx, ebp
call fcn.00499bb9
add ebp, 0x210
leave
ret
Function at 0x415f3f
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push 4
xor esi, esi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
cmp eax, esi
jne 0x415fd0
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call fcn.00401666
test eax, eax
je 0x415f91
cmp dword [ebp - 0xc], esi
je 0x415f91
push str.KSDllGetClassObject
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x415f91
lea ecx, [ebp - 8]
push ecx
push 0x4c8b8c
push 0x4c8b38
call eax
cmp dword [ebp + 8], esi
je 0x415fa6
mov eax, dword [ebp - 8]
cmp eax, esi
je 0x415fbf
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x28]
mov eax, dword [ebp - 8]
cmp eax, esi
je 0x415fbf
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 8], esi
cmp dword [ebp - 0xc], esi
je 0x415fcd
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
inc eax
pop esi
leave
ret 4
Function at 0x416410
Capabilities:
Get disk size

Disassembly:
push 0x30
mov eax, 0x4b425d
call fcn.004afcf2
xor esi, esi
cmp dword [ebp + 8], esi
mov ebx, ecx
jne 0x41642f
mov eax, dword [ebx]
cmp eax, esi
jne 0x4165b4
mov eax, dword [0x4f7c54]
mov ecx, 0x4f7c54
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], esi
xor eax, eax
mov dword [ebp - 0x2c], esi
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
mov dword [ebp - 0x3c], esi
lea edi, [ebp - 0x38]
stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebx + 0x14]
push eax
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
call fcn.00402fb6
lea edi, [ebx + 0x10]
mov byte [ebp - 4], 1
call fcn.0040ecd7
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.0040113b
mov eax, dword [edi]
cmp dword [eax - 0xc], esi
je 0x416522
push eax
push ebx
call fcn.004161b2
mov dword [ebp - 0x14], eax
mov eax, dword [edi]
cmp word [eax], si
jne 0x4164a4
mov dword [ebp - 0x20], esi
jmp 0x4164b2
push eax
lea esi, [ebp - 0x34]
call fcn.004166d4
mov dword [ebp - 0x20], eax
xor esi, esi
xor ecx, ecx
mov eax, edi
call fcn.0040efdd
mov edi, dword [sym.imp.MSVCR80.dll_towlower]
movzx eax, ax
mov dword [ebp - 0x18], eax
movzx eax, word [ebx + 0xc]
push eax
call edi
pop ecx
push dword [ebp - 0x18]
mov word [ebp - 0x16], ax
call edi
pop ecx
mov cx, word [ebp - 0x16]
cmp ax, cx
jne 0x416502
cmp dword [ebp - 0x20], esi
jne 0x4164f7
cmp dword [ebp - 0x14], esi
je 0x416507
mov dword [ebx], 3
jmp 0x4165a5
mov dword [ebx], 7
jmp 0x4165a5
cmp dword [ebp - 0x14], esi
jne 0x416512
mov dword [ebx], 6
jmp 0x4165a5
cmp dword [ebp - 0x20], esi
jne 0x416539
mov dword [ebx], 5
jmp 0x4165a5
lea eax, [ebp - 0x34]
push eax
mov ecx, ebx
call fcn.004162be
test eax, eax
jne 0x416539
mov dword [ebx], 4
jmp 0x4165a5
movzx eax, word [ebx + 0xc]
push eax
push 0x4ca3b4
lea eax, [ebp - 0x1c]
call fcn.00403566
pop ecx
pop ecx
push esi
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x41659f
xor edx, edx
inc edx
cmp dword [ebp - 0x28], edx
jb 0x41659f
mov eax, 0x40000000
ja 0x416577
cmp dword [ebp - 0x2c], eax
jbe 0x41659f
mov ecx, dword [ebp - 0x34]
mov edi, dword [ebp - 0x30]
add ecx, eax
mov eax, edi
adc eax, esi
cmp dword [ebp - 0x28], eax
jb 0x41659f
ja 0x41658f
cmp dword [ebp - 0x2c], ecx
jbe 0x41659f
mov eax, dword [ebp - 0x34]
mov dword [ebx + 4], edx
mov dword [ebx], edx
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], edi
jmp 0x4165a5
mov dword [ebx], 2
mov eax, dword [ebp - 0x1c]
mov ebx, dword [ebx]
add eax, 0xfffffff0
call fcn.0040113b
mov eax, ebx
call fcn.004afdca
ret 4
Function at 0x416957
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x2c
mov eax, 0x4b1722
call fcn.004afd5b
mov eax, dword [ebp + 8]
mov esi, ecx
test esi, esi
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], eax
jne 0x416982
mov eax, 0x80004005
jmp 0x416a49
lea ecx, [ebp - 0x2c]
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_]
and dword [ebp - 4], 0
lea ebx, [ebp - 0x2c]
xor ecx, ecx
call fcn.004168f3
mov edi, 0x4c8b34
push edi
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__]
push esi
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__]
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x4169bc
lea eax, [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call esi
cmp eax, 0xffffffff
je 0x4169ce
test al, 0x10
je 0x416a21
push 0x4c8bd8
lea ecx, [ebp - 0x2c]
call dword [0x4be314]
lea ebx, [ebp - 0x2c]
mov ecx, 0x400000
call fcn.004168f3
push edi
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__]
push dword [ebp - 0x38]
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__]
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x416a09
lea eax, [ebp - 0x28]
push eax
call esi
cmp eax, 0xffffffff
je 0x416a1a
test al, 0x10
jne 0x416a1a
xor eax, eax
inc eax
jmp 0x416a1c
xor eax, eax
movzx esi, al
jmp 0x416a24
xor esi, esi
inc esi
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
push eax
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_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x416a3a
mov dword [eax], esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
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_]
xor eax, eax
call fcn.004afdde
ret
Function at 0x41735d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
lea eax, [ebp - 4]
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.software_sysoptasst_ascommon
push reloc.WS2_32.dll_bind
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4173f0
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
push eax
push ebx
push str.installpath
push dword [ebp - 4]
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], 0x204
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4173f0
cmp dword [ebp - 8], 1
jne 0x4173f0
cmp dword [ebp - 0xc], 6
jb 0x4173f0
push esi
call dword [sym.imp.MSVCR80.dll_wcslen]
movzx eax, word [esi + eax*2 - 2]
cmp ax, 0x5c
pop ecx
je 0x4173e9
cmp ax, 0x2f
je 0x4173e9
push 0x4c8b34
push 0x204
push esi
call dword [sym.imp.MSVCR80.dll_wcscat_s]
add esp, 0xc
mov dword [ebp - 0x10], 1
cmp dword [ebp - 4], ebx
pop ebx
je 0x4173ff
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
leave
ret

Function at 0x419f66
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
and dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
jne 0x419f7f
mov eax, dword [ebp - 4]
jmp 0x41a059
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
shr ecx, 3
xor eax, 0xffffffff
test ecx, ecx
je 0x41a034
push ebp
mov ebp, ecx
xor edx, edx
xor ecx, ecx
nop
mov ebx, dword [esi]
add esi, 4
mov dl, bl
mov cl, bh
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x4c8440]
shr ebx, 0x10
xor eax, edi
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x4c8440]
mov dl, bl
xor eax, edi
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x4c8440]
mov cl, bh
xor eax, edi
mov ebx, dword [esi]
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x4c8440]
add esi, 4
xor eax, edi
mov dl, bl
mov cl, bh
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x4c8440]
shr ebx, 0x10
xor eax, edi
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x4c8440]
mov dl, bl
xor eax, edi
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x4c8440]
mov cl, bh
xor eax, edi
xor cl, al
shr eax, 8
xor eax, dword [ecx*4 + 0x4c8440]
dec ebp
jne 0x419f9e
pop ebp
mov ecx, dword [ebp + 0x10]
xor edx, edx
and ecx, 7
je 0x41a050
mov dl, byte [esi]
inc esi
xor dl, al
shr eax, 8
xor eax, dword [edx*4 + 0x4c8440]
dec ecx
jne 0x41a03e
xor eax, 0xffffffff
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret