joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000e950
Capabilities:
Get local ipv4 addresses
Get socket information
Resolve dns
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x938
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
mov ecx, dword [ebp + 0x24]
push ecx
movzx edx, word [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.1000ecb0
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jge 0x1000e987
xor eax, eax
jmp 0x1000ead1
cmp dword [ebp + 0x18], 0
je 0x1000e9ec
mov dword [ebp - 0x818], 0x80
lea ecx, [ebp - 0x818]
push ecx
lea edx, [ebp - 0x898]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jge 0x1000e9bb
xor ecx, ecx
je 0x1000e9b9
jmp 0x1000e9b3
jmp 0x1000e9ec
push 0xa
push 0
push 0
mov edx, dword [ebp + 0x1c]
push edx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp - 0x818]
push ecx
lea edx, [ebp - 0x898]
push edx
call dword [sym.imp.WS2_32.dll_getnameinfo]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1000e9ec
xor eax, eax
je 0x1000e9ec
jmp 0x1000e9e6
push 0x9c
push 0
lea ecx, [ebp - 0x938]
push ecx
call fcn.10014780
add esp, 0xc
mov dword [ebp - 0x938], 0x9c
lea edx, [ebp - 0x938]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [ebp - 0x930]
push eax
mov ecx, dword [ebp - 0x934]
push ecx
movzx edx, word [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0x20]
push ecx
mov edx, dword [ebp + 0x10]
push edx
push str.GET__s_HTTP__s_r_nHost:__s:_d_r_nConnection:_Close_r_nUser_Agent:_Microsoft_Windows__u._u_UPnP_1.0_r_n_r_n
push 0x800
lea eax, [ebp - 0x810]
push eax
call fcn.100147fe
add esp, 0x24
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp - 0x10]
jge 0x1000eaab
push 0
mov edx, dword [ebp - 0x10]
sub edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0xc]
lea ecx, [ebp + eax - 0x810]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jge 0x1000eaa0
xor eax, eax
je 0x1000ea90
jmp 0x1000ea8a
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x1000ead1
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 4]
mov dword [ebp - 0xc], edx
jmp 0x1000ea5b
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.1000dd20
add esp, 8
mov dword [ebp - 0x814], eax
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [ebp - 0x814]
mov esp, ebp
pop ebp
ret
Function at 0x1000ec20
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0
mov eax, dword [ebp + 0x18]
add eax, dword [ebp + 0x10]
push eax
call fcn.10014580
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1000ec49
xor eax, eax
jmp 0x1000ecab
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.10014290
add esp, 0xc
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 4]
add eax, dword [ebp + 0x18]
push eax
call fcn.10014290
add esp, 0xc
push 0
mov ecx, dword [ebp + 0x18]
add ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jge 0x1000ec9a
xor ecx, ecx
je 0x1000ec9a
jmp 0x1000ec94
push 0
lea edx, [ebp - 4]
push edx
call fcn.100145b0
add esp, 8
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x1000eef0
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x118], 0
jmp 0x1000ef1e
mov eax, dword [ebp - 0x118]
add eax, 1
mov dword [ebp - 0x118], eax
mov ecx, dword [ebp - 0x118]
cmp ecx, dword [ebp - 0x108]
jae 0x1000ef42
mov edx, dword [ebp - 0x118]
mov eax, dword [ebp + edx*4 - 0x104]
cmp eax, dword [ebp + 8]
jne 0x1000ef40
jmp 0x1000ef42
jmp 0x1000ef0f
mov ecx, dword [ebp - 0x118]
cmp ecx, dword [ebp - 0x108]
jne 0x1000ef78
cmp dword [ebp - 0x108], 0x40
jae 0x1000ef78
mov edx, dword [ebp - 0x118]
mov eax, dword [ebp + 8]
mov dword [ebp + edx*4 - 0x104], eax
mov ecx, dword [ebp - 0x108]
add ecx, 1
mov dword [ebp - 0x108], ecx
xor edx, edx
jne 0x1000ef03
mov eax, dword [ebp + 0x14]
cdq
mov ecx, 0x3e8
idiv ecx
mov dword [ebp - 0x114], eax
mov eax, dword [ebp + 0x14]
cdq
mov ecx, 0x3e8
idiv ecx
imul edx, edx, 0x3e8
mov dword [ebp - 0x110], edx
lea edx, [ebp - 0x114]
push edx
push 0
push 0
lea eax, [ebp - 0x108]
push eax
push 0x40
call dword [sym.imp.WS2_32.dll_select]
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0
jge 0x1000efda
xor ecx, ecx
je 0x1000efd3
jmp 0x1000efcd
or eax, 0xffffffff
jmp 0x1000f016
cmp dword [ebp - 0x10c], 0
jne 0x1000efe7
xor eax, eax
jmp 0x1000f016
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0
jge 0x1000f010
xor edx, edx
je 0x1000f010
jmp 0x1000f00a
mov eax, dword [ebp - 0x10c]
mov esp, ebp
pop ebp
ret

Function at 0x100114b6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
xor eax, eax
test esi, esi
je 0x100114e1
mov edx, dword [ebp + 8]
push ebx
push edi
mov edi, dword [ebp + 0xc]
lea ecx, [edi + esi]
sub edx, edi
dec ecx
movzx edi, byte [edx + ecx]
movzx ebx, byte [ecx]
xor edi, ebx
or eax, edi
dec esi
jne 0x100114d0
pop edi
pop ebx
pop esi
pop ebp
ret
Function at 0x1001161d
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
cmp edi, 0x40
jbe 0x10011656
push str.cryptodigesthmac.c
push str.psAssert__s
call fcn.1001161c
push 0xb6
push str.:_d
call fcn.1001161c
push str.keyLen___64
call fcn.100114e4
add esp, 0x14
mov esi, dword [ebp + 8]
test edi, edi
je 0x10011672
mov ecx, dword [ebp + 0xc]
mov eax, esi
sub ecx, esi
mov edx, edi
mov bl, byte [ecx + eax]
xor bl, 0x36
mov byte [eax], bl
inc eax
dec edx
jne 0x10011666
cmp edi, 0x40
jae 0x1001168b
push 0x40
pop ecx
sub ecx, edi
push ecx
lea eax, [esi + edi]
push 0x36
push eax
call fcn.10014780
add esp, 0xc
lea ebx, [esi + 0x80]
push ebx
call fcn.10013207
push 0x40
push esi
push ebx
call fcn.1001326e
add esp, 0x10
test edi, edi
je 0x100116bc
mov ecx, dword [ebp + 0xc]
mov eax, esi
sub ecx, esi
mov edx, edi
mov bl, byte [eax + ecx]
xor bl, 0x5c
mov byte [eax], bl
inc eax
dec edx
jne 0x100116b0
cmp edi, 0x40
jge 0x100116d4
push 0x40
pop eax
sub eax, edi
push eax
add esi, edi
push 0x5c
push esi
call fcn.10014780
add esp, 0xc
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x100117b2
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x14], 0x30
push ebx
push esi
push edi
push 0x40
pop ebx
jne 0x100117c4
add ebx, 0x40
mov edi, dword [ebp + 0x10]
cmp edi, ebx
jbe 0x100117f6
push str.cryptodigesthmac.c
push str.psAssert__s
call fcn.1001161c
push 0x121
push str.:_d
call fcn.1001161c
push str.keyLen____uint32_padLen
call fcn.100114e4
add esp, 0x14
mov esi, dword [ebp + 8]
test edi, edi
je 0x10011815
mov ecx, dword [ebp + 0xc]
mov eax, esi
sub ecx, esi
mov dword [ebp + 0x10], edi
mov dl, byte [ecx + eax]
xor dl, 0x36
mov byte [eax], dl
inc eax
dec dword [ebp + 0x10]
jne 0x10011807
cmp edi, ebx
jge 0x1001182c
mov ecx, ebx
sub ecx, edi
push ecx
lea eax, [esi + edi]
push 0x36
push eax
call fcn.10014780
add esp, 0xc
cmp dword [ebp + 0x14], 0x30
lea eax, [esi + 0x80]
push eax
jne 0x1001184e
call fcn.100139e9
push ebx
lea eax, [esi + 0x80]
push esi
push eax
call fcn.10013a9a
jmp 0x10011861
call fcn.10013c99
push ebx
lea eax, [esi + 0x80]
push esi
push eax
call fcn.10013d15
add esp, 0x10
test edi, edi
je 0x10011880
mov ecx, dword [ebp + 0xc]
mov eax, esi
sub ecx, esi
mov dword [ebp + 0x14], edi
mov dl, byte [eax + ecx]
xor dl, 0x5c
mov byte [eax], dl
inc eax
dec dword [ebp + 0x14]
jne 0x10011872
cmp edi, ebx
jge 0x10011894
sub ebx, edi
push ebx
add esi, edi
push 0x5c
push esi
call fcn.10014780
add esp, 0xc
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x100128f2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
xor ebx, ebx
push esi
cmp dword [ebp + 0xc], ebx
je 0x100129aa
cmp dword [ebp + 0x10], ebx
je 0x100129aa
mov esi, dword [ebp + 8]
cmp esi, ebx
je 0x100129aa
test byte [ebp + 0x14], 7
jne 0x100129aa
mov eax, dword [esi]
cmp eax, ebx
jl 0x100129a6
cmp eax, 0x10
jg 0x100129a6
mov dword [ebp - 4], ebx
cmp dword [ebp + 0x14], ebx
jbe 0x10012995
push edi
xor edi, edi
cmp eax, ebx
jle 0x10012959
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x1c]
sub edx, ecx
lea ecx, [ebp + edi - 0x1c]
mov bl, byte [edx + ecx]
xor bl, byte [esi + edi + 4]
inc edi
mov byte [ecx], bl
cmp edi, eax
jl 0x10012945
xor ebx, ebx
lea eax, [esi + 0x14]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x1c]
push eax
call fcn.100128b9
add esp, 0xc
xor eax, eax
cmp dword [esi], ebx
jle 0x10012981
mov ecx, dword [ebp + 0x10]
mov cl, byte [eax + ecx]
mov byte [esi + eax + 4], cl
inc eax
cmp eax, dword [esi]
jl 0x10012972
mov eax, dword [esi]
add dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
add dword [ebp + 0x10], eax
add dword [ebp + 0xc], eax
cmp ecx, dword [ebp + 0x14]
jb 0x10012937
pop edi
push 0x18
pop ecx
lea eax, [ebp - 0x1c]
mov byte [eax], bl
inc eax
dec ecx
jne 0x1001299b
mov eax, dword [ebp + 0x14]
jmp 0x100129ad
push 0xfffffffffffffff7
jmp 0x100129ac
push 0xfffffffffffffffa
pop eax
pop esi
pop ebx
leave
ret

Function at 0x100129b1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
xor edi, edi
cmp ebx, edi
je 0x10012a84
cmp dword [ebp + 0xc], edi
je 0x10012a84
mov esi, dword [ebp + 8]
cmp esi, edi
je 0x10012a84
test byte [ebp + 0x14], 7
jne 0x10012a84
mov eax, dword [esi]
cmp eax, edi
jl 0x10012a80
cmp eax, 0x10
jg 0x10012a80
mov dword [ebp + 0x10], edi
cmp dword [ebp + 0x14], edi
jbe 0x10012a61
lea eax, [esi + 0x14]
push eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 0xc]
call fcn.100128d5
add esp, 0xc
xor eax, eax
cmp dword [esi], edi
jle 0x10012a3c
mov edi, dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
sub edi, ecx
lea ecx, [ebp + eax - 0x18]
mov dl, byte [edi + ecx]
mov byte [ecx], dl
mov cl, byte [esi + eax + 4]
xor cl, byte [ebp + eax - 0x30]
mov byte [eax + ebx], cl
inc eax
cmp eax, dword [esi]
jl 0x10012a21
xor edi, edi
xor eax, eax
cmp dword [esi], edi
jle 0x10012a4f
mov cl, byte [ebp + eax - 0x18]
mov byte [esi + eax + 4], cl
inc eax
cmp eax, dword [esi]
jl 0x10012a42
mov eax, dword [esi]
add dword [ebp + 0x10], eax
add dword [ebp + 0xc], eax
add ebx, eax
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp + 0x14]
jb 0x10012a00
push 0x18
pop ecx
lea eax, [ebp - 0x30]
mov byte [eax], 0
inc eax
dec ecx
jne 0x10012a67
push 0x18
pop ecx
lea eax, [ebp - 0x18]
mov byte [eax], 0
inc eax
dec ecx
jne 0x10012a74
mov eax, dword [ebp + 0x14]
jmp 0x10012a87
push 0xfffffffffffffff7
jmp 0x10012a86
push 0xfffffffffffffffa
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10013020
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
test esi, esi
jne 0x10013055
push str.cryptodigest_sha1.c
push str.psAssert__s
call fcn.1001161c
push 0x38
push str.:_d
call fcn.1001161c
push str.md___NULL
call fcn.100114e4
add esp, 0x14
push ebx
xor ecx, ecx
lea eax, [esi + 0x21]
push edi
movzx edx, byte [eax - 1]
movzx edi, byte [eax]
shl edx, 8
or edx, edi
movzx edi, byte [eax + 1]
shl edx, 8
or edx, edi
movzx edi, byte [eax + 2]
shl edx, 8
or edx, edi
mov dword [ebp + ecx*4 - 0x150], edx
inc ecx
add eax, 4
cmp ecx, 0x10
jb 0x1001305c
mov eax, dword [esi + 8]
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x18]
push 0x40
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], edx
lea eax, [ebp - 0x148]
pop edi
mov ebx, dword [eax + 0x2c]
xor ebx, dword [eax + 0x18]
xor ebx, dword [eax - 8]
xor ebx, dword [eax]
add eax, 4
dec edi
rol ebx, 1
mov dword [eax + 0x34], ebx
jne 0x100130ae
xor eax, eax
mov ebx, dword [ebp - 4]
mov edi, dword [ebp - 0xc]
xor ebx, ecx
and ebx, edx
mov edx, dword [ebp - 4]
xor ebx, edx
rol edi, 5
add edi, ebx
add edi, dword [ebp + eax*4 - 0x150]
mov ebx, dword [ebp - 8]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 0x10]
inc eax
mov dword [ebp - 8], edx
mov edx, dword [ebp - 0xc]
lea edi, [ebx + edi + 0x5a827999]
rol ecx, 0x1e
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], edi
cmp eax, 0x14
jb 0x100130c6
cmp eax, 0x28
jae 0x1001317f
mov ebx, dword [ebp - 4]
xor ebx, ecx
xor ebx, edx
rol edi, 5
add edi, ebx
add edi, dword [ebp + eax*4 - 0x150]
mov ebx, dword [ebp - 8]
lea edi, [ebx + edi + 0x6ed9eba1]
mov ebx, dword [ebp - 4]
rol edx, 0x1e
inc eax
mov dword [ebp - 4], ecx
mov ecx, edx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], edi
cmp eax, 0x28
jb 0x1001310b
jmp 0x1001317c
mov ebx, ecx
or ebx, edx
and ebx, dword [ebp - 4]
mov edx, ecx
and edx, dword [ebp - 0x10]
rol edi, 5
or ebx, edx
add ebx, dword [ebp + eax*4 - 0x150]
mov edx, dword [ebp - 4]
add ebx, dword [ebp - 8]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 0x10]
lea edi, [ebx + edi - 0x70e44324]
mov dword [ebp - 8], edx
mov edx, dword [ebp - 0xc]
inc eax
rol ecx, 0x1e
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], edx
cmp eax, 0x3c
jb 0x10013144
jmp 0x100131ba
mov ebx, dword [ebp - 4]
xor ebx, ecx
xor ebx, edx
add ebx, dword [ebp + eax*4 - 0x150]
mov edx, dword [ebp - 4]
add ebx, dword [ebp - 8]
rol edi, 5
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 8], edx
mov edx, dword [ebp - 0xc]
lea edi, [ebx + edi - 0x359d3e2a]
inc eax
rol ecx, 0x1e
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], edi
cmp eax, 0x50
jb 0x10013186
mov eax, dword [esi + 8]
add eax, edi
mov dword [esi + 8], eax
mov eax, dword [esi + 0xc]
add eax, edx
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x10]
add eax, ecx
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x14]
add eax, dword [ebp - 4]
pop edi
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x18]
add eax, dword [ebp - 8]
pop ebx
mov dword [esi + 0x18], eax
leave
ret
Function at 0x10013207
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x1001323d
push str.cryptodigest_sha1.c
push str.psAssert__s
call fcn.1001161c
push 0xa8
push str.:_d
call fcn.1001161c
push str.md___NULL
call fcn.100114e4
add esp, 0x14
and dword [esi + 0x1c], 0
and dword [esi], 0
and dword [esi + 4], 0
mov dword [esi + 8], 0x67452301
mov dword [esi + 0xc], 0xefcdab89
mov dword [esi + 0x10], 0x98badcfe
mov dword [esi + 0x14], 0x10325476
mov dword [esi + 0x18], 0xc3d2e1f0
pop esi
pop ebp
ret
Function at 0x100139e9
Capabilities:
Hash data using sha224

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x10013a1c
push str.cryptodigest_sha384.c
push str.psAssert__s
call fcn.1001161c
push 0x29
push str.:_d
call fcn.1001161c
push str.md___NULL
call fcn.100114e4
add esp, 0x14
and dword [esi + 0x48], 0
and dword [esi], 0
and dword [esi + 4], 0
mov dword [esi + 8], 0xc1059ed8
mov dword [esi + 0xc], 0xcbbb9d5d
mov dword [esi + 0x10], 0x367cd507
mov dword [esi + 0x14], 0x629a292a
mov dword [esi + 0x18], 0x3070dd17
mov dword [esi + 0x1c], 0x9159015a
mov dword [esi + 0x20], 0xf70e5939
mov dword [esi + 0x24], 0x152fecd8
mov dword [esi + 0x28], 0xffc00b31
mov dword [esi + 0x2c], 0x67332667
mov dword [esi + 0x30], 0x68581511
mov dword [esi + 0x34], 0x8eb44a87
mov dword [esi + 0x38], 0x64f98fa7
mov dword [esi + 0x3c], 0xdb0c2e0d
mov dword [esi + 0x40], 0xbefa4fa4
mov dword [esi + 0x44], 0x47b5481d
pop esi
pop ebp
ret

Function at 0x10013b39
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
push esi
push edi
lea esi, [ecx + 8]
push 8
pop ecx
lea edi, [ebp - 0x20]
mov dword [ebp - 0x24], esi
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
add eax, 2
movzx edx, byte [eax - 2]
movzx esi, byte [eax - 1]
shl edx, 8
or edx, esi
movzx esi, byte [eax]
shl edx, 8
or edx, esi
movzx esi, byte [eax + 1]
shl edx, 8
or edx, esi
mov dword [ebp + ecx*4 - 0x124], edx
inc ecx
add eax, 4
cmp ecx, 0x10
jl 0x10013b57
push 0x30
pop esi
lea eax, [ebp - 0xec]
push ebx
mov edx, dword [eax]
mov ecx, dword [eax - 0x34]
mov edi, edx
ror edi, 0x13
mov ebx, edx
shr edx, 0xa
ror ebx, 0x11
xor edi, ebx
xor edi, edx
mov edx, ecx
ror edx, 0x12
mov ebx, ecx
ror ebx, 7
xor edx, ebx
shr ecx, 3
xor edx, ecx
add edi, edx
add edi, dword [eax - 0x38]
add eax, 4
add edi, dword [eax - 0x18]
dec esi
mov dword [eax + 4], edi
jne 0x10013b8f
mov esi, dword [ebp - 0x10]
xor edx, edx
pop ebx
mov eax, esi
ror eax, 0x19
mov ecx, esi
ror ecx, 0xb
xor eax, ecx
mov ecx, esi
ror ecx, 6
xor eax, ecx
mov ecx, dword [ebp - 0xc]
xor ecx, dword [ebp - 8]
add edx, 4
and ecx, esi
xor ecx, dword [ebp - 8]
mov esi, dword [ebp - 0x20]
add eax, ecx
add eax, dword [edx + 0x1001f094]
mov edi, esi
add eax, dword [ebp + edx - 0x128]
mov ecx, esi
add eax, dword [ebp - 4]
add dword [ebp - 0x14], eax
ror edi, 0x16
ror ecx, 0xd
xor edi, ecx
mov ecx, esi
ror ecx, 2
xor edi, ecx
mov ecx, dword [ebp - 0x1c]
add edi, eax
mov eax, dword [ebp - 8]
or ecx, esi
and ecx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
and esi, dword [ebp - 0x20]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
or ecx, esi
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x1c]
add ecx, edi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], ecx
cmp edx, 0x100
jl 0x10013bcd
mov eax, dword [ebp - 0x24]
pop edi
xor ecx, ecx
pop esi
mov edx, dword [ebp + ecx*4 - 0x20]
add dword [eax], edx
inc ecx
add eax, 4
cmp ecx, 8
jl 0x10013c6d
leave
ret
Function at 0x10013c99
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x10013ccf
push str.cryptodigest_sha256.c
push str.psAssert__s
call fcn.1001161c
push 0xe1
push str.:_d
call fcn.1001161c
push str.md___NULL
call fcn.100114e4
add esp, 0x14
and dword [esi + 0x28], 0
and dword [esi], 0
and dword [esi + 4], 0
mov dword [esi + 8], 0x6a09e667
mov dword [esi + 0xc], 0xbb67ae85
mov dword [esi + 0x10], 0x3c6ef372
mov dword [esi + 0x14], 0xa54ff53a
mov dword [esi + 0x18], 0x510e527f
mov dword [esi + 0x1c], 0x9b05688c
mov dword [esi + 0x20], 0x1f83d9ab
mov dword [esi + 0x24], 0x5be0cd19
pop esi
pop ebp
ret
Function at 0x10015612
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x10028af8]
and dword [ebp - 4], 0
test eax, eax
jne 0x10015644
push 0x1830
push 0x10021c48
call fcn.10014620
pop ecx
pop ecx
mov dword [0x10028af8], eax
test eax, eax
jne 0x10015644
mov eax, 0x10028b00
leave
ret
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, 0x182f
mov ecx, ebx
cmp ebx, esi
jae 0x10015670
mov edx, ecx
and edx, 0x3f
mov dl, byte [edx + 0x100263a0]
xor dl, byte [eax + ecx]
je 0x1001566b
inc ecx
cmp ecx, esi
jb 0x10015654
jmp 0x10015670
sub ecx, ebx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
inc eax
push eax
call fcn.10014580
pop ecx
test eax, eax
jne 0x10015686
mov eax, 0x10028b00
jmp 0x100156b5
xor edx, edx
cmp dword [ebp - 4], edx
jbe 0x100156b5
mov esi, dword [0x10028af8]
push edi
mov edi, ebx
sub edi, eax
add esi, ebx
lea ecx, [eax + edx]
lea ebx, [edi + ecx]
and ebx, 0x3f
mov bl, byte [ebx + 0x100263a0]
xor bl, byte [esi + edx]
inc edx
mov byte [ecx], bl
cmp edx, dword [ebp - 4]
jb 0x1001569a
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100156ca
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push esi
mov dword [eax], ecx
mov dword [eax + 0x9c0], 1
push edi
mov edx, dword [eax + 0x9c0]
lea ecx, [eax + edx*4]
mov esi, dword [ecx - 4]
mov edi, esi
shr edi, 0x1e
xor edi, esi
imul edi, edi, 0x6c078965
add edi, edx
mov dword [ecx], edi
inc dword [eax + 0x9c0]
cmp dword [eax + 0x9c0], 0x270
jl 0x100156e1
pop edi
pop esi
pop ebp
ret

Function at 0x10015714
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x9c0], 0x270
jl 0x100157c6
push ebx
push esi
push edi
xor esi, esi
mov edi, bind
mov eax, dword [ecx + esi*4 + 4]
lea edx, [ecx + esi*4]
xor eax, dword [edx]
and eax, edi
xor eax, dword [edx]
mov ebx, eax
shr eax, 1
and ebx, 1
xor eax, dword [ebx*4 + 0x1002642c]
xor eax, dword [ecx + esi*4 + 0x634]
inc esi
mov dword [edx], eax
cmp esi, 0xe3
jl 0x10015734
jmp 0x10015788
mov eax, dword [ecx + esi*4 + 4]
lea edx, [ecx + esi*4]
xor eax, dword [edx]
and eax, edi
xor eax, dword [edx]
mov ebx, eax
shr eax, 1
and ebx, 1
xor eax, dword [ebx*4 + 0x1002642c]
xor eax, dword [ecx + esi*4 - 0x38c]
inc esi
mov dword [edx], eax
cmp esi, 0x26f
jl 0x10015763
mov eax, dword [ecx + 0x9bc]
xor eax, dword [ecx]
and eax, edi
xor eax, dword [ecx + 0x9bc]
pop edi
mov edx, eax
and edx, 1
mov edx, dword [edx*4 + 0x1002642c]
xor edx, dword [ecx + 0x630]
shr eax, 1
xor edx, eax
and dword [ecx + 0x9c0], 0
pop esi
mov dword [ecx + 0x9bc], edx
pop ebx
mov eax, dword [ecx + 0x9c0]
mov edx, dword [ecx + eax*4]
inc eax
mov dword [ecx + 0x9c0], eax
mov eax, edx
shr eax, 0xb
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
pop ebp
ret
Function at 0x100161eb
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
xor eax, eax
inc eax
push 6
push eax
push 2
mov dword [ebp - 4], eax
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10016212
or eax, 0xffffffff
jmp 0x100162a4
lea eax, [ebp - 4]
push eax
push 0x8004667e
push esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
je 0x1001622e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x1001628d
push 0x10
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.10014780
add esp, 0xc
push 2
pop eax
push dword [ebp + 0xc]
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
mov eax, dword [ebp + 8]
push 4
mov dword [ebp - 0x10], eax
lea eax, [ebp - 4]
push eax
push 4
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
push 0x10
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jne 0x1001628d
push 0x1f4
push esi
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
jns 0x100162a2
cmp esi, 0xffffffff
jbe 0x1001620a
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x1001620a
mov eax, esi
pop esi
leave
ret

Function at 0x100162a7
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
xor eax, eax
inc eax
push 6
push eax
push 2
mov dword [ebp - 8], eax
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x100162ca
or eax, eax
leave
ret
cmp dword [ebp + 0x10], 0
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
jne 0x100162f8
lea ecx, [ebp - 8]
push ecx
push 0x8004667e
push eax
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
je 0x100162f8
call edi
test esi, esi
je 0x100162f8
and dword [esi], 0
push 0x10
lea eax, [ebp - 0x18]
push 0
push eax
call fcn.10014780
add esp, 0xc
push 2
pop eax
push dword [ebp + 0xc]
mov word [ebp - 0x18], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x16], ax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
push 0x10
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x10016357
call edi
cmp eax, 0x2733
je 0x1001634d
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_closesocket]
push 0xfffffffffffffffe
pop eax
jmp 0x1001635a
test esi, esi
je 0x10016357
mov dword [esi], 1
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret