joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40827a
Capabilities:
Create pipe
Create process on windows
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x470
push ebx
push esi
push edi
push 0xc
pop esi
xor ebx, ebx
push esi
lea eax, [ebp - 0x18]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x18]
xor edi, edi
mov dword [ebp - 0x18], esi
push 0x400
push eax
lea eax, [ebp - 0xc]
inc edi
push eax
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x4082c5
or eax, 0xffffffff
jmp 0x4083bf
push 0x44
lea eax, [ebp - 0x6c]
pop esi
push esi
push ebx
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [ebp - 0xc]
add esp, 0xc
mov dword [ebp - 0x6c], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xfffffffffffffff6
mov dword [ebp - 0x30], eax
call esi
push 0xfffffffffffffff4
mov dword [ebp - 0x34], eax
call esi
or byte [ebp - 0x3f], 1
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x470]
push eax
call fcn.00408079
cmp eax, ebx
pop ecx
jne 0x4083bf
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x470]
push 0x4181d8
push eax
call esi
push dword [ebp + 8]
lea eax, [ebp - 0x470]
push eax
call esi
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x6c]
push eax
push ebx
push ebx
push ebx
push edi
push ebx
lea eax, [ebp - 0x470]
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4083aa
push 0xffffffffffffffff
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, dword [ebp + 0xc]
push edi
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x28]
call esi
push dword [ebp - 0x24]
call esi
cmp dword [edi], ebx
jne 0x4083b0
cmp dword [ebp + 0x10], ebx
je 0x4083b3
mov edi, dword [ebp + 0x14]
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [edi - 1]
push eax
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4083aa
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0x10]
dec edi
mov byte [eax + ecx], bl
cmp dword [ebp - 8], edi
jge 0x4083b0
jmp 0x4083b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
or ebx, 0xffffffff
push dword [ebp - 4]
call esi
push dword [ebp - 0xc]
call esi
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40968c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov dword [0x420310], 2
call fcn.00409bdf
mov esi, dword [sym.imp.USER32.dll_CheckDlgButton]
push 1
push 0x407
push dword [0x42030c]
call esi
push 0
push 0x406
push dword [0x42030c]
call esi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 5
push dword [0x41fe54]
call esi
push 5
push dword [0x41fea8]
call esi
push 5
push dword [0x41fedc]
call esi
mov edi, dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push 1
mov ebx, 0xf4
push 1
push ebx
push 0x66
push dword [0x42030c]
call edi
push 0
push 1
push ebx
push 0x6e
push dword [0x42030c]
call edi
push dword [0x41fea4]
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [0x425530]
cmp dword [eax + 0x20], 0
je 0x409730
push 5
push dword [0x41feb4]
call esi
push 5
push dword [0x41fea4]
call esi
pop edi
pop esi
pop ebx
ret

Function at 0x4097ee
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
xor ebx, ebx
push edi
push ebx
push ebx
push 0xe
push dword [0x41fe4c]
call esi
push 0x14
pop edi
cmp eax, edi
jle 0x40980e
mov eax, edi
inc eax
push 0x4252a8
push eax
push 0xd
push dword [0x41fe4c]
call esi
push ebx
push ebx
push 0xe
push dword [0x41fee0]
call esi
cmp eax, edi
jle 0x409831
mov eax, edi
inc eax
push 0x4252be
push eax
push 0xd
push dword [0x41fee0]
call esi
push ebx
push ebx
push 0xe
push dword [0x41fed8]
call esi
cmp eax, 0x28
jle 0x409856
push 0x28
pop eax
mov edi, 0x4252d4
inc eax
push edi
push eax
push 0xd
push dword [0x41fed8]
call esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
call esi
test eax, eax
jle 0x4098b0
push edi
call esi
xor ecx, ecx
add eax, 0xfffffffe
inc ecx
cmp eax, ecx
jle 0x409890
cmp byte [ecx + 0x4252d4], 0x40
je 0x4098b0
inc ecx
cmp ecx, eax
jl 0x409882
cmp byte [ecx + 0x4252d4], 0x40
je 0x4098b0
push ebx
push ebx
push str.Please_enter_a_well_formed_email_address:__name_domain
push dword [0x42030c]
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x4098b3
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
ret

Function at 0x409d54
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ebp
push esi
push edi
mov dword [0x420310], 7
call fcn.00409bdf
mov esi, dword [sym.imp.USER32.dll_CheckDlgButton]
push 1
push 0x40a
push dword [0x42030c]
call esi
push 0
push 0x406
push dword [0x42030c]
call esi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 5
pop ebp
push ebp
push dword [0x41fe54]
call esi
push ebp
push dword [0x41fee4]
call esi
push ebp
push dword [0x41fe48]
call esi
push ebp
push dword [0x41fec8]
call esi
mov edi, dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push 0
mov ebx, 0xf4
push 1
push ebx
push 0x66
push dword [0x42030c]
call edi
push 1
push 1
push ebx
push 0x70
push dword [0x42030c]
call edi
push ebp
push dword [0x41feec]
call esi
push ebp
push dword [0x41fe44]
call esi
push dword [0x41feec]
call dword [sym.imp.USER32.dll_SetFocus]
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, dword [0x425530]
xor ecx, ecx
mov byte [0x420320], cl
cmp dword [eax + 0x20], ecx
je 0x409d6b
jmp 0x40973e
cmp dword [eax + 0x24], ecx
je 0x409d75
jmp fcn.0040968c
jmp fcn.00409d7a
Function at 0x409d7a
Capabilities:
Create thread

Disassembly:
push ecx
mov eax, dword [0x425530]
push esi
xor esi, esi
cmp dword [eax + 0x28], esi
je 0x409db6
call fcn.004095df
lea eax, [esp + 4]
push eax
push esi
push esi
push fcn.0040aceb
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
mov dword [0x418244], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x418244], 0xffffffff
jmp 0x409dd6
push esi
push dword [0x42030c]
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call fcn.0040aceb
push eax
push dword [0x42030c]
call dword [sym.imp.USER32.dll_EndDialog]
pop esi
pop ecx
ret

Function at 0x409e4b
Capabilities:
Hide graphical window

Disassembly:
push esi
push 5
push dword [0x41fe88]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x41fe88]
call dword [sym.imp.USER32.dll_SetFocus]
push 1
mov esi, 0xf4
push 1
push esi
push dword [0x41fe88]
call dword [sym.imp.USER32.dll_SendMessageA]
push 0x41df00
push 0x6c
push dword [0x42030c]
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
push 1
push 0
push esi
push 0x6c
push dword [0x42030c]
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
pop esi
ret

Function at 0x40a1a9
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi]
dec eax
je 0x40a1eb
dec eax
je 0x40a1bc
or eax, 0xffffffff
jmp 0x40a207
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 0xc]
push edi
mov edi, dword [ebp + 0xc]
lea edx, [ecx + edi]
cmp edx, eax
jb 0x40a1d1
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 8]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
add dword [esi + 0x10], edi
mov eax, edi
pop edi
jmp 0x40a207
lea eax, [ebp + 0xc]
push 0
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40a1b7
mov eax, dword [ebp + 0xc]
pop esi
pop ebp
ret 8

Function at 0x40a20c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi]
dec eax
je 0x40a24e
dec eax
je 0x40a21f
or eax, 0xffffffff
jmp 0x40a26a
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 0xc]
push edi
mov edi, dword [ebp + 0xc]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x40a234
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 8]
push edi
push dword [ebp + 8]
add eax, ecx
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
add dword [esi + 0x10], edi
mov eax, edi
pop edi
jmp 0x40a26a
lea eax, [ebp + 0xc]
push 0
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40a21a
mov eax, dword [ebp + 0xc]
pop esi
pop ebp
ret 8
Function at 0x40b1b2
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push str.WTInstallPackageDelimiter
call dword [sym.imp.KERNEL32.dll_lstrlenA]
xor edi, edi
mov dword [ebp - 8], eax
cmp dword [ebp + 8], edi
je 0x40b244
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
cmp eax, 1
jl 0x40b244
shl eax, 2
push eax
push edi
push dword [ebp + 8]
call sub.MSVCRT.dll_memset
add esp, 0xc
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push 0x425538
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40b244
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea eax, [ebx + 1]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov edi, eax
lea eax, [ebp - 0x10]
push 0
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x10], ebx
je 0x40b24b
push edi
call fcn.00413f94
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov ecx, dword [ebp + 8]
and byte [edi + ebx], 0
and dword [ebp - 4], 0
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 8]
add ecx, 0xe8
mov esi, 0x4e20
mov dword [ebp + 8], ecx
lea ecx, [eax + esi + 2]
cmp ecx, ebx
jae 0x40b28a
lea ecx, [esi + eax + 2]
cmp byte [esi + edi], 0x58
jne 0x40b284
cmp byte [esi + edi + 1], 0x58
je 0x40b28a
inc esi
inc ecx
cmp ecx, ebx
jb 0x40b277
lea ecx, [eax + esi + 2]
cmp ecx, ebx
jae 0x40b2b6
push eax
push str.WTInstallPackageDelimiter
push eax
lea eax, [esi + edi + 2]
push eax
push 0
push 0x800
call dword [sym.imp.KERNEL32.dll_CompareStringA]
cmp eax, 2
mov eax, dword [ebp - 8]
je 0x40b2b8
inc esi
jmp 0x40b26b
mov esi, ebx
mov ecx, dword [ebp - 0xc]
test ecx, ecx
jbe 0x40b2dc
mov edx, dword [ebp + 8]
add ecx, edi
mov dword [edx - 4], ecx
mov ecx, esi
sub ecx, dword [ebp - 0xc]
mov dword [edx], ecx
and byte [esi + edi], 0
inc dword [ebp - 4]
add dword [ebp + 8], 0x134
lea ecx, [eax + 2]
add esi, ecx
cmp esi, ebx
mov dword [ebp - 0xc], esi
jae 0x40b2fb
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 4]
cmp edx, dword [ecx]
jl 0x40b26b
jmp 0x40b244
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
xor eax, eax
inc eax
jmp 0x40b246
Function at 0x40bf69
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 0x14]
push ebx
xor ebx, ebx
push edi
push ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0x30
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.ole32.dll_CoInitialize]
cmp eax, ebx
je 0x40bfa2
cmp eax, 1
jne 0x40bff6
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 0xc], 0x40be87
mov dword [ebp - 0x20], eax
mov dword [0x420338], edi
je 0x40bfcc
cmp dword [ebp + 0xc], edi
je 0x40bfcc
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp + 0x18]
mov dword [0x425174], eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderA]
cmp eax, ebx
jne 0x40bfea
cmp dword [0x425644], ebx
jmp 0x40bff4
push edi
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
jne 0x40bffa
xor eax, eax
jmp 0x40c01c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push edi
call esi
cmp eax, 0xffffffff
je 0x40c013
push edi
call esi
test al, 0x10
je 0x40c013
xor ebx, ebx
inc ebx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, ebx
pop esi
pop edi
pop ebx
leave
ret

Function at 0x40c03e
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
cmp dword [ebp + 8], 0
lea eax, [ebp - 0x140]
je 0x40c064
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00402c1d
add esp, 0xc
jmp 0x40c06e
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x3c
lea eax, [ebp - 0x3c]
push 0
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0x140]
add esp, 0xc
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], pe_nt_image_headers32
mov dword [ebp - 0x30], str.open
mov dword [ebp - 0x20], 0xa
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
leave
ret
Function at 0x40c0af
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x350
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], 0x20a
lea eax, [ebp - 0x144]
je 0x40c0e4
push dword [ebp + 8]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x40c0eb
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x350]
push eax
push dword [ebp + 0x10]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
je 0x40c10c
xor eax, eax
jmp 0x40c157
mov eax, dword [ebp - 4]
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x3c], pe_nt_image_headers32
mov dword [ebp - 0x38], ebx
mov byte [ebp + eax - 0x350], bl
lea eax, [ebp - 0x350]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x144]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x34], str.open
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], 0xa
mov dword [ebp - 0x20], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
pop ebx
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
push str.WININET.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
jne 0x40c37e
cmp dword [0x425528], eax
jne 0x40c3d7
push 0x10
push str.Installation_Error
push str.Sorry__unable_to_install_the_Web_Driver._nYou_need_to_have_wininet.dll_installed._nInternet_Explorer_3.0_or_later_will_automatically_install_this_dll_for_you.
jmp 0x40c3cf
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x104]
push 1
push eax
call fcn.004025e2
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
pop ecx
pop ecx
lea eax, [ebp - 0x104]
push eax
call esi
cmp eax, 0xffffffff
je 0x40c3ba
lea eax, [ebp - 0x104]
push eax
call esi
test al, 0x10
je 0x40c3ba
xor eax, eax
jmp 0x40c3da
cmp dword [0x425528], 0
jne 0x40c3d7
push 0x10
push str.Installation_Error
push str.Sorry__unable_to_install_the_Web_Driver._nYou_need_to_have_write_permission_to_the_windows_directory_or_Program_Files_to_install.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
inc eax
pop esi
leave
ret
Function at 0x40c498
Capabilities:
Check mutex on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor ebx, ebx
push str.wtMutexCmdMgr
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40c50b
push 0x2710
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, eax
mov eax, 0x102
cmp ecx, eax
je 0x40c511
cmp ecx, 0xffffffff
je 0x40c50b
push str.WildTangentMemory
push ebx
push 0xf001f
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov edi, eax
cmp edi, ebx
je 0x40c588
push 0xfd0
push ebx
push ebx
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
cmp esi, ebx
jne 0x40c516
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
leave
ret
lea eax, [ebp - 8]
push eax
push esi
call fcn.004081bd
pop ecx
cmp eax, ebx
pop ecx
jne 0x40c511
lea eax, [ebp - 0xc]
push eax
push esi
call fcn.0040821b
pop ecx
cmp eax, ebx
pop ecx
jne 0x40c511
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [ebp - 4]
call esi
push dword [ebp - 8]
push ebx
push 0x1f0000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40c56f
xor eax, eax
inc eax
jmp 0x40c511
push ebx
push ebx
push 0x10
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_SendMessageA]
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call esi
xor eax, eax
jmp 0x40c511
Function at 0x40c8ac
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
lea eax, [ebp - 0x104]
push 0x104
push eax
call fcn.004083c4
pop ecx
test eax, eax
pop ecx
je 0x40c935
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.004025e2
pop ecx
test eax, eax
pop ecx
je 0x40c935
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x104]
push 0x417064
push eax
call esi
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp - 0x104]
push str.wcmdmgr.exe
push eax
call esi
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
pop esi
je 0x40c935
call fcn.0040c498
test eax, eax
je 0x40c930
xor eax, eax
leave
ret
call fcn.0040c58c
xor eax, eax
inc eax
leave
ret
Function at 0x40c93a
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x710
push ebx
push esi
push edi
push 0
call fcn.0040328c
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop ecx
push eax
lea eax, [ebp - 0x710]
push eax
call edi
mov eax, dword [ebp + 8]
push str.UPDATER
push dword [eax + 0xbc]
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40cb30
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
mov esi, 0x4251a0
push str.backup
push esi
lea eax, [ebp - 0x108]
push str._s_s
push eax
call ebx
add esp, 0x10
push 0x425070
push 0x425318
call edi
call fcn.0040cd19
test eax, eax
jne 0x40c9b8
push 6
jmp 0x40ca62
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea eax, [ebp - 0x108]
push eax
call edi
cmp eax, 0xffffffff
je 0x40c9d9
lea eax, [ebp - 0x108]
push eax
call edi
test al, 0x10
jne 0x40c9f1
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.00402868
pop ecx
test eax, eax
pop ecx
jne 0x40c9f1
push 7
jmp 0x40ca62
call fcn.0040c8ac
cmp dword [0x42530c], 0
je 0x40ca68
mov eax, dword [0x425530]
cmp dword [eax + 0x38], 0xffffffff
jle 0x40ca68
push dword [0x420400]
lea ecx, [ebp - 0x710]
push str.wcmdmgr.exe
call fcn.004034c1
cmp dword [0x42530c], 0
je 0x40ca68
mov eax, dword [0x425530]
and dword [0x42563c], 0
push esi
mov eax, dword [eax + 0xf0]
mov dword [eax + 4], 0x40c2a7
mov eax, dword [0x425530]
mov ecx, dword [eax + 0xf0]
call fcn.00401e00
test eax, eax
je 0x40ca60
cmp dword [0x42563c], 0
je 0x40ca68
push 5
pop eax
jmp 0x40cb32
push str.wcmdmgr.exe
push esi
lea eax, [ebp - 0x60c]
push str._s_s
push eax
call ebx
add esp, 0x10
lea eax, [ebp - 0x60c]
push eax
call edi
cmp eax, 0xffffffff
je 0x40cb26
lea eax, [ebp - 0x60c]
push eax
call edi
test al, 1
je 0x40cab0
lea eax, [ebp - 0x60c]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x60c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push str.wcmdmgrl.exe
push esi
lea eax, [ebp - 0x60c]
push str._s_s
push eax
call ebx
add esp, 0x10
lea eax, [ebp - 0x60c]
push eax
call edi
test al, 1
je 0x40caf3
lea eax, [ebp - 0x60c]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x60c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
lea eax, [ebp - 0x60c]
push str._registerapp_wtwebdriver__appexe_____applongname__WildTangent_WebDriver___apppath___s___updateurl_http:__updaterservice.wildtangent.com__dltype_1__updatetype_3__verifytype_2__interval_1500__phasekey_____requestedversion___
push eax
call ebx
push 0
lea eax, [ebp - 4]
push 0
push eax
lea eax, [ebp - 0x60c]
push eax
call fcn.0040827a
add esp, 0x1c
mov dword [0x425308], 1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40cc46
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov eax, dword [esi + 0x7c]
cmp eax, ebx
je 0x40cd11
cmp byte [eax], bl
je 0x40cd11
push dword [esi + 0x54]
lea eax, [ebp - 0x208]
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp + 8]
push ebx
push eax
push ebx
push 0x2001f
push ebx
push ebx
lea eax, [ebp - 0x208]
push ebx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40cccc
push dword [esi + 0x58]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
call edi
push eax
push dword [esi + 0x58]
push 1
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push str.DisplayName
push dword [ebp + 8]
call ebx
test eax, eax
je 0x40ccd0
xor eax, eax
jmp 0x40cd14
push dword [esi + 0x7c]
lea eax, [ebp - 0x208]
push dword [ebp + 0xc]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x208]
push eax
call edi
push eax
lea eax, [ebp - 0x208]
push eax
push 1
push 0
push str.UninstallString
push dword [ebp + 8]
call ebx
neg eax
sbb eax, eax
inc eax
jmp 0x40cd14
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40cd82
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x504
push ebx
push esi
push edi
call fcn.0040c498
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push str.wcmdmgr.exe
mov ebx, str._s_s
push 0x4251a0
lea eax, [ebp - 0x504]
push ebx
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
add esp, 0x10
lea eax, [ebp - 0x504]
push eax
call edi
test al, 1
je 0x40cdda
lea eax, [ebp - 0x504]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x504]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push str.wcmdmgrl.exe
push 0x4251a0
lea eax, [ebp - 0x504]
push ebx
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x504]
push eax
call edi
pop edi
pop esi
test al, 1
pop ebx
je 0x40ce20
lea eax, [ebp - 0x504]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x504]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
inc eax
leave
ret

Function at 0x40f24c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ecx
push edx
push esi
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov edx, ecx
cmp edx, 4
jl 0x40f293
cmp edx, 0x10
jl 0x40f27f
shr ecx, 4
nop
xor eax, dword [ebx]
mov esi, dword [ebx + 4]
xor eax, dword [ebx + 8]
xor esi, dword [ebx + 0xc]
add ebx, 0x10
xor eax, esi
dec ecx
jne 0x40f26c
mov ecx, edx
shr ecx, 2
and ecx, 3
test ecx, ecx
je 0x40f293
xor eax, dword [ebx]
add ebx, 4
dec ecx
jne 0x40f28b
and edx, 3
cmp edx, 3
jne 0x40f2a7
xor ecx, ecx
mov cl, byte [ebx]
inc ebx
shl ecx, 0x10
xor eax, ecx
jmp 0x40f2ac
cmp edx, 2
jne 0x40f2b8
xor ecx, ecx
mov cl, byte [ebx]
inc ebx
shl ecx, 8
xor eax, ecx
jmp 0x40f2bd
cmp edx, 1
jne 0x40f2c3
xor ecx, ecx
mov cl, byte [ebx]
xor eax, ecx
pop esi
pop edx
pop ecx
pop ebx
ret