joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406e90
Capabilities:
Encode data using xor
Hash data with crc32
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 8
push esi
or esi, 0xffffffff
test eax, eax
je 0x407045
push ebx
push 0
push pe_nt_image_headers32
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.m_nicht_untersttzt._CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 8], ebx
je 0x407044
mov eax, dword [0x40b18c]
push ebp
push 0x1000
push 0
push eax
call dword [sym.imp.m_nicht_untersttzt._HeapAlloc]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x10], ebp
je 0x40703c
push edi
nop
push 0
lea ecx, [esp + 0x20]
push ecx
push 0x1000
push ebp
push ebx
call dword [sym.imp.m_nicht_untersttzt._ReadFile]
mov edx, dword [esp + 0x1c]
cmp edx, 8
mov eax, ebp
mov edi, edx
jb 0x406ffe
mov ebp, edx
shr ebp, 3
lea ebx, [ebx]
movzx ebx, byte [eax]
xor ebx, esi
and ebx, 0xff
add eax, 1
mov ecx, esi
shr ecx, 8
xor ecx, dword [ebx*4 + 0x4090f0]
movzx ebx, byte [eax]
xor ebx, ecx
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x4090f0]
movzx ebx, byte [eax + 1]
xor ebx, ecx
and ebx, 0xff
add eax, 1
shr ecx, 8
xor ecx, dword [ebx*4 + 0x4090f0]
movzx ebx, byte [eax + 1]
xor ebx, ecx
add eax, 1
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x4090f0]
movzx ebx, byte [eax + 1]
xor ebx, ecx
add eax, 1
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x4090f0]
movzx ebx, byte [eax + 1]
xor ebx, ecx
add eax, 1
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x4090f0]
movzx ebx, byte [eax + 1]
add eax, 1
xor ebx, ecx
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x4090f0]
movzx ebx, byte [eax + 1]
add eax, 1
xor ebx, ecx
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x4090f0]
add eax, 1
sub edi, 8
sub ebp, 1
mov esi, ecx
jne 0x406f20
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
test edi, edi
je 0x40701f
movzx ecx, byte [eax]
xor ecx, esi
and ecx, 0xff
shr esi, 8
xor esi, dword [ecx*4 + 0x4090f0]
add eax, 1
sub edi, 1
jne 0x407002
cmp edx, 0x1000
je 0x406ef0
mov edx, dword [0x40b18c]
push ebp
push 0
push edx
call dword [sym.imp.m_nicht_untersttzt._HeapFree]
pop edi
push ebx
call dword [sym.imp.m_nicht_untersttzt._CloseHandle]
pop ebp
pop ebx
mov eax, esi
not eax
pop esi
add esp, 8
ret 4

Function at 0x407050
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x100019c2
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100019fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 8], eax
call fcn.10010530
mov edx, 0x1002cfac
mov dword [esp + 0xc], eax
lea ecx, [esp + 8]
call fcn.10001712
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10001aa9
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x190
push 0x100374a0
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp eax, 1
jne 0x10001add
lea eax, [esp]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
push eax
push 0x100374a4
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov esp, ebp
pop ebp
ret

Function at 0x10001c91
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
push edi
push 0xffffffffffffffff
xor edi, edi
mov eax, dword [esi + 8]
mov dword [ebp - 8], eax
mov eax, dword [esi + 4]
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push edi
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push 0x10037468
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push edi
push dword [esi + 4]
test eax, eax
je 0x10001cdc
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x10001cf2
push fcn.10001e7c
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
push 0xffffffffffffffff
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10001cf8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
xor eax, eax
mov esi, ecx
push eax
push eax
push 1
push eax
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ebx, dword [ebp + 8]
mov edi, eax
mov dword [ebx + 4], edi
test edi, edi
jne 0x10001d52
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
mov ecx, ebx
push 1
mov esi, eax
call dword [edx]
mov dword [esp + 0x18], esi
call fcn.10010530
mov edx, str.thread.entry_event
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x18]
call fcn.10001712
mov esi, dword [esp + 0x10]
xor eax, eax
push eax
push eax
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 8], eax
mov dword [ebx + 8], eax
cmp dword [esi + 8], 0
jne 0x10001d9a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
mov ecx, ebx
push 1
mov esi, eax
call dword [edx]
mov dword [esp + 0x18], esi
call fcn.10010530
mov edx, str.thread.exit_event
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x18]
call fcn.10001712
mov esi, dword [esp + 0x10]
and dword [esp + 0x14], 0
lea eax, [esp + 0x14]
push eax
push 0
push ebx
push 0x10001e26
push dword [ebp + 0xc]
push 0
call fcn.10012dd9
add esp, 0x18
mov dword [esi + 4], eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x10001e0d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
mov ecx, ebx
push 1
mov dword [esp + 0x1c], eax
call dword [edx]
test edi, edi
je 0x10001ddf
push edi
call esi
mov eax, dword [esp + 0x10]
cmp dword [eax + 8], 0
je 0x10001dee
push dword [eax + 8]
call esi
mov eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
call fcn.10010530
mov edx, str.thread
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x18]
call fcn.10001712
test edi, edi
je 0x10001e1d
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x100029ee
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
push edi
mov eax, edx
xor edi, edi
mov dword [ebp - 8], eax
cmp ebx, 0xffffffff
je 0x10002ab3
cmp byte [ebp + 8], 0
je 0x10002a39
test byte [eax], 8
je 0x10002a39
xor eax, eax
mov dword [ebp - 4], eax
call fcn.10010530
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x10]
push eax
push ecx
lea eax, [ebp - 4]
push eax
push ecx
push ecx
mov ecx, ebx
call fcn.10002f50
add esp, 0x14
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov edx, esi
mov ecx, eax
call fcn.10009ea8
mov edi, eax
test edi, edi
je 0x10002ab3
call fcn.10010530
cmp dword [esi + 4], eax
jne 0x10002a69
cmp dword [esi], 0x2733
je 0x10002a7b
call fcn.10010530
cmp dword [esi + 4], eax
jne 0x10002aaf
cmp dword [esi], 0x4d5
jne 0x10002aaf
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x8004667e
push ebx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov eax, dword [ebp - 8]
push 0
and byte [eax], 0xfc
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov edx, esi
mov ecx, eax
call fcn.10009ea8
mov edi, eax
test edi, edi
jne 0x10002abe
call fcn.10010530
and dword [esi], 0
mov dword [esi + 4], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10002ac7
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov edi, ecx
mov esi, edx
cmp edi, 0xffffffff
jne 0x10002ae8
call fcn.10010530
mov esi, dword [ebp + 0xc]
mov dword [esi], 0x2719
jmp 0x10002b13
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push dword [ebp + 8]
push esi
push edi
call dword [sym.imp.WS2_32.dll_connect]
mov esi, dword [ebp + 0xc]
mov ecx, eax
mov edx, esi
call fcn.10009ea8
test eax, eax
jne 0x10002b16
call fcn.10010530
and dword [esi], 0
mov dword [esi + 4], eax
call fcn.10010530
lea edx, [ebp - 0xc]
mov dword [ebp - 0xc], 0x2734
mov ecx, esi
mov dword [ebp - 8], eax
call fcn.1000166f
test al, al
je 0x10002b50
call fcn.10010530
lea edx, [ebp - 0xc]
mov dword [ebp - 0xc], 0x2733
mov ecx, esi
mov dword [ebp - 8], eax
call fcn.1000166f
test al, al
jne 0x10002b8f
mov edx, esi
mov ecx, edi
call fcn.10003027
test eax, eax
js 0x10002b8f
and dword [ebp - 4], 0
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 4]
mov dword [ebp - 8], 4
push eax
push ecx
push ecx
mov ecx, edi
call fcn.10002fb4
add esp, 0x14
cmp eax, 0xffffffff
je 0x10002b8f
call fcn.10010530
mov ecx, dword [ebp - 4]
mov dword [esi], ecx
mov dword [esi + 4], eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10002b95
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x134
push ebx
push esi
push edi
mov edi, ecx
mov bl, dl
mov dword [esp + 0x18], edi
cmp edi, 0xffffffff
jne 0x10002bc7
call fcn.10010530
mov ecx, dword [ebp + 0x18]
mov dword [ecx], 0x2719
mov dword [ecx + 4], eax
jmp 0x10002d30
cmp byte [ebp + 0x14], 0
je 0x10002bdf
test bl, 0x10
je 0x10002bdf
call fcn.10010530
mov ecx, dword [ebp + 0x18]
and dword [ecx], 0
jmp 0x10002bbf
mov esi, dword [ebp + 0x18]
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
xor eax, eax
push eax
push eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x1c]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
call dword [sym.imp.WS2_32.dll_WSARecv]
mov edx, esi
mov ecx, eax
call fcn.10009ea8
cmp dword [esi], 0x40
mov dword [esp + 0x14], eax
jne 0x10002c2c
call fcn.10010530
mov dword [esi], 0x2746
jmp 0x10002c3f
cmp dword [esi], 0x4d2
jne 0x10002c46
call fcn.10010530
mov dword [esi], 0x274d
mov dword [esi + 4], eax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10002c4f
or eax, 0xffffffff
jmp 0x10002c66
call fcn.10010530
and dword [esi], 0
mov dword [esi + 4], eax
mov eax, dword [esp + 0x10]
test eax, eax
jg 0x10002d32
test bl, 0x10
je 0x10002c73
test eax, eax
je 0x10002d22
test bl, 1
jne 0x10002d30
call fcn.10010530
lea edx, [esp + 0x28]
mov dword [esp + 0x28], 0x2733
mov ecx, esi
mov dword [esp + 0x2c], eax
call fcn.1000166f
test al, al
je 0x10002cbc
call fcn.10010530
lea edx, [esp + 0x20]
mov dword [esp + 0x20], 0x4d5
mov ecx, esi
mov dword [esp + 0x24], eax
call fcn.1000166f
test al, al
jne 0x10002d30
xor eax, eax
mov dword [esp + 0x3c], edi
push eax
mov dword [esp + 0x3c], 1
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
call dword [sym.imp.WS2_32.dll_WSASetLastError]
xor eax, eax
push eax
push eax
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [edi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
mov edx, esi
mov ecx, eax
call fcn.10009ea8
mov edi, eax
test edi, edi
jne 0x10002d08
call fcn.10010530
and dword [esi], edi
mov dword [esi + 4], eax
jmp 0x10002d19
jle 0x10002d15
call fcn.10010530
and dword [esi], 0
mov dword [esi + 4], eax
test edi, edi
js 0x10002d30
mov edi, dword [esp + 0x18]
jmp 0x10002be2
call fcn.10001996
mov dword [esi], 2
mov dword [esi + 4], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10002db5
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
push ebx
push esi
push edi
mov edi, ecx
mov bl, dl
cmp edi, 0xffffffff
jne 0x10002de4
call fcn.10010530
mov ecx, dword [ebp + 0x18]
mov dword [ecx], 0x2719
mov dword [ecx + 4], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0x14], 0
je 0x10002dfc
test bl, 0x10
je 0x10002dfc
call fcn.10010530
mov ecx, dword [ebp + 0x18]
and dword [ecx], 0
jmp 0x10002dd8
mov esi, dword [ebp + 0x18]
mov edx, dword [ebp + 8]
push esi
push ecx
push dword [ebp + 0xc]
call fcn.10002d39
add esp, 0xc
test eax, eax
jns 0x10002ddd
and bl, 1
test bl, bl
jne 0x10002ddb
call fcn.10010530
lea edx, [ebp - 0x18]
mov dword [ebp - 0x18], 0x2733
mov ecx, esi
mov dword [ebp - 0x14], eax
call fcn.1000166f
test al, al
je 0x10002e54
call fcn.10010530
lea edx, [ebp - 0x10]
mov dword [ebp - 0x10], 0x4d5
mov ecx, esi
mov dword [ebp - 0xc], eax
call fcn.1000166f
test al, al
jne 0x10002ddb
xor eax, eax
mov dword [ebp - 0x128], edi
push eax
mov dword [ebp - 0x12c], 1
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
call dword [sym.imp.WS2_32.dll_WSASetLastError]
xor ecx, ecx
lea eax, [ebp - 0x12c]
push ecx
push ecx
push eax
push ecx
lea eax, [edi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
mov edx, esi
mov ecx, eax
call fcn.10009ea8
mov dword [ebp - 8], eax
test eax, eax
jne 0x10002ea6
call fcn.10010530
and dword [esi], 0
mov dword [esi + 4], eax
jmp 0x10002ebe
jle 0x10002eb6
call fcn.10010530
and dword [esi], 0
mov dword [esi + 4], eax
mov eax, dword [ebp - 8]
test eax, eax
js 0x10002ddb
mov edx, dword [ebp + 8]
push esi
push ecx
push dword [ebp + 0xc]
mov ecx, edi
call fcn.10002d39
add esp, 0xc
test eax, eax
js 0x10002e16
jmp 0x10002ddd

Function at 0x10003027
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
push edi
mov edi, ecx
mov esi, edx
cmp edi, 0xffffffff
jne 0x1000304d
call fcn.10010530
mov dword [esi + 4], eax
or eax, edi
mov dword [esi], 0x2719
jmp 0x100030a8
push ebx
xor eax, eax
mov dword [ebp - 0x204], edi
inc eax
mov dword [ebp - 0x100], edi
xor ebx, ebx
mov dword [ebp - 0x208], eax
push ebx
mov dword [ebp - 0x104], eax
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebx
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x208]
push eax
push ebx
lea eax, [edi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
mov edx, esi
mov ecx, eax
call fcn.10009ea8
mov edi, eax
test edi, edi
js 0x100030a5
call fcn.10010530
mov dword [esi], ebx
mov dword [esi + 4], eax
mov eax, edi
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1000369a
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi + 4]
add eax, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp byte [ebp + 0x18], 0
je 0x100036b9
push 0
push 0
jmp 0x10003722
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
cmp ecx, 0xffffffff
jne 0x100036cc
push 0
push 0x2719
jmp 0x10003722
mov eax, dword [ebp + 0x14]
and dword [ebp + 0x18], 0
push edi
push 0
push dword [ebp + 0x1c]
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0x18]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ecx
call dword [sym.imp.WS2_32.dll_WSARecv]
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
jne 0x10003705
mov eax, 0x2746
jmp 0x10003712
cmp eax, 0x4d2
mov ecx, 0x274d
cmove eax, ecx
test edi, edi
pop edi
je 0x1000372f
cmp eax, 0x3e5
je 0x1000372f
push dword [ebp + 0x18]
push eax
push dword [ebp + 0x1c]
mov ecx, dword [esi + 4]
call fcn.1000247d
jmp 0x1000373a
push dword [ebp + 0x1c]
mov ecx, dword [esi + 4]
call fcn.10002420
pop esi
pop ebp
ret 0x18

Function at 0x1000408a
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x100256f9
call fcn.10024e20
push ecx
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], edi
mov dword [edi], vtable.boost::detail::thread_data_base.0
mov dword [edi + 4], ebx
or dword [edi + 8], 0xffffffff
mov dword [ebp - 4], ebx
lea esi, [edi + 0x10]
mov dword [edi + 0xc], ebx
mov ecx, esi
mov dword [esi], ebx
mov dword [esi + 4], ebx
call fcn.10009c88
mov dword [esi], eax
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x20], ebx
mov dword [edi + 0x24], ebx
mov dword [edi + 0x28], ebx
mov dword [edi + 0x2c], ebx
mov dword [edi + 0x30], ebx
push ebx
push 1
mov byte [ebp - 4], 3
call fcn.10003fdc
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword [edi + 0x34], eax
mov eax, edi
mov byte [edi + 0x38], 1
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x10005457
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30c
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0xc], edx
push edi
mov dword [ebp - 8], ecx
lea edi, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x1000546e
sub esi, edi
xor eax, eax
mov byte [ebp + eax - 0x10c], al
inc eax
cmp eax, 0x100
jne 0x10005479
and dword [ebp - 4], 0
xor edi, edi
xor edx, edx
mov bl, byte [ebp + edi - 0x10c]
mov eax, edi
div esi
movsx eax, byte [edx + ecx]
add eax, dword [ebp - 4]
movzx ecx, bl
add ecx, eax
and ecx, 0xff
mov dword [ebp - 4], ecx
mov al, byte [ebp + ecx - 0x10c]
mov byte [ebp + edi - 0x10c], al
inc edi
mov byte [ebp + ecx - 0x10c], bl
mov ecx, dword [ebp - 8]
cmp edi, 0x100
jne 0x1000548e
and dword [ebp - 4], 0
xor edx, edx
mov esi, dword [ebp + 8]
xor edi, edi
test esi, esi
jle 0x100055a1
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x30c]
sub dword [ebp - 0xc], eax
inc edx
mov esi, 0xff
and edx, esi
mov dword [ebp - 8], edx
mov cl, byte [ebp + edx - 0x10c]
movzx eax, cl
add eax, dword [ebp - 4]
and eax, esi
mov dword [ebp - 4], eax
mov esi, dword [ebp - 4]
mov al, byte [ebp + eax - 0x10c]
mov byte [ebp + esi - 0x10c], cl
mov byte [ebp + edx - 0x10c], al
lea edx, [ebp - 0x30c]
movzx ecx, al
add edx, edi
mov eax, esi
movzx eax, byte [ebp + eax - 0x10c]
add ecx, eax
and ecx, 0x800000ff
jns 0x1000554c
dec ecx
or ecx, 0xffffff00
inc ecx
mov al, byte [ebp + ecx - 0x10c]
mov ecx, dword [ebp - 0xc]
mov esi, dword [ebp + 8]
xor al, byte [ecx + edx]
mov byte [edx], al
xor edx, edx
mov al, byte [ebp + edx - 0x30c]
mov cl, al
and al, 0xf
shr cl, 4
cmp cl, 0xa
jae 0x10005578
add cl, 0x30
jmp 0x1000557b
add cl, 0x57
mov byte [ebx + edx*2], cl
cmp al, 0xa
jae 0x10005586
add al, 0x30
jmp 0x10005588
add al, 0x57
mov byte [ebx + edx*2 + 1], al
inc edx
cmp edx, esi
jl 0x10005560
mov edx, dword [ebp - 8]
inc edi
mov byte [ebx + esi*2], 0
cmp edi, esi
jl 0x100054f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10005c4f
Capabilities:
Get common file path
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, 0x208
push edi
call fcn.100129cc
push edi
mov esi, eax
xor ebx, ebx
push ebx
mov edi, 0x100371d0
push edi
mov dword [esi], ebx
call fcn.10014510
add esp, 0x10
push ebx
push 0x23
push esi
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push str._ts.dat
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push ebx
push 0x20
push 3
push ebx
push ebx
push connect
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
call edi
mov esi, eax
push ebx
cmp esi, 0xffffffff
je 0x10005cd4
lea eax, [ebp - 4]
push eax
push 8
lea eax, [ebp - 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x100373f0
jmp 0x10005d1f
mov byte [0x100371cc], 1
call fcn.1001351c
pop ecx
push ebx
push 0x22
push 2
push ebx
push ebx
push 0x40000000
push 0x100371d0
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x10005d1a
push ebx
lea eax, [ebp - 4]
push eax
push 8
lea eax, [ebp - 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x100343a0
xor dl, dl
call fcn.100055a8
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
push 7
xor eax, eax
lea edi, [ebp - 0x24]
pop ecx
rep stosd dword es:[edi], eax
push 2
pop eax
mov word [ebp - 0x24], ax
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x20], ebx
mov word [ebp - 0x22], ax
mov eax, dword [ebp + 0xc]
mov esi, dword [eax]
cmp esi, 0xffffffff
jne 0x1000906e
call fcn.10010530
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0x2719
mov dword [ecx + 4], eax
mov edx, dword [ebp + 8]
xor eax, eax
push 7
pop ecx
mov edi, edx
rep stosd dword es:[edi], eax
push 2
pop eax
mov word [edx], ax
xor eax, eax
mov word [edx + 2], ax
mov eax, edx
mov dword [edx + 4], ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push ebx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x1c
push eax
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
mov esi, dword [ebp + 0x10]
mov ecx, eax
mov edi, dword [ebp + 0xc]
mov edx, esi
call fcn.10009ea8
test eax, eax
jne 0x10009048
call fcn.10010530
mov dword [esi], ebx
mov dword [esi + 4], eax
cmp edi, 0x80
jbe 0x100090c7
call fcn.10010530
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0x2726
mov dword [ebp - 4], eax
call fcn.100016ae
mov eax, dword [ebp + 8]
lea esi, [ebp - 0x24]
push 7
pop ecx
mov edi, eax
rep movsd dword es:[edi], dword [esi]
jmp 0x10009065
Function at 0x1000918f
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10025970
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x80
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [esp + 0x38]
push esi
push edi
xor esi, esi
mov ecx, ebx
mov dword [esp + 0x10], esi
push eax
mov dword [esp + 0x10], esi
call fcn.100098d7
mov edi, eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x94], esi
push eax
mov ecx, ebx
call fcn.100098ba
mov esi, eax
mov byte [esp + 0x94], 1
cmp dword [edi + 0x14], 0x10
jb 0x100091f3
mov edi, dword [edi]
cmp dword [esi + 0x14], 0x10
jb 0x100091fb
mov esi, dword [esi]
test esi, esi
je 0x10009204
cmp byte [esi], 0
jne 0x10009206
xor esi, esi
test edi, edi
je 0x1000920f
cmp byte [edi], 0
jne 0x10009211
xor edi, edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
lea eax, [esp + 0xc]
push eax
push ebx
push edi
push esi
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov edx, eax
lea ecx, [esp + 0x14]
call fcn.100031ba
mov edi, dword [ebp + 0x14]
push 0
push 1
mov ecx, dword [eax]
mov dword [edi], ecx
lea ecx, [esp + 0x24]
mov eax, dword [eax + 4]
mov dword [edi + 4], eax
call fcn.1000832b
push 0
push 1
lea ecx, [esp + 0x48]
call fcn.1000832b
mov esi, dword [esp + 0xc]
mov dword [esp + 0x14], esi
mov dword [esp + 0x94], 2
cmp dword [edi], 0
je 0x10009290
xor edi, edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
xor ebx, ebx
mov byte [esp + 0x94], 3
lea eax, [esp + 0x1c]
inc ebx
jmp 0x100092e6
lea eax, [esp + 0x70]
mov ecx, ebx
push eax
call fcn.100098d7
mov edi, eax
lea eax, [esp + 0x58]
mov dword [esp + 0x94], 4
push eax
mov ecx, ebx
mov dword [esp + 0x14], 2
call fcn.100098ba
mov dword [esp + 0x94], 5
lea ecx, [esp + 0x34]
mov edx, dword [esp + 0xc]
push edi
push eax
mov dword [esp + 0x18], 6
call fcn.100098f4
pop ecx
pop ecx
push 0xe
pop ebx
xor edi, edi
mov ecx, dword [ebp + 8]
push eax
call fcn.1000804d
or ebx, 0x10
test bl, 8
je 0x1000930b
mov ecx, dword [esp + 0x38]
and ebx, 0xfffffff7
mov dword [esp + 0x10], ebx
test ecx, ecx
je 0x1000930b
call fcn.1000143f
test bl, 4
je 0x1000931f
push edi
push 1
lea ecx, [esp + 0x60]
and ebx, 0xfffffffb
call fcn.1000832b
test bl, 2
je 0x10009333
push edi
push 1
lea ecx, [esp + 0x78]
and ebx, 0xfffffffd
call fcn.1000832b
mov dword [esp + 0x94], 2
test bl, 1
je 0x10009350
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x10009350
call fcn.1000143f
test esi, esi
je 0x1000935b
push esi
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov ecx, dword [esp + 0x8c]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10