joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10002235
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x100120b4]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0x10]
mov dword [ebp - 0x24], 0x1c
call dword [sym.imp.ws2_32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x1000229c
push esi
mov esi, dword [sym.imp.ws2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x2736
jne 0x10002288
push str.Socket_closed
push str.java_net_SocketException
push edi
call sub.java.dll__JNU_ThrowByName_12
jmp 0x10002296
push str.getsockname_failed
call esi
push eax
push edi
call fcn.10002e31
or eax, 0xffffffff
pop esi
jmp 0x100022aa
movzx eax, word [ebp - 0x1e]
push eax
call dword [sym.imp.ws2_32.dll_ntohs]
movzx eax, ax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.1000c212
leave
ret 0xc

Function at 0x100022b9
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x100120b4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x14]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0x10]
mov dword [ebp - 0x24], 0x1c
call dword [sym.imp.ws2_32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x10002302
push str.Error_getting_socket_name
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
push eax
push esi
call fcn.10002e31
jmp 0x10002343
push ebx
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
push esi
call fcn.10002e31
mov ebx, eax
test ebx, ebx
je 0x10002342
mov eax, dword [esi]
push edi
push esi
call dword [eax + 0x7c]
mov ecx, dword [esi]
push str.Ljava_net_InetAddress_
push str.addr
push eax
push esi
call dword [ecx + 0x178]
test eax, eax
je 0x10002342
mov ecx, dword [esi]
push ebx
push eax
push edi
push esi
call dword [ecx + 0x1a0]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1000c212
leave
ret 0x10

Function at 0x1000263c
Capabilities:
Send data
Send data on socket

Disassembly:
push 1
push 1
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x18]
call dword [sym.imp.ws2_32.dll_send]
cmp eax, 0xffffffff
jne 0x1000266b
push str.send
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
push eax
push dword [esp + 0xc]
call fcn.10002e31
jmp 0x10002680
cmp eax, 0xfffffffe
jne 0x10002680
push 0
push str.java_io_InterruptedIOException
push dword [esp + 0xc]
call sub.java.dll__JNU_ThrowByName_12
ret 0x10

Function at 0x100027a3
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x100120b4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push pe_nt_image_headers32
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.ws2_32.dll_gethostname]
cmp eax, 0xffffffff
jne 0x100027e4
lea eax, [ebp - 0x104]
push str.localhost
push eax
call sub.msvcr100.dll_strcpy
pop ecx
pop ecx
lea eax, [ebp - 0x104]
push eax
push esi
call sub.java.dll__JNU_NewStringPlatform_8
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1000c212
leave
ret 8
Function at 0x10002e31
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x10002e40
pop dword [ebp - 0x10]
mov eax, 0x10002e40
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0x9bc39f7c
add dword [ebp - 0x20], 0xb28ea5cf
mov dword [ebp - 0x1c], 0x89bb8fe9
sub dword [ebp - 0x1c], 0x578843a4
mov dword [ebp - 0x18], 0xdaac1f71
sub dword [ebp - 0x18], 0x8e5fdb43
mov dword [ebp - 0x14], 0xf95d9ceb
add dword [ebp - 0x14], 0x6a26315
lea eax, [ebp - 0x20]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0x616064df
sub dword [ebp - 0x20], 0xecedfb89
mov dword [ebp - 0x1c], 0xe54f36de
sub dword [ebp - 0x1c], 0xa3e2d569
mov dword [ebp - 0x18], 0x6d753a63
add dword [ebp - 0x18], 0xf5fa3209
mov dword [ebp - 0x14], 0x36aacf10
add dword [ebp - 0x14], 0xc95530f0
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, 0x73212e1f
sub eax, 0x63205db7
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x349de
push 0
call eax
mov ecx, 0x81540ae6
add ecx, 0x7eac327e
mov ebx, eax
mov esi, 0xa33e67b
add esi, 0x5cd6b85
add esi, dword [ebp - 0x10]
mov edx, 0x6f070fa6
mov dword [ebp - 8], 0xb1ac1c48
mov edi, dword [esi]
xor dword [ebp - 4], eax
sub edi, edx
xor dword [ebp - 4], eax
mov dword [ebx], edi
mov dword [ebp - 0xc], 0x4bf65880
add ebx, 0xce3b8d50
add ebx, 0x31c472b4
add esi, 0xd2924f5c
add esi, 0x2d6db0a8
loop 0x10002f52
add eax, 0xc37188d6
add eax, 0x3c8f5f8d
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xdc35bed4
sub ecx, 0xcc35bed4
add ecx, dword [ebp - 0x10]
call ebx
leave
ret
Function at 0x10006614
Capabilities:
Check os version
Get hostname
Resolve dns

Disassembly:
push ebp
lea ebp, [esp - 0x124]
sub esp, 0x1a4
mov eax, dword [0x100120b4]
xor eax, ebp
mov dword [ebp + 0x120], eax
cmp byte [0x1001218f], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 0x12c]
mov dword [ebp - 0x7c], edi
jne 0x10006773
mov esi, 0x100121b8
push esi
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
cmp byte [0x1001218f], 0
jne 0x1000676c
lea eax, [ebp - 0x74]
push eax
mov dword [ebp - 0x74], 0x94
call dword [sym.imp.kernel32.dll_GetVersionExA]
cmp dword [ebp - 0x64], 1
mov byte [0x1001218e], 0
jne 0x10006698
cmp dword [ebp - 0x70], 4
jne 0x10006698
cmp dword [ebp - 0x6c], 0
je 0x10006691
cmp dword [ebp - 0x6c], 0xa
jne 0x10006698
mov byte [0x1001218e], 1
lea eax, [ebp - 0x80]
push eax
push 0x100121ac
push 0x2003
push 0xffff
push dword [ebp + 0x130]
mov dword [ebp - 0x80], 4
call fcn.10002e31
test eax, eax
jns 0x100066cb
mov dword [0x100121ac], 0xfff7
cmp byte [0x1001218e], 0
je 0x10006765
push 0xff
lea eax, [ebp + 0x20]
push eax
call dword [sym.imp.ws2_32.dll_gethostname]
cmp eax, 0xffffffff
jne 0x1000670a
push esi
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
push str.Unable_to_obtain_hostname
push str.java_net_SocketException
push edi
call sub.java.dll__JNU_ThrowByName_12
mov al, 1
jmp 0x100067f8
lea eax, [ebp + 0x20]
push eax
call dword [sym.imp.ws2_32.dll_gethostbyname]
test eax, eax
je 0x10006765
mov eax, dword [eax + 0xc]
mov edi, dword [eax]
mov dword [ebp - 0x78], eax
test edi, edi
je 0x10006765
mov esi, dword [0x100121d0]
push 8
call dword [sym.imp.msvcr100.dll_malloc]
mov ebx, eax
pop ecx
test ebx, ebx
je 0x100067af
push dword [edi]
call dword [sym.imp.ws2_32.dll_htonl]
add dword [ebp - 0x78], 4
mov dword [ebx], eax
mov eax, dword [0x100121d0]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x78]
mov edi, dword [eax]
mov esi, ebx
mov dword [0x100121d0], esi
test edi, edi
jne 0x1000672a
mov esi, 0x100121b8
mov byte [0x1001218f], 1
push esi
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov eax, dword [ebp + 0x138]
cmp eax, dword [0x100121ac]
jg 0x10006703
cmp byte [0x1001218e], 0
je 0x100067f6
cmp eax, 0x2ff8
jle 0x100067f6
mov ecx, dword [ebp + 0x134]
mov eax, 0x7f000000
mov edx, ecx
and edx, eax
cmp edx, eax
je 0x10006703
mov eax, dword [0x100121d0]
jmp 0x100067f2
test esi, esi
je 0x100067ca
mov edi, dword [esi + 4]
push esi
call dword [sym.imp.msvcr100.dll_free]
pop ecx
mov esi, edi
test edi, edi
jne 0x100067b3
mov dword [0x100121d0], esi
push 0x100121b8
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
push str.Native_heap_allocation_failed
push dword [ebp - 0x7c]
call sub.java.dll__JNU_ThrowOutOfMemoryError_8
jmp 0x10006703
cmp dword [eax], ecx
je 0x10006703
mov eax, dword [eax + 4]
test eax, eax
jne 0x100067e7
xor al, al
mov ecx, dword [ebp + 0x120]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000c212
add ebp, 0x124
leave
ret
Function at 0x1000687b
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
lea ebp, [esp - 0xb8]
sub esp, 0x134
mov eax, dword [0x100120b4]
xor eax, ebp
mov dword [ebp + 0xb4], eax
push esi
push 0x1c
pop eax
push eax
xor esi, esi
mov dword [ebp - 0x74], eax
lea eax, [ebp + 0x98]
push esi
push eax
mov byte [ebp - 0x6d], 0
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x78], esi
call sub.msvcr100.dll_memset
add esp, 0xc
call fcn.10002e31
test al, al
je 0x1000694e
lea ecx, [ebp - 0x7c]
push ecx
push esi
push esi
mov esi, dword [sym.imp.ws2_32.dll_select]
lea ecx, [ebp - 0x6c]
lea eax, [ebx + 1]
push ecx
push eax
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x6c], 1
call esi
test eax, eax
jle 0x1000694b
push edi
mov edi, dword [sym.imp.ws2_32.dll_recvfrom]
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp + 0x98]
push eax
push 2
push 1
lea eax, [ebp - 0x6e]
push eax
push ebx
call edi
cmp eax, 0xffffffff
jne 0x1000694a
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2746
jne 0x1000694a
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp + 0x98]
push eax
push 0
push 1
lea eax, [ebp - 0x6e]
push eax
push ebx
call edi
lea eax, [ebp - 0x7c]
push eax
push 0
push 0
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebx + 1]
push eax
mov byte [ebp - 0x6d], 1
call esi
test eax, eax
jg 0x100068f2
pop edi
mov al, byte [ebp - 0x6d]
mov ecx, dword [ebp + 0xb4]
xor ecx, ebp
pop esi
call fcn.1000c212
add ebp, 0xb8
leave
ret
Function at 0x10006ddb
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x100120b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push dword [0x100125a0]
mov edi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x24], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x17c]
push dword [0x100125ac]
mov ebx, eax
mov eax, dword [esi]
push edi
push esi
call dword [eax + 0x17c]
or dword [ebp - 0x2c], 0xffffffff
or dword [ebp - 0x28], 0xffffffff
mov edi, eax
call sym.net.dll__ipv6_available_0
mov dword [ebp - 0x30], eax
test ebx, ebx
jne 0x10006e4b
test edi, edi
jne 0x10006e62
push str.Socket_closed
push str.java_net_SocketException
push esi
call sub.java.dll__JNU_ThrowByName_12
jmp 0x10006f48
push dword [0x100121e0]
mov eax, dword [esi]
push ebx
push esi
call dword [eax + 0x190]
mov dword [ebp - 0x2c], eax
test edi, edi
je 0x10006e75
push dword [0x100121e0]
mov eax, dword [esi]
push edi
push esi
call dword [eax + 0x190]
mov dword [ebp - 0x28], eax
xor ebx, ebx
cmp dword [ebp - 0x24], ebx
jne 0x10006e8c
push str.address
push esi
call sub.java.dll__JNU_ThrowNullPointerException_8
jmp 0x10006f48
push dword [ebp - 0x24]
push esi
call fcn.1000ab66
mov eax, dword [esi]
pop ecx
pop ecx
push esi
call dword [eax + 0x390]
test al, al
jne 0x10006f48
push dword [ebp - 0x24]
push esi
call fcn.1000aba4
pop ecx
pop ecx
mov edi, eax
mov eax, dword [esi]
push esi
call dword [eax + 0x390]
test al, al
jne 0x10006f48
xor eax, eax
inc eax
cmp edi, 2
jne 0x10006edd
cmp dword [ebp - 0x30], ebx
jne 0x10006ee4
push str.Protocol_family_not_supported
jmp 0x10006e3b
cmp edi, eax
mov edi, dword [ebp - 0x2c]
je 0x10006ee7
mov edi, dword [ebp - 0x28]
cmp dword [0x10012208], ebx
je 0x10006f10
push ebx
push ebx
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x28]
push eax
push 4
lea eax, [ebp - 0x2c]
push eax
push 4
lea eax, [ebp - 0x30]
push eax
push 0x9800000c
push edi
call dword [sym.imp.ws2_32.dll_WSAIoctl]
push ebx
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0x14]
push dword [ebp - 0x24]
push esi
call fcn.10002e31
test eax, eax
jne 0x10006f48
push 0x1c
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.ws2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x10006f48
push str.connect
push esi
call fcn.1000afaa
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000c212
leave
ret 0x10
Function at 0x10008ba1
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x100120b4]
xor eax, ebp
mov dword [ebp - 4], eax
or dword [ebp - 0x2c], 0xffffffff
and dword [ebp - 0x28], 0
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
call sym.net.dll__ipv6_available_0
push edi
mov ebx, eax
call fcn.100065bc
pop ecx
mov dword [ebp - 0x24], eax
test ebx, ebx
je 0x10008be0
push edi
call fcn.100065e8
pop ecx
jmp 0x10008be3
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x24], 0
jge 0x10008c01
test eax, eax
jns 0x10008c01
push str.Socket_closed
push str.java_net_SocketException
push esi
call sub.java.dll__JNU_ThrowByName_12
xor eax, eax
jmp 0x10008c63
cmp dword [ebp + 0x10], 2
mov dword [ebp - 0x28], 0x10
je 0x10008c1a
cmp dword [ebp + 0x10], 0xffffffff
jne 0x10008c24
cmp dword [ebp - 0x24], 0xffffffff
jne 0x10008c2a
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], 0x1c
cmp dword [ebp - 0x24], 0xffffffff
je 0x10008bed
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.ws2_32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x10008c55
push str.Error_getting_socket_name
push str.java_net_SocketException
push esi
call fcn.1000affe
add esp, 0xc
jmp 0x10008bfd
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x20]
push eax
push esi
call fcn.10002e31
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000c212
leave
ret 0xc
Function at 0x1000939b
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push dword [0x10012588]
mov esi, dword [ebp + 8]
push dword [ebp + 0xc]
mov eax, dword [esi]
push esi
call dword [eax + 0x17c]
mov dword [ebp + 8], eax
test eax, eax
jne 0x100093d1
push str.null_fd_object
push str.java_net_SocketException
push esi
call sub.java.dll__JNU_ThrowByName_12
jmp 0x100094e6
xor eax, eax
cmp byte [ebp + 0x10], al
push ebx
mov ebx, dword [sym.imp.ws2_32.dll_socket]
sete al
push 0
inc eax
push eax
push 2
mov dword [ebp - 4], eax
call ebx
mov dword [ebp + 0x10], eax
cmp eax, 0xffffffff
jne 0x10009405
push str.create
push esi
call fcn.1000afaa
pop ecx
pop ecx
jmp 0x100094e5
push edi
mov edi, dword [sym.imp.kernel32.dll_SetHandleInformation]
push 0
push 1
push eax
call edi
push dword [ebp + 0x10]
mov eax, dword [esi]
push dword [0x10012218]
push dword [ebp + 8]
push esi
call dword [eax + 0x1b4]
call sym.net.dll__ipv6_available_0
test eax, eax
mov eax, dword [esi]
je 0x100094d2
push dword [0x1001257c]
push dword [ebp + 0xc]
push esi
call dword [eax + 0x17c]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x1000947c
mov eax, dword [esi]
push 0xffffffffffffffff
push dword [0x10012218]
push dword [ebp + 8]
push esi
call dword [eax + 0x1b4]
push dword [ebp + 0x10]
call fcn.10002e31
push str.null_fd1_object
push str.java_net_SocketException
push esi
call sub.java.dll__JNU_ThrowByName_12
jmp 0x100094e4
push 0
push dword [ebp - 4]
push 0x17
call ebx
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x100094b6
mov eax, dword [esi]
push ebx
push dword [0x10012218]
push dword [ebp + 8]
push esi
call dword [eax + 0x1b4]
push dword [ebp + 0x10]
call fcn.10002e31
push str.create
push esi
call fcn.1000afaa
pop ecx
pop ecx
jmp 0x100094e4
push 0
push 1
push ebx
call edi
mov eax, dword [esi]
push ebx
push dword [0x10012218]
push dword [ebp + 0xc]
push esi
call dword [eax + 0x1b4]
jmp 0x100094e4
push 0
push dword [0x1001257c]
push dword [ebp + 0xc]
push esi
call dword [eax + 0x1a0]
pop edi
pop ebx
pop esi
leave
ret 0xc
Function at 0x1000a553
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x100120b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x38], eax
xor eax, eax
push edi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], eax
call fcn.100091ff
push edi
mov ebx, eax
call fcn.1000922b
push 4
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x24]
push 0
push eax
call sub.msvcr100.dll_memset
add esp, 0x14
test ebx, ebx
jns 0x1000a5cd
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
jns 0x1000a5cd
push str.Socket_closed
push str.java_net_SocketException
push esi
call sub.java.dll__JNU_ThrowByName_12
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000c212
leave
ret 0x10
cmp dword [ebp + 0x10], 0xf
jne 0x1000a670
push 0x1c
pop eax
push eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x20]
push 0
push eax
call sub.msvcr100.dll_memset
add esp, 0xc
cmp ebx, 0xffffffff
jne 0x1000a5fa
push edi
call fcn.1000922b
pop ecx
mov ebx, eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.ws2_32.dll_getsockname]
test eax, eax
jns 0x1000a622
push str.Error_getting_socket_name
push str.java_net_SocketException
push esi
call fcn.1000affe
add esp, 0xc
jmp 0x1000a5b9
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x20]
push eax
push esi
call fcn.10002e31
mov edi, eax
test edi, edi
je 0x1000a5b9
push dword [ebp - 0x38]
mov eax, dword [esi]
push esi
call dword [eax + 0x7c]
mov ecx, dword [esi]
push str.Ljava_net_InetAddress_
push str.addr
push eax
push esi
call dword [ecx + 0x178]
test eax, eax
je 0x1000a5b9
mov ecx, dword [esi]
push edi
push eax
push dword [ebp - 0x38]
push esi
call dword [ecx + 0x1a0]
xor eax, eax
jmp 0x1000a5bc
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 0x10]
call sym.net.dll__NET_MapSocketOption_12
test eax, eax
je 0x1000a68e
push str.Invalid_option
jmp 0x1000a5ae
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x28], 4
cmp edi, 0x80
je 0x1000a6a4
and dword [ebp - 0x24], 0
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x30]
push dword [ebp - 0x34]
push ebx
call fcn.10002e31
test eax, eax
jns 0x1000a6ce
push str.getsockopt
push esi
call fcn.1000afaa
pop ecx
pop ecx
jmp 0x1000a5b9
cmp edi, 8
jg 0x1000a6e9
je 0x1000a709
dec edi
je 0x1000a709
dec edi
dec edi
je 0x1000a71a
dec edi
je 0x1000a709
push str.Option_not_supported_by_TwoStacksPlainSocketImpl
jmp 0x1000a5ae
cmp edi, 0x80
je 0x1000a722
cmp edi, 0x1000
jle 0x1000a6df
cmp edi, 0x1002
jle 0x1000a71a
cmp edi, 0x1003
jne 0x1000a6df
xor eax, eax
cmp dword [ebp - 0x24], eax
setne al
lea eax, [eax + eax - 1]
jmp 0x1000a5bc
mov eax, dword [ebp - 0x24]
jmp 0x1000a5bc
cmp word [ebp - 0x24], 0
je 0x1000a5b9
movzx eax, word [ebp - 0x22]
jmp 0x1000a5bc
Function at 0x401434
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x401443
pop dword [ebp - 0x50]
mov eax, 0xbba21855
add eax, 0x449dfbee
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0x10473b56
sub dword [ebp - 0x60], 0xc1f4f60b
mov dword [ebp - 0x5c], 0x943aea68
sub dword [ebp - 0x5c], 0x62079e23
mov dword [ebp - 0x58], 0x42e031d9
sub dword [ebp - 0x58], 0xf693edab
mov dword [ebp - 0x54], 0xacca9d26
add dword [ebp - 0x54], 0x533562da
lea eax, [ebp - 0x60]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0x106882de
add dword [ebp - 0x60], 0x6409e678
mov dword [ebp - 0x5c], 0x49e9c4da
sub dword [ebp - 0x5c], 0x87d6365
mov dword [ebp - 0x58], 0xd8238730
add dword [ebp - 0x58], 0x8b4be53c
mov dword [ebp - 0x54], 0xf9641205
sub dword [ebp - 0x54], 0xf9641205
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, 0x1c6c765
add eax, 0xfe79b99b
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x3a0ae
push 0
call eax
mov ecx, 0x4f02
mov ebx, eax
mov esi, 0xceada236
sub esi, 0xce66be36
add esi, dword [ebp - 0x50]
mov edx, 0x23150a71
add edx, 0xb8ff5ab0
add dword [ebp - 0x20], 0x7b1da563
mov edi, dword [esi]
xor dword [ebp - 0x28], 0x7b29f624
xor edi, edx
add dword [ebp - 0x28], ebx
mov dword [ebx], edi
add dword [ebp - 0x28], eax
add ebx, 4
add esi, 0x5ac70c6d
add esi, 0xa538f397
loop 0x40155a
add eax, 0x3044536f
add eax, 0xcfbcdb6c
xor ebx, ebx
add ebx, eax
add eax, 0x45e24ca1
add eax, 0xba1db364
mov ecx, 0x1e8839b5
add ecx, 0xe1b7c64b
add ecx, dword [ebp - 0x50]
call ebx
leave
ret

Function at 0x402c93
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x42a2f0]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x402d27
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x402ce4
cmp dword [ebp + 0x10], ebx
jne 0x402d1b
lea eax, [ebp - 0x210]
push ebx
push eax
push dword [ebp - 4]
call fcn.00401434
test eax, eax
jne 0x402cf6
lea eax, [ebp - 0x210]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402ccb
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.004065ec
cmp eax, ebx
je 0x402d2e
push ebx
push dword [0x42a2f0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402d27
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x42a2f0], ebx
jne 0x402d24
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x402d24
jmp 0x402d27
Function at 0x100024be
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x100024cd
pop dword [ebp - 8]
mov eax, 0x1825a242
sub eax, 0x8257d75
sub dword [ebp - 8], eax
mov dword [ebp - 0x18], 0xc3e6e76c
add dword [ebp - 0x18], 0x8a6b5ddf
mov dword [ebp - 0x14], 0x719de104
sub dword [ebp - 0x14], 0x3f6a94bf
mov dword [ebp - 0x10], 0xdf0cc64b
sub dword [ebp - 0x10], 0x92c0821d
mov dword [ebp - 0xc], 0xc29c3214
sub dword [ebp - 0xc], 0xc29c3214
lea eax, [ebp - 0x18]
push eax
mov eax, 0x62f446a5
add eax, 0xad0bf9a3
add eax, dword [ebp - 8]
call dword [eax]
mov dword [ebp - 0x18], 0xc8b42219
add dword [ebp - 0x18], 0xabbe473d
mov dword [ebp - 0x14], 0x876c03a4
add dword [ebp - 0x14], 0xba005dd1
mov dword [ebp - 0x10], 0x6093912e
sub dword [ebp - 0x10], 0xfd2424c2
mov dword [ebp - 0xc], 0xd490c943
add dword [ebp - 0xc], 0x2b6f36bd
lea ebx, [ebp - 0x18]
push ebx
push eax
mov eax, 0x4d358471
add eax, 0xc2cabc0b
add eax, dword [ebp - 8]
call dword [eax]
push 0x40
push 0x1000
push 0x3707f
push 0
call eax
mov ecx, 0xa1a81c64
add ecx, 0x5e582d86
xor ebx, ebx
add ebx, eax
mov esi, 0xc1f44aa
add esi, 0x3e15156
add esi, dword [ebp - 8]
mov edi, 0xa5ab61e2
add edi, 0x820eb20b
sub dword [ebp - 4], 0xd4c25feb
mov edx, dword [esi]
xor dword [ebp - 4], 0xc7dd3cbc
sub edx, edi
mov dword [ebx], edx
sub dword [ebp - 4], eax
add ebx, 0xeecc9b88
add ebx, 0x1133647c
add esi, 0x9acdcb4b
sub esi, 0x9acdcb47
loop 0x100025f1
add eax, 0xc7936e8d
sub eax, 0xc7925412
mov ebx, eax
add eax, 0xc992e386
add eax, 0x366d1c7f
mov ecx, 0x8115ebe9
add ecx, 0x8eea1417
add ecx, dword [ebp - 8]
clc
invalid
invalid
invalid
call ebx
leave
ret

Function at 0x100032c8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10007040]
jne 0x100032d2
repz ret
jmp fcn.100036ab
Function at 0x4012d0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push ebx
sub esp, 0x64
and esp, 0xfffffff0
call fcn.004017f0
call fcn.00401490
call sub.KERNEL32.dll_GetCommandLineA
lea edx, [ebp - 0x58]
mov ebx, eax
mov dword [esp], edx
call sub.KERNEL32.dll_GetStartupInfoA
sub esp, 4
test ebx, ebx
je 0x40133a
movzx eax, byte [ebx]
cmp al, 0x20
je 0x4013a2
cmp al, 9
je 0x4013a2
cmp al, 0x22
je 0x40138e
cmp al, 0x20
je 0x401380
cmp al, 9
je 0x401332
test al, al
je 0x401332
inc ebx
movzx eax, byte [ebx]
cmp al, 0x20
je 0x401380
cmp al, 9
je 0x401332
test al, al
jne 0x401322
cmp al, 0x20
je 0x401380
cmp al, 9
je 0x401380
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleHandleA
sub esp, 4
test byte [ebp - 0x2c], 1
je 0x401373
movzx edx, word [ebp - 0x28]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], edx
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00401290
mov ebx, dword [ebp - 4]
sub esp, 0x10
leave
ret
mov edx, 0xa
jmp 0x401353
inc ebx
movzx eax, byte [ebx]
cmp al, 0x20
je 0x401380
cmp al, 9
je 0x401380
jmp 0x40133a
inc ebx
movzx eax, byte [ebx]
cmp al, 0x22
je 0x40139c
test al, al
jne 0x40138e
jmp 0x401332
inc ebx
movzx eax, byte [ebx]
jmp 0x401332
inc ebx
movzx eax, byte [ebx]
cmp al, 0x20
je 0x4013a2
cmp al, 9
je 0x4013a2
jmp 0x401312