joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100abec0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x1026f39d
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10340190]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x2c]
push eax
push esi
call fcn.100d8070
xor ebx, ebx
mov dword [esp + 0x1c], ebx
lea ebp, [esi + 0xc0]
mov dword [esi], 0x102b70dc
mov dword [ebp], 0x102f1a04
mov dword [ebp + 0xc], ebx
mov dword [ebp + 8], ebx
mov dword [ebp + 4], ebx
lea ecx, [esi + 0xdc]
push ecx
mov byte [esp + 0x20], 1
call fcn.1022a010
lea edi, [esi + 0x138]
mov dword [edi], 0x102ae348
mov dword [edi + 4], ebx
mov dword [edi + 8], 1
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ebx
mov dword [edi + 0x18], ebx
mov edx, dword [esp + 0x28]
mov byte [esp + 0x1c], 3
mov dword [esi + 0xbc], edx
mov edx, dword [esp + 0x30]
mov dword [esi + 0x1c], 0x218
mov ecx, dword [edx + 0xc]
mov eax, dword [ebp + 0xc]
cmp eax, ecx
je 0x100abf95
cmp eax, ebx
je 0x100abf7d
push eax
call fcn.1024f3cf
mov edx, dword [esp + 0x34]
add esp, 4
mov dword [ebp + 0xc], ebx
mov dword [ebp + 8], ebx
mov dword [ebp + 4], ebx
mov eax, dword [edx + 4]
mov ebx, dword [edx + 0xc]
mov ecx, ebp
call fcn.101eef40
xor ebx, ebx
mov eax, dword [esp + 0x34]
mov edx, dword [edi]
mov dword [esi + 0xd8], eax
mov eax, dword [edx + 4]
push 0x61
mov ecx, edi
mov dword [esi + 0xd0], ebx
mov dword [esi + 0xd4], ebx
mov dword [esi + 0x130], ebx
mov dword [esi + 0x12c], ebx
call eax
push 0x9c
call fcn.1024f319
add esp, 4
mov dword [esp + 0x30], eax
mov byte [esp + 0x1c], 4
cmp eax, ebx
je 0x100abfeb
push ebx
push eax
call fcn.100bbbf0
mov dword [esi + 0xd4], eax
jmp 0x100abff1
mov dword [esi + 0xd4], ebx
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x14
Function at 0x100b7770
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x1027447a
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10340190]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x3c]
xor edi, edi
mov dword [esp + 0x34], edi
mov dword [esi], 0x102b8280
mov eax, 0x102f1a04
mov dword [esi + 0xc], eax
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x1c], eax
mov dword [esi + 0x28], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x2c], eax
mov dword [esi + 0x38], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x30], edi
lea ebp, [esi + 0x3c]
mov dword [ebp], eax
mov dword [ebp + 0xc], edi
mov dword [ebp + 8], edi
mov dword [ebp + 4], edi
mov dword [esi + 0x4c], eax
mov dword [esi + 0x58], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x5c], eax
mov dword [esi + 0x68], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x60], edi
mov dword [esp + 0x14], 0x102f2134
lea eax, [esp + 0x18]
push eax
mov byte [esp + 0x38], 7
call fcn.101fc3e0
mov ebx, eax
mov byte [esp + 0x34], 8
mov ecx, dword [ebx + 0xc]
mov eax, dword [ebp + 0xc]
cmp eax, ecx
je 0x100b7842
cmp eax, edi
je 0x100b782c
push eax
call fcn.1024f3cf
add esp, 4
mov dword [ebp + 0xc], edi
mov dword [ebp + 8], edi
mov dword [ebp + 4], edi
mov eax, dword [ebx + 4]
mov ebx, dword [ebx + 0xc]
mov ecx, ebp
call fcn.101eef40
mov byte [esp + 0x34], 7
mov eax, dword [esp + 0x24]
mov dword [esp + 0x18], 0x102f1a04
cmp eax, edi
je 0x100b7860
push eax
call fcn.1024f3cf
add esp, 4
mov eax, dword [esi + 0x68]
cmp eax, 0x1029bf70
je 0x100b7890
cmp eax, edi
je 0x100b7877
push eax
call fcn.1024f3cf
add esp, 4
or eax, 0xffffffff
mov ebx, 0x1029bf70
lea ecx, [esi + 0x5c]
mov dword [esi + 0x68], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x60], edi
call fcn.101eef40
mov eax, dword [esi + 0x58]
cmp eax, 0x1029bf70
je 0x100b78c0
cmp eax, edi
je 0x100b78a7
push eax
call fcn.1024f3cf
add esp, 4
or eax, 0xffffffff
mov ebx, 0x1029bf70
Function at 0x100e33ea
Capabilities:
Encode data using xor

Disassembly:
je 0x100e33d2
cmp dword [esp + 0x4c], ebp
je 0x100e33d2
add byte [esp + 0x64], dl
push edx
mov edx, esi
call 0xdc20803f
push esi
mov ecx, 0x102c0454
call fcn.10208b9f
mov edi, eax
cmp edi, ebp
jne 0x100e340b
lea edx, [esi]
pop eax
call fcn.101eea9f
adc byte [eax], al
adc byte [eax], al
push 0xe848877d
stosb byte es:[edi], al
mov dh, 0x10
add byte [eax + eax], bl
je 0x100e3449
call 0x30e26066
add byte [eax], al
pop edi
pop esi
sub al, 0xd4
and byte [eax], al
add byte [edi + 0x5e], bl
jge 0x100e3418
mov ebx, dword [ebp - 0x7d]
les eax, [eax]
ret
push 0xffffffffffffffff
pushal
mov dword fs:[eax + edx*2], edi
mov ebx, 0x102c0478
call fcn.101ee9bf
inc eax
mov dword [0x400010b5], eax
add byte [eax + 0x52], al
push edx
mov ebp, dword [eax]
push ss
mov eax, dword [edx]
push 1
adc eax, dword [eax]
xor al, 1
adc eax, dword [eax]
xor byte [ecx], al
insb byte es:[edi], dx
add byte [ebx + ecx*4], ch
jl 0x100e341b
adc al, 0xdc
jge 0x100e33be
sub byte [ecx - 0x75], dl
retf
je 0x100e3461
cmp dword [ecx + ebp*8 + 0x2c], ebp
je 0x100e3455
xor dl, byte [esp + 0x28]
push edx
xor dl, byte [ebx + ecx*4]
cmp al, 0x8b
xlatb
call fcn.10207fef
jl 0x100e33fb
add al, 0x2c
adc ah, bl
jne 0x100e3491
cmp al, ch
inc eax
mov esi, 0x52400010
adc byte [eax], al
inc eax
push edx
mov ebx, dword [eax]
push ss
mov eax, dword [edx]
push 1
adc eax, dword [eax]
and al, 1
adc eax, dword [eax]
and byte [eax], al
insb byte es:[edi], dx
and al, 0x1c
xor dh, byte [eax + edx]
sbb byte [eax - 0x75], dl
retf
mov edx, 0x6c39000b
add byte [esp + esi*2], ah
push es
cmp dword [eax + eax + 0x1c], ebp
jne 0x100e34ae
mov eax, 0x102c04bc
fdiv qword [ebp + 0x28]
sbb al, ch
add dword [esi + 0x4ccc0010], edi
and al, 0x44
cmp ecx, ebp
je 0x100e34c8
int3
cmp dword [esp + 0x3c], ebp
je 0x100e34c8
add byte [esp + 0x24], dl
push edx
invalid
sal byte [ebp + 0xf], 0x18
call 0x4b1eea9f
jnp 0x100e3529
add byte [eax], ch
call fcn.101eea9f
push 0xe838877d
mov esp, 0x680010b5
jge 0x100e346d
pop eax
call fcn.101eea9f
push 0xe848877d
stosb byte es:[edi], al
mov ch, 0x10
add byte [esp + 0x24], bh
mov dword [esi + 0x14], 0x2c680974
aam 0x20
add byte [eax], al
pop edi
pop esi
jge 0x100e351b
mov ebx, dword [ebp - 0x7d]
les eax, [eax]
ret
je 0x100e3526
push eax
call 0x760a1d37
sti
push dword [ebx]
or al, 0x33
ror byte [ebx + 0x6460244c], 0x89
sub byte [eax], al
add byte [eax], al
add byte [ecx + 0x5f], bl
mov ecx, dword [esp + 0x60]
mov dword fs:[eax], ebp
add byte [eax], al
add byte [eax], al
pop ecx
pop edi
and byte [esp + 0x3c], ch
xor edi, edi
push 0xffffffffffffffff
xchg dword [eax + ecx*8 + 0x34], edi
push ebp
mov ebx, 0x102bdcdc
xchg dword [eax + ecx*8 + 0x1c], edi
call fcn.101ee9bf
int3
Function at 0x100f81b0
Capabilities:
Encode data using xor

Disassembly:
jl 0x100f81d6
and al, 0xc7
inc esi
adc al, 0x5b
pop ecx
ret
or al, 0x33
ror byte [ebx + 0x6460244c], 0x89
sub al, 0
add byte [eax], al
add byte [ecx + 0x5f], bl
cmp ebp, dword [edi + ecx + 0x3c]
cmp dword [ebp - 0x3333fddc], 0
je 0xcb0f82b3
xor ecx, ecx
mov dword [eax - 0x18], edx
cmp al, 0x89
adc eax, dword [eax]
xor al, 0x8b
inc ebp
sbb al, 0x85
sal byte [ebp + ebp + 0x51], 0x68
sub byte [esi], bl
lahf
adc byte es:[ecx], ah
add byte [ecx - 0x73], dl
jl 0x100f81df
dec esp
mov ebx, 0x8b045da9
xor ecx, eax
call 0xd720f00f
push eax
call fcn.10266497
add byte [ecx + 0x5b], bl
add al, 0x38
jne 0x100f824a
mov edi, dword [ebp - 0x79]
cmp al, 0xc7
invalid
mov edx, dword [eax]
mov ecx, eax
adc al, byte [edx + 0x1c]
push 0x5e
je 0x100f8225
invalid

Function at 0x101737c0
Capabilities:
Encode data using xor

Disassembly:
mov dword [eax + eax], edx
add byte [eax], al
add byte [ebx - 0x367af7b2], cl
je 0x1017383e
push 0
push 0x10346abc
adc byte [ecx], ah
add byte [edx], ch
xor edi, edi
mov ebx, 0xcca2
call 0x6f20f00f
push eax
call fcn.10266497
add esp, 0x14
xor eax, eax
invalid
Function at 0x10191030
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov dword [eax + eax + 0x20], edi
mov dword [ecx + ecx + 0x2c], ebp
mov dword [eax + eax + 0x28], esi
jbe 0x10191081
add byte [esi + esi*2], ah
je 0x10191012
pop eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x3c], esi
mov dword [eax + eax + 0x38], esi
mov dword [eax + eax + 0x34], esi
jbe 0x10191099
add byte [eax], bl
lea esp, [ecx + ecx*4 + 0x40]
push eax
mov byte [esp + 0x5c], 2
add ch, al
dec ecx
cld
xchg esp, eax
add dh, al
add ch, al
dec ecx
cld
xchg esp, eax
add dh, al
mov dword fs:[eax + 3], ebx
mov ebx, dword [eax + 0xc]
cmp ebx, esi
je 0x1019105e
mov eax, dword [eax + 4]
lea ecx, [esp + 0x20]
mov dword [esp + 0x2c], esi
mov dword [eax + eax + 0x28], esi
jbe 0x101910c7
add byte [eax + ebp*8], ah
test esi, ebx
add eax, 0x246c8b00
sub al, 0xc6
mov dword fs:[eax + 2], ebx
mov esp, dword [ecx + ecx*4 + 0x4c]
mov dword [esp + 0x40], edi
cmp eax, esi
je 0x101910bf
invalid
call 0x1bfc0a13
jns 0x10190fff
or eax, 0x74ee3b3b
push es
cmp dword [esp + 0x24], esi
jne 0x101910a2
and byte [ebx + 0x3b182444], cl
invalid
mov eax, dword [esp + 0x18]
cmp eax, esi
je fcn.10191095
push eax
call dword [0x10299008]
mov dword [ebx + ecx*4 + 0x18], esi
test eax, 0xe9000095
wait
xchg ebp, eax
add byte [eax], al
sal byte [ebp + 0xf], 0x30
push ecx
push 0x1029e36c
push ebp
lea ebx, [esp + 0x24]
call 0xc320c21f
mov edi, dword [esp + 0x3c]
int3
invalid
push ebp
adc dword [edx + 0x68], 0xffffff90
aam 0x89
cvttps2pi mm2, qword fs:[edx - 0x40]
jne 0x101910e4
inc esp
call 0xc31eeadf
call fcn.101919ef
mov edi, eax
mov eax, dword [esp + 0x18]
and al, 0x18
cmp eax, esi
je 0x101910f5
push eax
call dword [0x10299008]
mov dword [ebx + ecx*4 + 0x18], esi
sal byte [ebp + 0xf], 0x30
call 0xdc1eea9f
sal byte [ebp + 0xf], 0x20
call 0x9b1eea9f
mov eax, edi
mov ecx, dword [ecx + ecx*4 + 0x50]
sub al, 0xd4
and byte [eax], al
add byte [edi + 0x5e], bl
jge 0x10191175
mov ebx, dword [ebp + 0x4d]
les eax, [eax + ecx*2]
ret
xor ecx, dword [ebx + esi]
ror byte [ebx + 0x6460244c], 0x89
jo 0x101911c7
mov edx, edi
call 0x74e0c51d
mov dword [eax], ebx
and al, 0x4c
das
adc byte [ebx], dh
dec dword [ecx - 0x4287ff84]
add al, 0x29
adc al, ch

Function at 0x101f51b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
inc eax
push ss
xor al, 0x89
scasb al, byte es:[edi]
nop
push ss
xor al, 0x10
mov dword [esi + 0x341640bc], eax
Function at 0x10228f96
Capabilities:
Resolve function by parsing pe exports

Disassembly:
call eax
and byte [eax + 0x4f], ah
add al, 0xff
push ebp
call 0x283f12a7
push eax
push ecx
call dword [0x3094fc]
mov edx, dword [edi + 4]
push edx
call dword [0x27b99528]
movzx ecx, byte [edi + 0x30]
movzx edx, byte [edi + 0x2c]
mov esi, eax
movzx eax, byte [edi + 0x34]
shl eax, 8
or eax, ecx
shl eax, 8
or eax, edx
push eax
push 1
xchg al, ch
call dword [0x10299174]
push eax
push esi
call 0xf3f84d5
adc eax, 0x41299170
mov eax, dword [ecx]
sub byte [eax], bl
mov ebx, dword [0x4129916c]
push 0x68
mov dword [esp + 0x14], eax
mov edx, dword [ebx + 0x68]
and byte [ecx + edx*2], dh
push esi
call ebx
mov edx, dword [esp + 0x1c]
add al, 0x83
sbb al, 0x20
mov ebp, dword [0x41299168]
push edx
push eax
push esi
call ebp
and byte [eax + ecx + 0x24], ah
mov edx, dword [esp + 0x18]
push 0
push ecx
push edx
push esi
call ebx
mov eax, dword [esp + 0x24]
mov eax, dword [ecx]
sub byte [eax], ah
xor al, 0x51
push esi
call ebp
mov edx, dword [esp + 0x1c]
add al, 0x83
sbb al, 0x18
push 0
push edx
push eax
push esi
call ebx
and byte [eax + ecx + 0x24], ah
mov edx, dword [esp + 0x18]
push ecx
push edx
push esi
call ebp
mov eax, dword [ecx + edx*2 + 0x1c]
jne 0x1022904f
sub byte [eax], ah
push 0
and byte [edx], ch
xor al, 0x51
push esi
call ebx
mov edx, dword [esp + 0x24]
mov edx, dword [ebx + 0x68]
push ebx
push 0x56505220
Function at 0x10254d20
Capabilities:
Encode data using xor

Disassembly:
adc byte [esi], dh
mul byte [0xec05c710]
and eax, 0xec05c710
push cs
xor al, 0x10
pop ss
in eax, dx
and eax, 0xf005c710
push cs
xor al, 0x10
jns 0x10254d23
and eax, 0xf405c710
push cs
xor al, 0x10
push es
in al, dx
and eax, 0xff8bc310
push ebx
push esi
and al, 0xe8
xchg esi, eax
mov ebp, eax
test eax, 0x7d83426a
or byte [eax], al
mov dword [0x1034856c], eax
je 0x10254d63
call fcn.1025f618
fnclex
pop ebp
ret
Function at 0x401000
Capabilities:
Execute command

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Welcome__Press_P_To_Open_Loader_n
push esi
push edi
call fcn.004011d0
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call fcn.004010d0
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.You_pressed:
call fcn.004011d0
mov ecx, eax
call fcn.004013f0
mov edx, 0x403164
mov ecx, eax
call fcn.004011d0
cmp byte [0x4053c8], 0x62
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
je 0x4010a9
mov edx, str.Your_brainrot__n
call fcn.004011d0
mov esi, dword [sym.imp.USER32.dll_MessageBoxW]
push 0x4030
push str.ur_done_bud_loool
push str.shouldve_pressed_the_right_key__no_
push 0
call esi
mov edi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
nop
push 0x4030
push str.ur_done_bud_loool
push str.shouldve_pressed_the_right_key__no_
push 0
mov dword [0x4053cc], 2
call esi
push str.shutdown__s
call edi
add esp, 4
jmp 0x401080
mov edx, str.You_pressed_the_best_key__n
call fcn.004011d0
push str.pause
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
add esp, 4
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x401f40
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401f7f
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401f7f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401f7f
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401f7f
cmp dword [ecx + 0x74], 0xe
jbe 0x401f7f
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43300c
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x401200
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov ecx, dword [ebp + 8]
push ebx
xor al, al
push esi
push edi
mov byte [esp + 0x13], al
test ecx, ecx
je 0x40131b
cmp dword [ecx], 0x756470
jne 0x40131b
cmp dword [ebp + 0xc], 0
je 0x40131b
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x40131b
lea edi, [esi + 4]
push edi
call fcn.0040a6d0
mov ebx, eax
mov eax, dword [ebp + 0xc]
push esi
push eax
lea ecx, [ebx + 4]
push ecx
mov dword [esp + 0x24], ebx
mov dword [ebx], esi
call sub.ntdll.dll_memcpy
xor eax, eax
mov dword [esp + 0x2a], eax
mov dword [esp + 0x2e], eax
mov dword [esp + 0x32], eax
mov word [esp + 0x36], ax
mov eax, dword [ebp + 0x18]
add esp, 0x10
mov edx, 2
push eax
mov word [esp + 0x1c], dx
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [ebp + 0x14]
mov word [esp + 0x1a], ax
mov dword [esp + 0x1c], ecx
test edi, edi
je 0x4012f1
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
push 0x10
lea edx, [esp + 0x1c]
push edx
push 0
push edi
push ebx
push ecx
call dword [sym.imp.WS2_32.dll_sendto]
mov esi, eax
cmp esi, 0xffffffff
je 0x4012e9
mov edx, dword [ebp + 8]
push esi
add edx, 0x1c
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
sub edi, esi
add ebx, esi
test edi, edi
jne 0x401297
mov ebx, dword [esp + 0x14]
push ebx
mov byte [esp + 0x17], 1
call fcn.0040a8e0
mov al, byte [esp + 0x17]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
jne 0x40130a
mov ebx, dword [esp + 0x14]
push ebx
mov byte [esp + 0x17], 1
call fcn.0040a8e0
mov al, byte [esp + 0x17]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [esp + 0x14]
push ebx
call fcn.0040a8e0
mov al, byte [esp + 0x17]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4013b0
Capabilities:
Create tcp socket
Create thread
Create udp socket

Disassembly:
sub esp, 0x10
push esi
push 0x24
call fcn.0040a4c0
add esp, 4
push 0
push 0
mov esi, eax
push 1
push 0
mov dword [esi], 0x756470
mov dword [esi + 4], 1
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0x11
push 2
push 2
mov dword [esi + 0x10], eax
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 8], eax
cmp eax, 0xffffffff
jne 0x4013fd
push esi
call fcn.00401330
add esp, 4
xor esi, esi
test esi, esi
je 0x401462
xor eax, eax
mov dword [esp + 6], eax
mov dword [esp + 0xa], eax
mov dword [esp + 0xe], eax
mov word [esp + 0x12], ax
mov eax, 2
push 0x10
lea ecx, [esp + 8]
mov word [esp + 8], ax
mov edx, dword [esi + 8]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x401444
push esi
call fcn.00401330
add esp, 4
xor eax, eax
pop esi
add esp, 0x10
ret
mov eax, dword [esp + 0x18]
push 0
push 0
push esi
push 0x401100
push 0
push 0
mov dword [esi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x14], eax
mov eax, esi
pop esi
add esp, 0x10
ret
Function at 0x401470
Capabilities:
Create tcp socket
Create thread
Create udp socket
Set socket configuration

Disassembly:
sub esp, 0x10
push edi
mov edi, dword [esp + 0x1c]
xor eax, eax
test di, di
je 0x401576
push ebx
mov ebx, dword [esp + 0x24]
test ebx, ebx
je 0x401575
push esi
push 0x24
call fcn.0040a4c0
add esp, 4
push 0
push 0
mov esi, eax
push 1
push 0
mov dword [esi], 0x756470
mov dword [esi + 4], 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0x11
push 2
push 2
mov dword [esi + 0x10], eax
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 8], eax
cmp eax, 0xffffffff
jne 0x4014da
push esi
call fcn.00401330
add esp, 4
xor esi, esi
test esi, esi
je 0x401572
xor eax, eax
mov dword [esp + 0xe], eax
mov dword [esp + 0x12], eax
mov dword [esp + 0x16], eax
mov word [esp + 0x1a], ax
mov eax, dword [esp + 0x20]
mov ecx, 2
push edi
mov dword [esp + 0x14], eax
mov word [esp + 0x10], cx
call dword [sym.imp.WS2_32.dll_htons]
push 1
lea edx, [esp + 0x28]
push edx
push 4
mov word [esp + 0x1a], ax
mov byte [esp + 0x30], 1
mov eax, dword [esi + 8]
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
mov edx, dword [esi + 8]
push 0x10
lea ecx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x401558
push esi
call fcn.00401330
add esp, 4
pop esi
pop ebx
xor eax, eax
pop edi
add esp, 0x10
ret
push 0
push 0
push esi
push 0x401100
push 0
push 0
mov dword [esi + 0xc], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x14], eax
mov eax, esi
pop esi
pop ebx
pop edi
add esp, 0x10
ret

Function at 0x401ae0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_WSASend]
push ebp
mov ebp, dword [esp + 0xc]
mov ecx, dword [ebp + 0x260]
push edi
push 0
push esi
push 0
lea eax, [esp + 0x1c]
push eax
push 1
lea edi, [esi + 0x1c]
push edi
push ecx
mov dword [esp + 0x2c], 0
call ebx
test eax, eax
je 0x401b50
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x401b50
cmp eax, 0x2733
jne 0x401b56
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp + 0x260]
push 0
push esi
push 0
lea edx, [esp + 0x1c]
push edx
push 1
push edi
push eax
mov dword [esp + 0x2c], 0
call ebx
test eax, eax
jne 0x401b12
pop edi
pop ebp
mov al, 1
pop ebx
ret
pop edi
pop ebp
xor al, al
pop ebx
ret
Function at 0x401d60
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x1c
cmp dword [esp + 0x20], 0
push esi
push edi
mov esi, eax
mov edi, ecx
jne 0x401ef2
test ebx, ebx
je 0x401ef2
call fcn.0040dbd0
push eax
lea eax, [edi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov eax, dword [esi + 0x18]
sub eax, 0
je 0x401e4e
sub eax, 1
jne 0x401f49
cmp byte [edi + 0x275], al
je 0x401dbc
add edi, 0x21c
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
pop edi
pop esi
add esp, 0x1c
ret
lea ecx, [edi + 0x21c]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov edx, dword [edi + 0x27c]
push ebx
add edx, 0x44
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov eax, dword [edi + 0x264]
mov ecx, dword [edi + 0x268]
mov edx, dword [edi + 0x26c]
mov dword [esp + 8], eax
mov eax, dword [edi + 0x270]
mov dword [esp + 0xc], ecx
mov ecx, dword [edi + 0x278]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], ecx
mov ecx, dword [edi + 0x27c]
lea eax, [esp + 8]
lea edx, [edi + 8]
push eax
mov dword [esp + 0x20], edx
push ecx
mov ecx, 3
mov edx, edi
mov dword [esp + 0x28], ebx
call fcn.00401740
add esp, 8
mov eax, edi
call fcn.00401cf0
test al, al
jne 0x401f49
mov byte [edi + 0x275], 1
pop edi
pop esi
add esp, 0x1c
ret
cmp byte [edi + 0x275], 0
je 0x401e67
add esi, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
pop edi
pop esi
add esp, 0x1c
ret
add dword [esi + 0x28], ebx
mov eax, dword [esi + 0x28]
cmp eax, dword [esi + 0x24]
jae 0x401e87
add dword [esi + 0x20], ebx
sub dword [esi + 0x1c], ebx
push edi
call fcn.00401ae0
add esp, 4
pop edi
pop esi
add esp, 0x1c
ret
lea edx, [esi + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov ecx, dword [edi + 0x268]
mov edx, dword [edi + 0x26c]
mov eax, dword [edi + 0x264]
mov dword [esp + 0xc], ecx
mov ecx, dword [edi + 0x278]
mov dword [esp + 0x10], edx
mov edx, dword [esi + 0x30]
mov dword [esp + 0x18], ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x270]
mov dword [esp + 0x1c], edx
mov edx, dword [edi + 0x27c]
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x28]
push edx
mov ecx, 2
mov edx, edi
mov dword [esp + 0x28], eax
call fcn.00401740
add esp, 8
pop edi
pop esi
add esp, 0x1c
ret
add esi, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push 4
lea edx, [esp + 0x2c]
push edx
mov eax, 1
push 0x80
mov word [esp + 0x34], ax
mov eax, dword [edi + 0x260]
push 0xffff
xor ecx, ecx
push eax
mov byte [edi + 0x275], 1
mov word [esp + 0x3e], cx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [edi + 0x260]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi + 0x260], 0xffffffff
pop edi
pop esi
add esp, 0x1c
ret