joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406cf8
Capabilities:
Create thread
Resume thread

Disassembly:
push 0x20c
mov eax, 0x433654
call fcn.00425d32
lea eax, [esi + 8]
push eax
mov dword [ebp - 0x214], esi
call fcn.00407294
lea eax, [esi + 0x20]
xor edi, edi
push eax
mov dword [ebp - 4], edi
call fcn.0040717d
lea eax, [esi + 0x38]
push eax
mov byte [ebp - 4], 1
call fcn.0040717d
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
mov dword [esi + 0x54], eax
lea eax, [ebp - 0x210]
push str.UPDATE_EVENT__d
push eax
call fcn.00407cf9
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventW]
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push edi
push edi
push edi
call ebx
push edi
push edi
push edi
push edi
mov dword [esi + 0x50], eax
call ebx
mov dword [esi + 0x58], eax
lea eax, [esi + 4]
push eax
push 4
push esi
push 0x406ce7
push edi
push edi
call dword [sym.imp.MSVCR90.dll__beginthreadex]
add esp, 0x18
push eax
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, esi
call fcn.00425db5
ret

Function at 0x40b994
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea eax, [ebp - 4]
push eax
mov ebx, 0x20019
push ebx
push 0
push str.SoftwareThunder_NetworkAPlayer
mov edi, closesocket
push edi
call esi
test eax, eax
jne 0x40ba00
and dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push str.XmpCodecsUpdateState
push dword [ebp - 4]
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40ba00
cmp dword [ebp - 8], 4
jne 0x40ba00
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop edi
pop esi
pop ebx
leave
ret
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push ebx
xor ebx, ebx
push ebx
push str.SoftwareThunder_NetworkXmp
push edi
call esi
test eax, eax
jne 0x40ba59
push 4
pop esi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x4348d4
push dword [ebp - 4]
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40ba59
cmp dword [ebp - 8], esi
jne 0x40ba59
xor bl, bl
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
jmp 0x40b9fb
mov bl, 1
jmp 0x40ba4c
Function at 0x40cd63
Capabilities:
Create thread
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 8], 0x3e8
jne 0x40cdea
push esi
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x40cda0
push dword [ebp + 0xc]
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
xor esi, esi
push esi
push esi
push eax
push 0x40cadc
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40cde9
push 0x20006
push str.SoftwareThunder_NetworkAPlayer
xor esi, esi
push closesocket
lea ecx, [ebp - 8]
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call fcn.0040bcbf
test eax, eax
jne 0x40cde1
push 4
lea eax, [ebp + 8]
push eax
push 4
push esi
push str.XmpCodecsUpdateState
push dword [ebp - 8]
mov dword [ebp + 8], 3
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [ebp - 8]
call fcn.0040bca4
pop esi
xor eax, eax
leave
ret 8
Function at 0x40da02
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x4490e8]
xor eax, ebp
mov dword [ebp + 0x194], eax
push esi
push edi
call fcn.0040d77a
mov edi, eax
xor eax, eax
push 0x206
mov word [ebp - 0x74], ax
xor esi, esi
lea eax, [ebp - 0x72]
push esi
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp - 0x74]
push eax
push edi
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x80], esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
mov dword [ebp - 0x7c], esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
cmp edi, esi
jne 0x40da73
xor eax, eax
jmp 0x40db25
push ebx
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00425ad2
mov ebx, eax
pop ecx
cmp ebx, esi
jne 0x40da96
xor eax, eax
jmp 0x40db24
push ebx
push edi
push esi
lea eax, [ebp - 0x74]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
mov esi, 0x449928
test eax, eax
je 0x40db10
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push 0x43ea98
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40db10
mov eax, dword [ebp - 0x78]
push dword [eax + 0x30]
movzx ecx, word [eax + 0xc]
push dword [eax + 0x2c]
push dword [eax + 0x28]
push dword [eax + 0x24]
push dword [eax + 0x20]
push dword [eax + 0x18]
push dword [eax + 0x1c]
push dword [eax]
push dword [eax + 0x14]
push dword [eax + 0x10]
push dword [eax + 0xc]
push dword [eax + 8]
push ecx
movzx ecx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push eax
push str.FileVersion_:__d._d._d._d___FileVersionMS_:_0x_08x__FileVersionLS_:_0x_08x__ProductVersionMS_:_0x_08x__ProductVersionLS_:_0x_08x__Signature_:_0x_08x__FileFlags_:_0x_08x__FileFlagsMask_:_0x_08x__FileOS_:_0x_08x__FileType_:_0x_08x__FileSubType_:_0x_08x__FileDateMS_:_0x_08x__FileDateLS_:_0x_08x__
push 0x168
push esi
call dword [sym.imp.MSVCR90.dll__snwprintf]
add esp, 0x4c
push ebx
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
movzx eax, word [0x449928]
neg eax
sbb eax, eax
pop ecx
and eax, esi
pop ebx
mov ecx, dword [ebp + 0x194]
pop edi
xor ecx, ebp
pop esi
call fcn.00425cba
add ebp, 0x198
leave
ret
Function at 0x40de44
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x88]
sub esp, 0x108
mov eax, dword [0x4490e8]
xor eax, ebp
mov dword [ebp + 0x84], eax
push ebx
mov ebx, dword [ebp + 0x90]
push 0x103
lea eax, [ebp - 0x7f]
push 0
push eax
mov byte [ebp - 0x80], 0
call sub.MSVCR90.dll_memset
add esp, 0xc
test ebx, ebx
jne 0x40de85
xor eax, eax
jmp 0x40dedb
push esi
push edi
lea edi, [ebx + 1]
mov al, byte [edi]
test al, al
je 0x40ded6
mov esi, edi
sub esi, ebx
cmp al, 0x5c
jne 0x40dece
push esi
lea eax, [ebp - 0x80]
push ebx
push eax
call sub.MSVCR90.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov byte [ebp + esi - 0x80], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40debe
test al, 0x10
jne 0x40dece
push 0
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x40def3
inc edi
mov al, byte [edi]
inc esi
test al, al
jne 0x40de94
xor eax, eax
inc eax
pop edi
pop esi
mov ecx, dword [ebp + 0x84]
xor ecx, ebp
pop ebx
call fcn.00425cba
add ebp, 0x88
leave
ret 4
xor eax, eax
jmp 0x40ded9

Function at 0x40def7
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x4490e8]
xor eax, ebp
mov dword [ebp + 0x18c], eax
push esi
mov esi, dword [ebp + 0x198]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x7c], ax
lea eax, [ebp - 0x7a]
push eax
mov dword [ebp - 0x80], esi
call sub.MSVCR90.dll_memset
add esp, 0xc
test esi, esi
jne 0x40df3c
xor eax, eax
jmp 0x40dfaa
push ebx
push edi
lea edi, [esi + 2]
movzx eax, word [edi]
xor ecx, ecx
cmp cx, ax
je 0x40dfa5
mov ebx, edi
sub ebx, esi
push 0x5c
pop ecx
cmp cx, ax
jne 0x40df97
mov esi, ebx
sar esi, 1
add esi, esi
push esi
push dword [ebp - 0x80]
lea eax, [ebp - 0x7c]
push eax
call sub.MSVCR90.dll_memcpy
xor eax, eax
mov word [ebp + esi - 0x7c], ax
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40df87
test al, 0x10
jne 0x40df97
push 0
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40dfc2
inc edi
inc edi
movzx eax, word [edi]
inc ebx
xor ecx, ecx
inc ebx
cmp cx, ax
jne 0x40df4f
xor eax, eax
inc eax
pop edi
pop ebx
mov ecx, dword [ebp + 0x18c]
xor ecx, ebp
pop esi
call fcn.00425cba
add ebp, 0x190
leave
ret 4
xor eax, eax
jmp 0x40dfa8
Function at 0x4110c1
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [0x44a000]
push ebp
push esi
mov esi, ecx
test eax, eax
je 0x4110d5
xor eax, eax
jmp 0x41118d
mov eax, dword [esi + 0x24]
push ebx
or ebx, 0xffffffff
push edi
cmp eax, ebx
jne 0x411135
push 0x11
push 0
push str.C:TSLOG_CONFIG_
call dword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationW]
mov dword [esi + 0x24], eax
cmp eax, ebx
je 0x411188
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebp, str.C:TSLOG_CONFIGTSLOG.ini
push ebp
call edi
cmp eax, ebx
jne 0x41112a
mov ebx, str.C:TSLOG_CONFIGTSLOG.txt
push ebx
call edi
cmp eax, 0xffffffff
jne 0x41112a
push ebp
call edi
cmp eax, 0xffffffff
jne 0x41112a
push ebx
call edi
cmp eax, 0xffffffff
je 0x41115b
push 0
mov ecx, esi
call fcn.0041031e
jmp 0x411188
xor edi, edi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, edi
je 0x41115f
cmp eax, 0x102
je 0x41115b
push 0x11
push edi
push str.C:TSLOG_CONFIG_
call dword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationW]
mov dword [esi + 0x24], eax
xor eax, eax
jmp 0x41118b
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_FindCloseChangeNotification]
push edi
mov ecx, esi
mov dword [esi + 0x24], ebx
call fcn.0041031e
test eax, eax
je 0x411188
push 0x11
push edi
push str.C:TSLOG_CONFIG_
call dword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationW]
mov dword [esi + 0x24], eax
xor eax, eax
inc eax
pop edi
pop ebx
pop esi
pop ebp
ret
Function at 0x414492
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x960
mov eax, dword [0x4490e8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x14], edi
jg 0x4144ba
mov eax, 0x80004005
jmp 0x4146c9
cmp dword [esi + 0x10], 1
jne 0x4144b0
push ebx
call fcn.00413fc9
mov ecx, eax
call fcn.00413be7
push str.query_p2sp_task_info
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
cmp ebx, edi
jne 0x4144e9
mov eax, 0x80004005
jmp 0x4146c8
push 0x444
lea eax, [ebp - 0x95c]
push edi
push eax
mov dword [ebp - 0x960], edi
call sub.MSVCR90.dll_memset
add esp, 0xc
lea eax, [ebp - 0x960]
push eax
push dword [esi + 0x14]
call ebx
cmp dword [ebp - 0x960], 0xb
jne 0x41463e
push 0x64
pop ebx
cmp dword [esi + 0x18], ebx
je 0x414538
push ebx
push dword [esi + 0xc]
mov dword [esi + 0x18], ebx
call fcn.00413fc9
mov ecx, eax
call fcn.00413206
xor eax, eax
mov ebx, 0x206
push ebx
mov word [ebp - 0x310], ax
lea eax, [ebp - 0x30e]
push edi
push eax
call sub.MSVCR90.dll_memset
lea edi, [esi + 8]
push dword [edi]
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.MSVCR90.dll_wcscpy]
add esp, 0x14
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call sub.MSVCR90.dll_memset
xor eax, eax
push ebx
mov word [ebp - 0x518], ax
xor ebx, ebx
lea eax, [ebp - 0x516]
push ebx
push eax
call sub.MSVCR90.dll_memset
push dword [ebp - 0x928]
lea eax, [ebp - 0x924]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.MSVCR90.dll_strncat]
add esp, 0x24
push 0x104
lea eax, [ebp - 0x518]
push eax
lea eax, [ebp - 0x108]
push eax
call sub.MSVCR90.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0x108]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x518]
push eax
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x310]
push eax
mov ecx, edi
call fcn.00412136
push dword [edi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov eax, dword [esi]
mov ecx, esi
je 0x4146b4
call dword [eax + 8]
push dword [edi]
push dword [esi + 0xc]
call fcn.00413fc9
mov ecx, eax
call fcn.004132ab
jmp 0x4146c6
cmp dword [ebp - 0x960], 0xc
je 0x4146b0
mov ecx, 0x77c0c352
cmp eax, edi
je 0x414654
cmp eax, ecx
jne 0x4146b0
cmp eax, ecx
je 0x4146ab
mov eax, dword [ebp - 0x944]
or eax, dword [ebp - 0x940]
je 0x4146ab
push edi
push 0x64
pop ebx
push ebx
push dword [ebp - 0x930]
push dword [ebp - 0x934]
call fcn.00426190
push dword [ebp - 0x940]
push dword [ebp - 0x944]
push edx
push eax
call fcn.00426120
cmp eax, ebx
mov dword [esi + 0x18], eax
jle 0x414699
mov dword [esi + 0x18], ebx
push dword [esi + 0x18]
push dword [esi + 0xc]
call fcn.00413fc9
mov ecx, eax
call fcn.00413206
xor eax, eax
inc eax
jmp 0x4146c8
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
push dword [esi + 0xc]
call fcn.00413fc9
mov ecx, eax
call fcn.0041334f
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00425cba
leave
ret
Function at 0x4146d7
Capabilities:
Query environment variable

Disassembly:
push ebp
sub esp, 0x410
lea ebp, [esp - 4]
mov eax, dword [0x4490e8]
xor eax, ebp
mov dword [ebp + 0x410], eax
push 0x18
mov eax, 0x430cd6
call fcn.00425cc9
mov eax, dword [ebp + 0x420]
mov edi, dword [ebp + 0x424]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x414829
test edi, edi
je 0x414829
lea ebx, [ecx + 0x28]
mov eax, dword [ebx + 0x18]
push ebx
push eax
lea ecx, [ebp - 0x14]
call fcn.004127b9
lea eax, [ebp + 0x41c]
push eax
lea eax, [ebp - 0x20]
push eax
mov ecx, ebx
call fcn.0041302f
lea ecx, [ebp - 0x14]
push ecx
mov ecx, eax
call fcn.004120e8
test al, al
jne 0x414755
mov eax, 0x80004005
jmp 0x41482e
xor eax, eax
mov esi, 0x206
push esi
push eax
mov word [ebp + 0x208], ax
lea eax, [ebp + 0x20a]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
push edi
lea eax, [ebp + 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCanonicalizeW]
xor eax, eax
push esi
mov word [ebp], ax
xor esi, esi
lea eax, [ebp + 2]
push esi
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp]
push eax
lea eax, [ebp + 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0x1c
call fcn.00425dd4
pop ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], esi
cmp eax, esi
je 0x4147d3
push edi
push dword [ebp - 0x18]
mov ecx, eax
push dword [ebp + 0x41c]
call fcn.0041259a
mov esi, eax
mov eax, dword [esi]
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call dword [eax]
test eax, eax
jl 0x414817
cmp dword [esi + 0x10], 1
jne 0x414817
mov edi, dword [ebp + 0x41c]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
mov ecx, ebx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], esi
call fcn.00412cef
push 0x414009
push 0x1f4
push edi
push 0
call dword [sym.imp.USER32.dll_SetTimer]
jmp 0x414825
mov ecx, esi
call fcn.004120b0
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
pop ecx
xor eax, eax
jmp 0x41482e
mov eax, 0x80070057
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x410]
xor ecx, ebp
call fcn.00425cba
add ebp, 0x414
leave
ret 0xc
Function at 0x415b73
Capabilities:
Accept command line arguments

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x4490e8]
xor eax, ebp
mov dword [ebp + 0x194], eax
push esi
mov esi, ecx
mov eax, dword [esi + 0x3c]
push edi
xor edi, edi
cmp eax, edi
jne 0x415c5e
mov eax, dword [esi + 0x38]
cmp eax, edi
jne 0x415bad
xor eax, eax
jmp 0x415c5e
push ebx
lea ecx, [ebp - 0x80]
push ecx
push eax
mov dword [ebp - 0x80], edi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, dword [eax]
cmp ebx, edi
je 0x415c5a
xor eax, eax
push 0x206
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push edi
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp - 0x74]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
lea eax, [ebp - 0x74]
push eax
call edi
push ebx
mov dword [ebp - 0x78], eax
call edi
mov edi, dword [sym.imp.MSVCR90.dll__wcsicmp]
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x74]
push ebx
push eax
call edi
pop ecx
pop ecx
test eax, eax
je 0x415c36
push ebx
push dword [ebp - 0x78]
call edi
pop ecx
pop ecx
test eax, eax
je 0x415c36
cmp dword [ebp - 0x7c], 0
je 0x415c5a
push dword [ebp - 0x7c]
push dword [ebp - 0x78]
call edi
pop ecx
pop ecx
test eax, eax
jne 0x415c5a
push ebx
call dword [sym.imp.MSVCR90.dll_wcslen]
pop ecx
mov ecx, dword [esi + 0x38]
lea eax, [ecx + eax*2]
mov dword [esi + 0x3c], eax
jmp 0x415c50
add dword [esi + 0x3c], 2
mov eax, dword [esi + 0x3c]
cmp word [eax], 0x20
jne 0x415c49
add dword [esi + 0x3c], 2
mov eax, dword [esi + 0x3c]
pop ebx
mov ecx, dword [ebp + 0x194]
pop edi
xor ecx, ebp
pop esi
call fcn.00425cba
add ebp, 0x198
leave
ret
Function at 0x415d5a
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0xb8]
sub esp, 0x138
mov eax, dword [0x4490e8]
xor eax, ebp
mov dword [ebp + 0xb4], eax
mov eax, dword [ebp + 0xc0]
push ebx
push esi
push edi
push 0xa
pop ecx
mov esi, str.Thunder_NetworkKanKanPusherxappllv.dll
lea edi, [ebp + 0x88]
rep movsd dword es:[edi], dword [esi]
xor ebx, ebx
push 0x103
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x7b]
push ebx
push eax
movsw word es:[edi], word [esi]
mov byte [ebp - 0x7c], bl
call sub.MSVCR90.dll_memset
lea eax, [ebp - 0x7c]
push eax
call fcn.00415cbb
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendA]
add esp, 0x10
test al, al
je 0x415dff
lea eax, [ebp + 0x88]
push eax
lea eax, [ebp - 0x7c]
push eax
call esi
test eax, eax
je 0x415dff
lea eax, [ebp - 0x7c]
push eax
call edi
test eax, eax
je 0x415dff
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
jne 0x415dff
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x80]
call sub.MSVCR90.dll_strcpy
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x415e4e
push 0x104
lea eax, [ebp - 0x7c]
push ebx
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
push ebx
push 0x2b
lea eax, [ebp - 0x7c]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x415e4c
lea eax, [ebp + 0x88]
push eax
lea eax, [ebp - 0x7c]
push eax
call esi
test eax, eax
je 0x415e4c
lea eax, [ebp - 0x7c]
push eax
call edi
test eax, eax
je 0x415e4c
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
je 0x415dec
xor eax, eax
mov ecx, dword [ebp + 0xb4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00425cba
add ebp, 0xb8
leave
ret
Function at 0x415fa6
Capabilities:
Check if file exists
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x415fbd
xor edx, edx
leave
ret
push ebx
push esi
push edi
xor esi, esi
push esi
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
lea eax, [ebx + 4]
push eax
call dword [sym.imp.MSVCR90.dll_malloc]
pop ecx
mov dword [ebp - 8], eax
test eax, eax
je 0x41607c
push eax
push ebx
push edi
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x416072
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x43ea98
push dword [ebp - 8]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x416072
mov eax, dword [ebp - 4]
mov esi, dword [eax + 8]
mov eax, dword [eax + 0xc]
xor ecx, ecx
or edi, eax
or esi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], esi
cmp dword [ebp + 0xc], ecx
je 0x416072
lea eax, [ebp - 0x38]
push eax
push ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x416072
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x30]
mov edi, dword [ebp - 0x24]
xor edx, edx
or edx, ecx
mov ecx, dword [ebp - 0x20]
xor esi, esi
xor ebx, ebx
or eax, esi
or ecx, ebx
or esi, edi
cmp eax, ecx
jb 0x416060
ja 0x416064
cmp edx, esi
ja 0x416064
mov edx, esi
mov eax, ecx
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp - 0x14]
mov dword [esi], edx
mov dword [esi + 4], eax
mov esi, dword [ebp - 0x10]
push dword [ebp - 8]
call dword [sym.imp.MSVCR90.dll_free]
pop ecx
mov eax, edi
pop edi
mov edx, esi
pop esi
pop ebx
leave
ret

Function at 0x416085
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x4160b2
push ebx
push esi
call dword [sym.imp.MSVCR90.dll_malloc]
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x4160b5
pop ebx
pop esi
leave
ret
push ebx
push esi
push dword [ebp - 4]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x4160d4
xor esi, esi
push ebx
call dword [sym.imp.MSVCR90.dll_free]
pop ecx
mov eax, esi
jmp 0x4160b1
and dword [ebp - 0xc], 0
and dword [ebp - 8], 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0x43ea98
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4160c6
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 8]
test ecx, ecx
je 0x416104
mov dx, word [eax + 0xa]
mov word [ecx], dx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x416112
mov dx, word [eax + 8]
mov word [ecx], dx
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x416120
mov dx, word [eax + 0xe]
mov word [ecx], dx
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x41612e
mov ax, word [eax + 0xc]
mov word [ecx], ax
xor esi, esi
inc esi
jmp 0x4160c8
Function at 0x416133
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x4490e8]
xor eax, ebp
mov dword [ebp + 0x194], eax
push esi
mov esi, dword [ebp + 0x1a0]
lea eax, [ebp - 0x78]
push eax
push 0x20019
push 0
push str.SoftwareThunder_NetworkXmp
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4161cb
push 0x206
push eax
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x80]
push eax
push 0
push str.Path
push dword [ebp - 0x78]
mov dword [ebp - 0x7c], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4161cb
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.MSVCR90.dll_wcslen]
inc eax
push eax
lea eax, [ebp - 0x74]
push eax
push esi
call dword [sym.imp.MSVCR90.dll_wcsncpy]
add esp, 0x10
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x194]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00425cba
add ebp, 0x198
leave
ret

Function at 0x4161ec
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x4490e8]
xor eax, ebp
mov dword [ebp + 0x194], eax
push esi
push edi
xor eax, eax
push 0x206
mov word [ebp - 0x74], ax
xor esi, esi
lea eax, [ebp - 0x72]
push esi
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp - 0x74]
push eax
push esi
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x80], esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
mov dword [ebp - 0x7c], esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
cmp edi, esi
jne 0x416253
xor eax, eax
jmp 0x416289
push ebx
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00425ad2
mov ebx, eax
pop ecx
cmp ebx, esi
je 0x416286
push ebx
push edi
push esi
lea eax, [ebp - 0x74]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x4162a0
push ebx
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
pop ecx
xor eax, eax
pop ebx
mov ecx, dword [ebp + 0x194]
pop edi
xor ecx, ebp
pop esi
call fcn.00425cba
add ebp, 0x198
leave
ret
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push 0x43ea98
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x4162c2
push ebx
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, esi
jmp 0x416288
mov eax, dword [ebp - 0x78]
movzx ecx, word [eax + 0xc]
push ecx
movzx ecx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push eax
push str._d._d._d._d
push 0x168
mov esi, 0x44a348
push esi
call dword [sym.imp.MSVCR90.dll__snwprintf]
add esp, 0x1c
jmp 0x4162b7