joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000f466
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x34
mov eax, 0x100eb915
call fcn.1003e1f4
mov dword [ebp - 0x3c], edx
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1000f49c
xor eax, eax
jmp 0x1000f550
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
jne 0x1000f4b3
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1000f495
push ebx
call fcn.1003865f
mov edi, eax
pop ecx
test edi, edi
je 0x1000f4aa
push ebx
push 0
push edi
call fcn.1003e9c0
and dword [ebp - 0x40], 0
lea eax, [ebp - 0x40]
add esp, 0xc
push 0
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1000f4ec
push edi
call fcn.100389bf
pop ecx
jmp 0x1000f4aa
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x38]
mov edx, ebx
push eax
mov ecx, edi
call fcn.100082be
pop ecx
lea edx, [ebp - 0x38]
lea ecx, [ebp - 0x28]
call fcn.10008216
and dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
cmovae ecx, dword [ebp - 0x28]
call fcn.10011a7f
mov esi, eax
push esi
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
call fcn.100389bf
pop ecx
push edi
call fcn.100389bf
pop ecx
xor ebx, ebx
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x18], ebx
push 0
push 1
setne bl
call fcn.10002e46
mov eax, ebx
call fcn.1003e1b2
ret
Function at 0x1000f556
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Get mac address on windows
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x1013a420]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x14], ecx
push edi
push 0x288
mov byte [ebp - 0xc], bl
mov edi, ebx
mov dword [ebp - 0xb], ebx
mov byte [ebp - 7], bl
call fcn.1003896e
mov esi, eax
mov dword [ebp - 0x4c], 0x288
pop ecx
lea eax, [ebp - 0x4c]
push eax
push esi
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
cmp eax, 0x6f
jne 0x1000f5af
push esi
call fcn.10038969
push dword [ebp - 0x4c]
call fcn.1003865f
pop ecx
pop ecx
mov esi, eax
lea eax, [ebp - 0x4c]
push eax
push esi
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
test eax, eax
jne 0x1000f5d5
mov eax, dword [esi + 0x194]
xor edi, edi
mov dword [ebp - 0xc], eax
inc edi
mov ax, word [esi + 0x198]
mov word [ebp - 8], ax
test esi, esi
je 0x1000f5e0
push esi
call fcn.10038969
pop ecx
test edi, edi
je 0x1000f6bf
push 6
lea edx, [ebp - 0xc]
or ecx, 0xffffffff
pop esi
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x1012b460]
inc edx
dec esi
jne 0x1000f5f1
xor eax, eax
lea edi, [ebp - 0x26]
mov word [ebp - 0x28], ax
not ecx
stosd dword es:[edi], eax
mov dword [ebp - 0x4c], ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
movzx eax, byte [ebp - 0x49]
push eax
movzx eax, byte [ebp - 0x4a]
push eax
movzx eax, ch
push eax
movzx eax, cl
push eax
lea eax, [ebp - 0x28]
push str._02X_02X_02X_02X
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
add esp, 0x18
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov dword [ebp - 0x14], 0x6f47754b
mov byte [ebp - 0x10], 0x6f
xor edx, edx
mov eax, ebx
push 5
pop ecx
div ecx
mov al, byte [ebp + edx - 0x14]
xor byte [ebp + ebx - 0xc], al
inc ebx
cmp ebx, 6
jb 0x1000f65a
xor eax, eax
lea edi, [ebp - 0x46]
push 7
mov word [ebp - 0x48], ax
pop ecx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
movzx eax, byte [ebp - 7]
push eax
movzx eax, byte [ebp - 8]
push eax
movzx eax, byte [ebp - 9]
push eax
movzx eax, byte [ebp - 0xa]
push eax
movzx eax, byte [ebp - 0xb]
push eax
movzx eax, byte [ebp - 0xc]
push eax
lea eax, [ebp - 0x48]
push str._02X_02X_02X_02X_02X_02X
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x20
lea eax, [ebp - 0x48]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
xor ebx, ebx
inc ebx
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003890f
mov esp, ebp
pop ebp
ret
Function at 0x1000fbec
Capabilities:
Check if file exists
Get common file path
Get file size
Read .ini file
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x624
mov eax, dword [0x1013a420]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x12
pop ecx
mov esi, str.C:RecoveryOEMPreInstallkugou.txt
lea edi, [ebp - 0x61c]
rep movsd dword es:[edi], dword [esi]
push 0x1be
lea eax, [ebp - 0x5d2]
movsw word es:[edi], word [esi]
xor esi, esi
push esi
push eax
call fcn.1003e9c0
add esp, 0xc
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1000fd86
push esi
push esi
push 3
push esi
push 1
push SysReAllocString
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1000fd86
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea esi, [edi + 1]
push esi
call fcn.1003865f
push esi
mov esi, eax
push 0
push esi
call fcn.1003e9c0
and dword [ebp - 0x624], 0
lea eax, [ebp - 0x624]
add esp, 0x10
push 0
push eax
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000fd78
push str.kugou_4131
push esi
call fcn.1003a780
pop ecx
pop ecx
test eax, eax
je 0x1000fd78
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp - 0x20c], ax
xor ebx, ebx
lea eax, [ebp - 0x20a]
push ebx
push eax
call fcn.1003e9c0
xor eax, eax
push esi
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push ebx
push eax
call fcn.1003e9c0
add esp, 0x18
lea eax, [ebp - 0x414]
push ebx
push 0x1a
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x414]
push str.KuGou8
push eax
lea eax, [ebp - 0x20c]
push eax
call edi
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x20c]
push eax
call esi
test eax, eax
je 0x1000fd73
push str.KuGou.ini
lea eax, [ebp - 0x20c]
push eax
push eax
call edi
lea eax, [ebp - 0x20c]
push eax
call esi
test eax, eax
je 0x1000fd73
lea eax, [ebp - 0x20c]
push eax
push 0xffffffffffffffff
push str.PID1
push 0x1012d67c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
sub eax, 0x1023
neg eax
sbb eax, eax
inc eax
jmp 0x1000fd88
xor eax, eax
inc eax
jmp 0x1000fd88
push esi
call fcn.100389bf
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003890f
mov esp, ebp
pop ebp
ret
Function at 0x10010349
Capabilities:
Check os version
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
mov eax, dword [0x1013a420]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor esi, esi
lea eax, [ebp - 0x134]
push 0x110
push esi
push eax
mov dword [ebp - 0x13c], esi
call fcn.1003e9c0
add esp, 0xc
mov dword [ebp - 0x138], 0x114
lea eax, [ebp - 0x138]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x128], 2
mov ebx, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov dword [ebp - 0x140], esi
je 0x100103b6
mov dword [ebp - 0x13c], 1
jmp 0x100104d8
lea eax, [ebp - 0x140]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x100104d8
push str.CheckTokenMembership
push str.Advapi32.dll
mov dword [ebp - 0x18], 0x201
mov dword [ebp - 0x14], 0x5000000
mov dword [ebp - 0x10], 0x20
mov dword [ebp - 0xc], 0x220
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1001042c
lea ecx, [ebp - 0x13c]
push ecx
lea ecx, [ebp - 0x18]
push ecx
push esi
call eax
test eax, eax
jne 0x100104d8
mov dword [ebp - 0x13c], esi
jmp 0x100104d8
lea eax, [ebp - 0x144]
push eax
push esi
push esi
push 2
push dword [ebp - 0x140]
call ebx
test eax, eax
jne 0x100104d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x100104d8
push edi
push dword [ebp - 0x144]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x100104d7
lea eax, [ebp - 0x144]
push eax
push dword [ebp - 0x144]
push edi
push 2
push dword [ebp - 0x140]
call ebx
test eax, eax
je 0x100104d0
cmp dword [edi], esi
jbe 0x100104d0
lea eax, [edi + 4]
mov ebx, esi
mov dword [ebp - 0x148], eax
lea ecx, [ebp - 0x18]
push ecx
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
mov ecx, dword [ebp - 0x13c]
test eax, eax
push 1
pop eax
cmovne ecx, eax
mov eax, dword [ebp - 0x148]
inc ebx
mov dword [ebp - 0x13c], ecx
add eax, 8
mov dword [ebp - 0x148], eax
cmp ebx, dword [edi]
jb 0x10010496
mov ebx, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
cmp dword [ebp - 0x134], 6
jb 0x10010522
lea eax, [ebp - 0x148]
push eax
push 0x1e
lea eax, [ebp - 0x24]
push eax
push 0x19
push dword [ebp - 0x140]
call ebx
test eax, eax
je 0x10010513
mov eax, dword [ebp - 0x24]
cmp dword [eax], 0x101
jne 0x10010513
cmp dword [eax + 4], 0x10000000
jne 0x10010513
mov esi, dword [eax + 8]
cmp esi, 0x3000
sbb eax, eax
inc eax
mov dword [ebp - 0x13c], eax
push dword [ebp - 0x140]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [ebp - 0x13c], eax
pop esi
setne al
xor ecx, ebp
pop ebx
call fcn.1003890f
mov esp, ebp
pop ebp
ret
Function at 0x10010549
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x1013a420]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push SysReAllocString
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x100105ac
push edi
push 4
push str.seclogon
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
je 0x100105a2
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x1001059b
cmp dword [ebp - 0x1c], 4
sete bl
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
jmp 0x100105b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
sete bl
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.1003890f
mov esp, ebp
pop ebp
ret

Function at 0x100105ca
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push str.CheckElevationEnabled
push str.Kernel32.dll
mov esi, edx
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test edi, edi
je 0x100105f8
mov dword [edi], 0x7d003e8
test esi, esi
je 0x10010602
mov dword [esi], 0x4d2
xor ebx, ebx
mov dword [ebp - 8], ebx
test eax, eax
je 0x1001062f
lea ecx, [ebp - 8]
push ecx
call eax
mov ebx, dword [ebp - 8]
test edi, edi
je 0x10010625
movzx edx, bx
shl edx, 0x10
movzx ecx, ax
or edx, ecx
mov dword [edi], edx
test eax, eax
jne 0x1001062d
test ebx, ebx
jmp 0x10010693
xor ebx, ebx
lea eax, [ebp - 4]
mov dword [ebp - 0xc], ebx
push eax
push 0x20019
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionPoliciesSystem
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10010686
push 4
pop eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push str.EnableLUA
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 4], 0
je 0x10010686
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
test esi, esi
je 0x1001068f
mov dword [esi], ecx
xor eax, eax
test ecx, ecx
pop edi
pop esi
setne al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10010932
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [0x1014840c]
xor ebx, ebx
inc ebx
mov ecx, esi
push 0
cmp byte [esi + 0x61], 0
je 0x10010958
push dword [ebp + 8]
call fcn.100116a2
jmp 0x100109f9
call fcn.10010c22
mov ecx, esi
test al, al
je 0x100109ed
push edi
push 0xa
pop edi
push edi
push 0
push 0
call fcn.1001172d
push edi
push edi
push 0
mov ecx, esi
call fcn.1001172d
push 5
push 0x14
push 0
mov ecx, esi
call fcn.1001172d
push 0
mov ecx, esi
call fcn.100116d8
mov ecx, dword [esi + 0x2c]
mov eax, dword [ebp + 8]
push 0
push 2
mov dword [ecx + 4], eax
mov byte [ecx + 8], bl
mov ecx, esi
call fcn.10011363
push edi
push 0
push ebx
mov ecx, esi
call fcn.1001172d
push edi
push edi
push ebx
mov ecx, esi
call fcn.1001172d
push 5
push 0x14
push ebx
mov ecx, esi
call fcn.1001172d
push ebx
mov ecx, esi
call fcn.100116d8
imul eax, dword [0x10148424], 0x2c
add eax, dword [0x10148420]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
pop edi
jmp 0x100109f9
push 0
push dword [ebp + 8]
call fcn.100116a2
xor bl, bl
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10010a77
Capabilities:
Accept command line arguments

Disassembly:
push 0x44
mov eax, 0x100eb9b7
call fcn.1003e1f4
mov esi, ecx
mov dword [ebp - 0x4c], esi
lea eax, [ebp - 0x48]
xor ebx, ebx
push eax
mov dword [ebp - 0x48], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, ebx
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x48], ebx
jle 0x10010c15
push dword [eax + edi*4]
lea ecx, [ebp - 0x2c]
call fcn.10002c47
mov ecx, str._Guid
mov dword [ebp - 4], ebx
call fcn.100036bc
push eax
push ecx
push str._Guid
lea ecx, [ebp - 0x2c]
call fcn.100118fe
cmp eax, 0xffffffff
je 0x10010b13
push ecx
push 6
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x2c]
call fcn.1001178b
mov ebx, eax
add esi, 0x30
cmp esi, ebx
je 0x10010b03
push 0
push 1
mov ecx, esi
call fcn.10002f54
push ebx
mov ecx, esi
call fcn.10002e8a
xor ebx, ebx
lea ecx, [ebp - 0x44]
push ebx
push 1
call fcn.10002f54
mov esi, dword [ebp - 0x4c]
mov ecx, str._Level
call fcn.100036bc
push eax
push ecx
push str._Level
lea ecx, [ebp - 0x2c]
call fcn.100118fe
cmp eax, 0xffffffff
je 0x10010b69
push ecx
push 7
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x2c]
call fcn.1001178b
mov ebx, eax
add esi, 0x48
cmp esi, ebx
je 0x10010b5c
push 0
push 1
mov ecx, esi
call fcn.10002f54
push ebx
mov ecx, esi
call fcn.10002e8a
xor ebx, ebx
lea ecx, [ebp - 0x44]
push ebx
push 1
call fcn.10002f54
mov esi, str._ProcessId
mov ecx, esi
call fcn.100036bc
push eax
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.100118fe
cmp eax, 0xffffffff
je 0x10010bd4
push ecx
push 0xb
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x2c]
call fcn.1001178b
cmp dword [eax + 0x14], 8
jb 0x10010b9c
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_StrToIntW]
push ebx
push 1
lea ecx, [ebp - 0x44]
mov esi, eax
call fcn.10002f54
xor edx, edx
inc edx
call fcn.1000d16a
push esi
push ebx
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, dword [ebp - 0x4c]
xor edx, edx
mov dword [esi + 0x24], eax
call fcn.1000d16a
jmp 0x10010bd7
mov esi, dword [ebp - 0x4c]
mov ecx, str._Service
call fcn.100036bc
push eax
push ecx
push str._Service
lea ecx, [ebp - 0x2c]
call fcn.100118fe
cmp eax, 0xffffffff
je 0x10010bf9
mov byte [esi + 0x60], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
push ebx
push 1
call fcn.10002f54
mov eax, dword [ebp - 0x50]
inc edi
cmp edi, dword [ebp - 0x48]
jl 0x10010aac
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
call fcn.1003e1b2
ret
Function at 0x100116a2
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
test byte [ebp + 0xc], 1
push esi
mov esi, ecx
je 0x100116c2
imul eax, dword [0x10148424], 0x2c
add eax, dword [0x10148420]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, dword [ebp + 8]
test eax, eax
je 0x100116d3
mov ecx, dword [esi + 0xc]
dec eax
push 0
push eax
call dword [ecx + 4]
pop esi
pop ebp
ret 8

Function at 0x10011b87
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x198
mov eax, dword [0x1013a420]
xor eax, esp
mov dword [esp + 0x194], eax
mov eax, dword [0x1014848c]
mov ecx, eax
inc eax
mov dword [0x1014848c], eax
test ecx, ecx
je 0x10011bb9
xor eax, eax
jmp 0x10011c66
cmp dword [0x1014842c], 0
mov dword [fcn.1003b31f], 0x1003b31f
mov dword [fcn.1003b2a7], 0x1003b2a7
mov dword [fcn.1003b3b1], 0x1003b3b1
mov dword [fcn.10051aaf], 0x10051aaf
mov dword [fcn.1003b2df], 0x1003b2df
jne 0x10011c11
mov dword [0x1014842c], 1
call fcn.100d0450
call fcn.100cf600
test eax, eax
je 0x10011c63
call fcn.10059bb0
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x10011c63
mov eax, dword [esp]
cmp al, 2
jne 0x10011c5d
shr eax, 8
cmp al, 2
jne 0x10011c5d
push 0
mov dword [0x10148488], 3
call fcn.10038c64
pop ecx
mov dword [0x101484ac], eax
call fcn.1001817c
call fcn.1001817c
call fcn.1001817c
jmp 0x10011bb2
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 2
pop eax
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.1003890f
mov esp, ebp
pop ebp
ret
Function at 0x10016c93
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x1013a420]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
cmp dword [edi + 0x1c8], 0
mov ebx, dword [edi]
jne 0x10016db6
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x10c], 0x80
push eax
lea eax, [ebp - 0x88]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x10016d05
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
mov ecx, edi
mov edx, esi
call fcn.10030e33
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.10018208
add esp, 0x10
jmp 0x10016dbd
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x10c], 0x80
push eax
lea eax, [ebp - 0x108]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x10016d42
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
mov ecx, edi
mov edx, esi
call fcn.10030e33
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
jmp 0x10016cf7
lea eax, [edi + 0xcc]
push eax
lea edx, [edi + 0x9e]
lea ecx, [ebp - 0x88]
call fcn.10016c46
pop ecx
test eax, eax
jne 0x10016d7c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov ecx, edi
mov edx, esi
call fcn.10030e33
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
jmp 0x10016cf7
lea eax, [edi + 0x100]
push eax
lea edx, [edi + 0xd0]
lea ecx, [ebp - 0x108]
call fcn.10016c46
pop ecx
test eax, eax
jne 0x10016db6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov ecx, edi
mov edx, esi
call fcn.10030e33
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
jmp 0x10016cf7
mov ecx, edi
call fcn.10016bf9
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003890f
mov esp, ebp
pop ebp
ret

Function at 0x10016f92
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov edi, ecx
push 4
mov esi, dword [edi]
mov eax, dword [esi + 0x314]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 1
push 6
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x10016fdb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov ecx, edi
call fcn.10030e33
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.10018194
add esp, 0xc
jmp 0x10016fe8
push str.TCP_NODELAY_set_n
push esi
call fcn.10018194
pop ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100174d5
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ecx + 0x550]
cmp esi, 0xffffffff
je 0x10017521
mov eax, dword [ecx + 0x544]
mov eax, dword [eax]
mov eax, dword [eax + esi*4]
test eax, eax
je 0x10017521
test edx, edx
je 0x100174fa
mov dword [edx], eax
cmp dword [eax + 0x150], 0
mov esi, dword [eax + 0x130]
je 0x10017529
push 1
lea ecx, [ebp - 1]
push ecx
push dword [eax + 0x15c]
call fcn.100c7cd0
add esp, 0xc
test eax, eax
jne 0x1001753a
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
push 2
push 1
lea eax, [ebp - 1]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
jmp 0x1001751d
mov eax, esi
jmp 0x10017524

Function at 0x10017e15
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x44
push 1
mov dword [ebp - 4], edx
mov esi, ecx
call dword [0x1014537c]
pop ecx
pop ecx
mov edi, eax
mov dword [esi + 0x3e4], edi
push 8
pop ebx
test edi, edi
je 0x10017ece
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
mov dword [esi + 0x3dc], ecx
mov dword [esi + 0x3e0], ecx
mov dword [esi + 0x3d8], ecx
mov dword [esi + 0x3d4], eax
mov dword [edi], ecx
lea ecx, [edi + 0xc]
push ecx
push eax
call fcn.10017cbb
pop ecx
pop ecx
test eax, eax
je 0x10017ece
mov eax, dword [esi + 0x3d0]
test eax, eax
je 0x10017e8b
push eax
call dword [0x10145380]
and dword [esi + 0x3d0], 0
pop ecx
push dword [ebp - 4]
call dword [0x10145378]
mov dword [esi + 0x3d0], eax
pop ecx
test eax, eax
je 0x10017ece
xor ebx, ebx
lea eax, [edi + 0xc]
push ebx
push ebx
push eax
push 0x10017d48
push ebx
push ebx
call fcn.1003d598
add esp, 0x18
test eax, eax
je 0x10017ebf
cmp eax, 0xffffffff
jne 0x10017ec1
mov eax, ebx
mov dword [edi], eax
test eax, eax
jne 0x10017ee9
call fcn.1003c17c
mov ebx, dword [eax]
lea ecx, [esi + 0x3d0]
call fcn.10017dd4
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
inc eax
jmp 0x10017ee2

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebx + eax*4 + 0x130]
call dword [sym.imp.WS2_32.dll_send]
mov edi, dword [ebp + 0x18]
mov esi, eax
and dword [edi], 0
cmp esi, 0xffffffff
jne 0x1001841e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp + 8], eax
cmp eax, 0x2733
jne 0x100183f4
xor esi, esi
mov dword [edi], 0x51
jmp 0x1001841e
mov edx, eax
mov ecx, ebx
call fcn.10030e33
push eax
push str.Send_failure:__s
push dword [ebx]
call fcn.10018208
mov eax, dword [ebx]
add esp, 0xc
mov ecx, dword [ebp + 8]
mov dword [eax + 0x858c], ecx
mov dword [edi], 0x37
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
Function at 0x10018754
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi + 0x164]
test eax, eax
je 0x10018779
push dword [esi + 0xf4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push edx
push esi
call eax
add esp, 0x14
jmp 0x100187ae
cmp edx, 2
ja 0x100187ac
push dword [esi + 0xf0]
imul eax, edx, 3
push 1
push 2
add eax, 0x1012c174
push eax
call fcn.1003bf0e
push dword [esi + 0xf0]
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1003bf0e
add esp, 0x20
xor eax, eax
pop esi
pop ebp
ret
Function at 0x100203a0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov dword [ebp - 4], edx
xor ebx, ebx
and dword [eax], ebx
xor edx, edx
mov dword [ebp - 8], ecx
mov ecx, dword [ecx]
push 1
call fcn.10016750
pop ecx
test eax, eax
js 0x10020423
mov edi, dword [ebp + 0xc]
or esi, 0xffffffff
mov ecx, dword [ebp - 4]
mov edx, esi
push eax
push esi
call fcn.100301b6
pop ecx
pop ecx
test eax, eax
jle 0x10020426
push 0
push edi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, esi
jne 0x10020401
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x10020410
push 0x38
jmp 0x10020425
cmp edi, eax
je 0x1002042f
test eax, eax
je 0x10020426
add dword [ebp + 8], eax
sub edi, eax
add ebx, eax
mov eax, dword [ebp - 8]
xor edx, edx
push 1
mov ecx, dword [eax]
call fcn.10016750
pop ecx
test eax, eax
jns 0x100203cb
push 0x1c
pop esi
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x10]
add eax, ebx
xor esi, esi
mov dword [ecx], eax
jmp 0x10020426