joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10007f91
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x44
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, 0x2c87
mov ebx, 0x1d5a
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [0x101d3e84], 0
mov dword [0x101d3e88], 0
mov dword [0x101d3e90], 0
mov dword [0x101d3e7c], 0x1d5a
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
cmp eax, 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], edi
je 0x100080eb
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x30]
mov edi, 0x100
add ecx, 1
mov dword [ebp - 0x38], eax
mov eax, ecx
mov dword [ebp - 0x3c], edx
cdq
idiv edi
mov dword [0x101d3e84], edx
mov ecx, dword [ebp - 0x2c]
movzx ebx, byte [ecx + edx]
mov ecx, dword [ebp - 0x3c]
add ebx, ecx
mov eax, ebx
mov dword [ebp - 0x40], edx
cdq
idiv edi
mov dword [0x101d3e88], edx
mov ecx, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x40]
mov cl, byte [ecx + edi]
mov byte [0x101d3e8c], cl
add esi, 0xfffff6df
mov dword [0x101d3e7c], esi
mov esi, dword [ebp - 0x2c]
mov cl, byte [esi + edx]
mov byte [esi + edi], cl
mov dword [0x101d3e80], 0x63b
mov cl, byte [0x101d3e8c]
mov edx, dword [0x101d3e88]
mov byte [esi + edx], cl
mov dword [0x101d3e7c], 0xbac
mov edx, dword [0x101d3e84]
movzx edx, byte [esi + edx]
mov ebx, dword [0x101d3e88]
movzx ebx, byte [esi + ebx]
add ebx, edx
and ebx, 0xff
mov dword [0x101d3e90], ebx
mov dword [0x101d3e7c], 0x1236
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x38]
mov cl, byte [edx + ecx]
xor cl, byte [esi + ebx]
mov ebx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x38]
mov byte [ebx + edx], cl
add edx, 1
mov ecx, dword [ebp - 0x10]
cmp edx, ecx
mov dword [ebp - 0x44], edx
je 0x10008132
jmp 0x100080fb
mov eax, dword [ebp - 0x34]
mov dword [0x101d3e7c], eax
add esp, 0x44
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [0x101d3e84]
mov ecx, dword [0x101d3e7c]
mov edx, dword [0x101d3e88]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x50], edx
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp - 0x48]
mov esi, dword [ebp - 0x44]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
jmp 0x1000800f
mov eax, dword [0x101d3e7c]
add eax, 0xf2d
mov dword [ebp - 0x34], eax
jmp 0x100080eb
Function at 0x10008291
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x48
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
call fcn.10008141
xor ecx, ecx
mov edx, eax
mov esi, dword [eax + 0x3c]
mov edi, edx
add edi, esi
mov esi, dword [eax + esi]
cmp esi, 0x4550
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], edi
je 0x100082cd
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x78]
mov dword [0x101d3e7c], 0xfffff751
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
add ecx, dword [edx + eax + 0x20]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
mov esi, dword [ecx + edx + 0x24]
mov dword [0x101d3e80], 0xffffe77b
mov edi, dword [ecx + edx + 0x18]
cmp edi, 0
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x34], eax
je 0x100083ef
jmp 0x10008364
mov eax, dword [ebp - 0x38]
add eax, 1
mov cl, byte [ebp - 0x39]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x3a]
and ch, dl
cmp eax, 0x20
setb dl
and ch, dl
test ch, 1
mov dword [ebp - 0x40], eax
jne 0x10008376
jmp 0x100083a3
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x48]
xor edx, edx
mov esi, dword [ebp - 0x28]
mov edi, dword [esi + eax*4]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x40], edx
jmp 0x10008376
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x30]
add ecx, edx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], eax
jmp 0x10008348
mov eax, dword [ebp - 0x40]
mov ecx, eax
mov edx, dword [ebp - 0x54]
add ecx, edx
mov esi, dword [ebp - 0x1c]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x39], bh
mov byte [ebp - 0x3a], cl
jne 0x1000831e
mov al, byte [ebp - 0x3a]
test al, 1
jne 0x100083d6
jmp 0x100083ac
xor eax, eax
mov ecx, dword [ebp - 0x50]
add ecx, 2
mov edx, dword [ebp - 0x4c]
add edx, 1
mov esi, dword [ebp - 0x2c]
cmp edx, esi
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x34], eax
jb 0x10008348
jmp 0x100083ef
mov eax, dword [ebp - 0x50]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x24]
add edx, dword [edx + esi + 0x1c]
mov edi, dword [ebp - 0x1c]
add edi, dword [edx + ecx*4]
mov dword [ebp - 0x34], edi
mov eax, dword [ebp - 0x34]
add esp, 0x48
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10008768
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x54
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [0x101d3e80]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], edx
xor eax, eax
mov ecx, dword [ebp - 0x30]
add ecx, 0xfffff0b4
mov dword [0x101d3e80], ecx
mov dword [0x101d3e7c], 0x13ed
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov cl, byte [eax + 0x10198988]
mov dl, byte [eax + 0x10198959]
sub dl, cl
mov byte [ebp + eax - 0x24], dl
add eax, 1
cmp eax, 0xe
mov dword [ebp - 0x34], eax
jne 0x100087a2
lea eax, [ebp - 0x24]
mov dword [0x101d3e80], 0x18e3
mov dword [ebp - 0x38], eax
call fcn.10008516
mov dword [esp], eax
mov eax, dword [ebp - 0x38]
mov dword [esp + 4], eax
call fcn.1000860a
cmp eax, 0
mov dword [ebp - 0x3c], eax
je 0x100088af
mov eax, dword [0x101d3e7c]
mov ecx, dword [ebp - 0x3c]
add eax, 0xffffe855
mov dword [0x101d3e7c], eax
mov eax, esp
mov dword [eax + 0xc], 0x40
mov dword [eax + 8], 0x1000
mov dword [eax + 4], 0x6000
mov dword [eax], 0
call ecx
sub esp, 0x10
mov dword [esp], eax
mov ecx, dword [ebp - 0x28]
mov dword [esp + 4], ecx
mov dword [ebp - 0x40], eax
call fcn.10007b5a
xor eax, eax
mov dword [0x101d3e80], 0x26a5
mov ecx, dword [ebp - 0x40]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xd0
mov dword [ecx + 0xd0], 0x4550
add ecx, 0xffc00000
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x24], ecx
mov ecx, dword [ebp - 0x40]
mov dword [edx + 0xc], ecx
mov esi, dword [0x101d3e80]
add esi, 0x236
mov dword [0x101d3e7c], esi
add ecx, 0x1d16
mov esi, dword [ebp - 0x40]
cmp esi, 0
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x48], eax
je 0x100088a6
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
add esp, 0x54
pop esi
pop ebp
ret
xor eax, eax
add esp, 0x54
pop esi
pop ebp
ret
Function at 0x403100
Capabilities:
Read file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x20]
mov dword [esp + 8], 0
mov esi, dword [esp + 0x28]
mov dword [esp + 4], eax
mov eax, dword [ebx + 4]
mov dword [esp], eax
call fcn.00413490
test eax, eax
jne 0x403181
mov eax, dword [ebx + 4]
mov dword [esp + 8], 0x3c
mov dword [esp + 4], 1
mov dword [esp + 0xc], eax
lea eax, [ebx + 0x34]
mov dword [esp], eax
call sub.msvcrt.dll_fread
cmp eax, 0x3c
jne 0x4031a3
lea eax, [ebx + 0x6e]
mov dword [esp + 8], 2
mov dword [esp + 4], 0x41df86
mov dword [esp], eax
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x4031c0
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], ebx
add esp, 0x14
pop ebx
pop esi
jmp fcn.004031e0
mov ebx, dword [ebx]
mov dword [esp], str._s:_failed_to_seek_to_next_file_name_n
call fcn.00403920
mov dword [esp], eax
mov dword [esp + 4], ebx
call fcn.004022e0
add esp, 0x14
xor eax, eax
pop ebx
pop esi
ret
mov ebx, dword [ebx]
mov dword [esp], str._s:_failed_to_read_archive_header_n
call fcn.00403920
mov dword [esp], eax
mov dword [esp + 4], ebx
call fcn.004022e0
jmp 0x40319b
mov ebx, dword [ebx]
mov dword [esp], str._s:_did_not_find_a_valid_archive_header_n
call fcn.00403920
mov dword [esp], eax
mov dword [esp + 4], ebx
call fcn.004022e0
jmp 0x40319b
Function at 0x408368
Capabilities:
Get geographical location
Query environment variable

Disassembly:
movzx eax, word [esp + 4]
mov dword [esp + 4], eax
jmp fcn.00406ce4

Function at 0x408380
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x1c
mov dword [esp], str.LC_ALL
call sub.msvcrt.dll_getenv
test eax, eax
je 0x408398
cmp byte [eax], 0
jne 0x4083c2
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.msvcrt.dll_getenv
test eax, eax
je 0x4083ad
cmp byte [eax], 0
jne 0x4083c2
mov dword [esp], str.LANG
call sub.msvcrt.dll_getenv
test eax, eax
je 0x4083c8
cmp byte [eax], 0
je 0x4083c8
add esp, 0x1c
ret
xor eax, eax
jmp 0x4083c2

Function at 0x408434
Capabilities:
Write file on windows

Disassembly:
push edi
push esi
push ebx
sub esp, 0x20
mov ebx, eax
mov edi, ecx
dec dword [eax + 4]
js 0x408564
mov eax, dword [eax]
lea ecx, [eax + 1]
mov dword [ebx], ecx
mov byte [eax], 0x22
lea esi, [edx + 1]
cmp edx, edi
je 0x4084e4
movsx eax, byte [esi - 1]
cmp al, 0xa
je 0x40849b
cmp al, 0x22
je 0x4084fc
cmp al, 0x5c
je 0x4084fc
mov ecx, dword [ebx + 4]
lea edx, [ecx - 1]
mov dword [ebx + 4], edx
test edx, edx
js 0x408520
mov edx, dword [ebx]
lea ecx, [edx + 1]
mov dword [ebx], ecx
mov byte [edx], al
cmp edi, esi
je 0x4084e4
inc esi
movsx eax, byte [esi - 1]
cmp al, 0xa
jne 0x408464
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 3
mov dword [esp + 4], 1
mov dword [esp], 0x41f16c
call sub.msvcrt.dll_fwrite
cmp edi, esi
je 0x4084f3
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 2
mov dword [esp + 4], 1
mov dword [esp], 0x41f170
call sub.msvcrt.dll_fwrite
inc esi
jmp 0x408493
dec dword [ebx + 4]
js 0x40854d
mov eax, dword [ebx]
lea edx, [eax + 1]
mov dword [ebx], edx
mov byte [eax], 0x22
add esp, 0x20
pop ebx
pop esi
pop edi
ret
dec dword [ebx + 4]
js 0x408534
mov eax, dword [ebx]
lea edx, [eax + 1]
mov dword [ebx], edx
mov byte [eax], 0x5c
movsx eax, byte [esi - 1]
mov ecx, dword [ebx + 4]
lea edx, [ecx - 1]
mov dword [ebx + 4], edx
test edx, edx
jns 0x408485
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.msvcrt.dll__flsbuf
jmp 0x40848e
mov dword [esp + 4], ebx
mov dword [esp], 0x5c
call sub.msvcrt.dll__flsbuf
movsx eax, byte [esi - 1]
jmp 0x408474
mov dword [esp + 4], ebx
mov dword [esp], 0x22
call sub.msvcrt.dll__flsbuf
add esp, 0x20
pop ebx
pop esi
pop edi
ret
mov dword [esp + 0x1c], edx
mov dword [esp + 4], eax
mov dword [esp], 0x22
call sub.msvcrt.dll__flsbuf
mov edx, dword [esp + 0x1c]
jmp 0x408451
Function at 0x40b688
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x24
mov ebx, dword [esp + 0x34]
mov dword [esp + 4], 0x24
mov dword [esp], ebx
call sub.msvcrt.dll_strchr
test eax, eax
mov eax, dword [esp + 0x38]
je 0x40b71c
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
lea eax, [esp + 0x1c]
mov dword [esp + 4], eax
mov dword [esp], 0
call fcn.00408838
mov ebx, eax
test eax, eax
je 0x40b6fb
mov eax, dword [esp + 0x30]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], ebx
call sub.msvcrt.dll_fwrite
mov esi, eax
mov dword [esp], ebx
call fcn.0041ab20
cmp esi, dword [esp + 0x1c]
je 0x40b708
mov eax, 0xffffffff
add esp, 0x24
pop ebx
pop esi
ret
mov eax, esi
test esi, esi
jns 0x40b700
call sub.msvcrt.dll__errno
mov dword [eax], 7
jmp 0x40b6fb
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call fcn.00413390
add esp, 0x24
pop ebx
pop esi
ret
Function at 0x412d50
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x4272b8
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [0x4272b0]
sub esp, 4
test ebx, ebx
je 0x412d9b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov esi, eax
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x412d94
test esi, esi
je 0x412d94
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x412d70
mov dword [esp], 0x4272b8
call sub.KERNEL32.dll_LeaveCriticalSection
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret
Function at 0x4134b0
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
mov eax, dword [sym.imp.msvcrt.dll__osver]
mov ebx, dword [esp + 0x6c]
mov eax, dword [eax]
test ah, 0x80
je 0x4134d0
mov eax, dword [0x4274e0]
test eax, eax
jne 0x413500
mov eax, dword [esp + 0x68]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x60]
mov dword [esp], eax
call sub.msvcrt.dll_fwrite
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], ebx
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [0x4274e0], 0
call sub.msvcrt.dll_fflush
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
call sub.msvcrt.dll__get_osfhandle
lea edx, [esp + 0x34]
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.KERNEL32.dll_GetFileSize
sub esp, 8
cmp eax, 0xffffffff
mov dword [esp + 0x30], eax
je 0x413661
mov eax, dword [ebx + 0x10]
mov esi, dword [esp + 0x38]
mov dword [esp], eax
call sub.msvcrt.dll__get_osfhandle
lea edx, [esp + 0x3c]
mov dword [esp + 0xc], 1
mov dword [esp + 4], esi
mov dword [esp], eax
mov dword [esp + 8], edx
call sub.KERNEL32.dll_SetFilePointer
sub esp, 0x10
cmp eax, 0xffffffff
mov dword [esp + 0x38], eax
je 0x4136e0
mov edi, dword [esp + 0x34]
cmp dword [esp + 0x3c], edi
mov eax, dword [esp + 0x38]
jbe 0x413680
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
call sub.msvcrt.dll__get_osfhandle
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.KERNEL32.dll_SetFilePointer
sub esp, 0x10
mov esi, dword [esp + 0x38]
sub esi, dword [esp + 0x30]
mov edi, dword [esp + 0x3c]
sbb edi, dword [esp + 0x34]
cmp edi, 0
jl 0x413646
jle 0x413641
nop
cmp edi, 0
mov ebp, esi
jl 0x4135f2
jle 0x413695
mov ebp, 0x200
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
call sub.msvcrt.dll__get_osfhandle
lea ecx, [esp + 0x2c]
mov dword [esp + 0x10], 0
mov dword [esp + 8], ebp
mov dword [esp + 4], 0x4272e0
mov dword [esp], eax
mov dword [esp + 0xc], ecx
call sub.KERNEL32.dll_WriteFile
sub esp, 0x14
test eax, eax
je 0x4136b0
mov eax, dword [esp + 0x2c]
cmp ebp, eax
ja 0x4136b0
xor edx, edx
sub esi, eax
sbb edi, edx
cmp edi, 0
jg 0x4135e0
jl 0x413646
cmp esi, 0
ja 0x4135e0
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
call sub.msvcrt.dll__get_osfhandle
mov dword [esp], eax
call sub.KERNEL32.dll_FlushFileBuffers
sub esp, 4
jmp 0x4134d0
call sub.KERNEL32.dll_GetLastError
test eax, eax
je 0x41354d
mov eax, 0xffffffff
jmp 0x4134f0
jb 0x4134d0
cmp eax, dword [esp + 0x30]
ja 0x41359a
jmp 0x4134d0
cmp esi, 0x200
jbe 0x4135f2
jmp 0x4135ed
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
call sub.msvcrt.dll__get_osfhandle
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.KERNEL32.dll_SetFilePointer
sub esp, 0x10
jmp 0x41366e
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x41366e
jmp 0x413588
Function at 0x100020f0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp byte [eax + 0x1d4], 0
je 0x10002110
push eax
call fcn.1003e420
add esp, 4
test eax, eax
jne 0x1000212e
xor al, al
pop ebp
ret
mov eax, dword [eax + 0x190]
cmp eax, 0xffffffff
je 0x1000210c
push 2
push 1
lea ecx, [ebp + 0xb]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x1000210c
mov al, 1
pop ebp
ret

Function at 0x100027d0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100adcb0]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
test eax, eax
jne 0x10002821
push 3
push 2
push eax
push 6
call fcn.1002c1c0
add esp, 0x10
test al, al
je 0x10002815
mov dword [0x100adcb0], 2
mov esp, ebp
pop ebp
ret
mov dword [0x100adcb0], 1
jmp 0x10002826
cmp eax, 2
je 0x10002866
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 0x1000284d
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jg 0x10002866
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 0x10002940
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp + 8]
push 4
push eax
push 1
mov esi, dword [edi]
push 6
push dword [ebp + 0xc]
mov dword [ebp + 8], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x10002988
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.1002b700
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.10024550
add esp, 0x14
pop edi
pop esi
pop ebp
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.10024550
add esp, 8
pop edi
pop esi
pop ebp
ret
Function at 0x10002a80
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x100ad12c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x8c], 2
mov ebx, dword [edi]
je 0x10002c5a
cmp byte [edi + 0x366], 0
push esi
jne 0x10002c50
cmp byte [edi + 0x382], 0
jne 0x10002c50
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x104]
mov dword [ebp - 0x108], 0x80
push eax
push esi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x10002b18
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push edi
call fcn.1002b700
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.100244a0
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003f03b
mov esp, ebp
pop ebp
ret
push 0x80
lea eax, [ebp - 0x84]
mov dword [ebp - 0x108], 0x80
push 0
push eax
call fcn.10040710
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x84]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x10002b81
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push edi
call fcn.1002b700
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.100244a0
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003f03b
mov esp, ebp
pop ebp
ret
lea eax, [edi + 0x130]
push eax
lea esi, [edi + 0x102]
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.10003160
add esp, 0xc
test al, al
jne 0x10002bd2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.1002b700
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.100244a0
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003f03b
mov esp, ebp
pop ebp
ret
movups xmm0, xmmword [esi]
mov eax, dword [esi + 0x28]
movups xmmword [edi + 0x58], xmm0
movups xmm0, xmmword [esi + 0x10]
movups xmmword [edi + 0x68], xmm0
movq xmm0, qword [esi + 0x20]
movq qword [edi + 0x78], xmm0
mov dword [edi + 0x80], eax
mov ax, word [esi + 0x2c]
mov word [edi + 0x84], ax
lea eax, [edi + 0x164]
push eax
lea eax, [edi + 0x134]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.10003160
add esp, 0xc
test al, al
jne 0x10002c50
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.1002b700
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.100244a0
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003f03b
mov esp, ebp
pop ebp
ret
push edi
call fcn.100026f0
add esp, 4
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.1003f03b
mov esp, ebp
pop ebp
ret
Function at 0x100034e0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100ad12c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, dword [ebp + 0xc]
push 4
cmp byte [esi + 0x49c], al
setne al
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 8
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x1000353d
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.10024550
add esp, 0xc
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003f03b
mov esp, ebp
pop ebp
ret
push dword [esi + 0x4a0]
mov dword [ebp - 0x10], 1
call fcn.10038880
push dword [esi + 0x4a4]
imul eax, eax, 0x3e8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
call fcn.10038880
add esp, 8
imul eax, eax, 0x3e8
push 0
push 0
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x18]
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 0x100035ad
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.10024550
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1003f03b
mov esp, ebp
pop ebp
ret
Function at 0x10005fa0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push esi
push edi
mov byte [edi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [edi + esi - 1], 0
test eax, eax
jne 0x10005fd3
push 0x2e
push edi
call fcn.10040df0
add esp, 8
test eax, eax
je 0x10005fd1
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
pop ebp
ret

Function at 0x100060f0
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, dword [ebp + 0xc]
push edi
lea ecx, [esi + 1]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x10006100
sub esi, ecx
lea eax, [esi + esi]
push eax
mov dword [ebp - 0xc], eax
call dword [0x100ad008]
mov edi, eax
add esp, 4
test edi, edi
jne 0x10006128
lea eax, [edi + 0x1b]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push esi
push dword [ebp + 0xc]
push edi
call fcn.100061d0
add esp, 0xc
lea eax, [ebp - 8]
push 0xf0000000
push 1
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
mov esi, dword [ebp + 0x10]
test eax, eax
je 0x100061a7
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x8002
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x1000619c
push 0
push dword [ebp - 0xc]
mov dword [ebp - 0x10], 0x10
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
push 0
lea eax, [ebp - 0x10]
push eax
push esi
push 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [esi + 0x10], 0
push edi
mov byte [esi + 0x14], 0
call dword [0x100ad00c]
add esp, 4
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret