joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41597b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 4], ecx
call fcn.0041ba7b
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x4159a8
xor eax, eax
jmp 0x415a4f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 8], eax
test eax, eax
je 0x4159a1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4159a1
movzx eax, word [esi + 6]
push ebx
push edi
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00403c2b
pop ecx
mov edi, eax
xor ecx, ecx
xor eax, eax
cmp cx, word [esi + 6]
jae 0x415a00
lea ecx, [esi + 8]
movzx edx, word [ecx]
mov dword [edi + eax*4], edx
movzx edx, word [esi + 6]
inc eax
add ecx, 2
cmp eax, edx
jl 0x4159ee
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 4]
push eax
push edi
call fcn.0041466f
push edi
mov ebx, eax
call fcn.00403c65
pop ecx
test ebx, ebx
je 0x415a42
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
push ecx
lea esi, [ecx + 7]
mov ecx, dword [ebp - 4]
push eax
lea edx, [eax + 7]
push esi
push edx
call fcn.00414c8e
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.00414d42
mov ebx, eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, ebx
pop ebx
pop esi
leave
ret 4

Function at 0x41a927
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x41a96f
call fcn.0041ba7b
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x41a96f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x41a9b2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x41a99b
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x41a99b
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x68], 0
je 0x41a9af
mov ecx, dword [esi + 0x68]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x41c962
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.0041ba7b
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41c99b
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.0041c5a4
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x41c9f9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x78], ebx
test ebx, 0xffff0000
jne 0x41ca1d
cmp dword [edi + 0x74], 0
jne 0x41ca1d
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.0041ba7b
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0041c9ba
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x43095f
Capabilities:
Query or enumerate registry value

Disassembly:
push 0
mov eax, 0x5229e0
call fcn.0050ade1
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00403890
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x4309c1
call fcn.0041b33e
cmp eax, 1
jne 0x4309c1
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.0041ed66
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00404eea
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00403440
mov dword [ebp + 8], SysReAllocString
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00403440
mov eax, esi
call fcn.0050aeb9
ret 0x10

Function at 0x4309ea
Capabilities:
Set registry value

Disassembly:
push 0
mov eax, 0x5229e0
call fcn.0050ade1
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00403890
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x430a4c
call fcn.0041b33e
cmp eax, 1
jne 0x430a4c
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.0041ed66
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00404eea
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00403440
mov dword [ebp + 8], SysReAllocString
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00403440
mov eax, esi
call fcn.0050aeb9
ret 0x14
Function at 0x430a78
Capabilities:
Delete registry key

Disassembly:
push 0
mov eax, 0x5229e0
call fcn.0050ade1
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00403890
mov esi, dword [ebp + 8]
and dword [ebp - 4], 0
cmp esi, 0x80000000
jne 0x430ada
call fcn.0041b33e
cmp eax, 1
jne 0x430ada
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.0041ed66
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00404eea
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.00403440
inc esi
mov ecx, dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
test ecx, ecx
je 0x430aec
call fcn.0041ec65
jmp 0x430af2
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00403440
mov eax, esi
call fcn.0050aeb9
ret 0xc
Function at 0x471571
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.004e9bc6
call fcn.0041b4ac
cmp dword [eax + 0x14], 0
jne 0x47158e
mov ecx, esi
pop esi
jmp fcn.00471076
pop esi
ret

Function at 0x474b5b
Capabilities:
Get common file path
Get file system object information

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.004da302
call fcn.0041b4ac
cmp dword [eax + 0x14], 0
jne 0x474b78
mov ecx, esi
pop esi
jmp fcn.0047452e
pop esi
ret

Function at 0x484357
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.00484016
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x4843a1
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0040fb74
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0040a39c
jmp 0x4843ac
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0041fd98
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x4843b2
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.00411ce6
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x4843ef
call fcn.00484016
mov dword [esi + 0xc], 1
jmp 0x4843f4
call fcn.00484016
cmp dword [esi], 0
je 0x48443d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
test eax, eax
jle 0x484415
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0040fb74
jmp 0x484427
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.00403590
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0040a39c
jmp 0x484461
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x484461
push dword [esi]
push dword [ebp + 8]
call fcn.0041fd98
pop esi
pop ebp
ret 0xc
Function at 0x487c76
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x487c90
call fcn.0041ba7b
mov esi, dword [eax + 0xc]
push dword [0x57ddf4]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x487cae
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x487ca6
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x487cdb
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x487ca8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.00487ba4
mov esi, eax
jmp 0x487ccd

Function at 0x4db483
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x4db49b
mov edi, dword [esi + 0xc]
jmp 0x4db4db
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4db4b4
call fcn.0041320a
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4db4c9
call fcn.0041320a
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4db4db
call fcn.0041320a
call fcn.0041ba7b
cmp dword [eax + 0x3c], 0
je 0x4db4f0
push edi
mov ecx, ebx
call fcn.004da2b6
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004db39d
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x4db50e
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4db51a
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x509d41
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x578b60]
jne 0x509d4b
repz ret
jmp fcn.00510b74
Function at 0x51caf6
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x578b60]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0051353d
and dword [ebp - 0x14], 0
cmp dword [0x58057c], 0
mov dword [ebp - 0x18], eax
jne 0x51cba9
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x51cc51
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x51cc51
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x556f84
push ebx
mov dword [0x58057c], eax
call edi
push eax
call esi
push 0x556f70
push ebx
mov dword [0x580580], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x580584], eax
call edi
push eax
call esi
mov dword [0x58058c], eax
test eax, eax
je 0x51cba9
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x580588], eax
mov eax, dword [0x580588]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x51cc02
cmp dword [0x58058c], ecx
je 0x51cc02
push eax
call esi
push dword [0x58058c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x51cc02
test ebx, ebx
je 0x51cc02
call edi
test eax, eax
je 0x51cbf9
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x51cbf9
test byte [ebp - 8], 1
jne 0x51cc02
or dword [ebp + 0x10], 0x200000
jmp 0x51cc35
mov eax, dword [0x580580]
cmp eax, dword [ebp - 0x18]
je 0x51cc35
push eax
call esi
test eax, eax
je 0x51cc35
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x51cc35
mov eax, dword [0x580584]
cmp eax, dword [ebp - 0x18]
je 0x51cc35
push eax
call esi
test eax, eax
je 0x51cc35
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x58057c]
call esi
test eax, eax
je 0x51cc51
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x51cc53
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00509d41
leave
ret
Function at 0x10018041
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0x10
call fcn.10038d18
add esp, 4
mov dword [ebp - 4], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
add ebx, 0xc
push ebx
push 0x10
call fcn.10038d18
add esp, 4
pop ebx
mov dword [ebx], eax
mov edi, eax
mov esi, 0x1003f233
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 8], esp
mov eax, 0x10
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push 0x10
call fcn.10038d18
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], eax
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
push ebx
mov ebx, dword [ebx]
add ebx, 8
mov ecx, 8
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop ebx
add ebx, 4
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.WS2_32.dll_getsockname]
nop
nop
cmp dword [ebp - 8], esp
je 0x10018123
push 0
push 0x40143b0
push 6
call fcn.10038d0c
add esp, 0xc
push eax
mov ebx, dword [ebp - 0x10]
push ebx
mov edi, dword [ebp - 0x14]
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
push ebx
push edi
push 1
mov eax, 2
call fcn.10039380
add esp, 4
pop edi
pop ebx
push ebx
push edi
mov edi, dword [edi]
mov ecx, dword [edi]
add edi, 4
test ecx, ecx
je 0x1001817a
mov eax, dword [edi]
add edi, 4
dec ecx
je 0x10018178
imul eax, dword [edi]
jmp 0x1001816d
mov ecx, eax
cmp ecx, 8
jle 0x10018184
mov ecx, 8
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop edi
pop ebx
add edi, 4
add ebx, 8
call fcn.10038d1e
add esp, 4
pop eax
mov ebx, dword [ebp - 4]
add ebx, 4
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], esp
mov ebx, dword [ebp - 8]
mov ax, word [ebx]
push eax
xor eax, eax
call dword [sym.imp.WS2_32.dll_ntohs]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x100181d2
push 0x3c
push 0x40143b0
push 6
call fcn.10038d0c
add esp, 0xc
cwde
jmp 0x100181d8
push eax
mov ebx, dword [ebp - 4]
push ebx
add ebx, 0xc
push ebx
mov ebx, dword [ebx]
push ebx
call fcn.10038d1e
add esp, 4
pop ebx
call fcn.10038d1e
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4
Function at 0x100181fc
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0x14
call fcn.10038d18
add esp, 4
mov dword [ebp - 4], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 5
rep stosd dword es:[edi], eax
add ebx, 0xc
push ebx
push 0x18
call fcn.10038d18
add esp, 4
pop ebx
mov dword [ebx], eax
mov edi, eax
mov esi, 0x1003f22b
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
xor eax, eax
mov ecx, 4
rep stosd dword es:[edi], eax
mov dword [ebp - 8], esp
mov eax, 0x1c
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push 0x1c
call fcn.10038d18
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], eax
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
push ebx
mov ebx, dword [ebx]
add ebx, 8
mov ecx, 0x10
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop ebx
add ebx, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.WS2_32.dll_getsockname]
nop
nop
cmp dword [ebp - 8], esp
je 0x100182dd
push 0
push 0x4021f48
push 6
call fcn.10038d0c
add esp, 0xc
push eax
mov ebx, dword [ebp - 0x10]
push ebx
mov edi, dword [ebp - 0x14]
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
push ebx
push edi
push 1
mov eax, 2
call fcn.10039380
add esp, 4
pop edi
pop ebx
push ebx
push edi
mov edi, dword [edi]
mov ecx, dword [edi]
add edi, 4
test ecx, ecx
je 0x10018334
mov eax, dword [edi]
add edi, 4
dec ecx
je 0x10018332
imul eax, dword [edi]
jmp 0x10018327
mov ecx, eax
cmp ecx, 0x10
jle 0x1001833e
mov ecx, 0x10
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop edi
pop ebx
add edi, 4
add ebx, 0x10
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
call fcn.10038d1e
add esp, 4
pop eax
mov ebx, dword [ebp - 4]
add ebx, 4
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], esp
mov ebx, dword [ebp - 8]
mov ax, word [ebx]
push eax
xor eax, eax
call dword [sym.imp.WS2_32.dll_ntohs]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x10018396
push 0x3c
push 0x4021f48
push 6
call fcn.10038d0c
add esp, 0xc
cwde
jmp 0x1001839c
push eax
mov ebx, dword [ebp - 4]
push ebx
add ebx, 0xc
push ebx
mov ebx, dword [ebx]
push ebx
call fcn.10038d1e
add esp, 4
pop ebx
call fcn.10038d1e
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4
Function at 0x100233a9
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
je 0x100233ce
mov word [ebp - 4], 0
jmp 0x100233d4
mov word [ebp - 4], 1
mov dword [ebp - 8], esp
mov eax, dword [ebp - 4]
cwde
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0x8004667e
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.WS2_32.dll_ioctlsocket]
nop
nop
cmp dword [ebp - 8], esp
je 0x10023410
push 0x9c
push 0x40143ab
push 6
call fcn.10038d0c
add esp, 0xc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x1002342c
mov eax, 1
jmp 0x10023436
mov eax, 0
jmp 0x10023436
mov esp, ebp
pop ebp
ret 8

Function at 0x1002343c
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 0
mov dword [ebp - 8], esp
push 0
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 0xc]
push eax
xor eax, eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyn]
nop
nop
cmp dword [ebp - 8], esp
je 0x10023482
push 0x3c
push 0x40143aa
push 6
call fcn.10038d0c
add esp, 0xc
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
push 4
push dword [ebp - 0xc]
push 0x1006
push 0xffff
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.WS2_32.dll_setsockopt]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x100234c3
push 0x3c
push 0x40143aa
push 6
call fcn.10038d0c
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
mov eax, 0
sete al
jmp 0x100234d7
mov esp, ebp
pop ebp
ret 8
Function at 0x100234dd
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push 8
call fcn.10038d18
add esp, 4
mov dword [ebp - 4], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
cmp dword [ebp + 0xc], 0
je 0x10023530
mov ebx, dword [ebp - 4]
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
mov word [ebx], 1
jmp 0x1002353e
mov ebx, dword [ebp - 4]
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
mov word [ebx], 0
mov ebx, dword [ebp - 4]
add ebx, 4
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
mov word [ebx], 0
mov dword [ebp - 0x10], esp
mov eax, dword [ebp - 4]
push eax
push 4
call fcn.10038d18
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], eax
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
xor eax, eax
call dword [sym.imp.KERNEL32.DLL_LocalSize]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x100235a9
push 0xcd
push 0x40143a3
push 6
call fcn.10038d0c
add esp, 0xc
push eax
mov ebx, dword [ebp - 0x14]
push ebx
mov edi, dword [ebp - 0x18]
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
call fcn.10038d1e
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], esp
push dword [ebp - 8]
mov eax, dword [ebp - 4]
push eax
push 4
call fcn.10038d18
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], eax
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
push 0x80
push 0xffff
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.WS2_32.dll_setsockopt]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x1002363d
push 0x101
push 0x40143a3
push 6
call fcn.10038d0c
add esp, 0xc
push eax
mov ebx, dword [ebp - 0x14]
push ebx
mov edi, dword [ebp - 0x18]
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
call fcn.10038d1e
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
mov eax, 0
sete al
jmp 0x10023678
push eax
mov ebx, dword [ebp - 4]
push ebx
call fcn.10038d1e
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 8

Function at 0x1002368c
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 0
mov dword [ebp - 8], esp
push 0
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 0xc]
push eax
xor eax, eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyn]
nop
nop
cmp dword [ebp - 8], esp
je 0x100236d2
push 0x3c
push 0x40143a6
push 6
call fcn.10038d0c
add esp, 0xc
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
push 1
push dword [ebp - 0xc]
push 0x20
push 0xffff
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.WS2_32.dll_setsockopt]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x10023713
push 0x3c
push 0x40143a6
push 6
call fcn.10038d0c
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
mov eax, 0
sete al
jmp 0x10023727
mov esp, ebp
pop ebp
ret 8