joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5bd4d0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9c
mov eax, dword [0x623ec0]
xor eax, esp
mov dword [esp + 0x98], eax
push ebx
mov ebx, dword [sym.imp.WSOCK32.dll_closesocket]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [0x18b1378]
mov eax, dword [edi + 0xc]
cmp eax, 0xffffffff
je 0x5bd50e
push eax
call ebx
mov dword [edi + 0xc], 0xffffffff
push 0
push 1
push 2
call dword [sym.imp.WSOCK32.dll_socket]
mov dword [edi + 0xc], eax
cmp eax, 0xffffffff
jne 0x5bd573
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
lea eax, [esp + 0x24]
push str.WSAGetLastError__d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x2c]
push eax
call fcn.00586620
add esp, 0x10
lea eax, [esp + 0x20]
push 0
push str.Error
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.0046676f
mov esp, ebp
pop ebp
ret 0xc
cmp dword [edi], 0
jne 0x5bd5a5
push 0
push str.Error
push str.Connect_Error
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.0046676f
mov esp, ebp
pop ebp
ret 0xc
mov eax, 2
push 0x1edf
mov word [esp + 0x14], ax
call dword [sym.imp.WSOCK32.dll_htons]
push esi
mov word [esp + 0x16], ax
call dword [sym.imp.WSOCK32.dll_inet_addr]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
jne 0x5bd60d
push esi
call dword [sym.imp.WSOCK32.dll_gethostbyname]
mov ecx, eax
test ecx, ecx
jne 0x5bd5f6
lea eax, [ecx + 2]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.0046676f
mov esp, ebp
pop ebp
ret 0xc
movsx eax, word [ecx + 0xa]
push eax
mov eax, dword [ecx + 0xc]
push dword [eax]
lea eax, [esp + 0x1c]
push eax
call fcn.004684b0
add esp, 0xc
push 0x10
lea eax, [esp + 0x14]
push eax
push dword [edi + 0xc]
call dword [sym.imp.WSOCK32.dll_connect]
cmp eax, 0xffffffff
jne 0x5bd65f
mov esi, dword [sym.imp.WSOCK32.dll_WSAGetLastError]
call esi
push eax
push str.Connect_error___d_
call fcn.00586620
add esp, 8
call esi
cmp eax, 0x2733
je 0x5bd65f
push dword [edi + 0xc]
call ebx
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.0046676f
mov esp, ebp
pop ebp
ret 0xc
push 0x23
push 0x464
push dword [edi]
push dword [edi + 0xc]
call dword [sym.imp.WSOCK32.dll_WSAAsyncSelect]
cmp eax, 0xffffffff
je 0x5bd641
mov ecx, dword [esp + 0xa4]
mov eax, 1
mov dword [edi + 4], 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0046676f
mov esp, ebp
pop ebp
ret 0xc
Function at 0x5bda30
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
mov eax, dword [esi + 0x2010]
test eax, eax
jle 0x5bda7f
mov ebx, dword [sym.imp.WSOCK32.dll_send]
nop
push 0
sub eax, edi
push eax
lea eax, [esi + 0x10]
add eax, edi
push eax
push dword [esi + 0xc]
call ebx
mov ecx, eax
cmp ecx, 0xffffffff
je 0x5bda92
test ecx, ecx
jle 0x5bda8b
mov eax, dword [esi + 0x2010]
add edi, ecx
sub eax, ecx
mov dword [esi + 0x2010], eax
test eax, eax
jg 0x5bda50
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Write_Error_2._r_n
jmp 0x5bdaa4
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x5bda7f
push str.Write_Error_1._r_n
call fcn.00586620
add esp, 4
mov ecx, esi
call fcn.005bdac0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5bdac0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x623ec0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 4
lea eax, [ebp - 8]
mov esi, ecx
push eax
push 0x80
push 0xffff
push dword [esi + 0xc]
mov edi, 1
mov dword [esi + 4], 0
mov dword [ebp - 8], edi
call dword [sym.imp.WSOCK32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x5bdb07
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov dword [esi + 0x2014], 0
mov dword [esi + 0x10], 0
push str.Socket_Closed
mov dword [esi + 0x2010], 0
mov dword [esi + 0x4014], 0
call fcn.00586620
add esp, 4
push dword [esi + 0xc]
call dword [sym.imp.WSOCK32.dll_closesocket]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
mov dword [esi + 0xc], 0xffffffff
xor ecx, ebp
pop esi
call fcn.0046676f
mov esp, ebp
pop ebp
ret
Function at 0x5bdb60
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [0x18b1378]
push esi
push edi
xor edi, edi
mov esi, ecx
cmp dword [ebx + 0xc], 0xffffffff
je 0x5bdc43
mov edx, dword [ebp + 8]
mov eax, dword [0x1ff2594]
push edi
push ecx
push edx
mov word [edx], cx
mov dword [edx + 8], eax
push dword [ebx + 0xc]
mov dword [0x1ff25a4], eax
call dword [sym.imp.WSOCK32.dll_send]
cmp eax, 0xffffffff
je 0x5bdbcd
test eax, eax
je 0x5bdc04
sub esi, eax
add edi, eax
test esi, esi
jle 0x5bdc04
mov eax, dword [ebp + 0xc]
push 0
sub eax, edi
push eax
mov eax, dword [ebp + 8]
add eax, edi
push eax
push dword [ebx + 0xc]
call dword [sym.imp.WSOCK32.dll_send]
cmp eax, 0xffffffff
jne 0x5bdba5
mov edi, dword [sym.imp.WSOCK32.dll_WSAGetLastError]
call edi
cmp eax, 0x2733
je 0x5bdc12
push str.Send_WSAGetLastError_____WSAEWOULDBLOCK
call fcn.00586620
add esp, 4
call edi
push eax
push str.Send_WSAGetLastError___d
call fcn.00586620
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebx + 0x2010]
add eax, ecx
cmp eax, 0x2000
jle 0x5bdc2b
push str.Send_SendBuffer_Overflow
jmp 0x5bdbe1
push esi
push dword [ebp + 8]
lea eax, [ebx + 0x10]
add eax, ecx
push eax
call fcn.004684b0
add esp, 0xc
add dword [ebx + 0x2010], esi
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x40765a
Capabilities:
Encode data using xor

Disassembly:
inc ecx
pop esi
xor byte [esi + ecx + 7], cl
loop 0x40765d
sub bl, cl
sub ch, 0x86
out dx, al
clc
div esi
cmc
retf
Function at 0x406dd0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
ror dword [ebx + 0x42560c5d], 0x97
pop ebx
push edi
mov ebp, dword [eax + 0x10]
test word [eax], dx
mov dword [edi], eax
mov cl, 0x66
push esp
sbb dl, byte [esp + esi*2 + 0x26]
push edi
inc dword [ebp + 0x30daa8]
mov word [esi + 0x2a], ax
mov word [esi + 0xc], di
xor edi, ebx
add dh, byte [ebp + 0x18]
mov eax, 0xcd0010
lodsd eax, dword [esi]
inc esi
sbb byte [eax + eax], al
add byte [eax], al
mov dword [esi + 0x14], eax
xor al, byte [esi - 0x12]
test byte [esi + 0x2c], al
mov dword [esi + 0x20], eax
test al, 0x5e
pop ebx
pop ebp
mov al, 0x90
and dl, byte [eax - 0x134daaa9]
mov eax, dword [ebp - 0x1b]
mov ecx, dword [ebp + 0x53]
mov edx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x5f]
push esi
mov dword [eax], 0xa60000
push edi
mov dword [ecx], 0xec0c
mov edi, ebx
mov ecx, ecx
inc dword [ebp + 0x2ff66c0]
add dl, cl
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea esi, [ecx + ebx + 0x52]
cmp esi, ebx
mov edi, esi
jb 0x406e95
mov eax, dword [0x40b974]
cmp dword [eax], 1
jle 0x406e75
xor ecx, ecx
lahf
xchg esp, eax
test eax, 0x15ff510f
push 0x830040c1
les edi, [ecx]
jmp 0x406e86
mov eax, dword [sym.imp.MSVCRT.dll__pctype]
xor edx, edx
pop eax
or eax, 0x388ad08b
rcr byte [eax + 0xd], cl
mov edx, eax
mov bh, byte [eax]
push ecx
and eax, 4
test eax, eax
je 0x406e91
dec edi
cmp edi, ebx
push esp
jg 0x406e7b
add al, 0x3b
sti
cmp edi, ebx
jae 0x406eba
push ebx
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
push ss
clc
pushal
jl 0x406ec7
cmp eax, 0xeeff
jg 0x406ec7
and eax, 0x5e5f1055
pop ebx
mov word [edx], ax
leave
rcr byte [ebp - 0x3e], 0x14
add byte [eax - 0x7e8a45c1], al
cmp byte [edi], 0xba
jne 0x406e40
cmp edi, esi
jae 0x406ef5
cmp edi, ebx
jne 0x406ed3
pop edi
lcall 0x5b00, 0x14160e
pop ebp
ret 0x1514
lea eax, [edi + 1]
push eax
mov ecx, 0xe6c16c15
add byte [esi], al
les eax, [ebx + eax*4]
clc
add dword [edx + 0x3d], edi
invalid
sub ecx, dword [ebp + 0x46e14580]
fcmovu st(0), st(6)
lea edi, [edx]
add dword [esi + 0x50], edx
call fcn.00404a60
mov edx, dword [ebp + 8]
popal
jne 0x406f21
mov esi, dword [edi + 0x289f88b]
mov eax, dword [ebx - 0x3f]
jmp 0x8be6621d
rep movsb byte es:[edi], byte [esi]
or byte [edx], cl
pop edi
out dx, eax
mov byte [ebx + ecx], 0
pop ebx
pop ebp
jns 0x406f43
add byte [ebp - 0x75], dl
push edx
test dword [ebp - 0x6b], ecx
add dl, byte [ebp + 8]
mov eax, ecx
push esi
mov esi, dword [ebp - 0x47]
add dword [ecx + 0x2965703], 0
xchg esi, eax
add al, byte [eax]
add al, ah
add byte [ebx + ebp + 0x44], dh
div byte [esp + ebx - 0x75]
jge 0x406f62
test edi, edi
jne 0x406f6b
cmp eax, 3
je 0x406ee6
test cl, 2
pop ds
sbb eax, 0xab87b85f
add dword [ebx + 0x182a5d5e], esi
xchg dword [ebx + 0x5d5eb301], ebp
sub bl, byte [eax]
add byte [edi - 0x48], bl
push ss
add byte [eax], ah
pop edi
mov eax, 0x600016
loopne 0x406fd0
ret 0x18
add byte [esi + 0x48], dl
pushfd
sbb al, 0xc1
sbb byte [eax], al
salc
ror byte [ebx - 0x137c02], 1
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
Function at 0x4092a8
Capabilities:
Encode data using xor

Disassembly:
call fcn.00409173
sub ecx, ecx
sub ecx, 0xffffff88
call 0x4092a8
rcr byte [esi - 0x7f], 0x76
push cs
adc esp, dword [ebp - 0x117c9912]
cld
xor dword [esi + 0xe], 0x66eea513
sub esi, 0xfffffffc
loop 0x4092ab
and byte [ebp + ebp*2 - 0x71], ch
popfd
dec ebp
adc dword [ecx + 0x382e5aec], ebx
xchg edx, eax
shl eax, cl
inc edi
adc ch, byte [eax]
mov ebp, esp
std
pop ecx
or al, 0x92
mov edx, dword [edi]
bound eax, qword [ecx]
xor cl, byte [esp + ebx*4 - 2]
int 0x5b
mov byte [0x6de8025f], al
push es
rcr byte [esi - 0x25], 1
mov byte [0xef66a030], al
retf 0x9553
Function at 0x401000
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x569638]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
lea ecx, [ebp - 0x8c]
push ecx
push edi
mov dword [ebp - 0x90], eax
mov byte [ebp - 0x85], 0
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
jne 0x401048
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f398f
mov esp, ebp
pop ebp
ret
push ebx
push esi
call fcn.004f3eba
add esp, 4
mov ebx, eax
push ebx
push esi
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4010f0
lea edx, [ebp - 0x8c]
push edx
lea eax, [ebp - 0x98]
push eax
push str.VarFileInfoTranslation
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4010f0
mov esi, dword [ebp - 0x90]
test esi, esi
je 0x4010f0
mov eax, dword [ebp - 0x98]
movzx ecx, word [eax + 2]
movzx edx, word [eax]
push ecx
push edx
push str.StringFileInfo_04x_04xFileDescription
lea eax, [ebp - 0x84]
push 0x80
push eax
call fcn.0042c130
add esp, 0x14
lea ecx, [ebp - 0x8c]
push ecx
lea edx, [ebp - 0x94]
push edx
lea eax, [ebp - 0x84]
push eax
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4010f0
mov ecx, dword [ebp - 0x94]
push ecx
mov ecx, dword [ebp + 0xc]
mov edx, esi
call fcn.0042c100
test eax, eax
jl 0x4010f0
mov byte [ebp - 0x85], 1
push ebx
call fcn.004f4075
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x85]
add esp, 4
pop ebx
xor ecx, ebp
pop esi
call fcn.004f398f
mov esp, ebp
pop ebp
ret

Function at 0x401110
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.SOFTWARE360Safe_safemon
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 8], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401172
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x10]
push eax
push 0
push str.DefaultBrowserLockEx2
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x401178
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [ebp - 8], eax
setne al
mov esp, ebp
pop ebp
ret
Function at 0x4038d0
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x519e30
mov eax, dword fs:[0]
push eax
sub esp, 0x418
mov eax, dword [0x569638]
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 + 8]
push eax
mov dword [ebp - 0x418], eax
mov dword [ebp - 0x41c], 0x1388
mov dword [ebp - 4], 0
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntryW]
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
push 0
push 0
push 0
push 0
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.1__SV1_
call dword [sym.imp.WININET.dll_InternetOpenW]
mov edi, eax
test edi, edi
jne 0x40396c
call dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov eax, 1
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.004f398f
mov esp, ebp
pop ebp
ret
call esi
mov ebx, dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
lea eax, [ebp - 0x41c]
push eax
push 2
push edi
call ebx
push 4
lea ecx, [ebp - 0x41c]
push ecx
push 5
push edi
call ebx
push 4
lea edx, [ebp - 0x41c]
push edx
push 6
push edi
call ebx
push 4
lea eax, [ebp - 0x41c]
push eax
push 8
push edi
call ebx
call esi
mov ecx, dword [ebp - 0x418]
push 0
push 0x80080000
push 0
push 0
push ecx
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov ebx, eax
test ebx, ebx
jne 0x4039e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x40394b
call esi
mov dword [ebp - 0x420], 0
mov dword [ebp - 0x424], 4
call esi
push 0
lea edx, [ebp - 0x424]
push edx
lea eax, [ebp - 0x420]
push eax
push 0x20000013
push ebx
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
call esi
mov ecx, dword [ebp - 0x420]
add ecx, 0xffffff38
xor esi, esi
cmp ecx, 0x63
ja 0x403a87
mov dword [ebp - 0x418], esi
push 0x400
lea edx, [ebp - 0x414]
push 0
push edx
call fcn.004fb000
add esp, 0xc
lea eax, [ebp - 0x418]
push eax
push 0x400
lea ecx, [ebp - 0x414]
push ecx
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
mov esi, eax
test esi, esi
je 0x403a87
xor eax, eax
je 0x403a87
cmp dword [ebp - 0x418], eax
je 0x403a87
push eax
lea edx, [ebp - 0x414]
call fcn.0041aed0
cmp dword [ebp - 0x418], 0
jne 0x403a30
push ebx
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
call ebx
push edi
call ebx
test esi, esi
je 0x40394b
xor eax, eax
jmp 0x403950
Function at 0x403b20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x573500], 0
push esi
mov esi, eax
jne 0x403cc8
push 0x573504
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [0x573500], 0
je 0x403b5a
push 0x573504
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov esp, ebp
pop ebp
ret
push edi
xor ecx, ecx
push ecx
push 0x28
push 0x5730e8
xor eax, eax
push ecx
mov dword [0x5732f0], 0
mov dword [0x5734fc], 0
mov word [0x5730e8], ax
mov word [0x5732f4], cx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x403bab
push str.:windows_
push 0x5730e8
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x403c2d
xor edi, edi
call fcn.0048ab90
test al, al
jne 0x403cbc
test esi, esi
je 0x403cbc
push esi
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x403c1d
test eax, eax
je 0x403c1d
lea edx, [ebp - 4]
push edx
push 8
push eax
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x403c1d
mov ecx, dword [ebp - 4]
lea eax, [ebp - 8]
push eax
push 0x5730e8
push ecx
mov dword [ebp - 8], 0x104
call dword [sym.imp.USERENV.dll_GetUserProfileDirectoryW]
test eax, eax
je 0x403c13
mov edi, 1
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [ebp - 0xc]
call fcn.0042c210
test edi, edi
je 0x403cbc
push 0x5730e8
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov eax, 0x5730e8
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403c40
push 0x104
sub eax, edx
push 0x5732f4
sar eax, 1
push 0x5730e8
mov dword [0x5732f0], eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
je 0x403c74
cmp eax, 0x104
jb 0x403c7c
xor eax, eax
mov word [0x5732f4], ax
push 0x5732f4
push 0x5730e8
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x403c99
xor ecx, ecx
mov word [0x5732f4], cx
mov eax, 0x5732f4
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403ca1
sub eax, edx
sar eax, 1
mov dword [0x5734fc], eax
mov byte [0x573500], 1
push 0x573504
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x403d40
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, eax
lea eax, [ebp - 8]
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x403deb
mov eax, dword [edi + 0x20c]
test eax, eax
je 0x403d75
push eax
call fcn.004f4075
add esp, 4
push esi
call fcn.004f3eba
add esp, 4
mov dword [edi + 0x20c], eax
test eax, eax
je 0x403deb
push eax
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x403deb
mov eax, dword [edi + 0x20c]
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 4]
push edx
push str.VarFileInfoTranslation
push eax
mov dword [ebp + 8], 0
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x403deb
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 2]
movzx edx, word [eax]
push ecx
push edx
push str.StringFileInfo_04x_04x
push 0x208
add edi, 4
push edi
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x14
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4040a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x569638]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
mov dword [ebp - 0x210], 0
call fcn.004fb000
add esp, 0xc
lea ecx, [ebp - 0x214]
push ecx
lea edx, [ebp - 0x20c]
push edx
lea eax, [ebp - 0x210]
push eax
push str.Path
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsQHSafeMain.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x214], 0x208
mov dword [ebp - 0x210], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x404156
mov eax, dword [ebp - 0x214]
shr eax, 1
dec eax
cmp eax, 0x104
jae 0x404156
cmp word [ebp + eax*2 - 0x20c], 0x5c
je 0x40414e
cmp eax, 0x103
jae 0x404156
mov ecx, 0x5c
xor edx, edx
mov word [ebp + eax*2 - 0x20c], cx
mov word [ebp + eax*2 - 0x20a], dx
lea ecx, [ebp - 0x20c]
jmp 0x40415b
mov ecx, 0x5334f8
push esi
call fcn.0042bf40
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, esi
call fcn.004f398f
mov esp, ebp
pop ebp
ret

Function at 0x4042f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x569638]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.004fb000
add esp, 0xc
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x214]
push ecx
push 0x5334f8
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths_firefox.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x210], 0x208
mov dword [ebp - 0x214], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x40437a
cmp dword [ebp - 0x210], eax
setne al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f398f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
call fcn.004f398f
mov esp, ebp
pop ebp
ret
Function at 0x405ef0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x569638]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.004fb000
add esp, 0xc
push 0x104
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x405f47
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f398f
mov esp, ebp
pop ebp
ret
push str.ntdll.dll
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x405f37
push str.RtlGetVersion
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f398f
mov esp, ebp
pop ebp
ret

Function at 0x405f90
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x569638]
xor eax, ebp
mov dword [ebp - 4], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.004fb000
add esp, 0xc
lea ecx, [ebp - 0x118]
push ecx
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 5
jne 0x405fe6
mov eax, 1
cmp dword [ebp - 0x110], eax
je 0x405fe8
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f398f
mov esp, ebp
pop ebp
ret

Function at 0x406000
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x569638]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x118
lea eax, [ebp - 0x11c]
push 0
push eax
call fcn.004fb000
add esp, 0xc
lea ecx, [ebp - 0x120]
push ecx
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x406054
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f398f
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x11c]
cmp eax, 6
ja 0x406044
jne 0x40606e
mov eax, 1
cmp dword [ebp - 0x118], eax
jae 0x406070
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f398f
mov esp, ebp
pop ebp
ret
Function at 0x406e90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsQHSafeMain.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x406f18
lea ecx, [ebp - 8]
push ecx
push esi
lea edx, [ebp - 0xc]
push edx
push eax
mov eax, dword [ebp - 4]
push str.Path
push eax
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406ef2
sub eax, edx
sar eax, 1
je 0x406f1a
cmp word [esi + eax*2 - 2], 0x5c
je 0x406f1a
mov edx, 0x5c
mov word [esi + eax*2], dx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x408cb0
Capabilities:
Get session information
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 4]
push ecx
push 5
push 0xffffffffffffffff
push 0
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
test eax, eax
je 0x408d10
mov edx, dword [ebp - 4]
mov eax, edx
push esi
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408ce4
sub eax, esi
mov esi, dword [ebp + 8]
sar eax, 1
push eax
push edx
call fcn.0042b220
mov edx, dword [ebp - 4]
push edx
call sub.WTSAPI32.dll_WTSFreeMemory
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret