joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1018dc20
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
xor eax, eax
test esi, esi
je 0x1018dc69
push edi
mov edi, dword [esp + 0xc]
movzx edx, byte [edi]
lea edi, [edi + 1]
mov ecx, edx
shr edx, 4
xor ecx, eax
shr eax, 4
and ecx, 0xf
and eax, 0xfff
xor eax, dword [ecx*4 + 0x10251580]
xor edx, eax
shr eax, 4
and edx, 0xf
and eax, 0xfff
xor eax, dword [edx*4 + 0x10251580]
sub esi, 1
jne 0x1018dc30
pop edi
pop esi
ret 8

Function at 0x1018f2c0
Capabilities:
Identify system language via api

Disassembly:
sub esp, 0x18
mov eax, dword [0x10252964]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersion]
call esi
test eax, eax
jns 0x1018f372
call esi
cmp al, 4
jae 0x1018f372
push edi
push 0x14
lea eax, [esp + 0xc]
push eax
push 0x10044b20
push 0x1005d174
push 0x1005d180
call dword [sym.imp.KERNEL32.dll_GetProfileStringA]
xor esi, esi
mov edi, 0x102515c8
nop dword [eax]
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1018f315
sub eax, edx
push eax
lea eax, [esp + 0xc]
push eax
push edi
call fcn.101e7ee7
add esp, 0xc
test eax, eax
je 0x1018f355
inc esi
add edi, 8
cmp esi, 0x10
jb 0x1018f310
pop edi
mov dword [0x10264edc], 0x809
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.101c1860
add esp, 0x18
ret
mov eax, dword [esi*8 + 0x102515cc]
pop edi
mov dword [0x10264edc], eax
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.101c1860
add esp, 0x18
ret
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
cmp ecx, 4
jne 0x1018f3c3
shr eax, 0xa
mov ecx, eax
sub ecx, 3
je 0x1018f39c
sub ecx, 1
je 0x1018f3bc
sub ecx, 1
jne 0x1018f3a1
mov eax, 1
shl eax, 0xa
or eax, 4
mov dword [0x10264edc], eax
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.101c1860
add esp, 0x18
ret
mov eax, 2
jmp 0x1018f3a1
or ecx, 0x800
mov dword [0x10264edc], ecx
mov ecx, dword [esp + 0x18]
pop esi
xor ecx, esp
call fcn.101c1860
add esp, 0x18
ret
Function at 0x1018ffb0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x18
mov eax, dword [0x10252964]
xor eax, esp
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x24]
push ebx
push ebp
mov ebp, dword [esp + 0x28]
push esi
push edi
mov dword [esp + 0x10], eax
xor edi, edi
mov eax, dword [esp + 0x2c]
mov esi, 2
cmp eax, 0xa
ja case.0x1018ffde.3
jmp dword [eax*4 + 0x101900f4]
mov edi, 0x1005d244
jmp case.0x1018ffde.3
mov edi, 0x1005d27c
jmp 0x10190014
mov edi, 0x1005d27c
jmp case.0x1018ffde.3
mov edi, 0x1005d2b4
jmp case.0x1018ffde.3
mov edi, 0x1005d2e8
jmp 0x10190014
mov edi, 0x1005d31c
jmp 0x10190014
mov edi, 0x1005d358
mov esi, 3
mov eax, dword [esp + 0x38]
mov edx, 0x20119
mov dword [esp + 0x1c], eax
mov ecx, 0x20019
xor eax, eax
cmp esi, 2
sete al
add eax, reloc.WS2_32.dll_accept
cmp dword [0x10266930], 0
cmovne ecx, edx
lea edx, [esp + 0x18]
push edx
push ecx
push 0
push edi
push eax
mov dword [esp + 0x28], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, eax
test ebx, ebx
jne 0x10190086
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x14]
lea eax, [esp + 0x28]
push eax
push ebx
push ebp
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [esp + 0x18]
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x101900d6
cmp esi, 3
jne 0x101900d6
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x18]
push 0
push edi
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, eax
test ebx, ebx
jne 0x101900d6
mov eax, dword [esp + 0x38]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x14]
lea eax, [esp + 0x28]
push eax
push ebx
push ebp
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [esp + 0x18]
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x24]
xor eax, eax
pop edi
pop esi
test ebx, ebx
pop ebp
cmove eax, dword [esp + 0x10]
pop ebx
xor ecx, esp
call fcn.101c1860
add esp, 0x18
ret
Function at 0x10190180
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x44
mov eax, dword [0x10252964]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x58]
mov ebp, 0x19
xor esi, esi
nop dword [eax]
cmp esi, 6
jge 0x101902f1
push 0
push 0x24
push 0
push 0x3c
push dword [edi + 0x20]
call dword [sym.imp.KERNEL32.dll_LockFile]
mov ebx, eax
test ebx, ebx
jne 0x101901c9
push ebp
call dword [sym.imp.KERNEL32.dll_Sleep]
add ebp, ebp
inc esi
test ebx, ebx
je 0x101901a0
push 0x40
lea eax, [esp + 0x14]
mov dword [edi + 0x24], 1
push 0
push eax
call fcn.101d82a0
add esp, 0xc
lea eax, [esp + 0x2c]
push 0x24
push eax
push 0x3c
push edi
call fcn.101903c0
test eax, eax
je 0x10190298
lea ecx, [esp + 0x30]
xor edx, edx
lea esi, [edi + 0x74]
mov ebx, ecx
lea eax, [esi + 0x1f]
cmp ebx, eax
ja 0x10190230
lea eax, [esp + 0x4f]
cmp eax, esi
jb 0x10190230
mov al, byte [esi + edx]
lea ecx, [ecx + 1]
add byte [ecx - 1], al
inc edx
cmp edx, 0x20
jl 0x10190217
jmp 0x1019024a
movups xmm0, xmmword [ecx]
lea ecx, [ecx + 0x10]
movups xmm1, xmmword [esi + edx]
add edx, 0x10
paddb xmm1, xmm0
movups xmmword [ecx - 0x10], xmm1
cmp edx, 0x20
jl 0x10190230
mov eax, dword [esp + 0x2e]
lea edx, [esp + 0x30]
add eax, dword [esp + 0x2c]
mov esi, 0x20
movzx eax, ax
nop
xor byte [edx], al
lea edx, [edx + 1]
mov cx, ax
add eax, eax
shr cx, 0xf
add cx, ax
movzx eax, cx
mov cx, ax
add eax, eax
shr cx, 0xf
add cx, ax
movzx eax, cx
sub esi, 1
jne 0x10190260
cmp dword [esp + 0x4c], esi
je 0x101902b8
mov dword [0x102516d4], 0x65
cmp dword [edi + 0x24], 0
je 0x101902fb
push 0
push 0x24
push 0
push 0x3c
push dword [edi + 0x20]
call dword [sym.imp.KERNEL32.dll_UnlockFile]
mov dword [edi + 0x24], 0
jmp 0x101902fb
movzx eax, word [esp + 0x32]
mov dword [edi + 0x40], eax
movzx eax, word [esp + 0x34]
mov dword [edi + 0x44], eax
mov al, byte [esp + 0x36]
mov byte [edi + 0x50], al
movzx eax, word [esp + 0x30]
mov dword [edi + 4], eax
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.101c1860
add esp, 0x44
ret 4
mov dword [0x102516d4], 0x64
mov ecx, dword [esp + 0x50]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.101c1860
add esp, 0x44
ret 4

Function at 0x10190320
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [esp + 0x10]
push esi
push ebx
push dword [esp + 0x1c]
push edi
call fcn.101903c0
test eax, eax
je 0x101903a9
xor edx, edx
mov ecx, ebx
test esi, esi
je 0x10190398
mov eax, edx
lea ecx, [ecx + 1]
and eax, 0x1f
inc edx
mov al, byte [eax + edi + 0x74]
add byte [ecx - 1], al
cmp edx, esi
jb 0x10190347
mov ecx, dword [edi + 0x30]
mov edx, ebx
mov eax, ecx
mov edi, esi
shr eax, 0x10
add eax, ecx
movzx eax, ax
nop dword [eax]
xor byte [edx], al
lea edx, [edx + 1]
mov cx, ax
add eax, eax
shr cx, 0xf
add cx, ax
movzx eax, cx
mov cx, ax
add eax, eax
shr cx, 0xf
add cx, ax
movzx eax, cx
sub edi, 1
jne 0x10190370
cmp dword [ebx + esi - 4], 0
je 0x101903b1
mov dword [0x102516d4], 0x65
pop edi
pop esi
xor eax, eax
pop ebx
ret 0x10
pop edi
pop esi
mov eax, 1
pop ebx
ret 0x10
Function at 0x101903c0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
mov eax, dword [0x10252964]
xor eax, esp
mov dword [esp + 4], eax
push ebx
mov ebx, dword [esp + 0x18]
push edi
mov edi, dword [esp + 0x14]
push 0
push 0
push dword [esp + 0x20]
push dword [edi + 0x20]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
jne 0x1019040a
pop edi
mov dword [0x102516d4], 0x65
pop ebx
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.101c1860
add esp, 8
ret 0x10
push esi
mov esi, dword [esp + 0x24]
lea eax, [esp + 0xc]
push 0
push eax
push esi
push ebx
push dword [edi + 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10190444
cmp dword [esp + 0xc], esi
jne 0x10190444
pop esi
pop edi
mov eax, 1
pop ebx
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.101c1860
add esp, 8
ret 0x10
mov ecx, dword [esp + 0x10]
xor eax, eax
pop esi
pop edi
pop ebx
xor ecx, esp
mov dword [0x102516d4], 0x62
call fcn.101c1860
add esp, 8
ret 0x10

Function at 0x10190470
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
sub esp, 8
mov eax, dword [0x10252964]
xor eax, esp
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x10]
push ebx
push esi
mov esi, dword [esp + 0x14]
lea ebx, [ecx + 0x14]
lea edx, [ecx + 0x18]
push edi
mov edi, 0x18
movzx eax, word [esi + 0x40]
mov word [ebx], ax
movzx eax, word [esi + 0x44]
mov word [ecx + 0x16], ax
movzx eax, word [esi + 0x54]
mov word [edx], ax
movzx eax, word [esi + 0x44]
add ax, word [esi + 0x40]
movzx eax, ax
xor byte [edx], al
lea edx, [edx + 1]
mov cx, ax
add eax, eax
shr cx, 0xf
add cx, ax
movzx eax, cx
mov cx, ax
add eax, eax
shr cx, 0xf
add cx, ax
movzx eax, cx
sub edi, 1
jne 0x101904b5
mov eax, dword [esi + 0x60]
push 0x1c
push ebx
add eax, 0x14
push eax
push esi
call fcn.10191cd0
test eax, eax
je 0x1019052c
mov al, 0xfa
cmp dword [esi + 0x6c], edi
jne 0x101904fb
mov al, byte [esi + 0x50]
push 1
mov byte [esp + 0x13], al
lea eax, [esp + 0x13]
push eax
push dword [esi + 0x5c]
push esi
call fcn.10191cd0
test eax, eax
je 0x1019052c
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.101c1860
add esp, 8
ret 8
mov ecx, dword [esp + 0x10]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.101c1860
add esp, 8
ret 8
Function at 0x10190550
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x40
mov eax, dword [0x10252964]
xor eax, esp
mov dword [esp + 0x3c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x54]
lea eax, [esp + 0xb]
push esi
mov esi, dword [esp + 0x50]
push edi
push 1
push eax
push dword [esi + 0x5c]
push esi
call fcn.101903c0
test eax, eax
je 0x10190720
cmp byte [esp + 0x13], 0xfa
ja 0x10190716
push 0x38
xor edi, edi
lea eax, [esp + 0x18]
push edi
push eax
call fcn.101d82a0
add esp, 0xc
lea eax, [esp + 0x28]
push 0x1d
push eax
mov eax, dword [esi + 0x60]
add eax, 0x14
push eax
push esi
call fcn.101903c0
test eax, eax
je 0x10190720
mov eax, dword [esp + 0x2a]
lea edx, [esp + 0x2c]
add eax, dword [esp + 0x28]
lea ebx, [edi + 0x18]
movzx eax, ax
nop dword [eax]
xor byte [edx], al
lea edx, [edx + 1]
mov cx, ax
add eax, eax
shr cx, 0xf
add cx, ax
movzx eax, cx
mov cx, ax
add eax, eax
shr cx, 0xf
add cx, ax
movzx eax, cx
sub ebx, 1
jne 0x101905d0
cmp dword [esp + 0x40], edi
je 0x1019060d
mov dword [0x102516d4], 0x65
jmp 0x10190720
mov ax, word [esp + 0x2c]
cmp ax, word [esi + 0x54]
jne 0x10190716
mov eax, dword [esi + 0x6c]
test eax, eax
je 0x1019062b
push eax
call fcn.101943b0
mov edi, eax
test ebp, ebp
je 0x1019068e
test edi, edi
je 0x1019068e
cmp dword [edi + 0x10], 1
jne 0x1019068e
cmp byte [esp + 0x13], 0xfa
jae 0x1019068e
mov al, byte [esp + 0x44]
test al, al
jne 0x1019066d
test byte [edi + 0x28], 0x80
jne 0x1019066d
push dword [edi + 0x34]
mov eax, dword [esi + 0x64]
push dword [edi + 0x2c]
add eax, dword [esi + 0x60]
push eax
push esi
call fcn.101903c0
test eax, eax
je 0x10190720
mov al, byte [esp + 0x44]
movzx eax, al
xor ecx, ecx
test eax, eax
mov dword [edi + 0x14], eax
mov dword [edi + 0x10], 2
sete cl
mov dword [edi + 0x18], ecx
mov dword [esi + 0x6c], 0
mov dword [ebp], edi
mov edx, dword [esp + 0x58]
test edx, edx
je 0x101906fc
mov edi, dword [esi + 0x3c]
xor ecx, ecx
mov ebx, dword [esi + 0x44]
cmp edi, ebx
jbe 0x101906b6
mov eax, dword [esi + 0x40]
cmp eax, dword [esi + 0x38]
jbe 0x101906ba
mov ecx, ebx
sub ecx, edi
add ecx, 0xa8c0
jmp 0x101906ba
mov ecx, ebx
sub ecx, edi
lea eax, [ecx + ecx]
xor ecx, ecx
test eax, eax
cmovns ecx, eax
mov eax, 0xffff
cmp ecx, 0xffff
jg 0x101906d4
movzx eax, cx
cmp eax, edx
jae 0x101906f5
sub edx, eax
mov eax, edx
xor edx, edx
div dword [esi + 0x34]
mov dword [esi + 0x14], eax
cmp eax, 1
jbe 0x101906fc
mov dword [0x102516d4], 0x63
jmp 0x10190720
mov dword [esi + 0x14], 0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.101c1860
add esp, 0x40
ret 0xc
mov dword [0x102516d4], 0x67
mov ecx, dword [esp + 0x4c]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.101c1860
add esp, 0x40
ret 0xc
Function at 0x10191cd0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [0x10252964]
xor eax, esp
mov dword [esp + 4], eax
push ebx
mov ebx, dword [esp + 0x18]
push edi
mov edi, dword [esp + 0x14]
push 0
push 0
push dword [esp + 0x20]
push dword [edi + 0x20]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
jne 0x10191d1a
pop edi
mov dword [0x102516d4], 0x65
pop ebx
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.101c1860
add esp, 8
ret 0x10
push esi
mov esi, dword [esp + 0x24]
lea eax, [esp + 0xc]
push 0
push eax
push esi
push ebx
push dword [edi + 0x20]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10191d54
cmp dword [esp + 0xc], esi
jne 0x10191d54
pop esi
pop edi
mov eax, 1
pop ebx
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.101c1860
add esp, 8
ret 0x10
mov ecx, dword [esp + 0x10]
xor eax, eax
pop esi
pop edi
pop ebx
xor ecx, esp
mov dword [0x102516d4], 0x61
call fcn.101c1860
add esp, 8
ret 0x10

Function at 0x10191d80
Capabilities:
Encode data using xor
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x10252964]
xor eax, esp
mov dword [esp + 0x104], eax
push ebx
push esi
push pe_nt_image_headers32
xor ebx, ebx
lea eax, [esp + 0x10]
push ebx
push eax
call fcn.101d82a0
add esp, 0xc
lea eax, [esp + 0xc]
push 0xff
push eax
push 0x1005658c
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
test esi, esi
je 0x10191efb
cmp esi, 0x20
jae 0x10191efb
mov ecx, 0x10056598
lea eax, [esp + 0xc]
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10191e00
test dl, dl
je 0x10191dfc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10191e00
add eax, 2
add ecx, 2
test dl, dl
jne 0x10191de0
xor eax, eax
jmp 0x10191e05
sbb eax, eax
or eax, 1
test eax, eax
je 0x10191efb
mov ecx, 0x100565a0
lea eax, [esp + 0xc]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10191e36
test dl, dl
je 0x10191e32
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10191e36
add eax, 2
add ecx, 2
test dl, dl
jne 0x10191e16
xor eax, eax
jmp 0x10191e3b
sbb eax, eax
or eax, 1
test eax, eax
je 0x10191efb
push 8
lea eax, [esp + 0x10]
push 0x100565b0
push eax
call fcn.100f5c60
add esp, 0xc
test eax, eax
jne 0x10191eb8
lea eax, [esp + 8]
mov dword [esp + 8], ebx
push eax
lea eax, [esp + 0x10]
push 0x100565bc
push eax
call fcn.1013bd00
add esp, 0xc
cmp eax, 1
jne 0x10191e97
mov eax, dword [esp + 8]
inc eax
and eax, 0x800000ff
jns 0x10191e8e
dec eax
or eax, 0xffffff00
inc eax
movzx ebx, byte [eax + 0x10251750]
jmp 0x10191ed6
xor edx, edx
test esi, esi
je 0x10191edd
nop dword [eax]
movsx ecx, byte [esp + edx + 0xc]
inc edx
movzx eax, bx
xor ecx, eax
movzx ebx, byte [ecx + 0x10251750]
cmp edx, esi
jb 0x10191ea0
jmp 0x10191ed6
xor edx, edx
test esi, esi
je 0x10191edd
nop
movsx ecx, byte [esp + edx + 0xc]
inc edx
movzx eax, bx
xor ecx, eax
movzx ebx, byte [ecx + 0x10251750]
cmp edx, esi
jb 0x10191ec0
xor eax, eax
cmp ax, bx
jne 0x10191ee2
mov ebx, 0xff
pop esi
mov al, bl
pop ebx
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.101c1860
add esp, 0x108
ret
mov ecx, dword [esp + 0x10c]
xor al, al
pop esi
pop ebx
xor ecx, esp
call fcn.101c1860
add esp, 0x108
ret
Function at 0x10191f20
Capabilities:
Get hostname
Resolve dns

Disassembly:
sub esp, 0x220
mov eax, dword [0x10252964]
xor eax, esp
mov dword [esp + 0x21c], eax
push ebx
push esi
mov esi, dword [esp + 0x22c]
lea eax, [esp + 0x124]
push pe_nt_image_headers32
push eax
call sub.WS2_32.dll_gethostname
cmp eax, 0xffffffff
je 0x10191fa1
lea eax, [esp + 0x124]
push eax
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x10191fa1
mov eax, dword [eax + 0xc]
push 1
mov eax, dword [eax]
mov ebx, dword [eax]
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], 0x10c
push eax
call fcn.10195ae0
test eax, eax
jne 0x10191fa1
mov edx, dword [esp + 0x18]
test edx, edx
jle 0x10191fa1
lea ecx, [esp + 0x1c]
cmp dword [ecx], ebx
je 0x10191fa8
inc eax
add ecx, 0x18
cmp eax, edx
jl 0x10191f95
xor al, al
jmp 0x1019206c
lea eax, [eax + eax*2]
mov edx, dword [esp + eax*8 + 0x24]
test edx, edx
je 0x10191fa1
mov ecx, dword [esi + 4]
mov eax, ebx
shr eax, 0x18
and ecx, edx
mov byte [esp + 0x14], al
not edx
mov eax, ebx
mov byte [esp + 0xf], cl
shr eax, 0x10
mov byte [esp + 0x15], al
mov eax, ebx
shr eax, 8
mov byte [esp + 0x16], al
movzx eax, byte [esi + 7]
mov byte [esp + 0x10], al
movzx eax, byte [esi + 6]
mov byte [esp + 0x11], al
movzx eax, byte [esi + 5]
mov byte [esp + 0x12], al
movzx eax, byte [esi + 4]
mov byte [esp + 0x13], al
mov eax, ecx
shr eax, 0x18
mov byte [esp + 0xc], al
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0xd], al
mov eax, ecx
mov ecx, dword [esp + 0x10]
shr eax, 8
mov byte [esp + 0xe], al
mov eax, edx
shr eax, 0x18
mov byte [esp + 8], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 9], al
mov eax, edx
shr eax, 8
mov byte [esp + 0xa], al
mov byte [esp + 0xb], dl
mov eax, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
or eax, edi
mov byte [esp + 0x1b], bl
cmp ecx, edi
jbe 0x1019205c
cmp ecx, eax
jae 0x1019205a
mov edx, dword [esp + 0x18]
cmp edx, edi
jbe 0x1019205a
cmp edx, eax
jb 0x10192062
cmp ecx, edi
je 0x10192085
cmp ecx, eax
je 0x10192085
mov dword [esi + 8], 1
mov al, 1
pop edi
mov ecx, dword [esp + 0x224]
pop esi
pop ebx
xor ecx, esp
call fcn.101c1860
add esp, 0x220
ret 4
mov dword [esi + 8], 0
xor al, al
jmp 0x1019206b
Function at 0x10192200
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x18
mov eax, dword [0x10252964]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
mov ebx, dword [esp + 0x2c]
push ebp
mov ebp, dword [esp + 0x2c]
push esi
push edi
xor esi, esi
push esi
push 1
push 2
call sub.WS2_32.dll_socket
mov edi, eax
cmp edi, 0xffffffff
je 0x1019234a
push 4
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 1
push eax
push 1
push 6
push edi
call sub.WS2_32.dll_setsockopt
xorps xmm0, xmm0
mov eax, 2
movups xmmword [esp + 0x14], xmm0
mov word [esp + 0x14], ax
lea eax, [esp + 0x14]
push 0x10
push eax
push edi
call sub.WS2_32.dll_bind
cmp eax, 0xffffffff
je 0x10192337
push 0x64
call fcn.1018f940
mov esi, eax
add esp, 4
test esi, esi
je 0x10192337
push 0x64
push 0
push esi
call fcn.101d82a0
mov dword [esi + 4], edi
add esp, 0xc
mov eax, dword [0x10264f18]
mov dword [esi], eax
mov eax, dword [esp + 0x30]
mov dword [0x10264f18], esi
mov dword [esi + 0x3c], eax
mov eax, dword [esp + 0x2c]
movups xmm0, xmmword [eax]
movups xmmword [esi + 0xc], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [esi + 0x1c], xmm0
movups xmm0, xmmword [eax + 0x20]
mov dword [esi + 0x60], 0
movups xmmword [esi + 0x2c], xmm0
mov dword [esi + 0x24], 0
test ebx, ebx
je 0x10192309
push ebx
call fcn.1018f940
add esp, 4
mov dword [esi + 0x60], eax
test eax, eax
je 0x10192337
push ebp
push ebx
push eax
call fcn.100f674d
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.101c1860
add esp, 0x18
ret 0x10
push 2
call fcn.1018f940
mov dword [esi + 0x60], eax
add esp, 4
mov byte [eax], 0
mov eax, dword [esi + 0x60]
pop edi
mov byte [eax + 1], 0
mov eax, esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.101c1860
add esp, 0x18
ret 0x10
push edi
call sub.WS2_32.dll_closesocket
test esi, esi
jne 0x1019234a
push esi
call fcn.100f260c
add esp, 4
mov ecx, dword [esp + 0x24]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.101c1860
add esp, 0x18
ret 0x10
Function at 0x10192ba0
Capabilities:
Create udp socket
Initialize winsock library
Set socket configuration

Disassembly:
sub esp, 0x1a8
mov eax, dword [0x10252964]
xor eax, esp
mov dword [esp + 0x1a4], eax
cmp dword [0x10264f20], 0
jne 0x10192d0a
lea eax, [esp + 0x14]
mov dword [0x10264f20], 1
push eax
push 0x101
call sub.WS2_32.dll_WSAStartup
test eax, eax
jne 0x10192d0a
push 4
push 0x10264f1c
push 0x1005d394
push 7
mov dword [0x10264f04], 1
call fcn.1018ffb0
add esp, 0x10
test eax, eax
je 0x10192c16
mov eax, dword [0x10264f1c]
test eax, eax
je 0x10192c16
cmp eax, 0xffff
jbe 0x10192c20
mov dword [0x10264f1c], 0x574b
push 0x7fff
call fcn.100f58b0
add esp, 4
mov dword [0x10264f00], eax
test eax, eax
je 0x10192c98
push 0
push 2
push 2
call sub.WS2_32.dll_socket
mov dword [0x10251738], eax
cmp eax, 0xffffffff
je 0x10192cb3
push 4
lea ecx, [esp + 4]
mov dword [esp + 4], 1
push ecx
push 0x20
push 0xffff
push eax
mov dword [esp + 0x18], 2
mov dword [esp + 0x1c], 0
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x10192c93
push 0x10
lea eax, [esp + 8]
push eax
push dword [0x10251738]
call sub.WS2_32.dll_bind
cmp eax, 0xffffffff
jne 0x10192d0a
mov eax, dword [0x10264f00]
mov ecx, dword [0x10251738]
cmp ecx, 0xffffffff
je 0x10192cb8
push ecx
call sub.WS2_32.dll_closesocket
mov dword [0x10251738], 0xffffffff
mov eax, dword [0x10264f00]
test eax, eax
je 0x10192ccf
push eax
call fcn.100f260c
add esp, 4
mov dword [0x10264f00], 0
mov eax, dword [0x10264f18]
test eax, eax
je 0x10192cf2
push esi
nop dword [eax]
mov esi, dword [eax]
push eax
call fcn.100f260c
add esp, 4
mov eax, esi
test esi, esi
jne 0x10192ce0
pop esi
cmp dword [0x10264f04], 0
je 0x10192d0a
call sub.WS2_32.dll_WSACleanup
mov dword [0x10264f04], 0
mov ecx, dword [esp + 0x1a4]
xor ecx, esp
call fcn.101c1860
add esp, 0x1a8
ret

Function at 0x10193420
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
sub esp, 0x18
mov eax, dword [0x10252964]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
mov esi, dword [esp + 0x20]
push 0
push 1
push 2
mov eax, dword [esi + 8]
and eax, 0xfffffffd
or eax, 1
mov dword [esi + 8], eax
call sub.WS2_32.dll_socket
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x101934dd
push 4
lea ecx, [esp + 8]
mov dword [esp + 8], 1
push ecx
push 1
push 6
push eax
call sub.WS2_32.dll_setsockopt
xorps xmm0, xmm0
mov eax, 2
movups xmmword [esp + 8], xmm0
mov word [esp + 8], ax
lea eax, [esp + 8]
push 0x10
push eax
push dword [esi + 4]
call sub.WS2_32.dll_bind
cmp eax, 0xffffffff
je 0x101934dd
or dword [esi + 0xc], 8
test dword [esi + 0x3c], 0x200000
movzx eax, word [esi + 0x44]
je 0x101934aa
movzx eax, word [esi + 0x1e]
push 0
push 0
push 0
push eax
push 0
push esi
call fcn.10192410
test eax, eax
je 0x101934dd
mov ecx, dword [0x102516f0]
pop esi
mov dword [ecx + 0x14], eax
mov eax, 1
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.101c1860
add esp, 0x18
ret 4
mov ecx, dword [esp + 0x18]
xor eax, eax
mov dword [0x102516d4], 0x63
or dword [esi + 8], 2
pop esi
xor ecx, esp
call fcn.101c1860
add esp, 0x18
ret 4