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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x448df6
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x4690f0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x424], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x420], 0
push 0x60
push 0
mov byte [ebp - 4], 1
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x42c], edi
test edi, edi
jne 0x409046
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x42c], eax
test edi, edi
jne 0x409046
call fcn.00408390
mov esi, eax
jmp 0x409133
push dword [ebp - 0x428]
push dword [ebp - 0x424]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x409069
call fcn.00408390
jmp 0x409126
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x424], ebx
test ebx, ebx
jne 0x409087
call fcn.00408390
jmp 0x409126
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x428], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x4090a8
mov esi, 0x8007000e
jmp 0x409128
push eax
lea ecx, [ebp - 0x420]
mov byte [ebp - 4], 2
call fcn.0040acf0
jmp 0x4090d2
mov dword [ebp - 4], 1
cmp dword [ebp - 0x420], 0
jne 0x4090e9
mov esi, 0x8007000e
jmp 0x409128
push esi
push dword [ebp - 0x420]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x409109
call fcn.00408390
jmp 0x409126
mov eax, dword [ebp - 0x420]
push dword [ebp + 0x14]
xor edx, edx
mov word [eax + ecx*2], dx
push dword [ebp - 0x420]
lea ecx, [ebp - 0x1c]
call fcn.00409da0
mov esi, eax
test edi, edi
je 0x409133
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x41c]
cmp dword [ebp - 0x420], eax
je 0x409150
lea ecx, [ebp - 0x420]
call fcn.0040add0
lea esp, [esp]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042f2dd
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40caf0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4690f0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x46bfa0], 8
push esi
push edi
mov eax, 0x46bf8c
cmovae eax, dword [0x46bf8c]
push eax
push 1
push 0
mov edi, edx
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
test eax, eax
je 0x40cb53
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40cb65
call fcn.0040c670
mov esi, eax
call fcn.0040c5e0
push 0x10
push dword [esi + 4]
push dword [eax + 4]
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor al, al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042f2dd
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0xc], 8
mov dword [ebp - 8], 0x20
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
push 2
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x40cb53
push 0
lea eax, [ebp - 0x1c]
push eax
push edi
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
call dword [sym.imp.gdiplus.dll_GdiplusStartup]
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
pop edi
xor ecx, ebp
inc eax
pop esi
call fcn.0042f2dd
mov esp, ebp
pop ebp
ret
Function at 0x40d970
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44a328
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push esi
mov eax, dword [0x4690f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 4], 0
mov dword [ebp - 4], 0
push 0x45a15c
lea ecx, [ebp - 0x70]
mov dword [esi], vtable.std::codecvt_wchar_t__char__int_.0
call fcn.0040d6b0
lea eax, [ebp - 0x3c]
push eax
call fcn.00418b3f
movq xmm0, qword [eax]
movq qword [esi + 8], xmm0
movq xmm0, qword [eax + 8]
movq qword [esi + 0x10], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [esi + 0x18], xmm0
movq xmm0, qword [eax + 0x18]
movq qword [esi + 0x20], xmm0
movq xmm0, qword [eax + 0x20]
movq qword [esi + 0x28], xmm0
mov eax, dword [eax + 0x28]
add esp, 4
lea ecx, [ebp - 0x70]
mov dword [esi + 0x30], eax
call fcn.0040d770
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40e9c0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44a6a0
mov eax, dword fs:[0]
push eax
sub esp, 0x150
mov eax, dword [0x4690f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x158]
push eax
mov dword [ebp - 0x158], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x154]
cmp eax, 5
jbe 0x40ea13
mov al, 1
jmp 0x40ea86
jne 0x40ea84
cmp dword [ebp - 0x150], 1
jne 0x40ea84
lea eax, [ebp - 0x144]
push eax
lea ecx, [ebp - 0x28]
call fcn.00401360
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x18]
push 1
dec eax
push eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.004050c0
push ecx
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.00403180
add esp, 4
cmp dword [ebp - 0x2c], 8
mov esi, eax
jb 0x40ea69
push dword [ebp - 0x40]
call fcn.0042f2d8
add esp, 4
cmp esi, 3
sete bl
cmp dword [ebp - 0x14], 8
jb 0x40ea80
push dword [ebp - 0x28]
call fcn.0042f2d8
add esp, 4
mov al, bl
jmp 0x40ea86
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042f2dd
mov esp, ebp
pop ebp
ret

Function at 0x40f2a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x46c310], 0
push ebx
push esi
xorps xmm0, xmm0
push edi
mov ebx, ecx
movlpd qword [ebp - 8], xmm0
jne 0x40f3b8
mov dword [0x46c310], 1
xor edi, edi
lea esp, [esp]
mov eax, edi
cdq
mov esi, eax
mov ecx, esi
and ecx, 1
or ecx, 0
je 0x40f2e8
xor esi, 1
xor edx, 0xb0000000
shrd esi, edx, 1
mov eax, esi
and eax, 1
sar edx, 1
or eax, 0
je 0x40f301
xor esi, 1
xor edx, 0xb0000000
shrd esi, edx, 1
mov eax, esi
and eax, 1
sar edx, 1
or eax, 0
je 0x40f31a
xor esi, 1
xor edx, 0xb0000000
shrd esi, edx, 1
mov eax, esi
and eax, 1
sar edx, 1
or eax, 0
je 0x40f333
xor esi, 1
xor edx, 0xb0000000
shrd esi, edx, 1
mov eax, esi
and eax, 1
sar edx, 1
or eax, 0
je 0x40f34c
xor esi, 1
xor edx, 0xb0000000
shrd esi, edx, 1
mov eax, esi
and eax, 1
sar edx, 1
or eax, 0
je 0x40f365
xor esi, 1
xor edx, 0xb0000000
shrd esi, edx, 1
mov eax, esi
and eax, 1
sar edx, 1
or eax, 0
je 0x40f37e
xor esi, 1
xor edx, 0xb0000000
shrd esi, edx, 1
mov eax, esi
and eax, 1
sar edx, 1
or eax, 0
je 0x40f397
xor esi, 1
xor edx, 0xb0000000
shrd esi, edx, 1
sar edx, 1
mov dword [edi*8 + 0x46c9e8], esi
mov dword [edi*8 + 0x46c9ec], edx
inc edi
cmp edi, 0xff
jle 0x40f2d0
movzx ecx, word [ebx]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
test cx, cx
je 0x40f3f9
jmp 0x40f3d0
xor ecx, eax
shrd eax, edx, 8
and ecx, 0xff
sar edx, 8
xor eax, dword [ecx*8 + 0x46c9e8]
xor edx, dword [ecx*8 + 0x46c9ec]
movzx ecx, word [ebx + 2]
lea ebx, [ebx + 2]
test cx, cx
jne 0x40f3d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x414fb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44ab38
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x4690f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x5c], 0
call fcn.0040eb30
xor edi, edi
mov dword [ebp - 4], 0
cmp dword [ebp - 0x18], edi
jbe 0x415020
lea ebx, [ebx]
cmp dword [ebp - 0x14], 0x10
lea esi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
lea edx, [ebp - 0x28]
cmovae edx, dword [ebp - 0x28]
mov al, byte [esi + edi]
xor al, 0x83
mov byte [edx + edi], al
inc edi
cmp edi, dword [ebp - 0x18]
jb 0x415000
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x40]
call fcn.0040f020
sub esp, 0x18
mov ecx, esp
push 0xffffffffffffffff
mov byte [ebp - 4], 1
push 0
lea eax, [ebp - 0x40]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.00401700
lea ecx, [ebp - 0x58]
call fcn.0040ebb0
add esp, 0x18
lea edx, [ebp - 0x58]
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.0040eab0
cmp dword [ebp - 0x44], 0x10
jb 0x41507c
push dword [ebp - 0x58]
call fcn.0042f2d8
add esp, 4
cmp dword [ebp - 0x2c], 0x10
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
jb 0x41509f
push dword [ebp - 0x40]
call fcn.0042f2d8
add esp, 4
cmp dword [ebp - 0x14], 0x10
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
jb 0x4150c2
push dword [ebp - 0x28]
call fcn.0042f2d8
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042f2dd
mov esp, ebp
pop ebp
ret
Function at 0x4161d0
Capabilities:
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x500c
call fcn.0043c870
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x14], 8
jb 0x4161ec
mov eax, dword [esi]
jmp 0x4161ee
mov eax, esi
push eax
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntryW]
cmp dword [0x46c1f8], 8
push 0
push 0
push 0
mov eax, 0x46c1e4
cmovae eax, dword [0x46c1e4]
push 1
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov edi, eax
test edi, edi
je 0x4162ff
cmp dword [esi + 0x14], 8
jb 0x416229
mov esi, dword [esi]
push 0
push 0x4000000
push 0
push 0
push esi
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov ebx, eax
mov dword [ebp - 0xc], ebx
test ebx, ebx
je 0x4162ff
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x14], 8
jb 0x416254
mov ecx, dword [ecx]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4162e5
lea eax, [ebp - 4]
push eax
push 0x5000
lea eax, [ebp - 0x500c]
push eax
push ebx
mov dword [ebp - 4], 0
call dword [sym.imp.WININET.dll_InternetReadFile]
cmp eax, 1
jne 0x4162e5
mov eax, dword [ebp - 4]
test eax, eax
je 0x4162e5
mov edi, edi
test eax, eax
je 0x4162e1
push 0
lea ecx, [ebp - 8]
push ecx
push eax
lea eax, [ebp - 0x500c]
push eax
push esi
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 4]
push eax
push 0x5000
lea eax, [ebp - 0x500c]
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
cmp eax, 1
jne 0x4162e1
mov eax, dword [ebp - 4]
jmp 0x4162a0
mov bl, 1
jmp 0x4162e7
xor bl, bl
test esi, esi
je 0x4162f2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xc]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
jmp 0x416307
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
xor bl, bl
test edi, edi
je 0x41630e
push edi
call esi
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x416320
Capabilities:
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x32010
call fcn.0043c870
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x14], 8
jb 0x41633c
mov eax, dword [esi]
jmp 0x41633e
mov eax, esi
push eax
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntryW]
cmp dword [0x46c1f8], 8
push 0
push 0
push 0
mov eax, 0x46c1e4
cmovae eax, dword [0x46c1e4]
push 1
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov edi, eax
mov dword [ebp - 0x10], edi
test edi, edi
je 0x41647d
cmp dword [esi + 0x14], 8
jb 0x41637c
mov esi, dword [esi]
push 0
push 0x4000000
push 0
push 0
push esi
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov dword [ebp - 8], eax
test eax, eax
je 0x41647d
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x14], 8
jb 0x4163a5
mov ecx, dword [ecx]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x416463
lea eax, [ebp - 4]
push eax
push 0x32000
lea eax, [ebp - 0x32010]
push eax
push dword [ebp - 8]
mov dword [ebp - 4], 0
xor ebx, ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
cmp eax, 1
jne 0x416463
mov eax, dword [ebp - 4]
test eax, eax
je 0x416463
mov edi, dword [ebp - 8]
lea ebx, [ebx]
test eax, eax
je 0x41645c
cmp ebx, 0x27
jae 0x41641f
push 0
push 0
push 0x40a
push dword [ebp + 0x10]
inc ebx
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [ebp - 4]
push 0
lea ecx, [ebp - 0xc]
push ecx
push eax
lea eax, [ebp - 0x32010]
push eax
push esi
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 4]
push eax
push 0x32000
lea eax, [ebp - 0x32010]
push eax
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
cmp eax, 1
jne 0x41645c
mov eax, dword [ebp - 4]
jmp 0x416400
mov edi, dword [ebp - 0x10]
mov bl, 1
jmp 0x416465
xor bl, bl
test esi, esi
je 0x416470
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 8]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
jmp 0x416485
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
xor bl, bl
test edi, edi
je 0x41648c
push edi
call esi
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4164a0
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44af5c
mov eax, dword fs:[0]
push eax
mov eax, 0x6448
call fcn.0043c870
mov eax, dword [0x4690f0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
cmp dword [esi + 0x14], 8
mov eax, dword [ebp + 8]
mov dword [ebp - 0x6450], eax
jb 0x4164e9
mov eax, dword [esi]
jmp 0x4164eb
mov eax, esi
push eax
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntryW]
cmp dword [edi + 0x14], 8
jb 0x4164fa
mov edi, dword [edi]
push 0
push 0
push 0
push 1
push edi
call dword [sym.imp.WININET.dll_InternetOpenW]
mov edi, eax
mov dword [ebp - 0x644c], edi
mov dword [ebp - 4], 1
test edi, edi
je 0x416662
cmp dword [esi + 0x14], 8
jb 0x416528
mov esi, dword [esi]
push 0
push 0x4000000
push 0
push 0
push esi
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov esi, eax
test esi, esi
je 0x416662
mov ebx, dword [sym.imp.WININET.dll_InternetReadFile]
lea eax, [ebp - 0x6448]
push eax
push 0x6400
lea eax, [ebp - 0x6414]
push eax
push esi
mov dword [ebp - 0x6454], esi
mov dword [ebp - 0x6448], 0
call ebx
cmp eax, 1
jne 0x416655
mov edi, dword [ebp - 0x6450]
mov eax, dword [ebp - 0x6448]
test eax, eax
je 0x41664f
push eax
lea eax, [ebp - 0x6414]
push eax
lea ecx, [ebp - 0x642c]
mov dword [ebp - 0x6418], 0xf
mov dword [ebp - 0x641c], 0
mov byte [ebp - 0x642c], 0
call fcn.00401490
lea edx, [ebp - 0x642c]
lea ecx, [ebp - 0x6444]
mov byte [ebp - 4], 2
call fcn.0040eab0
push 0xffffffffffffffff
push 0
push eax
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.004026f0
cmp dword [ebp - 0x6430], 8
jb 0x4165f8
push dword [ebp - 0x6444]
call fcn.0042f2d8
add esp, 4
xor eax, eax
mov byte [ebp - 4], 1
cmp dword [ebp - 0x6418], 0x10
mov dword [ebp - 0x6430], 7
mov dword [ebp - 0x6434], 0
mov word [ebp - 0x6444], ax
jb 0x416630
push dword [ebp - 0x642c]
call fcn.0042f2d8
add esp, 4
lea eax, [ebp - 0x6448]
push eax
push 0x6400
lea eax, [ebp - 0x6414]
push eax
push esi
call ebx
cmp eax, 1
je 0x416580
mov edi, dword [ebp - 0x644c]
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov bl, 1
call esi
jmp 0x41666a
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
xor bl, bl
test edi, edi
je 0x416671
push edi
call esi
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042f2dd
mov esp, ebp
pop ebp
ret
Function at 0x416690
Capabilities:
Connect to http server
Create http request
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44afb6
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4690f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edx + 0x14], 8
mov ebx, dword [ebp + 8]
mov byte [ebp - 0xd], 0
jb 0x4166c9
mov edx, dword [edx]
push 0
push 0
push 0
push 1
push edx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov esi, eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x4167a7
cmp dword [edi + 0x14], 8
jb 0x4166f4
mov edi, dword [edi]
push 0
push 0
push 3
push 0
push 0
push 0x50
push edi
push esi
call dword [sym.imp.WININET.dll_InternetConnectW]
mov edi, eax
mov dword [ebp - 0x18], edi
mov byte [ebp - 4], 1
test edi, edi
je 0x4167a0
cmp dword [ebx + 0x14], 8
jb 0x416721
mov ebx, dword [ebx]
mov eax, dword [0x46c848]
test al, 1
jne 0x416756
or eax, 1
mov dword [0x46c848], eax
push ecx
push 0x459dc0
push 4
push ecx
mov ecx, 0x46c5b4
mov byte [ebp - 4], 2
call fcn.00418740
push 0x44f1e0
call fcn.0042fb26
add esp, 4
push 0
push 0x4400000
push 0
push 0
push 0
push ebx
push dword [0x46c5b8]
push edi
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov ebx, eax
test ebx, ebx
je 0x416797
push 0
push 0
push 0
push 0
push ebx
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
push ebx
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
setne byte [ebp - 0xd]
call ebx
jmp 0x41679d
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call ebx
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x417020
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44b2fb
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
mov eax, dword [0x4690f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov eax, dword [0x46be34]
xor bl, bl
test eax, eax
jne 0x41707c
push 0x40
call fcn.0042fbb5
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x417075
mov ecx, eax
call fcn.00417230
jmp 0x417077
xor eax, eax
mov dword [0x46be34], eax
cmp byte [0x46a314], 0
je 0x4170b5
push esi
push 0
push dword [eax + 0x20]
push 0x1c
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
movzx ecx, bl
test eax, eax
mov edx, 1
cmovns ecx, edx
mov al, cl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4170d0
Capabilities:
Check os version
Get token membership

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44b32b
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x4690f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x46be34], 0
jne 0x417129
push 0x40
call fcn.0042fbb5
add esp, 4
mov dword [ebp - 0x68], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x417122
mov ecx, eax
call fcn.00417230
jmp 0x417124
xor eax, eax
mov dword [0x46be34], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
movzx eax, al
cmp eax, 6
ja 0x41714a
je 0x41714a
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
neg eax
sbb eax, eax
neg eax
jmp 0x41720b
mov eax, dword [0x46be34]
lea ecx, [ebp - 0x60]
push ecx
push 4
lea ecx, [ebp - 0x68]
push ecx
push 0x12
push dword [eax + 0x20]
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x60], 0
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x417183
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
jmp 0x41720b
cmp dword [ebp - 0x68], 3
jne 0x4171a7
mov eax, dword [0x46be34]
lea ecx, [ebp - 0x60]
push ecx
push 4
lea ecx, [ebp - 0x5c]
push ecx
push 0x13
push dword [eax + 0x20]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x417176
cmp dword [ebp - 0x5c], 0
jne 0x4171c5
mov eax, dword [0x46be34]
lea ecx, [ebp - 0x5c]
push ecx
push 1
push dword [eax + 0x20]
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
test eax, eax
je 0x417176
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x58]
push eax
push 0
push 0x1a
mov dword [ebp - 0x60], 0x44
call dword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
test eax, eax
je 0x417176
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x5c]
mov dword [ebp - 0x64], 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x417176
xor eax, eax
cmp dword [ebp - 0x64], 1
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042f2dd
mov esp, ebp
pop ebp
ret
Function at 0x417380
Capabilities:
Get session information
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44b1a0
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x4690f0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x4c], 0
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x48]
push eax
push 5
push 0xffffffffffffffff
mov byte [ebp - 4], 1
mov edi, dword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
push 0
call edi
test eax, eax
je 0x4174d4
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x4c]
push eax
push 7
push 0xffffffffffffffff
push 0
call edi
test eax, eax
je 0x4174d4
xor eax, eax
mov word [ebp - 0x2c], ax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
cmp word [eax], 0
jne 0x417424
xor edx, edx
jmp 0x41743f
mov edx, eax
lea edi, [edx + 2]
lea esp, [esp]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x417430
sub edx, edi
sar edx, 1
push edx
push eax
lea ecx, [ebp - 0x2c]
call fcn.004015d0
push 0x459014
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.0040ae10
mov byte [ebp - 4], 3
push dword [ebp - 0x48]
mov edx, eax
mov ecx, esi
call fcn.0040ae10
add esp, 8
cmp dword [ebp - 0x30], 8
jb 0x417481
push dword [ebp - 0x44]
call fcn.0042f2d8
add esp, 4
xor eax, eax
cmp dword [ebp - 0x18], 8
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
jb 0x4174a6
push dword [ebp - 0x2c]
call fcn.0042f2d8
add esp, 4
mov edi, dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
xor eax, eax
mov word [ebp - 0x2c], ax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
test eax, eax
je 0x4174ca
push eax
call edi
mov ecx, dword [ebp - 0x48]
test ecx, ecx
je 0x41750e
push ecx
jmp 0x41750c
xor eax, eax
push eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
push 0x4584bc
mov ecx, esi
mov word [esi], ax
call fcn.004015d0
mov eax, dword [ebp - 0x4c]
mov edi, dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
test eax, eax
je 0x417504
push eax
call edi
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x41750e
push eax
call edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042f2dd
mov esp, ebp
pop ebp
ret 4