joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001ecc0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
cmp dword [esi], 0
jne 0x1001ed67
cmp dword [esi + 4], 0xffffffff
jne 0x1001ed67
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001ecf2
sub ecx, edx
sar ecx, 1
movzx eax, word [esi + ecx*2 + 0x242]
cmp eax, 0x5c
je 0x1001ed29
cmp eax, 0x2f
je 0x1001ed29
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x1001ed16
mov eax, dword [0x1007525c]
mov dword [edi], eax
lea eax, [ebp - 4]
push eax
push ecx
mov ecx, dword [ebp + 8]
call fcn.1001d9d0
add esp, 8
test eax, eax
jne 0x1001ed48
mov eax, dword [ebp - 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov ecx, eax
call fcn.1001de30
xor ecx, ecx
mov dword [esi], eax
test eax, eax
mov edx, 0x200
cmove ecx, edx
mov eax, ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
pop edi
mov eax, 0x1000000
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x1001f480
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x100834b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ebx, edx
test esi, esi
je 0x1001f4b2
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1001f4b2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [ebx]
test ax, ax
je 0x1001f59c
push edi
mov edi, ebx
mov ecx, ebx
cmp ax, 0x2f
je 0x1001f4cf
cmp ax, 0x5c
jne 0x1001f4d1
mov edi, ecx
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x1001f4c3
cmp edi, ebx
je 0x1001f51a
sub edi, ebx
lea eax, [ebp - 0x414]
and edi, 0xfffffffe
push edi
push ebx
push eax
call fcn.100373e0
add esp, 0xc
cmp edi, 0x208
jae 0x1001f5ac
xor eax, eax
lea edx, [ebp - 0x414]
mov ecx, esi
mov word [ebp + edi - 0x414], ax
call fcn.1001f480
xor eax, eax
mov word [ebp - 0x20c], ax
test esi, esi
je 0x1001f540
lea ecx, [ebp - 0x20c]
sub ecx, esi
nop
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x1001f530
mov esi, ebx
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x1001f542
lea edi, [ebp - 0x20c]
sub ebx, esi
add edi, 0xfffffffe
jmp 0x1001f560
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x1001f560
mov ecx, ebx
lea eax, [ebp - 0x20c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop edi
cmp eax, 0xffffffff
jne 0x1001f59c
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.1002fef0
mov esp, ebp
pop ebp
ret
call fcn.100338a4
int3
Function at 0x100201c0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100834b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [ebp - 8], ebx
push edi
mov edi, dword [ebp + 8]
cmp byte [esi + 0x2d], 0
je 0x100202ad
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x10020204
cmp dword [esi + 0x40], ebx
jae 0x10020204
push eax
call fcn.1002506b
add esp, 4
mov dword [esi + 0x3c], 0
cmp dword [esi + 0x3c], 0
jne 0x1002021c
lea eax, [ebx + ebx]
push eax
call fcn.10025035
add esp, 4
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], ebx
push ebx
push edi
push dword [esi + 0x3c]
call fcn.100373e0
xor edx, edx
add esp, 0xc
mov dword [ebp - 0xc], edx
test ebx, ebx
je 0x100202aa
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0x30]
mov bl, byte [edx + eax]
mov edx, dword [esi + 0x38]
mov edi, edx
movsx eax, bl
and edi, 0xfffd
xor eax, ecx
or edi, 2
and eax, 0xff
shr ecx, 8
mov eax, dword [eax*4 + 0x10076b40]
xor eax, ecx
mov ecx, edi
mov dword [esi + 0x30], eax
xor ecx, 1
movzx eax, al
add eax, dword [esi + 0x34]
imul eax, eax, 0x8088405
imul ecx, edi
inc eax
mov dword [esi + 0x34], eax
shr eax, 0x18
xor eax, edx
shr ecx, 8
and eax, 0xff
shr edx, 8
xor cl, bl
mov ebx, dword [ebp - 8]
xor edx, dword [eax*4 + 0x10076b40]
mov dword [esi + 0x38], edx
mov edx, dword [ebp - 0xc]
mov eax, dword [esi + 0x3c]
mov byte [edx + eax], cl
inc edx
mov dword [ebp - 0xc], edx
cmp edx, ebx
jb 0x10020232
mov edi, dword [esi + 0x3c]
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x100202ed
mov edx, dword [esi + 0x24]
lea eax, [edx + ebx]
cmp eax, dword [esi + 0x28]
jb 0x100202c8
mov dword [esi + 0x14], 0x30000
jmp 0x10020320
push ebx
add ecx, edx
push edi
push ecx
call fcn.100373e0
add esp, 0xc
mov eax, ebx
add dword [esi + 0x24], ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002fef0
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi + 4]
test eax, eax
je 0x10020319
push 0
lea ecx, [ebp - 8]
push ecx
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002fef0
mov esp, ebp
pop ebp
ret 8
mov dword [esi + 0x14], 0x1000000
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002fef0
mov esp, ebp
pop ebp
ret 8
Function at 0x10021650
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10066ad3
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x100834b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0xc], 0
mov dword [esi + 0x20], 0x1009183c
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [ebp - 4], 0
lea ecx, [esi + 0x34]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [ecx], 0x1009183c
mov byte [ebp - 4], 1
mov dword [esi + 0x40], 0xffffffff
mov dword [esi + 0x3c], 0xffffffff
push 0
push 0x100742db
mov dword [esi + 0x38], 4
mov byte [esi + 0x44], 0
mov byte [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.10024ba0
mov dword [esi + 0x40], 0
mov eax, esi
mov dword [esi + 0x3c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x407520
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
xor ebx, ebx
sub esp, 0x1c
mov esi, dword [ebp + 8]
mov dword [esp + 8], 0x613
mov dword [esp], 0x402281
mov dword [esp + 4], 0x4074b2
call sym._updatecontext_f
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x40767c
test ebx, ebx
jle 0x407563
mov edx, dword [0x431e1c]
cmp ebx, edx
jle 0x407580
mov dword [esp], esi
mov dword [esp + 4], 0x405ff0
call sym._u_respond
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esi + 0x10]
test eax, eax
je 0x40758c
cmp byte [eax], 0
jne 0x407599
mov dword [esp], esi
mov dword [esp + 4], 0x4074bb
jmp 0x40756e
mov ecx, 1
xor edi, edi
cmp ecx, edx
jg 0x4075d2
lea esi, [esi]
lea edi, [edi]
mov eax, dword [edi*4 + 0x433464]
test eax, eax
jne 0x4075c8
mov eax, 0x433460
inc edi
cmp dword [eax + edi*4 + 4], 0
je 0x4075c0
cmp ecx, ebx
je 0x4075d2
inc ecx
inc edi
cmp ecx, edx
jle 0x4075b0
mov dword [esp], 0x200
mov dword [esp + 4], 0x4074b2
mov dword [esp + 8], 0x402281
mov dword [esp + 0xc], 0x627
call sym._mycalloc2
mov dword [ebp - 0x10], eax
mov dword [esp], eax
mov eax, dword [edi*4 + 0x433464]
mov dword [esp + 0xc], ebx
mov dword [esp + 4], 0x1fe
add eax, 0x200
mov dword [esp + 8], 0x4074f0
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x10]
mov dword [esp + 0x14], eax
call sym._snprintf
mov dword [esp], esi
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
call sym._u_respond
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._mydelete2
mov eax, dword [edi*4 + 0x433464]
add eax, 0x200
mov dword [esp], eax
mov eax, dword [esi + 0x10]
mov dword [esp + 8], 0x1ff
mov dword [esp + 4], eax
call sym._strncpy
mov dword [ebp + 8], 0
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
jmp sym._xdccsave
mov dword [esp], eax
call sym._atoi
mov ebx, eax
jmp 0x407555
Function at 0x4076e0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [ebp - 0x10], 0
mov edi, dword [ebp + 8]
mov dword [esp + 8], 0x639
mov dword [esp], 0x402281
mov dword [esp + 4], 0x40768b
call sym._updatecontext_f
mov eax, dword [edi + 0x14]
test eax, eax
jne 0x40784b
mov eax, dword [ebp - 0x10]
test eax, eax
jle 0x40772c
mov ecx, dword [0x431e1c]
cmp dword [ebp - 0x10], ecx
jle 0x407744
mov dword [esp], edi
mov dword [esp + 4], 0x405ff0
call sym._u_respond
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, 1
xor esi, esi
cmp edx, ecx
jg 0x407783
mov ebx, 0x433460
lea esi, [esi]
lea edi, [edi]
mov eax, dword [ebx + esi*4 + 4]
test eax, eax
jne 0x407778
mov eax, 0x433460
lea esi, [esi]
inc esi
cmp dword [eax + esi*4 + 4], 0
je 0x407770
cmp edx, dword [ebp - 0x10]
je 0x407783
inc edx
inc esi
cmp edx, ecx
jle 0x407760
mov dword [esp], 0x200
mov dword [esp + 4], 0x40768b
mov dword [esp + 8], 0x402281
mov dword [esp + 0xc], 0x649
call sym._mycalloc2
mov dword [esp], eax
mov ebx, eax
mov dword [esp + 4], 0x1fe
mov dword [esp + 8], 0x4076b0
mov eax, dword [ebp - 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [esi*4 + 0x433464]
add eax, 0x400
mov dword [esp + 0x10], eax
mov eax, dword [edi + 0x10]
mov dword [esp + 0x14], eax
call sym._snprintf
mov dword [esp], edi
mov dword [esp + 4], ebx
call sym._u_respond
mov dword [esp], ebx
call sym._mydelete2
mov edx, dword [edi + 0x10]
test edx, edx
je 0x4077ff
cmp byte [edx], 0
jne 0x407836
mov dword [esp + 4], 0x40228d
mov eax, dword [esi*4 + 0x433464]
add eax, 0x400
mov dword [esp], eax
mov dword [esp + 8], 0x1ff
call sym._strncpy
mov dword [ebp + 8], 0
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
jmp sym._xdccsave
mov dword [esp + 4], edx
mov eax, dword [esi*4 + 0x433464]
add eax, 0x400
mov dword [esp], eax
jmp 0x407816
mov dword [esp], eax
call sym._atoi
mov dword [ebp - 0x10], eax
jmp 0x40771a
Function at 0x40a320
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [ebp - 0x10], 0
mov edi, dword [ebp + 8]
mov dword [esp + 8], 0x912
mov dword [esp], 0x402281
mov dword [esp + 4], 0x40a2e3
call sym._updatecontext_f
mov eax, dword [edi + 0x14]
test eax, eax
jne 0x40a48b
mov eax, dword [ebp - 0x10]
test eax, eax
jle 0x40a36c
mov ecx, dword [0x431e1c]
cmp dword [ebp - 0x10], ecx
jle 0x40a384
mov dword [esp], edi
mov dword [esp + 4], 0x405ff0
call sym._u_respond
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, 1
xor esi, esi
cmp edx, ecx
jg 0x40a3c3
mov ebx, 0x433460
lea esi, [esi]
lea edi, [edi]
mov eax, dword [ebx + esi*4 + 4]
test eax, eax
jne 0x40a3b8
mov eax, 0x433460
lea esi, [esi]
inc esi
cmp dword [eax + esi*4 + 4], 0
je 0x40a3b0
cmp edx, dword [ebp - 0x10]
je 0x40a3c3
inc edx
inc esi
cmp edx, ecx
jle 0x40a3a0
mov dword [esp], 0x200
mov dword [esp + 4], 0x40a2e3
mov dword [esp + 8], 0x402281
mov dword [esp + 0xc], 0x91e
call sym._mycalloc2
mov dword [esp], eax
mov ebx, eax
mov dword [esp + 4], 0x1fe
mov dword [esp + 8], 0x40a2f0
mov eax, dword [ebp - 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [esi*4 + 0x433464]
add eax, 0x600
mov dword [esp + 0x10], eax
mov eax, dword [edi + 0x10]
mov dword [esp + 0x14], eax
call sym._snprintf
mov dword [esp], edi
mov dword [esp + 4], ebx
call sym._u_respond
mov dword [esp], ebx
call sym._mydelete2
mov edx, dword [edi + 0x10]
test edx, edx
je 0x40a43f
cmp byte [edx], 0
jne 0x40a476
mov dword [esp + 4], 0x40228d
mov eax, dword [esi*4 + 0x433464]
add eax, 0x600
mov dword [esp], eax
mov dword [esp + 8], 0x1ff
call sym._strncpy
mov dword [ebp + 8], 0
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
jmp sym._xdccsave
mov dword [esp + 4], edx
mov eax, dword [esi*4 + 0x433464]
add eax, 0x600
mov dword [esp], eax
jmp 0x40a456
mov dword [esp], eax
call sym._atoi
mov dword [ebp - 0x10], eax
jmp 0x40a35a
Function at 0x40a4e0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [ebp - 0x10], 0
mov edi, dword [ebp + 8]
mov dword [esp + 8], 0x92e
mov dword [esp], 0x402281
mov dword [esp + 4], 0x40a49b
call sym._updatecontext_f
mov eax, dword [edi + 0x14]
test eax, eax
jne 0x40a656
mov eax, dword [ebp - 0x10]
test eax, eax
jle 0x40a52c
mov ecx, dword [0x431e1c]
cmp dword [ebp - 0x10], ecx
jle 0x40a544
mov dword [esp], edi
mov dword [esp + 4], 0x405ff0
call sym._u_respond
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, 1
xor esi, esi
cmp edx, ecx
jg 0x40a583
mov ebx, 0x433460
lea esi, [esi]
lea edi, [edi]
mov eax, dword [ebx + esi*4 + 4]
test eax, eax
jne 0x40a578
mov eax, 0x433460
lea esi, [esi]
inc esi
cmp dword [eax + esi*4 + 4], 0
je 0x40a570
cmp edx, dword [ebp - 0x10]
je 0x40a583
inc edx
inc esi
cmp edx, ecx
jle 0x40a560
mov eax, dword [edi + 0x10]
mov dword [esp], eax
call sym._caps
mov dword [esp], 0x200
mov dword [esp + 4], 0x40a49b
mov dword [esp + 8], 0x402281
mov dword [esp + 0xc], 0x93b
call sym._mycalloc2
mov dword [esp], eax
mov ebx, eax
mov dword [esp + 4], 0x1fe
mov dword [esp + 8], 0x40a4b0
mov eax, dword [ebp - 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [esi*4 + 0x433464]
add eax, 0x800
mov dword [esp + 0x10], eax
mov eax, dword [edi + 0x10]
mov dword [esp + 0x14], eax
call sym._snprintf
mov dword [esp], edi
mov dword [esp + 4], ebx
call sym._u_respond
mov dword [esp], ebx
call sym._mydelete2
mov edx, dword [edi + 0x10]
test edx, edx
je 0x40a60a
cmp byte [edx], 0
jne 0x40a641
mov dword [esp + 4], 0x40228d
mov eax, dword [esi*4 + 0x433464]
add eax, 0x800
mov dword [esp], eax
mov dword [esp + 8], 0x1ff
call sym._strncpy
mov dword [ebp + 8], 0
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
jmp sym._xdccsave
mov dword [esp + 4], edx
mov eax, dword [esi*4 + 0x433464]
add eax, 0x800
mov dword [esp], eax
jmp 0x40a621
mov dword [esp], eax
call sym._atoi
mov dword [ebp - 0x10], eax
jmp 0x40a51a
Function at 0x40b3e0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov dword [ebp - 0x14], 0
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10], 0
mov dword [esp], 0x402281
mov dword [esp + 4], 0x40b3a2
mov dword [esp + 8], 0xa76
call sym._updatecontext_f
mov eax, dword [edi + 0x14]
test eax, eax
jne 0x40b5d8
mov eax, dword [edi + 0x18]
test eax, eax
jne 0x40b5c8
mov eax, dword [ebp - 0x10]
test eax, eax
jle 0x40b5b0
mov esi, dword [0x431e1c]
cmp dword [ebp - 0x10], esi
jg 0x40b5b0
mov eax, dword [ebp - 0x14]
test eax, eax
jle 0x40b5b0
cmp dword [ebp - 0x14], esi
jg 0x40b5b0
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0x14], eax
je 0x40b5b0
mov ebx, 1
xor ecx, ecx
cmp ebx, esi
jg 0x40b4a3
mov edx, 0x433460
lea esi, [esi]
lea edi, [edi]
mov eax, dword [edx + ecx*4 + 4]
test eax, eax
jne 0x40b498
mov eax, 0x433460
lea esi, [esi]
inc ecx
cmp dword [eax + ecx*4 + 4], 0
je 0x40b490
cmp ebx, dword [ebp - 0x10]
je 0x40b4a3
inc ebx
inc ecx
cmp ebx, esi
jle 0x40b480
mov ebx, 1
xor edx, edx
cmp ebx, esi
jg 0x40b4d3
mov esi, esi
mov eax, dword [edx*4 + 0x433464]
test eax, eax
jne 0x40b4c8
mov eax, 0x433460
inc edx
cmp dword [eax + edx*4 + 4], 0
je 0x40b4c0
cmp ebx, dword [ebp - 0x14]
je 0x40b4d3
inc ebx
inc edx
cmp ebx, esi
jle 0x40b4b0
mov eax, dword [ecx*4 + 0x433464]
cmp edx, ecx
mov dword [ebp - 0x18], eax
jle 0x40b500
cmp ecx, edx
mov ebx, ecx
jge 0x40b500
mov esi, 0x433464
lea esi, [esi]
mov eax, dword [esi + ebx*4 + 4]
mov dword [ebx*4 + 0x433464], eax
inc ebx
cmp ebx, edx
jl 0x40b4f0
cmp edx, ecx
jge 0x40b52d
cmp ecx, edx
mov ebx, ecx
jle 0x40b52d
mov esi, 0x433460
mov ecx, 0x43345c
lea esi, [esi]
lea edi, [edi]
mov eax, dword [ecx + ebx*4 + 4]
mov dword [esi + ebx*4 + 4], eax
dec ebx
cmp ebx, edx
jg 0x40b520
mov eax, dword [ebp - 0x18]
mov dword [esp + 0xc], 0xa99
mov dword [esp], 0x200
mov dword [esp + 4], 0x40b3a2
mov dword [edx*4 + 0x433464], eax
mov dword [esp + 8], 0x402281
call sym._mycalloc2
mov dword [esp], eax
mov esi, eax
mov dword [esp + 4], 0x1fe
mov dword [esp + 8], 0x40b3ad
mov eax, dword [ebp - 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 0x10], eax
call sym._snprintf
mov dword [esp], edi
mov dword [esp + 4], esi
call sym._u_respond
mov dword [esp], esi
call sym._mydelete2
mov dword [ebp + 8], 0
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
jmp sym._xdccsave
mov dword [esp], edi
mov dword [esp + 4], 0x40b3c5
call sym._u_respond
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], eax
call sym._atoi
mov dword [ebp - 0x14], eax
jmp 0x40b42c
mov dword [esp], eax
call sym._atoi
mov dword [ebp - 0x10], eax
jmp 0x40b421
Function at 0x40c9f0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x7c
mov dword [ebp - 0x5c], 0
mov dword [esp], 0x402281
mov dword [esp + 4], 0x40c980
mov dword [esp + 8], 0xc07
call sym._updatecontext_f
mov eax, dword [0x431300]
test eax, eax
je 0x40ca2e
mov eax, dword [0x431304]
test eax, eax
jne 0x40ca49
mov dword [esp + 4], 0x40c990
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._u_respond
add esp, 0x7c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], eax
call sym._opendir
mov dword [ebp - 0x60], eax
test eax, eax
je 0x40cbbf
mov dword [esp], 0x200
mov dword [esp + 4], 0x40c980
mov dword [esp + 8], 0x402281
mov dword [esp + 0xc], 0xc13
call sym._mycalloc2
mov dword [ebp - 0x64], eax
mov dword [esp], eax
mov eax, dword [0x431304]
mov dword [esp + 4], 0x1fe
mov dword [esp + 8], 0x40c9bc
mov dword [esp + 0xc], eax
call sym._snprintf
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [ebp - 0x64]
mov dword [esp + 4], eax
call sym._u_respond
lea esi, [esi]
lea edi, [edi]
mov eax, dword [ebp - 0x60]
mov dword [esp], eax
call sym._readdir
test eax, eax
je 0x40cb70
cld
mov esi, 0x40717b
lea edi, [eax + 0x14]
mov ecx, 2
mov ebx, edi
repe cmpsb byte [esi], byte es:[edi]
je 0x40cac0
mov esi, 0x40717d
mov edi, ebx
mov ecx, 3
repe cmpsb byte [esi], byte es:[edi]
je 0x40cac0
inc dword [ebp - 0x5c]
mov eax, dword [ebp - 0x64]
mov dword [esp + 4], 0x1fe
mov dword [esp + 8], 0x4069b1
mov dword [esp], eax
mov eax, dword [0x431304]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], eax
call sym._snprintf
lea edx, [ebp - 0x58]
mov eax, dword [ebp - 0x64]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._stat
mov eax, dword [ebp - 0x64]
mov dword [esp + 4], 0x1fe
mov dword [esp + 8], 0x40c9cb
mov dword [esp], eax
mov eax, dword [ebp - 0x44]
mov dword [esp + 0xc], ebx
test eax, eax
js 0x40cb66
sar eax, 0xa
mov dword [esp + 0x10], eax
call sym._snprintf
jmp 0x40caa4
add eax, 0x3ff
jmp 0x40cb55
mov dword [esp + 4], 0x1fe
mov eax, dword [ebp - 0x64]
mov dword [esp + 8], 0x40c9d8
mov dword [esp], eax
mov eax, dword [ebp - 0x5c]
mov dword [esp + 0xc], eax
call sym._snprintf
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [ebp - 0x64]
mov dword [esp + 4], eax
call sym._u_respond
mov eax, dword [ebp - 0x64]
mov dword [esp], eax
call sym._mydelete2
mov eax, dword [ebp - 0x60]
mov dword [esp], eax
call sym._closedir
jmp 0x40ca41
mov dword [esp + 4], 0x4071a5
mov eax, dword [ebp + 8]
mov dword [esp], eax
jmp 0x40ca3c

Function at 0x40d450
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [esp], 0x402281
mov dword [esp + 4], 0x40d43c
mov dword [esp + 8], 0x262
call sym._updatecontext_f
mov dword [ebp + 8], 0
mov esp, ebp
pop ebp
jmp sym._xdccsave
Function at 0x40e4e0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
mov dword [esp], 0x402281
mov dword [esp + 4], 0x40e3d7
mov dword [esp + 8], 0xb3f
call sym._updatecontext_f
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x40e630
mov dword [esp], eax
mov edi, 0x40e3e2
call sym._caps
cld
mov esi, eax
mov ecx, 4
repe cmpsb byte [esi], byte es:[edi]
jne 0x40e5f0
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x10], eax
cld
mov esi, dword [ebp - 0x10]
mov edi, 0x40e3e2
mov ecx, 4
repe cmpsb byte [esi], byte es:[edi]
je 0x40e5d0
cld
mov esi, dword [ebp - 0x10]
mov edi, 0x40e3e6
mov ecx, 8
repe cmpsb byte [esi], byte es:[edi]
je 0x40e59d
cld
mov esi, dword [ebp - 0x10]
mov edi, 0x40e3ee
mov ecx, 7
repe cmpsb byte [esi], byte es:[edi]
je 0x40e583
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov dword [esp], ebx
mov dword [esp + 4], 0x40e3f5
call sym._u_respond
xor edx, edx
mov dword [0x431e54], edx
jmp 0x40e576
mov dword [esp], ebx
mov dword [esp + 4], 0x40e410
call sym._u_respond
mov dword [esp + 4], 0x40e470
mov dword [esp], ebx
call sym._u_respond
mov eax, 1
mov dword [0x431e54], eax
jmp 0x40e576
mov dword [ebp + 8], 0
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
jmp sym._shutdowniroffer
mov eax, dword [ebx + 0x14]
mov edi, 0x40e3e6
mov dword [esp], eax
call sym._caps
cld
mov esi, eax
mov ecx, 8
repe cmpsb byte [esi], byte es:[edi]
je 0x40e536
mov eax, dword [ebx + 0x14]
mov edi, 0x40e3ee
mov ecx, 7
mov dword [ebp - 0x10], eax
mov esi, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x40e53c
lea esi, [esi]
mov dword [esp], ebx
mov dword [esp + 4], 0x40e4b0
call sym._u_respond
jmp 0x40e576
Function at 0x40f2e0
Capabilities:
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov dword [esp], 0x40f190
mov dword [esp + 4], 0x40f19e
mov dword [esp + 8], 0x1b
call sym._updatecontext_f
cmp dword [0x431bbc], 0x3e8
mov dword [ebp - 8], 0x10
je 0x40f39a
mov dword [esp], 0x40f1b0
call sym._writedccchat
mov dword [esp], 0x40f1d2
call sym._writedccchat
mov dword [esp], 0
mov dword [esp + 4], 1
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0x40f1d7
call sym._ioutput
mov eax, 0xfffffffe
mov ebx, dword [0x431bbc]
mov dword [esp], 0x186a0
mov ecx, ebx
shr ebx, 5
and ecx, 0x1f
rol eax, cl
and dword [ebx*4 + 0x431bdc], eax
call sym._usleep
mov eax, dword [0x431bbc]
mov dword [esp], eax
call sym._close
mov eax, 0x3e8
mov dword [0x431bbc], eax
call sym._highestsock
mov dword [esp], 2
mov dword [esp + 4], 1
mov dword [esp + 8], 0
call sym._socket
mov dword [0x431bc4], eax
test eax, eax
js 0x40f500
mov dword [esp], eax
xor ecx, ecx
xor edx, edx
mov dword [0x431bc8], ecx
xor ebx, ebx
mov ecx, 2
mov dword [0x431bd0], edx
xor edx, edx
mov word [0x431bc8], cx
xor ecx, ecx
mov dword [0x431bd4], ebx
mov dword [0x431bcc], edx
mov word [0x431bca], cx
mov dword [esp + 4], 0x431bc8
mov dword [esp + 8], 0x10
call sym._bind
test eax, eax
js 0x40f4e0
mov dword [esp + 4], 0x431bc8
mov eax, dword [0x431bc4]
lea ebx, [ebp - 8]
mov dword [esp + 8], ebx
mov dword [esp], eax
call sym._getsockname
test eax, eax
js 0x40f4c0
movzx edx, word [0x431bca]
mov dword [esp + 4], 1
mov eax, dword [0x431bc4]
xchg dh, dl
movzx ebx, dx
mov dword [esp], eax
call sym._listen
test eax, eax
js 0x40f490
call sym._highestsock
mov dword [esp + 0xc], ebx
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0x40f1e7
mov dword [esp], eax
mov eax, dword [0x431260]
mov dword [esp + 8], eax
call sym._privmsg
xor eax, eax
add esp, 0x14
pop ebx
pop ebp
ret
mov dword [esp], 1
mov dword [esp + 4], 0x40f1fe
call sym._outerror
mov eax, 0x3e8
mov dword [0x431bc4], eax
mov eax, 1
jmp 0x40f488
mov dword [esp], 1
mov dword [esp + 4], 0x40f230
jmp 0x40f49f
mov dword [esp], 1
mov dword [esp + 4], 0x40f270
jmp 0x40f49f
mov dword [esp], 1
mov dword [esp + 4], 0x40f2b0
jmp 0x40f49f