joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100baae0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10255ddb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x1025e6e4]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
mov dword [esi], eax
mov ecx, dword [0x1025e6e4]
lea edi, [esi + 4]
mov dword [esp + 0x1c], 0
mov dword [edi], ecx
mov edx, dword [0x1025e6e4]
lea ebx, [esi + 8]
mov dword [ebx], edx
lea ebp, [esi + 0xc]
mov byte [esp + 0x1c], 2
mov ecx, ebp
call fcn.100b9bd0
mov eax, dword [0x1025e6e4]
mov dword [esi + 0x20], eax
mov ecx, dword [0x1025e6e4]
mov dword [esi + 0x24], ecx
mov edx, dword [0x1025e6e4]
mov dword [esi + 0x28], edx
mov eax, dword [0x1025e6e4]
mov dword [esi + 0x2c], eax
mov ecx, dword [0x1025e6e4]
mov dword [esi + 0x30], ecx
mov edx, dword [0x1025e6e4]
mov dword [esi + 0x34], edx
push 0x102e269c
mov ecx, esi
mov byte [esp + 0x20], 9
call fcn.100837e0
push 0x102e269c
mov ecx, edi
call fcn.100837e0
push 0x102e269c
mov ecx, ebx
call fcn.100837e0
mov ecx, ebp
call fcn.100b9dc0
push 0x102e269c
lea ecx, [esi + 0x20]
call fcn.100837e0
push 0x102e269c
lea ecx, [esi + 0x24]
call fcn.100837e0
push 0x102e269c
lea ecx, [esi + 0x28]
call fcn.100837e0
push 0x102e269c
lea ecx, [esi + 0x2c]
call fcn.100837e0
push 0x102e269c
lea ecx, [esi + 0x30]
call fcn.100837e0
push 0x102e269c
lea ecx, [esi + 0x34]
call fcn.100837e0
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x100bb000
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10256001
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x1025ed2c
mov ebx, dword [esi + 0x50]
xor edi, edi
test ebx, ebx
mov dword [esp + 0x18], 2
jle 0x100bb04b
mov eax, dword [esi + 0x4c]
mov ecx, dword [eax + edi*4]
test ecx, ecx
je 0x100bb046
mov edx, dword [ecx]
push 1
call dword [edx]
inc edi
cmp edi, ebx
jl 0x100bb036
lea edi, [esi + 0x4c]
push 0xffffffffffffffff
push 0
mov ecx, edi
call fcn.100b8d60
mov edi, dword [edi]
mov byte [esp + 0x18], 1
test edi, edi
je 0x100bb06d
push edi
call fcn.1023d925
add esp, 4
lea ecx, [esi + 0x40]
mov byte [esp + 0x18], 0
mov dword [esi + 0x3c], 0x1025ed28
call fcn.10083560
add esi, 4
mov dword [esp + 0xc], esi
lea ecx, [esi + 0x34]
mov dword [esp + 0x18], 0xb
call fcn.10083560
lea ecx, [esi + 0x30]
mov byte [esp + 0x18], 0xa
call fcn.10083560
lea ecx, [esi + 0x2c]
mov byte [esp + 0x18], 9
call fcn.10083560
lea ecx, [esi + 0x28]
mov byte [esp + 0x18], 8
call fcn.10083560
lea ecx, [esi + 0x24]
mov byte [esp + 0x18], 7
call fcn.10083560
lea ecx, [esi + 0x20]
mov byte [esp + 0x18], 6
call fcn.10083560
lea ecx, [esi + 0xc]
mov byte [esp + 0x18], 5
call fcn.100b9c80
lea ecx, [esi + 8]
mov byte [esp + 0x18], 4
call fcn.10083560
lea ecx, [esi + 4]
mov byte [esp + 0x18], 3
call fcn.10083560
mov ecx, esi
mov dword [esp + 0x18], 0xffffffff
call fcn.10083560
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x100bc6d0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x102562b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x100bc745
mov eax, dword [esi + 0x48]
test eax, eax
je 0x100bc745
cmp ecx, eax
ja 0x100bc745
sub eax, ecx
mov dword [ebp - 4], 0
mov edi, eax
lea eax, [edi + 1]
push eax
call fcn.1023d8fc
mov edx, dword [ebp + 8]
mov ecx, edi
add esp, 4
mov dword [edx], eax
mov byte [eax + edi], 0
mov edi, dword [edx]
mov esi, dword [esi + 0x44]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x100bc8d8
mov ecx, esi
call fcn.100bb160
cmp eax, 3
je 0x100bc8a0
cmp eax, 4
je 0x100bc8a0
mov eax, dword [esi + 0xc]
push 1
push eax
call fcn.100bdf30
mov ebx, eax
add esp, 8
cmp ebx, 0xffffffff
jne 0x100bc795
push 0x102c3dc4
call fcn.100bc900
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x100bc7ce
push 0x102c4118
call fcn.100bc900
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push edi
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 3
call fcn.1023d8fc
add esp, 4
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0xffffffff
push 0
push ecx
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp edi, dword [ebp - 0x14]
je 0x100bc838
push 0x102c3de8
call fcn.100bc900
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x18]
push edx
call fcn.1023d925
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esi + 0x2c]
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp - 0x18]
push eax
push edi
push esi
call fcn.100bcdd0
add esp, 0x10
test eax, eax
jne 0x100bc880
push 0x102c41c4
call fcn.100bc900
push esi
call fcn.1023d925
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push esi
call fcn.1023d925
add esp, 4
jmp 0x100bc8d8
mov edi, dword [esi + 0x2c]
mov ebx, dword [esi + 0x28]
lea ecx, [ebp - 0x18]
push ecx
mov ecx, esi
call fcn.100bb280
mov edx, dword [ebp + 8]
mov eax, dword [eax]
push edi
push ebx
push edx
push eax
mov dword [ebp - 4], 2
call fcn.100bcbe0
add esp, 0x10
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.10083560
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x100c0970
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x104
call fcn.1006c090
push ebx
push esi
push edi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x100c09b9
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x100c09b9
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push ecx
push 0x102c1b78
call fcn.101bea75
add esp, 0xc
lea esp, [ebp - 0x110]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
push edx
push eax
lea ecx, [ebp - 0x104]
push 0xff
push ecx
call fcn.101bea25
add esp, 0x10
mov byte [ebp - 5], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x100c0acb
call dword [sym.imp.USER32.dll_GetDesktopWindow]
call dword [sym.imp.USER32.dll_GetProcessWindowStation]
mov ebx, eax
test ebx, ebx
je 0x100c0acb
lea edx, [ebp - 4]
push edx
push 0
push 0
push 2
push ebx
call dword [sym.imp.USER32.dll_GetUserObjectInformationW]
test eax, eax
jne 0x100c0acb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x100c0acb
mov eax, dword [ebp - 4]
cmp eax, 0x200
ja 0x100c0acb
lea esi, [eax + 1]
and esi, 0xfffffffe
mov dword [ebp - 4], esi
lea eax, [esi + 2]
add eax, 3
and al, 0xfc
call fcn.1006c090
lea eax, [ebp - 4]
mov edi, esp
push eax
push esi
push edi
push 2
push ebx
call dword [sym.imp.USER32.dll_GetUserObjectInformationW]
test eax, eax
je 0x100c0acb
mov ecx, dword [ebp - 4]
push str.Service_0x
push edi
lea eax, [ecx + 1]
and al, 0xfe
mov dword [ebp - 4], eax
shr eax, 1
mov word [edi + eax*2], 0
call fcn.1006c950
add esp, 8
test eax, eax
je 0x100c0acb
push str.OPENSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push 0
push 1
push 0
push 0
push 0
lea edx, [ebp - 0x104]
push 1
push esi
mov dword [ebp - 4], edx
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
lea esp, [ebp - 0x110]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x10
lea ecx, [ebp - 0x104]
push str.OpenSSL:_FATAL
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea esp, [ebp - 0x110]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100c5aa0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
xor esi, esi
test edi, edi
je 0x100c5b01
mov al, byte [edi]
test al, al
je 0x100c5b01
push ebx
push ebp
mov ebx, 0x100
movsx eax, al
or eax, ebx
mov ebp, esi
mov edx, eax
mov ecx, eax
shr edx, 2
and edx, 0xf
and ecx, 0xf
xor edx, ecx
mov ecx, 0x20
sub ecx, edx
add ebx, 0x100
shr ebp, cl
mov ecx, edx
mov edx, eax
imul edx, eax
shl esi, cl
mov al, byte [edi + 1]
or ebp, esi
xor ebp, edx
inc edi
test al, al
mov esi, ebp
jne 0x100c5ab9
mov eax, esi
pop ebp
shr eax, 0x10
pop ebx
xor eax, esi
pop edi
pop esi
ret
pop edi
xor eax, eax
pop esi
ret
Function at 0x100db720
Capabilities:
Check if file exists

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
push edi
push esi
push ebx
call fcn.101beb1d
mov edi, eax
add esp, 8
test edi, edi
jne 0x100db7b6
push 0x7e
push str..crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.100bfb70
push 0x10264ef8
push esi
push 0x10264ef4
push ebx
push str.fopen_
push 5
call fcn.100c0020
add esp, 0x2c
call fcn.1006e217
cmp dword [eax], 2
jne 0x100db798
push 0x81
push str..crypto_bio_bss_file.c
push 0x80
push 0x6d
push 0x20
call fcn.100bfb70
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x83
push str..crypto_bio_bss_file.c
push 2
push 0x6d
push 0x20
call fcn.100bfb70
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x102cdef8
call fcn.100d20e0
mov esi, eax
add esp, 4
test esi, esi
jne 0x100db7d8
push edi
call fcn.1007cfb4
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0
push esi
call fcn.100d2300
push edi
push 1
push 0x6a
push esi
call fcn.100d27c0
add esp, 0x18
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x100deee0
Capabilities:
Hash data using sha224

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0xc1059ed8
mov dword [eax + 4], 0x367cd507
mov dword [eax + 8], 0x3070dd17
mov dword [eax + 0xc], 0xf70e5939
mov dword [eax + 0x10], 0xffc00b31
mov dword [eax + 0x14], 0x68581511
mov dword [eax + 0x18], 0x64f98fa7
mov dword [eax + 0x1c], 0xbefa4fa4
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
mov dword [eax + 0x68], ecx
mov dword [eax + 0x6c], 0x1c
mov eax, 1
ret

Function at 0x100def40
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
mov dword [eax + 0x68], ecx
mov dword [eax + 0x6c], 0x20
mov eax, 1
ret
Function at 0x100e0680
Capabilities:
Hash data using sha224

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0xc1059ed8
mov dword [eax + 8], 0x367cd507
mov dword [eax + 0x10], 0x3070dd17
mov dword [eax + 0x18], 0xf70e5939
mov dword [eax + 0x20], 0xffc00b31
mov dword [eax + 0x28], 0x68581511
mov dword [eax + 0x30], 0x64f98fa7
mov dword [eax + 0x38], 0xbefa4fa4
mov dword [eax + 0x40], ecx
mov dword [eax + 0x48], ecx
mov dword [eax + 4], 0xcbbb9d5d
mov dword [eax + 0xc], 0x629a292a
mov dword [eax + 0x14], 0x9159015a
mov dword [eax + 0x1c], 0x152fecd8
mov dword [eax + 0x24], 0x67332667
mov dword [eax + 0x2c], 0x8eb44a87
mov dword [eax + 0x34], 0xdb0c2e0d
mov dword [eax + 0x3c], 0x47b5481d
mov dword [eax + 0x44], ecx
mov dword [eax + 0x4c], ecx
mov dword [eax + 0xd0], ecx
mov dword [eax + 0xd4], 0x30
mov eax, 1
ret

Function at 0x100e0720
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0xf3bcc908
mov dword [eax + 8], 0x84caa73b
mov dword [eax + 0x10], 0xfe94f82b
mov dword [eax + 0x18], 0x5f1d36f1
mov dword [eax + 0x20], 0xade682d1
mov dword [eax + 0x28], 0x2b3e6c1f
mov dword [eax + 0x30], 0xfb41bd6b
mov dword [eax + 0x38], 0x137e2179
mov dword [eax + 0x40], ecx
mov dword [eax + 0x48], ecx
mov dword [eax + 4], 0x6a09e667
mov dword [eax + 0xc], 0xbb67ae85
mov dword [eax + 0x14], 0x3c6ef372
mov dword [eax + 0x1c], 0xa54ff53a
mov dword [eax + 0x24], 0x510e527f
mov dword [eax + 0x2c], 0x9b05688c
mov dword [eax + 0x34], 0x1f83d9ab
mov dword [eax + 0x3c], 0x5be0cd19
mov dword [eax + 0x44], ecx
mov dword [eax + 0x4c], ecx
mov dword [eax + 0xd0], ecx
mov dword [eax + 0xd4], 0x40
mov eax, 1
ret
Function at 0x100e43c0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x100e43fa
mov ax, word [esp]
cmp al, 2
jne 0x100e43f4
xor ecx, ecx
mov cl, ah
cmp cl, al
jne 0x100e43f4
xor eax, eax
add esp, 0x190
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
add esp, 0x190
ret
Function at 0x100f30f0
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
push eax
push esi
mov edi, dword [esi + eax*4 + 0x198]
call fcn.100f3180
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
add esp, 8
push 0
push eax
push ecx
push edi
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [esp + 0x24]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebx], 0
jne 0x100f3174
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp ebp, 0x2733
jne 0x100f314e
pop edi
pop esi
mov dword [ebx], 0x51
pop ebp
xor eax, eax
pop ebx
ret
push ebp
push esi
call fcn.100e51f0
mov edx, dword [esi]
push eax
push str.Send_failure:__s
push edx
call fcn.100f2ef0
mov eax, dword [esi]
add esp, 0x14
mov dword [eax + 0x4744], ebp
mov dword [ebx], 0x37
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x100f3180
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
lea esi, [eax + 0x1c]
shl esi, 4
add esi, ebx
push edi
mov ebp, dword [ebx + eax*4 + 0x198]
mov edi, dword [esi + 4]
mov ecx, dword [esi + 8]
sub edi, ecx
mov ecx, dword [ebx + 0x340]
test byte [ecx + 0x3c], 3
je 0x100f3238
cmp dword [ebx + eax*4 + 0x1b0], 0x100f3280
jne 0x100f3238
cmp dword [esi], 0
je 0x100f31c9
test edi, edi
je 0x100f3238
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebp
call fcn.100e5770
add esp, 0x10
cmp eax, 0xffffffff
je 0x100f3238
test al, 1
je 0x100f3238
cmp dword [esi], 0
jne 0x100f320a
mov edx, dword [ebx]
mov eax, dword [edx + 0x360]
shl eax, 1
push eax
mov dword [esi + 4], eax
call dword [0x102cdf24]
mov edi, dword [esi + 4]
add esp, 4
mov dword [esi], eax
xor eax, eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov eax, dword [esi]
test eax, eax
je 0x100f3231
mov ebx, dword [esi + 8]
push 0
add eax, ebx
push edi
push eax
push ebp
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x100f3238
mov ecx, dword [esi + 8]
pop edi
add ecx, eax
mov dword [esi + 8], ecx
pop esi
pop ebp
pop ebx
ret
mov dword [esi + 4], 0
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x100f3660
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x100f3691
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and al, 0xe7
add eax, 0x51
ret
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
xor eax, eax
ret
Function at 0x100f5bb0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x104
push ebx
mov ebx, dword [esp + 0x10c]
push ebp
push esi
mov eax, dword [ebx + 0x94]
mov ebp, dword [ebx]
cmp eax, 2
push edi
je 0x100f5d3a
mov eax, dword [ebx + 0x2a8]
test eax, eax
jne 0x100f5d31
mov eax, dword [ebx + 0x318]
test eax, eax
jne 0x100f5d31
mov esi, dword [esp + 0x11c]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x94]
push eax
mov edi, 0x80
push ecx
push esi
mov dword [esp + 0x1c], edi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x100f5c40
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebx
call fcn.100e51f0
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebp
call fcn.100f2ef0
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
mov dword [esp + 0x10], edi
mov ecx, 0x20
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x100f5c90
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebx
call fcn.100e51f0
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebp
call fcn.100f2ef0
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
lea ecx, [ebx + 0x138]
lea esi, [ebx + 0x10a]
push ecx
lea edx, [esp + 0x98]
push esi
push edx
call fcn.100f5d50
add esp, 0xc
test eax, eax
jne 0x100f5cdc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebx
call fcn.100e51f0
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ebp
call fcn.100f2ef0
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
lea edi, [ebx + 0x60]
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
lea eax, [ebx + 0x16c]
lea ecx, [ebx + 0x13c]
push eax
lea edx, [esp + 0x18]
push ecx
push edx
movsw word es:[edi], word [esi]
call fcn.100f5d50
add esp, 0xc
test eax, eax
jne 0x100f5d31
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebx
call fcn.100e51f0
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebp
call fcn.100f2ef0
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
push ebx
call fcn.100f5b30
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret

Function at 0x100f6260
Capabilities:
Set socket configuration

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
mov edi, dword [esp + 0xc]
lea eax, [esp + 0xc]
push 4
mov esi, dword [edi]
push eax
push 1
push 6
push ecx
mov dword [esp + 0x20], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x100f62a9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.100e51f0
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.100f2e80
add esp, 0x14
pop edi
pop esi
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.100f2e80
add esp, 8
pop edi
pop esi
ret
Function at 0x100f62c0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xc
mov eax, dword [0x102f8778]
push esi
test eax, eax
mov dword [esp + 8], 0x4020
mov dword [esp + 4], 0
mov dword [esp + 0xc], 4
jne 0x100f6313
push 3
push 2
push eax
push 6
call fcn.10119930
add esp, 0x10
test eax, eax
je 0x100f6307
mov dword [0x102f8778], 2
pop esi
add esp, 0xc
ret
mov dword [0x102f8778], 1
jmp 0x100f6318
cmp eax, 2
je 0x100f635f
mov esi, dword [esp + 0x14]
lea eax, [esp + 0xc]
lea ecx, [esp + 4]
push eax
push ecx
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x100f6347
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, eax
jg 0x100f635f
lea eax, [esp + 8]
push 4
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
pop esi
add esp, 0xc
ret
Function at 0x100f6640
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x14]
xor eax, eax
push edi
mov ecx, dword [esi + 0x540]
mov edi, dword [esp + 0x1c]
test ecx, ecx
lea ecx, [esp + 0x18]
push 4
push ecx
push 8
setne al
push 0xffff
push edi
mov dword [esp + 0x2c], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x100f668c
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.100f2e80
add esp, 0xc
pop edi
pop esi
add esp, 0xc
ret
mov edx, dword [esi + 0x544]
mov dword [esp + 8], 1
push edx
call fcn.100fe400
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x548]
push eax
call fcn.100fe400
add esp, 8
lea eax, [eax + eax*4]
lea ecx, [esp + 0x1c]
lea edx, [esp + 8]
push 0
push 0
lea eax, [eax + eax*4]
push ecx
push 0
push 0
lea eax, [eax + eax*4]
push 0xc
push edx
push 0x98000004
shl eax, 3
push edi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x34], eax
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x100f6711
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.100f2e80
add esp, 0x10
pop edi
pop esi
add esp, 0xc
ret
Function at 0x100f6cd0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [eax + 0x1e0]
test ecx, ecx
je 0x100f6cec
push eax
call fcn.100e7010
add esp, 4
test eax, eax
jne 0x100f6d0f
ret
mov eax, dword [eax + 0x198]
cmp eax, 0xffffffff
jne 0x100f6cfa
xor eax, eax
ret
push 2
lea ecx, [esp + 8]
push 1
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x100f6d0f
ret
mov eax, 1
ret

Function at 0x100f8470
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push 0
push 0
push eax
push ecx
push 0
push 0
call fcn.1006e836
add esp, 0x18
test eax, eax
je 0x100f8493
cmp eax, 0xffffffff
jne 0x100f8495
xor eax, eax
ret
Function at 0x100f99f0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov ecx, dword [esp + 4]
push 2
lea eax, [esp + 8]
push 1
mov edx, dword [ecx + 0x198]
push eax
push edx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x100f9a0f
ret
cmp eax, 1
jne 0x100f9a1a
mov eax, 1
ret
cmp eax, 0xffffffff
jne 0x100f9a6c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2734
je 0x100f9a14
cmp eax, 0xb
je 0x100f9a14
cmp eax, 0x2733
je 0x100f9a14
cmp eax, 0x2746
je 0x100f9a69
cmp eax, 0x2745
je 0x100f9a69
cmp eax, 0x2742
je 0x100f9a69
cmp eax, 0x2744
je 0x100f9a69
cmp eax, 0x274a
je 0x100f9a69
cmp eax, 0x274c
je 0x100f9a69
cmp eax, 0x2749
jne 0x100f9a6c
xor eax, eax
ret
or eax, 0xffffffff
ret

Function at 0x100fe4c0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 0xc]
push eax
call fcn.100fe3f0
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push eax
push ecx
push edx
call fcn.1007c166
add esp, 0x10
ret