joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43ed60
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x21000]
push edi
or ebp, 0xffffffff
jmp 0x43ed82
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x43ed89
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x43ed78
mov eax, 1
add ebx, ebx
jne 0x43ed9b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x43ed90
jne 0x43edac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x43ed90
xor ecx, ecx
sub eax, 3
jb 0x43edc0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x43ee32
mov ebp, eax
add ebx, ebx
jne 0x43edcb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x43edd8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x43edfc
inc ecx
add ebx, ebx
jne 0x43ede8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x43eddd
jne 0x43edf9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x43eddd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x43ee1c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x43ee0d
jmp 0x43ed7e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x43ee1c
add edi, ecx
jmp 0x43ed7e
pop esi
mov edi, esi
mov ecx, 0x149
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x43ee3a
cmp byte [edi], 3
jne 0x43ee3a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x43ee3f
lea edi, [esi + 0x3c000]
mov eax, dword [edi]
or eax, eax
je 0x43eeb7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3edd8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3ee14]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x43ee6c
mov ecx, edi
jns 0x43ee9b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x3ee18]
or eax, eax
je 0x43eeb1
mov dword [ebx], eax
add ebx, 4
jmp 0x43ee89
call dword [esi + 0x3ee1c]
popal
jmp 0x401950
Function at 0x10002c20
Capabilities:
Encrypt data using rc4 via winapi
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10088525
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x100a70c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x68], eax
test esi, esi
jle 0x10002d64
call fcn.10002b60
test eax, eax
je 0x10002d64
push 0x10121170
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x64], 0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x64]
push eax
push 0
push 0
push 0x8003
push dword [0x1012116c]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x10002de8
push 0
push dword [ebp + 0x14]
push str.jixian123
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x10002cc3
push str.CryptHashData_error
jmp 0x10002ded
lea eax, [ebp - 0x6c]
push eax
push 0
push dword [ebp - 0x64]
push 0x6801
push dword [0x1012116c]
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
jne 0x10002ceb
push str.CryptDeriveKey_error
jmp 0x10002ded
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
test eax, eax
jne 0x10002d02
push str.CryptDestroyHash_error
jmp 0x10002ded
mov eax, dword [ebp - 0x68]
xor edi, edi
mov dword [ebp - 0x64], 0
mov edx, 0x3e8
sub esi, edi
cmp esi, edx
jbe 0x10002d1f
add edi, edx
mov ecx, edx
jmp 0x10002d24
mov edi, dword [ebp + 0xc]
mov ecx, esi
mov dword [ebp - 0x70], ecx
cmp edx, esi
lea ecx, [ebp - 0x70]
push ecx
push eax
push 0
sbb eax, eax
inc eax
push eax
push 0
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x10002d81
cmp esi, 0x3e8
jbe 0x10002d59
mov eax, dword [ebp - 0x68]
add eax, dword [ebp - 0x70]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x68], eax
jmp 0x10002d0e
push 0x10121170
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10063337
mov esp, ebp
pop ebp
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
xorps xmm0, xmm0
lea ecx, [ebp - 0x48]
push str.Error_Code:
mov edi, eax
movups xmmword [ebp - 0x30], xmm0
movups xmmword [ebp - 0x20], xmm0
call fcn.10003020
mov esi, eax
push 0xa
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 0
push eax
push edi
call fcn.1006e8f7
push eax
mov edx, esi
lea ecx, [ebp - 0x60]
call fcn.10003110
add esp, 0x10
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.10002e10
push eax
lea ecx, [ebp - 0x88]
call fcn.10002990
push 0x100a515c
lea eax, [ebp - 0x88]
jmp 0x10002dfd
push str.CryptCreateHash_error
lea ecx, [ebp - 0x7c]
call fcn.10002990
push 0x100a515c
lea eax, [ebp - 0x7c]
push eax
call fcn.1006527e
int3
Function at 0x10003af0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x100a70c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x10003b50
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10003b10
sub ecx, edx
lea ebx, [ecx + 1]
cmp ebx, 0x3fffffff
jg 0x10003b50
lea eax, [ebx + ebx]
call fcn.100643d0
mov edi, esp
test edi, edi
je 0x10003b50
push ebx
push edi
push 0xffffffffffffffff
xor eax, eax
push esi
push eax
push 0x3a8
mov word [edi], ax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb eax, eax
and eax, edi
jmp 0x10003b52
xor eax, eax
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x10003b82
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x10003b82
xor eax, eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10063337
mov esp, ebp
pop ebp
ret
mov eax, 1
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10063337
mov esp, ebp
pop ebp
ret
Function at 0x10004ff0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10088725
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x100a70c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x58], ecx
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x30], vtable.CMitFile.0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
push closesocket
push 3
sub esp, 0x18
mov dword [ebp - 4], 0
mov ecx, esp
push eax
call fcn.10003d00
lea ecx, [ebp - 0x30]
call fcn.100038d0
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x1000507d
xor esi, esi
mov dword [ebp - 0x30], vtable.CMitFile.0
jmp 0x1000516e
mov esi, dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
lea ecx, [ebp - 0x50]
push ecx
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0x50], xmm0
call esi
mov eax, dword [ebp - 0x50]
inc eax
push eax
call fcn.100636a2
add esp, 4
mov dword [ebp - 0x54], 0
mov edi, eax
xorps xmm0, xmm0
lea eax, [ebp - 0x50]
movlpd qword [ebp - 0x50], xmm0
push eax
push dword [ebp - 0x2c]
call esi
push 0
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x50]
push edi
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x50]
xorps xmm0, xmm0
push eax
push dword [ebp - 0x2c]
movlpd qword [ebp - 0x50], xmm0
call esi
mov eax, dword [ebp - 0x50]
lea ecx, [ebp - 0x48]
mov edx, edi
mov byte [eax + edi], 0
call fcn.100036a0
push edi
mov byte [ebp - 4], 1
call fcn.10063345
mov ecx, dword [ebp - 0x58]
lea eax, [ebp - 0x48]
add esp, 4
push eax
call fcn.10004c90
mov ecx, dword [ebp - 0x34]
mov esi, 1
cmp ecx, 0xf
jbe 0x10005140
mov edx, dword [ebp - 0x48]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10005136
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100051bd
push ecx
push edx
call fcn.10063694
add esp, 8
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0xf
mov byte [ebp - 0x48], 0
mov dword [ebp - 0x30], vtable.CMitFile.0
test eax, eax
je 0x1000516e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x2c], 0
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x1000519e
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10005194
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100051bd
push ecx
push edx
call fcn.10063694
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10063337
mov esp, ebp
pop ebp
ret 4
call fcn.1006dd3f
int3
Function at 0x10005bf0
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push 0
lea eax, [ebp - 0x1c]
mov dword [ebp - 8], 1
push eax
lea eax, [ebp - 8]
mov byte [ebp - 1], 1
push eax
mov ebx, ecx
mov dword [ebp - 0x1c], 4
push 8
push ebx
mov esi, edx
mov dword [ebp - 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_CryptGetKeyParam]
test eax, eax
jne 0x10005c32
xor al, al
mov byte [ebp - 1], al
jmp 0x10005d74
mov ecx, dword [ebp - 8]
shr ecx, 3
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
push edi
mov edi, ecx
test ecx, ecx
jne 0x10005c68
mov ecx, 1
mov dword [ebp - 8], 1
mov dword [ebp - 0x10], ecx
mov edi, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
mov ebx, dword [esi + 0x10]
xor edx, edx
mov eax, ebx
mov dword [ebp - 0x24], ebx
div ecx
xor edx, edx
mov ecx, eax
mov eax, ebx
div dword [ebp - 0x10]
test edx, edx
je 0x10005c84
inc ecx
test edx, edx
cmove edi, dword [ebp - 0x14]
test edx, edx
mov eax, dword [ebp - 0x18]
cmove eax, dword [ebp - 0x1c]
cmp dword [esi + 0x14], 0xf
jbe 0x10005ca4
mov eax, dword [esi]
imul edi, ecx
mov ecx, eax
sub edi, ebx
add eax, ebx
jmp 0x10005cb0
mov edi, eax
lea eax, [ebx + esi]
imul edi, ecx
mov ecx, esi
sub edi, ebx
push 0
sub eax, ecx
mov ecx, esi
push edi
push eax
call fcn.10006360
mov ecx, 0x3e8
xor edx, edx
mov eax, ecx
xor ebx, ebx
div dword [ebp - 8]
sub ecx, edx
xor edi, edi
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0x24]
sub eax, edi
cmp eax, ecx
jg 0x10005ce3
mov dword [ebp - 0xc], eax
mov ebx, 1
cmp dword [esi + 0x14], 0xf
mov eax, esi
jbe 0x10005ced
mov eax, dword [esi]
lea ecx, [ebp - 0xc]
add eax, edi
push ecx
push eax
push 0
push ebx
push 0
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x10005d11
mov ecx, dword [ebp - 0xc]
add edi, ecx
test ebx, ebx
je 0x10005cd2
jmp 0x10005d16
xor al, al
mov byte [ebp - 1], al
mov ecx, dword [esi + 0x10]
cmp edi, ecx
ja 0x10005d2e
mov dword [esi + 0x10], edi
cmp dword [esi + 0x14], 0xf
jbe 0x10005d28
mov esi, dword [esi]
mov byte [esi + edi], 0
jmp 0x10005d6d
mov edx, dword [esi + 0x14]
mov ebx, edi
mov eax, edx
sub ebx, ecx
sub eax, ecx
cmp ebx, eax
ja 0x10005d5b
mov dword [esi + 0x10], edi
cmp edx, 0xf
jbe 0x10005d47
mov esi, dword [esi]
push ebx
add esi, ecx
push 0
push esi
call fcn.10065930
add esp, 0xc
mov byte [esi + ebx], 0
jmp 0x10005d6d
push 0
push ebx
mov byte [ebp - 0x24], 0
mov ecx, esi
push dword [ebp - 0x24]
push ebx
call fcn.10006980
mov ebx, dword [ebp - 0x20]
mov al, byte [ebp - 1]
pop edi
test ebx, ebx
je 0x10005d82
push ebx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov al, byte [ebp - 1]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10007900
Capabilities:
Hash data with md5
Read file on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10088857
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x2d8
mov eax, dword [0x100a70c0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x2c8], esi
mov dword [ebp - 0x2bc], esi
mov dword [ebp - 0x2d8], esi
lea eax, [ebp - 0x218]
push edi
mov dword [ebp - 0x2c0], 0
push 0x200
push 1
push eax
mov dword [ebp - 0x2a8], 0x67452301
mov dword [ebp - 0x2a4], 0xefcdab89
mov dword [ebp - 0x2a0], 0x98badcfe
mov dword [ebp - 0x29c], 0x10325476
mov dword [ebp - 0x2b0], 0
mov dword [ebp - 0x2ac], 0
call fcn.100722e6
add esp, 0x10
test eax, eax
je 0x100079ed
nop dword [eax + eax]
push eax
lea edx, [ebp - 0x218]
lea ecx, [ebp - 0x2b0]
call fcn.10007680
push edi
push 0x200
lea eax, [ebp - 0x218]
push 1
push eax
call fcn.100722e6
add esp, 0x14
test eax, eax
jne 0x100079c0
lea edx, [ebp - 0x2b0]
lea ecx, [ebp - 0x2e8]
call fcn.10007720
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov dword [ebp - 4], 0
xor edi, edi
mov dword [ebp - 0x2c0], 1
nop word [eax + eax]
mov dl, byte [ebp + edi - 0x2e8]
mov al, dl
mov byte [ebp - 0x2b1], dl
shr al, 4
cmp al, 0xa
sbb cl, cl
add al, 0x57
and cl, 0xd9
add cl, al
mov eax, dword [esi + 0x10]
mov byte [ebp - 0x2cc], cl
mov dword [ebp - 0x2c4], eax
cmp eax, dword [esi + 0x14]
jae 0x10007aa5
inc eax
mov dword [ebp - 0x2b8], esi
cmp dword [esi + 0x14], 0xf
mov dword [esi + 0x10], eax
jbe 0x10007a89
mov eax, dword [esi]
mov dword [ebp - 0x2b8], eax
mov esi, dword [ebp - 0x2b8]
mov eax, dword [ebp - 0x2c4]
mov byte [eax + esi], cl
mov byte [eax + esi + 1], 0
mov esi, dword [ebp - 0x2c8]
jmp 0x10007ac6
push dword [ebp - 0x2cc]
mov byte [ebp - 0x2d0], 0
push dword [ebp - 0x2d0]
push ecx
mov ecx, esi
call fcn.100066c0
mov dl, byte [ebp - 0x2b1]
and dl, 0xf
cmp dl, 0xa
sbb cl, cl
add dl, 0x57
and cl, 0xd9
add cl, dl
mov edx, dword [esi + 0x10]
mov byte [ebp - 0x2d4], cl
cmp edx, dword [esi + 0x14]
jae 0x10007afe
cmp dword [esi + 0x14], 0xf
lea eax, [edx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
jbe 0x10007af4
mov eax, dword [esi]
mov byte [eax + edx], cl
mov byte [eax + edx + 1], 0
jmp 0x10007b19
push dword [ebp - 0x2d4]
mov byte [ebp - 0x2bc], 0
push dword [ebp - 0x2bc]
push ecx
mov ecx, esi
call fcn.100066c0
inc edi
cmp edi, 0x10
jb 0x10007a40
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10063337
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x10011fe0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100889a0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x100a70c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.1006334a
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.10061b1d
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.100121b0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10019e80
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
test ebx, ebx
je 0x10019ee9
cmp dword [edi], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
jne 0x10019f76
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
je 0x10019ee3
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov ecx, dword [edi + 4]
mov dword [edi + 8], eax
test eax, eax
jne 0x10019ef4
cmp ecx, 0xffffffff
je 0x10019ee3
push eax
push eax
push ecx
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
push dword [edi + 4]
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi + 4], 0xffffffff
mov dword [edi], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push 1
push eax
push ecx
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
push 0x1008f510
push 0x10f
call fcn.100636ab
add esp, 8
mov dword [edi + 0x10], eax
test eax, eax
jne 0x10019f6a
mov eax, dword [edi + 8]
test eax, eax
je 0x10019f49
mov ecx, dword [edi + 4]
cmp ecx, 0xffffffff
je 0x10019f40
push 0
push eax
push ecx
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
push dword [edi + 4]
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi + 4], 0xffffffff
push dword [edi + 8]
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
mov eax, dword [edi + 0x10]
test eax, eax
je 0x10019ee3
push eax
call fcn.10063345
add esp, 4
mov dword [edi], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
call esi
mov word [edi + 0xc], ax
mov dword [edi], 1
mov eax, 2
mov word [ebp - 0x10], ax
mov eax, dword [ebp + 8]
push 0x35
mov dword [ebp - 0xc], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0xe], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.10073b66
add esp, 4
call esi
mov esi, eax
call fcn.10073b45
movups xmm0, xmmword [ebp - 0x10]
push ebx
add esi, eax
sub esp, 0x10
mov eax, esp
mov word [edi + 0xc], si
mov ecx, edi
movups xmmword [eax], xmm0
call fcn.1001a000
test eax, eax
je 0x10019ee9
movups xmm0, xmmword [ebp - 0x10]
push ebx
push dword [ebp + 0x1c]
push ecx
push dword [ebp + 0x10]
mov ecx, edi
sub esp, 0x14
mov eax, esp
movups xmmword [eax], xmm0
call fcn.1001a200
neg eax
pop edi
sbb eax, eax
pop esi
neg eax
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x1001a000
Capabilities:
Print debug messages
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x100a70c0]
xor eax, ebp
mov dword [ebp - 4], eax
movups xmm0, xmmword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x18]
mov esi, ecx
push 0x10f
push 0
mov dword [ebp - 0x28], esi
mov ebx, dword [esi + 0x10]
push ebx
movups xmmword [ebp - 0x14], xmm0
mov dword [ebp - 0x18], ebx
call fcn.10065930
mov ax, word [esi + 0xc]
add esp, 0xc
mov esi, dword [sym.imp.WS2_32.dll_htons]
mov word [ebx], ax
push 0x100
call esi
push 1
mov word [ebx + 2], ax
call esi
mov word [ebx + 4], ax
xor eax, eax
push 1
mov dword [ebx + 6], eax
mov word [ebx + 0xa], ax
call esi
movzx eax, ax
push 1
mov dword [ebp - 0x20], eax
call esi
mov ecx, edi
movzx eax, ax
mov dword [ebp - 0x24], eax
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001a080
sub ecx, edx
movzx esi, cx
lea eax, [esi + 2]
push eax
call fcn.10072a78
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1001a1e3
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001a0a7
sub ecx, edx
movzx eax, cx
test edi, edi
je 0x1001a1d8
mov edx, eax
lea eax, [esi + 2]
movzx ecx, ax
lea eax, [edx + 2]
cmp ecx, eax
jb 0x1001a1d8
lea eax, [edx + 1]
push eax
call fcn.100636a2
mov edx, eax
mov dword [ebp - 0x1c], eax
add esp, 4
sub edx, edi
mov cl, byte [edi]
lea edi, [edi + 1]
mov byte [edx + edi - 1], cl
test cl, cl
jne 0x1001a0e1
push 0x10098548
push eax
call fcn.10073b27
mov edx, eax
add esp, 8
xor edi, edi
test edx, edx
je 0x1001a14e
mov ecx, edx
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001a110
sub ecx, esi
movzx esi, cx
test si, si
je 0x1001a139
push edx
push esi
movzx eax, di
add eax, ebx
push str._c_s
push eax
call fcn.10005600
inc edi
add esp, 0x10
add edi, esi
push 0x10098548
push 0
call fcn.10073b27
mov edx, eax
add esp, 8
test edx, edx
jne 0x1001a104
push dword [ebp - 0x1c]
call fcn.10063345
mov ecx, ebx
add esp, 4
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001a160
sub ecx, edx
lea eax, [ecx + 1]
movzx edi, ax
mov eax, dword [ebp - 0x18]
mov esi, edi
push esi
add eax, 0xc
push ebx
push eax
mov dword [ebp - 0x18], eax
call fcn.100653a0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
push ebx
mov word [eax + esi], cx
mov ecx, dword [ebp - 0x24]
mov word [eax + esi + 2], cx
call fcn.1006daef
add esp, 0x10
lea eax, [ebp - 0x14]
push 0x10
push eax
push 0
lea eax, [edi + 0x10]
movzx eax, ax
push eax
mov eax, dword [ebp - 0x28]
push dword [eax + 0x10]
push dword [eax + 4]
call dword [sym.imp.WS2_32.dll_sendto]
xor ecx, ecx
cmp eax, 0xffffffff
pop edi
setne cl
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10063337
mov esp, ebp
pop ebp
ret 0x14
push str.YB_EncodeDotStr_Erro
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10063337
mov esp, ebp
pop ebp
ret 0x14
Function at 0x1001a940
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x88
mov eax, dword [0x100a70c0]
xor eax, esp
mov dword [esp + 0x84], eax
cmp dword [ecx + 0x10], 0
je 0x1001a990
cmp dword [ecx + 0x14], 0xf
jbe 0x1001a968
mov ecx, dword [ecx]
lea eax, [esp + 4]
push eax
push ecx
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jle 0x1001a990
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.10063337
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x84]
or eax, 0xffffffff
xor ecx, esp
call fcn.10063337
mov esp, ebp
pop ebp
ret
Function at 0x10021e50
Capabilities:
Get routing table

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008a776
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x100a70c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], 1
push 0x14
mov dword [ebx], 0
mov dword [ebx + 4], 0
call fcn.1006334a
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [ebx], eax
xor eax, eax
mov dword [ebp - 0x1c], 1
xor ebx, ebx
mov dword [ebp - 0x10], eax
xor edi, edi
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], eax
mov esi, 0x3c
mov dword [ebp - 4], 1
mov dword [ebp - 0x18], esi
xor ecx, ecx
mov edx, edi
sub edx, ecx
cmp esi, edx
jae 0x10021ee2
lea edi, [ecx + esi]
jmp 0x10021f12
jbe 0x10021f15
sub eax, ecx
cmp esi, eax
jbe 0x10021f02
push ecx
push esi
lea ecx, [ebp - 0x30]
call fcn.100269e0
mov esi, dword [ebp - 0x28]
mov edi, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x30]
mov dword [ebp - 0x10], esi
jmp 0x10021f18
sub esi, edx
push esi
push 0
push edi
call fcn.10065930
add esp, 0xc
add edi, esi
mov dword [ebp - 0x2c], edi
mov esi, dword [ebp - 0x10]
push 1
lea eax, [ebp - 0x18]
push eax
push ebx
call dword [sym.imp.IPHLPAPI.DLL_GetIpForwardTable]
mov ecx, ebx
cmp eax, 0x7a
jne 0x10021f34
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
jmp 0x10021ed5
test eax, eax
je 0x10021f5c
test ecx, ecx
je 0x10021fa9
sub esi, ecx
cmp esi, 0x1000
jb 0x10021f58
mov edx, dword [ecx - 4]
add esi, 0x23
sub ecx, edx
lea eax, [ecx - 4]
cmp eax, 0x1f
ja 0x10021fbe
mov ecx, edx
push esi
push ecx
jmp 0x10021fa1
xor edi, edi
cmp dword [ebx], edi
jbe 0x10021f80
lea esi, [ecx + 0x14]
cmp dword [esi - 0x10], 0
jne 0x10021f78
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x24]
push esi
push eax
call fcn.100263c0
inc edi
add esi, 0x38
cmp edi, dword [ebx]
jb 0x10021f65
mov ecx, dword [ebp - 0x10]
mov eax, ebx
sub ecx, ebx
cmp ecx, 0x1000
jb 0x10021f9f
mov ebx, dword [eax - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10021fbe
push ecx
push ebx
call fcn.10063694
add esp, 8
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.1006dd3f
int3