joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10007350
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, edx
not ebx
mov esi, ecx
mov eax, ebx
test edi, edi
je 0x1000739c
mov cl, byte [esi]
lea esi, [esi + 1]
dec edi
cmp cl, 0x23
jne 0x1000737f
cmp edi, 2
jb 0x1000737f
cmp byte [esi], cl
jne 0x1000737f
cmp byte [esi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x1009f200]
test edi, edi
jne 0x10007365
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x100073cb
cmp cl, 0x23
jne 0x100073b2
cmp byte [esi], cl
jne 0x100073b2
cmp byte [esi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x1009f200]
test cl, cl
jne 0x100073a3
pop edi
pop esi
not eax
pop ebx
pop ebp
ret

Function at 0x10007510
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x10007523
mov dword [edi], 0
mov edx, 0x1009efcc
call fcn.100073e0
mov esi, eax
test esi, esi
je 0x1000754b
mov ecx, esi
call fcn.100074b0
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
jne 0x10007552
push esi
call fcn.10073780
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
mov ecx, dword [0x101da090]
test ecx, ecx
je 0x10007562
inc dword [ecx + 0xa8]
push eax
call fcn.1007b185
add esp, 4
mov ebx, eax
push esi
test ebx, ebx
je 0x10007543
push dword [ebp + 8]
push 1
push ebx
call fcn.1007667d
add esp, 0x10
push esi
cmp eax, dword [ebp + 8]
je 0x100075ad
call fcn.10073780
mov eax, dword [0x101da090]
add esp, 4
test eax, eax
je 0x1000759d
dec dword [eax + 0xa8]
push ebx
call fcn.100764ac
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
call fcn.10073780
add esp, 4
test edi, edi
je 0x100075be
mov eax, dword [ebp + 8]
mov dword [edi], eax
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ecx + 0xc8]
lea edx, [ebp + 8]
push ebx
mov ebx, dword [ecx + 0xd0]
push esi
mov esi, 4
mov ebx, dword [ebx + eax*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 + 0x1009f200]
sub esi, 1
jne 0x10008c50
mov eax, dword [0x101da090]
not ebx
cmp dword [eax + 0x3e50], ebx
jne 0x10008c8a
push ecx
push dword [ebp + 8]
lea edx, [esi + 4]
mov ecx, ebx
call fcn.10017ec0
add esp, 8
pop esi
mov eax, ebx
pop ebx
pop ecx
pop ebp
ret 4
Function at 0x10016ba0
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 eax, edx
mov dword [esp + 0xc], eax
cmp dword [edi + 0x524c], 0
je 0x10016c34
mov ebx, dword [edi + 0x5254]
lea esi, [edi + 0x5250]
test ebx, ebx
jns 0x10016bf2
je 0x10016bda
mov eax, ebx
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
add ecx, ebx
jmp 0x10016bdf
mov ecx, 8
xor eax, eax
test ecx, ecx
cmovg eax, ecx
mov ecx, esi
push eax
call fcn.10018410
mov eax, dword [esp + 0xc]
push dword [ebp + 8]
mov ecx, esi
mov dword [esi], 0
push eax
call fcn.10007920
mov edx, dword [esi]
test edx, edx
je 0x10016c0c
dec edx
jmp 0x10016c0e
xor edx, edx
push dword [edi + 0x524c]
mov eax, dword [esi + 8]
mov ecx, 0x101da08c
test eax, eax
push edx
cmovne ecx, eax
push 1
push ecx
call fcn.100742cc
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp + 8]
lea ecx, [edi + 0x5250]
push eax
call fcn.10007920
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10017420
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x101da090]
push esi
mov esi, ecx
push edi
mov dword [eax + 0x5200], 0
test esi, esi
je 0x10017473
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0
call fcn.10017480
mov edx, 0x1009efd0
mov ecx, esi
mov edi, eax
call fcn.100073e0
mov esi, eax
test esi, esi
je 0x10017473
push esi
push dword [ebp - 4]
push 1
push edi
call fcn.100742cc
push esi
call fcn.10073780
add esp, 0x14
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10020130
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x10020166
mov eax, dword [0x101da090]
mov dword [esi + 4], 0
mov dword [esi], 0
test eax, eax
je 0x10020156
dec dword [eax + 0xa8]
push ecx
call fcn.100764ac
add esp, 4
mov dword [esi + 8], 0
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x1002019a
mov eax, dword [0x101da090]
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
test eax, eax
je 0x1002018a
dec dword [eax + 0xa8]
push ecx
call fcn.100764ac
add esp, 4
mov dword [esi + 0x14], 0
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x100201ce
mov eax, dword [0x101da090]
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
test eax, eax
je 0x100201be
dec dword [eax + 0xa8]
push ecx
call fcn.100764ac
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 0x1002021e
mov eax, dword [0x101da090]
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
test eax, eax
je 0x1002020e
dec dword [eax + 0xa8]
push ecx
call fcn.100764ac
add esp, 4
mov dword [esi + 0x44], 0
mov ecx, dword [esi + 0x50]
test ecx, ecx
je 0x10020252
mov eax, dword [0x101da090]
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], 0
test eax, eax
je 0x10020242
dec dword [eax + 0xa8]
push ecx
call fcn.100764ac
add esp, 4
mov dword [esi + 0x50], 0
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x10020286
mov eax, dword [0x101da090]
mov dword [esi + 0x58], 0
mov dword [esi + 0x54], 0
test eax, eax
je 0x10020276
dec dword [eax + 0xa8]
push ecx
call fcn.100764ac
add esp, 4
mov dword [esi + 0x5c], 0
lea ecx, [esi + 0x78]
pop esi
jmp fcn.10022d90
Function at 0x1002c510
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009229a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
mov esi, ecx
push 0
mov dword [ebp - 0x10], esi
call fcn.10069740
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 6
test eax, eax
jne 0x1002c5bf
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], vtable.std::exception.0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], str.bad_locale_name
xorps xmm0, xmm0
mov byte [ebp - 0x14], 1
push eax
movq qword [ebp - 0x20], xmm0
call fcn.1006f6f3
add esp, 8
mov dword [ebp - 0x24], vtable.std::runtime_error.0
lea eax, [ebp - 0x24]
push 0x100b6aec
push eax
call fcn.10070909
push eax
push esi
call fcn.10069a88
mov ecx, dword [ebp - 0xc]
add esp, 8
mov eax, esi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x1002f490
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10092308
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x1002f5cc
cmp byte [ebx + 0x3d], 0
je 0x1002f5cc
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
sete al
test al, al
je 0x1002f4e8
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.1002f000
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
lea eax, [ebp - 0x10]
mov ecx, dword [ebx + 0x38]
lea edi, [ebp - 0x28]
cmovae edi, dword [ebp - 0x28]
lea esi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x1002f54e
sub eax, 1
je 0x1002f552
mov ecx, dword [ebp - 0x14]
sub eax, 2
je 0x1002f5a5
xor bl, bl
jmp 0x1002f5a7
mov byte [ebx + 0x3d], 0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 0x10
mov esi, dword [ebp - 0x10]
cmovae eax, edx
sub esi, eax
je 0x1002f587
push dword [ebx + 0x4c]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, edx
push 1
push eax
call fcn.100742cc
mov ecx, dword [ebp - 0x14]
add esp, 0x10
cmp esi, eax
jne 0x1002f54a
cmp byte [ebx + 0x3d], 0
je 0x1002f5a5
test esi, esi
jne 0x1002f510
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.1002f170
jmp 0x1002f50d
mov bl, 1
cmp ecx, 0x10
jb 0x1002f5b9
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.1002f990
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
mov al, 1
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1002f770
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10092326
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov edi, ecx
push 8
mov dword [ebp - 0x10], edi
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.10068935
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.10069985
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x10], ecx
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x34], esi
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov ecx, edi
mov eax, dword [edi + 0x20]
push 0
push dword [ebp + 8]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov dword [edi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
call fcn.1002f5e0
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x1002fd50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10092326
push eax
mov dword fs:[0], esp
push esi
push edi
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.10068935
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.10069985
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov ecx, dword [ebp - 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100306e0
Capabilities:
Hash data using crc32b

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov edx, 0x80
xor ecx, ecx
mov dword [ebp - 4], ecx
xor eax, eax
test cl, 1
cmovne eax, edx
shr ecx, 1
test cl, 1
je 0x10030706
bts eax, 6
shr ecx, 1
test cl, 1
je 0x10030711
bts eax, 5
shr ecx, 1
test cl, 1
je 0x1003071c
bts eax, 4
shr ecx, 1
test cl, 1
je 0x10030727
bts eax, 3
shr ecx, 1
test cl, 1
je 0x10030732
bts eax, 2
shr ecx, 1
test cl, 1
je 0x1003073d
bts eax, 1
test cl, 2
je 0x10030746
bts eax, 0
shl eax, 0x18
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
add eax, eax
and ecx, 0x4c11db7
xor ecx, eax
mov edx, ecx
and edx, 0x80000000
neg edx
lea eax, [ecx + ecx]
sbb edx, edx
and edx, 0x4c11db7
xor edx, eax
mov ecx, edx
and ecx, 0x80000000
neg ecx
lea eax, [edx + edx]
sbb ecx, ecx
and ecx, 0x4c11db7
xor ecx, eax
mov edx, ecx
and edx, 0x80000000
neg edx
lea eax, [ecx + ecx]
sbb edx, edx
and edx, 0x4c11db7
xor edx, eax
mov ecx, edx
and ecx, 0x80000000
neg ecx
lea eax, [edx + edx]
sbb ecx, ecx
and ecx, 0x4c11db7
xor ecx, eax
mov edx, ecx
and edx, 0x80000000
neg edx
lea eax, [ecx + ecx]
sbb edx, edx
and edx, 0x4c11db7
xor edx, eax
mov ecx, edx
and ecx, 0x80000000
neg ecx
lea eax, [edx + edx]
sbb ecx, ecx
and ecx, 0x4c11db7
xor ecx, eax
mov ebx, ecx
and ebx, 0x80000000
neg ebx
lea eax, [ecx + ecx]
sbb ebx, ebx
and ebx, 0x4c11db7
xor ebx, eax
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [edi + eax*4], ebx
lea esi, [edi + eax*4]
lea ecx, [edx + 1]
nop
test bl, 1
je 0x1003081f
mov eax, 0x20
sub eax, ecx
bts edx, eax
inc ecx
shr ebx, 1
cmp ecx, 0x21
jl 0x10030810
mov ecx, dword [ebp - 4]
inc ecx
mov dword [esi], edx
mov dword [ebp - 4], ecx
mov edx, 0x80
cmp ecx, 0xff
jle 0x100306f3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10030850
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
push ebx
push 0x100a886c
push dword [ebp + 8]
lea eax, [ebp - 4]
mov dword [ebp - 8], ecx
push eax
or ebx, 0xffffffff
mov dword [ebp - 4], 0
call fcn.100744c8
add esp, 0xc
test eax, eax
je 0x10030889
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret 4
push esi
push edi
nop dword [eax + eax]
push dword [ebp - 4]
lea eax, [ebp - 0x408]
push 0x400
push 1
push eax
call fcn.1007667d
mov edi, eax
lea esi, [ebp - 0x408]
add esp, 0x10
mov dword [ebp + 8], edi
mov edx, edi
test edi, edi
je 0x100308d9
mov edi, dword [ebp - 8]
nop dword [eax]
movzx eax, byte [esi]
lea esi, [esi + 1]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [edi + ecx*4]
sub edx, 1
jne 0x100308c0
mov edi, dword [ebp + 8]
cmp edi, 0x400
je 0x10030890
push dword [ebp - 4]
call fcn.10073780
add esp, 4
not ebx
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10030900
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp + 0xc]
push 0x1009efcc
push dword [ebp + 8]
mov dword [ebp - 4], ecx
push eax
mov dword [edi], 0xffffffff
mov dword [ebp + 0xc], 0
call fcn.1007450f
add esp, 0xc
test eax, eax
je 0x10030939
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 0xc
push ebx
push 0x400
call fcn.1007b185
add esp, 4
mov ebx, eax
mov dword [ebp + 8], ebx
push dword [ebp + 0xc]
test ebx, ebx
jne 0x10030965
call fcn.10073780
add esp, 4
xor al, al
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0xc
push 0x400
push 1
push ebx
call fcn.1007667d
add esp, 0x10
test eax, eax
je 0x100309bf
push esi
nop word [eax + eax]
mov esi, ebx
test eax, eax
je 0x100309a7
mov ebx, dword [edi]
lea esi, [esi + 1]
movzx ecx, byte [esi - 1]
movzx edx, bl
xor edx, ecx
shr ebx, 8
mov ecx, dword [ebp - 4]
xor ebx, dword [ecx + edx*4]
mov dword [edi], ebx
sub eax, 1
jne 0x10030986
mov ebx, dword [ebp + 8]
push dword [ebp + 0xc]
push 0x400
push 1
push ebx
call fcn.1007667d
add esp, 0x10
test eax, eax
jne 0x10030980
pop esi
push ebx
call fcn.100764ac
push dword [ebp + 0xc]
call fcn.10073780
not dword [edi]
add esp, 8
mov al, 1
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x100309e0
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp + 0xc]
push 0x100a886c
push dword [ebp + 8]
mov dword [ebp - 4], ecx
push eax
mov dword [edi], 0xffffffff
mov dword [ebp + 0xc], 0
call fcn.100744c8
add esp, 0xc
test eax, eax
je 0x10030a19
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 0xc
push ebx
push 0x400
call fcn.1007b185
add esp, 4
mov ebx, eax
mov dword [ebp + 8], ebx
push dword [ebp + 0xc]
test ebx, ebx
jne 0x10030a45
call fcn.10073780
add esp, 4
xor al, al
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0xc
push 0x400
push 1
push ebx
call fcn.1007667d
add esp, 0x10
test eax, eax
je 0x10030a9f
push esi
nop word [eax + eax]
mov esi, ebx
test eax, eax
je 0x10030a87
mov ebx, dword [edi]
lea esi, [esi + 1]
movzx ecx, byte [esi - 1]
movzx edx, bl
xor edx, ecx
shr ebx, 8
mov ecx, dword [ebp - 4]
xor ebx, dword [ecx + edx*4]
mov dword [edi], ebx
sub eax, 1
jne 0x10030a66
mov ebx, dword [ebp + 8]
push dword [ebp + 0xc]
push 0x400
push 1
push ebx
call fcn.1007667d
add esp, 0x10
test eax, eax
jne 0x10030a60
pop esi
push ebx
call fcn.100764ac
push dword [ebp + 0xc]
call fcn.10073780
not dword [edi]
add esp, 8
mov al, 1
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10030b10
Capabilities:
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x190
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x10030b37
xor al, al
mov esp, ebp
pop ebp
ret 4
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [0x100ce31c], eax
cmp eax, 0xffffffff
je 0x10030b2f
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov dword [0x100ce320], eax
test eax, eax
je 0x10030b2f
mov dword [0x101ce32c], 0x10031630
mov al, 1
mov esp, ebp
pop ebp
ret 4

Function at 0x10030b70
Capabilities:
Connect socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
cmp dword [0x100ce31c], 0xffffffff
push esi
jne 0x10030ba6
mov ecx, 1
call fcn.100646a0
push eax
push 0
push 0x101ce6e8
call fcn.1005c160
add esp, 0xc
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
push dword [ebp + 0xc]
mov eax, 2
mov word [esp + 0xc], ax
call dword [sym.imp.WS2_32.dll_htons]
mov esi, dword [ebp + 8]
push esi
mov word [esp + 0xe], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
jne 0x10030bf3
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x10030bf3
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
push ecx
push dword [eax]
lea eax, [esp + 0x14]
push eax
call fcn.1006fae0
add esp, 0xc
push 0x10
lea eax, [esp + 0xc]
push eax
push dword [0x100ce31c]
call dword [sym.imp.WS2_32.dll_connect]
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0xffffffff
jne 0x10030c1a
call esi
cmp eax, 0x2733
jne 0x10030c50
push 0x23
push dword [0x100ce320]
push dword [0x100ce31c]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
jne 0x10030c63
call esi
push eax
mov ecx, 3
call fcn.100646a0
push eax
push 0
push 0x101ce6e8
call fcn.1005c160
add esp, 0x10
mov ecx, 0x100ce318
call fcn.10030cd0
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
push 0x80000
push 0
push 0x100ce324
call fcn.10070060
add esp, 0xc
mov dword [0x1014e324], 0
push 0x80000
push 0
push 0x1014e328
call fcn.10070060
add esp, 0xc
mov dword [0x101ce328], 0
push 0
push 0x101daa2c
push ecx
push 0x100ce318
push 0x10031170
sub esp, 8
push dword [0x101ce34c]
call fcn.10062a20
mov byte [0x101ce350], 1
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x10030cd0
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x100034], 0
je 0x10030d0a
push 0
mov dword [0x101daa2c], 0xffffffff
push dword [esi + 0x100034]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0x100034]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x100034], 0
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x10030d20
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 4], 0xffffffff
mov eax, dword [esi + 8]
test eax, eax
je 0x10030d35
push eax
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
mov dword [esi + 8], 0
mov byte [esi + 0x100038], 0
pop esi
ret
Function at 0x10030d40
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
mov dword [ebp - 8], 0
push edi
push 0
mov eax, 0x80000
mov ecx, dword [esi + 0x8000c]
sub eax, ecx
push eax
lea eax, [esi + 0xc]
add eax, ecx
push eax
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x10030d95
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call edi
cmp eax, 0x2733
je 0x10030e93
call edi
mov ecx, 4
jmp 0x10030ed9
add dword [esi + 0x8000c], eax
cmp dword [esi + 0x8000c], 4
jl 0x10030e93
xor ecx, ecx
lea edi, [esi + 0xc]
lea eax, [edi + ecx]
mov dword [ebp - 0xc], eax
mov al, byte [eax]
cmp al, 0xc1
jne 0x10030dc6
movzx ebx, byte [ecx + esi + 0xd]
mov dl, al
mov al, byte [ecx + esi + 0xf]
jmp 0x10030de7
cmp al, 0xc2
jne 0x10030ecf
mov dl, al
movzx eax, byte [ecx + esi + 0xd]
shl ax, 8
movzx ebx, ax
movzx eax, byte [ecx + esi + 0xe]
or ebx, eax
mov al, byte [ecx + esi + 0x10]
cmp ebx, 4
jl 0x10030e9c
cmp ebx, 0x80000
jg 0x10030e9c
cmp ebx, dword [esi + 0x8000c]
jg 0x10030e6a
lea edi, [ecx + esi]
cmp dl, 0xc1
jne 0x10030e22
movzx eax, byte [ecx + esi + 0xe]
lea edx, [ebx - 3]
push eax
lea ecx, [edi + 0xf]
call fcn.10063400
mov al, byte [edi + 0xf]
jmp 0x10030e36
movzx eax, byte [ecx + esi + 0xf]
lea edx, [ebx - 4]
push eax
lea ecx, [edi + 0x10]
call fcn.10063400
mov al, byte [edi + 0x10]
add esp, 4
mov byte [ebp - 4], al
mov eax, dword [esi + 0x100014]
push ebx
push dword [ebp - 0xc]
push dword [ebp - 4]
call eax
mov ecx, dword [ebp - 8]
add esp, 0xc
sub dword [esi + 0x8000c], ebx
add ecx, ebx
cmp dword [esi + 0x8000c], 0
mov dword [ebp - 8], ecx
jle 0x10030e93
jmp 0x10030daa
test ecx, ecx
jle 0x10030e93
mov eax, dword [esi + 0x8000c]
test eax, eax
jle 0x10030e93
mov edx, 0x80000
sub edx, ecx
cmp eax, edx
jg 0x10030e93
push eax
lea eax, [esi + 0xc]
add eax, ecx
push eax
push edi
call fcn.1006e0e0
add esp, 0xc
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, al
mov ecx, 6
push eax
movzx eax, dl
push ebx
push eax
call fcn.100646a0
push eax
push 0
push 0x101ce6e8
call fcn.1005c160
add esp, 0x18
mov ecx, esi
call fcn.10030cd0
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, byte [ecx + esi + 0xc]
mov ecx, 5
push eax
call fcn.100646a0
push eax
push 0
push 0x101ce6e8
call fcn.1005c160
add esp, 0x10
mov ecx, esi
call fcn.10030cd0
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret