joyce8/EMBER2024-capa huggingface dataset:
Function at 0x970f90
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x208
lea eax, [esp]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push ebp
push esi
push edi
xor edi, edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
mov esi, dword [esp + 0x21c]
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x970ffb
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0x971035
lea edx, [esp + 0x10]
push esi
push edx
push SysStringLen
call fcn.00970e00
add esp, 0xc
lea eax, [esp + 0x10]
inc edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
test eax, eax
je 0x970fc5
mov edi, 0x98b8b0
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0x971035
mov edx, dword [edi]
push esi
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00970e00
add edi, 4
add esp, 0xc
cmp edi, 0x98b8c0
jb 0x971000
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x208
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x208
ret

Function at 0x971070
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x250
push esi
push edi
mov edi, dword [esp + 0x25c]
push 0x5c
push edi
call fcn.00977082
mov esi, eax
add esp, 8
test esi, esi
je 0x971107
lea eax, [esp + 8]
mov word [esi], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x971102
push ebx
lea ebx, [esi + 2]
push ebp
lea ecx, [esp + 0x3c]
push ebx
push ecx
call fcn.00976946
add esp, 8
test eax, eax
je 0x9710e3
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea edx, [esp + 0x10]
push edx
push edi
call ebp
test eax, eax
je 0x9710e8
lea eax, [esp + 0x3c]
push ebx
push eax
call fcn.00976946
add esp, 8
test eax, eax
jne 0x9710c5
mov word [esi], 0x5c
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp word [esi], 0
pop ebp
pop ebx
je 0x971102
pop edi
mov al, 1
pop esi
add esp, 0x250
ret
mov word [esi], 0x5c
pop edi
xor al, al
pop esi
add esp, 0x250
ret
Function at 0x971f10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x9869fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0x972002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.00975dff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x972002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.0096d6e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.0097620b
push 0x10
call fcn.009761d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0x971fc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.009621c0
jmp 0x971fc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.00971b80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0x971ff0
mov ecx, edi
call fcn.009622c0
push edi
call fcn.009761c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x972021
inc ebx
cmp ebx, 0x20
jb 0x971f3e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x973250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x987808
push 0x977288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x973329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x973329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.009761d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0x973329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0x973329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0x97332c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00973351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x973d20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x973d58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0x973d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x973d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0x973d94
push eax
push esi
call fcn.0097620b
add esp, 8
pop esi
ret 0x10

Function at 0x973da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x973e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0x973e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0x98c320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00975dff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0x973dda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0x973e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x973ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0x973eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0x98c320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00975dff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0x973eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0x973e6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0x974000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x974131
push esi
call fcn.00977145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00966080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x974131
push 0
push ebp
call fcn.009663a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00966260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x97408b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.009662f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x974121
push 0x98c918
push edi
call fcn.009753f0
push eax
push ebx
push esi
call fcn.00973f60
push 0x98c8f8
push edi
call fcn.009753f0
push eax
push ebx
push esi
call fcn.00973f60
push 0x98c8d8
push edi
call fcn.009753f0
push eax
push ebx
push esi
call fcn.00973f60
push 0x98c8c0
push edi
call fcn.009753f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00973f60
push 0x98c8a0
push edi
call fcn.009753f0
push eax
push ebx
push esi
call fcn.00973f60
push 0x98c888
push edi
call fcn.009753f0
push eax
push ebx
push esi
call fcn.00973f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x9751b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00975140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00975140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00975140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00975140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x975bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x975c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x98787c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x975c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x975c52
xor eax, eax
pop esi
leave
ret 4

Function at 0x404b33
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0x4016c6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push 0x2c
pop eax
call sub.MSVBVM60.DLL___vbaChkstk
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x14], 0x4011c8
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 1
mov dword [ebp - 4], 2
push 0xffffffffffffffff
call sub.MSVBVM60.DLL___vbaOnError
mov dword [ebp - 4], 3
push 0x402d04
call fcn.00404c1c
mov dword [ebp - 4], 4
mov eax, dword [ebp + 0x10]
cmp word [eax], 0xffff
jne 0x404bb5
mov dword [ebp - 4], 5
mov dword [ebp - 0x24], 0x1d
jmp 0x404bc0
mov dword [ebp - 4], 7
and dword [ebp - 0x24], 0
mov dword [ebp - 4], 9
lea eax, [ebp - 0x24]
push eax
call sub.MSVBVM60.DLL_VarPtr
mov dword [ebp - 0x38], eax
push 4
push dword [ebp - 0x38]
push 0x1d
xor eax, eax
mov eax, dword [ebp + 0xc]
mov ax, word [eax]
push eax
call fcn.0040307c
call sub.MSVBVM60.DLL___vbaSetSystemError
push 0x404bfe
jmp 0x404bfd
ret
Function at 0x403e50
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [esp + 8], 0x2ac
mov dword [esp + 4], 0x403e3c
mov dword [esp], 0x402443
call sym._updatecontext_f
call sym._write_statefile
mov esp, ebp
pop ebp
jmp sym._xdccsavetext
Function at 0x408740
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 8], esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], edi
mov dword [esp + 8], 0x839
mov dword [esp + 4], 0x4086dd
mov dword [esp], 0x402443
call sym._updatecontext_f
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x408792
mov dword [esp + 4], 0x405ed0
mov dword [esp], esi
call sym._u_respond
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov dword [esp], eax
call sym._atoi
test eax, eax
mov edi, eax
jle 0x408775
mov dword [esp], 0x43a760
call sym._irlist_size
cmp edi, eax
jg 0x408775
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x4087bc
cmp byte [eax], 0
jne 0x4087c6
mov dword [esp + 4], 0x4086e6
jmp 0x40877d
mov dword [esp], 0x43a760
lea eax, [edi - 1]
mov dword [esp + 4], eax
call sym._irlist_get_nth
mov ebx, eax
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 4]
mov dword [esp + 8], edi
mov dword [esp], esi
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0x408710
call sym._u_respond
mov eax, dword [ebx + 4]
mov dword [esp], eax
call sym._mydelete2
mov dword [ebx + 4], 0
mov eax, dword [esi + 0x1c]
mov dword [esp], eax
call sym._strlen
mov dword [esp + 0xc], 0x84c
inc eax
mov dword [esp + 8], 0x402443
mov dword [esp + 4], 0x4086dd
mov dword [esp], eax
call sym._mycalloc2
mov dword [ebx + 4], eax
mov eax, dword [esi + 0x1c]
mov dword [esp + 4], eax
mov eax, dword [ebx + 4]
mov dword [esp], eax
call sym._strcpy
call sym._write_statefile
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
jmp sym._xdccsavetext
Function at 0x4088a0
Capabilities:
Move file

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 + 8], 0x859
mov dword [esp + 4], 0x408866
mov dword [esp], 0x402443
call sym._updatecontext_f
mov eax, dword [ebx + 0xc]
test eax, eax
jne 0x4088f2
mov dword [esp], ebx
mov dword [esp + 4], 0x405ed0
call sym._u_respond
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov dword [esp], eax
call sym._atoi
test eax, eax
mov esi, eax
jle 0x4088d5
mov dword [esp], 0x43a760
call sym._irlist_size
cmp esi, eax
jg 0x4088d5
mov dword [esp], 0x43a760
lea eax, [esi - 1]
mov dword [esp + 4], eax
call sym._irlist_get_nth
mov edi, eax
mov eax, dword [ebx + 0x1c]
test eax, eax
jne 0x408931
mov eax, 0x403362
mov dword [esp + 0x10], eax
mov eax, dword [edi + 8]
mov dword [esp + 8], esi
mov dword [esp + 4], 0x408870
mov dword [esp + 0xc], eax
mov dword [esp], ebx
call sym._u_respond
mov eax, dword [edi + 8]
mov dword [esp], eax
call sym._mydelete2
mov dword [edi + 8], 0
mov eax, dword [ebx + 0x1c]
test eax, eax
jne 0x4089a9
mov dword [esp + 0xc], 0x86c
mov dword [esp + 8], 0x402443
mov dword [esp + 4], 0x408866
mov dword [esp], 1
call sym._mycalloc2
mov dword [edi + 8], eax
mov byte [eax], 0
call sym._write_statefile
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
jmp sym._xdccsavetext
mov dword [esp], eax
call sym._strlen
mov dword [esp + 0xc], 0x871
inc eax
mov dword [esp + 8], 0x402443
mov dword [esp + 4], 0x408866
mov dword [esp], eax
call sym._mycalloc2
mov dword [edi + 8], eax
mov eax, dword [ebx + 0x1c]
mov dword [esp + 4], eax
mov eax, dword [edi + 8]
mov dword [esp], eax
call sym._strcpy
jmp 0x408993
Function at 0x408d00
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 8], esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], edi
mov dword [esp + 8], 0x8bd
mov dword [esp + 4], 0x408ca8
mov dword [esp], 0x402443
call sym._updatecontext_f
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x408d52
mov dword [esp + 4], 0x405ed0
mov dword [esp], esi
call sym._u_respond
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov dword [esp], eax
call sym._atoi
test eax, eax
mov edi, eax
jle 0x408d35
mov dword [esp], 0x43a760
call sym._irlist_size
cmp edi, eax
jg 0x408d35
mov eax, dword [esi + 0x10]
test eax, eax
je 0x408d7c
cmp byte [eax], 0
jne 0x408d86
mov dword [esp + 4], 0x408cb1
jmp 0x408d3d
mov dword [esp], 0x43a760
lea eax, [edi - 1]
mov dword [esp + 4], eax
call sym._irlist_get_nth
mov ebx, eax
mov eax, dword [esi + 0x10]
mov dword [esp], eax
call sym._atoi
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0xc]
mov dword [esp + 8], edi
mov dword [esp], esi
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0x408cd0
call sym._u_respond
mov eax, dword [esi + 0x10]
mov dword [esp], eax
call sym._atoi
mov dword [ebx + 0xc], eax
call sym._write_statefile
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
jmp sym._xdccsavetext
Function at 0x40b7c0
Capabilities:
Move file

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 + 8], 0xb7c
mov dword [esp + 4], 0x40b6f2
mov dword [esp], 0x402443
call sym._updatecontext_f
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x40b806
mov dword [esp], eax
call sym._atoi
mov edi, eax
mov eax, dword [ebx + 0xc]
test eax, eax
jne 0x40b823
mov dword [esp + 4], 0x40b710
mov dword [esp], ebx
call sym._u_respond
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x40b837
mov dword [esp], eax
call sym._strlen
cmp eax, 3
ja 0x40b841
mov dword [esp + 4], 0x40b750
jmp 0x40b80e
mov dword [esp], 0x43a754
call sym._irlist_get_head
test eax, eax
mov esi, eax
je 0x40b8a7
lea esi, [esi]
lea edi, [edi]
mov eax, dword [esi + 4]
test eax, eax
je 0x40b899
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov eax, dword [ebx + 0x10]
mov dword [esp + 4], eax
mov eax, dword [esi + 4]
mov dword [esp], eax
call sym._regexec
test eax, eax
je 0x40b9c8
mov dword [esp], esi
call sym._irlist_get_next
test eax, eax
mov esi, eax
jne 0x40b860
mov dword [esp + 0x10], 0xb9a
mov dword [esp + 0xc], 0x402443
mov dword [esp + 8], 0x40b6f2
mov dword [esp + 4], 0x14
mov dword [esp], 0x43a754
call sym._irlist_add2
mov dword [esp + 0xc], 0xb9b
mov esi, eax
mov dword [esp + 8], 0x402443
mov dword [esp + 4], 0x40b6f2
mov dword [esp], 0x10
call sym._mycalloc2
mov dword [esi + 4], eax
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
call sym._strlen
mov dword [esp + 0xc], 0xb9d
inc eax
mov dword [esp + 8], 0x402443
mov dword [esp + 4], 0x40b6f2
mov dword [esp], eax
call sym._mycalloc2
mov dword [esi], eax
mov eax, dword [ebx + 0x10]
mov dword [esp + 4], eax
mov eax, dword [esi]
mov dword [esp], eax
call sym._strcpy
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
call sym._hostmasktoregex
mov dword [ebp - 0x10], eax
mov dword [esp + 8], 6
mov dword [esp + 4], eax
mov eax, dword [esi + 4]
mov dword [esp], eax
call sym._regcomp
test eax, eax
je 0x40b96b
mov dword [esi + 4], 0
movzx eax, word [esi + 8]
or eax, 2
mov word [esi + 8], ax
mov eax, dword [0x438d08]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._mydelete2
movzx eax, word [esi + 8]
or eax, 1
mov word [esi + 8], ax
lea eax, [edi + edi*2]
add eax, eax
mov dword [esi + 0xc], eax
mov dword [esp + 0xc], edi
mov eax, dword [ebx + 0x10]
mov dword [esp], ebx
mov dword [esp + 4], 0x40b790
mov dword [esp + 8], eax
call sym._u_respond
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
jmp sym._write_statefile
test esi, esi
jne 0x40b989
jmp 0x40b8a7
Function at 0x40be10
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 8], esi
xor esi, esi
mov dword [ebp - 4], edi
xor edi, edi
mov dword [esp + 8], 0xc08
mov dword [esp + 4], 0x40bdcc
mov dword [esp], 0x402443
call sym._updatecontext_f
mov eax, dword [ebx + 0xc]
test eax, eax
jne 0x40bf60
mov eax, dword [ebx + 0x10]
test eax, eax
jne 0x40bf50
test esi, esi
jle 0x40bf30
mov dword [esp], 0x43a760
call sym._irlist_size
cmp esi, eax
jg 0x40bf30
test edi, edi
jle 0x40bf30
mov dword [esp], 0x43a760
call sym._irlist_size
cmp edi, eax
jg 0x40bf30
cmp edi, esi
je 0x40bf30
mov dword [esp], ebx
mov dword [esp + 0xc], edi
mov dword [esp + 8], esi
mov dword [esp + 4], 0x40bdd7
call sym._u_respond
mov dword [esp], 0x43a760
lea eax, [esi - 1]
mov dword [esp + 4], eax
call sym._irlist_get_nth
mov dword [esp + 4], eax
mov ebx, eax
mov dword [esp], 0x43a760
call sym._irlist_remove
cmp edi, 1
je 0x40bf17
mov dword [esp], 0x43a760
lea eax, [edi - 2]
mov dword [esp + 4], eax
call sym._irlist_get_nth
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov dword [esp], 0x43a760
call sym._irlist_insert_after
call sym._write_statefile
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
jmp sym._xdccsavetext
mov dword [esp + 4], ebx
mov dword [esp], 0x43a760
call sym._irlist_insert_head
jmp 0x40bf01
mov dword [esp], ebx
mov dword [esp + 4], 0x40bdee
call sym._u_respond
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov dword [esp], eax
call sym._atoi
mov edi, eax
jmp 0x40be58
mov dword [esp], eax
call sym._atoi
mov esi, eax
jmp 0x40be4d

Function at 0x40c140
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [ebp + 8]
mov dword [esp + 8], 0xc4e
mov dword [esp + 4], 0x40c10c
mov dword [esp], 0x402443
call sym._updatecontext_f
mov dword [esp], 0x438c58
call sym._irlist_size
mov dword [esp + 8], eax
mov dword [esp + 4], 0x40c115
mov dword [esp], ebx
call sym._u_respond
lea esi, [esi]
lea edi, [edi]
mov dword [esp], 0x438c58
call sym._irlist_get_head
test eax, eax
mov ebx, eax
je 0x40c1d8
mov eax, dword [ebx + 4]
mov dword [esp], eax
call sym._mydelete2
mov dword [ebx + 4], 0
mov eax, dword [ebx + 8]
mov dword [esp], eax
call sym._mydelete2
mov dword [ebx + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], 0x438c58
call sym._irlist_delete
jmp 0x40c190
add esp, 0x14
pop ebx
pop ebp
jmp sym._write_statefile