joyce8/EMBER2024-capa huggingface dataset:
Function at 0x758559
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x7586a3
cmp dword [ebp + 0xc], edi
jl 0x7586a3
je 0x75869f
call sub.kernel32.dll_GetCurrentProcessId
mov esi, 0x819b0c
push eax
push esi
lea eax, [ebp - 0xc]
push 0xc
push eax
call fcn.007e5eb9
lea eax, [ebp - 0xc]
push 8
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.007c2eb0
call fcn.007426a3
push eax
push esi
lea eax, [ebp - 0xc]
push 0xc
push eax
call fcn.007e5eb9
lea eax, [ebp - 0xc]
push 8
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.007c2eb0
lea eax, [ebp - 0x20]
push 0x12
push eax
lea eax, [ebp - 0x20]
push 0x10
push eax
call fcn.00757096
add esp, 0x48
test eax, eax
jne 0x7586a3
cmp dword [ebp + 0xc], eax
jle 0x75869f
mov eax, edi
push 0x10
cdq
pop ecx
idiv ecx
test edx, edx
jne 0x758669
call sub.kernel32.dll_GetTickCount
push eax
push esi
lea eax, [ebp - 0xc]
push 0xc
push eax
call fcn.007e5eb9
add esp, 0x10
xor eax, eax
mov cl, byte [ebp + eax - 0xc]
add byte [ebp + eax - 0x20], cl
inc eax
cmp eax, 8
jl 0x75860a
push 0
call fcn.007cf807
push eax
push esi
lea eax, [ebp - 0xc]
push 0xc
push eax
call fcn.007e5eb9
add esp, 0x14
xor eax, eax
mov cl, byte [ebp + eax - 0xc]
add byte [ebp + eax - 0x18], cl
inc eax
cmp eax, 8
jl 0x758631
xor eax, eax
mov cl, byte [eax + 0x84a818]
xor byte [ebp + eax - 0x20], cl
inc eax
cmp eax, 0x10
jl 0x758641
lea eax, [ebp - 0x20]
push 0x12
push eax
lea eax, [ebp - 0x20]
push 0x10
push eax
call fcn.00757096
add esp, 0x10
test eax, eax
jne 0x7586a3
xor eax, eax
cmp edi, dword [ebp + 0xc]
jge 0x758683
cmp eax, 0x10
jge 0x758683
mov edx, dword [ebp + 8]
mov cl, byte [ebp + eax - 0x20]
mov byte [edi + edx], cl
inc edi
inc eax
jmp 0x75866b
lea eax, [ebp - 0x20]
push 0x12
push eax
push 0x84a818
call fcn.007c2eb0
add esp, 0xc
cmp edi, dword [ebp + 0xc]
jl 0x7585e7
xor eax, eax
jmp 0x7586a6
push 0xfffffffffffffffe
pop eax
pop edi
pop esi
leave
ret

Function at 0x7586aa
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push edi
xor edi, edi
cmp dword [ebp + 8], edi
mov dword [ebp - 4], edi
je 0x75871b
cmp dword [ebp + 0xc], edi
jl 0x75871b
jne 0x7586c6
xor eax, eax
jmp 0x75871e
lea eax, [ebp - 0x68]
push 0x64
push eax
call fcn.00758721
pop ecx
lea eax, [ebp - 0x68]
pop ecx
push 0xf0000000
push 1
push eax
lea eax, [ebp - 4]
push edi
push eax
call dword [sym.imp.advapi32.dll_CryptAcquireContextA]
cmp eax, 1
jne 0x75871b
cmp dword [ebp - 4], edi
je 0x75871b
push esi
push dword [ebp + 8]
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.advapi32.dll_CryptGenRandom]
push edi
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.advapi32.dll_CryptReleaseContext]
mov eax, esi
pop esi
dec eax
neg eax
sbb eax, eax
and al, 0xfe
jmp 0x75871e
push 0xfffffffffffffffe
pop eax
pop edi
leave
ret
Function at 0x758941
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ebx
push esi
mov eax, dword [ecx]
push edi
mov dword [edx], eax
mov esi, dword [ecx + 4]
mov dword [ebp - 0x10], eax
mov dword [edx + 4], esi
mov edi, dword [ecx + 8]
lea eax, [edx + 8]
mov dword [ebp + 0xc], 0x82bee8
mov dword [eax], edi
mov ecx, dword [ecx + 0xc]
mov dword [ebp - 4], ecx
mov dword [edx + 0xc], ecx
movzx edx, byte [ebp - 3]
mov ebx, dword [ebp + 0xc]
add dword [ebp + 0xc], 4
mov dl, byte [edx + 0x82b8e8]
add eax, 0x10
xor dl, byte [ebp - 0x10]
xor dl, byte [ebx]
mov byte [ebp - 0x10], dl
movzx edx, byte [ebp - 2]
mov dl, byte [edx + 0x82b8e8]
xor byte [ebp - 0xf], dl
movzx edx, byte [ebp - 1]
mov dl, byte [edx + 0x82b8e8]
xor byte [ebp - 0xe], dl
movzx edx, byte [ebp - 4]
mov dl, byte [edx + 0x82b8e8]
xor byte [ebp - 0xd], dl
mov edx, dword [ebp - 0x10]
xor esi, edx
mov dword [eax - 8], edx
xor edi, esi
mov dword [eax - 4], esi
xor ecx, edi
cmp dword [ebp + 0xc], 0x82bf10
mov dword [ebp - 4], ecx
mov dword [eax], edi
mov dword [eax + 4], ecx
jl 0x758975
pop edi
pop esi
pop ebx
leave
ret

Function at 0x7589dd
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call fcn.00758aea
mov esi, 0x82b8e8
push esi
push ebx
call fcn.00758b09
push ebx
call fcn.00758bb4
lea eax, [edi + 0x10]
push eax
push ebx
call fcn.00758aea
push esi
push ebx
call fcn.00758b09
push ebx
call fcn.00758bb4
lea eax, [edi + 0x20]
push eax
push ebx
call fcn.00758aea
push esi
push ebx
call fcn.00758b09
push ebx
call fcn.00758bb4
lea eax, [edi + 0x30]
push eax
push ebx
call fcn.00758aea
add esp, 0x44
push esi
push ebx
call fcn.00758b09
push ebx
call fcn.00758bb4
lea eax, [edi + 0x40]
push eax
push ebx
call fcn.00758aea
push esi
push ebx
call fcn.00758b09
push ebx
call fcn.00758bb4
lea eax, [edi + 0x50]
push eax
push ebx
call fcn.00758aea
push esi
push ebx
call fcn.00758b09
push ebx
call fcn.00758bb4
lea eax, [edi + 0x60]
push eax
push ebx
call fcn.00758aea
push esi
push ebx
call fcn.00758b09
add esp, 0x44
push ebx
call fcn.00758bb4
lea eax, [edi + 0x70]
push eax
push ebx
call fcn.00758aea
push esi
push ebx
call fcn.00758b09
push ebx
call fcn.00758bb4
lea eax, [edi + 0x80]
push eax
push ebx
call fcn.00758aea
push esi
push ebx
call fcn.00758b09
push ebx
call fcn.00758bb4
lea eax, [edi + 0x90]
push eax
push ebx
call fcn.00758aea
push esi
push ebx
call fcn.00758b09
add edi, 0xa0
push edi
push ebx
call fcn.00758aea
add esp, 0x44
pop edi
pop esi
pop ebx
ret
Function at 0x758da8
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
mov edi, dword [esp + 0x10]
lea eax, [edi + 0xa0]
push eax
push ebx
call fcn.00758aea
mov esi, 0x82b9e8
push esi
push ebx
call fcn.00758eb7
lea eax, [edi + 0x90]
push eax
push ebx
call fcn.00758aea
push ebx
call fcn.00758f64
push esi
push ebx
call fcn.00758eb7
lea eax, [edi + 0x80]
push eax
push ebx
call fcn.00758aea
push ebx
call fcn.00758f64
push esi
push ebx
call fcn.00758eb7
lea eax, [edi + 0x70]
push eax
push ebx
call fcn.00758aea
add esp, 0x40
push ebx
call fcn.00758f64
push esi
push ebx
call fcn.00758eb7
lea eax, [edi + 0x60]
push eax
push ebx
call fcn.00758aea
push ebx
call fcn.00758f64
push esi
push ebx
call fcn.00758eb7
lea eax, [edi + 0x50]
push eax
push ebx
call fcn.00758aea
push ebx
call fcn.00758f64
push esi
push ebx
call fcn.00758eb7
lea eax, [edi + 0x40]
push eax
push ebx
call fcn.00758aea
push ebx
call fcn.00758f64
add esp, 0x40
push esi
push ebx
call fcn.00758eb7
lea eax, [edi + 0x30]
push eax
push ebx
call fcn.00758aea
push ebx
call fcn.00758f64
push esi
push ebx
call fcn.00758eb7
lea eax, [edi + 0x20]
push eax
push ebx
call fcn.00758aea
push ebx
call fcn.00758f64
push esi
push ebx
call fcn.00758eb7
lea eax, [edi + 0x10]
push eax
push ebx
call fcn.00758aea
push ebx
call fcn.00758f64
push esi
push ebx
call fcn.00758eb7
add esp, 0x44
push edi
push ebx
call fcn.00758aea
pop ecx
pop ecx
pop edi
pop esi
pop ebx
ret
Function at 0x759969
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x11dc
call fcn.007c1eb0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
test ebx, ebx
mov dword [ebp - 8], 0x11
jne 0x75998e
push 0x1e
jmp 0x759a94
push 0x20
push ebx
call fcn.007c3bc0
mov edi, eax
pop ecx
test edi, edi
pop ecx
je 0x759a92
lea eax, [ebp - 4]
inc edi
push eax
lea eax, reloc.ws2_32.dll_WSASetLastError
push eax
push edi
mov dword [ebp - 4], 0x1194
call fcn.0075027a
add esp, 0xc
test eax, eax
jne 0x759a92
push 0x10
pop esi
cmp dword [ebp - 4], esi
jle 0x759a92
cmp dword [ebp + 0x10], eax
je 0x7599fc
push dword [ebp - 8]
push eax
push dword [ebp + 0x10]
call fcn.007c3430
lea eax, [ebp - 8]
push eax
lea eax, reloc.ws2_32.dll_WSASetLastError
push dword [ebp + 0x10]
push dword [ebp - 4]
push eax
call fcn.00753a3e
add esp, 0x1c
mov eax, dword [ebp - 4]
push esi
lea eax, reloc.ws2_32.dll_WSASetLastError
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.007c2eb0
add esp, 0xc
xor eax, eax
mov cl, byte [ebp + eax - 0x10]
xor byte [ebp + eax - 0x18], cl
inc eax
cmp eax, 8
jl 0x759a16
and byte [edi], 0
lea eax, [ebp - 0x48]
push esi
push eax
push ebx
call fcn.007c7760
pop ecx
push eax
push ebx
call fcn.00743c55
add esp, 0x10
test eax, eax
jne 0x759a92
lea eax, [ebp - 0x28]
push esi
push eax
lea eax, [ebp - 0x18]
push esi
push eax
call fcn.007504e2
add esp, 0x10
test eax, eax
jne 0x759a92
mov ecx, dword [ebp - 4]
mov ebx, esi
mov eax, ecx
add ecx, 0xfffffff0
cdq
idiv ebx
imul eax, eax, 0x16
inc eax
push eax
lea eax, [ebp - 0x28]
push edi
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, reloc.ws2_32.dll_WSASetLastError
push ecx
push eax
call fcn.00750ad3
add esp, 0x18
test eax, eax
lea eax, [ebp - 0x28]
push esi
push eax
je 0x759a9a
call fcn.0075001b
pop ecx
pop ecx
push 0x14
pop eax
pop edi
pop esi
pop ebx
leave
ret
call fcn.0075001b
pop ecx
test eax, eax
pop ecx
jne 0x759a92
lea eax, [ebp - 0x38]
push esi
push eax
push dword [ebp + 0xc]
call fcn.0075085d
add esp, 0xc
test eax, eax
jne 0x759a92
mov cl, byte [ebp + eax - 0x18]
cmp cl, byte [ebp + eax - 0x38]
jne 0x759a92
inc eax
cmp eax, 8
jl 0x759ab9
xor eax, eax
jmp 0x759a95
Function at 0x75d3af
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x37b8
call fcn.007c1eb0
push ebx
push esi
push edi
push 0x11a4
lea eax, reloc.ws2_32.dll_WSASetLastError
push 0
push eax
call fcn.007c3430
mov esi, dword [ebp + 0xc]
push 0x11a3
lea eax, reloc.ws2_32.dll_WSASetLastError
push esi
push eax
call fcn.007ca140
lea eax, reloc.ws2_32.dll_WSASetLastError
push eax
call fcn.007433b7
lea eax, reloc.ws2_32.dll_WSASetLastError
push eax
call fcn.007c7760
add esp, 0x20
mov ebx, eax
cdq
push 0x10
pop edi
mov ecx, edi
idiv ecx
test edx, edx
je 0x75d416
mov eax, edi
sub eax, edx
add ebx, eax
push dword [ebp + 8]
and byte [esi], 0
call fcn.007c7760
mov esi, 0x1450
pop ecx
cmp eax, esi
ja 0x75d507
push 0x144f
lea eax, reloc.ws2_32.dll_WSASetLastError
push dword [ebp + 8]
push eax
call fcn.007ca140
and byte [ebp - 0x11d5], 0
lea eax, reloc.ws2_32.dll_WSASetLastError
push eax
call fcn.007433b7
push esi
lea eax, reloc.ws2_32.dll_WSASetLastError
push 0x801690
push eax
call fcn.007427cb
add esp, 0x1c
lea eax, [ebp - 0x30]
push edi
push eax
lea eax, reloc.ws2_32.dll_WSASetLastError
push eax
call fcn.007c7760
pop ecx
push eax
lea eax, reloc.ws2_32.dll_WSASetLastError
push eax
call fcn.00743c55
add esp, 0x10
test eax, eax
jne 0x75d507
lea eax, reloc.ws2_32.dll_WSASetLastError
push esi
push eax
lea eax, reloc.ws2_32.dll_WSASetLastError
push eax
call fcn.007427cb
lea eax, [ebp - 0x10]
push edi
push eax
lea eax, reloc.ws2_32.dll_WSASetLastError
push eax
call fcn.0075085d
add esp, 0x18
test eax, eax
jne 0x75d507
lea eax, [ebp - 0x20]
push edi
push eax
lea eax, [ebp - 0x10]
push edi
push eax
call fcn.007504e2
add esp, 0x10
test eax, eax
jne 0x75d507
lea eax, reloc.ws2_32.dll_WSASetLastError
push 0x1194
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, reloc.ws2_32.dll_WSASetLastError
push ebx
push eax
call fcn.00750a1c
mov esi, eax
lea eax, [ebp - 0x20]
push edi
push eax
call fcn.0075001b
add esp, 0x20
test esi, esi
je 0x75d50c
push 0x48
pop eax
jmp 0x75d550
xor eax, eax
mov cl, byte [ebp + eax - 8]
xor byte [ebp + eax - 0x10], cl
inc eax
cmp eax, 8
jb 0x75d50e
lea eax, [ebp - 0x10]
push edi
push eax
lea eax, reloc.ws2_32.dll_WSASetLastError
push eax
call fcn.007c2eb0
add ebx, edi
mov eax, ebx
cdq
idiv edi
imul eax, eax, 0x16
inc eax
inc eax
push eax
lea eax, reloc.ws2_32.dll_WSASetLastError
push dword [ebp + 0xc]
push ebx
push eax
call fcn.00750191
add esp, 0x1c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x75fbcd
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xac
mov eax, dword [0x830e54]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
push edi
mov esi, 0x9c
push esi
lea eax, [ebp - 0x34]
push 0
push eax
call fcn.007c3430
add esp, 0xc
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x34], esi
call dword [sym.imp.kernel32.dll_GetVersionExA]
cmp dword [ebp - 0x30], 5
ja 0x75fc20
jne 0x75fc1c
cmp dword [ebp - 0x2c], 1
ja 0x75fc20
jne 0x75fc1c
cmp word [ebp + 0x60], 1
jae 0x75fc20
xor edi, edi
jmp 0x75fc23
xor edi, edi
inc edi
call fcn.0075f53e
call sub.kernel32.dll_GetCurrentProcessId
mov ecx, dword [0x84bd30]
push eax
push ecx
call fcn.0075f4f6
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x75fc49
mov eax, 0xc8001007
jmp 0x75fcab
and dword [esi + 0x88], 0
test edi, edi
je 0x75fca9
push 0xa
lea eax, [ebp + 0x68]
push eax
push 0x7ecbf0
mov byte [ebp + 0x68], 0
call fcn.00749567
add esp, 0xc
test eax, eax
jne 0x75fca9
lea eax, [ebp + 0x68]
push 0x7ecbec
push eax
call fcn.007c9d20
pop ecx
pop ecx
test eax, eax
jne 0x75fc8f
mov dword [esi + 0x88], 1
jmp 0x75fca9
lea eax, [ebp + 0x68]
push 0x7ecbe8
push eax
call fcn.007c9d20
pop ecx
pop ecx
test eax, eax
jne 0x75fca9
and dword [esi + 0x88], eax
xor eax, eax
mov ecx, dword [ebp + 0x74]
pop edi
xor ecx, ebp
pop esi
call fcn.007c1e9d
add ebp, 0x78
leave
ret
Function at 0x777779
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, 0x9e3779b9
mov esi, edx
mov dword [ebp - 4], eax
mov ebx, edi
mov dword [ebp - 0xc], esi
cmp eax, 0xc
jb 0x77787f
push 0xc
pop esi
xor edx, edx
div esi
mov esi, dword [ebp - 0xc]
mov dword [ebp - 8], eax
movzx eax, byte [ecx + 7]
movzx edx, byte [ecx + 6]
shl eax, 8
add eax, edx
movzx edx, byte [ecx + 5]
shl eax, 8
add eax, edx
movzx edx, byte [ecx + 4]
add edi, edx
movzx edx, byte [ecx + 0xa]
shl eax, 8
add edi, eax
movzx eax, byte [ecx + 0xb]
shl eax, 8
add eax, edx
movzx edx, byte [ecx + 9]
shl eax, 8
add eax, edx
movzx edx, byte [ecx + 8]
add esi, edx
movzx edx, byte [ecx + 3]
shl eax, 8
add esi, eax
movzx eax, byte [ecx + 2]
shl edx, 8
add edx, eax
movzx eax, byte [ecx + 1]
shl edx, 8
add edx, eax
movzx eax, byte [ecx]
shl edx, 8
add edx, eax
sub edx, esi
sub edx, edi
sub edi, esi
mov eax, esi
shr eax, 0xd
add edx, ebx
xor edx, eax
sub edi, edx
mov eax, edx
shl eax, 8
xor edi, eax
sub esi, edi
sub esi, edx
mov eax, edi
shr eax, 0xd
xor esi, eax
sub edx, esi
sub edx, edi
mov eax, esi
shr eax, 0xc
xor edx, eax
sub edi, esi
sub edi, edx
sub dword [ebp - 4], 0xc
mov eax, edx
shl eax, 0x10
xor edi, eax
sub esi, edi
sub esi, edx
mov eax, edi
shr eax, 5
xor esi, eax
sub edx, esi
mov ebx, esi
sub edx, edi
shr ebx, 3
xor ebx, edx
sub edi, esi
mov eax, ebx
shl eax, 0xa
sub edi, ebx
xor edi, eax
sub esi, edi
mov eax, edi
sub esi, ebx
shr eax, 0xf
xor esi, eax
add ecx, 0xc
dec dword [ebp - 8]
jne 0x7777aa
add esi, dword [ebp + 8]
mov eax, dword [ebp - 4]
dec eax
cmp eax, 0xa
ja case.default.0x77788b
jmp dword [eax*4 + 0x777955]
movzx eax, byte [ecx + 0xa]
shl eax, 0x18
add esi, eax
movzx eax, byte [ecx + 9]
shl eax, 0x10
add esi, eax
movzx eax, byte [ecx + 8]
shl eax, 8
add esi, eax
movzx eax, byte [ecx + 7]
shl eax, 0x18
add edi, eax
movzx eax, byte [ecx + 6]
shl eax, 0x10
add edi, eax
movzx eax, byte [ecx + 5]
shl eax, 8
add edi, eax
movzx eax, byte [ecx + 4]
add edi, eax
movzx eax, byte [ecx + 3]
shl eax, 0x18
add ebx, eax
movzx eax, byte [ecx + 2]
shl eax, 0x10
add ebx, eax
movzx eax, byte [ecx + 1]
shl eax, 8
add ebx, eax
movzx eax, byte [ecx]
add ebx, eax
sub ebx, esi
sub ebx, edi
sub edi, esi
mov eax, esi
shr eax, 0xd
xor ebx, eax
sub edi, ebx
mov eax, ebx
shl eax, 8
xor edi, eax
sub esi, edi
sub esi, ebx
mov eax, edi
shr eax, 0xd
xor esi, eax
sub ebx, esi
sub ebx, edi
sub edi, esi
mov eax, esi
shr eax, 0xc
xor ebx, eax
sub edi, ebx
mov eax, ebx
shl eax, 0x10
xor edi, eax
sub esi, edi
mov eax, edi
sub esi, ebx
shr eax, 5
xor eax, esi
sub ebx, eax
sub ebx, edi
mov ecx, eax
shr ecx, 3
xor ebx, ecx
sub edi, eax
sub edi, ebx
mov ecx, ebx
shl ecx, 0xa
xor edi, ecx
sub eax, edi
sub eax, ebx
shr edi, 0xf
xor eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x778d8b
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x848
mov eax, dword [0x830e54]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x410
lea eax, reloc.ws2_32.dll_WSASetLastError
push 0
push eax
call fcn.007c3430
add esp, 0xc
test esi, esi
jne 0x778dc6
mov eax, 0x325
jmp 0x778e61
lea eax, reloc.ws2_32.dll_WSASetLastError
push esi
push eax
call fcn.007c9c00
pop ecx
cmp byte [ebp - 0x414], 0
pop ecx
je 0x778e4c
lea esi, reloc.ws2_32.dll_WSASetLastError
mov eax, esi
push eax
call fcn.007c7760
cmp byte [eax + esi - 1], 0x5c
pop ecx
jne 0x778e4c
mov eax, esi
push eax
call fcn.007c7760
mov byte [eax + esi - 1], 0
jmp 0x778dd4
call fcn.007cb1ce
cmp dword [eax], 0xd
je 0x778e6e
lea eax, reloc.ws2_32.dll_WSASetLastError
push 0x5c
push eax
call fcn.007c3bc0
pop ecx
pop ecx
test eax, eax
je 0x778e5f
lea ecx, reloc.ws2_32.dll_WSASetLastError
sub eax, ecx
push eax
mov eax, ecx
push eax
lea eax, reloc.ws2_32.dll_WSASetLastError
push eax
call fcn.007cb020
lea eax, reloc.ws2_32.dll_WSASetLastError
push eax
call fcn.00778d8b
add esp, 0x10
test eax, eax
jne 0x778e5f
lea eax, reloc.ws2_32.dll_WSASetLastError
push eax
call fcn.007d0522
mov esi, eax
pop ecx
test esi, esi
jne 0x778e03
mov eax, esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.007c1e9d
leave
ret
lea eax, reloc.ws2_32.dll_WSASetLastError
push eax
lea eax, reloc.ws2_32.dll_WSASetLastError
push eax
call fcn.00748d83
pop ecx
pop ecx
test eax, eax
jne 0x778e5f
mov eax, 0x4000
cmp word [ebp - 0x842], ax
jne 0x778e5f
xor eax, eax
jmp 0x778e61

Function at 0x77ac9f
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, reloc.ws2_32.dll_WSASetLastError
sub esp, 0x264
mov eax, dword [0x830e54]
xor eax, ebp
mov dword [ebp + reloc.ws2_32.dll_WSASetLastError], eax
and dword [ebp - 0x7c], 0
push ebx
push esi
mov esi, dword [ebp + reloc.ws2_32.dll_WSASetLastError]
push edi
push dword [esi]
mov edi, dword [ebp + reloc.ws2_32.dll_WSASetLastError]
call fcn.0077858a
pop ecx
mov dword [ebp - 0x80], eax
call fcn.0077a942
mov ebx, eax
test ebx, ebx
jns 0x77ad04
push 0x7f2390
push 2
mov esi, 0x32e
push esi
push 0x82cea8
push dword [ebp - 0x80]
call fcn.0074b93c
add esp, 0x14
mov eax, esi
jmp 0x77ad44
push edi
call fcn.007d04f6
pop ecx
jmp 0x77ad3d
push edi
push 0x258
lea eax, [ebp - 0x78]
push 1
push eax
call fcn.007cf74d
add esp, 0x10
test eax, eax
je 0x77ad41
push ebx
push eax
lea eax, [ebp - 0x78]
push eax
push esi
call fcn.0077a91e
add dword [ebp - 0x7c], eax
push edi
call fcn.007d04f6
add esp, 0x14
test eax, eax
je 0x77ad0d
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp + reloc.ws2_32.dll_WSASetLastError]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.007c1e9d
add ebp, 0x1e4
leave
ret
Function at 0x77fe35
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
push esi
je 0x77fe95
push 4
lea eax, [ebp + 0xc]
push eax
push 0xa
xor esi, esi
push 0x29
push dword [ebp + 8]
inc esi
mov dword [ebp + 0xc], esi
call fcn.00749c51
add esp, 0x14
test eax, eax
jns 0x77fe7f
push 0x3b
push 0x632
push dword [0x82cc0c]
push 4
call fcn.00742a56
add esp, 0x10
or eax, reloc.ws2_32.dll_WSASetLastError
jmp 0x77fe97
push 4
lea eax, [ebp - 4]
push eax
push 0xb
push 0x29
push dword [ebp + 8]
mov dword [ebp - 4], esi
call dword [sym.imp.ws2_32.dll_setsockopt]
xor eax, eax
pop esi
leave
ret

Function at 0x786325
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ebx, ebx
xor edx, edx
xor esi, esi
push edi
cmp dword [ebp + 8], ebx
je 0x7863bb
cmp dword [ebp + 0xc], ebx
jl 0x7863bb
mov edi, dword [ebp + 0x10]
cmp edi, ebx
je 0x7863bb
mov eax, dword [ebp + 0x14]
cmp eax, 1
jle 0x7863bb
cmp dword [ebp + 0xc], edx
jle 0x7863b3
dec eax
mov dword [ebp - 4], eax
cmp esi, dword [ebp - 4]
jge 0x7863b3
mov eax, esi
and eax, 0x80000003
jns 0x78636b
dec eax
or eax, 0xfffffffc
inc eax
cmp eax, 3
je 0x786386
mov eax, dword [ebp + 8]
mov cl, byte [edx + eax]
mov al, cl
and cl, 3
shl bl, 2
shr al, 2
add bl, cl
inc edx
jmp 0x78638a
mov al, bl
xor bl, bl
cmp al, 0xa
jae 0x786392
add al, 0x30
jmp 0x7863aa
cmp al, 0x24
jae 0x78639a
add al, 0x37
jmp 0x7863aa
cmp al, 0x3e
jae 0x7863a2
add al, 0x3d
jmp 0x7863aa
cmp al, 0x3f
sbb al, al
and al, 0xce
add al, 0x5f
mov byte [esi + edi], al
inc esi
cmp edx, dword [ebp + 0xc]
jl 0x786358
mov byte [esi + edi], 0
xor eax, eax
jmp 0x7863c0
mov eax, 0xdad
pop edi
pop esi
pop ebx
leave
ret
Function at 0x7876c8
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, reloc.ws2_32.dll_WSASetLastError
sub esp, 0x1d8
mov eax, dword [0x830e54]
xor eax, ebp
mov dword [ebp + reloc.ws2_32.dll_WSASetLastError], eax
mov eax, dword [ebp + reloc.ws2_32.dll_WSASetLastError]
push ebx
push esi
push edi
push 0x10
mov dword [ebp - 0x5c], eax
lea eax, [ebp + 0x44]
push 0
push eax
call fcn.007c3430
xor eax, eax
inc eax
xor ecx, ecx
cpuid
lea esi, [ebp + 0x44]
mov dword [esi], eax
mov dword [esi + 4], ebx
mov dword [esi + 8], ecx
add esp, 0xc
mov dword [esi + 0xc], edx
test dword [ebp + 0x4c], 0x80000000
je 0x7877e8
xor ecx, ecx
mov eax, 0x40000000
cpuid
mov dword [esi], eax
mov dword [esi + 4], ebx
lea eax, [ebp + 0x48]
push 0x87ee20
mov dword [esi + 8], ecx
push eax
mov dword [esi + 0xc], edx
call fcn.007c9d20
pop ecx
pop ecx
test eax, eax
je 0x7877e8
mov edi, dword [ebp - 0x5c]
push 0x24
xor ebx, ebx
lea eax, [ebp - 0x80]
push ebx
push eax
mov dword [edi], 1
call fcn.007c3430
mov esi, 0x9c
push esi
lea eax, [ebp - 0x58]
push ebx
push eax
call fcn.007c3430
add esp, 0x18
push 0x7f3668
push 0x7f3658
mov dword [ebp - 0x58], esi
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, eax
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.kernel32.dll_GetVersionExA]
test eax, eax
jne 0x7877a5
xor eax, eax
jmp 0x7877eb
cmp dword [ebp - 0x54], 6
jb 0x7877e8
cmp byte [ebp + 0x42], 1
je 0x7877e8
cmp esi, ebx
je 0x7877a1
lea eax, [ebp - 0x80]
push eax
call esi
cmp word [ebp - 0x80], 6
je 0x7877c9
cmp word [ebp - 0x80], 9
jne 0x7877e8
lea eax, [ebp + 0x54]
push 0x87ede0
push eax
call fcn.007c9c00
push eax
call fcn.00787017
add esp, 0xc
test eax, eax
je 0x7877e8
mov dword [edi], ebx
jmp 0x7877a1
xor eax, eax
inc eax
mov ecx, dword [ebp + reloc.ws2_32.dll_WSASetLastError]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.007c1e9d
add ebp, 0x158
leave
ret