joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Check mutex on windows
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4493b8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x4580b4]
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 + 0x10]
mov dword [ebp - 0x38], eax
mov dword [ebp - 4], 0
push str.SOFT_SKYRFILM_MUTEX
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call esi
push str.SOFT_SKYRFILM_MUTEX
push 0
push 0
mov edi, dword [sym.imp.KERNEL32.dll_CreateMutexW]
call edi
mov dword [ebp - 0x34], eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0xb7
jne 0x4010bf
push 0
push str.CSKYRSPIRITWND
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x401095
push 0
push 0
push 0x1406
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
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.0043561f
mov esp, ebp
pop ebp
ret 0x10
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 4], 2
push str.SOFT_SKYSETUP_MUTEX
call esi
push str.SOFT_SKYSETUP_MUTEX
push 0
push 0
call edi
mov esi, eax
call ebx
cmp eax, 0xb7
je 0x40109f
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], 0
xor ecx, ecx
mov word [ebp - 0x30], cx
mov byte [ebp - 4], 3
call fcn.004011c0
lea edi, [ebp - 0x30]
call fcn.00401220
test al, al
je 0x401135
call fcn.004011c0
mov edx, dword [ebp - 0x38]
push edx
call fcn.00401350
test esi, esi
je 0x401147
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 2
lea esi, [ebp - 0x30]
call fcn.00401190
mov dword [ebp - 4], 0xffffffff
jmp 0x40109f
Function at 0x4015e0
Capabilities:
Acquire debug privileges
Check os version
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x449240
mov eax, dword fs:[0]
push eax
sub esp, 0x384
mov eax, dword [0x4580b4]
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 dword [ebp - 4], 0
lea eax, [ebp - 0x160]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x15c], 6
jb 0x40172a
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
mov dword [ebp - 0x38c], 0x22c
lea ecx, [ebp - 0x38c]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov ecx, 0xa
mov esi, str.clientofwatcher.exe
lea edi, [ebp - 0x3c]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edx, [ebp - 0x368]
push edx
call fcn.00436471
lea ecx, [ebp - 0x3c]
push ecx
push eax
call fcn.004364d9
add esp, 0xc
test eax, eax
je 0x401706
lea edx, [ebp - 0x390]
push edx
push 0x28
call edi
push eax
call esi
lea eax, [ebp - 0x48]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov dword [ebp - 0x4c], 1
mov dword [ebp - 0x40], 2
push 0
push 0
push 0
lea ecx, [ebp - 0x4c]
push ecx
push 0
mov edx, dword [ebp - 0x390]
push edx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x40172a
mov eax, dword [ebp - 0x384]
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x4016f9
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 0x390]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 0x38c]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x401671
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
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.0043561f
mov esp, ebp
pop ebp
ret

Function at 0x401760
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push edi
push 0x453a38
push 0x82
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x4017aa
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4017aa
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test ebx, ebx
je 0x4017ad
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x4017b0
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
or eax, 0xffffffff
pop edi
pop esi
ret
push esi
push eax
push ebx
call fcn.00436d30
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
ret
Function at 0x4017d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x449220
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x4580b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov ebx, ecx
xor edi, edi
mov dword [ebp - 4], edi
cmp ebx, edi
je 0x40186a
cmp eax, edi
je 0x40186a
cmp word [eax], di
je 0x40186a
push edi
push 0x80
push 2
push edi
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40186a
mov dword [ebp - 0x18], edi
push edi
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp + 8]
push ecx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x14], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
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 0x404170
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x404177
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x40424d
mov esi, edx
shr esi, 3
push edi
lea esp, [esp]
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x454ea0]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x454ea0]
movzx edi, byte [ecx + 2]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x454ea0]
movzx edi, byte [ecx + 3]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x454ea0]
movzx edi, byte [ecx + 4]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x454ea0]
movzx edi, byte [ecx + 5]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x454ea0]
movzx edi, byte [ecx + 6]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x454ea0]
movzx edi, byte [ecx + 7]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x454ea0]
add ecx, 8
sub edx, 8
dec esi
jne 0x404190
pop edi
test edx, edx
je 0x40426a
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x454ea0]
inc ecx
dec edx
jne 0x404251
not eax
pop esi
ret

Function at 0x4049d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ebx
imul esi, dword [ebp + 0xc]
cmp byte [edi], 0
je 0x404a06
mov ecx, dword [ebp + 8]
mov edx, dword [edi + 4]
push 0
lea eax, [ebp + 0xc]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4049fc
mov byte [edi + 8], 1
mov eax, dword [ebp + 0xc]
xor edx, edx
div ebx
pop esi
pop ebp
ret
mov ecx, dword [edi + 0x18]
mov eax, dword [edi + 0x14]
lea edx, [ecx + esi]
cmp edx, eax
jbe 0x404a17
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x10]
add eax, ecx
mov ecx, dword [ebp + 8]
push esi
push eax
push ecx
call fcn.00436d30
add dword [edi + 0x18], esi
add esp, 0xc
mov eax, esi
xor edx, edx
div ebx
pop esi
pop ebp
ret

Function at 0x404a40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp byte [esi], 0
push edi
mov edi, 1
je 0x404a73
mov edx, dword [esi + 4]
push 0
lea eax, [ebp - 8]
push eax
push edi
lea ecx, [ebp - 1]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x404a6e
mov byte [esi + 8], 1
mov edi, dword [ebp - 8]
jmp 0x404a9e
mov eax, dword [esi + 0x14]
push ebx
mov ebx, dword [esi + 0x18]
lea ecx, [ebx + 1]
cmp ecx, eax
jbe 0x404a85
sub eax, ebx
mov edi, eax
mov edx, dword [esi + 0x10]
push edi
add edx, ebx
push edx
lea eax, [ebp - 1]
push eax
call fcn.00436d30
add esp, 0xc
add ebx, edi
mov dword [esi + 0x18], ebx
pop ebx
cmp edi, 1
pop edi
jne 0x404ab3
movzx ecx, byte [ebp - 1]
mov edx, dword [ebp + 8]
mov dword [edx], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0
je 0x404aad
cmp byte [esi + 8], 0
je 0x404aad
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
Function at 0x404b50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp byte [esi], 0
je 0x404b97
cmp byte [esi + 1], 0
je 0x404b9f
mov eax, dword [esi + 4]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [esi], 0
push ebx
je 0x404bb1
cmp byte [esi + 1], 0
je 0x404ba5
mov edx, dword [esi + 4]
push 1
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, eax
sub ebx, dword [esi + 0xc]
mov dword [ebp - 4], ebx
jmp 0x404bb9
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x18], ecx
jmp 0x404b71
xor eax, eax
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0
mov ebx, dword [ebp - 4]
jmp 0x404bb9
mov eax, dword [esi + 0x18]
mov dword [ebp - 4], eax
mov ebx, eax
push edi
mov edi, 0xffff
mov dword [ebp - 8], edi
cmp ebx, edi
jae 0x404bcb
mov dword [ebp - 8], ebx
mov edi, ebx
push 0x404
call fcn.00436805
add esp, 4
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x404be5
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 4
mov dword [ebp - 0x14], 0
cmp edi, eax
jbe 0x404cf9
jmp 0x404c09
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 4]
add eax, 0x400
mov dword [ebp - 0xc], edi
cmp eax, edi
ja 0x404c18
mov dword [ebp - 0xc], eax
mov eax, ebx
sub eax, dword [ebp - 0xc]
sub ebx, eax
mov dword [ebp - 0x1c], eax
cmp ebx, 0x404
jbe 0x404c2f
mov ebx, 0x404
cmp byte [esi], 0
je 0x404c54
cmp byte [esi + 1], 0
je 0x404cf9
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push 0
push 0
add ecx, eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x404c57
mov dword [esi + 0x18], eax
cmp byte [esi], 0
mov edi, ebx
je 0x404c80
mov ecx, dword [ebp - 0x10]
mov edx, dword [esi + 4]
push 0
lea eax, [ebp - 0x18]
push eax
push ebx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x404c7b
mov byte [esi + 8], 1
mov eax, dword [ebp - 0x18]
jmp 0x404ca9
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x14]
lea edx, [eax + ebx]
cmp edx, ecx
jbe 0x404c91
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0x10]
mov edx, dword [ebp - 0x10]
push edi
add ecx, eax
push ecx
push edx
call fcn.00436d30
add esp, 0xc
add dword [esi + 0x18], edi
mov eax, edi
xor edx, edx
div ebx
cmp eax, 1
jne 0x404cf9
lea eax, [ebx - 3]
test eax, eax
jle 0x404ced
lea esp, [esp]
mov ecx, dword [ebp - 0x10]
dec eax
cmp byte [eax + ecx], 0x50
jne 0x404cdf
cmp byte [eax + ecx + 1], 0x4b
jne 0x404cdf
cmp byte [eax + ecx + 2], 5
jne 0x404cdf
cmp byte [eax + ecx + 3], 6
je 0x404ce5
test eax, eax
jg 0x404cc0
jmp 0x404ced
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
jne 0x404cf9
mov edx, dword [ebp - 8]
cmp dword [ebp - 0xc], edx
jb 0x404c00
mov eax, dword [ebp - 0x10]
push eax
call fcn.004367cb
mov eax, dword [ebp - 0x14]
add esp, 4
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406070
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4580b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x40615c
movzx eax, word [edi]
test ax, ax
je 0x40615c
push esi
mov esi, edi
mov ecx, edi
cmp ax, 0x2f
je 0x4060b0
cmp ax, 0x5c
jne 0x4060b2
mov esi, ecx
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x4060a4
cmp esi, edi
je 0x4060ee
sub esi, edi
sar esi, 1
push esi
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.00436899
lea edx, [ebp - 0x20c]
push edx
xor ecx, ecx
push ebx
mov word [ebp + esi*2 - 0x20c], cx
call fcn.00406070
add esp, 0x14
lea edx, [ebp - 0x414]
mov eax, ebx
sub edx, ebx
jmp 0x406100
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x406100
mov eax, edi
mov edx, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406113
lea edi, [ebp - 0x414]
sub eax, edx
add edi, 0xfffffffe
lea esp, [esp]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x406130
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
lea eax, [ebp - 0x414]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0043561f
mov esp, ebp
pop ebp
ret
Function at 0x4064f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44934b
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4580b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x340
call fcn.0043562e
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
or ecx, 0xffffffff
test eax, eax
je 0x406546
mov dword [eax], 0
mov dword [eax + 4], ecx
mov dword [eax + 0x134], ecx
mov esi, eax
jmp 0x406548
xor esi, esi
mov dword [ebp - 4], ecx
cmp dword [esi], 0
jne 0x4065a5
cmp dword [esi + 4], ecx
jne 0x4065a5
lea edi, [esi + 0x138]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add edi, 0xfffffffe
lea ebx, [ebx]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x406570
mov eax, dword [0x455498]
mov dword [edi], eax
mov eax, dword [ebp + 8]
lea edi, [ebp - 0x10]
call fcn.00404930
test eax, eax
jne 0x406597
mov eax, dword [ebp - 0x10]
jmp 0x4065aa
call fcn.00404d10
mov dword [esi], eax
mov eax, dword [0x45a5bc]
jmp 0x4065aa
mov eax, 0x1000000
mov dword [0x45a5c0], eax
test eax, eax
je 0x4065cf
push esi
call fcn.00435614
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 8
call fcn.0043562e
add esp, 4
mov dword [eax], 1
mov dword [eax + 4], esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x406880
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x4580b4]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4068d0
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x4068ca
shr eax, 8
cmp al, 2
jne 0x4068ca
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043561f
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 2
call fcn.0043561f
mov esp, ebp
pop ebp
ret
Function at 0x406ab0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
cmp ebx, esi
jne 0x406ad0
lea eax, [esi + 0x2b]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebx + 8], esi
je 0x406aee
push str.easy_handled_already_used_in_multi_handle
push ebx
call fcn.00411180
add esp, 8
pop esi
mov eax, 2
pop ebx
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [ebx + 0xc]
cmp edi, esi
jne 0x406b17
push 3
push 1
call fcn.0040e6d0
mov edi, eax
add esp, 8
cmp edi, esi
jne 0x406b14
pop edi
pop esi
mov eax, 0x1b
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebx + 0xc], edi
mov eax, dword [ebx + 0x41c]
push eax
push 6
push edi
call sym.SkyrSetup.exe_curl_multi_setopt
push ebx
push edi
call sym.SkyrSetup.exe_curl_multi_add_handle
mov esi, eax
add esp, 0x14
test esi, esi
je 0x406b53
push edi
call sym.SkyrSetup.exe_curl_multi_cleanup
add esp, 4
lea eax, [esi - 3]
neg eax
sbb eax, eax
pop edi
and eax, 0xffffffe7
pop esi
add eax, 0x1b
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebx + 8], edi
jmp 0x406b63
mov ebx, dword [ebp + 8]
test esi, esi
jne 0x406c28
call fcn.00410cf0
lea ecx, [ebp - 0xc]
push ecx
push 0x3e8
push esi
push esi
push edi
mov ebx, eax
mov dword [ebp - 0x18], edx
call sym.SkyrSetup.exe_curl_multi_wait
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x406b60
mov eax, dword [ebp - 0xc]
cmp eax, 0xffffffff
je 0x406c1e
cmp eax, esi
jne 0x406bde
call fcn.00410cf0
mov ecx, dword [ebp - 0x18]
push ecx
push ebx
push edx
push eax
call fcn.00410d20
add esp, 0x10
cmp eax, 0xa
jg 0x406bde
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp eax, 2
jle 0x406be1
imul eax, eax, 0x32
cmp eax, 0x3e8
jle 0x406bd3
mov eax, 0x3e8
push eax
call fcn.004071d0
add esp, 4
jmp 0x406be1
mov dword [ebp - 4], esi
lea edx, [ebp - 0x10]
push edx
push edi
call sym.SkyrSetup.exe_curl_multi_perform
mov esi, eax
add esp, 8
test esi, esi
jne 0x406b60
cmp dword [ebp - 0x10], eax
jne 0x406b60
lea eax, [ebp - 0x14]
push eax
push edi
call sym.SkyrSetup.exe_curl_multi_info_read
add esp, 8
test eax, eax
je 0x406b60
mov ecx, dword [eax + 8]
mov dword [ebp - 8], ecx
jmp 0x406c25
mov dword [ebp - 8], 0x38
mov ebx, dword [ebp + 8]
push ebx
push edi
call sym.SkyrSetup.exe_curl_multi_remove_handle
mov eax, dword [ebp - 8]
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x410e50
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x410e83
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x51
pop ebp
ret
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
xor eax, eax
pop ebp
ret

Function at 0x410fc0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x164]
test ecx, ecx
je 0x410fdb
mov edx, dword [esi + 0xf4]
push edx
push edi
push ebx
push eax
push esi
call ecx
add esp, 0x14
ret
test eax, eax
js 0x41100f
cmp eax, 2
jg 0x41100f
mov ecx, dword [esi + 0xf0]
push ecx
push 1
lea edx, [eax + eax*2 + 0x44ac58]
push 2
push edx
call fcn.00435e42
mov eax, dword [esi + 0xf0]
push eax
push 1
push edi
push ebx
call fcn.00435e42
add esp, 0x20
xor eax, eax
ret

Function at 0x4112f0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + eax*4 + 0x134]
push edi
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [ebp + 0x18]
mov edi, eax
mov dword [ebx], 0
cmp edi, 0xffffffff
jne 0x41136c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp + 8], eax
cmp eax, 0x2733
jne 0x411341
pop edi
pop esi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
pop ebp
ret
push eax
push esi
call fcn.00416800
push eax
mov eax, dword [esi]
push str.Send_failure:__s
push eax
call fcn.00411180
mov ecx, dword [esi]
mov edx, dword [ebp + 8]
mov dword [ecx + 0x8594], edx
add esp, 0x14
mov dword [ebx], 0x37
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4130b0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4580b4]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
cmp dword [esi + 0x410], eax
push 4
lea ecx, [ebp - 0x14]
push ecx
setne al
push 8
push 0xffff
push edi
mov dword [ebp - 0x14], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x413103
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.00411100
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043561f
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x414]
push edx
mov dword [ebp - 0x10], 1
call fcn.0042da20
imul eax, eax, 0x3e8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x418]
push eax
call fcn.0042da20
imul eax, eax, 0x3e8
add esp, 8
push 0
push 0
lea ecx, [ebp - 0x18]
push ecx
push 0
push 0
push 0xc
lea edx, [ebp - 0x10]
push edx
push 0x98000004
push edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x413175
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
push esi
call fcn.00411100
add esp, 0x10
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043561f
mov esp, ebp
pop ebp
ret
Function at 0x4137e0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x4580b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x1a8], 0
mov ebx, dword [esi]
push edi
mov dword [ebp - 0x108], esi
mov dword [ebp - 0x110], ebx
jne 0x413977
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x104]
push ecx
push edi
mov dword [ebp - 0x10c], 0x80
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x41386a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.00416800
push eax
push edi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.00411180
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043561f
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x10c]
push edx
lea eax, [ebp - 0x84]
push eax
push edi
mov dword [ebp - 0x10c], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4138bd
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.00416800
push eax
push edi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.00411180
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043561f
mov esp, ebp
pop ebp
ret
lea ebx, [esi + 0xcc]
lea edi, [esi + 0x9e]
lea esi, [ebp - 0x104]
call fcn.004137a0
test eax, eax
jne 0x413914
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x108]
mov esi, eax
push esi
push ecx
call fcn.00416800
mov edx, dword [ebp - 0x110]
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push edx
call fcn.00411180
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043561f
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x108]
lea ebx, [eax + 0x100]
lea edi, [eax + 0xd0]
lea esi, [ebp - 0x84]
call fcn.004137a0
test eax, eax
jne 0x413971
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebp - 0x108]
push esi
push eax
call fcn.00416800
mov ecx, dword [ebp - 0x110]
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ecx
call fcn.00411180
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043561f
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x108]
push esi
call fcn.00413740
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043561f
mov esp, ebp
pop ebp
ret

Function at 0x4139a0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [edi]
mov eax, dword [esi + 0x314]
push 4
lea ecx, [ebp - 4]
push ecx
push 1
push 6
push edx
mov dword [ebp - 4], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x4139e6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.00416800
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.00411100
add esp, 0x14
pop esi
mov esp, ebp
pop ebp
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.00411100
add esp, 8
pop esi
mov esp, ebp
pop ebp
ret