joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401512
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
mov edi, dword [esp + 0x20]
xor esi, esi
mov ebx, 0x2733
jmp 0x40155b
push 0
mov ecx, edi
sub ecx, eax
push ecx
add eax, ebp
push eax
push dword [esp + 0x20]
call sub.WSOCK32.dll_recv
mov esi, eax
cmp esi, 0xffffffff
je 0x401566
test esi, esi
je 0x401587
cmp dword [0x41287c], 0
jne 0x40155b
add dword [0x412d68], esi
push esi
call fcn.0040109b
pop ecx
mov eax, dword [0x412d68]
cmp eax, edi
jl 0x401527
jmp 0x401587
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, ebx
je 0x401587
call sub.WSOCK32.dll_WSAGetLastError
push eax
call fcn.004012e4
add esp, 4
mov dword [0x412d00], 0xffffffe0
cmp dword [0x41287c], 0
jne 0x4016ff
add edi, 0xfffffa4c
cmp dword [0x412d68], edi
jg 0x4015b8
cmp esi, 0xffffffff
jne 0x4015b0
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, ebx
jne 0x4015b8
test esi, esi
jne 0x4016ff
cmp dword [0x412874], 0
mov esi, ebp
jne 0x4016d1
mov dword [0x412874], 1
mov al, byte [ebp]
jmp 0x4015dd
cmp al, 9
je 0x4015e1
inc esi
mov al, byte [esi]
cmp al, 0x20
jne 0x4015d6
mov al, byte [esi]
cmp al, 0x20
je 0x4015eb
cmp al, 9
jne 0x4015ee
inc esi
jmp 0x4015e1
cmp byte [esi], 0x32
je 0x4016a1
mov eax, dword [0x41a58c]
test eax, eax
mov dword [0x412d00], 0xfffffffd
je 0x4016c9
cmp dword [0x412854], 0
je 0x40162d
push str.ServerError
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [0x41a58c]
add eax, 0xc
jmp 0x401641
push str._r_n_r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [0x41a58c]
add eax, 4
mov cl, byte [esi]
mov edx, esi
jmp 0x401667
cmp cl, 0xd
je 0x40166b
cmp cl, 0xa
je 0x40166b
mov edi, eax
sub edi, dword [0x41a58c]
cmp edi, 0xfa
jge 0x40166b
mov byte [eax], cl
inc eax
inc edx
mov cl, byte [edx]
test cl, cl
jne 0x401647
mov byte [eax], 0
cmp dword [0x412854], 0
je 0x4016c9
push 0x408200
push dword [0x41a58c]
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push dword [0x41a58c]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add dword [0x41a58c], eax
jmp 0x4016c9
cmp al, 0xa
je 0x4016a7
inc esi
mov al, byte [esi]
cmp al, 0xd
jne 0x40169c
mov al, byte [esi]
lea ecx, [esi + 1]
cmp al, byte [ecx]
je 0x4016c2
cmp al, byte [esi + 2]
je 0x4016c6
cmp al, 0xd
jne 0x4016bb
mov esi, ecx
cmp byte [esi], 0xa
jne 0x4016a1
jmp 0x4016a0
inc esi
inc esi
jmp 0x4016c9
add esi, 4
sub ebp, esi
add dword [0x412d68], ebp
cmp dword [esp + 0x18], 0xffffffff
je 0x4016f8
push dword [0x412d68]
push esi
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll__lwrite]
cmp eax, 0xffffffff
jne 0x4016f8
mov dword [0x412d00], 0xfffffffc
and dword [0x412d68], 0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x4028c7
Capabilities:
Hash data with crc32

Disassembly:
push 0x400
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [0x40b01c], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [0x40b020], eax
and dword [eax], 0
xor eax, eax
inc eax
push 8
mov ecx, eax
pop edx
test cl, 1
je 0x4028ff
shr ecx, 1
xor ecx, 0xedb88320
jmp 0x402901
shr ecx, 1
dec edx
jne 0x4028f0
mov edx, dword [0x40b020]
mov dword [edx + eax*4], ecx
inc eax
cmp eax, 0x100
jl 0x4028eb
ret

Function at 0x40292f
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
test ecx, ecx
jne 0x40293c
or eax, 0xffffffff
jmp 0x402969
mov eax, dword [0x40a050]
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x402968
push edi
mov edi, dword [0x40b020]
xor edx, edx
mov dl, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edi + edx*4]
inc ecx
dec esi
jne 0x40294b
pop edi
pop esi
mov dword [0x40a050], eax
not eax
ret 8

Function at 0x402be0
Capabilities:
Get common file path
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
push edi
mov byte [eax], 0
jne 0x402c22
push 0x208
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.msi.dll
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ebx, [ebp - 0x418]
lea eax, [ebp - 0x10]
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
je 0x402d3f
push esi
lea eax, [edi + edi + 0x1000]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
push edi
push dword [ebp - 0x10]
push ebx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x402d37
cmp edi, 0x14
jb 0x402d37
cmp word [esi + 4], 4
ja 0x402c72
cmp byte [esi + 6], 0x56
je 0x402c86
cmp byte [esi + 4], 0x56
jne 0x402d37
cmp byte [esi + 5], 0x53
jne 0x402d37
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.VarFileInfoTranslation
lea eax, [ebp - 0x210]
push eax
call ebx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x210]
push eax
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x402d37
cmp dword [ebp - 8], 0
je 0x402d37
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
push ecx
push eax
lea eax, [ebp - 0x210]
push str.StringFileInfo_04hX_04hXFileVersion
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x210]
push eax
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x402d2f
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
lea eax, [ebp - 0x210]
push str.StringFileInfo040904e4FileVersion
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x210]
push eax
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x402d37
push dword [ebp + 8]
push dword [ebp + 0xc]
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop esi
pop edi
pop ebx
leave
ret
Function at 0x402d43
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [ebp + 8]
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push closesocket
xor edi, edi
mov byte [esi], bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402dc3
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push ebx
push str.CommonFilesDir
push dword [ebp + 8]
mov dword [ebp - 4], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402dba
cmp byte [esi], bl
je 0x402dba
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [eax + esi - 1]
cmp byte [eax], 0x5c
jne 0x402dab
mov byte [eax], bl
push str.Wise_Installation_Wizard
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
xor edi, edi
inc edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4030a7
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
mov byte [esi], 0
cmp dword [0x40aa00], 0
je 0x403131
push ebx
mov ebx, dword [ebp + 0xc]
push edi
push 4
pop eax
xor edi, edi
cmp ebx, eax
jle 0x4030df
movzx ecx, byte [eax + 0x40ad60]
add edi, ecx
cmp eax, 0xa
jne 0x4030da
push 0x12
pop eax
inc eax
cmp eax, ebx
jl 0x4030c9
mov esi, dword [sym.imp.KERNEL32.dll__llseek]
push 1
push 0
push dword [0x40b010]
call esi
mov dword [ebp - 4], eax
mov eax, dword [0x40ad88]
push 0
add eax, edi
push eax
push dword [0x40b010]
call esi
movzx eax, byte [ebx + 0x40ad60]
push eax
push dword [ebp + 8]
push dword [0x40b010]
call dword [sym.imp.KERNEL32.dll__lread]
push 0
push dword [ebp - 4]
push dword [0x40b010]
call esi
mov esi, dword [ebp + 8]
pop edi
pop ebx
jmp 0x40314d
push dword [ebp + 0x10]
push 0x100
push esi
push 0x40847d
push dword [ebp + 0x14]
push str.WiseInstaller
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [esi], 0
jne 0x403167
push 0x100
push esi
push dword [ebp + 0x18]
push dword [0x40aa10]
call dword [sym.imp.USER32.dll_LoadStringA]
pop esi
leave
ret
Function at 0x4032ab
Capabilities:
Accept command line arguments
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionInstallerRunOnceEntries
push closesocket
xor edi, edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x403319
lea eax, [ebp - 0x48]
push eax
push dword [ebp + 8]
call fcn.0040316a
pop ecx
pop ecx
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 4]
mov dword [ebp - 8], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403310
cmp dword [ebp - 8], 1
jbe 0x403310
inc edi
push dword [ebp - 4]
call esi
cmp edi, ebx
jne 0x403378
mov edi, dword [ebp + 0xc]
cmp edi, ebx
mov eax, str.SOFTWAREMicrosoftWindowsCurrentVersionRun
je 0x40332a
mov eax, str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
push ebx
lea ecx, [ebp - 4]
push ecx
push ebx
push 0xf003f
push ebx
push 0x40847d
push ebx
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x403378
cmp edi, ebx
jne 0x403358
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push edi
push 1
push ebx
push str.WiseStubReboot
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4038c3
Capabilities:
Check if file exists
Get file attributes
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
push edi
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoft.NETFramework
push closesocket
mov dword [ebp - 8], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
mov edi, str.v1.0.3705
jne 0x403960
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push str.InstallRoot
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403960
push esi
lea eax, [ebp - 0x138]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [ebp + eax - 0x139], 0x5c
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x403947
push 0x40879c
lea eax, [ebp - 0x138]
push eax
call esi
push edi
lea eax, [ebp - 0x138]
push eax
call esi
push str.mscorlib.dll
lea eax, [ebp - 0x138]
push eax
call esi
pop esi
lea eax, [ebp - 0x138]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x403976
xor eax, eax
jmp 0x4039ad
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x138]
push eax
call fcn.00402e45
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0xc]
push dword [ebp - 4]
call fcn.0040354c
push 9
lea eax, [ebp - 0x34]
push edi
push eax
call fcn.00401000
add esp, 0x24
neg eax
sbb eax, eax
inc eax
pop edi
leave
ret

Function at 0x4039b0
Capabilities:
Delete file
Terminate process

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
push edi
call fcn.00402df3
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 4
jle 0x4039f0
lea esi, [eax + edi - 4]
push str..TMP
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x4039f0
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push str..exe
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0
push edi
call dword [sym.imp.KERNEL32.dll__lcreat]
mov esi, dword [esp + 0x10]
push eax
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll__lclose]
push 2
push edi
call dword [sym.imp.KERNEL32.dll__lopen]
test eax, eax
pop edi
mov dword [esi], eax
pop esi
jge 0x403a27
push 0
call fcn.00402e27
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
xor eax, eax
inc eax
ret
Function at 0x403a2b
Capabilities:
Create process on windows
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [ebp + 8]
push esi
xor esi, esi
cmp dword [0x40aa00], esi
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], esi
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x3c], 0x40
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], esi
jne 0x403aec
push 0x100
lea eax, [ebp - 0x144]
push eax
push dword [0x40aa10]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp byte [0x40a500], 0
je 0x403aac
push 0x40a500
push 0x104
lea eax, [ebp - 0x144]
push eax
push eax
push str.ModuleFileName
push str.Settings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [ebp - 0x144], 0
je 0x403ae3
lea eax, [ebp - 0x144]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp + eax - 0x144]
jmp 0x403ad1
cmp byte [eax], 0x5c
je 0x403ae0
dec eax
lea ecx, [ebp - 0x144]
cmp eax, ecx
ja 0x403acb
cmp byte [eax], 0x5c
jne 0x403ae3
mov byte [eax], 0
lea eax, [ebp - 0x144]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x24], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x403b5f
call fcn.00402f06
cmp dword [ebp + 0x10], esi
je 0x403b4d
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
push edi
mov ebx, 0x1f4
push ebx
push dword [ebp - 8]
call esi
mov edi, 0x102
jmp 0x403b39
call fcn.00402f06
cmp dword [0x40ad84], 0
jne 0x403b3f
push ebx
push dword [ebp - 8]
call esi
cmp eax, edi
je 0x403b25
jmp 0x403b4b
push 0
push dword [ebp + 0x14]
call fcn.004032ab
pop ecx
pop ecx
pop edi
pop ebx
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
call fcn.00402f06
mov eax, dword [ebp - 4]
pop esi
leave
ret

Function at 0x403b65
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
cmp edi, 3
jle 0x403b91
push esi
lea esi, [edi - 4]
shr esi, 2
inc esi
mov eax, esi
neg eax
lea edi, [edi + eax*4]
call fcn.00402f92
xor dword [ebx], eax
add ebx, 4
dec esi
jne 0x403b83
pop esi
test edi, edi
jle 0x403baa
call fcn.00402f92
cdq
mov ecx, 0xff
idiv ecx
inc dl
xor byte [ebx], dl
inc ebx
dec edi
jne 0x403b95
pop edi
pop ebx
ret

Function at 0x403bf5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
lea eax, [ebp - 0x194]
push eax
mov dword [ebp - 0x194], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x184], 1
jne 0x403c7a
push esi
push 0x100
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [ebp + eax - 0x101], 0x5c
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x403c5c
push 0x40879c
lea eax, [ebp - 0x100]
push eax
call esi
push str.WININIT.INI
lea eax, [ebp - 0x100]
push eax
call esi
lea eax, [ebp - 0x100]
push eax
call fcn.0040337d
pop ecx
pop esi
leave
ret
xor eax, eax
leave
ret
Function at 0x40414f
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30c
push ebx
xor ebx, ebx
cmp dword [0x40ac24], ebx
jne 0x40427b
cmp dword [0x40b014], ebx
jne 0x40427b
push ebx
push sym.STUB32.EXE__ProgressDlg_16
push ebx
push 0x6e
push dword [0x40aa10]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov ecx, dword [0x40b008]
cmp ecx, ebx
mov dword [0x40b014], eax
je 0x4041a7
jmp 0x40419a
inc ecx
cmp byte [ecx], bl
jne 0x404199
inc ecx
push ecx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
cmp dword [0x40aa00], ebx
jne 0x40427b
push esi
push edi
mov esi, 0x104
push esi
lea eax, [ebp - 0x104]
push eax
push dword [0x40aa10]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp dword [0x40aa00], ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
jne 0x4041fe
cmp byte [0x40a500], bl
je 0x4041fe
push 0x40a500
push esi
lea eax, [ebp - 0x104]
push eax
push eax
push str.ModuleFileName
push str.Settings
call edi
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp + eax - 0x104]
jmp 0x40421a
cmp byte [eax], 0x2e
je 0x404229
dec eax
lea ecx, [ebp - 0x104]
cmp eax, ecx
ja 0x404214
cmp byte [eax], 0x2e
jne 0x404235
push str..ini
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x104]
push eax
push 0x208
lea eax, [ebp - 0x30c]
push eax
push 0x40847d
push str.WiseInitProgressText
push str.WiseInstaller
call edi
cmp byte [ebp - 0x30c], bl
pop edi
pop esi
je 0x40427b
lea eax, [ebp - 0x30c]
push eax
push 0x3f1
push dword [0x40b014]
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
pop ebx
leave
ret
Function at 0x407100
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push ebx
xor eax, eax
mov ebx, dword [esp + 8]
push esi
push edi
cmp byte [ebx], al
je 0x40713f
push ebx
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
jne 0x40713f
mov edi, str.255.255.255.255
mov ecx, 0x10
mov esi, ebx
repe cmpsb byte [esi], byte es:[edi]
je 0x40713f
push ebx
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x40713d
mov eax, dword [eax + 0xc]
pop edi
mov ecx, dword [eax]
pop esi
pop ebx
mov eax, dword [ecx]
ret
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x406c50
Capabilities:
Encrypt data using salsa20 or chacha
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [0x192072c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x406e20
mov eax, dword [esp + 8]
mov dword [eax], 0x61707865
mov dword [eax + 4], 0x61707865
mov dword [eax + 8], 0x61707865
mov dword [eax + 0xc], 0x61707865
mov dword [eax + 0x10], 0x3320646e
mov dword [eax + 0x14], 0x3320646e
mov dword [eax + 0x18], 0x3320646e
mov dword [eax + 0x1c], 0x3320646e
mov dword [eax + 0x20], 0x79622d32
mov dword [eax + 0x24], 0x79622d32
mov dword [eax + 0x28], 0x79622d32
mov dword [eax + 0x2c], 0x79622d32
mov dword [eax + 0x30], 0x6b206574
mov dword [eax + 0x34], 0x6b206574
mov dword [eax + 0x38], 0x6b206574
mov dword [eax + 0x3c], 0x6b206574
mov ecx, dword [esp + 4]
mov edx, dword [ecx]
mov dword [eax + 0x40], edx
mov dword [eax + 0x44], edx
mov dword [eax + 0x48], edx
mov dword [eax + 0x4c], edx
mov edx, dword [ecx + 4]
mov dword [eax + 0x50], edx
mov dword [eax + 0x54], edx
mov dword [eax + 0x58], edx
mov dword [eax + 0x5c], edx
mov edx, dword [ecx + 8]
mov dword [eax + 0x60], edx
mov dword [eax + 0x64], edx
mov dword [eax + 0x68], edx
mov dword [eax + 0x6c], edx
mov edx, dword [ecx + 0xc]
mov dword [eax + 0x70], edx
mov dword [eax + 0x74], edx
mov dword [eax + 0x78], edx
mov dword [eax + 0x7c], edx
mov edx, dword [ecx + 0x10]
mov dword [eax + 0x80], edx
mov dword [eax + 0x84], edx
mov dword [eax + 0x88], edx
mov dword [eax + 0x8c], edx
mov edx, dword [ecx + 0x14]
mov dword [eax + 0x90], edx
mov dword [eax + 0x94], edx
mov dword [eax + 0x98], edx
mov dword [eax + 0x9c], edx
mov edx, dword [ecx + 0x18]
mov dword [eax + 0xa0], edx
mov dword [eax + 0xa4], edx
mov dword [eax + 0xa8], edx
mov dword [eax + 0xac], edx
mov ecx, dword [ecx + 0x1c]
mov dword [eax + 0xb0], ecx
mov dword [eax + 0xb4], ecx
mov dword [eax + 0xb8], ecx
mov dword [eax + 0xbc], ecx
mov ecx, dword [esp + 0xc]
mov dword [eax + 0xc0], ecx
lea edx, [ecx + 1]
mov dword [eax + 0xc4], edx
lea edx, [ecx + 2]
mov dword [eax + 0xc8], edx
add ecx, 3
mov dword [eax + 0xcc], ecx
mov dword [eax + 0xd0], 0
mov dword [eax + 0xd4], 0
mov dword [eax + 0xd8], 0
mov dword [eax + 0xdc], 0
mov dword [eax + 0xe0], 0
mov dword [eax + 0xe4], 0
mov dword [eax + 0xe8], 0
mov dword [eax + 0xec], 0
mov dword [eax + 0xf0], 0
mov dword [eax + 0xf4], 0
mov dword [eax + 0xf8], 0
mov dword [eax + 0xfc], 0
ret
call fcn.00475530
jmp fcn.00406c50
Function at 0x40f800
Capabilities:
Decompress data using quicklz

Disassembly:
mov ecx, dword [0x192072c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x40f9cb
sub esp, 0x38
mov eax, dword [esp + 0x3c]
cmp eax, 0x7000000
jle 0x40f829
mov eax, 0x7000000
jmp 0x40f831
test eax, eax
je 0x40f9a6
mov dword [esp + 0x34], eax
mov ecx, dword [0x192072c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
mov ecx, dword [ecx + 0x18]
mov edx, dword [ecx + 0x448]
mov ebx, dword [ecx + 0x44c]
mov ebp, edx
shl edx, 0x11
xor edx, ebp
mov ebp, ebx
xor ebx, edx
shr edx, 7
xor edx, ebx
mov ebx, ebp
shr ebp, 0x10
xor ebp, edx
lea edx, [ebp + ebx]
shr edx, 6
inc edx
mov dword [ecx + 0x448], ebx
mov dword [ecx + 0x44c], ebp
mov dword [esp], edx
call fcn.004768e0
movsd xmm0, qword [esp + 4]
movsd qword [esp + 0x24], xmm0
mov eax, dword [esp + 0x28]
mov ecx, eax
shr ecx, 0x14
and ecx, 0x7ff
mov edx, eax
shr edx, 0xf
and edx, 0x1f
shl eax, 5
mov ebx, dword [esp + 0x24]
shr ebx, 0x1b
or ebx, eax
lea eax, [0x17357e0]
movsd xmm0, qword [eax + edx*8]
mov ebp, ecx
add ecx, 0xfffffc01
add edx, 1
mov esi, 0
adc esi, 0
test esi, esi
jne 0x40f9be
cmp edx, 0x21
jae 0x40f9b2
movsd qword [esp + 0x14], xmm0
add ebp, 0xfffffc01
mov ebp, 0xffffffff
adc ebp, 0
and ebx, 0xfffff
mov dword [esp + 0x10], ebx
movsd xmm0, qword [eax + edx*8]
movsd qword [esp + 0x1c], xmm0
mov dword [esp], ecx
mov dword [esp + 4], ebp
call fcn.00466cb0
movsd xmm0, qword [esp + 8]
movsd qword [esp + 0x2c], xmm0
mov eax, dword [esp + 0x10]
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.00466d80
movsd xmm0, qword [esp + 0x2c]
movsd xmm1, qword [esp + 0x14]
addsd xmm0, xmm1
movsd xmm2, qword [esp + 0x1c]
subsd xmm2, xmm1
movsd xmm1, qword [esp + 8]
mulsd xmm1, xmm2
movsd xmm2, qword [0x115e730]
mulsd xmm2, xmm1
addsd xmm0, xmm2
movsd xmm1, qword [0x115e780]
subsd xmm0, xmm1
xorps xmm1, xmm1
ucomisd xmm0, xmm1
jbe 0x40f981
xorps xmm0, xmm0
mov eax, dword [esp + 0x34]
cvtsi2sd xmm1, eax
movsd xmm2, qword [0x115e7b0]
mulsd xmm1, xmm2
mulsd xmm0, xmm1
cvttsd2si eax, xmm0
inc eax
mov dword [esp + 0x40], eax
add esp, 0x38
ret
mov dword [esp + 0x40], 0
add esp, 0x38
ret
mov eax, edx
mov ecx, 0x21
call fcn.004769c0
mov eax, edx
mov ecx, 0x21
call fcn.00476aa0
nop
call fcn.00475530
jmp fcn.0040f800