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

Disassembly:
sub esp, 0x14
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x14], ecx
call edx
mov edi, dword [esp + 0x2c]
mov ebp, eax
mov eax, dword [esp + 0x38]
mov ecx, eax
and cl, 3
movzx ecx, cl
neg ecx
sbb ecx, ecx
mov esi, dword [esp + 0x28]
not ecx
and ecx, ebp
mov edx, edi
neg edx
sbb edx, edx
and edx, ebp
mov dword [esp + 0x10], edx
mov edx, eax
and dl, 2
movzx edx, dl
neg edx
sbb edx, edx
not edx
and edx, ebp
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
test al, 8
je 0x10041ac4
mov eax, dword [esp + 0x34]
mov ebx, eax
sub ebx, ebp
add esi, ebx
mov ebx, eax
sub ebx, ebp
add edi, ebx
mov ebx, dword [esp + 0x30]
sub eax, ebp
add ebx, eax
mov eax, dword [esp + 0x10]
neg eax
neg ecx
neg edx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
jmp 0x10041ac8
mov ebx, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
cmp ecx, ebp
jb 0x10041bab
mov ecx, eax
and ecx, 4
and eax, 1
mov dword [esp + 0x38], ecx
mov dword [esp + 0x20], eax
jmp 0x10041aea
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x10041b62
mov ecx, ebp
shr ecx, 2
xor eax, eax
test ecx, ecx
je 0x10041b22
mov edx, edi
mov edi, ebx
sub edx, esi
mov eax, esi
sub edi, esi
mov dword [esp + 0x28], ecx
mov ebx, dword [edx + eax]
xor ebx, dword [eax]
add eax, 4
dec ecx
mov dword [edi + eax - 4], ebx
jne 0x10041b07
mov ebx, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
add eax, eax
add eax, eax
mov ecx, ebp
sub ecx, eax
je 0x10041b5c
lea edx, [eax + ebx]
mov dword [esp + 0x30], edx
lea edx, [eax + edi]
add eax, esi
test ecx, ecx
je 0x10041b5c
mov edi, dword [esp + 0x30]
sub edx, eax
sub edi, eax
mov dword [esp + 0x30], ecx
mov cl, byte [edx + eax]
xor cl, byte [eax]
inc eax
dec dword [esp + 0x30]
mov byte [edi + eax - 1], cl
jne 0x10041b48
mov edi, dword [esp + 0x2c]
push ebx
push 0
push ebx
jmp 0x10041b65
push ebx
push edi
push esi
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
cmp dword [esp + 0x20], 0
je 0x10041b7b
inc byte [esi + ebp - 1]
mov eax, dword [esp + 0x34]
add ebx, dword [esp + 0x1c]
add edi, dword [esp + 0x10]
add esi, dword [esp + 0x18]
sub eax, ebp
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x34], eax
cmp eax, ebp
jae 0x10041ae6
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x14
pop edi
pop esi
pop ebp
mov eax, ecx
pop ebx
add esp, 0x14
ret 0x14
Function at 0x10043150
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, eax
mov eax, ebp
shr eax, 2
xor ecx, ecx
xor edx, edx
test eax, eax
je 0x1004318a
mov edx, edi
sub esi, edi
mov dword [esp + 0xc], eax
push ebx
mov ebx, dword [esi + edx]
xor ebx, dword [edx]
add edx, 4
or ecx, ebx
dec eax
jne 0x10043174
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
pop ebx
lea eax, [edx*4]
sub ebp, eax
jne 0x100431a1
pop edi
xor eax, eax
test ecx, ecx
pop esi
sete al
pop ebp
pop ecx
ret
add esi, eax
add edi, eax
mov eax, ecx
mov edx, ecx
shr edx, 0x10
shr eax, 0x18
or al, dl
mov edx, ecx
shr edx, 8
or al, dl
or cl, al
test ebp, ebp
je 0x100431cf
mov eax, edi
sub esi, edi
mov edi, ebp
mov dl, byte [eax + esi]
xor dl, byte [eax]
inc eax
or cl, dl
dec edi
jne 0x100431c4
pop edi
xor eax, eax
test cl, cl
pop esi
sete al
pop ebp
pop ecx
ret
Function at 0x100446b0
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [eax]
mov eax, dword [esp + 4]
push ebx
push ebp
push esi
mov esi, dword [ecx]
mov ecx, dword [eax + 0x8c]
push edi
add ecx, 8
mov edi, 8
mov eax, esi
ror eax, 4
xor eax, dword [ecx - 8]
add ecx, 0x10
mov ebx, eax
shr ebx, 0x18
and ebx, 0x3f
mov ebx, dword [ebx*4 + 0x101ff4a0]
mov ebp, eax
shr ebp, 0x10
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x101ff6a0]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x101ff8a0]
and eax, 0x3f
xor ebx, dword [eax*4 + 0x101ffaa0]
mov eax, dword [ecx - 0x14]
xor edx, ebx
xor eax, esi
mov ebx, eax
shr ebx, 0x18
and ebx, 0x3f
mov ebx, dword [ebx*4 + 0x101ff5a0]
mov ebp, eax
shr ebp, 0x10
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x101ff7a0]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x101ff9a0]
and eax, 0x3f
xor ebx, dword [eax*4 + 0x101ffba0]
xor edx, ebx
mov eax, edx
ror eax, 4
xor eax, dword [ecx - 0x10]
mov ebx, eax
shr ebx, 0x18
and ebx, 0x3f
mov ebx, dword [ebx*4 + 0x101ff4a0]
mov ebp, eax
shr ebp, 0x10
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x101ff6a0]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x101ff8a0]
and eax, 0x3f
xor ebx, dword [eax*4 + 0x101ffaa0]
mov eax, dword [ecx - 0xc]
xor esi, ebx
xor eax, edx
mov ebx, eax
shr ebx, 0x18
and ebx, 0x3f
mov ebx, dword [ebx*4 + 0x101ff5a0]
mov ebp, eax
shr ebp, 0x10
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x101ff7a0]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x101ff9a0]
and eax, 0x3f
xor ebx, dword [eax*4 + 0x101ffba0]
xor esi, ebx
dec edi
jne 0x100446d2
mov ecx, dword [esp + 0x18]
mov dword [ecx], edx
mov edx, dword [esp + 0x1c]
pop edi
mov dword [edx], esi
pop esi
pop ebp
pop ebx
ret 0xc

Function at 0x10045010
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x101a844b
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x102184e0]
xor eax, esp
mov dword [esp + 0x30], eax
push esi
push edi
mov eax, dword [0x102184e0]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov dword [esi], vtable.CryptoPP::AlgorithmParametersBase.0
mov dword [esp + 0x48], 0
call fcn.100b099f
test al, al
jne 0x10045080
cmp byte [esi + 8], al
je 0x10045080
cmp byte [esi + 9], al
jne 0x10045080
mov ecx, dword [esi + 4]
lea edi, [esp + 0x10]
call fcn.1003afc0
push 0x1020e8bc
mov eax, edi
push eax
call fcn.100b82fd
mov dword [esp + 0x48], 0xffffffff
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x10045097
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
test byte [esp + 0x50], 1
je 0x100450a7
push esi
call fcn.100b1971
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.100b197c
add esp, 0x40
ret 4
Function at 0x10047ff0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x101a66f6
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x102184e0]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push esi
mov eax, dword [0x102184e0]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
lea esi, [edi + 0x10]
mov ecx, 0x100
mov dword [esp + 0x20], edi
mov dword [edi + 0xc], 0xffffffff
mov dword [edi], vtable.CryptoPP::MessageQueue.0
mov dword [edi + 4], vtable.CryptoPP::MessageQueue.1.0
call fcn.1004a5e0
mov dword [esp + 0x48], 2
xor ebx, ebx
lea esi, [edi + 0x38]
push 8
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], esi
mov dword [esi], ebx
call fcn.100b39fb
add esp, 4
cmp eax, ebx
je 0x10048130
mov dword [esi], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [esi]
mov dword [eax], esi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
lea ecx, [esp + 0x14]
push ecx
push esi
mov byte [esp + 0x50], 3
call fcn.10048580
mov byte [esp + 0x48], 4
lea esi, [edi + 0x50]
push 8
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], esi
mov dword [esi], ebx
call fcn.100b39fb
add esp, 4
cmp eax, ebx
je 0x10048107
mov dword [esi], eax
xor edx, edx
mov dword [eax + 4], edx
xor ecx, ecx
mov dword [eax], ecx
mov edx, dword [esi]
mov dword [edx], esi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
lea eax, [esp + 0x1c]
push eax
push esi
mov byte [esp + 0x50], 5
call fcn.10048860
mov eax, edi
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.100b197c
add esp, 0x40
ret
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0x28]
mov dword [esp + 0x10], ebx
call fcn.100b3379
push 0x1020e5b8
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x2c], vtable.std::bad_alloc.0
call fcn.100b82fd
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x14], ebx
call fcn.100b3379
push 0x1020e5b8
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x38], vtable.std::bad_alloc.0
call fcn.100b82fd
int3
Function at 0x1004b140
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x101a83e0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x102184e0]
xor eax, esp
mov dword [esp + 0x30], eax
push esi
mov eax, dword [0x102184e0]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov esi, dword [ecx]
push 1
push 0x10225800
mov dword [esp + 0x28], edx
xor edx, edx
push edx
push eax
mov dword [esp + 0x34], eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], edx
push eax
mov eax, dword [esi + 0x80]
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x2c], vtable.CryptoPP::ArraySink.0
mov dword [esp + 0x30], vtable.CryptoPP::ArraySink.1.0
call eax
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.100b197c
mov esp, ebp
pop ebp
ret 8
Function at 0x100632b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
movzx ebx, byte [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 4]
push edi
mov edi, dword [ebp + 0xc]
push ebx
mov dword [edi + 4], eax
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 8]
lea ecx, [edi + 8]
push ecx
push edx
push eax
call sub.libcef.dll_cef_string_utf16_set
mov edx, dword [esi + 0x18]
mov eax, dword [esi + 0x14]
push ebx
lea ecx, [edi + 0x14]
push ecx
push edx
push eax
call sub.libcef.dll_cef_string_utf16_set
mov edx, dword [esi + 0x24]
mov eax, dword [esi + 0x20]
push ebx
lea ecx, [edi + 0x20]
push ecx
push edx
push eax
call sub.libcef.dll_cef_string_utf16_set
mov edx, dword [esi + 0x30]
mov eax, dword [esi + 0x2c]
push ebx
lea ecx, [edi + 0x2c]
push ecx
push edx
push eax
call sub.libcef.dll_cef_string_utf16_set
mov edx, dword [esi + 0x3c]
mov eax, dword [esi + 0x38]
add esp, 0x40
push ebx
lea ecx, [edi + 0x38]
push ecx
push edx
push eax
call sub.libcef.dll_cef_string_utf16_set
mov edx, dword [esi + 0x48]
mov eax, dword [esi + 0x44]
push ebx
lea ecx, [edi + 0x44]
push ecx
push edx
push eax
call sub.libcef.dll_cef_string_utf16_set
mov ecx, dword [esi + 0x50]
mov dword [edi + 0x50], ecx
mov edx, dword [esi + 0x54]
mov dword [edi + 0x54], edx
mov eax, dword [esi + 0x58]
mov dword [edi + 0x58], eax
mov ecx, dword [esi + 0x5c]
push ebx
mov dword [edi + 0x5c], ecx
mov eax, dword [esi + 0x64]
mov ecx, dword [esi + 0x60]
lea edx, [edi + 0x60]
push edx
push eax
push ecx
call sub.libcef.dll_cef_string_utf16_set
mov edx, dword [esi + 0x6c]
mov dword [edi + 0x6c], edx
mov eax, dword [esi + 0x70]
mov dword [edi + 0x70], eax
mov ecx, dword [esi + 0x74]
mov dword [edi + 0x74], ecx
mov edx, dword [esi + 0x78]
mov dword [edi + 0x78], edx
mov eax, dword [esi + 0x7c]
mov dword [edi + 0x7c], eax
mov ecx, dword [esi + 0x80]
mov dword [edi + 0x80], ecx
mov edx, dword [esi + 0x84]
mov dword [edi + 0x84], edx
mov eax, dword [esi + 0x88]
mov dword [edi + 0x88], eax
mov ecx, dword [esi + 0x8c]
mov dword [edi + 0x8c], ecx
mov edx, dword [esi + 0x90]
mov dword [edi + 0x90], edx
mov eax, dword [esi + 0x94]
mov dword [edi + 0x94], eax
mov ecx, dword [esi + 0x98]
mov dword [edi + 0x98], ecx
mov edx, dword [esi + 0x9c]
mov dword [edi + 0x9c], edx
mov eax, dword [esi + 0xa0]
mov dword [edi + 0xa0], eax
mov ecx, dword [esi + 0xa4]
mov dword [edi + 0xa4], ecx
mov edx, dword [esi + 0xa8]
mov dword [edi + 0xa8], edx
mov eax, dword [esi + 0xac]
mov dword [edi + 0xac], eax
mov ecx, dword [esi + 0xb0]
mov dword [edi + 0xb0], ecx
mov edx, dword [esi + 0xb8]
mov eax, dword [esi + 0xb4]
push ebx
add edi, 0xb4
push edi
push edx
push eax
call sub.libcef.dll_cef_string_utf16_set
add esp, 0x40
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x1007b600
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + eax]
mov ebx, 0x1505
cmp esi, edi
jae 0x1007b62e
movzx eax, byte [esi]
push eax
call fcn.1007d3d0
mov edx, ebx
shl edx, 5
movsx ecx, al
add ebx, edx
inc esi
add esp, 4
xor ebx, ecx
cmp esi, edi
jb 0x1007b611
pop edi
pop esi
movzx eax, bl
pop ebx
ret

Function at 0x1007e280
Capabilities:
Get common file path

Disassembly:
push ecx
push ebp
push esi
push str.kernel32
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
jne 0x1007e29a
pop esi
pop ebp
pop ecx
ret
push ebx
push edi
push str.LoadLibraryExA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, dword [esp + 0x18]
mov edi, eax
push 0x101b02f4
push ebx
mov dword [esp + 0x18], edi
call fcn.100b56a0
add esp, 8
test eax, eax
je 0x1007e2e6
test edi, edi
je 0x1007e2d7
push 8
push 0
push ebx
call edi
pop edi
pop ebx
pop esi
mov ebp, eax
pop ebp
pop ecx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop edi
pop ebx
pop esi
mov ebp, eax
pop ebp
pop ecx
ret
test edi, edi
je 0x1007e30c
push str.AddDllDirectory
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1007e30c
push 0x800
push 0
push ebx
call edi
pop edi
pop ebx
pop esi
mov ebp, eax
pop ebp
pop ecx
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, eax
test edi, edi
je 0x1007e3c0
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1007e325
sub eax, edx
lea eax, [eax + edi + 1]
push eax
call dword [0x102181bc]
mov esi, eax
add esp, 4
test esi, esi
je 0x1007e3b6
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1007e3b6
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1007e353
sub eax, edx
mov ecx, 0x5c
mov word [eax + esi], cx
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1007e370
sub eax, edx
lea edx, [eax + esi]
mov ecx, ebx
sub edx, ebx
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x1007e380
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1007e3ad
push 8
push 0
push esi
call eax
push esi
mov ebp, eax
call dword [0x102181c0]
add esp, 4
pop edi
pop ebx
pop esi
mov eax, ebp
pop ebp
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
push esi
call dword [0x102181c0]
add esp, 4
pop edi
pop ebx
pop esi
mov eax, ebp
pop ebp
pop ecx
ret
Function at 0x1007ed10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
mov eax, dword [esi + 0x78]
push edi
mov dword [esp + 0x34], eax
test eax, eax
je 0x1007eee5
lea eax, [esp + 0x20]
push eax
call fcn.10098390
mov ecx, dword [eax + 4]
mov edx, dword [eax + 0xc]
mov ebp, dword [eax]
mov ebx, dword [eax + 8]
mov eax, dword [esp + 0x40]
mov edi, dword [esp + 0x3c]
add esp, 4
push 0
push 0x3e8
push eax
push edi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x2c], edx
call fcn.100b5e90
add ebp, eax
adc dword [esp + 0x14], edx
imul eax, eax, 0x3e8
sub edi, eax
imul edi, edi, 0x3e8
add ebx, edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x18], ebx
cmp ebx, 0xf4240
jl 0x1007ed9c
add ebp, 1
adc dword [esp + 0x14], 0
sub ebx, 0xf4240
mov dword [esp + 0x10], ebp
mov dword [esp + 0x18], ebx
mov eax, dword [esi + 0xf48]
mov edi, dword [esp + 0x40]
lea ecx, [esi + 0xf48]
test eax, eax
je 0x1007edcc
mov edx, dword [eax]
cmp dword [edx + 0x20], edi
je 0x1007edc0
mov eax, dword [eax + 8]
test eax, eax
jne 0x1007edb0
jmp 0x1007edcc
push 0
push eax
push ecx
call fcn.10097c40
add esp, 0xc
mov ecx, edi
lea eax, [esp + 0x10]
mov edx, esi
call fcn.1007ec60
mov eax, dword [esi + 0xf10]
or eax, dword [esi + 0xf14]
jne 0x1007edf3
cmp dword [esi + 0xf18], eax
je 0x1007ee7d
mov ecx, dword [esi + 0xf10]
mov edx, dword [esi + 0xf14]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esi + 0xf18]
mov dword [eax + 4], edx
mov edx, dword [esi + 0xf1c]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x24]
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x2c]
sub esp, 0x10
mov eax, esp
mov dword [eax], ebp
mov dword [eax + 4], ecx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], edx
call fcn.10098430
add esp, 0x20
test edx, edx
jg 0x1007eee5
jl 0x1007ee4d
test eax, eax
jne 0x1007eee5
mov edi, dword [esp + 0x34]
mov edx, dword [edi + 0x5c]
lea eax, [edi + 0x5c]
push eax
lea ecx, [esi + 0xf20]
push ecx
push edx
call fcn.100a6530
add esp, 0xc
test eax, eax
je 0x1007ee81
push eax
push str.Internal_error_removing_splay_node___d_n
push esi
call fcn.1007fb40
add esp, 0xc
jmp 0x1007ee81
mov edi, dword [esp + 0x34]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0xf10], ebp
mov dword [esi + 0xf14], eax
mov dword [esi + 0xf18], ebx
mov dword [esi + 0xf1c], ecx
mov dword [esi + 0xf40], esi
mov eax, dword [edi + 0x5c]
mov ecx, dword [esi + 0xf10]
lea edx, [esi + 0xf20]
push edx
mov edx, dword [esi + 0xf14]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esi + 0xf18]
mov dword [eax + 4], edx
mov edx, dword [esi + 0xf1c]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
call fcn.100a63f0
add esp, 0x18
mov dword [edi + 0x5c], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x1007f9f0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x1007fa33
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, dword [esp + 0x10]
xor ecx, ecx
cmp eax, 0x2733
sete cl
mov dword [edx], 0
mov eax, ecx
neg eax
sbb eax, eax
and eax, 0x19
add eax, 0x38
ret
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
xor eax, eax
ret

Function at 0x1007fab0
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
xor edi, edi
cmp dword [esi + 0x618], edi
je 0x1007faf9
push 1
push esi
call fcn.1007efd0
mov eax, dword [esi + 0x5ac]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
push ecx
mov ecx, dword [esi + 0x618]
push edx
push eax
push esi
call ecx
push 0
push esi
mov edi, eax
call fcn.1007efd0
add esp, 0x24
mov eax, edi
pop edi
pop esi
ret
mov eax, dword [esp + 0x10]
test eax, eax
js 0x1007fb39
cmp eax, 2
jg 0x1007fb39
mov edx, dword [esi + 0x5a8]
push edx
push 1
lea eax, [eax + eax*2 + 0x101b03f0]
push 2
push eax
call fcn.100b5c54
mov ecx, dword [esi + 0x5a8]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push ecx
push 1
push edx
push eax
call fcn.100b5c54
add esp, 0x20
mov eax, edi
pop edi
pop esi
ret

Function at 0x1007fb40
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x808
mov eax, dword [0x102184e0]
xor eax, esp
mov dword [esp + 0x804], eax
push esi
mov esi, dword [esp + 0x810]
test esi, esi
je 0x1007fc69
cmp dword [esi + 0xbec], 0
je 0x1007fc69
mov ecx, dword [esp + 0x814]
push edi
lea eax, [esp + 0x81c]
push eax
push ecx
lea edx, [esp + 0x10]
push 0x801
push edx
call fcn.10098ce0
add esp, 0x10
cmp eax, 0x801
jb 0x1007fbdf
mov edx, dword [esp + 0x818]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1007fba7
sub eax, edi
cmp byte [eax + edx - 1], 0xa
jne 0x1007fbc8
push str...._n
push 5
lea eax, [esp + 0x80c]
push eax
jmp 0x1007fbd7
push 0x101b0408
push 4
lea ecx, [esp + 0x80d]
push ecx
call fcn.10098d40
add esp, 0xc
lea eax, [esp + 8]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1007fbe6
sub eax, edx
cmp dword [esi + 0x618], 0
mov edi, eax
je 0x1007fc3c
push 1
push esi
call fcn.1007efd0
mov edx, dword [esi + 0x5ac]
mov ecx, dword [esi + 0x618]
push edx
push edi
lea eax, [esp + 0x18]
push eax
push 0
push esi
call ecx
push 0
push esi
call fcn.1007efd0
add esp, 0x24
pop edi
pop esi
mov ecx, dword [esp + 0x804]
xor ecx, esp
call fcn.100b197c
add esp, 0x808
ret
mov edx, dword [esi + 0x5a8]
push edx
push 1
push 2
push 0x101b03f0
call fcn.100b5c54
mov eax, dword [esi + 0x5a8]
push eax
push 1
lea ecx, [esp + 0x20]
push edi
push ecx
call fcn.100b5c54
add esp, 0x20
pop edi
mov ecx, dword [esp + 0x808]
pop esi
xor ecx, esp
call fcn.100b197c
add esp, 0x808
ret
Function at 0x1007fc80
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x108
mov eax, dword [0x102184e0]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
mov esi, dword [esp + 0x110]
cmp dword [esi + 0xbec], 0
jne 0x1007fcb2
cmp dword [esi + 0x5b0], 0
je 0x1007fda7
mov ecx, dword [esp + 0x114]
lea eax, [esp + 0x118]
push eax
push ecx
lea edx, [esp + 0xc]
push 0x100
push edx
call fcn.10098ce0
lea eax, [esp + 0x14]
add esp, 0x10
lea edx, [eax + 1]
jmp 0x1007fce0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1007fce0
sub eax, edx
mov edx, dword [esi + 0x5b0]
push edi
mov edi, eax
test edx, edx
je 0x1007fd17
cmp dword [esi + 0x1218], 0
jne 0x1007fd17
lea ecx, [esp + 8]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x1007fd03
mov dword [esi + 0x1218], 1
cmp dword [esi + 0xbec], 0
je 0x1007fda6
mov byte [esp + edi + 8], 0xa
inc edi
cmp dword [esi + 0x618], 0
mov byte [esp + edi + 8], 0
je 0x1007fd7a
push 1
push esi
call fcn.1007efd0
mov eax, dword [esi + 0x5ac]
mov edx, dword [esi + 0x618]
push eax
push edi
lea ecx, [esp + 0x18]
push ecx
push 0
push esi
call edx
push 0
push esi
call fcn.1007efd0
add esp, 0x24
pop edi
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.100b197c
add esp, 0x108
ret
mov eax, dword [esi + 0x5a8]
push eax
push 1
push 2
push 0x101b03f0
call fcn.100b5c54
mov ecx, dword [esi + 0x5a8]
push ecx
push 1
lea edx, [esp + 0x20]
push edi
push edx
call fcn.100b5c54
add esp, 0x20
pop edi
mov ecx, dword [esp + 0x108]
pop esi
xor ecx, esp
call fcn.100b197c
add esp, 0x108
ret

Function at 0x100801b0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov edx, dword [ebx + 0x5e0]
push ebp
mov ebp, dword [ebx + eax*4 + 0x420]
mov ecx, eax
add ecx, ecx
push esi
lea esi, [ebx + ecx*8 + 0x448]
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [edx + 0x40], 3
je 0x10080252
cmp dword [ebx + eax*4 + 0x438], 0x1007fec0
jne 0x10080252
cmp dword [esi], 0
je 0x100801ed
test edi, edi
je 0x10080252
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebp
call fcn.10097ec0
add esp, 0x14
cmp eax, 0xffffffff
je 0x10080252
test al, 1
je 0x10080252
cmp dword [esi], 0
jne 0x10080234
mov eax, dword [ebx]
mov eax, dword [eax + 0x974]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x102181bc]
mov edi, dword [esi + 4]
xor ecx, ecx
add esp, 4
mov dword [esi], eax
mov dword [esi + 8], ecx
mov dword [esi + 0xc], ecx
cmp eax, ecx
je 0x1008024f
mov ecx, dword [esi]
add ecx, dword [esi + 8]
push 0
push edi
push ecx
push ebp
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x10080252
add dword [esi + 8], eax
pop edi
pop esi
pop ebp
ret
mov dword [esi + 4], ecx
pop edi
pop esi
pop ebp
ret