joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1009ffe0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
cmp dword [esi + 0xcc], 0
jg 0x100a0008
push 0x68c
push str.C:UsersAdminDesktopMEGA_2.5.4MEGA_2.5.4dsoundimgui_dockingimgui.h
push str.Size___0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
mov ecx, dword [esi + 0xcc]
mov edi, 4
mov eax, dword [esi + 0xd4]
lea esi, [ebp + 8]
mov eax, dword [eax + ecx*4 - 4]
not eax
movzx ecx, byte [esi]
lea esi, [esi + 1]
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x102a9f20]
sub edi, 1
jne 0x100a0022
mov ecx, dword [0x10459474]
not eax
pop edi
pop esi
cmp dword [ecx + 0x1bf0], eax
jne 0x100a0054
mov dword [ecx + 0x1bf4], eax
cmp dword [ecx + 0x1c2c], eax
jne 0x100a0063
mov byte [ecx + 0x1c30], 1
pop ebp
ret 4

Function at 0x100a0070
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1033bbac]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0xcc], 0
jg 0x100a00a5
push 0x68c
push str.C:UsersAdminDesktopMEGA_2.5.4MEGA_2.5.4dsoundimgui_dockingimgui.h
push str.Size___0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
mov ecx, dword [ebp + 8]
mov edi, 0x10
movss xmm0, dword [ecx]
subss xmm0, dword [esi + 0x18]
cvttss2si eax, xmm0
movss xmm0, dword [ecx + 4]
subss xmm0, dword [esi + 0x1c]
mov dword [ebp - 0x14], eax
cvttss2si eax, xmm0
movss xmm0, dword [ecx + 8]
subss xmm0, dword [esi + 0x18]
mov dword [ebp - 0x10], eax
cvttss2si eax, xmm0
movss xmm0, dword [ecx + 0xc]
subss xmm0, dword [esi + 0x1c]
mov ecx, dword [esi + 0xcc]
mov dword [ebp - 0xc], eax
cvttss2si eax, xmm0
mov dword [ebp - 8], eax
mov eax, dword [esi + 0xd4]
lea esi, [ebp - 0x14]
mov edx, dword [eax + ecx*4 - 4]
not edx
movzx eax, byte [esi]
lea esi, [esi + 1]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x102a9f20]
sub edi, 1
jne 0x100a0105
mov eax, dword [0x10459474]
not edx
pop edi
pop esi
cmp dword [eax + 0x1bf0], edx
jne 0x100a0136
mov dword [eax + 0x1bf4], edx
cmp dword [eax + 0x1c2c], edx
jne 0x100a0145
mov byte [eax + 0x1c30], 1
mov ecx, dword [ebp - 4]
mov eax, edx
xor ecx, ebp
call fcn.1022fc6a
mov esp, ebp
pop ebp
ret 4
Function at 0x100a4740
Capabilities:
Hash data with crc32

Disassembly:
mov eax, ecx
or ecx, 0xffffffff
push ebx
push esi
mov bl, byte [eax]
lea esi, [eax + 1]
test bl, bl
je 0x100a477d
push edi
or edi, 0xffffffff
cmp bl, 0x23
jne 0x100a4763
cmp byte [esi], bl
jne 0x100a4763
cmp byte [esi + 1], bl
cmove ecx, edi
movzx edx, cl
movzx eax, bl
mov bl, byte [esi]
xor edx, eax
shr ecx, 8
inc esi
xor ecx, dword [edx*4 + 0x102a9f20]
test bl, bl
jne 0x100a4754
pop edi
pop esi
not ecx
pop ebx
jmp fcn.100a46e0
Function at 0x100aa490
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1033bbac]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x10459474]
push ebx
push esi
push edi
mov esi, dword [eax + 0x1bbc]
add esi, 0xcc
mov dword [ebp - 8], ecx
cmp dword [esi], 0
jg 0x100aa4d4
push 0x68c
push str.C:UsersAdminDesktopMEGA_2.5.4MEGA_2.5.4dsoundimgui_dockingimgui.h
push str.Size___0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
mov ecx, dword [esi]
lea edx, [ebp - 8]
mov eax, dword [esi + 8]
mov edi, 4
mov ebx, dword [eax + ecx*4 - 4]
not ebx
movzx eax, byte [edx]
lea edx, [edx + 1]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x102a9f20]
sub edi, 1
jne 0x100aa4e7
mov edi, dword [esi + 4]
not ebx
mov ecx, dword [esi]
cmp ecx, edi
jne 0x100aa52e
inc ecx
test edi, edi
je 0x100aa51c
mov eax, edi
cdq
sub eax, edx
sar eax, 1
add eax, edi
jmp 0x100aa521
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.100b1ec0
mov ecx, dword [esi]
mov eax, dword [esi + 8]
pop edi
mov dword [eax + ecx*4], ebx
inc dword [esi]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.1022fc6a
mov esp, ebp
pop ebp
ret
Function at 0x100b07f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
cmp dword [edi + 0x2f08], 0
lea esi, [edi + 0x2f0c]
je 0x100b0872
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x100b082c
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.100b21d0
push dword [ebp + 8]
mov ecx, esi
mov dword [esi], 0
push ebx
call fcn.1009eaf0
mov edx, dword [esi]
mov ecx, 0x1045946d
push dword [edi + 0x2f08]
lea eax, [edx - 1]
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [edi + 0x2f14]
test eax, eax
push edx
cmovne ecx, eax
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp + 8]
mov ecx, esi
push ebx
call fcn.1009eaf0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100b9620
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x100b965a
mov eax, dword [0x10459474]
mov dword [esi + 4], 0
mov dword [esi], 0
test eax, eax
je 0x100b964d
dec dword [eax + 0x370]
push ecx
call edi
add esp, 4
mov dword [esi + 8], 0
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x100b968b
mov eax, dword [0x10459474]
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
test eax, eax
je 0x100b967e
dec dword [eax + 0x370]
push ecx
call edi
add esp, 4
mov dword [esi + 0x14], 0
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x100b96bc
mov eax, dword [0x10459474]
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
test eax, eax
je 0x100b96af
dec dword [eax + 0x370]
push ecx
call edi
add esp, 4
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x100b9709
mov eax, dword [0x10459474]
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
test eax, eax
je 0x100b96fc
dec dword [eax + 0x370]
push ecx
call edi
add esp, 4
mov dword [esi + 0x44], 0
mov ecx, dword [esi + 0x50]
test ecx, ecx
je 0x100b973a
mov eax, dword [0x10459474]
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], 0
test eax, eax
je 0x100b972d
dec dword [eax + 0x370]
push ecx
call edi
add esp, 4
mov dword [esi + 0x50], 0
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x100b976b
mov eax, dword [0x10459474]
mov dword [esi + 0x58], 0
mov dword [esi + 0x54], 0
test eax, eax
je 0x100b975e
dec dword [eax + 0x370]
push ecx
call edi
add esp, 4
mov dword [esi + 0x5c], 0
pop edi
lea ecx, [esi + 0x78]
pop esi
jmp fcn.100bc570
Function at 0x100df350
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1033bbac]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [0x10459494]
push 0x40
push 0x1000
push 0x1f4
push 0
push dword [0x1045945c]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0
push 0x3c
push 0x1033bf74
push eax
push dword [0x1045945c]
mov dword [0x104594a0], eax
call esi
cmp byte [0x10459458], 1
jne 0x100df3b1
mov byte [ebp - 8], 0x40
lea eax, [ebp - 8]
jmp 0x100df3c1
cmp byte [0x10459459], 1
jne 0x100df3d7
mov byte [ebp - 0xc], 0x50
lea eax, [ebp - 0xc]
push 0
push 1
push eax
mov eax, dword [0x104594a0]
add eax, 0x13
push eax
push dword [0x1045945c]
call esi
cmp byte [0x10458f3f], 1
jne 0x100df3e9
mov byte [ebp - 0x10], 0x40
lea eax, [ebp - 0x10]
jmp 0x100df3f9
cmp byte [0x1045945a], 1
jne 0x100df40f
mov byte [ebp - 0x14], 0x50
lea eax, [ebp - 0x14]
push 0
push 1
push eax
mov eax, dword [0x104594a0]
add eax, 0x13
push eax
push dword [0x1045945c]
call esi
mov ecx, dword [0x104594a0]
push 0
push 4
lea eax, [ecx + 0x5e]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ecx + 9]
push eax
push dword [0x1045945c]
call esi
push 0
push 7
push 0x104594a4
lea eax, [edi + 8]
push eax
push dword [0x1045945c]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push 0
push 7
push 0x104594a4
push dword [0x104594a0]
push dword [0x1045945c]
call esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1022fc6a
mov esp, ebp
pop ebp
ret

Function at 0x100e0960
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x1033bbac]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x234], ecx
push esi
push 2
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
jne 0x100e09a3
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1022fc6a
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x100e09fe
nop
push dword [ebp - 0x234]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x100e09ec
mov eax, dword [ebp - 0x21c]
cmp eax, esi
jbe 0x100e09ec
mov ebx, dword [ebp - 0x228]
mov esi, eax
lea eax, [ebp - 0x230]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x100e09c0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1022fc6a
mov esp, ebp
pop ebp
ret

Function at 0x100e5350
Capabilities:
Hash data using murmur3
Resolve function by parsing pe exports

Disassembly:
cmp byte [0x10455a88], 0
jne 0x100e535e
call fcn.100f9850
cmp byte [0x10455a91], 0
je 0x100e537c
push 0
push 0x40
push dword [esp + 0x10]
push dword [esp + 0x10]
call fcn.100f9be0
add esp, 0x10
ret
jmp fcn.100e3700
Function at 0x10104610
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
sub esp, 0x18
mov eax, dword [0x1033bbac]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
mov esi, dword [esp + 0x20]
test esi, esi
je 0x101046db
lea eax, [esp + 4]
push eax
push esi
push 2
call fcn.1011df80
add esp, 0xc
test eax, eax
jne 0x101046db
lea eax, [esp + 8]
push eax
push esi
push 0x17
call fcn.1011df80
add esp, 0xc
test eax, eax
jne 0x101046db
push ebx
push edi
mov edi, esi
xor ebx, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x10104664
sub edi, ecx
push edi
push 0x2e
push esi
call fcn.1011df50
add esp, 0xc
test eax, eax
je 0x10104698
sub eax, esi
push eax
push 0x2e
push esi
call fcn.1011df50
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x1010469a
inc ebx
mov ecx, esi
sub ecx, ebx
add edi, ecx
test ebx, ebx
cmovne esi, ebx
mov ebx, 0x1505
add edi, esi
cmp esi, edi
jae 0x101046c6
mov al, byte [esi]
push eax
call fcn.101127d0
movsx ecx, al
inc esi
mov eax, ebx
add esp, 4
shl eax, 5
add eax, ebx
xor ecx, eax
mov ebx, ecx
cmp esi, edi
jb 0x101046a8
pop edi
movzx eax, bl
pop ebx
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.1022fc6a
add esp, 0x18
ret
mov ecx, dword [esp + 0x18]
xor eax, eax
pop esi
xor ecx, esp
call fcn.1022fc6a
add esp, 0x18
ret

Function at 0x10105330
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [0x103380ec]
cmp eax, 0xffffffff
jne 0x10105372
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x10105358
xor eax, eax
test eax, eax
mov dword [0x103380ec], eax
setg al
ret
push eax
push 0
mov dword [0x103380ec], 1
call fcn.1010ea10
mov eax, dword [0x103380ec]
add esp, 8
test eax, eax
setg al
ret

Function at 0x10105380
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x2f0], 2
jne 0x101053d5
mov eax, dword [0x103380ec]
cmp eax, 0xffffffff
jne 0x101053cf
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x101053b5
xor eax, eax
test eax, eax
mov dword [0x103380ec], eax
setg al
ret
push eax
push 0
mov dword [0x103380ec], 1
call fcn.1010ea10
mov eax, dword [0x103380ec]
add esp, 8
test eax, eax
setg al
ret
mov al, 1
ret
Function at 0x1010ded0
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp dword [edi + 0x608], 0
je 0x1010df14
push esi
push 1
push edi
call fcn.101004f0
push dword [edi + 0x59c]
mov eax, dword [edi + 0x608]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
push edi
call eax
push 0
push edi
mov esi, eax
call fcn.101004f0
add esp, 0x24
mov eax, esi
pop esi
pop edi
ret
mov eax, dword [esp + 0xc]
cmp eax, 2
ja 0x1010df4d
push dword [edi + 0x598]
lea eax, [eax + eax*2]
push 1
add eax, 0x1023ea68
push 2
push eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
push dword [edi + 0x598]
push 1
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
add esp, 0x20
xor eax, eax
pop edi
ret

Function at 0x1010e540
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
sub esp, 0x8c
mov eax, dword [0x1033bbac]
xor eax, esp
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x98]
mov edx, dword [esp + 0x94]
push ebx
mov ebx, dword [esp + 0x94]
mov dword [esp + 8], eax
xor eax, eax
push ebp
mov ebp, dword [esp + 0xa8]
mov ecx, dword [ebx + 0x1c4]
cmp edx, ecx
push esi
sete al
mov esi, 0x1e4
push edi
lea eax, [eax*4 + 0x1c0]
mov eax, dword [eax + ebx]
mov dword [esp + 0x10], eax
mov eax, 0x1f4
cmove esi, eax
mov eax, dword [ebx + 0x2e8]
add esi, ebx
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x40], 3
je 0x1010e64e
xor eax, eax
cmp edx, ecx
sete al
lea eax, [eax*4 + 0x1d4]
cmp dword [eax + ebx], 0x1010e210
jne 0x1010e64e
cmp dword [esi], 0
je 0x1010e5d8
test edi, edi
je 0x1010e64e
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [esp + 0x20]
call fcn.10110f10
add esp, 0x14
cmp eax, 0xffffffff
je 0x1010e64e
test al, 1
je 0x1010e64e
mov ecx, dword [esi]
test ecx, ecx
jne 0x1010e62b
mov eax, dword [ebx]
mov eax, dword [eax + 0x8fc]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x103380d8]
mov edi, dword [esi + 4]
mov ecx, eax
add esp, 4
mov dword [esi], ecx
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
test ecx, ecx
je 0x1010e647
mov eax, dword [esi + 8]
push 0
push edi
add eax, ecx
push eax
push dword [esp + 0x1c]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x1010e64e
add dword [esi + 8], eax
jmp 0x1010e64e
mov dword [esi + 4], 0
push 0
push dword [esp + 0xb0]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1010e6b7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x1010e688
mov dword [ebp], 0
lea eax, [edi + 0x52]
jmp 0x1010e6bc
push 0x80
lea eax, [esp + 0x1c]
push eax
push esi
call fcn.100fc470
push eax
push str.Send_failure:__s
push dword [ebx]
call fcn.1010df60
mov eax, dword [ebx]
add esp, 0x18
mov dword [eax + 0xcec], esi
mov eax, 0x37
jmp 0x1010e6b9
xor eax, eax
mov dword [ebp], edi
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1022fc6a
add esp, 0x8c
ret
Function at 0x10110510
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push edi
push str.kernel32
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
jne 0x1011052a
pop edi
pop ebx
pop ecx
ret
push ebp
push esi
push str.LoadLibraryExA
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [esp + 0x18]
mov ebp, eax
push 0x10320b6c
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strpbrk
add esp, 8
test eax, eax
je 0x10110572
test ebp, ebp
je 0x10110563
push 8
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
test ebp, ebp
je 0x10110598
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10110598
push 0x800
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x1011064f
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x101105b5
sub ecx, ebx
lea eax, [edx + 1]
add eax, ecx
push eax
call dword [0x103380d8]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x10110645
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x10110645
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x101105e7
sub ecx, edx
mov eax, 0x5c
mov word [ecx + ebx], ax
mov ecx, ebx
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10110600
sub ecx, edx
sub ecx, esi
add ecx, ebx
nop dword [eax]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x10110610
test ebp, ebp
je 0x1011063c
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x103380dc]
add esp, 4
mov eax, edi
pop esi
pop ebp
pop edi
pop ebx
pop ecx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
push ebx
call dword [0x103380dc]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret
Function at 0x1011c4d0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration
Start tcp server

Disassembly:
sub esp, 0x34
mov eax, dword [0x1033bbac]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
mov ebx, dword [esp + 0x48]
push esi
mov esi, dword [sym.imp.WS2_32.dll_socket]
push edi
push 6
push 1
push 2
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x18], 1
call esi
mov edi, eax
cmp edi, 0xffffffff
je 0x1011c6b6
xorps xmm0, xmm0
mov eax, 2
push 0x7f000001
movlpd qword [esp + 0x20], xmm0
mov word [esp + 0x18], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 0x18], eax
xor eax, eax
push 4
mov word [esp + 0x1a], ax
lea eax, [esp + 0x10]
push eax
push 4
push 0xffff
push edi
mov dword [ebx + 4], 0xffffffff
mov dword [ebx], 0xffffffff
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x1011c6a4
push 0x10
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x1011c6a4
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x1011c6a4
push 1
push edi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x1011c6a4
push 0
push 1
push 2
call esi
mov dword [ebx], eax
cmp eax, 0xffffffff
je 0x1011c6a4
push 0x10
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x1011c6a4
push 0
push 0
push edi
call dword [sym.imp.WS2_32.dll_accept]
mov dword [ebx + 4], eax
cmp eax, 0xffffffff
je 0x1011c6a4
push ebx
push 0x102408bc
lea eax, [esp + 0x2c]
push 0xc
push eax
call fcn.101114a0
lea esi, [esp + 0x34]
add esp, 0x10
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x1011c602
push 0
sub esi, ecx
lea eax, [esp + 0x28]
push esi
push eax
push dword [ebx]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, esi
jne 0x1011c6a4
push 0
push 0xc
lea eax, [esp + 0x38]
push eax
push dword [ebx + 4]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, esi
jne 0x1011c6a4
lea ecx, [esp + 0x24]
lea edx, [esp + 0x30]
sub esi, 4
jb 0x1011c657
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x1011c65c
add ecx, 4
add edx, 4
sub esi, 4
jae 0x1011c646
cmp esi, 0xfffffffc
je 0x1011c689
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x1011c6a4
cmp esi, 0xfffffffd
je 0x1011c689
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x1011c6a4
cmp esi, 0xfffffffe
je 0x1011c689
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x1011c6a4
cmp esi, 0xffffffff
je 0x1011c689
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x1011c6a4
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.1022fc6a
add esp, 0x34
ret
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
push edi
call esi
push dword [ebx]
call esi
push dword [ebx + 4]
call esi
mov ecx, dword [esp + 0x3c]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1022fc6a
add esp, 0x34
ret
Function at 0x1011e960
Capabilities:
Resolve dns

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x1c]
push esi
xor esi, esi
mov dword [esp + 4], esi
mov dword [eax], esi
lea eax, [esp + 8]
push eax
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [esp + 0xc], eax
test eax, eax
jne 0x1011eb12
push ebx
mov ebx, dword [esp + 0xc]
push edi
test ebx, ebx
je 0x1011eafc
push ebp
mov eax, dword [ebx + 4]
cmp eax, 2
jne 0x1011e9af
lea ebp, [eax + 0xe]
jmp 0x1011e9bb
cmp eax, 0x17
jne 0x1011ea69
lea ebp, [eax + 5]
cmp dword [ebx + 0x18], 0
je 0x1011ea69
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x1011ea69
cmp eax, ebp
jb 0x1011ea69
push 0x20
call dword [0x103380d8]
mov edi, eax
add esp, 4
test edi, edi
je 0x1011eaf1
mov ecx, dword [ebx]
mov dword [edi], ecx
mov ecx, dword [ebx + 4]
mov dword [edi + 4], ecx
mov ecx, dword [ebx + 8]
mov dword [edi + 8], ecx
mov eax, dword [ebx + 0xc]
push ebp
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], ebp
mov dword [edi + 0x18], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x1c], 0
call dword [0x103380d8]
add esp, 4
mov dword [edi + 0x18], eax
test eax, eax
je 0x1011eae0
push ebp
push dword [ebx + 0x18]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x14]
add esp, 0xc
test eax, eax
je 0x1011ea55
push eax
call dword [0x103380e4]
add esp, 4
mov dword [edi + 0x14], eax
test eax, eax
je 0x1011eac6
mov eax, dword [esp + 0x10]
test esi, esi
cmove esi, edi
test eax, eax
je 0x1011ea65
mov dword [eax + 0x1c], edi
mov dword [esp + 0x10], edi
mov ebx, dword [ebx + 0x1c]
test ebx, ebx
jne 0x1011e9a2
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
pop ebp
test eax, eax
je 0x1011ea88
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test ebx, ebx
je 0x1011eaf8
test esi, esi
je 0x1011eab5
push dword [esi + 0x18]
call dword [0x103380dc]
push dword [esi + 0x14]
call dword [0x103380dc]
mov edi, dword [esi + 0x1c]
push esi
call dword [0x103380dc]
add esp, 0xc
mov esi, edi
test edi, edi
jne 0x1011ea90
mov eax, dword [esp + 0x28]
xor esi, esi
pop edi
mov dword [eax], esi
mov eax, ebx
pop ebx
pop esi
add esp, 0xc
ret
push dword [edi + 0x18]
mov ebx, 8
call dword [0x103380dc]
push edi
call dword [0x103380dc]
add esp, 8
jmp 0x1011ea78
push edi
mov ebx, 8
call dword [0x103380dc]
add esp, 4
jmp 0x1011ea78
mov ebx, 8
jmp 0x1011ea78
test esi, esi
jne 0x1011eb08
mov ebx, 0x2af9
push ebx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [esp + 0x28]
pop edi
mov dword [eax], esi
mov eax, ebx
pop ebx
pop esi
add esp, 0xc
ret