joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100891e0
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 0x10089208
push 0x68c
push str.C:Users_sDesktop_sydsoundimgui_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 + 0x10292de8]
sub edi, 1
jne 0x10089222
mov ecx, dword [0x103ee858]
not eax
pop edi
pop esi
cmp dword [ecx + 0x1bf0], eax
jne 0x10089254
mov dword [ecx + 0x1bf4], eax
cmp dword [ecx + 0x1c2c], eax
jne 0x10089263
mov byte [ecx + 0x1c30], 1
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x10320bc0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0xcc], 0
jg 0x100892a5
push 0x68c
push str.C:Users_sDesktop_sydsoundimgui_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 + 0x10292de8]
sub edi, 1
jne 0x10089305
mov eax, dword [0x103ee858]
not edx
pop edi
pop esi
cmp dword [eax + 0x1bf0], edx
jne 0x10089336
mov dword [eax + 0x1bf4], edx
cmp dword [eax + 0x1c2c], edx
jne 0x10089345
mov byte [eax + 0x1c30], 1
mov ecx, dword [ebp - 4]
mov eax, edx
xor ecx, ebp
call fcn.10219ec0
mov esp, ebp
pop ebp
ret 4
Function at 0x1008d770
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 0x1008d7ad
push edi
or edi, 0xffffffff
cmp bl, 0x23
jne 0x1008d793
cmp byte [esi], bl
jne 0x1008d793
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 + 0x10292de8]
test bl, bl
jne 0x1008d784
pop edi
pop esi
not ecx
pop ebx
jmp fcn.1008d710
Function at 0x10093560
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10320bc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x103ee858]
push ebx
push esi
push edi
mov esi, dword [eax + 0x1bbc]
add esi, 0xcc
mov dword [ebp - 8], ecx
cmp dword [esi], 0
jg 0x100935a4
push 0x68c
push str.C:Users_sDesktop_sydsoundimgui_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 + 0x10292de8]
sub edi, 1
jne 0x100935b7
mov edi, dword [esi + 4]
not ebx
mov ecx, dword [esi]
cmp ecx, edi
jne 0x100935fe
inc ecx
test edi, edi
je 0x100935ec
mov eax, edi
cdq
sub eax, edx
sar eax, 1
add eax, edi
jmp 0x100935f1
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.1009afd0
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.10219ec0
mov esp, ebp
pop ebp
ret
Function at 0x10099930
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 0x100999b2
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x1009996c
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.1009b2f0
push dword [ebp + 8]
mov ecx, esi
mov dword [esi], 0
push ebx
call fcn.10087d70
mov edx, dword [esi]
mov ecx, 0x103ee854
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.10087d70
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100a2980
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 0x100a29ba
mov eax, dword [0x103ee858]
mov dword [esi + 4], 0
mov dword [esi], 0
test eax, eax
je 0x100a29ad
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 0x100a29eb
mov eax, dword [0x103ee858]
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
test eax, eax
je 0x100a29de
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 0x100a2a1c
mov eax, dword [0x103ee858]
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
test eax, eax
je 0x100a2a0f
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 0x100a2a69
mov eax, dword [0x103ee858]
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
test eax, eax
je 0x100a2a5c
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 0x100a2a9a
mov eax, dword [0x103ee858]
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], 0
test eax, eax
je 0x100a2a8d
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 0x100a2acb
mov eax, dword [0x103ee858]
mov dword [esi + 0x58], 0
mov dword [esi + 0x54], 0
test eax, eax
je 0x100a2abe
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.100a58a0
Function at 0x100c7ee0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x460
mov eax, dword [0x10320bc0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
push esi
push edi
xor esi, esi
mov dword [ebp - 0x460], 0
push esi
push 2
call ebx
mov edi, eax
mov dword [ebp - 0x230], 0x22c
lea eax, [ebp - 0x230]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
lea eax, [ebp - 0x230]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x100c7fa9
nop dword [eax]
mov ecx, str.ProjectTitan.exe
lea eax, [ebp - 0x20c]
nop dword [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x100c7f76
test dx, dx
je 0x100c7f72
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x100c7f76
add eax, 4
add ecx, 4
test dx, dx
jne 0x100c7f50
xor eax, eax
jmp 0x100c7f7b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x100c7f97
mov eax, dword [ebp - 0x21c]
cmp eax, esi
jle 0x100c7f97
mov esi, eax
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x460], eax
lea eax, [ebp - 0x230]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x100c7f40
xor edi, edi
xor esi, esi
push edi
push 2
call ebx
mov ebx, eax
mov dword [ebp - 0x45c], 0x22c
lea eax, [ebp - 0x45c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
lea eax, [ebp - 0x45c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x100c8043
nop
mov eax, str.AndroidEmulatorEx.exe
lea ecx, [ebp - 0x438]
nop dword [eax + eax]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x100c8016
test dx, dx
je 0x100c8012
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x100c8016
add ecx, 4
add eax, 4
test dx, dx
jne 0x100c7ff0
xor eax, eax
jmp 0x100c801b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x100c8031
mov eax, dword [ebp - 0x448]
cmp eax, edi
jle 0x100c8031
mov esi, dword [ebp - 0x454]
mov edi, eax
lea eax, [ebp - 0x45c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x100c7fe0
mov eax, dword [ebp - 0x460]
test eax, eax
je 0x100c8053
cmp eax, 1
cmovne esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10219ec0
mov esp, ebp
pop ebp
ret
Function at 0x100c9030
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10320bc0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [0x103ee87c]
push 0x40
push 0x1000
push 0x1f4
push 0
push dword [0x103ee840]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0
push 0x3c
push 0x103e5c6c
push eax
push dword [0x103ee840]
mov dword [0x103ee888], eax
call esi
cmp byte [0x103ee6db], 1
jne 0x100c9091
mov byte [ebp - 8], 0x40
lea eax, [ebp - 8]
jmp 0x100c90a1
cmp byte [0x103ee7fd], 1
jne 0x100c90b7
mov byte [ebp - 0xc], 0x50
lea eax, [ebp - 0xc]
push 0
push 1
push eax
mov eax, dword [0x103ee888]
add eax, 0x13
push eax
push dword [0x103ee840]
call esi
cmp byte [0x103ee6da], 1
jne 0x100c90c9
mov byte [ebp - 0x10], 0x40
lea eax, [ebp - 0x10]
jmp 0x100c90d9
cmp byte [0x103ee7fc], 1
jne 0x100c90ef
mov byte [ebp - 0x14], 0x50
lea eax, [ebp - 0x14]
push 0
push 1
push eax
mov eax, dword [0x103ee888]
add eax, 0x13
push eax
push dword [0x103ee840]
call esi
mov ecx, dword [0x103ee888]
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 [0x103ee840]
call esi
push 0
push 7
push 0x103ee874
lea eax, [edi + 8]
push eax
push dword [0x103ee840]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push 0
push 7
push 0x103ee874
push dword [0x103ee888]
push dword [0x103ee840]
call esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10219ec0
mov esp, ebp
pop ebp
ret

Function at 0x100caa80
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x10320bc0]
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 0x100caac3
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10219ec0
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 0x100cab1e
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 0x100cab0c
mov eax, dword [ebp - 0x21c]
cmp eax, esi
jbe 0x100cab0c
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 0x100caae0
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.10219ec0
mov esp, ebp
pop ebp
ret

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

Disassembly:
cmp byte [0x103eaec4], 0
jne 0x100cf49e
call fcn.100e3af0
cmp byte [0x103eaecd], 0
je 0x100cf4bc
push 0
push 0x40
push dword [esp + 0x10]
push dword [esp + 0x10]
call fcn.100e3e80
add esp, 0x10
ret
jmp fcn.100cd840
Function at 0x100ee8b0
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
sub esp, 0x18
mov eax, dword [0x10320bc0]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
mov esi, dword [esp + 0x20]
test esi, esi
je 0x100ee97b
lea eax, [esp + 4]
push eax
push esi
push 2
call fcn.10108220
add esp, 0xc
test eax, eax
jne 0x100ee97b
lea eax, [esp + 8]
push eax
push esi
push 0x17
call fcn.10108220
add esp, 0xc
test eax, eax
jne 0x100ee97b
push ebx
push edi
mov edi, esi
xor ebx, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x100ee904
sub edi, ecx
push edi
push 0x2e
push esi
call fcn.101081f0
add esp, 0xc
test eax, eax
je 0x100ee938
sub eax, esi
push eax
push 0x2e
push esi
call fcn.101081f0
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x100ee93a
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 0x100ee966
mov al, byte [esi]
push eax
call fcn.100fca70
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 0x100ee948
pop edi
movzx eax, bl
pop ebx
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.10219ec0
add esp, 0x18
ret
mov ecx, dword [esp + 0x18]
xor eax, eax
pop esi
xor ecx, esp
call fcn.10219ec0
add esp, 0x18
ret

Function at 0x100ef5d0
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [0x1031d0ec]
cmp eax, 0xffffffff
jne 0x100ef612
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x100ef5f8
xor eax, eax
test eax, eax
mov dword [0x1031d0ec], eax
setg al
ret
push eax
push 0
mov dword [0x1031d0ec], 1
call fcn.100f8cb0
mov eax, dword [0x1031d0ec]
add esp, 8
test eax, eax
setg al
ret

Function at 0x100ef620
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x2f0], 2
jne 0x100ef675
mov eax, dword [0x1031d0ec]
cmp eax, 0xffffffff
jne 0x100ef66f
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x100ef655
xor eax, eax
test eax, eax
mov dword [0x1031d0ec], eax
setg al
ret
push eax
push 0
mov dword [0x1031d0ec], 1
call fcn.100f8cb0
mov eax, dword [0x1031d0ec]
add esp, 8
test eax, eax
setg al
ret
mov al, 1
ret
Function at 0x100f8170
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp dword [edi + 0x608], 0
je 0x100f81b4
push esi
push 1
push edi
call fcn.100ea790
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.100ea790
add esp, 0x24
mov eax, esi
pop esi
pop edi
ret
mov eax, dword [esp + 0xc]
cmp eax, 2
ja 0x100f81ed
push dword [edi + 0x598]
lea eax, [eax + eax*2]
push 1
add eax, 0x102279d8
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 0x100f87e0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
sub esp, 0x8c
mov eax, dword [0x10320bc0]
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 0x100f88ee
xor eax, eax
cmp edx, ecx
sete al
lea eax, [eax*4 + 0x1d4]
cmp dword [eax + ebx], 0x100f84b0
jne 0x100f88ee
cmp dword [esi], 0
je 0x100f8878
test edi, edi
je 0x100f88ee
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [esp + 0x20]
call fcn.100fb1b0
add esp, 0x14
cmp eax, 0xffffffff
je 0x100f88ee
test al, 1
je 0x100f88ee
mov ecx, dword [esi]
test ecx, ecx
jne 0x100f88cb
mov eax, dword [ebx]
mov eax, dword [eax + 0x8fc]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x1031d0d8]
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 0x100f88e7
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 0x100f88ee
add dword [esi + 8], eax
jmp 0x100f88ee
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 0x100f8957
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x100f8928
mov dword [ebp], 0
lea eax, [edi + 0x52]
jmp 0x100f895c
push 0x80
lea eax, [esp + 0x1c]
push eax
push esi
call fcn.100e6710
push eax
push str.Send_failure:__s
push dword [ebx]
call fcn.100f8200
mov eax, dword [ebx]
add esp, 0x18
mov dword [eax + 0xcec], esi
mov eax, 0x37
jmp 0x100f8959
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.10219ec0
add esp, 0x8c
ret
Function at 0x100fa7b0
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 0x100fa7ca
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 0x103075c0
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strpbrk
add esp, 8
test eax, eax
je 0x100fa812
test ebp, ebp
je 0x100fa803
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 0x100fa838
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100fa838
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 0x100fa8ef
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100fa855
sub ecx, ebx
lea eax, [edx + 1]
add eax, ecx
push eax
call dword [0x1031d0d8]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x100fa8e5
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x100fa8e5
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100fa887
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 0x100fa8a0
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 0x100fa8b0
test ebp, ebp
je 0x100fa8dc
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x1031d0dc]
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 [0x1031d0dc]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret
Function at 0x10106770
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 [0x10320bc0]
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 0x10106956
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 0x10106944
push 0x10
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x10106944
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 0x10106944
push 1
push edi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x10106944
push 0
push 1
push 2
call esi
mov dword [ebx], eax
cmp eax, 0xffffffff
je 0x10106944
push 0x10
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x10106944
push 0
push 0
push edi
call dword [sym.imp.WS2_32.dll_accept]
mov dword [ebx + 4], eax
cmp eax, 0xffffffff
je 0x10106944
push ebx
push 0x1022981c
lea eax, [esp + 0x2c]
push 0xc
push eax
call fcn.100fb740
lea esi, [esp + 0x34]
add esp, 0x10
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x101068a2
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 0x10106944
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 0x10106944
lea ecx, [esp + 0x24]
lea edx, [esp + 0x30]
sub esi, 4
jb 0x101068f7
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x101068fc
add ecx, 4
add edx, 4
sub esi, 4
jae 0x101068e6
cmp esi, 0xfffffffc
je 0x10106929
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x10106944
cmp esi, 0xfffffffd
je 0x10106929
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x10106944
cmp esi, 0xfffffffe
je 0x10106929
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x10106944
cmp esi, 0xffffffff
je 0x10106929
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x10106944
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.10219ec0
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.10219ec0
add esp, 0x34
ret