joyce8/EMBER2024-capa huggingface dataset:
Function at 0x474779
Capabilities:
Check os version
Create process on windows

Disassembly:
mov eax, 0x4bfcc7
call fcn.004bd430
sub esp, 0x178
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
jne 0x474798
xor eax, eax
jmp 0x47494f
mov eax, dword [0x4f36c4]
push esi
mov ecx, 0x4f36c4
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push str.__s___s
call fcn.00403396
push 0x110
lea eax, [ebp - 0x180]
push ebx
push eax
call fcn.0049cce0
add esp, 0x18
lea eax, [ebp - 0x184]
push eax
mov dword [ebp - 0x184], 0x114
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4747fe
cmp dword [ebp - 0x180], 6
jne 0x4747fe
inc esi
cmp esi, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
lea esi, [ebp - 0x10]
jne 0x474812
call fcn.004443c1
jmp 0x474817
call fcn.00444371
cmp eax, ebx
jne 0x474932
push edi
push 0x40
lea eax, [ebp - 0x6c]
push ebx
push eax
mov dword [ebp - 0x70], 0x44
call fcn.0049cce0
push dword [ebp - 0x10]
xor eax, eax
mov dword [ebp - 0x2c], ebx
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 0x10]
neg eax
sbb eax, eax
and eax, 5
mov dword [ebp - 0x44], 1
mov word [ebp - 0x40], ax
call fcn.0044442c
add esp, 0x10
test al, al
jne 0x47487d
cmp dword [ebp - 0x10], ebx
je 0x474873
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x10], ebx
lea eax, [ebp - 0x10]
push eax
call fcn.004445a6
pop ecx
push str.userenv.dll
mov dword [ebp - 0x68], str.Winsta0Default
mov dword [ebp - 0x14], 0x30
mov dword [ebp + 8], ebx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [ebp - 0x1c], eax
je 0x4748dc
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CreateEnvironmentBlock
push eax
call edi
push str.DestroyEnvironmentBlock
push dword [ebp - 0x1c]
mov esi, eax
call edi
cmp esi, ebx
mov edi, eax
je 0x4748dc
push ebx
push dword [ebp - 0x10]
lea eax, [ebp + 8]
push eax
call esi
test eax, eax
je 0x4748d9
mov dword [ebp - 0x14], 0x430
jmp 0x4748dc
mov dword [ebp + 8], ebx
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x70]
push eax
push ebx
push dword [ebp + 8]
push dword [ebp - 0x14]
push ebx
push ebx
push ebx
push dword [ebp - 0x18]
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
cmp dword [ebp - 0x2c], ebx
mov dword [ebp - 0x14], eax
je 0x47490c
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x28], ebx
je 0x47491a
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebx
je 0x474923
push dword [ebp + 8]
call edi
cmp dword [ebp - 0x1c], ebx
pop edi
je 0x474932
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x10], ebx
pop esi
je 0x474941
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.004027f9
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x47495c
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4bf2ce
call fcn.004bd430
mov eax, dword [ebp + 8]
mov eax, dword [eax]
sub esp, 0xc
push edi
xor edi, edi
cmp dword [eax - 0xc], edi
je 0x474b52
mov eax, dword [0x4f36c4]
push ebx
push esi
mov esi, 0x4f36c4
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], edi
mov eax, dword [0x4f36c4]
mov ecx, esi
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 1
cmp dword [ebx - 0xc], edi
jne 0x474b18
mov eax, dword [ebp + 8]
lea edi, [ebp - 0x14]
call fcn.0040308d
mov ebx, dword [ebp - 0x14]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4749d4
mov esi, edi
call fcn.0040313b
mov ebx, dword [ebp - 0x14]
cmp dword [ebx - 0xc], 0
jne 0x474b18
lea esi, [ebp - 0x10]
call fcn.0040313b
lea edi, [ebp - 0x18]
call fcn.00474e10
mov edi, esi
mov byte [ebp - 4], 5
call fcn.0040308d
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.004027f9
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
je 0x474a76
push eax
lea esi, [ebp - 0x18]
call fcn.00474b61
pop ecx
mov byte [ebp - 4], 6
call fcn.0040308d
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.004027f9
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
mov ecx, edi
call fcn.004112e0
pop ecx
pop ecx
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 7
call fcn.0040308d
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.004027f9
mov ebx, dword [ebp - 0x14]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x474a76
mov esi, edi
call fcn.0040313b
mov ebx, dword [ebp - 0x14]
cmp dword [ebx - 0xc], 0
jne 0x474b18
lea esi, [ebp - 0x10]
call fcn.0040313b
lea edi, [ebp - 0x18]
call fcn.00474eaf
mov edi, esi
mov byte [ebp - 4], 8
call fcn.0040308d
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.004027f9
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
je 0x474b14
push eax
lea esi, [ebp - 0x18]
call fcn.00474b61
pop ecx
mov byte [ebp - 4], 9
call fcn.0040308d
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.004027f9
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
mov ecx, edi
call fcn.004112e0
pop ecx
pop ecx
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 0xa
call fcn.0040308d
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.004027f9
mov ebx, dword [ebp - 0x14]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x474b14
mov esi, edi
call fcn.0040313b
mov ebx, dword [ebp - 0x14]
cmp dword [ebx - 0xc], 0
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
je 0x474b34
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x474b34
push ebx
call esi
mov edi, eax
test edi, edi
jne 0x474b3d
mov eax, dword [ebp + 8]
push dword [eax]
call esi
mov edi, eax
lea eax, [ebx - 0x10]
call fcn.004027f9
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004027f9
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
mov dword fs:[0], ecx
leave
ret
Function at 0x474bee
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi]
xor eax, eax
cmp dword [ecx - 0xc], eax
je 0x474c51
push ebx
push edi
push 0x208
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.0049cce0
add esp, 0xc
mov ebx, str._ALLUSERSPROFILE_
push ebx
xor ecx, ecx
call fcn.004031d3
or edi, 0xffffffff
cmp eax, edi
je 0x474c54
lea eax, [ebp - 0x210]
push eax
push ebx
call fcn.0047511a
pop ecx
test eax, eax
pop ecx
jne 0x474d64
xor eax, eax
pop edi
pop ebx
pop esi
leave
ret
mov ebx, str._APPDATA_
push ebx
xor ecx, ecx
call fcn.004031d3
cmp eax, edi
jne 0x474c36
mov ebx, str._TEMP_
push ebx
xor ecx, ecx
call fcn.004031d3
cmp eax, edi
jne 0x474c36
mov ebx, str._SYSTEM_
push ebx
xor ecx, ecx
call fcn.004031d3
cmp eax, edi
je 0x474ca2
push 0x104
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jbe 0x474c4d
jmp 0x474d64
mov ebx, str._WINDOWS_
push ebx
xor ecx, ecx
call fcn.004031d3
cmp eax, edi
je 0x474cc7
push 0x104
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
jmp 0x474c99
mov ebx, str._CUR_MODULE_
push ebx
xor ecx, ecx
call fcn.004031d3
cmp eax, edi
je 0x474ce9
lea eax, [ebp - 0x210]
push eax
call fcn.00475073
jmp 0x474c44
mov ebx, str._CUR_EXE_MODULE_
push ebx
xor ecx, ecx
call fcn.004031d3
cmp eax, edi
je 0x474d18
push 0x104
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x474c4d
jmp 0x474d57
mov ebx, str._CUR_DIR_
push ebx
xor ecx, ecx
call fcn.004031d3
cmp eax, edi
je 0x474c4d
push 0x20a
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.0049cce0
add esp, 0xc
push 0x105
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x210]
push eax
push ebx
push esi
call fcn.004708f1
push 0x3f
xor ecx, ecx
call fcn.0042a7ca
mov ebx, eax
cmp ebx, edi
je 0x474df6
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.0049f4d0
pop ecx
jmp 0x474de7
and word [ebp + 8], 0
xor eax, eax
lea edi, [ebp + 0xa]
stosw word es:[edi], ax
call fcn.0049f4dd
and eax, 0x8000000f
jns 0x474dad
dec eax
or eax, 0xfffffff0
inc eax
push eax
lea eax, [ebp + 8]
push 0x4d6084
push eax
call fcn.0047635f
movzx edi, word [ebp + 8]
add esp, 0xc
test ebx, ebx
jl 0x474e05
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
cmp ebx, eax
mov dword [ebp - 4], eax
jge 0x474e05
call fcn.004333d9
mov word [eax + ebx*2], di
mov eax, dword [ebp - 4]
mov edx, esi
call fcn.00402944
inc ebx
mov ecx, ebx
mov eax, esi
call fcn.004763da
cmp ax, 0x3f
je 0x474d90
mov eax, esi
call fcn.00473d1e
xor eax, eax
inc eax
jmp 0x474c4f
push 0x80070057
call fcn.00402965
int3
Function at 0x474e10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push esi
xor esi, esi
test byte [0x4f5804], 1
mov dword [ebp - 4], esi
jne 0x474e4f
mov eax, dword [0x4f36c4]
or dword [0x4f5804], 1
mov ecx, 0x4f36c4
call dword [eax + 0xc]
add eax, 0x10
push 0x4c38e5
mov dword [0x4f5800], eax
call fcn.0049b8fc
pop ecx
mov eax, dword [0x4f5800]
cmp dword [eax - 0xc], esi
jne 0x474e98
push 0x20a
lea eax, [ebp - 0x20e]
push esi
push eax
mov word [ebp - 0x210], si
call fcn.0049cce0
add esp, 0xc
push 1
push 0x25
lea eax, [ebp - 0x210]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x210]
push eax
push 0x4f5800
call fcn.004033e6
mov eax, dword [0x4f5800]
add eax, 0xfffffff0
call fcn.0040317b
add eax, 0x10
mov dword [edi], eax
mov eax, edi
pop esi
leave
ret

Function at 0x474eaf
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push esi
xor esi, esi
test byte [0x4f57fc], 1
mov dword [ebp - 4], esi
jne 0x474eee
mov eax, dword [0x4f36c4]
or dword [0x4f57fc], 1
mov ecx, 0x4f36c4
call dword [eax + 0xc]
add eax, 0x10
push 0x4c38f2
mov dword [0x4f57f8], eax
call fcn.0049b8fc
pop ecx
mov eax, dword [0x4f57f8]
cmp dword [eax - 0xc], esi
jne 0x474f37
push 0x20a
lea eax, [ebp - 0x20e]
push esi
push eax
mov word [ebp - 0x210], si
call fcn.0049cce0
add esp, 0xc
push 1
push 0x24
lea eax, [ebp - 0x210]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x210]
push eax
push 0x4f57f8
call fcn.004033e6
mov eax, dword [0x4f57f8]
add eax, 0xfffffff0
call fcn.0040317b
add eax, 0x10
mov dword [edi], eax
mov eax, edi
pop esi
leave
ret

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

Disassembly:
mov eax, 0x4bef1b
call fcn.004bd430
sub esp, 0x20c
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov ecx, 0x4f36c4
mov dword [ebp - 0x10], edi
call fcn.00402b17
push 0x206
lea eax, [ebp - 0x216]
mov dword [ebp - 4], edi
push edi
push eax
mov dword [ebp - 0x10], 1
mov word [ebp - 0x218], di
call fcn.0049cce0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push edi
push edi
push 0x26
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x474fd0
push str.Internet_Exploreriexplore.exe
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.004033e6
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x47511a
Capabilities:
Query environment variable

Disassembly:
push 0x14
push 0x4e01f0
call fcn.004bd298
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp + 8], eax
je 0x4751c8
cmp dword [ebp + 0xc], eax
je 0x4751c8
push eax
push eax
push dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
call edi
mov esi, eax
cmp esi, 1
jb 0x4751c8
mov ebx, 0x103
cmp esi, ebx
ja 0x4751c8
and dword [ebp - 4], 0
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00487dae
pop ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x4751c4
lea ecx, [esi + esi]
push ecx
push 0
push eax
call fcn.0049cce0
add esp, 0xc
push esi
push dword [ebp - 0x24]
push dword [ebp + 8]
call edi
test eax, eax
je 0x4751c4
cmp eax, ebx
ja 0x4751c4
push eax
push dword [ebp - 0x24]
push ebx
push dword [ebp + 0xc]
call fcn.0049fb34
add esp, 0x10
mov dword [ebp - 0x20], 1
jmp 0x4751c4
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x1c], 0
je 0x4751d7
push dword [ebp - 0x1c]
call fcn.0049bc75
pop ecx
mov eax, dword [ebp - 0x20]
call fcn.004bd2d3
ret

Function at 0x4752c3
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4bef1b
call fcn.004bd430
sub esp, 0x20c
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
push 0x206
mov dword [ebp - 4], edi
lea eax, [ebp - 0x216]
push edi
mov dword [ebp - 0x10], edi
push eax
mov word [ebp - 0x218], di
call fcn.0049cce0
add esp, 0xc
mov ecx, 0x4f36c4
call fcn.00402b17
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 4], edi
push 0x104
mov dword [ebp - 0x10], 1
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, edi
je 0x47534b
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.004033e6
push str.kinst.log
push esi
call fcn.0042a756
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x47535b
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
push esi
push edi
push 0x4ce95c
lea eax, [ebp - 4]
push eax
xor esi, esi
xor edi, edi
call fcn.00403217
push 0x228
lea eax, [ebp - 0x22c]
push esi
push eax
mov dword [ebp - 0x230], esi
call fcn.0049cce0
add esp, 0xc
push esi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x4753f8
lea eax, [ebp - 0x230]
push eax
push esi
mov dword [ebp - 0x230], 0x22c
call sub.KERNEL32.dll_Process32FirstW
jmp 0x4753dd
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 4]
call fcn.0049f60e
test eax, eax
pop ecx
pop ecx
je 0x4753e3
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4753bb
jmp 0x4753f1
mov eax, dword [ebp - 0x228]
mov ecx, dword [ebp + 8]
xor edi, edi
mov dword [ecx], eax
inc edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.004027f9
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x475714
Capabilities:
Create directory
Delete directory

Disassembly:
mov eax, 0x4be7df
call fcn.004bd430
push esi
push edi
and dword [ebp - 4], 0
push str._access
lea eax, [ebp + 8]
push eax
call fcn.0042a756
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call esi
test edi, edi
je 0x475756
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x47575d
call esi
cmp eax, 5
je 0x475760
xor edi, edi
inc edi
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.004027f9
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x475b8f
Capabilities:
Move file

Disassembly:
mov eax, 0x4c03e5
call fcn.004bd430
sub esp, 0x38
push esi
push edi
and dword [ebp - 4], 0
lea esi, [ebp + 8]
call fcn.004333d9
push eax
lea eax, [ebp - 0x44]
call fcn.0044561d
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 1
call fcn.004457e0
lea eax, [ebp - 0x28]
call fcn.00446051
movzx edi, al
test edi, edi
jne 0x475bff
cmp dword [ebp - 0x14], 0x104
jb 0x475be0
xor al, al
jmp 0x475bfc
cmp dword [ebp - 0x10], 8
mov eax, dword [ebp - 0x24]
jae 0x475bec
lea eax, [ebp - 0x24]
push 5
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
setne al
movzx edi, al
push 0
push 1
lea esi, [ebp - 0x28]
call fcn.0042ed7f
push 0
push 1
lea esi, [ebp - 0x44]
call fcn.0042ed7f
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.004027f9
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
mov dword fs:[0], ecx
pop esi
leave
ret
Function at 0x4767b4
Capabilities:
Check if file exists
Delete file

Disassembly:
mov eax, 0x4c19bd
call fcn.004bd430
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
sub esp, 0x9c
push ebx
xor ebx, ebx
cmp ecx, ebx
push esi
push edi
je 0x476928
mov edi, dword [ebp + 0xc]
mov ecx, dword [edi]
cmp dword [ecx - 0xc], ebx
je 0x476928
push eax
lea esi, [ebp - 0xa4]
call fcn.004024ae
mov dword [ebp - 4], ebx
push dword [eax]
lea eax, [ebp + 8]
push eax
call fcn.00428953
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 2
cmp dword [ebp - 0xa4], eax
je 0x47681f
push dword [ebp - 0xa4]
call fcn.0049bd0b
pop ecx
mov ecx, 0x4f36c4
lea esi, [ebp - 0x14]
mov dword [ebp - 0x20], 0x4d61e0
call fcn.00402b17
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 4], 3
push dword [edi]
mov eax, esi
push eax
call fcn.004033e6
mov eax, dword [ebp + 0x14]
cmp eax, ebx
je 0x476854
mov dword [ebp - 0x18], eax
push dword [ebp + 8]
lea ebx, [ebp - 0x20]
call fcn.004766e9
push dword [edi]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call esi
test eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
je 0x476877
push dword [edi]
call ebx
cmp dword [ebp + 0x18], 0
lea edi, [ebp - 0x20]
jne 0x476887
push 0x12c
jmp 0x47688a
push dword [ebp + 0x18]
push dword [ebp + 8]
call fcn.004763f5
mov edi, eax
test edi, edi
mov eax, dword [ebp + 0xc]
pop ecx
pop ecx
je 0x4768dc
push dword [eax]
call ebx
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4768aa
mov dword [eax], edi
cmp dword [ebp - 0x10], 0
je 0x4768bd
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x10], 0
mov esi, 0xfa
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004027f9
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.004027f9
mov eax, esi
jmp 0x47692b
push dword [eax]
call esi
test eax, eax
jne 0x4768fb
cmp dword [ebp - 0x10], eax
je 0x4768f6
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x10], 0
push 0x35
pop esi
jmp 0x4768c2
cmp dword [ebp - 0x10], 0
je 0x47690e
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004027f9
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.004027f9
xor eax, eax
jmp 0x47692b
push 0x33
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x4775c1
Capabilities:
Check if file exists

Disassembly:
mov eax, dword [esi + 0xc]
cmp dword [eax - 0xc], 0
jne 0x4775d0
mov eax, 0x13a
ret
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4775e1
mov eax, 0x13b
ret
push dword [esi + 0x20]
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
push eax
push ecx
call fcn.00474779
add esp, 0xc
test eax, eax
je 0x4775fb
xor eax, eax
ret
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
push eax
push ecx
mov ecx, dword [esi + 0x20]
call fcn.004744df
test eax, eax
pop ecx
pop ecx
jne 0x4775f8
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
push 0
push eax
push ecx
mov ecx, dword [esi + 0x20]
call fcn.00473c3e
add esp, 0xc
neg eax
sbb eax, eax
and eax, 0xfffffec7
add eax, 0x139
ret

Function at 0x477a10
Capabilities:
Send icmp echo request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
and dword [ebp - 8], 0
push esi
push edi
call fcn.00477adc
test al, al
jne 0x477a2d
or eax, 0xffffffff
jmp 0x477ad8
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
lea ecx, [ebp - 8]
push ecx
push eax
call fcn.00477b9e
test al, al
pop ecx
pop ecx
je 0x477a25
and dword [ebp - 4], 0
mov esi, str.Data_Buffer
lea edi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call sub.iphlpapi.dll_IcmpCreateFile
mov edi, eax
cmp edi, 0xffffffff
jne 0x477a62
xor eax, eax
jmp 0x477ad8
push dword [ebp - 8]
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
jne 0x477a7b
push edi
call sub.iphlpapi.dll_IcmpCloseHandle
jmp 0x477a5e
push 0x28
call fcn.0049cabc
mov esi, eax
test esi, esi
pop ecx
je 0x477a73
mov dword [ebp - 8], 2
push 0x3e8
push 0x28
push esi
push 0
push 0xc
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0xc]
push edi
call sub.iphlpapi.dll_IcmpSendEcho
test eax, eax
je 0x477ab6
cmp dword [esi + 4], 0
jne 0x477ab6
inc dword [ebp - 4]
dec dword [ebp - 8]
jne 0x477a90
push esi
call fcn.0049bd0b
pop ecx
push edi
call sub.iphlpapi.dll_IcmpCloseHandle
call fcn.00477b5a
test al, al
je 0x477a25
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret

Function at 0x477adc
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
push esi
lea eax, [ebp - 0x1a0]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, 0xffffffff
jne 0x477b40
push 0x4f3538
call fcn.00477c1f
pop ecx
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push ecx
push str.WSAGetLastError____
push ecx
push str.An_error_occured_in_WSAStartup_operation:
push esi
call fcn.0044be3a
add esp, 0xc
push eax
call fcn.0044be3a
add esp, 0xc
push eax
call fcn.0044ac57
mov esi, eax
call fcn.00477c0c
xor al, al
jmp 0x477b57
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
movzx eax, word [ebp - 2]
push eax
call fcn.0049f4d0
pop ecx
mov al, 1
pop esi
leave
ret
Function at 0x477b9e
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x477be4
push 0x4f3538
call fcn.00477c1f
pop ecx
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push ecx
push str.An_error_occured_in_gethostbyname_operation:_WSAGetLastError____
push esi
call fcn.0044be3a
add esp, 0xc
push eax
call fcn.0044ac57
mov esi, eax
call fcn.00477c0c
xor al, al
jmp 0x477c09
mov eax, dword [eax + 0xc]
push 4
push dword [eax]
lea eax, [ebp - 4]
push 4
push eax
call fcn.0049cb7f
add esp, 0x10
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov al, 1
pop esi
leave
ret

Function at 0x478412
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags
Get process heap force flags

Disassembly:
mov eax, 0x4be78c
call fcn.004bd430
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, 0x4cc208
push ebx
lea eax, [edi + 0xc]
xor esi, esi
push eax
mov dword [edi], vtable.KInstallTool::KUIInfoReport.0
mov dword [edi + 4], esi
mov dword [edi + 8], esi
call fcn.00403217
push ebx
lea eax, [edi + 0x10]
push eax
mov dword [ebp - 4], esi
call fcn.00403217
lea esi, [edi + 0x14]
mov ecx, 0x4f36c4
mov byte [ebp - 4], 1
call fcn.00402b17
push ebx
lea eax, [edi + 0x18]
push eax
mov byte [ebp - 4], 2
call fcn.00403217
push ebx
lea eax, [edi + 0x1c]
push eax
mov byte [ebp - 4], 3
call fcn.00403217
push ebx
lea eax, [edi + 0x20]
push eax
mov byte [ebp - 4], 4
call fcn.00403217
and dword [edi + 0x2c], 0
and dword [edi + 0x30], 0
mov ecx, dword [ebp - 0xc]
mov byte [edi + 0x24], 0
mov byte [edi + 0x25], 0
mov byte [edi + 0x26], 0
mov byte [edi + 0x27], 0
mov byte [edi + 0x28], 2
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x478a68
Capabilities:
Terminate thread

Disassembly:
push ecx
and dword [esp], 0
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ebp, [esi + 0x2c]
push ebp
call edi
lea ebx, [esi + 0x14]
push ebx
call edi
cmp byte [esi + 4], 0
jne 0x478a95
mov dword [esp + 0x10], 0xfffffffd
jmp 0x478aad
push 0
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esi + 4], 0
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
call esi
push ebp
call esi
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret