joyce8/EMBER2024-capa huggingface dataset:
Function at 0x419720
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x5c2b50]
xor eax, ebp
mov dword [ebp - 4], eax
movdqu xmm0, xmmword [ebp + 0xc]
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x20]
push edi
movdqu xmmword [ebp - 0x14], xmm0
test eax, eax
jne 0x4197dc
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str._n______________________________________________________________________________________________n
call edi
push 0x800
call fcn.005369fe
push 0x800
mov esi, eax
push 0
push esi
call fcn.00537300
push 0x57
push str.CheckSetupSignature
push 0x613
push str.c:devdragon_release_sync_srcdragonupdateservicedragonupdateservicedragon_update_api.cpp
push str.CD_Module
push str._s_____s____d____s___returned__d
push 0x800
push esi
call fcn.00406430
add esp, 0x30
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
push 0x613
push str.CheckSetupSignature
call fcn.00404610
add esp, 0xc
test esi, esi
je 0x4197c0
push esi
call fcn.005369c6
add esp, 4
push str._n______________________________________________________________________________________________n
call edi
pop edi
mov eax, 0x57
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00536ab6
mov esp, ebp
pop ebp
ret
push 0x5707d4
push eax
call fcn.005387ee
add esp, 8
test eax, eax
je 0x41980f
push eax
call fcn.00538939
add esp, 4
mov dword [esi], 1
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00536ab6
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str._n______________________________________________________________________________________________n
call edi
push 0x800
call fcn.005369fe
push 0x800
mov esi, eax
push 0
push esi
call fcn.00537300
push 2
push str.CheckSetupSignature
push 0x618
push str.c:devdragon_release_sync_srcdragonupdateservicedragonupdateservicedragon_update_api.cpp
push str.CD_Module
push str._s_____s____d____s___returned__d
push 0x800
push esi
call fcn.00406430
add esp, 0x30
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
push 0x618
push str.CheckSetupSignature
call fcn.00404610
add esp, 0xc
test esi, esi
je 0x419885
push esi
call fcn.005369c6
add esp, 4
push str._n______________________________________________________________________________________________n
call edi
mov ecx, dword [ebp - 4]
mov eax, 2
pop edi
xor ecx, ebp
pop esi
call fcn.00536ab6
mov esp, ebp
pop ebp
ret
Function at 0x41be20
Capabilities:
Check if file exists
Get file attributes
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push str.beta
call fcn.0041b8a0
mov edi, eax
add esp, 8
test edi, edi
je 0x41bece
push str._n______________________________________________________________________________________________n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x800
call fcn.005369fe
push 0x800
mov esi, eax
push 0
push esi
call fcn.00537300
push edi
push str.GetUrlPath
push 0xe9
push str.c:devdragon_release_sync_srcdragonupdateservicedragonupdateservicedragon_update_api.cpp
push str.CD_Module
push str._s_____s____d____s___returned__d
push 0x800
push esi
call fcn.00406430
add esp, 0x30
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
push 0xe9
push str.GetUrlPath
call fcn.00404610
add esp, 0xc
test esi, esi
je 0x41bebb
push esi
call fcn.005369c6
add esp, 4
push str._n______________________________________________________________________________________________n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41bee4
push 0x571460
jmp 0x41bee9
push str.http:__download.comodo.com_browser_update_chromodo_chromodo_chromodo.inf
push 0x800
push dword [ebp + 8]
call fcn.00538094
add esp, 0xc
test esi, esi
je 0x41bf06
push esi
call fcn.005369c6
add esp, 4
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41d480
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5c2b50]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x41d5a0
cmp byte [ebx + 0x45], 0
je 0x41d5a0
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x41d4c4
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00536ab6
mov esp, ebp
pop ebp
ret
mov ecx, 0xf
mov byte [ebp - 0x1c], 0
xorps xmm0, xmm0
mov dword [ebp - 8], ecx
cmp ecx, 0x10
movq qword [ebp - 0x1c], xmm0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0xc], 8
cmovae eax, dword [ebp - 0x1c]
push esi
push edi
mov byte [eax + 8], 0
nop
cmp dword [ebp - 8], 0x10
lea eax, [ebp - 0x20]
mov ecx, dword [ebx + 0x40]
lea edi, [ebp - 0x1c]
cmovae edi, dword [ebp - 0x1c]
lea esi, [ebp - 0x1c]
cmovae esi, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x41d52a
dec eax
je 0x41d52e
sub eax, 2
je 0x41d57a
xor bl, bl
jmp 0x41d57c
mov byte [ebx + 0x45], 0
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x1c]
cmp ecx, 0x10
mov esi, dword [ebp - 0x20]
cmovae eax, edx
sub esi, eax
je 0x41d560
push dword [ebx + 0x50]
cmp ecx, 0x10
lea eax, [ebp - 0x1c]
push esi
cmovae eax, edx
push 1
push eax
call fcn.00538fb7
add esp, 0x10
cmp esi, eax
jne 0x41d526
cmp byte [ebx + 0x45], 0
je 0x41d57a
test esi, esi
jne 0x41d4f0
push esi
push 8
lea ecx, [ebp - 0x1c]
call fcn.004151d0
jmp 0x41d4f0
mov bl, 1
cmp dword [ebp - 8], 0x10
pop edi
pop esi
jb 0x41d58f
push dword [ebp - 0x1c]
call fcn.0041e8e8
add esp, 4
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00536ab6
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop ebx
call fcn.00536ab6
mov esp, ebp
pop ebp
ret
Function at 0x41e7b0
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
call fcn.0041e830
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx edi, ax
xor esi, esi
lea esp, [esp]
cmp dword [esi + 0x5715c0], ebx
jne 0x41e80c
lea eax, [esi + 0x5715c4]
xor ecx, ecx
mov dword [ebp - 4], eax
lea eax, [esi + 0x5715c8]
lea esp, [esp]
cmp dword [eax - 4], 0
je 0x41e80c
movzx edx, word [eax]
test dx, dx
je 0x41e823
cmp dx, di
je 0x41e823
inc ecx
add eax, 8
cmp ecx, 2
jb 0x41e7f0
add esi, 0x14
cmp esi, 0x2e4
jb 0x41e7d0
pop edi
pop esi
mov eax, 0x57158c
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov eax, dword [eax + ecx*8]
mov esp, ebp
pop ebp
ret

Function at 0x41e830
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x5c2b50]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x10
call dword [sym.imp.KERNEL32.dll_GetUserGeoID]
xor ecx, ecx
push ecx
push 3
mov dword [ebp - 0xc], ecx
mov word [ebp - 8], cx
lea ecx, [ebp - 0xc]
push ecx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_GetGeoInfoW]
cmp eax, 3
jne 0x41e893
mov ax, word [ebp - 0xc]
mov cx, word [ebp - 0xa]
cmp ax, 0x58
jne 0x41e87a
cmp cx, 0x58
je 0x41e893
movzx eax, ax
shl eax, 8
movzx ecx, cx
or eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00536ab6
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.00536ab6
mov esp, ebp
pop ebp
ret

Function at 0x420d24
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], vtable.CInternetSession.0
test eax, eax
jne 0x420d4d
call fcn.00420a69
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 8], eax
test eax, eax
je 0x420d7a
push esi
push eax
mov ecx, 0x5c86e8
call fcn.00421cfb
mov eax, esi
pop esi
pop ebp
ret 0x18
push 0
push dword [esi + 4]
call fcn.004210ca
int3
Function at 0x425f1f
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.00426365
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x425f5b
call fcn.0042613e
mov dword [esi + 0xc], 1
jmp 0x425f60
call fcn.0042613e
cmp dword [esi], 0
je 0x425fa9
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x425f83
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.00421325
jmp 0x425f94
push 0xff
mov ecx, esi
call fcn.0041ef50
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.0041f812
jmp 0x425fcd
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x425fcd
push dword [esi]
push dword [ebp - 4]
call fcn.004267b6
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x426093
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.0042613e
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x4260db
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00421325
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0041f812
jmp 0x4260e6
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.004267b6
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x42a533
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x42a578
call fcn.00420a69
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x42a578
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x42a594
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00430f0e
mov ebx, eax
test edi, edi
je 0x42a592
test esi, esi
je 0x42a592
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x432498
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.00420a69
push 5
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4324cf
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.004324f0
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4d6de7
Capabilities:
Get file system object information

Disassembly:
push 0x4c8
mov eax, 0x5648a7
call fcn.0053af27
mov ebx, ecx
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.0040c240
pop ecx
lea esi, [eax + 0x10]
mov dword [ebp - 0x4d0], esi
and dword [ebp - 4], 0
lea ecx, [ebp - 0x4d0]
push 0
push 0x56df74
call fcn.0040d2d0
cmp eax, 0xffffffff
jne 0x4d6e9b
push 0
push 0x5711d8
lea ecx, [ebp - 0x4d0]
call fcn.0040d2d0
cmp eax, 0xffffffff
jne 0x4d6e9b
push 0
push 0x574640
lea ecx, [ebp - 0x4d0]
call fcn.0040d2d0
cmp eax, 0xffffffff
jne 0x4d6e9b
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.0040c240
pop ecx
lea edi, [eax + 0x10]
mov dword [ebp - 0x4d4], edi
xor ecx, ecx
mov byte [ebp - 4], 1
push ecx
lea eax, [ebp - 0x218]
push eax
push 0x104
push ecx
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
jne 0x4d6e77
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x14]
lea ecx, [edi - 0x10]
mov ebx, eax
call fcn.0041efb8
jmp 0x4d6eca
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x4d0]
call fcn.0041f8dd
lea ecx, [edi - 0x10]
mov byte [ebp - 4], 0
call fcn.0041efb8
mov esi, dword [ebp - 0x4d0]
push 0x105
push 0x2b4
lea eax, [ebp - 0x4cc]
push eax
push 0
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x4d6ec1
mov ebx, dword [ebp - 0x4cc]
jmp 0x4d6eca
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x14]
mov ebx, eax
lea ecx, [esi - 0x10]
call fcn.0041efb8
mov eax, ebx
call fcn.0053aed6
ret
Function at 0x55094c
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5c2b50]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00540225
mov dword [ebp - 0x14], eax
cmp dword [0x5cec60], esi
jne 0x550a3f
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x5509cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x550b1f
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x550b1f
push 0x5a171c
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x550b1f
push eax
call ebx
push 0x5a1728
push edi
mov dword [0x5cec60], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x5a1738
push edi
mov dword [0x5cec64], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x5cec68], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5cec70], eax
test eax, eax
je 0x550a3c
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5cec6c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x550a64
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x550a57
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x550a79
push 4
pop eax
jmp 0x550b21
cmp dword [ebp - 0x14], esi
je 0x550a79
push dword [0x5cec60]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x550a5e
mov eax, dword [0x5cec6c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x550ad7
cmp dword [0x5cec70], edi
je 0x550ad7
push eax
call ebx
push dword [0x5cec70]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x550ad7
test eax, eax
je 0x550ad7
call ecx
test eax, eax
je 0x550acc
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x550acc
test byte [ebp - 8], 1
jne 0x550ad7
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x550b07
mov eax, dword [0x5cec64]
cmp eax, edi
je 0x550b04
push eax
call ebx
test eax, eax
je 0x550b04
call eax
mov esi, eax
test esi, esi
je 0x550b04
mov eax, dword [0x5cec68]
cmp eax, edi
je 0x550b04
push eax
call ebx
test eax, eax
je 0x550b04
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x5cec60]
call ebx
test eax, eax
je 0x550b1f
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x550b21
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00536ab6
mov esp, ebp
pop ebp
ret
Function at 0x4012ab
Capabilities:
Get geographical location
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
lea eax, [ebp - 0x10]
push 0xa
push eax
push 9
mov dword [ebp - 4], ecx
push 0x800
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea eax, [ebp - 0xe]
push 0x4067ec
push eax
call dword [sym.imp.MSVCRT.dll__stricmp]
neg eax
sbb eax, eax
pop ecx
neg eax
pop ecx
mov dword [0x406020], eax
call fcn.0040288a
push dword [eax + 0x90]
mov esi, 0x407484
push esi
call sub.MSVCRT.dll_strcpy
push esi
call sub.MSVCRT.dll_strlen
add esp, 0xc
test eax, eax
jle 0x401315
cmp byte [eax + 0x407484], 0x5c
je 0x401315
dec eax
jmp 0x401305
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
and byte [eax + 0x407485], 0
mov ebx, 0x400
mov esi, 0x407084
push ebx
push esi
push str._temp_
call edi
push 0x4067e0
push esi
call sub.MSVCRT.dll_strcat
push esi
call fcn.004027b2
mov esi, 0x406c84
push 0
push esi
push 0
push str.ProgramFilesDir
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push 0x80000002
call fcn.004024ed
add esp, 0x24
test eax, eax
jne 0x401374
push ebx
push esi
push str._ProgramFiles_
call edi
push str.DevalVR_
push esi
call sub.MSVCRT.dll_strcat
push 0x406778
push 0x406c64
call sub.MSVCRT.dll_strcpy
push str.installnpdevalvr.exe
push 0x406c44
call sub.MSVCRT.dll_strcpy
mov ecx, dword [ebp - 4]
add esp, 0x18
call fcn.0040163c
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4014ca
Capabilities:
Delete file
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x403254
call fcn.00402ed0
sub esp, 0x814
push ebx
push esi
push edi
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CFile::CFile
and dword [ebp - 4], 0
and dword [ebp - 0x10], 0
call fcn.00402893
mov esi, eax
push 0x4067fc
movzx eax, word [ebp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x4015c8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4015c8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, 0x407084
lea eax, [ebp - 0x820]
push esi
push eax
call sub.MSVCRT.dll_strcpy
mov edi, str.devalvr.cab
lea eax, [ebp - 0x820]
push edi
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x10
lea eax, [ebp - 0x820]
lea ecx, [ebp - 0x20]
push 0
push 0x1001
push eax
call sub.MFC42.DLL_CFile::Open
test eax, eax
je 0x40158a
push dword [ebp + 8]
lea ecx, [ebp - 0x20]
push ebx
call sub.MFC42.DLL_CFile::Write
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CFile::Close
lea eax, [ebp - 0x820]
push esi
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x820]
push edi
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x820]
push esi
push eax
call fcn.00402390
lea eax, [ebp - 0x820]
push eax
call dword [sym.imp.MSVCRT.dll_remove]
add esp, 0x1c
mov dword [ebp - 0x10], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00402d44
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x4024ed
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 1
pop edi
lea eax, [ebp + 0xc]
push 4
xor esi, esi
pop ebx
mov dword [ebp - 4], esi
push eax
push 0x20019
push esi
mov dword [ebp - 8], edi
push dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40257a
cmp dword [ebp + 0x1c], esi
je 0x402532
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
push dword [ebp + 0x1c]
jmp 0x402559
cmp dword [ebp + 0x14], esi
je 0x402546
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 0xc]
push dword [ebp + 0x14]
jmp 0x40255c
cmp dword [ebp + 0x18], esi
je 0x402571
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x200
push eax
push dword [ebp + 0x18]
lea eax, [ebp - 8]
push eax
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x402571
mov dword [ebp - 4], esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40275a
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret

Function at 0x402772
Capabilities:
Copy file

Disassembly:
push dword [esp + 8]
call fcn.0040275a
pop ecx
push 0
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
ret

Function at 0x40278d
Capabilities:
Move file

Disassembly:
push dword [esp + 4]
call fcn.0040275a
push dword [esp + 0xc]
call fcn.0040275a
pop ecx
pop ecx
push 0xb
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
ret
Function at 0x401b50
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x407044
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [0x40703c]
sub esp, 4
test ebx, ebx
je 0x401b9b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov esi, eax
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x401b94
test esi, esi
je 0x401b94
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401b70
mov dword [esp], 0x407044
call sub.KERNEL32.dll_LeaveCriticalSection
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x401d80
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x401dd0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x401ea8
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x401e0e
cmp eax, 4
jne 0x401e30
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sub.msvcrt.dll_memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x401e1e
cmp edx, 4
je 0x401e1e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401d80